SA-MP Forums Archive
How to create text over player head ? - 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: How to create text over player head ? (/showthread.php?tid=461911)



How to create text over player head ? - bustern - 04.09.2013

How to create text over player head like "AFK PLAYER"


Re: How to create text over player head ? - lider1241 - 04.09.2013

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer


Re: How to create text over player head ? - FabianoC - 04.09.2013

Attach3DTextLabelToPlayer could work, or you could use the dynamic one.

AttachDynamic3DTextLabel...... you can assign it to vehicles, objects, anything you wish. (Check out the params for them)


Re: How to create text over player head ? - Threshold - 04.09.2013

Or an alternative would be:

SetPlayerChatBubble

Which is commonly used in servers to display an overhead label for a temporary amount of time. This does indeed come with an 'expiretime' parameter, upon which you would have to set a very lengthy amount of time in milliseconds, otherwise I would go with the suggestions from the above posters, and use the following Create3DTextLabel and Attach3DTextLabelToPlayer.

If you require more help with this code, feel free to pm me over the forums.