Advertisement
Guest User

Untitled

a guest
May 4th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. case DIALOG_REPORT+1: {
  2. if(!response) return ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
  3. new type = GetPVarInt(playerid, "Selected"), id = strval(inputtext);
  4.  
  5. if(type != 4) {
  6. if(sscanf(inputtext, "u", id)) {
  7. ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
  8. SCM(playerid, COLOR_GRAD3, "ID Invalid!");
  9. return 1;
  10. }
  11. if(id == playerid) {
  12. ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
  13. SendClientMessage(playerid, COLOR_GRAD4, "Nu te poti adauga pe tine in lista!");
  14. return 1;
  15. }
  16. if(!IsPlayerConnected(id)) {
  17. ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
  18. SendClientMessage(playerid, COLOR_GRAD4, "Acel player nu este online!");
  19. return 1;
  20. }
  21. }
  22.  
  23. switch(type) {
  24. case 0: {
  25. format(string, sizeof(string), "%s (%d) l-a raportat pe %s (%d) pentru DM.", GetName(playerid), playerid, GetName(id), id);
  26. SendAdminMessage(0xC9161FFF, string, 1);
  27.  
  28. SetPVarInt(id, "Reported", 1);
  29. SetPVarInt(id, "ReportType", 1);
  30. SetPVarString(id, "ReportedBy", GetName(playerid));
  31. SetPVarInt(id, "ReportScore", GetPVarInt(id, "ReportScore")+1);
  32. }
  33. case 1: {
  34. format(string, sizeof(string), "%s (%d) l-a raportat pe %s (%d) pentru cheats.", GetName(playerid), playerid, GetName(id), id);
  35. SendAdminMessage(0xC9161FFF, string, 1);
  36.  
  37. SetPVarInt(id, "Reported", 1);
  38. SetPVarInt(id, "ReportType", 2);
  39. SetPVarString(id, "ReportedBy", GetName(playerid));
  40. SetPVarInt(id, "ReportScore", GetPVarInt(id, "ReportScore")+1);
  41. }
  42. case 4: {
  43. if(CuvinteCheie(inputtext)) {
  44. new time = 2;
  45. PlayerInfo[playerid][pReportTime] += time*60;
  46. Update(playerid, pReportTimex);
  47. format(string, sizeof(string), "Ai primit mute pe /report pentru %d minute! Motiv: Report aiurea.", time);
  48. SendClientMessage(playerid, -1, string);
  49. format(string, sizeof(string), "AdmCmd: %s a primit mute %d minute pe /report de la AdmBot, motiv: Report aiurea.", GetName(playerid), time);
  50. SendClientMessageToAll(COLOR_LIGHTRED, string);
  51. return 1;
  52. }
  53. else {
  54. format(string, sizeof(string), "Report de la %s (ID: %d, lvl: %d): %s.", GetName(playerid), playerid, PlayerInfo[playerid][pLevel], inputtext);
  55. SendAdminMessage(0xC9161FFF, string, 1);
  56. SetPVarInt(playerid, "Reported", 1);
  57. SetPVarInt(playerid, "ReportType", 4);
  58. SetPVarString(playerid, "ReportText", inputtext);
  59. }
  60. }
  61. }
  62. if(ReportTimer[playerid] != 0) {
  63. KillTimer(ReportTimer[playerid]);
  64. ReportTimer[playerid] = 0;
  65. }
  66.  
  67. PlayerInfo[playerid][pReportTime] = 180;
  68. Ajutor[playerid] = 1;
  69. ReportTimer[playerid] = SetTimerEx("CheckReport", 300000, 0, "%d", playerid);
  70. SendClientMessage(playerid, COLOR_YELLOW, "Reportul tau a fost trimis adminilor.");
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement