Guest User

Untitled

a guest
Jul 4th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define DH_Dialog 1 //Dialogo Definido
  4.  
  5. new response;
  6. new listitem;
  7. new dialogid;
  8.  
  9. public OnPlayerSpwan(playerid, dialogid[])
  10. {
  11. ShowPlayerDialog(playerid, DH_Dialog, DIALOG_STYLE_LIST, "Onde você deseja nascer?", "Mandante\nVisitante\nCBF", "Selecionar", "Sair");
  12. return 1;
  13. }
  14.  
  15. public OnDialogResponse(playerid, dialogid)
  16.  
  17. if(dialogid == DH_Dialog)// Dialog Definido no TOPO !
  18. {
  19. if(response)
  20. {
  21. if(listitem == 0) // Esssa é Los Santos (1ª Lista/Opção)
  22. {
  23. SetPlayerPos(playerid, 2390.4866, 1029.0275, 10.8203); // Caso queira em outras coords, troque 1529.6, -1691.2, 13.3, conforme X,Y,Z
  24. }
  25. else if(listitem == 1) // Essa é San Fierro (2ª Lista/Opção)
  26. {
  27. SetPlayerPos(playerid, 1434.2554, 2658.3477, 11.3926); // Caso queira em outras coords, troque -1417.0, -295.8, 14.1, conforme X,Y,Z
  28. }
  29. else if(listitem == 2) // Essa é Las Venturas (3ª Lista/Opção)
  30. {
  31. SetPlayerPos(playerid, 1418.9954, 2155.6331, 29.6907); // Caso queira em outras coords, troque 1699.2, 1435.1, 10.7, conforme X,Y,Z
  32. return 1;
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment