02.12.2012, 17:25
pawn Код:
//Create The Textdraw first which you want to add the timer to!
forward Countdown(time);
new no = 20;
new Timer = SetTimerEx("Countdown", 1000, true,"d",no); // Set a repeated timer of 1000 miliseconds (1 second)
new str[10];
public Countdown(time)
{
if(time == 0)
{
KillTimer(Timer);
}
format(str,sizeof(str),"%d",time);
TextDrawSetString(TDID, str);
time--;
}