The set_task function isnt working at all, anyone know why???
Code:
case 2:
{
sec = 5
set_user_noclip(id, 1)
set_task(1.0, "set_noclip", id,"",20,"a",6)
}
}
}
public set_noclip(id)
{
sec--
set_hudmessage(rand2, rand3, rand4, 0.45, 0.5, 0, 6.0, 0.7)
show_hudmessage(id, "%d/5 seconds of noclip", sec)
if (sec==0)
{
set_user_noclip(id, 0)
}
}
Please help.
__________________