Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (strcmp("/t", cmdtext, true, 10) == 0)
  2. {
  3. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teletrasporti", "Drift\nGare", "OK", "ESCI");
  4. return 1;
  5. }
  6. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  7. {
  8. if(response)
  9. {
  10. switch(listitem)
  11. {
  12. case 0:
  13. {
  14. SetPlayerPos("coordinate");
  15. }
  16. case 1:
  17. {
  18. SetPlayerPos("coordinate");
  19. }
  20. }
  21. }
  22. }
  23. return 1;
  24. }
Add Comment
Please, Sign In to add comment