10.08.2011, 17:40
try using zcmd and sscanf first and
pawn Код:
CMD:me(playerid, params[])
{
new Reasons[128],str[128],Name[MAX_PLAYER_NAME];
if(sscanf(params,"s", Reasons)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [Text]");
GetPlayerName(playerid,Name, sizeof(Name));
format(str, sizeof(str), "* %s %s", Name, Reasons);
SendClientMessageToAll(0xFF9900AA, str);
return 1;
}