[HELP] Text appear over head?
#1

How can i make the text appear over their head if someone speaks,
like this.



Thank you.
Reply
#2

That's really easy
pawn Код:
format(string, sizeof(string),"%s",text);
SetPlayerChatBubble(playerid,string, COLOR_WHITE, 17.0, 5000);
17.0 is the distance. play around with it to get your perfect distance.
5000 is 5 seconds and it's gone.

do this at onplayertext btw
Reply
#3

Thanks!.
Reply
#4

I cant place it without getting 26 errors, can you show me where to place it?

Код:
public OnPlayerText(playerid, text[])
{
	new giver[MAX_PLAYER_NAME];
	new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new tmp[256];
	new string[256];
	new giveplayerid;
    new str[160];

    GetPlayerName(playerid, str, MAX_PLAYER_NAME);

    for (new i = 0; i < MAX_PLAYER_NAME; i++)
    if (str[i] == '_')
    str[i] = ' ';
    if(PlayerInfo[playerid][pMuted] == 1)
Somewhere there?
Reply
#5

Nevermind, solved i think.
Reply
#6

Hey how to make the ChatBubble like that it doesnt dissapear?
Reply
#7

Код:
public OnPlayerText(playerid, text[])
{
	new giver[MAX_PLAYER_NAME];
	new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new tmp[256];
	new string[256];
	new giveplayerid;
    new str[160];

    format(string, sizeof(string),"%s",text);
    SetPlayerChatBubble(playerid,string, COLOR_WHITE, 17.0, 3000);

	GetPlayerName(playerid, str, MAX_PLAYER_NAME);
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)