[HELP] Text appear over 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Text appear over head? (
/showthread.php?tid=161231)
[HELP] Text appear over head? -
andershh - 19.07.2010
How can i make the text appear over their head if someone speaks,
like this.
Thank you.
Re: [HELP] Text appear over head? -
bartje01 - 19.07.2010
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
Re: [HELP] Text appear over head? -
andershh - 19.07.2010
Thanks!.
Re: [HELP] Text appear over head? -
andershh - 19.07.2010
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?
Re: [HELP] Text appear over head? -
andershh - 19.07.2010
Nevermind, solved i think.
Re: [HELP] Text appear over head? -
[NTX]MikeQ - 19.07.2010
Hey how to make the ChatBubble like that it doesnt dissapear?
Re: [HELP] Text appear over head? -
andershh - 19.07.2010
Код:
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);