Posts: 31
Threads: 8
Joined: Jul 2008
Reputation:
0
Hello,
Hi, I wanted to know how to display text chat over the head of the player. It seems to me that since this is SetPlayerChatBubble. I did like the wiki.sa-mp.com and nothing.
public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
return 1;
}
Help anyone?
Posts: 150
Threads: 4
Joined: Jun 2006
Reputation:
0
It also says that it is a 0.3 function. SA-MP is currently 0.2, so it won't work unless you're using betas.
Posts: 1,896
Threads: 102
Joined: Oct 2008
Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)
expiretime: The time in miliseconds the bubble should be displayed for.
Make a timer and loop it so it will be pretty much infinite.
Posts: 1,896
Threads: 102
Joined: Oct 2008
yes well putting it on 10 seconds isnt going to give much time to see it, what would be the point of it? but yes he is possibly using 0.2X but that means he would be fucking stupid.
Sorry if you are fucking stupid.
Posts: 1,896
Threads: 102
Joined: Oct 2008
no need for that language but i should piss off?
without a teleport command hes not going to be able to see the chat bubble in 10 seconds.
Posts: 412
Threads: 20
Joined: Mar 2009
Reputation:
0
Oh, I forgot to mention that you can't see your own chat bubbles. You can only see them on other players, so if you want to see one, you need to get another player to join your server, and test it like that.
Posts: 31
Threads: 8
Joined: Jul 2008
Reputation:
0
I'm using 0.3 and Pawn SAMP'a attached to it. I used this function as in the first fasts. I enter some text in the box .. a bubble is not displayed