try this:
PHP Code:
#include <amxmodx>
new bool:g_round_started
new g_roundtime
public plugin_init(){
register_plugin( "test2", "1.0", "Sylwester" )
register_logevent("logevent_round_start", 2, "1=Round_Start")
register_message(get_user_msgid("RoundTime"), "round_time")
}
public logevent_round_start(){
g_round_started = true
}
public round_time(){
if(g_round_started)
g_round_started = false
else return
g_roundtime = get_msg_arg_int(1)
set_task(float(g_roundtime), "my_func")
}
public my_func(){
// DO STUFF
}
__________________