Textdraw Question - 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: Textdraw Question (
/showthread.php?tid=219665)
Textdraw Question -
Antonio [G-RP] - 01.02.2011
I have a code that, when you do /lock, it shows you a textdraw saying your house is locked, and then unlocked if you use the command again. Problem is, if you "spam" the command, the textdraws get all blocked, and it won't deleted them.
The function basically creates the textdraw, and deletes it after a set amount of time. It works for the last made textdraw, but the previous ones are stuck there until restart (?).
Re: Textdraw Question -
Krx17 - 01.02.2011
Just make two global ones in OnGameModeInit and just show hide them when you use the command.
Re: Textdraw Question -
Antonio [G-RP] - 01.02.2011
Hm? I didn't quite catch that