SA-MP Forums Archive
Countdown in textdraw - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Countdown in textdraw (/showthread.php?tid=259732)



Countdown in textdraw - Face9000 - 05.06.2011

Hi all,i've a problem.

I want create a countdown of 2 minutes in textdraw,but i dont know how.

Any help?Thanks.


Re: Countdown in textdraw - Mean - 05.06.2011

2 mins > 120 seconds > 120000 miliseconds.

Just create a variable going down:
pawn Код:
new var = 120;
public OneSecondTimer( ) {
    var--;
}
and show it in a textdraw.