SA-MP Forums Archive
Timers - 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: Timers (/showthread.php?tid=159775)



Timers - Hash [NL-RP] - 14.07.2010

How do i make a timer that will update my text draw, for example i will buy a number plate for my car, and the text draw will show it, but it will only show after a restart, how can i make it change in game as soon as i use that command ?


Re: Timers - oliverrud - 14.07.2010

Make a function like: UpdatePlate()

Then inside that you destroy all the current textdraws related to the cars for example if the textdraw id was Plate then you would destroy/delete that ones.

Then inside function UpdatePlate()

You have to just insert the same you have for when it loads at server start.


Re: Timers - Finn - 14.07.2010

You don't need a timer for changing text in a textdraw - TextDrawSetString


Re: Timers - oliverrud - 14.07.2010

You can do that too