Guest User

RUNIX COPS AND ROBBERS WHOLE SCRIPT

a guest
May 6th, 2012
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 406.81 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dudb>
  3. #include <CPLoader>
  4.  
  5. /*x---------------------------------Defining-------------------------------------x*/
  6. //**COLORS*//
  7. #define COLOR_GREY 0xAFAFAFAA
  8. #define COLOR_GREEN 0x33AA33AA
  9. #define COLOR_RED 0xAA3333AA
  10. #define COLOR_YELLOW 0xFFFF00AA
  11. #define COLOR_WHITE 0xFFFFFFAA
  12. #define COLOR_BLUE 0x0000FFAA
  13. #define blue 0x0000FFAA
  14. #define COLOR_BROWN 0x993300AA
  15. #define COLOR_ORANGE 0xFF9933AA
  16. #define COLOR_CYAN 0x99FFFFAA
  17. #define COLOR_PINK 0xFF66FFAA
  18. #define COLOR_BLACK 0x2C2727AA
  19. #define COLOR_LIGHTCYAN 0xAAFFCC33
  20. #define COLOR_LEMON 0xDDDD2357
  21. #define COLOR_AQUA 0x7CFC00AA
  22. #define COLOR_WHITEYELLOW 0xFFE87DFF
  23. #define COLOR_BLUEAQUA 0x7E60FFFF
  24. #define COLOR_DARKBLUE 0x15005EFF
  25. #define COLOR_ALIEN 0x90FF87FF
  26. #define COLOR_GOLD 0xB8860BAA
  27. #define KICK_COLOR 0xFF0000FF
  28. #define COLOR_GANGGREEN 0x00FF0096
  29. #define COLOR_BLACK 0x2C2727AA
  30. #define COLOR_SBLUE 0x00BFFFAA
  31.  
  32. #define WHITE 0xF6F6F6AA
  33. #define GREY 0xC6C6C6AA
  34. #define RED 0xF60000AA
  35. #define COLOR_ERROR 0xF60000AA
  36. #define COLOR_RED 0xAA3333AA
  37. #define LIGHT_BLUE 0x00A4F6AA
  38. #define BLUE 0x0000F6AA
  39. #define DARK_BLUE 0x0000AFAA
  40. #define LIGHT_GREEN 0x00F600AA
  41. #define GREEN 0x00AD00AA
  42. #define DARK_GREEN 0x005000AA
  43. #define YELLOW 0xF6F600AA
  44. #define ORANGE 0xF67F00AA
  45. #define BLACK 0x000000AA
  46. #define COLOR_ROYALBLUE 0x4169FFAA
  47. #define PINK 0xFF6EC7AA
  48.  
  49. #define SERVER_COLOR 0x85F600AA
  50. #define ERROR 0x990000AA
  51.  
  52. #define COLOR_MSG 0x00FFFFFF //Color of general messages
  53. #define STUNNED_TIME 4 //The time in seconds the stun lasts
  54. #define ANTISPAM 5 //The minimum allowed time between /taze commands
  55. #define COLOR_KILLED 0x880000FF //The color, when a player gets killed by tazing
  56.  
  57. #define CIVILIAN 0
  58. #define Medic 1
  59. #define COP 2
  60. #define FBI 3
  61. #define SWAT 4
  62. #define ARMY 5
  63. //--------------Taxi-----------
  64. #define BAJADA_DE_BANDERA 500
  65. #define PRECIO_FICHA 300
  66. #define COLOR_YELLOW 0xFFFF00AA
  67. //-----------------------------
  68.  
  69. /* ----------HIT COMMAND----------*/
  70. #define COLOR_FOUND 0xFFFF00AA //Color of the message if a hit was found in /hits
  71. #define COLOR_MSG 0x00FFFFFF //Color of general messages
  72. #define ANTISPAM_TIME 5 //The minimum time between /hit commands to prevent spam (in seconds)
  73. /*----------NO NEED TO EDIT FROM HERE----------*/
  74.  
  75. #define MAX_PLAYERS_ 50
  76.  
  77. #define SPAWN_GAS_MIN   35
  78. #define SPAWN_GAS_MAX   100
  79. #define MAX_START_TIME  3
  80.  
  81. #define BAJADA_DE_BANDERA2 500
  82. #define PRECIO_FICHA2 300
  83.  
  84. #define RegisterName 1
  85. #define LoginName 2
  86.  
  87. #define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)
  88.  
  89. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  90.  
  91. static gTeam[MAX_PLAYERS];
  92.  
  93. new GPSTimer[MAX_PLAYERS];
  94. new bool:HaveGPS[MAX_PLAYERS];
  95.  
  96. enum aInfo
  97. {
  98.         aLevel
  99. }
  100. ;
  101. new AccountInfo[MAX_PLAYERS][aInfo];
  102.  
  103. new RecentlyRobbed[MAX_PLAYERS];
  104. new ATMRecentlyRobbed;
  105. new DildoRecentlyRobbed;
  106. new HallRecentlyRobbed;
  107. new RentalRecentlyRobbed;
  108. new BankRecentlyRobbed;
  109. new BincoRecentlyRobbed;
  110. new ZipRecentlyRobbed;
  111. new UrbanRecentlyRobbed;
  112. new AmmuRecentlyRobbed;
  113. new Ammu2RecentlyRobbed;
  114. new Ammu3RecentlyRobbed;
  115. new Ammu4RecentlyRobbed;
  116. new Ammu5RecentlyRobbed;
  117. new DrugsRecentlyRobbed;
  118. new D4RecentlyRobbed;
  119. new CaRecentlyRobbed;
  120.  
  121. new gPlayerUsingLoopingAnim[MAX_PLAYERS];
  122. new animation[200];
  123.  
  124. //BUS
  125. new OnBusAsPassenger[MAX_PLAYERS];
  126. new CostoDelViaje2[MAX_PLAYERS];
  127. new contador2[MAX_PLAYERS];
  128. new playerInMiniMission2[MAX_PLAYERS];
  129. new avisado2[MAX_PLAYERS];
  130. new caidadeficha2Timer2;
  131. new cantidadPasajeros2;
  132.  
  133. forward terminarMission2(playerid);
  134. forward caidadeficha2();
  135. //
  136.  
  137. new IsSpawned[MAX_PLAYERS];
  138.  
  139. new SelectBM[MAX_PLAYERS];
  140.  
  141. new PlayerSkin[MAX_PLAYERS];
  142.  
  143. new SelectTM[MAX_PLAYERS];
  144.  
  145. new InTrashMission[MAX_PLAYERS];
  146.  
  147. new time;
  148.  
  149. new Muted[MAX_PLAYERS];
  150.  
  151. new ticketmen[MAX_PLAYERS];
  152.  
  153. //Lotto
  154. #define yellow                  0xFFFF00AA
  155. #define green                   0x33FF33AA
  156. #define white                   0xFFFFFFAA
  157. #define red                     0xFF0000AA
  158. #define grgreen                 0x33AA33AA
  159.  
  160. #define SORSOLASTIMER           120000      // 2 perc
  161. #define HIRDETESTIMER           180000      // 3 min
  162. #define ALTERNATIVE_MAX_PLAYERS 500
  163. //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
  164.  
  165. new bool:HaveTicket[ALTERNATIVE_MAX_PLAYERS];
  166. new NyeroSzamok[6][ALTERNATIVE_MAX_PLAYERS];
  167. new KisorsoltSzamok[6];
  168. new TimerKill[2];
  169. new output2[128];
  170.  
  171. forward Sorsolas();
  172. forward GPSUpdate(playerid,playerid2);
  173. //
  174.  
  175.  
  176. //Text Draws
  177. new Text:BOX;
  178. new Text:Welcome;
  179. new Text:text1;
  180. new Text:text2;
  181. new Text:text3;
  182. new Text:BOX2;
  183. new Text:CIVBOX;
  184. new Text:text6;
  185. new Text:text7;
  186. new Text:text8;
  187. new Text:text9;
  188. new Text:text10;
  189. new Text:HALLBOX;
  190. new Text:COPBOX;
  191. new Text:MDCBOX;
  192. new Text:text11;
  193. new Text:text12;
  194. new Text:text13;
  195. new Text:text14;
  196. new Text:text15;
  197. new Text:text16;
  198. new Text:text17;
  199. new Text:text18;
  200. new Text:text19;
  201. new Text:text20;
  202. new Text:text21;
  203. new Text:text22;
  204. new Text:text23;
  205. new Text:CMDBOX;
  206. new Text:BUSBOX;
  207. new Text:text24;
  208. new Text:text25;
  209. new Text:text26;
  210. new Text:text27;
  211. new Text:BBOX;
  212. new Text:text35;
  213. new Text:text36;
  214. new Text:text37;
  215. new Text:text38;
  216. new Text:text39;
  217. new Text:text40;
  218. new Text:AMMUBOX1;
  219. new Text:AMMUBOX2;
  220. new Text:text41;
  221. new Text:text42;
  222. new Text:text43;
  223. new Text:PCBOX;
  224. new Text:text44;
  225. new Text:text45;
  226.  
  227. new CSKIN[MAX_PLAYERS];
  228. new CSKINZ[MAX_PLAYERS];
  229. new CSKINU[MAX_PLAYERS];
  230. new AMMUBOX[MAX_PLAYERS];
  231. new AMMU[MAX_PLAYERS];
  232.  
  233. new hit[MAX_PLAYERS];
  234. new hiter[MAX_PLAYERS];
  235. new antispam[MAX_PLAYERS];
  236.  
  237. new CHALLBOX[MAX_PLAYERS];
  238.  
  239. //--------------Taxi-----------
  240. new OnTaxiAsPassenger[MAX_PLAYERS];
  241. new CostoDelViaje[MAX_PLAYERS];
  242. new contador[MAX_PLAYERS];
  243. new playerInJob[MAX_PLAYERS];
  244. new avisado[MAX_PLAYERS];
  245. new caidadefichaTimer;
  246. new cantidadPasajeros;
  247. //-----------------------------
  248.  
  249. new PrisonTime[MAX_PLAYERS];
  250. new BlowTime[MAX_PLAYERS];
  251. new IsPlayerLogged[MAX_PLAYERS];
  252. new BankRecentlyUsed[MAX_PLAYERS];
  253. new RentedACarRecently[MAX_PLAYERS];
  254. new InsideBar[MAX_PLAYERS];
  255. new Working[MAX_PLAYERS];
  256.  
  257. new RobDildo[MAX_PLAYERS];
  258. new RobHall[MAX_PLAYERS];
  259. new RobRental[MAX_PLAYERS];
  260. new RobBank[MAX_PLAYERS];
  261. new RobBinco[MAX_PLAYERS];
  262. new RobZip[MAX_PLAYERS];
  263. new RobUrban[MAX_PLAYERS];
  264. new RobAmmu[MAX_PLAYERS];
  265. new RobAmmu2[MAX_PLAYERS];
  266. new RobAmmu3[MAX_PLAYERS];
  267. new RobAmmu4[MAX_PLAYERS];
  268. new RobAmmu5[MAX_PLAYERS];
  269. new RobDrugs[MAX_PLAYERS];
  270. new RobD4[MAX_PLAYERS];
  271. new RobCa[MAX_PLAYERS];
  272.  
  273. new PlayersOnline = 0;
  274.  
  275. new stunned[MAX_PLAYERS];
  276. new tazetime[MAX_PLAYERS];
  277.  
  278. new currentcheckpoint[MAX_PLAYERS];
  279. new InBusMission[MAX_PLAYERS];
  280.  
  281. new Float:buslvcps[14][3] = {
  282. {2268.4399,2410.4167,10.8064}, // CNR BUS LV
  283. {2283.9033,2311.2317,10.8053}, // CNR BUS LV
  284. {2119.3047,2056.9790,10.8091}, // CNR BUS LV
  285. {2043.8802,1545.2958,10.8053}, // CNR BUS LV
  286. {1913.9250,931.6765,10.8648}, // CNR BUS LV
  287. {2190.2798,970.8856,10.8052}, // CNR BUS LV
  288. {2529.7776,1341.0577,10.8125}, // CNR BUS LV
  289. {2516.7334,1530.2107,10.8092}, // CNR BUS LV
  290. {2365.3865,1709.7418,10.8096}, // CNR BUS LV
  291. {2510.1172,1804.4945,10.8076}, // CNR BUS LV
  292. {2530.1377,2095.5022,10.8109}, // CNR BUS LV
  293. {2466.4346,2235.9692,10.8114}, // CNR BUS LV
  294. {2289.9063,2152.5562,10.8054}, // CNR BUS LV
  295. {2267.5027,2409.8799,10.8052} // CNR BUS LV
  296. };
  297.  
  298. new Float:bussfcps[10][3] = {
  299. {-2003.4783,196.9962,27.6724}, // CNR BUS SF
  300. {-1867.8870,600.6245,35.1489}, // CNR BUS SF
  301. {-1631.6896,726.8736,14.5931}, // CNR BUS SF
  302. {-1607.8712,857.4319,7.6754}, // CNR BUS SF
  303. {-1753.4105,935.9341,24.8759}, // CNR BUS SF
  304. {-2009.8424,883.8640,45.4302}, // CNR BUS SF
  305. {-2658.6536,710.3611,27.9008}, // CNR BUS SF
  306. {-2608.3267,216.7507,6.1830}, // CNR BUS SF
  307. {-2150.0051,251.3069,35.3053}, // CNR BUS SF
  308. {-2081.9294,-72.4678,35.3081} // CNR BUS SF
  309. };
  310.  
  311. new Float:buslscps[12][3] = {
  312. {1532.9352,-1672.9940,13.5162}, // CNR BUS LS
  313. {1989.8992,-1403.3685,20.1922}, // CNR BUS LS
  314. {1616.9988,-1296.0193,17.3743}, // CNR BUS LS
  315. {1397.4031,-1238.2527,13.5161}, // CNR BUS LS
  316. {1654.5503,-978.6437,38.1222}, // CNR BUS LS
  317. {2254.6162,-1145.9847,26.6225}, // CNR BUS LS
  318. {2285.9170,-1662.1071,15.0599}, // CNR BUS LS
  319. {2310.4282,-1728.8649,13.5161}, // CNR BUS LS
  320. {2061.9836,-1750.6769,13.5216}, // CNR BUS LS
  321. {1824.7760,-1682.8224,13.5161}, // CNR BUS LS
  322. {1687.7714,-1647.1587,13.5151}, // CNR BUS LS
  323. {1532.9352,-1672.9940,13.5162} // CNR BUS LS
  324. };
  325. //Trash
  326. new Float:trashsf[11][4] = {
  327. {-2011.7734,77.6967,27.5766,180.4381}, // SF
  328. {-1812.3108,108.7060,14.8637,183.0066}, // SF
  329. {-1745.2139,161.1245,3.3831,359.8965}, // SF
  330. {-1658.7670,403.0123,6.8630,314.3484}, // SF
  331. {-1572.5560,959.0684,6.8705,34.0789}, // SF
  332. {-1655.3605,1278.8883,6.9383,44.2165}, // SF
  333. {-2615.2693,1323.4918,6.8708,135.5203}, // SF
  334. {-2755.9829,788.3393,53.5922,174.8465}, // SF
  335. {-2522.6113,530.4692,14.3516,181.6205}, // SF
  336. {-2666.0305,224.2849,4.0652,89.1722}, // SF
  337. {-2044.8110,325.5261,34.9185,91.3987} // SF
  338. };
  339.  
  340. new Float:trashlv[11][4] = {
  341. {2722.2327,852.3853,10.6530,181.5715}, // LV
  342. {2257.7839,970.6597,10.5036,90.4485}, // LV
  343. {2077.2520,1401.7902,10.5740,358.5100}, // LV
  344. {2056.0691,1916.4796,11.9941,334.5270}, // LV
  345. {2285.9055,2237.6394,10.6623,211.1023}, // LV
  346. {2478.9460,2234.6035,10.5094,270.6735}, // LV
  347. {2850.7615,2254.9785,10.5035,176.9784}, // LV
  348. {2506.4492,1946.8312,10.5815,177.7843}, // LV
  349. {2693.0115,1354.6588,6.5156,224.1648}, // LV
  350. {2559.3496,774.1688,10.4999,272.8159}, // LV
  351. {2834.2361,916.7383,10.5813,273.5616} // LV
  352. };
  353.  
  354. new Float:trashls[15][4] = {
  355. {2281.3162,-2297.6367,12.9399,43.3975}, // LS
  356. {2202.9561,-2167.2607,12.9619,36.9895}, // LS
  357. {1948.9464,-2054.7063,12.9523,88.6539}, // LS
  358. {1794.4558,-2165.4236,12.9487,85.5554}, // LS
  359. {1389.0068,-1866.1375,12.9522,3.1372}, // LS
  360. {1253.4490,-1712.7026,12.9490,91.6804}, // LS
  361. {634.0248,-1726.0410,13.5087,352.0109}, // LS
  362. {635.8566,-1322.7759,12.9489,273.0353}, // LS
  363. {1055.4622,-1308.2499,12.9883,9.7439}, // LS
  364. {1958.8086,-1783.7323,12.9477,203.2567}, // LS
  365. {2214.8762,-1905.9805,12.9456,185.2079}, // LS
  366. {2323.5071,-2121.1521,13.0382,224.9279}, // LS
  367. {2757.7400,-2427.7002,13.0576,180.2331}, // LS
  368. {2647.5708,-2504.0605,13.0586,89.1712}, // LS
  369. {2315.0986,-2342.8865,12.9434,6.7285} // LS
  370. };
  371. // Checkpoints
  372. new cpbankentrance, cpbankexit, cpbank;
  373. new cpatm1, cpatm2, cpatm3, cpatm4, cpatm5, cpatm6, cpatm7, cpatm9, cpatm10, cpatm11;
  374. new cplvpdentrance, cplvpdexit, cplvpdhand;
  375. new cpdildoentrance, cpdildoexit, cpdildo;
  376. new cphospital;
  377. new cplvchentrance, cplvchexit, cpcityhall;
  378. new cpghost;
  379. new cpbarentrance, cpbarexit;
  380. new cpbincoentrance, cpbincoexit, cpbinco;
  381. new cpzipentrance, cpzipexit, cpzip;
  382. new cpbombshop;
  383. new cpurbanentrance, cpurbanexit, cpurban;
  384. new cpdrugs;
  385. new cp4Dragonsentrace;
  386. new cp4Dragonsexit;
  387. new cpcaligulasentrace;
  388. new cpcaligulasexit;
  389. new cpcaligulas;
  390. new cp4Dragons;
  391.  
  392. new cplspdentrance;
  393. new cplschentrance;
  394. new cplsdrugs;
  395. new cplsbincoentrance;
  396. new cplshospital;
  397. new cplsbombshop;
  398. new cplsbarentrance;
  399. new cplsbankentrance;
  400. new cplsghost;
  401. new cplsurbanentrance;
  402. new cplsurbanentrance2;
  403. new cplszipentrance;
  404.  
  405. new cpsfpdentrance;
  406. new cpsfdrugs;
  407. new cpsfhospital;
  408. new cpsfbombshop;
  409. new cpsfbankentrance;
  410. new cpsfghost;
  411. new cpsfurbanentrance;
  412. new cpsfzipentrance;
  413.  
  414. new cpcopLSsus;
  415. new cpcopLSjos;
  416.  
  417. new cpcopLVjos;
  418. new cpcopLVsus;
  419.  
  420. new cpcopSFsus;
  421. new cpcopSFjos;
  422.  
  423. new cpammu;
  424. new cpammu2;
  425. new cpammu3;
  426. new cpammu4;
  427. new cpammu5;
  428. new cpammuexit;
  429. new cpammuexit2;
  430. new cpammuexit3;
  431. new cpammuexit4;
  432. new cpammuexit5;
  433. new cpammuentrace1;
  434. new cpammuentrace2;
  435. new cpammuentrace3;
  436. new cpammuentrace4;
  437. new cpammuentrace5;
  438. new cpammuentrace6;
  439. new cpammuentrace7;
  440. new cpammuentrace8;
  441. new cpammuentrace9;
  442. new cpammuentrace10;
  443.  
  444. new BAR[MAX_PLAYERS];
  445. new BIC[MAX_PLAYERS];
  446. new PD[MAX_PLAYERS];
  447. new CH[MAX_PLAYERS];
  448. new BK[MAX_PLAYERS];
  449. new CAR[MAX_PLAYERS];
  450. new RB[MAX_PLAYERS];
  451. new ZP[MAX_PLAYERS];
  452. // Menus
  453. new Menu:Hand;
  454. new Menu:Dildo;
  455. new Menu:Rental;
  456. new Menu:CarList;
  457. new Menu:BarEntrance;
  458. new Menu:Drugs;
  459.  
  460. enum cmdCarInfo
  461. {
  462.     CarcmdI
  463. };
  464.  
  465. new VehicleNames[212][] = {
  466.     "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
  467.     "Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
  468.     "1111","Premier","Enforcer","Securicar","Banshee","Predator","Bus","44444","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
  469.     "Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
  470.     "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
  471.     "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
  472.     "Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
  473.     "Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa","98934","Hotring Racer A","Hotring Racer B",
  474.     "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain",
  475.     "Nebula","Majestic","Buccaneer","Shamal","0000","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
  476.     "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover",
  477.     "Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
  478.     "Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight","Trailer",
  479.     "Kart","Mower","Duneride","Sweeper","Broadway","Tornado","MARE","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer A","Emperor",
  480.     "Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","Andromada","Dodo","RC Cam","Launch","Police Car (LSPD)","Police Car (SFPD)",
  481.     "Police Car (LVPD)","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
  482.     "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  483. };
  484.  
  485. new IcmdCar[MAX_PLAYERS][cmdCarInfo];
  486.  
  487. new tkat[MAX_PLAYERS];
  488.  
  489. // Vehicles
  490. new Rented[MAX_VEHICLES];
  491.  
  492. new Float:CivilianSpawn[18][4] =
  493. {
  494. {2022.6539,1007.2164,10.8203,269.9900},
  495. {2177.4451,963.9155,10.8203,359.9802},
  496. {2362.6580,1005.0098,14.2725,91.5136},
  497. {2435.0430,1653.7240,10.8203,178.3609},
  498. {1947.6760,2068.7869,10.8203,89.0601},
  499. {2346.8154,735.3505,11.4683,184.3114},
  500. {2127.4910,2364.1289,10.8203,179.6657},
  501. {1429.1036,-1091.6676,17.5623,186.9590},
  502. {1266.1420,-2009.2614,59.2444,187.8720},
  503. {1671.8055,-1709.1715,20.4844,102.0455},
  504. {2316.8474,-1646.4652,14.8270,185.1704},
  505. {2253.9595,-1777.4771,13.5469,0.6755},
  506. {477.0917,-1514.6082,20.4747,277.2458},
  507. {-2571.2405,1149.4059,55.7266,154.4693},
  508. {-1942.0551,572.1608,35.1719,358.3391},
  509. {-1992.2852,251.0843,35.1719,283.5931},
  510. {-2030.6617,145.9314,28.8359,273.5602},
  511. {-2616.2598,81.0121,4.3435,270.1165}
  512. };
  513.  
  514. new Float:CopSpawn[6][4] =
  515. {
  516. {2238.2151,2449.3613,11.0372,89.4249},
  517. {2294.8032,2451.5522,10.8203,88.8232},
  518. {2294.0479,2468.4722,10.8203,88.7628},
  519. {2250.7517,2490.9146,10.9908,358.5601},
  520. {-1620.6388,682.8951,7.1875,174.1942},
  521. {1548.1506,-1669.6023,13.5669,88.7577}
  522. };
  523.  
  524. new Float:PrisonSpawn[3][4] =
  525. {
  526. {198.6401,161.5331,1003.0300,181.3124},
  527. {193.4779,175.5881,1003.0234,6.5961},
  528. {197.7083,174.6549,1003.0234,0.0787}
  529. };
  530.  
  531. new Float:SFSpawn[3][4] =
  532. {
  533. {1568.0333,-1691.7218,5.8906,183.6940},
  534. {-1593.2145,716.1462,-5.2422,269.8380},
  535. {2267.8535,2448.8921,3.5313,181.4704}
  536. };
  537.  
  538. new Float:ARMYSpawn[2][4] =
  539. {
  540. {-1473.7511,461.7685,7.1809,2.3054},
  541. {239.7829,1859.5490,14.0840,359.0583}
  542. };
  543.  
  544. new Float:MedicSpawn[3][4] =
  545. {
  546. {1177.7314,-1323.7150,14.0852,270.0000},
  547. {-2655.1633,631.4604,14.4531,176.9321},
  548. {1607.5931, 1818.5118, 10.8203,83.20}
  549. };
  550.  
  551. new FALSE = false;
  552.  
  553. enum pSpeed
  554. {
  555.     Text:Speedom,
  556.     Text:Speedom2,
  557.     ShowSpeed,
  558.     ReFuelTimer,
  559.     Refueling,
  560.     Float:OldCoordsX,
  561.     Float:OldCoordsY
  562. };
  563. new Speed[MAX_PLAYERS][pSpeed];
  564.  
  565. enum pVeh
  566. {
  567.     Float:Fuel,
  568.     OldFuel
  569. };
  570. new Vehicle[MAX_VEHICLES][pVeh];
  571.  
  572. new Spawned[MAX_PLAYERS];
  573.  
  574. enum zoneinfo {
  575.     zone_name[27],
  576.     Float:zone_minx,
  577.     Float:zone_miny,
  578.     Float:zone_minz,
  579.     Float:zone_maxx,
  580.     Float:zone_maxy,
  581.     Float:zone_maxz
  582. }
  583.  
  584. #define SPAWN_GAS_MIN   35
  585. #define SPAWN_GAS_MAX   100
  586. #define MAX_START_TIME  3
  587.  
  588. forward Speedometer(playerid);
  589. forward ReFill(playerid);
  590. forward IsAtFuelStation(playerid);
  591.  
  592. new zones[][zoneinfo] = {
  593. { "'The Big Ear'",                -410.00,  1403.30,    -3.00,  -137.90,  1681.20,   200.00},
  594. { "Aldea Malvada",               -1372.10,  2498.50,     0.00, -1277.50,  2615.30,   200.00},
  595. { "Angel Pine",                  -2324.90, -2584.20,    -6.10, -1964.20, -2212.10,   200.00},
  596. { "Arco del Oeste",               -901.10,  2221.80,     0.00,  -592.00,  2571.90,   200.00},
  597. { "Avispa Country Club",         -2646.40,  -355.40,     0.00, -2270.00,  -222.50,   200.00},
  598. { "Avispa Country Club",         -2831.80,  -430.20,    -6.10, -2646.40,  -222.50,   200.00},
  599. { "Avispa Country Club",         -2361.50,  -417.10,     0.00, -2270.00,  -355.40,   200.00},
  600. { "Avispa Country Club",         -2667.80,  -302.10,   -28.80, -2646.40,  -262.30,    71.10},
  601. { "Avispa Country Club",         -2470.00,  -355.40,     0.00, -2270.00,  -318.40,    46.10},
  602. { "Avispa Country Club",         -2550.00,  -355.40,     0.00, -2470.00,  -318.40,    39.70},
  603. { "Back o Beyond",               -1166.90, -2641.10,     0.00,  -321.70, -1856.00,   200.00},
  604. { "Battery Point",               -2741.00,  1268.40,    -4.50, -2533.00,  1490.40,   200.00},
  605. { "Bayside",                     -2741.00,  2175.10,     0.00, -2353.10,  2722.70,   200.00},
  606. { "Bayside Marina",              -2353.10,  2275.70,     0.00, -2153.10,  2475.70,   200.00},
  607. { "Beacon Hill",                  -399.60, -1075.50,    -1.40,  -319.00,  -977.50,   198.50},
  608. { "Blackfield",                    964.30,  1203.20,   -89.00,  1197.30,  1403.20,   110.90},
  609. { "Blackfield",                    964.30,  1403.20,   -89.00,  1197.30,  1726.20,   110.90},
  610. { "Blackfield Chapel",            1375.60,   596.30,   -89.00,  1558.00,   823.20,   110.90},
  611. { "Blackfield Chapel",            1325.60,   596.30,   -89.00,  1375.60,   795.00,   110.90},
  612. { "Blackfield Intersection",      1197.30,  1044.60,   -89.00,  1277.00,  1163.30,   110.90},
  613. { "Blackfield Intersection",      1166.50,   795.00,   -89.00,  1375.60,  1044.60,   110.90},
  614. { "Blackfield Intersection",      1277.00,  1044.60,   -89.00,  1315.30,  1087.60,   110.90},
  615. { "Blackfield Intersection",      1375.60,   823.20,   -89.00,  1457.30,   919.40,   110.90},
  616. { "Blueberry",                     104.50,  -220.10,     2.30,   349.60,   152.20,   200.00},
  617. { "Blueberry",                      19.60,  -404.10,     3.80,   349.60,  -220.10,   200.00},
  618. { "Blueberry Acres",              -319.60,  -220.10,     0.00,   104.50,   293.30,   200.00},
  619. { "Caligula's Palace",            2087.30,  1543.20,   -89.00,  2437.30,  1703.20,   110.90},
  620. { "Caligula's Palace",            2137.40,  1703.20,   -89.00,  2437.30,  1783.20,   110.90},
  621. { "Calton Heights",              -2274.10,   744.10,    -6.10, -1982.30,  1358.90,   200.00},
  622. { "Chinatown",                   -2274.10,   578.30,    -7.60, -2078.60,   744.10,   200.00},
  623. { "City Hall",                   -2867.80,   277.40,    -9.10, -2593.40,   458.40,   200.00},
  624. { "Come-A-Lot",                   2087.30,   943.20,   -89.00,  2623.10,  1203.20,   110.90},
  625. { "Commerce",                     1323.90, -1842.20,   -89.00,  1701.90, -1722.20,   110.90},
  626. { "Commerce",                     1323.90, -1722.20,   -89.00,  1440.90, -1577.50,   110.90},
  627. { "Commerce",                     1370.80, -1577.50,   -89.00,  1463.90, -1384.90,   110.90},
  628. { "Commerce",                     1463.90, -1577.50,   -89.00,  1667.90, -1430.80,   110.90},
  629. { "Commerce",                     1583.50, -1722.20,   -89.00,  1758.90, -1577.50,   110.90},
  630. { "Commerce",                     1667.90, -1577.50,   -89.00,  1812.60, -1430.80,   110.90},
  631. { "Conference Center",            1046.10, -1804.20,   -89.00,  1323.90, -1722.20,   110.90},
  632. { "Conference Center",            1073.20, -1842.20,   -89.00,  1323.90, -1804.20,   110.90},
  633. { "Cranberry Station",           -2007.80,    56.30,     0.00, -1922.00,   224.70,   100.00},
  634. { "Creek",                        2749.90,  1937.20,   -89.00,  2921.60,  2669.70,   110.90},
  635. { "Dillimore",                     580.70,  -674.80,    -9.50,   861.00,  -404.70,   200.00},
  636. { "Doherty",                     -2270.00,  -324.10,    -0.00, -1794.90,  -222.50,   200.00},
  637. { "Doherty",                     -2173.00,  -222.50,    -0.00, -1794.90,   265.20,   200.00},
  638. { "Downtown",                    -1982.30,   744.10,    -6.10, -1871.70,  1274.20,   200.00},
  639. { "Downtown",                    -1871.70,  1176.40,    -4.50, -1620.30,  1274.20,   200.00},
  640. { "Downtown",                    -1700.00,   744.20,    -6.10, -1580.00,  1176.50,   200.00},
  641. { "Downtown",                    -1580.00,   744.20,    -6.10, -1499.80,  1025.90,   200.00},
  642. { "Downtown",                    -2078.60,   578.30,    -7.60, -1499.80,   744.20,   200.00},
  643. { "Downtown",                    -1993.20,   265.20,    -9.10, -1794.90,   578.30,   200.00},
  644. { "Downtown Los Santos",          1463.90, -1430.80,   -89.00,  1724.70, -1290.80,   110.90},
  645. { "Downtown Los Santos",          1724.70, -1430.80,   -89.00,  1812.60, -1250.90,   110.90},
  646. { "Downtown Los Santos",          1463.90, -1290.80,   -89.00,  1724.70, -1150.80,   110.90},
  647. { "Downtown Los Santos",          1370.80, -1384.90,   -89.00,  1463.90, -1170.80,   110.90},
  648. { "Downtown Los Santos",          1724.70, -1250.90,   -89.00,  1812.60, -1150.80,   110.90},
  649. { "Downtown Los Santos",          1370.80, -1170.80,   -89.00,  1463.90, -1130.80,   110.90},
  650. { "Downtown Los Santos",          1378.30, -1130.80,   -89.00,  1463.90, -1026.30,   110.90},
  651. { "Downtown Los Santos",          1391.00, -1026.30,   -89.00,  1463.90,  -926.90,   110.90},
  652. { "Downtown Los Santos",          1507.50, -1385.20,   110.90,  1582.50, -1325.30,   335.90},
  653. { "East Beach",                   2632.80, -1852.80,   -89.00,  2959.30, -1668.10,   110.90},
  654. { "East Beach",                   2632.80, -1668.10,   -89.00,  2747.70, -1393.40,   110.90},
  655. { "East Beach",                   2747.70, -1668.10,   -89.00,  2959.30, -1498.60,   110.90},
  656. { "East Beach",                   2747.70, -1498.60,   -89.00,  2959.30, -1120.00,   110.90},
  657. { "East Los Santos",              2421.00, -1628.50,   -89.00,  2632.80, -1454.30,   110.90},
  658. { "East Los Santos",              2222.50, -1628.50,   -89.00,  2421.00, -1494.00,   110.90},
  659. { "East Los Santos",              2266.20, -1494.00,   -89.00,  2381.60, -1372.00,   110.90},
  660. { "East Los Santos",              2381.60, -1494.00,   -89.00,  2421.00, -1454.30,   110.90},
  661. { "East Los Santos",              2281.40, -1372.00,   -89.00,  2381.60, -1135.00,   110.90},
  662. { "East Los Santos",              2381.60, -1454.30,   -89.00,  2462.10, -1135.00,   110.90},
  663. { "East Los Santos",              2462.10, -1454.30,   -89.00,  2581.70, -1135.00,   110.90},
  664. { "Easter Basin",                -1794.90,   249.90,    -9.10, -1242.90,   578.30,   200.00},
  665. { "Easter Basin",                -1794.90,   -50.00,    -0.00, -1499.80,   249.90,   200.00},
  666. { "Easter Bay Airport",          -1499.80,   -50.00,    -0.00, -1242.90,   249.90,   200.00},
  667. { "Easter Bay Airport",          -1794.90,  -730.10,    -3.00, -1213.90,   -50.00,   200.00},
  668. { "Easter Bay Airport",          -1213.90,  -730.10,     0.00, -1132.80,   -50.00,   200.00},
  669. { "Easter Bay Airport",          -1242.90,   -50.00,     0.00, -1213.90,   578.30,   200.00},
  670. { "Easter Bay Airport",          -1213.90,   -50.00,    -4.50,  -947.90,   578.30,   200.00},
  671. { "Easter Bay Airport",          -1315.40,  -405.30,    15.40, -1264.40,  -209.50,    25.40},
  672. { "Easter Bay Airport",          -1354.30,  -287.30,    15.40, -1315.40,  -209.50,    25.40},
  673. { "Easter Bay Airport",          -1490.30,  -209.50,    15.40, -1264.40,  -148.30,    25.40},
  674. { "Easter Bay Chemicals",        -1132.80,  -768.00,     0.00,  -956.40,  -578.10,   200.00},
  675. { "Easter Bay Chemicals",        -1132.80,  -787.30,     0.00,  -956.40,  -768.00,   200.00},
  676. { "El Castillo del Diablo",       -464.50,  2217.60,     0.00,  -208.50,  2580.30,   200.00},
  677. { "El Castillo del Diablo",       -208.50,  2123.00,    -7.60,   114.00,  2337.10,   200.00},
  678. { "El Castillo del Diablo",       -208.50,  2337.10,     0.00,     8.40,  2487.10,   200.00},
  679. { "El Corona",                    1812.60, -2179.20,   -89.00,  1970.60, -1852.80,   110.90},
  680. { "El Corona",                    1692.60, -2179.20,   -89.00,  1812.60, -1842.20,   110.90},
  681. { "El Quebrados",                -1645.20,  2498.50,     0.00, -1372.10,  2777.80,   200.00},
  682. { "Esplanade East",              -1620.30,  1176.50,    -4.50, -1580.00,  1274.20,   200.00},
  683. { "Esplanade East",              -1580.00,  1025.90,    -6.10, -1499.80,  1274.20,   200.00},
  684. { "Esplanade East",              -1499.80,   578.30,   -79.60, -1339.80,  1274.20,    20.30},
  685. { "Esplanade North",             -2533.00,  1358.90,    -4.50, -1996.60,  1501.20,   200.00},
  686. { "Esplanade North",             -1996.60,  1358.90,    -4.50, -1524.20,  1592.50,   200.00},
  687. { "Esplanade North",             -1982.30,  1274.20,    -4.50, -1524.20,  1358.90,   200.00},
  688. { "Fallen Tree",                  -792.20,  -698.50,    -5.30,  -452.40,  -380.00,   200.00},
  689. { "Fallow Bridge",                 434.30,   366.50,     0.00,   603.00,   555.60,   200.00},
  690. { "Fern Ridge",                    508.10,  -139.20,     0.00,  1306.60,   119.50,   200.00},
  691. { "Financial",                   -1871.70,   744.10,    -6.10, -1701.30,  1176.40,   300.00},
  692. { "Fisher's Lagoon",              1916.90,  -233.30,  -100.00,  2131.70,    13.80,   200.00},
  693. { "Flint Intersection",           -187.70, -1596.70,   -89.00,    17.00, -1276.60,   110.90},
  694. { "Flint Range",                  -594.10, -1648.50,     0.00,  -187.70, -1276.60,   200.00},
  695. { "Fort Carson",                  -376.20,   826.30,    -3.00,   123.70,  1220.40,   200.00},
  696. { "Foster Valley",               -2270.00,  -430.20,    -0.00, -2178.60,  -324.10,   200.00},
  697. { "Foster Valley",               -2178.60,  -599.80,    -0.00, -1794.90,  -324.10,   200.00},
  698. { "Foster Valley",               -2178.60, -1115.50,     0.00, -1794.90,  -599.80,   200.00},
  699. { "Foster Valley",               -2178.60, -1250.90,     0.00, -1794.90, -1115.50,   200.00},
  700. { "Frederick Bridge",             2759.20,   296.50,     0.00,  2774.20,   594.70,   200.00},
  701. { "Gant Bridge",                 -2741.40,  1659.60,    -6.10, -2616.40,  2175.10,   200.00},
  702. { "Gant Bridge",                 -2741.00,  1490.40,    -6.10, -2616.40,  1659.60,   200.00},
  703. { "Ganton",                       2222.50, -1852.80,   -89.00,  2632.80, -1722.30,   110.90},
  704. { "Ganton",                       2222.50, -1722.30,   -89.00,  2632.80, -1628.50,   110.90},
  705. { "Garcia",                      -2411.20,  -222.50,    -0.00, -2173.00,   265.20,   200.00},
  706. { "Garcia",                      -2395.10,  -222.50,    -5.30, -2354.00,  -204.70,   200.00},
  707. { "Garver Bridge",               -1339.80,   828.10,   -89.00, -1213.90,  1057.00,   110.90},
  708. { "Garver Bridge",               -1213.90,   950.00,   -89.00, -1087.90,  1178.90,   110.90},
  709. { "Garver Bridge",               -1499.80,   696.40,  -179.60, -1339.80,   925.30,    20.30},
  710. { "Glen Park",                    1812.60, -1449.60,   -89.00,  1996.90, -1350.70,   110.90},
  711. { "Glen Park",                    1812.60, -1100.80,   -89.00,  1994.30,  -973.30,   110.90},
  712. { "Glen Park",                    1812.60, -1350.70,   -89.00,  2056.80, -1100.80,   110.90},
  713. { "Green Palms",                   176.50,  1305.40,    -3.00,   338.60,  1520.70,   200.00},
  714. { "Greenglass College",            964.30,  1044.60,   -89.00,  1197.30,  1203.20,   110.90},
  715. { "Greenglass College",            964.30,   930.80,   -89.00,  1166.50,  1044.60,   110.90},
  716. { "Hampton Barns",                 603.00,   264.30,     0.00,   761.90,   366.50,   200.00},
  717. { "Hankypanky Point",             2576.90,    62.10,     0.00,  2759.20,   385.50,   200.00},
  718. { "Harry Gold Parkway",           1777.30,   863.20,   -89.00,  1817.30,  2342.80,   110.90},
  719. { "Hashbury",                    -2593.40,  -222.50,    -0.00, -2411.20,    54.70,   200.00},
  720. { "Hilltop Farm",                  967.30,  -450.30,    -3.00,  1176.70,  -217.90,   200.00},
  721. { "Hunter Quarry",                 337.20,   710.80,  -115.20,   860.50,  1031.70,   203.70},
  722. { "Idlewood",                     1812.60, -1852.80,   -89.00,  1971.60, -1742.30,   110.90},
  723. { "Idlewood",                     1812.60, -1742.30,   -89.00,  1951.60, -1602.30,   110.90},
  724. { "Idlewood",                     1951.60, -1742.30,   -89.00,  2124.60, -1602.30,   110.90},
  725. { "Idlewood",                     1812.60, -1602.30,   -89.00,  2124.60, -1449.60,   110.90},
  726. { "Idlewood",                     2124.60, -1742.30,   -89.00,  2222.50, -1494.00,   110.90},
  727. { "Idlewood",                     1971.60, -1852.80,   -89.00,  2222.50, -1742.30,   110.90},
  728. { "Jefferson",                    1996.90, -1449.60,   -89.00,  2056.80, -1350.70,   110.90},
  729. { "Jefferson",                    2124.60, -1494.00,   -89.00,  2266.20, -1449.60,   110.90},
  730. { "Jefferson",                    2056.80, -1372.00,   -89.00,  2281.40, -1210.70,   110.90},
  731. { "Jefferson",                    2056.80, -1210.70,   -89.00,  2185.30, -1126.30,   110.90},
  732. { "Jefferson",                    2185.30, -1210.70,   -89.00,  2281.40, -1154.50,   110.90},
  733. { "Jefferson",                    2056.80, -1449.60,   -89.00,  2266.20, -1372.00,   110.90},
  734. { "Julius Thruway East",          2623.10,   943.20,   -89.00,  2749.90,  1055.90,   110.90},
  735. { "Julius Thruway East",          2685.10,  1055.90,   -89.00,  2749.90,  2626.50,   110.90},
  736. { "Julius Thruway East",          2536.40,  2442.50,   -89.00,  2685.10,  2542.50,   110.90},
  737. { "Julius Thruway East",          2625.10,  2202.70,   -89.00,  2685.10,  2442.50,   110.90},
  738. { "Julius Thruway North",         2498.20,  2542.50,   -89.00,  2685.10,  2626.50,   110.90},
  739. { "Julius Thruway North",         2237.40,  2542.50,   -89.00,  2498.20,  2663.10,   110.90},
  740. { "Julius Thruway North",         2121.40,  2508.20,   -89.00,  2237.40,  2663.10,   110.90},
  741. { "Julius Thruway North",         1938.80,  2508.20,   -89.00,  2121.40,  2624.20,   110.90},
  742. { "Julius Thruway North",         1534.50,  2433.20,   -89.00,  1848.40,  2583.20,   110.90},
  743. { "Julius Thruway North",         1848.40,  2478.40,   -89.00,  1938.80,  2553.40,   110.90},
  744. { "Julius Thruway North",         1704.50,  2342.80,   -89.00,  1848.40,  2433.20,   110.90},
  745. { "Julius Thruway North",         1377.30,  2433.20,   -89.00,  1534.50,  2507.20,   110.90},
  746. { "Julius Thruway South",         1457.30,   823.20,   -89.00,  2377.30,   863.20,   110.90},
  747. { "Julius Thruway South",         2377.30,   788.80,   -89.00,  2537.30,   897.90,   110.90},
  748. { "Julius Thruway West",          1197.30,  1163.30,   -89.00,  1236.60,  2243.20,   110.90},
  749. { "Julius Thruway West",          1236.60,  2142.80,   -89.00,  1297.40,  2243.20,   110.90},
  750. { "Juniper Hill",                -2533.00,   578.30,    -7.60, -2274.10,   968.30,   200.00},
  751. { "Juniper Hollow",              -2533.00,   968.30,    -6.10, -2274.10,  1358.90,   200.00},
  752. { "K.A.C.C. Military Fuels",      2498.20,  2626.50,   -89.00,  2749.90,  2861.50,   110.90},
  753. { "Kincaid Bridge",              -1339.80,   599.20,   -89.00, -1213.90,   828.10,   110.90},
  754. { "Kincaid Bridge",              -1213.90,   721.10,   -89.00, -1087.90,   950.00,   110.90},
  755. { "Kincaid Bridge",              -1087.90,   855.30,   -89.00,  -961.90,   986.20,   110.90},
  756. { "King's",                      -2329.30,   458.40,    -7.60, -1993.20,   578.30,   200.00},
  757. { "King's",                      -2411.20,   265.20,    -9.10, -1993.20,   373.50,   200.00},
  758. { "King's",                      -2253.50,   373.50,    -9.10, -1993.20,   458.40,   200.00},
  759. { "LVA Freight Depot",            1457.30,   863.20,   -89.00,  1777.40,  1143.20,   110.90},
  760. { "LVA Freight Depot",            1375.60,   919.40,   -89.00,  1457.30,  1203.20,   110.90},
  761. { "LVA Freight Depot",            1277.00,  1087.60,   -89.00,  1375.60,  1203.20,   110.90},
  762. { "LVA Freight Depot",            1315.30,  1044.60,   -89.00,  1375.60,  1087.60,   110.90},
  763. { "LVA Freight Depot",            1236.60,  1163.40,   -89.00,  1277.00,  1203.20,   110.90},
  764. { "Las Barrancas",                -926.10,  1398.70,    -3.00,  -719.20,  1634.60,   200.00},
  765. { "Las Brujas",                   -365.10,  2123.00,    -3.00,  -208.50,  2217.60,   200.00},
  766. { "Las Colinas",                  1994.30, -1100.80,   -89.00,  2056.80,  -920.80,   110.90},
  767. { "Las Colinas",                  2056.80, -1126.30,   -89.00,  2126.80,  -920.80,   110.90},
  768. { "Las Colinas",                  2185.30, -1154.50,   -89.00,  2281.40,  -934.40,   110.90},
  769. { "Las Colinas",                  2126.80, -1126.30,   -89.00,  2185.30,  -934.40,   110.90},
  770. { "Las Colinas",                  2747.70, -1120.00,   -89.00,  2959.30,  -945.00,   110.90},
  771. { "Las Colinas",                  2632.70, -1135.00,   -89.00,  2747.70,  -945.00,   110.90},
  772. { "Las Colinas",                  2281.40, -1135.00,   -89.00,  2632.70,  -945.00,   110.90},
  773. { "Las Payasadas",                -354.30,  2580.30,     2.00,  -133.60,  2816.80,   200.00},
  774. { "Las Venturas Airport",         1236.60,  1203.20,   -89.00,  1457.30,  1883.10,   110.90},
  775. { "Las Venturas Airport",         1457.30,  1203.20,   -89.00,  1777.30,  1883.10,   110.90},
  776. { "Las Venturas Airport",         1457.30,  1143.20,   -89.00,  1777.40,  1203.20,   110.90},
  777. { "Las Venturas Airport",         1515.80,  1586.40,   -12.50,  1729.90,  1714.50,    87.50},
  778. { "Last Dime Motel",              1823.00,   596.30,   -89.00,  1997.20,   823.20,   110.90},
  779. { "Leafy Hollow",                -1166.90, -1856.00,     0.00,  -815.60, -1602.00,   200.00},
  780. { "Lil' Probe Inn",                -90.20,  1286.80,    -3.00,   153.80,  1554.10,   200.00},
  781. { "Linden Side",                  2749.90,   943.20,   -89.00,  2923.30,  1198.90,   110.90},
  782. { "Linden Station",               2749.90,  1198.90,   -89.00,  2923.30,  1548.90,   110.90},
  783. { "Linden Station",               2811.20,  1229.50,   -39.50,  2861.20,  1407.50,    60.40},
  784. { "Little Mexico",                1701.90, -1842.20,   -89.00,  1812.60, -1722.20,   110.90},
  785. { "Little Mexico",                1758.90, -1722.20,   -89.00,  1812.60, -1577.50,   110.90},
  786. { "Los Flores",                   2581.70, -1454.30,   -89.00,  2632.80, -1393.40,   110.90},
  787. { "Los Flores",                   2581.70, -1393.40,   -89.00,  2747.70, -1135.00,   110.90},
  788. { "Los Santos International",     1249.60, -2394.30,   -89.00,  1852.00, -2179.20,   110.90},
  789. { "Los Santos International",     1852.00, -2394.30,   -89.00,  2089.00, -2179.20,   110.90},
  790. { "Los Santos International",     1382.70, -2730.80,   -89.00,  2201.80, -2394.30,   110.90},
  791. { "Los Santos International",     1974.60, -2394.30,   -39.00,  2089.00, -2256.50,    60.90},
  792. { "Los Santos International",     1400.90, -2669.20,   -39.00,  2189.80, -2597.20,    60.90},
  793. { "Los Santos International",     2051.60, -2597.20,   -39.00,  2152.40, -2394.30,    60.90},
  794. { "Marina",                        647.70, -1804.20,   -89.00,   851.40, -1577.50,   110.90},
  795. { "Marina",                        647.70, -1577.50,   -89.00,   807.90, -1416.20,   110.90},
  796. { "Marina",                        807.90, -1577.50,   -89.00,   926.90, -1416.20,   110.90},
  797. { "Market",                        787.40, -1416.20,   -89.00,  1072.60, -1310.20,   110.90},
  798. { "Market",                        952.60, -1310.20,   -89.00,  1072.60, -1130.80,   110.90},
  799. { "Market",                       1072.60, -1416.20,   -89.00,  1370.80, -1130.80,   110.90},
  800. { "Market",                        926.90, -1577.50,   -89.00,  1370.80, -1416.20,   110.90},
  801. { "Market Station",                787.40, -1410.90,   -34.10,   866.00, -1310.20,    65.80},
  802. { "Martin Bridge",                -222.10,   293.30,     0.00,  -122.10,   476.40,   200.00},
  803. { "Missionary Hill",             -2994.40,  -811.20,     0.00, -2178.60,  -430.20,   200.00},
  804. { "Montgomery",                   1119.50,   119.50,    -3.00,  1451.40,   493.30,   200.00},
  805. { "Montgomery",                   1451.40,   347.40,    -6.10,  1582.40,   420.80,   200.00},
  806. { "Montgomery Intersection",      1546.60,   208.10,     0.00,  1745.80,   347.40,   200.00},
  807. { "Montgomery Intersection",      1582.40,   347.40,     0.00,  1664.60,   401.70,   200.00},
  808. { "Mulholland",                   1414.00,  -768.00,   -89.00,  1667.60,  -452.40,   110.90},
  809. { "Mulholland",                   1281.10,  -452.40,   -89.00,  1641.10,  -290.90,   110.90},
  810. { "Mulholland",                   1269.10,  -768.00,   -89.00,  1414.00,  -452.40,   110.90},
  811. { "Mulholland",                   1357.00,  -926.90,   -89.00,  1463.90,  -768.00,   110.90},
  812. { "Mulholland",                   1318.10,  -910.10,   -89.00,  1357.00,  -768.00,   110.90},
  813. { "Mulholland",                   1169.10,  -910.10,   -89.00,  1318.10,  -768.00,   110.90},
  814. { "Mulholland",                    768.60,  -954.60,   -89.00,   952.60,  -860.60,   110.90},
  815. { "Mulholland",                    687.80,  -860.60,   -89.00,   911.80,  -768.00,   110.90},
  816. { "Mulholland",                    737.50,  -768.00,   -89.00,  1142.20,  -674.80,   110.90},
  817. { "Mulholland",                   1096.40,  -910.10,   -89.00,  1169.10,  -768.00,   110.90},
  818. { "Mulholland",                    952.60,  -937.10,   -89.00,  1096.40,  -860.60,   110.90},
  819. { "Mulholland",                    911.80,  -860.60,   -89.00,  1096.40,  -768.00,   110.90},
  820. { "Mulholland",                    861.00,  -674.80,   -89.00,  1156.50,  -600.80,   110.90},
  821. { "Mulholland Intersection",      1463.90, -1150.80,   -89.00,  1812.60,  -768.00,   110.90},
  822. { "North Rock",                   2285.30,  -768.00,     0.00,  2770.50,  -269.70,   200.00},
  823. { "Ocean Docks",                  2373.70, -2697.00,   -89.00,  2809.20, -2330.40,   110.90},
  824. { "Ocean Docks",                  2201.80, -2418.30,   -89.00,  2324.00, -2095.00,   110.90},
  825. { "Ocean Docks",                  2324.00, -2302.30,   -89.00,  2703.50, -2145.10,   110.90},
  826. { "Ocean Docks",                  2089.00, -2394.30,   -89.00,  2201.80, -2235.80,   110.90},
  827. { "Ocean Docks",                  2201.80, -2730.80,   -89.00,  2324.00, -2418.30,   110.90},
  828. { "Ocean Docks",                  2703.50, -2302.30,   -89.00,  2959.30, -2126.90,   110.90},
  829. { "Ocean Docks",                  2324.00, -2145.10,   -89.00,  2703.50, -2059.20,   110.90},
  830. { "Ocean Flats",                 -2994.40,   277.40,    -9.10, -2867.80,   458.40,   200.00},
  831. { "Ocean Flats",                 -2994.40,  -222.50,    -0.00, -2593.40,   277.40,   200.00},
  832. { "Ocean Flats",                 -2994.40,  -430.20,    -0.00, -2831.80,  -222.50,   200.00},
  833. { "Octane Springs",                338.60,  1228.50,     0.00,   664.30,  1655.00,   200.00},
  834. { "Old Venturas Strip",           2162.30,  2012.10,   -89.00,  2685.10,  2202.70,   110.90},
  835. { "Palisades",                   -2994.40,   458.40,    -6.10, -2741.00,  1339.60,   200.00},
  836. { "Palomino Creek",               2160.20,  -149.00,     0.00,  2576.90,   228.30,   200.00},
  837. { "Paradiso",                    -2741.00,   793.40,    -6.10, -2533.00,  1268.40,   200.00},
  838. { "Pershing Square",              1440.90, -1722.20,   -89.00,  1583.50, -1577.50,   110.90},
  839. { "Pilgrim",                      2437.30,  1383.20,   -89.00,  2624.40,  1783.20,   110.90},
  840. { "Pilgrim",                      2624.40,  1383.20,   -89.00,  2685.10,  1783.20,   110.90},
  841. { "Pilson Intersection",          1098.30,  2243.20,   -89.00,  1377.30,  2507.20,   110.90},
  842. { "Pirates in Men's Pants",       1817.30,  1469.20,   -89.00,  2027.40,  1703.20,   110.90},
  843. { "Playa del Seville",            2703.50, -2126.90,   -89.00,  2959.30, -1852.80,   110.90},
  844. { "Prickle Pine",                 1534.50,  2583.20,   -89.00,  1848.40,  2863.20,   110.90},
  845. { "Prickle Pine",                 1117.40,  2507.20,   -89.00,  1534.50,  2723.20,   110.90},
  846. { "Prickle Pine",                 1848.40,  2553.40,   -89.00,  1938.80,  2863.20,   110.90},
  847. { "Prickle Pine",                 1938.80,  2624.20,   -89.00,  2121.40,  2861.50,   110.90},
  848. { "Queens",                      -2533.00,   458.40,     0.00, -2329.30,   578.30,   200.00},
  849. { "Queens",                      -2593.40,    54.70,     0.00, -2411.20,   458.40,   200.00},
  850. { "Queens",                      -2411.20,   373.50,     0.00, -2253.50,   458.40,   200.00},
  851. { "Randolph Industrial Estate",   1558.00,   596.30,   -89.00,  1823.00,   823.20,   110.90},
  852. { "Redsands East",                1817.30,  2011.80,   -89.00,  2106.70,  2202.70,   110.90},
  853. { "Redsands East",                1817.30,  2202.70,   -89.00,  2011.90,  2342.80,   110.90},
  854. { "Redsands East",                1848.40,  2342.80,   -89.00,  2011.90,  2478.40,   110.90},
  855. { "Redsands West",                1236.60,  1883.10,   -89.00,  1777.30,  2142.80,   110.90},
  856. { "Redsands West",                1297.40,  2142.80,   -89.00,  1777.30,  2243.20,   110.90},
  857. { "Redsands West",                1377.30,  2243.20,   -89.00,  1704.50,  2433.20,   110.90},
  858. { "Redsands West",                1704.50,  2243.20,   -89.00,  1777.30,  2342.80,   110.90},
  859. { "Regular Tom",                  -405.70,  1712.80,    -3.00,  -276.70,  1892.70,   200.00},
  860. { "Richman",                       647.50, -1118.20,   -89.00,   787.40,  -954.60,   110.90},
  861. { "Richman",                       647.50,  -954.60,   -89.00,   768.60,  -860.60,   110.90},
  862. { "Richman",                       225.10, -1369.60,   -89.00,   334.50, -1292.00,   110.90},
  863. { "Richman",                       225.10, -1292.00,   -89.00,   466.20, -1235.00,   110.90},
  864. { "Richman",                        72.60, -1404.90,   -89.00,   225.10, -1235.00,   110.90},
  865. { "Richman",                        72.60, -1235.00,   -89.00,   321.30, -1008.10,   110.90},
  866. { "Richman",                       321.30, -1235.00,   -89.00,   647.50, -1044.00,   110.90},
  867. { "Richman",                       321.30, -1044.00,   -89.00,   647.50,  -860.60,   110.90},
  868. { "Richman",                       321.30,  -860.60,   -89.00,   687.80,  -768.00,   110.90},
  869. { "Richman",                       321.30,  -768.00,   -89.00,   700.70,  -674.80,   110.90},
  870. { "Robada Intersection",         -1119.00,  1178.90,   -89.00,  -862.00,  1351.40,   110.90},
  871. { "Roca Escalante",               2237.40,  2202.70,   -89.00,  2536.40,  2542.50,   110.90},
  872. { "Roca Escalante",               2536.40,  2202.70,   -89.00,  2625.10,  2442.50,   110.90},
  873. { "Rockshore East",               2537.30,   676.50,   -89.00,  2902.30,   943.20,   110.90},
  874. { "Rockshore West",               1997.20,   596.30,   -89.00,  2377.30,   823.20,   110.90},
  875. { "Rockshore West",               2377.30,   596.30,   -89.00,  2537.30,   788.80,   110.90},
  876. { "Rodeo",                          72.60, -1684.60,   -89.00,   225.10, -1544.10,   110.90},
  877. { "Rodeo",                          72.60, -1544.10,   -89.00,   225.10, -1404.90,   110.90},
  878. { "Rodeo",                         225.10, -1684.60,   -89.00,   312.80, -1501.90,   110.90},
  879. { "Rodeo",                         225.10, -1501.90,   -89.00,   334.50, -1369.60,   110.90},
  880. { "Rodeo",                         334.50, -1501.90,   -89.00,   422.60, -1406.00,   110.90},
  881. { "Rodeo",                         312.80, -1684.60,   -89.00,   422.60, -1501.90,   110.90},
  882. { "Rodeo",                         422.60, -1684.60,   -89.00,   558.00, -1570.20,   110.90},
  883. { "Rodeo",                         558.00, -1684.60,   -89.00,   647.50, -1384.90,   110.90},
  884. { "Rodeo",                         466.20, -1570.20,   -89.00,   558.00, -1385.00,   110.90},
  885. { "Rodeo",                         422.60, -1570.20,   -89.00,   466.20, -1406.00,   110.90},
  886. { "Rodeo",                         466.20, -1385.00,   -89.00,   647.50, -1235.00,   110.90},
  887. { "Rodeo",                         334.50, -1406.00,   -89.00,   466.20, -1292.00,   110.90},
  888. { "Royal Casino",                 2087.30,  1383.20,   -89.00,  2437.30,  1543.20,   110.90},
  889. { "San Andreas Sound",            2450.30,   385.50,  -100.00,  2759.20,   562.30,   200.00},
  890. { "Santa Flora",                 -2741.00,   458.40,    -7.60, -2533.00,   793.40,   200.00},
  891. { "Santa Maria Beach",             342.60, -2173.20,   -89.00,   647.70, -1684.60,   110.90},
  892. { "Santa Maria Beach",              72.60, -2173.20,   -89.00,   342.60, -1684.60,   110.90},
  893. { "Shady Cabin",                 -1632.80, -2263.40,    -3.00, -1601.30, -2231.70,   200.00},
  894. { "Shady Creeks",                -1820.60, -2643.60,    -8.00, -1226.70, -1771.60,   200.00},
  895. { "Shady Creeks",                -2030.10, -2174.80,    -6.10, -1820.60, -1771.60,   200.00},
  896. { "Sobell Rail Yards",            2749.90,  1548.90,   -89.00,  2923.30,  1937.20,   110.90},
  897. { "Spinybed",                     2121.40,  2663.10,   -89.00,  2498.20,  2861.50,   110.90},
  898. { "Starfish Casino",              2437.30,  1783.20,   -89.00,  2685.10,  2012.10,   110.90},
  899. { "Starfish Casino",              2437.30,  1858.10,   -39.00,  2495.00,  1970.80,    60.90},
  900. { "Starfish Casino",              2162.30,  1883.20,   -89.00,  2437.30,  2012.10,   110.90},
  901. { "Temple",                       1252.30, -1130.80,   -89.00,  1378.30, -1026.30,   110.90},
  902. { "Temple",                       1252.30, -1026.30,   -89.00,  1391.00,  -926.90,   110.90},
  903. { "Temple",                       1252.30,  -926.90,   -89.00,  1357.00,  -910.10,   110.90},
  904. { "Temple",                        952.60, -1130.80,   -89.00,  1096.40,  -937.10,   110.90},
  905. { "Temple",                       1096.40, -1130.80,   -89.00,  1252.30, -1026.30,   110.90},
  906. { "Temple",                       1096.40, -1026.30,   -89.00,  1252.30,  -910.10,   110.90},
  907. { "The Camel's Toe",              2087.30,  1203.20,   -89.00,  2640.40,  1383.20,   110.90},
  908. { "The Clown's Pocket",           2162.30,  1783.20,   -89.00,  2437.30,  1883.20,   110.90},
  909. { "The Emerald Isle",             2011.90,  2202.70,   -89.00,  2237.40,  2508.20,   110.90},
  910. { "The Farm",                    -1209.60, -1317.10,   114.90,  -908.10,  -787.30,   251.90},
  911. { "The Four Dragons Casino",      1817.30,   863.20,   -89.00,  2027.30,  1083.20,   110.90},
  912. { "The High Roller",              1817.30,  1283.20,   -89.00,  2027.30,  1469.20,   110.90},
  913. { "The Mako Span",                1664.60,   401.70,     0.00,  1785.10,   567.20,   200.00},
  914. { "The Panopticon",               -947.90,  -304.30,    -1.10,  -319.60,   327.00,   200.00},
  915. { "The Pink Swan",                1817.30,  1083.20,   -89.00,  2027.30,  1283.20,   110.90},
  916. { "The Sherman Dam",              -968.70,  1929.40,    -3.00,  -481.10,  2155.20,   200.00},
  917. { "The Strip",                    2027.40,   863.20,   -89.00,  2087.30,  1703.20,   110.90},
  918. { "The Strip",                    2106.70,  1863.20,   -89.00,  2162.30,  2202.70,   110.90},
  919. { "The Strip",                    2027.40,  1783.20,   -89.00,  2162.30,  1863.20,   110.90},
  920. { "The Strip",                    2027.40,  1703.20,   -89.00,  2137.40,  1783.20,   110.90},
  921. { "The Visage",                   1817.30,  1863.20,   -89.00,  2106.70,  2011.80,   110.90},
  922. { "The Visage",                   1817.30,  1703.20,   -89.00,  2027.40,  1863.20,   110.90},
  923. { "Unity Station",                1692.60, -1971.80,   -20.40,  1812.60, -1932.80,    79.50},
  924. { "Valle Ocultado",               -936.60,  2611.40,     2.00,  -715.90,  2847.90,   200.00},
  925. { "Verdant Bluffs",                930.20, -2488.40,   -89.00,  1249.60, -2006.70,   110.90},
  926. { "Verdant Bluffs",               1073.20, -2006.70,   -89.00,  1249.60, -1842.20,   110.90},
  927. { "Verdant Bluffs",               1249.60, -2179.20,   -89.00,  1692.60, -1842.20,   110.90},
  928. { "Verdant Meadows",                37.00,  2337.10,    -3.00,   435.90,  2677.90,   200.00},
  929. { "Verona Beach",                  647.70, -2173.20,   -89.00,   930.20, -1804.20,   110.90},
  930. { "Verona Beach",                  930.20, -2006.70,   -89.00,  1073.20, -1804.20,   110.90},
  931. { "Verona Beach",                  851.40, -1804.20,   -89.00,  1046.10, -1577.50,   110.90},
  932. { "Verona Beach",                 1161.50, -1722.20,   -89.00,  1323.90, -1577.50,   110.90},
  933. { "Verona Beach",                 1046.10, -1722.20,   -89.00,  1161.50, -1577.50,   110.90},
  934. { "Vinewood",                      787.40, -1310.20,   -89.00,   952.60, -1130.80,   110.90},
  935. { "Vinewood",                      787.40, -1130.80,   -89.00,   952.60,  -954.60,   110.90},
  936. { "Vinewood",                      647.50, -1227.20,   -89.00,   787.40, -1118.20,   110.90},
  937. { "Vinewood",                      647.70, -1416.20,   -89.00,   787.40, -1227.20,   110.90},
  938. { "Whitewood Estates",             883.30,  1726.20,   -89.00,  1098.30,  2507.20,   110.90},
  939. { "Whitewood Estates",            1098.30,  1726.20,   -89.00,  1197.30,  2243.20,   110.90},
  940. { "Willowfield",                  1970.60, -2179.20,   -89.00,  2089.00, -1852.80,   110.90},
  941. { "Willowfield",                  2089.00, -2235.80,   -89.00,  2201.80, -1989.90,   110.90},
  942. { "Willowfield",                  2089.00, -1989.90,   -89.00,  2324.00, -1852.80,   110.90},
  943. { "Willowfield",                  2201.80, -2095.00,   -89.00,  2324.00, -1989.90,   110.90},
  944. { "Willowfield",                  2541.70, -1941.40,   -89.00,  2703.50, -1852.80,   110.90},
  945. { "Willowfield",                  2324.00, -2059.20,   -89.00,  2541.70, -1852.80,   110.90},
  946. { "Willowfield",                  2541.70, -2059.20,   -89.00,  2703.50, -1941.40,   110.90},
  947. { "Yellow Bell Station",          1377.40,  2600.40,   -21.90,  1492.40,  2687.30,    78.00},
  948. // Main Zones
  949. { "Los Santos",                     44.60, -2892.90,  -242.90,  2997.00,  -768.00,   900.00},
  950. { "Las Venturas",                  869.40,   596.30,  -242.90,  2997.00,  2993.80,   900.00},
  951. { "Bone County",                  -480.50,   596.30,  -242.90,   869.40,  2993.80,   900.00},
  952. { "Tierra Robada",               -2997.40,  1659.60,  -242.90,  -480.50,  2993.80,   900.00},
  953. { "Tierra Robada",               -1213.90,   596.30,  -242.90,  -480.50,  1659.60,   900.00},
  954. { "San Fierro",                  -2997.40, -1115.50,  -242.90, -1213.90,  1659.60,   900.00},
  955. { "Red County",                  -1213.90,  -768.00,  -242.90,  2997.00,   596.30,   900.00},
  956. { "Flint County",                -1213.90, -2892.90,  -242.90,    44.60,  -768.00,   900.00},
  957. { "Whetstone",                   -2997.40, -2892.90,  -242.90, -1213.90, -1115.50,   900.00}};
  958.  
  959. main() print("\nRuNix's Cops and Robbers\n\n");
  960.  
  961. #pragma unused ret_memcpy
  962.  
  963. forward PlayerRecentlyRobbed();
  964. forward HandCuffs();
  965. forward TimeUpdate();
  966. forward WantedLevel();
  967. forward Float:GetDistanceBetweenPlayers(p1, p2);
  968. forward ShowCarListMenu(playerid);
  969. forward Unjail();
  970. forward RobbingStores();
  971. forward AllStores();
  972. forward BankRecentlyUsedByRobber();
  973. forward RecentlyRentedACar();
  974. forward ResetMedicWeapons();
  975. forward BlowPlayers();
  976. forward BlowCar(vehicleid);
  977. forward ReFill(playerid);
  978. forward BlowUpBar();
  979. forward RebuildBar();
  980. forward DriverSalary();
  981. forward GivePlayerMoneyEx(playerid,money,reason[]);
  982. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  983. //---------------TAXI----------------
  984. forward terminarMission(playerid);
  985. forward caidadeficha();
  986. //-----------------------------------
  987. //-----------------------------------------------------------------------------|
  988. //                                                                             |
  989. //-----------------------------------------------------------------------------|
  990.  
  991. public OnGameModeExit()
  992. {
  993.     for(new i = 0; i <MAX_PLAYERS; i++)
  994.     {
  995.         TextDrawDestroy(Text:Speed[i][Speedom]);
  996.     }
  997.     for (new p = 0; p < 2; p++) KillTimer(TimerKill[p]);
  998. }
  999. public OnGameModeInit()
  1000. {
  1001.     SendRconCommand("hostname RuNix's Cops And Robbers[v1.2]");
  1002.     SendRconCommand("mapname San Andreas");
  1003.     SendRconCommand("weburl wWw.rSs-rO.cOm");
  1004.     SetGameModeText("Cops and Robbers [v1.2]");
  1005.  
  1006.     DisableInteriorEnterExits();
  1007.     ShowPlayerMarkers(2);
  1008.  
  1009.     //BUS
  1010.     for (new i=0;i<MAX_PLAYERS;i++)
  1011.         {
  1012.         playerInMiniMission2[i]=-1;
  1013.         avisado2[i]=-1;
  1014.         OnBusAsPassenger[i]=-1;
  1015.         }
  1016.     caidadeficha2Timer2=-1;
  1017.     cantidadPasajeros2=0;
  1018.     SetTimer("caidadeficha2",30000,1);
  1019.     //
  1020.  
  1021.     //-------------TAXI------------
  1022.     for (new i=0;i<MAX_PLAYERS;i++)
  1023.         {
  1024.         playerInJob[i]=-1;
  1025.         avisado[i]=-1;
  1026.         OnTaxiAsPassenger[i]=-1;
  1027.         }
  1028.     caidadefichaTimer=-1;
  1029.     cantidadPasajeros=0;
  1030.     SetTimer("caidadeficha",30000,1);
  1031.     //------------------------------
  1032.  
  1033.     SetTimer("TimeUpdate", 600000, true);
  1034.     ATMRecentlyRobbed = 0;
  1035.     DildoRecentlyRobbed = 0;
  1036.     HallRecentlyRobbed = 0;
  1037.     RentalRecentlyRobbed = 0;
  1038.     time = 12;
  1039.     //LV
  1040.     cpbankentrance = CPS_AddCheckpoint(2019.5000, 1913.0396, 12.3114, 2, 40);
  1041.     cpbank = CPS_AddCheckpoint(2315.8755, -7.4058, 26.7422, 2, 7);
  1042.     cplvpdentrance = CPS_AddCheckpoint(2287.0925, 2431.6145, 10.8203, 2, 40);
  1043.     cphospital = CPS_AddCheckpoint(1607.4465, 1816.1157, 10.8203, 2, 100);
  1044.     cpdildoentrance = CPS_AddCheckpoint(2085.6697, 2074.0100, 11.0547, 2, 40);
  1045.     cpdildo = CPS_AddCheckpoint(-104.7753, -10.6159, 1000.7188, 2, 20);
  1046.     cplvchentrance = CPS_AddCheckpoint(2412.5625, 1123.8337, 10.8203, 2, 40);
  1047.     cpcityhall = CPS_AddCheckpoint(362.6970, 173.7694, 1008.3828, 2, 20);
  1048.     cpghost = CPS_AddCheckpoint(2172.1233, 1398.1210, 11.0625, 2, 15);
  1049.     cpbarentrance = CPS_AddCheckpoint(2113.2854, 1333.5800, 10.8203, 2, 40);
  1050.     cpbarexit = CPS_AddCheckpoint(2102.4478, 1328.3512, 1297.4639, 2, 10);
  1051.     cpbincoentrance = CPS_AddCheckpoint(2101.8979, 2257.3718, 11.0234, 2, 40);
  1052.     cpzipentrance = CPS_AddCheckpoint(2249.1479, 960.5301, 10.8130, 2, 40);
  1053.     cpzip = CPS_AddCheckpoint(162.7595, -83.2518, 1001.8047, 2, 10);
  1054.     cpbombshop = CPS_AddCheckpoint(2032.1550, 2162.4448, 10.8203, 2, 40);
  1055.     cpurbanentrance = CPS_AddCheckpoint(2184.2126, 2295.6084, 10.8203, 2, 40);
  1056.     cpurban = CPS_AddCheckpoint(203.2626, -43.2611, 1001.8047, 2, 5);
  1057.     cpdrugs = CPS_AddCheckpoint(2491.5000, 918.4912, 11.0234, 2, 40);
  1058.     cp4Dragonsentrace = CPS_AddCheckpoint(2019.3212,1007.7536,10.8203, 2, 40);
  1059.     cp4Dragonsexit = CPS_AddCheckpoint(2019.0708,1017.8350,996.8750, 2, 40);
  1060.     cpcaligulasentrace = CPS_AddCheckpoint(2196.9517,1677.1399,12.3672, 2, 40);
  1061.     cpcaligulasexit = CPS_AddCheckpoint(2233.9785,1714.6780,1012.3828, 2, 40);
  1062.     cpcaligulas = CPS_AddCheckpoint(2144.1499,1641.6793,993.5761, 2, 40);
  1063.     cp4Dragons = CPS_AddCheckpoint(1940.6887,983.4753,992.4688, 2, 40);
  1064.     //LS
  1065.     cplspdentrance = CPS_AddCheckpoint(1555.0673,-1675.6428,16.1953, 2, 40);
  1066.     cplschentrance = CPS_AddCheckpoint(1481.1427,-1771.6808,18.7958, 2, 20);
  1067.     cplsdrugs = CPS_AddCheckpoint(1122.7067,-2037.0416,69.8942, 2, 40);
  1068.     cplsbincoentrance = CPS_AddCheckpoint(2244.4128,-1665.5463,15.4766, 2, 5);
  1069.     cplshospital = CPS_AddCheckpoint(1172.8318,-1323.2954,15.4001, 2, 40);
  1070.     cplsbombshop = CPS_AddCheckpoint(1857.1792,-1874.2761,13.4829, 2, 40);
  1071.     cplsbarentrance = CPS_AddCheckpoint(2309.8811,-1643.7646,14.8270, 2, 40);
  1072.     cplsbankentrance = CPS_AddCheckpoint(1411.7141,-1700.0085,13.5395, 2, 40);
  1073.     cplsghost = CPS_AddCheckpoint(1703.9697,-1469.9948,13.5469, 2, 15);
  1074.     cplsurbanentrance = CPS_AddCheckpoint(499.6478,-1360.3167,16.3421, 2, 40);
  1075.     cplsurbanentrance2 = CPS_AddCheckpoint(822.3297,-1757.5181,13.6484, 2, 40);
  1076.     cplszipentrance = CPS_AddCheckpoint(2139.1853,-1743.2207,13.5524, 2, 40);
  1077.  
  1078.     //SF
  1079.     cpsfpdentrance = CPS_AddCheckpoint(-1605.4486,710.8713,13.8672, 2, 60);
  1080.     cpsfdrugs = CPS_AddCheckpoint(-2719.4172,-319.2030,7.8438, 2, 60);
  1081.     cpsfhospital = CPS_AddCheckpoint(-2655.0779,640.0289,14.4545, 2, 40);
  1082.     cpsfbombshop = CPS_AddCheckpoint(-2032.9038,161.4297,29.0461, 2, 40);
  1083.     cpsfbankentrance = CPS_AddCheckpoint(-1581.2535,867.2552,7.6953, 2, 40);
  1084.     cpsfghost = CPS_AddCheckpoint(-1946.0483,273.3452,35.4739, 2, 15);
  1085.     cpsfurbanentrance = CPS_AddCheckpoint(-2490.9307,-142.7729,25.6172, 2, 40);
  1086.     cpsfzipentrance = CPS_AddCheckpoint(-1881.1808,823.0976,35.1770, 2, 40);
  1087.  
  1088.     //In Interior
  1089.     cpbankexit = CPS_AddCheckpoint(2306.5283, -16.2048, 26.7496, 2, 7);
  1090.     cpurbanexit = CPS_AddCheckpoint(203.7821, -50.6640, 1001.8047, 2, 5);
  1091.     cpzipexit = CPS_AddCheckpoint(161.3950, -97.1106, 1001.8047, 2, 10);
  1092.     cpbincoexit = CPS_AddCheckpoint(207.6098, -111.2587, 1005.1328, 2, 5);
  1093.     cplvchexit = CPS_AddCheckpoint(390.7697, 173.8317, 1008.3828, 2, 20);
  1094.     cpdildoexit = CPS_AddCheckpoint(-100.3964, -24.5959, 1000.7188, 2, 20);
  1095.     cplvpdexit = CPS_AddCheckpoint(238.6930, 139.1192, 1003.0234, 2, 20);
  1096.     cplvpdhand = CPS_AddCheckpoint(235.6114, 165.4718, 1003.0300, 2, 20);
  1097.     cpbinco = CPS_AddCheckpoint(208.8474, -100.3271, 1005.25789, 2, 5);
  1098.     cpammu = CPS_AddCheckpoint(296.5011,-37.9712,1001.5156,1,35);
  1099.     cpammu2 = CPS_AddCheckpoint(314.2445,-133.1708,999.6016,1,35);
  1100.     cpammu3 = CPS_AddCheckpoint(295.6205,-80.8057,1001.5156,1,35);
  1101.     cpammu4 = CPS_AddCheckpoint(312.3840,-166.1258,999.6010,1,35);
  1102.     cpammu5 = CPS_AddCheckpoint(289.5338,-109.7698,1001.5156,1,35);
  1103.     cpammuexit = CPS_AddCheckpoint(285.4340,-41.7365,1001.5156,1,20);
  1104.     cpammuexit2 = CPS_AddCheckpoint(315.8784,-143.6499,999.6016,1,20);
  1105.     cpammuexit3 = CPS_AddCheckpoint(285.7483,-86.5335,1001.5229,1,20);
  1106.     cpammuexit4 = CPS_AddCheckpoint(316.4094,-170.2954,999.5938,1,20);
  1107.     cpammuexit5 = CPS_AddCheckpoint(296.7770,-111.8694,1001.5156,1,20);
  1108.    
  1109.     //Ammunations
  1110.     cpammuentrace1 = CPS_AddCheckpoint(-314.4526,829.8660,14.2422,2.0,50); //Ammu
  1111.     cpammuentrace2 = CPS_AddCheckpoint(-1509.1987,2607.8308,55.8359,2.0,50); //Ammu
  1112.     cpammuentrace3 = CPS_AddCheckpoint(778.0967,1871.3663,4.9064,2.0,50); //Ammu
  1113.     cpammuentrace4 = CPS_AddCheckpoint(2157.2400,943.3561,10.8203,2.0,50); //Ammu
  1114.     cpammuentrace5 = CPS_AddCheckpoint(2537.2446,2083.8816,10.8203,2.0,50); //Ammu
  1115.     cpammuentrace6 = CPS_AddCheckpoint(2335.0498,61.5352,26.4832,2.0,50); //Ammu
  1116.     cpammuentrace7 = CPS_AddCheckpoint(1365.1813,-1279.3116,13.5469,2.0,50); //Ammu
  1117.     cpammuentrace8 = CPS_AddCheckpoint(2400.5313,-1980.2539,13.5469,2.0,50); //Ammu
  1118.     cpammuentrace9 = CPS_AddCheckpoint(-2625.8728,210.1599,4.6168,2.0,50); //Ammu
  1119.     cpammuentrace10 = CPS_AddCheckpoint(-2092.6567,-2463.5925,30.6250,2.0,50); //Ammu
  1120.  
  1121.     //ATM-uri
  1122.     cpatm1 = CPS_AddCheckpoint(2172.8428, 1416.7751, 11.0625, 2, 40);
  1123.     cpatm2 = CPS_AddCheckpoint(2110.5188, 2060.4219, 10.8203, 2, 40);
  1124.     cpatm3 = CPS_AddCheckpoint(2134.0115, 2379.3159, 10.8203, 2, 40);
  1125.     cpatm4 = CPS_AddCheckpoint(2455.5420, 1681.4117, 11.0234, 2, 40);
  1126.     cpatm5 = CPS_AddCheckpoint(-2635.9067,1398.5020,7.0938, 2, 40);
  1127.     cpatm6 = CPS_AddCheckpoint(-1575.3977,902.4458,7.5610, 2, 40);
  1128.     cpatm7 = CPS_AddCheckpoint(-2434.0908,516.8967,30.3705, 2, 40);
  1129.     cpatm9 = CPS_AddCheckpoint(852.7184,-1760.9111,13.5491, 2, 40);
  1130.     cpatm10 = CPS_AddCheckpoint(1243.2965,-1561.1505,13.5545, 2, 40);
  1131.     cpatm11 = CPS_AddCheckpoint(1787.9928,-1592.2491,13.4870, 2, 40);
  1132.    
  1133.     //LS COP
  1134.     cpcopLSjos = CPS_AddCheckpoint(1568.7113,-1690.4612,5.8906, 2, 20);
  1135.     cpcopLSsus = CPS_AddCheckpoint(1573.0570,-1675.4435,28.3955, 2, 40);
  1136.  
  1137.     //LV COP
  1138.     cpcopLVjos = CPS_AddCheckpoint(2268.2466,2448.4587,3.5313, 2, 40);
  1139.     cpcopLVsus = CPS_AddCheckpoint(2271.7534,2463.8074,38.6837, 2, 40);
  1140.  
  1141.     //SF COP
  1142.     cpcopSFsus = CPS_AddCheckpoint(-1593.4403,716.2719,-5.2422, 2, 40);
  1143.     cpcopSFjos = CPS_AddCheckpoint(-1610.6396,703.1793,48.9375, 2, 40);
  1144.  
  1145.     Hand = CreateMenu("Hand", 1, 50.0, 200.0, 120.0, 250.0);
  1146.     AddMenuItem(Hand, 0, "Yes");
  1147.     AddMenuItem(Hand, 0, "No");
  1148.  
  1149.     Dildo = CreateMenu("CDildos", 1, 50.0, 200.0, 120.0, 250.0);
  1150.     AddMenuItem(Dildo, 0, "Purple Dildo $50");
  1151.     AddMenuItem(Dildo, 0, "White Dildo $50");
  1152.     AddMenuItem(Dildo, 0, "GREY Dildo $50");
  1153.     AddMenuItem(Dildo, 0, "Rob Store");
  1154.  
  1155.     Rental = CreateMenu("Car Shop", 1, 50.0, 200.0, 120.0, 250.0);
  1156.     AddMenuItem(Rental, 0, "Car List");
  1157.     AddMenuItem(Rental, 0, "Rob Store");
  1158.  
  1159.     CarList = CreateMenu("Buy", 1, 50.0, 200.0, 120.0, 250.0);
  1160.     AddMenuItem(CarList, 0, "Voodoo $20000");
  1161.     AddMenuItem(CarList, 0, "Sultan $50000");
  1162.     AddMenuItem(CarList, 0, "Savanna $35000");
  1163.     AddMenuItem(CarList, 0, "Slamvan $25000");
  1164.  
  1165.     BarEntrance = CreateMenu("Bar", 1, 50.0, 200.0, 120.0, 250.0);
  1166.     AddMenuItem(BarEntrance, 0, "Enter Bar");
  1167.  
  1168.     Drugs = CreateMenu("Drugs", 1, 50.0, 200.0, 120.0, 250.0);
  1169.     AddMenuItem(Drugs, 0, "5 grams");
  1170.     AddMenuItem(Drugs, 0, "15 grams");
  1171.     AddMenuItem(Drugs, 0, "20 grams");
  1172.     AddMenuItem(Drugs, 0, "25 grams");
  1173.     AddMenuItem(Drugs, 0, "Rob");
  1174.  
  1175.     SetTimer("WantedLevel", 500, true);
  1176.     SetTimer("PlayerRecentlyRobbed", 1000, true);
  1177.     SetTimer("Unjail", 1000, true);
  1178.     SetTimer("RobbingStores", 1000, true);
  1179.     SetTimer("AllStores", 1000, true);
  1180.     SetTimer("BlowPlayers", 1000, true);
  1181.     SetTimer("BankRecentlyUsedByRobber", 1000, true);
  1182.     SetTimer("4DRecentlyUsedByRobber", 1000, true);
  1183.     SetTimer("CaRecentlyUsedByRobber", 1000, true);
  1184.     SetTimer("ResetMedicWeapons", 1000, true);
  1185.     TimerKill[0] = SetTimer("Sorsolas", SORSOLASTIMER, 1);
  1186.     TimerKill[1] = SetTimer("LottoHirdetes", HIRDETESTIMER, 1);
  1187.    
  1188.     for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++)
  1189.     {
  1190.         Vehicle[Vehicles][Fuel] = Random(SPAWN_GAS_MIN, SPAWN_GAS_MAX);
  1191.     }
  1192.     for(new i = 0; i < MAX_PLAYERS; i++)
  1193.     {
  1194.         Speed[i][ShowSpeed] = 1;
  1195.         Speed[i][Refueling] = 0;
  1196.  
  1197.         Speed[i][Speedom] = TextDrawCreate(1.000000, 430.000000,"_");
  1198.         TextDrawTextSize(Speed[i][Speedom],625.000000,0.000000);
  1199.         TextDrawAlignment(Speed[i][Speedom],0);
  1200.         TextDrawBackgroundColor(Speed[i][Speedom],0x0000ffff);
  1201.         TextDrawFont(Speed[i][Speedom],1);
  1202.         TextDrawLetterSize(Speed[i][Speedom],0.399999, 1.400000);
  1203.         TextDrawColor(Speed[i][Speedom],0xffff00ff);
  1204.         TextDrawSetOutline(Speed[i][Speedom],1);
  1205.         TextDrawSetProportional(Speed[i][Speedom],1);
  1206.         TextDrawSetShadow(Speed[i][Speedom],1);
  1207.        
  1208.         Speed[i][Speedom2] = TextDrawCreate(1.000000, 430.000000,"_");
  1209.         TextDrawTextSize(Speed[i][Speedom2],625.000000,0.000000);
  1210.         TextDrawAlignment(Speed[i][Speedom2],0);
  1211.         TextDrawFont(Speed[i][Speedom2],1);
  1212.         TextDrawLetterSize(Speed[i][Speedom2],0.399999, 1.400000);
  1213.         TextDrawColor(Speed[i][Speedom2],0xffff00ff);
  1214.         TextDrawSetOutline(Speed[i][Speedom2],1);
  1215.         TextDrawSetProportional(Speed[i][Speedom2],1);
  1216.         TextDrawSetShadow(Speed[i][Speedom2],1);
  1217.  
  1218.         SetTimerEx("Speedometer",1000,true,"i",i);
  1219.     }
  1220.  
  1221.  
  1222.     AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1223.     AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1224.     AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1225.     AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1226.     AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1227.     AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1228.  
  1229.     AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // FBI
  1230.  
  1231.     AddPlayerClass(285, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // SWAT
  1232.  
  1233.     AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Army
  1234.    
  1235.     AddPlayerClass(274, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
  1236.     AddPlayerClass(275, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
  1237.     AddPlayerClass(276, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic 20
  1238.    
  1239.     AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 0
  1240.     AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1241.     AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1242.     AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1243.     AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1244.     AddPlayerClass(28, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 5
  1245.     AddPlayerClass(29, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1246.     AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1247.     AddPlayerClass(47, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1248.     AddPlayerClass(59, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1249.     AddPlayerClass(98, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 10
  1250.     AddPlayerClass(101, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1251.     AddPlayerClass(116, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1252.     AddPlayerClass(124, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1253.     AddPlayerClass(186, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1254.     AddPlayerClass(188, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 15
  1255.     AddPlayerClass(223, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1256.     AddPlayerClass(240, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1257.     AddPlayerClass(58, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1258.  
  1259.     CreateObject(2754,2173.642,1416.756,10.965,0.0,0.0,0.0);
  1260.     CreateObject(2754,2110.551,2061.222,10.645,0.0,0.0,90.000);
  1261.     CreateObject(2754,2134.022,2380.115,10.722,0.0,0.0,90.000);
  1262.     CreateObject(2754,2455.509,1682.210,10.926,0.0,0.0,90.000);
  1263.  
  1264.     CreateObject(2754,1787.425,-1591.667,13.383,0.0,-0.859,128.984);//
  1265.     CreateObject(2754,852.741,-1760.101,13.451,0.0,0.0,90.000);//
  1266.     CreateObject(2754,1243.338,-1560.346,13.458,0.0,0.0,-270.000);//
  1267.     CreateObject(2754,-1575.455,901.579,7.555,0.0,0.0,-90.000);//
  1268.     CreateObject(2754,-2636.126,1399.269,7.002,0.0,0.0,-254.453);//
  1269.     CreateObject(2754,-2434.890,516.938,30.266,0.0,0.0,-180.077);//
  1270.  
  1271.     CreateObject(3077,2173.666,1398.133,10.055,0.0,0.0,-90.000);
  1272.     CreateObject(3249,2120.823,1333.566,9.820,0.0,0.0,-90.000);
  1273.     CreateObject(2591,2086.406,1331.995,1297.114,0.0,0.0,90.000);
  1274.     CreateObject(970,2131.378,1331.550,10.373,0.0,0.0,90.000);
  1275.     CreateObject(970,2131.370,1335.675,10.379,0.0,0.0,90.000);
  1276.     CreateObject(1267,2100.687,1315.522,25.885,0.0,0.0,112.500);
  1277.     CreateObject(615,2102.430,1344.295,9.814,0.0,0.0,0.0);
  1278.     CreateObject(615,2097.778,1352.475,9.807,0.0,0.0,0.0);
  1279.     CreateObject(18018,2102.414,1338.047,1296.456,0.0,0.0,180.000);
  1280.     CreateObject(18090,2111.170,1334.028,1299.027,0.0,0.0,0.0);
  1281.     CreateObject(1541,2112.979,1330.078,1298.828,0.0,0.0,90.000);
  1282.     CreateObject(1545,2112.193,1335.818,1298.379,0.0,0.0,270.000);
  1283.     CreateObject(1487,2112.616,1335.134,1298.334,0.0,0.0,0.0);
  1284.     CreateObject(1487,2112.611,1334.913,1298.334,0.0,0.0,0.0);
  1285.     CreateObject(1512,2110.238,1333.208,1297.708,0.0,0.0,56.250);
  1286.     CreateObject(1520,2112.489,1334.566,1297.703,0.0,0.0,0.0);
  1287.     CreateObject(1543,2109.845,1334.312,1297.506,0.0,0.0,0.0);
  1288.     CreateObject(1543,2112.590,1333.678,1298.671,0.0,0.0,0.0);
  1289.     CreateObject(1544,2112.452,1334.781,1298.671,0.0,0.0,0.0);
  1290.     CreateObject(1544,2110.382,1337.917,1297.499,0.0,0.0,0.0);
  1291.     CreateObject(1547,2109.969,1336.964,1297.512,0.0,0.0,236.250);
  1292.     CreateObject(1548,2112.032,1338.103,1297.516,0.0,0.0,11.250);
  1293.     CreateObject(1664,2112.576,1333.818,1298.303,0.0,0.0,0.0);
  1294.     CreateObject(1665,2109.716,1333.551,1297.521,0.0,0.0,0.0);
  1295.     CreateObject(18077,2106.904,1333.482,1297.027,0.0,0.0,0.0);
  1296.     CreateObject(1532,2103.933,1327.937,1296.457,0.0,0.0,180.000);
  1297.     CreateObject(1532,2102.428,1327.950,1296.457,0.0,0.0,180.000);
  1298.     CreateObject(3851,2086.412,1337.231,1299.647,0.0,0.0,0.0);
  1299.     CreateObject(1523,2082.852,1331.578,1299.467,0.0,0.0,0.0);
  1300.     CreateObject(936,2083.701,1341.965,1299.954,0.0,0.0,0.0);
  1301.     CreateObject(1744,2086.156,1341.337,1300.562,0.0,0.0,-90.000);
  1302.     CreateObject(2737,2084.512,1342.509,1301.116,0.0,0.0,0.0);
  1303.     CreateObject(2291,2085.635,1335.864,1299.478,0.0,0.0,270.000);
  1304.     CreateObject(2291,2085.626,1334.943,1299.478,0.0,0.0,270.000);
  1305.     CreateObject(2291,2085.626,1333.982,1299.478,0.0,0.0,270.000);
  1306.     CreateObject(1663,2083.330,1340.874,1299.939,0.0,0.0,146.250);
  1307.     CreateObject(1723,2097.586,1330.152,1298.891,0.0,0.0,-90.000);
  1308.     CreateObject(1723,2094.974,1326.679,1298.992,0.0,0.0,-180.000);
  1309.     CreateObject(1723,2088.941,1329.203,1298.891,0.0,0.0,90.000);
  1310.     CreateObject(2311,2093.204,1328.834,1298.885,0.0,0.0,0.0);
  1311.     CreateObject(1696,2081.341,1329.203,1298.483,0.0,0.0,0.0);
  1312.     CreateObject(2785,2112.033,1351.602,1297.308,0.0,0.0,0.0);
  1313.     CreateObject(2785,2115.960,1348.485,1297.308,0.0,0.0,-90.000);
  1314.     CreateObject(2785,2112.367,1345.267,1297.300,0.0,0.0,180.000);
  1315.     CreateObject(2780,2096.854,1338.657,1290.535,0.0,0.0,0.0);
  1316.     CreateObject(1486,2089.066,1331.882,1299.968,0.0,0.0,0.0);
  1317.     CreateObject(1486,2094.264,1329.094,1299.536,0.0,0.0,0.0);
  1318.     CreateObject(1486,2093.797,1328.578,1299.538,0.0,0.0,0.0);
  1319.     CreateObject(1486,2093.226,1328.986,1299.536,0.0,0.0,0.0);
  1320.     CreateObject(1486,2089.160,1331.983,1299.968,0.0,0.0,0.0);
  1321.     CreateObject(1486,2089.131,1329.373,1299.380,90.241,0.0,33.750);
  1322.     CreateObject(1486,2089.921,1330.388,1298.913,94.538,0.0,33.750);
  1323.     CreateObject(1486,2098.262,1331.060,1299.968,0.0,0.0,0.0);
  1324.     CreateObject(1512,2099.001,1330.510,1296.486,87.663,0.0,0.0);
  1325.     CreateObject(9833,2096.497,1347.317,1305.492,180.482,0.0,45.000);
  1326.     CreateObject(9833,2090.230,1347.290,1310.471,180.482,0.0,45.000);
  1327.     CreateObject(9833,2103.819,1347.284,1310.421,180.482,0.0,45.000);
  1328.     CreateObject(2732,2264.098,968.830,13.681,0.0,0.0,180.000);
  1329.     CreateObject(2733,2254.177,968.780,13.664,0.0,0.0,180.000);
  1330.     CreateObject(2734,2244.198,968.755,13.689,0.0,0.0,180.000);
  1331.     CreateObject(2735,2252.341,961.731,11.525,0.0,0.0,180.000);
  1332.     CreateObject(2733,2246.148,961.706,11.507,0.0,0.0,180.000);
  1333.  
  1334.     AddStaticVehicleEx(534,2472.9211,1658.7762,10.5465,359.8307,6,6, 500); //
  1335.     AddStaticVehicleEx(499,2405.3523,1667.8323,10.8129,359.5840,109,32, 500); //
  1336.     AddStaticVehicleEx(412,2372.6116,1648.4834,10.6580,0.8343,10,8, 500); //
  1337.     AddStaticVehicleEx(562,2466.3171,1677.0613,10.4786,178.7625,66,72, 500); //
  1338.     AddStaticVehicleEx(426,2461.7959,1629.1102,10.5639,179.0690,0,0, 500); //
  1339.     AddStaticVehicleEx(402,2445.7551,1629.4286,10.6519,0.2863,13,13, 500); //
  1340.     AddStaticVehicleEx(603,2405.8633,1629.0724,10.6586,359.5122,8,8, 500); //
  1341.     AddStaticVehicleEx(535,2392.5156,1658.7957,10.5837,1.0343,28,1, 500); //
  1342.     AddStaticVehicleEx(575,2479.2625,1667.8008,10.4150,179.7732,3,3, 500); //
  1343.     AddStaticVehicleEx(411,2367.4495,1004.6971,10.5474,269.8430,64,64, 500); //
  1344.     AddStaticVehicleEx(477,2393.2632,988.4747,10.5774,92.3181,0,0, 500); //
  1345.     AddStaticVehicleEx(546,2393.1833,994.2506,10.5446,270.0536,42,42, 500); //
  1346.     AddStaticVehicleEx(565,2394.5703,999.7688,10.4460,88.1333,42,42, 500); //
  1347.     AddStaticVehicleEx(603,2393.6338,1005.4090,10.6583,90.0020,3,3, 500); //
  1348.     AddStaticVehicleEx(462,2142.3591,1012.7918,10.4165,91.9208,13,13, 500); //
  1349.     AddStaticVehicleEx(412,2142.2070,1022.6295,10.6581,271.0170,11,1, 500); //
  1350.     AddStaticVehicleEx(535,2162.6340,1028.9689,10.5832,270.9259,31,1, 500); //
  1351.     AddStaticVehicleEx(567,2157.7578,987.4936,10.6888,180.2066,88,64, 500); //
  1352.     AddStaticVehicleEx(582,2163.1558,1009.7912,10.8740,270.0522,41,20, 500); //
  1353.     AddStaticVehicleEx(560,2172.2048,1019.2856,10.5256,89.6247,9,39, 500); //
  1354.     AddStaticVehicleEx(558,2172.0122,1006.4577,10.4501,89.5966,116,1, 500); //
  1355.     AddStaticVehicleEx(405,2172.1658,1012.8825,10.6953,269.3904,9,39, 500); //
  1356.     AddStaticVehicleEx(559,2132.1841,1019.4150,10.4767,271.0511,73,73, 500); //
  1357.     AddStaticVehicleEx(426,2141.7686,987.2473,10.5639,179.6218,6,6, 500); //
  1358.     AddStaticVehicleEx(547,2179.5127,987.5496,10.5846,359.1130,108,108, 500); //
  1359.     AddStaticVehicleEx(412,2354.4670,728.7990,11.0687,178.6039,27,1, 500); //
  1360.     AddStaticVehicleEx(461,2362.4084,739.2892,11.0465,175.1550,37,1, 500); //
  1361.     AddStaticVehicleEx(405,2353.5063,698.0624,11.1730,359.5570,17,1, 500); //
  1362.     AddStaticVehicleEx(551,2361.1511,698.7083,10.9552,178.5026,62,62, 500); //
  1363.     AddStaticVehicleEx(567,2405.7837,728.8138,11.1389,178.9894,90,96, 500); //
  1364.     AddStaticVehicleEx(575,2309.6528,699.0496,10.7698,179.9338,6,6, 500); //
  1365.     AddStaticVehicleEx(409,2125.7625,2358.8254,10.5424,90.4384,96,96, 500); //
  1366.     AddStaticVehicleEx(579,2119.8899,2366.2922,10.7528,180.1806,42,42, 500); //
  1367.     AddStaticVehicleEx(579,2135.4375,2366.5396,10.7533,179.2225,53,53, 500); //
  1368.     AddStaticVehicleEx(411,1945.9452,2081.0701,10.5474,358.7133,44,44, 500); //
  1369.     AddStaticVehicleEx(560,1945.9236,2056.6816,10.5259,0.5755,17,1, 500); //
  1370.     AddStaticVehicleEx(461,1939.7405,2077.5396,10.3958,0.3513,43,1, 500); //
  1371.     AddStaticVehicleEx(522,1939.7479,2069.5010,10.3899,357.2454,3,8, 500); //
  1372.     AddStaticVehicleEx(481,1939.5156,2063.3462,10.3363,0.0796,3,6, 500); //
  1373.     AddStaticVehicleEx(550,2040.0674,1019.7483,10.4857,180.0628,3,3, 500); //
  1374.     AddStaticVehicleEx(551,2040.1283,1001.6779,10.4723,179.5286,44,44, 500); //
  1375.     AddStaticVehicleEx(522,2040.3741,1011.2333,10.2425,179.6930,7,79, 500); //
  1376.     AddStaticVehicleEx(420,2082.1479,2479.3735,10.5991,179.7290,6,76, 500); //
  1377.     AddStaticVehicleEx(438,2090.6277,2479.4390,10.8244,359.7547,6,76, 500); //
  1378.     AddStaticVehicleEx(420,2084.8745,2469.1799,10.5993,359.1951,6,76, 500); //
  1379.     AddStaticVehicleEx(438,2046.3571,2468.8115,10.8230,359.5204,6,76, 500); //
  1380.     AddStaticVehicleEx(438,2057.1445,2479.5557,10.8238,0.0725,6,76, 500); //
  1381.     AddStaticVehicleEx(420,2126.6108,2468.6418,10.5982,0.4535,6,76, 500); //
  1382.     AddStaticVehicleEx(438,2135.0234,2468.9534,10.8212,359.4664,6,76, 500); //
  1383.     AddStaticVehicleEx(420,2153.2742,2479.4822,10.6011,269.2158,6,76, 500); //
  1384.     AddStaticVehicleEx(420,2152.7151,2494.5276,10.6009,89.9420,6,76, 500); //
  1385.     AddStaticVehicleEx(598,2282.1550,2443.3625,10.5685,0.4613,0,1, 500); //
  1386.     AddStaticVehicleEx(598,2277.8914,2461.0503,10.5662,179.0250,0,1, 500); //
  1387.     AddStaticVehicleEx(598,2282.2273,2477.1331,10.5640,359.6212,0,1, 500); //
  1388.     AddStaticVehicleEx(598,2269.0532,2476.5664,10.5676,178.9592,0,1, 500); //
  1389.     AddStaticVehicleEx(598,2273.5305,2443.7686,10.5652,179.1985,0,1, 500); //
  1390.     AddStaticVehicleEx(598,2256.0552,2443.9597,10.5665,359.5947,0,1, 500); //
  1391.     AddStaticVehicleEx(598,2251.6458,2459.4985,10.5687,358.2122,0,1, 500); //
  1392.     AddStaticVehicleEx(598,2260.4390,2477.6992,10.5672,357.7829,0,1, 500); //
  1393.     AddStaticVehicleEx(598,2256.0339,2477.6545,10.5663,177.3497,0,1, 500); //
  1394.     AddStaticVehicleEx(490,2260.3430,2458.3870,10.9491,359.3593,0,1, 500); //
  1395.     AddStaticVehicleEx(490,2269.4644,2443.1841,10.9485,178.7726,0,1, 500); //
  1396.     AddStaticVehicleEx(427,2290.9546,2442.8438,10.9533,177.9908,0,1, 500); //
  1397.     AddStaticVehicleEx(427,2273.4326,2458.7405,10.9524,178.5145,0,1, 500); //
  1398.     AddStaticVehicleEx(546,2032.5714,1905.6959,11.9413,183.0488,42,42, 500); //
  1399.     AddStaticVehicleEx(418,2033.0281,1930.4526,12.2988,173.5465,3,3, 500); //
  1400.     AddStaticVehicleEx(558,2044.9039,1907.8097,11.7633,183.0264,116,1, 500); //
  1401.     AddStaticVehicleEx(560,2044.9648,1925.6631,11.8462,176.9535,21,1, 500); //
  1402.     AddStaticVehicleEx(535,2044.7391,1917.5081,11.9041,179.6416,28,1, 500); //
  1403.     AddStaticVehicleEx(416,1612.7440,1839.2080,10.9697,180.1315,1,3, 500); //
  1404.     AddStaticVehicleEx(416,1602.1962,1831.9338,10.9778,0.0186,1,3, 500); //
  1405.     AddStaticVehicleEx(416,1599.1062,1849.7390,10.9698,180.6114,1,3, 500); //
  1406.     AddStaticVehicleEx(416,1613.9442,1850.1570,10.9698,180.0313,1,3, 500); //
  1407.     AddStaticVehicleEx(416,1593.5956,1840.0591,10.9702,1.2758,1,3, 500); //
  1408.     AddStaticVehicleEx(575,2132.7542,1408.5275,10.4920,0.1349,4,4, 500); //
  1409.     AddStaticVehicleEx(567,2123.1653,1398.6191,10.6987,179.6008,88,64, 500); //
  1410.     AddStaticVehicleEx(558,2139.0557,1398.0648,10.4417,359.4670,24,1, 500); //
  1411.     AddStaticVehicleEx(559,2106.9807,1398.2726,10.4767,179.8120,3,3, 500); //
  1412.     AddStaticVehicleEx(536,2100.8140,1408.8713,10.5579,178.6800,32,1, 500); //
  1413.     AddStaticVehicleEx(560,2145.6990,1408.7677,10.5256,179.8884,33,0, 500); //
  1414.     AddStaticVehicleEx(541,2116.2251,1340.6744,10.4450,91.1779,0,0, 500); //
  1415.     AddStaticVehicleEx(437,-1988.6128,191.8639,27.6723,0.5789,23,84, 500); // CNR
  1416.     AddStaticVehicleEx(420,-1988.1422,178.9573,27.3183,1.4396,6,6, 500); // CNR
  1417.     AddStaticVehicleEx(420,-1987.9703,172.1282,27.3211,1.4395,6,6, 500); // CNR
  1418.     AddStaticVehicleEx(420,-1987.7473,163.2685,27.3186,1.4395,6,6, 500); // CNR
  1419.     AddStaticVehicleEx(420,-1988.0347,153.0820,27.3179,359.3752,6,6, 500); // CNR
  1420.     AddStaticVehicleEx(420,-1988.1346,146.2245,27.3194,0.3721,6,6, 500); // CNR
  1421.     AddStaticVehicleEx(437,-1988.6406,106.2428,27.6724,0.9065,117,47, 500); // CNR
  1422.     AddStaticVehicleEx(438,-1988.2738,131.3374,27.5397,358.4913,6,6, 500); // CNR
  1423.     AddStaticVehicleEx(438,-1988.5242,121.8434,27.5445,358.4913,6,6, 500); // CNR
  1424.     AddStaticVehicleEx(540,-2029.3890,157.1268,28.6981,358.3036,32,107, 500); // CNR
  1425.     AddStaticVehicleEx(526,-1987.0029,307.0458,34.9423,65.8231,25,84, 500); // CNR
  1426.     AddStaticVehicleEx(559,-1990.3962,272.7261,34.7868,240.6091,117,10, 500); // CNR
  1427.     AddStaticVehicleEx(524,-2130.3035,297.3135,35.6152,240.0539,39,32, 500); // CNR
  1428.     AddStaticVehicleEx(497,-1681.5543,706.1519,30.7784,271.6265,0,1, 500); // CNR
  1429.     AddStaticVehicleEx(597,-1600.3014,749.5445,-5.4735,359.8234,0,1, 500); // CNR
  1430.     AddStaticVehicleEx(597,-1574.5607,742.6702,-5.4750,90.5884,0,1, 500); // CNR
  1431.     AddStaticVehicleEx(597,-1574.0773,718.3009,-5.4733,88.2228,0,1, 500); // CNR
  1432.     AddStaticVehicleEx(597,-1639.7535,686.2418,-5.4767,94.0520,0,1, 500); // CNR
  1433.     AddStaticVehicleEx(597,-1620.8264,692.0425,-5.4724,179.9455,0,1, 500); // CNR
  1434.     AddStaticVehicleEx(528,-1600.0839,675.3750,-5.2003,358.0193,70,11, 500); // CNR
  1435.     AddStaticVehicleEx(528,-1622.4645,654.0593,-5.1985,268.2474,70,11, 500); // CNR
  1436.     AddStaticVehicleEx(528,-1580.2118,749.0043,-5.1976,358.6027,70,11, 500); // CNR
  1437.     AddStaticVehicleEx(528,-1612.4758,732.7313,-5.1965,180.3062,70,11, 500); // CNR
  1438.     AddStaticVehicleEx(490,-1608.5421,741.3525,-5.1148,224.1386,96,79, 500); //
  1439.     AddStaticVehicleEx(490,-1590.2271,710.4675,-5.1134,270.6260,0,0, 500); // CNR
  1440.     AddStaticVehicleEx(427,-1573.5730,722.6011,-5.1104,89.3115,0,1, 500); // CNR
  1441.     AddStaticVehicleEx(428,-1581.7739,673.5168,7.3130,359.1592,1,0, 500); // CNR
  1442.     AddStaticVehicleEx(597,-1605.6608,674.2237,6.9549,359.5684,0,1, 500); // CNR
  1443.     AddStaticVehicleEx(597,-1600.0083,652.1969,6.9549,1.3530,0,1, 500); // CNR
  1444.     AddStaticVehicleEx(412,-1626.7611,722.6164,14.4156,252.3011,89,52, 500); // CNR
  1445.     AddStaticVehicleEx(418,-1625.2798,833.4026,7.6379,269.8319,50,75, 500); // CNR
  1446.     AddStaticVehicleEx(424,-2132.2112,722.4828,69.3477,136.9095,54,22, 500); // CNR
  1447.     AddStaticVehicleEx(434,-2482.1794,741.7360,34.9838,177.3357,91,105, 500); // CNR
  1448.     AddStaticVehicleEx(416,-2647.7981,584.1959,14.6023,90.5916,48,74, 500); // CNR
  1449.     AddStaticVehicleEx(416,-2679.0544,627.3723,14.6019,269.1387,48,74, 500); // CNR
  1450.     AddStaticVehicleEx(439,-2543.4226,599.0334,14.3481,90.4391,117,91, 500); // CNR
  1451.     AddStaticVehicleEx(522,-2661.4856,268.5721,3.9123,178.5994,3,3, 500); // CNR
  1452.     AddStaticVehicleEx(560,-2616.3931,90.1765,4.0128,308.5160,79,103, 500); // CNR
  1453.     AddStaticVehicleEx(517,-2661.3965,235.5974,4.1935,88.1109,62,20, 500); // CNR
  1454.     AddStaticVehicleEx(517,-2505.2500,413.4430,27.6352,320.1658,62,20, 500); // CNR
  1455.     AddStaticVehicleEx(411,-2372.3169,519.1977,28.2521,22.9398,24,105, 500); // CNR
  1456.     AddStaticVehicleEx(411,-2646.3179,1334.5313,6.8518,342.3297,24,105, 500); // CNR
  1457.     AddStaticVehicleEx(409,-2624.9553,1378.8749,6.9232,270.0377,1,1, 500); // CNR
  1458.     AddStaticVehicleEx(534,-2762.5125,-295.7481,6.7661,359.8021,16,66, 500); // CNR
  1459.     AddStaticVehicleEx(481,-2889.2112,-1032.4730,9.0006,182.6653,125,40, 500); // CNR
  1460.     AddStaticVehicleEx(468,-2408.3962,-2190.2612,32.9582,351.4587,29,72, 500); // CNR
  1461.     AddStaticVehicleEx(468,-2398.6426,-2215.8879,32.9574,196.7935,29,72, 500); // CNR
  1462.     AddStaticVehicleEx(510,-2323.2595,-1631.8724,483.2980,206.6769,80,102, 500); // CNR
  1463.     AddStaticVehicleEx(412,-2187.1804,-2295.0037,30.3802,221.3219,101,15, 500); // CNR
  1464.     AddStaticVehicleEx(478,-2094.1873,-2481.8191,30.5478,101.2632,93,100, 500); // CNR
  1465.     AddStaticVehicleEx(605,-629.6401,-2555.3210,68.4381,35.9639,36,120, 500); // cNR
  1466.     AddStaticVehicleEx(604,-355.7040,-2337.2158,82.3132,342.8585,14,73, 500); // CNR
  1467.     AddStaticVehicleEx(593,-1361.9164,-485.1834,14.6313,203.2765,98,48, 500); // CNR
  1468.     AddStaticVehicleEx(593,-1441.0549,-523.4969,14.6326,207.9127,107,78, 500); // CNR
  1469.     AddStaticVehicleEx(553,-1273.5382,-611.5309,15.4884,0.0814,50,97, 500); // CNR
  1470.     AddStaticVehicleEx(553,-1329.6910,-616.8340,15.4800,344.8188,9,9, 500); // CNR
  1471.     AddStaticVehicleEx(519,-1526.4309,-599.8280,15.0703,275.2200,6,76, 500); // CNR
  1472.     AddStaticVehicleEx(487,-1183.4301,23.3701,14.3281,47.5092,0,1, 500); // CNR
  1473.     AddStaticVehicleEx(487,-1223.9756,-12.9300,14.3376,45.5123,0,1, 500); // CNR
  1474.     AddStaticVehicleEx(487,-1636.7146,-626.3158,14.3246,276.2187,182,127, 500); // CNR
  1475.     AddStaticVehicleEx(473,-1149.2510,-479.3979,-0.3647,342.6399,35,6, 500); // CNR
  1476.     AddStaticVehicleEx(472,-1113.4923,329.8786,0.1266,315.0088,53,122, 500); // CNR
  1477.     AddStaticVehicleEx(493,-1475.8485,687.6431,-0.0686,358.0009,0,7, 500); // CNR
  1478.     AddStaticVehicleEx(595,-1461.7936,1022.8047,0.2081,89.4682,103,110, 500); // CNR
  1479.     AddStaticVehicleEx(493,-1566.3278,1263.2714,0.0268,89.8198,0,7, 500); // CNR
  1480.     AddStaticVehicleEx(452,-1895.3483,1399.6223,-0.4755,272.2622,40,37, 500); // CNR
  1481.     AddStaticVehicleEx(423,-1791.1069,1425.7482,7.2173,355.6911,110,57, 500); // CNR
  1482.     AddStaticVehicleEx(587,-1665.9906,1209.3291,6.9828,299.6061,36,25, 500); // CNR
  1483.     AddStaticVehicleEx(411,-1663.9546,1222.1163,13.3544,237.1603,115,120, 500); // CNR
  1484.     AddStaticVehicleEx(451,-2156.0752,1058.8573,79.7092,10.4905,84,44, 500); // CNR
  1485.     AddStaticVehicleEx(411,-2457.4963,2304.9705,4.6544,276.6973,20,108, 500); // CNR
  1486.     AddStaticVehicleEx(426,-2480.1841,416.1389,27.5246,137.6551,0,0, 500); // CNR
  1487.     AddStaticVehicleEx(421,-2486.8831,421.7173,27.6637,137.7021,2,1, 500); // CNR
  1488.     AddStaticVehicleEx(412,-2499.1658,433.9863,27.6155,318.3919,87,64, 500); // CNR
  1489.     AddStaticVehicleEx(562,-2480.3999,393.1013,27.4380,141.8022,74,48, 500); // CNR
  1490.     AddStaticVehicleEx(400,-2542.6204,587.1049,14.5455,270.1338,95,24, 500); // CNR
  1491.     AddStaticVehicleEx(416,-2589.0984,621.9482,14.6087,270.2829,1,3, 500); // CNR
  1492.     AddStaticVehicleEx(416,-2589.3169,632.6327,14.6024,270.3439,1,3, 500); // CNR
  1493.     AddStaticVehicleEx(416,-2545.6440,647.7982,14.6085,269.7815,1,3, 500); // CNR
  1494.     AddStaticVehicleEx(559,-2176.9211,657.9245,49.0938,178.8880,0,0, 500); // CNR
  1495.     AddStaticVehicleEx(433,-1477.4896,460.0663,7.6225,359.8576,42,31, 500); // CNR
  1496.     AddStaticVehicleEx(470,-1470.0477,458.8246,7.1754,358.5681,114,69, 500); // CNR
  1497.     AddStaticVehicleEx(470,-1464.5531,458.7328,7.1745,358.5191,97,62, 500); // CNR
  1498.     AddStaticVehicleEx(470,-1458.6755,458.6252,7.1773,358.6697,35,49, 500); // CNR
  1499.     AddStaticVehicleEx(433,-1452.6025,460.1559,7.6208,359.1512,36,71, 500); // CNR
  1500.     AddStaticVehicleEx(548,-1254.6019,459.1282,8.8423,64.3847,84,48, 500); // CNR
  1501.     AddStaticVehicleEx(470,-1266.7256,439.1088,7.1769,30.9449,2,10, 500); // CNR
  1502.     AddStaticVehicleEx(433,-1305.5168,440.4816,7.6239,46.9552,47,1, 500); // CNR
  1503.     AddStaticVehicleEx(404,-1500.6406,993.8652,6.9214,89.7719,34,74, 500); // CNR
  1504.     AddStaticVehicleEx(418,-1611.2949,1147.5748,7.2028,359.1432,96,5, 500); // CNR
  1505.     AddStaticVehicleEx(400,-1637.8809,1297.3248,7.1281,134.9772,24,37, 500); // CNR
  1506.     AddStaticVehicleEx(401,-1645.2125,1304.6230,6.8081,134.2872,78,36, 500); // CNR
  1507.     AddStaticVehicleEx(424,-2010.6729,1269.7745,9.4492,1.5402,96,57, 500); // CNR
  1508.     AddStaticVehicleEx(402,-2531.2639,1140.4996,55.5583,352.4629,74,87, 500); // CNR
  1509.     AddStaticVehicleEx(400,-2567.8296,1147.7538,55.8189,337.2007,23,63, 500); // CNR
  1510.     AddStaticVehicleEx(534,-2637.6321,802.1845,49.6711,180.5369,103,23, 500); // CNR
  1511.     AddStaticVehicleEx(596,1539.2555,-1644.3197,5.6109,359.9586,47,95, 500); // CNR
  1512.     AddStaticVehicleEx(596,1544.8132,-1658.8232,5.6096,89.2314,47,95, 500); // CNR
  1513.     AddStaticVehicleEx(596,1544.7218,-1684.1376,5.6113,267.8804,47,95, 500); // CNR
  1514.     AddStaticVehicleEx(596,1574.4397,-1710.7479,5.6093,180.7318,47,95, 500); // CNR
  1515.     AddStaticVehicleEx(596,1602.1147,-1696.4015,5.6124,267.8443,47,95, 500); // CNR
  1516.     AddStaticVehicleEx(427,1529.5773,-1684.2161,6.0226,87.6918,54,38, 500); // CNR
  1517.     AddStaticVehicleEx(427,1601.5450,-1704.1082,6.0227,270.3358,54,38, 500); // CNR
  1518.     AddStaticVehicleEx(427,1558.8358,-1613.9513,13.5147,175.3478,54,38, 500); // CNR
  1519.     AddStaticVehicleEx(596,1601.9608,-1628.7412,13.2071,88.4642,1,0, 500); // CNR
  1520.     AddStaticVehicleEx(596,1536.0029,-1678.5251,13.1041,181.2446,1,0, 500); // CNR
  1521.     AddStaticVehicleEx(596,1535.5918,-1667.6024,13.1045,181.2998,1,0, 500); // CNR
  1522.     AddStaticVehicleEx(412,1350.7225,-1593.1829,13.3356,171.2246,120,63, 500); // CNR
  1523.     AddStaticVehicleEx(412,1471.5330,-1498.9709,13.3844,214.8573,120,63, 500); // CNR
  1524.     AddStaticVehicleEx(543,1663.3156,-1718.2933,20.2969,126.2698,125,13, 500); // CNR
  1525.     AddStaticVehicleEx(545,1476.0431,-1738.6343,13.3579,270.2405,19,88, 500); // CNR
  1526.     AddStaticVehicleEx(576,1858.8785,-1426.5573,13.1862,205.2842,50,45, 500); // CNR
  1527.     AddStaticVehicleEx(541,2146.3120,-1454.7037,24.5068,270.1099,114,18, 500); // CNR
  1528.     AddStaticVehicleEx(574,2159.9788,-1309.2162,23.7098,144.8127,121,81, 500); // CNR
  1529.     AddStaticVehicleEx(566,1709.8203,-1339.8234,13.2535,330.5721,110,20, 500); // CNR
  1530.     AddStaticVehicleEx(463,1255.5306,-1438.6350,18.2297,260.2033,86,15, 500); // CNR
  1531.     AddStaticVehicleEx(416,1189.8268,-1366.3300,13.6137,359.3892,69,8, 500); // CNR
  1532.     AddStaticVehicleEx(416,1190.0822,-1344.7936,13.6316,357.8732,69,8, 500); // CNR
  1533.     AddStaticVehicleEx(416,1177.0189,-1308.6743,14.0180,89.7719,69,8, 500); // CNR
  1534.     AddStaticVehicleEx(416,1210.5793,-1311.3835,13.6255,177.7648,69,8, 500); // CNR
  1535.     AddStaticVehicleEx(416,1210.8770,-1381.2939,13.4991,178.2684,69,8, 500); // CNR
  1536.     AddStaticVehicleEx(588,1278.8674,-1293.7701,13.2362,89.3756,34,0, 500); // CNR
  1537.     AddStaticVehicleEx(526,1140.4080,-1472.4884,15.5636,94.6149,34,71, 500); // CNR
  1538.     AddStaticVehicleEx(586,871.6463,-1762.0640,13.0556,80.0748,112,91, 500); // CNR
  1539.     AddStaticVehicleEx(603,768.0140,-1789.1705,12.8355,135.9006,96,100, 500); // CNR
  1540.     AddStaticVehicleEx(603,588.0920,-1579.5155,15.8537,90.8709,96,100, 500); // CNR
  1541.     AddStaticVehicleEx(560,665.6003,-1225.8263,15.3248,273.2521,11,73, 500); // CNR
  1542.     AddStaticVehicleEx(560,655.0095,-1223.4033,16.6347,200.2075,1,255, 500); // CNR
  1543.     AddStaticVehicleEx(463,662.1331,-1223.1228,15.5249,63.3169,39,97, 500); // CNR
  1544.     AddStaticVehicleEx(463,658.1104,-1230.9053,15.5060,58.8725,39,97, 500); // CNR
  1545.     AddStaticVehicleEx(583,486.2061,-1359.3267,17.4421,165.2249,12,28, 500); // CNR
  1546.     AddStaticVehicleEx(602,478.8647,-1508.4924,20.3364,134.6098,104,122, 500); // CNR
  1547.     AddStaticVehicleEx(602,159.0004,-1531.8573,11.7415,197.7620,104,122, 500); // CNR
  1548.     AddStaticVehicleEx(600,364.4498,-1360.2690,14.2063,328.3542,80,52, 500); // CNR
  1549.     AddStaticVehicleEx(560,1337.5819,-1263.0737,13.1667,178.0636,66,103, 500); // CNR
  1550.     AddStaticVehicleEx(524,1236.9630,-1266.5527,14.3741,269.3505,117,50, 500); // CNR
  1551.     AddStaticVehicleEx(567,1015.5640,-1133.5992,23.7293,47.1603,35,36, 500); // CNR
  1552.     AddStaticVehicleEx(442,923.2741,-1122.1011,23.8356,2.0281,1,18, 500); // CNR
  1553.     AddStaticVehicleEx(455,2691.3254,-2499.0781,13.9564,54.3853,52,82, 500); // CNR
  1554.     AddStaticVehicleEx(470,2741.8213,-2476.4526,13.6400,358.9606,105,42, 500); // CNR
  1555.     AddStaticVehicleEx(470,2739.6182,-2425.5833,13.6355,149.2840,105,42, 500); // CNR
  1556.     AddStaticVehicleEx(470,2725.4558,-2391.7080,13.6314,269.6312,105,42, 500); // CNR
  1557.     AddStaticVehicleEx(470,2784.0935,-2387.6138,13.6287,356.4348,105,42, 500); // CNR
  1558.     AddStaticVehicleEx(548,2777.7478,-2346.0249,15.2715,165.5650,46,68, 500); // CNR
  1559.     AddStaticVehicleEx(433,2787.4146,-2418.3120,14.0703,89.0070,70,6, 500); // CNR
  1560.     AddStaticVehicleEx(433,2786.1667,-2455.7805,14.0707,89.1321,70,6, 500); // CNR
  1561.     AddStaticVehicleEx(433,2785.8806,-2494.5603,14.0893,88.3835,70,6, 500); // CNR
  1562.     AddStaticVehicleEx(525,2692.9285,-2467.9971,13.5217,86.5740,14,63, 500); // CNR
  1563.     AddStaticVehicleEx(525,2693.2854,-2452.8250,13.5165,89.8568,14,63, 500); // CNR
  1564.     AddStaticVehicleEx(528,2758.8633,-2457.2893,13.5664,1.0570,5,23, 500); // CNR
  1565.     AddStaticVehicleEx(528,2764.0215,-2455.1875,13.5579,3.0803,5,23, 500); // CNR
  1566.     AddStaticVehicleEx(583,2644.6338,-2387.8462,13.1734,11.1478,10,15, 500); // CNR
  1567.     AddStaticVehicleEx(562,2267.8796,-2018.3160,13.2044,282.6059,30,97, 500); // CNR
  1568.     AddStaticVehicleEx(558,2229.7759,-1762.9365,13.1912,0.2561,54,122, 500); // CNR
  1569.     AddStaticVehicleEx(499,2250.7107,-1779.2504,13.5382,351.8078,0,0, 500); // CNR
  1570.     AddStaticVehicleEx(411,2501.1316,-1755.5726,13.1029,0.6107,93,121, 500); // CNR
  1571.     AddStaticVehicleEx(434,2517.5837,-1672.6176,14.1060,232.5694,32,20, 500); // CNR
  1572.     AddStaticVehicleEx(451,2225.6018,-1639.5422,15.1659,26.3051,60,73, 500); // CNR
  1573.     AddStaticVehicleEx(451,2337.8655,-1611.1965,20.7983,115.9090,60,73, 500); // CNR
  1574.     AddStaticVehicleEx(451,2407.9385,-1482.4860,23.5266,194.5191,60,73, 500); // CNR
  1575.     AddStaticVehicleEx(451,2465.3860,-1424.1887,23.4578,271.1841,60,73, 500); // CNR
  1576.     AddStaticVehicleEx(451,2465.5339,-1413.9205,23.4570,268.5215,60,73, 500); // CNR
  1577.     AddStaticVehicleEx(411,2433.4316,-1260.9491,23.5550,97.2068,65,46, 500); // CNR
  1578.     AddStaticVehicleEx(411,2378.0330,-1248.9265,23.6113,24.8095,65,46, 500); // CNR
  1579.     AddStaticVehicleEx(421,2363.1147,-1166.6296,27.4895,343.4427,62,103, 500); // CNR
  1580.     AddStaticVehicleEx(421,2533.9192,-1144.2948,42.3100,267.9478,62,103, 500); // CNR
  1581.     AddStaticVehicleEx(412,2683.8364,-1110.4365,69.2337,267.6568,0,40, 500); // CNR
  1582.     AddStaticVehicleEx(410,2750.2366,-1112.4893,69.2323,162.1354,121,37, 500); // CNR
  1583.     AddStaticVehicleEx(424,2564.3171,-1277.7893,45.9237,134.5531,29,62, 500); // CNR
  1584.     AddStaticVehicleEx(424,2517.3235,-1395.2300,28.2242,182.8000,29,62, 500); // CNR
  1585.     AddStaticVehicleEx(502,2681.7283,-1673.7838,9.3156,178.9488,68,6, 500); // CNR
  1586.     AddStaticVehicleEx(419,2595.1094,-1640.5896,2.3411,356.7394,34,87, 500); // CNR
  1587.     AddStaticVehicleEx(437,1780.6001,-1887.4373,13.5230,269.2689,65,16, 500); // CNR
  1588.     AddStaticVehicleEx(437,1781.0718,-1891.0201,13.5237,269.8186,65,16, 500); // CNR
  1589.     AddStaticVehicleEx(437,1781.6692,-1896.8356,13.5239,269.7447,65,16, 500); // CNR
  1590.     AddStaticVehicleEx(437,1780.4521,-1902.3815,13.5235,267.0726,65,16, 500); // CNR
  1591.     AddStaticVehicleEx(437,1781.3156,-1906.7104,13.5234,267.8438,65,16, 500); // CNR
  1592.     AddStaticVehicleEx(420,1777.3168,-1912.5166,13.1622,268.8852,6,6, 500); // CNR
  1593.     AddStaticVehicleEx(420,1777.7452,-1916.8807,13.1650,270.0446,6,6, 500); // CNR
  1594.     AddStaticVehicleEx(420,1777.4371,-1920.8295,13.1673,268.6692,6,6, 500); // CNR
  1595.     AddStaticVehicleEx(420,1777.5826,-1924.3154,13.1673,270.9490,6,6, 500); // CNR
  1596.     AddStaticVehicleEx(420,1777.0709,-1927.6826,13.1646,267.4850,6,6, 500); // CNR
  1597.     AddStaticVehicleEx(420,1777.7676,-1932.2742,13.1654,269.5245,6,6, 500); // CNR
  1598.     AddStaticVehicleEx(462,1838.0708,-1871.0637,12.9894,16.7216,90,110, 500); // CNR
  1599.     AddStaticVehicleEx(489,1703.4624,-1514.6466,13.5289,354.6726,6,64, 500); // CNR
  1600.     AddStaticVehicleEx(489,1681.7804,-1165.2457,23.8883,96.7670,6,64, 500); // CNR
  1601.     AddStaticVehicleEx(489,1622.5425,-1088.9559,24.0498,272.3766,6,64, 500); // CNR
  1602.     AddStaticVehicleEx(492,1648.7659,-1084.5262,23.6877,268.7659,88,51, 500); // CNR
  1603.     AddStaticVehicleEx(445,1426.7501,-1088.7882,17.4328,178.8861,20,53, 500); // CNR
  1604.     AddStaticVehicleEx(419,1963.9802,-1171.6763,25.8101,171.9996,54,9, 500); // CNR
  1605.     AddStaticVehicleEx(419,2135.7939,-1261.7487,23.7886,266.9993,54,9, 500); // CNR
  1606.     AddStaticVehicleEx(419,2166.0537,-1984.9197,13.3558,177.7469,54,9, 500); // CNR
  1607.     AddStaticVehicleEx(419,1793.6608,-2124.4517,13.3428,175.8265,54,9, 500); // CNR
  1608.     AddStaticVehicleEx(492,1616.9003,-1892.5708,13.3299,261.1858,122,23, 500); // CNR
  1609.     AddStaticVehicleEx(492,1345.8270,-1854.9633,13.2459,305.1307,122,23, 500); // CNR
  1610.     AddStaticVehicleEx(492,1071.0842,-1837.2305,13.3695,279.7008,122,23, 500); // CNR
  1611.     AddStaticVehicleEx(492,558.4954,-1740.1851,12.5294,89.1122,122,23, 500); // CNR
  1612.     AddStaticVehicleEx(492,333.8728,-1745.5265,4.2778,275.7159,122,23, 500); // CNR
  1613.     AddStaticVehicleEx(492,203.6131,-1381.0515,49.0262,303.5283,122,23, 500); // CNR
  1614.     AddStaticVehicleEx(477,269.5095,-1365.8063,52.9312,195.7436,51,68, 500); // CNR
  1615.     AddStaticVehicleEx(477,1532.2039,-892.9706,60.8801,47.5508,51,68, 500); // CNR
  1616.     AddStaticVehicleEx(477,1614.7751,73.0663,37.2610,137.4652,51,68, 500); // CNR
  1617.     AddStaticVehicleEx(477,1825.6857,873.9662,10.4787,250.8812,51,68, 500); // CNR
  1618.     AddStaticVehicleEx(409,1174.8761,-2011.1066,68.8034,180.2955,19,45, 500); // CAR LS
  1619.     AddStaticVehicleEx(409,1174.8418,-2062.4541,68.8005,358.8616,1,3, 500); // CAR LS
  1620.     AddStaticVehicleEx(560,1247.4678,-2010.8546,59.4837,0.0172,61,92, 500); // CAR LS
  1621.     AddStaticVehicleEx(426,1262.6028,-2010.7106,59.0890,1.0326,117,115, 500); // CAR LS
  1622.     AddStaticVehicleEx(421,1246.6702,-2021.0757,59.6878,89.3090,14,90, 500); // CAR LS
  1623.     AddStaticVehicleEx(411,1668.3333,-1698.4595,20.2095,111.0195,103,17, 500); // CAR LS
  1624.     AddStaticVehicleEx(541,2304.2561,-1642.3811,14.1568,181.6377,6,0, 500); // CAR LS
  1625.     AddStaticVehicleEx(426,-1956.4415,585.4780,34.8601,0.5932,86,124, 500); // CAR SF
  1626.     AddStaticVehicleEx(402,-1953.3643,585.3503,34.9529,359.0071,89,63, 500); // CAR SF
  1627.     AddStaticVehicleEx(451,-1935.3063,585.5364,34.8246,359.2379,45,121, 500); // CAR SF
  1628.     AddStaticVehicleEx(421,-1944.2689,585.3606,35.0076,358.5772,6,6, 500); // CAR SF
  1629.     AddStaticVehicleEx(517,-1992.3827,243.5176,35.0268,139.5587,51,31, 500); // CAR SF
  1630.     AddStaticVehicleEx(517,-2616.6008,74.8332,4.1908,88.2741,51,31, 500); // CAR SF
  1631.     AddStaticVehicleEx(470,-1445.0464,458.8409,7.1795,0.7084,104,87, 500); //
  1632.     AddStaticVehicleEx(470,-1333.8381,449.1157,7.1787,4.3272,104,87, 500); //
  1633.     AddStaticVehicleEx(476,-1262.6820,507.5797,18.9375,90.3696,80,104, 500); //
  1634.     AddStaticVehicleEx(476,-1289.9688,507.5169,18.9479,89.8120,80,104, 500); //
  1635.     AddStaticVehicleEx(476,-1320.5983,507.4883,18.9391,89.6654,80,104, 500); //
  1636.     AddStaticVehicleEx(476,-1353.2142,507.5184,18.9426,89.9565,80,104, 500); //
  1637.     AddStaticVehicleEx(476,-1391.2141,507.5581,18.9433,89.8580,80,104, 500); //
  1638.     AddStaticVehicleEx(548,-1459.0627,500.0371,19.9570,131.7253,99,13, 500); //
  1639.     AddStaticVehicleEx(470,276.9211,2023.4412,17.6336,272.6233,39,87, 500); //
  1640.     AddStaticVehicleEx(433,275.3499,1988.9595,18.0773,272.0024,34,29, 500); //
  1641.     AddStaticVehicleEx(470,275.7674,1956.0403,17.6353,271.2579,99,57, 500); //
  1642.     AddStaticVehicleEx(476,307.7774,2053.0532,18.3447,179.5164,43,80, 500); //
  1643.     AddStaticVehicleEx(476,307.5680,2022.5872,18.3858,179.5979,43,80, 500); //
  1644.     AddStaticVehicleEx(476,307.3362,1976.8934,18.3709,179.7407,43,80, 500); //
  1645.     AddStaticVehicleEx(476,307.2180,1939.5699,18.3737,179.7749,43,80, 500); //
  1646.     AddStaticVehicleEx(548,187.2346,1911.3690,19.3550,257.1326,121,85, 500); //
  1647.     AddStaticVehicleEx(470,266.7537,1839.7186,17.6412,204.7390,86,125, 500); //
  1648.     AddStaticVehicleEx(470,124.2681,1858.7083,17.7494,127.9176,86,125, 500); //
  1649.     AddStaticVehicleEx(599,2315.6006,2460.4211,3.4631,268.2009,0,0, 500); //
  1650.     AddStaticVehicleEx(599,2314.2319,2495.2148,3.4635,90.5629,0,0, 500); //
  1651.     AddStaticVehicleEx(599,2277.0205,2473.9304,3.4663,179.2646,0,0, 500); //
  1652.     AddStaticVehicleEx(599,2239.8240,2475.6514,3.4651,90.3094,0,0, 500); //
  1653.     AddStaticVehicleEx(598,2246.4983,2430.4946,3.0187,178.6759,0,1, 500); //
  1654.     AddStaticVehicleEx(598,2277.1196,2430.7041,3.0192,179.9285,0,1, 500); //
  1655.     AddStaticVehicleEx(437,2150.8921,2502.0471,10.9536,89.5910,117,47, 500); // BUS
  1656.     AddStaticVehicleEx(437,2151.5706,2487.0315,10.9536,90.0462,117,47, 500); // BUS
  1657.     AddStaticVehicleEx(437,2117.9272,2511.0586,10.9536,189.0172,117,47, 500); // BUS
  1658.     AddStaticVehicleEx(437,2128.5891,2513.8132,10.9536,191.7403,117,47, 500); // BUS
  1659.     AddStaticVehicleEx(437,2139.0928,2516.6362,10.9537,192.0088,117,47, 500); // BUS
  1660.    
  1661.     AddStaticVehicleEx(542,2040.1665,1541.1476,10.4117,179.8827,5,111, 500); // CNR
  1662.     AddStaticVehicleEx(526,-2341.6965,301.3115,38.3723,119.5160,25,84, 500); // CNR
  1663.     AddStaticVehicleEx(526,-2587.8901,230.1816,9.2137,306.6687,25,84, 500); // CNR
  1664.     AddStaticVehicleEx(587,-2711.5107,125.7587,4.0167,198.6476,101,63, 500); // CNR
  1665.     AddStaticVehicleEx(587,-2700.8530,-8.1576,4.0145,168.2139,101,63, 500); // CNR
  1666.     AddStaticVehicleEx(518,-2656.5635,-113.2985,3.7102,152.2127,7,39, 500); // CNR
  1667.     AddStaticVehicleEx(518,-2452.6841,-204.8913,33.2267,286.0015,7,39, 500); // CNR
  1668.     AddStaticVehicleEx(518,-2414.1636,-1.2807,34.9913,141.3731,7,39, 500); // CNR
  1669.     AddStaticVehicleEx(518,-2468.1257,45.6428,30.8559,95.0810,7,39, 500); // CNR
  1670.     AddStaticVehicleEx(526,-2506.3384,7.4253,25.4506,170.8600,26,65, 500); // CNR
  1671.     AddStaticVehicleEx(526,-2267.7336,69.8399,34.9263,87.5834,26,65, 500); // CNR
  1672.     AddStaticVehicleEx(602,-2267.4490,85.0063,34.9783,269.4507,49,90, 500); // CNR
  1673.     AddStaticVehicleEx(604,-2265.3428,193.2783,34.9053,271.6914,97,105, 500); // CNR
  1674.     AddStaticVehicleEx(456,-2132.3853,-118.2248,35.4937,179.3912,36,5, 500); // CNR
  1675.     AddStaticVehicleEx(456,-2124.9753,-118.3633,35.4934,179.7911,36,5, 500); // CNR
  1676.     AddStaticVehicleEx(456,-2120.4097,-117.3749,35.4940,181.8442,36,5, 500); // CNR
  1677.     AddStaticVehicleEx(456,-2116.3167,-118.2943,35.4939,180.6833,36,5, 500); // CNR
  1678.     AddStaticVehicleEx(526,-2068.6343,-83.4163,34.9318,180.3597,3,69, 500); // CNR
  1679.     AddStaticVehicleEx(543,-2093.7336,88.1683,35.1245,232.5689,33,108, 500); // CNR
  1680.     AddStaticVehicleEx(543,-2351.9707,-125.6556,35.1257,354.9290,33,108, 500); // CNR
  1681.     AddStaticVehicleEx(541,-2329.9082,-125.5207,34.9375,359.1688,76,33, 500); // CNR
  1682.     AddStaticVehicleEx(541,-2464.3247,-100.6371,25.4662,294.0855,76,33, 500); // CNR
  1683.     AddStaticVehicleEx(405,-2231.3872,421.5504,34.9756,299.8992,0,39, 500); // CNR
  1684.     AddStaticVehicleEx(521,-2127.0417,574.4770,34.7435,230.8675,123,88, 500); // CNR
  1685.     AddStaticVehicleEx(521,-2295.7781,813.7700,48.9887,95.7591,123,88, 500); // CNR
  1686.     AddStaticVehicleEx(561,-2276.0356,923.5562,66.4632,359.8312,68,81, 500); // CNR
  1687.     AddStaticVehicleEx(561,-2066.6218,963.7202,60.3641,206.2542,68,81, 500); // CNR
  1688.     AddStaticVehicleEx(561,-1862.5454,939.4189,34.9020,272.2769,68,81, 500); // CNR
  1689.     AddStaticVehicleEx(411,2559.0032,2058.0518,10.5474,358.8848,120,79, 500); // CNR
  1690.     AddStaticVehicleEx(543,2372.4365,2153.9763,10.5650,90.0188,70,95, 500); // CNR
  1691.     AddStaticVehicleEx(543,2242.6753,2234.8413,10.5911,89.7699,70,95, 500); // CNR
  1692.     AddStaticVehicleEx(551,2289.7383,2419.0125,10.5444,89.4434,38,87, 500); // CNR
  1693.     AddStaticVehicleEx(551,2154.5811,2182.2068,10.4724,178.0841,38,87, 500); // CNR
  1694.     AddStaticVehicleEx(541,2120.5012,2057.1758,10.2968,179.2608,75,37, 500); // CNR
  1695.     AddStaticVehicleEx(567,1363.7404,2650.0776,10.6862,0.0810,108,24, 500); // CNR
  1696.     AddStaticVehicleEx(567,1313.7893,2648.5498,10.6905,178.9520,108,24, 500); // CNR
  1697.     AddStaticVehicleEx(588,1363.8280,2692.4224,10.7288,354.3495,41,82, 500); // CNR
  1698.     AddStaticVehicleEx(565,1494.1061,2838.1091,10.4460,0.2073,90,71, 500); // CNR
  1699.     AddStaticVehicleEx(565,1486.7734,2878.4204,10.4458,0.1254,90,71, 500); // CNR
  1700.     AddStaticVehicleEx(589,1529.5310,2845.5171,10.4782,87.7141,88,29, 500); // CNR
  1701.     AddStaticVehicleEx(478,2520.1194,1178.1515,10.7946,26.0029,90,78, 500); // CNR
  1702.     AddStaticVehicleEx(478,2420.3704,1225.1432,10.8117,23.4396,90,78, 500); // CNR
  1703.     AddStaticVehicleEx(559,2455.4565,1366.9805,10.4386,235.0470,25,59, 500); // CNR
  1704.     AddStaticVehicleEx(559,2541.6331,1447.6624,10.4425,10.1614,25,59, 500); // CNR
  1705.     AddStaticVehicleEx(481,2487.8972,1532.3549,10.2910,37.8486,0,89, 500); // CNR
  1706.     AddStaticVehicleEx(491,2569.4146,1776.7362,10.5766,73.3304,59,98, 500); // CNR
  1707.     AddStaticVehicleEx(491,2546.8101,1967.7610,10.5766,268.7982,59,98, 500); // CNR
  1708.     AddStaticVehicleEx(402,2690.8196,1849.0352,8.0623,223.9609,13,13, 500); // CNR
  1709.     AddStaticVehicleEx(402,2810.6094,1980.9949,10.6520,277.2421,13,13, 500); // CNR
  1710.     AddStaticVehicleEx(600,2842.7473,2281.6948,10.4584,5.2392,66,67, 500); // CNR
  1711.     AddStaticVehicleEx(420,2641.1345,2317.9609,10.4508,267.3100,6,6, 500); // CNR
  1712.     AddStaticVehicleEx(420,2650.7837,2319.4680,10.4505,293.7864,6,6, 500); // CNR
  1713.     AddStaticVehicleEx(420,2655.3694,2324.2441,10.4514,331.5359,6,6, 500); // CNR
  1714.     AddStaticVehicleEx(420,2655.9180,2328.3752,10.4529,351.1672,6,6, 500); // CNR
  1715.     AddStaticVehicleEx(420,2655.6936,2335.0090,10.4510,8.7652,6,6, 500); // CNR
  1716.     AddStaticVehicleEx(420,2653.2844,2340.3762,10.4541,27.0566,6,6, 500); // CNR
  1717.     AddStaticVehicleEx(420,2649.4768,2344.3462,10.4520,51.3639,6,6, 500); // CNR
  1718.     AddStaticVehicleEx(420,2642.0635,2348.2180,10.4437,85.2092,6,6, 500); // CNR
  1719.     AddStaticVehicleEx(420,2633.1831,2347.3845,10.4508,109.8921,6,6, 500); // CNR
  1720.     AddStaticVehicleEx(420,2626.5432,2341.0552,10.4514,153.4898,6,6, 500); // CNR
  1721.     AddStaticVehicleEx(420,2625.4980,2331.8423,10.4513,178.8905,6,6, 500); // CNR
  1722.     AddStaticVehicleEx(510,1684.4990,2191.9824,10.4260,83.9953,34,34, 500); // CNR
  1723.     AddStaticVehicleEx(562,1729.0618,1909.6370,10.4790,271.3743,120,76, 500); // CNR
  1724.     AddStaticVehicleEx(420,1714.8448,1426.2880,10.2746,186.4587,6,6, 500); // CNR
  1725.     AddStaticVehicleEx(487,1632.4012,1532.0526,10.9751,324.7820,105,73, 500); // CNR
  1726.     AddStaticVehicleEx(487,1677.4297,1631.5037,10.9976,176.8011,105,73, 500); // CNR
  1727.     AddStaticVehicleEx(563,1575.3679,1448.2814,11.5410,84.8106,22,123, 500); // CNR
  1728.     AddStaticVehicleEx(417,1284.6426,1278.6028,10.9078,268.7768,24,35, 500); // CNR
  1729.     AddStaticVehicleEx(519,1304.2306,1361.0856,11.7390,268.5266,52,53, 500); // CNR
  1730.     AddStaticVehicleEx(519,1305.0592,1323.4504,11.7449,271.6293,52,53, 500); // CNR
  1731.     AddStaticVehicleEx(511,1586.5626,1248.2086,12.1885,357.9796,85,31, 500); // CNR
  1732.     AddStaticVehicleEx(487,1363.0966,1712.9581,11.0203,249.5521,82,25, 500); // CNR
  1733.     AddStaticVehicleEx(487,1394.8047,1768.8315,10.9960,263.3808,82,25, 500); // CNR
  1734.     AddStaticVehicleEx(535,2296.8708,2046.2445,10.5845,270.7708,19,89, 500); // CNR
  1735.     AddStaticVehicleEx(535,2102.5154,2036.7355,10.5841,90.0563,19,89, 500); // CNR
  1736.     AddStaticVehicleEx(535,2276.6492,1952.4087,9.6302,180.4975,19,89, 500); // CNR
  1737.     AddStaticVehicleEx(535,2083.9036,1788.4523,10.4353,155.0733,19,89, 500); // CNR
  1738.     AddStaticVehicleEx(426,2033.3590,-1925.3810,13.2904,277.6970,117,115, 500); // CNR
  1739.     AddStaticVehicleEx(412,2065.4001,-1904.0715,13.3848,358.1083,60,96, 500); // CNR
  1740.     AddStaticVehicleEx(411,2095.6167,-1796.8693,13.1114,359.9858,90,29, 500); // CNR
  1741.     AddStaticVehicleEx(445,2271.8911,-1432.2534,23.7070,356.1421,0,4, 500); // CNR
  1742.     AddStaticVehicleEx(445,2217.3262,-1161.5483,25.6015,91.3140,0,4, 500); // CNR
  1743.     AddStaticVehicleEx(445,2093.8022,-980.3689,52.3642,77.4384,0,4, 500); // CNR
  1744.     AddStaticVehicleEx(445,2429.1523,-1016.3676,54.1773,194.8109,0,4, 500); // CNR
  1745.     AddStaticVehicleEx(442,2668.2712,-1065.6130,69.1268,269.3304,105,79, 500); // CNR
  1746.     AddStaticVehicleEx(424,2476.7788,-1526.0499,23.7793,176.1171,29,62, 500); // CNR
  1747.    
  1748.     //Tara
  1749.     AddStaticVehicleEx(517,2075.5396,1159.9681,10.8151,179.0163,122,104, 500); // CNR
  1750.     AddStaticVehicleEx(489,2089.4844,766.8369,11.3459,0.7682,122,104, 500); // CNR
  1751.     AddStaticVehicleEx(516,-1970.2419,-2432.0332,30.3508,133.6701,101,63, 500); // CNR
  1752.     AddStaticVehicleEx(518,-1562.2563,-2737.9390,48.2715,144.0236,101,63, 500); // CNR
  1753.     AddStaticVehicleEx(526,-39.6861,-2497.9128,36.3045,39.5643,101,63, 500); // CNR
  1754.     AddStaticVehicleEx(587,-274.5593,-2184.9531,28.5088,42.9390,101,63, 500); // CNR
  1755.     AddStaticVehicleEx(527,-375.1182,-1411.3190,25.4539,317.5267,101,63, 500); // CNR
  1756.     AddStaticVehicleEx(531,-60.7286,-1161.0027,1.4760,151.1579,101,63, 500); // CNR
  1757.     AddStaticVehicleEx(533,-80.8599,-1190.8860,1.4769,66.2110,101,63, 500); // CNR
  1758.     AddStaticVehicleEx(534,1423.8083,-1713.2639,13.1881,4.4781,101,63, 500); // CNR
  1759.     AddStaticVehicleEx(533,1585.5643,-1289.9722,17.2886,303.9691,101,63, 500); // CNR
  1760.     AddStaticVehicleEx(535,2474.3628,-1997.8347,13.2737,349.6246,101,63, 500); // CNR
  1761.     AddStaticVehicleEx(536,1209.9705,-1694.4044,13.2736,15.9955,101,63, 500); // CNR
  1762.     AddStaticVehicleEx(542,1359.9768,-616.8415,108.8596,106.7133,101,63, 500); // CNR
  1763.     AddStaticVehicleEx(587,853.5654,-825.7502,89.1909,204.0222,101,63, 500); // CNR
  1764.     AddStaticVehicleEx(542,405.5824,-1153.8650,77.0404,148.8526,43,32, 500); // CNR
  1765.     AddStaticVehicleEx(411,665.8790,-583.0681,16.0630,92.7505,43,32, 500); // CNR
  1766.     AddStaticVehicleEx(554,608.5742,-512.2045,16.0630,0.3112,43,32, 500); // CNR
  1767.     AddStaticVehicleEx(547,669.2391,-445.3273,16.0648,316.0027,43,32, 500); // CNR
  1768.     AddStaticVehicleEx(546,478.7328,-402.5107,27.5950,146.2253,43,32, 500); // CNR
  1769.     AddStaticVehicleEx(545,253.9584,-271.8160,1.3064,218.9784,43,32, 500); // CNR
  1770.     AddStaticVehicleEx(549,212.7126,-158.8963,1.3052,74.2594,43,32, 500); // CNR
  1771.     AddStaticVehicleEx(550,-65.2376,25.8776,2.8400,282.0338,43,32, 500); // CNR
  1772.     AddStaticVehicleEx(551,-216.6941,189.8682,9.2267,175.1628,43,32, 500); // CNR
  1773.     AddStaticVehicleEx(552,-520.6651,-101.0537,62.9681,306.1696,43,32, 500); // CNR
  1774.     AddStaticVehicleEx(531,-577.2156,-80.9335,64.4163,291.5171,43,32, 500); // CNR
  1775.     AddStaticVehicleEx(552,-714.0253,219.2714,2.2432,355.5893,43,32, 500); // CNR
  1776.     AddStaticVehicleEx(604,-73.9032,534.6065,6.4640,328.4308,57,61, 500); // CNR
  1777.     AddStaticVehicleEx(604,141.3975,748.1796,21.0883,163.8463,57,61, 500); // CNR
  1778.     AddStaticVehicleEx(545,317.2584,852.9238,20.2172,111.5509,101,91, 500); // CNR
  1779.     AddStaticVehicleEx(555,839.6096,674.4523,11.7150,178.2789,101,91, 500); // CNR
  1780.     AddStaticVehicleEx(558,1156.6543,1035.0153,10.8110,305.1578,101,91, 500); // CNR
  1781.     AddStaticVehicleEx(568,1606.1685,862.7391,6.7022,42.6466,101,91, 500); // CNR
  1782.     AddStaticVehicleEx(567,1676.8790,986.0024,10.6310,2.4389,101,91, 500); // CNR
  1783.     AddStaticVehicleEx(576,1671.3633,1028.0043,10.6315,3.9298,101,91, 500); // CNR
  1784.     AddStaticVehicleEx(575,1820.7029,1140.1342,13.1734,86.9393,101,91, 500); // CNR
  1785.     AddStaticVehicleEx(574,1697.1289,1159.1084,10.5206,296.5815,101,91, 500); // CNR
  1786.     AddStaticVehicleEx(579,1514.0720,1049.8076,10.6314,183.3940,101,91, 500); // CNR
  1787.     AddStaticVehicleEx(545,1146.6322,1366.2839,10.5703,237.6763,101,91, 500); // CNR
  1788.     AddStaticVehicleEx(581,979.5918,1726.2512,8.3784,275.0772,111,98, 500); // CNR
  1789.     AddStaticVehicleEx(582,901.1104,2007.7759,10.5047,24.5841,111,98, 500); // CNR
  1790.     AddStaticVehicleEx(583,782.1112,1892.9449,4.7674,268.5634,111,98, 500); // CNR
  1791.     AddStaticVehicleEx(411,782.4042,1901.3929,4.8241,271.7296,111,98, 500); // CNR
  1792.     AddStaticVehicleEx(437,668.0688,1832.4818,5.2842,351.4436,95,92, 500); // CNR
  1793.     AddStaticVehicleEx(437,674.5248,1830.5004,5.3506,350.2623,95,92, 500); // CNR
  1794.     AddStaticVehicleEx(437,680.4826,1829.7554,5.3773,348.0234,95,92, 500); // CNR
  1795.     AddStaticVehicleEx(437,685.8540,1828.2682,5.4115,349.3768,95,92, 500); // CNR
  1796.     AddStaticVehicleEx(437,691.9702,1827.4613,5.4320,351.5141,95,92, 500); // CNR
  1797.     AddStaticVehicleEx(456,1705.9196,744.9429,10.9936,179.7625,55,3, 500); // CNR
  1798.     AddStaticVehicleEx(456,1701.1128,743.6215,10.9956,178.2189,55,3, 500); // CNR
  1799.     AddStaticVehicleEx(456,1694.5353,742.4569,10.9939,177.5050,55,3, 500); // CNR
  1800.     AddStaticVehicleEx(456,1688.2727,741.8121,10.9932,182.4310,55,3, 500); // CNR
  1801.     AddStaticVehicleEx(456,1682.0300,739.3403,10.9936,176.0572,55,3, 500); // CNR
  1802.     AddStaticVehicleEx(605,1913.9691,131.0648,34.9952,178.7953,30,27, 500); // CNR
  1803.     AddStaticVehicleEx(603,2261.4111,86.4051,26.1332,84.3789,30,27, 500); // CNR
  1804.     AddStaticVehicleEx(604,2385.4780,83.1053,26.2114,224.5368,30,27, 500); // CNR
  1805.     AddStaticVehicleEx(600,2540.2559,22.4918,26.2115,4.4060,30,27, 500); // CNR
  1806.     AddStaticVehicleEx(589,1390.2664,242.1277,19.1986,354.3281,30,27, 500); // CNR
  1807.     AddStaticVehicleEx(587,1301.9567,294.4987,19.2779,181.3858,30,27, 500); // CNR
  1808.     AddStaticVehicleEx(586,1366.4778,438.2332,19.6276,329.9564,30,27, 500); // CNR
  1809.     AddStaticVehicleEx(411,1363.5507,476.1961,19.9371,326.8012,30,27, 500); // CNR
  1810.    
  1811.     //Transport gunoi
  1812.     AddStaticVehicleEx(408,2843.1929,955.6085,11.2969,89.5661,11,45,200); //
  1813.     AddStaticVehicleEx(408,2843.6284,972.8670,11.2958,90.5455,29,27,200); //
  1814.     AddStaticVehicleEx(408,2825.2346,969.5697,11.2970,179.9391,1,1,200); //
  1815.     AddStaticVehicleEx(408,2804.4385,969.4114,11.3004,179.2567,98,107,200); //
  1816.     AddStaticVehicleEx(408,2855.2180,897.0206,10.7781,358.7838,9,121,200); //
  1817.     AddStaticVehicleEx(408,2827.3604,895.0255,10.5967,358.9578,73,51,200); //
  1818.     AddStaticVehicleEx(408,2817.9473,896.3116,10.7238,359.2844,77,115,200); //
  1819.     AddStaticVehicleEx(408,-2120.4287,193.9991,35.4618,268.9165,35,2,200); //
  1820.     AddStaticVehicleEx(408,-2124.2146,201.3019,35.8529,272.5458,35,2,200); //
  1821.     AddStaticVehicleEx(408,-2112.1619,224.6825,35.3498,0.2208,35,2,200); //
  1822.     AddStaticVehicleEx(408,-2100.4873,179.2280,35.6423,82.9298,35,2,200); //
  1823.     AddStaticVehicleEx(408,-2089.0471,235.2498,35.7527,332.5468,35,2,200); //
  1824.     AddStaticVehicleEx(408,2283.9163,-2349.9485,14.1001,314.4154,35,2,200); //
  1825.     AddStaticVehicleEx(408,2295.7773,-2338.3167,14.0916,314.6231,35,2,200); //
  1826.     AddStaticVehicleEx(408,2282.9431,-2320.1995,14.0794,248.8206,35,2,200); //
  1827.     AddStaticVehicleEx(408,2265.5208,-2335.7126,14.0915,95.2029,35,2,200); //
  1828.     AddStaticVehicleEx(408,2315.8528,-2307.0100,14.0893,134.9706,35,2,200); //
  1829.     AddStaticVehicleEx(408,2303.3162,-2295.4124,14.0685,213.0804,35,2,200); //
  1830.  
  1831.     BOX2 = TextDrawCreate(1.000000, 430.000000, "~n~");
  1832.     TextDrawUseBox(BOX2, 1);
  1833.     TextDrawBoxColor(BOX2, 0x000000cc);
  1834.     TextDrawTextSize(BOX2, 720.000000, 300.000000);
  1835.     TextDrawAlignment(BOX2, 0);
  1836.     TextDrawBackgroundColor(BOX2, 0x000000ff);
  1837.     TextDrawFont(BOX2, 3);
  1838.     TextDrawLetterSize(BOX2, 1.700000, 5.299999);
  1839.     TextDrawColor(BOX2, 0x000000ff);
  1840.     TextDrawSetOutline(BOX2, 1);
  1841.     TextDrawSetShadow(BOX2, 1);
  1842.     TextDrawSetProportional(BOX2, 1);
  1843.    
  1844.     BUSBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1845.     TextDrawUseBox(BUSBOX, 1);
  1846.     TextDrawBoxColor(BUSBOX, 0x000000cc);
  1847.     TextDrawTextSize(BUSBOX, 180.000000, 250.000000);
  1848.     TextDrawAlignment(BUSBOX, 0);
  1849.     TextDrawBackgroundColor(BUSBOX, 0x000000ff);
  1850.     TextDrawFont(BUSBOX, 3);
  1851.     TextDrawLetterSize(BUSBOX, 1.700000, 5.699999);
  1852.     TextDrawColor(BUSBOX, 0x000000ff);
  1853.     TextDrawSetOutline(BUSBOX, 1);
  1854.     TextDrawSetShadow(BUSBOX, 1);
  1855.     TextDrawSetProportional(BUSBOX, 1);
  1856.    
  1857.     BBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1858.     TextDrawUseBox(BBOX, 1);
  1859.     TextDrawBoxColor(BBOX, 0x000000cc);
  1860.     TextDrawTextSize(BBOX, 180.000000, 250.000000);
  1861.     TextDrawAlignment(BBOX, 0);
  1862.     TextDrawBackgroundColor(BBOX, 0x000000ff);
  1863.     TextDrawFont(BBOX, 3);
  1864.     TextDrawLetterSize(BBOX, 1.700000, 5.699999);
  1865.     TextDrawColor(BBOX, 0x000000ff);
  1866.     TextDrawSetOutline(BBOX, 1);
  1867.     TextDrawSetShadow(BBOX, 1);
  1868.     TextDrawSetProportional(BBOX, 1);
  1869.  
  1870.     CIVBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1871.     TextDrawUseBox(CIVBOX, 1);
  1872.     TextDrawBoxColor(CIVBOX, 0x000000cc);
  1873.     TextDrawTextSize(CIVBOX, 170.000000, 250.000000);
  1874.     TextDrawAlignment(CIVBOX, 0);
  1875.     TextDrawBackgroundColor(CIVBOX, 0x000000ff);
  1876.     TextDrawFont(CIVBOX, 3);
  1877.     TextDrawLetterSize(CIVBOX, 1.700000, 5.699999);
  1878.     TextDrawColor(CIVBOX, 0x000000ff);
  1879.     TextDrawSetOutline(CIVBOX, 1);
  1880.     TextDrawSetShadow(CIVBOX, 1);
  1881.     TextDrawSetProportional(CIVBOX, 1);
  1882.  
  1883.     COPBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1884.     TextDrawUseBox(COPBOX, 1);
  1885.     TextDrawBoxColor(COPBOX, 0x000000cc);
  1886.     TextDrawTextSize(COPBOX, 180.000000, 250.000000);
  1887.     TextDrawAlignment(COPBOX, 0);
  1888.     TextDrawBackgroundColor(COPBOX, 0x000000ff);
  1889.     TextDrawFont(COPBOX, 3);
  1890.     TextDrawLetterSize(COPBOX, 1.700000, 5.699999);
  1891.     TextDrawColor(COPBOX, 0x000000ff);
  1892.     TextDrawSetOutline(COPBOX, 1);
  1893.     TextDrawSetShadow(COPBOX, 1);
  1894.     TextDrawSetProportional(COPBOX, 1);
  1895.    
  1896.     CMDBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1897.     TextDrawUseBox(CMDBOX, 1);
  1898.     TextDrawBoxColor(CMDBOX, 0x000000cc);
  1899.     TextDrawTextSize(CMDBOX, 180.000000, 250.000000);
  1900.     TextDrawAlignment(CMDBOX, 0);
  1901.     TextDrawBackgroundColor(CMDBOX, 0x000000ff);
  1902.     TextDrawFont(CMDBOX, 3);
  1903.     TextDrawLetterSize(CMDBOX, 1.700000, 5.699999);
  1904.     TextDrawColor(CMDBOX, 0x000000ff);
  1905.     TextDrawSetOutline(CMDBOX, 1);
  1906.     TextDrawSetShadow(CMDBOX, 1);
  1907.     TextDrawSetProportional(CMDBOX, 1);
  1908.    
  1909.     PCBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1910.     TextDrawUseBox(PCBOX, 1);
  1911.     TextDrawBoxColor(PCBOX, 0x000000cc);
  1912.     TextDrawTextSize(PCBOX, 210.000000, 300.000000);
  1913.     TextDrawAlignment(PCBOX, 0);
  1914.     TextDrawBackgroundColor(PCBOX, 0x000000ff);
  1915.     TextDrawFont(PCBOX, 3);
  1916.     TextDrawLetterSize(PCBOX, 1.700000, 6.299999);
  1917.     TextDrawColor(PCBOX, 0x000000ff);
  1918.     TextDrawSetOutline(PCBOX, 1);
  1919.     TextDrawSetShadow(PCBOX, 1);
  1920.     TextDrawSetProportional(PCBOX, 1);
  1921.    
  1922.     AMMUBOX1 = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1923.     TextDrawUseBox(AMMUBOX1, 1);
  1924.     TextDrawBoxColor(AMMUBOX1, 0x000000cc);
  1925.     TextDrawTextSize(AMMUBOX1, 180.000000, 250.000000);
  1926.     TextDrawAlignment(AMMUBOX1, 0);
  1927.     TextDrawBackgroundColor(AMMUBOX1, 0x000000ff);
  1928.     TextDrawFont(AMMUBOX1, 3);
  1929.     TextDrawLetterSize(AMMUBOX1, 1.700000, 5.699999);
  1930.     TextDrawColor(AMMUBOX1, 0x000000ff);
  1931.     TextDrawSetOutline(AMMUBOX1, 1);
  1932.     TextDrawSetShadow(AMMUBOX1, 1);
  1933.     TextDrawSetProportional(AMMUBOX1, 1);
  1934.    
  1935.     AMMUBOX2 = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1936.     TextDrawUseBox(AMMUBOX2, 1);
  1937.     TextDrawBoxColor(AMMUBOX2, 0x000000cc);
  1938.     TextDrawTextSize(AMMUBOX2, 180.000000, 250.000000);
  1939.     TextDrawAlignment(AMMUBOX2, 0);
  1940.     TextDrawBackgroundColor(AMMUBOX2, 0x000000ff);
  1941.     TextDrawFont(AMMUBOX2, 3);
  1942.     TextDrawLetterSize(AMMUBOX2, 1.700000, 5.699999);
  1943.     TextDrawColor(AMMUBOX2, 0x000000ff);
  1944.     TextDrawSetOutline(AMMUBOX2, 1);
  1945.     TextDrawSetShadow(AMMUBOX2, 1);
  1946.     TextDrawSetProportional(AMMUBOX2, 1);
  1947.    
  1948.     MDCBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1949.     TextDrawUseBox(MDCBOX, 1);
  1950.     TextDrawBoxColor(MDCBOX, 0x000000cc);
  1951.     TextDrawTextSize(MDCBOX, 180.000000, 250.000000);
  1952.     TextDrawAlignment(MDCBOX, 0);
  1953.     TextDrawBackgroundColor(MDCBOX, 0x000000ff);
  1954.     TextDrawFont(MDCBOX, 3);
  1955.     TextDrawLetterSize(MDCBOX, 1.700000, 5.699999);
  1956.     TextDrawColor(MDCBOX, 0x000000ff);
  1957.     TextDrawSetOutline(MDCBOX, 1);
  1958.     TextDrawSetShadow(MDCBOX, 1);
  1959.     TextDrawSetProportional(MDCBOX, 1);
  1960.  
  1961.     HALLBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1962.     TextDrawUseBox(HALLBOX, 1);
  1963.     TextDrawBoxColor(HALLBOX, 0x000000cc);
  1964.     TextDrawTextSize(HALLBOX, 150.000000, 200.000000);
  1965.     TextDrawAlignment(HALLBOX, 0);
  1966.     TextDrawBackgroundColor(HALLBOX, 0x000000ff);
  1967.     TextDrawFont(HALLBOX, 3);
  1968.     TextDrawLetterSize(HALLBOX, 1.700000, 5.299999);
  1969.     TextDrawColor(HALLBOX, 0x000000ff);
  1970.     TextDrawSetOutline(HALLBOX, 1);
  1971.     TextDrawSetShadow(HALLBOX, 1);
  1972.     TextDrawSetProportional(HALLBOX, 1);
  1973.  
  1974.     text6 = TextDrawCreate(7.000000, 123.000000, "~y~Civilian Help");
  1975.     TextDrawAlignment(text6, 0);
  1976.     TextDrawBackgroundColor(text6, 0x0000ffff);
  1977.     TextDrawFont(text6, 1);
  1978.     TextDrawLetterSize(text6, 0.299999, 0.900000);
  1979.     TextDrawColor(text6, 0xffff00ff);
  1980.     TextDrawSetOutline(text6, 1);
  1981.     TextDrawSetProportional(text6, 1);
  1982.     TextDrawSetShadow(text6, 1);
  1983.    
  1984.     text43 = TextDrawCreate(7.000000, 123.000000, "~p~Player Color");
  1985.     TextDrawAlignment(text43, 0);
  1986.     TextDrawBackgroundColor(text43, 0x0000ffff);
  1987.     TextDrawFont(text43, 1);
  1988.     TextDrawLetterSize(text43, 0.299999, 0.900000);
  1989.     TextDrawColor(text43, 0xffff00ff);
  1990.     TextDrawSetOutline(text43, 1);
  1991.     TextDrawSetProportional(text43, 1);
  1992.     TextDrawSetShadow(text43, 1);
  1993.    
  1994.     text19 = TextDrawCreate(7.000000, 123.000000, " ");
  1995.     TextDrawAlignment(text19, 0);
  1996.     TextDrawLetterSize(text19, 0.299999, 0.900000);
  1997.     TextDrawColor(text19, 0xffff00ff);
  1998.     TextDrawSetOutline(text19, 1);
  1999.     TextDrawSetProportional(text19, 1);
  2000.     TextDrawSetShadow(text19, 1);
  2001.        
  2002.     text22 = TextDrawCreate(7.000000, 136.000000, "~n~~w~/help [MESSAGE] /w /cw /pc~n~~w~/hit [ID] /hitlist /admins~n~~w~/report [ID] [REASON] /rules~n~~w~/animlist /househelp /GPS /i~n~~w~/blow /blowcar /buyc4 /givecash");
  2003.     TextDrawAlignment(text22, 0);
  2004.     TextDrawLetterSize(text22, 0.299999, 0.900000);
  2005.     TextDrawColor(text22, 0xffff00ff);
  2006.     TextDrawSetOutline(text22, 1);
  2007.     TextDrawSetProportional(text22, 1);
  2008.     TextDrawSetShadow(text22, 1);
  2009.    
  2010.     text35 = TextDrawCreate(7.000000, 136.000000, "~n~~r~1.~w~Change your skin~n~~r~2.~w~Rob Store");
  2011.    
  2012.     text26 = TextDrawCreate(7.000000, 136.000000, "~n~~w~/drunk /bomb /slapass~n~~w~/laugh /lookout /robman /lay~n~~w~/crossarms /hide /vomit /eat");
  2013.     TextDrawAlignment(text26, 0);
  2014.     TextDrawLetterSize(text26, 0.299999, 0.900000);
  2015.     TextDrawColor(text26, 0xffff00ff);
  2016.     TextDrawSetOutline(text26, 1);
  2017.     TextDrawSetProportional(text26, 1);
  2018.     TextDrawSetShadow(text26, 1);
  2019.    
  2020.     text27 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~w~/taichi /deal /crack /smoke~n~~w~/groundsit /chat /dance /wave");
  2021.     TextDrawAlignment(text27, 0);
  2022.     TextDrawLetterSize(text27, 0.299999, 0.900000);
  2023.     TextDrawColor(text27, 0xffff00ff);
  2024.     TextDrawSetOutline(text27, 1);
  2025.     TextDrawSetProportional(text27, 1);
  2026.     TextDrawSetShadow(text27, 1);
  2027.    
  2028.     text23 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~w~Use ~r~LMB ~w~To Hide~n~~w~Thes Boxes");
  2029.     TextDrawAlignment(text23, 0);
  2030.     TextDrawLetterSize(text23, 0.299999, 0.900000);
  2031.     TextDrawColor(text23, 0xffff00ff);
  2032.     TextDrawSetOutline(text23, 1);
  2033.     TextDrawSetProportional(text23, 1);
  2034.     TextDrawSetShadow(text23, 1);
  2035.    
  2036.     text20 = TextDrawCreate(7.000000, 123.000000, " ");
  2037.     TextDrawAlignment(text20, 0);
  2038.     TextDrawLetterSize(text20, 0.299999, 0.900000);
  2039.     TextDrawColor(text20, 0xffff00ff);
  2040.     TextDrawSetOutline(text20, 1);
  2041.     TextDrawSetProportional(text20, 1);
  2042.     TextDrawSetShadow(text20, 1);
  2043.    
  2044.     text44 = TextDrawCreate(7.000000, 123.000000, " ");
  2045.     TextDrawAlignment(text44, 0);
  2046.     TextDrawLetterSize(text44, 0.299999, 0.900000);
  2047.     TextDrawColor(text44, 0xffff00ff);
  2048.     TextDrawSetOutline(text44, 1);
  2049.     TextDrawSetProportional(text44, 1);
  2050.     TextDrawSetShadow(text44, 1);
  2051.    
  2052.     text45 = TextDrawCreate(7.000000, 123.000000, " ");
  2053.     TextDrawAlignment(text45, 0);
  2054.     TextDrawLetterSize(text45, 0.299999, 0.900000);
  2055.     TextDrawColor(text45, 0xffff00ff);
  2056.     TextDrawSetOutline(text45, 1);
  2057.     TextDrawSetProportional(text45, 1);
  2058.     TextDrawSetShadow(text45, 1);
  2059.    
  2060.     text11 = TextDrawCreate(7.000000, 123.000000, "~p~~h~Police help");
  2061.     TextDrawAlignment(text11, 0);
  2062.     TextDrawBackgroundColor(text11, 0x0000ffff);
  2063.     TextDrawFont(text11, 1);
  2064.     TextDrawLetterSize(text11, 0.299999, 0.900000);
  2065.     TextDrawColor(text11, 0xffff00ff);
  2066.     TextDrawSetOutline(text11, 1);
  2067.     TextDrawSetProportional(text11, 1);
  2068.     TextDrawSetShadow(text11, 1);
  2069.    
  2070.     text18 = TextDrawCreate(7.000000, 123.000000, "Medic help");
  2071.     TextDrawAlignment(text18, 0);
  2072.     TextDrawBackgroundColor(text18, 0x0000ffff);
  2073.     TextDrawFont(text18, 1);
  2074.     TextDrawLetterSize(text18, 0.299999, 0.900000);
  2075.     TextDrawColor(text18, 0xffff00ff);
  2076.     TextDrawSetOutline(text18, 1);
  2077.     TextDrawSetProportional(text18, 1);
  2078.     TextDrawSetShadow(text18, 1);
  2079.    
  2080.     text21 = TextDrawCreate(7.000000, 123.000000, "General Commands:");
  2081.     TextDrawAlignment(text21, 0);
  2082.     TextDrawBackgroundColor(text21, 0xF6F600AA);
  2083.     TextDrawFont(text21, 1);
  2084.     TextDrawLetterSize(text21, 0.499999, 1.200000);
  2085.     TextDrawColor(text21, 0x0000ffff);
  2086.     TextDrawSetOutline(text21, 1);
  2087.     TextDrawSetProportional(text21, 1);
  2088.     TextDrawSetShadow(text21, 1);
  2089.    
  2090.     text37 = TextDrawCreate(7.000000, 123.000000, "Ammunation:");
  2091.     TextDrawAlignment(text37, 0);
  2092.     TextDrawBackgroundColor(text37, 0xF6F600AA);
  2093.     TextDrawFont(text37, 1);
  2094.     TextDrawLetterSize(text37, 0.499999, 1.200000);
  2095.     TextDrawColor(text37, 0x0000ffff);
  2096.     TextDrawSetOutline(text37, 1);
  2097.     TextDrawSetProportional(text37, 1);
  2098.     TextDrawSetShadow(text37, 1);
  2099.    
  2100.     text25 = TextDrawCreate(7.000000, 123.000000, "Available Animation:");
  2101.     TextDrawAlignment(text25, 0);
  2102.     TextDrawBackgroundColor(text25, 0xF6F600AA);
  2103.     TextDrawFont(text25, 1);
  2104.     TextDrawLetterSize(text25, 0.499999, 1.200000);
  2105.     TextDrawColor(text25, 0x0000ffff);
  2106.     TextDrawSetOutline(text25, 1);
  2107.     TextDrawSetProportional(text25, 1);
  2108.     TextDrawSetShadow(text25, 1);
  2109.    
  2110.     text36 = TextDrawCreate(7.000000, 123.000000, "Binco:");
  2111.     TextDrawAlignment(text36, 0);
  2112.     TextDrawBackgroundColor(text36, 0xF6F600AA);
  2113.     TextDrawFont(text36, 1);
  2114.     TextDrawLetterSize(text36, 0.499999, 1.200000);
  2115.     TextDrawColor(text36, 0x0000ffff);
  2116.     TextDrawSetOutline(text36, 1);
  2117.     TextDrawSetProportional(text36, 1);
  2118.     TextDrawSetShadow(text36, 1);
  2119.  
  2120.    
  2121.     text38 = TextDrawCreate(7.000000, 136.000000, "~n~~r~1.~w~Buy Weapons~n~~r~2.~w~Rob Ammunation");
  2122.     text39 = TextDrawCreate(7.000000, 136.000000, "~n~~r~1.~w~Deagle~n~~r~2.~w~Tec9~n~~r~3.~w~Mp5~n~~r~4.~w~M4~n~~r~5.~w~Sniper Rifle~n~~r~6.~w~Molotov~n~~n~~w~Use ~r~LMB ~w~ to hide thes~n~~w~boxes");
  2123.  
  2124.     text7 = TextDrawCreate(7.000000, 136.000000, "~w~As A Civilian, Your Job Is~n~~w~To Rob Banks, Casinos, Stores,~n~~w~People, And Get Away From~n~~w~The~b~Police~w~.");
  2125.     TextDrawAlignment(text7, 0);
  2126.     TextDrawLetterSize(text7, 0.299999, 0.900000);
  2127.     TextDrawColor(text7, 0xffff00ff);
  2128.     TextDrawSetOutline(text7, 1);
  2129.     TextDrawSetProportional(text7, 1);
  2130.     TextDrawSetShadow(text7, 1);
  2131.    
  2132.     text41 = TextDrawCreate(7.000000, 136.000000, "~w~White Player: Innocent Civilian.~n~~y~~h~Yellow Player: Suspect Civilian.~n~~y~Orange Player: Wanted Criminal.~n~~r~~h~Red Player: Most Wanted Criminal.~n~~b~Blue Player: Cop/Law Enforcement.");
  2133.     TextDrawAlignment(text41, 0);
  2134.     TextDrawLetterSize(text41, 0.299999, 0.900000);
  2135.     TextDrawColor(text41, 0xffff00ff);
  2136.     TextDrawSetOutline(text41, 1);
  2137.     TextDrawSetProportional(text41, 1);
  2138.     TextDrawSetShadow(text41, 1);
  2139.    
  2140.     text42 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~g~Green Player: Army/Law Enforcement.~n~~p~~h~Pink Player: Medic~n~~n~~w~Type ~r~LMB ~w~to hide thes boxes!");
  2141.     TextDrawAlignment(text42, 0);
  2142.     TextDrawLetterSize(text42, 0.299999, 0.900000);
  2143.     TextDrawColor(text42, 0xffff00ff);
  2144.     TextDrawSetOutline(text42, 1);
  2145.     TextDrawSetProportional(text42, 1);
  2146.     TextDrawSetShadow(text42, 1);
  2147.    
  2148.     text24 = TextDrawCreate(7.000000, 125.000000, "~r~1.~w~Mission in LS~n~~r~2.~w~Mission in SF~n~~r~3.~w~Mission in LV");
  2149.     TextDrawAlignment(text24, 0);
  2150.     TextDrawLetterSize(text24, 0.299999, 0.900000);
  2151.     TextDrawColor(text24, 0xffff00ff);
  2152.     TextDrawSetOutline(text24, 1);
  2153.     TextDrawSetProportional(text24, 1);
  2154.     TextDrawSetShadow(text24, 1);
  2155.    
  2156.     text40 = TextDrawCreate(7.000000, 125.000000, "~r~1.~w~Mission in LS~n~~r~2.~w~Mission in SF~n~~r~3.~w~Mission in LV");
  2157.     TextDrawAlignment(text40, 0);
  2158.     TextDrawLetterSize(text40, 0.299999, 0.900000);
  2159.     TextDrawColor(text40, 0xffff00ff);
  2160.     TextDrawSetOutline(text40, 1);
  2161.     TextDrawSetProportional(text40, 1);
  2162.     TextDrawSetShadow(text40, 1);
  2163.  
  2164.     text10 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~/rob~n~~n~~w~For A List Of Commands,~n~~w~Type ~y~/cmds~w~.~n~~n~~w~Press ~r~LMB ~w~to Hide Thes~n~~w~Boxes");
  2165.     TextDrawAlignment(text10, 0);
  2166.     TextDrawLetterSize(text10, 0.299999, 0.900000);
  2167.     TextDrawColor(text10, 0xffff00ff);
  2168.     TextDrawSetOutline(text10, 1);
  2169.     TextDrawSetProportional(text10, 1);
  2170.     TextDrawSetShadow(text10, 1);
  2171.  
  2172.     text8 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~w~You Can Also Take On Legal~n~~w~Jobs.Such As Truck Driving,~n~~w~Bus Driving And Taxi Driving~n~~n~~w~/hits, /hit, /blow, /blowcar");
  2173.     TextDrawAlignment(text8, 0);
  2174.     TextDrawLetterSize(text8, 0.299999, 0.900000);
  2175.     TextDrawColor(text8, 0xffff00ff);
  2176.     TextDrawSetOutline(text8, 1);
  2177.     TextDrawSetProportional(text8, 1);
  2178.     TextDrawSetShadow(text8, 1);
  2179.    
  2180.    
  2181.     text12 = TextDrawCreate(7.000000, 136.000000, "~w~As A ~b~Police Officer~w~, Your Job~n~~w~Is To Arrest ~r~Red ~w~Player, And~n~~w~Ticket ~y~Yellow ~w~Players Using~n~~w~/arrest and /ticket. You Must~n~~r~Never~w~Shoot Yellow Or White~n~~w~Players.");
  2182.     TextDrawAlignment(text12, 0);
  2183.     TextDrawLetterSize(text12, 0.299999, 0.900000);
  2184.     TextDrawColor(text12, 0xffff00ff);
  2185.     TextDrawSetOutline(text12, 1);
  2186.     TextDrawSetProportional(text12, 1);
  2187.     TextDrawSetShadow(text12, 1);
  2188.  
  2189.     text13 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~w~/arrest, /ticket, /taze, /cm");
  2190.     TextDrawAlignment(text13, 0);
  2191.     TextDrawLetterSize(text13, 0.299999, 0.900000);
  2192.     TextDrawColor(text13, 0xffff00ff);
  2193.     TextDrawSetOutline(text13, 1);
  2194.     TextDrawSetProportional(text13, 1);
  2195.     TextDrawSetShadow(text13, 1);
  2196.  
  2197.     text14 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~For A Full List Of Commands,~n~~w~Type /cmds~n~~n~Use ~r~LMB ~w~To Hide Thes Boxes.");
  2198.     TextDrawAlignment(text14, 0);
  2199.     TextDrawLetterSize(text14, 0.299999, 0.900000);
  2200.     TextDrawColor(text14, 0xffff00ff);
  2201.     TextDrawSetOutline(text14, 1);
  2202.     TextDrawSetProportional(text14, 1);
  2203.     TextDrawSetShadow(text14, 1);
  2204.    
  2205.     text15 = TextDrawCreate(7.000000, 136.000000, "~w~As A ~p~~h~Medic~w~,Your Job Is~n~~w~To Heal Injured Players.~n~~w~Enter An Amblulance, And~n~~w~Wait For A Call.");
  2206.     TextDrawAlignment(text15, 0);
  2207.     TextDrawLetterSize(text15, 0.299999, 0.900000);
  2208.     TextDrawColor(text15, 0xffff00ff);
  2209.     TextDrawSetOutline(text15, 1);
  2210.     TextDrawSetProportional(text15, 1);
  2211.     TextDrawSetShadow(text15, 1);
  2212.    
  2213.     text16 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~w~/heal, /healme~n~~n~~w~For A Full List Of Commands,~n~~w~Type ~y~/cmds~w~.");
  2214.     TextDrawAlignment(text16, 0);
  2215.     TextDrawLetterSize(text16, 0.299999, 0.900000);
  2216.     TextDrawColor(text16, 0xffff00ff);
  2217.     TextDrawSetOutline(text16, 1);
  2218.     TextDrawSetProportional(text16, 1);
  2219.     TextDrawSetShadow(text16, 1);
  2220.    
  2221.     text17 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Use ~r~LMB ~w~To Hide Thes Boxes.");
  2222.     TextDrawAlignment(text17, 0);
  2223.     TextDrawLetterSize(text17, 0.299999, 0.900000);
  2224.     TextDrawColor(text17, 0xffff00ff);
  2225.     TextDrawSetOutline(text17, 1);
  2226.     TextDrawSetProportional(text17, 1);
  2227.     TextDrawSetShadow(text17, 1);
  2228.    
  2229.     text9 = TextDrawCreate(30.000000, 123.000000, "City Hall");
  2230.     TextDrawAlignment(text9, 0);
  2231.     TextDrawBackgroundColor(text9, 0x0000ffff);
  2232.     TextDrawFont(text9, 1);
  2233.     TextDrawLetterSize(text9, 0.299999, 0.900000);
  2234.     TextDrawColor(text9, 0xffff00ff);
  2235.     TextDrawSetOutline(text9, 1);
  2236.     TextDrawSetProportional(text9, 1);
  2237.     TextDrawSetShadow(text9, 1);
  2238.  
  2239.     //Text Draw WELCOME
  2240.     BOX = TextDrawCreate(1.000000, 300.000000, "~n~~n~~n~~n~~n~~n~");
  2241.     Welcome = TextDrawCreate(277.000000, 305.000000, "Welcome");
  2242.     text1 = TextDrawCreate(300.000000, 320.000000, "to");
  2243.     text2 = TextDrawCreate(200.000000, 335.000000, "RuNix's Cops And Robbers");
  2244.     text3 = TextDrawCreate(1.000000, 430.000000, "WwW.RsS-ro.CoM");
  2245.     TextDrawUseBox(BOX, 1);
  2246.     TextDrawBoxColor(BOX, 0x000000cc);
  2247.     TextDrawTextSize(BOX, 720.000000, 200.000000);
  2248.     TextDrawAlignment(BOX, 0);
  2249.     TextDrawAlignment(Welcome, 0);
  2250.     TextDrawAlignment(text1, 0);
  2251.     TextDrawAlignment(text2, 0);
  2252.     TextDrawAlignment(text3, 0);
  2253.     TextDrawBackgroundColor(BOX, 0x000000ff);
  2254.     TextDrawBackgroundColor(Welcome, 0x00ff0066);
  2255.     TextDrawBackgroundColor(text1, 0xF6F600AA);
  2256.     TextDrawBackgroundColor(text2, 0xF6F600AA);
  2257.     TextDrawBackgroundColor(text3, 0x0000ffff);
  2258.     TextDrawFont(BOX, 3);
  2259.     TextDrawLetterSize(BOX, 1.000000, 3.299999);
  2260.     TextDrawFont(Welcome, 0);
  2261.     TextDrawLetterSize(Welcome, 0.599999, 1.600000);
  2262.     TextDrawFont(text1, 0);
  2263.     TextDrawLetterSize(text1, 0.599999, 1.600000);
  2264.     TextDrawFont(text2, 0);
  2265.     TextDrawLetterSize(text2, 0.599999, 1.600000);
  2266.     TextDrawFont(text3, 1);
  2267.     TextDrawLetterSize(text3, 0.399999, 1.400000);
  2268.     TextDrawColor(BOX, 0x000000ff);
  2269.     TextDrawColor(Welcome, 0xff0000ff);
  2270.     TextDrawColor(text1, 0x0000AFAA);
  2271.     TextDrawColor(text2, 0xF67F00AA);
  2272.     TextDrawColor(text3, 0xffff00ff);
  2273.     TextDrawSetOutline(BOX, 1);
  2274.     TextDrawSetOutline(Welcome, 1);
  2275.     TextDrawSetOutline(text1, 1);
  2276.     TextDrawSetOutline(text2, 1);
  2277.     TextDrawSetOutline(text3, 1);
  2278.     TextDrawSetProportional(BOX, 1);
  2279.     TextDrawSetProportional(BOX2, 1);
  2280.     TextDrawSetProportional(Welcome, 1);
  2281.     TextDrawSetProportional(text1, 1);
  2282.     TextDrawSetProportional(text2, 1);
  2283.     TextDrawSetProportional(text3, 1);
  2284.     TextDrawSetShadow(BOX, 1);
  2285.     TextDrawSetShadow(Welcome, 1);
  2286.     TextDrawSetShadow(text1, 1);
  2287.     TextDrawSetShadow(text2, 1);
  2288.     TextDrawSetShadow(text3, 1);
  2289.     return true;
  2290. }
  2291.  
  2292. SetPlayerTeamFromClass(playerid, classid)
  2293. {
  2294.     if(classid >= 0 && classid <= 5) gTeam[playerid] = COP;
  2295.     else if(classid == 6) gTeam[playerid] = FBI;
  2296.     else if(classid == 7) gTeam[playerid] = SWAT;
  2297.     else if(classid == 8) gTeam[playerid] = ARMY;
  2298.     else if(classid >= 9 && classid <= 11) gTeam[playerid] = Medic;
  2299.     else if(classid >= 12 && classid <= 30) gTeam[playerid] = CIVILIAN;
  2300. }
  2301.  
  2302. public OnPlayerRequestClass(playerid, classid)
  2303. {
  2304.     SetPlayerTeamFromClass(playerid, classid);
  2305.     Spawned[playerid] = 0;
  2306.     if(classid >= 0 && classid <= 5)
  2307.     {
  2308.         GameTextForPlayer(playerid, "~b~Police Officer", 3000, 3);
  2309.         SetPlayerInterior(playerid, 1);
  2310.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2311.         SetPlayerFacingAngle(playerid, 94.0821);
  2312.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2313.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2314.     }else if(classid == 6)
  2315.     {
  2316.         GameTextForPlayer(playerid, "~b~FBI", 3000, 3);
  2317.         SetPlayerInterior(playerid, 1);
  2318.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2319.         SetPlayerFacingAngle(playerid, 94.0821);
  2320.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2321.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2322.     }else if(classid == 7)
  2323.     {
  2324.         GameTextForPlayer(playerid, "~b~SWAT", 3000, 3);
  2325.         SetPlayerInterior(playerid, 1);
  2326.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2327.         SetPlayerFacingAngle(playerid, 94.0821);
  2328.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2329.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2330.     }
  2331.     else if(classid == 8)
  2332.     {
  2333.         GameTextForPlayer(playerid, "~g~Army", 3000, 3);
  2334.         SetPlayerInterior(playerid, 1);
  2335.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2336.         SetPlayerFacingAngle(playerid, 94.0821);
  2337.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2338.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2339.     }
  2340.     else if(classid >= 9 && classid <= 11)
  2341.     {
  2342.         GameTextForPlayer(playerid, "~p~~h~Medic", 3000, 3);
  2343.         SetPlayerInterior(playerid, 1);
  2344.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2345.         SetPlayerFacingAngle(playerid, 94.0821);
  2346.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2347.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2348.     }
  2349.     if(classid >= 12 && classid <= 30)
  2350.     {
  2351.         GameTextForPlayer(playerid, "~w~Civilian", 3000, 3);
  2352.         SetPlayerInterior(playerid, 1);
  2353.         SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2354.         SetPlayerFacingAngle(playerid, 94.0821);
  2355.         SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2356.         SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2357.     }
  2358.     return true;
  2359. }
  2360.  
  2361. public OnPlayerConnect(playerid)
  2362. {
  2363.     new string[256], playername[MAX_PLAYER_NAME], file[255];
  2364.     GetPlayerName(playerid, playername, sizeof(playername));
  2365.     format(string, sizeof(string), "%s has joined RuNix's Cops And Robbers!", playername);
  2366.     Announce(string);
  2367.     IsPlayerLogged[playerid] = 0;
  2368.     RecentlyRobbed[playerid] = 0;
  2369.     SelectBM[playerid] = 0;
  2370.     AMMUBOX[playerid] = 0;
  2371.     CSKINZ[playerid] = 0;
  2372.     CSKINU[playerid] = 0;
  2373.     CSKIN[playerid] = 0;
  2374.     CHALLBOX[playerid] = 0;
  2375.     IcmdCar[playerid][CarcmdI] = -1;
  2376.     IsSpawned[playerid] =0;
  2377.     GPSTimer[playerid] = 0;
  2378.     HaveGPS[playerid] = false;
  2379.     Muted[playerid] = 0;
  2380.     AccountInfo[playerid][aLevel] = 0;
  2381.     //Text Draws
  2382.     TextDrawShowForPlayer(playerid, BOX);
  2383.     TextDrawShowForPlayer(playerid, Welcome);
  2384.     TextDrawShowForPlayer(playerid, text1);
  2385.     TextDrawShowForPlayer(playerid, text2);
  2386.     TextDrawShowForPlayer(playerid, text3);
  2387.     HaveTicket[playerid] = false;
  2388.     new Registre[250];
  2389.     format(file, sizeof(file), "%s.runix", playername);
  2390.     if(fexist(file))
  2391.     {
  2392.     GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
  2393.     format(Registre,sizeof(Registre),"Welcome back %s!\n\nPlease Login to continue!",playername);
  2394.     ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Login","Ban");
  2395.     }
  2396.     else
  2397.     if(!fexist(file))
  2398.     {
  2399.     GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
  2400.     format(Registre,sizeof(Registre),"Welcome %s!\n\nPlease register to continue!",playername);
  2401.     ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Register",Registre,"Register","Ban");
  2402.     }
  2403.     return true;
  2404. }
  2405.  
  2406. public OnPlayerDisconnect(playerid, reason)
  2407. {
  2408.     new string[256], playername[MAX_PLAYER_NAME], file[256];
  2409.     PlayersOnline--;
  2410.     GetPlayerName(playerid, playername, sizeof(playername));
  2411.     format(file, sizeof(file), "%s.runix", playername);
  2412.     format(string, sizeof(string), "%s has left RuNix's Cops and Robbers!", playername);
  2413.     Announce(string);
  2414.     IsPlayerLogged[playerid] = 0;
  2415.     RecentlyRobbed[playerid] = 0;
  2416.     dini_IntSet(file, "Money", GetPlayerMoney(playerid));
  2417.     dini_IntSet(file, "Score", GetPlayerScore(playerid));
  2418.     dini_IntSet(file, "Admin", AccountInfo[playerid][aLevel]);
  2419.     dini_IntSet(file, "WantedLevel", GetPlayerWantedLevel(playerid));
  2420.     if(IcmdCar[playerid][CarcmdI] != -1) UcideMasinileBoule(IcmdCar[playerid][CarcmdI]);
  2421.     if(playerInJob[playerid]>0)
  2422.     {
  2423.     terminarMission(playerid);
  2424.     }
  2425.     OnTaxiAsPassenger[playerid]=-1;
  2426.     if  (playerInMiniMission2[playerid]>0)
  2427.         {
  2428.         terminarMission2(playerid);
  2429.         }
  2430.     OnBusAsPassenger[playerid]=-1;
  2431.     SelectBM[playerid] = 0;
  2432.     AMMUBOX[playerid] = 0;
  2433.     CSKINZ[playerid] = 0;
  2434.     CSKINU[playerid] = 0;
  2435.     CSKIN[playerid] = 0;
  2436.     CHALLBOX[playerid] = 0;
  2437.     AccountInfo[playerid][aLevel] = 0;
  2438.     if(HaveGPS[playerid]) {
  2439.     KillTimer(GPSTimer[playerid]);
  2440.     HaveGPS[playerid] = false;
  2441.     GPSTimer[playerid] = 0;
  2442.     }
  2443.     if(hit[playerid] > 0)
  2444.     {
  2445.         format(string, sizeof(string), "The hit on %s (%i) has been cancelled (disconnected)", ReturnPlayerName(playerid), playerid);
  2446.         SendClientMessageToAll(COLOR_MSG, string);
  2447.         hit[playerid] = 0;
  2448.     }
  2449.     return true;
  2450. }
  2451.  
  2452. public OnPlayerSpawn(playerid)
  2453. {
  2454.     HideDraw(playerid);
  2455.     SetPlayerInterior(playerid, 0);
  2456.     //LV MAP ICON
  2457.     SetPlayerMapIcon(playerid, 0, 2019.5000, 1913.0396, 12.3114, 52, 0); // Bank
  2458.     SetPlayerMapIcon(playerid, 5, 2287.0925, 2431.6145, 10.8203, 30, 0); // LVPD
  2459.     SetPlayerMapIcon(playerid, 6, 1607.4465, 1816.1157, 10.8203, 22, 0); // Hospital
  2460.     SetPlayerMapIcon(playerid, 7, 2412.5625, 1123.8337, 10.8203, 56, 0); // City Hall
  2461.     SetPlayerMapIcon(playerid, 8, 2085.6697, 2074.0100, 11.0547, 12, 0); // RuNix's Dildos
  2462.     SetPlayerMapIcon(playerid, 9, 2172.1233, 1398.1210, 11.0625, 55, 0); // Car Shop
  2463.     SetPlayerMapIcon(playerid, 10, 2113.2854, 1333.5800, 10.8203, 49, 0); // BulletXT's Bar
  2464.     SetPlayerMapIcon(playerid, 11, 2101.8979, 2257.3718, 11.0234, 45, 0); // Binco
  2465.     SetPlayerMapIcon(playerid, 12, 2249.1479, 960.5301, 10.8130, 45, 0); // ZIP
  2466.     SetPlayerMapIcon(playerid, 13, 2032.1550, 2162.4448, 10.8203, 8, 0); // Bomb Shop
  2467.     SetPlayerMapIcon(playerid, 14, 2184.2126, 2295.6084, 10.8203, 45, 0); // SubUrban
  2468.     SetPlayerMapIcon(playerid, 15, 2491.5000, 918.4912, 11.0234, 24, 0); // Drug Point
  2469.     SetPlayerMapIcon(playerid, 42, 2019.3212,1007.7536,10.8203, 44, 0); // D4ragoni
  2470.     SetPlayerMapIcon(playerid, 43, 2196.9517,1677.1399,12.3672, 25, 0); // Caligulas
  2471.     //LS MAP ICON
  2472.     SetPlayerMapIcon(playerid, 16, 1122.7067,-2037.0416,69.8942, 24, 0); // Drug Point
  2473.     SetPlayerMapIcon(playerid, 17, 1857.1792,-1874.2761,13.4829, 8, 0); // Bomb Shop
  2474.     SetPlayerMapIcon(playerid, 18, 2244.4128,-1665.5463,15.4766, 45, 0); // Binco
  2475.     SetPlayerMapIcon(playerid, 19, 2309.8811,-1643.7646,14.8270, 49, 0); // Bar
  2476.     SetPlayerMapIcon(playerid, 20, 1481.1427,-1771.6808,18.7958, 56, 0); // City Hall
  2477.     SetPlayerMapIcon(playerid, 21, 1172.8318,-1323.2954,15.4001, 22, 0); // Hospital
  2478.     SetPlayerMapIcon(playerid, 22, 1555.0673,-1675.6428,16.1953, 30, 0); // LSPD
  2479.     SetPlayerMapIcon(playerid, 23, 1411.7141,-1700.0085,13.5395, 52, 0); // Bank
  2480.     SetPlayerMapIcon(playerid, 24, 1703.9697,-1469.9948,13.5469, 55, 0); // Car Shop
  2481.     SetPlayerMapIcon(playerid, 25, 499.6478,-1360.3167,16.3421, 45, 0); // SubUrban
  2482.     SetPlayerMapIcon(playerid, 26, 822.3297,-1757.5181,13.6484, 45, 0); // SubUrban 2
  2483.     SetPlayerMapIcon(playerid, 27, 2139.1853,-1743.2207,13.5524, 45, 0); // ZIP
  2484.     //SF MAP ICON
  2485.     SetPlayerMapIcon(playerid, 28, -2719.4172,-319.2030,7.8438, 24, 0); // Drug Point
  2486.     SetPlayerMapIcon(playerid, 29, -2032.9038,161.4297,29.0461, 8, 0); // Bomb Shop
  2487.     SetPlayerMapIcon(playerid, 30, -2655.0779,640.0289,14.4545, 22, 0); // Hospital
  2488.     SetPlayerMapIcon(playerid, 31, -1605.4486,710.8713,13.8672, 30, 0); // SFPD
  2489.     SetPlayerMapIcon(playerid, 32, -1581.2535,867.2552,7.6953, 52, 0); // Bank
  2490.     SetPlayerMapIcon(playerid, 33, -1946.0483,273.3452,35.4739, 55, 0); // Car Shop
  2491.     SetPlayerMapIcon(playerid, 34, -2490.9307,-142.7729,25.6172, 45, 0); // SubUrban
  2492.     SetPlayerMapIcon(playerid, 35, -1881.1808,823.0976,35.1770, 45, 0); // ZIP
  2493.     //ATM-uri
  2494.     SetPlayerMapIcon(playerid, 1,2172.8428, 1416.7751, 11.0625, 52, 0); // ATM
  2495.     SetPlayerMapIcon(playerid, 2,2110.5188, 2060.4219, 10.8203, 52, 0); // ATM
  2496.     SetPlayerMapIcon(playerid, 3,2134.0115, 2379.3159, 10.8203, 52, 0); // ATM
  2497.     SetPlayerMapIcon(playerid, 4,2455.5420, 1681.4117, 11.0234, 52, 0); // ATM
  2498.     SetPlayerMapIcon(playerid, 36,-2635.9067,1398.5020,7.0938, 52, 0); // ATM
  2499.     SetPlayerMapIcon(playerid, 37,-1575.3977,902.4458,7.5610, 52, 0); // ATM
  2500.     SetPlayerMapIcon(playerid, 38,-2434.0908,516.8967,30.3705, 52, 0); // ATM
  2501.     SetPlayerMapIcon(playerid, 39,852.7184,-1760.9111,13.5491, 52, 0); // ATM
  2502.     SetPlayerMapIcon(playerid, 40,1243.2965,-1561.1505,13.5545, 52, 0); // ATM
  2503.     SetPlayerMapIcon(playerid, 41,1787.9928,-1592.2491,13.4870, 52, 0); // ATM
  2504.  
  2505.     TextDrawHideForPlayer(playerid, BOX);
  2506.     TextDrawHideForPlayer(playerid, Welcome);
  2507.     TextDrawHideForPlayer(playerid, text1);
  2508.     TextDrawHideForPlayer(playerid, text2);
  2509.     TextDrawHideForPlayer(playerid, text3);
  2510.     TextDrawShowForPlayer(playerid, BOX2);
  2511.     IsSpawned[playerid] =1;
  2512.  
  2513.     new playername[MAX_PLAYER_NAME];
  2514.     GetPlayerName(playerid, playername, sizeof(playername));
  2515.  
  2516.     if(gTeam[playerid] == CIVILIAN)
  2517.     {
  2518.         SetPlayerColor(playerid, WHITE);
  2519.         new file[256];
  2520.         new name[MAX_PLAYER_NAME];
  2521.         GetPlayerName(playerid, name, sizeof(name));
  2522.         format(file, sizeof(file), "%s.runix", name);
  2523.         new position = random(sizeof(CivilianSpawn));
  2524.         SetPlayerPos(playerid, CivilianSpawn[position][0], CivilianSpawn[position][1], CivilianSpawn[position][2]);
  2525.         SetPlayerFacingAngle(playerid, CivilianSpawn[position][3]);
  2526.         SetCameraBehindPlayer(playerid);
  2527.         TextDrawShowForPlayer(playerid, CIVBOX);
  2528.         TextDrawShowForPlayer(playerid, text6);
  2529.         TextDrawShowForPlayer(playerid, text7);
  2530.         TextDrawShowForPlayer(playerid, text8);
  2531.         TextDrawShowForPlayer(playerid, text10);
  2532.         TogglePlayerControllable(playerid, true);
  2533.         GivePlayerWeapon(playerid,5,1);
  2534.         if(PlayerSkin[playerid] >= 0)
  2535.         {
  2536.         SetPlayerSkin(playerid,dini_Int(file, "Skin"));
  2537.         }
  2538.     }
  2539.     else if(gTeam[playerid] == Medic)
  2540.     {
  2541.         SetPlayerColor(playerid, PINK);
  2542.         new position = random(sizeof(MedicSpawn));
  2543.         SetPlayerPos(playerid, MedicSpawn[position][0], MedicSpawn[position][1], MedicSpawn[position][2]);
  2544.         SetPlayerFacingAngle(playerid, MedicSpawn[position][3]);
  2545.         SetCameraBehindPlayer(playerid);
  2546.         TextDrawShowForPlayer(playerid, MDCBOX);
  2547.         TextDrawShowForPlayer(playerid, text15);
  2548.         TextDrawShowForPlayer(playerid, text16);
  2549.         TextDrawShowForPlayer(playerid, text17);
  2550.         TextDrawShowForPlayer(playerid, text18);
  2551.         GivePlayerWeapon(playerid,41,1000);
  2552.     }
  2553.     else if(gTeam[playerid] == COP)
  2554.     {
  2555.         new position = random(sizeof(CopSpawn));
  2556.         SetPlayerColor(playerid, LIGHT_BLUE);
  2557.         SetPlayerPos(playerid, CopSpawn[position][0], CopSpawn[position][1], CopSpawn[position][2]);
  2558.         SetPlayerFacingAngle(playerid, CopSpawn[position][3]);
  2559.         SetCameraBehindPlayer(playerid);
  2560.         TextDrawShowForPlayer(playerid, COPBOX);
  2561.         TextDrawShowForPlayer(playerid, text11);
  2562.         TextDrawShowForPlayer(playerid, text12);
  2563.         TextDrawShowForPlayer(playerid, text13);
  2564.         TextDrawShowForPlayer(playerid, text14);
  2565.         GivePlayerWeapon(playerid,25,100);
  2566.         GivePlayerWeapon(playerid,22,100);
  2567.     }
  2568.     else if(gTeam[playerid] == SWAT || gTeam[playerid] == FBI)
  2569.     {
  2570.         SetPlayerColor(playerid, BLUE);
  2571.         new position = random(sizeof(SFSpawn));
  2572.         SetPlayerPos(playerid, SFSpawn[position][0], SFSpawn[position][1], SFSpawn[position][2]);
  2573.         SetPlayerFacingAngle(playerid, SFSpawn[position][3]);
  2574.         SetCameraBehindPlayer(playerid);
  2575.         TextDrawShowForPlayer(playerid, COPBOX);
  2576.         TextDrawShowForPlayer(playerid, text11);
  2577.         TextDrawShowForPlayer(playerid, text12);
  2578.         TextDrawShowForPlayer(playerid, text13);
  2579.         TextDrawShowForPlayer(playerid, text14);
  2580.         GivePlayerWeapon(playerid,29,400);
  2581.         GivePlayerWeapon(playerid,22,100);
  2582.         GivePlayerWeapon(playerid,31,300);
  2583.     }
  2584.     else if(gTeam[playerid] == ARMY)
  2585.     {
  2586.         SetPlayerColor(playerid, GREEN);
  2587.         new position = random(sizeof(ARMYSpawn));
  2588.         SetPlayerPos(playerid, ARMYSpawn[position][0], ARMYSpawn[position][1], ARMYSpawn[position][2]);
  2589.         SetPlayerFacingAngle(playerid, ARMYSpawn[position][3]);
  2590.         SetCameraBehindPlayer(playerid);
  2591.         TextDrawShowForPlayer(playerid, COPBOX);
  2592.         TextDrawShowForPlayer(playerid, text11);
  2593.         TextDrawShowForPlayer(playerid, text12);
  2594.         TextDrawShowForPlayer(playerid, text13);
  2595.         TextDrawShowForPlayer(playerid, text14);
  2596.         GivePlayerWeapon(playerid,29,400);
  2597.         GivePlayerWeapon(playerid,22,100);
  2598.         GivePlayerWeapon(playerid,31,300);
  2599.     }
  2600.     Spawned[playerid] = 1;
  2601.     return true;
  2602. }
  2603.  
  2604. public OnPlayerDeath(playerid, killerid, reason)
  2605. {
  2606.     HideDraw(playerid);
  2607.     SendDeathMessage(killerid, playerid, reason);
  2608.     SetPlayerColor(playerid, GREY);
  2609.     SetPlayerWantedLevel(playerid, 0);
  2610.  
  2611.     if(reason <= 46 && hit[playerid] != 0)
  2612.     {
  2613.         new string[256];
  2614.         format(string, sizeof(string), "%s (%i) killed %s (%i) and recieved $%i for a completed hit", ReturnPlayerName(killerid), killerid, ReturnPlayerName(playerid), playerid, hit[playerid]);
  2615.         SendClientMessageToAll(COLOR_MSG, string);
  2616.         GivePlayerMoney(killerid, hit[playerid]);
  2617.         GivePlayerMoney(hiter[playerid], GetPlayerMoney(hiter[playerid])-hit[playerid]);
  2618.         hit[playerid] = 0;
  2619.     }
  2620.     else if(hit[playerid] != 0)
  2621.     {
  2622.         new string[256];
  2623.         format(string, sizeof(string), "The hit on %s (%i) has been cancelled (died)", ReturnPlayerName(playerid), playerid);
  2624.         SendClientMessageToAll(COLOR_MSG, string);
  2625.         hit[playerid] = 0;
  2626.     }
  2627.  
  2628.     IsSpawned[playerid] =0;
  2629.     if(HaveGPS[playerid]) {
  2630.     KillTimer(GPSTimer[playerid]);
  2631.     HaveGPS[playerid] = false;
  2632.     GPSTimer[playerid] = 0;
  2633.     }
  2634.     return true;
  2635. }
  2636.  
  2637. public OnPlayerText(playerid, text[])
  2638. {
  2639.     if(text[0] == '@' && AccountInfo[playerid][aLevel] > 0)
  2640.     {
  2641.         new string[256], name[60], message[350];
  2642.         GetPlayerName(playerid, name, 60);
  2643.         strmid(string, text, 1, strlen(text), 256);
  2644.         format(message, 350, "%s: %s", name, string);
  2645.         for(new i;i<MAX_PLAYERS;i++)
  2646.         {
  2647.             if(AccountInfo[i][aLevel] > 0)
  2648.             {
  2649.                 SendClientMessage(i, COLOR_GREEN, message);
  2650.             }
  2651.         }
  2652.         return 0;
  2653.     }
  2654.     if(Muted[playerid] == 1)
  2655.     {
  2656.         SendClientMessage(playerid, COLOR_RED, "You are muted, you cannot chat!");
  2657.         return 0;
  2658.     }
  2659.     new rname[MAX_PLAYER_NAME];
  2660.     GetPlayerName(playerid, rname, sizeof(rname));
  2661.     new name[MAX_PLAYER_NAME];
  2662.     GetPlayerName(playerid, name, sizeof(name));
  2663.     if(text[0] == '1' && SelectBM[playerid] == 1)
  2664.     {
  2665.     MissionIni2(playerid);
  2666.     HideDraw(playerid);
  2667.     SelectBM[playerid] = 0;
  2668.     InBusMission[playerid] = 1;
  2669.     currentcheckpoint[playerid] = 0;
  2670.     SetPlayerRaceCheckpoint(playerid,0,buslscps[0][0],buslscps[0][1],buslscps[0][2],buslscps[1][0],buslscps[1][1],buslscps[1][2],7);
  2671.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  2672.     return false;
  2673.     }
  2674.     if(text[0] == '1' && SelectTM[playerid] == 1)
  2675.     {
  2676.     HideDraw(playerid);
  2677.     SelectTM[playerid] = 0;
  2678.     InTrashMission[playerid] = 1;
  2679.     currentcheckpoint[playerid] = 0;
  2680.     SetPlayerRaceCheckpoint(playerid,0,trashls[0][0],trashls[0][1],trashls[0][2],trashls[1][0],trashls[1][1],trashls[1][2],7);
  2681.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2682.     return false;
  2683.     }
  2684.     if(text[0] == '2' && SelectTM[playerid] == 1)
  2685.     {
  2686.     HideDraw(playerid);
  2687.     SelectTM[playerid] = 0;
  2688.     InTrashMission[playerid] = 2;
  2689.     currentcheckpoint[playerid] = 0;
  2690.     SetPlayerRaceCheckpoint(playerid,0,trashsf[0][0],trashsf[0][1],trashsf[0][2],trashsf[1][0],trashsf[1][1],trashsf[1][2],7);
  2691.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2692.     return false;
  2693.     }
  2694.     if(text[0] == '3' && SelectTM[playerid] == 1)
  2695.     {
  2696.     HideDraw(playerid);
  2697.     SelectTM[playerid] = 0;
  2698.     InTrashMission[playerid] = 3;
  2699.     currentcheckpoint[playerid] = 0;
  2700.     SetPlayerRaceCheckpoint(playerid,0,trashlv[0][0],trashlv[0][1],trashlv[0][2],trashlv[1][0],trashlv[1][1],trashlv[1][2],7);
  2701.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2702.     return false;
  2703.     }
  2704.     if(text[0] == '1' && AMMUBOX[playerid] == 1)
  2705.     {
  2706.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2707.     {
  2708.     HideDraw(playerid);
  2709.     TextDrawShowForPlayer(playerid, text39);
  2710.     TextDrawShowForPlayer(playerid, AMMUBOX2);
  2711.     AMMUBOX[playerid] = 2;
  2712.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2713.     return false;
  2714.     }
  2715.     if(text[0] == '2' && AMMUBOX[playerid] == 1)
  2716.     {
  2717.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu))
  2718.         {
  2719.             AMMUBOX[playerid] = 0;
  2720.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2721.             {
  2722.                     if(AmmuRecentlyRobbed == 0)
  2723.                     {
  2724.                         new chances = random(500);
  2725.                         if(chances >= 0 && chances <= 400)
  2726.                         {
  2727.                             new string[250];
  2728.                             RobAmmu[playerid] = 20;
  2729.                             AmmuRecentlyRobbed = 150;
  2730.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2731.                             Announce(string);
  2732.                             return true;
  2733.                         }
  2734.                         else if(chances >= 401 && chances <= 500)
  2735.                         {
  2736.                             new copmsg[250];
  2737.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2738.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2739.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2740.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2741.                             SendRadioMessageToCops(copmsg);
  2742.                             AmmuRecentlyRobbed = 100;
  2743.                             return true;
  2744.                         }
  2745.                     }
  2746.                     else if(AmmuRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2747.             }
  2748.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2749.         }
  2750.         if(CPS_IsPlayerInCheckpoint(playerid, cpammu2))
  2751.         {
  2752.             AMMUBOX[playerid] = 0;
  2753.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2754.             {
  2755.                     if(Ammu2RecentlyRobbed == 0)
  2756.                     {
  2757.                         new chances = random(500);
  2758.                         if(chances >= 0 && chances <= 400)
  2759.                         {
  2760.                             new string[250];
  2761.                             RobAmmu2[playerid] = 20;
  2762.                             Ammu2RecentlyRobbed = 150;
  2763.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2764.                             Announce(string);
  2765.                             return true;
  2766.                         }
  2767.                         else if(chances >= 401 && chances <= 500)
  2768.                         {
  2769.                             new copmsg[250];
  2770.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2771.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2772.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2773.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2774.                             SendRadioMessageToCops(copmsg);
  2775.                             Ammu2RecentlyRobbed = 100;
  2776.                             return true;
  2777.                         }
  2778.                     }
  2779.                     else if(Ammu2RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2780.             }
  2781.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2782.         }
  2783.             if(CPS_IsPlayerInCheckpoint(playerid, cpammu3))
  2784.             {
  2785.             AMMUBOX[playerid] = 0;
  2786.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2787.             {
  2788.                     if(Ammu3RecentlyRobbed == 0)
  2789.                     {
  2790.                         new chances = random(500);
  2791.                         if(chances >= 0 && chances <= 400)
  2792.                         {
  2793.                             new string[250];
  2794.                             RobAmmu3[playerid] = 20;
  2795.                             Ammu3RecentlyRobbed = 150;
  2796.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2797.                             Announce(string);
  2798.                             return true;
  2799.                         }
  2800.                         else if(chances >= 401 && chances <= 500)
  2801.                         {
  2802.                             new copmsg[250];
  2803.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2804.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2805.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2806.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2807.                             SendRadioMessageToCops(copmsg);
  2808.                             Ammu3RecentlyRobbed = 100;
  2809.                             return true;
  2810.                         }
  2811.                     }
  2812.                     else if(Ammu3RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2813.             }
  2814.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2815.         }
  2816.             if(CPS_IsPlayerInCheckpoint(playerid, cpammu4))
  2817.             {
  2818.             AMMUBOX[playerid] = 0;
  2819.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2820.             {
  2821.                     if(Ammu4RecentlyRobbed == 0)
  2822.                     {
  2823.                         new chances = random(500);
  2824.                         if(chances >= 0 && chances <= 400)
  2825.                         {
  2826.                             new string[250];
  2827.                             RobAmmu4[playerid] = 20;
  2828.                             Ammu4RecentlyRobbed = 150;
  2829.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2830.                             Announce(string);
  2831.                             return true;
  2832.                         }
  2833.                         else if(chances >= 401 && chances <= 500)
  2834.                         {
  2835.                             new copmsg[250];
  2836.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2837.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2838.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2839.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2840.                             SendRadioMessageToCops(copmsg);
  2841.                             Ammu4RecentlyRobbed = 100;
  2842.                             return true;
  2843.                         }
  2844.                     }
  2845.                     else if(Ammu4RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2846.             }
  2847.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2848.         }
  2849.             if(CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2850.             {
  2851.             AMMUBOX[playerid] = 0;
  2852.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2853.             {
  2854.                     if(Ammu5RecentlyRobbed == 0)
  2855.                     {
  2856.                         new chances = random(500);
  2857.                         if(chances >= 0 && chances <= 400)
  2858.                         {
  2859.                             new string[250];
  2860.                             RobAmmu5[playerid] = 20;
  2861.                             Ammu5RecentlyRobbed = 150;
  2862.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2863.                             Announce(string);
  2864.                             return true;
  2865.                         }
  2866.                         else if(chances >= 401 && chances <= 500)
  2867.                         {
  2868.                             new copmsg[250];
  2869.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2870.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2871.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2872.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2873.                             SendRadioMessageToCops(copmsg);
  2874.                             Ammu5RecentlyRobbed = 100;
  2875.                             return true;
  2876.                         }
  2877.                     }
  2878.                     else if(Ammu5RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2879.             }
  2880.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2881.         }
  2882.     return false;
  2883.     }
  2884.     if(text[0] == '1' && AMMUBOX[playerid] == 2)
  2885.     {
  2886.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2887.     {
  2888.     if(GetPlayerMoney(playerid) > 499)
  2889.     {
  2890.     GivePlayerMoney(playerid,-500);
  2891.     GivePlayerWeapon(playerid,24,10);
  2892.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Desert Eagle with 10 ammu");
  2893.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2894.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2895.     return false;
  2896.     }
  2897.     if(text[0] == '2' && AMMUBOX[playerid] == 2)
  2898.     {
  2899.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2900.     {
  2901.     if(GetPlayerMoney(playerid) > 899)
  2902.     {
  2903.     GivePlayerMoney(playerid,-900);
  2904.     GivePlayerWeapon(playerid,32,60);
  2905.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Tec9 with 60 ammu");
  2906.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2907.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2908.     return false;
  2909.     }
  2910.     if(text[0] == '3' && AMMUBOX[playerid] == 2)
  2911.     {
  2912.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2913.     {
  2914.     if(GetPlayerMoney(playerid) > 899)
  2915.     {
  2916.     GivePlayerMoney(playerid,-900);
  2917.     GivePlayerWeapon(playerid,29,60);
  2918.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an MP5 with 60 ammu");
  2919.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2920.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2921.     return false;
  2922.     }
  2923.     if(text[0] == '4' && AMMUBOX[playerid] == 2)
  2924.     {
  2925.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2926.     {
  2927.     if(GetPlayerMoney(playerid) > 1200)
  2928.     {
  2929.     GivePlayerMoney(playerid,-1200);
  2930.     GivePlayerWeapon(playerid,31,60);
  2931.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an M4 with 60 ammu");
  2932.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2933.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2934.     return false;
  2935.     }
  2936.     if(text[0] == '5' && AMMUBOX[playerid] == 2)
  2937.     {
  2938.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2939.     {
  2940.     if(GetPlayerMoney(playerid) > 1200)
  2941.     {
  2942.     GivePlayerMoney(playerid,-1200);
  2943.     GivePlayerWeapon(playerid,34,20);
  2944.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Sniper Rifle with 20 ammu");
  2945.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2946.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2947.     return false;
  2948.     }
  2949.     if(text[0] == '6' && AMMUBOX[playerid] == 2)
  2950.     {
  2951.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2952.     {
  2953.     if(GetPlayerMoney(playerid) > 2999)
  2954.     {
  2955.     GivePlayerMoney(playerid,-1999);
  2956.     GivePlayerWeapon(playerid,18,3);
  2957.     SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Moldov with 3 ammu");
  2958.     }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2959.     }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2960.     return false;
  2961.     }
  2962.     if(text[0] == '1' && CSKIN[playerid] == 1)
  2963.     {
  2964.     if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  2965.     {
  2966.     if(gTeam[playerid] == CIVILIAN)
  2967.     {
  2968.     SetPlayerPos(playerid, 218.2430,-98.2941,1005.2578);
  2969.     SetPlayerFacingAngle(playerid, 93.6636);
  2970.     SetPlayerSkin(playerid,7);
  2971.     HideDraw(playerid);
  2972.     TogglePlayerControllable(playerid,0);
  2973.     SetPlayerCameraPos(playerid, 215.7693,-98.2494,1005.2578);
  2974.     SetPlayerCameraLookAt(playerid, 218.2430,-98.2941,1005.2578);
  2975.     SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  2976.     CSKIN[playerid] = 2;
  2977.     }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  2978.     }else SendClientMessage(playerid, ERROR, "You're not at Binco.");
  2979.     return false;
  2980.     }
  2981.     if(text[0] == '1' && CSKINZ[playerid] == 1)
  2982.     {
  2983.     if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  2984.     {
  2985.     if(gTeam[playerid] == CIVILIAN)
  2986.     {
  2987.     SetPlayerPos(playerid, 181.5906,-87.5578,1002.0234);
  2988.     SetPlayerFacingAngle(playerid, 100.5187);
  2989.     SetPlayerSkin(playerid,7);
  2990.     HideDraw(playerid);
  2991.     TogglePlayerControllable(playerid,0);
  2992.     SetPlayerCameraPos(playerid, 179.6538,-87.7981,1002.0234);
  2993.     SetPlayerCameraLookAt(playerid, 181.5906,-87.5578,1002.0234);
  2994.     SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  2995.     CSKINZ[playerid] = 2;
  2996.     }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  2997.     }else SendClientMessage(playerid, ERROR, "You're not at Zip.");
  2998.     return false;
  2999.     }
  3000.     if(text[0] == '2' && CSKINZ[playerid] == 1)
  3001.     {
  3002.     if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  3003.         {
  3004.             CSKINZ[playerid] = 0;
  3005.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  3006.             {
  3007.                     if(ZipRecentlyRobbed == 0)
  3008.                     {
  3009.                         new chances = random(500);
  3010.                         if(chances >= 0 && chances <= 400)
  3011.                         {
  3012.                             new string[250];
  3013.                             RobZip[playerid] = 20;
  3014.                             ZipRecentlyRobbed = 150;
  3015.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at ZIP!", name, playerid);
  3016.                             Announce(string);
  3017.                             return true;
  3018.                         }
  3019.                         else if(chances >= 401 && chances <= 500)
  3020.                         {
  3021.                             new copmsg[250];
  3022.                             SendClientMessage(playerid, ERROR, "Your attempt to rob ZIP failed!");
  3023.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3024.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  3025.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob ZIP.", name);
  3026.                             SendRadioMessageToCops(copmsg);
  3027.                             ZipRecentlyRobbed = 100;
  3028.                             return true;
  3029.                         }
  3030.                     }
  3031.                     else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "ZIP has been robbed recently!");
  3032.             }
  3033.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3034.         }
  3035.         else return SendClientMessage(playerid, ERROR, "You're not at ZIP.");
  3036.     return false;
  3037.     }
  3038.     if(text[0] == '1' && CSKINU[playerid] == 1)
  3039.     {
  3040.     if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3041.     {
  3042.     if(gTeam[playerid] == CIVILIAN)
  3043.     {
  3044.     SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  3045.     SetPlayerFacingAngle(playerid, 94.0821);
  3046.     SetPlayerSkin(playerid,7);
  3047.     HideDraw(playerid);
  3048.     TogglePlayerControllable(playerid,0);
  3049.     SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  3050.     SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  3051.     SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  3052.     CSKINU[playerid] = 2;
  3053.     }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  3054.     }else SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  3055.     return false;
  3056.     }
  3057.     if(text[0] == '2' && CSKINU[playerid] == 1)
  3058.     {
  3059.     if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3060.         {
  3061.             CSKINU[playerid] = 0;
  3062.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  3063.             {
  3064.                     if(UrbanRecentlyRobbed == 0)
  3065.                     {
  3066.                         new chances = random(500);
  3067.                         HideDraw(playerid);
  3068.                         CSKIN[playerid] = 0;
  3069.                         if(chances >= 0 && chances <= 400)
  3070.                         {
  3071.                             new string[250];
  3072.                             RobUrban[playerid] = 20;
  3073.                             UrbanRecentlyRobbed = 150;
  3074.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at SubUrban!", name, playerid);
  3075.                             Announce(string);
  3076.                             return true;
  3077.                         }
  3078.                         else if(chances >= 401 && chances <= 500)
  3079.                         {
  3080.                             new copmsg[250];
  3081.                             SendClientMessage(playerid, ERROR, "Your attempt to rob SubUrban failed!");
  3082.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3083.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3084.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob SubUrban.", name);
  3085.                             SendRadioMessageToCops(copmsg);
  3086.                             UrbanRecentlyRobbed = 100;
  3087.                             return true;
  3088.                         }
  3089.                     }
  3090.                     else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "SubUrban has been robbed recently!");
  3091.             }
  3092.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3093.         }
  3094.         else return SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  3095.     return false;
  3096.     }
  3097.     if(text[0] == '2' && CSKIN[playerid] == 1)
  3098.     {
  3099.     if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  3100.         {
  3101.             CSKIN[playerid] = 0;
  3102.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3103.             {
  3104.                     if(BincoRecentlyRobbed == 0)
  3105.                     {
  3106.                         new chances = random(500);
  3107.                         HideDraw(playerid);
  3108.                         CSKIN[playerid] = 0;
  3109.                         if(chances >= 0 && chances <= 400)
  3110.                         {
  3111.                             new string[250];
  3112.                             RobBinco[playerid] = 20;
  3113.                             BincoRecentlyRobbed = 150;
  3114.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Binco!", name, playerid);
  3115.                             Announce(string);
  3116.                             return true;
  3117.                         }
  3118.                         else if(chances >= 401 && chances <= 500)
  3119.                         {
  3120.                             new copmsg[250];
  3121.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Binco failed!");
  3122.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3123.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3124.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Binco.", name);
  3125.                             SendRadioMessageToCops(copmsg);
  3126.                             BincoRecentlyRobbed = 100;
  3127.                             return true;
  3128.                         }
  3129.                     }
  3130.                     else if(BincoRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Binco has been robbed recently!");
  3131.             }
  3132.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3133.         }
  3134.         else return SendClientMessage(playerid, ERROR, "You're not at Binco.");
  3135.     return false;
  3136.     }
  3137.     if(text[0] == '2' && SelectBM[playerid] == 1)
  3138.     {
  3139.     MissionIni2(playerid);
  3140.     HideDraw(playerid);
  3141.     SelectBM[playerid] = 0;
  3142.     InBusMission[playerid] = 2;
  3143.     currentcheckpoint[playerid] = 0;
  3144.     SetPlayerRaceCheckpoint(playerid,0,bussfcps[0][0],bussfcps[0][1],bussfcps[0][2],bussfcps[1][0],bussfcps[1][1],bussfcps[1][2],7);
  3145.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  3146.     return false;
  3147.     }
  3148.     if(text[0] == '3' && SelectBM[playerid] == 1)
  3149.     {
  3150.     MissionIni2(playerid);
  3151.     HideDraw(playerid);
  3152.     InBusMission[playerid] = 3;
  3153.     SelectBM[playerid] = 0;
  3154.     currentcheckpoint[playerid] = 0;
  3155.     SetPlayerRaceCheckpoint(playerid,0,buslvcps[0][0],buslvcps[0][1],buslvcps[0][2],buslvcps[1][0],buslvcps[1][1],buslvcps[1][2],7);
  3156.     SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  3157.     return false;
  3158.     }
  3159.     if(text[0] == '2' && CHALLBOX[playerid] == 1)
  3160.     {
  3161.         HideDraw(playerid);
  3162.         CHALLBOX[playerid] = 0;
  3163.         if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3164.                 {
  3165.                     if(HallRecentlyRobbed == 0)
  3166.                     {
  3167.                         new chances = random(200);
  3168.                         if(chances >= 0 && chances <= 150)
  3169.                         {
  3170.                             new string[250];
  3171.                             RobHall[playerid] = 20;
  3172.                             TogglePlayerControllable(playerid, true);
  3173.                             HallRecentlyRobbed = 150;
  3174.                             if(CH[playerid] == 1)
  3175.                             {
  3176.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Las Venturas City Hall!", rname, playerid);
  3177.                             Announce(string);
  3178.                             }
  3179.                             if(CH[playerid] == 2)
  3180.                             {
  3181.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Los Santos City Hall!", rname, playerid);
  3182.                             Announce(string);
  3183.                             }
  3184.                         }
  3185.                         else
  3186.                         if(chances >= 151 && chances <= 200)
  3187.                         {
  3188.                             new copmsg[250];
  3189.                             GetPlayerName(playerid, name, sizeof(name));
  3190.                             SendClientMessage(playerid, ERROR, "Your attempt to rob the City Hall failed!");
  3191.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the hall.");
  3192.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3193.                             if(CH[playerid] == 1)
  3194.                             {
  3195.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Las Venturas City Hall.", name);
  3196.                             SendRadioMessageToCops(copmsg);
  3197.                             }
  3198.                             if(CH[playerid] == 2)
  3199.                             {
  3200.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Los Santos City Hall.", name);
  3201.                             SendRadioMessageToCops(copmsg);
  3202.                             }
  3203.                             HallRecentlyRobbed = 100;
  3204.                             TogglePlayerControllable(playerid, true);
  3205.                         }
  3206.                     }
  3207.                     else if(HallRecentlyRobbed > 0)
  3208.                     {
  3209.                         SendClientMessage(playerid, ERROR, "The City Hall has been robbed recently!");
  3210.                         TogglePlayerControllable(playerid, true);
  3211.                     }
  3212.                 } else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  3213.         return false;
  3214.     }
  3215.     if(text[0] == '1' && CHALLBOX[playerid] == 1)
  3216.     {
  3217.         new string[250];
  3218.         new string2[250];
  3219.         CHALLBOX[playerid] = 0;
  3220.         HideDraw(playerid);
  3221.         TextDrawShowForPlayer(playerid, COPBOX);
  3222.         TextDrawShowForPlayer(playerid, text19);
  3223.         TextDrawShowForPlayer(playerid, text20);
  3224.         format(string, sizeof(string),"~r~1.~w~Type F4.~n~~r~2.~w~Kill you self.~n~~r~3.~w~Select your class.");
  3225.         format(string2, sizeof(string2),"~n~~n~~n~~n~~w~Use ~r~LMB ~w~To Hide Thes~n~~w~Boxes");
  3226.         TextDrawSetString(text19, string);
  3227.         TextDrawSetString(text20, string2);
  3228.         TogglePlayerControllable(playerid, true);
  3229.         return 0;
  3230.     }
  3231.     if(IsPlayerLogged[playerid] == 0)
  3232.     {
  3233.         SendClientMessage(playerid, ERROR, "Login before talking!");
  3234.         return false;
  3235.     }
  3236.     else if(IsPlayerLogged[playerid] == 1) return true;
  3237.     return true;
  3238. }
  3239.  
  3240. public OnPlayerCommandText(playerid, cmdtext[])
  3241. {
  3242.     new cmd[256], idx, tmp[256], name[MAX_PLAYER_NAME], file[256];
  3243.     new giveplayerid;
  3244.     GetPlayerName(playerid, name, sizeof(name));
  3245.     format(file, sizeof(file), "%s.runix", name);
  3246.     cmd = strtok(cmdtext, idx);
  3247.     new playermoney;
  3248.     new sendername[MAX_PLAYER_NAME];
  3249.     new giveplayer[MAX_PLAYER_NAME];
  3250.     new moneys;
  3251.  
  3252.     dcmd(taze, 4, cmdtext);
  3253.     dcmd(i, 1, cmdtext);
  3254.     dcmd(lottohelp,9,cmdtext);
  3255.     dcmd(buyticket,9,cmdtext);
  3256.     dcmd(mylotto,7,cmdtext);
  3257.     dcmd(lottotest,9,cmdtext);
  3258.     dcmd(refuel,6,cmdtext);
  3259.     dcmd(giveweapon,10,cmdtext);
  3260.     dcmd(car,3,cmdtext);
  3261.     dcmd(hit, 3, cmdtext);
  3262.    
  3263.    
  3264.     dcmd(kick, 4, cmdtext);
  3265.     dcmd(ban, 3, cmdtext);
  3266.     dcmd(freeze, 6, cmdtext);
  3267.     dcmd(unfreeze, 8, cmdtext);
  3268.     dcmd(akill, 5, cmdtext);
  3269.     dcmd(mute, 4, cmdtext);
  3270.     dcmd(unmute, 6, cmdtext);
  3271.     dcmd(admins, 6, cmdtext);
  3272.     dcmd(setlevel, 8, cmdtext);
  3273.     dcmd(setscore, 8, cmdtext);
  3274.     dcmd(jetpack, 7, cmdtext);
  3275.     dcmd(slap, 4, cmdtext);
  3276.     dcmd(announce, 8, cmdtext);
  3277.     dcmd(spec, 4, cmdtext);
  3278.     dcmd(specoff, 7, cmdtext);
  3279.     dcmd(agivemoney, 10, cmdtext);
  3280.     dcmd(goto, 4, cmdtext);
  3281.     dcmd(gethere, 7, cmdtext);
  3282.     dcmd(ahelp, 5, cmdtext);
  3283.     dcmd(report, 6, cmdtext);
  3284.     dcmd(sethp, 5, cmdtext);
  3285.  
  3286.     if(strcmp(cmd, "/register", true) == 0)
  3287.     {
  3288.         tmp = strtok(cmdtext, idx);
  3289.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /register [PASSWORD]");
  3290.         format(file,sizeof(file),"%s.runix", name);
  3291.         if(!fexist(file))
  3292.         {
  3293.             dini_Create(file);
  3294.             dini_IntSet(file, "Password", udb_hash(tmp));
  3295.             dini_IntSet(file, "Money", 2500);
  3296.             dini_IntSet(file, "Score", 1);
  3297.             dini_IntSet(file, "Bank", 1000);
  3298.             dini_IntSet(file, "RobSkill", 1);
  3299.             dini_IntSet(file, "TerSkill", 1);
  3300.             dini_IntSet(file, "Admin", 0);
  3301.             dini_IntSet(file, "Warnings", 0);
  3302.             dini_IntSet(file, "WantedLevel", 0);
  3303.             dini_IntSet(file, "Jail", 0);
  3304.             dini_IntSet(file, "RentalOwner", 0);
  3305.             dini_IntSet(file, "Drugs", 0);
  3306.             dini_IntSet(file, "C4", 0);
  3307.             dini_IntSet(file, "Skin", -1);
  3308.             SendClientMessage(playerid, GREY, "Thanks for registering!");
  3309.             SendClientMessage(playerid, GREY, "You may now login.");
  3310.             SendClientMessage(playerid, GREY, "To do so, type: /login [PASSWORD]");
  3311.             GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
  3312.         }
  3313.         else SendClientMessage(playerid, ERROR, "This account is already registered in our system. Use: /login [PASSWORD]");
  3314.         return true;
  3315.     }
  3316.  
  3317.     if(strcmp(cmd, "/login", true) == 0)
  3318.     {
  3319.         new tmp2[256];
  3320.         tmp = strtok(cmdtext, idx);
  3321.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /login [PASSWORD]");
  3322.         else
  3323.         {
  3324.             if(IsPlayerLogged[playerid] == 1) return SendClientMessage(playerid, ERROR, "You are already logged in.");
  3325.             else
  3326.             {
  3327.                 if(fexist(file))
  3328.                 {
  3329.                     tmp2 = dini_Get(file, "Password");
  3330.                     if(udb_hash(tmp) != strval(tmp2)) return SendClientMessage(playerid, ERROR, "Wrong password.");
  3331.                     else
  3332.                     {
  3333.                         IsPlayerLogged[playerid] = 1;
  3334.                         SetPlayerMoney(playerid, dini_Int(file, "Money"));
  3335.                         SetPlayerScore(playerid, dini_Int(file, "Score"));
  3336.                         PlayerSkin[playerid] = dini_Int(file,"Skin");
  3337.                         SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
  3338.                         SendClientMessage(playerid, GREY, "You are now logged in. Your status will be saved on your logout.");
  3339.                         GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
  3340.                     }
  3341.                 }
  3342.                 else return SendClientMessage(playerid, ERROR, "This username was not found on our database. Use: /register [PASSWORD]");
  3343.             }
  3344.         }
  3345.         return true;
  3346.     }
  3347.  
  3348.     if(strcmp(cmd, "/deposit", true) == 0)
  3349.     {
  3350.         tmp = strtok(cmdtext, idx);
  3351.         if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  3352.         {
  3353.             if(BankRecentlyUsed[playerid] == 0)
  3354.             {
  3355.                 if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /deposit [AMOUNT]");
  3356.                 else
  3357.                 {
  3358.                     if(strval(tmp) == 0) return SendClientMessage(playerid, ERROR, "The amount must be higher than 1.");
  3359.                     else
  3360.                     {
  3361.                         if(strval(tmp) > GetPlayerMoney(playerid)) return SendClientMessage(playerid, ERROR, "You do not have this amount.");
  3362.                         else
  3363.                         {
  3364.                             new string[150], string2[150];
  3365.                             SetPlayerBankCash(playerid, GetPlayerBankCash(playerid)+strval(tmp));
  3366.                             SendClientMessage(playerid, GREY, "|_| Bank |_|");
  3367.                             format(string, sizeof(string), "Amount deposited: $%d", strval(tmp));
  3368.                             format(string2, sizeof(string2), "Current state: $%d", GetPlayerBankCash(playerid));
  3369.                             SendClientMessage(playerid, WHITE, string);
  3370.                             SendClientMessage(playerid, WHITE, string2);
  3371.                             GivePlayerMoney(playerid, -strval(tmp));
  3372.                             printf("%s[ID:%d] deposited $%d. Location: Bank", name, playerid, strval(tmp));
  3373.                             return true;
  3374.                         }
  3375.                     }
  3376.                 }
  3377.             }
  3378.             else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3379.         }
  3380.         else return SendClientMessage(playerid, ERROR, "You must be on the Bank to use this command!");
  3381.     }
  3382.  
  3383.     if(strcmp(cmd, "/withdraw", true) == 0)
  3384.     {
  3385.     tmp = strtok(cmdtext, idx);
  3386. if(CPS_IsPlayerInCheckpoint(playerid, cpbank) || CPS_IsPlayerInCheckpoint(playerid, cpatm1) || CPS_IsPlayerInCheckpoint(playerid, cpatm2) || CPS_IsPlayerInCheckpoint(playerid, cpatm3) || CPS_IsPlayerInCheckpoint(playerid, cpatm4) || CPS_IsPlayerInCheckpoint(playerid, cpatm5) || CPS_IsPlayerInCheckpoint(playerid, cpatm6) || CPS_IsPlayerInCheckpoint(playerid, cpatm7) || CPS_IsPlayerInCheckpoint(playerid, cpatm9) || CPS_IsPlayerInCheckpoint(playerid, cpatm10) || CPS_IsPlayerInCheckpoint(playerid, cpatm11))
  3387.         {
  3388.             if(BankRecentlyUsed[playerid] == 0)
  3389.             {
  3390.                 if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /withdraw [AMOUNT]");
  3391.                 else
  3392.                 {
  3393.                     if(strval(tmp) == 0) return SendClientMessage(playerid, ERROR, "The amount must be higher than 1.");
  3394.                     else
  3395.                     {
  3396.                         if(GetPlayerBankCash(playerid) < strval(tmp)) return SendClientMessage(playerid, ERROR, "You do not have this amount on your Bank Account.");
  3397.                         else
  3398.                         {
  3399.                             new string[150], string2[150];
  3400.                             SetPlayerBankCash(playerid, GetPlayerBankCash(playerid)-strval(tmp));
  3401.                             SendClientMessage(playerid, GREY, "|_|  Bank |_|");
  3402.                             format(string, sizeof(string), "Amount withdrawn: $%d", strval(tmp));
  3403.                             format(string2, sizeof(string2), "Current state: $%d", GetPlayerBankCash(playerid));
  3404.                             SendClientMessage(playerid, WHITE, string);
  3405.                             SendClientMessage(playerid, WHITE, string2);
  3406.                             GivePlayerMoney(playerid, strval(tmp));
  3407.                             printf("%s[ID:%d] withdrawn $%d. Location: Bank", name, playerid, strval(tmp));
  3408.                             return true;
  3409.                         }
  3410.                     }
  3411.                 }
  3412.             }
  3413.             else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3414.         }
  3415.         else return SendClientMessage(playerid, ERROR, "You must be on the Bank or in an ATM to use this command!");
  3416.     }
  3417.  
  3418.     if(strcmp(cmdtext, "/state", true) == 0)
  3419.     {
  3420. if(CPS_IsPlayerInCheckpoint(playerid, cpbank) || CPS_IsPlayerInCheckpoint(playerid, cpatm1) || CPS_IsPlayerInCheckpoint(playerid, cpatm2) || CPS_IsPlayerInCheckpoint(playerid, cpatm3) || CPS_IsPlayerInCheckpoint(playerid, cpatm4) || CPS_IsPlayerInCheckpoint(playerid, cpatm5) || CPS_IsPlayerInCheckpoint(playerid, cpatm6) || CPS_IsPlayerInCheckpoint(playerid, cpatm7) || CPS_IsPlayerInCheckpoint(playerid, cpatm9) || CPS_IsPlayerInCheckpoint(playerid, cpatm10) || CPS_IsPlayerInCheckpoint(playerid, cpatm11))
  3421.         {
  3422.             if(BankRecentlyUsed[playerid] == 0)
  3423.             {
  3424.                 new string[150];
  3425.                 SendClientMessage(playerid, GREY, "|_|  Bank |_|");
  3426.                 format(string, sizeof(string), "You currently have $%d on your Bank Account.", GetPlayerBankCash(playerid));
  3427.                 SendClientMessage(playerid, WHITE, string);
  3428.                 return true;
  3429.             }
  3430.             else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3431.         }
  3432.         else return SendClientMessage(playerid, ERROR, "You must be on the Bank or in an ATM to use this command!");
  3433.     }
  3434.  
  3435.     if(strcmp(cmd, "/rob", true) == 0)
  3436.     {
  3437.         tmp = strtok(cmdtext, idx);
  3438.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /rob [ID]");
  3439.         else
  3440.         {
  3441.             if(IsPlayerSpawned(playerid))
  3442.             {
  3443.                 if(gTeam[playerid] == CIVILIAN)
  3444.                 {
  3445.                     if(strval(tmp) != playerid)
  3446.                     {
  3447.                         if(!IsPlayerInAnyVehicle(playerid))
  3448.                         {
  3449.                             if(!IsPlayerInAnyVehicle(strval(tmp)))
  3450.                             {
  3451.                                 if(IsPlayerConnected(strval(tmp)))
  3452.                                 {
  3453.                                         if(GetPlayerMoney(strval(tmp) > 0))
  3454.                                         {
  3455.                                             if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 8)
  3456.                                             {
  3457.                                                 if(RecentlyRobbed[strval(tmp)] == 0)
  3458.                                                 {
  3459.                                                 if(GetPlayerMoney(strval(tmp)) > 4999)
  3460.                                                 {
  3461.                                                     new string[250], string2[250], string3[250], robbedcash, robbedname[MAX_PLAYER_NAME], robbername[MAX_PLAYER_NAME];
  3462.                                                     robbedcash = random(5000);
  3463.                                                     GetPlayerName(playerid, robbername, sizeof(robbername));
  3464.                                                     GetPlayerName(strval(tmp), robbedname, sizeof(robbedname));
  3465.                                                     format(string, sizeof(string), "You have robbed $%d from %s[ID:%d]", robbedcash, robbedname, strval(tmp));
  3466.                                                     SendClientMessage(playerid, SERVER_COLOR, string);
  3467.                                                     format(string2, sizeof(string2), "%s[ID:%d] has robbed $%d from you!", robbername, playerid, robbedcash);
  3468.                                                     SendClientMessage(strval(tmp), RED, string2);
  3469.                                                     format(string3, sizeof(string3), "[HQ] %s has robbed $%d from %s.", robbername, robbedname, robbedcash);
  3470.                                                     SendRadioMessageToCops(string3);
  3471.                                                     GivePlayerMoney(playerid, robbedcash);
  3472.                                                     GivePlayerMoney(strval(tmp), -robbedcash);
  3473.                                                     RecentlyRobbed[strval(tmp)] = 60;
  3474.                                                     GivePlayerScore(playerid, 1);
  3475.                                                     if(gTeam[strval(tmp)] == CIVILIAN)
  3476.                                                     {
  3477.                                                     SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 2);
  3478.                                                     }
  3479.                                                     if(gTeam[strval(tmp)] == COP || gTeam[strval(tmp)] == SWAT || gTeam[strval(tmp)] == FBI || gTeam[strval(tmp)] == ARMY || gTeam[strval(tmp)] == Medic)
  3480.                                                     {
  3481.                                                     SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  3482.                                                     }
  3483.                                                     SetPlayerRobbingSkill(playerid, GetPlayerRobbingSkill(playerid)+1);
  3484.                                                     return true;
  3485.                                                 }
  3486.                                                 else if(GetPlayerMoney(strval(tmp)) < 4999)
  3487.                                                 {
  3488.                                                     new string[250], recentlyrobber[MAX_PLAYER_NAME];
  3489.                                                     GetPlayerName(strval(tmp), recentlyrobber, sizeof(recentlyrobber));
  3490.                                                     format(string, sizeof(string), "%s[ID:%d] don't have enought money.", recentlyrobber, strval(tmp));
  3491.                                                     return SendClientMessage(playerid, ERROR, string);
  3492.                                                 }
  3493.                                                 }
  3494.                                                 else if(RecentlyRobbed[strval(tmp)] > 0)
  3495.                                                 {
  3496.                                                     new string[250], recentlyrobber[MAX_PLAYER_NAME];
  3497.                                                     GetPlayerName(strval(tmp), recentlyrobber, sizeof(recentlyrobber));
  3498.                                                     format(string, sizeof(string), "%s[ID:%d] has been robbed recently. Try again later.", recentlyrobber, strval(tmp));
  3499.                                                     return SendClientMessage(playerid, ERROR, string);
  3500.                                                 }
  3501.                                             else
  3502.                                             {
  3503.                                                 new string[250], faraway[MAX_PLAYER_NAME];
  3504.                                                 GetPlayerName(strval(tmp), faraway, sizeof(faraway));
  3505.                                                 format(string, sizeof(string), "%s[ID:%d] is too far away.", faraway, strval(tmp));
  3506.                                                 return SendClientMessage(playerid, ERROR, string);
  3507.                                             }
  3508.                                         }
  3509.                                         else if(GetPlayerMoney(strval(tmp)) == 0)
  3510.                                         {
  3511.                                             new string[250], poor[MAX_PLAYER_NAME];
  3512.                                             GetPlayerName(strval(tmp), poor, sizeof(poor));
  3513.                                             format(string, sizeof(string), "%s[ID:%d] does not have any money.", poor, strval(tmp));
  3514.                                             return SendClientMessage(playerid, ERROR, string);
  3515.                                         }
  3516.                                     }
  3517.                                 }
  3518.                                 else if(!IsPlayerConnected(strval(tmp)))
  3519.                                 {
  3520.                                     new string[250];
  3521.                                     format(string, sizeof(string), "ID %d is not connected.", strval(tmp));
  3522.                                     return SendClientMessage(playerid, ERROR, string);
  3523.                                 }
  3524.                             }
  3525.                             else if(IsPlayerInAnyVehicle(strval(tmp)))
  3526.                             {
  3527.                                 new string[250], invehicle[MAX_PLAYER_NAME];
  3528.                                 GetPlayerName(strval(tmp), invehicle, sizeof(invehicle));
  3529.                                 format(string, sizeof(string), "%s[ID:%d] is in a vehicle. You cannot rob him.", invehicle, strval(tmp));
  3530.                                 return SendClientMessage(playerid, ERROR, string);
  3531.                             }
  3532.                         }
  3533.                         else if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ERROR, "You cannot rob anyone from inside a vehicle.");
  3534.                     }
  3535.                     else return SendClientMessage(playerid, ERROR, "You cannot rob yourself.");
  3536.                 }
  3537.                 else return SendClientMessage(playerid, ERROR, "Only CIVILIANS can use this command!");
  3538.             }
  3539.         }
  3540.         return 1;
  3541.     }
  3542.    
  3543.    
  3544.     if(strcmp(cmd, "/heal", true) == 0)
  3545.     {
  3546.         tmp = strtok(cmdtext, idx);
  3547.         new Float:health;
  3548.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /heal [ID]");
  3549.         else
  3550.         {
  3551.             GetPlayerHealth(strlen(tmp), health);
  3552.             if(IsPlayerSpawned(playerid))
  3553.             {
  3554.                 if(gTeam[playerid] == Medic)
  3555.                 {
  3556.                     if(strval(tmp) != playerid)
  3557.                     {
  3558.                         if(!IsPlayerInAnyVehicle(playerid))
  3559.                         {
  3560.                             if(!IsPlayerInAnyVehicle(strval(tmp)))
  3561.                             {
  3562.                                 if(IsPlayerConnected(strval(tmp)))
  3563.                                 {
  3564.                                         if(GetPlayerMoney(strval(tmp) > 499))
  3565.                                         {
  3566.                                             if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 3)
  3567.                                             {
  3568.                                                if(health < 100)
  3569.                                                {
  3570.                                                     new string[250], string2[250], healedname[MAX_PLAYER_NAME], medicname[MAX_PLAYER_NAME];
  3571.                                                     GetPlayerName(playerid, medicname, sizeof(medicname));
  3572.                                                     GetPlayerName(strval(tmp), healedname, sizeof(healedname));
  3573.                                                     format(string, sizeof(string), "You have healed from %s[ID:%d]! You give him $ 500!", medicname, playerid);
  3574.                                                     SendClientMessage(strval(tmp), SERVER_COLOR, string);
  3575.                                                     format(string2, sizeof(string2), "You heal %s[ID:%d]! You received $ 500", healedname, strval(tmp));
  3576.                                                     SendClientMessage(playerid, SERVER_COLOR, string2);
  3577.                                                     GivePlayerMoney(playerid, 500);
  3578.                                                     GivePlayerMoney(strval(tmp), -500);
  3579.                                                     SetPlayerHealth(strval(tmp), 100);
  3580.                                                     GivePlayerScore(playerid, 1);
  3581.                                                 }
  3582.                                                 else if(health == 100) return SendClientMessage(playerid, ERROR, "You seem OK to me.");
  3583.                                             }
  3584.                                             else
  3585.                                             {
  3586.                                                 new string[250], faraway[MAX_PLAYER_NAME];
  3587.                                                 GetPlayerName(strval(tmp), faraway, sizeof(faraway));
  3588.                                                 format(string, sizeof(string), "%s[ID:%d] is too far away.", faraway, strval(tmp));
  3589.                                                 return SendClientMessage(playerid, ERROR, string);
  3590.                                             }
  3591.                                         }
  3592.                                         else if(GetPlayerMoney(strval(tmp)) == 0)
  3593.                                         {
  3594.                                             new string[250], poor[MAX_PLAYER_NAME];
  3595.                                             GetPlayerName(strval(tmp), poor, sizeof(poor));
  3596.                                             format(string, sizeof(string), "%s[ID:%d] does not have any money.", poor, strval(tmp));
  3597.                                             return SendClientMessage(playerid, ERROR, string);
  3598.                                         }
  3599.                                     }
  3600.                                 }
  3601.                                 else if(!IsPlayerConnected(strval(tmp)))
  3602.                                 {
  3603.                                     new string[250];
  3604.                                     format(string, sizeof(string), "ID %d is not connected.", strval(tmp));
  3605.                                     return SendClientMessage(playerid, ERROR, string);
  3606.                                 }
  3607.                             }
  3608.                             else if(IsPlayerInAnyVehicle(strval(tmp)))
  3609.                             {
  3610.                                 new string[250], invehicle[MAX_PLAYER_NAME];
  3611.                                 GetPlayerName(strval(tmp), invehicle, sizeof(invehicle));
  3612.                                 format(string, sizeof(string), "%s[ID:%d] is in a vehicle. You cannot heal him.", invehicle, strval(tmp));
  3613.                                 return SendClientMessage(playerid, ERROR, string);
  3614.                             }
  3615.                         }
  3616.                         else if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ERROR, "You cannot heal anyone from inside a vehicle.");
  3617.                     }
  3618.                     else return SendClientMessage(playerid, ERROR, "You cannot heal yourself.");
  3619.                 }
  3620.                 else return SendClientMessage(playerid, ERROR, "Only Medics can use this command!");
  3621.             }
  3622.     return 1;
  3623.     }
  3624.     if(strcmp(cmd,"/animlist",true)==0)
  3625.     {
  3626.         HideDraw(playerid);
  3627.         TextDrawShowForPlayer(playerid, CMDBOX);
  3628.         TextDrawShowForPlayer(playerid, text25);
  3629.         TextDrawShowForPlayer(playerid, text26);
  3630.         TextDrawShowForPlayer(playerid, text27);
  3631.     return 1;
  3632.     }
  3633.     if(strcmp(cmd, "/arrest", true) == 0 || strcmp(cmd, "/ar", true) == 0)
  3634.     {
  3635.     new string[250];
  3636.     if(IsSpawned[playerid] == 0)
  3637.     {
  3638.     SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  3639.     return 1;
  3640.     }
  3641.     if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI)
  3642.     {
  3643.     SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement officer ");
  3644.     return 1;
  3645.     }
  3646.     tmp = strtok(cmdtext, idx);
  3647.     if(!strlen(tmp))
  3648.     {
  3649.     SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id)");
  3650.     return 1;
  3651.     }
  3652.     giveplayerid = strval(tmp);
  3653.     if(!IsNumeric(tmp))
  3654.     {
  3655.     SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id) ID Must be a number");
  3656.     return 1;
  3657.     }
  3658.     if(!IsPlayerConnected(giveplayerid))
  3659.     {
  3660.     format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  3661.     SendClientMessage(playerid, COLOR_ERROR, string);
  3662.     return 1;
  3663.     }
  3664.     new oname[24];
  3665.     new pname[24];
  3666.     GetPlayerName(playerid,oname, 24);
  3667.     GetPlayerName(giveplayerid, pname, 24);
  3668.     if(GetPlayerWantedLevel(giveplayerid) <= 3)
  3669.     {
  3670.     format(string, sizeof(string), "%s(%d) Does not have a warrant. You cannot arrest a player without a warrant",pname,giveplayerid);
  3671.     SendClientMessage(playerid,COLOR_ERROR,string);
  3672.     return 1;
  3673.     }
  3674.     if(IsPlayerInAnyVehicle(playerid))
  3675.     {
  3676.     SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest a suspect if you are in a car");
  3677.     return 1;
  3678.     }
  3679.     if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10)
  3680.     {
  3681.     format(string, sizeof(string), "%s(%d) Is too far away. You cannot arrest that player",pname,giveplayerid);
  3682.     SendClientMessage(playerid,COLOR_ERROR,string);
  3683.     return 1;
  3684.     }
  3685.     if(IsSpawned[giveplayerid] == 0)
  3686.     {
  3687.     format(string, sizeof(string), "%s(%d) Is dead. You cannot arrest a dead body",pname,giveplayerid);
  3688.     SendClientMessage(playerid,COLOR_ERROR,string);
  3689.     return 1;
  3690.     }
  3691.     SetPlayerVirtualWorld(giveplayerid,0);
  3692.     if(GetPlayerWantedLevel(playerid) >=1)
  3693.     {
  3694.     SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command if you are wanted by the police");
  3695.     return 1;
  3696.     }
  3697.     if(giveplayerid == playerid)
  3698.     {
  3699.     SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest yourself");
  3700.     return 1;
  3701.     }
  3702.     new spawn = random(sizeof(PrisonSpawn)), string2[250], Float:health, copname[MAX_PLAYER_NAME], arrested[MAX_PLAYER_NAME];
  3703.     GetPlayerName(playerid, copname, sizeof(copname));
  3704.     GetPlayerName(strval(tmp), arrested, sizeof(arrested));
  3705.     GetPlayerHealth(strval(tmp), health);
  3706.     SendClientMessage(strval(tmp), GREY, "|_| San Andreas Police Dept. |_|");
  3707.     format(string, sizeof(string), "Officer %s has arrested you.", copname);
  3708.     SendClientMessage(strval(tmp), WHITE, string);
  3709.     ResetPlayerWeapons(strval(tmp));
  3710.     SetPlayerPos(strval(tmp), PrisonSpawn[spawn][0], PrisonSpawn[spawn][1], PrisonSpawn[spawn][2]);
  3711.     SetPlayerFacingAngle(strval(tmp), PrisonSpawn[spawn][3]);
  3712.     SetCameraBehindPlayer(strval(tmp));
  3713.     if(GetPlayerWantedLevel(strval(tmp)) >= 4 && GetPlayerWantedLevel(strval(tmp)) <= 5)
  3714.     {
  3715.     PrisonTime[strval(tmp)] = 60;
  3716.     GivePlayerMoney(playerid,25000);
  3717.     GivePlayerScore(playerid,1);
  3718.     }
  3719.     else if(GetPlayerWantedLevel(strval(tmp)) >= 6 && GetPlayerWantedLevel(strval(tmp)) <= 8)
  3720.     {
  3721.     PrisonTime[strval(tmp)] = 120;
  3722.     GivePlayerMoney(playerid,35000);
  3723.     GivePlayerScore(playerid,1);
  3724.     }
  3725.     else if(GetPlayerWantedLevel(strval(tmp)) >= 9 && GetPlayerWantedLevel(playerid) <= 11)
  3726.     {
  3727.     PrisonTime[strval(tmp)] = 180;
  3728.     GivePlayerMoney(playerid,45000);
  3729.     GivePlayerScore(playerid,2);
  3730.     }
  3731.     else if(GetPlayerWantedLevel(strval(tmp)) >= 12 && GetPlayerWantedLevel(strval(tmp)) <= 14)
  3732.     {
  3733.     PrisonTime[strval(tmp)] = 240;
  3734.     GivePlayerMoney(playerid,55000);
  3735.     GivePlayerScore(playerid,2);
  3736.     }
  3737.     else if(GetPlayerWantedLevel(strval(tmp)) >= 15)
  3738.     {
  3739.     PrisonTime[strval(tmp)] = 300;
  3740.     GivePlayerMoney(playerid,65000);
  3741.     GivePlayerScore(playerid,3);
  3742.     }
  3743.     SetPlayerWantedLevel(strval(tmp), 0);
  3744.     SetPlayerInterior(strval(tmp),3);
  3745.     SetPlayerHealth(strval(tmp),99999);
  3746.     TogglePlayerControllable(strval(tmp), true);
  3747.     SetPlayerJailed(strval(tmp), true);
  3748.     format(string2, sizeof(string2), "Officer %s[ID:%d] arrested %s[ID:%d].", copname, playerid, arrested, strval(tmp));
  3749.     Announce(string2);
  3750.     if(health <= 90)
  3751.     {
  3752.     SendClientMessage(strval(tmp), GREY, "|_| San Andreas Police Dept. |_|");
  3753.     SendClientMessage(strval(tmp), WHITE, "SAPD has given you some food.");
  3754.     SetPlayerHealth(strval(tmp), health+10);
  3755.     ApplyAnimation(strval(tmp), "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  3756.     }
  3757.     return 1;
  3758.     }
  3759.    
  3760.     if(strcmp(cmd, "/givecash", true) == 0) {
  3761.         tmp = strtok(cmdtext, idx);
  3762.         new string[256];
  3763.         if(!strlen(tmp)) {
  3764.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
  3765.             return 1;
  3766.         }
  3767.         giveplayerid = strval(tmp);
  3768.  
  3769.         tmp = strtok(cmdtext, idx);
  3770.         if(!strlen(tmp)) {
  3771.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
  3772.             return 1;
  3773.         }
  3774.         moneys = strval(tmp);
  3775.  
  3776.         //printf("givecash_command: %d %d",giveplayerid,moneys);
  3777.  
  3778.  
  3779.         if (IsPlayerConnected(giveplayerid)) {
  3780.             GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3781.             GetPlayerName(playerid, sendername, sizeof(sendername));
  3782.             playermoney = GetPlayerMoney(playerid);
  3783.             if (moneys > 0 && playermoney >= moneys) {
  3784.                 GivePlayerMoney(playerid, (0 - moneys));
  3785.                 GivePlayerMoney(giveplayerid, moneys);
  3786.                 format(string, sizeof(string), "You have sent %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
  3787.                 SendClientMessage(playerid, COLOR_YELLOW, string);
  3788.                 format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
  3789.                 SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  3790.                 printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
  3791.             }
  3792.             else {
  3793.                 SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
  3794.             }
  3795.         }
  3796.         else {
  3797.                 format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3798.                 SendClientMessage(playerid, COLOR_YELLOW, string);
  3799.             }
  3800.         return 1;
  3801.     }
  3802.  
  3803.     if(strcmp(cmd, "/ticket", true) == 0 || strcmp(cmd, "/tk", true) == 0)
  3804.     {
  3805.     new string[128];
  3806.     if(IsSpawned[playerid] == 0)
  3807.     {
  3808.     SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  3809.     return 1;
  3810.     }
  3811.     if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI)
  3812.     {
  3813.     SendClientMessage(playerid,COLOR_ERROR,"You are not Law Enforcement");
  3814.     return 1;
  3815.     }
  3816.     tmp = strtok(cmdtext, idx);
  3817.     if(!strlen(tmp)) {
  3818.     SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tk (id)");
  3819.     return 1;
  3820.     }
  3821.     if(!IsNumeric(tmp))
  3822.     {
  3823.     SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tk (id) ID Must be a number");
  3824.     return 1;
  3825.     }
  3826.     giveplayerid = strval(tmp);
  3827.     if(!IsPlayerConnected(giveplayerid))
  3828.     {
  3829.     format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  3830.     SendClientMessage(playerid, COLOR_ERROR, string);
  3831.     return 1;
  3832.     }
  3833.     new oname[24];
  3834.     new pname[24];
  3835.     GetPlayerName(playerid,oname, 24);
  3836.     GetPlayerName(giveplayerid, pname, 24);
  3837.     if(GetPlayerWantedLevel(giveplayerid) == 0)
  3838.     {
  3839.     format(string, sizeof(string), "%s(%d) Is innocent. You cannot issue a ticket!",pname,giveplayerid);
  3840.     SendClientMessage(playerid,COLOR_ERROR,string);
  3841.     return 1;
  3842.     }
  3843.  
  3844.     if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10)
  3845.     {
  3846.     format(string, sizeof(string), "%s(%d) Is too far away. You cannot issue a ticket",pname,giveplayerid);
  3847.     SendClientMessage(playerid,COLOR_ERROR,string);
  3848.     return 1;
  3849.     }
  3850.     if(GetPlayerWantedLevel(giveplayerid) == 1)
  3851.     {
  3852.     format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3853.     SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3854.     format(string, sizeof(string), "~b~Officer ~r~%s(%d)~n~~w~has give you a ticket.~n~~w~Type ~b~/pay ~w~for pay!",oname,playerid);
  3855.     GameTextForPlayer(giveplayerid, string,10000, 5);
  3856.     ticketmen[giveplayerid] = playerid;
  3857.     tkat[giveplayerid] = 1;
  3858.     SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3859.     return 1;
  3860.     }
  3861.     if(GetPlayerWantedLevel(giveplayerid) == 2)
  3862.     {
  3863.     format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3864.     SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3865.     format(string, sizeof(string), "~b~Officer ~r~%s(%d)~n~~w~has give you a ticket.~n~~w~Type ~b~/pay ~w~for pay!",oname,playerid);
  3866.     GameTextForPlayer(giveplayerid, string,10000, 5);
  3867.     ticketmen[giveplayerid] = playerid;
  3868.     tkat[giveplayerid] = 2;
  3869.     SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3870.     return 1;
  3871.     }
  3872.     if(GetPlayerWantedLevel(giveplayerid) == 3)
  3873.     {
  3874.     format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3875.     SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3876.     format(string, sizeof(string), "~b~Officer ~r~%s(%d)~n~~w~has give you a ticket.~n~~w~Type ~b~/pay ~w~for pay!",oname,playerid);
  3877.     GameTextForPlayer(giveplayerid, string,10000, 5);
  3878.     ticketmen[giveplayerid] = playerid;
  3879.     tkat[giveplayerid] = 3;
  3880.     SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3881.     }
  3882.     if(GetPlayerWantedLevel(giveplayerid) >= 4)
  3883.     {
  3884.     format(string, sizeof(string), "~r~%s(%d) ~w~Has a warrant. ~n~~w~You cannot issue a fine.~n~~w~Take the suspect into custody",pname,giveplayerid);
  3885.     GameTextForPlayer(playerid, string,10000, 5);
  3886.     }
  3887.     return 1;
  3888.     }
  3889.  
  3890.     if(strcmp(cmd, "/pay", true) == 0)
  3891.     {
  3892.         new oname[24];
  3893.         new string[128];
  3894.         GetPlayerName(playerid,oname, 24);
  3895.         if(tkat[playerid] == 0)
  3896.         {
  3897.         SendClientMessage(playerid,ERROR,"You have no tickets");
  3898.         tkat[playerid] = 0;
  3899.         }else
  3900.         if(tkat[playerid] == 1)
  3901.         {
  3902.         if(GetPlayerMoney(playerid) >= 500)
  3903.         {
  3904.         GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3905.         format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+500$ and +1score",oname,playerid);
  3906.         GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3907.         GivePlayerMoney(ticketmen[playerid],500);
  3908.         GivePlayerScore(ticketmen[playerid],1);
  3909.         GivePlayerMoney(playerid,-500);
  3910.         tkat[playerid] = 0;
  3911.         SetPlayerWantedLevel(playerid,0);
  3912.         }
  3913.         }else
  3914.         if(tkat[playerid] == 2)
  3915.         {
  3916.         if(GetPlayerMoney(playerid) >= 1500)
  3917.         {
  3918.         GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3919.         format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+1500$ and +1score",oname,playerid);
  3920.         GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3921.         GivePlayerMoney(ticketmen[playerid],1500);
  3922.         GivePlayerScore(ticketmen[playerid],1);
  3923.         GivePlayerMoney(playerid,-1500);
  3924.         tkat[playerid] = 0;
  3925.         SetPlayerWantedLevel(playerid,0);
  3926.         }
  3927.         }else
  3928.         if(tkat[playerid] == 3)
  3929.         {
  3930.         if(GetPlayerMoney(playerid) >= 2500)
  3931.         {
  3932.         GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3933.         format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+2500$ and +2score",oname,playerid);
  3934.         GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3935.         GivePlayerMoney(ticketmen[playerid],2500);
  3936.         GivePlayerScore(ticketmen[playerid],2);
  3937.         GivePlayerMoney(playerid,-2500);
  3938.         tkat[playerid] = 0;
  3939.         SetPlayerWantedLevel(playerid,0);
  3940.         }
  3941.         }else
  3942.         if(tkat[playerid] > 3)
  3943.         {
  3944.         SendClientMessage(playerid,ERROR,"You have no tickets");
  3945.         tkat[playerid] = 0;
  3946.         }
  3947.         return 1;
  3948.     }
  3949.  
  3950.     if(strcmp(cmdtext, "/robzip", true) == 0)
  3951.     {
  3952.         if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  3953.         {
  3954.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3955.             {
  3956.                     if(ZipRecentlyRobbed == 0)
  3957.                     {
  3958.                         new chances = random(500);
  3959.                         if(chances >= 0 && chances <= 400)
  3960.                         {
  3961.                             new string[250];
  3962.                             RobZip[playerid] = 20;
  3963.                             ZipRecentlyRobbed = 250;
  3964.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at ZIP!", name, playerid);
  3965.                             Announce(string);
  3966.                             return true;
  3967.                         }
  3968.                         else if(chances >= 401 && chances <= 500)
  3969.                         {
  3970.                             new copmsg[250];
  3971.                             SendClientMessage(playerid, ERROR, "Your attempt to rob ZIP failed!");
  3972.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3973.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  3974.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob ZIP.", name);
  3975.                             SendRadioMessageToCops(copmsg);
  3976.                             ZipRecentlyRobbed = 250;
  3977.                             return true;
  3978.                         }
  3979.                     }
  3980.                     else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "ZIP has been robbed recently!");
  3981.             }
  3982.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3983.         }
  3984.         else return SendClientMessage(playerid, ERROR, "You're not at ZIP.");
  3985.     }
  3986.  
  3987.     if(strcmp(cmdtext, "/roburban", true) == 0)
  3988.     {
  3989.         if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3990.         {
  3991.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3992.             {
  3993.                     if(UrbanRecentlyRobbed == 0)
  3994.                     {
  3995.                         new chances = random(500);
  3996.                         if(chances >= 0 && chances <= 400)
  3997.                         {
  3998.                             new string[250];
  3999.                             RobUrban[playerid] = 20;
  4000.                             UrbanRecentlyRobbed = 250;
  4001.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at SubUrban!", name, playerid);
  4002.                             Announce(string);
  4003.                             return true;
  4004.                         }
  4005.                         else if(chances >= 401 && chances <= 500)
  4006.                         {
  4007.                             new copmsg[250];
  4008.                             SendClientMessage(playerid, ERROR, "Your attempt to rob SubUrban failed!");
  4009.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  4010.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  4011.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob SubUrban.", name);
  4012.                             SendRadioMessageToCops(copmsg);
  4013.                             UrbanRecentlyRobbed = 250;
  4014.                             return true;
  4015.                         }
  4016.                     }
  4017.                     else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "SubUrban has been robbed recently!");
  4018.             }
  4019.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4020.         }
  4021.         else return SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  4022.     }
  4023.  
  4024.     if(strcmp(cmdtext, "/robatm", true) == 0)
  4025.     {
  4026.         if(CPS_IsPlayerInCheckpoint(playerid, cpatm1) || CPS_IsPlayerInCheckpoint(playerid, cpatm2) || CPS_IsPlayerInCheckpoint(playerid, cpatm3) || CPS_IsPlayerInCheckpoint(playerid, cpatm4) || CPS_IsPlayerInCheckpoint(playerid, cpatm5) || CPS_IsPlayerInCheckpoint(playerid, cpatm6) || CPS_IsPlayerInCheckpoint(playerid, cpatm7) || CPS_IsPlayerInCheckpoint(playerid, cpatm9) || CPS_IsPlayerInCheckpoint(playerid, cpatm10) || CPS_IsPlayerInCheckpoint(playerid, cpatm11))
  4027.         {
  4028.             if(ATMRecentlyRobbed == 0)
  4029.             {
  4030.                 if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != FBI && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4031.                 {
  4032.                     if(!IsPlayerInAnyVehicle(playerid))
  4033.                     {
  4034.                             new chances = random(100);
  4035.                             if(chances >= 0 && chances <= 60)
  4036.                             {
  4037.                                 new cash = random(42562), robbername[MAX_PLAYER_NAME], robbermsg[250], copmsg[250];
  4038.                                 ATMRecentlyRobbed = 150;
  4039.                                 GivePlayerMoney(playerid, cash);
  4040.                                 GivePlayerScore(playerid, 1);
  4041.                                 GetPlayerName(playerid, robbername, sizeof(robbername));
  4042.                                 SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  4043.                                 format(robbermsg, sizeof(robbermsg), "You robbed the ATM. You got $%d. Watch out for the police!", cash);
  4044.                                 format(copmsg, sizeof(copmsg), "[HQ] %s has robbed $%d from an ATM Machine. Location: %s", robbername, cash, ReturnPlayerZone(playerid));
  4045.                                 SendRadioMessageToCops(copmsg);
  4046.                                 SendClientMessage(playerid, WHITE, robbermsg);
  4047.                                 GivePlayerScore(playerid, 1);
  4048.                                 printf("%s[ID:%d] robbed $%d from an ATM.", name, playerid, cash);
  4049.                                 return true;
  4050.                             }
  4051.                             else if(chances >= 61 && chances <= 100)
  4052.                             {
  4053.                                 SendClientMessage(playerid, ERROR, "You couldn't rob any money this time. Try again later.");
  4054.                                 ATMRecentlyRobbed = 100;
  4055.                                 printf("%s[ID:%d] failed to rob an ATM.", name, playerid);
  4056.                                 return true;
  4057.                             }
  4058.                     }
  4059.                     else return SendClientMessage(playerid, ERROR, "You cannot rob an ATM from inside a vehicle.");
  4060.                 }
  4061.                 else return SendClientMessage(playerid, ERROR, "Your team cannot rob ATMs.");
  4062.             }
  4063.             else if(ATMRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "The ATM network has been robbed recently.");
  4064.         }
  4065.         else return SendClientMessage(playerid, ERROR, "You must be on an ATM checkpoint to rob it.");
  4066.     }
  4067.  
  4068.     if(strcmp(cmdtext, "/robbank", true) == 0)
  4069.     {
  4070.         if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  4071.         {
  4072.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT &&  gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4073.             {
  4074.                     if(BankRecentlyRobbed == 0)
  4075.                     {
  4076.                         new chances = random(1000);
  4077.                         if(chances >= 0 && chances <= 350)
  4078.                         {
  4079.                             new string[250];
  4080.                             RobBank[playerid] = 60;
  4081.                             BankRecentlyRobbed = 100;
  4082.                             if(BK[playerid] == 2)
  4083.                             {
  4084.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : Los Santos / Commerce", name, playerid);
  4085.                             Announce(string);
  4086.                             }
  4087.                             if(BK[playerid] == 3)
  4088.                             {
  4089.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : San Fierro / DownTown", name, playerid);
  4090.                             Announce(string);
  4091.                             }
  4092.                             if(BK[playerid] == 1)
  4093.                             {
  4094.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : Las Venturas / The Visage", name, playerid);
  4095.                             Announce(string);
  4096.                             }
  4097.                             BankRecentlyUsed[playerid] = 60;
  4098.                             return true;
  4099.                         }
  4100.                         else if(chances >= 351 && chances <= 1000)
  4101.                         {
  4102.                             new copmsg[250];
  4103.                             if(BK[playerid] == 2)
  4104.                             {
  4105.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Los Santos Bank failed!");
  4106.                             }
  4107.                             if(BK[playerid] == 3)
  4108.                             {
  4109.                             SendClientMessage(playerid, ERROR, "Your attempt to rob San Fierro Bank failed!");
  4110.                             }
  4111.                             if(BK[playerid] == 1)
  4112.                             {
  4113.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Las Venturas Bank failed!");
  4114.                             }
  4115.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the Bank.");
  4116.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4117.                             if(BK[playerid] == 2)
  4118.                             {
  4119.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : Los Santos / Commerce", name);
  4120.                             SendRadioMessageToCops(copmsg);
  4121.                             }
  4122.                             if(BK[playerid] == 3)
  4123.                             {
  4124.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : San Fierro / DownTown", name);
  4125.                             SendRadioMessageToCops(copmsg);
  4126.                             }
  4127.                             if(BK[playerid] == 1)
  4128.                             {
  4129.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : Las Venturas / The Visage", name);
  4130.                             SendRadioMessageToCops(copmsg);
  4131.                             }
  4132.                             BankRecentlyRobbed = 200;
  4133.                             BankRecentlyUsed[playerid] = 60;
  4134.                             return true;
  4135.                         }
  4136.                     }
  4137.                     else if(BankRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "RuNix's Intl. Bank has been robbed recently!");
  4138.             }
  4139.             else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4140.         }
  4141.         else return SendClientMessage(playerid, ERROR, "You're not in the Bank.");
  4142.     }
  4143.    
  4144.     if(strcmp(cmdtext, "/robcasino", true) == 0)
  4145.     {
  4146.         if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragons))
  4147.         {
  4148.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT &&  gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4149.             {
  4150.                     if(D4RecentlyRobbed == 0)
  4151.                     {
  4152.                         new chances = random(500);
  4153.                         if(chances >= 0 && chances <= 400)
  4154.                         {
  4155.                             new string[250];
  4156.                             RobD4[playerid] = 60;
  4157.                             D4RecentlyRobbed = 150;
  4158.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at 4Dragons Casino!", name, playerid);
  4159.                             Announce(string);
  4160.                             return true;
  4161.                         }
  4162.                         else if(chances >= 401 && chances <= 500)
  4163.                         {
  4164.                             new copmsg[250];
  4165.                             SendClientMessage(playerid, ERROR, "Your attempt to rob 4Dragons Casino failed!");
  4166.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the Casino.");
  4167.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4168.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob 4Dragons Casino.", name);
  4169.                             SendRadioMessageToCops(copmsg);
  4170.                             D4RecentlyRobbed = 100;
  4171.                             return true;
  4172.                         }
  4173.                     }
  4174.                     else if(D4RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  4175.             }
  4176.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4177.         }
  4178.         if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulas))
  4179.         {
  4180.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT &&  gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4181.             {
  4182.                     if(CaRecentlyRobbed == 0)
  4183.                     {
  4184.                         new chances = random(500);
  4185.                         if(chances >= 0 && chances <= 400)
  4186.                         {
  4187.                             new string[250];
  4188.                             RobCa[playerid] = 60;
  4189.                             CaRecentlyRobbed = 150;
  4190.                             format(string, sizeof(string), "%s[ID:%d] started a robbery at Caligulas Casino!", name, playerid);
  4191.                             Announce(string);
  4192.                             return true;
  4193.                         }
  4194.                         else if(chances >= 401 && chances <= 500)
  4195.                         {
  4196.                             new copmsg[250];
  4197.                             SendClientMessage(playerid, ERROR, "Your attempt to rob Caligulas Casino failed!");
  4198.                             SendClientMessage(playerid, ERROR, "The Police are on their way to the Casino.");
  4199.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4200.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Caligulas Casino.", name);
  4201.                             SendRadioMessageToCops(copmsg);
  4202.                             CaRecentlyRobbed = 100;
  4203.                             return true;
  4204.                         }
  4205.                     }
  4206.                     else if(CaRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Caligulas has been robbed recently!");
  4207.             }
  4208.             else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4209.         }
  4210.     return 1;
  4211.     }
  4212.  
  4213.     if(strcmp(cmdtext, "/buyc4", true) == 0)
  4214.     {
  4215.         if(CPS_IsPlayerInCheckpoint(playerid, cpbombshop) || CPS_IsPlayerInCheckpoint(playerid, cplsbombshop) || CPS_IsPlayerInCheckpoint(playerid, cpsfbombshop))
  4216.         {
  4217.             if(GetPlayerC4Amount(playerid) <= 2)
  4218.             {
  4219.                 if(GetPlayerMoney(playerid) >= 1000)
  4220.                 {
  4221.                     new string[250];
  4222.                     SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)+1);
  4223.                     GivePlayerMoney(playerid, -1000);
  4224.                     SendClientMessage(playerid, GREY, "|_| C4 Bought! |_|");
  4225.                     format(string, sizeof(string), "You bought a C4 block. You now carry %d block(s).", GetPlayerC4Amount(playerid));
  4226.                     SendClientMessage(playerid, WHITE, string);
  4227.                     return true;
  4228.                 }
  4229.                 else if(GetPlayerMoney(playerid) <= 999) return SendClientMessage(playerid, ERROR, "You do not have $1000 to buy a C4 block.");
  4230.             }
  4231.             else if(GetPlayerC4Amount(playerid) == 3) return SendClientMessage(playerid, ERROR, "You have enough blocks for now. (3 Blocks)");
  4232.         }
  4233.         else return SendClientMessage(playerid, ERROR, "You are not in the Bomb Shop.");
  4234.     }
  4235.  
  4236.     if(strcmp(cmd, "/blow", true) == 0)
  4237.     {
  4238.         tmp = strtok(cmdtext, idx);
  4239.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /blow [ID]");
  4240.         if(gTeam[playerid] == CIVILIAN)
  4241.         {
  4242.             if(GetPlayerC4Amount(playerid) > 0)
  4243.             {
  4244.                 if(playerid != strval(tmp))
  4245.                 {
  4246.                     if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 4)
  4247.                     {
  4248.                         if(IsPlayerSpawned(playerid))
  4249.                         {
  4250.                             if(IsPlayerSpawned(strval(tmp)))
  4251.                             {
  4252.                                 if(!IsPlayerInAnyVehicle(playerid))
  4253.                                 {
  4254.                                     if(!IsPlayerInAnyVehicle(strval(tmp)))
  4255.                                     {
  4256.                                         new terrorname[MAX_PLAYER_NAME], string[250], string2[256], copmsg[257], blown[MAX_PLAYER_NAME];
  4257.                                         GetPlayerName(playerid, terrorname, sizeof(terrorname));
  4258.                                         GetPlayerName(strval(tmp), blown, sizeof(blown));
  4259.                                         SendClientMessage(strval(tmp), RED, "|_| C4 Planted On You |_|");
  4260.                                         format(string, sizeof(string), "The Player %s[ID:%d] has planted a C4 on you.", terrorname, playerid);
  4261.                                         SendClientMessage(strval(tmp), WHITE, string);
  4262.                                         SendClientMessage(playerid, GREY, "|_| C4 Planted On Player |_|");
  4263.                                         format(string2, sizeof(string2), "You have planted a C4 on %s[ID:%d].", blown, strval(tmp));
  4264.                                         SendClientMessage(playerid, WHITE, string2);
  4265.                                         SendClientMessage(playerid, WHITE, "Run for your life!");
  4266.                                         SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)-1);
  4267.                                         BlowTime[strval(tmp)] = 6;
  4268.                                         SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 3);
  4269.                                         format(copmsg, sizeof(copmsg), "[HQ] The Player %s has blown %s with a C4.", terrorname, blown);
  4270.                                         SendRadioMessageToCops(copmsg);
  4271.                                         return true;
  4272.                                     }
  4273.                                     else
  4274.                                     {
  4275.                                         new errormsg[250];
  4276.                                         new blown[MAX_PLAYER_NAME];
  4277.                                         GetPlayerName(strval(tmp), blown, sizeof(blown));
  4278.                                         format(errormsg, sizeof(errormsg), "%s[ID:%d] is in a Vehicle. You cannot blow the person inside a vehicle.", blown, strval(tmp));
  4279.                                         SendClientMessage(playerid, ERROR, errormsg);
  4280.                                         return true;
  4281.                                     }
  4282.                                 }
  4283.                                 else return SendClientMessage(playerid, ERROR, "You cannot blow anyone from inside a vehicle.");
  4284.                             }
  4285.                             else
  4286.                             {
  4287.                                 new errormsg[250];
  4288.                                 new blown[MAX_PLAYER_NAME];
  4289.                                 GetPlayerName(strval(tmp), blown, sizeof(blown));
  4290.                                 format(errormsg, sizeof(errormsg), "%s[ID:%d] is dead.", blown, strval(tmp));
  4291.                                 SendClientMessage(playerid, ERROR, errormsg);
  4292.                                 return true;
  4293.                             }
  4294.                         }
  4295.                         else return SendClientMessage(playerid, ERROR, "You are dead.");
  4296.                     }
  4297.                     else return SendClientMessage(playerid, ERROR, "This player is too far away.");
  4298.                 }
  4299.                 else return SendClientMessage(playerid, ERROR, "You cannot blow yourself!");
  4300.             }
  4301.             else return SendClientMessage(playerid, ERROR, "You do not have any C4 left!");
  4302.         }
  4303.         else return SendClientMessage(playerid, ERROR, "Only CIVILIANS can blow people.");
  4304.     }
  4305.  
  4306.     if(strcmp(cmdtext, "/blowcar", true) == 0)
  4307.     {
  4308.         tmp = strtok(cmdtext, idx);
  4309.         if(gTeam[playerid] == CIVILIAN)
  4310.         {
  4311.             if(GetPlayerC4Amount(playerid) > 0)
  4312.             {
  4313.                 if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  4314.                 {
  4315.                     new vehicleid = GetPlayerVehicleID(playerid), terrorname[MAX_PLAYER_NAME], string[250];
  4316.                     GetPlayerName(playerid, terrorname, sizeof(terrorname));
  4317.                     SetTimerEx("BlowCar", 5000, false, "d", vehicleid);
  4318.                     SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)-1);
  4319.                     SendClientMessage(playerid, GREY, "|_| C4 Planted |_|");
  4320.                     SendClientMessage(playerid, WHITE, "You've planted a C4 in this vehicle.");
  4321.                     SendClientMessage(playerid, WHITE, "Run for your life: The C4 blows in 5 seconds!");
  4322.                     SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4323.                     for(new i = 0; i < MAX_PLAYERS; i++)
  4324.                     {
  4325.                         if(IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == vehicleid)
  4326.                         {
  4327.                             format(string, sizeof(string), "The Player %s[ID:%d] has planted a C4 on this vehicle. Jump off it!", terrorname, playerid);
  4328.                             SendClientMessage(i, RED, string);
  4329.                         }
  4330.                     }
  4331.                     return true;
  4332.                 }
  4333.                 else return SendClientMessage(playerid, ERROR, "You must be passenger in order to plant a C4 on this vehicle.");
  4334.             }
  4335.             else return SendClientMessage(playerid, ERROR, "You do not have any C4 left.");
  4336.         }
  4337.         else return SendClientMessage(playerid, ERROR, "Only terrorists can blow cars.");
  4338.     }
  4339.  
  4340.     if(strcmp(cmdtext, "/cmds", true) == 0)
  4341.     {
  4342.         HideDraw(playerid);
  4343.         TextDrawShowForPlayer(playerid, CMDBOX);
  4344.         TextDrawShowForPlayer(playerid, text21);
  4345.         TextDrawShowForPlayer(playerid, text22);
  4346.         TextDrawShowForPlayer(playerid, text23);
  4347.         return true;
  4348.     }
  4349.  
  4350.     if(strcmp(cmd, "/help", true) == 0)
  4351.     {
  4352.         tmp = strtok(cmdtext, idx);
  4353.         if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
  4354.         new string[250];
  4355.         format(string, sizeof(string), "[ ! ] %s[ID:%d] asks help:%s", name, playerid, strlen(tmp));
  4356.         SendClientMessageToAdmins(string);
  4357.     }
  4358.  
  4359.     if(strcmp(cmdtext, "/healme", true) == 0)
  4360.     {
  4361.         new Float:health;
  4362.         GetPlayerHealth(playerid, health);
  4363.         if(CPS_IsPlayerInCheckpoint(playerid, cphospital) || CPS_IsPlayerInCheckpoint(playerid, cplshospital) || CPS_IsPlayerInCheckpoint(playerid, cpsfhospital))
  4364.         {
  4365.             if(gTeam[playerid] != Medic)
  4366.             {
  4367.                 if(health < 100)
  4368.                 {
  4369.                     if(GetPlayerMoney(playerid) > 499)
  4370.                     {
  4371.                         SendClientMessage(playerid, DARK_GREEN, "|_| You've been Healed! |_|");
  4372.                         SendClientMessage(playerid, WHITE, "The doctors charged you in $500.");
  4373.                         GivePlayerMoney(playerid, -500);
  4374.                         return SetPlayerHealth(playerid, 100);
  4375.                     }
  4376.                     else return SendClientMessage(playerid, ERROR, "You do not have $500!");
  4377.                 }
  4378.                 else if(health == 100) return SendClientMessage(playerid, ERROR, "You seem OK to me.");
  4379.             }
  4380.         else if(CPS_IsPlayerInCheckpoint(playerid, cphospital) && gTeam[playerid] == Medic || !CPS_IsPlayerInCheckpoint(playerid, cphospital) && gTeam[playerid] == Medic || CPS_IsPlayerInCheckpoint(playerid, cplshospital) && gTeam[playerid] == Medic || !CPS_IsPlayerInCheckpoint(playerid, cplshospital) && gTeam[playerid] == Medic )
  4381.         {
  4382.             if(health < 100)
  4383.             {
  4384.                 SendClientMessage(playerid, DARK_GREEN, "|_| You've Healed Yourself! |_|");
  4385.                 SendClientMessage(playerid, WHITE, "You are a Medic. No need to pay.");
  4386.                 return SetPlayerHealth(playerid, 100);
  4387.             }
  4388.         }
  4389.         else if(!CPS_IsPlayerInCheckpoint(playerid, cphospital) && gTeam[playerid] != Medic) return SendClientMessage(playerid, ERROR, "You are not in the Hospital.");
  4390.     }
  4391.     return 1;
  4392.     }
  4393.  
  4394.     if(strcmp(cmd,"/cw",true)==0)
  4395.     {
  4396.     if(IsSpawned[playerid] == 0) {
  4397.     SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4398.     return 1;
  4399.     }
  4400.     if(!IsPlayerInAnyVehicle(playerid)) {
  4401.     SendClientMessage(playerid, COLOR_ERROR, "You not in any vehicle. You cannot use this command");
  4402.     return 1;
  4403.     }
  4404.  
  4405.     if(strlen(cmdtext) <= 4) {
  4406.     SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cw (msg)");
  4407.     return 1;
  4408.     }
  4409.     new string[128];
  4410.     new cwhisperid = GetPlayerVehicleID(playerid);
  4411.     new output[150];
  4412.     new pname[24];
  4413.     GetPlayerName(playerid, pname, 24);
  4414.     strmid(output,cmdtext,3,strlen(cmdtext));
  4415.     format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  4416.     printf("%s", string);
  4417.     for(new i=0;i<MAX_PLAYERS;i++)
  4418.     {
  4419.     if(IsPlayerInAnyVehicle(i))
  4420.     {
  4421.     if(GetPlayerVehicleID(i) == cwhisperid)
  4422.     {
  4423.     format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  4424.     SendClientMessage(i,COLOR_YELLOW,string);
  4425.     }
  4426.     }
  4427.     }
  4428.     return 1;
  4429.     }
  4430.  
  4431.     if(strcmp(cmd,"/w",true)==0)
  4432.     {
  4433.     new string[128];
  4434.     if(IsSpawned[playerid] == 0) {
  4435.     SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4436.     return 1;
  4437.     }
  4438.     if(strlen(cmdtext) <= 3) {
  4439.     SendClientMessage(playerid,COLOR_ERROR,"USAGE: /w (msg)");
  4440.     return 1;
  4441.     }
  4442.     new output[150];
  4443.     new pname[24];
  4444.     GetPlayerName(playerid, pname, 24);
  4445.     strmid(output,cmdtext,2,strlen(cmdtext));
  4446.     format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  4447.     printf("%s", string);
  4448.     for(new i=0;i<MAX_PLAYERS;i++)
  4449.     {
  4450.     if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) {
  4451.     {
  4452.     format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  4453.     SendClientMessage(i,COLOR_YELLOW,string);
  4454.     }
  4455.     }
  4456.     }
  4457.     return 1;
  4458.     }
  4459.  
  4460.  
  4461.  
  4462.     if(strcmp(cmd, "/dance", true) == 0) {
  4463.         if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  4464.  
  4465.             tmp = strtok(cmdtext, idx);
  4466.             if(!strlen(tmp)) {
  4467.                 SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  4468.                 return 1;
  4469.             }
  4470.  
  4471.             new dancestyle = strval(tmp);
  4472.             if(dancestyle < 1 || dancestyle > 3) {
  4473.                 SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  4474.                 return 1;
  4475.             }
  4476.  
  4477.             if(dancestyle == 1) {
  4478.                 SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  4479.             } else if(dancestyle == 2) {
  4480.                 SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  4481.             } else if(dancestyle == 3) {
  4482.                 SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  4483.             }
  4484.             return 1;
  4485.         }
  4486.     }
  4487.    
  4488.     if(strcmp(cmd, "/drunk", true) == 0) {
  4489.                 LoopingAnim(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
  4490.                 return 1;
  4491.     }
  4492.  
  4493.  
  4494.     if (strcmp("/bomb", cmdtext, true) == 0) {
  4495.                 ClearAnimations(playerid);
  4496.                 LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  4497.                 return 1;
  4498.         }
  4499.     if (strcmp("/laugh", cmdtext, true) == 0) {
  4500.           OnePlayAnim(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
  4501.                   return 1;
  4502.         }
  4503.         if (strcmp("/lookout", cmdtext, true) == 0) {
  4504.           OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
  4505.                   return 1;
  4506.         }
  4507.  
  4508.     if (strcmp("/robman", cmdtext, true) == 0) {
  4509.           LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  4510.                   return 1;
  4511.         }
  4512.  
  4513.     if (strcmp("/crossarms", cmdtext, true) == 0) {
  4514.           LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  4515.                   return 1;
  4516.         }
  4517.  
  4518.     if (strcmp("/lay", cmdtext, true) == 0) {
  4519.           LoopingAnim(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  4520.                   return 1;
  4521.     }
  4522.  
  4523.     if (strcmp("/hide", cmdtext, true) == 0) {
  4524.           LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  4525.                   return 1;
  4526.         }
  4527.  
  4528.     if (strcmp("/vomit", cmdtext, true) == 0) {
  4529.               OnePlayAnim(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  4530.                   return 1;
  4531.         }
  4532.  
  4533.     if (strcmp("/eat", cmdtext, true) == 0) {
  4534.               OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  4535.                   return 1;
  4536.         }
  4537.  
  4538.     if (strcmp("/wave", cmdtext, true) == 0) {
  4539.               LoopingAnim(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  4540.                   return 1;
  4541.         }
  4542.  
  4543.     if (strcmp("/slapass", cmdtext, true) == 0) {
  4544.                 OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  4545.                 return 1;
  4546.         }
  4547.         if (strcmp("/deal", cmdtext, true) == 0) {
  4548.           OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  4549.                   return 1;
  4550.         }
  4551.  
  4552.     if (strcmp("/crack", cmdtext, true) == 0) {
  4553.           LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  4554.                   return 1;
  4555.         }
  4556.  
  4557.         if(strcmp(cmd, "/smoke", true) == 0)
  4558.     {
  4559.         if (!strlen(cmdtext[7])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
  4560.         switch (cmdtext[7])
  4561.         {
  4562.                 case '1': LoopingAnim(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  4563.                 case '2': LoopingAnim(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  4564.                 case '3': LoopingAnim(playerid,"SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
  4565.                 case '4': LoopingAnim(playerid,"SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0);
  4566.                 default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
  4567.         }
  4568.         return 1;
  4569.     }
  4570.  
  4571.     if (strcmp("/groundsit", cmdtext, true) == 0 || strcmp("/gro", cmdtext, true) == 0) {
  4572.           LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  4573.                   return 1;
  4574.     }
  4575.  
  4576.     if(strcmp(cmd, "/chat", true) == 0) {
  4577.                  LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
  4578.          return 1;
  4579.     }
  4580.  
  4581.     if(strcmp(cmd, "/fuckyou", true) == 0) {
  4582.                  OnePlayAnim(playerid,"PED","fucku",4.0,0,0,0,0,0);
  4583.          return 1;
  4584.     }
  4585.  
  4586.     if(strcmp(cmd, "/taichi", true) == 0) {
  4587.                  LoopingAnim(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  4588.          return 1;
  4589.     }
  4590.  
  4591.  
  4592.     if(strcmp(cmd, "/chairsit", true) == 0) {
  4593.                  LoopingAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
  4594.          return 1;
  4595.     }
  4596.    
  4597.     if (strcmp("/cm", cmdtext, true, 3) == 0)
  4598.     {
  4599.     new string[128];
  4600.     if(IsSpawned[playerid] == 0) {
  4601.     SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4602.     return 1;
  4603.     }
  4604.     if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI) {
  4605.     SendClientMessage(playerid,COLOR_ROYALBLUE,"You ar not Police Officer!");
  4606.     }
  4607.     if(strlen(cmdtext) <= 4) {
  4608.     SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cm yourmessagehere");
  4609.     return 1;
  4610.     }
  4611.     else{
  4612.     new output[255];
  4613.     new pname[24];
  4614.     GetPlayerName(playerid, pname, 24);
  4615.     strmid(output,cmdtext,3,strlen(cmdtext));
  4616.     format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  4617.     printf("%s", string);
  4618.     for(new i=0;i<MAX_PLAYERS;i++)
  4619.     {
  4620.     if(gTeam[i] == COP || gTeam[i] == SWAT || gTeam[i] == ARMY || gTeam[i] == FBI) {
  4621.     format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  4622.     SendClientMessage(i,COLOR_ROYALBLUE,string);
  4623.     }
  4624.     }
  4625.     }
  4626.     return 1;
  4627.     }
  4628.     if (strcmp("/next", cmdtext, true) == 0)
  4629.     {
  4630.     if(CSKIN[playerid] ==1)
  4631.     {
  4632.     SetPlayerSkin(playerid,7);
  4633.     CSKIN[playerid] = 2;
  4634.     }else
  4635.     if(CSKIN[playerid] ==2)
  4636.     {
  4637.     SetPlayerSkin(playerid,11);
  4638.     CSKIN[playerid] = 3;
  4639.     }else
  4640.     if(CSKIN[playerid] ==3)
  4641.     {
  4642.     SetPlayerSkin(playerid,19);
  4643.     CSKIN[playerid] = 4;
  4644.     }else
  4645.     if(CSKIN[playerid] ==4)
  4646.     {
  4647.     SetPlayerSkin(playerid,21);
  4648.     CSKIN[playerid] = 5;
  4649.     }else
  4650.     if(CSKIN[playerid] ==5)
  4651.     {
  4652.     SetPlayerSkin(playerid,23);
  4653.     CSKIN[playerid] = 6;
  4654.     }else
  4655.     if(CSKIN[playerid] ==6)
  4656.     {
  4657.     SetPlayerSkin(playerid,28);
  4658.     CSKIN[playerid] = 7;
  4659.     }else
  4660.     if(CSKIN[playerid] ==7)
  4661.     {
  4662.     SetPlayerSkin(playerid,29);
  4663.     CSKIN[playerid] = 8;
  4664.     }else
  4665.     if(CSKIN[playerid] ==8)
  4666.     {
  4667.     SetPlayerSkin(playerid,46);
  4668.     CSKIN[playerid] = 9;
  4669.     }else
  4670.     if(CSKIN[playerid] ==9)
  4671.     {
  4672.     SetPlayerSkin(playerid,47);
  4673.     CSKIN[playerid] = 10;
  4674.     }else
  4675.     if(CSKIN[playerid] ==10)
  4676.     {
  4677.     SetPlayerSkin(playerid,59);
  4678.     CSKIN[playerid] = 11;
  4679.     }else
  4680.     if(CSKIN[playerid] ==11)
  4681.     {
  4682.     SetPlayerSkin(playerid,98);
  4683.     CSKIN[playerid] = 12;
  4684.     }else
  4685.     if(CSKIN[playerid] ==12)
  4686.     {
  4687.     SetPlayerSkin(playerid,101);
  4688.     CSKIN[playerid] = 13;
  4689.     }else
  4690.     if(CSKIN[playerid] ==13)
  4691.     {
  4692.     SetPlayerSkin(playerid,116);
  4693.     CSKIN[playerid] = 14;
  4694.     }else
  4695.     if(CSKIN[playerid] ==14)
  4696.     {
  4697.     SetPlayerSkin(playerid,124);
  4698.     CSKIN[playerid] = 15;
  4699.     }else
  4700.     if(CSKIN[playerid] ==15)
  4701.     {
  4702.     SetPlayerSkin(playerid,186);
  4703.     CSKIN[playerid] = 16;
  4704.     }else
  4705.     if(CSKIN[playerid] ==16)
  4706.     {
  4707.     SetPlayerSkin(playerid,188);
  4708.     CSKIN[playerid] = 17;
  4709.     }else
  4710.     if(CSKIN[playerid] ==17)
  4711.     {
  4712.     SetPlayerSkin(playerid,223);
  4713.     CSKIN[playerid] = 18;
  4714.     }else
  4715.     if(CSKIN[playerid] ==18)
  4716.     {
  4717.     SetPlayerSkin(playerid,240);
  4718.     CSKIN[playerid] = 19;
  4719.     }else
  4720.     if(CSKIN[playerid] ==19)
  4721.     {
  4722.     SetPlayerSkin(playerid,58);
  4723.     CSKIN[playerid] = 1;
  4724.     }else
  4725.     if(CSKINZ[playerid] ==1)
  4726.     {
  4727.     SetPlayerSkin(playerid,7);
  4728.     CSKINZ[playerid] = 2;
  4729.     }else
  4730.     if(CSKINZ[playerid] ==2)
  4731.     {
  4732.     SetPlayerSkin(playerid,11);
  4733.     CSKINZ[playerid] = 3;
  4734.     }else
  4735.     if(CSKINZ[playerid] ==3)
  4736.     {
  4737.     SetPlayerSkin(playerid,19);
  4738.     CSKINZ[playerid] = 4;
  4739.     }else
  4740.     if(CSKINZ[playerid] ==4)
  4741.     {
  4742.     SetPlayerSkin(playerid,21);
  4743.     CSKINZ[playerid] = 5;
  4744.     }else
  4745.     if(CSKINZ[playerid] ==5)
  4746.     {
  4747.     SetPlayerSkin(playerid,23);
  4748.     CSKINZ[playerid] = 6;
  4749.     }else
  4750.     if(CSKINZ[playerid] ==6)
  4751.     {
  4752.     SetPlayerSkin(playerid,28);
  4753.     CSKINZ[playerid] = 7;
  4754.     }else
  4755.     if(CSKINZ[playerid] ==7)
  4756.     {
  4757.     SetPlayerSkin(playerid,29);
  4758.     CSKINZ[playerid] = 8;
  4759.     }else
  4760.     if(CSKINZ[playerid] ==8)
  4761.     {
  4762.     SetPlayerSkin(playerid,46);
  4763.     CSKINZ[playerid] = 9;
  4764.     }else
  4765.     if(CSKINZ[playerid] ==9)
  4766.     {
  4767.     SetPlayerSkin(playerid,47);
  4768.     CSKINZ[playerid] = 10;
  4769.     }else
  4770.     if(CSKINZ[playerid] ==10)
  4771.     {
  4772.     SetPlayerSkin(playerid,59);
  4773.     CSKINZ[playerid] = 11;
  4774.     }else
  4775.     if(CSKINZ[playerid] ==11)
  4776.     {
  4777.     SetPlayerSkin(playerid,98);
  4778.     CSKINZ[playerid] = 12;
  4779.     }else
  4780.     if(CSKINZ[playerid] ==12)
  4781.     {
  4782.     SetPlayerSkin(playerid,101);
  4783.     CSKINZ[playerid] = 13;
  4784.     }else
  4785.     if(CSKINZ[playerid] ==13)
  4786.     {
  4787.     SetPlayerSkin(playerid,116);
  4788.     CSKINZ[playerid] = 14;
  4789.     }else
  4790.     if(CSKINZ[playerid] ==14)
  4791.     {
  4792.     SetPlayerSkin(playerid,124);
  4793.     CSKINZ[playerid] = 15;
  4794.     }else
  4795.     if(CSKINZ[playerid] ==15)
  4796.     {
  4797.     SetPlayerSkin(playerid,186);
  4798.     CSKINZ[playerid] = 16;
  4799.     }else
  4800.     if(CSKINZ[playerid] ==16)
  4801.     {
  4802.     SetPlayerSkin(playerid,188);
  4803.     CSKINZ[playerid] = 17;
  4804.     }else
  4805.     if(CSKINZ[playerid] ==17)
  4806.     {
  4807.     SetPlayerSkin(playerid,223);
  4808.     CSKINZ[playerid] = 18;
  4809.     }else
  4810.     if(CSKINZ[playerid] ==18)
  4811.     {
  4812.     SetPlayerSkin(playerid,240);
  4813.     CSKINZ[playerid] = 19;
  4814.     }else
  4815.     if(CSKINZ[playerid] ==19)
  4816.     {
  4817.     SetPlayerSkin(playerid,58);
  4818.     CSKINZ[playerid] = 1;
  4819.     }else
  4820.     if(CSKINU[playerid] ==1)
  4821.     {
  4822.     SetPlayerSkin(playerid,7);
  4823.     CSKINU[playerid] = 2;
  4824.     }else
  4825.     if(CSKINU[playerid] ==2)
  4826.     {
  4827.     SetPlayerSkin(playerid,11);
  4828.     CSKINU[playerid] = 3;
  4829.     }else
  4830.     if(CSKINU[playerid] ==3)
  4831.     {
  4832.     SetPlayerSkin(playerid,19);
  4833.     CSKINU[playerid] = 4;
  4834.     }else
  4835.     if(CSKINU[playerid] ==4)
  4836.     {
  4837.     SetPlayerSkin(playerid,21);
  4838.     CSKINU[playerid] = 5;
  4839.     }else
  4840.     if(CSKINU[playerid] ==5)
  4841.     {
  4842.     SetPlayerSkin(playerid,23);
  4843.     CSKINU[playerid] = 6;
  4844.     }else
  4845.     if(CSKINU[playerid] ==6)
  4846.     {
  4847.     SetPlayerSkin(playerid,28);
  4848.     CSKINU[playerid] = 7;
  4849.     }else
  4850.     if(CSKINU[playerid] ==7)
  4851.     {
  4852.     SetPlayerSkin(playerid,29);
  4853.     CSKINU[playerid] = 8;
  4854.     }else
  4855.     if(CSKINU[playerid] ==8)
  4856.     {
  4857.     SetPlayerSkin(playerid,46);
  4858.     CSKINU[playerid] = 9;
  4859.     }else
  4860.     if(CSKINU[playerid] ==9)
  4861.     {
  4862.     SetPlayerSkin(playerid,47);
  4863.     CSKINU[playerid] = 10;
  4864.     }else
  4865.     if(CSKINU[playerid] ==10)
  4866.     {
  4867.     SetPlayerSkin(playerid,59);
  4868.     CSKINU[playerid] = 11;
  4869.     }else
  4870.     if(CSKINU[playerid] ==11)
  4871.     {
  4872.     SetPlayerSkin(playerid,98);
  4873.     CSKINU[playerid] = 12;
  4874.     }else
  4875.     if(CSKINU[playerid] ==12)
  4876.     {
  4877.     SetPlayerSkin(playerid,101);
  4878.     CSKINU[playerid] = 13;
  4879.     }else
  4880.     if(CSKINU[playerid] ==13)
  4881.     {
  4882.     SetPlayerSkin(playerid,116);
  4883.     CSKINU[playerid] = 14;
  4884.     }else
  4885.     if(CSKINU[playerid] ==14)
  4886.     {
  4887.     SetPlayerSkin(playerid,124);
  4888.     CSKINU[playerid] = 15;
  4889.     }else
  4890.     if(CSKINU[playerid] ==15)
  4891.     {
  4892.     SetPlayerSkin(playerid,186);
  4893.     CSKINU[playerid] = 16;
  4894.     }else
  4895.     if(CSKINU[playerid] ==16)
  4896.     {
  4897.     SetPlayerSkin(playerid,188);
  4898.     CSKINU[playerid] = 17;
  4899.     }else
  4900.     if(CSKINU[playerid] ==17)
  4901.     {
  4902.     SetPlayerSkin(playerid,223);
  4903.     CSKINU[playerid] = 18;
  4904.     }else
  4905.     if(CSKINU[playerid] ==18)
  4906.     {
  4907.     SetPlayerSkin(playerid,240);
  4908.     CSKINU[playerid] = 19;
  4909.     }else
  4910.     if(CSKINU[playerid] ==19)
  4911.     {
  4912.     SetPlayerSkin(playerid,58);
  4913.     CSKINU[playerid] = 1;
  4914.     }else SendClientMessage(playerid,LIGHT_BLUE,"You are not in a skin shop location");
  4915.     return 1;
  4916.     }
  4917.     if (strcmp("/select", cmdtext, true, 3) == 0)
  4918.     {
  4919.     if(CSKIN[playerid] >=2)
  4920.     {
  4921.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4922.     format(file,sizeof(file),"%s.runix", name);
  4923.     new skin = GetPlayerSkin(playerid);
  4924.     dini_IntSet(file, "Skin", skin);
  4925.     TogglePlayerControllable(playerid,1);
  4926.     SetPlayerPos(playerid,218.2430,-98.2941,1005.2578);
  4927.     SetCameraBehindPlayer(playerid);
  4928.     CSKIN[playerid] = 0;
  4929.     }else
  4930.     if(CSKINZ[playerid] >=2)
  4931.     {
  4932.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4933.     format(file,sizeof(file),"%s.runix", name);
  4934.     new skin = GetPlayerSkin(playerid);
  4935.     dini_IntSet(file, "Skin", skin);
  4936.     TogglePlayerControllable(playerid,1);
  4937.     SetPlayerPos(playerid,181.5906,-87.5578,1002.0234);
  4938.     SetCameraBehindPlayer(playerid);
  4939.     CSKINZ[playerid] = 0;
  4940.     }else
  4941.     if(CSKINU[playerid] >=2)
  4942.     {
  4943.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4944.     format(file,sizeof(file),"%s.runix", name);
  4945.     new skin = GetPlayerSkin(playerid);
  4946.     dini_IntSet(file, "Skin", skin);
  4947.     TogglePlayerControllable(playerid,1);
  4948.     SetPlayerPos(playerid,214.7581,-41.0411,1002.0234);
  4949.     SetCameraBehindPlayer(playerid);
  4950.     CSKINU[playerid] = 0;
  4951.     }else SendClientMessage(playerid,LIGHT_BLUE,"You are not in a skin shop location");
  4952.     return 1;
  4953.     }
  4954.    
  4955.     if(!strcmp(cmdtext, "/hitlist", true))
  4956.     {
  4957.         new count = 0;
  4958.         SendClientMessage(playerid, COLOR_MSG, "Listing currently placed hits:");
  4959.         for(new i = 0; i < MAX_PLAYERS; i++)
  4960.         {
  4961.             if(IsPlayerConnected(i) && hit[i] > 0)
  4962.             {
  4963.                 new string[256];
  4964.                 format(string, 256, "Hit on %s (%i) for $%i", ReturnPlayerName(i), i, hit[i]);
  4965.                 SendClientMessage(playerid, COLOR_FOUND, string);
  4966.                 count++;
  4967.             }
  4968.         }
  4969.         if(count == 0)
  4970.         {
  4971.             SendClientMessage(playerid, COLOR_ERROR, "No hits placed at this time!");
  4972.         }
  4973.     }
  4974.    
  4975.     if(!strcmp(cmd, "/gps", true))
  4976.         {
  4977.         tmp = strtok(cmdtext,idx);
  4978.         if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "Use: /gps [playerid / off]");
  4979.                 if(!strcmp(tmp, "off", true)) {
  4980.                         if(HaveGPS[playerid]) {
  4981.                                 KillTimer(GPSTimer[playerid]);
  4982.                                 HaveGPS[playerid] = false;
  4983.                                 GPSTimer[playerid] = 0;
  4984.                                 DisablePlayerRaceCheckpoint(playerid);
  4985.                                 SendClientMessage(playerid, 0xFFFF00AA, "SERVER: GPS off.");
  4986.                         }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: Your GPS is not ON!");
  4987.                         return 1;
  4988.                 }
  4989.                 if(IsPlayerConnected(strval(tmp))) {
  4990.                         if(strval(tmp) != playerid) {
  4991.                                 if(HaveGPS[playerid]) {
  4992.                                         KillTimer(GPSTimer[playerid]);
  4993.                                         HaveGPS[playerid] = false;
  4994.                                         GPSTimer[playerid] = 0;
  4995.                                 }
  4996.                                 GPSTimer[playerid] = SetTimerEx("GPSUpdate", 500, true, "dd", playerid,strval(tmp));
  4997.                                 HaveGPS[playerid] = true;
  4998.                                 new str[128],nick[24];
  4999.                                 GetPlayerName(strval(tmp),nick,24);
  5000.                                 format(str,128,"SERVER: GPS enabled. Target: %s (ID: %d)",nick,strval(tmp));
  5001.                                 SendClientMessage(playerid, 0xFFFF00AA, str);
  5002.                         }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: can't use their ID !");
  5003.                 }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: This ID is not connected!");
  5004.                 return 1;
  5005.         }
  5006.         if(!strcmp(cmdtext,"/pc",true))
  5007.         {
  5008.         HideDraw(playerid);
  5009.         TextDrawShowForPlayer(playerid,text41);
  5010.         TextDrawShowForPlayer(playerid,text42);
  5011.         TextDrawShowForPlayer(playerid,PCBOX);
  5012.         TextDrawShowForPlayer(playerid,text43);
  5013.         return 1;
  5014.         }
  5015.         if(!strcmp(cmdtext,"/rules",true))
  5016.         {
  5017.         SendClientMessage(playerid, 0x00C2ECFF, "Rule 1: Do Not Hack, Cheat Or Bug Abuse Or You Will Get Kicked/Banned.");
  5018.         SendClientMessage(playerid, 0x00C2ECFF, "Rule 2: Do Not Deathmatch Other Players. Cops can only kill reds and oranges.");
  5019.         SendClientMessage(playerid, 0x00C2ECFF, "Rule 3: Do Not Insult Admins. Respect other players.");
  5020.         SendClientMessage(playerid, 0x00C2ECFF, "Rule 4: Do Not Ask To Be An Admin. We will ask you.");
  5021.         SendClientMessage(playerid, 0x00C2ECFF, "Rule 5: Do Not Bitch/Complain About The Server.");
  5022.         SendClientMessage(playerid, 0x00C2ECFF, "If you want to be admin, apply at www.rss-ro.com");
  5023.         return 1;
  5024.         }
  5025.     return SendClientMessage(playerid, ERROR, "Invalid command. Use /cmds to see the general commands.");
  5026. }
  5027.  
  5028. public OnPlayerStateChange(playerid, newstate, oldstate)
  5029. {
  5030.     new vehicleid = GetPlayerVehicleID(playerid);
  5031.     if(Spawned[playerid] == 1)
  5032.     {
  5033.     if(newstate == PLAYER_STATE_ONFOOT)
  5034.     {
  5035.     TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
  5036.     TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
  5037.     new string[250];
  5038.     TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  5039.     format(string,sizeof(string),"~w~LoLocation: ~w~%s" ,ReturnPlayerZone(playerid));
  5040.     TextDrawSetString(Speed[playerid][Speedom], string);
  5041.     }
  5042.     }
  5043. //--------------------------------------------------------------------------------------------------------------------------
  5044.     if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 490 || GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 528 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 599 || GetVehicleModel(vehicleid) == 601)
  5045.     {
  5046.         if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != ARMY && gTeam[playerid] != FBI && gTeam[playerid] != SWAT)
  5047.         {
  5048.             RemovePlayerFromVehicle(playerid);
  5049.             SendClientMessage(playerid, ERROR, "Only Police Officers can use this vehicle.");
  5050.         }
  5051.         else if(gTeam[playerid] == COP) SendClientMessage(playerid, WHITE, "This is a city's vehicle. You can use this one to work.");
  5052.         else if(gTeam[playerid] == Medic)
  5053.         {
  5054.             RemovePlayerFromVehicle(playerid);
  5055.             SendClientMessage(playerid, ERROR, "Only Police Officers can use this vehicle.");
  5056.         }
  5057.     }
  5058. //-----------------------------------------------TAXI----------------------------------------------------------------------
  5059.     new msg[255];
  5060.     if  (newstate==PLAYER_STATE_DRIVER)
  5061.         {
  5062.         if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 438)
  5063.             {
  5064.             if  (avisado[playerid]==-1)
  5065.                 {
  5066.                 GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Taxi~w~ Job.",5000,6);
  5067.                 }
  5068.             else
  5069.                 {
  5070.                 KillTimer(avisado[playerid]);
  5071.                 avisado[playerid]=-1;
  5072.                 }
  5073.             }
  5074.         }
  5075.     if  (newstate==PLAYER_STATE_ONFOOT)
  5076.         {
  5077.         if  ((playerInJob[playerid]>0)&&(avisado[playerid]==-1))
  5078.             {
  5079.             GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to enter in ~r~TAXI",5000,6);
  5080.             avisado[playerid]=SetTimerEx("terminarMission",10000,0,"%d",playerid);
  5081.             }
  5082.         if  (OnTaxiAsPassenger[playerid]!=-1)
  5083.             {
  5084.             new taxista = OnTaxiAsPassenger[playerid];
  5085.             new name[MAX_PLAYER_NAME];
  5086.             GetPlayerName(taxista,name,MAX_PLAYER_NAME);
  5087.             OnTaxiAsPassenger[playerid]=-1;
  5088.             new viaje = CostoDelViaje[playerid];
  5089.             format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Taxi Driver",name,viaje);
  5090.             GameTextForPlayer(playerid,msg,5000,6);
  5091.             format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Pasager.",viaje);
  5092.             GameTextForPlayer(taxista,msg,5000,6);
  5093.             GivePlayerMoney(playerid,-viaje);
  5094.             GivePlayerMoney(taxista,viaje);
  5095.             cantidadPasajeros--;
  5096.             if  (cantidadPasajeros==0)
  5097.                 {
  5098.                 KillTimer(caidadefichaTimer);
  5099.                 }
  5100.             }
  5101.         }
  5102.     if  (newstate==PLAYER_STATE_PASSENGER)
  5103.         {
  5104.         if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 438)
  5105.             {
  5106.             new i=0;
  5107.             while   (i<MAX_PLAYERS)
  5108.                     {
  5109.                     if  ((playerInJob[i]==1)&&(GetPlayerState(i)==PLAYER_STATE_DRIVER))
  5110.                         {
  5111.                         if  (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
  5112.                             {
  5113.                             new name[MAX_PLAYER_NAME];
  5114.                             GetPlayerName(i,name,MAX_PLAYER_NAME);
  5115.                             contador[i]++;
  5116.                             format(msg,sizeof(msg),"~w~You have gotten into ~n~~g~%s's ~r~Taxi~w~",name);
  5117.                             GameTextForPlayer(playerid,msg,5000,6);
  5118.                             format(msg,sizeof(msg),"~w~You have one new~n~~r~PASENGER~w~");
  5119.                             GameTextForPlayer(playerid,msg,5000,6);
  5120.                             OnTaxiAsPassenger[playerid]=i;
  5121.                             CostoDelViaje[playerid]=BAJADA_DE_BANDERA;
  5122.                             if  (cantidadPasajeros==0)
  5123.                                 {
  5124.                                 caidadefichaTimer=SetTimer("caidadeficha",30000,1);
  5125.                                 }
  5126.                             cantidadPasajeros++;
  5127.                             i=MAX_PLAYERS;
  5128.                             }
  5129.                         }
  5130.                     i++;
  5131.                     }
  5132.             }
  5133.         }
  5134. //-------------------------------------------------------------------------------------------------------------------------
  5135.     //BUS
  5136.     if  (newstate==PLAYER_STATE_DRIVER)
  5137.         {
  5138.         if (gTeam[playerid] == CIVILIAN && GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || gTeam[playerid] == CIVILIAN &&  GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
  5139.             {
  5140.             if  (avisado2[playerid]==-1)
  5141.                 {
  5142.                 GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Bus~w~ Job.",5000,6);
  5143.                 }
  5144.             else
  5145.                 {
  5146.                 KillTimer(avisado2[playerid]);
  5147.                 avisado2[playerid]=-1;
  5148.                 }
  5149.             }
  5150.         }
  5151.     if  (newstate==PLAYER_STATE_ONFOOT)
  5152.         {
  5153.         if  ((playerInMiniMission2[playerid]>0)&&(avisado2[playerid]==-1))
  5154.             {
  5155.             GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to enter a ~r~Bus",5000,6);
  5156.             avisado2[playerid]=SetTimerEx("terminarMission2",10000,0,"%d",playerid);
  5157.             }
  5158.         if  (OnBusAsPassenger[playerid]!=-1)
  5159.             {
  5160.             new Bussta = OnBusAsPassenger[playerid];
  5161.             new name[MAX_PLAYER_NAME];
  5162.             GetPlayerName(Bussta,name,MAX_PLAYER_NAME);
  5163.             OnBusAsPassenger[playerid]=-1;
  5164.             new viaje = CostoDelViaje2[playerid];
  5165.             format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Bus~w~ ride.",name,viaje);
  5166.             GameTextForPlayer(playerid,msg,5000,6);
  5167.             format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Bus~w~ ride.",viaje);
  5168.             GameTextForPlayer(Bussta,msg,5000,6);
  5169.             GivePlayerMoney(playerid,-viaje);
  5170.             GivePlayerMoney(Bussta,viaje);
  5171.             cantidadPasajeros2--;
  5172.             if  (cantidadPasajeros2==0)
  5173.                 {
  5174.                 KillTimer(caidadeficha2Timer2);
  5175.                 }
  5176.             }
  5177.         }
  5178.     if  (newstate==PLAYER_STATE_PASSENGER)
  5179.         {
  5180.         if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
  5181.             {
  5182.             new i=0;
  5183.             while   (i<MAX_PLAYERS)
  5184.                     {
  5185.                     if  ((playerInMiniMission2[i]==1)&&(GetPlayerState(i)==PLAYER_STATE_DRIVER))
  5186.                         {
  5187.                         if  (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
  5188.                             {
  5189.                             new name[MAX_PLAYER_NAME];
  5190.                             GetPlayerName(i,name,MAX_PLAYER_NAME);
  5191.                             contador2[i]++;
  5192.                             format(msg,sizeof(msg),"~w~You have gotten into ~n~~g~%s's ~r~Bus~w~",name);
  5193.                             GameTextForPlayer(playerid,msg,5000,6);
  5194.                             format(msg,sizeof(msg),"~w~You have one new~n~~r~PASENGER~w~");
  5195.                             GameTextForPlayer(playerid,msg,5000,6);
  5196.                             OnBusAsPassenger[playerid]=i;
  5197.                             CostoDelViaje2[playerid]=BAJADA_DE_BANDERA2;
  5198.                             if  (cantidadPasajeros2==0)
  5199.                                 {
  5200.                                 caidadeficha2Timer2=SetTimer("caidadeficha2",30000,1);
  5201.                                 }
  5202.                             cantidadPasajeros2++;
  5203.                             i=MAX_PLAYERS;
  5204.                             }
  5205.                         }
  5206.                     i++;
  5207.                     }
  5208.             }
  5209.         }
  5210.         //
  5211.         //Trash
  5212.         if  (newstate==PLAYER_STATE_DRIVER)
  5213.         {
  5214.         if (gTeam[playerid] == CIVILIAN && GetVehicleModel(GetPlayerVehicleID(playerid)) == 408)
  5215.             {
  5216.            
  5217.                 GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Bus~w~ Job.",5000,6);
  5218.             }
  5219.         }
  5220.         if  (newstate==PLAYER_STATE_ONFOOT)
  5221.         {
  5222.         if(InTrashMission[playerid] > 0)
  5223.         {
  5224.         DisablePlayerRaceCheckpoint(playerid);
  5225.         InTrashMission[playerid] = 0;
  5226.         SelectTM[playerid] = 0;
  5227.         }
  5228.         }
  5229.         //
  5230.     return true;
  5231. }
  5232. public OnPlayerEnterRaceCheckpoint(playerid)
  5233. {
  5234.     if(InBusMission[playerid] == 1) {
  5235.         if(currentcheckpoint[playerid] <= 2)
  5236.         {
  5237.             currentcheckpoint[playerid]++;
  5238.             DisablePlayerRaceCheckpoint(playerid);
  5239.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5240.             GivePlayerMoney(playerid,500);
  5241.             SetPlayerRaceCheckpoint(playerid,0,buslscps[currentcheckpoint[playerid]][0],buslscps[currentcheckpoint[playerid]][1],buslscps[currentcheckpoint[playerid]][2],
  5242.             buslscps[currentcheckpoint[playerid]+1][0],buslscps[currentcheckpoint[playerid]+1][1],buslscps[currentcheckpoint[playerid]+1][2],7);
  5243.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 16) {
  5244.             currentcheckpoint[playerid]++;
  5245.             DisablePlayerRaceCheckpoint(playerid);
  5246.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5247.             GivePlayerMoney(playerid,500);
  5248.             SetPlayerRaceCheckpoint(playerid,0,buslscps[currentcheckpoint[playerid]-4][0],buslscps[currentcheckpoint[playerid]-4][1],
  5249.             buslscps[currentcheckpoint[playerid]-4][2],buslscps[currentcheckpoint[playerid]-3][0],buslscps[currentcheckpoint[playerid]-3][1],
  5250.             buslscps[currentcheckpoint[playerid]-3][2],7);
  5251.         } else if(currentcheckpoint[playerid] == 16) {
  5252.             currentcheckpoint[playerid] = 0;
  5253.             SetPlayerRaceCheckpoint(playerid,0,buslscps[0][0],buslscps[0][1],buslscps[0][2],buslscps[1][0],buslscps[1][1],buslscps[1][2],7);
  5254.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5255.         }
  5256.     }
  5257.     if(InBusMission[playerid] == 2) {
  5258.         if(currentcheckpoint[playerid] <= 2)
  5259.         {
  5260.             currentcheckpoint[playerid]++;
  5261.             DisablePlayerRaceCheckpoint(playerid);
  5262.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5263.             GivePlayerMoney(playerid,500);
  5264.             SetPlayerRaceCheckpoint(playerid,0,bussfcps[currentcheckpoint[playerid]][0],bussfcps[currentcheckpoint[playerid]][1],bussfcps[currentcheckpoint[playerid]][2],
  5265.             bussfcps[currentcheckpoint[playerid]+1][0],bussfcps[currentcheckpoint[playerid]+1][1],bussfcps[currentcheckpoint[playerid]+1][2],7);
  5266.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 12) {
  5267.             currentcheckpoint[playerid]++;
  5268.             DisablePlayerRaceCheckpoint(playerid);
  5269.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5270.             GivePlayerMoney(playerid,500);
  5271.             SetPlayerRaceCheckpoint(playerid,0,bussfcps[currentcheckpoint[playerid]-4][0],bussfcps[currentcheckpoint[playerid]-4][1],
  5272.             bussfcps[currentcheckpoint[playerid]-4][2],bussfcps[currentcheckpoint[playerid]-3][0],bussfcps[currentcheckpoint[playerid]-3][1],
  5273.             bussfcps[currentcheckpoint[playerid]-3][2],7);
  5274.         } else if(currentcheckpoint[playerid] == 12) {
  5275.             currentcheckpoint[playerid] = 0;
  5276.             SetPlayerRaceCheckpoint(playerid,0,bussfcps[0][0],bussfcps[0][1],bussfcps[0][2],bussfcps[1][0],bussfcps[1][1],bussfcps[1][2],7);
  5277.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5278.         }
  5279.     }
  5280.     if(InBusMission[playerid] == 3) {
  5281.         if(currentcheckpoint[playerid] <= 2)
  5282.         {
  5283.             currentcheckpoint[playerid]++;
  5284.             DisablePlayerRaceCheckpoint(playerid);
  5285.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5286.             GivePlayerMoney(playerid,500);
  5287.             SetPlayerRaceCheckpoint(playerid,0,buslvcps[currentcheckpoint[playerid]][0],buslvcps[currentcheckpoint[playerid]][1],buslvcps[currentcheckpoint[playerid]][2],
  5288.             buslvcps[currentcheckpoint[playerid]+1][0],buslvcps[currentcheckpoint[playerid]+1][1],buslvcps[currentcheckpoint[playerid]+1][2],7);
  5289.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 14) {
  5290.             currentcheckpoint[playerid]++;
  5291.             DisablePlayerRaceCheckpoint(playerid);
  5292.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5293.             GivePlayerMoney(playerid,500);
  5294.             SetPlayerRaceCheckpoint(playerid,0,buslvcps[currentcheckpoint[playerid]-4][0],buslvcps[currentcheckpoint[playerid]-4][1],
  5295.             buslvcps[currentcheckpoint[playerid]-4][2],buslvcps[currentcheckpoint[playerid]-3][0],buslvcps[currentcheckpoint[playerid]-3][1],
  5296.             buslvcps[currentcheckpoint[playerid]-3][2],7);
  5297.         } else if(currentcheckpoint[playerid] == 14) {
  5298.             currentcheckpoint[playerid] = 0;
  5299.             SetPlayerRaceCheckpoint(playerid,0,buslvcps[0][0],buslvcps[0][1],buslvcps[0][2],buslvcps[1][0],buslvcps[1][1],buslvcps[1][2],7);
  5300.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5301.         }
  5302.     }
  5303.     if(InTrashMission[playerid] == 1) {
  5304.         if(currentcheckpoint[playerid] <= 2)
  5305.         {
  5306.             currentcheckpoint[playerid]++;
  5307.             DisablePlayerRaceCheckpoint(playerid);
  5308.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5309.             GivePlayerMoney(playerid,500);
  5310.             SetPlayerRaceCheckpoint(playerid,0,trashls[currentcheckpoint[playerid]][0],trashls[currentcheckpoint[playerid]][1],trashls[currentcheckpoint[playerid]][2],
  5311.             trashls[currentcheckpoint[playerid]+1][0],trashls[currentcheckpoint[playerid]+1][1],trashls[currentcheckpoint[playerid]+1][2],7);
  5312.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 13) {
  5313.             currentcheckpoint[playerid]++;
  5314.             DisablePlayerRaceCheckpoint(playerid);
  5315.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5316.             GivePlayerMoney(playerid,500);
  5317.             SetPlayerRaceCheckpoint(playerid,0,trashls[currentcheckpoint[playerid]-4][0],trashls[currentcheckpoint[playerid]-4][1],
  5318.             trashls[currentcheckpoint[playerid]-4][2],trashls[currentcheckpoint[playerid]-3][0],trashls[currentcheckpoint[playerid]-3][1],
  5319.             trashls[currentcheckpoint[playerid]-3][2],7);
  5320.         } else if(currentcheckpoint[playerid] == 13) {
  5321.             currentcheckpoint[playerid] = 0;
  5322.             SetPlayerRaceCheckpoint(playerid,0,trashls[0][0],trashls[0][1],trashls[0][2],trashls[1][0],trashls[1][1],trashls[1][2],7);
  5323.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5324.         }
  5325.     }
  5326.     if(InTrashMission[playerid] == 2) {
  5327.         if(currentcheckpoint[playerid] <= 2)
  5328.         {
  5329.             currentcheckpoint[playerid]++;
  5330.             DisablePlayerRaceCheckpoint(playerid);
  5331.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5332.             GivePlayerMoney(playerid,500);
  5333.             SetPlayerRaceCheckpoint(playerid,0,trashsf[currentcheckpoint[playerid]][0],trashsf[currentcheckpoint[playerid]][1],trashsf[currentcheckpoint[playerid]][2],
  5334.             trashsf[currentcheckpoint[playerid]+1][0],trashsf[currentcheckpoint[playerid]+1][1],trashsf[currentcheckpoint[playerid]+1][2],7);
  5335.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 9) {
  5336.             currentcheckpoint[playerid]++;
  5337.             DisablePlayerRaceCheckpoint(playerid);
  5338.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5339.             GivePlayerMoney(playerid,500);
  5340.             SetPlayerRaceCheckpoint(playerid,0,trashsf[currentcheckpoint[playerid]-4][0],trashsf[currentcheckpoint[playerid]-4][1],
  5341.             trashsf[currentcheckpoint[playerid]-4][2],trashsf[currentcheckpoint[playerid]-3][0],trashsf[currentcheckpoint[playerid]-3][1],
  5342.             trashsf[currentcheckpoint[playerid]-3][2],7);
  5343.         } else if(currentcheckpoint[playerid] == 9) {
  5344.             currentcheckpoint[playerid] = 0;
  5345.             SetPlayerRaceCheckpoint(playerid,0,trashsf[0][0],trashsf[0][1],trashsf[0][2],trashsf[1][0],trashsf[1][1],trashsf[1][2],7);
  5346.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5347.         }
  5348.     }
  5349.     if(InTrashMission[playerid] == 3) {
  5350.         if(currentcheckpoint[playerid] <= 2)
  5351.         {
  5352.             currentcheckpoint[playerid]++;
  5353.             DisablePlayerRaceCheckpoint(playerid);
  5354.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5355.             GivePlayerMoney(playerid,500);
  5356.             SetPlayerRaceCheckpoint(playerid,0,trashlv[currentcheckpoint[playerid]][0],trashlv[currentcheckpoint[playerid]][1],trashlv[currentcheckpoint[playerid]][2],
  5357.             trashlv[currentcheckpoint[playerid]+1][0],trashlv[currentcheckpoint[playerid]+1][1],trashlv[currentcheckpoint[playerid]+1][2],7);
  5358.         } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 13) {
  5359.             currentcheckpoint[playerid]++;
  5360.             DisablePlayerRaceCheckpoint(playerid);
  5361.             SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5362.             GivePlayerMoney(playerid,500);
  5363.             SetPlayerRaceCheckpoint(playerid,0,trashlv[currentcheckpoint[playerid]-4][0],trashlv[currentcheckpoint[playerid]-4][1],
  5364.             trashlv[currentcheckpoint[playerid]-4][2],trashlv[currentcheckpoint[playerid]-3][0],trashlv[currentcheckpoint[playerid]-3][1],
  5365.             trashlv[currentcheckpoint[playerid]-3][2],7);
  5366.         } else if(currentcheckpoint[playerid] == 13) {
  5367.             currentcheckpoint[playerid] = 0;
  5368.             SetPlayerRaceCheckpoint(playerid,0,trashlv[0][0],trashlv[0][1],trashlv[0][2],trashlv[1][0],trashlv[1][1],trashlv[1][2],7);
  5369.             SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5370.         }
  5371.     }
  5372.     return 1;
  5373. }
  5374.  
  5375. public OnPlayerEnterCheckpoint(playerid)
  5376. {
  5377.     if(CPS_IsPlayerInCheckpoint(playerid, cpcopLSjos))
  5378.     {
  5379.         if(!IsPlayerInAnyVehicle(playerid))
  5380.         {
  5381.             SetPlayerPos(playerid, 1574.0499,-1668.5148,28.3956);
  5382.         }
  5383.     }
  5384.  
  5385. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLSsus))
  5386.     {
  5387.         if(!IsPlayerInAnyVehicle(playerid))
  5388.         {
  5389.             SetPlayerPos(playerid, 1575.7050,-1692.9965,6.2188);
  5390.         }
  5391.     }
  5392.  
  5393.     if(CPS_IsPlayerInCheckpoint(playerid, cpcopLVjos))
  5394.     {
  5395.         if(!IsPlayerInAnyVehicle(playerid))
  5396.         {
  5397.             SetPlayerPos(playerid, 2277.9282,2459.3528,38.6837);
  5398.         }
  5399.     }
  5400.  
  5401. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLVsus))
  5402.     {
  5403.         if(!IsPlayerInAnyVehicle(playerid))
  5404.         {
  5405.             SetPlayerPos(playerid, 2276.2097,2445.7578,3.5313);
  5406.         }
  5407.     }
  5408.  
  5409.  
  5410. if(CPS_IsPlayerInCheckpoint(playerid, cpcopSFjos))
  5411.     {
  5412.         if(!IsPlayerInAnyVehicle(playerid))
  5413.         {
  5414.             SetPlayerPos(playerid, -1589.9498,724.9433,-4.9063);
  5415.         }
  5416.     }
  5417.  
  5418. if(CPS_IsPlayerInCheckpoint(playerid, cpcopSFsus))
  5419.     {
  5420.         if(!IsPlayerInAnyVehicle(playerid))
  5421.         {
  5422.             SetPlayerPos(playerid, -1620.5464,707.2188,48.9375);
  5423.         }
  5424.     }
  5425.     if(CPS_IsPlayerInCheckpoint(playerid, cpbankentrance))
  5426.     {
  5427.         if(!IsPlayerInAnyVehicle(playerid))
  5428.         {
  5429.             SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5430.             SetPlayerFacingAngle(playerid, 270.7787);
  5431.             BK[playerid] = 1;
  5432.             SetCameraBehindPlayer(playerid);
  5433.         }
  5434.     }
  5435.     if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragonsentrace))
  5436.     {
  5437.         if(!IsPlayerInAnyVehicle(playerid))
  5438.         {
  5439.             SetPlayerPos(playerid, 2016.2699,1017.7790,996.8750);
  5440.             SetPlayerInterior(playerid,10);
  5441.             SetCameraBehindPlayer(playerid);
  5442.         }
  5443.     }
  5444.     if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragonsexit))
  5445.     {
  5446.         if(!IsPlayerInAnyVehicle(playerid))
  5447.         {
  5448.             SetPlayerPos(playerid, 2024.4655,1007.9456,10.8203);
  5449.             SetPlayerInterior(playerid,0);
  5450.             SetCameraBehindPlayer(playerid);
  5451.         }
  5452.     }
  5453.     if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulasentrace))
  5454.     {
  5455.         if(!IsPlayerInAnyVehicle(playerid))
  5456.         {
  5457.             SetPlayerPos(playerid, 2233.8032,1712.2303,1011.7632);
  5458.             SetPlayerInterior(playerid,1);
  5459.             SetCameraBehindPlayer(playerid);
  5460.         }
  5461.     }
  5462.     if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulasexit))
  5463.     {
  5464.         if(!IsPlayerInAnyVehicle(playerid))
  5465.         {
  5466.             SetPlayerPos(playerid, 2192.7700,1676.9839,12.3672);
  5467.             SetPlayerInterior(playerid,0);
  5468.             SetCameraBehindPlayer(playerid);
  5469.         }
  5470.     }
  5471.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace1))
  5472.     {
  5473.         if(!IsPlayerInAnyVehicle(playerid))
  5474.         {
  5475.             SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5476.             SetPlayerInterior(playerid, 1);
  5477.             AMMU[playerid] = 1;
  5478.             SetCameraBehindPlayer(playerid);
  5479.         }
  5480.     }
  5481.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace2))
  5482.     {
  5483.         if(!IsPlayerInAnyVehicle(playerid))
  5484.         {
  5485.             SetPlayerPos(playerid, 314.820984,-141.431992,999.661987);
  5486.             SetPlayerInterior(playerid, 7);
  5487.             AMMU[playerid] = 2;
  5488.             SetCameraBehindPlayer(playerid);
  5489.         }
  5490.     }
  5491.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace3))
  5492.     {
  5493.         if(!IsPlayerInAnyVehicle(playerid))
  5494.         {
  5495.             SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5496.             SetPlayerInterior(playerid, 4);
  5497.             AMMU[playerid] = 3;
  5498.             SetCameraBehindPlayer(playerid);
  5499.         }
  5500.     }
  5501.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace4))
  5502.     {
  5503.         if(!IsPlayerInAnyVehicle(playerid))
  5504.         {
  5505.             SetPlayerPos(playerid, 316.524994,-167.706985,999.661987);
  5506.             SetPlayerInterior(playerid, 6);
  5507.             AMMU[playerid] = 4;
  5508.             SetCameraBehindPlayer(playerid);
  5509.         }
  5510.     }
  5511.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace5))
  5512.     {
  5513.         if(!IsPlayerInAnyVehicle(playerid))
  5514.         {
  5515.             SetPlayerPos(playerid, 296.919983,-108.071999,1001.569946 );
  5516.             SetPlayerInterior(playerid, 6);
  5517.             AMMU[playerid] = 5;
  5518.             SetCameraBehindPlayer(playerid);
  5519.         }
  5520.     }
  5521.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace6))
  5522.     {
  5523.         if(!IsPlayerInAnyVehicle(playerid))
  5524.         {
  5525.             SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5526.             SetPlayerInterior(playerid, 4);
  5527.             AMMU[playerid] = 6;
  5528.             SetCameraBehindPlayer(playerid);
  5529.         }
  5530.     }
  5531.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace7))
  5532.     {
  5533.         if(!IsPlayerInAnyVehicle(playerid))
  5534.         {
  5535.             SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5536.             SetPlayerInterior(playerid, 1);
  5537.             AMMU[playerid] = 7;
  5538.             SetCameraBehindPlayer(playerid);
  5539.         }
  5540.     }
  5541.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace8))
  5542.     {
  5543.         if(!IsPlayerInAnyVehicle(playerid))
  5544.         {
  5545.             SetPlayerPos(playerid, 316.524994,-167.706985,999.661987);
  5546.             SetPlayerInterior(playerid, 6);
  5547.             AMMU[playerid] = 8;
  5548.             SetCameraBehindPlayer(playerid);
  5549.         }
  5550.     }
  5551.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace9))
  5552.     {
  5553.         if(!IsPlayerInAnyVehicle(playerid))
  5554.         {
  5555.             SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5556.             SetPlayerInterior(playerid, 1);
  5557.             AMMU[playerid] = 9;
  5558.             SetCameraBehindPlayer(playerid);
  5559.         }
  5560.     }
  5561.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace10))
  5562.     {
  5563.         if(!IsPlayerInAnyVehicle(playerid))
  5564.         {
  5565.             SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5566.             SetPlayerInterior(playerid, 4);
  5567.             AMMU[playerid] = 10;
  5568.             SetCameraBehindPlayer(playerid);
  5569.         }
  5570.     }
  5571.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit))
  5572.     {
  5573.         if(AMMU[playerid] == 1)
  5574.         {
  5575.             SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5576.             SetPlayerInterior(playerid, 0);
  5577.             AMMU[playerid] = 0;
  5578.             SetCameraBehindPlayer(playerid);
  5579.         }
  5580.         if(AMMU[playerid] == 2)
  5581.         {
  5582.             SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5583.             SetPlayerInterior(playerid, 0);
  5584.             AMMU[playerid] = 0;
  5585.             SetCameraBehindPlayer(playerid);
  5586.         }
  5587.         if(AMMU[playerid] == 3)
  5588.         {
  5589.             SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5590.             SetPlayerInterior(playerid, 0);
  5591.             AMMU[playerid] = 0;
  5592.             SetCameraBehindPlayer(playerid);
  5593.         }
  5594.         if(AMMU[playerid] == 4)
  5595.         {
  5596.             SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5597.             SetPlayerInterior(playerid, 0);
  5598.             AMMU[playerid] = 0;
  5599.             SetCameraBehindPlayer(playerid);
  5600.         }
  5601.         if(AMMU[playerid] == 5)
  5602.         {
  5603.             SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5604.             SetPlayerInterior(playerid, 0);
  5605.             AMMU[playerid] = 0;
  5606.             SetCameraBehindPlayer(playerid);
  5607.         }
  5608.         if(AMMU[playerid] == 6)
  5609.         {
  5610.             SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5611.             SetPlayerInterior(playerid, 0);
  5612.             AMMU[playerid] = 0;
  5613.             SetCameraBehindPlayer(playerid);
  5614.         }
  5615.         if(AMMU[playerid] == 7)
  5616.         {
  5617.             SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5618.             SetPlayerInterior(playerid, 0);
  5619.             AMMU[playerid] = 0;
  5620.             SetCameraBehindPlayer(playerid);
  5621.         }
  5622.         if(AMMU[playerid] == 8)
  5623.         {
  5624.             SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5625.             SetPlayerInterior(playerid, 0);
  5626.             AMMU[playerid] = 0;
  5627.             SetCameraBehindPlayer(playerid);
  5628.         }
  5629.         if(AMMU[playerid] == 9)
  5630.         {
  5631.             SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5632.             SetPlayerInterior(playerid, 0);
  5633.             AMMU[playerid] = 0;
  5634.             SetCameraBehindPlayer(playerid);
  5635.         }
  5636.         if(AMMU[playerid] == 10)
  5637.         {
  5638.             SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5639.             SetPlayerInterior(playerid, 0);
  5640.             AMMU[playerid] = 0;
  5641.             SetCameraBehindPlayer(playerid);
  5642.         }
  5643.     }
  5644.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit2))
  5645.     {
  5646.         if(AMMU[playerid] == 1)
  5647.         {
  5648.             SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5649.             SetPlayerInterior(playerid, 0);
  5650.             AMMU[playerid] = 0;
  5651.             SetCameraBehindPlayer(playerid);
  5652.         }
  5653.         if(AMMU[playerid] == 2)
  5654.         {
  5655.             SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5656.             SetPlayerInterior(playerid, 0);
  5657.             AMMU[playerid] = 0;
  5658.             SetCameraBehindPlayer(playerid);
  5659.         }
  5660.         if(AMMU[playerid] == 3)
  5661.         {
  5662.             SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5663.             SetPlayerInterior(playerid, 0);
  5664.             AMMU[playerid] = 0;
  5665.             SetCameraBehindPlayer(playerid);
  5666.         }
  5667.         if(AMMU[playerid] == 4)
  5668.         {
  5669.             SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5670.             SetPlayerInterior(playerid, 0);
  5671.             AMMU[playerid] = 0;
  5672.             SetCameraBehindPlayer(playerid);
  5673.         }
  5674.         if(AMMU[playerid] == 5)
  5675.         {
  5676.             SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5677.             SetPlayerInterior(playerid, 0);
  5678.             AMMU[playerid] = 0;
  5679.             SetCameraBehindPlayer(playerid);
  5680.         }
  5681.         if(AMMU[playerid] == 6)
  5682.         {
  5683.             SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5684.             SetPlayerInterior(playerid, 0);
  5685.             AMMU[playerid] = 0;
  5686.             SetCameraBehindPlayer(playerid);
  5687.         }
  5688.         if(AMMU[playerid] == 7)
  5689.         {
  5690.             SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5691.             SetPlayerInterior(playerid, 0);
  5692.             AMMU[playerid] = 0;
  5693.             SetCameraBehindPlayer(playerid);
  5694.         }
  5695.         if(AMMU[playerid] == 8)
  5696.         {
  5697.             SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5698.             SetPlayerInterior(playerid, 0);
  5699.             AMMU[playerid] = 0;
  5700.             SetCameraBehindPlayer(playerid);
  5701.         }
  5702.         if(AMMU[playerid] == 9)
  5703.         {
  5704.             SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5705.             SetPlayerInterior(playerid, 0);
  5706.             AMMU[playerid] = 0;
  5707.             SetCameraBehindPlayer(playerid);
  5708.         }
  5709.         if(AMMU[playerid] == 10)
  5710.         {
  5711.             SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5712.             SetPlayerInterior(playerid, 0);
  5713.             AMMU[playerid] = 0;
  5714.             SetCameraBehindPlayer(playerid);
  5715.         }
  5716.     }
  5717.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit3))
  5718.     {
  5719.         if(AMMU[playerid] == 1)
  5720.         {
  5721.             SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5722.             SetPlayerInterior(playerid, 0);
  5723.             AMMU[playerid] = 0;
  5724.             SetCameraBehindPlayer(playerid);
  5725.         }
  5726.         if(AMMU[playerid] == 2)
  5727.         {
  5728.             SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5729.             SetPlayerInterior(playerid, 0);
  5730.             AMMU[playerid] = 0;
  5731.             SetCameraBehindPlayer(playerid);
  5732.         }
  5733.         if(AMMU[playerid] == 3)
  5734.         {
  5735.             SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5736.             SetPlayerInterior(playerid, 0);
  5737.             AMMU[playerid] = 0;
  5738.             SetCameraBehindPlayer(playerid);
  5739.         }
  5740.         if(AMMU[playerid] == 4)
  5741.         {
  5742.             SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5743.             SetPlayerInterior(playerid, 0);
  5744.             AMMU[playerid] = 0;
  5745.             SetCameraBehindPlayer(playerid);
  5746.         }
  5747.         if(AMMU[playerid] == 5)
  5748.         {
  5749.             SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5750.             SetPlayerInterior(playerid, 0);
  5751.             AMMU[playerid] = 0;
  5752.             SetCameraBehindPlayer(playerid);
  5753.         }
  5754.         if(AMMU[playerid] == 6)
  5755.         {
  5756.             SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5757.             SetPlayerInterior(playerid, 0);
  5758.             AMMU[playerid] = 0;
  5759.             SetCameraBehindPlayer(playerid);
  5760.         }
  5761.         if(AMMU[playerid] == 7)
  5762.         {
  5763.             SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5764.             SetPlayerInterior(playerid, 0);
  5765.             AMMU[playerid] = 0;
  5766.             SetCameraBehindPlayer(playerid);
  5767.         }
  5768.         if(AMMU[playerid] == 8)
  5769.         {
  5770.             SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5771.             SetPlayerInterior(playerid, 0);
  5772.             AMMU[playerid] = 0;
  5773.             SetCameraBehindPlayer(playerid);
  5774.         }
  5775.         if(AMMU[playerid] == 9)
  5776.         {
  5777.             SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5778.             SetPlayerInterior(playerid, 0);
  5779.             AMMU[playerid] = 0;
  5780.             SetCameraBehindPlayer(playerid);
  5781.         }
  5782.         if(AMMU[playerid] == 10)
  5783.         {
  5784.             SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5785.             SetPlayerInterior(playerid, 0);
  5786.             AMMU[playerid] = 0;
  5787.             SetCameraBehindPlayer(playerid);
  5788.         }
  5789.     }
  5790.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit4))
  5791.     {
  5792.         if(AMMU[playerid] == 1)
  5793.         {
  5794.             SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5795.             SetPlayerInterior(playerid, 0);
  5796.             AMMU[playerid] = 0;
  5797.             SetCameraBehindPlayer(playerid);
  5798.         }
  5799.         if(AMMU[playerid] == 2)
  5800.         {
  5801.             SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5802.             SetPlayerInterior(playerid, 0);
  5803.             AMMU[playerid] = 0;
  5804.             SetCameraBehindPlayer(playerid);
  5805.         }
  5806.         if(AMMU[playerid] == 3)
  5807.         {
  5808.             SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5809.             SetPlayerInterior(playerid, 0);
  5810.             AMMU[playerid] = 0;
  5811.             SetCameraBehindPlayer(playerid);
  5812.         }
  5813.         if(AMMU[playerid] == 4)
  5814.         {
  5815.             SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5816.             SetPlayerInterior(playerid, 0);
  5817.             AMMU[playerid] = 0;
  5818.             SetCameraBehindPlayer(playerid);
  5819.         }
  5820.         if(AMMU[playerid] == 5)
  5821.         {
  5822.             SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5823.             SetPlayerInterior(playerid, 0);
  5824.             AMMU[playerid] = 0;
  5825.             SetCameraBehindPlayer(playerid);
  5826.         }
  5827.         if(AMMU[playerid] == 6)
  5828.         {
  5829.             SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5830.             SetPlayerInterior(playerid, 0);
  5831.             AMMU[playerid] = 0;
  5832.             SetCameraBehindPlayer(playerid);
  5833.         }
  5834.         if(AMMU[playerid] == 7)
  5835.         {
  5836.             SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5837.             SetPlayerInterior(playerid, 0);
  5838.             AMMU[playerid] = 0;
  5839.             SetCameraBehindPlayer(playerid);
  5840.         }
  5841.         if(AMMU[playerid] == 8)
  5842.         {
  5843.             SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5844.             SetPlayerInterior(playerid, 0);
  5845.             AMMU[playerid] = 0;
  5846.             SetCameraBehindPlayer(playerid);
  5847.         }
  5848.         if(AMMU[playerid] == 9)
  5849.         {
  5850.             SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5851.             SetPlayerInterior(playerid, 0);
  5852.             AMMU[playerid] = 0;
  5853.             SetCameraBehindPlayer(playerid);
  5854.         }
  5855.         if(AMMU[playerid] == 10)
  5856.         {
  5857.             SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5858.             SetPlayerInterior(playerid, 0);
  5859.             AMMU[playerid] = 0;
  5860.             SetCameraBehindPlayer(playerid);
  5861.         }
  5862.     }
  5863.     if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit5))
  5864.     {
  5865.         if(AMMU[playerid] == 1)
  5866.         {
  5867.             SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5868.             SetPlayerInterior(playerid, 0);
  5869.             AMMU[playerid] = 0;
  5870.             SetCameraBehindPlayer(playerid);
  5871.         }
  5872.         if(AMMU[playerid] == 2)
  5873.         {
  5874.             SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5875.             SetPlayerInterior(playerid, 0);
  5876.             AMMU[playerid] = 0;
  5877.             SetCameraBehindPlayer(playerid);
  5878.         }
  5879.         if(AMMU[playerid] == 3)
  5880.         {
  5881.             SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5882.             SetPlayerInterior(playerid, 0);
  5883.             AMMU[playerid] = 0;
  5884.             SetCameraBehindPlayer(playerid);
  5885.         }
  5886.         if(AMMU[playerid] == 4)
  5887.         {
  5888.             SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5889.             SetPlayerInterior(playerid, 0);
  5890.             AMMU[playerid] = 0;
  5891.             SetCameraBehindPlayer(playerid);
  5892.         }
  5893.         if(AMMU[playerid] == 5)
  5894.         {
  5895.             SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5896.             SetPlayerInterior(playerid, 0);
  5897.             AMMU[playerid] = 0;
  5898.             SetCameraBehindPlayer(playerid);
  5899.         }
  5900.         if(AMMU[playerid] == 6)
  5901.         {
  5902.             SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5903.             SetPlayerInterior(playerid, 0);
  5904.             AMMU[playerid] = 0;
  5905.             SetCameraBehindPlayer(playerid);
  5906.         }
  5907.         if(AMMU[playerid] == 7)
  5908.         {
  5909.             SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5910.             SetPlayerInterior(playerid, 0);
  5911.             AMMU[playerid] = 0;
  5912.             SetCameraBehindPlayer(playerid);
  5913.         }
  5914.         if(AMMU[playerid] == 8)
  5915.         {
  5916.             SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5917.             SetPlayerInterior(playerid, 0);
  5918.             AMMU[playerid] = 0;
  5919.             SetCameraBehindPlayer(playerid);
  5920.         }
  5921.         if(AMMU[playerid] == 9)
  5922.         {
  5923.             SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5924.             SetPlayerInterior(playerid, 0);
  5925.             AMMU[playerid] = 0;
  5926.             SetCameraBehindPlayer(playerid);
  5927.         }
  5928.         if(AMMU[playerid] == 10)
  5929.         {
  5930.             SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5931.             SetPlayerInterior(playerid, 0);
  5932.             AMMU[playerid] = 0;
  5933.             SetCameraBehindPlayer(playerid);
  5934.         }
  5935.     }
  5936.     if(CPS_IsPlayerInCheckpoint(playerid, cplsbankentrance))
  5937.     {
  5938.         if(!IsPlayerInAnyVehicle(playerid))
  5939.         {
  5940.             SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5941.             SetPlayerFacingAngle(playerid, 270.7787);
  5942.             BK[playerid] = 2;
  5943.             SetCameraBehindPlayer(playerid);
  5944.         }
  5945.     }
  5946.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfbankentrance))
  5947.     {
  5948.         if(!IsPlayerInAnyVehicle(playerid))
  5949.         {
  5950.             SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5951.             SetPlayerFacingAngle(playerid, 270.7787);
  5952.             BK[playerid] = 3;
  5953.             SetCameraBehindPlayer(playerid);
  5954.         }
  5955.     }
  5956.  
  5957.     if(CPS_IsPlayerInCheckpoint(playerid, cpbankexit))
  5958.     {
  5959.         if(BK[playerid] == 1)
  5960.         {
  5961.         SetPlayerPos(playerid, 2030.2551, 1913.0118, 12.3059);
  5962.         SetPlayerFacingAngle(playerid, 276.3724);
  5963.         SetCameraBehindPlayer(playerid);
  5964.         }
  5965.         if(BK[playerid] == 2)
  5966.         {
  5967.         SetPlayerPos(playerid, 1415.9304,-1703.1160,13.5395);
  5968.         SetPlayerFacingAngle(playerid, 249.8486);
  5969.         SetCameraBehindPlayer(playerid);
  5970.         }
  5971.         if(BK[playerid] == 3)
  5972.         {
  5973.         SetPlayerPos(playerid, -1581.3892,863.6969,7.4521);
  5974.         SetPlayerFacingAngle(playerid, 179.7295);
  5975.         SetCameraBehindPlayer(playerid);
  5976.         }
  5977.     }
  5978.  
  5979.     if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  5980.     {
  5981.         SendClientMessage(playerid, GREY, "|_| RuNix's Intl. Bank |_|");
  5982.         SendClientMessage(playerid, WHITE, "Deposit (/deposit)");
  5983.         SendClientMessage(playerid, WHITE, "Withdraw (/withdraw)");
  5984.         SendClientMessage(playerid, WHITE, "State (/state)");
  5985.         SendClientMessage(playerid, WHITE, "Rob /robbank");
  5986.     }
  5987.    
  5988.     if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulas))
  5989.     {
  5990.         SendClientMessage(playerid, GREY, "|_| Caligulas Casino |_|");
  5991.         SendClientMessage(playerid, WHITE, "Rob /robcasino");
  5992.     }
  5993.    
  5994.     if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragons))
  5995.     {
  5996.         SendClientMessage(playerid, GREY, "|_| 4Dragons Casino |_|");
  5997.         SendClientMessage(playerid, WHITE, "Rob /robcasino");
  5998.     }
  5999.  
  6000. if(CPS_IsPlayerInCheckpoint(playerid, cpatm1) || CPS_IsPlayerInCheckpoint(playerid, cpatm2) || CPS_IsPlayerInCheckpoint(playerid, cpatm3) || CPS_IsPlayerInCheckpoint(playerid, cpatm4) || CPS_IsPlayerInCheckpoint(playerid, cpatm5) || CPS_IsPlayerInCheckpoint(playerid, cpatm6) || CPS_IsPlayerInCheckpoint(playerid, cpatm7) || CPS_IsPlayerInCheckpoint(playerid, cpatm9) || CPS_IsPlayerInCheckpoint(playerid, cpatm10) || CPS_IsPlayerInCheckpoint(playerid, cpatm11))
  6001.     {
  6002.         if(!IsPlayerInAnyVehicle(playerid))
  6003.         {
  6004.             SendClientMessage(playerid, GREY, "|_| RuNix's Intl. 24 Hours |_|");
  6005.             SendClientMessage(playerid, WHITE, "Withdraw: /withdraw");
  6006.             SendClientMessage(playerid, WHITE, "State /state");
  6007.             SendClientMessage(playerid, WHITE, "Rob /robatm");
  6008.         }
  6009.     }
  6010.  
  6011.     if(CPS_IsPlayerInCheckpoint(playerid, cplvpdentrance))
  6012.     {
  6013.         if(!IsPlayerInAnyVehicle(playerid))
  6014.         {
  6015.             SetPlayerInterior(playerid, 3);
  6016.             SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6017.             SetPlayerFacingAngle(playerid, 0);
  6018.             SetCameraBehindPlayer(playerid);
  6019.             PD[playerid] = 1;
  6020.             SendClientMessage(playerid, WHITE, "Welcome to Las Venturas Police Dept.");
  6021.         }
  6022.     }
  6023.  
  6024.     if(CPS_IsPlayerInCheckpoint(playerid, cplspdentrance))
  6025.     {
  6026.         if(!IsPlayerInAnyVehicle(playerid))
  6027.         {
  6028.             SetPlayerInterior(playerid, 3);
  6029.             SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6030.             SetPlayerFacingAngle(playerid, 0);
  6031.             SetCameraBehindPlayer(playerid);
  6032.             PD[playerid] = 2;
  6033.             SendClientMessage(playerid, WHITE, "Welcome to Los Santos Police Dept.");
  6034.         }
  6035.     }
  6036.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfpdentrance))
  6037.     {
  6038.         if(!IsPlayerInAnyVehicle(playerid))
  6039.         {
  6040.             SetPlayerInterior(playerid, 3);
  6041.             SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6042.             SetPlayerFacingAngle(playerid, 0);
  6043.             SetCameraBehindPlayer(playerid);
  6044.             PD[playerid] = 3;
  6045.             SendClientMessage(playerid, WHITE, "Welcome to San Fierro Police Dept.");
  6046.         }
  6047.     }
  6048.  
  6049.     if(CPS_IsPlayerInCheckpoint(playerid, cplvpdexit))
  6050.     {
  6051.         if(PD[playerid] == 1)
  6052.         {
  6053.         SetPlayerInterior(playerid, 0);
  6054.         SetPlayerPos(playerid, 2286.9600, 2429.1101, 10.8203);
  6055.         SetPlayerFacingAngle(playerid, 180.0000);
  6056.         SetCameraBehindPlayer(playerid);
  6057.         }
  6058.         if(PD[playerid] == 2)
  6059.         {
  6060.         SetPlayerInterior(playerid, 0);
  6061.         SetPlayerPos(playerid, 1546.1191,-1675.5358,13.5617);
  6062.         SetPlayerFacingAngle(playerid, 86.9884);
  6063.         SetCameraBehindPlayer(playerid);
  6064.         }
  6065.         if(PD[playerid] == 3)
  6066.         {
  6067.         SetPlayerInterior(playerid, 0);
  6068.         SetPlayerPos(playerid, -1605.8496,715.8705,12.0609);
  6069.         SetPlayerFacingAngle(playerid, 6.5275);
  6070.         SetCameraBehindPlayer(playerid);
  6071.         }
  6072.     }
  6073.  
  6074.     if(CPS_IsPlayerInCheckpoint(playerid, cplvpdhand))
  6075.     {
  6076.         if(GetPlayerWantedLevel(playerid) > 3)
  6077.         {
  6078.             if(PD[playerid] == 1)
  6079.             {
  6080.             SendClientMessage(playerid, GREY, "|_| Las Venturas PD |_|");
  6081.             SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6082.             ShowMenuForPlayer(Hand, playerid);
  6083.             TogglePlayerControllable(playerid, false);
  6084.             }
  6085.             if(PD[playerid] == 2)
  6086.             {
  6087.             SendClientMessage(playerid, GREY, "|_| Los Santos PD |_|");
  6088.             SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6089.             ShowMenuForPlayer(Hand, playerid);
  6090.             TogglePlayerControllable(playerid, false);
  6091.             }
  6092.             if(PD[playerid] == 3)
  6093.             {
  6094.             SendClientMessage(playerid, GREY, "|_| San Fierro PD |_|");
  6095.             SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6096.             ShowMenuForPlayer(Hand, playerid);
  6097.             TogglePlayerControllable(playerid, false);
  6098.             }
  6099.         }
  6100.         else
  6101.         {
  6102.             new string[250];
  6103.             SendClientMessage(playerid, ERROR, "Only people with 4 or more Wanted Levels can hand themselves");
  6104.             format(string, sizeof(string), "Your current Wanted Level: %d", GetPlayerWantedLevel(playerid));
  6105.             SendClientMessage(playerid, ERROR, string);
  6106.         }
  6107.     }
  6108.  
  6109.     if(CPS_IsPlayerInCheckpoint(playerid, cphospital) || CPS_IsPlayerInCheckpoint(playerid, cplshospital) || CPS_IsPlayerInCheckpoint(playerid, cpsfhospital))
  6110.     {
  6111.         if(!IsPlayerInAnyVehicle(playerid))
  6112.         {
  6113.             SendClientMessage(playerid, WHITE, "Need medical assistance? Type /healme ($500)");
  6114.         }
  6115.     }
  6116.  
  6117.     if(CPS_IsPlayerInCheckpoint(playerid, cpdildoentrance))
  6118.     {
  6119.         if(!IsPlayerInAnyVehicle(playerid))
  6120.         {
  6121.             SetPlayerInterior(playerid, 3);
  6122.             SetPlayerPos(playerid, -99.9340, -20.6957, 1000.7188);
  6123.             SetPlayerFacingAngle(playerid, 0.5315);
  6124.             SetCameraBehindPlayer(playerid);
  6125.             SendClientMessage(playerid, WHITE, "Welcome to Las Venturas Dildos.");
  6126.         }
  6127.     }
  6128.  
  6129.     if(CPS_IsPlayerInCheckpoint(playerid, cpdildoexit))
  6130.     {
  6131.         SetPlayerInterior(playerid, 0);
  6132.         SetPlayerPos(playerid, 2088.4480, 2074.0068, 10.8203);
  6133.         SetPlayerFacingAngle(playerid, 270.7921);
  6134.         SetCameraBehindPlayer(playerid);
  6135.     }
  6136.  
  6137.     if(CPS_IsPlayerInCheckpoint(playerid, cpdildo))
  6138.     {
  6139.         TogglePlayerControllable(playerid, false);
  6140.         ShowMenuForPlayer(Dildo, playerid);
  6141.     }
  6142.  
  6143.     if(CPS_IsPlayerInCheckpoint(playerid, cplvchentrance))
  6144.     {
  6145.         if(!IsPlayerInAnyVehicle(playerid))
  6146.         {
  6147.             SetPlayerInterior(playerid, 3);
  6148.             SetPlayerPos(playerid, 384.6555, 173.7660, 1008.3828);
  6149.             SetPlayerFacingAngle(playerid, 90.5014);
  6150.             SetCameraBehindPlayer(playerid);
  6151.             CH[playerid] = 1;
  6152.             SendClientMessage(playerid, WHITE, "Welcome to Las Venturas City Hall.");
  6153.         }
  6154.     }
  6155.  
  6156.     if(CPS_IsPlayerInCheckpoint(playerid, cplschentrance))
  6157.     {
  6158.         if(!IsPlayerInAnyVehicle(playerid))
  6159.         {
  6160.             SetPlayerInterior(playerid, 3);
  6161.             SetPlayerPos(playerid, 384.6555, 173.7660, 1008.3828);
  6162.             SetPlayerFacingAngle(playerid, 90.5014);
  6163.             SetCameraBehindPlayer(playerid);
  6164.             CH[playerid] = 2;
  6165.             SendClientMessage(playerid, WHITE, "Welcome to Los Santos City Hall.");
  6166.         }
  6167.     }
  6168.  
  6169.     if(CPS_IsPlayerInCheckpoint(playerid, cplvchexit))
  6170.     {
  6171.         if(CH[playerid] == 1)
  6172.         {
  6173.         SetPlayerInterior(playerid, 0);
  6174.         SetPlayerPos(playerid, 2417.2981, 1123.3763, 10.8203);
  6175.         SetPlayerFacingAngle(playerid, 271.8128);
  6176.         SetCameraBehindPlayer(playerid);
  6177.         }
  6178.         if(CH[playerid] == 2)
  6179.         {
  6180.         SetPlayerInterior(playerid, 0);
  6181.         SetPlayerPos(playerid, 1481.1832,-1765.8462,18.7958);
  6182.         SetPlayerFacingAngle(playerid, 357.3454);
  6183.         SetCameraBehindPlayer(playerid);
  6184.         }
  6185.     }
  6186.  
  6187.     if(CPS_IsPlayerInCheckpoint(playerid, cpcityhall))
  6188.     {
  6189.         new string[128];
  6190.         HideDraw(playerid);
  6191.         TextDrawShowForPlayer(playerid, HALLBOX);
  6192.         TextDrawShowForPlayer(playerid, text9);
  6193.         TextDrawShowForPlayer(playerid, text19);
  6194.         format(string, sizeof(string),"~n~~r~1.~w~Change Class~n~~n~~r~2.~w~Rob City hall");
  6195.         TextDrawSetString(text19, string);
  6196.         CHALLBOX[playerid] = 1;
  6197.         TogglePlayerControllable(playerid, false);
  6198.     }
  6199.    
  6200.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu))
  6201.     {
  6202.         HideDraw(playerid);
  6203.         TextDrawShowForPlayer(playerid, AMMUBOX1);
  6204.         TextDrawShowForPlayer(playerid, text37);
  6205.         TextDrawShowForPlayer(playerid, text38);
  6206.         AMMUBOX[playerid] = 1;
  6207.     }
  6208.    
  6209.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu2))
  6210.     {
  6211.         HideDraw(playerid);
  6212.         TextDrawShowForPlayer(playerid, AMMUBOX1);
  6213.         TextDrawShowForPlayer(playerid, text37);
  6214.         TextDrawShowForPlayer(playerid, text38);
  6215.         AMMUBOX[playerid] = 1;
  6216.     }
  6217.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu3))
  6218.     {
  6219.         HideDraw(playerid);
  6220.         TextDrawShowForPlayer(playerid, AMMUBOX1);
  6221.         TextDrawShowForPlayer(playerid, text37);
  6222.         TextDrawShowForPlayer(playerid, text38);
  6223.         AMMUBOX[playerid] = 1;
  6224.     }
  6225.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu4))
  6226.     {
  6227.         HideDraw(playerid);
  6228.         TextDrawShowForPlayer(playerid, AMMUBOX1);
  6229.         TextDrawShowForPlayer(playerid, text37);
  6230.         TextDrawShowForPlayer(playerid, text38);
  6231.         AMMUBOX[playerid] = 1;
  6232.     }
  6233.     if(CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  6234.     {
  6235.         HideDraw(playerid);
  6236.         TextDrawShowForPlayer(playerid, AMMUBOX1);
  6237.         TextDrawShowForPlayer(playerid, text37);
  6238.         TextDrawShowForPlayer(playerid, text38);
  6239.         AMMUBOX[playerid] = 1;
  6240.     }
  6241.     if(CPS_IsPlayerInCheckpoint(playerid, cpghost))
  6242.     {
  6243.         if(!IsPlayerInAnyVehicle(playerid))
  6244.         {
  6245.             new file[250], name[MAX_PLAYER_NAME];
  6246.             GetPlayerName(playerid, name, sizeof(name));
  6247.             format(file, sizeof(file), "%s.runix", name);
  6248.             if(dini_Int(file, "RentalOwner") == 0)
  6249.             {
  6250.                 TogglePlayerControllable(playerid, false);
  6251.                 ShowMenuForPlayer(Rental, playerid);
  6252.                 CAR[playerid] = 1;
  6253.             }
  6254.             else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6255.         }
  6256.     }
  6257.     if(CPS_IsPlayerInCheckpoint(playerid, cplsghost))
  6258.     {
  6259.         if(!IsPlayerInAnyVehicle(playerid))
  6260.         {
  6261.             new file[250], name[MAX_PLAYER_NAME];
  6262.             GetPlayerName(playerid, name, sizeof(name));
  6263.             format(file, sizeof(file), "%s.runix", name);
  6264.             if(dini_Int(file, "RentalOwner") == 0)
  6265.             {
  6266.                 TogglePlayerControllable(playerid, false);
  6267.                 ShowMenuForPlayer(Rental, playerid);
  6268.                 CAR[playerid] = 2;
  6269.             }
  6270.             else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6271.         }
  6272.     }
  6273.  
  6274.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfghost))
  6275.     {
  6276.         if(!IsPlayerInAnyVehicle(playerid))
  6277.         {
  6278.             new file[250], name[MAX_PLAYER_NAME];
  6279.             GetPlayerName(playerid, name, sizeof(name));
  6280.             format(file, sizeof(file), "%s.runix", name);
  6281.             if(dini_Int(file, "RentalOwner") == 0)
  6282.             {
  6283.                 TogglePlayerControllable(playerid, false);
  6284.                 ShowMenuForPlayer(Rental, playerid);
  6285.                 CAR[playerid] = 3;
  6286.             }
  6287.             else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6288.         }
  6289.     }
  6290.  
  6291.     if(CPS_IsPlayerInCheckpoint(playerid, cpbarentrance))
  6292.     {
  6293.         if(!IsPlayerInAnyVehicle(playerid))
  6294.         {
  6295.                 ShowMenuForPlayer(BarEntrance, playerid);
  6296.                 BAR[playerid] = 1;
  6297.                 TogglePlayerControllable(playerid, false);
  6298.         }
  6299.     }
  6300.  
  6301.     if(CPS_IsPlayerInCheckpoint(playerid, cplsbarentrance))
  6302.     {
  6303.         if(!IsPlayerInAnyVehicle(playerid))
  6304.         {
  6305.                 ShowMenuForPlayer(BarEntrance, playerid);
  6306.                 BAR[playerid] = 2;
  6307.                 TogglePlayerControllable(playerid, false);
  6308.         }
  6309.     }
  6310.  
  6311.     if(CPS_IsPlayerInCheckpoint(playerid, cpbarexit))
  6312.     {
  6313.         if(BAR[playerid] == 1)
  6314.         {
  6315.         SetPlayerInterior(playerid, 0);
  6316.         SetPlayerPos(playerid, 2108.8542, 1333.7935, 10.8203);
  6317.         SetPlayerFacingAngle(playerid, 89.8424);
  6318.         SetCameraBehindPlayer(playerid);
  6319.         }
  6320.         if(BAR[playerid] == 2)
  6321.         {
  6322.         SetPlayerInterior(playerid, 0);
  6323.         SetPlayerPos(playerid, 2306.1807,-1646.4257,14.4478);
  6324.         SetPlayerFacingAngle(playerid, 173.0816);
  6325.         SetCameraBehindPlayer(playerid);
  6326.         }
  6327.     }
  6328.  
  6329.     if(CPS_IsPlayerInCheckpoint(playerid, cpbincoentrance))
  6330.     {
  6331.         if(!IsPlayerInAnyVehicle(playerid))
  6332.         {
  6333.             SetPlayerInterior(playerid, 15);
  6334.             SetPlayerPos(playerid, 207.6031, -106.4911, 1005.1328);
  6335.             SetPlayerFacingAngle(playerid, 359.5176);
  6336.             SetCameraBehindPlayer(playerid);
  6337.             BIC[playerid] = 1;
  6338.             SendClientMessage(playerid, WHITE, "Welcome to Binco.");
  6339.         }
  6340.     }
  6341.  
  6342.     if(CPS_IsPlayerInCheckpoint(playerid, cplsbincoentrance))
  6343.     {
  6344.         if(!IsPlayerInAnyVehicle(playerid))
  6345.         {
  6346.             SetPlayerInterior(playerid, 15);
  6347.             SetPlayerPos(playerid, 207.6031, -106.4911, 1005.1328);
  6348.             SetPlayerFacingAngle(playerid, 359.5176);
  6349.             SetCameraBehindPlayer(playerid);
  6350.             BIC[playerid] = 2;
  6351.             SendClientMessage(playerid, WHITE, "Welcome to Binco.");
  6352.         }
  6353.     }
  6354.  
  6355.     if(CPS_IsPlayerInCheckpoint(playerid, cpbincoexit))
  6356.     {
  6357.         if(BIC[playerid] == 1)
  6358.         {
  6359.         SetPlayerInterior(playerid, 0);
  6360.         SetPlayerPos(playerid, 2106.7976, 2257.4944, 11.0234);
  6361.         SetPlayerFacingAngle(playerid, 275.3339);
  6362.         SetCameraBehindPlayer(playerid);
  6363.         }
  6364.         if(BIC[playerid] == 2)
  6365.         {
  6366.         SetPlayerInterior(playerid, 0);
  6367.         SetPlayerPos(playerid, 2245.6504,-1662.0643,15.4690);
  6368.         SetPlayerFacingAngle(playerid, 341.0744);
  6369.         SetCameraBehindPlayer(playerid);
  6370.         }
  6371.     }
  6372.  
  6373.     if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  6374.     {
  6375.         HideDraw(playerid);
  6376.         TextDrawShowForPlayer(playerid, BBOX);
  6377.         TextDrawShowForPlayer(playerid, text35);
  6378.         TextDrawShowForPlayer(playerid, text36);
  6379.         CSKIN[playerid] = 1;
  6380.     }
  6381.  
  6382.     if(CPS_IsPlayerInCheckpoint(playerid, cpzipentrance))
  6383.     {
  6384.         if(!IsPlayerInAnyVehicle(playerid))
  6385.         {
  6386.             SetPlayerInterior(playerid, 18);
  6387.             SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6388.             SetPlayerFacingAngle(playerid, 1.0461);
  6389.             SetCameraBehindPlayer(playerid);
  6390.             ZP[playerid] = 1;
  6391.             SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6392.         }
  6393.     }
  6394.     if(CPS_IsPlayerInCheckpoint(playerid, cplszipentrance))
  6395.     {
  6396.         if(!IsPlayerInAnyVehicle(playerid))
  6397.         {
  6398.             SetPlayerInterior(playerid, 18);
  6399.             SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6400.             SetPlayerFacingAngle(playerid, 1.0461);
  6401.             SetCameraBehindPlayer(playerid);
  6402.             ZP[playerid] = 2;
  6403.             SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6404.         }
  6405.     }
  6406.  
  6407.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfzipentrance))
  6408.     {
  6409.         if(!IsPlayerInAnyVehicle(playerid))
  6410.         {
  6411.             SetPlayerInterior(playerid, 18);
  6412.             SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6413.             SetPlayerFacingAngle(playerid, 1.0461);
  6414.             SetCameraBehindPlayer(playerid);
  6415.             ZP[playerid] = 3;
  6416.             SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6417.         }
  6418.     }
  6419.  
  6420.     if(CPS_IsPlayerInCheckpoint(playerid, cpzipexit))
  6421.     {
  6422.         if(ZP[playerid] == 1)
  6423.         {
  6424.         SetPlayerInterior(playerid, 0);
  6425.         SetPlayerPos(playerid, 2249.2781, 966.7142, 10.8203);
  6426.         SetPlayerFacingAngle(playerid, 0.8219);
  6427.         SetCameraBehindPlayer(playerid);
  6428.         }
  6429.         if(ZP[playerid] == 2)
  6430.         {
  6431.         SetPlayerInterior(playerid, 0);
  6432.         SetPlayerPos(playerid, 2139.0991,-1746.0112,13.5524);
  6433.         SetPlayerFacingAngle(playerid, 182.6752);
  6434.         SetCameraBehindPlayer(playerid);
  6435.         }
  6436.         if(ZP[playerid] == 3)
  6437.         {
  6438.         SetPlayerInterior(playerid, 0);
  6439.         SetPlayerPos(playerid, -1883.5844,825.3109,35.1736);
  6440.         SetPlayerFacingAngle(playerid, 47.3566);
  6441.         SetCameraBehindPlayer(playerid);
  6442.         }
  6443.     }
  6444.  
  6445.     if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  6446.     {
  6447.         HideDraw(playerid);
  6448.         TextDrawShowForPlayer(playerid, BBOX);
  6449.         TextDrawShowForPlayer(playerid, text35);
  6450.         TextDrawShowForPlayer(playerid, text36);
  6451.         CSKINZ[playerid] = 1;
  6452.     }
  6453.  
  6454.     if(CPS_IsPlayerInCheckpoint(playerid, cpbombshop))
  6455.     {
  6456.         new string[250], name[MAX_PLAYER_NAME];
  6457.         GetPlayerName(playerid, name, sizeof(name));
  6458.         SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6459.         format(string, sizeof(string), "Wassup, %s?", name);
  6460.         SendClientMessage(playerid, WHITE, string);
  6461.         SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6462.         SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6463.         SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6464.     }
  6465.  
  6466.     if(CPS_IsPlayerInCheckpoint(playerid, cplsbombshop))
  6467.     {
  6468.         new string[250], name[MAX_PLAYER_NAME];
  6469.         GetPlayerName(playerid, name, sizeof(name));
  6470.         SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6471.         format(string, sizeof(string), "Wassup, %s?", name);
  6472.         SendClientMessage(playerid, WHITE, string);
  6473.         SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6474.         SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6475.         SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6476.     }
  6477.  
  6478.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfbombshop))
  6479.     {
  6480.         new string[250], name[MAX_PLAYER_NAME];
  6481.         GetPlayerName(playerid, name, sizeof(name));
  6482.         SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6483.         format(string, sizeof(string), "Wassup, %s?", name);
  6484.         SendClientMessage(playerid, WHITE, string);
  6485.         SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6486.         SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6487.         SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6488.     }
  6489.  
  6490.     if(CPS_IsPlayerInCheckpoint(playerid, cpurbanentrance))
  6491.     {
  6492.         if(!IsPlayerInAnyVehicle(playerid))
  6493.         {
  6494.             SetPlayerInterior(playerid, 1);
  6495.             SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6496.             SetPlayerFacingAngle(playerid, 0.8763);
  6497.             SetCameraBehindPlayer(playerid);
  6498.             RB[playerid] = 1;
  6499.             SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6500.         }
  6501.     }
  6502.  
  6503.     if(CPS_IsPlayerInCheckpoint(playerid, cplsurbanentrance))
  6504.     {
  6505.         if(!IsPlayerInAnyVehicle(playerid))
  6506.         {
  6507.             SetPlayerInterior(playerid, 1);
  6508.             SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6509.             SetPlayerFacingAngle(playerid, 0.8763);
  6510.             SetCameraBehindPlayer(playerid);
  6511.             RB[playerid] = 2;
  6512.             SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6513.         }
  6514.     }
  6515.  
  6516.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfurbanentrance))
  6517.     {
  6518.         if(!IsPlayerInAnyVehicle(playerid))
  6519.         {
  6520.             SetPlayerInterior(playerid, 1);
  6521.             SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6522.             SetPlayerFacingAngle(playerid, 0.8763);
  6523.             SetCameraBehindPlayer(playerid);
  6524.             RB[playerid] = 4;
  6525.             SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6526.         }
  6527.     }
  6528.  
  6529.     if(CPS_IsPlayerInCheckpoint(playerid, cplsurbanentrance2))
  6530.     {
  6531.         if(!IsPlayerInAnyVehicle(playerid))
  6532.         {
  6533.             SetPlayerInterior(playerid, 1);
  6534.             SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6535.             SetPlayerFacingAngle(playerid, 0.8763);
  6536.             SetCameraBehindPlayer(playerid);
  6537.             RB[playerid] = 3;
  6538.             SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6539.         }
  6540.     }
  6541.  
  6542.     if(CPS_IsPlayerInCheckpoint(playerid, cpurbanexit))
  6543.     {
  6544.         if(RB[playerid] == 1)
  6545.         {
  6546.         SetPlayerInterior(playerid, 0);
  6547.         SetPlayerPos(playerid, 2178.7288, 2293.6926, 10.8203);
  6548.         SetPlayerFacingAngle(playerid, 117.6881);
  6549.         SetCameraBehindPlayer(playerid);
  6550.         }
  6551.         if(RB[playerid] == 2)
  6552.         {
  6553.         SetPlayerInterior(playerid, 0);
  6554.         SetPlayerPos(playerid, 501.7690,-1355.0167,16.1328);
  6555.         SetPlayerFacingAngle(playerid, 337.6372);
  6556.         SetCameraBehindPlayer(playerid);
  6557.         }
  6558.         if(RB[playerid] == 3)
  6559.         {
  6560.         SetPlayerInterior(playerid, 0);
  6561.         SetPlayerPos(playerid, 820.0910,-1760.1797,13.5495);
  6562.         SetPlayerFacingAngle(playerid, 139.5130);
  6563.         SetCameraBehindPlayer(playerid);
  6564.         }
  6565.         if(RB[playerid] == 4)
  6566.         {
  6567.         SetPlayerInterior(playerid, 0);
  6568.         SetPlayerPos(playerid, -2494.4319,-142.8247,25.6094);
  6569.         SetPlayerFacingAngle(playerid, 91.5816);
  6570.         SetCameraBehindPlayer(playerid);
  6571.         }
  6572.     }
  6573.  
  6574.     if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  6575.     {
  6576.         HideDraw(playerid);
  6577.         TextDrawShowForPlayer(playerid, BBOX);
  6578.         TextDrawShowForPlayer(playerid, text35);
  6579.         TextDrawShowForPlayer(playerid, text36);
  6580.         CSKINU[playerid] = 1;
  6581.     }
  6582.  
  6583.     if(CPS_IsPlayerInCheckpoint(playerid, cpdrugs))
  6584.     {
  6585.         if(!IsPlayerInAnyVehicle(playerid))
  6586.         {
  6587.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6588.             {
  6589.                 TogglePlayerControllable(playerid, false);
  6590.                 ShowMenuForPlayer(Drugs, playerid);
  6591.                 SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6592.                 SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6593.                 SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6594.                 SendClientMessage(playerid, WHITE, "5 grams for $20");
  6595.                 SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6596.                 SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6597.                 SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6598.                 SendClientMessage(playerid, WHITE, "You choose.");
  6599.             }
  6600.             else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6601.         }
  6602.     }
  6603.     if(CPS_IsPlayerInCheckpoint(playerid, cplsdrugs))
  6604.     {
  6605.         if(!IsPlayerInAnyVehicle(playerid))
  6606.         {
  6607.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6608.             {
  6609.                 TogglePlayerControllable(playerid, false);
  6610.                 ShowMenuForPlayer(Drugs, playerid);
  6611.                 SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6612.                 SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6613.                 SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6614.                 SendClientMessage(playerid, WHITE, "5 grams for $20");
  6615.                 SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6616.                 SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6617.                 SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6618.                 SendClientMessage(playerid, WHITE, "You choose.");
  6619.             }
  6620.             else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6621.         }
  6622.     }
  6623.     if(CPS_IsPlayerInCheckpoint(playerid, cpsfdrugs))
  6624.     {
  6625.         if(!IsPlayerInAnyVehicle(playerid))
  6626.         {
  6627.             if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6628.             {
  6629.                 TogglePlayerControllable(playerid, false);
  6630.                 ShowMenuForPlayer(Drugs, playerid);
  6631.                 SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6632.                 SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6633.                 SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6634.                 SendClientMessage(playerid, WHITE, "5 grams for $20");
  6635.                 SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6636.                 SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6637.                 SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6638.                 SendClientMessage(playerid, WHITE, "You choose.");
  6639.             }
  6640.             else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6641.         }
  6642.     }
  6643.     return true;
  6644. }
  6645.  
  6646. public OnPlayerLeaveCheckpoint(playerid)
  6647. {
  6648.     if(!CPS_IsPlayerInCheckpoint(playerid, cpdildo) && RobDildo[playerid] >=1)
  6649.     {
  6650.         RobDildo[playerid] = 0;
  6651.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6652.     }
  6653.     if(!CPS_IsPlayerInCheckpoint(playerid, cp4Dragons) && RobD4[playerid] >=1)
  6654.     {
  6655.         RobD4[playerid] = 0;
  6656.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6657.     }
  6658.     if(!CPS_IsPlayerInCheckpoint(playerid, cpcaligulas) && RobCa[playerid] >=1)
  6659.     {
  6660.         RobCa[playerid] = 0;
  6661.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6662.     }
  6663.     if(!CPS_IsPlayerInCheckpoint(playerid, cpcityhall) && RobHall[playerid] >=1)
  6664.     {
  6665.         RobHall[playerid] = 0;
  6666.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6667.     }
  6668.     if(!CPS_IsPlayerInCheckpoint(playerid, cpghost) && RobRental[playerid] >=1)
  6669.     {
  6670.         RobRental[playerid] = 0;
  6671.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6672.     }
  6673.     if(!CPS_IsPlayerInCheckpoint(playerid, cpbank) && RobBank[playerid] >= 1)
  6674.     {
  6675.         RobBank[playerid] = 0;
  6676.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6677.     }
  6678.     if(!CPS_IsPlayerInCheckpoint(playerid, cpbinco) && RobBinco[playerid] >= 1)
  6679.     {
  6680.         RobBinco[playerid] = 0;
  6681.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6682.     }
  6683.     if(!CPS_IsPlayerInCheckpoint(playerid, cpzip) && RobZip[playerid] >= 1)
  6684.     {
  6685.         RobZip[playerid] = 0;
  6686.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6687.     }
  6688.     if(!CPS_IsPlayerInCheckpoint(playerid, cpurban) && RobUrban[playerid] >= 1)
  6689.     {
  6690.         RobUrban[playerid] = 0;
  6691.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6692.     }
  6693.     if(!CPS_IsPlayerInCheckpoint(playerid, cpammu) && RobAmmu[playerid] >= 1)
  6694.     {
  6695.         RobAmmu[playerid] = 0;
  6696.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6697.     }
  6698.     if(!CPS_IsPlayerInCheckpoint(playerid, cpammu2) && RobAmmu2[playerid] >= 1)
  6699.     {
  6700.         RobAmmu2[playerid] = 0;
  6701.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6702.     }
  6703.     if(!CPS_IsPlayerInCheckpoint(playerid, cpammu3) && RobAmmu3[playerid] >= 1)
  6704.     {
  6705.         RobAmmu3[playerid] = 0;
  6706.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6707.     }
  6708.     if(!CPS_IsPlayerInCheckpoint(playerid, cpammu4) && RobAmmu4[playerid] >= 1)
  6709.     {
  6710.         RobAmmu4[playerid] = 0;
  6711.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6712.     }
  6713.     if(!CPS_IsPlayerInCheckpoint(playerid, cpammu5) && RobAmmu5[playerid] >= 1)
  6714.     {
  6715.         RobAmmu5[playerid] = 0;
  6716.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6717.     }
  6718.     if(!CPS_IsPlayerInCheckpoint(playerid, cpdrugs) && RobDrugs[playerid] >= 1)
  6719.     {
  6720.         RobDrugs[playerid] = 0;
  6721.         SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6722.     }
  6723.     return true;
  6724. }
  6725.  
  6726. public OnPlayerRequestSpawn(playerid)
  6727. {
  6728.     if(IsPlayerLogged[playerid] == 0)
  6729.     {
  6730.         SendClientMessage(playerid, ERROR, "You need to login before the spawn. Type /login [password]!");
  6731.         return false;
  6732.     }
  6733.     else if(IsPlayerLogged[playerid] == 1)
  6734.     {
  6735.         if(GetPlayerSkin(playerid) >= 280 && GetPlayerSkin(playerid) <= 288 || GetPlayerSkin(playerid) >= 274 && GetPlayerSkin(playerid) <= 276)
  6736.         {
  6737.             if(GetPlayerWantedLevel(playerid) > 0)
  6738.             {
  6739.                 SendClientMessage(playerid, ERROR, "The Police are looking for you. Login as a Civilian and hand yourself.");
  6740.                 return false;
  6741.             }
  6742.             else if(GetPlayerWantedLevel(playerid) == 0) return true;
  6743.         }
  6744.         else return true;
  6745.     }
  6746.     return true;
  6747. }
  6748.  
  6749. public OnObjectMoved(objectid)
  6750. {
  6751.     return true;
  6752. }
  6753.  
  6754. public OnPlayerSelectedMenuRow(playerid, row)
  6755. {
  6756.     new rname[MAX_PLAYER_NAME];
  6757.     GetPlayerName(playerid, rname, sizeof(rname));
  6758.     if(GetPlayerMenu(playerid) == Hand)
  6759.     {
  6760.         switch(row)
  6761.         {
  6762.             case 0:
  6763.             {
  6764.                 new spawn = random(sizeof(PrisonSpawn)), string[250], name[MAX_PLAYER_NAME], Float:health;
  6765.                 GetPlayerHealth(playerid, health);
  6766.                 SendClientMessage(playerid, GREY, "|_| San Andreas Police Dept. |_|");
  6767.                 SendClientMessage(playerid, WHITE, "You've handed yourself.");
  6768.                 SendClientMessage(playerid, WHITE, "They've confiscated your weapons.");
  6769.                 SendClientMessage(playerid, WHITE, "Wanted Level reduced to zero.");
  6770.                 ResetPlayerWeapons(playerid);
  6771.                 SetPlayerPos(playerid, PrisonSpawn[spawn][0], PrisonSpawn[spawn][1], PrisonSpawn[spawn][2]);
  6772.                 SetPlayerFacingAngle(playerid, PrisonSpawn[spawn][3]);
  6773.                 SetCameraBehindPlayer(playerid);
  6774.                 if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5) PrisonTime[playerid] = 60;
  6775.                 else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 8) PrisonTime[playerid] = 120;
  6776.                 else if(GetPlayerWantedLevel(playerid) >= 9 && GetPlayerWantedLevel(playerid) <= 11) PrisonTime[playerid] = 180;
  6777.                 else if(GetPlayerWantedLevel(playerid) >= 12 && GetPlayerWantedLevel(playerid) <= 14) PrisonTime[playerid] = 240;
  6778.                 else if(GetPlayerWantedLevel(playerid) >= 15) PrisonTime[playerid] = 300;
  6779.                 SetPlayerWantedLevel(playerid, 0);
  6780.                 TogglePlayerControllable(playerid, true);
  6781.                 GetPlayerName(playerid, name, sizeof(name));
  6782.                 SetPlayerJailed(playerid, true);
  6783.                 format(string, sizeof(string), "%s[ID:%d] has handed himself.", name, playerid);
  6784.                 Announce(string);
  6785.                 if(health <= 90)
  6786.                 {
  6787.                     SendClientMessage(playerid, GREY, "|_| San Andreas Police Dept. |_|");
  6788.                     SendClientMessage(playerid, WHITE, "SA PD has given you some food.");
  6789.                     SetPlayerHealth(playerid, health+10);
  6790.                     ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  6791.                 }
  6792.             }
  6793.             case 1:
  6794.             {
  6795.                 TogglePlayerControllable(playerid, true);
  6796.             }
  6797.         }
  6798.     }
  6799.     if(GetPlayerMenu(playerid) == Dildo)
  6800.     {
  6801.         switch(row)
  6802.         {
  6803.             case 0:
  6804.             {
  6805.                 if(GetPlayerMoney(playerid) > 49)
  6806.                 {
  6807.                     GivePlayerMoney(playerid, -50);
  6808.                     GivePlayerWeapon(playerid, 10, 1);
  6809.                     SendClientMessage(playerid, WHITE, "You bought a Purple Dildo for $50!");
  6810.                     TogglePlayerControllable(playerid, true);
  6811.                 }
  6812.                 else
  6813.                 {
  6814.                     SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6815.                     TogglePlayerControllable(playerid, true);
  6816.                 }
  6817.             }
  6818.             case 1:
  6819.             {
  6820.                 if(GetPlayerMoney(playerid) > 49)
  6821.                 {
  6822.                     GivePlayerMoney(playerid, -50);
  6823.                     GivePlayerWeapon(playerid, 11, 1);
  6824.                     SendClientMessage(playerid, WHITE, "You bought a White Dildo for $50!");
  6825.                     TogglePlayerControllable(playerid, true);
  6826.                 }
  6827.                 else
  6828.                 {
  6829.                     SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6830.                     TogglePlayerControllable(playerid, true);
  6831.                 }
  6832.             }
  6833.             case 2:
  6834.             {
  6835.                 if(GetPlayerMoney(playerid) > 49)
  6836.                 {
  6837.                     GivePlayerMoney(playerid, -50);
  6838.                     GivePlayerWeapon(playerid, 13, 1);
  6839.                     SendClientMessage(playerid, WHITE, "You bought a GREY Dildo for $50!");
  6840.                     TogglePlayerControllable(playerid, true);
  6841.                 }
  6842.                 else
  6843.                 {
  6844.                     SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6845.                     TogglePlayerControllable(playerid, true);
  6846.                 }
  6847.             }
  6848.             case 3:
  6849.             {
  6850.                 if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6851.                 {
  6852.                         if(DildoRecentlyRobbed == 0)
  6853.                         {
  6854.                             new chances = random(200);
  6855.                             if(chances >= 0 && chances <= 100)
  6856.                             {
  6857.                                 new string[250];
  6858.                                 RobDildo[playerid] = 20;
  6859.                                 TogglePlayerControllable(playerid, true);
  6860.                                 DildoRecentlyRobbed = 250;
  6861.                                 format(string, sizeof(string), "%s[ID:%d] started a Robbery at Las Venturas Dildos!", rname, playerid);
  6862.                                 Announce(string);
  6863.                             }
  6864.                             else if(chances >= 101 && chances <= 200)
  6865.                             {
  6866.                                 new name[MAX_PLAYER_NAME], copmsg[250];
  6867.                                 GetPlayerName(playerid, name, sizeof(name));
  6868.                                 SendClientMessage(playerid, ERROR, "Your attempt to rob Las Venturas Dildos failed!");
  6869.                                 SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  6870.                                 SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  6871.                                 format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Las Venturas Dildos.", name);
  6872.                                 SendRadioMessageToCops(copmsg);
  6873.                                 DildoRecentlyRobbed = 200;
  6874.                             }
  6875.                         }
  6876.                         else if(DildoRecentlyRobbed > 0) SendClientMessage(playerid, ERROR, "Las Venturas Dildo has been robbed recently!");
  6877.                         TogglePlayerControllable(playerid, true);
  6878.                 }
  6879.                 else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  6880.             }
  6881.         }
  6882.     }
  6883.     if(GetPlayerMenu(playerid) == Rental)
  6884.     {
  6885.         switch(row)
  6886.         {
  6887.             case 0:
  6888.             {
  6889.                 TogglePlayerControllable(playerid, false);
  6890.                 SetTimerEx("ShowCarListMenu", 250, false, "d", playerid);
  6891.             }
  6892.             case 1:
  6893.             {
  6894.                 if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6895.                 {
  6896.                         if(RentalRecentlyRobbed == 0)
  6897.                         {
  6898.                             new chances = random(200);
  6899.                             if(chances >= 0 && chances <= 170)
  6900.                             {
  6901.                                 new string[250];
  6902.                                 RobRental[playerid] = 20;
  6903.                                 TogglePlayerControllable(playerid, true);
  6904.                                 RentalRecentlyRobbed = 250;
  6905.                                 format(string, sizeof(string), "%s[ID:%d] started a Robbery at Car Shop!", rname, playerid);
  6906.                                 Announce(string);
  6907.                             }
  6908.                             else if(chances >= 171 && chances <= 200)
  6909.                             {
  6910.                                 new name[MAX_PLAYER_NAME], copmsg[250];
  6911.                                 GetPlayerName(playerid, name, sizeof(name));
  6912.                                 SendClientMessage(playerid, ERROR, "Your attempt to rob Car Shop failed!");
  6913.                                 SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  6914.                                 SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  6915.                                 format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Car Shop.", name);
  6916.                                 SendRadioMessageToCops(copmsg);
  6917.                                 RentalRecentlyRobbed = 200;
  6918.                                 TogglePlayerControllable(playerid, true);
  6919.                             }
  6920.                         }
  6921.                         else if(RentalRecentlyRobbed > 0)
  6922.                         {
  6923.                             SendClientMessage(playerid, ERROR, "Car Shop has been robbed recently!");
  6924.                             TogglePlayerControllable(playerid, true);
  6925.                         }
  6926.                 }
  6927.                 else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  6928.             }
  6929.         }
  6930.     }
  6931.     if(GetPlayerMenu(playerid) == CarList)
  6932.     {
  6933.         switch(row)
  6934.         {
  6935.             case 0: // Voodoo
  6936.             {
  6937.                 if(RentedACarRecently[playerid] == 0)
  6938.                 {
  6939.                     if(GetPlayerMoney(playerid) > 19999)
  6940.                     {
  6941.                         if(CAR[playerid] == 1)
  6942.                         {
  6943.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  6944.                         PutPlayerInVehicle(playerid, vehicle, 0);
  6945.                         Rented[vehicle] = 1;
  6946.                         GivePlayerMoney(playerid, -20000);
  6947.                         GetPlayerName(playerid, name, sizeof(name));
  6948.                         format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  6949.                         Announce(string);
  6950.                         RentedACarRecently[playerid] = 60;
  6951.                         TogglePlayerControllable(playerid, true);
  6952.                         for(new i = 0; i < MAX_PLAYERS; i++)
  6953.                         {
  6954.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  6955.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  6956.                             format(file, sizeof(file), "%s.runix", rentalowner);
  6957.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  6958.                             {
  6959.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  6960.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  6961.                                 SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  6962.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  6963.                             }
  6964.                         }
  6965.                         }
  6966.                         if(CAR[playerid] == 2)
  6967.                         {
  6968.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  6969.                         PutPlayerInVehicle(playerid, vehicle, 0);
  6970.                         Rented[vehicle] = 1;
  6971.                         GivePlayerMoney(playerid, -20000);
  6972.                         GetPlayerName(playerid, name, sizeof(name));
  6973.                         format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  6974.                         Announce(string);
  6975.                         RentedACarRecently[playerid] = 60;
  6976.                         TogglePlayerControllable(playerid, true);
  6977.                         for(new i = 0; i < MAX_PLAYERS; i++)
  6978.                         {
  6979.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  6980.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  6981.                             format(file, sizeof(file), "%s.runix", rentalowner);
  6982.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  6983.                             {
  6984.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  6985.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  6986.                                 SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  6987.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  6988.                             }
  6989.                         }
  6990.                         }
  6991.                         if(CAR[playerid] == 3)
  6992.                         {
  6993.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  6994.                         PutPlayerInVehicle(playerid, vehicle, 0);
  6995.                         Rented[vehicle] = 1;
  6996.                         GivePlayerMoney(playerid, -20000);
  6997.                         GetPlayerName(playerid, name, sizeof(name));
  6998.                         format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  6999.                         Announce(string);
  7000.                         RentedACarRecently[playerid] = 60;
  7001.                         TogglePlayerControllable(playerid, true);
  7002.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7003.                         {
  7004.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7005.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7006.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7007.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7008.                             {
  7009.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  7010.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7011.                                 SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  7012.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  7013.                             }
  7014.                         }
  7015.                         }
  7016.                     }
  7017.                     else SendClientMessage(playerid, ERROR, "Not enough money! $20000"); TogglePlayerControllable(playerid, true);
  7018.                 }
  7019.                 else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7020.             }
  7021.             case 1: // Sultan
  7022.             {
  7023.                 if(RentedACarRecently[playerid] == 0)
  7024.                 {
  7025.                     if(GetPlayerMoney(playerid) > 49999)
  7026.                     {
  7027.                         if(CAR[playerid] == 1)
  7028.                         {
  7029.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7030.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7031.                         Rented[vehicle] = 1;
  7032.                         GivePlayerMoney(playerid, -50000);
  7033.                         GetPlayerName(playerid, name, sizeof(name));
  7034.                         format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7035.                         Announce(string);
  7036.                         RentedACarRecently[playerid] = 60;
  7037.                         TogglePlayerControllable(playerid, true);
  7038.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7039.                         {
  7040.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7041.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7042.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7043.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7044.                             {
  7045.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7046.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7047.                                 SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7048.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7049.                             }
  7050.                         }
  7051.                         }
  7052.                         if(CAR[playerid] == 2)
  7053.                         {
  7054.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7055.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7056.                         Rented[vehicle] = 1;
  7057.                         GivePlayerMoney(playerid, -50000);
  7058.                         GetPlayerName(playerid, name, sizeof(name));
  7059.                         format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7060.                         Announce(string);
  7061.                         RentedACarRecently[playerid] = 60;
  7062.                         TogglePlayerControllable(playerid, true);
  7063.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7064.                         {
  7065.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7066.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7067.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7068.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7069.                             {
  7070.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7071.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7072.                                 SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7073.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7074.                             }
  7075.                         }
  7076.                         }
  7077.                         if(CAR[playerid] == 3)
  7078.                         {
  7079.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7080.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7081.                         Rented[vehicle] = 1;
  7082.                         GivePlayerMoney(playerid, -50000);
  7083.                         GetPlayerName(playerid, name, sizeof(name));
  7084.                         format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7085.                         Announce(string);
  7086.                         RentedACarRecently[playerid] = 60;
  7087.                         TogglePlayerControllable(playerid, true);
  7088.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7089.                         {
  7090.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7091.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7092.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7093.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7094.                             {
  7095.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7096.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7097.                                 SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7098.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7099.                             }
  7100.                         }
  7101.                         }
  7102.                     }
  7103.                     else SendClientMessage(playerid, ERROR, "Not enough money! $50000"); TogglePlayerControllable(playerid, true);
  7104.                 }
  7105.                 else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7106.             }
  7107.             case 2: // Savanna
  7108.             {
  7109.                 if(RentedACarRecently[playerid] == 0)
  7110.                 {
  7111.                     if(GetPlayerMoney(playerid) > 34999)
  7112.                     {
  7113.                         if(CAR[playerid] == 1)
  7114.                         {
  7115.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7116.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7117.                         Rented[vehicle] = 1;
  7118.                         GivePlayerMoney(playerid, -35000);
  7119.                         GetPlayerName(playerid, name, sizeof(name));
  7120.                         format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7121.                         Announce(string);
  7122.                         RentedACarRecently[playerid] = 60;
  7123.                         TogglePlayerControllable(playerid, true);
  7124.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7125.                         {
  7126.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7127.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7128.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7129.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7130.                             {
  7131.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7132.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7133.                                 SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7134.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7135.                             }
  7136.                         }
  7137.                         }
  7138.                         if(CAR[playerid] == 2)
  7139.                         {
  7140.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7141.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7142.                         Rented[vehicle] = 1;
  7143.                         GivePlayerMoney(playerid, -35000);
  7144.                         GetPlayerName(playerid, name, sizeof(name));
  7145.                         format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7146.                         Announce(string);
  7147.                         RentedACarRecently[playerid] = 60;
  7148.                         TogglePlayerControllable(playerid, true);
  7149.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7150.                         {
  7151.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7152.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7153.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7154.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7155.                             {
  7156.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7157.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7158.                                 SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7159.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7160.                             }
  7161.                         }
  7162.                         }
  7163.                         if(CAR[playerid] == 3)
  7164.                         {
  7165.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7166.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7167.                         Rented[vehicle] = 1;
  7168.                         GivePlayerMoney(playerid, -35000);
  7169.                         GetPlayerName(playerid, name, sizeof(name));
  7170.                         format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7171.                         Announce(string);
  7172.                         RentedACarRecently[playerid] = 60;
  7173.                         TogglePlayerControllable(playerid, true);
  7174.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7175.                         {
  7176.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7177.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7178.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7179.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7180.                             {
  7181.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7182.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7183.                                 SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7184.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7185.                             }
  7186.                         }
  7187.                         }
  7188.                     }
  7189.                     else SendClientMessage(playerid, ERROR, "Not enough money! $35000"); TogglePlayerControllable(playerid, true);
  7190.                 }
  7191.                 else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7192.             }
  7193.             case 3: // Slamvan
  7194.             {
  7195.                 if(RentedACarRecently[playerid] == 0)
  7196.                 {
  7197.                     if(GetPlayerMoney(playerid) > 24999)
  7198.                     {
  7199.                         if(CAR[playerid] == 1)
  7200.                         {
  7201.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7202.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7203.                         Rented[vehicle] = 1;
  7204.                         GivePlayerMoney(playerid, -25000);
  7205.                         GetPlayerName(playerid, name, sizeof(name));
  7206.                         format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7207.                         Announce(string);
  7208.                         RentedACarRecently[playerid] = 60;
  7209.                         TogglePlayerControllable(playerid, true);
  7210.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7211.                         {
  7212.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7213.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7214.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7215.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7216.                             {
  7217.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7218.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7219.                                 SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7220.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7221.                             }
  7222.                         }
  7223.                         }
  7224.                         if(CAR[playerid] == 2)
  7225.                         {
  7226.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7227.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7228.                         Rented[vehicle] = 1;
  7229.                         GivePlayerMoney(playerid, -25000);
  7230.                         GetPlayerName(playerid, name, sizeof(name));
  7231.                         format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7232.                         Announce(string);
  7233.                         RentedACarRecently[playerid] = 60;
  7234.                         TogglePlayerControllable(playerid, true);
  7235.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7236.                         {
  7237.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7238.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7239.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7240.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7241.                             {
  7242.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7243.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7244.                                 SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7245.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7246.                             }
  7247.                         }
  7248.                         }
  7249.                         if(CAR[playerid] == 3)
  7250.                         {
  7251.                         new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7252.                         PutPlayerInVehicle(playerid, vehicle, 0);
  7253.                         Rented[vehicle] = 1;
  7254.                         GivePlayerMoney(playerid, -25000);
  7255.                         GetPlayerName(playerid, name, sizeof(name));
  7256.                         format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7257.                         Announce(string);
  7258.                         RentedACarRecently[playerid] = 60;
  7259.                         TogglePlayerControllable(playerid, true);
  7260.                         for(new i = 0; i < MAX_PLAYERS; i++)
  7261.                         {
  7262.                             new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7263.                             GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7264.                             format(file, sizeof(file), "%s.runix", rentalowner);
  7265.                             if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7266.                             {
  7267.                                 format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7268.                                 SendClientMessage(i, SERVER_COLOR, ownermsg);
  7269.                                 SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7270.                                 SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7271.                             }
  7272.                         }
  7273.                         }
  7274.                     }
  7275.                     else SendClientMessage(playerid, ERROR, "Not enough money! $25000"); TogglePlayerControllable(playerid, true);
  7276.                 }
  7277.                 else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7278.             }
  7279.         }
  7280.     }
  7281.     if(GetPlayerMenu(playerid) == BarEntrance)
  7282.     {
  7283.         switch(row)
  7284.         {
  7285.             case 0: // Enter the bar
  7286.             {
  7287.                 SetPlayerInterior(playerid, 1);
  7288.                 SetPlayerPos(playerid, 2103.0239, 1332.9640, 1297.4639);
  7289.                 SetPlayerFacingAngle(playerid, 359.6409);
  7290.                 SetCameraBehindPlayer(playerid);
  7291.                 SendClientMessage(playerid, WHITE, "Welcome to BulletXT's Bar.");
  7292.                 TogglePlayerControllable(playerid, true);
  7293.                 InsideBar[playerid] = 1;
  7294.             }
  7295.          }
  7296.     }
  7297.  
  7298.     if(GetPlayerMenu(playerid) == Drugs)
  7299.     {
  7300.         switch(row)
  7301.         {
  7302.             case 0: // 5 grams $20
  7303.             {
  7304.                 if(GetPlayerMoney(playerid) > 19)
  7305.                 {
  7306.                     GivePlayerMoney(playerid, -20);
  7307.                     SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+5);
  7308.                     TogglePlayerControllable(playerid, true);
  7309.                     SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7310.                     SendClientMessage(playerid, WHITE, "You bought 5 grams for $20");
  7311.                 }
  7312.                 else SendClientMessage(playerid, ERROR, "Not enough money! $20"); TogglePlayerControllable(playerid, true);
  7313.             }
  7314.             case 1: // 15 grams $30
  7315.             {
  7316.                 if(GetPlayerMoney(playerid) > 29)
  7317.                 {
  7318.                     GivePlayerMoney(playerid, -30);
  7319.                     SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+15);
  7320.                     TogglePlayerControllable(playerid, true);
  7321.                     SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7322.                     SendClientMessage(playerid, WHITE, "You bought 15 grams for $30");
  7323.                 }
  7324.                 else SendClientMessage(playerid, ERROR, "Not enough money! $30"); TogglePlayerControllable(playerid, true);
  7325.             }
  7326.             case 2: // 20 grams $40
  7327.             {
  7328.                 if(GetPlayerMoney(playerid) > 39)
  7329.                 {
  7330.                     GivePlayerMoney(playerid, -40);
  7331.                     SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+20);
  7332.                     TogglePlayerControllable(playerid, true);
  7333.                     SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7334.                     SendClientMessage(playerid, WHITE, "You bought 20 grams for $40");
  7335.                 }
  7336.                 else SendClientMessage(playerid, ERROR, "Not enough money! $40"); TogglePlayerControllable(playerid, true);
  7337.             }
  7338.             case 3: // 25 grams $50
  7339.             {
  7340.                 if(GetPlayerMoney(playerid) > 49)
  7341.                 {
  7342.                     GivePlayerMoney(playerid, -50);
  7343.                     SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+25);
  7344.                     TogglePlayerControllable(playerid, true);
  7345.                     SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7346.                     SendClientMessage(playerid, WHITE, "You bought 25 grams for $50");
  7347.                 }
  7348.                 else SendClientMessage(playerid, ERROR, "Not enough money! $50"); TogglePlayerControllable(playerid, true);
  7349.             }
  7350.             case 4: // rob
  7351.             {
  7352.                     if(DrugsRecentlyRobbed == 0)
  7353.                     {
  7354.                         new chances = random(200);
  7355.                         if(chances >= 0 && chances <= 170)
  7356.                         {
  7357.                             new string[250];
  7358.                             RobDrugs[playerid] = 20;
  7359.                             TogglePlayerControllable(playerid, true);
  7360.                             DrugsRecentlyRobbed = 250;
  7361.                             format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Drug Point!", rname, playerid);
  7362.                             Announce(string);
  7363.                         }
  7364.                         else if(chances >= 171 && chances <= 200)
  7365.                         {
  7366.                             new name[MAX_PLAYER_NAME], copmsg[250];
  7367.                             GetPlayerName(playerid, name, sizeof(name));
  7368.                             SendClientMessage(playerid, ERROR, "Your attempt to rob the Drug Point failed!");
  7369.                             SendClientMessage(playerid, ERROR, "The Police are on their way.");
  7370.                             SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  7371.                             format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Drug Point.", name);
  7372.                             SendRadioMessageToCops(copmsg);
  7373.                             DrugsRecentlyRobbed = 200;
  7374.                             TogglePlayerControllable(playerid, true);
  7375.                         }
  7376.                     }
  7377.                     else if(DrugsRecentlyRobbed > 0)
  7378.                     {
  7379.                         SendClientMessage(playerid, ERROR, "The Drug Point has been robbed recently!");
  7380.                         TogglePlayerControllable(playerid, true);
  7381.                     }
  7382.             }
  7383.         }
  7384.     }
  7385.  
  7386.     return true;
  7387. }
  7388.  
  7389. public OnPlayerExitedMenu(playerid)
  7390. {
  7391.     if(GetPlayerMenu(playerid) == Hand) TogglePlayerControllable(playerid, true);
  7392.     else if(GetPlayerMenu(playerid) == Dildo) TogglePlayerControllable(playerid, true);
  7393.     else if(GetPlayerMenu(playerid) == Rental) TogglePlayerControllable(playerid, true);
  7394.     else if(GetPlayerMenu(playerid) == CarList) TogglePlayerControllable(playerid, true);
  7395.     else if(GetPlayerMenu(playerid) == BarEntrance) TogglePlayerControllable(playerid, true);
  7396.     else if(GetPlayerMenu(playerid) == Drugs) TogglePlayerControllable(playerid, true);
  7397.     return true;
  7398. }
  7399.  
  7400. public OnPlayerExitVehicle(playerid, vehicleid)
  7401. {
  7402.     if(Speed[playerid][Refueling] == 1) return StopRefueling(playerid);
  7403.     return true;
  7404. }
  7405.  
  7406. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  7407. {
  7408.     return true;
  7409. }
  7410.  
  7411. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  7412. {
  7413.     if(newkeys == KEY_SUBMISSION)
  7414.     {
  7415.     //Trash
  7416.     if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 408)
  7417.     {
  7418.     if(InTrashMission[playerid] == 0)
  7419.     {
  7420.     HideDraw(playerid);
  7421.     TextDrawShowForPlayer(playerid,BUSBOX);
  7422.     TextDrawShowForPlayer(playerid,text40);
  7423.     SelectTM[playerid] = 1;
  7424.     }else
  7425.     if(InTrashMission[playerid] == 1)
  7426.     {
  7427.     DisablePlayerRaceCheckpoint(playerid);
  7428.     SelectTM[playerid] = 0;
  7429.     InTrashMission[playerid] = 0;
  7430.     }
  7431.     }
  7432.     //
  7433.     if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) ==438)
  7434.     {
  7435.     if (playerInJob[playerid]<0)
  7436.     {
  7437.     MissionIni(playerid);
  7438.     SendClientMessage(playerid,yellow,"You are now Taxi Driver! Find people to enter in you taxi and earn money!");
  7439.     }
  7440.     else
  7441.     {
  7442.     terminarMission(playerid);
  7443.     }
  7444.     }
  7445.     if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) ==437)
  7446.     {
  7447.     if (playerInMiniMission2[playerid]<0)
  7448.     {
  7449.     HideDraw(playerid);
  7450.     TextDrawShowForPlayer(playerid,BUSBOX);
  7451.     TextDrawShowForPlayer(playerid,text24);
  7452.     SelectBM[playerid] = 1;
  7453.     }
  7454.     else
  7455.     {
  7456.     if(SelectBM[playerid] == 1)
  7457.     {
  7458.     HideDraw(playerid);
  7459.     SelectBM[playerid] = 0;
  7460.     }
  7461.     if(SelectBM[playerid] == 0)
  7462.     {
  7463.     terminarMission2(playerid);
  7464.     }
  7465.     }
  7466.     }
  7467.     }
  7468.     if(newkeys == KEY_FIRE)
  7469.     {
  7470.     HideDraw(playerid);
  7471.     }
  7472.     return 1;
  7473. }
  7474. public OnVehicleDeath(vehicleid, killerid)
  7475. {
  7476.     if(Rented[vehicleid] > 0) DestroyVehicle(vehicleid);
  7477. }
  7478.  
  7479. public OnVehicleSpawn(vehicleid)
  7480. {
  7481.     if(Rented[vehicleid] > 0) DestroyVehicle(vehicleid);
  7482.     Vehicle[vehicleid][Fuel] = Random(SPAWN_GAS_MIN, SPAWN_GAS_MAX);
  7483.     for(new i=0;i<MAX_PLAYERS;i++)
  7484.     {
  7485.         if(vehicleid==IcmdCar[i][CarcmdI])
  7486.         {
  7487.             UcideMasinileBoule(vehicleid);
  7488.             IcmdCar[i][CarcmdI]=-1;
  7489.         }
  7490.     }
  7491. }
  7492. public DriverSalary()
  7493. {
  7494.     for(new i = 0; i < MAX_PLAYERS; i++)
  7495.     {
  7496.         if(gTeam[i] == CIVILIAN && Working[i] == 1)
  7497.         {
  7498.             new vehicle = GetPlayerVehicleID(i);
  7499.             for(new j = 0; j < MAX_PLAYERS; j++)
  7500.             {
  7501.                 if(IsPlayerConnected(j))
  7502.                 {
  7503.                     if(IsPlayerInVehicle(j, vehicle) && GetPlayerState(j) == PLAYER_STATE_PASSENGER) GivePlayerMoney(i,1);
  7504.                 }
  7505.             }
  7506.         }
  7507.     }
  7508. }
  7509.  
  7510. public ResetMedicWeapons()
  7511. {
  7512.     for(new i = 0; i < MAX_PLAYERS; i++)
  7513.     {
  7514.         if(gTeam[i] == Medic)
  7515.         {
  7516.         ResetPlayerWeapons(i);
  7517.         }
  7518.     }
  7519. }
  7520.  
  7521. public AllStores()
  7522. {
  7523.     if(DildoRecentlyRobbed > 0) DildoRecentlyRobbed--;
  7524.     if(ATMRecentlyRobbed > 0) ATMRecentlyRobbed--;
  7525.     if(HallRecentlyRobbed > 0) HallRecentlyRobbed--;
  7526.     if(RentalRecentlyRobbed > 0) RentalRecentlyRobbed--;
  7527.     if(BankRecentlyRobbed > 0) BankRecentlyRobbed--;
  7528.     if(BincoRecentlyRobbed > 0) BincoRecentlyRobbed--;
  7529.     if(ZipRecentlyRobbed > 0) ZipRecentlyRobbed--;
  7530.     if(UrbanRecentlyRobbed > 0) UrbanRecentlyRobbed--;
  7531.     if(AmmuRecentlyRobbed > 0) AmmuRecentlyRobbed--;
  7532.     if(Ammu2RecentlyRobbed > 0) Ammu2RecentlyRobbed--;
  7533.     if(Ammu3RecentlyRobbed > 0) Ammu3RecentlyRobbed--;
  7534.     if(Ammu4RecentlyRobbed > 0) Ammu4RecentlyRobbed--;
  7535.     if(Ammu5RecentlyRobbed > 0) Ammu5RecentlyRobbed--;
  7536.     if(DrugsRecentlyRobbed > 0) DrugsRecentlyRobbed--;
  7537.     if(D4RecentlyRobbed > 0) D4RecentlyRobbed--;
  7538.     if(CaRecentlyRobbed > 0) CaRecentlyRobbed--;
  7539. }
  7540.  
  7541. public RobbingStores()
  7542. {
  7543.     for(new i = 0; i < MAX_PLAYERS; i++)
  7544.     {
  7545.         if(IsPlayerSpawned(i))
  7546.         {   //Drugs
  7547.             if(RobDrugs[i] > 1)
  7548.             {
  7549.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7550.                 GetPlayerName(i, robber, sizeof(robber));
  7551.                 RobDrugs[i]--;
  7552.                 robtime = (RobDrugs[i]);
  7553.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7554.                 GameTextForPlayer(i, string, 3000, 3);
  7555.             }
  7556.             if(RobDrugs[i] == 1)
  7557.             {
  7558.                 new earnings = random(100000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7559.                 RobDrugs[i] = 0;
  7560.                 GetPlayerName(i, robber, sizeof(robber));
  7561.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7562.                 GameTextForPlayer(i, string, 3000, 3);
  7563.                 format(cops, sizeof(cops), "[HQ] %s has robbed the Drug Point. Location: The Drug Point.", robber);
  7564.                 SendRadioMessageToCops(cops);
  7565.                 GivePlayerMoney(i, earnings);
  7566.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7567.                 GivePlayerScore(i, 1);
  7568.                 new rbskl[250];
  7569.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7570.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7571.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7572.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7573.                 format(string2, sizeof(string2), "You earned $%d from the Drug Point!", earnings);
  7574.                 SendClientMessage(i, WHITE, string2);
  7575.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7576.                 SendClientMessage(i, WHITE, string3);
  7577.             }
  7578.             //Urban
  7579.             if(RobUrban[i] > 1)
  7580.             {
  7581.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7582.                 GetPlayerName(i, robber, sizeof(robber));
  7583.                 RobUrban[i]--;
  7584.                 robtime = (RobUrban[i]);
  7585.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7586.                 GameTextForPlayer(i, string, 3000, 3);
  7587.             }
  7588.             if(RobUrban[i] == 1)
  7589.             {
  7590.                 new earnings = random(50000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7591.                 RobUrban[i] = 0;
  7592.                 GetPlayerName(i, robber, sizeof(robber));
  7593.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7594.                 GameTextForPlayer(i, string, 3000, 3);
  7595.                 format(cops, sizeof(cops), "[HQ] %s has robbed SubUrban. Location: SubUrban.", robber);
  7596.                 SendRadioMessageToCops(cops);
  7597.                 GivePlayerMoney(i, earnings);
  7598.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7599.                 GivePlayerScore(i, 1);
  7600.                 new rbskl[250];
  7601.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7602.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7603.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7604.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7605.                 format(string2, sizeof(string2), "You earned $%d from SubUrban!", earnings);
  7606.                 SendClientMessage(i, WHITE, string2);
  7607.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7608.                 SendClientMessage(i, WHITE, string3);
  7609.             }
  7610.             //Ammu 1
  7611.             if(RobAmmu[i] > 1)
  7612.             {
  7613.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7614.                 GetPlayerName(i, robber, sizeof(robber));
  7615.                 RobAmmu[i]--;
  7616.                 robtime = (RobAmmu[i]);
  7617.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7618.                 GameTextForPlayer(i, string, 3000, 3);
  7619.             }
  7620.             if(RobAmmu[i] == 1)
  7621.             {
  7622.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7623.                 RobAmmu[i] = 0;
  7624.                 GetPlayerName(i, robber, sizeof(robber));
  7625.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7626.                 GameTextForPlayer(i, string, 3000, 3);
  7627.                 format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7628.                 SendRadioMessageToCops(cops);
  7629.                 GivePlayerMoney(i, earnings);
  7630.                 GivePlayerWeapon(i,31,99999);
  7631.                 GivePlayerWeapon(i,24,99999);
  7632.                 GivePlayerWeapon(i,29,99999);
  7633.                 GivePlayerWeapon(i,34,99999);
  7634.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7635.                 GivePlayerScore(i, 1);
  7636.                 new rbskl[250];
  7637.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7638.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7639.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7640.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7641.                 format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7642.                 SendClientMessage(i, WHITE, string2);
  7643.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7644.                 SendClientMessage(i, WHITE, string3);
  7645.             }
  7646.             //Ammu 2
  7647.             if(RobAmmu2[i] > 1)
  7648.             {
  7649.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7650.                 GetPlayerName(i, robber, sizeof(robber));
  7651.                 RobAmmu2[i]--;
  7652.                 robtime = (RobAmmu2[i]);
  7653.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7654.                 GameTextForPlayer(i, string, 3000, 3);
  7655.             }
  7656.             if(RobAmmu2[i] == 1)
  7657.             {
  7658.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7659.                 RobAmmu2[i] = 0;
  7660.                 GetPlayerName(i, robber, sizeof(robber));
  7661.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7662.                 GameTextForPlayer(i, string, 3000, 3);
  7663.                 format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7664.                 SendRadioMessageToCops(cops);
  7665.                 GivePlayerMoney(i, earnings);
  7666.                 GivePlayerWeapon(i,31,99999);
  7667.                 GivePlayerWeapon(i,24,99999);
  7668.                 GivePlayerWeapon(i,29,99999);
  7669.                 GivePlayerWeapon(i,34,99999);
  7670.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7671.                 GivePlayerScore(i, 1);
  7672.                 new rbskl[250];
  7673.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7674.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7675.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7676.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7677.                 format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7678.                 SendClientMessage(i, WHITE, string2);
  7679.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7680.                 SendClientMessage(i, WHITE, string3);
  7681.             }
  7682.             //Ammu 3
  7683.             if(RobAmmu3[i] > 1)
  7684.             {
  7685.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7686.                 GetPlayerName(i, robber, sizeof(robber));
  7687.                 RobAmmu3[i]--;
  7688.                 robtime = (RobAmmu3[i]);
  7689.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7690.                 GameTextForPlayer(i, string, 3000, 3);
  7691.             }
  7692.             if(RobAmmu3[i] == 1)
  7693.             {
  7694.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7695.                 RobAmmu3[i] = 0;
  7696.                 GetPlayerName(i, robber, sizeof(robber));
  7697.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7698.                 GameTextForPlayer(i, string, 3000, 3);
  7699.                 format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7700.                 SendRadioMessageToCops(cops);
  7701.                 GivePlayerMoney(i, earnings);
  7702.                 GivePlayerWeapon(i,31,99999);
  7703.                 GivePlayerWeapon(i,24,99999);
  7704.                 GivePlayerWeapon(i,29,99999);
  7705.                 GivePlayerWeapon(i,34,99999);
  7706.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7707.                 GivePlayerScore(i, 1);
  7708.                 new rbskl[250];
  7709.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7710.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7711.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7712.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7713.                 format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7714.                 SendClientMessage(i, WHITE, string2);
  7715.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7716.                 SendClientMessage(i, WHITE, string3);
  7717.             }
  7718.             //Ammu 4
  7719.             if(RobAmmu4[i] > 1)
  7720.             {
  7721.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7722.                 GetPlayerName(i, robber, sizeof(robber));
  7723.                 RobAmmu4[i]--;
  7724.                 robtime = (RobAmmu4[i]);
  7725.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7726.                 GameTextForPlayer(i, string, 3000, 3);
  7727.             }
  7728.             if(RobAmmu4[i] == 1)
  7729.             {
  7730.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7731.                 RobAmmu4[i] = 0;
  7732.                 GetPlayerName(i, robber, sizeof(robber));
  7733.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7734.                 GameTextForPlayer(i, string, 3000, 3);
  7735.                 format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7736.                 SendRadioMessageToCops(cops);
  7737.                 GivePlayerMoney(i, earnings);
  7738.                 GivePlayerWeapon(i,31,99999);
  7739.                 GivePlayerWeapon(i,24,99999);
  7740.                 GivePlayerWeapon(i,29,99999);
  7741.                 GivePlayerWeapon(i,34,99999);
  7742.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7743.                 GivePlayerScore(i, 1);
  7744.                 new rbskl[250];
  7745.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7746.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7747.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7748.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7749.                 format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7750.                 SendClientMessage(i, WHITE, string2);
  7751.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7752.                 SendClientMessage(i, WHITE, string3);
  7753.             }
  7754.             //Ammu 5
  7755.             if(RobAmmu5[i] > 1)
  7756.             {
  7757.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7758.                 GetPlayerName(i, robber, sizeof(robber));
  7759.                 RobAmmu5[i]--;
  7760.                 robtime = (RobAmmu5[i]);
  7761.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7762.                 GameTextForPlayer(i, string, 3000, 3);
  7763.             }
  7764.             if(RobAmmu5[i] == 1)
  7765.             {
  7766.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7767.                 RobAmmu5[i] = 0;
  7768.                 GetPlayerName(i, robber, sizeof(robber));
  7769.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7770.                 GameTextForPlayer(i, string, 3000, 3);
  7771.                 format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7772.                 SendRadioMessageToCops(cops);
  7773.                 GivePlayerMoney(i, earnings);
  7774.                 GivePlayerWeapon(i,31,99999);
  7775.                 GivePlayerWeapon(i,24,99999);
  7776.                 GivePlayerWeapon(i,29,99999);
  7777.                 GivePlayerWeapon(i,34,99999);
  7778.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7779.                 GivePlayerScore(i, 1);
  7780.                 new rbskl[250];
  7781.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7782.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7783.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7784.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7785.                 format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7786.                 SendClientMessage(i, WHITE, string2);
  7787.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7788.                 SendClientMessage(i, WHITE, string3);
  7789.             }
  7790.             //4Dragons
  7791.             if(RobD4[i] > 1)
  7792.             {
  7793.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7794.                 GetPlayerName(i, robber, sizeof(robber));
  7795.                 RobD4[i]--;
  7796.                 robtime = (RobD4[i]);
  7797.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7798.                 GameTextForPlayer(i, string, 3000, 3);
  7799.             }
  7800.             if(RobD4[i] == 1)
  7801.             {
  7802.                 new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7803.                 RobD4[i] = 0;
  7804.                 GetPlayerName(i, robber, sizeof(robber));
  7805.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7806.                 GameTextForPlayer(i, string, 3000, 3);
  7807.                 format(cops, sizeof(cops), "[HQ] %s has robbed 4Dragons Casino.", robber);
  7808.                 SendRadioMessageToCops(cops);
  7809.                 GivePlayerMoney(i, earnings);
  7810.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7811.                 GivePlayerScore(i, 1);
  7812.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7813.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7814.                 format(string2, sizeof(string2), "You earned $%d from 4Dragons Casino.!", earnings);
  7815.                 SendClientMessage(i, WHITE, string2);
  7816.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7817.                 SendClientMessage(i, WHITE, string3);
  7818.             }
  7819.             //Caligulas
  7820.             if(RobCa[i] > 1)
  7821.             {
  7822.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7823.                 GetPlayerName(i, robber, sizeof(robber));
  7824.                 RobCa[i]--;
  7825.                 robtime = (RobCa[i]);
  7826.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7827.                 GameTextForPlayer(i, string, 3000, 3);
  7828.             }
  7829.             if(RobCa[i] == 1)
  7830.             {
  7831.                 new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7832.                 RobCa[i] = 0;
  7833.                 GetPlayerName(i, robber, sizeof(robber));
  7834.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7835.                 GameTextForPlayer(i, string, 3000, 3);
  7836.                 format(cops, sizeof(cops), "[HQ] %s has robbed Caligulas Casino.", robber);
  7837.                 SendRadioMessageToCops(cops);
  7838.                 GivePlayerMoney(i, earnings);
  7839.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7840.                 GivePlayerScore(i, 1);
  7841.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7842.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7843.                 format(string2, sizeof(string2), "You earned $%d from Caligulas Casino.!", earnings);
  7844.                 SendClientMessage(i, WHITE, string2);
  7845.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7846.                 SendClientMessage(i, WHITE, string3);
  7847.             }
  7848.             //Zip
  7849.             if(RobZip[i] > 1)
  7850.             {
  7851.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7852.                 GetPlayerName(i, robber, sizeof(robber));
  7853.                 RobZip[i]--;
  7854.                 robtime = (RobZip[i]);
  7855.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7856.                 GameTextForPlayer(i, string, 3000, 3);
  7857.             }
  7858.             if(RobZip[i] == 1)
  7859.             {
  7860.                 new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7861.                 RobZip[i] = 0;
  7862.                 GetPlayerName(i, robber, sizeof(robber));
  7863.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7864.                 GameTextForPlayer(i, string, 3000, 3);
  7865.                 format(cops, sizeof(cops), "[HQ] %s has robbed ZIP. Location: ZIP.", robber);
  7866.                 SendRadioMessageToCops(cops);
  7867.                 GivePlayerMoney(i, earnings);
  7868.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  7869.                 GivePlayerScore(i, 1);
  7870.                 new rbskl[250];
  7871.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7872.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7873.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7874.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7875.                 format(string2, sizeof(string2), "You earned $%d from ZIP!", earnings);
  7876.                 SendClientMessage(i, WHITE, string2);
  7877.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7878.                 SendClientMessage(i, WHITE, string3);
  7879.             }
  7880.             //Bianco
  7881.             if(RobBinco[i] > 1)
  7882.             {
  7883.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7884.                 GetPlayerName(i, robber, sizeof(robber));
  7885.                 RobBinco[i]--;
  7886.                 robtime = (RobBinco[i]);
  7887.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7888.                 GameTextForPlayer(i, string, 3000, 3);
  7889.             }
  7890.             if(RobBinco[i] == 1)
  7891.             {
  7892.                 new earnings = random(9500), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7893.                 RobBinco[i] = 0;
  7894.                 GetPlayerName(i, robber, sizeof(robber));
  7895.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7896.                 GameTextForPlayer(i, string, 3000, 3);
  7897.                 format(cops, sizeof(cops), "[HQ] %s has robbed Binco. Location: Binco.", robber);
  7898.                 SendRadioMessageToCops(cops);
  7899.                 GivePlayerMoney(i, earnings);
  7900.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  7901.                 GivePlayerScore(i, 1);
  7902.                 new rbskl[250];
  7903.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7904.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7905.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7906.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7907.                 format(string2, sizeof(string2), "You earned $%d from Binco!", earnings);
  7908.                 SendClientMessage(i, WHITE, string2);
  7909.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7910.                 SendClientMessage(i, WHITE, string3);
  7911.             }
  7912.             //Bank
  7913.             if(RobBank[i] > 1)
  7914.             {
  7915.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7916.                 GetPlayerName(i, robber, sizeof(robber));
  7917.                 RobBank[i]--;
  7918.                 robtime = (RobBank[i]);
  7919.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7920.                 GameTextForPlayer(i, string, 3000, 3);
  7921.             }
  7922.             if(RobBank[i] == 1)
  7923.             {
  7924.                 new earnings = random(30000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7925.                 RobBank[i] = 0;
  7926.                 GetPlayerName(i, robber, sizeof(robber));
  7927.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7928.                 GameTextForPlayer(i, string, 3000, 3);
  7929.                 format(cops, sizeof(cops), "[HQ] %s has robbed RuNix's Intl. Bank. Location: RuNix's Intl. Bank.", robber);
  7930.                 SendRadioMessageToCops(cops);
  7931.                 GivePlayerMoney(i, earnings);
  7932.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7933.                 GivePlayerScore(i, 2);
  7934.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7935.                 format(string2, sizeof(string2), "You earned $%d from RuNix's Intl. Bank!", earnings);
  7936.                 SendClientMessage(i, WHITE, string2);
  7937.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7938.                 SendClientMessage(i, WHITE, string3);
  7939.             }
  7940.             //Rental
  7941.             if(RobRental[i] > 1)
  7942.             {
  7943.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7944.                 GetPlayerName(i, robber, sizeof(robber));
  7945.                 RobRental[i]--;
  7946.                 robtime = (RobRental[i]);
  7947.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7948.                 GameTextForPlayer(i, string, 3000, 3);
  7949.             }
  7950.             if(RobRental[i] == 1)
  7951.             {
  7952.                 new earnings = random(15500), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7953.                 RobRental[i] = 0;
  7954.                 GetPlayerName(i, robber, sizeof(robber));
  7955.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7956.                 GameTextForPlayer(i, string, 3000, 3);
  7957.                 format(cops, sizeof(cops), "[HQ] %s has robbed Car Shop. Location: Car Shop.", robber);
  7958.                 SendRadioMessageToCops(cops);
  7959.                 GivePlayerMoney(i, earnings);
  7960.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7961.                 GivePlayerScore(i, 1);
  7962.                 new rbskl[250];
  7963.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7964.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7965.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7966.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7967.                 format(string2, sizeof(string2), "You earned $%d from Car Shop!", earnings);
  7968.                 SendClientMessage(i, WHITE, string2);
  7969.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7970.                 SendClientMessage(i, WHITE, string3);
  7971.             }
  7972.             //City Hall
  7973.             if(RobHall[i] > 1)
  7974.             {
  7975.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  7976.                 GetPlayerName(i, robber, sizeof(robber));
  7977.                 RobHall[i]--;
  7978.                 robtime = (RobHall[i]);
  7979.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7980.                 GameTextForPlayer(i, string, 3000, 3);
  7981.             }
  7982.             if(RobHall[i] == 1)
  7983.             {
  7984.                 new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7985.                 RobHall[i] = 0;
  7986.                 GetPlayerName(i, robber, sizeof(robber));
  7987.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7988.                 GameTextForPlayer(i, string, 3000, 3);
  7989.                 format(cops, sizeof(cops), "[HQ] %s has robbed the City Hall. Location: City Hall.", robber);
  7990.                 SendRadioMessageToCops(cops);
  7991.                 GivePlayerMoney(i, earnings);
  7992.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7993.                 GivePlayerScore(i, 1);
  7994.                 new rbskl[250];
  7995.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7996.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7997.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  7998.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7999.                 format(string2, sizeof(string2), "You earned $%d from the City Hall!", earnings);
  8000.                 SendClientMessage(i, WHITE, string2);
  8001.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  8002.                 SendClientMessage(i, WHITE, string3);
  8003.             }
  8004.             //Dildo
  8005.             if(RobDildo[i] > 1)
  8006.             {
  8007.                 new string[250], robber[MAX_PLAYER_NAME], robtime;
  8008.                 GetPlayerName(i, robber, sizeof(robber));
  8009.                 RobDildo[i]--;
  8010.                 robtime = (RobDildo[i]);
  8011.                 format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  8012.                 GameTextForPlayer(i, string, 3000, 3);
  8013.             }
  8014.             if(RobDildo[i] == 1)
  8015.             {
  8016.                 new earnings = random(19000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  8017.                 RobDildo[i] = 0;
  8018.                 GetPlayerName(i, robber, sizeof(robber));
  8019.                 format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  8020.                 GameTextForPlayer(i, string, 3000, 3);
  8021.                 format(cops, sizeof(cops), "[HQ] %s has robbed Las Venturas Dildos. Location: Las Venturas.", robber);
  8022.                 SendRadioMessageToCops(cops);
  8023.                 GivePlayerMoney(i, earnings);
  8024.                 SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  8025.                 GivePlayerScore(i, 1);
  8026.                 new rbskl[250];
  8027.                 SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  8028.                 format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  8029.                 SendClientMessage(i, SERVER_COLOR, rbskl);
  8030.                 SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  8031.                 format(string2, sizeof(string2), "You earned $%d from Las Venturas Dildos!", earnings);
  8032.                 SendClientMessage(i, WHITE, string2);
  8033.                 format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  8034.                 SendClientMessage(i, WHITE, string3);
  8035.             }
  8036.         }
  8037.     }
  8038. }
  8039.  
  8040. public Unjail()
  8041. {
  8042.     for(new i = 0; i < MAX_PLAYERS; i++)
  8043.     {
  8044.         if(IsPlayerConnected(i))
  8045.         {
  8046.             new file[256], name[MAX_PLAYER_NAME];
  8047.             GetPlayerName(i, name, sizeof(name));
  8048.             format(file, sizeof(file), "%s.runix", name);
  8049.  
  8050.             if(IsPlayerJailed(i))
  8051.             {
  8052.                 if(PrisonTime[i] > 0)
  8053.                 {
  8054.                     PrisonTime[i] --;
  8055.                     new string[256];
  8056.                     format(string, sizeof(string), "~w~TIME LEFT~n~~r~%d", PrisonTime[i]);
  8057.                     GameTextForPlayer(i, string, 3000, 6);
  8058.                 }
  8059.                 if(PrisonTime[i] == 0)
  8060.                 {
  8061.                     new string[256];
  8062.                     SetPlayerInterior(i, 3);
  8063.                     SetPlayerPos(i, 231.1111, 146.7039, 1003.0234);
  8064.                     SetPlayerFacingAngle(i, 272.8459);
  8065.                     SetCameraBehindPlayer(i);
  8066.                     PD[i] = 2;
  8067.                     SendClientMessage(i, GREY, "|_| San Andreas Police Dept. |_|");
  8068.                     SendClientMessage(i, WHITE, "You are free to go. Just don't get into trouble.");
  8069.                     format(string, sizeof(string), "%s[ID:%d] has been released from prison.", name, i);
  8070.                     Announce(string);
  8071.                     SetPlayerHealth(i,100);
  8072.                     SetPlayerJailed(i, false);
  8073.                     SetPlayerPrisonTime(i, 0);
  8074.                 }
  8075.             }
  8076.         }
  8077.     }
  8078. }
  8079.  
  8080. public ShowCarListMenu(playerid)
  8081. {
  8082.     ShowMenuForPlayer(CarList, playerid);
  8083. }
  8084.  
  8085. public PlayerRecentlyRobbed()
  8086. {
  8087.     for(new i=0; i < MAX_PLAYERS; i++)
  8088.     {
  8089.         if(IsPlayerConnected(i) && RecentlyRobbed[i] >=1)
  8090.         {
  8091.             RecentlyRobbed[i] --;
  8092.         }
  8093.     }
  8094. }
  8095.  
  8096. public BankRecentlyUsedByRobber()
  8097. {
  8098.     for(new i = 0; i < MAX_PLAYERS; i++)
  8099.     {
  8100.         if(IsPlayerConnected(i) && BankRecentlyUsed[i] >= 1)
  8101.         {
  8102.             BankRecentlyUsed[i]--;
  8103.         }
  8104.     }
  8105. }
  8106.  
  8107. public RecentlyRentedACar()
  8108. {
  8109.     for(new i = 0; i < MAX_PLAYERS; i++)
  8110.     {
  8111.         if(IsPlayerConnected(i) && RentedACarRecently[i] >= 1)
  8112.         {
  8113.             RentedACarRecently[i]--;
  8114.         }
  8115.     }
  8116. }
  8117.  
  8118. public TimeUpdate()
  8119. {
  8120.     if(time >= 0 && time <= 22)
  8121.     {
  8122.         new string[250], weather = random(19);
  8123.         time++;
  8124.         format(string, sizeof(string), "Time: %dh00", time);
  8125.         printf("Time: %dh00", time);
  8126.         Announce(string);
  8127.         SetWorldTime(time);
  8128.         SetWeather(weather);
  8129.     }
  8130.     else if(time == 23)
  8131.     {
  8132.         new string[250], weather = random(19);
  8133.         time = 0;
  8134.         format(string, sizeof(string), "Time: 0%dh00", time);
  8135.         printf("Time: %dh00", time);
  8136.         Announce(string);
  8137.         SetWorldTime(time);
  8138.         SetWeather(weather);
  8139.     }
  8140. }
  8141.  
  8142. public WantedLevel()
  8143. {
  8144.     for(new i = 0; i < MAX_PLAYERS; i++)
  8145.     {
  8146.         if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) == 0 && gTeam[i] != COP && gTeam[i] != SWAT && gTeam[i] != ARMY && gTeam[i] != FBI && gTeam[i] != Medic) SetPlayerColor(i, WHITE);
  8147.         else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 3) SetPlayerColor(i, YELLOW);
  8148.         else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 4 && GetPlayerWantedLevel(i) <= 6) SetPlayerColor(i, ORANGE);
  8149.         else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 7) SetPlayerColor(i, RED);
  8150.     }
  8151. }
  8152.  
  8153. public Float:GetDistanceBetweenPlayers(p1,p2)
  8154. {
  8155.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  8156.     if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) return -1.00;
  8157.     GetPlayerPos(p1,x1,y1,z1);
  8158.     GetPlayerPos(p2,x2,y2,z2);
  8159.     return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  8160. }
  8161.  
  8162. stock GivePlayerScore(playerid, score)
  8163. {
  8164.     SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
  8165.     return true;
  8166. }
  8167.  
  8168. stock SendClientMessageToAdmins(const str[])
  8169. {
  8170.     for(new i = 0; i < MAX_PLAYERS; i++)
  8171.     {
  8172.         if(IsPlayerConnected(i))
  8173.         {
  8174.             if(AccountInfo[i][aLevel] > 0)
  8175.             {
  8176.                 SendClientMessage(i, RED, str);
  8177.             }
  8178.         }
  8179.     }
  8180.     return true;
  8181. }
  8182.  
  8183. stock Announce(const str[])
  8184. {
  8185.     return SendClientMessageToAll(SERVER_COLOR, str);
  8186. }
  8187.  
  8188. stock SendRadioMessageToCops(const str[])
  8189. {
  8190.     for(new i = 0; i < MAX_PLAYERS; i++)
  8191.     {
  8192.         if(IsPlayerSpawned(i) && gTeam[i] == COP) SendClientMessage(i, LIGHT_BLUE, str);
  8193.     }
  8194.     return true;
  8195. }
  8196.  
  8197. stock SendRadioMessageToMedics(const str[])
  8198. {
  8199.     for(new i = 0; i < MAX_PLAYERS; i++)
  8200.     {
  8201.         if(IsPlayerSpawned(i) && gTeam[i] == Medic) SendClientMessage(i, PINK, str);
  8202.     }
  8203.     return true;
  8204. }
  8205.  
  8206. stock IsPlayerSpawned(playerid)
  8207. {
  8208.     if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) ==
  8209.  
  8210. PLAYER_STATE_PASSENGER) return true;
  8211.     else return false;
  8212. }
  8213.  
  8214. stock GetPlayerBankCash(playerid)
  8215. {
  8216.     new bcash, file[256], name[MAX_PLAYER_NAME];
  8217.     GetPlayerName(playerid, name, sizeof(name));
  8218.     format(file, sizeof(file), "%s.runix", name);
  8219.     bcash = dini_Int(file, "Bank");
  8220.     return bcash;
  8221. }
  8222.  
  8223. stock GetPlayerRobbingSkill(playerid)
  8224. {
  8225.     new robskill, file[256], name[MAX_PLAYER_NAME];
  8226.     GetPlayerName(playerid, name, sizeof(name));
  8227.     format(file, sizeof(file), "%s.runix", name);
  8228.     robskill = dini_Int(file, "RobSkill");
  8229.     return robskill;
  8230. }
  8231.  
  8232. stock GetPlayerTerrorSkill(playerid)
  8233. {
  8234.     new terskill, file[256], name[MAX_PLAYER_NAME];
  8235.     GetPlayerName(playerid, name, sizeof(name));
  8236.     format(file, sizeof(file), "%s.runix", name);
  8237.     terskill = dini_Int(file, "TerSkill");
  8238.     return terskill;
  8239. }
  8240.  
  8241. stock SetPlayerBankCash(playerid, cash)
  8242. {
  8243.     new file[256], name[MAX_PLAYER_NAME];
  8244.     GetPlayerName(playerid, name, sizeof(name));
  8245.     format(file, sizeof(file), "%s.runix", name);
  8246.     dini_IntSet(file, "Bank", cash);
  8247.     return true;
  8248. }
  8249.  
  8250. stock SetPlayerAdminLevel(playerid, level)
  8251. {
  8252.     new file[256], name[MAX_PLAYER_NAME];
  8253.     GetPlayerName(playerid, name, sizeof(name));
  8254.     format(file, sizeof(file), "%s.runix", name);
  8255.     dini_IntSet(file, "Admin", level);
  8256.     return true;
  8257. }
  8258.  
  8259. stock SetPlayerRobbingSkill(playerid, skill)
  8260. {
  8261.     new file[256], name[MAX_PLAYER_NAME];
  8262.     GetPlayerName(playerid, name, sizeof(name));
  8263.     format(file, sizeof(file), "%s.runix", name);
  8264.     dini_IntSet(file, "RobSkill", skill);
  8265.     return true;
  8266. }
  8267.  
  8268. stock SetPlayerTerrorSkill(playerid, skill)
  8269. {
  8270.     new file[256], name[MAX_PLAYER_NAME];
  8271.     GetPlayerName(playerid, name, sizeof(name));
  8272.     format(file, sizeof(file), "%s.runix", name);
  8273.     dini_IntSet(file, "TerSkill", skill);
  8274.     return true;
  8275. }
  8276.  
  8277. stock GetPlayerWarnings(playerid)
  8278. {
  8279.     new warns, file[256], name[MAX_PLAYER_NAME];
  8280.     GetPlayerName(playerid, name, sizeof(name));
  8281.     format(file, sizeof(file), "%s.runix", name);
  8282.     warns = dini_Int(file, "Warnings");
  8283.     return warns;
  8284. }
  8285.  
  8286. stock SetPlayerWarnings(playerid, warns)
  8287. {
  8288.     new file[256], name[MAX_PLAYER_NAME];
  8289.     GetPlayerName(playerid, name, sizeof(name));
  8290.     format(file, sizeof(file), "%s.runix", name);
  8291.     dini_IntSet(file, "Warnings", warns);
  8292.     return true;
  8293. }
  8294.  
  8295. stock SetPlayerJailed(playerid, bool)
  8296. {
  8297.     new file[256], name[MAX_PLAYER_NAME];
  8298.     GetPlayerName(playerid, name, sizeof(name));
  8299.     format(file, sizeof(file), "%s.runix", name);
  8300.     if(bool == 1) dini_IntSet(file, "Jail", 1);
  8301.     else if(bool == 0) dini_IntSet(file, "Jail", 0);
  8302.     return true;
  8303. }
  8304.  
  8305. stock IsPlayerJailed(playerid)
  8306. {
  8307.     new file[256], name[MAX_PLAYER_NAME];
  8308.     GetPlayerName(playerid, name, sizeof(name));
  8309.     format(file, sizeof(file), "%s.runix", name);
  8310.     if(dini_Int(file, "Jail") == 1)
  8311.     {
  8312.         return true;
  8313.     }
  8314.     else if(dini_Int(file, "Jail") == 0)
  8315.     {
  8316.         return false;
  8317.     }
  8318.     return true;
  8319. }
  8320.  
  8321. stock GetPlayerPrisonTime(playerid)
  8322. {
  8323.     new file[256], name[MAX_PLAYER_NAME], ptime;
  8324.     GetPlayerName(playerid, name, sizeof(name));
  8325.     format(file, sizeof(file), "%s.runix", name);
  8326.     ptime = dini_Int(file, "PrisonTime");
  8327.     return ptime;
  8328. }
  8329.  
  8330. stock SetPlayerPrisonTime(playerid, ptime)
  8331. {
  8332.     new file[256], name[MAX_PLAYER_NAME];
  8333.     GetPlayerName(playerid, name, sizeof(name));
  8334.     format(file, sizeof(file), "%s.runix", name);
  8335.     dini_IntSet(file, "PrisonTime", ptime);
  8336.     return true;
  8337. }
  8338.  
  8339. stock GetPlayerC4Amount(playerid)
  8340. {
  8341.     new c4s, file[256], name[MAX_PLAYER_NAME];
  8342.     GetPlayerName(playerid, name, sizeof(name));
  8343.     format(file, sizeof(file), "%s.runix", name);
  8344.     c4s = dini_Int(file, "C4");
  8345.     return c4s;
  8346. }
  8347.  
  8348. stock SetPlayerC4Amount(playerid, amount)
  8349. {
  8350.     new file[256], name[MAX_PLAYER_NAME];
  8351.     GetPlayerName(playerid, name, sizeof(name));
  8352.     format(file, sizeof(file), "%s.runix", name);
  8353.     dini_IntSet(file, "C4", amount);
  8354.     return true;
  8355. }
  8356.  
  8357. stock GetPlayerDrugs(playerid)
  8358. {
  8359.     new drugs, file[256], name[MAX_PLAYER_NAME];
  8360.     GetPlayerName(playerid, name, sizeof(name));
  8361.     format(file, sizeof(file), "%s.runix", name);
  8362.     drugs = dini_Int(file, "Drugs");
  8363.     return drugs;
  8364. }
  8365.  
  8366. stock SetPlayerDrugs(playerid, amount)
  8367. {
  8368.     new file[256], name[MAX_PLAYER_NAME];
  8369.     GetPlayerName(playerid, name, sizeof(name));
  8370.     format(file, sizeof(file), "%s.runix", name);
  8371.     dini_IntSet(file, "Drugs", amount);
  8372.     return true;
  8373. }
  8374. //--------------------------TAXI------------------------------------------------
  8375. public terminarMission(playerid)
  8376.     {
  8377.     new msg[255];
  8378.     format(msg,sizeof(msg),"~r~Taxi ~w~Job cancelled~n~ You carried ~r~%d~w~ pasengers.",contador[playerid]);
  8379.     GameTextForPlayer(playerid,msg,5000,6);
  8380.     playerInJob[playerid]=-1;
  8381.     avisado[playerid]=-1;
  8382.     new name[MAX_PLAYER_NAME];
  8383.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8384.     format(msg,sizeof(msg),"***ATENTION: %s Is NOT a TAXI DRIVER anymore***",name);
  8385.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8386.     for (new i=0;i<MAX_PLAYERS;i++)
  8387.         {
  8388.         if  (playerid!=i)
  8389.             {
  8390.             SendClientMessage(i,0xFFFF00AA,msg);
  8391.             }
  8392.         }
  8393.     for (new i=0;i<MAX_PLAYERS;i++)
  8394.         {
  8395.         if  (OnTaxiAsPassenger[i]==playerid)
  8396.             {
  8397.             new taxista = playerid;
  8398.             OnTaxiAsPassenger[i]=-1;
  8399.             new viaje=CostoDelViaje[i];
  8400.             format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Taxi~w~ ride.",name,viaje);
  8401.             GameTextForPlayer(i,msg,5000,6);
  8402.             format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Taxi~w~ ride.",viaje);
  8403.             GameTextForPlayer(taxista,msg,5000,6);
  8404.             GivePlayerMoney(i,-viaje);
  8405.             GivePlayerMoney(taxista,viaje);
  8406.             cantidadPasajeros--;
  8407.             if  (cantidadPasajeros==0)
  8408.                 {
  8409.                 KillTimer(caidadefichaTimer);
  8410.                 }
  8411.             }
  8412.         }
  8413.     contador[playerid]=0;
  8414.     return 1;
  8415.     }
  8416. public caidadeficha()
  8417.     {
  8418.     for (new i=0;i<MAX_PLAYERS;i++)
  8419.         {
  8420.         CostoDelViaje[i]=CostoDelViaje[i]+PRECIO_FICHA;
  8421.         }
  8422.     }
  8423. //--------------------------------------------------TAXI----------------------------------------------------
  8424. MissionIni(playerid)
  8425.     {
  8426.     playerInJob[playerid]=1;
  8427.     GameTextForPlayer(playerid,"~r~Taxi ~w~Job",5000,6);
  8428.     new name[MAX_PLAYER_NAME];
  8429.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8430.     new msg[255];
  8431.     format(msg,sizeof(msg),"***ATENTION: %s is now a Taxi Driver***",name);
  8432.     for (new i=0;i<MAX_PLAYERS;i++)
  8433.         {
  8434.         if  (playerid!=i)
  8435.             {
  8436.             SendClientMessage(i,0xFFFF00AA,msg);
  8437.             }
  8438.         }
  8439.     return 1;
  8440.     }
  8441. //------------------------------------------------------------------------------------------------------
  8442. IsNumeric(const string[])
  8443. {
  8444. for (new i = 0, j = strlen(string); i < j; i++) {
  8445.     if (string[i] > '9' || string[i] < '0') {
  8446. return 0;
  8447. }
  8448. }
  8449.  
  8450. return 1;
  8451. }
  8452.  
  8453. //----------------------------------------------------------SSCANF------------------------------------------------------------------------------------
  8454. stock sscanf(string[], format[], {Float,_}:...)                                 // By Alex "Y_Less" Cole
  8455. {
  8456.     #if defined isnull
  8457.         if (isnull(string))
  8458.     #else
  8459.         if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  8460.     #endif
  8461.         {
  8462.             return format[0];
  8463.         }
  8464.     #pragma tabsize 4
  8465.     new
  8466.         formatPos = 0,
  8467.         stringPos = 0,
  8468.         paramPos = 2,
  8469.         paramCount = numargs(),
  8470.         delim = ' ';
  8471.     while (string[stringPos] && string[stringPos] <= ' ')
  8472.     {
  8473.         stringPos++;
  8474.     }
  8475.     while (paramPos < paramCount && string[stringPos])
  8476.     {
  8477.         switch (format[formatPos++])
  8478.         {
  8479.             case '\0':
  8480.             {
  8481.                 return 0;
  8482.             }
  8483.             case 'i', 'd':
  8484.             {
  8485.                 new
  8486.                     neg = 1,
  8487.                     num = 0,
  8488.                     ch = string[stringPos];
  8489.                 if (ch == '-')
  8490.                 {
  8491.                     neg = -1;
  8492.                     ch = string[++stringPos];
  8493.                 }
  8494.                 do
  8495.                 {
  8496.                     stringPos++;
  8497.                     if ('0' <= ch <= '9')
  8498.                     {
  8499.                         num = (num * 10) + (ch - '0');
  8500.                     }
  8501.                     else
  8502.                     {
  8503.                         return -1;
  8504.                     }
  8505.                 }
  8506.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  8507.                 setarg(paramPos, 0, num * neg);
  8508.             }
  8509.             case 'h', 'x':
  8510.             {
  8511.                 new
  8512.                     ch,
  8513.                     num = 0;
  8514.                 while ((ch = string[stringPos]) > ' ' && ch != delim)
  8515.                 {
  8516.                     switch (ch)
  8517.                     {
  8518.                         case 'x', 'X':
  8519.                         {
  8520.                             num = 0;
  8521.                             continue;
  8522.                         }
  8523.                         case '0' .. '9':
  8524.                         {
  8525.                             num = (num << 4) | (ch - '0');
  8526.                         }
  8527.                         case 'a' .. 'f':
  8528.                         {
  8529.                             num = (num << 4) | (ch - ('a' - 10));
  8530.                         }
  8531.                         case 'A' .. 'F':
  8532.                         {
  8533.                             num = (num << 4) | (ch - ('A' - 10));
  8534.                         }
  8535.                         default:
  8536.                         {
  8537.                             return -1;
  8538.                         }
  8539.                     }
  8540.                 }
  8541.                 setarg(paramPos, 0, num);
  8542.             }
  8543.             case 'c':
  8544.             {
  8545.                 setarg(paramPos, 0, string[stringPos++]);
  8546.             }
  8547.             case 'f':
  8548.             {
  8549.                 setarg(paramPos, 0, _:floatstr(string[stringPos]));
  8550.             }
  8551.             case 'p':
  8552.             {
  8553.                 delim = format[formatPos++];
  8554.                 continue;
  8555.             }
  8556.             case '\'':
  8557.             {
  8558.                 new
  8559.                     end = formatPos - 1,
  8560.                     ch;
  8561.                 while ((ch = format[++end]) && ch != '\'') {}
  8562.                 if (!ch)
  8563.                 {
  8564.                     return -1;
  8565.                 }
  8566.                 format[end] = '\0';
  8567.                 if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  8568.                 {
  8569.                     if (format[end + 1])
  8570.                     {
  8571.                         return -1;
  8572.                     }
  8573.                     return 0;
  8574.                 }
  8575.                 format[end] = '\'';
  8576.                 stringPos = ch + (end - formatPos);
  8577.                 formatPos = end + 1;
  8578.             }
  8579.             case 'u':
  8580.             {
  8581.                 new
  8582.                     end = stringPos - 1,
  8583.                     id = 0,
  8584.                     bool:num = true,
  8585.                     ch;
  8586.                 while ((ch = string[++end]) && ch != delim)
  8587.                 {
  8588.                     if (num)
  8589.                     {
  8590.                         if ('0' <= ch <= '9')
  8591.                         {
  8592.                             id = (id * 10) + (ch - '0');
  8593.                         }
  8594.                         else
  8595.                         {
  8596.                             num = false;
  8597.                         }
  8598.                     }
  8599.                 }
  8600.                 if (num && IsPlayerConnected(id))
  8601.                 {
  8602.                     setarg(paramPos, 0, id);
  8603.                 }
  8604.                 else
  8605.                 {
  8606.                     #if !defined foreach
  8607.                         #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  8608.                         #define __SSCANF_FOREACH__
  8609.                     #endif
  8610.                     string[end] = '\0';
  8611.                     num = false;
  8612.                     new
  8613.                         name[MAX_PLAYER_NAME];
  8614.                     id = end - stringPos;
  8615.                     foreach (Player, playerid)
  8616.                     {
  8617.                         GetPlayerName(playerid, name, sizeof (name));
  8618.                         if (!strcmp(name, string[stringPos], true, id))
  8619.                         {
  8620.                             setarg(paramPos, 0, playerid);
  8621.                             num = true;
  8622.                             break;
  8623.                         }
  8624.                     }
  8625.                     if (!num)
  8626.                     {
  8627.                         setarg(paramPos, 0, INVALID_PLAYER_ID);
  8628.                     }
  8629.                     string[end] = ch;
  8630.                     #if defined __SSCANF_FOREACH__
  8631.                         #undef foreach
  8632.                         #undef __SSCANF_FOREACH__
  8633.                     #endif
  8634.                 }
  8635.                 stringPos = end;
  8636.             }
  8637.             case 's', 'z':
  8638.             {
  8639.                 new
  8640.                     i = 0,
  8641.                     ch;
  8642.                 if (format[formatPos])
  8643.                 {
  8644.                     while ((ch = string[stringPos++]) && ch != delim)
  8645.                     {
  8646.                         setarg(paramPos, i++, ch);
  8647.                     }
  8648.                     if (!i)
  8649.                     {
  8650.                         return -1;
  8651.                     }
  8652.                 }
  8653.                 else
  8654.                 {
  8655.                     while ((ch = string[stringPos++]))
  8656.                     {
  8657.                         setarg(paramPos, i++, ch);
  8658.                     }
  8659.                 }
  8660.                 stringPos--;
  8661.                 setarg(paramPos, i, '\0');
  8662.             }
  8663.             default:
  8664.             {
  8665.                 continue;
  8666.             }
  8667.         }
  8668.         while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  8669.         {
  8670.             stringPos++;
  8671.         }
  8672.         while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  8673.         {
  8674.             stringPos++;
  8675.         }
  8676.         paramPos++;
  8677.     }
  8678.     do
  8679.     {
  8680.         if ((delim = format[formatPos++]) > ' ')
  8681.         {
  8682.             if (delim == '\'')
  8683.             {
  8684.                 while ((delim = format[formatPos++]) && delim != '\'') {}
  8685.             }
  8686.             else if (delim != 'z')
  8687.             {
  8688.                 return delim;
  8689.             }
  8690.         }
  8691.     }
  8692.     while (delim > ' ');
  8693.     return 0;
  8694. }
  8695.  
  8696. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  8697. {
  8698.     new Float:oldposx, Float:oldposy, Float:oldposz;
  8699.     new Float:tempposx, Float:tempposy, Float:tempposz;
  8700.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  8701.     tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z);
  8702.     if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  8703.     { return true; }
  8704.     return false;
  8705. }
  8706. forward HideDraw(playerid);
  8707. public HideDraw(playerid)
  8708. {
  8709.     TextDrawHideForPlayer(playerid, CIVBOX);
  8710.     TextDrawHideForPlayer(playerid, HALLBOX);
  8711.     TextDrawHideForPlayer(playerid, COPBOX);
  8712.     TextDrawHideForPlayer(playerid, MDCBOX);
  8713.     TextDrawHideForPlayer(playerid, text6);
  8714.     TextDrawHideForPlayer(playerid, text7);
  8715.     TextDrawHideForPlayer(playerid, text8);
  8716.     TextDrawHideForPlayer(playerid, text9);
  8717.     TextDrawHideForPlayer(playerid, text10);
  8718.     TextDrawHideForPlayer(playerid, text11);
  8719.     TextDrawHideForPlayer(playerid, text12);
  8720.     TextDrawHideForPlayer(playerid, text13);
  8721.     TextDrawHideForPlayer(playerid, text14);
  8722.     TextDrawHideForPlayer(playerid, text15);
  8723.     TextDrawHideForPlayer(playerid, text16);
  8724.     TextDrawHideForPlayer(playerid, text17);
  8725.     TextDrawHideForPlayer(playerid, text18);
  8726.     TextDrawHideForPlayer(playerid, text19);
  8727.     TextDrawHideForPlayer(playerid, text20);
  8728.     TextDrawHideForPlayer(playerid, text21);
  8729.     TextDrawHideForPlayer(playerid, text22);
  8730.     TextDrawHideForPlayer(playerid, text23);
  8731.     TextDrawHideForPlayer(playerid, CMDBOX);
  8732.     TextDrawHideForPlayer(playerid, BUSBOX);
  8733.     TextDrawHideForPlayer(playerid, text24);
  8734.     TextDrawHideForPlayer(playerid, text25);
  8735.     TextDrawHideForPlayer(playerid, text26);
  8736.     TextDrawHideForPlayer(playerid, text27);
  8737.     TextDrawHideForPlayer(playerid, text35);
  8738.     TextDrawHideForPlayer(playerid, text36);
  8739.     TextDrawHideForPlayer(playerid, BBOX);
  8740.     TextDrawHideForPlayer(playerid, AMMUBOX1);
  8741.     TextDrawHideForPlayer(playerid, AMMUBOX2);
  8742.     TextDrawHideForPlayer(playerid, text37);
  8743.     TextDrawHideForPlayer(playerid, text38);
  8744.     TextDrawHideForPlayer(playerid, text39);
  8745.     TextDrawHideForPlayer(playerid, text40);
  8746.     TextDrawHideForPlayer(playerid, text41);
  8747.     TextDrawHideForPlayer(playerid, text42);
  8748.     TextDrawHideForPlayer(playerid, text43);
  8749.     TextDrawHideForPlayer(playerid, PCBOX);
  8750.     TextDrawHideForPlayer(playerid, text44);
  8751.     TextDrawHideForPlayer(playerid, text45);
  8752.     AMMUBOX[playerid] = 0;
  8753.     return 1;
  8754. }
  8755. //BUS
  8756. public terminarMission2(playerid)
  8757.     {
  8758.     new msg[255];
  8759.     format(msg,sizeof(msg),"~r~Bus ~w~Job cancelled~n~ You carried ~r~%d~w~ pasengers.",contador2[playerid]);
  8760.     GameTextForPlayer(playerid,msg,5000,6);
  8761.     playerInMiniMission2[playerid]=-1;
  8762.     currentcheckpoint[playerid] = 0;
  8763.     DisablePlayerRaceCheckpoint(playerid);
  8764.     avisado2[playerid]=-1;
  8765.     new name[MAX_PLAYER_NAME];
  8766.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8767.     format(msg,sizeof(msg),"***ATENTION: %s Is NOT a Bus DRIVER anymore***",name);
  8768.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8769.     for (new i=0;i<MAX_PLAYERS;i++)
  8770.         {
  8771.         if  (playerid!=i)
  8772.             {
  8773.             SendClientMessage(i,0xFFFF00AA,msg);
  8774.             }
  8775.         }
  8776.     for (new i=0;i<MAX_PLAYERS;i++)
  8777.         {
  8778.         if  (OnBusAsPassenger[i]==playerid)
  8779.             {
  8780.             new Bussta = playerid;
  8781.             OnBusAsPassenger[i]=-1;
  8782.             new viaje=CostoDelViaje2[i];
  8783.             format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Bus~w~ ride.",name,viaje);
  8784.             GameTextForPlayer(i,msg,5000,6);
  8785.             format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Bus~w~ ride.",viaje);
  8786.             GameTextForPlayer(Bussta,msg,5000,6);
  8787.             GivePlayerMoney(i,-viaje);
  8788.             GivePlayerMoney(Bussta,viaje);
  8789.             cantidadPasajeros2--;
  8790.             if  (cantidadPasajeros2==0)
  8791.                 {
  8792.                 KillTimer(caidadeficha2Timer2);
  8793.                 }
  8794.             }
  8795.         }
  8796.     contador2[playerid]=0;
  8797.     return 1;
  8798.     }
  8799. //------------------------------------------------------------------------------------------------------
  8800. public caidadeficha2()
  8801.     {
  8802.     for (new i=0;i<MAX_PLAYERS;i++)
  8803.         {
  8804.         CostoDelViaje2[i]=CostoDelViaje2[i]+PRECIO_FICHA2;
  8805.         }
  8806.     }
  8807.    
  8808.     MissionIni2(playerid)
  8809.     {
  8810.     playerInMiniMission2[playerid]=1;
  8811.     GameTextForPlayer(playerid,"~r~Bus ~w~Job",5000,6);
  8812.     new name[MAX_PLAYER_NAME];
  8813.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8814.     new msg[255];
  8815.     format(msg,sizeof(msg),"***ATENTION: %s is now a Bus DRIVER***",name);
  8816.     for (new i=0;i<MAX_PLAYERS;i++)
  8817.         {
  8818.         if  (playerid!=i)
  8819.             {
  8820.             SendClientMessage(i,0xFFFF00AA,msg);
  8821.             }
  8822.         }
  8823.     return 1;
  8824.     }
  8825. //------------------------------------------------------------------------------
  8826. dcmd_taze(playerid, params[])
  8827. {
  8828.     new taze = strval(params);
  8829.     if(!strlen(params))
  8830.     {
  8831.         SendClientMessage(playerid, COLOR_ERROR, "USAGE: /taze [ID]");
  8832.     }
  8833.     else
  8834.     {
  8835.     if(gTeam[playerid] == COP || gTeam[playerid] == SWAT || gTeam[playerid] == ARMY || gTeam[playerid] == FBI)
  8836.     {
  8837.         if(IsPlayerConnected(taze))
  8838.         {
  8839.             if(GetDistanceBetweenPlayers(playerid, taze) <= 6)
  8840.             {
  8841.                 if(tazetime[playerid] == 0)
  8842.                 {
  8843.                     new tehtaze = random(5);
  8844.                     if(tehtaze == 1 || tehtaze == 2 || tehtaze == 3 || tehtaze == 4)
  8845.                     {
  8846.                         new string[256], Float:thlth;
  8847.                         format(string, sizeof(string), "%s (%i) has tazed you.",ReturnPlayerName(playerid), playerid);
  8848.                         SendClientMessage(taze, COLOR_MSG, string);
  8849.                         format(string, sizeof(string), "You have tazed %s (%i).",ReturnPlayerName(taze), taze);
  8850.                         SendClientMessage(playerid, COLOR_MSG, string);
  8851.                         GetPlayerHealth(taze, thlth);
  8852.                         new Float:tehtaze3 = thlth-15-random(30);
  8853.                         SetPlayerHealth(taze, tehtaze3);
  8854.                         if(thlth < tehtaze3)
  8855.                         {
  8856.                             format(string, sizeof(string), "%s (%i) has been tazed to death", ReturnPlayerName(taze), taze);
  8857.                             SendClientMessageToAll(COLOR_KILLED, string);
  8858.                         }
  8859.                         else
  8860.                         {
  8861.                             SendClientMessage(taze, COLOR_MSG, "You are stunned for a while.");
  8862.                             TogglePlayerControllable(taze, 0);
  8863.                             stunned[taze] = 1;
  8864.                             tazetime[playerid] = 1;
  8865.                             SetTimerEx("tazetimer", ANTISPAM*1000, 0, "i", playerid);
  8866.                             SetTimerEx("stuntimer", STUNNED_TIME*1000, 0, "i", taze);
  8867.                         }
  8868.                     }
  8869.                     else
  8870.                     {
  8871.                         new string[256], Float:phlth;
  8872.                         format(string, sizeof(string), "%s (%i) has accidentally held the tazer the wrong way and tazed himself",ReturnPlayerName(playerid), playerid);
  8873.                         SendClientMessage(taze, COLOR_MSG, string);
  8874.                         SendClientMessage(playerid, COLOR_MSG, "You accidentally held the tazer the wrong way and tazed yourself");
  8875.                         GetPlayerHealth(playerid, phlth);
  8876.                         new Float:tehtaze2 = phlth-25-random(30);
  8877.                         SetPlayerHealth(playerid, tehtaze2);
  8878.                         if(phlth < tehtaze2)
  8879.                         {
  8880.                             format(string, sizeof(string), "%s (%i) has been tazed to death",ReturnPlayerName(playerid), playerid);
  8881.                             SendClientMessageToAll(COLOR_KILLED, string);
  8882.                         }
  8883.                         else
  8884.                         {
  8885.                             SendClientMessage(playerid, COLOR_MSG, "You are stunned for a while.");
  8886.                             TogglePlayerControllable(playerid, 0);
  8887.                             stunned[playerid] = 1;
  8888.                             SetTimerEx("stuntimer", STUNNED_TIME*1000, 0, "i", playerid);
  8889.                             SetTimerEx("tazetimer", ANTISPAM*1000, 0, "i", playerid);
  8890.                             tazetime[playerid] = 1;
  8891.                         }
  8892.                     }
  8893.                 }
  8894.                 else
  8895.                 {
  8896.                     SendClientMessage(playerid, COLOR_MSG, "Please wait before tazing someone again!");
  8897.                 }
  8898.             }
  8899.             else
  8900.             {
  8901.                 new string[256];
  8902.                 format(string, sizeof(string), "%s (%i) is not close enough to taze!", ReturnPlayerName(taze), taze);
  8903.             }
  8904.         }
  8905.         else
  8906.         {
  8907.             SendClientMessage(playerid, COLOR_MSG, "That player is not connected!");
  8908.         }
  8909.       }
  8910.       else
  8911.       {
  8912.         SendClientMessage(playerid, COLOR_MSG, "You are not Police Officer!");
  8913.       }
  8914.     }
  8915.     return 1;
  8916. }
  8917. //
  8918. forward stuntimer(taze);
  8919. forward tazetimer(i);
  8920. public stuntimer(taze)
  8921. {
  8922.     stunned[taze] = 0;
  8923.     TogglePlayerControllable(taze, 1);
  8924.     SendClientMessage(taze, COLOR_MSG, "You have recovered from the tazer-shock");
  8925. }
  8926. public tazetimer(i)
  8927. {
  8928.     tazetime[i] = 0;
  8929. }
  8930. stock ReturnPlayerName(ID)
  8931. {
  8932.     new name[25];
  8933.     GetPlayerName(ID, name, 25);
  8934.     return name;
  8935. }
  8936. OnePlayAnim(playerid,animlib[],animname[], Float:Speed2, looping, lockx, locky, lockz, lp)
  8937. {
  8938.     if (gPlayerUsingLoopingAnim[playerid] == 1)
  8939.     ApplyAnimation(playerid, animlib, animname, Speed2, looping, lockx, locky, lockz, lp);
  8940.     animation[playerid]++;
  8941. }
  8942.  
  8943. //-------------------------------------------------
  8944.  
  8945. LoopingAnim(playerid,animlib[],animname[], Float:Speed2, looping, lockx, locky, lockz, lp)
  8946. {
  8947.     gPlayerUsingLoopingAnim[playerid] = 1;
  8948.     ApplyAnimation(playerid, animlib, animname, Speed2, looping, lockx, locky, lockz, lp);
  8949.     animation[playerid]++;
  8950. }
  8951. dcmd_lottohelp(playerid,params[])
  8952. {
  8953.     #pragma unused params
  8954.     SendClientMessage(playerid,yellow,"Lotto help: /buyticket /mylotto /lottotest");
  8955.     return 1;
  8956. }
  8957.  
  8958. dcmd_buyticket(playerid,params[])
  8959. {
  8960.     #pragma unused params
  8961.     if(HaveTicket[playerid] == true) return SendClientMessage(playerid, red, "You already have a Lotto ticket (6/49) .");
  8962.     if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, red, "Tickets Lotto 6/49 cost $ 1,000.");
  8963.     GivePlayerMoney(playerid, -1000);
  8964.     HaveTicket[playerid] = true;
  8965.     GepiLottoSzamok(playerid);
  8966.     format(output2, sizeof(output2), "Your Lotto numbers are: %d, %d, %d, %d, %d, %d", NyeroSzamok[0][playerid], NyeroSzamok[1][playerid], NyeroSzamok[2][playerid], NyeroSzamok[3][playerid], NyeroSzamok[4][playerid], NyeroSzamok[5][playerid]);
  8967.     SendClientMessage(playerid, yellow, output2);
  8968.     return 1;
  8969. }
  8970.  
  8971. dcmd_mylotto(playerid,params[])
  8972. {
  8973.     #pragma unused params
  8974.     if(HaveTicket[playerid] == false) return SendClientMessage(playerid, red, "Do not have a ticket lotto 6/49. Use / buyticket");
  8975.     format(output2, sizeof(output2), "Your Lotto numbers are: %d, %d, %d, %d, %d, %d", NyeroSzamok[0][playerid], NyeroSzamok[1][playerid], NyeroSzamok[2][playerid], NyeroSzamok[3][playerid], NyeroSzamok[4][playerid], NyeroSzamok[5][playerid]);
  8976.     SendClientMessage(playerid, yellow, output2);
  8977.     return 1;
  8978. }
  8979.  
  8980. dcmd_lottotest(playerid,params[])
  8981. {
  8982.     #pragma unused params
  8983.     if(IsPlayerAdmin(playerid))
  8984.     {
  8985.         Sorsolas();
  8986.     } else SendClientMessage(playerid,red,"You are not the main admin (RCON ADMIN)!");
  8987.     return 1;
  8988. }
  8989.  
  8990. forward Sorsolas();
  8991. public Sorsolas()
  8992. {
  8993.     NEXT:
  8994.     for(new f = 0; f < 6; f++) KisorsoltSzamok[f] = random(49)+1; // random number 1,2,3........44,45
  8995.     for(new f = 0; f < 5; f++)
  8996.     {
  8997.         for(new c = f+1; c < 6; c++)
  8998.         {
  8999.             if(KisorsoltSzamok[f] == KisorsoltSzamok[c])
  9000.             {
  9001.                 goto NEXT;
  9002.             }
  9003.         }
  9004.     }
  9005.  
  9006.     new Talalat[ALTERNATIVE_MAX_PLAYERS];
  9007.     for(new p = 0; p < ALTERNATIVE_MAX_PLAYERS; p++) if(IsPlayerConnected(p))
  9008.     {
  9009.         if(HaveTicket[p] == true)
  9010.         {
  9011.             for(new f = 0; f < 6; f++) for(new c = 0; c < 6; c++) { if(NyeroSzamok[f][p] == KisorsoltSzamok[c]) Talalat[p]++;} // Egyezés keresés dupla ciklus segítségével, Egyezésnél: Talalat[playerid] változó értékének növelése.
  9012.             SendClientMessage(p, red, " ============ Lotto 6/49 ============");
  9013.             // Your Lotto 6/49 numbers:
  9014.             format(output2, sizeof(output2), "Your Lotto numbers are: %d, %d, %d, %d, %d, %d", NyeroSzamok[0][p], NyeroSzamok[1][p], NyeroSzamok[2][p], NyeroSzamok[3][p], NyeroSzamok[4][p], NyeroSzamok[5][p]);
  9015.             SendClientMessage(p, yellow, output2);
  9016.             // The winning Lotto 6/49 numbers:
  9017.             format(output2, sizeof(output2), "Winning Numbers: %d, %d, %d, %d, %d, %d", KisorsoltSzamok[0], KisorsoltSzamok[1], KisorsoltSzamok[2], KisorsoltSzamok[3], KisorsoltSzamok[4], KisorsoltSzamok[5]);
  9018.             SendClientMessage(p, grgreen, output2);
  9019.             if(Talalat[p] == 0)   SendClientMessage(p, grgreen, "You have 0 correct numbers. Receive: $ 0");
  9020.             if(Talalat[p] == 1) { SendClientMessage(p, grgreen, "You have 1 correct numbers. Receive: $500 +1 score");      GivePlayerMoney(p, 500); SetPlayerScore(p,GetPlayerScore(p)+1); }
  9021.             if(Talalat[p] == 2) { SendClientMessage(p, grgreen, "You have 2 correct numbers. Receive: $4000 +3 score");     GivePlayerMoney(p, 4000); SetPlayerScore(p,GetPlayerScore(p)+3); }
  9022.             if(Talalat[p] == 3) { SendClientMessage(p, grgreen, "You have 3 correct numbers. Receive: $9300 +6 score");     GivePlayerMoney(p, 9300); SetPlayerScore(p,GetPlayerScore(p)+6); }
  9023.             if(Talalat[p] == 4) { SendClientMessage(p, grgreen, "You have 4 correct numbers. Receive: $27300 +9score"); GivePlayerMoney(p, 27300); SetPlayerScore(p,GetPlayerScore(p)+9); }
  9024.             if(Talalat[p] == 5) { SendClientMessage(p, grgreen, "You have 5 correct numbers. Receive: $95128 +10 score");   GivePlayerMoney(p, 95128); SetPlayerScore(p,GetPlayerScore(p)+10); }
  9025.             if(Talalat[p] == 6) {
  9026.                 SendClientMessage(p,red, "You have 5 correct numbers. Receive: $122000 si +11 score");
  9027.                 GivePlayerMoney(p, 122000);
  9028.                 SetPlayerScore(p,GetPlayerScore(p)+11); // Please players unban.// Kérem a játékos unbannolását. Erre az esély "1" a "10.068.347.520" :D
  9029.             }
  9030.             SendClientMessage(p, red, " ================================");
  9031.             HaveTicket[p] = false;
  9032.         }
  9033.     }
  9034.     return 1;
  9035. }
  9036.  
  9037. GepiLottoSzamok(playerid)  // véletlenszerüen megad lottószámokat
  9038. {
  9039.     START:
  9040.     for(new p = 0; p < 6; p++) { NyeroSzamok[p][playerid] = random(49)+1; }         // Rand szám sorsolás  rand 0-44-ig +1 = 1-45-ig :)
  9041. //  for(new null = 0; null < 5; null++) { if(NyeroSzamok[null][playerid] == 0) return SetTimerEx("GepiLottoSzamok", 50, 0, "i", playerid); }
  9042.     // Azonosság keresés egyezés esetén visszatérés ismétlésre.
  9043.     for(new f = 0; f < 5; f++)
  9044.     {
  9045.         for(new c = f+1; c < 6; c++)
  9046.         {
  9047.             if(NyeroSzamok[f][playerid] == NyeroSzamok[c][playerid])
  9048.             {
  9049.                 goto START; // Teszteltem 1/ms ismétléssel a legnagyobb visszaugrás száma random 45-nél max 7-es érték volt, nem kizárt ennél nagyobb se.
  9050.             }
  9051.         }
  9052.     }
  9053. }
  9054.  
  9055. forward LottoHirdetes();
  9056. public LottoHirdetes()
  9057. {
  9058.     SendClientMessageToAll(green,"Want to play the lotto? Write /buyticket to buy a ticket. For help type /lottohelp");
  9059. }
  9060. public Speedometer(playerid)
  9061. {
  9062.     new State = GetPlayerState(playerid);
  9063.     if(Spawned[playerid] == 1)
  9064.     {
  9065.     if(State == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle(playerid))
  9066.     {
  9067.         if(Speed[playerid][ShowSpeed] == 1)
  9068.         {
  9069.             #define MULTIPLY_SPEED  4
  9070.             new vehicleid = GetPlayerVehicleID(playerid);
  9071.             new VehicleModel = GetVehicleModel(vehicleid);
  9072.  
  9073.             new Float:x, Float:y, Float:z, Float:health, string[256], string2[255];
  9074.             GetPlayerPos(playerid, x, y, z); GetVehicleHealth(vehicleid, health);
  9075.             new Float:Dis = floatsqroot(floatpower(floatabs(floatsub(Speed[playerid][OldCoordsX],x)),2) + floatpower(floatabs(floatsub(Speed[playerid][OldCoordsY],y)),2));
  9076.  
  9077.             if(Vehicle[vehicleid][Fuel] <= 0){ RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_YELLOW, "[FUEL]: There is no fuel in the vehicle."); }
  9078.             if(VehicleModel==509||VehicleModel==481||VehicleModel==510) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); Vehicle[vehicleid][Fuel] = 100; }
  9079.             if(VehicleModel==520||VehicleModel==476||VehicleModel==593||VehicleModel==553||VehicleModel==513||VehicleModel==512||VehicleModel==577||VehicleModel==592||VehicleModel==511||VehicleModel==539||VehicleModel==464||VehicleModel==519) { Vehicle[vehicleid][Fuel] = 100; }
  9080.             new speed = (floatround(Dis)*MULTIPLY_SPEED);
  9081.  
  9082.             new Sspeed[15];
  9083.  
  9084.             if( speed == 0) {
  9085.                 format(Sspeed,sizeof(Sspeed),"~G~%dm/h",(floatround(Dis)*MULTIPLY_SPEED));
  9086.             } else if( speed >= 1 && speed <= 65 ){
  9087.                 format(Sspeed,sizeof(Sspeed),"~G~%dm/h",(floatround(Dis)*MULTIPLY_SPEED));
  9088.                 Vehicle[vehicleid][Fuel] -= 0.01;
  9089.             } else if( speed >= 66 && speed <= 120 ){
  9090.                 format(Sspeed,sizeof(Sspeed),"~Y~%dm/h",(floatround(Dis)*MULTIPLY_SPEED));
  9091.                 Vehicle[vehicleid][Fuel] -= 0.02;
  9092.             } else {
  9093.                 format(Sspeed,sizeof(Sspeed),"~R~%dm/h",(floatround(Dis)*MULTIPLY_SPEED));
  9094.                 Vehicle[vehicleid][Fuel] -= 0.03;
  9095.             }
  9096.             TextDrawHideForPlayer(playerid, BOX2);
  9097.             TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
  9098.             TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
  9099.             TextDrawShowForPlayer(playerid, Speed[playerid][Speedom2]);
  9100.             TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  9101.             format(string,sizeof(string),"~w~LoLocation: %s",ReturnPlayerZone(playerid), Vehicle[vehicleid][Fuel]);
  9102.             TextDrawSetString(Speed[playerid][Speedom], string);
  9103.             format(string2,sizeof(string2),"                                                                                  Fuel: ~W~%.1f",Vehicle[vehicleid][Fuel]);
  9104.             TextDrawSetString(Speed[playerid][Speedom2], string2);
  9105.             Speed[playerid][OldCoordsX] = x; Speed[playerid][OldCoordsY]  = y;
  9106.             TextDrawShowForPlayer(playerid, BOX2);
  9107.         }
  9108.         } else
  9109.         {
  9110.             new string[250];
  9111.             TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  9112.             format(string,sizeof(string),"~w~LoLocation: %s" ,ReturnPlayerZone(playerid));
  9113.             TextDrawSetString(Speed[playerid][Speedom], string);
  9114.          }
  9115.     }
  9116.     return true;
  9117. }
  9118.  
  9119. stock Random(min, max)
  9120. {
  9121.     new a = random(max - min) + min;
  9122.     return a;
  9123. }
  9124.  
  9125. dcmd_refuel(playerid,params[]){
  9126.     #pragma unused params
  9127.     if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid)){
  9128.         if(IsAtFuelStation(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  9129.             new vehicleid = GetPlayerVehicleID(playerid);
  9130.             if(Speed[playerid][Refueling] == 0){
  9131.                 if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessage(playerid,COLOR_YELLOW,".:: [ERROR]: This vehicle does not need fuel :.");
  9132.                 if(Vehicle[vehicleid][Fuel] >= 100){
  9133.                     SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: Your gas tank is already full.");
  9134.                 } else {
  9135.                     Vehicle[GetPlayerVehicleID(playerid)][OldFuel] = 0; Speed[playerid][Refueling] = 1;
  9136.                     Speed[playerid][ReFuelTimer] = SetTimerEx("ReFill", 1000, true, "i", playerid); }
  9137.             } else { SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: You are allready refueling your car."); }
  9138.         } else { SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: You must be at a gas station to refuel"); } }
  9139.     return true;
  9140. }
  9141.  
  9142. ///////////////////////////
  9143. //    Fuel Functions
  9144. //////////////////////////
  9145.  
  9146. public ReFill(playerid)
  9147. {
  9148.     new Float:x, Float:y, Float:z;
  9149.     if(GetPlayerPos(playerid, x, y, z) != IsAtFuelStation(playerid) || Vehicle[GetPlayerVehicleID(playerid)][Fuel] >= 100){
  9150.         StopRefueling(playerid);
  9151.      } else { Vehicle[GetPlayerVehicleID(playerid)][Fuel] ++; Vehicle[GetPlayerVehicleID(playerid)][OldFuel] ++; }
  9152.     return true;
  9153. }
  9154.  
  9155. stock StopRefueling(playerid)
  9156. {
  9157.     GivePlayerMoney(playerid, -Vehicle[GetPlayerVehicleID(playerid)][OldFuel]);
  9158.     SendFormattedMessage(playerid, COLOR_YELLOW,".:: [FUEL]: Your vehicle has been refueled for $%d.", Vehicle[GetPlayerVehicleID(playerid)][OldFuel]);
  9159.     Speed[playerid][Refueling] = 0; KillTimer(Speed[playerid][ReFuelTimer]);
  9160.     return true;
  9161. }
  9162.  
  9163. public IsAtFuelStation(playerid)
  9164. {
  9165.     if(PlayerToPoint(10,playerid,1595.5406, 2198.0520, 10.3863) || PlayerToPoint(10,playerid,2202.0649, 2472.6697, 10.5677) ||
  9166.     PlayerToPoint(10,playerid,2115.1929, 919.9908, 10.5266) || PlayerToPoint(10,playerid,2640.7209, 1105.9565, 10.5274) ||
  9167.     PlayerToPoint(10,playerid,608.5971, 1699.6238, 6.9922) || PlayerToPoint(10,playerid,618.4878, 1684.5792, 6.9922) ||
  9168.     PlayerToPoint(10,playerid,2146.3467, 2748.2893, 10.5245) || PlayerToPoint(10,playerid,-1679.4595, 412.5129, 6.9973) ||
  9169.     PlayerToPoint(10,playerid,-1327.5607, 2677.4316, 49.8093) || PlayerToPoint(10,playerid,-1470.0050, 1863.2375, 32.3521) ||
  9170.     PlayerToPoint(10,playerid,-2409.2200, 976.2798, 45.2969) || PlayerToPoint(10,playerid,-2244.1396, -2560.5833, 31.9219) ||
  9171.     PlayerToPoint(10,playerid,-1606.0544, -2714.3083, 48.5335) || PlayerToPoint(10,playerid,1937.4293, -1773.1865, 13.3828) ||
  9172.     PlayerToPoint(10,playerid,-91.3854, -1169.9175, 2.4213) || PlayerToPoint(10,playerid,1383.4221, 462.5385, 20.1506) ||
  9173.     PlayerToPoint(10,playerid,660.4590, -565.0394, 16.3359) || PlayerToPoint(10,playerid,1381.7206, 459.1907, 20.3452) ||
  9174.     PlayerToPoint(10,playerid,-1605.7156, -2714.4573, 48.5335))
  9175.     { return true; }
  9176.     return false;
  9177. }
  9178.  
  9179. ///////////////////////////
  9180. //    Zone Functions
  9181. //////////////////////////
  9182.  
  9183. stock IsPlayerInZone(playerid, zoneid) {
  9184.     if(zoneid == -1) return false;
  9185.     new Float:x, Float:y, Float:z;
  9186.     GetPlayerPos(playerid, x, y, z);
  9187.     if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx] && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy] && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz] && z < 900.0) return true;
  9188.     return false;
  9189. }
  9190.  
  9191. stock ReturnPlayerZone(playerid)
  9192. {
  9193.     new playerzone[256] = "Unknown";
  9194.     for(new j; j < sizeof(zones); j++) {
  9195.         if(IsPlayerInZone(playerid,j)) {
  9196.             memcpy(playerzone, zones[j][zone_name], 0, 108);
  9197.             break;
  9198.         }
  9199.     }
  9200.     return playerzone;
  9201. }
  9202.  
  9203. stock GetPlayerZoneID(playerid)
  9204. {
  9205.     for(new j; j < sizeof(zones); j++) {
  9206.         if(IsPlayerInZone(playerid, j)) return j;
  9207.         }
  9208. }
  9209.  
  9210. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  9211. {
  9212.     new file[256];
  9213.     new name[MAX_PLAYER_NAME];
  9214.     new Registre[250];
  9215.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  9216.     if(dialogid == RegisterName)
  9217.     {
  9218.         if(!response) Kick(playerid);
  9219.         {
  9220.         if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Register","Invalid Password\nPlease enter an password!","Register","Ban");
  9221.         format(file,sizeof(file),"%s.runix", name);
  9222.         if(!fexist(file))
  9223.         {
  9224.             dini_Create(file);
  9225.             dini_IntSet(file, "Password", udb_hash(inputtext));
  9226.             dini_IntSet(file, "Money", 2500);
  9227.             dini_IntSet(file, "Score", 1);
  9228.             dini_IntSet(file, "Bank", 1000);
  9229.             dini_IntSet(file, "RobSkill", 1);
  9230.             dini_IntSet(file, "TerSkill", 1);
  9231.             dini_IntSet(file, "Admin", 0);
  9232.             dini_IntSet(file, "Warnings", 0);
  9233.             dini_IntSet(file, "WantedLevel", 0);
  9234.             dini_IntSet(file, "Jail", 0);
  9235.             dini_IntSet(file, "RentalOwner", 0);
  9236.             dini_IntSet(file, "Drugs", 0);
  9237.             dini_IntSet(file, "C4", 0);
  9238.             dini_IntSet(file, "Skin", -1);
  9239.             format(Registre,sizeof(Registre),"Thanks for registering!\nYou may now login.",name);
  9240.             ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Login","Ban");
  9241.             GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
  9242.         }
  9243.         }
  9244.     }
  9245.     if(dialogid == LoginName)
  9246.     {
  9247.         if(!response) Kick(playerid);
  9248.         {
  9249.         GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  9250.         if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Invalit Password!\nPlease enter an password","Login","Ban");
  9251.         format(file,sizeof(file),"%s.runix", name);
  9252.         if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Wrong Password!\nPlease enter an password","Login","Ban");
  9253.         else
  9254.         {
  9255.         IsPlayerLogged[playerid] = 1;
  9256.         SetPlayerMoney(playerid, dini_Int(file, "Money"));
  9257.         SetPlayerScore(playerid, dini_Int(file, "Score"));
  9258.         AccountInfo[playerid][aLevel] = dini_Int(file, "Admin");
  9259.         PlayerSkin[playerid] = dini_Int(file,"Skin");
  9260.         SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
  9261.         SendClientMessage(playerid, GREY, "You are now logged in. Your status will be saved on your logout.");
  9262.         GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
  9263.         }
  9264.         }
  9265.     }
  9266.     return 0;
  9267. }
  9268.  
  9269. dcmd_report(playerid, params[])
  9270. {
  9271.     new ID, reason[100];
  9272.     if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [id] [reason]");
  9273.     else
  9274.     {
  9275.         new string[256], name[60], name2[60];
  9276.         GetPlayerName(playerid, name, 60);
  9277.         GetPlayerName(ID, name2, 60);
  9278.         format(string, 256, "%s[%d] reported %s[%d] (Reason: %s)", name, playerid, name2, ID, reason);
  9279.         for(new i=0;i<MAX_PLAYERS;i++)
  9280.         {
  9281.             if(IsPlayerConnected(i))
  9282.             {
  9283.                 if(AccountInfo[i][aLevel] > 0)
  9284.                 {
  9285.                     SendClientMessage(i, COLOR_WHITE, string);
  9286.                 }
  9287.             }
  9288.         }
  9289.     }
  9290.     return 1;
  9291. }
  9292.  
  9293.  
  9294. dcmd_setlevel(playerid, params[])
  9295. {
  9296.     if(IsPlayerAdmin(playerid))
  9297.     {
  9298.         new ID, level;
  9299.         if(sscanf(params, "ii", ID, level)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setlevel [id] [level]");
  9300.         else if(ID == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9301.         else
  9302.         {
  9303.             AccountInfo[ID][aLevel] = level;
  9304.             SendClientMessage(ID, COLOR_GREEN, "The RCON Admin promoted you to an admin!");
  9305.         }
  9306.     }
  9307.     return 1;
  9308. }
  9309.  
  9310. dcmd_admins(playerid, params[])
  9311. {
  9312.     SendClientMessage(playerid, COLOR_YELLOW, "Online admins:");
  9313.     new chose;
  9314.     for(new i=0;i<MAX_PLAYERS;i++)
  9315.     {
  9316.         if(AccountInfo[i][aLevel] > 0)
  9317.         {
  9318.             new name[60], string[100];
  9319.             GetPlayerName(i, name, 60);
  9320.             format(string, 100, "%s[%i] Level: %i", name, i, AccountInfo[i][aLevel]);
  9321.             SendClientMessage(playerid, COLOR_WHITE, string);
  9322.             chose = 1;
  9323.         }
  9324.     }
  9325.     if(chose == 0)
  9326.     {
  9327.         SendClientMessage(playerid, COLOR_WHITE, "No administrators online!");
  9328.     }
  9329.     return 1;
  9330.     #pragma unused params
  9331. }
  9332.  
  9333. dcmd_kick(playerid, params[])
  9334. {
  9335.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9336.     else
  9337.     {
  9338.         new ID, reason[100];
  9339.         if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [id] [reason]");
  9340.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9341.         else
  9342.         {
  9343.             new string[256], name[60], name2[60];
  9344.             GetPlayerName(playerid, name, 60);
  9345.             GetPlayerName(ID, name2, 60);
  9346.             format(string, 256, "Administrator %s[%d] has kicked %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9347.             SendClientMessageToAll(COLOR_YELLOW, string);
  9348.             Kick(ID);
  9349.         }
  9350.     }
  9351.     return 1;
  9352. }
  9353.  
  9354. dcmd_ban(playerid, params[])
  9355. {
  9356.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9357.     else
  9358.     {
  9359.         new ID, reason[100];
  9360.         if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban [id] [reason]");
  9361.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9362.         else
  9363.         {
  9364.             new string[256], name[60], name2[60];
  9365.             GetPlayerName(playerid, name, 60);
  9366.             GetPlayerName(ID, name2, 60);
  9367.             format(string, 256, "Administrator %s[%d] has banned %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9368.             SendClientMessageToAll(COLOR_YELLOW, string);
  9369.             Ban(ID);
  9370.         }
  9371.     }
  9372.     return 1;
  9373. }
  9374.  
  9375. dcmd_car(playerid,params[]) {
  9376.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9377.     else
  9378.     {
  9379.         new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); tmp3 = strtok(params,Index);
  9380.         if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /car [Modelid] [colour1] [colour2]");
  9381.         new car, colour1, colour2;
  9382.         car = strval(tmp);
  9383.         if(car < 400 || car > 611) SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
  9384.         if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);
  9385.         if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);
  9386.         if(IcmdCar[playerid][CarcmdI] != -1) ExkillCar(IcmdCar[playerid][CarcmdI]);
  9387.         new VehiclulR,Float:X,Float:Y,Float:Z, Float:Angle,int1;
  9388.         GetPlayerPos(playerid, X,Y,Z);  GetPlayerFacingAngle(playerid,Angle);
  9389.         int1 = GetPlayerInterior(playerid);
  9390.         VehiclulR = AddStaticVehicleEx(car, X+3,Y,Z, Angle, colour1, colour2, 60);
  9391.         PutPlayerInVehicle(playerid, VehiclulR, 0);
  9392.         LinkVehicleToInterior(VehiclulR,int1);
  9393.         IcmdCar[playerid][CarcmdI] = VehiclulR;
  9394.         }
  9395.     return 1;
  9396. }
  9397.  
  9398.  
  9399. dcmd_giveweapon(playerid,params[]) {
  9400.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9401.     else
  9402.     {
  9403.         new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index);
  9404.         if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /giveweapon [playerid] [weapon id/weapon name] [ammo]");
  9405.         new player1 = strval(tmp), weap, ammo, string[128];
  9406.         if(!strlen(tmp3) || !IsNumeric(tmp3) || strval(tmp3) <= 0 || strval(tmp3) > 99999) ammo = 500; else ammo = strval(tmp3);
  9407.         weap = strval(tmp2);
  9408.         if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  9409.             if(!IsValidWeapon(weap)) return SendClientMessage(playerid,red,"ERROR: Invalid weapon ID");
  9410.             format(string, sizeof(string), "You have given \"%s\" an weapon", PlayerName2(player1)); SendClientMessage(playerid,blue,string);
  9411.             if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has given an weapon", PlayerName2(playerid)); SendClientMessage(player1,blue,string); }
  9412.             return GivePlayerWeapon(player1, weap, ammo);
  9413.         } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
  9414.     }
  9415.     return 1;
  9416. }
  9417.  
  9418. dcmd_freeze(playerid, params[])
  9419. {
  9420.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9421.     else
  9422.     {
  9423.         new ID, reason[100];
  9424.         if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [id] [reason]");
  9425.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9426.         else
  9427.         {
  9428.             new string[256], name[60], name2[60];
  9429.             GetPlayerName(playerid, name, 60);
  9430.             GetPlayerName(ID, name2, 60);
  9431.             format(string, 256, "Administrator %s[%d] has frozen %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9432.             SendClientMessageToAll(COLOR_YELLOW, string);
  9433.             TogglePlayerControllable(ID, 0);
  9434.         }
  9435.     }
  9436.     return 1;
  9437. }
  9438.  
  9439. dcmd_unfreeze(playerid, params[])
  9440. {
  9441.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9442.     else
  9443.     {
  9444.         new ID;
  9445.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [id]");
  9446.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9447.         else
  9448.         {
  9449.             TogglePlayerControllable(ID, 1);
  9450.         }
  9451.     }
  9452.     return 1;
  9453. }
  9454.  
  9455. dcmd_akill(playerid, params[])
  9456. {
  9457.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9458.     else
  9459.     {
  9460.         new ID, reason[100];
  9461.         if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /akill [id] [reason]");
  9462.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9463.         else
  9464.         {
  9465.             new string[256], name[60], name2[60];
  9466.             GetPlayerName(playerid, name, 60);
  9467.             GetPlayerName(ID, name2, 60);
  9468.             format(string, 256, "Administrator %s[%d] has adminkilled %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9469.             SendClientMessageToAll(COLOR_YELLOW, string);
  9470.             SetPlayerHealth(ID, 0);
  9471.         }
  9472.     }
  9473.     return 1;
  9474. }
  9475.  
  9476. dcmd_mute(playerid, params[])
  9477. {
  9478.     if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9479.     else
  9480.     {
  9481.         new ID, reason[100];
  9482.         if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [id] [reason]");
  9483.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9484.         else
  9485.         {
  9486.             new string[256], name[60], name2[60];
  9487.             GetPlayerName(playerid, name, 60);
  9488.             GetPlayerName(ID, name2, 60);
  9489.             format(string, 256, "Administrator %s[%d] has muted %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9490.             SendClientMessageToAll(COLOR_YELLOW, string);
  9491.             Muted[ID] = 1;
  9492.         }
  9493.     }
  9494.     return 1;
  9495. }
  9496.  
  9497. dcmd_unmute(playerid, params[])
  9498. {
  9499.     if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9500.     else
  9501.     {
  9502.         new ID;
  9503.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unmute [id]");
  9504.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9505.         else
  9506.         {
  9507.             new string[256], name[60], name2[60];
  9508.             GetPlayerName(playerid, name, 60);
  9509.             GetPlayerName(ID, name2, 60);
  9510.             format(string, 256, "Administrator %s[%d] has unmuted %s[%d].", name, playerid, name2, ID);
  9511.             SendClientMessageToAll(COLOR_YELLOW, string);
  9512.             Muted[playerid] = 0;
  9513.         }
  9514.     }
  9515.     return 1;
  9516. }
  9517.  
  9518. dcmd_spec(playerid, params[])
  9519. {
  9520.     if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9521.     else
  9522.     {
  9523.         new ID;
  9524.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spec [id]");
  9525.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9526.         else
  9527.         {
  9528.             TogglePlayerSpectating(playerid, 1);
  9529.             PlayerSpectatePlayer(playerid, ID, SPECTATE_MODE_NORMAL);
  9530.         }
  9531.     }
  9532.     return 1;
  9533. }
  9534.  
  9535. dcmd_specoff(playerid, params[])
  9536. {
  9537.     if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9538.     else
  9539.     {
  9540.         TogglePlayerSpectating(playerid, 0);
  9541.         SpawnPlayer(playerid);
  9542.     }
  9543.     return 1;
  9544.     #pragma unused params
  9545. }
  9546.  
  9547. dcmd_slap(playerid, params[])
  9548. {
  9549.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9550.     else
  9551.     {
  9552.         new ID;
  9553.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [id]");
  9554.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9555.         else
  9556.         {
  9557.             new Float:x, Float:y, Float:z, name[60], string[100];
  9558.             GetPlayerPos(ID, x, y, z);
  9559.             SetPlayerPos(ID, x, y, z+30);
  9560.             format(string, 100, "You have slapped %s[%d]", name, ID);
  9561.             SendClientMessage(playerid, COLOR_YELLOW, string);
  9562.         }
  9563.     }
  9564.     return 1;
  9565. }
  9566.  
  9567. dcmd_jetpack(playerid,params[])
  9568. {
  9569.     if(AccountInfo[playerid][aLevel] < 4) SendClientMessage(playerid, COLOR_RED, "AdminLevel 4 needed for this command!");
  9570.     else
  9571.     {
  9572.         SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
  9573.     }
  9574.     return 1;
  9575.     #pragma unused params
  9576. }
  9577.  
  9578. dcmd_announce(playerid, params[])
  9579. {
  9580.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9581.     else
  9582.     {
  9583.         new string[256];
  9584.         if(sscanf(params, "s", string)) SendClientMessage(playerid, COLOR_WHITE, "Usage: /announce [text]");
  9585.         else
  9586.         {
  9587.             GameTextForAll(string, 3000, 3);
  9588.         }
  9589.     }
  9590.     return 1;
  9591. }
  9592.  
  9593. dcmd_setscore(playerid, params[])
  9594. {
  9595.     if(AccountInfo[playerid][aLevel] < 5) SendClientMessage(playerid, COLOR_RED, "AdminLevel 5 needed for this command!");
  9596.     else
  9597.     {
  9598.         new ID, score;
  9599.         if(sscanf(params, "ii", ID, score)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setscore [id] [score]");
  9600.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9601.         else
  9602.         {
  9603.             new name[60], string[100];
  9604.             GetPlayerName(playerid, name, 60);
  9605.             format(string, 100, "Administrator %s set your score to %d", name, score);
  9606.             SendClientMessage(ID, COLOR_YELLOW, string);
  9607.             GetPlayerName(ID, name, 60);
  9608.             format(string, 100, "You have set %s's score to %i", name, score);
  9609.             SendClientMessage(playerid, COLOR_YELLOW, string);
  9610.             SetPlayerScore(ID, score);
  9611.         }
  9612.     }
  9613.     return 1;
  9614. }
  9615.  
  9616. dcmd_agivemoney(playerid, params[])
  9617. {
  9618.     if(AccountInfo[playerid][aLevel] < 4) SendClientMessage(playerid, COLOR_RED, "AdminLevel 4 needed for this command!");
  9619.     else
  9620.     {
  9621.         new ID, amount;
  9622.         if(sscanf(params, "id", ID, amount)) SendClientMessage(playerid , COLOR_WHITE, "USAGE: /agivemoney [id] [amount]");
  9623.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9624.         else
  9625.         {
  9626.             new string[100], name[60];
  9627.             GetPlayerName(ID, name, 60);
  9628.             format(string, 100, "You have given %s[%d] $%d", name, ID, amount);
  9629.             SendClientMessage(playerid, COLOR_YELLOW, string);
  9630.             GetPlayerName(playerid, name, 60);
  9631.             format(string, 100, "Administrator %s[%d] has given you $%d", name, playerid, amount);
  9632.             SendClientMessage(ID, COLOR_YELLOW, string);
  9633.             GivePlayerMoney(ID, amount);
  9634.         }
  9635.     }
  9636.     return 1;
  9637. }
  9638.  
  9639. dcmd_goto(playerid, params[])
  9640. {
  9641.     if(AccountInfo[playerid][aLevel] < 3) SendClientMessage(playerid, COLOR_RED, "AdminLevel 3 needed for this command!");
  9642.     else
  9643.     {
  9644.         new ID;
  9645.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goto [id]");
  9646.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9647.         else
  9648.         {
  9649.             new Float:x, Float:y, Float:z;
  9650.             GetPlayerPos(ID, x, y, z);
  9651.             SetPlayerPos(playerid, x+1, y+1, z);
  9652.         }
  9653.     }
  9654.     return 1;
  9655. }
  9656.  
  9657. dcmd_gethere(playerid, params[])
  9658. {
  9659.     if(AccountInfo[playerid][aLevel] < 3) SendClientMessage(playerid, COLOR_RED, "AdminLevel 3 needed for this command!");
  9660.     else
  9661.     {
  9662.         new ID;
  9663.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gethere [id]");
  9664.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9665.         else
  9666.         {
  9667.             new Float:x, Float:y, Float:z;
  9668.             GetPlayerPos(playerid, x, y, z);
  9669.             SetPlayerPos(ID, x+1, y+1, z);
  9670.         }
  9671.     }
  9672.     return 1;
  9673. }
  9674.  
  9675. dcmd_i(playerid, params[])
  9676. {
  9677.         new ID,string[256],string2[256],name[60];
  9678.         if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /i [id]");
  9679.         else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9680.         else
  9681.         {
  9682.          HideDraw(playerid);
  9683.          GetPlayerName(ID, name, 60);
  9684.          new carid = GetPlayerVehicleID(ID);
  9685.          TextDrawShowForPlayer(playerid,text44);
  9686.          TextDrawShowForPlayer(playerid,text45);
  9687.          TextDrawShowForPlayer(playerid,PCBOX);
  9688.          if(!IsPlayerInAnyVehicle(ID))
  9689.          {
  9690.          format(string, 256, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Money:~w~%d~n~~g~Wanted Level:~w~%d~n~~g~Drive:~w~none", name, ID, ReturnPlayerZone(ID),GetPlayerMoney(ID),GetPlayerWantedLevel(ID));
  9691.          }else
  9692.          if(IsPlayerInAnyVehicle(ID))
  9693.          {
  9694.          format(string, 256, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Money:~w~%d~n~~g~Wanted Level:~w~%d~n~~g~Drive:~w~%s", name, ID, ReturnPlayerZone(ID),GetPlayerMoney(ID),GetPlayerWantedLevel(ID),VehicleNames[GetVehicleModel(carid)-400]);
  9695.          }
  9696.          TextDrawSetString(text44,string);
  9697.          format(string2,256,"~n~~n~~n~~n~~n~~n~~n~~w~Type ~r~~h~LMB ~w~For Hide Thes~n~~w~Boxes!");
  9698.          TextDrawSetString(text45,string2);
  9699.         }
  9700.         return 1;
  9701. }
  9702.  
  9703. dcmd_ahelp(playerid, params[])
  9704. {
  9705.     SendClientMessage(playerid, COLOR_WHITE, "/kick /ban /freeze /unfreeze /slap /goto /gethere /jetpack");
  9706.     SendClientMessage(playerid, COLOR_WHITE, "/agivemoney /setscore /announce /spec /specoff /mute");
  9707.     SendClientMessage(playerid, COLOR_WHITE, "/unmute /akill /sethp /giveweapon /car");
  9708.     return 1;
  9709.     #pragma unused params
  9710. }
  9711.  
  9712. dcmd_sethp(playerid, params[])
  9713. {
  9714.     if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9715.     else
  9716.     {
  9717.         new ID, amount;
  9718.         if(sscanf(params, "ii", ID, amount)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethp [id] [amount]");
  9719.         else
  9720.         {
  9721.             new name[60], string[256];
  9722.             GetPlayerName(ID, name, 60);
  9723.             format(string, 256, "You have set %s[%d]'s HP to %d", name, ID, amount);
  9724.             SendClientMessage(playerid, COLOR_YELLOW, string);
  9725.             SetPlayerHealth(playerid, amount);
  9726.         }
  9727.     }
  9728.     return 1;
  9729. }
  9730. public GPSUpdate(playerid,playerid2)
  9731. {
  9732.   if(IsPlayerConnected(playerid2)){
  9733.   new Float:Distnace;
  9734.   Distnace = GetDistanceBetweenPlayers(playerid,playerid2);
  9735.   new Float:X,Float:Y,Float:Z;
  9736.   GetPlayerPos(playerid2,X,Y,Z);
  9737.   DisablePlayerRaceCheckpoint(playerid);
  9738.   SetPlayerRaceCheckpoint(playerid,0,X,Y,Z,0,0,0,0.1);
  9739.   new string[128];
  9740.   format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~p~Distance: ~r~%.1f ~y~m",Distnace);
  9741.   GameTextForPlayer(playerid, string, 1100, 5);
  9742.   if(Distnace <= 4.0) {
  9743.   DisablePlayerRaceCheckpoint(playerid);
  9744.   KillTimer(GPSTimer[playerid]);
  9745.   HaveGPS[playerid] = false;
  9746.   GPSTimer[playerid] = 0;
  9747.   }
  9748.   }else{
  9749.   DisablePlayerRaceCheckpoint(playerid);
  9750.   KillTimer(GPSTimer[playerid]);
  9751.   HaveGPS[playerid] = false;
  9752.   GPSTimer[playerid] = 0;
  9753.   SendClientMessage(playerid, 0xFF0000AA, "SERVER: Player Joints.");
  9754.   }
  9755.   return 1;
  9756. }
  9757. forward Wanted(playerid);
  9758. public Wanted(playerid)
  9759. {
  9760. if(GetPlayerWantedLevel(playerid) > 0)
  9761. {
  9762. SetPlayerWantedLevel(playerid,-1);
  9763. }
  9764. }
  9765. public BlowCar(vehicleid)
  9766. {
  9767.     new Float:x, Float:y, Float:z;
  9768.     GetVehiclePos(vehicleid, x, y, z);
  9769.     CreateExplosion(x, y, z, 6, 5);
  9770.     SetVehicleHealth(vehicleid,0.0);
  9771. }
  9772.  
  9773. public BlowPlayers()
  9774. {
  9775.     for(new i = 0; i < MAX_PLAYERS; i++)
  9776.     {
  9777.         if(IsPlayerSpawned(i))
  9778.         {
  9779.             if(BlowTime[i] > 1)
  9780.             {
  9781.                 BlowTime[i]--;
  9782.                 new string[250], timeleft = (BlowTime[i]);
  9783.                 format(string, sizeof(string), "~r~C4~w~:~n~~g~%d ~w~seconds to blow", timeleft);
  9784.                 GameTextForPlayer(i, string, 3000, 3);
  9785.             }
  9786.             if(BlowTime[i] == 1)
  9787.             {
  9788.                 new Float:x, Float:y, Float:z;
  9789.                 GetPlayerPos(i, x, y, z);
  9790.                 CreateExplosion(x, y, z, 6, 5);
  9791.                 SetPlayerHealth(i, 0);
  9792.                 BlowTime[i] = 0;
  9793.             }
  9794.         }
  9795.     }
  9796. }
  9797. stock IsValidWeapon(weaponid)
  9798. {
  9799.     if (weaponid > 0 && weaponid < 19 || weaponid > 21 && weaponid < 47) return 1;
  9800.     return 0;
  9801. }
  9802. stock PlayerName2(playerid) {
  9803.   new name[MAX_PLAYER_NAME];
  9804.   GetPlayerName(playerid, name, sizeof(name));
  9805.   return name;
  9806. }
  9807. forward UcideMasinileBoule(vehicleid);
  9808. public UcideMasinileBoule(vehicleid)
  9809. {
  9810.     for(new i=0;i<MAX_PLAYERS;i++) {
  9811.         new Float:X,Float:Y,Float:Z;
  9812.         if(IsPlayerInVehicle(i, vehicleid)) {
  9813.             RemovePlayerFromVehicle(i);
  9814.             GetPlayerPos(i,X,Y,Z);
  9815.             SetPlayerPos(i,X,Y+3,Z);
  9816.         }
  9817.         SetVehicleParamsForPlayer(vehicleid,i,0,1);
  9818.     }
  9819.     SetTimerEx("VehRes",1500,0,"i",vehicleid);
  9820. }
  9821.  
  9822. forward VehRes(vehicleid);
  9823. public VehRes(vehicleid)
  9824. {
  9825.     DestroyVehicle(vehicleid);
  9826. }
  9827.  
  9828. forward ExkillCar(vehicleid);
  9829. public ExkillCar(vehicleid)
  9830. {
  9831.     for(new i=0;i<MAX_PLAYERS;i++) {
  9832.         new Float:X,Float:Y,Float:Z;
  9833.         if(IsPlayerInVehicle(i, vehicleid)) {
  9834.             RemovePlayerFromVehicle(i);
  9835.             GetPlayerPos(i,X,Y,Z);
  9836.             SetPlayerPos(i,X,Y+3,Z);
  9837.         }
  9838.         SetVehicleParamsForPlayer(vehicleid,i,0,1);
  9839.     }
  9840.     DestroyVehicle(vehicleid);
  9841. }
  9842. dcmd_hit(playerid, params[])
  9843. {
  9844.     new amount, ID;
  9845.     if(sscanf(params, "dd", ID, amount))
  9846.     {
  9847.         SendClientMessage(playerid, COLOR_ERROR, "USAGE: /hit [ID] [amount]");
  9848.     }
  9849.     else if(amount > 0)
  9850.     {
  9851.         if(IsPlayerConnected(ID))
  9852.         {
  9853.         if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  9854.         {
  9855.             if(GetPlayerMoney(playerid) >= amount)
  9856.             {
  9857.                 if(antispam[playerid] == 0)
  9858.                 {
  9859.                     hit[ID] = amount;
  9860.                     hiter[ID] = playerid;
  9861.                     new string[256];
  9862.                     format(string, sizeof(string), "You have placed a hit on %s (%i) for $%i", ReturnPlayerName(ID), ID, amount);
  9863.                     SendClientMessage(playerid, COLOR_MSG, string);
  9864.                     format(string, sizeof(string), "%s (%i) has placed a hit on %s (%i) for $%i", ReturnPlayerName(playerid), playerid, ReturnPlayerName(ID), ID, amount);
  9865.                     SendClientMessageToAll(COLOR_MSG, string);
  9866.                     antispam[playerid] = 1;
  9867.                     SetTimerEx("antispamtimer", ANTISPAM_TIME*1000, false, "d", playerid);
  9868.                 }
  9869.                 else
  9870.                 {
  9871.                     SendClientMessage(playerid, COLOR_ERROR, "Please wait before placing another hit!");
  9872.                 }
  9873.             }
  9874.             else
  9875.             {
  9876.                 SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money!");
  9877.             }
  9878.         }
  9879.         else
  9880.         {
  9881.             SendClientMessage(playerid, COLOR_ERROR, "You team cannot hit an player!");
  9882.         }
  9883.         }
  9884.         else
  9885.         {
  9886.             SendClientMessage(playerid, COLOR_ERROR, "That player is not connected!");
  9887.         }
  9888.     }
  9889.     else
  9890.     {
  9891.         SendClientMessage(playerid, COLOR_ERROR, "Minimum amount to hit a person with is $1!");
  9892.     }
  9893.     return 1;
  9894. }
  9895. forward antispamtimer(id);
  9896.  
  9897. public antispamtimer(id)
  9898. {
  9899.     antispam[id] = 0;
  9900. }
  9901. //-------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment