Guest User

Untitled

a guest
Jul 2nd, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. //------------------------------------Define------------------------------------
  5. #define DIALOG_GPS1 1
  6. #define DIALOG_GPS2 2
  7. #define DIALOG_GPS3 3
  8. #define DIALOG_GPS4 4
  9. #define COLOR_YELOW 0xE6E600FF
  10. //------------------------------------------------------------------------------
  11.  
  12. //-----------------------CMD----------------------------------------------------
  13. CMD:gps(playerid,params[])
  14. {
  15. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff0000aa, " [GPS] Niste u vozilu!");
  16. ShowPlayerDialog(playerid, DIALOG_GPS1, DIALOG_STYLE_LIST, " GPS:Lokacije", "LA\nLV\nOSTALO" , "Uredu", "Izlaz");
  17.  
  18. return 1; }
  19.  
  20.  
  21. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  22. {
  23. if(dialogid == DIALOG_GPS1)
  24. {
  25. if(response)
  26. {
  27. switch(listitem)
  28. {
  29. case 0: ShowPlayerDialog(playerid, DIALOG_GPS2, DIALOG_STYLE_LIST, " GPS:Lokacije", "OPSTINA\nBANKA\nBOLNICA\nBURG\nOGLASI\nPOSTA\nAUTO PIJACA\nAUTO SKOLA\nZLATARA\nGALERIJA\nBIBLIOTEKA\nPEKARA\nBUREGDZINICA\nKLADIONICA\nGUNSHOP\nHOTEL\nAUTO SERVIS\nJAVNI WC\nBAZEN\nLOTTO\nKONZUM" , "Uredu", "Izlaz");
  30. case 1: ShowPlayerDialog(playerid, DIALOG_GPS3, DIALOG_STYLE_LIST, " GPS:Lokacije", "LV BANKA\nLV OPSTINA\nLV PD" , "Uredu", "Izlaz");
  31. case 2: ShowPlayerDialog(playerid, DIALOG_GPS4, DIALOG_STYLE_LIST, " GPS:Lokacije", "OTPAD\nPLANINA\nVIKENDICE" , "Uredu", "Izlaz");
  32. }
  33. }
  34. }
  35.  
  36. if(dialogid == DIALOG_GPS2)
  37. {
  38. if(response)
  39. {
  40. if(listitem == 0)
  41. {
  42. SetPlayerCheckpoint(playerid, 1480.4794,-1744.1576,13.5469, 3.0);
  43. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Opstinu");
  44. }
  45. if(listitem == 1)
  46. {
  47. SetPlayerCheckpoint(playerid, 1460.9261,-1024.9508,23.8281, 3.0);
  48. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Banku");
  49. }
  50. if(listitem == 2)
  51. {
  52. SetPlayerCheckpoint(playerid, 1178.4913,-1323.6295,14.1227, 3.0);
  53. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Bolnicu");
  54. }
  55. if(listitem == 3)
  56. {
  57. SetPlayerCheckpoint(playerid, 1213.9261,-917.9029,42.9236, 3.0);
  58. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Burg");
  59. }
  60. if(listitem == 4)
  61. {
  62. SetPlayerCheckpoint(playerid, 1284.6312,-1329.5333,13.5453, 3.0);
  63. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Oglase");
  64. }
  65. if(listitem == 5)
  66. {
  67. SetPlayerCheckpoint(playerid, 1735.3926,-1273.2003,13.5474, 3.0);
  68. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Postu");
  69. }
  70. if(listitem == 6)
  71. {
  72. SetPlayerCheckpoint(playerid, 1638.4176,-1144.9669,23.9063, 3.0);
  73. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Pijacu");
  74. }
  75. if(listitem == 7)
  76. {
  77. SetPlayerCheckpoint(playerid, 1771.2250,-1901.9795,13.5552, 3.0);
  78. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Skolu");
  79. }
  80. if(listitem == 8)
  81. {
  82. SetPlayerCheckpoint(playerid, 1712.3541,-1146.0713,23.9708, 3.0);
  83. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Zlataru");
  84. }
  85. if(listitem == 9)
  86. {
  87. SetPlayerCheckpoint(playerid, 1220.5927,-1413.0398,13.3184, 3.0);
  88. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La galeriju");
  89. }
  90. if(listitem == 10)
  91. {
  92. SetPlayerCheckpoint(playerid, 1081.3425,-1701.3613,13.5469, 3.0);
  93. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Biblioteku");
  94. }
  95. if(listitem == 11)
  96. {
  97. SetPlayerCheckpoint(playerid, 1746.2682,-1143.5718,24.0422, 3.0);
  98. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Pekaru");
  99. }
  100. if(listitem == 12)
  101. {
  102. SetPlayerCheckpoint(playerid, 1371.7632,-1878.2181,13.5469, 3.0);
  103. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Buregdzinicu");
  104. }
  105. if(listitem == 13)
  106. {
  107. SetPlayerCheckpoint(playerid, 1688.9685,-1449.5391,13.5469, 3.0);
  108. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Kladionicu");
  109. }
  110. if(listitem == 14)
  111. {
  112. SetPlayerCheckpoint(playerid, 1365.9648,-1279.6766,13.5469, 3.0);
  113. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La GunShop");
  114. }
  115. if(listitem == 15)
  116. {
  117. SetPlayerCheckpoint(playerid, 1095.8713,-1794.6810,13.6043, 3.0);
  118. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Hotel");
  119. }
  120. if(listitem == 16)
  121. {
  122. SetPlayerCheckpoint(playerid, 1295.7999,-1860.3448,13.5469, 3.0);
  123. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Auto Servis");
  124. }
  125. if(listitem == 17)
  126. {
  127. SetPlayerCheckpoint(playerid, 1838.9233,-1398.8104,13.5625, 3.0);
  128. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Javni Wc");
  129. }
  130. if(listitem == 18)
  131. {
  132. SetPlayerCheckpoint(playerid, 1332.6335,-984.3083,33.8966, 3.0);
  133. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Bazen");
  134. }
  135. if(listitem == 19)
  136. {
  137. SetPlayerCheckpoint(playerid, 1004.6107,-1152.8395,23.7102, 3.0);
  138. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Lotto");
  139. }
  140. if(listitem == 20)
  141. {
  142. SetPlayerCheckpoint(playerid, 1128.8796,-1413.7729,13.6036, 3.0);
  143. SendClientMessage(playerid,COLOR_YELOW,"[GPS] Postavili ste GPS na La Konzum");
  144. }
  145. }
  146.  
  147. }
  148.  
  149.  
  150.  
  151.  
  152. return 1;
  153. }
Advertisement
Add Comment
Please, Sign In to add comment