04.01.2011, 18:37
Or you could just use ZCMD and sscanf.
pawn Код:
COMMAND:report(playerid, params[])
{
new text[128], string[128], reportname[MAX_PLAYER_NAME];
if(sscanf(params, "s[127]", text)) SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /report (message)");
GetPlayerName(playerid, reportname, sizeof(reportname));
format(string, sizeof(string), "Report from %s [%d]: %s ))", reportname, playerid, text);
SendAdminMessage(0xFFF200, string);
return 1;
}