28.05.2010, 02:27
ok, i made these functions to freeze the game till 5 minutes then the round starts. but it spams the message and crash's the server. Any idea how i would get it to wait 5 minutes then the game start?
Код:
forward Freeze(playerid); public Freeze(playerid) { for(new i = 0;i < MAX_PLAYERS;i++) { TogglePlayerControllable(i,false); SendClientMessage(playerid,COLOR_PURPLE,"Round has not started yet! 5 minutes remaining"); SetTimer("UnFreeze",60000,false); } } forward UnFreeze(playerid); public UnFreeze(playerid) { for(new i = 0;i < MAX_PLAYERS;i++) { KillTimer(RoundTimer); TogglePlayerControllable(i,true); SendClientMessage(playerid,COLOR_PURPLE,"Round Started!"); } }