Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. #include <a_samp>
  2. #define COLOR_GREEN 0x33AA33AA
  3.  
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" GPS by Haydz");
  10. print("--------------------------------------\n");
  11. return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. return 1;
  17. }
  18.  
  19.  
  20. if (strcmp("/gps", cmdtext, true, 10) == 0)
  21. {
  22. SendClientMessage(playerid, COLOR_GREEN,"GPS: Please choose your destination");
  23. ShowPlayerDialog(playerid, 20320, DIALOG_STYLE_LIST, "GPS Menu", "Grove street\nLS train station\nLSPD\nBurger shot\nCluckin bell\nJefferson motel\nPizza Stack", "Select", "Exit");
  24. return 1;
  25. }
  26.  
  27. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  28. {
  29. if(dialogid == 20321 && response) {
  30. switch(listitem) {
  31. case 0:
  32. {
  33. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Grove street");
  34. SetPlayerCheckpoint(playerid, 2490.6201, -1667.4989, 13.3438, 5.0);
  35. }
  36. case 1:
  37. {
  38. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to LS train station");
  39. SetPlayerCheckpoint(playerid, 1777.9893, -1931.8132, 13.3868, 5.0);
  40. }
  41. case 2:
  42. {
  43. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to LSPD");
  44. SetPlayerCheckpoint(playerid, 1536.3883, -1676.4635, 13.3828, 5.0);
  45. }
  46. case 3:
  47. {
  48. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Burger shot");
  49. SetPlayerCheckpoint(playerid, 1213.8230, -907.5296, 42.9226, 5.0);
  50. }
  51. case 4:
  52. {
  53. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Cluckin bell");
  54. SetPlayerCheckpoint(playerid, 932.1118, -1392.9386, 13.2556, 5.0);
  55. }
  56. case 5:
  57. {
  58. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Jefferson motel");
  59. SetPlayerCheckpoint(playerid, 2219.0396, -1165.8395, 25.7266, 5.0);
  60. }
  61. case 6:
  62. {
  63. SendClientMessage(playerid, COLOR_GREEN, "GPS: The GPS has been set to Pizza stack");
  64. SetPlayerCheckpoint(playerid, 2093.9421, -1806.0039, 13.5501, 5.0);
  65. }
  66. }
  67. }
  68. public OnPlayerEnterCheckpoint(playerid)
  69. {
  70. SendClientMessage(playerid,COLOR_GREEN,"GPS: You have arrived at your destination.");
  71. DisablePlayerCheckpoint(playerid);
  72. SendClientMessage(playerid,COLOR_Green,"GPS: Your GPS has been switched off");
  73. return 1;
  74. }
  75. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement