Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ar(playerid,params[])
- {
- LogCallback("ar");
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pMod] >= 1)
- {
- new rid,string[128],y, m, d, h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- if(sscanf(params,"d",rid)) return SendClientMessage(playerid,-1,"USAGE:/acceptreport [reportid]");
- if(rid >= 0 && rid < MAX_ATALKS)
- {
- if(Report[rid][reportUsed] == false) return SendClientMessage(playerid,-1,"The report you're trying to accept has already been accepteD!");
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d][Accepted Report] %s has just accepted %s report",d,m,y,h,mi,s,GPN(playerid),GPN(Report[rid][Reporter]));
- ReportLog(string);
- format(string,sizeof(string),"You have accepted the report of %s. You'll be sent the report again for a re-review.",GPN(Report[rid][Reporter]));
- SendClientMessage(playerid,COLOR_ORANGE,string);
- SendClientMessage(playerid,COLOR_GREEN,Report[rid][reportText]);
- format(string,sizeof(string),"Your report is being reviewed by %s, please be patient. ",GPN(playerid));
- SendClientMessage(Report[rid][Reporter],COLOR_LIGHTBLUE,string);
- format(string,sizeof(string),"{FFFF00}%s{FFFFFF} has accepted {FFFF00}%s's{FFFFFF} report {FFFF00}[ID %d]",GPN(playerid),GPN(Report[rid][Reporter]),rid);
- SendAdminMessage(-1,string);
- ClearThisReport(rid);
- } else return SendClientMessage(playerid,-1,"invalid report id");
- } else return SendClientMessage(playerid,-1,"You're not authorized to use this command!");
- LogCallback("ar");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement