chat bubbles - 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)
+--- Thread: chat bubbles (
/showthread.php?tid=362945)
chat bubbles -
P<3TS - 26.07.2012
how to make a cmd like /chatb <message>
when a player use that cmd he can set a message over his head(chat bubbles) .please anyone help me
Re: chat bubbles -
Devilxz97 - 26.07.2012
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
this . .
Re: chat bubbles -
P<3TS - 26.07.2012
I mean if a player use /chatb <messgae>
Suppose i type /chatb 'i love samp' then that message should come over his head.like that i want, please anyone help me
Re: chat bubbles -
Devilxz97 - 26.07.2012
easy . .
put this color under includes
put this commands anywhere without any callbacks
pawn Код:
CMD:chatb(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Commands: /chatb [Messages]");
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{99FFFF}%s{FFFFFF}: %s ", pName, params);
SetPlayerChatBubble(playerid, string, red, 7.0, 5000);
return 1;
}