Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. CMD:report(playerid, params[])
  2. {
  3. Total_Reports++;
  4. Report[Total_Reports][Rep_ID] = Total_Reports;
  5. return 1;
  6. }
  7.  
  8. CMD:replist(playerid)
  9. {
  10. new str[256];
  11. new string[128] = "№\tИмя";
  12. for(new i = 1; i <= Total_Reports; i++)
  13. {
  14.  
  15. format(str, sizeof(str), "%d.\t%s", i, Report[i][Rep_Name]);
  16. strcat(string, str);
  17. }
  18. ShowPlayerDialog(playerid, D_Report, DIALOG_STYLE_TABLIST_HEADERS, "Список жалоб", string, "Выбрать", "Отмена");
  19. return 1;
  20. }
  21.  
  22. D_Report:
  23. {
  24. if(!response) return 1;
  25. Total_Reports--;
  26. SendClientMessage(playerid, -1, "обращение закрыто");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement