11.04.2011, 17:05
With strcmp only:
Cheers!
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3) && cmdtext[3] == ' ')
{
if(strlen(cmdtext) == 4)
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(GetPlayerColor(playerid), str);
return 1;
}