08.08.2012, 12:43
why im using SetPlayerChatBuble ?
when he/she using /me
example: /me test
the text will appear on the head :O
when he/she using /me
example: /me test
the text will appear on the head :O
pawn Код:
CMD:me(playerid, params[])
{
new string[128];
new pname[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "usage: /me [action]");
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{FFFF00}%s{FFFFFF}: %s", pname, params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}