Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #define DIALOG_HELP 1
  2.  
  3. CMD:help(playerid, params[])
  4. {
  5. ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_LIST, "Help", "Ajutor 1\nAjutor 2", "Select", "Close");
  6. return 1;
  7. }
  8.  
  9.  
  10. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  11. {
  12. switch(dialogid)
  13. {
  14. case DIALOG_HELP:
  15. {
  16. if (!response) return 0; // Cand Apesi Pe Close sa inchida dialogul
  17.  
  18. case 0:
  19. {
  20. SCM(playerid, -1, "Comenzi 1: (aici treci tu)");
  21. }
  22. case 1:
  23. {
  24. SCM(playerid, -1, "Comenzi 2: (aici treci tu)");
  25. }
  26.  
  27. }
  28.  
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement