SA-MP Forums Archive
What's the best way - 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: What's the best way (/showthread.php?tid=498393)



What's the best way - LocMax - 03.03.2014

To update stats textdraw?
Some place that is frequently called and doesn't create too much lag?

I don't want to create a whole timer just to update 1 textdraw...


Re: What's the best way - RajatPawar - 03.03.2014

Under the /stats command itself if a command, under OnPlayerDeath if a TDM/DM server or just create a timer. It is not that difficult..


Re: What's the best way - LocMax - 03.03.2014

It's a textdraw that shows Score, Rank, Class, Team etc.. and I wanna update it frequently, so what would be the best place to do it at?

OnPlayerKeyStateChange? or should I really just create a timer for updating it?


Re: What's the best way - kbalor - 03.03.2014

OnPlayerUpdate, for me I haven't experience any lag or problem. I have Score,Kill and team running onplayerupdate. Also i'm not using any timer on OnPlayerUpdate it's simply adding like givecash, setplayerscore yah knooww.