how to show a text over a player's head?
#1

hey guys, i'd like to know hwo to show a text over a player's head? because while looking at the dialogs i made, i don't want the payer to move
( i used toggleplayercontrollable(playerid, 0) and i want the text BUSY to show on their heads. i tried something like
SetPlayerChatBubble(playerid, COLOR_YELLOW, "BUSY"); then i tried:

SetPlayerChatBubble(playerid, COLOR_YELLOW, 100.0, 0, "BUSY");

but it was a fail and said: tags mismatched. i don't think it's too hard to do, can someone help me out? thanks
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#3

banned, you did not get what i want. i know how to use setchatbubble, i meant how to set a text over a player's head permanently?
Reply
#4

You done it wrong?:

Wikipedia:

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

Code:
public OnPlayerText(playerid, text[])
{
  SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
  return 1;
}
Quote:

(playerid, text[], color, Float:drawdistance, expiretime)

playerid The player which should have the chat bubble.
text[] The text to display.
color The text color
drawdistance The distance from where players are able to see the chat bubble.
expiretime The time in miliseconds the bubble should be displayed for.

I don't know if im right, coz im sux scripter =D
Reply
#5

Use CreatePlayer3DTextLabel then attach it to a player head using Attach3DTextLabelToPlayer.
Reply
#6

no robin, i know how to use setchatbubble, i was wanting to add a text over a player'S head,

nvm djd got it, that was what i wanted, thanks

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)