Textdraw or PlayerTextdraw - 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 or PlayerTextdraw (
/showthread.php?tid=476518)
Textdraw or PlayerTextdraw -
||123|| - 18.11.2013
Which one of them should I use when a player enters a bank. A timer for 5 seconds is then set to destroy the textdraw. If I use Global textdraw, I'll have to add [MAX_PLAYERS] array. How many global textdraws will be then created from the global textdraw limit? 1 or 500(max players).
Re: Textdraw or PlayerTextdraw -
Jefff - 18.11.2013
Use
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw and read
https://sampwiki.blast.hk/wiki/Limits
Re: Textdraw or PlayerTextdraw -
||123|| - 18.11.2013
....
Re: Textdraw or PlayerTextdraw -
BT - 18.11.2013
Thanks
Re: Textdraw or PlayerTextdraw -
||123|| - 18.11.2013
Quote:
How many global textdraws will be then created from the global textdraw limit? 1 or 500
|
My last question still remains.
Re: Textdraw or PlayerTextdraw -
Jefff - 18.11.2013
For every connected player ? if you have 500 players online so 500, 1 per player (global)
AW: Textdraw or PlayerTextdraw -
Nero_3D - 18.11.2013
If its only a static textdraw = always the same text, you only need one global
Otherwise for dynamic textdraw you should use per player textdraws
Re: Textdraw or PlayerTextdraw -
||123|| - 19.11.2013
What if the text is static but the timing of hiding and closing is dynamic, different for players. The textdraw is showed and then there is a 5 second timer to hide the textdraw. if there are 2 players who see the textdraws within the timer's timeframe the first person's timer will not hide (when I'm using global textdraw, without MAX_PLAYERS).
Re: Textdraw or PlayerTextdraw -
Vince - 19.11.2013
TextDrawShowForPlayer/TextDrawHideForPlayer.