25.01.2010, 10:59
Код:
new Countdown = 20; new CountDownTimer; forward Countdowntimer(playerid); CountDownTimer= SetTimer("Countdowntimer", 999, true); public Countdowntimer(playerid) { Countdown--; new string[128]; format(string, sizeof(string), "%d", Countdown); TextDrawSetString(cd, string); TextDrawShowForAll(cd); if(Countdown == 0) { new rand = random(sizeof(gRandomPlayerSpawns)); ResetPlayerWeapons(playerid); KillTimer(CountDownTimer); TextDrawHideForAll(cd); TextDrawHideForAll(Textdraw4); Countdown = 20; // This is line where i reset the time seconds to 20 again. But it doesnt work } }