[Help] Countdown timer in Textdraws - 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: [Help] Countdown timer in Textdraws (
/showthread.php?tid=146636)
[Help] Countdown timer in Textdraws -
Coldthug - 08.05.2010
Hi, i want to have textdraws in countdown instead GameTextForPlayer, but how can i do it, to update the count and to disappear, when the countdown finish, above there is the original code from the Gamemode Adrenaline(i could post there, but the topic is old and people has forsaken him). I just want to switch the GameTextForPlayer to TextDraws. Thanks in advance.
http://pastebin.com/cKW5rAQu
And here is the textdraw:
pawn Code:
Textdraw0 = TextDrawCreate(329.000000, 189.000000, "3");
TextDrawAlignment(Textdraw0, 3);
TextDrawBackgroundColor(Textdraw0, -16776961);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.870000, 2.899999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);