bardzo prosiłbym o dodanie do kodu aby podczas rozgrzewki było freezetime 0 i aby na końcu przywracało freezetime 2.
#include <amxmodx> // AMX Mod X #include <amxmisc> new czas = 60 new resety=3 new noze=0 new bylo_juz=0 public plugin_init() { register_plugin("ROund STart REstart","1.9","Miczu & Ox!d3") register_event("HLTV","Event_StartRound","a","1=0","2=0") return PLUGIN_CONTINUE } public test_it(){ new players[32], num, num2 get_players(players,num,"e","TERRORIST") get_players(players,num2,"e","CT") if(num2<1 || num<1) return 0 return 1 } public client_disconnect(id){ set_task(0.3,"disconnect",0) } public disconnect(){ if(test_it()==0 && noze==0) bylo_juz=0 } public Event_StartRound(){ if(test_it()==0 && noze==0) bylo_juz=0 set_task(0.2,"restart_odlicz", 0) set_task(6.0,"restart_odlicz", 0) } public client_PreThink ( id ) { if(noze) client_cmd(id,"weapon_knife") } public restart_odlicz(){ if(test_it() && noze==0 && bylo_juz==0){ noze=1 bylo_juz=1 czas=60 resety=3 pause("ac","dib3.amxx") pause("ac","M_Antirusher_2.5.amxx") pause("ac","imessage.amxx") pause("ac","scrollmsg.amxx") set_task(1.0,"wyswietl_res",8188,"",0,"b") set_task(62.0,"noze_on", 0) } } public wyswietl_res(){ set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, random_float(0.15, 0.40), /*0.31,*/ 0, 6.0, 2.0); show_hudmessage(0,"Rozgrzewka pozostalo: %i sekund !!", czas) czas-- if(czas==3){ set_task(0.7,"restart_rundy_0", 0) } } public restart_rundy_play(){ set_hudmessage(0, 200, 0, -1.0, 0.25, 2, 0.02, 6.0, 0.01, 0.1, 4) show_hudmessage(0,"Milej zabawy i samych he he headshot'ow !!") } public noze_on(){ noze=0 } public restart_rundy(){ unpause("ac","dib3.amxx") unpause("ac","M_Antirusher_2.5.amxx") unpause("ac","imessage.amxx") unpause("ac","scrollmsg.amxx") server_cmd("sv_restart 1") remove_task(8188) set_task(2.0,"restart_rundy_play", 0) } public restart_rundy_0(){ resety-- if(resety==0){ set_task(1.0,"restart_rundy", 0) } else set_task(1.2,"restart_rundy_0", 0) }