23.01.2017, 19:22
Код:
new counter = 4; new CountTimer; CountTimer = SetTimer("CountDown", 1000, true); forward CountDown(); public CountDown() { printf("counter = %i", counter); new countstr[64]; if(counter != 0) { format(countstr, sizeof(countstr), "Game starts in: %i", counter); GameTextForAll( countstr, 1000, 4); } else { GameTextForAll("START!", 1000, 4); KillTimer(CountTimer); } counter--; return 1; }