07.03.2014, 16:03
Color Define..
Here you go with /me command. (ZCMD + SSCANF)
pawn Код:
#define COLOR_RED 0xFF0000AA
#define COLOR_GREEN 0x33AA33AA
pawn Код:
CMD:me(playerid,params[])
{
new string[128], pname[MAX_PLAYER_NAME];
if(!strlen(params))
{
SendClientMessage(playerid,COLOR_RED,"[ERROR] /me [message]");
}
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s %s",pname,playerid,params);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}