22.06.2015, 18:16
I have this command but when someone report someone, i need to check /reports!
/reports say there is no reports yet, when the player has reported! like!
/reports say there is no reports yet, when the player has reported! like!
Код:
CMD:reports(playerid,params[]) { #pragma unused params if(adlvl[playerid] >= 1) { new ReportCount; for(new i; i < MAX_REPORTS; i++) if(strcmp(Reports[i], "<none>", true)) { ReportCount++; SendClientMessage(playerid, COLOR_WHITE, Reports[i]); } if(ReportCount == 0) SendClientMessage(playerid, COLOR_WHITE, "There have been no reports"); } else SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be level 1/Help moderator to use this command"); return 1; }