26.10.2011, 13:42
pawn Код:
CMD:report(playerid,params[]){
new string[128],id;
if(sscanf(params,"us",id,string)) return SendClientMessage(playerid,COLOR_GRAY,"SYNTAX: /report [id] [reason]");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GRAY, "ERROR: Player is not connected!");
format(string,sizeof(string),"%s has reported %s: %s",GetName(playerid),GetName(id),string);
SendToAdmins(COLOR_YELLOW,string);
return 1;
}