Advertisement
Emi_NEm

[Filterscript]GPS System

Aug 29th, 2013
1,443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 24.64 KB | None | 0 0
  1. /*GPS System by EmiNEm (3MY)*/
  2.  
  3. #include <a_samp>
  4.  
  5. #pragma tabsize 0
  6.  
  7. #define COLOR_GREEN 0x33AA33AA
  8. #define COLOR_ORANGE 0xFF9900AA
  9. #define COLOR_RED 0xFF3366FF
  10.  
  11. #define Filterscript
  12. #if defined Filterscript
  13. enum pInfo
  14. {
  15. pWait,
  16. };
  17. new PlayerInfo[MAX_PLAYERS][pInfo];
  18. forward WaitGPS(playerid);
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. print("\n--------------------------------------");
  23. print(" GPS by EmiNEm (3MY)");
  24. print("--------------------------------------\n");
  25. return 1;
  26. }
  27.  
  28. public OnFilterScriptExit()
  29. {
  30. return 1;
  31. }
  32.  
  33. #else
  34.  
  35. main()
  36. {
  37. print("\n----------------------------------");
  38. print(" GPS by EmiNEm (3MY)");
  39. print("----------------------------------\n");
  40. }
  41.  
  42. #endif
  43.  
  44. public OnGameModeInit()
  45. {
  46. return 1;
  47. }
  48. public OnPlayerConnect(playerid)
  49. {
  50.     PlayerInfo[playerid][pWait] = 0;
  51. return 1;
  52. }
  53. public OnPlayerCommandText(playerid, cmdtext[])
  54. {
  55. if (strcmp(cmdtext, "/gps", true)==0)
  56. {
  57. if(IsPlayerConnected(playerid))
  58. {
  59. SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
  60. SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie] /gps2 (next page) {EC0707}/gpssf (San Fierro locations)");
  61. SendClientMessage(playerid, COLOR_GREEN, "/stopgps (It removes the checkpoint from the map)");
  62. SendClientMessage(playerid, COLOR_ORANGE, "Location: CartierProGaming, Mall BancaLS, 24/7, PrimariaLS");
  63. SendClientMessage(playerid, COLOR_ORANGE, "Location: LicenteLS, GunShopLS, Ferma, CarPaint, Politie");
  64. SendClientMessage(playerid, COLOR_ORANGE, "Location: Pizza, Binco, PigPen, Alhambra, SRI, Aeroport");
  65. SendClientMessage(playerid, COLOR_ORANGE, "Location: BurgerShot, Benzinarie, Benzinarie2, Benzinarie3,");
  66. SendClientMessage(playerid, COLOR_ORANGE, "Location: Dealership, Dealership2, Spital, FermaTractorist");
  67. SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
  68. }
  69.    }
  70.     if (strcmp(cmdtext, "/gps2", true)==0)
  71. {
  72. if(IsPlayerConnected(playerid))
  73. {
  74. SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
  75. SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie]");
  76. SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (It removes the checkpoint from the map)");
  77. SendClientMessage(playerid, COLOR_ORANGE, "Location: GroveStreet, Jefferson, Rodeo, SantaMaria, VeronaBeach");
  78. SendClientMessage(playerid, COLOR_ORANGE, "Location: Marina, Mulholland, Richman, FlintCounty, EastBeach");
  79. SendClientMessage(playerid, COLOR_ORANGE, "Location: LosFlores, ElCorona, Ganton, Mall, Vinewood");
  80. SendClientMessage(playerid, COLOR_ORANGE, "Location: Dillimore, Blueberry, Montgomery, PalominoCreek");
  81. SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
  82. }
  83.    }
  84. if (strcmp(cmdtext, "/gpssf", true)==0)
  85. {
  86. if(IsPlayerConnected(playerid))
  87. {
  88. SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
  89. SendClientMessage(playerid, COLOR_GREEN, "/gps [location]");
  90. SendClientMessage(playerid, COLOR_GREEN, "/stopgps (It removes the checkpoint from the map)");
  91. SendClientMessage(playerid, COLOR_ORANGE, "Location: PrimariaSF, BancaSF, LicenteSF, DrugStoreSF, GunShopSF, CnnSF");
  92. SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
  93. }
  94.    }
  95.  
  96.  
  97.                 if(IsPlayerConnected(playerid))
  98.  
  99. if (strcmp(cmdtext, "/gps LicenteLS", true)==0)
  100. {
  101. if(PlayerInfo[playerid][pWait] == 0)
  102.         {
  103. SetPlayerCheckpoint(playerid,1412.0840,-1701.5978,13.5395,5);
  104. PlayerInfo[playerid][pWait] = 1;
  105. SetTimer("WaitGPS", 300000, false);
  106. }
  107. }
  108.  
  109. if (strcmp(cmdtext, "/gps BancaLS", true)==0)
  110. {
  111. if(PlayerInfo[playerid][pWait] == 0)
  112.         {
  113. SetPlayerCheckpoint(playerid,1461.7273,-1023.7429,23.4017,5);
  114. PlayerInfo[playerid][pWait] = 1;
  115. SetTimer("WaitGPS", 300000, false);
  116.                 }
  117.                 else
  118.                 {
  119.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  120.                 }
  121. }
  122. if (strcmp(cmdtext, "/gps 24/7", true)==0)
  123. {
  124. if(PlayerInfo[playerid][pWait] == 0)
  125.         {
  126. SetPlayerCheckpoint(playerid,1315.3618,-899.8662,39.1489,5);
  127. PlayerInfo[playerid][pWait] = 1;
  128. SetTimer("WaitGPS", 300000, false);
  129.                 }
  130.                 else
  131.                 {
  132.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  133.                 }
  134. }
  135. if (strcmp(cmdtext, "/gps Dealership", true)==0)
  136. {
  137. if(PlayerInfo[playerid][pWait] == 0)
  138.         {
  139. SetPlayerCheckpoint(playerid,838.007934,-2064.709960,12.867187,5);
  140. PlayerInfo[playerid][pWait] = 1;
  141. SetTimer("WaitGPS", 300000, false);
  142.                 }
  143.                 else
  144.                 {
  145.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  146.                 }
  147. }
  148. if (strcmp(cmdtext, "/gps Dealership2", true)==0)
  149. {
  150. if(PlayerInfo[playerid][pWait] == 0)
  151.         {
  152. SetPlayerCheckpoint(playerid,1553.2808,-1019.0084,23.9063,5);
  153. PlayerInfo[playerid][pWait] = 1;
  154. SetTimer("WaitGPS", 300000, false);
  155.                 }
  156.                 else
  157.                 {
  158.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  159.                 }
  160. }
  161. if (strcmp(cmdtext, "/gps CartierProGaming", true)==0)
  162. {
  163. if(PlayerInfo[playerid][pWait] == 0)
  164.         {
  165. SetPlayerCheckpoint(playerid,2865.053710,-1962.187255,11.109375,5);
  166. PlayerInfo[playerid][pWait] = 1;
  167. SetTimer("WaitGPS", 300000, false);
  168.                 }
  169.                 else
  170.                 {
  171.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  172.                 }
  173. }
  174. if (strcmp(cmdtext, "/gps Aeroport", true)==0)
  175. {
  176. if(PlayerInfo[playerid][pWait] == 0)
  177.         {
  178. SetPlayerCheckpoint(playerid,1599.2776,-2328.4224,13.5366,5);
  179. PlayerInfo[playerid][pWait] = 1;
  180. SetTimer("WaitGPS", 300000, false);
  181.                 }
  182.                 else
  183.                 {
  184.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  185.                 }
  186. }
  187. if (strcmp(cmdtext, "/gps PrimariaLS", true)==0)
  188. {
  189. if(PlayerInfo[playerid][pWait] == 0)
  190.         {
  191. SetPlayerCheckpoint(playerid,1480.8268,-1744.1536,13.1170,5);
  192. PlayerInfo[playerid][pWait] = 1;
  193. SetTimer("WaitGPS", 300000, false);
  194.                 }
  195.                 else
  196.                 {
  197.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  198.                 }
  199. }
  200. if (strcmp(cmdtext, "/gps Politie", true)==0)
  201. {
  202. if(PlayerInfo[playerid][pWait] == 0)
  203.         {
  204. SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
  205. PlayerInfo[playerid][pWait] = 1;
  206. SetTimer("WaitGPS", 300000, false);
  207.                 }
  208.                 else
  209.                 {
  210.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  211.                 }
  212. }
  213. if (strcmp(cmdtext, "/gps GroveStreet", true)==0)
  214. {
  215. if(PlayerInfo[playerid][pWait] == 0)
  216.         {
  217. SetPlayerCheckpoint(playerid,2493.8511,-1669.5573,12.9113,5);
  218. PlayerInfo[playerid][pWait] = 1;
  219. SetTimer("WaitGPS", 300000, false);
  220.                 }
  221.                 else
  222.                 {
  223.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  224.                 }
  225. }
  226. if (strcmp(cmdtext, "/gps Jefferson", true)==0)
  227. {
  228. if(PlayerInfo[playerid][pWait] == 0)
  229.         {
  230. SetPlayerCheckpoint(playerid,2220.9824,-1148.7661,25.3504,5);
  231. PlayerInfo[playerid][pWait] = 1;
  232. SetTimer("WaitGPS", 300000, false);
  233.                 }
  234.                 else
  235.                 {
  236.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  237.                 }
  238. }
  239. if (strcmp(cmdtext, "/gps Benzinarie", true)==0)
  240. {
  241. if(PlayerInfo[playerid][pWait] == 0)
  242.         {
  243. SetPlayerCheckpoint(playerid,1005.4007,-940.1948,41.7549,5);
  244. PlayerInfo[playerid][pWait] = 1;
  245. SetTimer("WaitGPS", 300000, false);
  246.                 }
  247.                 else
  248.                 {
  249.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  250.                 }
  251. }
  252. if (strcmp(cmdtext, "/gps Rodeo", true)==0)
  253. {
  254. if(PlayerInfo[playerid][pWait] == 0)
  255.         {
  256. SetPlayerCheckpoint(playerid,347.7415,-1367.7371,13.9776,5);
  257. PlayerInfo[playerid][pWait] = 1;
  258. SetTimer("WaitGPS", 300000, false);
  259.                 }
  260.                 else
  261.                 {
  262.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  263.                 }
  264. }
  265. if (strcmp(cmdtext, "/SantaMaria -", true)==0)
  266. {
  267. if(PlayerInfo[playerid][pWait] == 0)
  268.         {
  269. SetPlayerCheckpoint(playerid,327.8009,-1797.7816,4.2844,5);
  270. PlayerInfo[playerid][pWait] = 1;
  271. SetTimer("WaitGPS", 300000, false);
  272.                 }
  273.                 else
  274.                 {
  275.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  276.                 }
  277. }
  278. if (strcmp(cmdtext, "/gps VeronaBeach", true)==0)
  279. {
  280. if(PlayerInfo[playerid][pWait] == 0)
  281.         {
  282. SetPlayerCheckpoint(playerid,831.8949,-1819.0989,11.8452,5);
  283. PlayerInfo[playerid][pWait] = 1;
  284. SetTimer("WaitGPS", 300000, false);
  285.                 }
  286.                 else
  287.                 {
  288.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  289.                 }
  290. }
  291. if (strcmp(cmdtext, "/gps Marina", true)==0)
  292. {
  293. if(PlayerInfo[playerid][pWait] == 0)
  294.         {
  295. SetPlayerCheckpoint(playerid,728.5689,-1593.4337,13.9832,5);
  296. PlayerInfo[playerid][pWait] = 1;
  297. SetTimer("WaitGPS", 300000, false);
  298.                 }
  299.                 else
  300.                 {
  301.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  302.                 }
  303. }
  304. if (strcmp(cmdtext, "/gps GunShopLS", true)==0)
  305. {
  306. if(PlayerInfo[playerid][pWait] == 0)
  307.         {
  308. SetPlayerCheckpoint(playerid,1364.6945,-1279.8040,13.1127,5);
  309. PlayerInfo[playerid][pWait] = 1;
  310. SetTimer("WaitGPS", 300000, false);
  311.                 }
  312.                 else
  313.                 {
  314.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  315.                 }
  316. }
  317. if (strcmp(cmdtext, "/gps Spital", true)==0)
  318. {
  319. if(PlayerInfo[playerid][pWait] == 0)
  320.         {
  321. SetPlayerCheckpoint(playerid,1183.3936,-1323.9601,13.1430,5);
  322. PlayerInfo[playerid][pWait] = 1;
  323. SetTimer("WaitGPS", 300000, false);
  324.                 }
  325.                 else
  326.                 {
  327.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  328.                 }
  329. }
  330. if (strcmp(cmdtext, "/gps Mall", true)==0)
  331. {
  332. if(PlayerInfo[playerid][pWait] == 0)
  333.         {
  334. SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
  335. PlayerInfo[playerid][pWait] = 1;
  336. SetTimer("WaitGPS", 300000, false);
  337.                 }
  338.                 else
  339.                 {
  340.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  341.                 }
  342. }
  343. if (strcmp(cmdtext, "/gps Mulholland", true)==0)
  344. {
  345. if(PlayerInfo[playerid][pWait] == 0)
  346.         {
  347. SetPlayerCheckpoint(playerid,1338.9668,-694.6091,91.4037,5);
  348. PlayerInfo[playerid][pWait] = 1;
  349. SetTimer("WaitGPS", 300000, false);
  350.                 }
  351.                 else
  352.                 {
  353.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  354.                 }
  355. }
  356. if (strcmp(cmdtext, "/gps Richman", true)==0)
  357. {
  358. if(PlayerInfo[playerid][pWait] == 0)
  359.         {
  360. SetPlayerCheckpoint(playerid,675.6179,-1061.0540,48.9433,5);
  361. PlayerInfo[playerid][pWait] = 1;
  362. SetTimer("WaitGPS", 300000, false);
  363.                 }
  364.                 else
  365.                 {
  366.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  367.                 }
  368. }
  369. if (strcmp(cmdtext, "/gps FlintCounty", true)==0)
  370. {
  371. if(PlayerInfo[playerid][pWait] == 0)
  372.         {
  373. SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
  374. PlayerInfo[playerid][pWait] = 1;
  375. SetTimer("WaitGPS", 300000, false);
  376.                 }
  377.                 else
  378.                 {
  379.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  380.                 }
  381. }
  382. if (strcmp(cmdtext, "/gps Benzinarie2", true)==0)
  383. {
  384. if(PlayerInfo[playerid][pWait] == 0)
  385.         {
  386. SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
  387. PlayerInfo[playerid][pWait] = 1;
  388. SetTimer("WaitGPS", 300000, false);
  389.                 }
  390.                 else
  391.                 {
  392.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  393.                 }
  394. }
  395. if (strcmp(cmdtext, "/gps Ferma", true)==0)
  396. {
  397. if(PlayerInfo[playerid][pWait] == 0)
  398.         {
  399. SetPlayerCheckpoint(playerid,-376.0385,-1440.0708,25.2968,5);
  400. PlayerInfo[playerid][pWait] = 1;
  401. SetTimer("WaitGPS", 300000, false);
  402.                 }
  403.                 else
  404.                 {
  405.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  406.                 }
  407. }
  408. if (strcmp(cmdtext, "/gps BurgerShot", true)==0)
  409. {
  410. if(PlayerInfo[playerid][pWait] == 0)
  411.         {
  412. SetPlayerCheckpoint(playerid,819.6470,-1619.0469,13.1127,5);
  413. PlayerInfo[playerid][pWait] = 1;
  414. SetTimer("WaitGPS", 300000, false);
  415.                 }
  416.                 else
  417.                 {
  418.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  419.                 }
  420. }
  421. if (strcmp(cmdtext, "/gps Binco", true)==0)
  422. {
  423. if(PlayerInfo[playerid][pWait] == 0)
  424.         {
  425. SetPlayerCheckpoint(playerid,2245.066406,-1662.401000,15.469003,5);
  426. PlayerInfo[playerid][pWait] = 1;
  427. SetTimer("WaitGPS", 300000, false);
  428.                 }
  429.                 else
  430.                 {
  431.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  432.                 }
  433. }
  434. if (strcmp(cmdtext, "/gps Pizza", true)==0)
  435. {
  436. if(PlayerInfo[playerid][pWait] == 0)
  437.         {
  438. SetPlayerCheckpoint(playerid,2093.0984,-1807.0825,13.1196,5);
  439. PlayerInfo[playerid][pWait] = 1;
  440. SetTimer("WaitGPS", 300000, false);
  441.                 }
  442.                 else
  443.                 {
  444.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  445.                 }
  446. }
  447. if (strcmp(cmdtext, "/gps CarPaint", true)==0)
  448. {
  449. if(PlayerInfo[playerid][pWait] == 0)
  450.         {
  451. SetPlayerCheckpoint(playerid,2074.3252,-1830.9292,13.1171,5);
  452. PlayerInfo[playerid][pWait] = 1;
  453. SetTimer("WaitGPS", 300000, false);
  454.                 }
  455.                 else
  456.                 {
  457.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  458.                 }
  459. }
  460. if (strcmp(cmdtext, "/gps EastBeach", true)==0)
  461. {
  462. if(PlayerInfo[playerid][pWait] == 0)
  463.         {
  464. SetPlayerCheckpoint(playerid,2732.0156,-1662.9469,12.8089,5);
  465. PlayerInfo[playerid][pWait] = 1;
  466. SetTimer("WaitGPS", 300000, false);
  467.                 }
  468.                 else
  469.                 {
  470.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  471.                 }
  472. }
  473. if (strcmp(cmdtext, "/gps LosFlores", true)==0)
  474. {
  475. if(PlayerInfo[playerid][pWait] == 0)
  476.         {
  477. SetPlayerCheckpoint(playerid,2729.4907,-1258.4280,59.1302,5);
  478. PlayerInfo[playerid][pWait] = 1;
  479. SetTimer("WaitGPS", 300000, false);
  480.                 }
  481.                 else
  482.                 {
  483.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  484.                 }
  485. }
  486. if (strcmp(cmdtext, "/gps PigPen", true)==0)
  487. {
  488. if(PlayerInfo[playerid][pWait] == 0)
  489.         {
  490. SetPlayerCheckpoint(playerid,2418.3625,-1234.1200,23.9079,5);
  491. PlayerInfo[playerid][pWait] = 1;
  492. SetTimer("WaitGPS", 300000, false);
  493.                 }
  494.                 else
  495.                 {
  496.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  497.                 }
  498. }
  499. if (strcmp(cmdtext, "/gps Alhambra", true)==0)
  500. {
  501. if(PlayerInfo[playerid][pWait] == 0)
  502.         {
  503. SetPlayerCheckpoint(playerid,1827.9978,-1683.6870,13.1136,5);
  504. PlayerInfo[playerid][pWait] = 1;
  505. SetTimer("WaitGPS", 300000, false);
  506.                 }
  507.                 else
  508.                 {
  509.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  510.                 }
  511. }
  512. if (strcmp(cmdtext, "/gps FermaTractorist", true)==0)
  513. {
  514. if(PlayerInfo[playerid][pWait] == 0)
  515.         {
  516. SetPlayerCheckpoint(playerid,-37.921279,-1.555945,3.117187,5);
  517. PlayerInfo[playerid][pWait] = 1;
  518. SetTimer("WaitGPS", 300000, false);
  519.                 }
  520.                 else
  521.                 {
  522.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  523.                 }
  524. }
  525. if (strcmp(cmdtext, "/gps SRI", true)==0)
  526. {
  527. if(PlayerInfo[playerid][pWait] == 0)
  528.         {
  529. SetPlayerCheckpoint(playerid,325.586669,-1515.012939,36.032508,5);
  530. PlayerInfo[playerid][pWait] = 1;
  531. SetTimer("WaitGPS", 300000, false);
  532.                 }
  533.                 else
  534.                 {
  535.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  536.                 }
  537. }
  538. if (strcmp(cmdtext, "/gps ElCorona", true)==0)
  539. {
  540. if(PlayerInfo[playerid][pWait] == 0)
  541.         {
  542. SetPlayerCheckpoint(playerid,1822.0739,-2081.0579,12.9534,5);
  543. PlayerInfo[playerid][pWait] = 1;
  544. SetTimer("WaitGPS", 300000, false);
  545.                 }
  546.                 else
  547.                 {
  548.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  549.                 }
  550. }
  551. if (strcmp(cmdtext, "/gps Ganton", true)==0)
  552. {
  553. if(PlayerInfo[playerid][pWait] == 0)
  554.         {
  555. SetPlayerCheckpoint(playerid,2314.2036,-1742.4119,12.9531,5);
  556. PlayerInfo[playerid][pWait] = 1;
  557. SetTimer("WaitGPS", 300000, false);
  558.                 }
  559.                 else
  560.                 {
  561.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  562.                 }
  563. }
  564. if (strcmp(cmdtext, "/gps Mall", true)==0)
  565. {
  566. if(PlayerInfo[playerid][pWait] == 0)
  567.         {
  568. SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
  569. PlayerInfo[playerid][pWait] = 1;
  570. SetTimer("WaitGPS", 300000, false);
  571.                 }
  572.                 else
  573.                 {
  574.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  575.                 }
  576. }
  577. if (strcmp(cmdtext, "/gps Vinewood", true)==0)
  578. {
  579. if(PlayerInfo[playerid][pWait] == 0)
  580.         {
  581. SetPlayerCheckpoint(playerid,1103.8586,-941.0670,42.4828,5);
  582. PlayerInfo[playerid][pWait] = 1;
  583. SetTimer("WaitGPS", 300000, false);
  584.                 }
  585.                 else
  586.                 {
  587.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  588.                 }
  589. }
  590. if (strcmp(cmdtext, "/gps Dillimore", true)==0)
  591.                  {
  592. if(PlayerInfo[playerid][pWait] == 0)
  593.         {
  594. SetPlayerCheckpoint(playerid,635.8654,-570.4843,15.9069,5);
  595. PlayerInfo[playerid][pWait] = 1;
  596. SetTimer("WaitGPS", 300000, false);
  597.                 }
  598.                 else
  599.                 {
  600.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  601.                 }
  602. }
  603. if (strcmp(cmdtext, "/gps Benzinarie3", true)==0)
  604. {
  605. if(PlayerInfo[playerid][pWait] == 0)
  606.         {
  607. SetPlayerCheckpoint(playerid,651.2009,-563.4557,15.8840,5);
  608. PlayerInfo[playerid][pWait] = 1;
  609. SetTimer("WaitGPS", 300000, false);
  610.                 }
  611.                 else
  612.                 {
  613.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  614.                 }
  615. }
  616. if (strcmp(cmdtext, "/gps Blueberry", true)==0)
  617. {
  618. if(PlayerInfo[playerid][pWait] == 0)
  619.         {
  620. SetPlayerCheckpoint(playerid,161.5037,-205.9166,1.1486,5);
  621. PlayerInfo[playerid][pWait] = 1;
  622. SetTimer("WaitGPS", 300000, false);
  623.                 }
  624.                 else
  625.                 {
  626.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  627.                 }
  628. }
  629. if (strcmp(cmdtext, "/gps Montgomery", true)==0)
  630. {
  631. if(PlayerInfo[playerid][pWait] == 0)
  632.         {
  633. SetPlayerCheckpoint(playerid,1340.4523,257.0470,19.1249,5);
  634. PlayerInfo[playerid][pWait] = 1;
  635. SetTimer("WaitGPS", 300000, false);
  636.                 }
  637.                 else
  638.                 {
  639.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  640.                 }
  641. }
  642. if (strcmp(cmdtext, "/gps PalominoCreek", true)==0)
  643. {
  644. if(PlayerInfo[playerid][pWait] == 0)
  645.         {
  646. SetPlayerCheckpoint(playerid,2337.7549,43.0897,26.0518,5);
  647. PlayerInfo[playerid][pWait] = 1;
  648. SetTimer("WaitGPS", 300000, false);
  649.                 }
  650.                 else
  651.                 {
  652.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  653.                 }
  654. }
  655. if (strcmp(cmdtext, "/gps PrimariaSF", true)==0)
  656. {
  657. if(PlayerInfo[playerid][pWait] == 0)
  658.         {
  659. SetPlayerCheckpoint(playerid,-2756.8433,375.6679,4.3345,5);
  660. PlayerInfo[playerid][pWait] = 1;
  661. SetTimer("WaitGPS", 300000, false);
  662.                 }
  663.                 else
  664.                 {
  665.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  666.                 }
  667. }
  668. if (strcmp(cmdtext, "/gps BancaSF", true)==0)
  669. {
  670. if(PlayerInfo[playerid][pWait] == 0)
  671.         {
  672. SetPlayerCheckpoint(playerid,-2414.1084,330.9960,34.9755,5);
  673. PlayerInfo[playerid][pWait] = 1;
  674. SetTimer("WaitGPS", 300000, false);
  675.                 }
  676.                 else
  677.                 {
  678.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  679.                 }
  680. }
  681. if (strcmp(cmdtext, "/gps LicenteSF", true)==0)
  682. {
  683. if(PlayerInfo[playerid][pWait] == 0)
  684.         {
  685. SetPlayerCheckpoint(playerid,-2026.543090,-101.443748,35.164062,5);
  686. PlayerInfo[playerid][pWait] = 1;
  687. SetTimer("WaitGPS", 300000, false);
  688.                 }
  689.                 else
  690.                 {
  691.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  692.                 }
  693. }
  694. if (strcmp(cmdtext, "/gps GunShopSF", true)==0)
  695. {
  696. if(PlayerInfo[playerid][pWait] == 0)
  697.         {
  698. SetPlayerCheckpoint(playerid,-2626.0784,211.0085,4.6121,5);
  699. PlayerInfo[playerid][pWait] = 1;
  700. SetTimer("WaitGPS", 300000, false);
  701.                 }
  702.                 else
  703.                 {
  704.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  705.                 }
  706. }
  707. if (strcmp(cmdtext, "/gps DrugStoreSF", true)==0)
  708. {
  709. if(PlayerInfo[playerid][pWait] == 0)
  710.         {
  711. SetPlayerCheckpoint(playerid,-2096.9119,85.7754,35.3134,5);
  712. PlayerInfo[playerid][pWait] = 1;
  713. SetTimer("WaitGPS", 300000, false);
  714.                 }
  715.                 else
  716.                 {
  717.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  718.                 }
  719. }
  720. if (strcmp(cmdtext, "/gps CnnSF", true)==0)
  721. {
  722. if(PlayerInfo[playerid][pWait] == 0)
  723.         {
  724. SetPlayerCheckpoint(playerid,-2656.675292,375.925445,4.333777,5);
  725. PlayerInfo[playerid][pWait] = 1;
  726. SetTimer("WaitGPS", 300000, false);
  727.                 }
  728.                 else
  729.                 {
  730.                 SendClientMessage( playerid, COLOR_GREEN, "{F00505}(Anti-Abuse) {0489A6}You can use GPS only one time!" );
  731.                 }
  732. }
  733.  
  734. if(strcmp(cmdtext,"/stopgps",true)==0)
  735.       {
  736. if(IsPlayerConnected(playerid))
  737. {
  738. DisablePlayerCheckpoint(playerid);
  739. }
  740. }
  741.  
  742. return 0;
  743. }
  744. public WaitGPS(playerid)
  745. {
  746.            PlayerInfo[playerid][pWait] = 0; // dupa timpul ales, asta ii va da voie sa foloseasca GPS iar.
  747. return 1;
  748. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement