Advertisement
Guest User

sample

a guest
Apr 17th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. CMD:ar(playerid,params[])
  2. {
  3. LogCallback("ar");
  4. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pMod] >= 1)
  5. {
  6. new rid,string[128],y, m, d, h,mi,s;
  7. getdate(y,m,d);
  8. gettime(h,mi,s);
  9. if(sscanf(params,"d",rid)) return SendClientMessage(playerid,-1,"USAGE:/acceptreport [reportid]");
  10. if(rid >= 0 && rid < MAX_ATALKS)
  11. {
  12. if(Report[rid][reportUsed] == false) return SendClientMessage(playerid,-1,"The report you're trying to accept has already been accepteD!");
  13. 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]));
  14. ReportLog(string);
  15. 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]));
  16. SendClientMessage(playerid,COLOR_ORANGE,string);
  17. SendClientMessage(playerid,COLOR_GREEN,Report[rid][reportText]);
  18. format(string,sizeof(string),"Your report is being reviewed by %s, please be patient. ",GPN(playerid));
  19. SendClientMessage(Report[rid][Reporter],COLOR_LIGHTBLUE,string);
  20. format(string,sizeof(string),"{FFFF00}%s{FFFFFF} has accepted {FFFF00}%s's{FFFFFF} report {FFFF00}[ID %d]",GPN(playerid),GPN(Report[rid][Reporter]),rid);
  21. SendAdminMessage(-1,string);
  22. ClearThisReport(rid);
  23. } else return SendClientMessage(playerid,-1,"invalid report id");
  24.  
  25. } else return SendClientMessage(playerid,-1,"You're not authorized to use this command!");
  26. LogCallback("ar");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement