07.08.2010, 03:35
pawn Код:
CMD:report(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new string[128];
new
reason;
if(sscanf(params, "s", reason)) { return SendClientMessage(playerid, CYAN, "[Usage]: /report [text]. Use this to report for admin assistance, or report a hacker/rulebreaker."); }
{
format(string, sizeof(string), "REPORT: %s [ID:%i]: %s", ReturnPlayerName(playerid), playerid, reason);
ShowForAdmin(ORANGE, string);
SetPVarInt(playerid, "reported", 1);
SendClientMessage(playerid, GREEN, "You report has been delivered. Don't report again until an admin accepts your report.");
Report[playerid] = reason;
}
}
return 1;
}