Guest User

sean5874

a guest
Dec 11th, 2009
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.32 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3.  
  4.  
  5. #include <a_samp>
  6.  
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n--------------------------------------");
  11. print("Sa Navigation by sean5874");
  12. print("--------------------------------------\n");
  13. return 1;
  14. }
  15.  
  16. public OnPlayerConnect(playerid)
  17. {
  18. SendClientMessage(playerid, 0xAA3333AA,"This server uses the SA Navigation system, typ /nhelp to see the functions");
  19. return 1;
  20. }
  21.  
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24. //destinations
  25.  
  26. //police departs
  27. if (strcmp("/lspd", cmdtext, true, 20) == 0)
  28. {
  29. SetPlayerCheckpoint(playerid, 1536.0621, -1671.9874, 13.1854, 4);
  30. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the LSPD");
  31. return 1;
  32. }
  33. if (strcmp("/lvpd", cmdtext, true, 20) == 0)
  34. {
  35. SetPlayerCheckpoint(playerid, 2287.8162, 2416.7979, 10.4952, 4);
  36. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the LVPD");
  37. return 1;
  38. }
  39. if (strcmp("/sfpd", cmdtext, true, 20) == 0)
  40. {
  41. SetPlayerCheckpoint(playerid, -1608.4271,725.0745,12.4856, 4);
  42. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SFPD");
  43. return 1;
  44. }
  45. //cluckin' bells
  46. if (strcmp("/cb market", cmdtext, true, 20) == 0)
  47. {
  48. SetPlayerCheckpoint(playerid, 948.5103, -1376.7455, 13.1475, 4);
  49. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Market");
  50. return 1;
  51. }
  52. if (strcmp("/cb east ls", cmdtext, true, 20) == 0)
  53. {
  54. SetPlayerCheckpoint(playerid, 2390.7246,-1494.1410,23.6372, 4);
  55. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - East LS");
  56. return 1;
  57. }
  58. if (strcmp("/cb pilgrim", cmdtext, true, 20) == 0)
  59. {
  60. SetPlayerCheckpoint(playerid, 2610.5852, 1678.2039, 10.5851, 4);
  61. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Pilgrim");
  62. return 1;
  63. }
  64. if (strcmp("/cb ocean flats", cmdtext, true, 20) == 0)
  65. {
  66. SetPlayerCheckpoint(playerid, -2691.5842, 267.6431, 4.4646, 4);
  67. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Ocean Flats");
  68. return 1;
  69. }
  70. if (strcmp("/cb downtown", cmdtext, true, 20) == 0)
  71. {
  72. SetPlayerCheckpoint(playerid, -1809.0095,612.5065,35.2165, 4);
  73. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Downtown");
  74. return 1;
  75. }
  76. if (strcmp("/cb angle pine", cmdtext, true, 20) == 0)
  77. {
  78. SetPlayerCheckpoint(playerid, -2168.9622, -2460.8679, 30.3521, 4);
  79. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Angle Pine");
  80. return 1;
  81. }
  82. if (strcmp("/cb fort carson", cmdtext, true, 20) == 0)
  83. {
  84. SetPlayerCheckpoint(playerid, 177.6360, 1162.9191, 14.7578, 4);
  85. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Fort Carson");
  86. return 1;
  87. }
  88. if (strcmp("/cb old venturas strip", cmdtext, true, 20) == 0)
  89. {
  90. SetPlayerCheckpoint(playerid, 2361.4619,2032.7275,10.4269, 4);
  91. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Old Venturas Strip");
  92. return 1;
  93. }
  94. if (strcmp("/cb creek", cmdtext, true, 20) == 0)
  95. {
  96. SetPlayerCheckpoint(playerid, 2851.3699,2411.1450,10.5845, 4);
  97. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Creek");
  98. return 1;
  99. }
  100. if (strcmp("/cb the emerald isle", cmdtext, true, 22) == 0)
  101. {
  102. SetPlayerCheckpoint(playerid, 2106.1633, 2206.9102, 10.5839, 4);
  103. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - The Emerald Isle");
  104. return 1;
  105. }
  106. if (strcmp("/cb willowfield", cmdtext, true, 20) == 0)
  107. {
  108. SetPlayerCheckpoint(playerid, 2399.6631, -1927.5728, 13.2789, 4);
  109. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Cluckin' Bell - Willowfield");
  110. return 1;
  111. }
  112. //burger shot's
  113. if (strcmp("/bs temple", cmdtext, true, 20) == 0)
  114. {
  115. SetPlayerCheckpoint(playerid, 1193.6932,-887.4058,42.8584, 4);
  116. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Temple");
  117. return 1;
  118. }
  119. if (strcmp("/bs redsands east", cmdtext, true, 20) == 0)
  120. {
  121. SetPlayerCheckpoint(playerid, 1907.5609, 2072.8223, 10.5846, 4);
  122. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Redsands East");
  123. return 1;
  124. }
  125. if (strcmp("/bs juniper hollow", cmdtext, true, 20) == 0)
  126. {
  127. SetPlayerCheckpoint(playerid, -2348.8916,982.0187,50.8183, 4);
  128. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Jupiner Hollow");
  129. return 1;
  130. }
  131. if (strcmp("/bs downtown", cmdtext, true, 20) == 0)
  132. {
  133. SetPlayerCheckpoint(playerid, -1906.3114,811.8765,36.1347, 4);
  134. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Downtown");
  135. return 1;
  136. }
  137. if (strcmp("/bs garcia", cmdtext, true, 20) == 0)
  138. {
  139. SetPlayerCheckpoint(playerid, -2344.8093,-124.9554,35.3057, 4);
  140. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Garcia");
  141. return 1;
  142. }
  143. if (strcmp("/bs marina", cmdtext, true, 20) == 0)
  144. {
  145. SetPlayerCheckpoint(playerid, 782.3745, -1612.5681, 13.1391, 4);
  146. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Marina");
  147. return 1;
  148. }
  149. if (strcmp("/bs old venturas strip", cmdtext, true, 25) == 0)
  150. {
  151. SetPlayerCheckpoint(playerid, 2361.7148, 2084.9282, 10.4345, 4);
  152. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Old Venturas Strip");
  153. return 1;
  154. }
  155. if (strcmp("/bs starfish strip", cmdtext, true, 20) == 0)
  156. {
  157. SetPlayerCheckpoint(playerid, 2441.0359, 2017.0809, 10.5841, 4);
  158. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Starfish Strip");
  159. return 1;
  160. }
  161. if (strcmp("/bs whitewood estates", cmdtext, true, 25) == 0)
  162. {
  163. SetPlayerCheckpoint(playerid, 1116.1512,2074.8035,10.5747, 4);
  164. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Whitewood Estates");
  165. return 1;
  166. }
  167. if (strcmp("/bs spinybed", cmdtext, true, 20) == 0)
  168. {
  169. SetPlayerCheckpoint(playerid, 2142.0911,2814.3711,10.5176, 4);
  170. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Burger Shot - Spinybed");
  171. return 1;
  172. }
  173. //pizza stacks
  174. if (strcmp("/ps the emerald isle", cmdtext, true, 20) == 0)
  175. {
  176. SetPlayerCheckpoint(playerid, 2080.2451, 2206.3557, 10.5829, 4);
  177. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - The Emerald Isle");
  178. return 1;
  179. }
  180. if (strcmp("/ps financial", cmdtext, true, 20) == 0)
  181. {
  182. SetPlayerCheckpoint(playerid, -1801.1934, 956.8420, 24.9353, 4);
  183. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Financial");
  184. return 1;
  185. }
  186. if (strcmp("/ps esplanade north", cmdtext, true, 20) == 0)
  187. {
  188. SetPlayerCheckpoint(playerid, -1729.3180, 1352.1045, 7.2413, 4);
  189. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Esplanade North");
  190. return 1;
  191. }
  192. if (strcmp("/ps blueberry", cmdtext, true, 20) == 0)
  193. {
  194. SetPlayerCheckpoint(playerid, 196.4801, -155.2249, 1.2947, 4);
  195. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Blueberry");
  196. return 1;
  197. }
  198. if (strcmp("/ps palomino creek", cmdtext, true, 20) == 0)
  199. {
  200. SetPlayerCheckpoint(playerid, 2338.9280, 79.6917, 26.5176, 4);
  201. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Palomino Creek");
  202. return 1;
  203. }
  204. if (strcmp("/ps montgomery", cmdtext, true, 20) == 0)
  205. {
  206. SetPlayerCheckpoint(playerid, 1354.9136, 242.5144, 19.6636, 4);
  207. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Montgomery");
  208. return 1;
  209. }
  210. if (strcmp("/ps creek", cmdtext, true, 20) == 0)
  211. {
  212. SetPlayerCheckpoint(playerid, 2780.3474, 2440.4202, 10.5822, 4);
  213. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Creek");
  214. return 1;
  215. }
  216. if (strcmp("/ps roca escalante", cmdtext, true, 20) == 0)
  217. {
  218. SetPlayerCheckpoint(playerid, 2338.5354, 2518.4336, 10.5066, 4);
  219. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Roca Escalante");
  220. return 1;
  221. }
  222. if (strcmp("/ps idlewood", cmdtext, true, 20) == 0)
  223. {
  224. SetPlayerCheckpoint(playerid, 2095.8337, -1797.0409, 13.1899, 4);
  225. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Idlewood");
  226. return 1;
  227. }
  228. if (strcmp("/ps starfish casino", cmdtext, true, 20) == 0)
  229. {
  230. SetPlayerCheckpoint(playerid, 2631.9077, 1858.4803, 10.5457, 4);
  231. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pizza Stack - Starfish Casino");
  232. return 1;
  233. }
  234. //gym's
  235. if (strcmp("/g ganton", cmdtext, true, 20) == 0)
  236. {
  237. SetPlayerCheckpoint(playerid, 2234.4302, -1727.4103, 13.2647, 4);
  238. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ganton Gym");
  239. return 1;
  240. }
  241. if (strcmp("/g marital arts", cmdtext, true, 20) == 0)
  242. {
  243. SetPlayerCheckpoint(playerid, -2273.4146, -131.4616, 35.4477, 4);
  244. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Marital Arts Gym");
  245. return 1;
  246. }
  247. if (strcmp("/g below the belt", cmdtext, true, 20) == 0)
  248. {
  249. SetPlayerCheckpoint(playerid, 1964.4536, 2287.7651, 10.5081, 4);
  250. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Below The Belt Gym");
  251. return 1;
  252. }
  253. //24/7
  254. if (strcmp("/24/7 mulholland", cmdtext, true, 20) == 0)
  255. {
  256. SetPlayerCheckpoint(playerid, 1327.0806, -920.1055, 36.7676, 4);
  257. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Mulholland");
  258. return 1;
  259. }
  260. if (strcmp("/24/7 starfish casino", cmdtext, true, 20) == 0)
  261. {
  262. SetPlayerCheckpoint(playerid, 2593.9285, 1973.6770, 10.5775, 4);
  263. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Starfish Casino");
  264. return 1;
  265. }
  266. if (strcmp("/24/7 creek", cmdtext, true, 20) == 0)
  267. {
  268. SetPlayerCheckpoint(playerid, 2883.1511, 2440.1165, 10.5843, 4);
  269. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Creek");
  270. return 1;
  271. }
  272. if (strcmp("/24/7 juniper hill", cmdtext, true, 20) == 0)
  273. {
  274. SetPlayerCheckpoint(playerid, -2429.7515, 741.2960, 35.1430, 4);
  275. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Juniper Hill");
  276. return 1;
  277. }
  278. if (strcmp("/24/7 the emerald isle", cmdtext, true, 20) == 0)
  279. {
  280. SetPlayerCheckpoint(playerid, 2093.7007, 2206.4751, 10.5840, 4);
  281. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - The Emerald Isle");
  282. return 1;
  283. }
  284. if (strcmp("/24/7 old venturas strip", cmdtext, true, 20) == 0)
  285. {
  286. SetPlayerCheckpoint(playerid, 2186.5208, 1979.1324, 10.5846, 4);
  287. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Old Venturas Strip");
  288. return 1;
  289. }
  290. if (strcmp("/24/7 old venturas strip 2", cmdtext, true, 20) == 0)
  291. {
  292. SetPlayerCheckpoint(playerid, 2465.7295, 2058.1682, 10.5070, 4);
  293. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Old Venturas Strip");
  294. return 1;
  295. }
  296. if (strcmp("/24/7 whetstone", cmdtext, true, 20) == 0)
  297. {
  298. SetPlayerCheckpoint(playerid, -1573.5713, -2730.0193, 48.2604, 4);
  299. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Whetstone");
  300. return 1;
  301. }
  302. if (strcmp("/24/7 idlewood", cmdtext, true, 20) == 0)
  303. {
  304. SetPlayerCheckpoint(playerid, 1838.1422, -1871.2747, 13.1060, 4);
  305. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Idlewood");
  306. return 1;
  307. }
  308. if (strcmp("/24/7 redsands east", cmdtext, true, 20) == 0)
  309. {
  310. SetPlayerCheckpoint(playerid, 1932.3293, 2313.6235, 10.5069, 4);
  311. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Redsands East");
  312. return 1;
  313. }
  314. if (strcmp("/24/7 roca escalante", cmdtext, true, 20) == 0)
  315. {
  316. SetPlayerCheckpoint(playerid, 2259.7815, 2408.4136, 10.5096, 4);
  317. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the 24/7 - Roca Escalante");
  318. return 1;
  319. }
  320. //binco's
  321. if (strcmp("/bi the emerald isle", cmdtext, true, 20) == 0)
  322. {
  323. SetPlayerCheckpoint(playerid, 2089.5105, 2206.9495, 10.5833, 4);
  324. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - The Emerald Isle");
  325. return 1;
  326. }
  327. if (strcmp("/bi juniper hill", cmdtext, true, 20) == 0)
  328. {
  329. SetPlayerCheckpoint(playerid, -2379.4583, 899.3407, 45.4919, 4);
  330. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - Juniper Hill");
  331. return 1;
  332. }
  333. if (strcmp("/bi ganton", cmdtext, true, 20) == 0)
  334. {
  335. SetPlayerCheckpoint(playerid, 2259.2715, -1664.2028, 15.1548, 4);
  336. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Binco - Ganton");
  337. return 1;
  338. }
  339. //victim's
  340. if (strcmp("/vt creek", cmdtext, true, 20) == 0)
  341. {
  342. SetPlayerCheckpoint(playerid, 2794.0789, 2428.7979, 10.5850, 4);
  343. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Creek");
  344. return 1;
  345. }
  346. if (strcmp("/vt downtown", cmdtext, true, 20) == 0)
  347. {
  348. SetPlayerCheckpoint(playerid, -1687.6414, 938.4521, 24.9428, 4);
  349. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Downtown");
  350. return 1;
  351. }
  352. if (strcmp("/vt rodeo", cmdtext, true, 20) == 0)
  353. {
  354. SetPlayerCheckpoint(playerid, 456.2662, -1508.7189, 31.0547, 4);
  355. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Victim - Rodeo");
  356. return 1;
  357. }
  358. //pro laps'
  359. if (strcmp("/pl creek", cmdtext, true, 20) == 0)
  360. {
  361. SetPlayerCheckpoint(playerid, 2813.9641, 2406.5139, 10.5856, 4);
  362. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pro Laps - Creek");
  363. return 1;
  364. }
  365. if (strcmp("/pl rodeo", cmdtext, true, 20) == 0)
  366. {
  367. SetPlayerCheckpoint(playerid, 508.5496, -1366.2383, 15.7563, 4);
  368. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Pro Laps - Rodeo");
  369. return 1;
  370. }
  371. //suburban's
  372. if (strcmp("/su creek", cmdtext, true, 20) == 0)
  373. {
  374. SetPlayerCheckpoint(playerid, 2784.7976, 2436.2412, 10.5824, 4);
  375. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SubUrban - Creek");
  376. return 1;
  377. }
  378. if (strcmp("/su hashbury", cmdtext, true, 20) == 0)
  379. {
  380. SetPlayerCheckpoint(playerid, -2496.5063, -19.3609, 25.8116, 4);
  381. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the SubUrban - Hashbury");
  382. return 1;
  383. }
  384. //zip's
  385. if (strcmp("/zp the emerald isle", cmdtext, true, 20) == 0)
  386. {
  387. SetPlayerCheckpoint(playerid, 2048.1777, 2206.7729, 10.5848, 4);
  388. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Zip - The Emerald Isle");
  389. return 1;
  390. }
  391. if (strcmp("/zp downtown", cmdtext, true, 20) == 0)
  392. {
  393. SetPlayerCheckpoint(playerid, -1874.6388, 857.2144, 35.2086, 4);
  394. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Zip - Downtown");
  395. return 1;
  396. }
  397. //didier sachs'
  398. if (strcmp("/ds rodeo", cmdtext, true, 20) == 0)
  399. {
  400. SetPlayerCheckpoint(playerid, 448.9300, -1475.4092, 30.3840, 4);
  401. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Didier Sachs - Rodeo");
  402. return 1;
  403. }
  404. //barbers
  405. if (strcmp("/bb the strip", cmdtext, true, 20) == 0)
  406. {
  407. SetPlayerCheckpoint(playerid, 2072.8931, 2117.9094, 10.5038, 4);
  408. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - The Strip");
  409. return 1;
  410. }
  411. if (strcmp("/bb queens", cmdtext, true, 20) == 0)
  412. {
  413. SetPlayerCheckpoint(playerid, -2561.8420, 247.4589, 11.5590, 4);
  414. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Queens");
  415. return 1;
  416. }
  417. if (strcmp("/bb idlewood", cmdtext, true, 20) == 0)
  418. {
  419. SetPlayerCheckpoint(playerid, 2079.3398, -1781.8812, 13.2633, 4);
  420. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Idlewood");
  421. return 1;
  422. }
  423. if (strcmp("/bb playa del seville", cmdtext, true, 20) == 0)
  424. {
  425. SetPlayerCheckpoint(playerid, 2718.9182, -2033.8898, 13.2194, 4);
  426. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Playa Del Seville");
  427. return 1;
  428. }
  429. if (strcmp("/bb marina", cmdtext, true, 20) == 0)
  430. {
  431. SetPlayerCheckpoint(playerid, 829.4279, -1599.6731, 13.2621, 4);
  432. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Marina");
  433. return 1;
  434. }
  435. if (strcmp("/bb dillimore", cmdtext, true, 20) == 0)
  436. {
  437. SetPlayerCheckpoint(playerid, 676.6548, -499.5542, 16.3641, 4);
  438. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Barber - Dillimore");
  439. return 1;
  440. }
  441. //ammunations
  442. if (strcmp("/an downtown ls", cmdtext, true, 20) == 0)
  443. {
  444. SetPlayerCheckpoint(playerid, 1362.7961, -1296.7817, 13.2407, 4);
  445. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Downtown Los Santos");
  446. return 1;
  447. }
  448. if (strcmp("/an angel pine", cmdtext, true, 20) == 0)
  449. {
  450. SetPlayerCheckpoint(playerid, -2097.7766, -2455.5884, 30.6870, 4);
  451. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Angel Pine");
  452. return 1;
  453. }
  454. if (strcmp("/an come a lot", cmdtext, true, 20) == 0)
  455. {
  456. SetPlayerCheckpoint(playerid, 2152.1165, 933.6719, 10.5057, 4);
  457. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Come-A-Lot");
  458. return 1;
  459. }
  460. if (strcmp("/an el quebrados", cmdtext, true, 20) == 0)
  461. {
  462. SetPlayerCheckpoint(playerid, -1514.5182, 2606.1421, 55.4766, 4);
  463. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - El Quabrados");
  464. return 1;
  465. }
  466. if (strcmp("/an old venturas strip", cmdtext, true, 20) == 0)
  467. {
  468. SetPlayerCheckpoint(playerid, 2531.9075, 2090.3694, 10.6140, 4);
  469. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Old Venturas Strip");
  470. return 1;
  471. }
  472. if (strcmp("/an ocean flats", cmdtext, true, 20) == 0)
  473. {
  474. SetPlayerCheckpoint(playerid, -2633.3518, 212.9680, 4.0024, 4);
  475. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Ocean Flats");
  476. return 1;
  477. }
  478. if (strcmp("/an willowfield", cmdtext, true, 20) == 0)
  479. {
  480. SetPlayerCheckpoint(playerid, 2400.531738, -1980.582885, 13.546875, 4);
  481. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Willowfield");
  482. return 1;
  483. }
  484. if (strcmp("/an bone country", cmdtext, true, 20) == 0)
  485. {
  486. SetPlayerCheckpoint(playerid, 782.1943, 1877.9528, 4.6161, 4);
  487. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Bone Country");
  488. return 1;
  489. }
  490. if (strcmp("/an fort carson", cmdtext, true, 20) == 0)
  491. {
  492. SetPlayerCheckpoint(playerid, -308.3494, 844.8906, 11.3482, 4);
  493. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Fort Carson ");
  494. return 1;
  495. }
  496. if (strcmp("/an blueberry", cmdtext, true, 20) == 0)
  497. {
  498. SetPlayerCheckpoint(playerid, 237.7264, -188.4806, 1.1115, 4);
  499. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Blueberry");
  500. return 1;
  501. }
  502. if (strcmp("/an palomino creek", cmdtext, true, 20) == 0)
  503. {
  504. SetPlayerCheckpoint(playerid, 2338.7817, 54.8092, 26.2002, 4);
  505. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to the Ammunation - Palomino Creek");
  506. return 1;
  507. }
  508. //special locations
  509. if (strcmp("/grovestreet", cmdtext, true, 10) == 0)
  510. {
  511. SetPlayerCheckpoint(playerid, 2495.1013, -1667.7927, 13.3438, 4);
  512. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to Grove Street");
  513. return 1;
  514. }
  515. //other functions
  516. if (strcmp("/dcancel", cmdtext, true, 20) == 0)
  517. {
  518. DisablePlayerCheckpoint(playerid);
  519. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is cancelled");
  520. return 1;
  521. }
  522. if (strcmp("/nhelp", cmdtext, true, 20) == 0)
  523. {
  524. SendClientMessage(playerid, 0xAFAFAFAA,"You can use the Navigator by typing the destination in your chatbubble");
  525. SendClientMessage(playerid, 0xAFAFAFAA,"To see a list of avaible locations, typ: /cb | /bs | /ps | /pd | /24/7 | /bi | /vt | /pl | /ds | /su | /zp | /g | /other");
  526. SendClientMessage(playerid, 0xAFAFAFAA,"If there are locations that are the same, you must typ the place of the location behind it, for example '/cb pilgrim'");
  527. SendClientMessage(playerid, 0xAFAFAFAA,"You can cancel you current destination by the command /dcancel");
  528. return 1;
  529. }
  530. if (strcmp("/cb", cmdtext, true, 10) == 0)
  531. {
  532. SendClientMessage(playerid, 0xAFAFAFAA,"Cluckin' Bell's");
  533. SendClientMessage(playerid, 0xAFAFAFAA," /cb market | /cb east ls | /cb pilgrim | /cb ocean flats | /cb downtown | /cb angle pine");
  534. SendClientMessage(playerid, 0xAFAFAFAA," /cb fort carson | /cb old venturas strip | /cb creek | /cb the emerald isle | /cb willowfield");
  535. return 1;
  536. }
  537. if (strcmp("/bs", cmdtext, true, 10) == 0)
  538. {
  539. SendClientMessage(playerid, 0xAFAFAFAA,"Burger Shot's");
  540. SendClientMessage(playerid, 0xAFAFAFAA," /bs temple | /bs redsands east | /bs juniper hollow | /bs downtown | /bs garcia | /bs marina");
  541. SendClientMessage(playerid, 0xAFAFAFAA," /bs old venturas strip | /bs starfish strip | /bs white estates | /bs spinybed");
  542. return 1;
  543. }
  544. if (strcmp("/pd", cmdtext, true, 10) == 0)
  545. {
  546. SendClientMessage(playerid, 0xAFAFAFAA,"Police Departments");
  547. SendClientMessage(playerid, 0xAFAFAFAA," /lspd | /lvpd | /sfpd");
  548. return 1;
  549. }
  550. if (strcmp("/ps", cmdtext, true, 10) == 0)
  551. {
  552. SendClientMessage(playerid, 0xAFAFAFAA,"Pizza Stack's");
  553. SendClientMessage(playerid, 0xAFAFAFAA," /ps the emerald isle | /ps financial | /ps esplanade north | /ps blueberry | /ps palomino creek");
  554. SendClientMessage(playerid, 0xAFAFAFAA," /ps montgomery | /ps creek | /ps roca escalante | /ps idlewood | /ps starfish casino");
  555. return 1;
  556. }
  557. if (strcmp("/24/7", cmdtext, true, 10) == 0)
  558. {
  559. SendClientMessage(playerid, 0xAFAFAFAA,"24/7's");
  560. SendClientMessage(playerid, 0xAFAFAFAA," /24/7 mulholland | /24/7 starfish casino | /24/7 creek | /24/7 juniper hill | /24/7 the emerald isle");
  561. SendClientMessage(playerid, 0xAFAFAFAA," /24/7 old venturas strip | /24/7 old venturas strip 2 | /24/7 whetstone | /24/7 idlewood | /24/7 redsands east");
  562. SendClientMessage(playerid, 0xAFAFAFAA," /24/7 roca escalante");
  563. return 1;
  564. }
  565. if (strcmp("/bi", cmdtext, true, 10) == 0)
  566. {
  567. SendClientMessage(playerid, 0xAFAFAFAA,"Binco's");
  568. SendClientMessage(playerid, 0xAFAFAFAA," /bi the emerald isle | /bi juniper hollow | /bi ganton");
  569. return 1;
  570. }
  571. if (strcmp("/vt", cmdtext, true, 10) == 0)
  572. {
  573. SendClientMessage(playerid, 0xAFAFAFAA,"Victim's");
  574. SendClientMessage(playerid, 0xAFAFAFAA," /vt creek | /vt downtown | /vt rodeo");
  575. return 1;
  576. }
  577. if (strcmp("/pl", cmdtext, true, 10) == 0)
  578. {
  579. SendClientMessage(playerid, 0xAFAFAFAA,"Pro Lap's");
  580. SendClientMessage(playerid, 0xAFAFAFAA," /pl creek | /pl rodeo");
  581. return 1;
  582. }
  583. if (strcmp("/su", cmdtext, true, 10) == 0)
  584. {
  585. SendClientMessage(playerid, 0xAFAFAFAA,"SubUrban's");
  586. SendClientMessage(playerid, 0xAFAFAFAA," /su creek | /su hashbury");
  587. return 1;
  588. }
  589. if (strcmp("/zp", cmdtext, true, 10) == 0)
  590. {
  591. SendClientMessage(playerid, 0xAFAFAFAA,"Zip's");
  592. SendClientMessage(playerid, 0xAFAFAFAA," /zp the emerald isle | /zp downtown");
  593. return 1;
  594. }
  595. if (strcmp("/ds", cmdtext, true, 10) == 0)
  596. {
  597. SendClientMessage(playerid, 0xAFAFAFAA,"Didier Sach's");
  598. SendClientMessage(playerid, 0xAFAFAFAA," /ds rodeo");
  599. return 1;
  600. }
  601. if (strcmp("/bb", cmdtext, true, 10) == 0)
  602. {
  603. SendClientMessage(playerid, 0xAFAFAFAA,"Barber's");
  604. SendClientMessage(playerid, 0xAFAFAFAA," /bb the strip | /bb queens | /bb idlewood | /bb playa des seville | /bb marina | /bb dillimore");
  605. return 1;
  606. }
  607. if (strcmp("/g", cmdtext, true, 10) == 0)
  608. {
  609. SendClientMessage(playerid, 0xAFAFAFAA,"Gym's");
  610. SendClientMessage(playerid, 0xAFAFAFAA," /g ganton | /g marital arts | /g below the belt");
  611. return 1;
  612. }
  613. if (strcmp("/an", cmdtext, true, 10) == 0)
  614. {
  615. SendClientMessage(playerid, 0xAFAFAFAA,"Ammunations's");
  616. SendClientMessage(playerid, 0xAFAFAFAA," /an downtown ls| /an angle pine | /an come a lot | /an el quabrados | /an old venturas strip | /an ocean flats");
  617. SendClientMessage(playerid, 0xAFAFAFAA," /an willowfield | /an bone country | /an fort carson | /an blueberry");
  618. return 1;
  619. }
  620. if (strcmp("/other", cmdtext, true, 10) == 0)
  621. {
  622. SendClientMessage(playerid, 0xAFAFAFAA,"Other locations");
  623. SendClientMessage(playerid, 0xAFAFAFAA," /grovestreet");
  624. return 1;
  625. }
  626. //If you want to add some other locations, you can do this on this way:
  627.  
  628. //if (strcmp("/newdestination", cmdtext, true, 10) == 0)
  629. //{
  630. //SetPlayerCheckpoint(playerid, -enter your coords- , 4);
  631. //SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: Your destination is setted to -your destination");
  632. //return 1;
  633. //}
  634. return 0;
  635. }
  636.  
  637. public OnPlayerEnterCheckpoint(playerid)
  638. {
  639.  
  640. DisablePlayerCheckpoint(playerid);
  641. SendClientMessage(playerid, 0xAA3333AA,"[Navigation]: You have reached your destination");
  642. return 1;
  643. }
  644.  
Advertisement
Add Comment
Please, Sign In to add comment