06.07.2013, 14:47
pawn Код:
new CountDownTime = 10; // 10 seconds, countdown
new Timer;
forward Timer(playerid);
public Timer(playerid)
{
new string[128];
CountDownTime--;
if(CountDownTime == 0) {
KillTimer(Timer);
CountDownTime= 4;
} else
{
format(string, sizeof(string), "%d", CountDownTime);
GameTextForPlayer(playerid, string, 1000, 1);
}
return 1;
}
Place this there where the timer must to start
Timer = SetTimer("CountDownTime", 1000, false);