SA-MP Forums Archive
Chat Bubble - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Chat Bubble - Help (/showthread.php?tid=144076)



Chat Bubble - Help - DDodo - 25.04.2010

Hello, I was wondering, how do I do a command that displays a chat bubble above the head of the player.
I want it to be a command , for example /adminduty (or anything else) and then a text would pop up above players head saying "Admin", so other players would know he is on admin duty. Thanks in advance...


Re: Chat Bubble - Help - IamNotKoolllll - 25.04.2010

Quote:
Originally Posted by DDodo
Hello, I was wondering, how do I do a command that displays a chat bubble above the head of the player.
I want it to be a command , for example /adminduty (or anything else) and then a text would pop up above players head saying "Admin", so other players would know he is on admin duty. Thanks in advance...
SetPlayerChatBubble(playerid, "admin");


Re: Chat Bubble - Help - Thrarod - 25.04.2010

Can be done with Attach3DTextLabelToPlayer(playerid,admintxt,0.0,0. 0,2.0)


Re: Chat Bubble - Help - IamNotKoolllll - 25.04.2010

Quote:
Originally Posted by Thrarod
Can be done with Attach3DTextLabelToPlayer(playerid,admintxt,0.0,0. 0,2.0)
...


Re: Chat Bubble - Help - DDodo - 25.04.2010

Thank you, but I am wondering, how can I change the color of it?

Edit: Nevermind, solved


Re: Chat Bubble - Help - IamNotKoolllll - 25.04.2010

Quote:
Originally Posted by DDodo
Thank you, but I am wondering, how can I change the color of it?
SetPlayerChatBubble(playerid, COLOR_HERE, "admin");


Re: Chat Bubble - Help - DDodo - 25.04.2010

hmm, what's the function for removing it with another cmd?


Re: Chat Bubble - Help - Thrarod - 25.04.2010

If you use chat bubble it will go away after some time but if you use 3dtext then Destroy3dtextlabel(labelid) or something like that