hello. I have this code
PHP Code:
public plugin_init(){
register_event("HLTV", "roundstart", "a", "1=0", "2=0")
}
public roundstart(id){
stopplugin=false
set_task( 25.0, "roundcounters", _, _, _, "b", 0 );
ColorChat(0, GREEN, "^3[JoiNET]^1 Anti-rush plugin is ^3enabled^1!")
ColorChat(0, GREEN, "^3[JoiNET]^1 Counter-Terrorists can't rush for^3 25 seconds^1.")
}
public roundcounters(id){
stopplugin=true
ColorChat(0, GREEN, "^3[JoiNET]^1 test.")
}
everything is working, but there is a problem with set_task.
after a few rounds, there are more task at different times. i want this task to disable plugin after first 25 seconds, but with more tasks working, sometimes plugin is disabled after a random num of seconds.