Textdraw Countdown
#1

I have searched everywhere and i can't find any help to get a textdraw countdown.

I want it so there is a timer (i know how to make) but it is in a textdraw so you can see it.

I can't figure out how i can put the textdraw there which will countdown:-/

I would appritiate it alot +rep for you help
Reply
#2

i have countdown cmd but its in dcmd
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)