19.08.2009, 18:01
Hello, I have a problem. The /me message colors are always black. And NOT from the players color.
This is the code:
Can someone help me? Thanks.
This is the code:
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
{
if(cmdtext[3] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
return 1;
}
new str[128];
new playerColor;
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
GetPlayerColor(playerid);
SendClientMessageToAll(playerColor, str);
return 1;
}