Emi_NEm

GPS

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