Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. enum
  2. {
  3. D_ZADUZENJA = 20000,
  4. D_Z_PROMOTER,
  5. D_Z_LEADER,
  6. D_Z_GAMEMASTER,
  7. D_Z_MULTIACC,
  8. D_Z_SPECACC,
  9. D_Z_BAN,
  10. D_Z_UNBAN
  11. };
  12.  
  13. //
  14.  
  15. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  16. {
  17. switch(dialogid)
  18. {
  19. case D_ZADUZENJA:
  20. {
  21. switch(listitem)
  22. {
  23. case 0:
  24. {
  25. ShowPlayerDialog(playerid, D_Z_PROMOTER, DIALOG_STYLE_INPUT, "Zaduzenje - Promoteri:", "Upisite ID kom igracu zelite postaviti zaduzenje promoteri.", "Potvrdi", "Zatvori");
  26. return 1;
  27. }
  28. }
  29. }
  30. case D_Z_PROMOTER:
  31. {
  32. if(response)
  33. {
  34. new id;
  35. if(sscanf(inputtext, "u", id)) return ShowPlayerDialog(playerid, D_Z_PROMOTER, DIALOG_STYLE_INPUT, "Zaduzenje - Promoteri:", "Upisite ID kom igracu zelite postaviti zaduzenje promoteri.", "Potvrdi", "Zatvori");
  36. if(id == INVALID_PLAYER_ID) return ShowPlayerDialog(playerid, D_Z_PROMOTER, DIALOG_STYLE_INPUT, "Zaduzenje - Promoteri:", "Upisite ID kom igracu zelite postaviti zaduzenje promoteri.", "Potvrdi", "Zatvori");
  37.  
  38. SendClientMessage(id, -1, "Izvrseno");
  39. }
  40. }
  41. }
  42. return 0;
  43. }
  44.  
  45. //
  46.  
  47. CMD:dajzaduzenje(playerid, const params[])
  48. {
  49. ShowPlayerDialog(playerid, D_ZADUZENJA, DIALOG_STYLE_LIST, "Zaduzenje:", "1. Promoteri", "Potvrdi", "Zatvori");
  50. return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement