Textdraw Countdown
#3

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--;
}
Reply


Messages In This Thread
Textdraw Countdown - by KingyKings - 02.12.2012, 17:11
Re: Textdraw Countdown - by Xoomer - 02.12.2012, 17:14
Re: Textdraw Countdown - by Ballu Miaa - 02.12.2012, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)