Guest User

Dialog - DialogoIR

a guest
May 25th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #define DialogoIR 1
  2.  
  3. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  4. {
  5. if (dialogid == DialogoIR) {
  6.  
  7. if (response) {
  8.  
  9. switch(listitem) {
  10.  
  11. case 0: {
  12.  
  13. SetPlayerPos(playerid, 0.0, 0.0, 3.0);
  14. }
  15. }
  16. }
  17. return 1;
  18. }
  19. return 0;
  20. }
  21. CMD:ir(playerid, params[])
  22. {
  23. ShowPlayerDialog(playerid, DialogoIR, DIALOG_STYLE_LIST, "Local", "Teste", "Selecionar", "Cancelar");
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment