Quote:
public client_putinserver(id)
{
if(is_user_bot(id))
return PLUGIN_CONTINUE;
trololo[id][0] = 0;
if ( get_user_flags (id) & ADMIN_ACCESS & FL_ONGROUND)
{
set_task ( 5.0, "wait_entergame" , id )
}
return PLUGIN_HANDLED;
}
|
Why my code is incorrect? I want that my task must be started after 5 seconds after player, who entered in the world with admin access...
This task shouldn't run when player in spectator or not allowed of any team, only after when entered in world or new round.