chat bubbles
#1

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
Reply
#2

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

this . .
Reply
#3

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
Reply
#4

easy . .

put this color under includes
pawn Код:
#define red 0xFF0000AA
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)