RSSy MYGO.pl Opublikowano Luty 3, 2021 o 01:59 RSSy Udostępnij Opublikowano Luty 3, 2021 o 01:59 Can anyone add the respawn function in this plugin please Thanks :grrr: PHP Code: #include <amxmodx> #define PLUGIN "Warm up" #define VERSION "1.0" #define AUTHOR "" new bool:WarmUp; new Seconds = 50; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_event("CurWeapon", "Current_Weapon", "be", "1=1", "2!29"); WarmUp = true; set_task(120.0, "RemoveWarmUp", 123); set_task(1.0, "ShowCountDown", 1234,_,_,"b",_); } public Current_Weapon(id) { if(WarmUp) engclient_cmd(id, "weapon_knife"); } public ShowCountDown() { set_hudmessage 25, 255, 25, 0.01, 0.15, 0, 0.0, 1.0, 0.1, 0.1, -1; show_hudmessage(0, "Warmup round : %d seconds left.", Seconds); Seconds--; if(Seconds <= 0) { if(task_exists(1234)) remove_task(1234); WarmUp = false; server_cmd("sv_restart 1"); return; } } public RemoveWarmUp() WarmUp = false; Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi