Advertisement
Guest User

Untitled

a guest
May 6th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. YCMD:reports(playerid, params[], help) {
  2. new string[180], result[64];
  3. if(PlayerInfo[playerid][pAdmin] < 1) return true;
  4. SCM(playerid, COLOR_WHITE, "Reports:");
  5. foreach(Player, i) {
  6. if(GetPVarInt(i, "Reported") == 1) {
  7. GetPVarString(i, "ReportedBy", result, sizeof(result));
  8. if(GetPVarInt(i, "ReportType") == 1) {
  9. format(string, sizeof(string), "DM: %s (%d) reported by %s. Score: %d", GetName(i), i, result, GetPVarInt(i, "ReportScore"));
  10. MesajLung(playerid, COLOR_DBLUE, string);
  11. }
  12. if(GetPVarInt(i, "ReportType") == 2) {
  13. format(string, sizeof(string), "Cheater: %s (%d) reported by %s. Score: %d", GetName(i), i, result, GetPVarInt(i, "ReportScore"));
  14. MesajLung(playerid, COLOR_DBLUE, string);
  15. }
  16. if(GetPVarInt(i, "ReportType") == 3) {
  17. format(string, sizeof(string), "Stuck: %s (%d)", GetName(i), i);
  18. MesajLung(playerid, COLOR_WARNING, string);
  19. }
  20.  
  21. if(GetPVarInt(i, "ReportType") == 4) {
  22. GetPVarString(i, "ReportText", result, sizeof(result));
  23. format(string, sizeof(string), "Another: %s (%d): %s", GetName(i), i, result);
  24. MesajLung(playerid, COLOR_LGREEN, string);
  25. }
  26. }
  27. }
  28. return true;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement