Textdraw Countdown - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw Countdown (
/showthread.php?tid=396953)
Textdraw Countdown -
KingyKings - 02.12.2012
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
![Smiley](images/smilies/smile.png)
+rep for you help
Re: Textdraw Countdown -
Xoomer - 02.12.2012
i have countdown cmd but its in dcmd
Re: Textdraw Countdown -
Ballu Miaa - 02.12.2012
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--;
}