SA-MP Forums Archive
textdraw help - 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 help (/showthread.php?tid=511099)



textdraw help - lulo356 - 04.05.2014

Ey,

Well im starting to create a spectate system with textdraw,

but my question, if you created a textdraw with example health, how can it update.


Re: textdraw help - arakuta - 04.05.2014

You should know when to update.

There are a lot of ways to do it...

OnPlayerWeaponShot, OnPlayerGive/TakeDamage, Timers, OnPlayerUpdate...


Re: textdraw help - MaxBerger - 04.05.2014

Hey,

you also could use a Timer is requesting the current health of the player. So you could update the whole thing every 10 seconds.

Regards,
Max