Hi everyone,
I'm trying to freeze all cts and reset the freeze after the countdown is over... But it doesn't freeze the players when the countdown is running. It only freezes them when the countdown stops...
PHP Code:
public Cmdround(id)
{
if (task_exists(TASKID))
remove_task(TASKID)
set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 0.1, 14.0, 0.1, 1.0, 1)
show_hudmessage(0, "[HideNseeK]")
Timer = 10
set_task(1.0, "Cmdcountdown", TASKID, _, _, "a", Timer)
new players[32], count
get_players(players, count, "ae", "CT")
for(new i; i < count; i++) {
set_user_maxspeed(players[i], 0.1)
set_task(11.0, "RemoveFreeze", players[i])
}
set_task(2.0, "StripWeapons", players[0])
}
PHP Code:
public RemoveFreeze(id) {
if(is_user_alive(id)) {
set_user_maxspeed(id, -1.0)
}
}
__________________