12.03.2011, 12:41
Try it:
pawn Код:
if(!strcmp(cmdtext, "/chat", true, 4))
{
if(!cmdtext[4])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /chat [text]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[5]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}