Advertisement
Guest User

CNR

a guest
Jan 27th, 2011
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 405.73 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dudb>
  3. #include <CPLoader>
  4. #include <dini>
  5.  
  6. /*x---------------------------------Defining-------------------------------------x*/
  7. //**COLORS*//
  8. #define COLOR_GREY 0xAFAFAFAA
  9. #define COLOR_GREEN 0x33AA33AA
  10. #define COLOR_RED 0xAA3333AA
  11. #define COLOR_YELLOW 0xFFFF00AA
  12. #define COLOR_WHITE 0xFFFFFFAA
  13. #define COLOR_BLUE 0x0000FFAA
  14. #define blue 0x0000FFAA
  15. #define COLOR_BROWN 0x993300AA
  16. #define COLOR_ORANGE 0xFF9933AA
  17. #define COLOR_CYAN 0x99FFFFAA
  18. #define COLOR_PINK 0xFF66FFAA
  19. #define COLOR_BLACK 0x2C2727AA
  20. #define COLOR_LIGHTCYAN 0xAAFFCC33
  21. #define COLOR_LEMON 0xDDDD2357
  22. #define COLOR_AQUA 0x7CFC00AA
  23. #define COLOR_WHITEYELLOW 0xFFE87DFF
  24. #define COLOR_BLUEAQUA 0x7E60FFFF
  25. #define COLOR_DARKBLUE 0x15005EFF
  26. #define COLOR_ALIEN 0x90FF87FF
  27. #define COLOR_GOLD 0xB8860BAA
  28. #define KICK_COLOR 0xFF0000FF
  29. #define COLOR_GANGGREEN 0x00FF0096
  30. #define COLOR_BLACK 0x2C2727AA
  31. #define COLOR_SBLUE 0x00BFFFAA
  32.  
  33. #define WHITE 0xF6F6F6AA
  34. #define GREY 0xC6C6C6AA
  35. #define RED 0xF60000AA
  36. #define COLOR_ERROR 0xF60000AA
  37. #define COLOR_RED 0xAA3333AA
  38. #define LIGHT_BLUE 0x00A4F6AA
  39. #define BLUE 0x0000F6AA
  40. #define DARK_BLUE 0x0000AFAA
  41. #define LIGHT_GREEN 0x00F600AA
  42. #define GREEN 0x00AD00AA
  43. #define DARK_GREEN 0x005000AA
  44. #define YELLOW 0xF6F600AA
  45. #define ORANGE 0xF67F00AA
  46. #define BLACK 0x000000AA
  47. #define COLOR_ROYALBLUE 0x4169FFAA
  48. #define PINK 0xFF6EC7AA
  49.  
  50. #define SERVER_COLOR 0x85F600AA
  51. #define ERROR 0x990000AA
  52. #define strtok
  53. #define worldTime
  54.  
  55. #define COLOR_MSG 0x00FFFFFF //Color of general messages
  56. #define STUNNED_TIME 4 //The time in seconds the stun lasts
  57. #define ANTISPAM 5 //The minimum allowed time between /taze commands
  58. #define COLOR_KILLED 0x880000FF //The color, when a player gets killed by tazing
  59.  
  60. #define CIVILIAN 0
  61. #define Medic 1
  62. #define COP 2
  63. #define FBI 3
  64. #define SWAT 4
  65. #define ARMY 5
  66. //--------------Taxi-----------
  67. #define BAJADA_DE_BANDERA 500
  68. #define PRECIO_FICHA 300
  69. #define COLOR_YELLOW 0xFFFF00AA
  70. //-----------------------------
  71.  
  72. /* ----------HIT COMMAND----------*/
  73. #define COLOR_FOUND 0xFFFF00AA //Color of the message if a hit was found in /hits
  74. #define COLOR_MSG 0x00FFFFFF //Color of general messages
  75. #define ANTISPAM_TIME 5 //The minimum time between /hit commands to prevent spam (in seconds)
  76. /*----------NO NEED TO EDIT FROM HERE----------*/
  77.  
  78. #define MAX_PLAYERS_ 50
  79.  
  80. #define SPAWN_GAS_MIN 35
  81. #define SPAWN_GAS_MAX 100
  82. #define MAX_START_TIME 3
  83.  
  84. #define BAJADA_DE_BANDERA2 500
  85. #define PRECIO_FICHA2 300
  86.  
  87. #define RegisterName 1
  88. #define LoginName 2
  89.  
  90. #pragma tabsize 0
  91. #define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)
  92.  
  93. #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
  94.  
  95. static gTeam[MAX_PLAYERS];
  96.  
  97. new GPSTimer[MAX_PLAYERS];
  98. new bool:HaveGPS[MAX_PLAYERS];
  99.  
  100. enum aInfo
  101. {
  102. aLevel
  103. }
  104. ;
  105. new AccountInfo[MAX_PLAYERS][aInfo];
  106.  
  107. new RecentlyRobbed[MAX_PLAYERS];
  108. new ATMRecentlyRobbed;
  109. new DildoRecentlyRobbed;
  110. new HallRecentlyRobbed;
  111. new RentalRecentlyRobbed;
  112. new BankRecentlyRobbed;
  113. new BincoRecentlyRobbed;
  114. new ZipRecentlyRobbed;
  115. new UrbanRecentlyRobbed;
  116. new AmmuRecentlyRobbed;
  117. new Ammu2RecentlyRobbed;
  118. new Ammu3RecentlyRobbed;
  119. new Ammu4RecentlyRobbed;
  120. new Ammu5RecentlyRobbed;
  121. new DrugsRecentlyRobbed;
  122. new D4RecentlyRobbed;
  123. new CaRecentlyRobbed;
  124.  
  125. new gPlayerUsingLoopingAnim[MAX_PLAYERS];
  126. new animation[200];
  127.  
  128. //BUS
  129. new OnBusAsPassenger[MAX_PLAYERS];
  130. new CostoDelViaje2[MAX_PLAYERS];
  131. new contador2[MAX_PLAYERS];
  132. new playerInMiniMission2[MAX_PLAYERS];
  133. new avisado2[MAX_PLAYERS];
  134. new caidadeficha2Timer2;
  135. new cantidadPasajeros2;
  136.  
  137. forward terminarMission2(playerid);
  138. forward caidadeficha2();
  139. //
  140.  
  141. new IsSpawned[MAX_PLAYERS];
  142.  
  143. new SelectBM[MAX_PLAYERS];
  144.  
  145. new PlayerSkin[MAX_PLAYERS];
  146.  
  147. new SelectTM[MAX_PLAYERS];
  148.  
  149. new InTrashMission[MAX_PLAYERS];
  150.  
  151. new time;
  152.  
  153. new Muted[MAX_PLAYERS];
  154.  
  155. new ticketmen[MAX_PLAYERS];
  156. new Minute=8;
  157. new Second;
  158.  
  159.  
  160. //Lotto
  161. #define yellow 0xFFFF00AA
  162. #define green 0x33FF33AA
  163. #define white 0xFFFFFFAA
  164. #define red 0xFF0000AA
  165. #define grgreen 0x33AA33AA
  166.  
  167. #define SORSOLASTIMER 120000 // 2 perc
  168. #define HIRDETESTIMER 180000 // 3 min
  169. #define ALTERNATIVE_MAX_PLAYERS 500
  170. //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
  171.  
  172. new bool:HaveTicket[ALTERNATIVE_MAX_PLAYERS];
  173. new NyeroSzamok[6][ALTERNATIVE_MAX_PLAYERS];
  174. new KisorsoltSzamok[6];
  175. new TimerKill[2];
  176. new output2[128];
  177.  
  178. forward Sorsolas();
  179. forward GPSUpdate(playerid,playerid2);
  180. //
  181.  
  182.  
  183. //Text Draws
  184. new Text:BOX;
  185. new Text:Welcome;
  186. new Text:text1;
  187. new Text:text2;
  188. new Text:text3;
  189. new Text:BOX2;
  190. new Text:CIVBOX;
  191. new Text:text6;
  192. new Text:text7;
  193. new Text:text8;
  194. new Text:text9;
  195. new Text:text10;
  196. new Text:HALLBOX;
  197. new Text:COPBOX;
  198. new Text:MDCBOX;
  199. new Text:text11;
  200. new Text:text12;
  201. new Text:text13;
  202. new Text:text14;
  203. new Text:text15;
  204. new Text:text16;
  205. new Text:text17;
  206. new Text:text18;
  207. new Text:text19;
  208. new Text:text20;
  209. new Text:text21;
  210. new Text:text22;
  211. new Text:text23;
  212. new Text:CMDBOX;
  213. new Text:BUSBOX;
  214. new Text:text24;
  215. new Text:text25;
  216. new Text:text26;
  217. new Text:text27;
  218. new Text:BBOX;
  219. new Text:text35;
  220. new Text:text36;
  221. new Text:text37;
  222. new Text:text38;
  223. new Text:text39;
  224. new Text:text40;
  225. new Text:AMMUBOX1;
  226. new Text:AMMUBOX2;
  227. new Text:text41;
  228. new Text:text42;
  229. new Text:text43;
  230. new Text:PCBOX;
  231. new Text:text44;
  232. new Text:text45;
  233.  
  234. new CSKIN[MAX_PLAYERS];
  235. new CSKINZ[MAX_PLAYERS];
  236. new CSKINU[MAX_PLAYERS];
  237. new AMMUBOX[MAX_PLAYERS];
  238. new AMMU[MAX_PLAYERS];
  239.  
  240. new hit[MAX_PLAYERS];
  241. new hiter[MAX_PLAYERS];
  242. new antispam[MAX_PLAYERS];
  243.  
  244. new CHALLBOX[MAX_PLAYERS];
  245.  
  246. //--------------Taxi-----------
  247. new OnTaxiAsPassenger[MAX_PLAYERS];
  248. new CostoDelViaje[MAX_PLAYERS];
  249. new contador[MAX_PLAYERS];
  250. new playerInJob[MAX_PLAYERS];
  251. new avisado[MAX_PLAYERS];
  252. new caidadefichaTimer;
  253. new cantidadPasajeros;
  254. //-----------------------------
  255.  
  256. new PrisonTime[MAX_PLAYERS];
  257. new BlowTime[MAX_PLAYERS];
  258. new IsPlayerLogged[MAX_PLAYERS];
  259. new BankRecentlyUsed[MAX_PLAYERS];
  260. new RentedACarRecently[MAX_PLAYERS];
  261. new InsideBar[MAX_PLAYERS];
  262. new Working[MAX_PLAYERS];
  263.  
  264. new RobDildo[MAX_PLAYERS];
  265. new RobHall[MAX_PLAYERS];
  266. new RobRental[MAX_PLAYERS];
  267. new RobBank[MAX_PLAYERS];
  268. new RobBinco[MAX_PLAYERS];
  269. new RobZip[MAX_PLAYERS];
  270. new RobUrban[MAX_PLAYERS];
  271. new RobAmmu[MAX_PLAYERS];
  272. new RobAmmu2[MAX_PLAYERS];
  273. new RobAmmu3[MAX_PLAYERS];
  274. new RobAmmu4[MAX_PLAYERS];
  275. new RobAmmu5[MAX_PLAYERS];
  276. new RobDrugs[MAX_PLAYERS];
  277. new RobD4[MAX_PLAYERS];
  278. new RobCa[MAX_PLAYERS];
  279.  
  280. new PlayersOnline = 0;
  281.  
  282. new stunned[MAX_PLAYERS];
  283. new tazetime[MAX_PLAYERS];
  284.  
  285. new currentcheckpoint[MAX_PLAYERS];
  286. new InBusMission[MAX_PLAYERS];
  287.  
  288. new Float:buslvcps[14][3] = {
  289. {2268.4399,2410.4167,10.8064}, // CNR BUS LV
  290. {2283.9033,2311.2317,10.8053}, // CNR BUS LV
  291. {2119.3047,2056.9790,10.8091}, // CNR BUS LV
  292. {2043.8802,1545.2958,10.8053}, // CNR BUS LV
  293. {1913.9250,931.6765,10.8648}, // CNR BUS LV
  294. {2190.2798,970.8856,10.8052}, // CNR BUS LV
  295. {2529.7776,1341.0577,10.8125}, // CNR BUS LV
  296. {2516.7334,1530.2107,10.8092}, // CNR BUS LV
  297. {2365.3865,1709.7418,10.8096}, // CNR BUS LV
  298. {2510.1172,1804.4945,10.8076}, // CNR BUS LV
  299. {2530.1377,2095.5022,10.8109}, // CNR BUS LV
  300. {2466.4346,2235.9692,10.8114}, // CNR BUS LV
  301. {2289.9063,2152.5562,10.8054}, // CNR BUS LV
  302. {2267.5027,2409.8799,10.8052} // CNR BUS LV
  303. };
  304.  
  305. new Float:bussfcps[10][3] = {
  306. {-2003.4783,196.9962,27.6724}, // CNR BUS SF
  307. {-1867.8870,600.6245,35.1489}, // CNR BUS SF
  308. {-1631.6896,726.8736,14.5931}, // CNR BUS SF
  309. {-1607.8712,857.4319,7.6754}, // CNR BUS SF
  310. {-1753.4105,935.9341,24.8759}, // CNR BUS SF
  311. {-2009.8424,883.8640,45.4302}, // CNR BUS SF
  312. {-2658.6536,710.3611,27.9008}, // CNR BUS SF
  313. {-2608.3267,216.7507,6.1830}, // CNR BUS SF
  314. {-2150.0051,251.3069,35.3053}, // CNR BUS SF
  315. {-2081.9294,-72.4678,35.3081} // CNR BUS SF
  316. };
  317.  
  318. new Float:buslscps[12][3] = {
  319. {1532.9352,-1672.9940,13.5162}, // CNR BUS LS
  320. {1989.8992,-1403.3685,20.1922}, // CNR BUS LS
  321. {1616.9988,-1296.0193,17.3743}, // CNR BUS LS
  322. {1397.4031,-1238.2527,13.5161}, // CNR BUS LS
  323. {1654.5503,-978.6437,38.1222}, // CNR BUS LS
  324. {2254.6162,-1145.9847,26.6225}, // CNR BUS LS
  325. {2285.9170,-1662.1071,15.0599}, // CNR BUS LS
  326. {2310.4282,-1728.8649,13.5161}, // CNR BUS LS
  327. {2061.9836,-1750.6769,13.5216}, // CNR BUS LS
  328. {1824.7760,-1682.8224,13.5161}, // CNR BUS LS
  329. {1687.7714,-1647.1587,13.5151}, // CNR BUS LS
  330. {1532.9352,-1672.9940,13.5162} // CNR BUS LS
  331. };
  332. //Trash
  333. new Float:trashsf[11][4] = {
  334. {-2011.7734,77.6967,27.5766,180.4381}, // SF
  335. {-1812.3108,108.7060,14.8637,183.0066}, // SF
  336. {-1745.2139,161.1245,3.3831,359.8965}, // SF
  337. {-1658.7670,403.0123,6.8630,314.3484}, // SF
  338. {-1572.5560,959.0684,6.8705,34.0789}, // SF
  339. {-1655.3605,1278.8883,6.9383,44.2165}, // SF
  340. {-2615.2693,1323.4918,6.8708,135.5203}, // SF
  341. {-2755.9829,788.3393,53.5922,174.8465}, // SF
  342. {-2522.6113,530.4692,14.3516,181.6205}, // SF
  343. {-2666.0305,224.2849,4.0652,89.1722}, // SF
  344. {-2044.8110,325.5261,34.9185,91.3987} // SF
  345. };
  346.  
  347. new Float:trashlv[11][4] = {
  348. {2722.2327,852.3853,10.6530,181.5715}, // LV
  349. {2257.7839,970.6597,10.5036,90.4485}, // LV
  350. {2077.2520,1401.7902,10.5740,358.5100}, // LV
  351. {2056.0691,1916.4796,11.9941,334.5270}, // LV
  352. {2285.9055,2237.6394,10.6623,211.1023}, // LV
  353. {2478.9460,2234.6035,10.5094,270.6735}, // LV
  354. {2850.7615,2254.9785,10.5035,176.9784}, // LV
  355. {2506.4492,1946.8312,10.5815,177.7843}, // LV
  356. {2693.0115,1354.6588,6.5156,224.1648}, // LV
  357. {2559.3496,774.1688,10.4999,272.8159}, // LV
  358. {2834.2361,916.7383,10.5813,273.5616} // LV
  359. };
  360.  
  361. new Float:trashls[15][4] = {
  362. {2281.3162,-2297.6367,12.9399,43.3975}, // LS
  363. {2202.9561,-2167.2607,12.9619,36.9895}, // LS
  364. {1948.9464,-2054.7063,12.9523,88.6539}, // LS
  365. {1794.4558,-2165.4236,12.9487,85.5554}, // LS
  366. {1389.0068,-1866.1375,12.9522,3.1372}, // LS
  367. {1253.4490,-1712.7026,12.9490,91.6804}, // LS
  368. {634.0248,-1726.0410,13.5087,352.0109}, // LS
  369. {635.8566,-1322.7759,12.9489,273.0353}, // LS
  370. {1055.4622,-1308.2499,12.9883,9.7439}, // LS
  371. {1958.8086,-1783.7323,12.9477,203.2567}, // LS
  372. {2214.8762,-1905.9805,12.9456,185.2079}, // LS
  373. {2323.5071,-2121.1521,13.0382,224.9279}, // LS
  374. {2757.7400,-2427.7002,13.0576,180.2331}, // LS
  375. {2647.5708,-2504.0605,13.0586,89.1712}, // LS
  376. {2315.0986,-2342.8865,12.9434,6.7285} // LS
  377. };
  378. // Checkpoints
  379. new cpbankentrance, cpbankexit, cpbank;
  380. new cpatm1, cpatm2, cpatm3, cpatm4, cpatm5, cpatm6, cpatm7, cpatm9, cpatm10, cpatm11;
  381. new cplvpdentrance, cplvpdexit, cplvpdhand;
  382. new cpdildoentrance, cpdildoexit, cpdildo;
  383. new cphospital;
  384. new cplvchentrance, cplvchexit, cpcityhall;
  385. new cpghost;
  386. new cpbarentrance, cpbarexit;
  387. new cpbincoentrance, cpbincoexit, cpbinco;
  388. new cpzipentrance, cpzipexit, cpzip;
  389. new cpbombshop;
  390. new cpurbanentrance, cpurbanexit, cpurban;
  391. new cpdrugs;
  392. new cp4Dragonsentrace;
  393. new cp4Dragonsexit;
  394. new cpcaligulasentrace;
  395. new cpcaligulasexit;
  396. new cpcaligulas;
  397. new cp4Dragons;
  398.  
  399. new cplspdentrance;
  400. new cplschentrance;
  401. new cplsdrugs;
  402. new cplsbincoentrance;
  403. new cplshospital;
  404. new cplsbombshop;
  405. new cplsbarentrance;
  406. new cplsbankentrance;
  407. new cplsghost;
  408. new cplsurbanentrance;
  409. new cplsurbanentrance2;
  410. new cplszipentrance;
  411.  
  412. new cpsfpdentrance;
  413. new cpsfdrugs;
  414. new cpsfhospital;
  415. new cpsfbombshop;
  416. new cpsfbankentrance;
  417. new cpsfghost;
  418. new cpsfurbanentrance;
  419. new cpsfzipentrance;
  420.  
  421. new cpcopLSsus;
  422. new cpcopLSjos;
  423.  
  424. new cpcopLVjos;
  425. new cpcopLVsus;
  426.  
  427. new cpcopSFsus;
  428. new cpcopSFjos;
  429.  
  430. new cpammu;
  431. new cpammu2;
  432. new cpammu3;
  433. new cpammu4;
  434. new cpammu5;
  435. new cpammuexit;
  436. new cpammuexit2;
  437. new cpammuexit3;
  438. new cpammuexit4;
  439. new cpammuexit5;
  440. new cpammuentrace1;
  441. new cpammuentrace2;
  442. new cpammuentrace3;
  443. new cpammuentrace4;
  444. new cpammuentrace5;
  445. new cpammuentrace6;
  446. new cpammuentrace7;
  447. new cpammuentrace8;
  448. new cpammuentrace9;
  449. new cpammuentrace10;
  450.  
  451. new BAR[MAX_PLAYERS];
  452. new BIC[MAX_PLAYERS];
  453. new PD[MAX_PLAYERS];
  454. new CH[MAX_PLAYERS];
  455. new BK[MAX_PLAYERS];
  456. new CAR[MAX_PLAYERS];
  457. new RB[MAX_PLAYERS];
  458. new ZP[MAX_PLAYERS];
  459. // Menus
  460. new Menu:Hand;
  461. new Menu:Dildo;
  462. new Menu:Rental;
  463. new Menu:CarList;
  464. new Menu:BarEntrance;
  465. new Menu:Drugs;
  466.  
  467. enum cmdCarInfo
  468. {
  469. CarcmdI
  470. };
  471.  
  472. new VehicleNames[212][] = {
  473. "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
  474. "Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
  475. "1111","Premier","Enforcer","Securicar","Banshee","Predator","Bus","44444","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
  476. "Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
  477. "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
  478. "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
  479. "Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
  480. "Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa","98934","Hotring Racer A","Hotring Racer B",
  481. "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain",
  482. "Nebula","Majestic","Buccaneer","Shamal","0000","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
  483. "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover",
  484. "Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
  485. "Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight","Trailer",
  486. "Kart","Mower","Duneride","Sweeper","Broadway","Tornado","MARE","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer A","Emperor",
  487. "Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","Andromada","Dodo","RC Cam","Launch","Police Car (LSPD)","Police Car (SFPD)",
  488. "Police Car (LVPD)","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
  489. "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  490. };
  491.  
  492. new IcmdCar[MAX_PLAYERS][cmdCarInfo];
  493.  
  494. new tkat[MAX_PLAYERS];
  495.  
  496. // Vehicles
  497. new Rented[MAX_VEHICLES];
  498.  
  499. new Float:CivilianSpawn[18][4] =
  500. {
  501. {2022.6539,1007.2164,10.8203,269.9900},
  502. {2177.4451,963.9155,10.8203,359.9802},
  503. {2362.6580,1005.0098,14.2725,91.5136},
  504. {2435.0430,1653.7240,10.8203,178.3609},
  505. {1947.6760,2068.7869,10.8203,89.0601},
  506. {2346.8154,735.3505,11.4683,184.3114},
  507. {2127.4910,2364.1289,10.8203,179.6657},
  508. {1429.1036,-1091.6676,17.5623,186.9590},
  509. {1266.1420,-2009.2614,59.2444,187.8720},
  510. {1671.8055,-1709.1715,20.4844,102.0455},
  511. {2316.8474,-1646.4652,14.8270,185.1704},
  512. {2253.9595,-1777.4771,13.5469,0.6755},
  513. {477.0917,-1514.6082,20.4747,277.2458},
  514. {-2571.2405,1149.4059,55.7266,154.4693},
  515. {-1942.0551,572.1608,35.1719,358.3391},
  516. {-1992.2852,251.0843,35.1719,283.5931},
  517. {-2030.6617,145.9314,28.8359,273.5602},
  518. {-2616.2598,81.0121,4.3435,270.1165}
  519. };
  520.  
  521. new Float:CopSpawn[6][4] =
  522. {
  523. {2238.2151,2449.3613,11.0372,89.4249},
  524. {2294.8032,2451.5522,10.8203,88.8232},
  525. {2294.0479,2468.4722,10.8203,88.7628},
  526. {2250.7517,2490.9146,10.9908,358.5601},
  527. {-1620.6388,682.8951,7.1875,174.1942},
  528. {1548.1506,-1669.6023,13.5669,88.7577}
  529. };
  530.  
  531. new Float:PrisonSpawn[3][4] =
  532. {
  533. {198.6401,161.5331,1003.0300,181.3124},
  534. {193.4779,175.5881,1003.0234,6.5961},
  535. {197.7083,174.6549,1003.0234,0.0787}
  536. };
  537.  
  538. new Float:SFSpawn[3][4] =
  539. {
  540. {1568.0333,-1691.7218,5.8906,183.6940},
  541. {-1593.2145,716.1462,-5.2422,269.8380},
  542. {2267.8535,2448.8921,3.5313,181.4704}
  543. };
  544.  
  545. new Float:ARMYSpawn[2][4] =
  546. {
  547. {-1473.7511,461.7685,7.1809,2.3054},
  548. {239.7829,1859.5490,14.0840,359.0583}
  549. };
  550.  
  551. new Float:MedicSpawn[3][4] =
  552. {
  553. {1177.7314,-1323.7150,14.0852,270.0000},
  554. {-2655.1633,631.4604,14.4531,176.9321},
  555. {1607.5931, 1818.5118, 10.8203,83.20}
  556. };
  557.  
  558. new FALSE = false;
  559.  
  560. enum pSpeed
  561. {
  562. Text:Speedom,
  563. Text:Speedom2,
  564. ShowSpeed,
  565. ReFuelTimer,
  566. Refueling,
  567. Float:OldCoordsX,
  568. Float:OldCoordsY
  569. };
  570. new Speed[MAX_PLAYERS][pSpeed];
  571.  
  572. enum pVeh
  573. {
  574. Float:Fuel,
  575. OldFuel
  576. };
  577. new Vehicle[MAX_VEHICLES][pVeh];
  578.  
  579. new Spawned[MAX_PLAYERS];
  580.  
  581. enum zoneinfo {
  582. zone_name[27],
  583. Float:zone_minx,
  584. Float:zone_miny,
  585. Float:zone_minz,
  586. Float:zone_maxx,
  587. Float:zone_maxy,
  588. Float:zone_maxz
  589. }
  590.  
  591. #define SPAWN_GAS_MIN 35
  592. #define SPAWN_GAS_MAX 100
  593. #define MAX_START_TIME 3
  594.  
  595. forward Speedometer(playerid);
  596. forward ReFill(playerid);
  597. forward IsAtFuelStation(playerid);
  598.  
  599. new zones[][zoneinfo] = {
  600. { "'The Big Ear'", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
  601. { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
  602. { "Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
  603. { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
  604. { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
  605. { "Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
  606. { "Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
  607. { "Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
  608. { "Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
  609. { "Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
  610. { "Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
  611. { "Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
  612. { "Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
  613. { "Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
  614. { "Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
  615. { "Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
  616. { "Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
  617. { "Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
  618. { "Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
  619. { "Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
  620. { "Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
  621. { "Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
  622. { "Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
  623. { "Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
  624. { "Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
  625. { "Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
  626. { "Caligula's Palace", 2087.30, 1543.20, -89.00, 2437.30, 1703.20, 110.90},
  627. { "Caligula's Palace", 2137.40, 1703.20, -89.00, 2437.30, 1783.20, 110.90},
  628. { "Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
  629. { "Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
  630. { "City Hall", -2867.80, 277.40, -9.10, -2593.40, 458.40, 200.00},
  631. { "Come-A-Lot", 2087.30, 943.20, -89.00, 2623.10, 1203.20, 110.90},
  632. { "Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
  633. { "Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
  634. { "Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
  635. { "Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
  636. { "Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
  637. { "Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
  638. { "Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
  639. { "Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
  640. { "Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
  641. { "Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
  642. { "Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
  643. { "Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
  644. { "Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
  645. { "Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
  646. { "Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
  647. { "Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
  648. { "Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
  649. { "Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
  650. { "Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
  651. { "Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
  652. { "Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
  653. { "Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
  654. { "Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
  655. { "Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
  656. { "Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
  657. { "Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
  658. { "Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
  659. { "Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
  660. { "East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
  661. { "East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
  662. { "East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
  663. { "East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
  664. { "East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
  665. { "East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
  666. { "East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
  667. { "East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
  668. { "East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
  669. { "East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
  670. { "East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
  671. { "Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
  672. { "Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
  673. { "Easter Bay Airport", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
  674. { "Easter Bay Airport", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
  675. { "Easter Bay Airport", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
  676. { "Easter Bay Airport", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
  677. { "Easter Bay Airport", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
  678. { "Easter Bay Airport", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
  679. { "Easter Bay Airport", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
  680. { "Easter Bay Airport", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
  681. { "Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
  682. { "Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
  683. { "El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
  684. { "El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
  685. { "El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
  686. { "El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
  687. { "El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
  688. { "El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
  689. { "Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
  690. { "Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
  691. { "Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
  692. { "Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
  693. { "Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
  694. { "Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
  695. { "Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
  696. { "Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
  697. { "Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
  698. { "Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
  699. { "Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
  700. { "Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
  701. { "Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
  702. { "Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
  703. { "Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
  704. { "Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
  705. { "Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
  706. { "Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
  707. { "Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
  708. { "Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
  709. { "Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
  710. { "Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
  711. { "Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
  712. { "Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
  713. { "Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
  714. { "Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
  715. { "Garver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
  716. { "Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
  717. { "Glen Park", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
  718. { "Glen Park", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
  719. { "Glen Park", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
  720. { "Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
  721. { "Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
  722. { "Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
  723. { "Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
  724. { "Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
  725. { "Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
  726. { "Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
  727. { "Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
  728. { "Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
  729. { "Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
  730. { "Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
  731. { "Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
  732. { "Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
  733. { "Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
  734. { "Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
  735. { "Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
  736. { "Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
  737. { "Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
  738. { "Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
  739. { "Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
  740. { "Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
  741. { "Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
  742. { "Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
  743. { "Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
  744. { "Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
  745. { "Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
  746. { "Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
  747. { "Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
  748. { "Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
  749. { "Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
  750. { "Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
  751. { "Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
  752. { "Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
  753. { "Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
  754. { "Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
  755. { "Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
  756. { "Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
  757. { "Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
  758. { "Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
  759. { "K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
  760. { "Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
  761. { "Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
  762. { "Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
  763. { "King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
  764. { "King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
  765. { "King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
  766. { "LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
  767. { "LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
  768. { "LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
  769. { "LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
  770. { "LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
  771. { "Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
  772. { "Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
  773. { "Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
  774. { "Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
  775. { "Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
  776. { "Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
  777. { "Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
  778. { "Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
  779. { "Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
  780. { "Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
  781. { "Las Venturas Airport", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
  782. { "Las Venturas Airport", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
  783. { "Las Venturas Airport", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
  784. { "Las Venturas Airport", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
  785. { "Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
  786. { "Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
  787. { "Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
  788. { "Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
  789. { "Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
  790. { "Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
  791. { "Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
  792. { "Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
  793. { "Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
  794. { "Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
  795. { "Los Santos International", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
  796. { "Los Santos International", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
  797. { "Los Santos International", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
  798. { "Los Santos International", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
  799. { "Los Santos International", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
  800. { "Los Santos International", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
  801. { "Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
  802. { "Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
  803. { "Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
  804. { "Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
  805. { "Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
  806. { "Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
  807. { "Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
  808. { "Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
  809. { "Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
  810. { "Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
  811. { "Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
  812. { "Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
  813. { "Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
  814. { "Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
  815. { "Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
  816. { "Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
  817. { "Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
  818. { "Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
  819. { "Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
  820. { "Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
  821. { "Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
  822. { "Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
  823. { "Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
  824. { "Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
  825. { "Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
  826. { "Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
  827. { "Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
  828. { "Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
  829. { "North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
  830. { "Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
  831. { "Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
  832. { "Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
  833. { "Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
  834. { "Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
  835. { "Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
  836. { "Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
  837. { "Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
  838. { "Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
  839. { "Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
  840. { "Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
  841. { "Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
  842. { "Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
  843. { "Palomino Creek", 2160.20, -149.00, 0.00, 2576.90, 228.30, 200.00},
  844. { "Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
  845. { "Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
  846. { "Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
  847. { "Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
  848. { "Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
  849. { "Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
  850. { "Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
  851. { "Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
  852. { "Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
  853. { "Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
  854. { "Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
  855. { "Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
  856. { "Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
  857. { "Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
  858. { "Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
  859. { "Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
  860. { "Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
  861. { "Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
  862. { "Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
  863. { "Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
  864. { "Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
  865. { "Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
  866. { "Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
  867. { "Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
  868. { "Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
  869. { "Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
  870. { "Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
  871. { "Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
  872. { "Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
  873. { "Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
  874. { "Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
  875. { "Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
  876. { "Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
  877. { "Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
  878. { "Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
  879. { "Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
  880. { "Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
  881. { "Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
  882. { "Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
  883. { "Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
  884. { "Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
  885. { "Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
  886. { "Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
  887. { "Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
  888. { "Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
  889. { "Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
  890. { "Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
  891. { "Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
  892. { "Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
  893. { "Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
  894. { "Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
  895. { "Royal Casino", 2087.30, 1383.20, -89.00, 2437.30, 1543.20, 110.90},
  896. { "San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
  897. { "Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
  898. { "Santa Maria Beach", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
  899. { "Santa Maria Beach", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
  900. { "Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
  901. { "Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
  902. { "Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
  903. { "Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
  904. { "Spinybed", 2121.40, 2663.10, -89.00, 2498.20, 2861.50, 110.90},
  905. { "Starfish Casino", 2437.30, 1783.20, -89.00, 2685.10, 2012.10, 110.90},
  906. { "Starfish Casino", 2437.30, 1858.10, -39.00, 2495.00, 1970.80, 60.90},
  907. { "Starfish Casino", 2162.30, 1883.20, -89.00, 2437.30, 2012.10, 110.90},
  908. { "Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
  909. { "Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
  910. { "Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
  911. { "Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
  912. { "Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
  913. { "Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
  914. { "The Camel's Toe", 2087.30, 1203.20, -89.00, 2640.40, 1383.20, 110.90},
  915. { "The Clown's Pocket", 2162.30, 1783.20, -89.00, 2437.30, 1883.20, 110.90},
  916. { "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
  917. { "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
  918. { "The Four Dragons Casino", 1817.30, 863.20, -89.00, 2027.30, 1083.20, 110.90},
  919. { "The High Roller", 1817.30, 1283.20, -89.00, 2027.30, 1469.20, 110.90},
  920. { "The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
  921. { "The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
  922. { "The Pink Swan", 1817.30, 1083.20, -89.00, 2027.30, 1283.20, 110.90},
  923. { "The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
  924. { "The Strip", 2027.40, 863.20, -89.00, 2087.30, 1703.20, 110.90},
  925. { "The Strip", 2106.70, 1863.20, -89.00, 2162.30, 2202.70, 110.90},
  926. { "The Strip", 2027.40, 1783.20, -89.00, 2162.30, 1863.20, 110.90},
  927. { "The Strip", 2027.40, 1703.20, -89.00, 2137.40, 1783.20, 110.90},
  928. { "The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
  929. { "The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
  930. { "Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
  931. { "Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
  932. { "Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
  933. { "Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
  934. { "Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
  935. { "Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
  936. { "Verona Beach", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
  937. { "Verona Beach", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
  938. { "Verona Beach", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
  939. { "Verona Beach", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
  940. { "Verona Beach", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
  941. { "Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
  942. { "Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
  943. { "Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
  944. { "Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
  945. { "Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
  946. { "Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
  947. { "Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
  948. { "Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
  949. { "Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
  950. { "Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
  951. { "Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
  952. { "Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
  953. { "Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
  954. { "Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
  955. // Main Zones
  956. { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
  957. { "Las Venturas", 869.40, 596.30, -242.90, 2997.00, 2993.80, 900.00},
  958. { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
  959. { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
  960. { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
  961. { "San Fierro", -2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00},
  962. { "Red County", -1213.90, -768.00, -242.90, 2997.00, 596.30, 900.00},
  963. { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
  964. { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}};
  965.  
  966. main() print("\nDave's Cops and Robbers\n\n");
  967.  
  968. #pragma unused ret_memcpy
  969.  
  970. forward PlayerRecentlyRobbed();
  971. forward HandCuffs();
  972. forward TimeUpdate();
  973. forward WantedLevel();
  974. forward Float:GetDistanceBetweenPlayers(p1, p2);
  975. forward ShowCarListMenu(playerid);
  976. forward Unjail();
  977. forward RobbingStores();
  978. forward AllStores();
  979. forward BankRecentlyUsedByRobber();
  980. forward RecentlyRentedACar();
  981. forward ResetMedicWeapons();
  982. forward BlowPlayers();
  983. forward BlowCar(vehicleid);
  984. forward ReFill(playerid);
  985. forward BlowUpBar();
  986. forward RebuildBar();
  987. forward DriverSalary();
  988. forward GivePlayerMoneyEx(playerid,money,reason[]);
  989. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  990. //---------------TAXI----------------
  991. forward terminarMission(playerid);
  992. forward caidadeficha();
  993. //-----------------------------------
  994. //-----------------------------------------------------------------------------|
  995. // |
  996. //-----------------------------------------------------------------------------|
  997.  
  998. public OnGameModeExit()
  999. {
  1000. for(new i = 0; i <MAX_PLAYERS; i++)
  1001. {
  1002. TextDrawDestroy(Text:Speed[i][Speedom]);
  1003. }
  1004. for (new p = 0; p < 2; p++) KillTimer(TimerKill[p]);
  1005. }
  1006. public OnGameModeInit()
  1007. {
  1008. SendRconCommand("hostname Dave's Cops And Robbers");
  1009. SendRconCommand("mapname San Andreas");
  1010. SendRconCommand("weburl www.madforum.co.nr");
  1011. SetGameModeText("Cops and Robbers");
  1012.  
  1013. DisableInteriorEnterExits();
  1014. ShowPlayerMarkers(2);
  1015.  
  1016. //BUS
  1017. for (new i=0;i<MAX_PLAYERS;i++)
  1018. {
  1019. playerInMiniMission2[i]=-1;
  1020. avisado2[i]=-1;
  1021. OnBusAsPassenger[i]=-1;
  1022. }
  1023. caidadeficha2Timer2=-1;
  1024. cantidadPasajeros2=0;
  1025. SetTimer("caidadeficha2",30000,1);
  1026. SetTimer("ClockSync", 1000, 1);
  1027.  
  1028.  
  1029.  
  1030. //
  1031.  
  1032. //-------------TAXI------------
  1033. for (new i=0;i<MAX_PLAYERS;i++)
  1034. {
  1035. playerInJob[i]=-1;
  1036. avisado[i]=-1;
  1037. OnTaxiAsPassenger[i]=-1;
  1038. }
  1039. caidadefichaTimer=-1;
  1040. cantidadPasajeros=0;
  1041. SetTimer("caidadeficha",30000,1);
  1042. //------------------------------
  1043.  
  1044. SetTimer("TimeUpdate", 600000, true);
  1045. ATMRecentlyRobbed = 0;
  1046. DildoRecentlyRobbed = 0;
  1047. HallRecentlyRobbed = 0;
  1048. RentalRecentlyRobbed = 0;
  1049. time = 12;
  1050. //LV
  1051. cpbankentrance = CPS_AddCheckpoint(2019.5000, 1913.0396, 12.3114, 2, 40);
  1052. cpbank = CPS_AddCheckpoint(2315.8755, -7.4058, 26.7422, 2, 7);
  1053. cplvpdentrance = CPS_AddCheckpoint(2287.0925, 2431.6145, 10.8203, 2, 40);
  1054. cphospital = CPS_AddCheckpoint(1607.4465, 1816.1157, 10.8203, 2, 100);
  1055. cpdildoentrance = CPS_AddCheckpoint(2085.6697, 2074.0100, 11.0547, 2, 40);
  1056. cpdildo = CPS_AddCheckpoint(-104.7753, -10.6159, 1000.7188, 2, 20);
  1057. cplvchentrance = CPS_AddCheckpoint(2412.5625, 1123.8337, 10.8203, 2, 40);
  1058. cpcityhall = CPS_AddCheckpoint(362.6970, 173.7694, 1008.3828, 2, 20);
  1059. cpghost = CPS_AddCheckpoint(2172.1233, 1398.1210, 11.0625, 2, 15);
  1060. cpbarentrance = CPS_AddCheckpoint(2113.2854, 1333.5800, 10.8203, 2, 40);
  1061. cpbarexit = CPS_AddCheckpoint(2102.4478, 1328.3512, 1297.4639, 2, 10);
  1062. cpbincoentrance = CPS_AddCheckpoint(2101.8979, 2257.3718, 11.0234, 2, 40);
  1063. cpzipentrance = CPS_AddCheckpoint(2249.1479, 960.5301, 10.8130, 2, 40);
  1064. cpzip = CPS_AddCheckpoint(162.7595, -83.2518, 1001.8047, 2, 10);
  1065. cpbombshop = CPS_AddCheckpoint(2032.1550, 2162.4448, 10.8203, 2, 40);
  1066. cpurbanentrance = CPS_AddCheckpoint(2184.2126, 2295.6084, 10.8203, 2, 40);
  1067. cpurban = CPS_AddCheckpoint(203.2626, -43.2611, 1001.8047, 2, 5);
  1068. cpdrugs = CPS_AddCheckpoint(2491.5000, 918.4912, 11.0234, 2, 40);
  1069. cp4Dragonsentrace = CPS_AddCheckpoint(2019.3212,1007.7536,10.8203, 2, 40);
  1070. cp4Dragonsexit = CPS_AddCheckpoint(2019.0708,1017.8350,996.8750, 2, 40);
  1071. cpcaligulasentrace = CPS_AddCheckpoint(2196.9517,1677.1399,12.3672, 2, 40);
  1072. cpcaligulasexit = CPS_AddCheckpoint(2233.9785,1714.6780,1012.3828, 2, 40);
  1073. cpcaligulas = CPS_AddCheckpoint(2144.1499,1641.6793,993.5761, 2, 40);
  1074. cp4Dragons = CPS_AddCheckpoint(1940.6887,983.4753,992.4688, 2, 40);
  1075. //LS
  1076. cplspdentrance = CPS_AddCheckpoint(1555.0673,-1675.6428,16.1953, 2, 40);
  1077. cplschentrance = CPS_AddCheckpoint(1481.1427,-1771.6808,18.7958, 2, 20);
  1078. cplsdrugs = CPS_AddCheckpoint(1122.7067,-2037.0416,69.8942, 2, 40);
  1079. cplsbincoentrance = CPS_AddCheckpoint(2244.4128,-1665.5463,15.4766, 2, 5);
  1080. cplshospital = CPS_AddCheckpoint(1172.8318,-1323.2954,15.4001, 2, 40);
  1081. cplsbombshop = CPS_AddCheckpoint(1857.1792,-1874.2761,13.4829, 2, 40);
  1082. cplsbarentrance = CPS_AddCheckpoint(2309.8811,-1643.7646,14.8270, 2, 40);
  1083. cplsbankentrance = CPS_AddCheckpoint(1411.7141,-1700.0085,13.5395, 2, 40);
  1084. cplsghost = CPS_AddCheckpoint(1703.9697,-1469.9948,13.5469, 2, 15);
  1085. cplsurbanentrance = CPS_AddCheckpoint(499.6478,-1360.3167,16.3421, 2, 40);
  1086. cplsurbanentrance2 = CPS_AddCheckpoint(822.3297,-1757.5181,13.6484, 2, 40);
  1087. cplszipentrance = CPS_AddCheckpoint(2139.1853,-1743.2207,13.5524, 2, 40);
  1088.  
  1089. //SF
  1090. cpsfpdentrance = CPS_AddCheckpoint(-1605.4486,710.8713,13.8672, 2, 60);
  1091. cpsfdrugs = CPS_AddCheckpoint(-2719.4172,-319.2030,7.8438, 2, 60);
  1092. cpsfhospital = CPS_AddCheckpoint(-2655.0779,640.0289,14.4545, 2, 40);
  1093. cpsfbombshop = CPS_AddCheckpoint(-2032.9038,161.4297,29.0461, 2, 40);
  1094. cpsfbankentrance = CPS_AddCheckpoint(-1581.2535,867.2552,7.6953, 2, 40);
  1095. cpsfghost = CPS_AddCheckpoint(-1946.0483,273.3452,35.4739, 2, 15);
  1096. cpsfurbanentrance = CPS_AddCheckpoint(-2490.9307,-142.7729,25.6172, 2, 40);
  1097. cpsfzipentrance = CPS_AddCheckpoint(-1881.1808,823.0976,35.1770, 2, 40);
  1098.  
  1099. //In Interior
  1100. cpbankexit = CPS_AddCheckpoint(2306.5283, -16.2048, 26.7496, 2, 7);
  1101. cpurbanexit = CPS_AddCheckpoint(203.7821, -50.6640, 1001.8047, 2, 5);
  1102. cpzipexit = CPS_AddCheckpoint(161.3950, -97.1106, 1001.8047, 2, 10);
  1103. cpbincoexit = CPS_AddCheckpoint(207.6098, -111.2587, 1005.1328, 2, 5);
  1104. cplvchexit = CPS_AddCheckpoint(390.7697, 173.8317, 1008.3828, 2, 20);
  1105. cpdildoexit = CPS_AddCheckpoint(-100.3964, -24.5959, 1000.7188, 2, 20);
  1106. cplvpdexit = CPS_AddCheckpoint(238.6930, 139.1192, 1003.0234, 2, 20);
  1107. cplvpdhand = CPS_AddCheckpoint(235.6114, 165.4718, 1003.0300, 2, 20);
  1108. cpbinco = CPS_AddCheckpoint(208.8474, -100.3271, 1005.25789, 2, 5);
  1109. cpammu = CPS_AddCheckpoint(296.5011,-37.9712,1001.5156,1,35);
  1110. cpammu2 = CPS_AddCheckpoint(314.2445,-133.1708,999.6016,1,35);
  1111. cpammu3 = CPS_AddCheckpoint(295.6205,-80.8057,1001.5156,1,35);
  1112. cpammu4 = CPS_AddCheckpoint(312.3840,-166.1258,999.6010,1,35);
  1113. cpammu5 = CPS_AddCheckpoint(289.5338,-109.7698,1001.5156,1,35);
  1114. cpammuexit = CPS_AddCheckpoint(285.4340,-41.7365,1001.5156,1,20);
  1115. cpammuexit2 = CPS_AddCheckpoint(315.8784,-143.6499,999.6016,1,20);
  1116. cpammuexit3 = CPS_AddCheckpoint(285.7483,-86.5335,1001.5229,1,20);
  1117. cpammuexit4 = CPS_AddCheckpoint(316.4094,-170.2954,999.5938,1,20);
  1118. cpammuexit5 = CPS_AddCheckpoint(296.7770,-111.8694,1001.5156,1,20);
  1119.  
  1120. //Ammunations
  1121. cpammuentrace1 = CPS_AddCheckpoint(-314.4526,829.8660,14.2422,2.0,50); //Ammu
  1122. cpammuentrace2 = CPS_AddCheckpoint(-1509.1987,2607.8308,55.8359,2.0,50); //Ammu
  1123. cpammuentrace3 = CPS_AddCheckpoint(778.0967,1871.3663,4.9064,2.0,50); //Ammu
  1124. cpammuentrace4 = CPS_AddCheckpoint(2157.2400,943.3561,10.8203,2.0,50); //Ammu
  1125. cpammuentrace5 = CPS_AddCheckpoint(2537.2446,2083.8816,10.8203,2.0,50); //Ammu
  1126. cpammuentrace6 = CPS_AddCheckpoint(2335.0498,61.5352,26.4832,2.0,50); //Ammu
  1127. cpammuentrace7 = CPS_AddCheckpoint(1365.1813,-1279.3116,13.5469,2.0,50); //Ammu
  1128. cpammuentrace8 = CPS_AddCheckpoint(2400.5313,-1980.2539,13.5469,2.0,50); //Ammu
  1129. cpammuentrace9 = CPS_AddCheckpoint(-2625.8728,210.1599,4.6168,2.0,50); //Ammu
  1130. cpammuentrace10 = CPS_AddCheckpoint(-2092.6567,-2463.5925,30.6250,2.0,50); //Ammu
  1131.  
  1132. //ATM-uri
  1133. cpatm1 = CPS_AddCheckpoint(2172.8428, 1416.7751, 11.0625, 2, 40);
  1134. cpatm2 = CPS_AddCheckpoint(2110.5188, 2060.4219, 10.8203, 2, 40);
  1135. cpatm3 = CPS_AddCheckpoint(2134.0115, 2379.3159, 10.8203, 2, 40);
  1136. cpatm4 = CPS_AddCheckpoint(2455.5420, 1681.4117, 11.0234, 2, 40);
  1137. cpatm5 = CPS_AddCheckpoint(-2635.9067,1398.5020,7.0938, 2, 40);
  1138. cpatm6 = CPS_AddCheckpoint(-1575.3977,902.4458,7.5610, 2, 40);
  1139. cpatm7 = CPS_AddCheckpoint(-2434.0908,516.8967,30.3705, 2, 40);
  1140. cpatm9 = CPS_AddCheckpoint(852.7184,-1760.9111,13.5491, 2, 40);
  1141. cpatm10 = CPS_AddCheckpoint(1243.2965,-1561.1505,13.5545, 2, 40);
  1142. cpatm11 = CPS_AddCheckpoint(1787.9928,-1592.2491,13.4870, 2, 40);
  1143.  
  1144. //LS COP
  1145. cpcopLSjos = CPS_AddCheckpoint(1568.7113,-1690.4612,5.8906, 2, 20);
  1146. cpcopLSsus = CPS_AddCheckpoint(1573.0570,-1675.4435,28.3955, 2, 40);
  1147.  
  1148. //LV COP
  1149. cpcopLVjos = CPS_AddCheckpoint(2268.2466,2448.4587,3.5313, 2, 40);
  1150. cpcopLVsus = CPS_AddCheckpoint(2271.7534,2463.8074,38.6837, 2, 40);
  1151.  
  1152. //SF COP
  1153. cpcopSFsus = CPS_AddCheckpoint(-1593.4403,716.2719,-5.2422, 2, 40);
  1154. cpcopSFjos = CPS_AddCheckpoint(-1610.6396,703.1793,48.9375, 2, 40);
  1155.  
  1156. Hand = CreateMenu("Hand", 1, 50.0, 200.0, 120.0, 250.0);
  1157. AddMenuItem(Hand, 0, "Yes");
  1158. AddMenuItem(Hand, 0, "No");
  1159.  
  1160. Dildo = CreateMenu("CDildos", 1, 50.0, 200.0, 120.0, 250.0);
  1161. AddMenuItem(Dildo, 0, "Purple Dildo $50");
  1162. AddMenuItem(Dildo, 0, "White Dildo $50");
  1163. AddMenuItem(Dildo, 0, "GREY Dildo $50");
  1164. AddMenuItem(Dildo, 0, "Rob Store");
  1165.  
  1166. Rental = CreateMenu("Car Shop", 1, 50.0, 200.0, 120.0, 250.0);
  1167. AddMenuItem(Rental, 0, "Car List");
  1168. AddMenuItem(Rental, 0, "Rob Store");
  1169.  
  1170. CarList = CreateMenu("Buy", 1, 50.0, 200.0, 120.0, 250.0);
  1171. AddMenuItem(CarList, 0, "Voodoo $20000");
  1172. AddMenuItem(CarList, 0, "Sultan $50000");
  1173. AddMenuItem(CarList, 0, "Savanna $35000");
  1174. AddMenuItem(CarList, 0, "Slamvan $25000");
  1175.  
  1176. BarEntrance = CreateMenu("Bar", 1, 50.0, 200.0, 120.0, 250.0);
  1177. AddMenuItem(BarEntrance, 0, "Enter Bar");
  1178.  
  1179. Drugs = CreateMenu("Drugs", 1, 50.0, 200.0, 120.0, 250.0);
  1180. AddMenuItem(Drugs, 0, "5 grams");
  1181. AddMenuItem(Drugs, 0, "15 grams");
  1182. AddMenuItem(Drugs, 0, "20 grams");
  1183. AddMenuItem(Drugs, 0, "25 grams");
  1184. AddMenuItem(Drugs, 0, "Rob");
  1185.  
  1186. SetTimer("WantedLevel", 500, true);
  1187. SetTimer("PlayerRecentlyRobbed", 1000, true);
  1188. SetTimer("Unjail", 1000, true);
  1189. SetTimer("RobbingStores", 1000, true);
  1190. SetTimer("AllStores", 1000, true);
  1191. SetTimer("BlowPlayers", 1000, true);
  1192. SetTimer("BankRecentlyUsedByRobber", 1000, true);
  1193. SetTimer("4DRecentlyUsedByRobber", 1000, true);
  1194. SetTimer("CaRecentlyUsedByRobber", 1000, true);
  1195. SetTimer("ResetMedicWeapons", 1000, true);
  1196. TimerKill[0] = SetTimer("Sorsolas", SORSOLASTIMER, 1);
  1197. TimerKill[1] = SetTimer("LottoHirdetes", HIRDETESTIMER, 1);
  1198.  
  1199. for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++)
  1200. {
  1201. Vehicle[Vehicles][Fuel] = Random(SPAWN_GAS_MIN, SPAWN_GAS_MAX);
  1202. }
  1203. for(new i = 0; i < MAX_PLAYERS; i++)
  1204. {
  1205. Speed[i][ShowSpeed] = 1;
  1206. Speed[i][Refueling] = 0;
  1207.  
  1208. Speed[i][Speedom] = TextDrawCreate(1.000000, 430.000000,"_");
  1209. TextDrawTextSize(Speed[i][Speedom],625.000000,0.000000);
  1210. TextDrawAlignment(Speed[i][Speedom],0);
  1211. TextDrawBackgroundColor(Speed[i][Speedom],0x0000ffff);
  1212. TextDrawFont(Speed[i][Speedom],1);
  1213. TextDrawLetterSize(Speed[i][Speedom],0.399999, 1.400000);
  1214. TextDrawColor(Speed[i][Speedom],0xffff00ff);
  1215. TextDrawSetOutline(Speed[i][Speedom],1);
  1216. TextDrawSetProportional(Speed[i][Speedom],1);
  1217. TextDrawSetShadow(Speed[i][Speedom],1);
  1218.  
  1219. Speed[i][Speedom2] = TextDrawCreate(1.000000, 430.000000,"_");
  1220. TextDrawTextSize(Speed[i][Speedom2],625.000000,0.000000);
  1221. TextDrawAlignment(Speed[i][Speedom2],0);
  1222. TextDrawFont(Speed[i][Speedom2],1);
  1223. TextDrawLetterSize(Speed[i][Speedom2],0.399999, 1.400000);
  1224. TextDrawColor(Speed[i][Speedom2],0xffff00ff);
  1225. TextDrawSetOutline(Speed[i][Speedom2],1);
  1226. TextDrawSetProportional(Speed[i][Speedom2],1);
  1227. TextDrawSetShadow(Speed[i][Speedom2],1);
  1228.  
  1229. SetTimerEx("Speedometer",1000,true,"i",i);
  1230. }
  1231.  
  1232.  
  1233. AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1234. AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1235. AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1236. AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1237. AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1238. AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
  1239.  
  1240. AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // FBI
  1241.  
  1242. AddPlayerClass(285, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // SWAT
  1243.  
  1244. AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Army
  1245.  
  1246. AddPlayerClass(274, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
  1247. AddPlayerClass(275, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
  1248. AddPlayerClass(276, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic 20
  1249.  
  1250. AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 0
  1251. AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1252. AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1253. AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1254. AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1255. AddPlayerClass(28, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 5
  1256. AddPlayerClass(29, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1257. AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1258. AddPlayerClass(47, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1259. AddPlayerClass(59, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1260. AddPlayerClass(98, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 10
  1261. AddPlayerClass(101, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1262. AddPlayerClass(116, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1263. AddPlayerClass(124, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1264. AddPlayerClass(186, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1265. AddPlayerClass(188, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 15
  1266. AddPlayerClass(223, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1267. AddPlayerClass(240, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1268. AddPlayerClass(58, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
  1269.  
  1270. CreateObject(2754,2173.642,1416.756,10.965,0.0,0.0,0.0);
  1271. CreateObject(2754,2110.551,2061.222,10.645,0.0,0.0,90.000);
  1272. CreateObject(2754,2134.022,2380.115,10.722,0.0,0.0,90.000);
  1273. CreateObject(2754,2455.509,1682.210,10.926,0.0,0.0,90.000);
  1274.  
  1275. CreateObject(2754,1787.425,-1591.667,13.383,0.0,-0.859,128.984);//
  1276. CreateObject(2754,852.741,-1760.101,13.451,0.0,0.0,90.000);//
  1277. CreateObject(2754,1243.338,-1560.346,13.458,0.0,0.0,-270.000);//
  1278. CreateObject(2754,-1575.455,901.579,7.555,0.0,0.0,-90.000);//
  1279. CreateObject(2754,-2636.126,1399.269,7.002,0.0,0.0,-254.453);//
  1280. CreateObject(2754,-2434.890,516.938,30.266,0.0,0.0,-180.077);//
  1281.  
  1282. CreateObject(3077,2173.666,1398.133,10.055,0.0,0.0,-90.000);
  1283. CreateObject(3249,2120.823,1333.566,9.820,0.0,0.0,-90.000);
  1284. CreateObject(2591,2086.406,1331.995,1297.114,0.0,0.0,90.000);
  1285. CreateObject(970,2131.378,1331.550,10.373,0.0,0.0,90.000);
  1286. CreateObject(970,2131.370,1335.675,10.379,0.0,0.0,90.000);
  1287. CreateObject(1267,2100.687,1315.522,25.885,0.0,0.0,112.500);
  1288. CreateObject(615,2102.430,1344.295,9.814,0.0,0.0,0.0);
  1289. CreateObject(615,2097.778,1352.475,9.807,0.0,0.0,0.0);
  1290. CreateObject(18018,2102.414,1338.047,1296.456,0.0,0.0,180.000);
  1291. CreateObject(18090,2111.170,1334.028,1299.027,0.0,0.0,0.0);
  1292. CreateObject(1541,2112.979,1330.078,1298.828,0.0,0.0,90.000);
  1293. CreateObject(1545,2112.193,1335.818,1298.379,0.0,0.0,270.000);
  1294. CreateObject(1487,2112.616,1335.134,1298.334,0.0,0.0,0.0);
  1295. CreateObject(1487,2112.611,1334.913,1298.334,0.0,0.0,0.0);
  1296. CreateObject(1512,2110.238,1333.208,1297.708,0.0,0.0,56.250);
  1297. CreateObject(1520,2112.489,1334.566,1297.703,0.0,0.0,0.0);
  1298. CreateObject(1543,2109.845,1334.312,1297.506,0.0,0.0,0.0);
  1299. CreateObject(1543,2112.590,1333.678,1298.671,0.0,0.0,0.0);
  1300. CreateObject(1544,2112.452,1334.781,1298.671,0.0,0.0,0.0);
  1301. CreateObject(1544,2110.382,1337.917,1297.499,0.0,0.0,0.0);
  1302. CreateObject(1547,2109.969,1336.964,1297.512,0.0,0.0,236.250);
  1303. CreateObject(1548,2112.032,1338.103,1297.516,0.0,0.0,11.250);
  1304. CreateObject(1664,2112.576,1333.818,1298.303,0.0,0.0,0.0);
  1305. CreateObject(1665,2109.716,1333.551,1297.521,0.0,0.0,0.0);
  1306. CreateObject(18077,2106.904,1333.482,1297.027,0.0,0.0,0.0);
  1307. CreateObject(1532,2103.933,1327.937,1296.457,0.0,0.0,180.000);
  1308. CreateObject(1532,2102.428,1327.950,1296.457,0.0,0.0,180.000);
  1309. CreateObject(3851,2086.412,1337.231,1299.647,0.0,0.0,0.0);
  1310. CreateObject(1523,2082.852,1331.578,1299.467,0.0,0.0,0.0);
  1311. CreateObject(936,2083.701,1341.965,1299.954,0.0,0.0,0.0);
  1312. CreateObject(1744,2086.156,1341.337,1300.562,0.0,0.0,-90.000);
  1313. CreateObject(2737,2084.512,1342.509,1301.116,0.0,0.0,0.0);
  1314. CreateObject(2291,2085.635,1335.864,1299.478,0.0,0.0,270.000);
  1315. CreateObject(2291,2085.626,1334.943,1299.478,0.0,0.0,270.000);
  1316. CreateObject(2291,2085.626,1333.982,1299.478,0.0,0.0,270.000);
  1317. CreateObject(1663,2083.330,1340.874,1299.939,0.0,0.0,146.250);
  1318. CreateObject(1723,2097.586,1330.152,1298.891,0.0,0.0,-90.000);
  1319. CreateObject(1723,2094.974,1326.679,1298.992,0.0,0.0,-180.000);
  1320. CreateObject(1723,2088.941,1329.203,1298.891,0.0,0.0,90.000);
  1321. CreateObject(2311,2093.204,1328.834,1298.885,0.0,0.0,0.0);
  1322. CreateObject(1696,2081.341,1329.203,1298.483,0.0,0.0,0.0);
  1323. CreateObject(2785,2112.033,1351.602,1297.308,0.0,0.0,0.0);
  1324. CreateObject(2785,2115.960,1348.485,1297.308,0.0,0.0,-90.000);
  1325. CreateObject(2785,2112.367,1345.267,1297.300,0.0,0.0,180.000);
  1326. CreateObject(2780,2096.854,1338.657,1290.535,0.0,0.0,0.0);
  1327. CreateObject(1486,2089.066,1331.882,1299.968,0.0,0.0,0.0);
  1328. CreateObject(1486,2094.264,1329.094,1299.536,0.0,0.0,0.0);
  1329. CreateObject(1486,2093.797,1328.578,1299.538,0.0,0.0,0.0);
  1330. CreateObject(1486,2093.226,1328.986,1299.536,0.0,0.0,0.0);
  1331. CreateObject(1486,2089.160,1331.983,1299.968,0.0,0.0,0.0);
  1332. CreateObject(1486,2089.131,1329.373,1299.380,90.241,0.0,33.750);
  1333. CreateObject(1486,2089.921,1330.388,1298.913,94.538,0.0,33.750);
  1334. CreateObject(1486,2098.262,1331.060,1299.968,0.0,0.0,0.0);
  1335. CreateObject(1512,2099.001,1330.510,1296.486,87.663,0.0,0.0);
  1336. CreateObject(9833,2096.497,1347.317,1305.492,180.482,0.0,45.000);
  1337. CreateObject(9833,2090.230,1347.290,1310.471,180.482,0.0,45.000);
  1338. CreateObject(9833,2103.819,1347.284,1310.421,180.482,0.0,45.000);
  1339. CreateObject(2732,2264.098,968.830,13.681,0.0,0.0,180.000);
  1340. CreateObject(2733,2254.177,968.780,13.664,0.0,0.0,180.000);
  1341. CreateObject(2734,2244.198,968.755,13.689,0.0,0.0,180.000);
  1342. CreateObject(2735,2252.341,961.731,11.525,0.0,0.0,180.000);
  1343. CreateObject(2733,2246.148,961.706,11.507,0.0,0.0,180.000);
  1344.  
  1345. AddStaticVehicleEx(534,2472.9211,1658.7762,10.5465,359.8307,6,6, 500); //
  1346. AddStaticVehicleEx(499,2405.3523,1667.8323,10.8129,359.5840,109,32, 500); //
  1347. AddStaticVehicleEx(412,2372.6116,1648.4834,10.6580,0.8343,10,8, 500); //
  1348. AddStaticVehicleEx(562,2466.3171,1677.0613,10.4786,178.7625,66,72, 500); //
  1349. AddStaticVehicleEx(426,2461.7959,1629.1102,10.5639,179.0690,0,0, 500); //
  1350. AddStaticVehicleEx(402,2445.7551,1629.4286,10.6519,0.2863,13,13, 500); //
  1351. AddStaticVehicleEx(603,2405.8633,1629.0724,10.6586,359.5122,8,8, 500); //
  1352. AddStaticVehicleEx(535,2392.5156,1658.7957,10.5837,1.0343,28,1, 500); //
  1353. AddStaticVehicleEx(575,2479.2625,1667.8008,10.4150,179.7732,3,3, 500); //
  1354. AddStaticVehicleEx(411,2367.4495,1004.6971,10.5474,269.8430,64,64, 500); //
  1355. AddStaticVehicleEx(477,2393.2632,988.4747,10.5774,92.3181,0,0, 500); //
  1356. AddStaticVehicleEx(546,2393.1833,994.2506,10.5446,270.0536,42,42, 500); //
  1357. AddStaticVehicleEx(565,2394.5703,999.7688,10.4460,88.1333,42,42, 500); //
  1358. AddStaticVehicleEx(603,2393.6338,1005.4090,10.6583,90.0020,3,3, 500); //
  1359. AddStaticVehicleEx(462,2142.3591,1012.7918,10.4165,91.9208,13,13, 500); //
  1360. AddStaticVehicleEx(412,2142.2070,1022.6295,10.6581,271.0170,11,1, 500); //
  1361. AddStaticVehicleEx(535,2162.6340,1028.9689,10.5832,270.9259,31,1, 500); //
  1362. AddStaticVehicleEx(567,2157.7578,987.4936,10.6888,180.2066,88,64, 500); //
  1363. AddStaticVehicleEx(582,2163.1558,1009.7912,10.8740,270.0522,41,20, 500); //
  1364. AddStaticVehicleEx(560,2172.2048,1019.2856,10.5256,89.6247,9,39, 500); //
  1365. AddStaticVehicleEx(558,2172.0122,1006.4577,10.4501,89.5966,116,1, 500); //
  1366. AddStaticVehicleEx(405,2172.1658,1012.8825,10.6953,269.3904,9,39, 500); //
  1367. AddStaticVehicleEx(559,2132.1841,1019.4150,10.4767,271.0511,73,73, 500); //
  1368. AddStaticVehicleEx(426,2141.7686,987.2473,10.5639,179.6218,6,6, 500); //
  1369. AddStaticVehicleEx(547,2179.5127,987.5496,10.5846,359.1130,108,108, 500); //
  1370. AddStaticVehicleEx(412,2354.4670,728.7990,11.0687,178.6039,27,1, 500); //
  1371. AddStaticVehicleEx(461,2362.4084,739.2892,11.0465,175.1550,37,1, 500); //
  1372. AddStaticVehicleEx(405,2353.5063,698.0624,11.1730,359.5570,17,1, 500); //
  1373. AddStaticVehicleEx(551,2361.1511,698.7083,10.9552,178.5026,62,62, 500); //
  1374. AddStaticVehicleEx(567,2405.7837,728.8138,11.1389,178.9894,90,96, 500); //
  1375. AddStaticVehicleEx(575,2309.6528,699.0496,10.7698,179.9338,6,6, 500); //
  1376. AddStaticVehicleEx(409,2125.7625,2358.8254,10.5424,90.4384,96,96, 500); //
  1377. AddStaticVehicleEx(579,2119.8899,2366.2922,10.7528,180.1806,42,42, 500); //
  1378. AddStaticVehicleEx(579,2135.4375,2366.5396,10.7533,179.2225,53,53, 500); //
  1379. AddStaticVehicleEx(411,1945.9452,2081.0701,10.5474,358.7133,44,44, 500); //
  1380. AddStaticVehicleEx(560,1945.9236,2056.6816,10.5259,0.5755,17,1, 500); //
  1381. AddStaticVehicleEx(461,1939.7405,2077.5396,10.3958,0.3513,43,1, 500); //
  1382. AddStaticVehicleEx(522,1939.7479,2069.5010,10.3899,357.2454,3,8, 500); //
  1383. AddStaticVehicleEx(481,1939.5156,2063.3462,10.3363,0.0796,3,6, 500); //
  1384. AddStaticVehicleEx(550,2040.0674,1019.7483,10.4857,180.0628,3,3, 500); //
  1385. AddStaticVehicleEx(551,2040.1283,1001.6779,10.4723,179.5286,44,44, 500); //
  1386. AddStaticVehicleEx(522,2040.3741,1011.2333,10.2425,179.6930,7,79, 500); //
  1387. AddStaticVehicleEx(420,2082.1479,2479.3735,10.5991,179.7290,6,76, 500); //
  1388. AddStaticVehicleEx(438,2090.6277,2479.4390,10.8244,359.7547,6,76, 500); //
  1389. AddStaticVehicleEx(420,2084.8745,2469.1799,10.5993,359.1951,6,76, 500); //
  1390. AddStaticVehicleEx(438,2046.3571,2468.8115,10.8230,359.5204,6,76, 500); //
  1391. AddStaticVehicleEx(438,2057.1445,2479.5557,10.8238,0.0725,6,76, 500); //
  1392. AddStaticVehicleEx(420,2126.6108,2468.6418,10.5982,0.4535,6,76, 500); //
  1393. AddStaticVehicleEx(438,2135.0234,2468.9534,10.8212,359.4664,6,76, 500); //
  1394. AddStaticVehicleEx(420,2153.2742,2479.4822,10.6011,269.2158,6,76, 500); //
  1395. AddStaticVehicleEx(420,2152.7151,2494.5276,10.6009,89.9420,6,76, 500); //
  1396. AddStaticVehicleEx(598,2282.1550,2443.3625,10.5685,0.4613,0,1, 500); //
  1397. AddStaticVehicleEx(598,2277.8914,2461.0503,10.5662,179.0250,0,1, 500); //
  1398. AddStaticVehicleEx(598,2282.2273,2477.1331,10.5640,359.6212,0,1, 500); //
  1399. AddStaticVehicleEx(598,2269.0532,2476.5664,10.5676,178.9592,0,1, 500); //
  1400. AddStaticVehicleEx(598,2273.5305,2443.7686,10.5652,179.1985,0,1, 500); //
  1401. AddStaticVehicleEx(598,2256.0552,2443.9597,10.5665,359.5947,0,1, 500); //
  1402. AddStaticVehicleEx(598,2251.6458,2459.4985,10.5687,358.2122,0,1, 500); //
  1403. AddStaticVehicleEx(598,2260.4390,2477.6992,10.5672,357.7829,0,1, 500); //
  1404. AddStaticVehicleEx(598,2256.0339,2477.6545,10.5663,177.3497,0,1, 500); //
  1405. AddStaticVehicleEx(490,2260.3430,2458.3870,10.9491,359.3593,0,1, 500); //
  1406. AddStaticVehicleEx(490,2269.4644,2443.1841,10.9485,178.7726,0,1, 500); //
  1407. AddStaticVehicleEx(427,2290.9546,2442.8438,10.9533,177.9908,0,1, 500); //
  1408. AddStaticVehicleEx(427,2273.4326,2458.7405,10.9524,178.5145,0,1, 500); //
  1409. AddStaticVehicleEx(546,2032.5714,1905.6959,11.9413,183.0488,42,42, 500); //
  1410. AddStaticVehicleEx(418,2033.0281,1930.4526,12.2988,173.5465,3,3, 500); //
  1411. AddStaticVehicleEx(558,2044.9039,1907.8097,11.7633,183.0264,116,1, 500); //
  1412. AddStaticVehicleEx(560,2044.9648,1925.6631,11.8462,176.9535,21,1, 500); //
  1413. AddStaticVehicleEx(535,2044.7391,1917.5081,11.9041,179.6416,28,1, 500); //
  1414. AddStaticVehicleEx(416,1612.7440,1839.2080,10.9697,180.1315,1,3, 500); //
  1415. AddStaticVehicleEx(416,1602.1962,1831.9338,10.9778,0.0186,1,3, 500); //
  1416. AddStaticVehicleEx(416,1599.1062,1849.7390,10.9698,180.6114,1,3, 500); //
  1417. AddStaticVehicleEx(416,1613.9442,1850.1570,10.9698,180.0313,1,3, 500); //
  1418. AddStaticVehicleEx(416,1593.5956,1840.0591,10.9702,1.2758,1,3, 500); //
  1419. AddStaticVehicleEx(575,2132.7542,1408.5275,10.4920,0.1349,4,4, 500); //
  1420. AddStaticVehicleEx(567,2123.1653,1398.6191,10.6987,179.6008,88,64, 500); //
  1421. AddStaticVehicleEx(558,2139.0557,1398.0648,10.4417,359.4670,24,1, 500); //
  1422. AddStaticVehicleEx(559,2106.9807,1398.2726,10.4767,179.8120,3,3, 500); //
  1423. AddStaticVehicleEx(536,2100.8140,1408.8713,10.5579,178.6800,32,1, 500); //
  1424. AddStaticVehicleEx(560,2145.6990,1408.7677,10.5256,179.8884,33,0, 500); //
  1425. AddStaticVehicleEx(541,2116.2251,1340.6744,10.4450,91.1779,0,0, 500); //
  1426. AddStaticVehicleEx(437,-1988.6128,191.8639,27.6723,0.5789,23,84, 500); // CNR
  1427. AddStaticVehicleEx(420,-1988.1422,178.9573,27.3183,1.4396,6,6, 500); // CNR
  1428. AddStaticVehicleEx(420,-1987.9703,172.1282,27.3211,1.4395,6,6, 500); // CNR
  1429. AddStaticVehicleEx(420,-1987.7473,163.2685,27.3186,1.4395,6,6, 500); // CNR
  1430. AddStaticVehicleEx(420,-1988.0347,153.0820,27.3179,359.3752,6,6, 500); // CNR
  1431. AddStaticVehicleEx(420,-1988.1346,146.2245,27.3194,0.3721,6,6, 500); // CNR
  1432. AddStaticVehicleEx(437,-1988.6406,106.2428,27.6724,0.9065,117,47, 500); // CNR
  1433. AddStaticVehicleEx(438,-1988.2738,131.3374,27.5397,358.4913,6,6, 500); // CNR
  1434. AddStaticVehicleEx(438,-1988.5242,121.8434,27.5445,358.4913,6,6, 500); // CNR
  1435. AddStaticVehicleEx(540,-2029.3890,157.1268,28.6981,358.3036,32,107, 500); // CNR
  1436. AddStaticVehicleEx(526,-1987.0029,307.0458,34.9423,65.8231,25,84, 500); // CNR
  1437. AddStaticVehicleEx(559,-1990.3962,272.7261,34.7868,240.6091,117,10, 500); // CNR
  1438. AddStaticVehicleEx(524,-2130.3035,297.3135,35.6152,240.0539,39,32, 500); // CNR
  1439. AddStaticVehicleEx(497,-1681.5543,706.1519,30.7784,271.6265,0,1, 500); // CNR
  1440. AddStaticVehicleEx(597,-1600.3014,749.5445,-5.4735,359.8234,0,1, 500); // CNR
  1441. AddStaticVehicleEx(597,-1574.5607,742.6702,-5.4750,90.5884,0,1, 500); // CNR
  1442. AddStaticVehicleEx(597,-1574.0773,718.3009,-5.4733,88.2228,0,1, 500); // CNR
  1443. AddStaticVehicleEx(597,-1639.7535,686.2418,-5.4767,94.0520,0,1, 500); // CNR
  1444. AddStaticVehicleEx(597,-1620.8264,692.0425,-5.4724,179.9455,0,1, 500); // CNR
  1445. AddStaticVehicleEx(528,-1600.0839,675.3750,-5.2003,358.0193,70,11, 500); // CNR
  1446. AddStaticVehicleEx(528,-1622.4645,654.0593,-5.1985,268.2474,70,11, 500); // CNR
  1447. AddStaticVehicleEx(528,-1580.2118,749.0043,-5.1976,358.6027,70,11, 500); // CNR
  1448. AddStaticVehicleEx(528,-1612.4758,732.7313,-5.1965,180.3062,70,11, 500); // CNR
  1449. AddStaticVehicleEx(490,-1608.5421,741.3525,-5.1148,224.1386,96,79, 500); //
  1450. AddStaticVehicleEx(490,-1590.2271,710.4675,-5.1134,270.6260,0,0, 500); // CNR
  1451. AddStaticVehicleEx(427,-1573.5730,722.6011,-5.1104,89.3115,0,1, 500); // CNR
  1452. AddStaticVehicleEx(428,-1581.7739,673.5168,7.3130,359.1592,1,0, 500); // CNR
  1453. AddStaticVehicleEx(597,-1605.6608,674.2237,6.9549,359.5684,0,1, 500); // CNR
  1454. AddStaticVehicleEx(597,-1600.0083,652.1969,6.9549,1.3530,0,1, 500); // CNR
  1455. AddStaticVehicleEx(412,-1626.7611,722.6164,14.4156,252.3011,89,52, 500); // CNR
  1456. AddStaticVehicleEx(418,-1625.2798,833.4026,7.6379,269.8319,50,75, 500); // CNR
  1457. AddStaticVehicleEx(424,-2132.2112,722.4828,69.3477,136.9095,54,22, 500); // CNR
  1458. AddStaticVehicleEx(434,-2482.1794,741.7360,34.9838,177.3357,91,105, 500); // CNR
  1459. AddStaticVehicleEx(416,-2647.7981,584.1959,14.6023,90.5916,48,74, 500); // CNR
  1460. AddStaticVehicleEx(416,-2679.0544,627.3723,14.6019,269.1387,48,74, 500); // CNR
  1461. AddStaticVehicleEx(439,-2543.4226,599.0334,14.3481,90.4391,117,91, 500); // CNR
  1462. AddStaticVehicleEx(522,-2661.4856,268.5721,3.9123,178.5994,3,3, 500); // CNR
  1463. AddStaticVehicleEx(560,-2616.3931,90.1765,4.0128,308.5160,79,103, 500); // CNR
  1464. AddStaticVehicleEx(517,-2661.3965,235.5974,4.1935,88.1109,62,20, 500); // CNR
  1465. AddStaticVehicleEx(517,-2505.2500,413.4430,27.6352,320.1658,62,20, 500); // CNR
  1466. AddStaticVehicleEx(411,-2372.3169,519.1977,28.2521,22.9398,24,105, 500); // CNR
  1467. AddStaticVehicleEx(411,-2646.3179,1334.5313,6.8518,342.3297,24,105, 500); // CNR
  1468. AddStaticVehicleEx(409,-2624.9553,1378.8749,6.9232,270.0377,1,1, 500); // CNR
  1469. AddStaticVehicleEx(534,-2762.5125,-295.7481,6.7661,359.8021,16,66, 500); // CNR
  1470. AddStaticVehicleEx(481,-2889.2112,-1032.4730,9.0006,182.6653,125,40, 500); // CNR
  1471. AddStaticVehicleEx(468,-2408.3962,-2190.2612,32.9582,351.4587,29,72, 500); // CNR
  1472. AddStaticVehicleEx(468,-2398.6426,-2215.8879,32.9574,196.7935,29,72, 500); // CNR
  1473. AddStaticVehicleEx(510,-2323.2595,-1631.8724,483.2980,206.6769,80,102, 500); // CNR
  1474. AddStaticVehicleEx(412,-2187.1804,-2295.0037,30.3802,221.3219,101,15, 500); // CNR
  1475. AddStaticVehicleEx(478,-2094.1873,-2481.8191,30.5478,101.2632,93,100, 500); // CNR
  1476. AddStaticVehicleEx(605,-629.6401,-2555.3210,68.4381,35.9639,36,120, 500); // cNR
  1477. AddStaticVehicleEx(604,-355.7040,-2337.2158,82.3132,342.8585,14,73, 500); // CNR
  1478. AddStaticVehicleEx(593,-1361.9164,-485.1834,14.6313,203.2765,98,48, 500); // CNR
  1479. AddStaticVehicleEx(593,-1441.0549,-523.4969,14.6326,207.9127,107,78, 500); // CNR
  1480. AddStaticVehicleEx(553,-1273.5382,-611.5309,15.4884,0.0814,50,97, 500); // CNR
  1481. AddStaticVehicleEx(553,-1329.6910,-616.8340,15.4800,344.8188,9,9, 500); // CNR
  1482. AddStaticVehicleEx(519,-1526.4309,-599.8280,15.0703,275.2200,6,76, 500); // CNR
  1483. AddStaticVehicleEx(487,-1183.4301,23.3701,14.3281,47.5092,0,1, 500); // CNR
  1484. AddStaticVehicleEx(487,-1223.9756,-12.9300,14.3376,45.5123,0,1, 500); // CNR
  1485. AddStaticVehicleEx(487,-1636.7146,-626.3158,14.3246,276.2187,182,127, 500); // CNR
  1486. AddStaticVehicleEx(473,-1149.2510,-479.3979,-0.3647,342.6399,35,6, 500); // CNR
  1487. AddStaticVehicleEx(472,-1113.4923,329.8786,0.1266,315.0088,53,122, 500); // CNR
  1488. AddStaticVehicleEx(493,-1475.8485,687.6431,-0.0686,358.0009,0,7, 500); // CNR
  1489. AddStaticVehicleEx(595,-1461.7936,1022.8047,0.2081,89.4682,103,110, 500); // CNR
  1490. AddStaticVehicleEx(493,-1566.3278,1263.2714,0.0268,89.8198,0,7, 500); // CNR
  1491. AddStaticVehicleEx(452,-1895.3483,1399.6223,-0.4755,272.2622,40,37, 500); // CNR
  1492. AddStaticVehicleEx(423,-1791.1069,1425.7482,7.2173,355.6911,110,57, 500); // CNR
  1493. AddStaticVehicleEx(587,-1665.9906,1209.3291,6.9828,299.6061,36,25, 500); // CNR
  1494. AddStaticVehicleEx(411,-1663.9546,1222.1163,13.3544,237.1603,115,120, 500); // CNR
  1495. AddStaticVehicleEx(451,-2156.0752,1058.8573,79.7092,10.4905,84,44, 500); // CNR
  1496. AddStaticVehicleEx(411,-2457.4963,2304.9705,4.6544,276.6973,20,108, 500); // CNR
  1497. AddStaticVehicleEx(426,-2480.1841,416.1389,27.5246,137.6551,0,0, 500); // CNR
  1498. AddStaticVehicleEx(421,-2486.8831,421.7173,27.6637,137.7021,2,1, 500); // CNR
  1499. AddStaticVehicleEx(412,-2499.1658,433.9863,27.6155,318.3919,87,64, 500); // CNR
  1500. AddStaticVehicleEx(562,-2480.3999,393.1013,27.4380,141.8022,74,48, 500); // CNR
  1501. AddStaticVehicleEx(400,-2542.6204,587.1049,14.5455,270.1338,95,24, 500); // CNR
  1502. AddStaticVehicleEx(416,-2589.0984,621.9482,14.6087,270.2829,1,3, 500); // CNR
  1503. AddStaticVehicleEx(416,-2589.3169,632.6327,14.6024,270.3439,1,3, 500); // CNR
  1504. AddStaticVehicleEx(416,-2545.6440,647.7982,14.6085,269.7815,1,3, 500); // CNR
  1505. AddStaticVehicleEx(559,-2176.9211,657.9245,49.0938,178.8880,0,0, 500); // CNR
  1506. AddStaticVehicleEx(433,-1477.4896,460.0663,7.6225,359.8576,42,31, 500); // CNR
  1507. AddStaticVehicleEx(470,-1470.0477,458.8246,7.1754,358.5681,114,69, 500); // CNR
  1508. AddStaticVehicleEx(470,-1464.5531,458.7328,7.1745,358.5191,97,62, 500); // CNR
  1509. AddStaticVehicleEx(470,-1458.6755,458.6252,7.1773,358.6697,35,49, 500); // CNR
  1510. AddStaticVehicleEx(433,-1452.6025,460.1559,7.6208,359.1512,36,71, 500); // CNR
  1511. AddStaticVehicleEx(548,-1254.6019,459.1282,8.8423,64.3847,84,48, 500); // CNR
  1512. AddStaticVehicleEx(470,-1266.7256,439.1088,7.1769,30.9449,2,10, 500); // CNR
  1513. AddStaticVehicleEx(433,-1305.5168,440.4816,7.6239,46.9552,47,1, 500); // CNR
  1514. AddStaticVehicleEx(404,-1500.6406,993.8652,6.9214,89.7719,34,74, 500); // CNR
  1515. AddStaticVehicleEx(418,-1611.2949,1147.5748,7.2028,359.1432,96,5, 500); // CNR
  1516. AddStaticVehicleEx(400,-1637.8809,1297.3248,7.1281,134.9772,24,37, 500); // CNR
  1517. AddStaticVehicleEx(401,-1645.2125,1304.6230,6.8081,134.2872,78,36, 500); // CNR
  1518. AddStaticVehicleEx(424,-2010.6729,1269.7745,9.4492,1.5402,96,57, 500); // CNR
  1519. AddStaticVehicleEx(402,-2531.2639,1140.4996,55.5583,352.4629,74,87, 500); // CNR
  1520. AddStaticVehicleEx(400,-2567.8296,1147.7538,55.8189,337.2007,23,63, 500); // CNR
  1521. AddStaticVehicleEx(534,-2637.6321,802.1845,49.6711,180.5369,103,23, 500); // CNR
  1522. AddStaticVehicleEx(596,1539.2555,-1644.3197,5.6109,359.9586,47,95, 500); // CNR
  1523. AddStaticVehicleEx(596,1544.8132,-1658.8232,5.6096,89.2314,47,95, 500); // CNR
  1524. AddStaticVehicleEx(596,1544.7218,-1684.1376,5.6113,267.8804,47,95, 500); // CNR
  1525. AddStaticVehicleEx(596,1574.4397,-1710.7479,5.6093,180.7318,47,95, 500); // CNR
  1526. AddStaticVehicleEx(596,1602.1147,-1696.4015,5.6124,267.8443,47,95, 500); // CNR
  1527. AddStaticVehicleEx(427,1529.5773,-1684.2161,6.0226,87.6918,54,38, 500); // CNR
  1528. AddStaticVehicleEx(427,1601.5450,-1704.1082,6.0227,270.3358,54,38, 500); // CNR
  1529. AddStaticVehicleEx(427,1558.8358,-1613.9513,13.5147,175.3478,54,38, 500); // CNR
  1530. AddStaticVehicleEx(596,1601.9608,-1628.7412,13.2071,88.4642,1,0, 500); // CNR
  1531. AddStaticVehicleEx(596,1536.0029,-1678.5251,13.1041,181.2446,1,0, 500); // CNR
  1532. AddStaticVehicleEx(596,1535.5918,-1667.6024,13.1045,181.2998,1,0, 500); // CNR
  1533. AddStaticVehicleEx(412,1350.7225,-1593.1829,13.3356,171.2246,120,63, 500); // CNR
  1534. AddStaticVehicleEx(412,1471.5330,-1498.9709,13.3844,214.8573,120,63, 500); // CNR
  1535. AddStaticVehicleEx(543,1663.3156,-1718.2933,20.2969,126.2698,125,13, 500); // CNR
  1536. AddStaticVehicleEx(545,1476.0431,-1738.6343,13.3579,270.2405,19,88, 500); // CNR
  1537. AddStaticVehicleEx(576,1858.8785,-1426.5573,13.1862,205.2842,50,45, 500); // CNR
  1538. AddStaticVehicleEx(541,2146.3120,-1454.7037,24.5068,270.1099,114,18, 500); // CNR
  1539. AddStaticVehicleEx(574,2159.9788,-1309.2162,23.7098,144.8127,121,81, 500); // CNR
  1540. AddStaticVehicleEx(566,1709.8203,-1339.8234,13.2535,330.5721,110,20, 500); // CNR
  1541. AddStaticVehicleEx(463,1255.5306,-1438.6350,18.2297,260.2033,86,15, 500); // CNR
  1542. AddStaticVehicleEx(416,1189.8268,-1366.3300,13.6137,359.3892,69,8, 500); // CNR
  1543. AddStaticVehicleEx(416,1190.0822,-1344.7936,13.6316,357.8732,69,8, 500); // CNR
  1544. AddStaticVehicleEx(416,1177.0189,-1308.6743,14.0180,89.7719,69,8, 500); // CNR
  1545. AddStaticVehicleEx(416,1210.5793,-1311.3835,13.6255,177.7648,69,8, 500); // CNR
  1546. AddStaticVehicleEx(416,1210.8770,-1381.2939,13.4991,178.2684,69,8, 500); // CNR
  1547. AddStaticVehicleEx(588,1278.8674,-1293.7701,13.2362,89.3756,34,0, 500); // CNR
  1548. AddStaticVehicleEx(526,1140.4080,-1472.4884,15.5636,94.6149,34,71, 500); // CNR
  1549. AddStaticVehicleEx(586,871.6463,-1762.0640,13.0556,80.0748,112,91, 500); // CNR
  1550. AddStaticVehicleEx(603,768.0140,-1789.1705,12.8355,135.9006,96,100, 500); // CNR
  1551. AddStaticVehicleEx(603,588.0920,-1579.5155,15.8537,90.8709,96,100, 500); // CNR
  1552. AddStaticVehicleEx(560,665.6003,-1225.8263,15.3248,273.2521,11,73, 500); // CNR
  1553. AddStaticVehicleEx(560,655.0095,-1223.4033,16.6347,200.2075,1,255, 500); // CNR
  1554. AddStaticVehicleEx(463,662.1331,-1223.1228,15.5249,63.3169,39,97, 500); // CNR
  1555. AddStaticVehicleEx(463,658.1104,-1230.9053,15.5060,58.8725,39,97, 500); // CNR
  1556. AddStaticVehicleEx(583,486.2061,-1359.3267,17.4421,165.2249,12,28, 500); // CNR
  1557. AddStaticVehicleEx(602,478.8647,-1508.4924,20.3364,134.6098,104,122, 500); // CNR
  1558. AddStaticVehicleEx(602,159.0004,-1531.8573,11.7415,197.7620,104,122, 500); // CNR
  1559. AddStaticVehicleEx(600,364.4498,-1360.2690,14.2063,328.3542,80,52, 500); // CNR
  1560. AddStaticVehicleEx(560,1337.5819,-1263.0737,13.1667,178.0636,66,103, 500); // CNR
  1561. AddStaticVehicleEx(524,1236.9630,-1266.5527,14.3741,269.3505,117,50, 500); // CNR
  1562. AddStaticVehicleEx(567,1015.5640,-1133.5992,23.7293,47.1603,35,36, 500); // CNR
  1563. AddStaticVehicleEx(442,923.2741,-1122.1011,23.8356,2.0281,1,18, 500); // CNR
  1564. AddStaticVehicleEx(455,2691.3254,-2499.0781,13.9564,54.3853,52,82, 500); // CNR
  1565. AddStaticVehicleEx(470,2741.8213,-2476.4526,13.6400,358.9606,105,42, 500); // CNR
  1566. AddStaticVehicleEx(470,2739.6182,-2425.5833,13.6355,149.2840,105,42, 500); // CNR
  1567. AddStaticVehicleEx(470,2725.4558,-2391.7080,13.6314,269.6312,105,42, 500); // CNR
  1568. AddStaticVehicleEx(470,2784.0935,-2387.6138,13.6287,356.4348,105,42, 500); // CNR
  1569. AddStaticVehicleEx(548,2777.7478,-2346.0249,15.2715,165.5650,46,68, 500); // CNR
  1570. AddStaticVehicleEx(433,2787.4146,-2418.3120,14.0703,89.0070,70,6, 500); // CNR
  1571. AddStaticVehicleEx(433,2786.1667,-2455.7805,14.0707,89.1321,70,6, 500); // CNR
  1572. AddStaticVehicleEx(433,2785.8806,-2494.5603,14.0893,88.3835,70,6, 500); // CNR
  1573. AddStaticVehicleEx(525,2692.9285,-2467.9971,13.5217,86.5740,14,63, 500); // CNR
  1574. AddStaticVehicleEx(525,2693.2854,-2452.8250,13.5165,89.8568,14,63, 500); // CNR
  1575. AddStaticVehicleEx(528,2758.8633,-2457.2893,13.5664,1.0570,5,23, 500); // CNR
  1576. AddStaticVehicleEx(528,2764.0215,-2455.1875,13.5579,3.0803,5,23, 500); // CNR
  1577. AddStaticVehicleEx(583,2644.6338,-2387.8462,13.1734,11.1478,10,15, 500); // CNR
  1578. AddStaticVehicleEx(562,2267.8796,-2018.3160,13.2044,282.6059,30,97, 500); // CNR
  1579. AddStaticVehicleEx(558,2229.7759,-1762.9365,13.1912,0.2561,54,122, 500); // CNR
  1580. AddStaticVehicleEx(499,2250.7107,-1779.2504,13.5382,351.8078,0,0, 500); // CNR
  1581. AddStaticVehicleEx(411,2501.1316,-1755.5726,13.1029,0.6107,93,121, 500); // CNR
  1582. AddStaticVehicleEx(434,2517.5837,-1672.6176,14.1060,232.5694,32,20, 500); // CNR
  1583. AddStaticVehicleEx(451,2225.6018,-1639.5422,15.1659,26.3051,60,73, 500); // CNR
  1584. AddStaticVehicleEx(451,2337.8655,-1611.1965,20.7983,115.9090,60,73, 500); // CNR
  1585. AddStaticVehicleEx(451,2407.9385,-1482.4860,23.5266,194.5191,60,73, 500); // CNR
  1586. AddStaticVehicleEx(451,2465.3860,-1424.1887,23.4578,271.1841,60,73, 500); // CNR
  1587. AddStaticVehicleEx(451,2465.5339,-1413.9205,23.4570,268.5215,60,73, 500); // CNR
  1588. AddStaticVehicleEx(411,2433.4316,-1260.9491,23.5550,97.2068,65,46, 500); // CNR
  1589. AddStaticVehicleEx(411,2378.0330,-1248.9265,23.6113,24.8095,65,46, 500); // CNR
  1590. AddStaticVehicleEx(421,2363.1147,-1166.6296,27.4895,343.4427,62,103, 500); // CNR
  1591. AddStaticVehicleEx(421,2533.9192,-1144.2948,42.3100,267.9478,62,103, 500); // CNR
  1592. AddStaticVehicleEx(412,2683.8364,-1110.4365,69.2337,267.6568,0,40, 500); // CNR
  1593. AddStaticVehicleEx(410,2750.2366,-1112.4893,69.2323,162.1354,121,37, 500); // CNR
  1594. AddStaticVehicleEx(424,2564.3171,-1277.7893,45.9237,134.5531,29,62, 500); // CNR
  1595. AddStaticVehicleEx(424,2517.3235,-1395.2300,28.2242,182.8000,29,62, 500); // CNR
  1596. AddStaticVehicleEx(502,2681.7283,-1673.7838,9.3156,178.9488,68,6, 500); // CNR
  1597. AddStaticVehicleEx(419,2595.1094,-1640.5896,2.3411,356.7394,34,87, 500); // CNR
  1598. AddStaticVehicleEx(437,1780.6001,-1887.4373,13.5230,269.2689,65,16, 500); // CNR
  1599. AddStaticVehicleEx(437,1781.0718,-1891.0201,13.5237,269.8186,65,16, 500); // CNR
  1600. AddStaticVehicleEx(437,1781.6692,-1896.8356,13.5239,269.7447,65,16, 500); // CNR
  1601. AddStaticVehicleEx(437,1780.4521,-1902.3815,13.5235,267.0726,65,16, 500); // CNR
  1602. AddStaticVehicleEx(437,1781.3156,-1906.7104,13.5234,267.8438,65,16, 500); // CNR
  1603. AddStaticVehicleEx(420,1777.3168,-1912.5166,13.1622,268.8852,6,6, 500); // CNR
  1604. AddStaticVehicleEx(420,1777.7452,-1916.8807,13.1650,270.0446,6,6, 500); // CNR
  1605. AddStaticVehicleEx(420,1777.4371,-1920.8295,13.1673,268.6692,6,6, 500); // CNR
  1606. AddStaticVehicleEx(420,1777.5826,-1924.3154,13.1673,270.9490,6,6, 500); // CNR
  1607. AddStaticVehicleEx(420,1777.0709,-1927.6826,13.1646,267.4850,6,6, 500); // CNR
  1608. AddStaticVehicleEx(420,1777.7676,-1932.2742,13.1654,269.5245,6,6, 500); // CNR
  1609. AddStaticVehicleEx(462,1838.0708,-1871.0637,12.9894,16.7216,90,110, 500); // CNR
  1610. AddStaticVehicleEx(489,1703.4624,-1514.6466,13.5289,354.6726,6,64, 500); // CNR
  1611. AddStaticVehicleEx(489,1681.7804,-1165.2457,23.8883,96.7670,6,64, 500); // CNR
  1612. AddStaticVehicleEx(489,1622.5425,-1088.9559,24.0498,272.3766,6,64, 500); // CNR
  1613. AddStaticVehicleEx(492,1648.7659,-1084.5262,23.6877,268.7659,88,51, 500); // CNR
  1614. AddStaticVehicleEx(445,1426.7501,-1088.7882,17.4328,178.8861,20,53, 500); // CNR
  1615. AddStaticVehicleEx(419,1963.9802,-1171.6763,25.8101,171.9996,54,9, 500); // CNR
  1616. AddStaticVehicleEx(419,2135.7939,-1261.7487,23.7886,266.9993,54,9, 500); // CNR
  1617. AddStaticVehicleEx(419,2166.0537,-1984.9197,13.3558,177.7469,54,9, 500); // CNR
  1618. AddStaticVehicleEx(419,1793.6608,-2124.4517,13.3428,175.8265,54,9, 500); // CNR
  1619. AddStaticVehicleEx(492,1616.9003,-1892.5708,13.3299,261.1858,122,23, 500); // CNR
  1620. AddStaticVehicleEx(492,1345.8270,-1854.9633,13.2459,305.1307,122,23, 500); // CNR
  1621. AddStaticVehicleEx(492,1071.0842,-1837.2305,13.3695,279.7008,122,23, 500); // CNR
  1622. AddStaticVehicleEx(492,558.4954,-1740.1851,12.5294,89.1122,122,23, 500); // CNR
  1623. AddStaticVehicleEx(492,333.8728,-1745.5265,4.2778,275.7159,122,23, 500); // CNR
  1624. AddStaticVehicleEx(492,203.6131,-1381.0515,49.0262,303.5283,122,23, 500); // CNR
  1625. AddStaticVehicleEx(477,269.5095,-1365.8063,52.9312,195.7436,51,68, 500); // CNR
  1626. AddStaticVehicleEx(477,1532.2039,-892.9706,60.8801,47.5508,51,68, 500); // CNR
  1627. AddStaticVehicleEx(477,1614.7751,73.0663,37.2610,137.4652,51,68, 500); // CNR
  1628. AddStaticVehicleEx(477,1825.6857,873.9662,10.4787,250.8812,51,68, 500); // CNR
  1629. AddStaticVehicleEx(409,1174.8761,-2011.1066,68.8034,180.2955,19,45, 500); // CAR LS
  1630. AddStaticVehicleEx(409,1174.8418,-2062.4541,68.8005,358.8616,1,3, 500); // CAR LS
  1631. AddStaticVehicleEx(560,1247.4678,-2010.8546,59.4837,0.0172,61,92, 500); // CAR LS
  1632. AddStaticVehicleEx(426,1262.6028,-2010.7106,59.0890,1.0326,117,115, 500); // CAR LS
  1633. AddStaticVehicleEx(421,1246.6702,-2021.0757,59.6878,89.3090,14,90, 500); // CAR LS
  1634. AddStaticVehicleEx(411,1668.3333,-1698.4595,20.2095,111.0195,103,17, 500); // CAR LS
  1635. AddStaticVehicleEx(541,2304.2561,-1642.3811,14.1568,181.6377,6,0, 500); // CAR LS
  1636. AddStaticVehicleEx(426,-1956.4415,585.4780,34.8601,0.5932,86,124, 500); // CAR SF
  1637. AddStaticVehicleEx(402,-1953.3643,585.3503,34.9529,359.0071,89,63, 500); // CAR SF
  1638. AddStaticVehicleEx(451,-1935.3063,585.5364,34.8246,359.2379,45,121, 500); // CAR SF
  1639. AddStaticVehicleEx(421,-1944.2689,585.3606,35.0076,358.5772,6,6, 500); // CAR SF
  1640. AddStaticVehicleEx(517,-1992.3827,243.5176,35.0268,139.5587,51,31, 500); // CAR SF
  1641. AddStaticVehicleEx(517,-2616.6008,74.8332,4.1908,88.2741,51,31, 500); // CAR SF
  1642. AddStaticVehicleEx(470,-1445.0464,458.8409,7.1795,0.7084,104,87, 500); //
  1643. AddStaticVehicleEx(470,-1333.8381,449.1157,7.1787,4.3272,104,87, 500); //
  1644. AddStaticVehicleEx(476,-1262.6820,507.5797,18.9375,90.3696,80,104, 500); //
  1645. AddStaticVehicleEx(476,-1289.9688,507.5169,18.9479,89.8120,80,104, 500); //
  1646. AddStaticVehicleEx(476,-1320.5983,507.4883,18.9391,89.6654,80,104, 500); //
  1647. AddStaticVehicleEx(476,-1353.2142,507.5184,18.9426,89.9565,80,104, 500); //
  1648. AddStaticVehicleEx(476,-1391.2141,507.5581,18.9433,89.8580,80,104, 500); //
  1649. AddStaticVehicleEx(548,-1459.0627,500.0371,19.9570,131.7253,99,13, 500); //
  1650. AddStaticVehicleEx(470,276.9211,2023.4412,17.6336,272.6233,39,87, 500); //
  1651. AddStaticVehicleEx(433,275.3499,1988.9595,18.0773,272.0024,34,29, 500); //
  1652. AddStaticVehicleEx(470,275.7674,1956.0403,17.6353,271.2579,99,57, 500); //
  1653. AddStaticVehicleEx(476,307.7774,2053.0532,18.3447,179.5164,43,80, 500); //
  1654. AddStaticVehicleEx(476,307.5680,2022.5872,18.3858,179.5979,43,80, 500); //
  1655. AddStaticVehicleEx(476,307.3362,1976.8934,18.3709,179.7407,43,80, 500); //
  1656. AddStaticVehicleEx(476,307.2180,1939.5699,18.3737,179.7749,43,80, 500); //
  1657. AddStaticVehicleEx(548,187.2346,1911.3690,19.3550,257.1326,121,85, 500); //
  1658. AddStaticVehicleEx(470,266.7537,1839.7186,17.6412,204.7390,86,125, 500); //
  1659. AddStaticVehicleEx(470,124.2681,1858.7083,17.7494,127.9176,86,125, 500); //
  1660. AddStaticVehicleEx(599,2315.6006,2460.4211,3.4631,268.2009,0,0, 500); //
  1661. AddStaticVehicleEx(599,2314.2319,2495.2148,3.4635,90.5629,0,0, 500); //
  1662. AddStaticVehicleEx(599,2277.0205,2473.9304,3.4663,179.2646,0,0, 500); //
  1663. AddStaticVehicleEx(599,2239.8240,2475.6514,3.4651,90.3094,0,0, 500); //
  1664. AddStaticVehicleEx(598,2246.4983,2430.4946,3.0187,178.6759,0,1, 500); //
  1665. AddStaticVehicleEx(598,2277.1196,2430.7041,3.0192,179.9285,0,1, 500); //
  1666. AddStaticVehicleEx(437,2150.8921,2502.0471,10.9536,89.5910,117,47, 500); // BUS
  1667. AddStaticVehicleEx(437,2151.5706,2487.0315,10.9536,90.0462,117,47, 500); // BUS
  1668. AddStaticVehicleEx(437,2117.9272,2511.0586,10.9536,189.0172,117,47, 500); // BUS
  1669. AddStaticVehicleEx(437,2128.5891,2513.8132,10.9536,191.7403,117,47, 500); // BUS
  1670. AddStaticVehicleEx(437,2139.0928,2516.6362,10.9537,192.0088,117,47, 500); // BUS
  1671.  
  1672. AddStaticVehicleEx(542,2040.1665,1541.1476,10.4117,179.8827,5,111, 500); // CNR
  1673. AddStaticVehicleEx(526,-2341.6965,301.3115,38.3723,119.5160,25,84, 500); // CNR
  1674. AddStaticVehicleEx(526,-2587.8901,230.1816,9.2137,306.6687,25,84, 500); // CNR
  1675. AddStaticVehicleEx(587,-2711.5107,125.7587,4.0167,198.6476,101,63, 500); // CNR
  1676. AddStaticVehicleEx(587,-2700.8530,-8.1576,4.0145,168.2139,101,63, 500); // CNR
  1677. AddStaticVehicleEx(518,-2656.5635,-113.2985,3.7102,152.2127,7,39, 500); // CNR
  1678. AddStaticVehicleEx(518,-2452.6841,-204.8913,33.2267,286.0015,7,39, 500); // CNR
  1679. AddStaticVehicleEx(518,-2414.1636,-1.2807,34.9913,141.3731,7,39, 500); // CNR
  1680. AddStaticVehicleEx(518,-2468.1257,45.6428,30.8559,95.0810,7,39, 500); // CNR
  1681. AddStaticVehicleEx(526,-2506.3384,7.4253,25.4506,170.8600,26,65, 500); // CNR
  1682. AddStaticVehicleEx(526,-2267.7336,69.8399,34.9263,87.5834,26,65, 500); // CNR
  1683. AddStaticVehicleEx(602,-2267.4490,85.0063,34.9783,269.4507,49,90, 500); // CNR
  1684. AddStaticVehicleEx(604,-2265.3428,193.2783,34.9053,271.6914,97,105, 500); // CNR
  1685. AddStaticVehicleEx(456,-2132.3853,-118.2248,35.4937,179.3912,36,5, 500); // CNR
  1686. AddStaticVehicleEx(456,-2124.9753,-118.3633,35.4934,179.7911,36,5, 500); // CNR
  1687. AddStaticVehicleEx(456,-2120.4097,-117.3749,35.4940,181.8442,36,5, 500); // CNR
  1688. AddStaticVehicleEx(456,-2116.3167,-118.2943,35.4939,180.6833,36,5, 500); // CNR
  1689. AddStaticVehicleEx(526,-2068.6343,-83.4163,34.9318,180.3597,3,69, 500); // CNR
  1690. AddStaticVehicleEx(543,-2093.7336,88.1683,35.1245,232.5689,33,108, 500); // CNR
  1691. AddStaticVehicleEx(543,-2351.9707,-125.6556,35.1257,354.9290,33,108, 500); // CNR
  1692. AddStaticVehicleEx(541,-2329.9082,-125.5207,34.9375,359.1688,76,33, 500); // CNR
  1693. AddStaticVehicleEx(541,-2464.3247,-100.6371,25.4662,294.0855,76,33, 500); // CNR
  1694. AddStaticVehicleEx(405,-2231.3872,421.5504,34.9756,299.8992,0,39, 500); // CNR
  1695. AddStaticVehicleEx(521,-2127.0417,574.4770,34.7435,230.8675,123,88, 500); // CNR
  1696. AddStaticVehicleEx(521,-2295.7781,813.7700,48.9887,95.7591,123,88, 500); // CNR
  1697. AddStaticVehicleEx(561,-2276.0356,923.5562,66.4632,359.8312,68,81, 500); // CNR
  1698. AddStaticVehicleEx(561,-2066.6218,963.7202,60.3641,206.2542,68,81, 500); // CNR
  1699. AddStaticVehicleEx(561,-1862.5454,939.4189,34.9020,272.2769,68,81, 500); // CNR
  1700. AddStaticVehicleEx(411,2559.0032,2058.0518,10.5474,358.8848,120,79, 500); // CNR
  1701. AddStaticVehicleEx(543,2372.4365,2153.9763,10.5650,90.0188,70,95, 500); // CNR
  1702. AddStaticVehicleEx(543,2242.6753,2234.8413,10.5911,89.7699,70,95, 500); // CNR
  1703. AddStaticVehicleEx(551,2289.7383,2419.0125,10.5444,89.4434,38,87, 500); // CNR
  1704. AddStaticVehicleEx(551,2154.5811,2182.2068,10.4724,178.0841,38,87, 500); // CNR
  1705. AddStaticVehicleEx(541,2120.5012,2057.1758,10.2968,179.2608,75,37, 500); // CNR
  1706. AddStaticVehicleEx(567,1363.7404,2650.0776,10.6862,0.0810,108,24, 500); // CNR
  1707. AddStaticVehicleEx(567,1313.7893,2648.5498,10.6905,178.9520,108,24, 500); // CNR
  1708. AddStaticVehicleEx(588,1363.8280,2692.4224,10.7288,354.3495,41,82, 500); // CNR
  1709. AddStaticVehicleEx(565,1494.1061,2838.1091,10.4460,0.2073,90,71, 500); // CNR
  1710. AddStaticVehicleEx(565,1486.7734,2878.4204,10.4458,0.1254,90,71, 500); // CNR
  1711. AddStaticVehicleEx(589,1529.5310,2845.5171,10.4782,87.7141,88,29, 500); // CNR
  1712. AddStaticVehicleEx(478,2520.1194,1178.1515,10.7946,26.0029,90,78, 500); // CNR
  1713. AddStaticVehicleEx(478,2420.3704,1225.1432,10.8117,23.4396,90,78, 500); // CNR
  1714. AddStaticVehicleEx(559,2455.4565,1366.9805,10.4386,235.0470,25,59, 500); // CNR
  1715. AddStaticVehicleEx(559,2541.6331,1447.6624,10.4425,10.1614,25,59, 500); // CNR
  1716. AddStaticVehicleEx(481,2487.8972,1532.3549,10.2910,37.8486,0,89, 500); // CNR
  1717. AddStaticVehicleEx(491,2569.4146,1776.7362,10.5766,73.3304,59,98, 500); // CNR
  1718. AddStaticVehicleEx(491,2546.8101,1967.7610,10.5766,268.7982,59,98, 500); // CNR
  1719. AddStaticVehicleEx(402,2690.8196,1849.0352,8.0623,223.9609,13,13, 500); // CNR
  1720. AddStaticVehicleEx(402,2810.6094,1980.9949,10.6520,277.2421,13,13, 500); // CNR
  1721. AddStaticVehicleEx(600,2842.7473,2281.6948,10.4584,5.2392,66,67, 500); // CNR
  1722. AddStaticVehicleEx(420,2641.1345,2317.9609,10.4508,267.3100,6,6, 500); // CNR
  1723. AddStaticVehicleEx(420,2650.7837,2319.4680,10.4505,293.7864,6,6, 500); // CNR
  1724. AddStaticVehicleEx(420,2655.3694,2324.2441,10.4514,331.5359,6,6, 500); // CNR
  1725. AddStaticVehicleEx(420,2655.9180,2328.3752,10.4529,351.1672,6,6, 500); // CNR
  1726. AddStaticVehicleEx(420,2655.6936,2335.0090,10.4510,8.7652,6,6, 500); // CNR
  1727. AddStaticVehicleEx(420,2653.2844,2340.3762,10.4541,27.0566,6,6, 500); // CNR
  1728. AddStaticVehicleEx(420,2649.4768,2344.3462,10.4520,51.3639,6,6, 500); // CNR
  1729. AddStaticVehicleEx(420,2642.0635,2348.2180,10.4437,85.2092,6,6, 500); // CNR
  1730. AddStaticVehicleEx(420,2633.1831,2347.3845,10.4508,109.8921,6,6, 500); // CNR
  1731. AddStaticVehicleEx(420,2626.5432,2341.0552,10.4514,153.4898,6,6, 500); // CNR
  1732. AddStaticVehicleEx(420,2625.4980,2331.8423,10.4513,178.8905,6,6, 500); // CNR
  1733. AddStaticVehicleEx(510,1684.4990,2191.9824,10.4260,83.9953,34,34, 500); // CNR
  1734. AddStaticVehicleEx(562,1729.0618,1909.6370,10.4790,271.3743,120,76, 500); // CNR
  1735. AddStaticVehicleEx(420,1714.8448,1426.2880,10.2746,186.4587,6,6, 500); // CNR
  1736. AddStaticVehicleEx(487,1632.4012,1532.0526,10.9751,324.7820,105,73, 500); // CNR
  1737. AddStaticVehicleEx(487,1677.4297,1631.5037,10.9976,176.8011,105,73, 500); // CNR
  1738. AddStaticVehicleEx(563,1575.3679,1448.2814,11.5410,84.8106,22,123, 500); // CNR
  1739. AddStaticVehicleEx(417,1284.6426,1278.6028,10.9078,268.7768,24,35, 500); // CNR
  1740. AddStaticVehicleEx(519,1304.2306,1361.0856,11.7390,268.5266,52,53, 500); // CNR
  1741. AddStaticVehicleEx(519,1305.0592,1323.4504,11.7449,271.6293,52,53, 500); // CNR
  1742. AddStaticVehicleEx(511,1586.5626,1248.2086,12.1885,357.9796,85,31, 500); // CNR
  1743. AddStaticVehicleEx(487,1363.0966,1712.9581,11.0203,249.5521,82,25, 500); // CNR
  1744. AddStaticVehicleEx(487,1394.8047,1768.8315,10.9960,263.3808,82,25, 500); // CNR
  1745. AddStaticVehicleEx(535,2296.8708,2046.2445,10.5845,270.7708,19,89, 500); // CNR
  1746. AddStaticVehicleEx(535,2102.5154,2036.7355,10.5841,90.0563,19,89, 500); // CNR
  1747. AddStaticVehicleEx(535,2276.6492,1952.4087,9.6302,180.4975,19,89, 500); // CNR
  1748. AddStaticVehicleEx(535,2083.9036,1788.4523,10.4353,155.0733,19,89, 500); // CNR
  1749. AddStaticVehicleEx(426,2033.3590,-1925.3810,13.2904,277.6970,117,115, 500); // CNR
  1750. AddStaticVehicleEx(412,2065.4001,-1904.0715,13.3848,358.1083,60,96, 500); // CNR
  1751. AddStaticVehicleEx(411,2095.6167,-1796.8693,13.1114,359.9858,90,29, 500); // CNR
  1752. AddStaticVehicleEx(445,2271.8911,-1432.2534,23.7070,356.1421,0,4, 500); // CNR
  1753. AddStaticVehicleEx(445,2217.3262,-1161.5483,25.6015,91.3140,0,4, 500); // CNR
  1754. AddStaticVehicleEx(445,2093.8022,-980.3689,52.3642,77.4384,0,4, 500); // CNR
  1755. AddStaticVehicleEx(445,2429.1523,-1016.3676,54.1773,194.8109,0,4, 500); // CNR
  1756. AddStaticVehicleEx(442,2668.2712,-1065.6130,69.1268,269.3304,105,79, 500); // CNR
  1757. AddStaticVehicleEx(424,2476.7788,-1526.0499,23.7793,176.1171,29,62, 500); // CNR
  1758.  
  1759. //Tara
  1760. AddStaticVehicleEx(517,2075.5396,1159.9681,10.8151,179.0163,122,104, 500); // CNR
  1761. AddStaticVehicleEx(489,2089.4844,766.8369,11.3459,0.7682,122,104, 500); // CNR
  1762. AddStaticVehicleEx(516,-1970.2419,-2432.0332,30.3508,133.6701,101,63, 500); // CNR
  1763. AddStaticVehicleEx(518,-1562.2563,-2737.9390,48.2715,144.0236,101,63, 500); // CNR
  1764. AddStaticVehicleEx(526,-39.6861,-2497.9128,36.3045,39.5643,101,63, 500); // CNR
  1765. AddStaticVehicleEx(587,-274.5593,-2184.9531,28.5088,42.9390,101,63, 500); // CNR
  1766. AddStaticVehicleEx(527,-375.1182,-1411.3190,25.4539,317.5267,101,63, 500); // CNR
  1767. AddStaticVehicleEx(531,-60.7286,-1161.0027,1.4760,151.1579,101,63, 500); // CNR
  1768. AddStaticVehicleEx(533,-80.8599,-1190.8860,1.4769,66.2110,101,63, 500); // CNR
  1769. AddStaticVehicleEx(534,1423.8083,-1713.2639,13.1881,4.4781,101,63, 500); // CNR
  1770. AddStaticVehicleEx(533,1585.5643,-1289.9722,17.2886,303.9691,101,63, 500); // CNR
  1771. AddStaticVehicleEx(535,2474.3628,-1997.8347,13.2737,349.6246,101,63, 500); // CNR
  1772. AddStaticVehicleEx(536,1209.9705,-1694.4044,13.2736,15.9955,101,63, 500); // CNR
  1773. AddStaticVehicleEx(542,1359.9768,-616.8415,108.8596,106.7133,101,63, 500); // CNR
  1774. AddStaticVehicleEx(587,853.5654,-825.7502,89.1909,204.0222,101,63, 500); // CNR
  1775. AddStaticVehicleEx(542,405.5824,-1153.8650,77.0404,148.8526,43,32, 500); // CNR
  1776. AddStaticVehicleEx(411,665.8790,-583.0681,16.0630,92.7505,43,32, 500); // CNR
  1777. AddStaticVehicleEx(554,608.5742,-512.2045,16.0630,0.3112,43,32, 500); // CNR
  1778. AddStaticVehicleEx(547,669.2391,-445.3273,16.0648,316.0027,43,32, 500); // CNR
  1779. AddStaticVehicleEx(546,478.7328,-402.5107,27.5950,146.2253,43,32, 500); // CNR
  1780. AddStaticVehicleEx(545,253.9584,-271.8160,1.3064,218.9784,43,32, 500); // CNR
  1781. AddStaticVehicleEx(549,212.7126,-158.8963,1.3052,74.2594,43,32, 500); // CNR
  1782. AddStaticVehicleEx(550,-65.2376,25.8776,2.8400,282.0338,43,32, 500); // CNR
  1783. AddStaticVehicleEx(551,-216.6941,189.8682,9.2267,175.1628,43,32, 500); // CNR
  1784. AddStaticVehicleEx(552,-520.6651,-101.0537,62.9681,306.1696,43,32, 500); // CNR
  1785. AddStaticVehicleEx(531,-577.2156,-80.9335,64.4163,291.5171,43,32, 500); // CNR
  1786. AddStaticVehicleEx(552,-714.0253,219.2714,2.2432,355.5893,43,32, 500); // CNR
  1787. AddStaticVehicleEx(604,-73.9032,534.6065,6.4640,328.4308,57,61, 500); // CNR
  1788. AddStaticVehicleEx(604,141.3975,748.1796,21.0883,163.8463,57,61, 500); // CNR
  1789. AddStaticVehicleEx(545,317.2584,852.9238,20.2172,111.5509,101,91, 500); // CNR
  1790. AddStaticVehicleEx(555,839.6096,674.4523,11.7150,178.2789,101,91, 500); // CNR
  1791. AddStaticVehicleEx(558,1156.6543,1035.0153,10.8110,305.1578,101,91, 500); // CNR
  1792. AddStaticVehicleEx(568,1606.1685,862.7391,6.7022,42.6466,101,91, 500); // CNR
  1793. AddStaticVehicleEx(567,1676.8790,986.0024,10.6310,2.4389,101,91, 500); // CNR
  1794. AddStaticVehicleEx(576,1671.3633,1028.0043,10.6315,3.9298,101,91, 500); // CNR
  1795. AddStaticVehicleEx(575,1820.7029,1140.1342,13.1734,86.9393,101,91, 500); // CNR
  1796. AddStaticVehicleEx(574,1697.1289,1159.1084,10.5206,296.5815,101,91, 500); // CNR
  1797. AddStaticVehicleEx(579,1514.0720,1049.8076,10.6314,183.3940,101,91, 500); // CNR
  1798. AddStaticVehicleEx(545,1146.6322,1366.2839,10.5703,237.6763,101,91, 500); // CNR
  1799. AddStaticVehicleEx(581,979.5918,1726.2512,8.3784,275.0772,111,98, 500); // CNR
  1800. AddStaticVehicleEx(582,901.1104,2007.7759,10.5047,24.5841,111,98, 500); // CNR
  1801. AddStaticVehicleEx(583,782.1112,1892.9449,4.7674,268.5634,111,98, 500); // CNR
  1802. AddStaticVehicleEx(411,782.4042,1901.3929,4.8241,271.7296,111,98, 500); // CNR
  1803. AddStaticVehicleEx(437,668.0688,1832.4818,5.2842,351.4436,95,92, 500); // CNR
  1804. AddStaticVehicleEx(437,674.5248,1830.5004,5.3506,350.2623,95,92, 500); // CNR
  1805. AddStaticVehicleEx(437,680.4826,1829.7554,5.3773,348.0234,95,92, 500); // CNR
  1806. AddStaticVehicleEx(437,685.8540,1828.2682,5.4115,349.3768,95,92, 500); // CNR
  1807. AddStaticVehicleEx(437,691.9702,1827.4613,5.4320,351.5141,95,92, 500); // CNR
  1808. AddStaticVehicleEx(456,1705.9196,744.9429,10.9936,179.7625,55,3, 500); // CNR
  1809. AddStaticVehicleEx(456,1701.1128,743.6215,10.9956,178.2189,55,3, 500); // CNR
  1810. AddStaticVehicleEx(456,1694.5353,742.4569,10.9939,177.5050,55,3, 500); // CNR
  1811. AddStaticVehicleEx(456,1688.2727,741.8121,10.9932,182.4310,55,3, 500); // CNR
  1812. AddStaticVehicleEx(456,1682.0300,739.3403,10.9936,176.0572,55,3, 500); // CNR
  1813. AddStaticVehicleEx(605,1913.9691,131.0648,34.9952,178.7953,30,27, 500); // CNR
  1814. AddStaticVehicleEx(603,2261.4111,86.4051,26.1332,84.3789,30,27, 500); // CNR
  1815. AddStaticVehicleEx(604,2385.4780,83.1053,26.2114,224.5368,30,27, 500); // CNR
  1816. AddStaticVehicleEx(600,2540.2559,22.4918,26.2115,4.4060,30,27, 500); // CNR
  1817. AddStaticVehicleEx(589,1390.2664,242.1277,19.1986,354.3281,30,27, 500); // CNR
  1818. AddStaticVehicleEx(587,1301.9567,294.4987,19.2779,181.3858,30,27, 500); // CNR
  1819. AddStaticVehicleEx(586,1366.4778,438.2332,19.6276,329.9564,30,27, 500); // CNR
  1820. AddStaticVehicleEx(411,1363.5507,476.1961,19.9371,326.8012,30,27, 500); // CNR
  1821.  
  1822. //Transport gunoi
  1823. AddStaticVehicleEx(408,2843.1929,955.6085,11.2969,89.5661,11,45,200); //
  1824. AddStaticVehicleEx(408,2843.6284,972.8670,11.2958,90.5455,29,27,200); //
  1825. AddStaticVehicleEx(408,2825.2346,969.5697,11.2970,179.9391,1,1,200); //
  1826. AddStaticVehicleEx(408,2804.4385,969.4114,11.3004,179.2567,98,107,200); //
  1827. AddStaticVehicleEx(408,2855.2180,897.0206,10.7781,358.7838,9,121,200); //
  1828. AddStaticVehicleEx(408,2827.3604,895.0255,10.5967,358.9578,73,51,200); //
  1829. AddStaticVehicleEx(408,2817.9473,896.3116,10.7238,359.2844,77,115,200); //
  1830. AddStaticVehicleEx(408,-2120.4287,193.9991,35.4618,268.9165,35,2,200); //
  1831. AddStaticVehicleEx(408,-2124.2146,201.3019,35.8529,272.5458,35,2,200); //
  1832. AddStaticVehicleEx(408,-2112.1619,224.6825,35.3498,0.2208,35,2,200); //
  1833. AddStaticVehicleEx(408,-2100.4873,179.2280,35.6423,82.9298,35,2,200); //
  1834. AddStaticVehicleEx(408,-2089.0471,235.2498,35.7527,332.5468,35,2,200); //
  1835. AddStaticVehicleEx(408,2283.9163,-2349.9485,14.1001,314.4154,35,2,200); //
  1836. AddStaticVehicleEx(408,2295.7773,-2338.3167,14.0916,314.6231,35,2,200); //
  1837. AddStaticVehicleEx(408,2282.9431,-2320.1995,14.0794,248.8206,35,2,200); //
  1838. AddStaticVehicleEx(408,2265.5208,-2335.7126,14.0915,95.2029,35,2,200); //
  1839. AddStaticVehicleEx(408,2315.8528,-2307.0100,14.0893,134.9706,35,2,200); //
  1840. AddStaticVehicleEx(408,2303.3162,-2295.4124,14.0685,213.0804,35,2,200); //
  1841.  
  1842. BOX2 = TextDrawCreate(1.000000, 430.000000, "~n~");
  1843. TextDrawUseBox(BOX2, 1);
  1844. TextDrawBoxColor(BOX2, 0x000000cc);
  1845. TextDrawTextSize(BOX2, 720.000000, 300.000000);
  1846. TextDrawAlignment(BOX2, 0);
  1847. TextDrawBackgroundColor(BOX2, 0x000000ff);
  1848. TextDrawFont(BOX2, 3);
  1849. TextDrawLetterSize(BOX2, 1.700000, 5.299999);
  1850. TextDrawColor(BOX2, 0x000000ff);
  1851. TextDrawSetOutline(BOX2, 1);
  1852. TextDrawSetShadow(BOX2, 1);
  1853. TextDrawSetProportional(BOX2, 1);
  1854.  
  1855. BUSBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1856. TextDrawUseBox(BUSBOX, 1);
  1857. TextDrawBoxColor(BUSBOX, 0x000000cc);
  1858. TextDrawTextSize(BUSBOX, 180.000000, 250.000000);
  1859. TextDrawAlignment(BUSBOX, 0);
  1860. TextDrawBackgroundColor(BUSBOX, 0x000000ff);
  1861. TextDrawFont(BUSBOX, 3);
  1862. TextDrawLetterSize(BUSBOX, 1.700000, 5.699999);
  1863. TextDrawColor(BUSBOX, 0x000000ff);
  1864. TextDrawSetOutline(BUSBOX, 1);
  1865. TextDrawSetShadow(BUSBOX, 1);
  1866. TextDrawSetProportional(BUSBOX, 1);
  1867.  
  1868. BBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1869. TextDrawUseBox(BBOX, 1);
  1870. TextDrawBoxColor(BBOX, 0x000000cc);
  1871. TextDrawTextSize(BBOX, 180.000000, 250.000000);
  1872. TextDrawAlignment(BBOX, 0);
  1873. TextDrawBackgroundColor(BBOX, 0x000000ff);
  1874. TextDrawFont(BBOX, 3);
  1875. TextDrawLetterSize(BBOX, 1.700000, 5.699999);
  1876. TextDrawColor(BBOX, 0x000000ff);
  1877. TextDrawSetOutline(BBOX, 1);
  1878. TextDrawSetShadow(BBOX, 1);
  1879. TextDrawSetProportional(BBOX, 1);
  1880.  
  1881. CIVBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1882. TextDrawUseBox(CIVBOX, 1);
  1883. TextDrawBoxColor(CIVBOX, 0x000000cc);
  1884. TextDrawTextSize(CIVBOX, 170.000000, 250.000000);
  1885. TextDrawAlignment(CIVBOX, 0);
  1886. TextDrawBackgroundColor(CIVBOX, 0x000000ff);
  1887. TextDrawFont(CIVBOX, 3);
  1888. TextDrawLetterSize(CIVBOX, 1.700000, 5.699999);
  1889. TextDrawColor(CIVBOX, 0x000000ff);
  1890. TextDrawSetOutline(CIVBOX, 1);
  1891. TextDrawSetShadow(CIVBOX, 1);
  1892. TextDrawSetProportional(CIVBOX, 1);
  1893.  
  1894. COPBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1895. TextDrawUseBox(COPBOX, 1);
  1896. TextDrawBoxColor(COPBOX, 0x000000cc);
  1897. TextDrawTextSize(COPBOX, 180.000000, 250.000000);
  1898. TextDrawAlignment(COPBOX, 0);
  1899. TextDrawBackgroundColor(COPBOX, 0x000000ff);
  1900. TextDrawFont(COPBOX, 3);
  1901. TextDrawLetterSize(COPBOX, 1.700000, 5.699999);
  1902. TextDrawColor(COPBOX, 0x000000ff);
  1903. TextDrawSetOutline(COPBOX, 1);
  1904. TextDrawSetShadow(COPBOX, 1);
  1905. TextDrawSetProportional(COPBOX, 1);
  1906.  
  1907. CMDBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1908. TextDrawUseBox(CMDBOX, 1);
  1909. TextDrawBoxColor(CMDBOX, 0x000000cc);
  1910. TextDrawTextSize(CMDBOX, 180.000000, 250.000000);
  1911. TextDrawAlignment(CMDBOX, 0);
  1912. TextDrawBackgroundColor(CMDBOX, 0x000000ff);
  1913. TextDrawFont(CMDBOX, 3);
  1914. TextDrawLetterSize(CMDBOX, 1.700000, 5.699999);
  1915. TextDrawColor(CMDBOX, 0x000000ff);
  1916. TextDrawSetOutline(CMDBOX, 1);
  1917. TextDrawSetShadow(CMDBOX, 1);
  1918. TextDrawSetProportional(CMDBOX, 1);
  1919.  
  1920. PCBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1921. TextDrawUseBox(PCBOX, 1);
  1922. TextDrawBoxColor(PCBOX, 0x000000cc);
  1923. TextDrawTextSize(PCBOX, 210.000000, 300.000000);
  1924. TextDrawAlignment(PCBOX, 0);
  1925. TextDrawBackgroundColor(PCBOX, 0x000000ff);
  1926. TextDrawFont(PCBOX, 3);
  1927. TextDrawLetterSize(PCBOX, 1.700000, 6.299999);
  1928. TextDrawColor(PCBOX, 0x000000ff);
  1929. TextDrawSetOutline(PCBOX, 1);
  1930. TextDrawSetShadow(PCBOX, 1);
  1931. TextDrawSetProportional(PCBOX, 1);
  1932.  
  1933. AMMUBOX1 = TextDrawCreate(5.000000, 120.000000, "~n~~n~");
  1934. TextDrawUseBox(AMMUBOX1, 1);
  1935. TextDrawBoxColor(AMMUBOX1, 0x000000cc);
  1936. TextDrawTextSize(AMMUBOX1, 180.000000, 250.000000);
  1937. TextDrawAlignment(AMMUBOX1, 0);
  1938. TextDrawBackgroundColor(AMMUBOX1, 0x000000ff);
  1939. TextDrawFont(AMMUBOX1, 3);
  1940. TextDrawLetterSize(AMMUBOX1, 1.700000, 5.699999);
  1941. TextDrawColor(AMMUBOX1, 0x000000ff);
  1942. TextDrawSetOutline(AMMUBOX1, 1);
  1943. TextDrawSetShadow(AMMUBOX1, 1);
  1944. TextDrawSetProportional(AMMUBOX1, 1);
  1945.  
  1946. AMMUBOX2 = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1947. TextDrawUseBox(AMMUBOX2, 1);
  1948. TextDrawBoxColor(AMMUBOX2, 0x000000cc);
  1949. TextDrawTextSize(AMMUBOX2, 180.000000, 250.000000);
  1950. TextDrawAlignment(AMMUBOX2, 0);
  1951. TextDrawBackgroundColor(AMMUBOX2, 0x000000ff);
  1952. TextDrawFont(AMMUBOX2, 3);
  1953. TextDrawLetterSize(AMMUBOX2, 1.700000, 5.699999);
  1954. TextDrawColor(AMMUBOX2, 0x000000ff);
  1955. TextDrawSetOutline(AMMUBOX2, 1);
  1956. TextDrawSetShadow(AMMUBOX2, 1);
  1957. TextDrawSetProportional(AMMUBOX2, 1);
  1958.  
  1959. MDCBOX = TextDrawCreate(5.000000, 120.000000, "~n~~n~~n~");
  1960. TextDrawUseBox(MDCBOX, 1);
  1961. TextDrawBoxColor(MDCBOX, 0x000000cc);
  1962. TextDrawTextSize(MDCBOX, 180.000000, 250.000000);
  1963. TextDrawAlignment(MDCBOX, 0);
  1964. TextDrawBackgroundColor(MDCBOX, 0x000000ff);
  1965. TextDrawFont(MDCBOX, 3);
  1966. TextDrawLetterSize(MDCBOX, 1.700000, 5.699999);
  1967. TextDrawColor(MDCBOX, 0x000000ff);
  1968. TextDrawSetOutline(MDCBOX, 1);
  1969. TextDrawSetShadow(MDCBOX, 1);
  1970. TextDrawSetProportional(MDCBOX, 1);
  1971.  
  1972. HALLBOX = TextDrawCreate(5.000000, 120.000000, "~n~");
  1973. TextDrawUseBox(HALLBOX, 1);
  1974. TextDrawBoxColor(HALLBOX, 0x000000cc);
  1975. TextDrawTextSize(HALLBOX, 150.000000, 200.000000);
  1976. TextDrawAlignment(HALLBOX, 0);
  1977. TextDrawBackgroundColor(HALLBOX, 0x000000ff);
  1978. TextDrawFont(HALLBOX, 3);
  1979. TextDrawLetterSize(HALLBOX, 1.700000, 5.299999);
  1980. TextDrawColor(HALLBOX, 0x000000ff);
  1981. TextDrawSetOutline(HALLBOX, 1);
  1982. TextDrawSetShadow(HALLBOX, 1);
  1983. TextDrawSetProportional(HALLBOX, 1);
  1984.  
  1985. text6 = TextDrawCreate(7.000000, 123.000000, "~y~Civilian Help");
  1986. TextDrawAlignment(text6, 0);
  1987. TextDrawBackgroundColor(text6, 0x0000ffff);
  1988. TextDrawFont(text6, 1);
  1989. TextDrawLetterSize(text6, 0.299999, 0.900000);
  1990. TextDrawColor(text6, 0xffff00ff);
  1991. TextDrawSetOutline(text6, 1);
  1992. TextDrawSetProportional(text6, 1);
  1993. TextDrawSetShadow(text6, 1);
  1994.  
  1995. text43 = TextDrawCreate(7.000000, 123.000000, "~p~Player Color");
  1996. TextDrawAlignment(text43, 0);
  1997. TextDrawBackgroundColor(text43, 0x0000ffff);
  1998. TextDrawFont(text43, 1);
  1999. TextDrawLetterSize(text43, 0.299999, 0.900000);
  2000. TextDrawColor(text43, 0xffff00ff);
  2001. TextDrawSetOutline(text43, 1);
  2002. TextDrawSetProportional(text43, 1);
  2003. TextDrawSetShadow(text43, 1);
  2004.  
  2005. text19 = TextDrawCreate(7.000000, 123.000000, " ");
  2006. TextDrawAlignment(text19, 0);
  2007. TextDrawLetterSize(text19, 0.299999, 0.900000);
  2008. TextDrawColor(text19, 0xffff00ff);
  2009. TextDrawSetOutline(text19, 1);
  2010. TextDrawSetProportional(text19, 1);
  2011. TextDrawSetShadow(text19, 1);
  2012.  
  2013. 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");
  2014. TextDrawAlignment(text22, 0);
  2015. TextDrawLetterSize(text22, 0.299999, 0.900000);
  2016. TextDrawColor(text22, 0xffff00ff);
  2017. TextDrawSetOutline(text22, 1);
  2018. TextDrawSetProportional(text22, 1);
  2019. TextDrawSetShadow(text22, 1);
  2020.  
  2021. text35 = TextDrawCreate(7.000000, 136.000000, "~n~~r~1.~w~Change your skin~n~~r~2.~w~Rob Store");
  2022.  
  2023. text26 = TextDrawCreate(7.000000, 136.000000, "~n~~w~/drunk /bomb /slapass~n~~w~/laugh /lookout /robman /lay~n~~w~/crossarms /hide /vomit /eat");
  2024. TextDrawAlignment(text26, 0);
  2025. TextDrawLetterSize(text26, 0.299999, 0.900000);
  2026. TextDrawColor(text26, 0xffff00ff);
  2027. TextDrawSetOutline(text26, 1);
  2028. TextDrawSetProportional(text26, 1);
  2029. TextDrawSetShadow(text26, 1);
  2030.  
  2031. text27 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~w~/taichi /deal /crack /smoke~n~~w~/groundsit /chat /dance /wave");
  2032. TextDrawAlignment(text27, 0);
  2033. TextDrawLetterSize(text27, 0.299999, 0.900000);
  2034. TextDrawColor(text27, 0xffff00ff);
  2035. TextDrawSetOutline(text27, 1);
  2036. TextDrawSetProportional(text27, 1);
  2037. TextDrawSetShadow(text27, 1);
  2038.  
  2039. text23 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~w~Use ~r~LMB ~w~To Hide~n~~w~Thes Boxes");
  2040. TextDrawAlignment(text23, 0);
  2041. TextDrawLetterSize(text23, 0.299999, 0.900000);
  2042. TextDrawColor(text23, 0xffff00ff);
  2043. TextDrawSetOutline(text23, 1);
  2044. TextDrawSetProportional(text23, 1);
  2045. TextDrawSetShadow(text23, 1);
  2046.  
  2047. text20 = TextDrawCreate(7.000000, 123.000000, " ");
  2048. TextDrawAlignment(text20, 0);
  2049. TextDrawLetterSize(text20, 0.299999, 0.900000);
  2050. TextDrawColor(text20, 0xffff00ff);
  2051. TextDrawSetOutline(text20, 1);
  2052. TextDrawSetProportional(text20, 1);
  2053. TextDrawSetShadow(text20, 1);
  2054.  
  2055. text44 = TextDrawCreate(7.000000, 123.000000, " ");
  2056. TextDrawAlignment(text44, 0);
  2057. TextDrawLetterSize(text44, 0.299999, 0.900000);
  2058. TextDrawColor(text44, 0xffff00ff);
  2059. TextDrawSetOutline(text44, 1);
  2060. TextDrawSetProportional(text44, 1);
  2061. TextDrawSetShadow(text44, 1);
  2062.  
  2063. text45 = TextDrawCreate(7.000000, 123.000000, " ");
  2064. TextDrawAlignment(text45, 0);
  2065. TextDrawLetterSize(text45, 0.299999, 0.900000);
  2066. TextDrawColor(text45, 0xffff00ff);
  2067. TextDrawSetOutline(text45, 1);
  2068. TextDrawSetProportional(text45, 1);
  2069. TextDrawSetShadow(text45, 1);
  2070.  
  2071. text11 = TextDrawCreate(7.000000, 123.000000, "~p~~h~Police help");
  2072. TextDrawAlignment(text11, 0);
  2073. TextDrawBackgroundColor(text11, 0x0000ffff);
  2074. TextDrawFont(text11, 1);
  2075. TextDrawLetterSize(text11, 0.299999, 0.900000);
  2076. TextDrawColor(text11, 0xffff00ff);
  2077. TextDrawSetOutline(text11, 1);
  2078. TextDrawSetProportional(text11, 1);
  2079. TextDrawSetShadow(text11, 1);
  2080.  
  2081. text18 = TextDrawCreate(7.000000, 123.000000, "Medic help");
  2082. TextDrawAlignment(text18, 0);
  2083. TextDrawBackgroundColor(text18, 0x0000ffff);
  2084. TextDrawFont(text18, 1);
  2085. TextDrawLetterSize(text18, 0.299999, 0.900000);
  2086. TextDrawColor(text18, 0xffff00ff);
  2087. TextDrawSetOutline(text18, 1);
  2088. TextDrawSetProportional(text18, 1);
  2089. TextDrawSetShadow(text18, 1);
  2090.  
  2091. text21 = TextDrawCreate(7.000000, 123.000000, "General Commands:");
  2092. TextDrawAlignment(text21, 0);
  2093. TextDrawBackgroundColor(text21, 0xF6F600AA);
  2094. TextDrawFont(text21, 1);
  2095. TextDrawLetterSize(text21, 0.499999, 1.200000);
  2096. TextDrawColor(text21, 0x0000ffff);
  2097. TextDrawSetOutline(text21, 1);
  2098. TextDrawSetProportional(text21, 1);
  2099. TextDrawSetShadow(text21, 1);
  2100.  
  2101. text37 = TextDrawCreate(7.000000, 123.000000, "Ammunation:");
  2102. TextDrawAlignment(text37, 0);
  2103. TextDrawBackgroundColor(text37, 0xF6F600AA);
  2104. TextDrawFont(text37, 1);
  2105. TextDrawLetterSize(text37, 0.499999, 1.200000);
  2106. TextDrawColor(text37, 0x0000ffff);
  2107. TextDrawSetOutline(text37, 1);
  2108. TextDrawSetProportional(text37, 1);
  2109. TextDrawSetShadow(text37, 1);
  2110.  
  2111. text25 = TextDrawCreate(7.000000, 123.000000, "Available Animation:");
  2112. TextDrawAlignment(text25, 0);
  2113. TextDrawBackgroundColor(text25, 0xF6F600AA);
  2114. TextDrawFont(text25, 1);
  2115. TextDrawLetterSize(text25, 0.499999, 1.200000);
  2116. TextDrawColor(text25, 0x0000ffff);
  2117. TextDrawSetOutline(text25, 1);
  2118. TextDrawSetProportional(text25, 1);
  2119. TextDrawSetShadow(text25, 1);
  2120.  
  2121. text36 = TextDrawCreate(7.000000, 123.000000, "Binco:");
  2122. TextDrawAlignment(text36, 0);
  2123. TextDrawBackgroundColor(text36, 0xF6F600AA);
  2124. TextDrawFont(text36, 1);
  2125. TextDrawLetterSize(text36, 0.499999, 1.200000);
  2126. TextDrawColor(text36, 0x0000ffff);
  2127. TextDrawSetOutline(text36, 1);
  2128. TextDrawSetProportional(text36, 1);
  2129. TextDrawSetShadow(text36, 1);
  2130.  
  2131.  
  2132.  
  2133. 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");
  2134.  
  2135. 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~.");
  2136. TextDrawAlignment(text7, 0);
  2137. TextDrawLetterSize(text7, 0.299999, 0.900000);
  2138. TextDrawColor(text7, 0xffff00ff);
  2139. TextDrawSetOutline(text7, 1);
  2140. TextDrawSetProportional(text7, 1);
  2141. TextDrawSetShadow(text7, 1);
  2142.  
  2143. 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.");
  2144. TextDrawAlignment(text41, 0);
  2145. TextDrawLetterSize(text41, 0.299999, 0.900000);
  2146. TextDrawColor(text41, 0xffff00ff);
  2147. TextDrawSetOutline(text41, 1);
  2148. TextDrawSetProportional(text41, 1);
  2149. TextDrawSetShadow(text41, 1);
  2150.  
  2151. 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!");
  2152. TextDrawAlignment(text42, 0);
  2153. TextDrawLetterSize(text42, 0.299999, 0.900000);
  2154. TextDrawColor(text42, 0xffff00ff);
  2155. TextDrawSetOutline(text42, 1);
  2156. TextDrawSetProportional(text42, 1);
  2157. TextDrawSetShadow(text42, 1);
  2158.  
  2159. 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");
  2160. TextDrawAlignment(text24, 0);
  2161. TextDrawLetterSize(text24, 0.299999, 0.900000);
  2162. TextDrawColor(text24, 0xffff00ff);
  2163. TextDrawSetOutline(text24, 1);
  2164. TextDrawSetProportional(text24, 1);
  2165. TextDrawSetShadow(text24, 1);
  2166.  
  2167. 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");
  2168. TextDrawAlignment(text40, 0);
  2169. TextDrawLetterSize(text40, 0.299999, 0.900000);
  2170. TextDrawColor(text40, 0xffff00ff);
  2171. TextDrawSetOutline(text40, 1);
  2172. TextDrawSetProportional(text40, 1);
  2173. TextDrawSetShadow(text40, 1);
  2174.  
  2175. 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");
  2176. TextDrawAlignment(text10, 0);
  2177. TextDrawLetterSize(text10, 0.299999, 0.900000);
  2178. TextDrawColor(text10, 0xffff00ff);
  2179. TextDrawSetOutline(text10, 1);
  2180. TextDrawSetProportional(text10, 1);
  2181. TextDrawSetShadow(text10, 1);
  2182.  
  2183. 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");
  2184. TextDrawAlignment(text8, 0);
  2185. TextDrawLetterSize(text8, 0.299999, 0.900000);
  2186. TextDrawColor(text8, 0xffff00ff);
  2187. TextDrawSetOutline(text8, 1);
  2188. TextDrawSetProportional(text8, 1);
  2189. TextDrawSetShadow(text8, 1);
  2190.  
  2191.  
  2192. 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.");
  2193. TextDrawAlignment(text12, 0);
  2194. TextDrawLetterSize(text12, 0.299999, 0.900000);
  2195. TextDrawColor(text12, 0xffff00ff);
  2196. TextDrawSetOutline(text12, 1);
  2197. TextDrawSetProportional(text12, 1);
  2198. TextDrawSetShadow(text12, 1);
  2199.  
  2200. text13 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~w~/arrest, /ticket, /taze, /cm");
  2201. TextDrawAlignment(text13, 0);
  2202. TextDrawLetterSize(text13, 0.299999, 0.900000);
  2203. TextDrawColor(text13, 0xffff00ff);
  2204. TextDrawSetOutline(text13, 1);
  2205. TextDrawSetProportional(text13, 1);
  2206. TextDrawSetShadow(text13, 1);
  2207.  
  2208. 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.");
  2209. TextDrawAlignment(text14, 0);
  2210. TextDrawLetterSize(text14, 0.299999, 0.900000);
  2211. TextDrawColor(text14, 0xffff00ff);
  2212. TextDrawSetOutline(text14, 1);
  2213. TextDrawSetProportional(text14, 1);
  2214. TextDrawSetShadow(text14, 1);
  2215.  
  2216. 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.");
  2217. TextDrawAlignment(text15, 0);
  2218. TextDrawLetterSize(text15, 0.299999, 0.900000);
  2219. TextDrawColor(text15, 0xffff00ff);
  2220. TextDrawSetOutline(text15, 1);
  2221. TextDrawSetProportional(text15, 1);
  2222. TextDrawSetShadow(text15, 1);
  2223.  
  2224. 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~.");
  2225. TextDrawAlignment(text16, 0);
  2226. TextDrawLetterSize(text16, 0.299999, 0.900000);
  2227. TextDrawColor(text16, 0xffff00ff);
  2228. TextDrawSetOutline(text16, 1);
  2229. TextDrawSetProportional(text16, 1);
  2230. TextDrawSetShadow(text16, 1);
  2231.  
  2232. 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.");
  2233. TextDrawAlignment(text17, 0);
  2234. TextDrawLetterSize(text17, 0.299999, 0.900000);
  2235. TextDrawColor(text17, 0xffff00ff);
  2236. TextDrawSetOutline(text17, 1);
  2237. TextDrawSetProportional(text17, 1);
  2238. TextDrawSetShadow(text17, 1);
  2239.  
  2240. text9 = TextDrawCreate(30.000000, 123.000000, "City Hall");
  2241. TextDrawAlignment(text9, 0);
  2242. TextDrawBackgroundColor(text9, 0x0000ffff);
  2243. TextDrawFont(text9, 1);
  2244. TextDrawLetterSize(text9, 0.299999, 0.900000);
  2245. TextDrawColor(text9, 0xffff00ff);
  2246. TextDrawSetOutline(text9, 1);
  2247. TextDrawSetProportional(text9, 1);
  2248. TextDrawSetShadow(text9, 1);
  2249.  
  2250. //Text Draw WELCOME
  2251. Welcome = TextDrawCreate(277.000000, 305.000000, "Welcome");
  2252. text1 = TextDrawCreate(300.000000, 320.000000, "to");
  2253. text2 = TextDrawCreate(200.000000, 335.000000, "Dave's Cops And Robbers");
  2254. text3 = TextDrawCreate(1.000000, 430.000000, "www.madforum.co.nr");
  2255. TextDrawAlignment(Welcome, 0);
  2256. TextDrawAlignment(text1, 0);
  2257. TextDrawAlignment(text2, 0);
  2258. TextDrawAlignment(text3, 0);
  2259. TextDrawBackgroundColor(Welcome, 0x00ff0066);
  2260. TextDrawBackgroundColor(text1, 0xF6F600AA);
  2261. TextDrawBackgroundColor(text2, 0xF6F600AA);
  2262. TextDrawBackgroundColor(text3, 0x0000ffff);
  2263. TextDrawFont(Welcome, 0);
  2264. TextDrawLetterSize(Welcome, 0.599999, 1.600000);
  2265. TextDrawFont(text1, 0);
  2266. TextDrawLetterSize(text1, 0.599999, 1.600000);
  2267. TextDrawFont(text2, 0);
  2268. TextDrawLetterSize(text2, 0.599999, 1.600000);
  2269. TextDrawFont(text3, 1);
  2270. TextDrawLetterSize(text3, 0.399999, 1.400000);
  2271. TextDrawColor(Welcome, 0xff0000ff);
  2272. TextDrawColor(text1, 0x0000AFAA);
  2273. TextDrawColor(text2, 0xF67F00AA);
  2274. TextDrawColor(text3, 0xffff00ff);
  2275. TextDrawSetOutline(Welcome, 1);
  2276. TextDrawSetOutline(text1, 1);
  2277. TextDrawSetOutline(text2, 1);
  2278. TextDrawSetOutline(text3, 1);
  2279. TextDrawSetProportional(Welcome, 1);
  2280. TextDrawSetProportional(text1, 1);
  2281. TextDrawSetProportional(text2, 1);
  2282. TextDrawSetProportional(text3, 1);
  2283. TextDrawSetShadow(Welcome, 1);
  2284. TextDrawSetShadow(text1, 1);
  2285. TextDrawSetShadow(text2, 1);
  2286. TextDrawSetShadow(text3, 1);
  2287. return true;
  2288. }
  2289.  
  2290. SetPlayerTeamFromClass(playerid, classid)
  2291. {
  2292. if(classid >= 0 && classid <= 5) gTeam[playerid] = COP;
  2293. else if(classid == 6) gTeam[playerid] = FBI;
  2294. else if(classid == 7) gTeam[playerid] = SWAT;
  2295. else if(classid == 8) gTeam[playerid] = ARMY;
  2296. else if(classid >= 9 && classid <= 11) gTeam[playerid] = Medic;
  2297. else if(classid >= 12 && classid <= 30) gTeam[playerid] = CIVILIAN;
  2298. }
  2299.  
  2300. public OnPlayerRequestClass(playerid, classid)
  2301. {
  2302. SetPlayerTeamFromClass(playerid, classid);
  2303. Spawned[playerid] = 0;
  2304. if(classid >= 0 && classid <= 5)
  2305. {
  2306. GameTextForPlayer(playerid, "~b~Police Officer", 3000, 3);
  2307. SetPlayerInterior(playerid, 1);
  2308. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2309. SetPlayerFacingAngle(playerid, 94.0821);
  2310. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2311. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2312. }else if(classid == 6)
  2313. {
  2314. GameTextForPlayer(playerid, "~b~FBI", 3000, 3);
  2315. SetPlayerInterior(playerid, 1);
  2316. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2317. SetPlayerFacingAngle(playerid, 94.0821);
  2318. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2319. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2320. }else if(classid == 7)
  2321. {
  2322. GameTextForPlayer(playerid, "~b~SWAT", 3000, 3);
  2323. SetPlayerInterior(playerid, 1);
  2324. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2325. SetPlayerFacingAngle(playerid, 94.0821);
  2326. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2327. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2328. }
  2329. else if(classid == 8)
  2330. {
  2331. GameTextForPlayer(playerid, "~g~Army", 3000, 3);
  2332. SetPlayerInterior(playerid, 1);
  2333. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2334. SetPlayerFacingAngle(playerid, 94.0821);
  2335. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2336. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2337. }
  2338. else if(classid >= 9 && classid <= 11)
  2339. {
  2340. GameTextForPlayer(playerid, "~p~~h~Medic", 3000, 3);
  2341. SetPlayerInterior(playerid, 1);
  2342. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2343. SetPlayerFacingAngle(playerid, 94.0821);
  2344. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2345. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2346. }
  2347. if(classid >= 12 && classid <= 30)
  2348. {
  2349. GameTextForPlayer(playerid, "~w~Civilian", 3000, 3);
  2350. SetPlayerInterior(playerid, 1);
  2351. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  2352. SetPlayerFacingAngle(playerid, 94.0821);
  2353. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  2354. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  2355. }
  2356. return true;
  2357. }
  2358.  
  2359. public OnPlayerConnect(playerid)
  2360. {
  2361. SetTimer("TimeUpdate",65009, 1);
  2362. TogglePlayerClock(playerid, 1);
  2363. new string[256], playername[MAX_PLAYER_NAME], file[255];
  2364. GetPlayerName(playerid, playername, sizeof(playername));
  2365. format(string, sizeof(string), "%s has joined Dave'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 Dave'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. TogglePlayerClock( playerid, 1 );
  2455. SetPlayerArmour(playerid,100);
  2456. SetPlayerInterior(playerid, 0);
  2457. //LV MAP ICON
  2458. SetPlayerMapIcon(playerid, 0, 2019.5000, 1913.0396, 12.3114, 52, 0); // Bank
  2459. SetPlayerMapIcon(playerid, 5, 2287.0925, 2431.6145, 10.8203, 30, 0); // LVPD
  2460. SetPlayerMapIcon(playerid, 6, 1607.4465, 1816.1157, 10.8203, 22, 0); // Hospital
  2461. SetPlayerMapIcon(playerid, 7, 2412.5625, 1123.8337, 10.8203, 56, 0); // City Hall
  2462. SetPlayerMapIcon(playerid, 8, 2085.6697, 2074.0100, 11.0547, 12, 0); // Dave's Dildos
  2463. SetPlayerMapIcon(playerid, 9, 2172.1233, 1398.1210, 11.0625, 55, 0); // Car Shop
  2464. SetPlayerMapIcon(playerid, 10, 2113.2854, 1333.5800, 10.8203, 49, 0); // BulletXT's Bar
  2465. SetPlayerMapIcon(playerid, 11, 2101.8979, 2257.3718, 11.0234, 45, 0); // Binco
  2466. SetPlayerMapIcon(playerid, 12, 2249.1479, 960.5301, 10.8130, 45, 0); // ZIP
  2467. SetPlayerMapIcon(playerid, 13, 2032.1550, 2162.4448, 10.8203, 8, 0); // Bomb Shop
  2468. SetPlayerMapIcon(playerid, 14, 2184.2126, 2295.6084, 10.8203, 45, 0); // SubUrban
  2469. SetPlayerMapIcon(playerid, 15, 2491.5000, 918.4912, 11.0234, 24, 0); // Drug Point
  2470. SetPlayerMapIcon(playerid, 42, 2019.3212,1007.7536,10.8203, 44, 0); // D4ragoni
  2471. SetPlayerMapIcon(playerid, 43, 2196.9517,1677.1399,12.3672, 25, 0); // Caligulas
  2472. //LS MAP ICON
  2473. SetPlayerMapIcon(playerid, 16, 1122.7067,-2037.0416,69.8942, 24, 0); // Drug Point
  2474. SetPlayerMapIcon(playerid, 17, 1857.1792,-1874.2761,13.4829, 8, 0); // Bomb Shop
  2475. SetPlayerMapIcon(playerid, 18, 2244.4128,-1665.5463,15.4766, 45, 0); // Binco
  2476. SetPlayerMapIcon(playerid, 19, 2309.8811,-1643.7646,14.8270, 49, 0); // Bar
  2477. SetPlayerMapIcon(playerid, 20, 1481.1427,-1771.6808,18.7958, 56, 0); // City Hall
  2478. SetPlayerMapIcon(playerid, 21, 1172.8318,-1323.2954,15.4001, 22, 0); // Hospital
  2479. SetPlayerMapIcon(playerid, 22, 1555.0673,-1675.6428,16.1953, 30, 0); // LSPD
  2480. SetPlayerMapIcon(playerid, 23, 1411.7141,-1700.0085,13.5395, 52, 0); // Bank
  2481. SetPlayerMapIcon(playerid, 24, 1703.9697,-1469.9948,13.5469, 55, 0); // Car Shop
  2482. SetPlayerMapIcon(playerid, 25, 499.6478,-1360.3167,16.3421, 45, 0); // SubUrban
  2483. SetPlayerMapIcon(playerid, 26, 822.3297,-1757.5181,13.6484, 45, 0); // SubUrban 2
  2484. SetPlayerMapIcon(playerid, 27, 2139.1853,-1743.2207,13.5524, 45, 0); // ZIP
  2485. //SF MAP ICON
  2486. SetPlayerMapIcon(playerid, 28, -2719.4172,-319.2030,7.8438, 24, 0); // Drug Point
  2487. SetPlayerMapIcon(playerid, 29, -2032.9038,161.4297,29.0461, 8, 0); // Bomb Shop
  2488. SetPlayerMapIcon(playerid, 30, -2655.0779,640.0289,14.4545, 22, 0); // Hospital
  2489. SetPlayerMapIcon(playerid, 31, -1605.4486,710.8713,13.8672, 30, 0); // SFPD
  2490. SetPlayerMapIcon(playerid, 32, -1581.2535,867.2552,7.6953, 52, 0); // Bank
  2491. SetPlayerMapIcon(playerid, 33, -1946.0483,273.3452,35.4739, 55, 0); // Car Shop
  2492. SetPlayerMapIcon(playerid, 34, -2490.9307,-142.7729,25.6172, 45, 0); // SubUrban
  2493. SetPlayerMapIcon(playerid, 35, -1881.1808,823.0976,35.1770, 45, 0); // ZIP
  2494. //ATM-uri
  2495. SetPlayerMapIcon(playerid, 1,2172.8428, 1416.7751, 11.0625, 52, 0); // ATM
  2496. SetPlayerMapIcon(playerid, 2,2110.5188, 2060.4219, 10.8203, 52, 0); // ATM
  2497. SetPlayerMapIcon(playerid, 3,2134.0115, 2379.3159, 10.8203, 52, 0); // ATM
  2498. SetPlayerMapIcon(playerid, 4,2455.5420, 1681.4117, 11.0234, 52, 0); // ATM
  2499. SetPlayerMapIcon(playerid, 36,-2635.9067,1398.5020,7.0938, 52, 0); // ATM
  2500. SetPlayerMapIcon(playerid, 37,-1575.3977,902.4458,7.5610, 52, 0); // ATM
  2501. SetPlayerMapIcon(playerid, 38,-2434.0908,516.8967,30.3705, 52, 0); // ATM
  2502. SetPlayerMapIcon(playerid, 39,852.7184,-1760.9111,13.5491, 52, 0); // ATM
  2503. SetPlayerMapIcon(playerid, 40,1243.2965,-1561.1505,13.5545, 52, 0); // ATM
  2504. SetPlayerMapIcon(playerid, 41,1787.9928,-1592.2491,13.4870, 52, 0); // ATM
  2505.  
  2506. TextDrawHideForPlayer(playerid, BOX);
  2507. TextDrawHideForPlayer(playerid, Welcome);
  2508. TextDrawHideForPlayer(playerid, text1);
  2509. TextDrawHideForPlayer(playerid, text2);
  2510. TextDrawHideForPlayer(playerid, text3);
  2511. TextDrawShowForPlayer(playerid, BOX2);
  2512. IsSpawned[playerid] =1;
  2513.  
  2514. new playername[MAX_PLAYER_NAME];
  2515. GetPlayerName(playerid, playername, sizeof(playername));
  2516.  
  2517. if(gTeam[playerid] == CIVILIAN)
  2518. {
  2519. SetPlayerColor(playerid, WHITE);
  2520. new file[256];
  2521. new name[MAX_PLAYER_NAME];
  2522. GetPlayerName(playerid, name, sizeof(name));
  2523. format(file, sizeof(file), "%s.runix", name);
  2524. new position = random(sizeof(CivilianSpawn));
  2525. SetPlayerPos(playerid, CivilianSpawn[position][0], CivilianSpawn[position][1], CivilianSpawn[position][2]);
  2526. SetPlayerFacingAngle(playerid, CivilianSpawn[position][3]);
  2527. SetCameraBehindPlayer(playerid);
  2528. TextDrawShowForPlayer(playerid, CIVBOX);
  2529. TextDrawShowForPlayer(playerid, text6);
  2530. TextDrawShowForPlayer(playerid, text7);
  2531. TextDrawShowForPlayer(playerid, text8);
  2532. TextDrawShowForPlayer(playerid, text10);
  2533. TogglePlayerControllable(playerid, true);
  2534. GivePlayerWeapon(playerid,5,1);
  2535. if(PlayerSkin[playerid] >= 0)
  2536. {
  2537. SetPlayerSkin(playerid,dini_Int(file, "Skin"));
  2538. }
  2539. }
  2540. else if(gTeam[playerid] == Medic)
  2541. {
  2542. SetPlayerColor(playerid, PINK);
  2543. new position = random(sizeof(MedicSpawn));
  2544. SetPlayerPos(playerid, MedicSpawn[position][0], MedicSpawn[position][1], MedicSpawn[position][2]);
  2545. SetPlayerFacingAngle(playerid, MedicSpawn[position][3]);
  2546. SetCameraBehindPlayer(playerid);
  2547. TextDrawShowForPlayer(playerid, MDCBOX);
  2548. TextDrawShowForPlayer(playerid, text15);
  2549. TextDrawShowForPlayer(playerid, text16);
  2550. TextDrawShowForPlayer(playerid, text17);
  2551. TextDrawShowForPlayer(playerid, text18);
  2552. GivePlayerWeapon(playerid,41,1000);
  2553. }
  2554. else if(gTeam[playerid] == COP)
  2555. {
  2556. new position = random(sizeof(CopSpawn));
  2557. SetPlayerColor(playerid, LIGHT_BLUE);
  2558. SetPlayerPos(playerid, CopSpawn[position][0], CopSpawn[position][1], CopSpawn[position][2]);
  2559. SetPlayerFacingAngle(playerid, CopSpawn[position][3]);
  2560. SetCameraBehindPlayer(playerid);
  2561. TextDrawShowForPlayer(playerid, COPBOX);
  2562. TextDrawShowForPlayer(playerid, text11);
  2563. TextDrawShowForPlayer(playerid, text12);
  2564. TextDrawShowForPlayer(playerid, text13);
  2565. TextDrawShowForPlayer(playerid, text14);
  2566. GivePlayerWeapon(playerid,25,100);
  2567. GivePlayerWeapon(playerid,22,100);
  2568. }
  2569. else if(gTeam[playerid] == SWAT || gTeam[playerid] == FBI)
  2570. {
  2571. SetPlayerColor(playerid, BLUE);
  2572. new position = random(sizeof(SFSpawn));
  2573. SetPlayerPos(playerid, SFSpawn[position][0], SFSpawn[position][1], SFSpawn[position][2]);
  2574. SetPlayerFacingAngle(playerid, SFSpawn[position][3]);
  2575. SetCameraBehindPlayer(playerid);
  2576. TextDrawShowForPlayer(playerid, COPBOX);
  2577. TextDrawShowForPlayer(playerid, text11);
  2578. TextDrawShowForPlayer(playerid, text12);
  2579. TextDrawShowForPlayer(playerid, text13);
  2580. TextDrawShowForPlayer(playerid, text14);
  2581. GivePlayerWeapon(playerid,29,400);
  2582. GivePlayerWeapon(playerid,22,100);
  2583. GivePlayerWeapon(playerid,31,300);
  2584. }
  2585. else if(gTeam[playerid] == ARMY)
  2586. {
  2587. SetPlayerColor(playerid, GREEN);
  2588. new position = random(sizeof(ARMYSpawn));
  2589. SetPlayerPos(playerid, ARMYSpawn[position][0], ARMYSpawn[position][1], ARMYSpawn[position][2]);
  2590. SetPlayerFacingAngle(playerid, ARMYSpawn[position][3]);
  2591. SetCameraBehindPlayer(playerid);
  2592. TextDrawShowForPlayer(playerid, COPBOX);
  2593. TextDrawShowForPlayer(playerid, text11);
  2594. TextDrawShowForPlayer(playerid, text12);
  2595. TextDrawShowForPlayer(playerid, text13);
  2596. TextDrawShowForPlayer(playerid, text14);
  2597. GivePlayerWeapon(playerid,29,400);
  2598. GivePlayerWeapon(playerid,22,100);
  2599. GivePlayerWeapon(playerid,31,300);
  2600. }
  2601. Spawned[playerid] = 1;
  2602. return true;
  2603. }
  2604.  
  2605. public OnPlayerDeath(playerid, killerid, reason)
  2606. {
  2607. HideDraw(playerid);
  2608. SendDeathMessage(killerid, playerid, reason);
  2609. SetPlayerColor(playerid, GREY);
  2610. SetPlayerWantedLevel(playerid, 0);
  2611.  
  2612. if(reason <= 46 && hit[playerid] != 0)
  2613. {
  2614. new string[256];
  2615. format(string, sizeof(string), "%s (%i) killed %s (%i) and recieved $%i for a completed hit", ReturnPlayerName(killerid), killerid, ReturnPlayerName(playerid), playerid, hit[playerid]);
  2616. SendClientMessageToAll(COLOR_MSG, string);
  2617. GivePlayerMoney(killerid, hit[playerid]);
  2618. GivePlayerMoney(hiter[playerid], GetPlayerMoney(hiter[playerid])-hit[playerid]);
  2619. hit[playerid] = 0;
  2620. }
  2621. else if(hit[playerid] != 0)
  2622. {
  2623. new string[256];
  2624. format(string, sizeof(string), "The hit on %s (%i) has been cancelled (died)", ReturnPlayerName(playerid), playerid);
  2625. SendClientMessageToAll(COLOR_MSG, string);
  2626. hit[playerid] = 0;
  2627. }
  2628.  
  2629. IsSpawned[playerid] =0;
  2630. if(HaveGPS[playerid]) {
  2631. KillTimer(GPSTimer[playerid]);
  2632. HaveGPS[playerid] = false;
  2633. GPSTimer[playerid] = 0;
  2634. }
  2635. return true;
  2636. }
  2637.  
  2638. public OnPlayerText(playerid, text[])
  2639. {
  2640. if(text[0] == '@' && AccountInfo[playerid][aLevel] > 0)
  2641. {
  2642. new string[256], name[60], message[350];
  2643. GetPlayerName(playerid, name, 60);
  2644. strmid(string, text, 1, strlen(text), 256);
  2645. format(message, 350, "%s: %s", name, string);
  2646. for(new i;i<MAX_PLAYERS;i++)
  2647. {
  2648. if(AccountInfo[i][aLevel] > 0)
  2649. {
  2650. SendClientMessage(i, COLOR_GREEN, message);
  2651. }
  2652. }
  2653. return 0;
  2654. }
  2655. if(Muted[playerid] == 1)
  2656. {
  2657. SendClientMessage(playerid, COLOR_RED, "You are muted, you cannot chat!");
  2658. return 0;
  2659. }
  2660. new rname[MAX_PLAYER_NAME];
  2661. GetPlayerName(playerid, rname, sizeof(rname));
  2662. new name[MAX_PLAYER_NAME];
  2663. GetPlayerName(playerid, name, sizeof(name));
  2664. if(text[0] == '1' && SelectBM[playerid] == 1)
  2665. {
  2666. MissionIni2(playerid);
  2667. HideDraw(playerid);
  2668. SelectBM[playerid] = 0;
  2669. InBusMission[playerid] = 1;
  2670. currentcheckpoint[playerid] = 0;
  2671. SetPlayerRaceCheckpoint(playerid,0,buslscps[0][0],buslscps[0][1],buslscps[0][2],buslscps[1][0],buslscps[1][1],buslscps[1][2],7);
  2672. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  2673. return false;
  2674. }
  2675. if(text[0] == '1' && SelectTM[playerid] == 1)
  2676. {
  2677. HideDraw(playerid);
  2678. SelectTM[playerid] = 0;
  2679. InTrashMission[playerid] = 1;
  2680. currentcheckpoint[playerid] = 0;
  2681. SetPlayerRaceCheckpoint(playerid,0,trashls[0][0],trashls[0][1],trashls[0][2],trashls[1][0],trashls[1][1],trashls[1][2],7);
  2682. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2683. return false;
  2684. }
  2685. if(text[0] == '2' && SelectTM[playerid] == 1)
  2686. {
  2687. HideDraw(playerid);
  2688. SelectTM[playerid] = 0;
  2689. InTrashMission[playerid] = 2;
  2690. currentcheckpoint[playerid] = 0;
  2691. SetPlayerRaceCheckpoint(playerid,0,trashsf[0][0],trashsf[0][1],trashsf[0][2],trashsf[1][0],trashsf[1][1],trashsf[1][2],7);
  2692. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2693. return false;
  2694. }
  2695. if(text[0] == '3' && SelectTM[playerid] == 1)
  2696. {
  2697. HideDraw(playerid);
  2698. SelectTM[playerid] = 0;
  2699. InTrashMission[playerid] = 3;
  2700. currentcheckpoint[playerid] = 0;
  2701. SetPlayerRaceCheckpoint(playerid,0,trashlv[0][0],trashlv[0][1],trashlv[0][2],trashlv[1][0],trashlv[1][1],trashlv[1][2],7);
  2702. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the stop!");
  2703. return false;
  2704. }
  2705. if(text[0] == '1' && AMMUBOX[playerid] == 1)
  2706. {
  2707. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2708. {
  2709. HideDraw(playerid);
  2710. TextDrawShowForPlayer(playerid, text39);
  2711. TextDrawShowForPlayer(playerid, AMMUBOX2);
  2712. AMMUBOX[playerid] = 2;
  2713. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2714. return false;
  2715. }
  2716. if(text[0] == '2' && AMMUBOX[playerid] == 1)
  2717. {
  2718. if(CPS_IsPlayerInCheckpoint(playerid, cpammu))
  2719. {
  2720. AMMUBOX[playerid] = 0;
  2721. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2722. {
  2723. if(AmmuRecentlyRobbed == 0)
  2724. {
  2725. new chances = random(500);
  2726. if(chances >= 0 && chances <= 400)
  2727. {
  2728. new string[250];
  2729. RobAmmu[playerid] = 20;
  2730. AmmuRecentlyRobbed = 150;
  2731. format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2732. Announce(string);
  2733. return true;
  2734. }
  2735. else if(chances >= 401 && chances <= 500)
  2736. {
  2737. new copmsg[250];
  2738. SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2739. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2740. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2741. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2742. SendRadioMessageToCops(copmsg);
  2743. AmmuRecentlyRobbed = 100;
  2744. return true;
  2745. }
  2746. }
  2747. else if(AmmuRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2748. }
  2749. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2750. }
  2751. if(CPS_IsPlayerInCheckpoint(playerid, cpammu2))
  2752. {
  2753. AMMUBOX[playerid] = 0;
  2754. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2755. {
  2756. if(Ammu2RecentlyRobbed == 0)
  2757. {
  2758. new chances = random(500);
  2759. if(chances >= 0 && chances <= 400)
  2760. {
  2761. new string[250];
  2762. RobAmmu2[playerid] = 20;
  2763. Ammu2RecentlyRobbed = 150;
  2764. format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2765. Announce(string);
  2766. return true;
  2767. }
  2768. else if(chances >= 401 && chances <= 500)
  2769. {
  2770. new copmsg[250];
  2771. SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2772. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2773. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2774. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2775. SendRadioMessageToCops(copmsg);
  2776. Ammu2RecentlyRobbed = 100;
  2777. return true;
  2778. }
  2779. }
  2780. else if(Ammu2RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2781. }
  2782. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2783. }
  2784. if(CPS_IsPlayerInCheckpoint(playerid, cpammu3))
  2785. {
  2786. AMMUBOX[playerid] = 0;
  2787. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2788. {
  2789. if(Ammu3RecentlyRobbed == 0)
  2790. {
  2791. new chances = random(500);
  2792. if(chances >= 0 && chances <= 400)
  2793. {
  2794. new string[250];
  2795. RobAmmu3[playerid] = 20;
  2796. Ammu3RecentlyRobbed = 150;
  2797. format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2798. Announce(string);
  2799. return true;
  2800. }
  2801. else if(chances >= 401 && chances <= 500)
  2802. {
  2803. new copmsg[250];
  2804. SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2805. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2806. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2807. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2808. SendRadioMessageToCops(copmsg);
  2809. Ammu3RecentlyRobbed = 100;
  2810. return true;
  2811. }
  2812. }
  2813. else if(Ammu3RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2814. }
  2815. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2816. }
  2817. if(CPS_IsPlayerInCheckpoint(playerid, cpammu4))
  2818. {
  2819. AMMUBOX[playerid] = 0;
  2820. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2821. {
  2822. if(Ammu4RecentlyRobbed == 0)
  2823. {
  2824. new chances = random(500);
  2825. if(chances >= 0 && chances <= 400)
  2826. {
  2827. new string[250];
  2828. RobAmmu4[playerid] = 20;
  2829. Ammu4RecentlyRobbed = 150;
  2830. format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2831. Announce(string);
  2832. return true;
  2833. }
  2834. else if(chances >= 401 && chances <= 500)
  2835. {
  2836. new copmsg[250];
  2837. SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2838. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2839. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2840. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2841. SendRadioMessageToCops(copmsg);
  2842. Ammu4RecentlyRobbed = 100;
  2843. return true;
  2844. }
  2845. }
  2846. else if(Ammu4RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2847. }
  2848. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2849. }
  2850. if(CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2851. {
  2852. AMMUBOX[playerid] = 0;
  2853. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  2854. {
  2855. if(Ammu5RecentlyRobbed == 0)
  2856. {
  2857. new chances = random(500);
  2858. if(chances >= 0 && chances <= 400)
  2859. {
  2860. new string[250];
  2861. RobAmmu5[playerid] = 20;
  2862. Ammu5RecentlyRobbed = 150;
  2863. format(string, sizeof(string), "%s[ID:%d] started a robbery at Ammunation!", name, playerid);
  2864. Announce(string);
  2865. return true;
  2866. }
  2867. else if(chances >= 401 && chances <= 500)
  2868. {
  2869. new copmsg[250];
  2870. SendClientMessage(playerid, ERROR, "Your attempt to rob Ammunation failed!");
  2871. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  2872. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  2873. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Ammunation.", name);
  2874. SendRadioMessageToCops(copmsg);
  2875. Ammu5RecentlyRobbed = 100;
  2876. return true;
  2877. }
  2878. }
  2879. else if(Ammu5RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  2880. }
  2881. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  2882. }
  2883. return false;
  2884. }
  2885. if(text[0] == '1' && AMMUBOX[playerid] == 2)
  2886. {
  2887. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2888. {
  2889. if(GetPlayerMoney(playerid) > 499)
  2890. {
  2891. GivePlayerMoney(playerid,-500);
  2892. GivePlayerWeapon(playerid,24,10);
  2893. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Desert Eagle with 10 ammu");
  2894. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2895. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2896. return false;
  2897. }
  2898. if(text[0] == '2' && AMMUBOX[playerid] == 2)
  2899. {
  2900. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2901. {
  2902. if(GetPlayerMoney(playerid) > 899)
  2903. {
  2904. GivePlayerMoney(playerid,-900);
  2905. GivePlayerWeapon(playerid,32,60);
  2906. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Tec9 with 60 ammu");
  2907. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2908. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2909. return false;
  2910. }
  2911. if(text[0] == '3' && AMMUBOX[playerid] == 2)
  2912. {
  2913. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2914. {
  2915. if(GetPlayerMoney(playerid) > 899)
  2916. {
  2917. GivePlayerMoney(playerid,-900);
  2918. GivePlayerWeapon(playerid,29,60);
  2919. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an MP5 with 60 ammu");
  2920. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2921. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2922. return false;
  2923. }
  2924. if(text[0] == '4' && AMMUBOX[playerid] == 2)
  2925. {
  2926. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2927. {
  2928. if(GetPlayerMoney(playerid) > 1200)
  2929. {
  2930. GivePlayerMoney(playerid,-1200);
  2931. GivePlayerWeapon(playerid,31,60);
  2932. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an M4 with 60 ammu");
  2933. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2934. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2935. return false;
  2936. }
  2937. if(text[0] == '5' && AMMUBOX[playerid] == 2)
  2938. {
  2939. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2940. {
  2941. if(GetPlayerMoney(playerid) > 1200)
  2942. {
  2943. GivePlayerMoney(playerid,-1200);
  2944. GivePlayerWeapon(playerid,34,20);
  2945. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Sniper Rifle with 20 ammu");
  2946. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2947. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2948. return false;
  2949. }
  2950. if(text[0] == '6' && AMMUBOX[playerid] == 2)
  2951. {
  2952. if(CPS_IsPlayerInCheckpoint(playerid, cpammu) || CPS_IsPlayerInCheckpoint(playerid, cpammu2) || CPS_IsPlayerInCheckpoint(playerid, cpammu3) || CPS_IsPlayerInCheckpoint(playerid, cpammu4) || CPS_IsPlayerInCheckpoint(playerid, cpammu5))
  2953. {
  2954. if(GetPlayerMoney(playerid) > 2999)
  2955. {
  2956. GivePlayerMoney(playerid,-1999);
  2957. GivePlayerWeapon(playerid,18,3);
  2958. SendClientMessage(playerid,LIGHT_BLUE,"You bought succesfull an Moldov with 3 ammu");
  2959. }else SendClientMessage(playerid, ERROR, "You not have enough money.");
  2960. }else SendClientMessage(playerid, ERROR, "You're not at Ammunation.");
  2961. return false;
  2962. }
  2963. if(text[0] == '1' && CSKIN[playerid] == 1)
  2964. {
  2965. if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  2966. {
  2967. if(gTeam[playerid] == CIVILIAN)
  2968. {
  2969. SetPlayerPos(playerid, 218.2430,-98.2941,1005.2578);
  2970. SetPlayerFacingAngle(playerid, 93.6636);
  2971. SetPlayerSkin(playerid,7);
  2972. HideDraw(playerid);
  2973. TogglePlayerControllable(playerid,0);
  2974. SetPlayerCameraPos(playerid, 215.7693,-98.2494,1005.2578);
  2975. SetPlayerCameraLookAt(playerid, 218.2430,-98.2941,1005.2578);
  2976. SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  2977. CSKIN[playerid] = 2;
  2978. }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  2979. }else SendClientMessage(playerid, ERROR, "You're not at Binco.");
  2980. return false;
  2981. }
  2982. if(text[0] == '1' && CSKINZ[playerid] == 1)
  2983. {
  2984. if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  2985. {
  2986. if(gTeam[playerid] == CIVILIAN)
  2987. {
  2988. SetPlayerPos(playerid, 181.5906,-87.5578,1002.0234);
  2989. SetPlayerFacingAngle(playerid, 100.5187);
  2990. SetPlayerSkin(playerid,7);
  2991. HideDraw(playerid);
  2992. TogglePlayerControllable(playerid,0);
  2993. SetPlayerCameraPos(playerid, 179.6538,-87.7981,1002.0234);
  2994. SetPlayerCameraLookAt(playerid, 181.5906,-87.5578,1002.0234);
  2995. SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  2996. CSKINZ[playerid] = 2;
  2997. }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  2998. }else SendClientMessage(playerid, ERROR, "You're not at Zip.");
  2999. return false;
  3000. }
  3001. if(text[0] == '2' && CSKINZ[playerid] == 1)
  3002. {
  3003. if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  3004. {
  3005. CSKINZ[playerid] = 0;
  3006. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  3007. {
  3008. if(ZipRecentlyRobbed == 0)
  3009. {
  3010. new chances = random(500);
  3011. if(chances >= 0 && chances <= 400)
  3012. {
  3013. new string[250];
  3014. RobZip[playerid] = 20;
  3015. ZipRecentlyRobbed = 150;
  3016. format(string, sizeof(string), "%s[ID:%d] started a robbery at ZIP!", name, playerid);
  3017. Announce(string);
  3018. return true;
  3019. }
  3020. else if(chances >= 401 && chances <= 500)
  3021. {
  3022. new copmsg[250];
  3023. SendClientMessage(playerid, ERROR, "Your attempt to rob ZIP failed!");
  3024. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3025. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  3026. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob ZIP.", name);
  3027. SendRadioMessageToCops(copmsg);
  3028. ZipRecentlyRobbed = 100;
  3029. return true;
  3030. }
  3031. }
  3032. else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "ZIP has been robbed recently!");
  3033. }
  3034. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3035. }
  3036. else return SendClientMessage(playerid, ERROR, "You're not at ZIP.");
  3037. return false;
  3038. }
  3039. if(text[0] == '1' && CSKINU[playerid] == 1)
  3040. {
  3041. if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3042. {
  3043. if(gTeam[playerid] == CIVILIAN)
  3044. {
  3045. SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
  3046. SetPlayerFacingAngle(playerid, 94.0821);
  3047. SetPlayerSkin(playerid,7);
  3048. HideDraw(playerid);
  3049. TogglePlayerControllable(playerid,0);
  3050. SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
  3051. SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
  3052. SendClientMessage(playerid,LIGHT_BLUE,"Type /next for next skin and /select for select skin!");
  3053. CSKINU[playerid] = 2;
  3054. }else SendClientMessage(playerid,ERROR,"You are not Civilian! Only Civilians can change skin");
  3055. }else SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  3056. return false;
  3057. }
  3058. if(text[0] == '2' && CSKINU[playerid] == 1)
  3059. {
  3060. if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3061. {
  3062. CSKINU[playerid] = 0;
  3063. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  3064. {
  3065. if(UrbanRecentlyRobbed == 0)
  3066. {
  3067. new chances = random(500);
  3068. HideDraw(playerid);
  3069. CSKIN[playerid] = 0;
  3070. if(chances >= 0 && chances <= 400)
  3071. {
  3072. new string[250];
  3073. RobUrban[playerid] = 20;
  3074. UrbanRecentlyRobbed = 150;
  3075. format(string, sizeof(string), "%s[ID:%d] started a robbery at SubUrban!", name, playerid);
  3076. Announce(string);
  3077. return true;
  3078. }
  3079. else if(chances >= 401 && chances <= 500)
  3080. {
  3081. new copmsg[250];
  3082. SendClientMessage(playerid, ERROR, "Your attempt to rob SubUrban failed!");
  3083. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3084. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3085. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob SubUrban.", name);
  3086. SendRadioMessageToCops(copmsg);
  3087. UrbanRecentlyRobbed = 100;
  3088. return true;
  3089. }
  3090. }
  3091. else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "SubUrban has been robbed recently!");
  3092. }
  3093. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3094. }
  3095. else return SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  3096. return false;
  3097. }
  3098. if(text[0] == '2' && CSKIN[playerid] == 1)
  3099. {
  3100. if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  3101. {
  3102. CSKIN[playerid] = 0;
  3103. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3104. {
  3105. if(BincoRecentlyRobbed == 0)
  3106. {
  3107. new chances = random(500);
  3108. HideDraw(playerid);
  3109. CSKIN[playerid] = 0;
  3110. if(chances >= 0 && chances <= 400)
  3111. {
  3112. new string[250];
  3113. RobBinco[playerid] = 20;
  3114. BincoRecentlyRobbed = 150;
  3115. format(string, sizeof(string), "%s[ID:%d] started a robbery at Binco!", name, playerid);
  3116. Announce(string);
  3117. return true;
  3118. }
  3119. else if(chances >= 401 && chances <= 500)
  3120. {
  3121. new copmsg[250];
  3122. SendClientMessage(playerid, ERROR, "Your attempt to rob Binco failed!");
  3123. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3124. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3125. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Binco.", name);
  3126. SendRadioMessageToCops(copmsg);
  3127. BincoRecentlyRobbed = 100;
  3128. return true;
  3129. }
  3130. }
  3131. else if(BincoRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Binco has been robbed recently!");
  3132. }
  3133. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3134. }
  3135. else return SendClientMessage(playerid, ERROR, "You're not at Binco.");
  3136. return false;
  3137. }
  3138. if(text[0] == '2' && SelectBM[playerid] == 1)
  3139. {
  3140. MissionIni2(playerid);
  3141. HideDraw(playerid);
  3142. SelectBM[playerid] = 0;
  3143. InBusMission[playerid] = 2;
  3144. currentcheckpoint[playerid] = 0;
  3145. SetPlayerRaceCheckpoint(playerid,0,bussfcps[0][0],bussfcps[0][1],bussfcps[0][2],bussfcps[1][0],bussfcps[1][1],bussfcps[1][2],7);
  3146. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  3147. return false;
  3148. }
  3149. if(text[0] == '3' && SelectBM[playerid] == 1)
  3150. {
  3151. MissionIni2(playerid);
  3152. HideDraw(playerid);
  3153. InBusMission[playerid] = 3;
  3154. SelectBM[playerid] = 0;
  3155. currentcheckpoint[playerid] = 0;
  3156. SetPlayerRaceCheckpoint(playerid,0,buslvcps[0][0],buslvcps[0][1],buslvcps[0][2],buslvcps[1][0],buslvcps[1][1],buslvcps[1][2],7);
  3157. SendClientMessage(playerid,LIGHT_BLUE,"Go to the red markers on the map to reach the bus stop!");
  3158. return false;
  3159. }
  3160. if(text[0] == '2' && CHALLBOX[playerid] == 1)
  3161. {
  3162. HideDraw(playerid);
  3163. CHALLBOX[playerid] = 0;
  3164. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3165. {
  3166. if(HallRecentlyRobbed == 0)
  3167. {
  3168. new chances = random(200);
  3169. if(chances >= 0 && chances <= 150)
  3170. {
  3171. new string[250];
  3172. RobHall[playerid] = 20;
  3173. TogglePlayerControllable(playerid, true);
  3174. HallRecentlyRobbed = 150;
  3175. if(CH[playerid] == 1)
  3176. {
  3177. format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Las Venturas City Hall!", rname, playerid);
  3178. Announce(string);
  3179. }
  3180. if(CH[playerid] == 2)
  3181. {
  3182. format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Los Santos City Hall!", rname, playerid);
  3183. Announce(string);
  3184. }
  3185. }
  3186. else
  3187. if(chances >= 151 && chances <= 200)
  3188. {
  3189. new copmsg[250];
  3190. GetPlayerName(playerid, name, sizeof(name));
  3191. SendClientMessage(playerid, ERROR, "Your attempt to rob the City Hall failed!");
  3192. SendClientMessage(playerid, ERROR, "The Police are on their way to the hall.");
  3193. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  3194. if(CH[playerid] == 1)
  3195. {
  3196. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Las Venturas City Hall.", name);
  3197. SendRadioMessageToCops(copmsg);
  3198. }
  3199. if(CH[playerid] == 2)
  3200. {
  3201. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Los Santos City Hall.", name);
  3202. SendRadioMessageToCops(copmsg);
  3203. }
  3204. HallRecentlyRobbed = 100;
  3205. TogglePlayerControllable(playerid, true);
  3206. }
  3207. }
  3208. else if(HallRecentlyRobbed > 0)
  3209. {
  3210. SendClientMessage(playerid, ERROR, "The City Hall has been robbed recently!");
  3211. TogglePlayerControllable(playerid, true);
  3212. }
  3213. } else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  3214. return false;
  3215. }
  3216. if(text[0] == '1' && CHALLBOX[playerid] == 1)
  3217. {
  3218. new string[250];
  3219. new string2[250];
  3220. CHALLBOX[playerid] = 0;
  3221. HideDraw(playerid);
  3222. TextDrawShowForPlayer(playerid, COPBOX);
  3223. TextDrawShowForPlayer(playerid, text19);
  3224. TextDrawShowForPlayer(playerid, text20);
  3225. format(string, sizeof(string),"~r~1.~w~Type F4.~n~~r~2.~w~Kill you self.~n~~r~3.~w~Select your class.");
  3226. format(string2, sizeof(string2),"~n~~n~~n~~n~~w~Use ~r~LMB ~w~To Hide Thes~n~~w~Boxes");
  3227. TextDrawSetString(text19, string);
  3228. TextDrawSetString(text20, string2);
  3229. TogglePlayerControllable(playerid, true);
  3230. return 0;
  3231. }
  3232. if(IsPlayerLogged[playerid] == 0)
  3233. {
  3234. SendClientMessage(playerid, ERROR, "Login before talking!");
  3235. return false;
  3236. }
  3237. else if(IsPlayerLogged[playerid] == 1) return true;
  3238. return true;
  3239. }
  3240.  
  3241. public OnPlayerCommandText(playerid, cmdtext[])
  3242. {
  3243. new cmd[256], idx, tmp[256], name[MAX_PLAYER_NAME], file[256];
  3244. new giveplayerid;
  3245. GetPlayerName(playerid, name, sizeof(name));
  3246. format(file, sizeof(file), "%s.runix", name);
  3247. cmd = strtok(cmdtext, idx,true);
  3248. new playermoney;
  3249. new sendername[MAX_PLAYER_NAME];
  3250. new giveplayer[MAX_PLAYER_NAME];
  3251. new moneys;
  3252.  
  3253. dcmd(taze, 4, cmdtext);
  3254. dcmd(i, 1, cmdtext);
  3255. dcmd(lottohelp,9,cmdtext);
  3256. dcmd(lotto,9,cmdtext);
  3257. dcmd(mylotto,7,cmdtext);
  3258. dcmd(lottotest,9,cmdtext);
  3259. dcmd(refuel,6,cmdtext);
  3260. dcmd(giveweapon,10,cmdtext);
  3261. dcmd(car,3,cmdtext);
  3262. dcmd(hit, 3, cmdtext);
  3263.  
  3264.  
  3265. dcmd(kick, 4, cmdtext);
  3266. dcmd(ban, 3, cmdtext);
  3267. dcmd(freeze, 6, cmdtext);
  3268. dcmd(unfreeze, 8, cmdtext);
  3269. dcmd(akill, 5, cmdtext);
  3270. dcmd(mute, 4, cmdtext);
  3271. dcmd(unmute, 6, cmdtext);
  3272. dcmd(admins, 6, cmdtext);
  3273. dcmd(setlevel, 8, cmdtext);
  3274. dcmd(setscore, 8, cmdtext);
  3275. dcmd(jetpack, 7, cmdtext);
  3276. dcmd(slap, 4, cmdtext);
  3277. dcmd(announce, 8, cmdtext);
  3278. dcmd(spec, 4, cmdtext);
  3279. dcmd(specoff, 7, cmdtext);
  3280. dcmd(agivemoney, 10, cmdtext);
  3281. dcmd(goto, 4, cmdtext);
  3282. dcmd(gethere, 7, cmdtext);
  3283. dcmd(ahelp, 5, cmdtext);
  3284. dcmd(report, 6, cmdtext);
  3285. dcmd(sethp, 5, cmdtext);
  3286.  
  3287. if(strcmp(cmd, "/register", true) == 0)
  3288. {
  3289. tmp = strtok(cmdtext, idx,true);
  3290. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /register [PASSWORD]");
  3291. format(file,sizeof(file),"%s.runix", name);
  3292. if(!fexist(file))
  3293. {
  3294. dini_Create(file);
  3295. dini_IntSet(file, "Password", udb_hash(tmp));
  3296. dini_IntSet(file, "Money", 2500);
  3297. dini_IntSet(file, "Score", 1);
  3298. dini_IntSet(file, "Bank", 1000);
  3299. dini_IntSet(file, "RobSkill", 1);
  3300. dini_IntSet(file, "TerSkill", 1);
  3301. dini_IntSet(file, "Admin", 0);
  3302. dini_IntSet(file, "Warnings", 0);
  3303. dini_IntSet(file, "WantedLevel", 0);
  3304. dini_IntSet(file, "Jail", 0);
  3305. dini_IntSet(file, "RentalOwner", 0);
  3306. dini_IntSet(file, "Drugs", 0);
  3307. dini_IntSet(file, "C4", 0);
  3308. dini_IntSet(file, "Skin", -1);
  3309. SendClientMessage(playerid, GREY, "Thanks for registering!");
  3310. SendClientMessage(playerid, GREY, "You may now login.");
  3311. SendClientMessage(playerid, GREY, "To do so, type: /login [PASSWORD]");
  3312. GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
  3313. }
  3314. else SendClientMessage(playerid, ERROR, "This account is already registered in our system. Use: /login [PASSWORD]");
  3315. return true;
  3316. }
  3317.  
  3318. if(strcmp(cmd, "/login", true) == 0)
  3319. {
  3320. new tmp2[256];
  3321. tmp = strtok(cmdtext, idx,true);
  3322. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /login [PASSWORD]");
  3323. else
  3324. {
  3325. if(IsPlayerLogged[playerid] == 1) return SendClientMessage(playerid, ERROR, "You are already logged in.");
  3326. else
  3327. {
  3328. if(fexist(file))
  3329. {
  3330. tmp2 = dini_Get(file, "Password");
  3331. if(udb_hash(tmp) != strval(tmp2)) return SendClientMessage(playerid, ERROR, "Wrong password.");
  3332. else
  3333. {
  3334. IsPlayerLogged[playerid] = 1;
  3335. SetPlayerMoney(playerid, dini_Int(file, "Money"));
  3336. SetPlayerScore(playerid, dini_Int(file, "Score"));
  3337. PlayerSkin[playerid] = dini_Int(file,"Skin");
  3338. SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
  3339. SendClientMessage(playerid, GREY, "You are now logged in. Your status will be saved on your logout.");
  3340. GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
  3341. }
  3342. }
  3343. else return SendClientMessage(playerid, ERROR, "This username was not found on our database. Use: /register [PASSWORD]");
  3344. }
  3345. }
  3346. return true;
  3347. }
  3348.  
  3349. if(strcmp(cmd, "/deposit", true) == 0)
  3350. {
  3351. tmp = strtok(cmdtext, idx,true);
  3352. if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  3353. {
  3354. if(BankRecentlyUsed[playerid] == 0)
  3355. {
  3356. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /deposit [AMOUNT]");
  3357. else
  3358. {
  3359. if(strval(tmp) == 0) return SendClientMessage(playerid, ERROR, "The amount must be higher than 1.");
  3360. else
  3361. {
  3362. if(strval(tmp) > GetPlayerMoney(playerid)) return SendClientMessage(playerid, ERROR, "You do not have this amount.");
  3363. else
  3364. {
  3365. new string[150], string2[150];
  3366. SetPlayerBankCash(playerid, GetPlayerBankCash(playerid)+strval(tmp));
  3367. SendClientMessage(playerid, GREY, "|_| Bank |_|");
  3368. format(string, sizeof(string), "Amount deposited: $%d", strval(tmp));
  3369. format(string2, sizeof(string2), "Current state: $%d", GetPlayerBankCash(playerid));
  3370. SendClientMessage(playerid, WHITE, string);
  3371. SendClientMessage(playerid, WHITE, string2);
  3372. GivePlayerMoney(playerid, -strval(tmp));
  3373. printf("%s[ID:%d] deposited $%d. Location: Bank", name, playerid, strval(tmp));
  3374. return true;
  3375. }
  3376. }
  3377. }
  3378. }
  3379. else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3380. }
  3381. else return SendClientMessage(playerid, ERROR, "You must be on the Bank to use this command!");
  3382. }
  3383.  
  3384. if(strcmp(cmd, "/withdraw", true) == 0)
  3385. {
  3386. tmp = strtok(cmdtext, idx,true);
  3387. 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))
  3388. {
  3389. if(BankRecentlyUsed[playerid] == 0)
  3390. {
  3391. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /withdraw [AMOUNT]");
  3392. else
  3393. {
  3394. if(strval(tmp) == 0) return SendClientMessage(playerid, ERROR, "The amount must be higher than 1.");
  3395. else
  3396. {
  3397. if(GetPlayerBankCash(playerid) < strval(tmp)) return SendClientMessage(playerid, ERROR, "You do not have this amount on your Bank Account.");
  3398. else
  3399. {
  3400. new string[150], string2[150];
  3401. SetPlayerBankCash(playerid, GetPlayerBankCash(playerid)-strval(tmp));
  3402. SendClientMessage(playerid, GREY, "|_| Bank |_|");
  3403. format(string, sizeof(string), "Amount withdrawn: $%d", strval(tmp));
  3404. format(string2, sizeof(string2), "Current state: $%d", GetPlayerBankCash(playerid));
  3405. SendClientMessage(playerid, WHITE, string);
  3406. SendClientMessage(playerid, WHITE, string2);
  3407. GivePlayerMoney(playerid, strval(tmp));
  3408. printf("%s[ID:%d] withdrawn $%d. Location: Bank", name, playerid, strval(tmp));
  3409. return true;
  3410. }
  3411. }
  3412. }
  3413. }
  3414. else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3415. }
  3416. else return SendClientMessage(playerid, ERROR, "You must be on the Bank or in an ATM to use this command!");
  3417. }
  3418.  
  3419. if(strcmp(cmdtext, "/state", true) == 0)
  3420. {
  3421. 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))
  3422. {
  3423. if(BankRecentlyUsed[playerid] == 0)
  3424. {
  3425. new string[150];
  3426. SendClientMessage(playerid, GREY, "|_| Bank |_|");
  3427. format(string, sizeof(string), "You currently have $%d on your Bank Account.", GetPlayerBankCash(playerid));
  3428. SendClientMessage(playerid, WHITE, string);
  3429. return true;
  3430. }
  3431. else if(BankRecentlyUsed[playerid] >= 1) SendClientMessage(playerid, ERROR, "You have recently robbed the Bank."); return true;
  3432. }
  3433. else return SendClientMessage(playerid, ERROR, "You must be on the Bank or in an ATM to use this command!");
  3434. }
  3435.  
  3436. if(strcmp(cmd, "/rob", true) == 0)
  3437. {
  3438. tmp = strtok(cmdtext, idx,true);
  3439. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /rob [ID]");
  3440. else
  3441. {
  3442. if(IsPlayerSpawned(playerid))
  3443. {
  3444. if(gTeam[playerid] == CIVILIAN)
  3445. {
  3446. if(strval(tmp) != playerid)
  3447. {
  3448. if(!IsPlayerInAnyVehicle(playerid))
  3449. {
  3450. if(!IsPlayerInAnyVehicle(strval(tmp)))
  3451. {
  3452. if(IsPlayerConnected(strval(tmp)))
  3453. {
  3454. if(GetPlayerMoney(strval(tmp) > 0))
  3455. {
  3456. if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 8)
  3457. {
  3458. if(RecentlyRobbed[strval(tmp)] == 0)
  3459. {
  3460. if(GetPlayerMoney(strval(tmp)) > 4999)
  3461. {
  3462. new string[250], string2[250], string3[250], robbedcash, robbedname[MAX_PLAYER_NAME], robbername[MAX_PLAYER_NAME];
  3463. robbedcash = random(5000);
  3464. GetPlayerName(playerid, robbername, sizeof(robbername));
  3465. GetPlayerName(strval(tmp), robbedname, sizeof(robbedname));
  3466. format(string, sizeof(string), "You have robbed $%d from %s[ID:%d]", robbedcash, robbedname, strval(tmp));
  3467. SendClientMessage(playerid, SERVER_COLOR, string);
  3468. format(string2, sizeof(string2), "%s[ID:%d] has robbed $%d from you!", robbername, playerid, robbedcash);
  3469. SendClientMessage(strval(tmp), RED, string2);
  3470. format(string3, sizeof(string3), "[HQ] %s has robbed $%d from %s.", robbername, robbedname, robbedcash);
  3471. SendRadioMessageToCops(string3);
  3472. GivePlayerMoney(playerid, robbedcash);
  3473. GivePlayerMoney(strval(tmp), -robbedcash);
  3474. RecentlyRobbed[strval(tmp)] = 60;
  3475. GivePlayerScore(playerid, 1);
  3476. if(gTeam[strval(tmp)] == CIVILIAN)
  3477. {
  3478. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 2);
  3479. }
  3480. if(gTeam[strval(tmp)] == COP || gTeam[strval(tmp)] == SWAT || gTeam[strval(tmp)] == FBI || gTeam[strval(tmp)] == ARMY || gTeam[strval(tmp)] == Medic)
  3481. {
  3482. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  3483. }
  3484. SetPlayerRobbingSkill(playerid, GetPlayerRobbingSkill(playerid)+1);
  3485. return true;
  3486. }
  3487. else if(GetPlayerMoney(strval(tmp)) < 4999)
  3488. {
  3489. new string[250], recentlyrobber[MAX_PLAYER_NAME];
  3490. GetPlayerName(strval(tmp), recentlyrobber, sizeof(recentlyrobber));
  3491. format(string, sizeof(string), "%s[ID:%d] don't have enought money.", recentlyrobber, strval(tmp));
  3492. return SendClientMessage(playerid, ERROR, string);
  3493. }
  3494. }
  3495. else if(RecentlyRobbed[strval(tmp)] > 0)
  3496. {
  3497. new string[250], recentlyrobber[MAX_PLAYER_NAME];
  3498. GetPlayerName(strval(tmp), recentlyrobber, sizeof(recentlyrobber));
  3499. format(string, sizeof(string), "%s[ID:%d] has been robbed recently. Try again later.", recentlyrobber, strval(tmp));
  3500. return SendClientMessage(playerid, ERROR, string);
  3501. }
  3502. else
  3503. {
  3504. new string[250], faraway[MAX_PLAYER_NAME];
  3505. GetPlayerName(strval(tmp), faraway, sizeof(faraway));
  3506. format(string, sizeof(string), "%s[ID:%d] is too far away.", faraway, strval(tmp));
  3507. return SendClientMessage(playerid, ERROR, string);
  3508. }
  3509. }
  3510. else if(GetPlayerMoney(strval(tmp)) == 0)
  3511. {
  3512. new string[250], poor[MAX_PLAYER_NAME];
  3513. GetPlayerName(strval(tmp), poor, sizeof(poor));
  3514. format(string, sizeof(string), "%s[ID:%d] does not have any money.", poor, strval(tmp));
  3515. return SendClientMessage(playerid, ERROR, string);
  3516. }
  3517. }
  3518. }
  3519. else if(!IsPlayerConnected(strval(tmp)))
  3520. {
  3521. new string[250];
  3522. format(string, sizeof(string), "ID %d is not connected.", strval(tmp));
  3523. return SendClientMessage(playerid, ERROR, string);
  3524. }
  3525. }
  3526. else if(IsPlayerInAnyVehicle(strval(tmp)))
  3527. {
  3528. new string[250], invehicle[MAX_PLAYER_NAME];
  3529. GetPlayerName(strval(tmp), invehicle, sizeof(invehicle));
  3530. format(string, sizeof(string), "%s[ID:%d] is in a vehicle. You cannot rob him.", invehicle, strval(tmp));
  3531. return SendClientMessage(playerid, ERROR, string);
  3532. }
  3533. }
  3534. else if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ERROR, "You cannot rob anyone from inside a vehicle.");
  3535. }
  3536. else return SendClientMessage(playerid, ERROR, "You cannot rob yourself.");
  3537. }
  3538. else return SendClientMessage(playerid, ERROR, "Only CIVILIANS can use this command!");
  3539. }
  3540. }
  3541. return 1;
  3542. }
  3543.  
  3544.  
  3545. if(strcmp(cmd, "/heal", true) == 0)
  3546. {
  3547. tmp = strtok(cmdtext, idx,true);
  3548. new Float:health;
  3549. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /heal [ID]");
  3550. else
  3551. {
  3552. GetPlayerHealth(strlen(tmp), health);
  3553. if(IsPlayerSpawned(playerid))
  3554. {
  3555. if(gTeam[playerid] == Medic)
  3556. {
  3557. if(strval(tmp) != playerid)
  3558. {
  3559. if(!IsPlayerInAnyVehicle(playerid))
  3560. {
  3561. if(!IsPlayerInAnyVehicle(strval(tmp)))
  3562. {
  3563. if(IsPlayerConnected(strval(tmp)))
  3564. {
  3565. if(GetPlayerMoney(strval(tmp) > 499))
  3566. {
  3567. if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 3)
  3568. {
  3569. if(health < 100)
  3570. {
  3571. new string[250], string2[250], healedname[MAX_PLAYER_NAME], medicname[MAX_PLAYER_NAME];
  3572. GetPlayerName(playerid, medicname, sizeof(medicname));
  3573. GetPlayerName(strval(tmp), healedname, sizeof(healedname));
  3574. format(string, sizeof(string), "You have healed from %s[ID:%d]! You give him $ 500!", medicname, playerid);
  3575. SendClientMessage(strval(tmp), SERVER_COLOR, string);
  3576. format(string2, sizeof(string2), "You heal %s[ID:%d]! You received $ 500", healedname, strval(tmp));
  3577. SendClientMessage(playerid, SERVER_COLOR, string2);
  3578. GivePlayerMoney(playerid, 500);
  3579. GivePlayerMoney(strval(tmp), -500);
  3580. SetPlayerHealth(strval(tmp), 100);
  3581. GivePlayerScore(playerid, 1);
  3582. }
  3583. else if(health == 100) return SendClientMessage(playerid, ERROR, "You seem OK to me.");
  3584. }
  3585. else
  3586. {
  3587. new string[250], faraway[MAX_PLAYER_NAME];
  3588. GetPlayerName(strval(tmp), faraway, sizeof(faraway));
  3589. format(string, sizeof(string), "%s[ID:%d] is too far away.", faraway, strval(tmp));
  3590. return SendClientMessage(playerid, ERROR, string);
  3591. }
  3592. }
  3593. else if(GetPlayerMoney(strval(tmp)) == 0)
  3594. {
  3595. new string[250], poor[MAX_PLAYER_NAME];
  3596. GetPlayerName(strval(tmp), poor, sizeof(poor));
  3597. format(string, sizeof(string), "%s[ID:%d] does not have any money.", poor, strval(tmp));
  3598. return SendClientMessage(playerid, ERROR, string);
  3599. }
  3600. }
  3601. }
  3602. else if(!IsPlayerConnected(strval(tmp)))
  3603. {
  3604. new string[250];
  3605. format(string, sizeof(string), "ID %d is not connected.", strval(tmp));
  3606. return SendClientMessage(playerid, ERROR, string);
  3607. }
  3608. }
  3609. else if(IsPlayerInAnyVehicle(strval(tmp)))
  3610. {
  3611. new string[250], invehicle[MAX_PLAYER_NAME];
  3612. GetPlayerName(strval(tmp), invehicle, sizeof(invehicle));
  3613. format(string, sizeof(string), "%s[ID:%d] is in a vehicle. You cannot heal him.", invehicle, strval(tmp));
  3614. return SendClientMessage(playerid, ERROR, string);
  3615. }
  3616. }
  3617. else if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ERROR, "You cannot heal anyone from inside a vehicle.");
  3618. }
  3619. else return SendClientMessage(playerid, ERROR, "You cannot heal yourself.");
  3620. }
  3621. else return SendClientMessage(playerid, ERROR, "Only Medics can use this command!");
  3622. }
  3623. return 1;
  3624. }
  3625. if(strcmp(cmd,"/fish",true)==1)
  3626. {
  3627. tmp = strtok(cmdtext, idx,true);
  3628. new string[256];
  3629. return 1;
  3630. }
  3631.  
  3632. if(strcmp(cmd,"/animlist",true)==0)
  3633. {
  3634. HideDraw(playerid);
  3635. TextDrawShowForPlayer(playerid, CMDBOX);
  3636. TextDrawShowForPlayer(playerid, text25);
  3637. TextDrawShowForPlayer(playerid, text26);
  3638. TextDrawShowForPlayer(playerid, text27);
  3639. return 1;
  3640. }
  3641. if(strcmp(cmd, "/arrest", true) == 0 || strcmp(cmd, "/ar", true) == 0)
  3642. {
  3643. new string[250];
  3644. if(IsSpawned[playerid] == 0)
  3645. {
  3646. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  3647. return 1;
  3648. }
  3649. if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI)
  3650. {
  3651. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement officer ");
  3652. return 1;
  3653. }
  3654. tmp = strtok(cmdtext, idx,true);
  3655. if(!strlen(tmp))
  3656. {
  3657. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id)");
  3658. return 1;
  3659. }
  3660. giveplayerid = strval(tmp);
  3661. if(!IsNumeric(tmp))
  3662. {
  3663. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id) ID Must be a number");
  3664. return 1;
  3665. }
  3666. if(!IsPlayerConnected(giveplayerid))
  3667. {
  3668. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  3669. SendClientMessage(playerid, COLOR_ERROR, string);
  3670. return 1;
  3671. }
  3672. new oname[24];
  3673. new pname[24];
  3674. GetPlayerName(playerid,oname, 24);
  3675. GetPlayerName(giveplayerid, pname, 24);
  3676. if(GetPlayerWantedLevel(giveplayerid) <= 3)
  3677. {
  3678. format(string, sizeof(string), "%s(%d) Does not have a warrant. You cannot arrest a player without a warrant",pname,giveplayerid);
  3679. SendClientMessage(playerid,COLOR_ERROR,string);
  3680. return 1;
  3681. }
  3682. if(IsPlayerInAnyVehicle(playerid))
  3683. {
  3684. SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest a suspect if you are in a car");
  3685. return 1;
  3686. }
  3687. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10)
  3688. {
  3689. format(string, sizeof(string), "%s(%d) Is too far away. You cannot arrest that player",pname,giveplayerid);
  3690. SendClientMessage(playerid,COLOR_ERROR,string);
  3691. return 1;
  3692. }
  3693. if(IsSpawned[giveplayerid] == 0)
  3694. {
  3695. format(string, sizeof(string), "%s(%d) Is dead. You cannot arrest a dead body",pname,giveplayerid);
  3696. SendClientMessage(playerid,COLOR_ERROR,string);
  3697. return 1;
  3698. }
  3699. SetPlayerVirtualWorld(giveplayerid,0);
  3700. if(GetPlayerWantedLevel(playerid) >=1)
  3701. {
  3702. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command if you are wanted by the police");
  3703. return 1;
  3704. }
  3705. if(giveplayerid == playerid)
  3706. {
  3707. SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest yourself");
  3708. return 1;
  3709. }
  3710. new spawn = random(sizeof(PrisonSpawn)), string2[250], Float:health, copname[MAX_PLAYER_NAME], arrested[MAX_PLAYER_NAME];
  3711. GetPlayerName(playerid, copname, sizeof(copname));
  3712. GetPlayerName(strval(tmp), arrested, sizeof(arrested));
  3713. GetPlayerHealth(strval(tmp), health);
  3714. SendClientMessage(strval(tmp), GREY, "|_| San Andreas Police Dept. |_|");
  3715. format(string, sizeof(string), "Officer %s has arrested you.", copname);
  3716. SendClientMessage(strval(tmp), WHITE, string);
  3717. ResetPlayerWeapons(strval(tmp));
  3718. SetPlayerPos(strval(tmp), PrisonSpawn[spawn][0], PrisonSpawn[spawn][1], PrisonSpawn[spawn][2]);
  3719. SetPlayerFacingAngle(strval(tmp), PrisonSpawn[spawn][3]);
  3720. SetCameraBehindPlayer(strval(tmp));
  3721. if(GetPlayerWantedLevel(strval(tmp)) >= 4 && GetPlayerWantedLevel(strval(tmp)) <= 5)
  3722. {
  3723. PrisonTime[strval(tmp)] = 60;
  3724. GivePlayerMoney(playerid,25000);
  3725. GivePlayerScore(playerid,1);
  3726. }
  3727. else if(GetPlayerWantedLevel(strval(tmp)) >= 6 && GetPlayerWantedLevel(strval(tmp)) <= 8)
  3728. {
  3729. PrisonTime[strval(tmp)] = 120;
  3730. GivePlayerMoney(playerid,35000);
  3731. GivePlayerScore(playerid,1);
  3732. }
  3733. else if(GetPlayerWantedLevel(strval(tmp)) >= 9 && GetPlayerWantedLevel(playerid) <= 11)
  3734. {
  3735. PrisonTime[strval(tmp)] = 180;
  3736. GivePlayerMoney(playerid,45000);
  3737. GivePlayerScore(playerid,2);
  3738. }
  3739. else if(GetPlayerWantedLevel(strval(tmp)) >= 12 && GetPlayerWantedLevel(strval(tmp)) <= 14)
  3740. {
  3741. PrisonTime[strval(tmp)] = 240;
  3742. GivePlayerMoney(playerid,55000);
  3743. GivePlayerScore(playerid,2);
  3744. }
  3745. else if(GetPlayerWantedLevel(strval(tmp)) >= 15)
  3746. {
  3747. PrisonTime[strval(tmp)] = 300;
  3748. GivePlayerMoney(playerid,65000);
  3749. GivePlayerScore(playerid,3);
  3750. }
  3751. SetPlayerWantedLevel(strval(tmp), 0);
  3752. SetPlayerInterior(strval(tmp),3);
  3753. SetPlayerHealth(strval(tmp),99999);
  3754. TogglePlayerControllable(strval(tmp), true);
  3755. SetPlayerJailed(strval(tmp), true);
  3756. format(string2, sizeof(string2), "Officer %s[ID:%d] arrested %s[ID:%d].", copname, playerid, arrested, strval(tmp));
  3757. Announce(string2);
  3758. if(health <= 90)
  3759. {
  3760. SendClientMessage(strval(tmp), GREY, "|_| San Andreas Police Dept. |_|");
  3761. SendClientMessage(strval(tmp), WHITE, "SAPD has given you some food.");
  3762. SetPlayerHealth(strval(tmp), health+10);
  3763. ApplyAnimation(strval(tmp), "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  3764. }
  3765. return 1;
  3766. }
  3767.  
  3768. if(strcmp(cmd, "/givecash", true) == 0) {
  3769. tmp = strtok(cmdtext, idx,true);
  3770. new string[256];
  3771. if(!strlen(tmp)) {
  3772. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
  3773. return 1;
  3774. }
  3775. giveplayerid = strval(tmp);
  3776.  
  3777. tmp = strtok(cmdtext, idx,true);
  3778. if(!strlen(tmp)) {
  3779. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");
  3780. return 1;
  3781. }
  3782. moneys = strval(tmp);
  3783.  
  3784. //printf("givecash_command: %d %d",giveplayerid,moneys);
  3785.  
  3786.  
  3787. if (IsPlayerConnected(giveplayerid)) {
  3788. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3789. GetPlayerName(playerid, sendername, sizeof(sendername));
  3790. playermoney = GetPlayerMoney(playerid);
  3791. if (moneys > 0 && playermoney >= moneys) {
  3792. GivePlayerMoney(playerid, (0 - moneys));
  3793. GivePlayerMoney(giveplayerid, moneys);
  3794. format(string, sizeof(string), "You have sent %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
  3795. SendClientMessage(playerid, COLOR_YELLOW, string);
  3796. format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
  3797. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  3798. printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
  3799. }
  3800. else {
  3801. SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");
  3802. }
  3803. }
  3804. else {
  3805. format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3806. SendClientMessage(playerid, COLOR_YELLOW, string);
  3807. }
  3808. return 1;
  3809. }
  3810.  
  3811. if(strcmp(cmd, "/ticket", true) == 0 || strcmp(cmd, "/tk", true) == 0)
  3812. {
  3813. new string[128];
  3814. if(IsSpawned[playerid] == 0)
  3815. {
  3816. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  3817. return 1;
  3818. }
  3819. if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI)
  3820. {
  3821. SendClientMessage(playerid,COLOR_ERROR,"You are not Law Enforcement");
  3822. return 1;
  3823. }
  3824. tmp = strtok(cmdtext, idx,true);
  3825. if(!strlen(tmp)) {
  3826. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tk (id)");
  3827. return 1;
  3828. }
  3829. if(!IsNumeric(tmp))
  3830. {
  3831. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tk (id) ID Must be a number");
  3832. return 1;
  3833. }
  3834. giveplayerid = strval(tmp);
  3835. if(!IsPlayerConnected(giveplayerid))
  3836. {
  3837. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  3838. SendClientMessage(playerid, COLOR_ERROR, string);
  3839. return 1;
  3840. }
  3841. new oname[24];
  3842. new pname[24];
  3843. GetPlayerName(playerid,oname, 24);
  3844. GetPlayerName(giveplayerid, pname, 24);
  3845. if(GetPlayerWantedLevel(giveplayerid) == 0)
  3846. {
  3847. format(string, sizeof(string), "%s(%d) Is innocent. You cannot issue a ticket!",pname,giveplayerid);
  3848. SendClientMessage(playerid,COLOR_ERROR,string);
  3849. return 1;
  3850. }
  3851.  
  3852. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10)
  3853. {
  3854. format(string, sizeof(string), "%s(%d) Is too far away. You cannot issue a ticket",pname,giveplayerid);
  3855. SendClientMessage(playerid,COLOR_ERROR,string);
  3856. return 1;
  3857. }
  3858. if(GetPlayerWantedLevel(giveplayerid) == 1)
  3859. {
  3860. format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3861. SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3862. 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);
  3863. GameTextForPlayer(giveplayerid, string,10000, 5);
  3864. ticketmen[giveplayerid] = playerid;
  3865. tkat[giveplayerid] = 1;
  3866. SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3867. return 1;
  3868. }
  3869. if(GetPlayerWantedLevel(giveplayerid) == 2)
  3870. {
  3871. format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3872. SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3873. 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);
  3874. GameTextForPlayer(giveplayerid, string,10000, 5);
  3875. ticketmen[giveplayerid] = playerid;
  3876. tkat[giveplayerid] = 2;
  3877. SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3878. return 1;
  3879. }
  3880. if(GetPlayerWantedLevel(giveplayerid) == 3)
  3881. {
  3882. format(string, sizeof(string), "Officer %s(%d) has give you a ticket. Type /pay for pay! ",oname,playerid);
  3883. SendClientMessage(giveplayerid,LIGHT_BLUE, string);
  3884. 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);
  3885. GameTextForPlayer(giveplayerid, string,10000, 5);
  3886. ticketmen[giveplayerid] = playerid;
  3887. tkat[giveplayerid] = 3;
  3888. SendClientMessage(playerid,LIGHT_BLUE,"You have give an ticket");
  3889. }
  3890. if(GetPlayerWantedLevel(giveplayerid) >= 4)
  3891. {
  3892. 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);
  3893. GameTextForPlayer(playerid, string,10000, 5);
  3894. }
  3895. return 1;
  3896. }
  3897.  
  3898. if(strcmp(cmd, "/pay", true) == 0)
  3899. {
  3900. new oname[24];
  3901. new string[128];
  3902. GetPlayerName(playerid,oname, 24);
  3903. if(tkat[playerid] == 0)
  3904. {
  3905. SendClientMessage(playerid,ERROR,"You have no tickets");
  3906. tkat[playerid] = 0;
  3907. }else
  3908. if(tkat[playerid] == 1)
  3909. {
  3910. if(GetPlayerMoney(playerid) >= 500)
  3911. {
  3912. GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3913. format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+500$ and +1score",oname,playerid);
  3914. GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3915. GivePlayerMoney(ticketmen[playerid],500);
  3916. GivePlayerScore(ticketmen[playerid],1);
  3917. GivePlayerMoney(playerid,-500);
  3918. tkat[playerid] = 0;
  3919. SetPlayerWantedLevel(playerid,0);
  3920. }
  3921. }else
  3922. if(tkat[playerid] == 2)
  3923. {
  3924. if(GetPlayerMoney(playerid) >= 1500)
  3925. {
  3926. GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3927. format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+1500$ and +1score",oname,playerid);
  3928. GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3929. GivePlayerMoney(ticketmen[playerid],1500);
  3930. GivePlayerScore(ticketmen[playerid],1);
  3931. GivePlayerMoney(playerid,-1500);
  3932. tkat[playerid] = 0;
  3933. SetPlayerWantedLevel(playerid,0);
  3934. }
  3935. }else
  3936. if(tkat[playerid] == 3)
  3937. {
  3938. if(GetPlayerMoney(playerid) >= 2500)
  3939. {
  3940. GameTextForPlayer(playerid, "You pay the ticket",4000, 5);
  3941. format(string, sizeof(string), "~r~%s(%d)~n~~w~has pay the ticket!~n~+2500$ and +2score",oname,playerid);
  3942. GameTextForPlayer(ticketmen[playerid], string,4000, 5);
  3943. GivePlayerMoney(ticketmen[playerid],2500);
  3944. GivePlayerScore(ticketmen[playerid],2);
  3945. GivePlayerMoney(playerid,-2500);
  3946. tkat[playerid] = 0;
  3947. SetPlayerWantedLevel(playerid,0);
  3948. }
  3949. }else
  3950. if(tkat[playerid] > 3)
  3951. {
  3952. SendClientMessage(playerid,ERROR,"You have no tickets");
  3953. tkat[playerid] = 0;
  3954. }
  3955. return 1;
  3956. }
  3957.  
  3958. if(strcmp(cmdtext, "/robzip", true) == 0)
  3959. {
  3960. if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  3961. {
  3962. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  3963. {
  3964. if(ZipRecentlyRobbed == 0)
  3965. {
  3966. new chances = random(500);
  3967. if(chances >= 0 && chances <= 400)
  3968. {
  3969. new string[250];
  3970. RobZip[playerid] = 20;
  3971. ZipRecentlyRobbed = 250;
  3972. format(string, sizeof(string), "%s[ID:%d] started a robbery at ZIP!", name, playerid);
  3973. Announce(string);
  3974. return true;
  3975. }
  3976. else if(chances >= 401 && chances <= 500)
  3977. {
  3978. new copmsg[250];
  3979. SendClientMessage(playerid, ERROR, "Your attempt to rob ZIP failed!");
  3980. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  3981. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  3982. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob ZIP.", name);
  3983. SendRadioMessageToCops(copmsg);
  3984. ZipRecentlyRobbed = 250;
  3985. return true;
  3986. }
  3987. }
  3988. else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "ZIP has been robbed recently!");
  3989. }
  3990. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  3991. }
  3992. else return SendClientMessage(playerid, ERROR, "You're not at ZIP.");
  3993. }
  3994.  
  3995. if(strcmp(cmdtext, "/roburban", true) == 0)
  3996. {
  3997. if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  3998. {
  3999. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  4000. {
  4001. if(UrbanRecentlyRobbed == 0)
  4002. {
  4003. new chances = random(500);
  4004. if(chances >= 0 && chances <= 400)
  4005. {
  4006. new string[250];
  4007. RobUrban[playerid] = 20;
  4008. UrbanRecentlyRobbed = 250;
  4009. format(string, sizeof(string), "%s[ID:%d] started a robbery at SubUrban!", name, playerid);
  4010. Announce(string);
  4011. return true;
  4012. }
  4013. else if(chances >= 401 && chances <= 500)
  4014. {
  4015. new copmsg[250];
  4016. SendClientMessage(playerid, ERROR, "Your attempt to rob SubUrban failed!");
  4017. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  4018. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  4019. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob SubUrban.", name);
  4020. SendRadioMessageToCops(copmsg);
  4021. UrbanRecentlyRobbed = 250;
  4022. return true;
  4023. }
  4024. }
  4025. else if(ZipRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "SubUrban has been robbed recently!");
  4026. }
  4027. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4028. }
  4029. else return SendClientMessage(playerid, ERROR, "You're not at SubUrban.");
  4030. }
  4031.  
  4032. if(strcmp(cmdtext, "/robatm", true) == 0)
  4033. {
  4034. 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))
  4035. {
  4036. if(ATMRecentlyRobbed == 0)
  4037. {
  4038. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != FBI && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4039. {
  4040. if(!IsPlayerInAnyVehicle(playerid))
  4041. {
  4042. new chances = random(100);
  4043. if(chances >= 0 && chances <= 60)
  4044. {
  4045. new cash = random(42562), robbername[MAX_PLAYER_NAME], robbermsg[250], copmsg[250];
  4046. ATMRecentlyRobbed = 150;
  4047. GivePlayerMoney(playerid, cash);
  4048. GivePlayerScore(playerid, 1);
  4049. GetPlayerName(playerid, robbername, sizeof(robbername));
  4050. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 4);
  4051. format(robbermsg, sizeof(robbermsg), "You robbed the ATM. You got $%d. Watch out for the police!", cash);
  4052. format(copmsg, sizeof(copmsg), "[HQ] %s has robbed $%d from an ATM Machine. Location: %s", robbername, cash, ReturnPlayerZone(playerid));
  4053. SendRadioMessageToCops(copmsg);
  4054. SendClientMessage(playerid, WHITE, robbermsg);
  4055. GivePlayerScore(playerid, 1);
  4056. printf("%s[ID:%d] robbed $%d from an ATM.", name, playerid, cash);
  4057. return true;
  4058. }
  4059. else if(chances >= 61 && chances <= 100)
  4060. {
  4061. SendClientMessage(playerid, ERROR, "You couldn't rob any money this time. Try again later.");
  4062. ATMRecentlyRobbed = 100;
  4063. printf("%s[ID:%d] failed to rob an ATM.", name, playerid);
  4064. return true;
  4065. }
  4066. }
  4067. else return SendClientMessage(playerid, ERROR, "You cannot rob an ATM from inside a vehicle.");
  4068. }
  4069. else return SendClientMessage(playerid, ERROR, "Your team cannot rob ATMs.");
  4070. }
  4071. else if(ATMRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "The ATM network has been robbed recently.");
  4072. }
  4073. else return SendClientMessage(playerid, ERROR, "You must be on an ATM checkpoint to rob it.");
  4074. }
  4075.  
  4076. if(strcmp(cmdtext, "/robbank", true) == 0)
  4077. {
  4078. if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  4079. {
  4080. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4081. {
  4082. if(BankRecentlyRobbed == 0)
  4083. {
  4084. new chances = random(1000);
  4085. if(chances >= 0 && chances <= 350)
  4086. {
  4087. new string[250];
  4088. RobBank[playerid] = 60;
  4089. BankRecentlyRobbed = 100;
  4090. if(BK[playerid] == 2)
  4091. {
  4092. format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : Los Santos / Commerce", name, playerid);
  4093. Announce(string);
  4094. }
  4095. if(BK[playerid] == 3)
  4096. {
  4097. format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : San Fierro / DownTown", name, playerid);
  4098. Announce(string);
  4099. }
  4100. if(BK[playerid] == 1)
  4101. {
  4102. format(string, sizeof(string), "%s[ID:%d] started a Robbery at Bank! Location : Las Venturas / The Visage", name, playerid);
  4103. Announce(string);
  4104. }
  4105. BankRecentlyUsed[playerid] = 60;
  4106. return true;
  4107. }
  4108. else if(chances >= 351 && chances <= 1000)
  4109. {
  4110. new copmsg[250];
  4111. if(BK[playerid] == 2)
  4112. {
  4113. SendClientMessage(playerid, ERROR, "Your attempt to rob Los Santos Bank failed!");
  4114. }
  4115. if(BK[playerid] == 3)
  4116. {
  4117. SendClientMessage(playerid, ERROR, "Your attempt to rob San Fierro Bank failed!");
  4118. }
  4119. if(BK[playerid] == 1)
  4120. {
  4121. SendClientMessage(playerid, ERROR, "Your attempt to rob Las Venturas Bank failed!");
  4122. }
  4123. SendClientMessage(playerid, ERROR, "The Police are on their way to the Bank.");
  4124. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4125. if(BK[playerid] == 2)
  4126. {
  4127. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : Los Santos / Commerce", name);
  4128. SendRadioMessageToCops(copmsg);
  4129. }
  4130. if(BK[playerid] == 3)
  4131. {
  4132. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : San Fierro / DownTown", name);
  4133. SendRadioMessageToCops(copmsg);
  4134. }
  4135. if(BK[playerid] == 1)
  4136. {
  4137. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Bank. Location : Las Venturas / The Visage", name);
  4138. SendRadioMessageToCops(copmsg);
  4139. }
  4140. BankRecentlyRobbed = 200;
  4141. BankRecentlyUsed[playerid] = 60;
  4142. return true;
  4143. }
  4144. }
  4145. else if(BankRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Dave's Intl. Bank has been robbed recently!");
  4146. }
  4147. else return SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4148. }
  4149. else return SendClientMessage(playerid, ERROR, "You're not in the Bank.");
  4150. }
  4151.  
  4152. if(strcmp(cmdtext, "/robcasino", true) == 0)
  4153. {
  4154. if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragons))
  4155. {
  4156. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4157. {
  4158. if(D4RecentlyRobbed == 0)
  4159. {
  4160. new chances = random(500);
  4161. if(chances >= 0 && chances <= 400)
  4162. {
  4163. new string[250];
  4164. RobD4[playerid] = 60;
  4165. D4RecentlyRobbed = 150;
  4166. format(string, sizeof(string), "%s[ID:%d] started a robbery at 4Dragons Casino!", name, playerid);
  4167. Announce(string);
  4168. return true;
  4169. }
  4170. else if(chances >= 401 && chances <= 500)
  4171. {
  4172. new copmsg[250];
  4173. SendClientMessage(playerid, ERROR, "Your attempt to rob 4Dragons Casino failed!");
  4174. SendClientMessage(playerid, ERROR, "The Police are on their way to the Casino.");
  4175. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4176. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob 4Dragons Casino.", name);
  4177. SendRadioMessageToCops(copmsg);
  4178. D4RecentlyRobbed = 100;
  4179. return true;
  4180. }
  4181. }
  4182. else if(D4RecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Ammunation has been robbed recently!");
  4183. }
  4184. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4185. }
  4186. if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulas))
  4187. {
  4188. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  4189. {
  4190. if(CaRecentlyRobbed == 0)
  4191. {
  4192. new chances = random(500);
  4193. if(chances >= 0 && chances <= 400)
  4194. {
  4195. new string[250];
  4196. RobCa[playerid] = 60;
  4197. CaRecentlyRobbed = 150;
  4198. format(string, sizeof(string), "%s[ID:%d] started a robbery at Caligulas Casino!", name, playerid);
  4199. Announce(string);
  4200. return true;
  4201. }
  4202. else if(chances >= 401 && chances <= 500)
  4203. {
  4204. new copmsg[250];
  4205. SendClientMessage(playerid, ERROR, "Your attempt to rob Caligulas Casino failed!");
  4206. SendClientMessage(playerid, ERROR, "The Police are on their way to the Casino.");
  4207. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4208. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Caligulas Casino.", name);
  4209. SendRadioMessageToCops(copmsg);
  4210. CaRecentlyRobbed = 100;
  4211. return true;
  4212. }
  4213. }
  4214. else if(CaRecentlyRobbed > 0) return SendClientMessage(playerid, ERROR, "Caligulas has been robbed recently!");
  4215. }
  4216. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything.");
  4217. }
  4218. return 1;
  4219. }
  4220.  
  4221. if(strcmp(cmdtext, "/buyc4", true) == 0)
  4222. {
  4223. if(CPS_IsPlayerInCheckpoint(playerid, cpbombshop) || CPS_IsPlayerInCheckpoint(playerid, cplsbombshop) || CPS_IsPlayerInCheckpoint(playerid, cpsfbombshop))
  4224. {
  4225. if(GetPlayerC4Amount(playerid) <= 2)
  4226. {
  4227. if(GetPlayerMoney(playerid) >= 1000)
  4228. {
  4229. new string[250];
  4230. SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)+1);
  4231. GivePlayerMoney(playerid, -1000);
  4232. SendClientMessage(playerid, GREY, "|_| C4 Bought! |_|");
  4233. format(string, sizeof(string), "You bought a C4 block. You now carry %d block(s).", GetPlayerC4Amount(playerid));
  4234. SendClientMessage(playerid, WHITE, string);
  4235. return true;
  4236. }
  4237. else if(GetPlayerMoney(playerid) <= 999) return SendClientMessage(playerid, ERROR, "You do not have $1000 to buy a C4 block.");
  4238. }
  4239. else if(GetPlayerC4Amount(playerid) == 3) return SendClientMessage(playerid, ERROR, "You have enough blocks for now. (3 Blocks)");
  4240. }
  4241. else return SendClientMessage(playerid, ERROR, "You are not in the Bomb Shop.");
  4242. }
  4243.  
  4244. if(strcmp(cmd, "/blow", true) == 0)
  4245. {
  4246. tmp = strtok(cmdtext, idx,true);
  4247. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /blow [ID]");
  4248. if(gTeam[playerid] == CIVILIAN)
  4249. {
  4250. if(GetPlayerC4Amount(playerid) > 0)
  4251. {
  4252. if(playerid != strval(tmp))
  4253. {
  4254. if(GetDistanceBetweenPlayers(playerid, strval(tmp)) <= 4)
  4255. {
  4256. if(IsPlayerSpawned(playerid))
  4257. {
  4258. if(IsPlayerSpawned(strval(tmp)))
  4259. {
  4260. if(!IsPlayerInAnyVehicle(playerid))
  4261. {
  4262. if(!IsPlayerInAnyVehicle(strval(tmp)))
  4263. {
  4264. new terrorname[MAX_PLAYER_NAME], string[250], string2[256], copmsg[257], blown[MAX_PLAYER_NAME];
  4265. GetPlayerName(playerid, terrorname, sizeof(terrorname));
  4266. GetPlayerName(strval(tmp), blown, sizeof(blown));
  4267. SendClientMessage(strval(tmp), RED, "|_| C4 Planted On You |_|");
  4268. format(string, sizeof(string), "The Player %s[ID:%d] has planted a C4 on you.", terrorname, playerid);
  4269. SendClientMessage(strval(tmp), WHITE, string);
  4270. SendClientMessage(playerid, GREY, "|_| C4 Planted On Player |_|");
  4271. format(string2, sizeof(string2), "You have planted a C4 on %s[ID:%d].", blown, strval(tmp));
  4272. SendClientMessage(playerid, WHITE, string2);
  4273. SendClientMessage(playerid, WHITE, "Run for your life!");
  4274. SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)-1);
  4275. BlowTime[strval(tmp)] = 6;
  4276. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 3);
  4277. format(copmsg, sizeof(copmsg), "[HQ] The Player %s has blown %s with a C4.", terrorname, blown);
  4278. SendRadioMessageToCops(copmsg);
  4279. return true;
  4280. }
  4281. else
  4282. {
  4283. new errormsg[250];
  4284. new blown[MAX_PLAYER_NAME];
  4285. GetPlayerName(strval(tmp), blown, sizeof(blown));
  4286. format(errormsg, sizeof(errormsg), "%s[ID:%d] is in a Vehicle. You cannot blow the person inside a vehicle.", blown, strval(tmp));
  4287. SendClientMessage(playerid, ERROR, errormsg);
  4288. return true;
  4289. }
  4290. }
  4291. else return SendClientMessage(playerid, ERROR, "You cannot blow anyone from inside a vehicle.");
  4292. }
  4293. else
  4294. {
  4295. new errormsg[250];
  4296. new blown[MAX_PLAYER_NAME];
  4297. GetPlayerName(strval(tmp), blown, sizeof(blown));
  4298. format(errormsg, sizeof(errormsg), "%s[ID:%d] is dead.", blown, strval(tmp));
  4299. SendClientMessage(playerid, ERROR, errormsg);
  4300. return true;
  4301. }
  4302. }
  4303. else return SendClientMessage(playerid, ERROR, "You are dead.");
  4304. }
  4305. else return SendClientMessage(playerid, ERROR, "This player is too far away.");
  4306. }
  4307. else return SendClientMessage(playerid, ERROR, "You cannot blow yourself!");
  4308. }
  4309. else return SendClientMessage(playerid, ERROR, "You do not have any C4 left!");
  4310. }
  4311. else return SendClientMessage(playerid, ERROR, "Only CIVILIANS can blow people.");
  4312. }
  4313.  
  4314. if(strcmp(cmdtext, "/blowcar", true) == 0)
  4315. {
  4316. tmp = strtok(cmdtext, idx,true);
  4317. if(gTeam[playerid] == CIVILIAN)
  4318. {
  4319. if(GetPlayerC4Amount(playerid) > 0)
  4320. {
  4321. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  4322. {
  4323. new vehicleid = GetPlayerVehicleID(playerid), terrorname[MAX_PLAYER_NAME], string[250];
  4324. GetPlayerName(playerid, terrorname, sizeof(terrorname));
  4325. SetTimerEx("BlowCar", 5000, false, "d", vehicleid);
  4326. SetPlayerC4Amount(playerid, GetPlayerC4Amount(playerid)-1);
  4327. SendClientMessage(playerid, GREY, "|_| C4 Planted |_|");
  4328. SendClientMessage(playerid, WHITE, "You've planted a C4 in this vehicle.");
  4329. SendClientMessage(playerid, WHITE, "Run for your life: The C4 blows in 5 seconds!");
  4330. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 5);
  4331. for(new i = 0; i < MAX_PLAYERS; i++)
  4332. {
  4333. if(IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == vehicleid)
  4334. {
  4335. format(string, sizeof(string), "The Player %s[ID:%d] has planted a C4 on this vehicle. Jump off it!", terrorname, playerid);
  4336. SendClientMessage(i, RED, string);
  4337. }
  4338. }
  4339. return true;
  4340. }
  4341. else return SendClientMessage(playerid, ERROR, "You must be passenger in order to plant a C4 on this vehicle.");
  4342. }
  4343. else return SendClientMessage(playerid, ERROR, "You do not have any C4 left.");
  4344. }
  4345. else return SendClientMessage(playerid, ERROR, "Only terrorists can blow cars.");
  4346. }
  4347.  
  4348. if(strcmp(cmdtext, "/cmds", true) == 0)
  4349. {
  4350. HideDraw(playerid);
  4351. TextDrawShowForPlayer(playerid, CMDBOX);
  4352. TextDrawShowForPlayer(playerid, text21);
  4353. TextDrawShowForPlayer(playerid, text22);
  4354. TextDrawShowForPlayer(playerid, text23);
  4355. return true;
  4356. }
  4357.  
  4358. if(strcmp(cmd, "/help", true) == 0)
  4359. {
  4360. tmp = strtok(cmdtext, idx,true);
  4361. if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
  4362. new string[250];
  4363. format(string, sizeof(string), "[ ! ] %s[ID:%d] asks help:%s", name, playerid, strlen(tmp));
  4364. SendClientMessageToAdmins(string);
  4365. }
  4366.  
  4367. if(strcmp(cmdtext, "/healme", true) == 0)
  4368. {
  4369. new Float:health;
  4370. GetPlayerHealth(playerid, health);
  4371. if(CPS_IsPlayerInCheckpoint(playerid, cphospital) || CPS_IsPlayerInCheckpoint(playerid, cplshospital) || CPS_IsPlayerInCheckpoint(playerid, cpsfhospital))
  4372. {
  4373. if(gTeam[playerid] != Medic)
  4374. {
  4375. if(health < 100)
  4376. {
  4377. if(GetPlayerMoney(playerid) > 499)
  4378. {
  4379. SendClientMessage(playerid, DARK_GREEN, "|_| You've been Healed! |_|");
  4380. SendClientMessage(playerid, WHITE, "The doctors charged you in $500.");
  4381. GivePlayerMoney(playerid, -500);
  4382. return SetPlayerHealth(playerid, 100);
  4383. }
  4384. else return SendClientMessage(playerid, ERROR, "You do not have $500!");
  4385. }
  4386. else if(health == 100) return SendClientMessage(playerid, ERROR, "You seem OK to me.");
  4387. }
  4388. 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 )
  4389. {
  4390. if(health < 100)
  4391. {
  4392. SendClientMessage(playerid, DARK_GREEN, "|_| You've Healed Yourself! |_|");
  4393. SendClientMessage(playerid, WHITE, "You are a Medic. No need to pay.");
  4394. return SetPlayerHealth(playerid, 100);
  4395. }
  4396. }
  4397. else if(!CPS_IsPlayerInCheckpoint(playerid, cphospital) && gTeam[playerid] != Medic) return SendClientMessage(playerid, ERROR, "You are not in the Hospital.");
  4398. }
  4399. return 1;
  4400. }
  4401.  
  4402. if(strcmp(cmd,"/cw",true)==0)
  4403. {
  4404. if(IsSpawned[playerid] == 0) {
  4405. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4406. return 1;
  4407. }
  4408. if(!IsPlayerInAnyVehicle(playerid)) {
  4409. SendClientMessage(playerid, COLOR_ERROR, "You not in any vehicle. You cannot use this command");
  4410. return 1;
  4411. }
  4412.  
  4413. if(strlen(cmdtext) <= 4) {
  4414. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cw (msg)");
  4415. return 1;
  4416. }
  4417. new string[128];
  4418. new cwhisperid = GetPlayerVehicleID(playerid);
  4419. new output[150];
  4420. new pname[24];
  4421. GetPlayerName(playerid, pname, 24);
  4422. strmid(output,cmdtext,3,strlen(cmdtext));
  4423. format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  4424. printf("%s", string);
  4425. for(new i=0;i<MAX_PLAYERS;i++)
  4426. {
  4427. if(IsPlayerInAnyVehicle(i))
  4428. {
  4429. if(GetPlayerVehicleID(i) == cwhisperid)
  4430. {
  4431. format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  4432. SendClientMessage(i,COLOR_YELLOW,string);
  4433. }
  4434. }
  4435. }
  4436. return 1;
  4437. }
  4438.  
  4439. if(strcmp(cmd,"/w",true)==0)
  4440. {
  4441. new string[128];
  4442. if(IsSpawned[playerid] == 0) {
  4443. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4444. return 1;
  4445. }
  4446. if(strlen(cmdtext) <= 3) {
  4447. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /w (msg)");
  4448. return 1;
  4449. }
  4450. new output[150];
  4451. new pname[24];
  4452. GetPlayerName(playerid, pname, 24);
  4453. strmid(output,cmdtext,2,strlen(cmdtext));
  4454. format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  4455. printf("%s", string);
  4456. for(new i=0;i<MAX_PLAYERS;i++)
  4457. {
  4458. if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) {
  4459. {
  4460. format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  4461. SendClientMessage(i,COLOR_YELLOW,string);
  4462. }
  4463. }
  4464. }
  4465. return 1;
  4466. }
  4467.  
  4468.  
  4469.  
  4470. if(strcmp(cmd, "/dance", true) == 0) {
  4471. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  4472.  
  4473. tmp = strtok(cmdtext, idx,true);
  4474. if(!strlen(tmp)) {
  4475. SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  4476. return 1;
  4477. }
  4478.  
  4479. new dancestyle = strval(tmp);
  4480. if(dancestyle < 1 || dancestyle > 3) {
  4481. SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  4482. return 1;
  4483. }
  4484.  
  4485. if(dancestyle == 1) {
  4486. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  4487. } else if(dancestyle == 2) {
  4488. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  4489. } else if(dancestyle == 3) {
  4490. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  4491. }
  4492. return 1;
  4493. }
  4494. }
  4495.  
  4496. if(strcmp(cmd, "/drunk", true) == 0) {
  4497. LoopingAnim(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
  4498. return 1;
  4499. }
  4500.  
  4501.  
  4502. if (strcmp("/bomb", cmdtext, true) == 0) {
  4503. ClearAnimations(playerid);
  4504. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  4505. return 1;
  4506. }
  4507. if (strcmp("/laugh", cmdtext, true) == 0) {
  4508. OnePlayAnim(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
  4509. return 1;
  4510. }
  4511. if (strcmp("/lookout", cmdtext, true) == 0) {
  4512. OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
  4513. return 1;
  4514. }
  4515.  
  4516. if (strcmp("/robman", cmdtext, true) == 0) {
  4517. LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  4518. return 1;
  4519. }
  4520.  
  4521. if (strcmp("/crossarms", cmdtext, true) == 0) {
  4522. LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  4523. return 1;
  4524. }
  4525.  
  4526. if (strcmp("/lay", cmdtext, true) == 0) {
  4527. LoopingAnim(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  4528. return 1;
  4529. }
  4530.  
  4531. if (strcmp("/hide", cmdtext, true) == 0) {
  4532. LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  4533. return 1;
  4534. }
  4535.  
  4536. if (strcmp("/vomit", cmdtext, true) == 0) {
  4537. OnePlayAnim(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  4538. return 1;
  4539. }
  4540.  
  4541. if (strcmp("/eat", cmdtext, true) == 0) {
  4542. OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  4543. return 1;
  4544. }
  4545.  
  4546. if (strcmp("/wave", cmdtext, true) == 0) {
  4547. LoopingAnim(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  4548. return 1;
  4549. }
  4550.  
  4551. if (strcmp("/slapass", cmdtext, true) == 0) {
  4552. OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  4553. return 1;
  4554. }
  4555. if (strcmp("/deal", cmdtext, true) == 0) {
  4556. OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  4557. return 1;
  4558. }
  4559.  
  4560. if (strcmp("/crack", cmdtext, true) == 0) {
  4561. LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  4562. return 1;
  4563. }
  4564.  
  4565. if(strcmp(cmd, "/smoke", true) == 0)
  4566. {
  4567. if (!strlen(cmdtext[7])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
  4568. switch (cmdtext[7])
  4569. {
  4570. case '1': LoopingAnim(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  4571. case '2': LoopingAnim(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  4572. case '3': LoopingAnim(playerid,"SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
  4573. case '4': LoopingAnim(playerid,"SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0);
  4574. default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
  4575. }
  4576. return 1;
  4577. }
  4578.  
  4579. if (strcmp("/groundsit", cmdtext, true) == 0 || strcmp("/gro", cmdtext, true) == 0) {
  4580. LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  4581. return 1;
  4582. }
  4583.  
  4584. if(strcmp(cmd, "/chat", true) == 0) {
  4585. LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
  4586. return 1;
  4587. }
  4588.  
  4589. if(strcmp(cmd, "/fuckyou", true) == 0) {
  4590. OnePlayAnim(playerid,"PED","fucku",4.0,0,0,0,0,0);
  4591. return 1;
  4592. }
  4593.  
  4594. if(strcmp(cmd, "/taichi", true) == 0) {
  4595. LoopingAnim(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  4596. return 1;
  4597. }
  4598.  
  4599.  
  4600. if(strcmp(cmd, "/chairsit", true) == 0) {
  4601. LoopingAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
  4602. return 1;
  4603. }
  4604.  
  4605. if (strcmp("/cm", cmdtext, true, 3) == 0)
  4606. {
  4607. new string[128];
  4608. if(IsSpawned[playerid] == 0) {
  4609. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  4610. return 1;
  4611. }
  4612. if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != ARMY && gTeam[playerid] != FBI) {
  4613. SendClientMessage(playerid,COLOR_ROYALBLUE,"You ar not Police Officer!");
  4614. }
  4615. if(strlen(cmdtext) <= 4) {
  4616. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cm yourmessagehere");
  4617. return 1;
  4618. }
  4619. else{
  4620. new output[255];
  4621. new pname[24];
  4622. GetPlayerName(playerid, pname, 24);
  4623. strmid(output,cmdtext,3,strlen(cmdtext));
  4624. format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  4625. printf("%s", string);
  4626. for(new i=0;i<MAX_PLAYERS;i++)
  4627. {
  4628. if(gTeam[i] == COP || gTeam[i] == SWAT || gTeam[i] == ARMY || gTeam[i] == FBI) {
  4629. format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  4630. SendClientMessage(i,COLOR_ROYALBLUE,string);
  4631. }
  4632. }
  4633. }
  4634. return 1;
  4635. }
  4636. if (strcmp("/next", cmdtext, true) == 0)
  4637. {
  4638. if(CSKIN[playerid] ==1)
  4639. {
  4640. SetPlayerSkin(playerid,7);
  4641. CSKIN[playerid] = 2;
  4642. }else
  4643. if(CSKIN[playerid] ==2)
  4644. {
  4645. SetPlayerSkin(playerid,11);
  4646. CSKIN[playerid] = 3;
  4647. }else
  4648. if(CSKIN[playerid] ==3)
  4649. {
  4650. SetPlayerSkin(playerid,19);
  4651. CSKIN[playerid] = 4;
  4652. }else
  4653. if(CSKIN[playerid] ==4)
  4654. {
  4655. SetPlayerSkin(playerid,21);
  4656. CSKIN[playerid] = 5;
  4657. }else
  4658. if(CSKIN[playerid] ==5)
  4659. {
  4660. SetPlayerSkin(playerid,23);
  4661. CSKIN[playerid] = 6;
  4662. }else
  4663. if(CSKIN[playerid] ==6)
  4664. {
  4665. SetPlayerSkin(playerid,28);
  4666. CSKIN[playerid] = 7;
  4667. }else
  4668. if(CSKIN[playerid] ==7)
  4669. {
  4670. SetPlayerSkin(playerid,29);
  4671. CSKIN[playerid] = 8;
  4672. }else
  4673. if(CSKIN[playerid] ==8)
  4674. {
  4675. SetPlayerSkin(playerid,46);
  4676. CSKIN[playerid] = 9;
  4677. }else
  4678. if(CSKIN[playerid] ==9)
  4679. {
  4680. SetPlayerSkin(playerid,47);
  4681. CSKIN[playerid] = 10;
  4682. }else
  4683. if(CSKIN[playerid] ==10)
  4684. {
  4685. SetPlayerSkin(playerid,59);
  4686. CSKIN[playerid] = 11;
  4687. }else
  4688. if(CSKIN[playerid] ==11)
  4689. {
  4690. SetPlayerSkin(playerid,98);
  4691. CSKIN[playerid] = 12;
  4692. }else
  4693. if(CSKIN[playerid] ==12)
  4694. {
  4695. SetPlayerSkin(playerid,101);
  4696. CSKIN[playerid] = 13;
  4697. }else
  4698. if(CSKIN[playerid] ==13)
  4699. {
  4700. SetPlayerSkin(playerid,116);
  4701. CSKIN[playerid] = 14;
  4702. }else
  4703. if(CSKIN[playerid] ==14)
  4704. {
  4705. SetPlayerSkin(playerid,124);
  4706. CSKIN[playerid] = 15;
  4707. }else
  4708. if(CSKIN[playerid] ==15)
  4709. {
  4710. SetPlayerSkin(playerid,186);
  4711. CSKIN[playerid] = 16;
  4712. }else
  4713. if(CSKIN[playerid] ==16)
  4714. {
  4715. SetPlayerSkin(playerid,188);
  4716. CSKIN[playerid] = 17;
  4717. }else
  4718. if(CSKIN[playerid] ==17)
  4719. {
  4720. SetPlayerSkin(playerid,223);
  4721. CSKIN[playerid] = 18;
  4722. }else
  4723. if(CSKIN[playerid] ==18)
  4724. {
  4725. SetPlayerSkin(playerid,240);
  4726. CSKIN[playerid] = 19;
  4727. }else
  4728. if(CSKIN[playerid] ==19)
  4729. {
  4730. SetPlayerSkin(playerid,58);
  4731. CSKIN[playerid] = 1;
  4732. }else
  4733. if(CSKINZ[playerid] ==1)
  4734. {
  4735. SetPlayerSkin(playerid,7);
  4736. CSKINZ[playerid] = 2;
  4737. }else
  4738. if(CSKINZ[playerid] ==2)
  4739. {
  4740. SetPlayerSkin(playerid,11);
  4741. CSKINZ[playerid] = 3;
  4742. }else
  4743. if(CSKINZ[playerid] ==3)
  4744. {
  4745. SetPlayerSkin(playerid,19);
  4746. CSKINZ[playerid] = 4;
  4747. }else
  4748. if(CSKINZ[playerid] ==4)
  4749. {
  4750. SetPlayerSkin(playerid,21);
  4751. CSKINZ[playerid] = 5;
  4752. }else
  4753. if(CSKINZ[playerid] ==5)
  4754. {
  4755. SetPlayerSkin(playerid,23);
  4756. CSKINZ[playerid] = 6;
  4757. }else
  4758. if(CSKINZ[playerid] ==6)
  4759. {
  4760. SetPlayerSkin(playerid,28);
  4761. CSKINZ[playerid] = 7;
  4762. }else
  4763. if(CSKINZ[playerid] ==7)
  4764. {
  4765. SetPlayerSkin(playerid,29);
  4766. CSKINZ[playerid] = 8;
  4767. }else
  4768. if(CSKINZ[playerid] ==8)
  4769. {
  4770. SetPlayerSkin(playerid,46);
  4771. CSKINZ[playerid] = 9;
  4772. }else
  4773. if(CSKINZ[playerid] ==9)
  4774. {
  4775. SetPlayerSkin(playerid,47);
  4776. CSKINZ[playerid] = 10;
  4777. }else
  4778. if(CSKINZ[playerid] ==10)
  4779. {
  4780. SetPlayerSkin(playerid,59);
  4781. CSKINZ[playerid] = 11;
  4782. }else
  4783. if(CSKINZ[playerid] ==11)
  4784. {
  4785. SetPlayerSkin(playerid,98);
  4786. CSKINZ[playerid] = 12;
  4787. }else
  4788. if(CSKINZ[playerid] ==12)
  4789. {
  4790. SetPlayerSkin(playerid,101);
  4791. CSKINZ[playerid] = 13;
  4792. }else
  4793. if(CSKINZ[playerid] ==13)
  4794. {
  4795. SetPlayerSkin(playerid,116);
  4796. CSKINZ[playerid] = 14;
  4797. }else
  4798. if(CSKINZ[playerid] ==14)
  4799. {
  4800. SetPlayerSkin(playerid,124);
  4801. CSKINZ[playerid] = 15;
  4802. }else
  4803. if(CSKINZ[playerid] ==15)
  4804. {
  4805. SetPlayerSkin(playerid,186);
  4806. CSKINZ[playerid] = 16;
  4807. }else
  4808. if(CSKINZ[playerid] ==16)
  4809. {
  4810. SetPlayerSkin(playerid,188);
  4811. CSKINZ[playerid] = 17;
  4812. }else
  4813. if(CSKINZ[playerid] ==17)
  4814. {
  4815. SetPlayerSkin(playerid,223);
  4816. CSKINZ[playerid] = 18;
  4817. }else
  4818. if(CSKINZ[playerid] ==18)
  4819. {
  4820. SetPlayerSkin(playerid,240);
  4821. CSKINZ[playerid] = 19;
  4822. }else
  4823. if(CSKINZ[playerid] ==19)
  4824. {
  4825. SetPlayerSkin(playerid,58);
  4826. CSKINZ[playerid] = 1;
  4827. }else
  4828. if(CSKINU[playerid] ==1)
  4829. {
  4830. SetPlayerSkin(playerid,7);
  4831. CSKINU[playerid] = 2;
  4832. }else
  4833. if(CSKINU[playerid] ==2)
  4834. {
  4835. SetPlayerSkin(playerid,11);
  4836. CSKINU[playerid] = 3;
  4837. }else
  4838. if(CSKINU[playerid] ==3)
  4839. {
  4840. SetPlayerSkin(playerid,19);
  4841. CSKINU[playerid] = 4;
  4842. }else
  4843. if(CSKINU[playerid] ==4)
  4844. {
  4845. SetPlayerSkin(playerid,21);
  4846. CSKINU[playerid] = 5;
  4847. }else
  4848. if(CSKINU[playerid] ==5)
  4849. {
  4850. SetPlayerSkin(playerid,23);
  4851. CSKINU[playerid] = 6;
  4852. }else
  4853. if(CSKINU[playerid] ==6)
  4854. {
  4855. SetPlayerSkin(playerid,28);
  4856. CSKINU[playerid] = 7;
  4857. }else
  4858. if(CSKINU[playerid] ==7)
  4859. {
  4860. SetPlayerSkin(playerid,29);
  4861. CSKINU[playerid] = 8;
  4862. }else
  4863. if(CSKINU[playerid] ==8)
  4864. {
  4865. SetPlayerSkin(playerid,46);
  4866. CSKINU[playerid] = 9;
  4867. }else
  4868. if(CSKINU[playerid] ==9)
  4869. {
  4870. SetPlayerSkin(playerid,47);
  4871. CSKINU[playerid] = 10;
  4872. }else
  4873. if(CSKINU[playerid] ==10)
  4874. {
  4875. SetPlayerSkin(playerid,59);
  4876. CSKINU[playerid] = 11;
  4877. }else
  4878. if(CSKINU[playerid] ==11)
  4879. {
  4880. SetPlayerSkin(playerid,98);
  4881. CSKINU[playerid] = 12;
  4882. }else
  4883. if(CSKINU[playerid] ==12)
  4884. {
  4885. SetPlayerSkin(playerid,101);
  4886. CSKINU[playerid] = 13;
  4887. }else
  4888. if(CSKINU[playerid] ==13)
  4889. {
  4890. SetPlayerSkin(playerid,116);
  4891. CSKINU[playerid] = 14;
  4892. }else
  4893. if(CSKINU[playerid] ==14)
  4894. {
  4895. SetPlayerSkin(playerid,124);
  4896. CSKINU[playerid] = 15;
  4897. }else
  4898. if(CSKINU[playerid] ==15)
  4899. {
  4900. SetPlayerSkin(playerid,186);
  4901. CSKINU[playerid] = 16;
  4902. }else
  4903. if(CSKINU[playerid] ==16)
  4904. {
  4905. SetPlayerSkin(playerid,188);
  4906. CSKINU[playerid] = 17;
  4907. }else
  4908. if(CSKINU[playerid] ==17)
  4909. {
  4910. SetPlayerSkin(playerid,223);
  4911. CSKINU[playerid] = 18;
  4912. }else
  4913. if(CSKINU[playerid] ==18)
  4914. {
  4915. SetPlayerSkin(playerid,240);
  4916. CSKINU[playerid] = 19;
  4917. }else
  4918. if(CSKINU[playerid] ==19)
  4919. {
  4920. SetPlayerSkin(playerid,58);
  4921. CSKINU[playerid] = 1;
  4922. }else SendClientMessage(playerid,LIGHT_BLUE,"You are not in a skin shop location");
  4923. return 1;
  4924. }
  4925. if (strcmp("/select", cmdtext, true, 3) == 0)
  4926. {
  4927. if(CSKIN[playerid] >=2)
  4928. {
  4929. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4930. format(file,sizeof(file),"%s.runix", name);
  4931. new skin = GetPlayerSkin(playerid);
  4932. dini_IntSet(file, "Skin", skin);
  4933. TogglePlayerControllable(playerid,1);
  4934. SetPlayerPos(playerid,218.2430,-98.2941,1005.2578);
  4935. SetCameraBehindPlayer(playerid);
  4936. CSKIN[playerid] = 0;
  4937. }else
  4938. if(CSKINZ[playerid] >=2)
  4939. {
  4940. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4941. format(file,sizeof(file),"%s.runix", name);
  4942. new skin = GetPlayerSkin(playerid);
  4943. dini_IntSet(file, "Skin", skin);
  4944. TogglePlayerControllable(playerid,1);
  4945. SetPlayerPos(playerid,181.5906,-87.5578,1002.0234);
  4946. SetCameraBehindPlayer(playerid);
  4947. CSKINZ[playerid] = 0;
  4948. }else
  4949. if(CSKINU[playerid] >=2)
  4950. {
  4951. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  4952. format(file,sizeof(file),"%s.runix", name);
  4953. new skin = GetPlayerSkin(playerid);
  4954. dini_IntSet(file, "Skin", skin);
  4955. TogglePlayerControllable(playerid,1);
  4956. SetPlayerPos(playerid,214.7581,-41.0411,1002.0234);
  4957. SetCameraBehindPlayer(playerid);
  4958. CSKINU[playerid] = 0;
  4959. }else SendClientMessage(playerid,LIGHT_BLUE,"You are not in a skin shop location");
  4960. return 1;
  4961. }
  4962.  
  4963. if(!strcmp(cmdtext, "/hitlist", true))
  4964. {
  4965. new count = 0;
  4966. SendClientMessage(playerid, COLOR_MSG, "Listing currently placed hits:");
  4967. for(new i = 0; i < MAX_PLAYERS; i++)
  4968. {
  4969. if(IsPlayerConnected(i) && hit[i] > 0)
  4970. {
  4971. new string[256];
  4972. format(string, 256, "Hit on %s (%i) for $%i", ReturnPlayerName(i), i, hit[i]);
  4973. SendClientMessage(playerid, COLOR_FOUND, string);
  4974. count++;
  4975. }
  4976. }
  4977. if(count == 0)
  4978. {
  4979. SendClientMessage(playerid, COLOR_ERROR, "No hits placed at this time!");
  4980. }
  4981. }
  4982.  
  4983. if(!strcmp(cmd, "/gps", true))
  4984. {
  4985. tmp = strtok(cmdtext,idx,true);
  4986. if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "Use: /gps [playerid / off]");
  4987. if(!strcmp(tmp, "off", true)) {
  4988. if(HaveGPS[playerid]) {
  4989. KillTimer(GPSTimer[playerid]);
  4990. HaveGPS[playerid] = false;
  4991. GPSTimer[playerid] = 0;
  4992. DisablePlayerRaceCheckpoint(playerid);
  4993. SendClientMessage(playerid, 0xFFFF00AA, "SERVER: GPS off.");
  4994. }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: Your GPS is not ON!");
  4995. return 1;
  4996. }
  4997. if(IsPlayerConnected(strval(tmp))) {
  4998. if(strval(tmp) != playerid) {
  4999. if(HaveGPS[playerid]) {
  5000. KillTimer(GPSTimer[playerid]);
  5001. HaveGPS[playerid] = false;
  5002. GPSTimer[playerid] = 0;
  5003. }
  5004. GPSTimer[playerid] = SetTimerEx("GPSUpdate", 500, true, "dd", playerid,strval(tmp));
  5005. HaveGPS[playerid] = true;
  5006. new str[128],nick[24];
  5007. GetPlayerName(strval(tmp),nick,24);
  5008. format(str,128,"SERVER: GPS enabled. Target: %s (ID: %d)",nick,strval(tmp));
  5009. SendClientMessage(playerid, 0xFFFF00AA, str);
  5010. }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: can't use their ID !");
  5011. }else SendClientMessage(playerid, 0xFF0000AA, "SERVER: This ID is not connected!");
  5012. return 1;
  5013. }
  5014. if(!strcmp(cmdtext,"/pc",true))
  5015. {
  5016. HideDraw(playerid);
  5017. TextDrawShowForPlayer(playerid,text41);
  5018. TextDrawShowForPlayer(playerid,text42);
  5019. TextDrawShowForPlayer(playerid,PCBOX);
  5020. TextDrawShowForPlayer(playerid,text43);
  5021. return 1;
  5022. }
  5023. if(!strcmp(cmdtext,"/rules",true))
  5024. {
  5025. SendClientMessage(playerid, 0x00C2ECFF, "Rule 1: Do Not Hack, Cheat Or Bug Abuse Or You Will Get Kicked/Banned.");
  5026. SendClientMessage(playerid, 0x00C2ECFF, "Rule 2: Do Not Deathmatch Other Players. Cops can only kill reds and oranges.");
  5027. SendClientMessage(playerid, 0x00C2ECFF, "Rule 3: Do Not Insult Admins. Respect other players.");
  5028. SendClientMessage(playerid, 0x00C2ECFF, "Rule 4: Do Not Ask To Be An Admin. We will ask you.");
  5029. SendClientMessage(playerid, 0x00C2ECFF, "Rule 5: Do Not Bitch/Complain About The Server.");
  5030. SendClientMessage(playerid, 0x00C2ECFF, "If you want to be admin, apply at www.rss-ro.com");
  5031. return 1;
  5032. }
  5033. return SendClientMessage(playerid, ERROR, "Invalid command. Use /cmds to see the general commands.");
  5034. }
  5035.  
  5036. public OnPlayerStateChange(playerid, newstate, oldstate)
  5037. {
  5038. new vehicleid = GetPlayerVehicleID(playerid);
  5039. if(Spawned[playerid] == 1)
  5040. {
  5041. if(newstate == PLAYER_STATE_ONFOOT)
  5042. {
  5043. TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
  5044. TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
  5045. new string[250];
  5046. TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  5047. format(string,sizeof(string),"~w~LoLocation: ~w~%s" ,ReturnPlayerZone(playerid));
  5048. TextDrawSetString(Speed[playerid][Speedom], string);
  5049. }
  5050. }
  5051. //--------------------------------------------------------------------------------------------------------------------------
  5052. 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)
  5053. {
  5054. if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != ARMY && gTeam[playerid] != FBI && gTeam[playerid] != SWAT)
  5055. {
  5056. RemovePlayerFromVehicle(playerid);
  5057. SendClientMessage(playerid, ERROR, "Only Police Officers can use this vehicle.");
  5058. }
  5059. else if(gTeam[playerid] == COP) SendClientMessage(playerid, WHITE, "This is a city's vehicle. You can use this one to work.");
  5060. else if(gTeam[playerid] == Medic)
  5061. {
  5062. RemovePlayerFromVehicle(playerid);
  5063. SendClientMessage(playerid, ERROR, "Only Police Officers can use this vehicle.");
  5064. }
  5065. }
  5066. //-----------------------------------------------TAXI----------------------------------------------------------------------
  5067. new msg[255];
  5068. if (newstate==PLAYER_STATE_DRIVER)
  5069. {
  5070. if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 438)
  5071. {
  5072. if (avisado[playerid]==-1)
  5073. {
  5074. GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Taxi~w~ Job.",5000,6);
  5075. }
  5076. else
  5077. {
  5078. KillTimer(avisado[playerid]);
  5079. avisado[playerid]=-1;
  5080. }
  5081. }
  5082. }
  5083. if (newstate==PLAYER_STATE_ONFOOT)
  5084. {
  5085. if ((playerInJob[playerid]>0)&&(avisado[playerid]==-1))
  5086. {
  5087. GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to enter in ~r~TAXI",5000,6);
  5088. avisado[playerid]=SetTimerEx("terminarMission",10000,0,"%d",playerid);
  5089. }
  5090. if (OnTaxiAsPassenger[playerid]!=-1)
  5091. {
  5092. new taxista = OnTaxiAsPassenger[playerid];
  5093. new name[MAX_PLAYER_NAME];
  5094. GetPlayerName(taxista,name,MAX_PLAYER_NAME);
  5095. OnTaxiAsPassenger[playerid]=-1;
  5096. new viaje = CostoDelViaje[playerid];
  5097. format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Taxi Driver",name,viaje);
  5098. GameTextForPlayer(playerid,msg,5000,6);
  5099. format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Pasager.",viaje);
  5100. GameTextForPlayer(taxista,msg,5000,6);
  5101. GivePlayerMoney(playerid,-viaje);
  5102. GivePlayerMoney(taxista,viaje);
  5103. cantidadPasajeros--;
  5104. if (cantidadPasajeros==0)
  5105. {
  5106. KillTimer(caidadefichaTimer);
  5107. }
  5108. }
  5109. }
  5110. if (newstate==PLAYER_STATE_PASSENGER)
  5111. {
  5112. if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 438)
  5113. {
  5114. new i=0;
  5115. while (i<MAX_PLAYERS)
  5116. {
  5117. if ((playerInJob[i]==1)&&(GetPlayerState(i)==PLAYER_STATE_DRIVER))
  5118. {
  5119. if (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
  5120. {
  5121. new name[MAX_PLAYER_NAME];
  5122. GetPlayerName(i,name,MAX_PLAYER_NAME);
  5123. contador[i]++;
  5124. format(msg,sizeof(msg),"~w~You have gotten into ~n~~g~%s's ~r~Taxi~w~",name);
  5125. GameTextForPlayer(playerid,msg,5000,6);
  5126. format(msg,sizeof(msg),"~w~You have one new~n~~r~PASENGER~w~");
  5127. GameTextForPlayer(playerid,msg,5000,6);
  5128. OnTaxiAsPassenger[playerid]=i;
  5129. CostoDelViaje[playerid]=BAJADA_DE_BANDERA;
  5130. if (cantidadPasajeros==0)
  5131. {
  5132. caidadefichaTimer=SetTimer("caidadeficha",30000,1);
  5133. }
  5134. cantidadPasajeros++;
  5135. i=MAX_PLAYERS;
  5136. }
  5137. }
  5138. i++;
  5139. }
  5140. }
  5141. }
  5142. //-------------------------------------------------------------------------------------------------------------------------
  5143. //BUS
  5144. if (newstate==PLAYER_STATE_DRIVER)
  5145. {
  5146. if (gTeam[playerid] == CIVILIAN && GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || gTeam[playerid] == CIVILIAN && GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
  5147. {
  5148. if (avisado2[playerid]==-1)
  5149. {
  5150. GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Bus~w~ Job.",5000,6);
  5151. }
  5152. else
  5153. {
  5154. KillTimer(avisado2[playerid]);
  5155. avisado2[playerid]=-1;
  5156. }
  5157. }
  5158. }
  5159. if (newstate==PLAYER_STATE_ONFOOT)
  5160. {
  5161. if ((playerInMiniMission2[playerid]>0)&&(avisado2[playerid]==-1))
  5162. {
  5163. GameTextForPlayer(playerid,"~w~You have ~r~10 sec ~n~~w~ to enter a ~r~Bus",5000,6);
  5164. avisado2[playerid]=SetTimerEx("terminarMission2",10000,0,"%d",playerid);
  5165. }
  5166. if (OnBusAsPassenger[playerid]!=-1)
  5167. {
  5168. new Bussta = OnBusAsPassenger[playerid];
  5169. new name[MAX_PLAYER_NAME];
  5170. GetPlayerName(Bussta,name,MAX_PLAYER_NAME);
  5171. OnBusAsPassenger[playerid]=-1;
  5172. new viaje = CostoDelViaje2[playerid];
  5173. format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Bus~w~ ride.",name,viaje);
  5174. GameTextForPlayer(playerid,msg,5000,6);
  5175. format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Bus~w~ ride.",viaje);
  5176. GameTextForPlayer(Bussta,msg,5000,6);
  5177. GivePlayerMoney(playerid,-viaje);
  5178. GivePlayerMoney(Bussta,viaje);
  5179. cantidadPasajeros2--;
  5180. if (cantidadPasajeros2==0)
  5181. {
  5182. KillTimer(caidadeficha2Timer2);
  5183. }
  5184. }
  5185. }
  5186. if (newstate==PLAYER_STATE_PASSENGER)
  5187. {
  5188. if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
  5189. {
  5190. new i=0;
  5191. while (i<MAX_PLAYERS)
  5192. {
  5193. if ((playerInMiniMission2[i]==1)&&(GetPlayerState(i)==PLAYER_STATE_DRIVER))
  5194. {
  5195. if (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
  5196. {
  5197. new name[MAX_PLAYER_NAME];
  5198. GetPlayerName(i,name,MAX_PLAYER_NAME);
  5199. contador2[i]++;
  5200. format(msg,sizeof(msg),"~w~You have gotten into ~n~~g~%s's ~r~Bus~w~",name);
  5201. GameTextForPlayer(playerid,msg,5000,6);
  5202. format(msg,sizeof(msg),"~w~You have one new~n~~r~PASENGER~w~");
  5203. GameTextForPlayer(playerid,msg,5000,6);
  5204. OnBusAsPassenger[playerid]=i;
  5205. CostoDelViaje2[playerid]=BAJADA_DE_BANDERA2;
  5206. if (cantidadPasajeros2==0)
  5207. {
  5208. caidadeficha2Timer2=SetTimer("caidadeficha2",30000,1);
  5209. }
  5210. cantidadPasajeros2++;
  5211. i=MAX_PLAYERS;
  5212. }
  5213. }
  5214. i++;
  5215. }
  5216. }
  5217. }
  5218. //
  5219. //Trash
  5220. if (newstate==PLAYER_STATE_DRIVER)
  5221. {
  5222. if (gTeam[playerid] == CIVILIAN && GetVehicleModel(GetPlayerVehicleID(playerid)) == 408)
  5223. {
  5224.  
  5225. GameTextForPlayer(playerid,"~w~Type key ~b~2~g~(SubMission)~n~~w~to start the ~n~~r~Bus~w~ Job.",5000,6);
  5226. }
  5227. }
  5228. if (newstate==PLAYER_STATE_ONFOOT)
  5229. {
  5230. if(InTrashMission[playerid] > 0)
  5231. {
  5232. DisablePlayerRaceCheckpoint(playerid);
  5233. InTrashMission[playerid] = 0;
  5234. SelectTM[playerid] = 0;
  5235. }
  5236. }
  5237. //
  5238. return true;
  5239. }
  5240. public OnPlayerEnterRaceCheckpoint(playerid)
  5241. {
  5242. if(InBusMission[playerid] == 1) {
  5243. if(currentcheckpoint[playerid] <= 2)
  5244. {
  5245. currentcheckpoint[playerid]++;
  5246. DisablePlayerRaceCheckpoint(playerid);
  5247. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5248. GivePlayerMoney(playerid,500);
  5249. SetPlayerRaceCheckpoint(playerid,0,buslscps[currentcheckpoint[playerid]][0],buslscps[currentcheckpoint[playerid]][1],buslscps[currentcheckpoint[playerid]][2],
  5250. buslscps[currentcheckpoint[playerid]+1][0],buslscps[currentcheckpoint[playerid]+1][1],buslscps[currentcheckpoint[playerid]+1][2],7);
  5251. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 16) {
  5252. currentcheckpoint[playerid]++;
  5253. DisablePlayerRaceCheckpoint(playerid);
  5254. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5255. GivePlayerMoney(playerid,500);
  5256. SetPlayerRaceCheckpoint(playerid,0,buslscps[currentcheckpoint[playerid]-4][0],buslscps[currentcheckpoint[playerid]-4][1],
  5257. buslscps[currentcheckpoint[playerid]-4][2],buslscps[currentcheckpoint[playerid]-3][0],buslscps[currentcheckpoint[playerid]-3][1],
  5258. buslscps[currentcheckpoint[playerid]-3][2],7);
  5259. } else if(currentcheckpoint[playerid] == 16) {
  5260. currentcheckpoint[playerid] = 0;
  5261. SetPlayerRaceCheckpoint(playerid,0,buslscps[0][0],buslscps[0][1],buslscps[0][2],buslscps[1][0],buslscps[1][1],buslscps[1][2],7);
  5262. SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5263. }
  5264. }
  5265. if(InBusMission[playerid] == 2) {
  5266. if(currentcheckpoint[playerid] <= 2)
  5267. {
  5268. currentcheckpoint[playerid]++;
  5269. DisablePlayerRaceCheckpoint(playerid);
  5270. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5271. GivePlayerMoney(playerid,500);
  5272. SetPlayerRaceCheckpoint(playerid,0,bussfcps[currentcheckpoint[playerid]][0],bussfcps[currentcheckpoint[playerid]][1],bussfcps[currentcheckpoint[playerid]][2],
  5273. bussfcps[currentcheckpoint[playerid]+1][0],bussfcps[currentcheckpoint[playerid]+1][1],bussfcps[currentcheckpoint[playerid]+1][2],7);
  5274. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 12) {
  5275. currentcheckpoint[playerid]++;
  5276. DisablePlayerRaceCheckpoint(playerid);
  5277. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5278. GivePlayerMoney(playerid,500);
  5279. SetPlayerRaceCheckpoint(playerid,0,bussfcps[currentcheckpoint[playerid]-4][0],bussfcps[currentcheckpoint[playerid]-4][1],
  5280. bussfcps[currentcheckpoint[playerid]-4][2],bussfcps[currentcheckpoint[playerid]-3][0],bussfcps[currentcheckpoint[playerid]-3][1],
  5281. bussfcps[currentcheckpoint[playerid]-3][2],7);
  5282. } else if(currentcheckpoint[playerid] == 12) {
  5283. currentcheckpoint[playerid] = 0;
  5284. SetPlayerRaceCheckpoint(playerid,0,bussfcps[0][0],bussfcps[0][1],bussfcps[0][2],bussfcps[1][0],bussfcps[1][1],bussfcps[1][2],7);
  5285. SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5286. }
  5287. }
  5288. if(InBusMission[playerid] == 3) {
  5289. if(currentcheckpoint[playerid] <= 2)
  5290. {
  5291. currentcheckpoint[playerid]++;
  5292. DisablePlayerRaceCheckpoint(playerid);
  5293. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5294. GivePlayerMoney(playerid,500);
  5295. SetPlayerRaceCheckpoint(playerid,0,buslvcps[currentcheckpoint[playerid]][0],buslvcps[currentcheckpoint[playerid]][1],buslvcps[currentcheckpoint[playerid]][2],
  5296. buslvcps[currentcheckpoint[playerid]+1][0],buslvcps[currentcheckpoint[playerid]+1][1],buslvcps[currentcheckpoint[playerid]+1][2],7);
  5297. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 14) {
  5298. currentcheckpoint[playerid]++;
  5299. DisablePlayerRaceCheckpoint(playerid);
  5300. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5301. GivePlayerMoney(playerid,500);
  5302. SetPlayerRaceCheckpoint(playerid,0,buslvcps[currentcheckpoint[playerid]-4][0],buslvcps[currentcheckpoint[playerid]-4][1],
  5303. buslvcps[currentcheckpoint[playerid]-4][2],buslvcps[currentcheckpoint[playerid]-3][0],buslvcps[currentcheckpoint[playerid]-3][1],
  5304. buslvcps[currentcheckpoint[playerid]-3][2],7);
  5305. } else if(currentcheckpoint[playerid] == 14) {
  5306. currentcheckpoint[playerid] = 0;
  5307. SetPlayerRaceCheckpoint(playerid,0,buslvcps[0][0],buslvcps[0][1],buslvcps[0][2],buslvcps[1][0],buslvcps[1][1],buslvcps[1][2],7);
  5308. SendClientMessage(playerid,LIGHT_BLUE,"You finished the bus route! You can do it again!");
  5309. }
  5310. }
  5311. if(InTrashMission[playerid] == 1) {
  5312. if(currentcheckpoint[playerid] <= 2)
  5313. {
  5314. currentcheckpoint[playerid]++;
  5315. DisablePlayerRaceCheckpoint(playerid);
  5316. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5317. GivePlayerMoney(playerid,500);
  5318. SetPlayerRaceCheckpoint(playerid,0,trashls[currentcheckpoint[playerid]][0],trashls[currentcheckpoint[playerid]][1],trashls[currentcheckpoint[playerid]][2],
  5319. trashls[currentcheckpoint[playerid]+1][0],trashls[currentcheckpoint[playerid]+1][1],trashls[currentcheckpoint[playerid]+1][2],7);
  5320. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 13) {
  5321. currentcheckpoint[playerid]++;
  5322. DisablePlayerRaceCheckpoint(playerid);
  5323. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5324. GivePlayerMoney(playerid,500);
  5325. SetPlayerRaceCheckpoint(playerid,0,trashls[currentcheckpoint[playerid]-4][0],trashls[currentcheckpoint[playerid]-4][1],
  5326. trashls[currentcheckpoint[playerid]-4][2],trashls[currentcheckpoint[playerid]-3][0],trashls[currentcheckpoint[playerid]-3][1],
  5327. trashls[currentcheckpoint[playerid]-3][2],7);
  5328. } else if(currentcheckpoint[playerid] == 13) {
  5329. currentcheckpoint[playerid] = 0;
  5330. SetPlayerRaceCheckpoint(playerid,0,trashls[0][0],trashls[0][1],trashls[0][2],trashls[1][0],trashls[1][1],trashls[1][2],7);
  5331. SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5332. }
  5333. }
  5334. if(InTrashMission[playerid] == 2) {
  5335. if(currentcheckpoint[playerid] <= 2)
  5336. {
  5337. currentcheckpoint[playerid]++;
  5338. DisablePlayerRaceCheckpoint(playerid);
  5339. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5340. GivePlayerMoney(playerid,500);
  5341. SetPlayerRaceCheckpoint(playerid,0,trashsf[currentcheckpoint[playerid]][0],trashsf[currentcheckpoint[playerid]][1],trashsf[currentcheckpoint[playerid]][2],
  5342. trashsf[currentcheckpoint[playerid]+1][0],trashsf[currentcheckpoint[playerid]+1][1],trashsf[currentcheckpoint[playerid]+1][2],7);
  5343. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 9) {
  5344. currentcheckpoint[playerid]++;
  5345. DisablePlayerRaceCheckpoint(playerid);
  5346. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5347. GivePlayerMoney(playerid,500);
  5348. SetPlayerRaceCheckpoint(playerid,0,trashsf[currentcheckpoint[playerid]-4][0],trashsf[currentcheckpoint[playerid]-4][1],
  5349. trashsf[currentcheckpoint[playerid]-4][2],trashsf[currentcheckpoint[playerid]-3][0],trashsf[currentcheckpoint[playerid]-3][1],
  5350. trashsf[currentcheckpoint[playerid]-3][2],7);
  5351. } else if(currentcheckpoint[playerid] == 9) {
  5352. currentcheckpoint[playerid] = 0;
  5353. SetPlayerRaceCheckpoint(playerid,0,trashsf[0][0],trashsf[0][1],trashsf[0][2],trashsf[1][0],trashsf[1][1],trashsf[1][2],7);
  5354. SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5355. }
  5356. }
  5357. if(InTrashMission[playerid] == 3) {
  5358. if(currentcheckpoint[playerid] <= 2)
  5359. {
  5360. currentcheckpoint[playerid]++;
  5361. DisablePlayerRaceCheckpoint(playerid);
  5362. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5363. GivePlayerMoney(playerid,500);
  5364. SetPlayerRaceCheckpoint(playerid,0,trashlv[currentcheckpoint[playerid]][0],trashlv[currentcheckpoint[playerid]][1],trashlv[currentcheckpoint[playerid]][2],
  5365. trashlv[currentcheckpoint[playerid]+1][0],trashlv[currentcheckpoint[playerid]+1][1],trashlv[currentcheckpoint[playerid]+1][2],7);
  5366. } else if(currentcheckpoint[playerid] >= 3 && currentcheckpoint[playerid] != 13) {
  5367. currentcheckpoint[playerid]++;
  5368. DisablePlayerRaceCheckpoint(playerid);
  5369. SendClientMessage(playerid,LIGHT_BLUE,"You received $500!");
  5370. GivePlayerMoney(playerid,500);
  5371. SetPlayerRaceCheckpoint(playerid,0,trashlv[currentcheckpoint[playerid]-4][0],trashlv[currentcheckpoint[playerid]-4][1],
  5372. trashlv[currentcheckpoint[playerid]-4][2],trashlv[currentcheckpoint[playerid]-3][0],trashlv[currentcheckpoint[playerid]-3][1],
  5373. trashlv[currentcheckpoint[playerid]-3][2],7);
  5374. } else if(currentcheckpoint[playerid] == 13) {
  5375. currentcheckpoint[playerid] = 0;
  5376. SetPlayerRaceCheckpoint(playerid,0,trashlv[0][0],trashlv[0][1],trashlv[0][2],trashlv[1][0],trashlv[1][1],trashlv[1][2],7);
  5377. SendClientMessage(playerid,LIGHT_BLUE,"You finished the trash route! You can do it again!");
  5378. }
  5379. }
  5380. return 1;
  5381. }
  5382.  
  5383. public OnPlayerEnterCheckpoint(playerid)
  5384. {
  5385. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLSjos))
  5386. {
  5387. if(!IsPlayerInAnyVehicle(playerid))
  5388. {
  5389. SetPlayerPos(playerid, 1574.0499,-1668.5148,28.3956);
  5390. }
  5391. }
  5392.  
  5393. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLSsus))
  5394. {
  5395. if(!IsPlayerInAnyVehicle(playerid))
  5396. {
  5397. SetPlayerPos(playerid, 1575.7050,-1692.9965,6.2188);
  5398. }
  5399. }
  5400.  
  5401. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLVjos))
  5402. {
  5403. if(!IsPlayerInAnyVehicle(playerid))
  5404. {
  5405. SetPlayerPos(playerid, 2277.9282,2459.3528,38.6837);
  5406. }
  5407. }
  5408.  
  5409. if(CPS_IsPlayerInCheckpoint(playerid, cpcopLVsus))
  5410. {
  5411. if(!IsPlayerInAnyVehicle(playerid))
  5412. {
  5413. SetPlayerPos(playerid, 2276.2097,2445.7578,3.5313);
  5414. }
  5415. }
  5416.  
  5417.  
  5418. if(CPS_IsPlayerInCheckpoint(playerid, cpcopSFjos))
  5419. {
  5420. if(!IsPlayerInAnyVehicle(playerid))
  5421. {
  5422. SetPlayerPos(playerid, -1589.9498,724.9433,-4.9063);
  5423. }
  5424. }
  5425.  
  5426. if(CPS_IsPlayerInCheckpoint(playerid, cpcopSFsus))
  5427. {
  5428. if(!IsPlayerInAnyVehicle(playerid))
  5429. {
  5430. SetPlayerPos(playerid, -1620.5464,707.2188,48.9375);
  5431. }
  5432. }
  5433. if(CPS_IsPlayerInCheckpoint(playerid, cpbankentrance))
  5434. {
  5435. if(!IsPlayerInAnyVehicle(playerid))
  5436. {
  5437. SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5438. SetPlayerFacingAngle(playerid, 270.7787);
  5439. BK[playerid] = 1;
  5440. SetCameraBehindPlayer(playerid);
  5441. }
  5442. }
  5443. if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragonsentrace))
  5444. {
  5445. if(!IsPlayerInAnyVehicle(playerid))
  5446. {
  5447. SetPlayerPos(playerid, 2016.2699,1017.7790,996.8750);
  5448. SetPlayerInterior(playerid,10);
  5449. SetCameraBehindPlayer(playerid);
  5450. }
  5451. }
  5452. if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragonsexit))
  5453. {
  5454. if(!IsPlayerInAnyVehicle(playerid))
  5455. {
  5456. SetPlayerPos(playerid, 2024.4655,1007.9456,10.8203);
  5457. SetPlayerInterior(playerid,0);
  5458. SetCameraBehindPlayer(playerid);
  5459. }
  5460. }
  5461. if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulasentrace))
  5462. {
  5463. if(!IsPlayerInAnyVehicle(playerid))
  5464. {
  5465. SetPlayerPos(playerid, 2233.8032,1712.2303,1011.7632);
  5466. SetPlayerInterior(playerid,1);
  5467. SetCameraBehindPlayer(playerid);
  5468. }
  5469. }
  5470. if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulasexit))
  5471. {
  5472. if(!IsPlayerInAnyVehicle(playerid))
  5473. {
  5474. SetPlayerPos(playerid, 2192.7700,1676.9839,12.3672);
  5475. SetPlayerInterior(playerid,0);
  5476. SetCameraBehindPlayer(playerid);
  5477. }
  5478. }
  5479. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace1))
  5480. {
  5481. if(!IsPlayerInAnyVehicle(playerid))
  5482. {
  5483. SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5484. SetPlayerInterior(playerid, 1);
  5485. AMMU[playerid] = 1;
  5486. SetCameraBehindPlayer(playerid);
  5487. }
  5488. }
  5489. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace2))
  5490. {
  5491. if(!IsPlayerInAnyVehicle(playerid))
  5492. {
  5493. SetPlayerPos(playerid, 314.820984,-141.431992,999.661987);
  5494. SetPlayerInterior(playerid, 7);
  5495. AMMU[playerid] = 2;
  5496. SetCameraBehindPlayer(playerid);
  5497. }
  5498. }
  5499. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace3))
  5500. {
  5501. if(!IsPlayerInAnyVehicle(playerid))
  5502. {
  5503. SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5504. SetPlayerInterior(playerid, 4);
  5505. AMMU[playerid] = 3;
  5506. SetCameraBehindPlayer(playerid);
  5507. }
  5508. }
  5509. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace4))
  5510. {
  5511. if(!IsPlayerInAnyVehicle(playerid))
  5512. {
  5513. SetPlayerPos(playerid, 316.524994,-167.706985,999.661987);
  5514. SetPlayerInterior(playerid, 6);
  5515. AMMU[playerid] = 4;
  5516. SetCameraBehindPlayer(playerid);
  5517. }
  5518. }
  5519. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace5))
  5520. {
  5521. if(!IsPlayerInAnyVehicle(playerid))
  5522. {
  5523. SetPlayerPos(playerid, 296.919983,-108.071999,1001.569946 );
  5524. SetPlayerInterior(playerid, 6);
  5525. AMMU[playerid] = 5;
  5526. SetCameraBehindPlayer(playerid);
  5527. }
  5528. }
  5529. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace6))
  5530. {
  5531. if(!IsPlayerInAnyVehicle(playerid))
  5532. {
  5533. SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5534. SetPlayerInterior(playerid, 4);
  5535. AMMU[playerid] = 6;
  5536. SetCameraBehindPlayer(playerid);
  5537. }
  5538. }
  5539. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace7))
  5540. {
  5541. if(!IsPlayerInAnyVehicle(playerid))
  5542. {
  5543. SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5544. SetPlayerInterior(playerid, 1);
  5545. AMMU[playerid] = 7;
  5546. SetCameraBehindPlayer(playerid);
  5547. }
  5548. }
  5549. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace8))
  5550. {
  5551. if(!IsPlayerInAnyVehicle(playerid))
  5552. {
  5553. SetPlayerPos(playerid, 316.524994,-167.706985,999.661987);
  5554. SetPlayerInterior(playerid, 6);
  5555. AMMU[playerid] = 8;
  5556. SetCameraBehindPlayer(playerid);
  5557. }
  5558. }
  5559. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace9))
  5560. {
  5561. if(!IsPlayerInAnyVehicle(playerid))
  5562. {
  5563. SetPlayerPos(playerid, 291.5846,-34.8323,1001.5156);
  5564. SetPlayerInterior(playerid, 1);
  5565. AMMU[playerid] = 9;
  5566. SetCameraBehindPlayer(playerid);
  5567. }
  5568. }
  5569. if(CPS_IsPlayerInCheckpoint(playerid, cpammuentrace10))
  5570. {
  5571. if(!IsPlayerInAnyVehicle(playerid))
  5572. {
  5573. SetPlayerPos(playerid, 286.800995 , -82.547600 ,1001.539978);
  5574. SetPlayerInterior(playerid, 4);
  5575. AMMU[playerid] = 10;
  5576. SetCameraBehindPlayer(playerid);
  5577. }
  5578. }
  5579. if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit))
  5580. {
  5581. if(AMMU[playerid] == 1)
  5582. {
  5583. SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5584. SetPlayerInterior(playerid, 0);
  5585. AMMU[playerid] = 0;
  5586. SetCameraBehindPlayer(playerid);
  5587. }
  5588. if(AMMU[playerid] == 2)
  5589. {
  5590. SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5591. SetPlayerInterior(playerid, 0);
  5592. AMMU[playerid] = 0;
  5593. SetCameraBehindPlayer(playerid);
  5594. }
  5595. if(AMMU[playerid] == 3)
  5596. {
  5597. SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5598. SetPlayerInterior(playerid, 0);
  5599. AMMU[playerid] = 0;
  5600. SetCameraBehindPlayer(playerid);
  5601. }
  5602. if(AMMU[playerid] == 4)
  5603. {
  5604. SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5605. SetPlayerInterior(playerid, 0);
  5606. AMMU[playerid] = 0;
  5607. SetCameraBehindPlayer(playerid);
  5608. }
  5609. if(AMMU[playerid] == 5)
  5610. {
  5611. SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5612. SetPlayerInterior(playerid, 0);
  5613. AMMU[playerid] = 0;
  5614. SetCameraBehindPlayer(playerid);
  5615. }
  5616. if(AMMU[playerid] == 6)
  5617. {
  5618. SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5619. SetPlayerInterior(playerid, 0);
  5620. AMMU[playerid] = 0;
  5621. SetCameraBehindPlayer(playerid);
  5622. }
  5623. if(AMMU[playerid] == 7)
  5624. {
  5625. SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5626. SetPlayerInterior(playerid, 0);
  5627. AMMU[playerid] = 0;
  5628. SetCameraBehindPlayer(playerid);
  5629. }
  5630. if(AMMU[playerid] == 8)
  5631. {
  5632. SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5633. SetPlayerInterior(playerid, 0);
  5634. AMMU[playerid] = 0;
  5635. SetCameraBehindPlayer(playerid);
  5636. }
  5637. if(AMMU[playerid] == 9)
  5638. {
  5639. SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5640. SetPlayerInterior(playerid, 0);
  5641. AMMU[playerid] = 0;
  5642. SetCameraBehindPlayer(playerid);
  5643. }
  5644. if(AMMU[playerid] == 10)
  5645. {
  5646. SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5647. SetPlayerInterior(playerid, 0);
  5648. AMMU[playerid] = 0;
  5649. SetCameraBehindPlayer(playerid);
  5650. }
  5651. }
  5652. if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit2))
  5653. {
  5654. if(AMMU[playerid] == 1)
  5655. {
  5656. SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5657. SetPlayerInterior(playerid, 0);
  5658. AMMU[playerid] = 0;
  5659. SetCameraBehindPlayer(playerid);
  5660. }
  5661. if(AMMU[playerid] == 2)
  5662. {
  5663. SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5664. SetPlayerInterior(playerid, 0);
  5665. AMMU[playerid] = 0;
  5666. SetCameraBehindPlayer(playerid);
  5667. }
  5668. if(AMMU[playerid] == 3)
  5669. {
  5670. SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5671. SetPlayerInterior(playerid, 0);
  5672. AMMU[playerid] = 0;
  5673. SetCameraBehindPlayer(playerid);
  5674. }
  5675. if(AMMU[playerid] == 4)
  5676. {
  5677. SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5678. SetPlayerInterior(playerid, 0);
  5679. AMMU[playerid] = 0;
  5680. SetCameraBehindPlayer(playerid);
  5681. }
  5682. if(AMMU[playerid] == 5)
  5683. {
  5684. SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5685. SetPlayerInterior(playerid, 0);
  5686. AMMU[playerid] = 0;
  5687. SetCameraBehindPlayer(playerid);
  5688. }
  5689. if(AMMU[playerid] == 6)
  5690. {
  5691. SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5692. SetPlayerInterior(playerid, 0);
  5693. AMMU[playerid] = 0;
  5694. SetCameraBehindPlayer(playerid);
  5695. }
  5696. if(AMMU[playerid] == 7)
  5697. {
  5698. SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5699. SetPlayerInterior(playerid, 0);
  5700. AMMU[playerid] = 0;
  5701. SetCameraBehindPlayer(playerid);
  5702. }
  5703. if(AMMU[playerid] == 8)
  5704. {
  5705. SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5706. SetPlayerInterior(playerid, 0);
  5707. AMMU[playerid] = 0;
  5708. SetCameraBehindPlayer(playerid);
  5709. }
  5710. if(AMMU[playerid] == 9)
  5711. {
  5712. SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5713. SetPlayerInterior(playerid, 0);
  5714. AMMU[playerid] = 0;
  5715. SetCameraBehindPlayer(playerid);
  5716. }
  5717. if(AMMU[playerid] == 10)
  5718. {
  5719. SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5720. SetPlayerInterior(playerid, 0);
  5721. AMMU[playerid] = 0;
  5722. SetCameraBehindPlayer(playerid);
  5723. }
  5724. }
  5725. if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit3))
  5726. {
  5727. if(AMMU[playerid] == 1)
  5728. {
  5729. SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5730. SetPlayerInterior(playerid, 0);
  5731. AMMU[playerid] = 0;
  5732. SetCameraBehindPlayer(playerid);
  5733. }
  5734. if(AMMU[playerid] == 2)
  5735. {
  5736. SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5737. SetPlayerInterior(playerid, 0);
  5738. AMMU[playerid] = 0;
  5739. SetCameraBehindPlayer(playerid);
  5740. }
  5741. if(AMMU[playerid] == 3)
  5742. {
  5743. SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5744. SetPlayerInterior(playerid, 0);
  5745. AMMU[playerid] = 0;
  5746. SetCameraBehindPlayer(playerid);
  5747. }
  5748. if(AMMU[playerid] == 4)
  5749. {
  5750. SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5751. SetPlayerInterior(playerid, 0);
  5752. AMMU[playerid] = 0;
  5753. SetCameraBehindPlayer(playerid);
  5754. }
  5755. if(AMMU[playerid] == 5)
  5756. {
  5757. SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5758. SetPlayerInterior(playerid, 0);
  5759. AMMU[playerid] = 0;
  5760. SetCameraBehindPlayer(playerid);
  5761. }
  5762. if(AMMU[playerid] == 6)
  5763. {
  5764. SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5765. SetPlayerInterior(playerid, 0);
  5766. AMMU[playerid] = 0;
  5767. SetCameraBehindPlayer(playerid);
  5768. }
  5769. if(AMMU[playerid] == 7)
  5770. {
  5771. SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5772. SetPlayerInterior(playerid, 0);
  5773. AMMU[playerid] = 0;
  5774. SetCameraBehindPlayer(playerid);
  5775. }
  5776. if(AMMU[playerid] == 8)
  5777. {
  5778. SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5779. SetPlayerInterior(playerid, 0);
  5780. AMMU[playerid] = 0;
  5781. SetCameraBehindPlayer(playerid);
  5782. }
  5783. if(AMMU[playerid] == 9)
  5784. {
  5785. SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5786. SetPlayerInterior(playerid, 0);
  5787. AMMU[playerid] = 0;
  5788. SetCameraBehindPlayer(playerid);
  5789. }
  5790. if(AMMU[playerid] == 10)
  5791. {
  5792. SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5793. SetPlayerInterior(playerid, 0);
  5794. AMMU[playerid] = 0;
  5795. SetCameraBehindPlayer(playerid);
  5796. }
  5797. }
  5798. if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit4))
  5799. {
  5800. if(AMMU[playerid] == 1)
  5801. {
  5802. SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5803. SetPlayerInterior(playerid, 0);
  5804. AMMU[playerid] = 0;
  5805. SetCameraBehindPlayer(playerid);
  5806. }
  5807. if(AMMU[playerid] == 2)
  5808. {
  5809. SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5810. SetPlayerInterior(playerid, 0);
  5811. AMMU[playerid] = 0;
  5812. SetCameraBehindPlayer(playerid);
  5813. }
  5814. if(AMMU[playerid] == 3)
  5815. {
  5816. SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5817. SetPlayerInterior(playerid, 0);
  5818. AMMU[playerid] = 0;
  5819. SetCameraBehindPlayer(playerid);
  5820. }
  5821. if(AMMU[playerid] == 4)
  5822. {
  5823. SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5824. SetPlayerInterior(playerid, 0);
  5825. AMMU[playerid] = 0;
  5826. SetCameraBehindPlayer(playerid);
  5827. }
  5828. if(AMMU[playerid] == 5)
  5829. {
  5830. SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5831. SetPlayerInterior(playerid, 0);
  5832. AMMU[playerid] = 0;
  5833. SetCameraBehindPlayer(playerid);
  5834. }
  5835. if(AMMU[playerid] == 6)
  5836. {
  5837. SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5838. SetPlayerInterior(playerid, 0);
  5839. AMMU[playerid] = 0;
  5840. SetCameraBehindPlayer(playerid);
  5841. }
  5842. if(AMMU[playerid] == 7)
  5843. {
  5844. SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5845. SetPlayerInterior(playerid, 0);
  5846. AMMU[playerid] = 0;
  5847. SetCameraBehindPlayer(playerid);
  5848. }
  5849. if(AMMU[playerid] == 8)
  5850. {
  5851. SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5852. SetPlayerInterior(playerid, 0);
  5853. AMMU[playerid] = 0;
  5854. SetCameraBehindPlayer(playerid);
  5855. }
  5856. if(AMMU[playerid] == 9)
  5857. {
  5858. SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5859. SetPlayerInterior(playerid, 0);
  5860. AMMU[playerid] = 0;
  5861. SetCameraBehindPlayer(playerid);
  5862. }
  5863. if(AMMU[playerid] == 10)
  5864. {
  5865. SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5866. SetPlayerInterior(playerid, 0);
  5867. AMMU[playerid] = 0;
  5868. SetCameraBehindPlayer(playerid);
  5869. }
  5870. }
  5871. if(CPS_IsPlayerInCheckpoint(playerid, cpammuexit5))
  5872. {
  5873. if(AMMU[playerid] == 1)
  5874. {
  5875. SetPlayerPos(playerid,-313.8697,827.5607,14.2422); // SPAWN AMMU 1
  5876. SetPlayerInterior(playerid, 0);
  5877. AMMU[playerid] = 0;
  5878. SetCameraBehindPlayer(playerid);
  5879. }
  5880. if(AMMU[playerid] == 2)
  5881. {
  5882. SetPlayerPos(playerid,-1506.8827,2609.1174,55.8359); // SPAWN AMMU 2
  5883. SetPlayerInterior(playerid, 0);
  5884. AMMU[playerid] = 0;
  5885. SetCameraBehindPlayer(playerid);
  5886. }
  5887. if(AMMU[playerid] == 3)
  5888. {
  5889. SetPlayerPos(playerid,778.2792,1873.9513,4.9228); // SPAWN AMMU 3
  5890. SetPlayerInterior(playerid, 0);
  5891. AMMU[playerid] = 0;
  5892. SetCameraBehindPlayer(playerid);
  5893. }
  5894. if(AMMU[playerid] == 4)
  5895. {
  5896. SetPlayerPos(playerid,2156.9932,946.3765,10.8203); // SPAWN AMMU 4
  5897. SetPlayerInterior(playerid, 0);
  5898. AMMU[playerid] = 0;
  5899. SetCameraBehindPlayer(playerid);
  5900. }
  5901. if(AMMU[playerid] == 5)
  5902. {
  5903. SetPlayerPos(playerid,2537.5974,2086.1917,10.8203); // SPAWN AMMU 5
  5904. SetPlayerInterior(playerid, 0);
  5905. AMMU[playerid] = 0;
  5906. SetCameraBehindPlayer(playerid);
  5907. }
  5908. if(AMMU[playerid] == 6)
  5909. {
  5910. SetPlayerPos(playerid,2334.7634,64.1842,26.4837); // SPAWN AMMU 6
  5911. SetPlayerInterior(playerid, 0);
  5912. AMMU[playerid] = 0;
  5913. SetCameraBehindPlayer(playerid);
  5914. }
  5915. if(AMMU[playerid] == 7)
  5916. {
  5917. SetPlayerPos(playerid,1365.6986,-1282.1617,13.5469); // SPAWN AMMU 7
  5918. SetPlayerInterior(playerid, 0);
  5919. AMMU[playerid] = 0;
  5920. SetCameraBehindPlayer(playerid);
  5921. }
  5922. if(AMMU[playerid] == 8)
  5923. {
  5924. SetPlayerPos(playerid,2398.4277,-1980.7507,13.5469); // SPAWN AMMU 8
  5925. SetPlayerInterior(playerid, 0);
  5926. AMMU[playerid] = 0;
  5927. SetCameraBehindPlayer(playerid);
  5928. }
  5929. if(AMMU[playerid] == 9)
  5930. {
  5931. SetPlayerPos(playerid,-2628.1152,209.7469,4.5584); // SPAWN AMMU 9
  5932. SetPlayerInterior(playerid, 0);
  5933. AMMU[playerid] = 0;
  5934. SetCameraBehindPlayer(playerid);
  5935. }
  5936. if(AMMU[playerid] == 10)
  5937. {
  5938. SetPlayerPos(playerid,-2094.8826,-2462.5586,30.6250); // SPAWN AMMU 10
  5939. SetPlayerInterior(playerid, 0);
  5940. AMMU[playerid] = 0;
  5941. SetCameraBehindPlayer(playerid);
  5942. }
  5943. }
  5944. if(CPS_IsPlayerInCheckpoint(playerid, cplsbankentrance))
  5945. {
  5946. if(!IsPlayerInAnyVehicle(playerid))
  5947. {
  5948. SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5949. SetPlayerFacingAngle(playerid, 270.7787);
  5950. BK[playerid] = 2;
  5951. SetCameraBehindPlayer(playerid);
  5952. }
  5953. }
  5954. if(CPS_IsPlayerInCheckpoint(playerid, cpsfbankentrance))
  5955. {
  5956. if(!IsPlayerInAnyVehicle(playerid))
  5957. {
  5958. SetPlayerPos(playerid, 2309.7588, -15.3791, 26.7496);
  5959. SetPlayerFacingAngle(playerid, 270.7787);
  5960. BK[playerid] = 3;
  5961. SetCameraBehindPlayer(playerid);
  5962. }
  5963. }
  5964.  
  5965. if(CPS_IsPlayerInCheckpoint(playerid, cpbankexit))
  5966. {
  5967. if(BK[playerid] == 1)
  5968. {
  5969. SetPlayerPos(playerid, 2030.2551, 1913.0118, 12.3059);
  5970. SetPlayerFacingAngle(playerid, 276.3724);
  5971. SetCameraBehindPlayer(playerid);
  5972. }
  5973. if(BK[playerid] == 2)
  5974. {
  5975. SetPlayerPos(playerid, 1415.9304,-1703.1160,13.5395);
  5976. SetPlayerFacingAngle(playerid, 249.8486);
  5977. SetCameraBehindPlayer(playerid);
  5978. }
  5979. if(BK[playerid] == 3)
  5980. {
  5981. SetPlayerPos(playerid, -1581.3892,863.6969,7.4521);
  5982. SetPlayerFacingAngle(playerid, 179.7295);
  5983. SetCameraBehindPlayer(playerid);
  5984. }
  5985. }
  5986.  
  5987. if(CPS_IsPlayerInCheckpoint(playerid, cpbank))
  5988. {
  5989. SendClientMessage(playerid, GREY, "|_| Dave's Intl. Bank |_|");
  5990. SendClientMessage(playerid, WHITE, "Deposit (/deposit)");
  5991. SendClientMessage(playerid, WHITE, "Withdraw (/withdraw)");
  5992. SendClientMessage(playerid, WHITE, "State (/state)");
  5993. SendClientMessage(playerid, WHITE, "Rob /robbank");
  5994. }
  5995.  
  5996. if(CPS_IsPlayerInCheckpoint(playerid, cpcaligulas))
  5997. {
  5998. SendClientMessage(playerid, GREY, "|_| Caligulas Casino |_|");
  5999. SendClientMessage(playerid, WHITE, "Rob /robcasino");
  6000. }
  6001.  
  6002. if(CPS_IsPlayerInCheckpoint(playerid, cp4Dragons))
  6003. {
  6004. SendClientMessage(playerid, GREY, "|_| 4Dragons Casino |_|");
  6005. SendClientMessage(playerid, WHITE, "Rob /robcasino");
  6006. }
  6007.  
  6008. 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))
  6009. {
  6010. if(!IsPlayerInAnyVehicle(playerid))
  6011. {
  6012. SendClientMessage(playerid, GREY, "|_| Dave's Intl. 24 Hours |_|");
  6013. SendClientMessage(playerid, WHITE, "Withdraw: /withdraw");
  6014. SendClientMessage(playerid, WHITE, "State /state");
  6015. SendClientMessage(playerid, WHITE, "Rob /robatm");
  6016. }
  6017. }
  6018.  
  6019. if(CPS_IsPlayerInCheckpoint(playerid, cplvpdentrance))
  6020. {
  6021. if(!IsPlayerInAnyVehicle(playerid))
  6022. {
  6023. SetPlayerInterior(playerid, 3);
  6024. SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6025. SetPlayerFacingAngle(playerid, 0);
  6026. SetCameraBehindPlayer(playerid);
  6027. PD[playerid] = 1;
  6028. SendClientMessage(playerid, WHITE, "Welcome to Las Venturas Police Dept.");
  6029. }
  6030. }
  6031.  
  6032. if(CPS_IsPlayerInCheckpoint(playerid, cplspdentrance))
  6033. {
  6034. if(!IsPlayerInAnyVehicle(playerid))
  6035. {
  6036. SetPlayerInterior(playerid, 3);
  6037. SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6038. SetPlayerFacingAngle(playerid, 0);
  6039. SetCameraBehindPlayer(playerid);
  6040. PD[playerid] = 2;
  6041. SendClientMessage(playerid, WHITE, "Welcome to Los Santos Police Dept.");
  6042. }
  6043. }
  6044. if(CPS_IsPlayerInCheckpoint(playerid, cpsfpdentrance))
  6045. {
  6046. if(!IsPlayerInAnyVehicle(playerid))
  6047. {
  6048. SetPlayerInterior(playerid, 3);
  6049. SetPlayerPos(playerid, 238.7411, 143.9135, 1003.0234);
  6050. SetPlayerFacingAngle(playerid, 0);
  6051. SetCameraBehindPlayer(playerid);
  6052. PD[playerid] = 3;
  6053. SendClientMessage(playerid, WHITE, "Welcome to San Fierro Police Dept.");
  6054. }
  6055. }
  6056.  
  6057. if(CPS_IsPlayerInCheckpoint(playerid, cplvpdexit))
  6058. {
  6059. if(PD[playerid] == 1)
  6060. {
  6061. SetPlayerInterior(playerid, 0);
  6062. SetPlayerPos(playerid, 2286.9600, 2429.1101, 10.8203);
  6063. SetPlayerFacingAngle(playerid, 180.0000);
  6064. SetCameraBehindPlayer(playerid);
  6065. }
  6066. if(PD[playerid] == 2)
  6067. {
  6068. SetPlayerInterior(playerid, 0);
  6069. SetPlayerPos(playerid, 1546.1191,-1675.5358,13.5617);
  6070. SetPlayerFacingAngle(playerid, 86.9884);
  6071. SetCameraBehindPlayer(playerid);
  6072. }
  6073. if(PD[playerid] == 3)
  6074. {
  6075. SetPlayerInterior(playerid, 0);
  6076. SetPlayerPos(playerid, -1605.8496,715.8705,12.0609);
  6077. SetPlayerFacingAngle(playerid, 6.5275);
  6078. SetCameraBehindPlayer(playerid);
  6079. }
  6080. }
  6081.  
  6082. if(CPS_IsPlayerInCheckpoint(playerid, cplvpdhand))
  6083. {
  6084. if(GetPlayerWantedLevel(playerid) > 3)
  6085. {
  6086. if(PD[playerid] == 1)
  6087. {
  6088. SendClientMessage(playerid, GREY, "|_| Las Venturas PD |_|");
  6089. SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6090. ShowMenuForPlayer(Hand, playerid);
  6091. TogglePlayerControllable(playerid, false);
  6092. }
  6093. if(PD[playerid] == 2)
  6094. {
  6095. SendClientMessage(playerid, GREY, "|_| Los Santos PD |_|");
  6096. SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6097. ShowMenuForPlayer(Hand, playerid);
  6098. TogglePlayerControllable(playerid, false);
  6099. }
  6100. if(PD[playerid] == 3)
  6101. {
  6102. SendClientMessage(playerid, GREY, "|_| San Fierro PD |_|");
  6103. SendClientMessage(playerid, WHITE, "Are you sure you want to hand yourself?");
  6104. ShowMenuForPlayer(Hand, playerid);
  6105. TogglePlayerControllable(playerid, false);
  6106. }
  6107. }
  6108. else
  6109. {
  6110. new string[250];
  6111. SendClientMessage(playerid, ERROR, "Only people with 4 or more Wanted Levels can hand themselves");
  6112. format(string, sizeof(string), "Your current Wanted Level: %d", GetPlayerWantedLevel(playerid));
  6113. SendClientMessage(playerid, ERROR, string);
  6114. }
  6115. }
  6116.  
  6117. if(CPS_IsPlayerInCheckpoint(playerid, cphospital) || CPS_IsPlayerInCheckpoint(playerid, cplshospital) || CPS_IsPlayerInCheckpoint(playerid, cpsfhospital))
  6118. {
  6119. if(!IsPlayerInAnyVehicle(playerid))
  6120. {
  6121. SendClientMessage(playerid, WHITE, "Need medical assistance? Type /healme ($500)");
  6122. }
  6123. }
  6124.  
  6125. if(CPS_IsPlayerInCheckpoint(playerid, cpdildoentrance))
  6126. {
  6127. if(!IsPlayerInAnyVehicle(playerid))
  6128. {
  6129. SetPlayerInterior(playerid, 3);
  6130. SetPlayerPos(playerid, -99.9340, -20.6957, 1000.7188);
  6131. SetPlayerFacingAngle(playerid, 0.5315);
  6132. SetCameraBehindPlayer(playerid);
  6133. SendClientMessage(playerid, WHITE, "Welcome to Las Venturas Dildos.");
  6134. }
  6135. }
  6136.  
  6137. if(CPS_IsPlayerInCheckpoint(playerid, cpdildoexit))
  6138. {
  6139. SetPlayerInterior(playerid, 0);
  6140. SetPlayerPos(playerid, 2088.4480, 2074.0068, 10.8203);
  6141. SetPlayerFacingAngle(playerid, 270.7921);
  6142. SetCameraBehindPlayer(playerid);
  6143. }
  6144.  
  6145. if(CPS_IsPlayerInCheckpoint(playerid, cpdildo))
  6146. {
  6147. TogglePlayerControllable(playerid, false);
  6148. ShowMenuForPlayer(Dildo, playerid);
  6149. }
  6150.  
  6151. if(CPS_IsPlayerInCheckpoint(playerid, cplvchentrance))
  6152. {
  6153. if(!IsPlayerInAnyVehicle(playerid))
  6154. {
  6155. SetPlayerInterior(playerid, 3);
  6156. SetPlayerPos(playerid, 384.6555, 173.7660, 1008.3828);
  6157. SetPlayerFacingAngle(playerid, 90.5014);
  6158. SetCameraBehindPlayer(playerid);
  6159. CH[playerid] = 1;
  6160. SendClientMessage(playerid, WHITE, "Welcome to Las Venturas City Hall.");
  6161. }
  6162. }
  6163.  
  6164. if(CPS_IsPlayerInCheckpoint(playerid, cplschentrance))
  6165. {
  6166. if(!IsPlayerInAnyVehicle(playerid))
  6167. {
  6168. SetPlayerInterior(playerid, 3);
  6169. SetPlayerPos(playerid, 384.6555, 173.7660, 1008.3828);
  6170. SetPlayerFacingAngle(playerid, 90.5014);
  6171. SetCameraBehindPlayer(playerid);
  6172. CH[playerid] = 2;
  6173. SendClientMessage(playerid, WHITE, "Welcome to Los Santos City Hall.");
  6174. }
  6175. }
  6176.  
  6177. if(CPS_IsPlayerInCheckpoint(playerid, cplvchexit))
  6178. {
  6179. if(CH[playerid] == 1)
  6180. {
  6181. SetPlayerInterior(playerid, 0);
  6182. SetPlayerPos(playerid, 2417.2981, 1123.3763, 10.8203);
  6183. SetPlayerFacingAngle(playerid, 271.8128);
  6184. SetCameraBehindPlayer(playerid);
  6185. }
  6186. if(CH[playerid] == 2)
  6187. {
  6188. SetPlayerInterior(playerid, 0);
  6189. SetPlayerPos(playerid, 1481.1832,-1765.8462,18.7958);
  6190. SetPlayerFacingAngle(playerid, 357.3454);
  6191. SetCameraBehindPlayer(playerid);
  6192. }
  6193. }
  6194.  
  6195. if(CPS_IsPlayerInCheckpoint(playerid, cpcityhall))
  6196. {
  6197. new string[128];
  6198. HideDraw(playerid);
  6199. TextDrawShowForPlayer(playerid, HALLBOX);
  6200. TextDrawShowForPlayer(playerid, text9);
  6201. TextDrawShowForPlayer(playerid, text19);
  6202. format(string, sizeof(string),"~n~~r~1.~w~Change Class~n~~n~~r~2.~w~Rob City hall");
  6203. TextDrawSetString(text19, string);
  6204. CHALLBOX[playerid] = 1;
  6205. TogglePlayerControllable(playerid, false);
  6206. }
  6207.  
  6208. if(CPS_IsPlayerInCheckpoint(playerid, cpammu))
  6209. {
  6210. HideDraw(playerid);
  6211. TextDrawShowForPlayer(playerid, AMMUBOX1);
  6212. TextDrawShowForPlayer(playerid, text37);
  6213. TextDrawShowForPlayer(playerid, text38);
  6214. AMMUBOX[playerid] = 1;
  6215. }
  6216.  
  6217. if(CPS_IsPlayerInCheckpoint(playerid, cpammu2))
  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, cpammu3))
  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, cpammu4))
  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, cpammu5))
  6242. {
  6243. HideDraw(playerid);
  6244. TextDrawShowForPlayer(playerid, AMMUBOX1);
  6245. TextDrawShowForPlayer(playerid, text37);
  6246. TextDrawShowForPlayer(playerid, text38);
  6247. AMMUBOX[playerid] = 1;
  6248. }
  6249. if(CPS_IsPlayerInCheckpoint(playerid, cpghost))
  6250. {
  6251. if(!IsPlayerInAnyVehicle(playerid))
  6252. {
  6253. new file[250], name[MAX_PLAYER_NAME];
  6254. GetPlayerName(playerid, name, sizeof(name));
  6255. format(file, sizeof(file), "%s.runix", name);
  6256. if(dini_Int(file, "RentalOwner") == 0)
  6257. {
  6258. TogglePlayerControllable(playerid, false);
  6259. ShowMenuForPlayer(Rental, playerid);
  6260. CAR[playerid] = 1;
  6261. }
  6262. else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6263. }
  6264. }
  6265. if(CPS_IsPlayerInCheckpoint(playerid, cplsghost))
  6266. {
  6267. if(!IsPlayerInAnyVehicle(playerid))
  6268. {
  6269. new file[250], name[MAX_PLAYER_NAME];
  6270. GetPlayerName(playerid, name, sizeof(name));
  6271. format(file, sizeof(file), "%s.runix", name);
  6272. if(dini_Int(file, "RentalOwner") == 0)
  6273. {
  6274. TogglePlayerControllable(playerid, false);
  6275. ShowMenuForPlayer(Rental, playerid);
  6276. CAR[playerid] = 2;
  6277. }
  6278. else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6279. }
  6280. }
  6281.  
  6282. if(CPS_IsPlayerInCheckpoint(playerid, cpsfghost))
  6283. {
  6284. if(!IsPlayerInAnyVehicle(playerid))
  6285. {
  6286. new file[250], name[MAX_PLAYER_NAME];
  6287. GetPlayerName(playerid, name, sizeof(name));
  6288. format(file, sizeof(file), "%s.runix", name);
  6289. if(dini_Int(file, "RentalOwner") == 0)
  6290. {
  6291. TogglePlayerControllable(playerid, false);
  6292. ShowMenuForPlayer(Rental, playerid);
  6293. CAR[playerid] = 3;
  6294. }
  6295. else if(dini_Int(file, "RentalOwner") == 1) SendClientMessage(playerid, ERROR, "You're the Rental's owner. You cannot rent or rob your own store.");
  6296. }
  6297. }
  6298.  
  6299. if(CPS_IsPlayerInCheckpoint(playerid, cpbarentrance))
  6300. {
  6301. if(!IsPlayerInAnyVehicle(playerid))
  6302. {
  6303. ShowMenuForPlayer(BarEntrance, playerid);
  6304. BAR[playerid] = 1;
  6305. TogglePlayerControllable(playerid, false);
  6306. }
  6307. }
  6308.  
  6309. if(CPS_IsPlayerInCheckpoint(playerid, cplsbarentrance))
  6310. {
  6311. if(!IsPlayerInAnyVehicle(playerid))
  6312. {
  6313. ShowMenuForPlayer(BarEntrance, playerid);
  6314. BAR[playerid] = 2;
  6315. TogglePlayerControllable(playerid, false);
  6316. }
  6317. }
  6318.  
  6319. if(CPS_IsPlayerInCheckpoint(playerid, cpbarexit))
  6320. {
  6321. if(BAR[playerid] == 1)
  6322. {
  6323. SetPlayerInterior(playerid, 0);
  6324. SetPlayerPos(playerid, 2108.8542, 1333.7935, 10.8203);
  6325. SetPlayerFacingAngle(playerid, 89.8424);
  6326. SetCameraBehindPlayer(playerid);
  6327. }
  6328. if(BAR[playerid] == 2)
  6329. {
  6330. SetPlayerInterior(playerid, 0);
  6331. SetPlayerPos(playerid, 2306.1807,-1646.4257,14.4478);
  6332. SetPlayerFacingAngle(playerid, 173.0816);
  6333. SetCameraBehindPlayer(playerid);
  6334. }
  6335. }
  6336.  
  6337. if(CPS_IsPlayerInCheckpoint(playerid, cpbincoentrance))
  6338. {
  6339. if(!IsPlayerInAnyVehicle(playerid))
  6340. {
  6341. SetPlayerInterior(playerid, 15);
  6342. SetPlayerPos(playerid, 207.6031, -106.4911, 1005.1328);
  6343. SetPlayerFacingAngle(playerid, 359.5176);
  6344. SetCameraBehindPlayer(playerid);
  6345. BIC[playerid] = 1;
  6346. SendClientMessage(playerid, WHITE, "Welcome to Binco.");
  6347. }
  6348. }
  6349.  
  6350. if(CPS_IsPlayerInCheckpoint(playerid, cplsbincoentrance))
  6351. {
  6352. if(!IsPlayerInAnyVehicle(playerid))
  6353. {
  6354. SetPlayerInterior(playerid, 15);
  6355. SetPlayerPos(playerid, 207.6031, -106.4911, 1005.1328);
  6356. SetPlayerFacingAngle(playerid, 359.5176);
  6357. SetCameraBehindPlayer(playerid);
  6358. BIC[playerid] = 2;
  6359. SendClientMessage(playerid, WHITE, "Welcome to Binco.");
  6360. }
  6361. }
  6362.  
  6363. if(CPS_IsPlayerInCheckpoint(playerid, cpbincoexit))
  6364. {
  6365. if(BIC[playerid] == 1)
  6366. {
  6367. SetPlayerInterior(playerid, 0);
  6368. SetPlayerPos(playerid, 2106.7976, 2257.4944, 11.0234);
  6369. SetPlayerFacingAngle(playerid, 275.3339);
  6370. SetCameraBehindPlayer(playerid);
  6371. }
  6372. if(BIC[playerid] == 2)
  6373. {
  6374. SetPlayerInterior(playerid, 0);
  6375. SetPlayerPos(playerid, 2245.6504,-1662.0643,15.4690);
  6376. SetPlayerFacingAngle(playerid, 341.0744);
  6377. SetCameraBehindPlayer(playerid);
  6378. }
  6379. }
  6380.  
  6381. if(CPS_IsPlayerInCheckpoint(playerid, cpbinco))
  6382. {
  6383. HideDraw(playerid);
  6384. TextDrawShowForPlayer(playerid, BBOX);
  6385. TextDrawShowForPlayer(playerid, text35);
  6386. TextDrawShowForPlayer(playerid, text36);
  6387. CSKIN[playerid] = 1;
  6388. }
  6389.  
  6390. if(CPS_IsPlayerInCheckpoint(playerid, cpzipentrance))
  6391. {
  6392. if(!IsPlayerInAnyVehicle(playerid))
  6393. {
  6394. SetPlayerInterior(playerid, 18);
  6395. SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6396. SetPlayerFacingAngle(playerid, 1.0461);
  6397. SetCameraBehindPlayer(playerid);
  6398. ZP[playerid] = 1;
  6399. SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6400. }
  6401. }
  6402. if(CPS_IsPlayerInCheckpoint(playerid, cplszipentrance))
  6403. {
  6404. if(!IsPlayerInAnyVehicle(playerid))
  6405. {
  6406. SetPlayerInterior(playerid, 18);
  6407. SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6408. SetPlayerFacingAngle(playerid, 1.0461);
  6409. SetCameraBehindPlayer(playerid);
  6410. ZP[playerid] = 2;
  6411. SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6412. }
  6413. }
  6414.  
  6415. if(CPS_IsPlayerInCheckpoint(playerid, cpsfzipentrance))
  6416. {
  6417. if(!IsPlayerInAnyVehicle(playerid))
  6418. {
  6419. SetPlayerInterior(playerid, 18);
  6420. SetPlayerPos(playerid, 161.2862, -92.0219, 1001.8047);
  6421. SetPlayerFacingAngle(playerid, 1.0461);
  6422. SetCameraBehindPlayer(playerid);
  6423. ZP[playerid] = 3;
  6424. SendClientMessage(playerid, WHITE, "Welcome to ZIP.");
  6425. }
  6426. }
  6427.  
  6428. if(CPS_IsPlayerInCheckpoint(playerid, cpzipexit))
  6429. {
  6430. if(ZP[playerid] == 1)
  6431. {
  6432. SetPlayerInterior(playerid, 0);
  6433. SetPlayerPos(playerid, 2249.2781, 966.7142, 10.8203);
  6434. SetPlayerFacingAngle(playerid, 0.8219);
  6435. SetCameraBehindPlayer(playerid);
  6436. }
  6437. if(ZP[playerid] == 2)
  6438. {
  6439. SetPlayerInterior(playerid, 0);
  6440. SetPlayerPos(playerid, 2139.0991,-1746.0112,13.5524);
  6441. SetPlayerFacingAngle(playerid, 182.6752);
  6442. SetCameraBehindPlayer(playerid);
  6443. }
  6444. if(ZP[playerid] == 3)
  6445. {
  6446. SetPlayerInterior(playerid, 0);
  6447. SetPlayerPos(playerid, -1883.5844,825.3109,35.1736);
  6448. SetPlayerFacingAngle(playerid, 47.3566);
  6449. SetCameraBehindPlayer(playerid);
  6450. }
  6451. }
  6452.  
  6453. if(CPS_IsPlayerInCheckpoint(playerid, cpzip))
  6454. {
  6455. HideDraw(playerid);
  6456. TextDrawShowForPlayer(playerid, BBOX);
  6457. TextDrawShowForPlayer(playerid, text35);
  6458. TextDrawShowForPlayer(playerid, text36);
  6459. CSKINZ[playerid] = 1;
  6460. }
  6461.  
  6462. if(CPS_IsPlayerInCheckpoint(playerid, cpbombshop))
  6463. {
  6464. new string[250], name[MAX_PLAYER_NAME];
  6465. GetPlayerName(playerid, name, sizeof(name));
  6466. SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6467. format(string, sizeof(string), "Wassup, %s?", name);
  6468. SendClientMessage(playerid, WHITE, string);
  6469. SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6470. SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6471. SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6472. }
  6473.  
  6474. if(CPS_IsPlayerInCheckpoint(playerid, cplsbombshop))
  6475. {
  6476. new string[250], name[MAX_PLAYER_NAME];
  6477. GetPlayerName(playerid, name, sizeof(name));
  6478. SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6479. format(string, sizeof(string), "Wassup, %s?", name);
  6480. SendClientMessage(playerid, WHITE, string);
  6481. SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6482. SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6483. SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6484. }
  6485.  
  6486. if(CPS_IsPlayerInCheckpoint(playerid, cpsfbombshop))
  6487. {
  6488. new string[250], name[MAX_PLAYER_NAME];
  6489. GetPlayerName(playerid, name, sizeof(name));
  6490. SendClientMessage(playerid, GREY, "|_| Bomb Shop |_|");
  6491. format(string, sizeof(string), "Wassup, %s?", name);
  6492. SendClientMessage(playerid, WHITE, string);
  6493. SendClientMessage(playerid, WHITE, "We work with serious shit here. I mean C4s.");
  6494. SendClientMessage(playerid, WHITE, "If you wanna buy some, type /buyc4. They cost $1000 each.");
  6495. SendClientMessage(playerid, WHITE, "Remember, you can only carry 3 blocks with you.");
  6496. }
  6497.  
  6498. if(CPS_IsPlayerInCheckpoint(playerid, cpurbanentrance))
  6499. {
  6500. if(!IsPlayerInAnyVehicle(playerid))
  6501. {
  6502. SetPlayerInterior(playerid, 1);
  6503. SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6504. SetPlayerFacingAngle(playerid, 0.8763);
  6505. SetCameraBehindPlayer(playerid);
  6506. RB[playerid] = 1;
  6507. SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6508. }
  6509. }
  6510.  
  6511. if(CPS_IsPlayerInCheckpoint(playerid, cplsurbanentrance))
  6512. {
  6513. if(!IsPlayerInAnyVehicle(playerid))
  6514. {
  6515. SetPlayerInterior(playerid, 1);
  6516. SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6517. SetPlayerFacingAngle(playerid, 0.8763);
  6518. SetCameraBehindPlayer(playerid);
  6519. RB[playerid] = 2;
  6520. SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6521. }
  6522. }
  6523.  
  6524. if(CPS_IsPlayerInCheckpoint(playerid, cpsfurbanentrance))
  6525. {
  6526. if(!IsPlayerInAnyVehicle(playerid))
  6527. {
  6528. SetPlayerInterior(playerid, 1);
  6529. SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6530. SetPlayerFacingAngle(playerid, 0.8763);
  6531. SetCameraBehindPlayer(playerid);
  6532. RB[playerid] = 4;
  6533. SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6534. }
  6535. }
  6536.  
  6537. if(CPS_IsPlayerInCheckpoint(playerid, cplsurbanentrance2))
  6538. {
  6539. if(!IsPlayerInAnyVehicle(playerid))
  6540. {
  6541. SetPlayerInterior(playerid, 1);
  6542. SetPlayerPos(playerid, 203.8431, -46.6475, 1001.8047);
  6543. SetPlayerFacingAngle(playerid, 0.8763);
  6544. SetCameraBehindPlayer(playerid);
  6545. RB[playerid] = 3;
  6546. SendClientMessage(playerid, WHITE, "Welcome to SubUrban.");
  6547. }
  6548. }
  6549.  
  6550. if(CPS_IsPlayerInCheckpoint(playerid, cpurbanexit))
  6551. {
  6552. if(RB[playerid] == 1)
  6553. {
  6554. SetPlayerInterior(playerid, 0);
  6555. SetPlayerPos(playerid, 2178.7288, 2293.6926, 10.8203);
  6556. SetPlayerFacingAngle(playerid, 117.6881);
  6557. SetCameraBehindPlayer(playerid);
  6558. }
  6559. if(RB[playerid] == 2)
  6560. {
  6561. SetPlayerInterior(playerid, 0);
  6562. SetPlayerPos(playerid, 501.7690,-1355.0167,16.1328);
  6563. SetPlayerFacingAngle(playerid, 337.6372);
  6564. SetCameraBehindPlayer(playerid);
  6565. }
  6566. if(RB[playerid] == 3)
  6567. {
  6568. SetPlayerInterior(playerid, 0);
  6569. SetPlayerPos(playerid, 820.0910,-1760.1797,13.5495);
  6570. SetPlayerFacingAngle(playerid, 139.5130);
  6571. SetCameraBehindPlayer(playerid);
  6572. }
  6573. if(RB[playerid] == 4)
  6574. {
  6575. SetPlayerInterior(playerid, 0);
  6576. SetPlayerPos(playerid, -2494.4319,-142.8247,25.6094);
  6577. SetPlayerFacingAngle(playerid, 91.5816);
  6578. SetCameraBehindPlayer(playerid);
  6579. }
  6580. }
  6581.  
  6582. if(CPS_IsPlayerInCheckpoint(playerid, cpurban))
  6583. {
  6584. HideDraw(playerid);
  6585. TextDrawShowForPlayer(playerid, BBOX);
  6586. TextDrawShowForPlayer(playerid, text35);
  6587. TextDrawShowForPlayer(playerid, text36);
  6588. CSKINU[playerid] = 1;
  6589. }
  6590.  
  6591. if(CPS_IsPlayerInCheckpoint(playerid, cpdrugs))
  6592. {
  6593. if(!IsPlayerInAnyVehicle(playerid))
  6594. {
  6595. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6596. {
  6597. TogglePlayerControllable(playerid, false);
  6598. ShowMenuForPlayer(Drugs, playerid);
  6599. SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6600. SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6601. SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6602. SendClientMessage(playerid, WHITE, "5 grams for $20");
  6603. SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6604. SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6605. SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6606. SendClientMessage(playerid, WHITE, "You choose.");
  6607. }
  6608. else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6609. }
  6610. }
  6611. if(CPS_IsPlayerInCheckpoint(playerid, cplsdrugs))
  6612. {
  6613. if(!IsPlayerInAnyVehicle(playerid))
  6614. {
  6615. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6616. {
  6617. TogglePlayerControllable(playerid, false);
  6618. ShowMenuForPlayer(Drugs, playerid);
  6619. SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6620. SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6621. SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6622. SendClientMessage(playerid, WHITE, "5 grams for $20");
  6623. SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6624. SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6625. SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6626. SendClientMessage(playerid, WHITE, "You choose.");
  6627. }
  6628. else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6629. }
  6630. }
  6631. if(CPS_IsPlayerInCheckpoint(playerid, cpsfdrugs))
  6632. {
  6633. if(!IsPlayerInAnyVehicle(playerid))
  6634. {
  6635. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6636. {
  6637. TogglePlayerControllable(playerid, false);
  6638. ShowMenuForPlayer(Drugs, playerid);
  6639. SendClientMessage(playerid, GREY, "|_| The Drug Point |_|");
  6640. SendClientMessage(playerid, WHITE, "Hey dog, liked our new place?");
  6641. SendClientMessage(playerid, WHITE, "Look dude, we can sell you:");
  6642. SendClientMessage(playerid, WHITE, "5 grams for $20");
  6643. SendClientMessage(playerid, WHITE, "or 15 grams for $30");
  6644. SendClientMessage(playerid, WHITE, "or 20 grams for $40");
  6645. SendClientMessage(playerid, WHITE, "or 25 grams for $50");
  6646. SendClientMessage(playerid, WHITE, "You choose.");
  6647. }
  6648. else SendClientMessage(playerid, ERROR, "Cops and Medics cannot buy drugs.");
  6649. }
  6650. }
  6651. return true;
  6652. }
  6653.  
  6654. public OnPlayerLeaveCheckpoint(playerid)
  6655. {
  6656. if(!CPS_IsPlayerInCheckpoint(playerid, cpdildo) && RobDildo[playerid] >=1)
  6657. {
  6658. RobDildo[playerid] = 0;
  6659. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6660. }
  6661. if(!CPS_IsPlayerInCheckpoint(playerid, cp4Dragons) && RobD4[playerid] >=1)
  6662. {
  6663. RobD4[playerid] = 0;
  6664. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6665. }
  6666. if(!CPS_IsPlayerInCheckpoint(playerid, cpcaligulas) && RobCa[playerid] >=1)
  6667. {
  6668. RobCa[playerid] = 0;
  6669. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6670. }
  6671. if(!CPS_IsPlayerInCheckpoint(playerid, cpcityhall) && RobHall[playerid] >=1)
  6672. {
  6673. RobHall[playerid] = 0;
  6674. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6675. }
  6676. if(!CPS_IsPlayerInCheckpoint(playerid, cpghost) && RobRental[playerid] >=1)
  6677. {
  6678. RobRental[playerid] = 0;
  6679. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6680. }
  6681. if(!CPS_IsPlayerInCheckpoint(playerid, cpbank) && RobBank[playerid] >= 1)
  6682. {
  6683. RobBank[playerid] = 0;
  6684. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6685. }
  6686. if(!CPS_IsPlayerInCheckpoint(playerid, cpbinco) && RobBinco[playerid] >= 1)
  6687. {
  6688. RobBinco[playerid] = 0;
  6689. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6690. }
  6691. if(!CPS_IsPlayerInCheckpoint(playerid, cpzip) && RobZip[playerid] >= 1)
  6692. {
  6693. RobZip[playerid] = 0;
  6694. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6695. }
  6696. if(!CPS_IsPlayerInCheckpoint(playerid, cpurban) && RobUrban[playerid] >= 1)
  6697. {
  6698. RobUrban[playerid] = 0;
  6699. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6700. }
  6701. if(!CPS_IsPlayerInCheckpoint(playerid, cpammu) && RobAmmu[playerid] >= 1)
  6702. {
  6703. RobAmmu[playerid] = 0;
  6704. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6705. }
  6706. if(!CPS_IsPlayerInCheckpoint(playerid, cpammu2) && RobAmmu2[playerid] >= 1)
  6707. {
  6708. RobAmmu2[playerid] = 0;
  6709. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6710. }
  6711. if(!CPS_IsPlayerInCheckpoint(playerid, cpammu3) && RobAmmu3[playerid] >= 1)
  6712. {
  6713. RobAmmu3[playerid] = 0;
  6714. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6715. }
  6716. if(!CPS_IsPlayerInCheckpoint(playerid, cpammu4) && RobAmmu4[playerid] >= 1)
  6717. {
  6718. RobAmmu4[playerid] = 0;
  6719. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6720. }
  6721. if(!CPS_IsPlayerInCheckpoint(playerid, cpammu5) && RobAmmu5[playerid] >= 1)
  6722. {
  6723. RobAmmu5[playerid] = 0;
  6724. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6725. }
  6726. if(!CPS_IsPlayerInCheckpoint(playerid, cpdrugs) && RobDrugs[playerid] >= 1)
  6727. {
  6728. RobDrugs[playerid] = 0;
  6729. SendClientMessage(playerid, ERROR, "You left the Checkpoint. The robbery has been canceled.");
  6730. }
  6731. return true;
  6732. }
  6733.  
  6734. public OnPlayerRequestSpawn(playerid)
  6735. {
  6736. if(IsPlayerLogged[playerid] == 0)
  6737. {
  6738. SendClientMessage(playerid, ERROR, "You need to login before the spawn. Type /login [password]!");
  6739. return false;
  6740. }
  6741. else if(IsPlayerLogged[playerid] == 1)
  6742. {
  6743. if(GetPlayerSkin(playerid) >= 280 && GetPlayerSkin(playerid) <= 288 || GetPlayerSkin(playerid) >= 274 && GetPlayerSkin(playerid) <= 276)
  6744. {
  6745. if(GetPlayerWantedLevel(playerid) > 0)
  6746. {
  6747. SendClientMessage(playerid, ERROR, "The Police are looking for you. Login as a Civilian and hand yourself.");
  6748. return false;
  6749. }
  6750. else if(GetPlayerWantedLevel(playerid) == 0) return true;
  6751. }
  6752. else return true;
  6753. }
  6754. return true;
  6755. }
  6756.  
  6757. public OnObjectMoved(objectid)
  6758. {
  6759. return true;
  6760. }
  6761.  
  6762. public OnPlayerSelectedMenuRow(playerid, row)
  6763. {
  6764. new rname[MAX_PLAYER_NAME];
  6765. GetPlayerName(playerid, rname, sizeof(rname));
  6766. if(GetPlayerMenu(playerid) == Hand)
  6767. {
  6768. switch(row)
  6769. {
  6770. case 0:
  6771. {
  6772. new spawn = random(sizeof(PrisonSpawn)), string[250], name[MAX_PLAYER_NAME], Float:health;
  6773. GetPlayerHealth(playerid, health);
  6774. SendClientMessage(playerid, GREY, "|_| San Andreas Police Dept. |_|");
  6775. SendClientMessage(playerid, WHITE, "You've handed yourself.");
  6776. SendClientMessage(playerid, WHITE, "They've confiscated your weapons.");
  6777. SendClientMessage(playerid, WHITE, "Wanted Level reduced to zero.");
  6778. ResetPlayerWeapons(playerid);
  6779. SetPlayerPos(playerid, PrisonSpawn[spawn][0], PrisonSpawn[spawn][1], PrisonSpawn[spawn][2]);
  6780. SetPlayerFacingAngle(playerid, PrisonSpawn[spawn][3]);
  6781. SetCameraBehindPlayer(playerid);
  6782. if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5) PrisonTime[playerid] = 60;
  6783. else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 8) PrisonTime[playerid] = 120;
  6784. else if(GetPlayerWantedLevel(playerid) >= 9 && GetPlayerWantedLevel(playerid) <= 11) PrisonTime[playerid] = 180;
  6785. else if(GetPlayerWantedLevel(playerid) >= 12 && GetPlayerWantedLevel(playerid) <= 14) PrisonTime[playerid] = 240;
  6786. else if(GetPlayerWantedLevel(playerid) >= 15) PrisonTime[playerid] = 300;
  6787. SetPlayerWantedLevel(playerid, 0);
  6788. TogglePlayerControllable(playerid, true);
  6789. GetPlayerName(playerid, name, sizeof(name));
  6790. SetPlayerJailed(playerid, true);
  6791. format(string, sizeof(string), "%s[ID:%d] has handed himself.", name, playerid);
  6792. Announce(string);
  6793. if(health <= 90)
  6794. {
  6795. SendClientMessage(playerid, GREY, "|_| San Andreas Police Dept. |_|");
  6796. SendClientMessage(playerid, WHITE, "SA PD has given you some food.");
  6797. SetPlayerHealth(playerid, health+10);
  6798. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  6799. }
  6800. }
  6801. case 1:
  6802. {
  6803. TogglePlayerControllable(playerid, true);
  6804. }
  6805. }
  6806. }
  6807. if(GetPlayerMenu(playerid) == Dildo)
  6808. {
  6809. switch(row)
  6810. {
  6811. case 0:
  6812. {
  6813. if(GetPlayerMoney(playerid) > 49)
  6814. {
  6815. GivePlayerMoney(playerid, -50);
  6816. GivePlayerWeapon(playerid, 10, 1);
  6817. SendClientMessage(playerid, WHITE, "You bought a Purple Dildo for $50!");
  6818. TogglePlayerControllable(playerid, true);
  6819. }
  6820. else
  6821. {
  6822. SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6823. TogglePlayerControllable(playerid, true);
  6824. }
  6825. }
  6826. case 1:
  6827. {
  6828. if(GetPlayerMoney(playerid) > 49)
  6829. {
  6830. GivePlayerMoney(playerid, -50);
  6831. GivePlayerWeapon(playerid, 11, 1);
  6832. SendClientMessage(playerid, WHITE, "You bought a White Dildo for $50!");
  6833. TogglePlayerControllable(playerid, true);
  6834. }
  6835. else
  6836. {
  6837. SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6838. TogglePlayerControllable(playerid, true);
  6839. }
  6840. }
  6841. case 2:
  6842. {
  6843. if(GetPlayerMoney(playerid) > 49)
  6844. {
  6845. GivePlayerMoney(playerid, -50);
  6846. GivePlayerWeapon(playerid, 13, 1);
  6847. SendClientMessage(playerid, WHITE, "You bought a GREY Dildo for $50!");
  6848. TogglePlayerControllable(playerid, true);
  6849. }
  6850. else
  6851. {
  6852. SendClientMessage(playerid, ERROR, "Not enough money! $50");
  6853. TogglePlayerControllable(playerid, true);
  6854. }
  6855. }
  6856. case 3:
  6857. {
  6858. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6859. {
  6860. if(DildoRecentlyRobbed == 0)
  6861. {
  6862. new chances = random(200);
  6863. if(chances >= 0 && chances <= 100)
  6864. {
  6865. new string[250];
  6866. RobDildo[playerid] = 20;
  6867. TogglePlayerControllable(playerid, true);
  6868. DildoRecentlyRobbed = 250;
  6869. format(string, sizeof(string), "%s[ID:%d] started a Robbery at Las Venturas Dildos!", rname, playerid);
  6870. Announce(string);
  6871. }
  6872. else if(chances >= 101 && chances <= 200)
  6873. {
  6874. new name[MAX_PLAYER_NAME], copmsg[250];
  6875. GetPlayerName(playerid, name, sizeof(name));
  6876. SendClientMessage(playerid, ERROR, "Your attempt to rob Las Venturas Dildos failed!");
  6877. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  6878. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  6879. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Las Venturas Dildos.", name);
  6880. SendRadioMessageToCops(copmsg);
  6881. DildoRecentlyRobbed = 200;
  6882. }
  6883. }
  6884. else if(DildoRecentlyRobbed > 0) SendClientMessage(playerid, ERROR, "Las Venturas Dildo has been robbed recently!");
  6885. TogglePlayerControllable(playerid, true);
  6886. }
  6887. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  6888. }
  6889. }
  6890. }
  6891. if(GetPlayerMenu(playerid) == Rental)
  6892. {
  6893. switch(row)
  6894. {
  6895. case 0:
  6896. {
  6897. TogglePlayerControllable(playerid, false);
  6898. SetTimerEx("ShowCarListMenu", 250, false, "d", playerid);
  6899. }
  6900. case 1:
  6901. {
  6902. if(gTeam[playerid] != COP && gTeam[playerid] != Medic)
  6903. {
  6904. if(RentalRecentlyRobbed == 0)
  6905. {
  6906. new chances = random(200);
  6907. if(chances >= 0 && chances <= 170)
  6908. {
  6909. new string[250];
  6910. RobRental[playerid] = 20;
  6911. TogglePlayerControllable(playerid, true);
  6912. RentalRecentlyRobbed = 250;
  6913. format(string, sizeof(string), "%s[ID:%d] started a Robbery at Car Shop!", rname, playerid);
  6914. Announce(string);
  6915. }
  6916. else if(chances >= 171 && chances <= 200)
  6917. {
  6918. new name[MAX_PLAYER_NAME], copmsg[250];
  6919. GetPlayerName(playerid, name, sizeof(name));
  6920. SendClientMessage(playerid, ERROR, "Your attempt to rob Car Shop failed!");
  6921. SendClientMessage(playerid, ERROR, "The Police are on their way to the store.");
  6922. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  6923. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob Car Shop.", name);
  6924. SendRadioMessageToCops(copmsg);
  6925. RentalRecentlyRobbed = 200;
  6926. TogglePlayerControllable(playerid, true);
  6927. }
  6928. }
  6929. else if(RentalRecentlyRobbed > 0)
  6930. {
  6931. SendClientMessage(playerid, ERROR, "Car Shop has been robbed recently!");
  6932. TogglePlayerControllable(playerid, true);
  6933. }
  6934. }
  6935. else SendClientMessage(playerid, ERROR, "Your team cannot rob anything."); TogglePlayerControllable(playerid, true);
  6936. }
  6937. }
  6938. }
  6939. if(GetPlayerMenu(playerid) == CarList)
  6940. {
  6941. switch(row)
  6942. {
  6943. case 0: // Voodoo
  6944. {
  6945. if(RentedACarRecently[playerid] == 0)
  6946. {
  6947. if(GetPlayerMoney(playerid) > 19999)
  6948. {
  6949. if(CAR[playerid] == 1)
  6950. {
  6951. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  6952. PutPlayerInVehicle(playerid, vehicle, 0);
  6953. Rented[vehicle] = 1;
  6954. GivePlayerMoney(playerid, -20000);
  6955. GetPlayerName(playerid, name, sizeof(name));
  6956. format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  6957. Announce(string);
  6958. RentedACarRecently[playerid] = 60;
  6959. TogglePlayerControllable(playerid, true);
  6960. for(new i = 0; i < MAX_PLAYERS; i++)
  6961. {
  6962. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  6963. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  6964. format(file, sizeof(file), "%s.runix", rentalowner);
  6965. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  6966. {
  6967. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  6968. SendClientMessage(i, SERVER_COLOR, ownermsg);
  6969. SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  6970. SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  6971. }
  6972. }
  6973. }
  6974. if(CAR[playerid] == 2)
  6975. {
  6976. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  6977. PutPlayerInVehicle(playerid, vehicle, 0);
  6978. Rented[vehicle] = 1;
  6979. GivePlayerMoney(playerid, -20000);
  6980. GetPlayerName(playerid, name, sizeof(name));
  6981. format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  6982. Announce(string);
  6983. RentedACarRecently[playerid] = 60;
  6984. TogglePlayerControllable(playerid, true);
  6985. for(new i = 0; i < MAX_PLAYERS; i++)
  6986. {
  6987. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  6988. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  6989. format(file, sizeof(file), "%s.runix", rentalowner);
  6990. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  6991. {
  6992. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  6993. SendClientMessage(i, SERVER_COLOR, ownermsg);
  6994. SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  6995. SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  6996. }
  6997. }
  6998. }
  6999. if(CAR[playerid] == 3)
  7000. {
  7001. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(412, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7002. PutPlayerInVehicle(playerid, vehicle, 0);
  7003. Rented[vehicle] = 1;
  7004. GivePlayerMoney(playerid, -20000);
  7005. GetPlayerName(playerid, name, sizeof(name));
  7006. format(string, sizeof(string), "%s[ID:%d] rented a Voodoo from Car Shop for $20000!", name, playerid);
  7007. Announce(string);
  7008. RentedACarRecently[playerid] = 60;
  7009. TogglePlayerControllable(playerid, true);
  7010. for(new i = 0; i < MAX_PLAYERS; i++)
  7011. {
  7012. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7013. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7014. format(file, sizeof(file), "%s.runix", rentalowner);
  7015. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7016. {
  7017. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Voodoo for $20000 in your Rental Business.", name, playerid);
  7018. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7019. SendClientMessage(i, SERVER_COLOR, "$20000 deposited to your Bank Account.");
  7020. SetPlayerBankCash(i, GetPlayerBankCash(i)+20000);
  7021. }
  7022. }
  7023. }
  7024. }
  7025. else SendClientMessage(playerid, ERROR, "Not enough money! $20000"); TogglePlayerControllable(playerid, true);
  7026. }
  7027. else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7028. }
  7029. case 1: // Sultan
  7030. {
  7031. if(RentedACarRecently[playerid] == 0)
  7032. {
  7033. if(GetPlayerMoney(playerid) > 49999)
  7034. {
  7035. if(CAR[playerid] == 1)
  7036. {
  7037. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7038. PutPlayerInVehicle(playerid, vehicle, 0);
  7039. Rented[vehicle] = 1;
  7040. GivePlayerMoney(playerid, -50000);
  7041. GetPlayerName(playerid, name, sizeof(name));
  7042. format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7043. Announce(string);
  7044. RentedACarRecently[playerid] = 60;
  7045. TogglePlayerControllable(playerid, true);
  7046. for(new i = 0; i < MAX_PLAYERS; i++)
  7047. {
  7048. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7049. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7050. format(file, sizeof(file), "%s.runix", rentalowner);
  7051. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7052. {
  7053. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7054. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7055. SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7056. SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7057. }
  7058. }
  7059. }
  7060. if(CAR[playerid] == 2)
  7061. {
  7062. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7063. PutPlayerInVehicle(playerid, vehicle, 0);
  7064. Rented[vehicle] = 1;
  7065. GivePlayerMoney(playerid, -50000);
  7066. GetPlayerName(playerid, name, sizeof(name));
  7067. format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7068. Announce(string);
  7069. RentedACarRecently[playerid] = 60;
  7070. TogglePlayerControllable(playerid, true);
  7071. for(new i = 0; i < MAX_PLAYERS; i++)
  7072. {
  7073. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7074. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7075. format(file, sizeof(file), "%s.runix", rentalowner);
  7076. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7077. {
  7078. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7079. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7080. SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7081. SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7082. }
  7083. }
  7084. }
  7085. if(CAR[playerid] == 3)
  7086. {
  7087. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(560, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7088. PutPlayerInVehicle(playerid, vehicle, 0);
  7089. Rented[vehicle] = 1;
  7090. GivePlayerMoney(playerid, -50000);
  7091. GetPlayerName(playerid, name, sizeof(name));
  7092. format(string, sizeof(string), "%s[ID:%d] rented a Sultan from Car Shop for $50000!", name, playerid);
  7093. Announce(string);
  7094. RentedACarRecently[playerid] = 60;
  7095. TogglePlayerControllable(playerid, true);
  7096. for(new i = 0; i < MAX_PLAYERS; i++)
  7097. {
  7098. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7099. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7100. format(file, sizeof(file), "%s.runix", rentalowner);
  7101. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7102. {
  7103. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Sultan for $50000 in your Rental Business.", name, playerid);
  7104. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7105. SendClientMessage(i, SERVER_COLOR, "$50000 deposited to your Bank Account.");
  7106. SetPlayerBankCash(i, GetPlayerBankCash(i)+50000);
  7107. }
  7108. }
  7109. }
  7110. }
  7111. else SendClientMessage(playerid, ERROR, "Not enough money! $50000"); TogglePlayerControllable(playerid, true);
  7112. }
  7113. else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7114. }
  7115. case 2: // Savanna
  7116. {
  7117. if(RentedACarRecently[playerid] == 0)
  7118. {
  7119. if(GetPlayerMoney(playerid) > 34999)
  7120. {
  7121. if(CAR[playerid] == 1)
  7122. {
  7123. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7124. PutPlayerInVehicle(playerid, vehicle, 0);
  7125. Rented[vehicle] = 1;
  7126. GivePlayerMoney(playerid, -35000);
  7127. GetPlayerName(playerid, name, sizeof(name));
  7128. format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7129. Announce(string);
  7130. RentedACarRecently[playerid] = 60;
  7131. TogglePlayerControllable(playerid, true);
  7132. for(new i = 0; i < MAX_PLAYERS; i++)
  7133. {
  7134. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7135. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7136. format(file, sizeof(file), "%s.runix", rentalowner);
  7137. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7138. {
  7139. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7140. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7141. SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7142. SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7143. }
  7144. }
  7145. }
  7146. if(CAR[playerid] == 2)
  7147. {
  7148. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7149. PutPlayerInVehicle(playerid, vehicle, 0);
  7150. Rented[vehicle] = 1;
  7151. GivePlayerMoney(playerid, -35000);
  7152. GetPlayerName(playerid, name, sizeof(name));
  7153. format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7154. Announce(string);
  7155. RentedACarRecently[playerid] = 60;
  7156. TogglePlayerControllable(playerid, true);
  7157. for(new i = 0; i < MAX_PLAYERS; i++)
  7158. {
  7159. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7160. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7161. format(file, sizeof(file), "%s.runix", rentalowner);
  7162. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7163. {
  7164. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7165. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7166. SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7167. SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7168. }
  7169. }
  7170. }
  7171. if(CAR[playerid] == 3)
  7172. {
  7173. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(567, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7174. PutPlayerInVehicle(playerid, vehicle, 0);
  7175. Rented[vehicle] = 1;
  7176. GivePlayerMoney(playerid, -35000);
  7177. GetPlayerName(playerid, name, sizeof(name));
  7178. format(string, sizeof(string), "%s[ID:%d] rented a Savanna from Car Shop for $35000!", name, playerid);
  7179. Announce(string);
  7180. RentedACarRecently[playerid] = 60;
  7181. TogglePlayerControllable(playerid, true);
  7182. for(new i = 0; i < MAX_PLAYERS; i++)
  7183. {
  7184. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7185. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7186. format(file, sizeof(file), "%s.runix", rentalowner);
  7187. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7188. {
  7189. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Savanna for $35000 in your Rental Business.", name, playerid);
  7190. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7191. SendClientMessage(i, SERVER_COLOR, "$35000 deposited to your Bank Account.");
  7192. SetPlayerBankCash(i, GetPlayerBankCash(i)+35000);
  7193. }
  7194. }
  7195. }
  7196. }
  7197. else SendClientMessage(playerid, ERROR, "Not enough money! $35000"); TogglePlayerControllable(playerid, true);
  7198. }
  7199. else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7200. }
  7201. case 3: // Slamvan
  7202. {
  7203. if(RentedACarRecently[playerid] == 0)
  7204. {
  7205. if(GetPlayerMoney(playerid) > 24999)
  7206. {
  7207. if(CAR[playerid] == 1)
  7208. {
  7209. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, 2174.0623, 1421.0023, 10.6564, 90.4570, -1, -1);
  7210. PutPlayerInVehicle(playerid, vehicle, 0);
  7211. Rented[vehicle] = 1;
  7212. GivePlayerMoney(playerid, -25000);
  7213. GetPlayerName(playerid, name, sizeof(name));
  7214. format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7215. Announce(string);
  7216. RentedACarRecently[playerid] = 60;
  7217. TogglePlayerControllable(playerid, true);
  7218. for(new i = 0; i < MAX_PLAYERS; i++)
  7219. {
  7220. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7221. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7222. format(file, sizeof(file), "%s.runix", rentalowner);
  7223. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7224. {
  7225. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7226. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7227. SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7228. SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7229. }
  7230. }
  7231. }
  7232. if(CAR[playerid] == 2)
  7233. {
  7234. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, 1691.6538,-1477.3641,13.1471,89.9192, -1, -1);
  7235. PutPlayerInVehicle(playerid, vehicle, 0);
  7236. Rented[vehicle] = 1;
  7237. GivePlayerMoney(playerid, -25000);
  7238. GetPlayerName(playerid, name, sizeof(name));
  7239. format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7240. Announce(string);
  7241. RentedACarRecently[playerid] = 60;
  7242. TogglePlayerControllable(playerid, true);
  7243. for(new i = 0; i < MAX_PLAYERS; i++)
  7244. {
  7245. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7246. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7247. format(file, sizeof(file), "%s.runix", rentalowner);
  7248. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7249. {
  7250. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7251. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7252. SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7253. SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7254. }
  7255. }
  7256. }
  7257. if(CAR[playerid] == 3)
  7258. {
  7259. new string[250], name[MAX_PLAYER_NAME], vehicle = AddStaticVehicle(535, -1928.6866,275.1254,40.8135,180.9483, -1, -1);
  7260. PutPlayerInVehicle(playerid, vehicle, 0);
  7261. Rented[vehicle] = 1;
  7262. GivePlayerMoney(playerid, -25000);
  7263. GetPlayerName(playerid, name, sizeof(name));
  7264. format(string, sizeof(string), "%s[ID:%d] rented a Slamvan from Car Shop for $25000!", name, playerid);
  7265. Announce(string);
  7266. RentedACarRecently[playerid] = 60;
  7267. TogglePlayerControllable(playerid, true);
  7268. for(new i = 0; i < MAX_PLAYERS; i++)
  7269. {
  7270. new file[256], rentalowner[MAX_PLAYER_NAME], ownermsg[250];
  7271. GetPlayerName(i, rentalowner, sizeof(rentalowner));
  7272. format(file, sizeof(file), "%s.runix", rentalowner);
  7273. if(IsPlayerConnected(i) && dini_Int(file, "RentalOwner") == 1)
  7274. {
  7275. format(ownermsg, sizeof(ownermsg), "%s[ID:%d] rented a Slamvan for $25000 in your Rental Business.", name, playerid);
  7276. SendClientMessage(i, SERVER_COLOR, ownermsg);
  7277. SendClientMessage(i, SERVER_COLOR, "$25000 deposited to your Bank Account.");
  7278. SetPlayerBankCash(i, GetPlayerBankCash(i)+25000);
  7279. }
  7280. }
  7281. }
  7282. }
  7283. else SendClientMessage(playerid, ERROR, "Not enough money! $25000"); TogglePlayerControllable(playerid, true);
  7284. }
  7285. else SendClientMessage(playerid, ERROR, "You've recently rented a car!"); TogglePlayerControllable(playerid, true);
  7286. }
  7287. }
  7288. }
  7289. if(GetPlayerMenu(playerid) == BarEntrance)
  7290. {
  7291. switch(row)
  7292. {
  7293. case 0: // Enter the bar
  7294. {
  7295. SetPlayerInterior(playerid, 1);
  7296. SetPlayerPos(playerid, 2103.0239, 1332.9640, 1297.4639);
  7297. SetPlayerFacingAngle(playerid, 359.6409);
  7298. SetCameraBehindPlayer(playerid);
  7299. SendClientMessage(playerid, WHITE, "Welcome to BulletXT's Bar.");
  7300. TogglePlayerControllable(playerid, true);
  7301. InsideBar[playerid] = 1;
  7302. }
  7303. }
  7304. }
  7305.  
  7306. if(GetPlayerMenu(playerid) == Drugs)
  7307. {
  7308. switch(row)
  7309. {
  7310. case 0: // 5 grams $20
  7311. {
  7312. if(GetPlayerMoney(playerid) > 19)
  7313. {
  7314. GivePlayerMoney(playerid, -20);
  7315. SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+5);
  7316. TogglePlayerControllable(playerid, true);
  7317. SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7318. SendClientMessage(playerid, WHITE, "You bought 5 grams for $20");
  7319. }
  7320. else SendClientMessage(playerid, ERROR, "Not enough money! $20"); TogglePlayerControllable(playerid, true);
  7321. }
  7322. case 1: // 15 grams $30
  7323. {
  7324. if(GetPlayerMoney(playerid) > 29)
  7325. {
  7326. GivePlayerMoney(playerid, -30);
  7327. SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+15);
  7328. TogglePlayerControllable(playerid, true);
  7329. SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7330. SendClientMessage(playerid, WHITE, "You bought 15 grams for $30");
  7331. }
  7332. else SendClientMessage(playerid, ERROR, "Not enough money! $30"); TogglePlayerControllable(playerid, true);
  7333. }
  7334. case 2: // 20 grams $40
  7335. {
  7336. if(GetPlayerMoney(playerid) > 39)
  7337. {
  7338. GivePlayerMoney(playerid, -40);
  7339. SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+20);
  7340. TogglePlayerControllable(playerid, true);
  7341. SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7342. SendClientMessage(playerid, WHITE, "You bought 20 grams for $40");
  7343. }
  7344. else SendClientMessage(playerid, ERROR, "Not enough money! $40"); TogglePlayerControllable(playerid, true);
  7345. }
  7346. case 3: // 25 grams $50
  7347. {
  7348. if(GetPlayerMoney(playerid) > 49)
  7349. {
  7350. GivePlayerMoney(playerid, -50);
  7351. SetPlayerDrugs(playerid, GetPlayerDrugs(playerid)+25);
  7352. TogglePlayerControllable(playerid, true);
  7353. SendClientMessage(playerid, GREY, "|_| Drugs Bought |_|");
  7354. SendClientMessage(playerid, WHITE, "You bought 25 grams for $50");
  7355. }
  7356. else SendClientMessage(playerid, ERROR, "Not enough money! $50"); TogglePlayerControllable(playerid, true);
  7357. }
  7358. case 4: // rob
  7359. {
  7360. if(DrugsRecentlyRobbed == 0)
  7361. {
  7362. new chances = random(200);
  7363. if(chances >= 0 && chances <= 170)
  7364. {
  7365. new string[250];
  7366. RobDrugs[playerid] = 20;
  7367. TogglePlayerControllable(playerid, true);
  7368. DrugsRecentlyRobbed = 250;
  7369. format(string, sizeof(string), "%s[ID:%d] started a Robbery at the Drug Point!", rname, playerid);
  7370. Announce(string);
  7371. }
  7372. else if(chances >= 171 && chances <= 200)
  7373. {
  7374. new name[MAX_PLAYER_NAME], copmsg[250];
  7375. GetPlayerName(playerid, name, sizeof(name));
  7376. SendClientMessage(playerid, ERROR, "Your attempt to rob the Drug Point failed!");
  7377. SendClientMessage(playerid, ERROR, "The Police are on their way.");
  7378. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 1);
  7379. format(copmsg, sizeof(copmsg), "[HQ] %s attemped to rob the Drug Point.", name);
  7380. SendRadioMessageToCops(copmsg);
  7381. DrugsRecentlyRobbed = 200;
  7382. TogglePlayerControllable(playerid, true);
  7383. }
  7384. }
  7385. else if(DrugsRecentlyRobbed > 0)
  7386. {
  7387. SendClientMessage(playerid, ERROR, "The Drug Point has been robbed recently!");
  7388. TogglePlayerControllable(playerid, true);
  7389. }
  7390. }
  7391. }
  7392. }
  7393.  
  7394. return true;
  7395. }
  7396.  
  7397. public OnPlayerExitedMenu(playerid)
  7398. {
  7399. if(GetPlayerMenu(playerid) == Hand) TogglePlayerControllable(playerid, true);
  7400. else if(GetPlayerMenu(playerid) == Dildo) TogglePlayerControllable(playerid, true);
  7401. else if(GetPlayerMenu(playerid) == Rental) TogglePlayerControllable(playerid, true);
  7402. else if(GetPlayerMenu(playerid) == CarList) TogglePlayerControllable(playerid, true);
  7403. else if(GetPlayerMenu(playerid) == BarEntrance) TogglePlayerControllable(playerid, true);
  7404. else if(GetPlayerMenu(playerid) == Drugs) TogglePlayerControllable(playerid, true);
  7405. return true;
  7406. }
  7407.  
  7408. public OnPlayerExitVehicle(playerid, vehicleid)
  7409. {
  7410. if(Speed[playerid][Refueling] == 1) return StopRefueling(playerid);
  7411. return true;
  7412. }
  7413.  
  7414. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  7415. {
  7416. return true;
  7417. }
  7418.  
  7419. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  7420. {
  7421. if(newkeys == KEY_SUBMISSION)
  7422. {
  7423. //Trash
  7424. if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 408)
  7425. {
  7426. if(InTrashMission[playerid] == 0)
  7427. {
  7428. HideDraw(playerid);
  7429. TextDrawShowForPlayer(playerid,BUSBOX);
  7430. TextDrawShowForPlayer(playerid,text40);
  7431. SelectTM[playerid] = 1;
  7432. }else
  7433. if(InTrashMission[playerid] == 1)
  7434. {
  7435. DisablePlayerRaceCheckpoint(playerid);
  7436. SelectTM[playerid] = 0;
  7437. InTrashMission[playerid] = 0;
  7438. }
  7439. }
  7440. //
  7441. if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) ==438)
  7442. {
  7443. if (playerInJob[playerid]<0)
  7444. {
  7445. MissionIni(playerid);
  7446. SendClientMessage(playerid,yellow,"You are now Taxi Driver! Find people to enter in you taxi and earn money!");
  7447. }
  7448. else
  7449. {
  7450. terminarMission(playerid);
  7451. }
  7452. }
  7453. if (gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || gTeam[playerid] == CIVILIAN && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) ==437)
  7454. {
  7455. if (playerInMiniMission2[playerid]<0)
  7456. {
  7457. HideDraw(playerid);
  7458. TextDrawShowForPlayer(playerid,BUSBOX);
  7459. TextDrawShowForPlayer(playerid,text24);
  7460. SelectBM[playerid] = 1;
  7461. }
  7462. else
  7463. {
  7464. if(SelectBM[playerid] == 1)
  7465. {
  7466. HideDraw(playerid);
  7467. SelectBM[playerid] = 0;
  7468. }
  7469. if(SelectBM[playerid] == 0)
  7470. {
  7471. terminarMission2(playerid);
  7472. }
  7473. }
  7474. }
  7475. }
  7476. if(newkeys == KEY_FIRE)
  7477. {
  7478. HideDraw(playerid);
  7479. }
  7480. return 1;
  7481. }
  7482. public OnVehicleDeath(vehicleid, killerid)
  7483. {
  7484. if(Rented[vehicleid] > 0) DestroyVehicle(vehicleid);
  7485. }
  7486.  
  7487. public OnVehicleSpawn(vehicleid)
  7488. {
  7489. if(Rented[vehicleid] > 0) DestroyVehicle(vehicleid);
  7490. Vehicle[vehicleid][Fuel] = Random(SPAWN_GAS_MIN, SPAWN_GAS_MAX);
  7491. for(new i=0;i<MAX_PLAYERS;i++)
  7492. {
  7493. if(vehicleid==IcmdCar[i][CarcmdI])
  7494. {
  7495. UcideMasinileBoule(vehicleid);
  7496. IcmdCar[i][CarcmdI]=-1;
  7497. }
  7498. }
  7499. }
  7500. public DriverSalary()
  7501. {
  7502. for(new i = 0; i < MAX_PLAYERS; i++)
  7503. {
  7504. if(gTeam[i] == CIVILIAN && Working[i] == 1)
  7505. {
  7506. new vehicle = GetPlayerVehicleID(i);
  7507. for(new j = 0; j < MAX_PLAYERS; j++)
  7508. {
  7509. if(IsPlayerConnected(j))
  7510. {
  7511. if(IsPlayerInVehicle(j, vehicle) && GetPlayerState(j) == PLAYER_STATE_PASSENGER) GivePlayerMoney(i,1);
  7512. }
  7513. }
  7514. }
  7515. }
  7516. }
  7517.  
  7518. public ResetMedicWeapons()
  7519. {
  7520. for(new i = 0; i < MAX_PLAYERS; i++)
  7521. {
  7522. if(gTeam[i] == Medic)
  7523. {
  7524. ResetPlayerWeapons(i);
  7525. }
  7526. }
  7527. }
  7528.  
  7529. public AllStores()
  7530. {
  7531. if(DildoRecentlyRobbed > 0) DildoRecentlyRobbed--;
  7532. if(ATMRecentlyRobbed > 0) ATMRecentlyRobbed--;
  7533. if(HallRecentlyRobbed > 0) HallRecentlyRobbed--;
  7534. if(RentalRecentlyRobbed > 0) RentalRecentlyRobbed--;
  7535. if(BankRecentlyRobbed > 0) BankRecentlyRobbed--;
  7536. if(BincoRecentlyRobbed > 0) BincoRecentlyRobbed--;
  7537. if(ZipRecentlyRobbed > 0) ZipRecentlyRobbed--;
  7538. if(UrbanRecentlyRobbed > 0) UrbanRecentlyRobbed--;
  7539. if(AmmuRecentlyRobbed > 0) AmmuRecentlyRobbed--;
  7540. if(Ammu2RecentlyRobbed > 0) Ammu2RecentlyRobbed--;
  7541. if(Ammu3RecentlyRobbed > 0) Ammu3RecentlyRobbed--;
  7542. if(Ammu4RecentlyRobbed > 0) Ammu4RecentlyRobbed--;
  7543. if(Ammu5RecentlyRobbed > 0) Ammu5RecentlyRobbed--;
  7544. if(DrugsRecentlyRobbed > 0) DrugsRecentlyRobbed--;
  7545. if(D4RecentlyRobbed > 0) D4RecentlyRobbed--;
  7546. if(CaRecentlyRobbed > 0) CaRecentlyRobbed--;
  7547. }
  7548.  
  7549. public RobbingStores()
  7550. {
  7551. for(new i = 0; i < MAX_PLAYERS; i++)
  7552. {
  7553. if(IsPlayerSpawned(i))
  7554. { //Drugs
  7555. if(RobDrugs[i] > 1)
  7556. {
  7557. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7558. GetPlayerName(i, robber, sizeof(robber));
  7559. RobDrugs[i]--;
  7560. robtime = (RobDrugs[i]);
  7561. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7562. GameTextForPlayer(i, string, 3000, 3);
  7563. }
  7564. if(RobDrugs[i] == 1)
  7565. {
  7566. new earnings = random(100000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7567. RobDrugs[i] = 0;
  7568. GetPlayerName(i, robber, sizeof(robber));
  7569. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7570. GameTextForPlayer(i, string, 3000, 3);
  7571. format(cops, sizeof(cops), "[HQ] %s has robbed the Drug Point. Location: The Drug Point.", robber);
  7572. SendRadioMessageToCops(cops);
  7573. GivePlayerMoney(i, earnings);
  7574. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7575. GivePlayerScore(i, 1);
  7576. new rbskl[250];
  7577. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7578. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7579. SendClientMessage(i, SERVER_COLOR, rbskl);
  7580. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7581. format(string2, sizeof(string2), "You earned $%d from the Drug Point!", earnings);
  7582. SendClientMessage(i, WHITE, string2);
  7583. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7584. SendClientMessage(i, WHITE, string3);
  7585. }
  7586. //Urban
  7587. if(RobUrban[i] > 1)
  7588. {
  7589. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7590. GetPlayerName(i, robber, sizeof(robber));
  7591. RobUrban[i]--;
  7592. robtime = (RobUrban[i]);
  7593. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7594. GameTextForPlayer(i, string, 3000, 3);
  7595. }
  7596. if(RobUrban[i] == 1)
  7597. {
  7598. new earnings = random(50000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7599. RobUrban[i] = 0;
  7600. GetPlayerName(i, robber, sizeof(robber));
  7601. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7602. GameTextForPlayer(i, string, 3000, 3);
  7603. format(cops, sizeof(cops), "[HQ] %s has robbed SubUrban. Location: SubUrban.", robber);
  7604. SendRadioMessageToCops(cops);
  7605. GivePlayerMoney(i, earnings);
  7606. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7607. GivePlayerScore(i, 1);
  7608. new rbskl[250];
  7609. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7610. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7611. SendClientMessage(i, SERVER_COLOR, rbskl);
  7612. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7613. format(string2, sizeof(string2), "You earned $%d from SubUrban!", earnings);
  7614. SendClientMessage(i, WHITE, string2);
  7615. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7616. SendClientMessage(i, WHITE, string3);
  7617. }
  7618. //Ammu 1
  7619. if(RobAmmu[i] > 1)
  7620. {
  7621. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7622. GetPlayerName(i, robber, sizeof(robber));
  7623. RobAmmu[i]--;
  7624. robtime = (RobAmmu[i]);
  7625. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7626. GameTextForPlayer(i, string, 3000, 3);
  7627. }
  7628. if(RobAmmu[i] == 1)
  7629. {
  7630. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7631. RobAmmu[i] = 0;
  7632. GetPlayerName(i, robber, sizeof(robber));
  7633. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7634. GameTextForPlayer(i, string, 3000, 3);
  7635. format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7636. SendRadioMessageToCops(cops);
  7637. GivePlayerMoney(i, earnings);
  7638. GivePlayerWeapon(i,31,99999);
  7639. GivePlayerWeapon(i,24,99999);
  7640. GivePlayerWeapon(i,29,99999);
  7641. GivePlayerWeapon(i,34,99999);
  7642. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7643. GivePlayerScore(i, 1);
  7644. new rbskl[250];
  7645. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7646. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7647. SendClientMessage(i, SERVER_COLOR, rbskl);
  7648. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7649. format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7650. SendClientMessage(i, WHITE, string2);
  7651. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7652. SendClientMessage(i, WHITE, string3);
  7653. }
  7654. //Ammu 2
  7655. if(RobAmmu2[i] > 1)
  7656. {
  7657. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7658. GetPlayerName(i, robber, sizeof(robber));
  7659. RobAmmu2[i]--;
  7660. robtime = (RobAmmu2[i]);
  7661. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7662. GameTextForPlayer(i, string, 3000, 3);
  7663. }
  7664. if(RobAmmu2[i] == 1)
  7665. {
  7666. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7667. RobAmmu2[i] = 0;
  7668. GetPlayerName(i, robber, sizeof(robber));
  7669. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7670. GameTextForPlayer(i, string, 3000, 3);
  7671. format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7672. SendRadioMessageToCops(cops);
  7673. GivePlayerMoney(i, earnings);
  7674. GivePlayerWeapon(i,31,99999);
  7675. GivePlayerWeapon(i,24,99999);
  7676. GivePlayerWeapon(i,29,99999);
  7677. GivePlayerWeapon(i,34,99999);
  7678. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7679. GivePlayerScore(i, 1);
  7680. new rbskl[250];
  7681. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7682. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7683. SendClientMessage(i, SERVER_COLOR, rbskl);
  7684. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7685. format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7686. SendClientMessage(i, WHITE, string2);
  7687. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7688. SendClientMessage(i, WHITE, string3);
  7689. }
  7690. //Ammu 3
  7691. if(RobAmmu3[i] > 1)
  7692. {
  7693. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7694. GetPlayerName(i, robber, sizeof(robber));
  7695. RobAmmu3[i]--;
  7696. robtime = (RobAmmu3[i]);
  7697. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7698. GameTextForPlayer(i, string, 3000, 3);
  7699. }
  7700. if(RobAmmu3[i] == 1)
  7701. {
  7702. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7703. RobAmmu3[i] = 0;
  7704. GetPlayerName(i, robber, sizeof(robber));
  7705. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7706. GameTextForPlayer(i, string, 3000, 3);
  7707. format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7708. SendRadioMessageToCops(cops);
  7709. GivePlayerMoney(i, earnings);
  7710. GivePlayerWeapon(i,31,99999);
  7711. GivePlayerWeapon(i,24,99999);
  7712. GivePlayerWeapon(i,29,99999);
  7713. GivePlayerWeapon(i,34,99999);
  7714. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7715. GivePlayerScore(i, 1);
  7716. new rbskl[250];
  7717. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7718. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7719. SendClientMessage(i, SERVER_COLOR, rbskl);
  7720. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7721. format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7722. SendClientMessage(i, WHITE, string2);
  7723. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7724. SendClientMessage(i, WHITE, string3);
  7725. }
  7726. //Ammu 4
  7727. if(RobAmmu4[i] > 1)
  7728. {
  7729. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7730. GetPlayerName(i, robber, sizeof(robber));
  7731. RobAmmu4[i]--;
  7732. robtime = (RobAmmu4[i]);
  7733. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7734. GameTextForPlayer(i, string, 3000, 3);
  7735. }
  7736. if(RobAmmu4[i] == 1)
  7737. {
  7738. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7739. RobAmmu4[i] = 0;
  7740. GetPlayerName(i, robber, sizeof(robber));
  7741. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7742. GameTextForPlayer(i, string, 3000, 3);
  7743. format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7744. SendRadioMessageToCops(cops);
  7745. GivePlayerMoney(i, earnings);
  7746. GivePlayerWeapon(i,31,99999);
  7747. GivePlayerWeapon(i,24,99999);
  7748. GivePlayerWeapon(i,29,99999);
  7749. GivePlayerWeapon(i,34,99999);
  7750. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7751. GivePlayerScore(i, 1);
  7752. new rbskl[250];
  7753. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7754. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7755. SendClientMessage(i, SERVER_COLOR, rbskl);
  7756. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7757. format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7758. SendClientMessage(i, WHITE, string2);
  7759. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7760. SendClientMessage(i, WHITE, string3);
  7761. }
  7762. //Ammu 5
  7763. if(RobAmmu5[i] > 1)
  7764. {
  7765. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7766. GetPlayerName(i, robber, sizeof(robber));
  7767. RobAmmu5[i]--;
  7768. robtime = (RobAmmu5[i]);
  7769. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7770. GameTextForPlayer(i, string, 3000, 3);
  7771. }
  7772. if(RobAmmu5[i] == 1)
  7773. {
  7774. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7775. RobAmmu5[i] = 0;
  7776. GetPlayerName(i, robber, sizeof(robber));
  7777. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7778. GameTextForPlayer(i, string, 3000, 3);
  7779. format(cops, sizeof(cops), "[HQ] %s has robbed Ammunation.", robber);
  7780. SendRadioMessageToCops(cops);
  7781. GivePlayerMoney(i, earnings);
  7782. GivePlayerWeapon(i,31,99999);
  7783. GivePlayerWeapon(i,24,99999);
  7784. GivePlayerWeapon(i,29,99999);
  7785. GivePlayerWeapon(i,34,99999);
  7786. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7787. GivePlayerScore(i, 1);
  7788. new rbskl[250];
  7789. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7790. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7791. SendClientMessage(i, SERVER_COLOR, rbskl);
  7792. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7793. format(string2, sizeof(string2), "You earned $%d from Ammunation!", earnings);
  7794. SendClientMessage(i, WHITE, string2);
  7795. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7796. SendClientMessage(i, WHITE, string3);
  7797. }
  7798. //4Dragons
  7799. if(RobD4[i] > 1)
  7800. {
  7801. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7802. GetPlayerName(i, robber, sizeof(robber));
  7803. RobD4[i]--;
  7804. robtime = (RobD4[i]);
  7805. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7806. GameTextForPlayer(i, string, 3000, 3);
  7807. }
  7808. if(RobD4[i] == 1)
  7809. {
  7810. new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7811. RobD4[i] = 0;
  7812. GetPlayerName(i, robber, sizeof(robber));
  7813. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7814. GameTextForPlayer(i, string, 3000, 3);
  7815. format(cops, sizeof(cops), "[HQ] %s has robbed 4Dragons Casino.", robber);
  7816. SendRadioMessageToCops(cops);
  7817. GivePlayerMoney(i, earnings);
  7818. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7819. GivePlayerScore(i, 1);
  7820. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7821. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7822. format(string2, sizeof(string2), "You earned $%d from 4Dragons Casino.!", earnings);
  7823. SendClientMessage(i, WHITE, string2);
  7824. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7825. SendClientMessage(i, WHITE, string3);
  7826. }
  7827. //Caligulas
  7828. if(RobCa[i] > 1)
  7829. {
  7830. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7831. GetPlayerName(i, robber, sizeof(robber));
  7832. RobCa[i]--;
  7833. robtime = (RobCa[i]);
  7834. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7835. GameTextForPlayer(i, string, 3000, 3);
  7836. }
  7837. if(RobCa[i] == 1)
  7838. {
  7839. new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7840. RobCa[i] = 0;
  7841. GetPlayerName(i, robber, sizeof(robber));
  7842. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7843. GameTextForPlayer(i, string, 3000, 3);
  7844. format(cops, sizeof(cops), "[HQ] %s has robbed Caligulas Casino.", robber);
  7845. SendRadioMessageToCops(cops);
  7846. GivePlayerMoney(i, earnings);
  7847. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7848. GivePlayerScore(i, 1);
  7849. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7850. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7851. format(string2, sizeof(string2), "You earned $%d from Caligulas Casino.!", earnings);
  7852. SendClientMessage(i, WHITE, string2);
  7853. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7854. SendClientMessage(i, WHITE, string3);
  7855. }
  7856. //Zip
  7857. if(RobZip[i] > 1)
  7858. {
  7859. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7860. GetPlayerName(i, robber, sizeof(robber));
  7861. RobZip[i]--;
  7862. robtime = (RobZip[i]);
  7863. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7864. GameTextForPlayer(i, string, 3000, 3);
  7865. }
  7866. if(RobZip[i] == 1)
  7867. {
  7868. new earnings = random(9000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7869. RobZip[i] = 0;
  7870. GetPlayerName(i, robber, sizeof(robber));
  7871. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7872. GameTextForPlayer(i, string, 3000, 3);
  7873. format(cops, sizeof(cops), "[HQ] %s has robbed ZIP. Location: ZIP.", robber);
  7874. SendRadioMessageToCops(cops);
  7875. GivePlayerMoney(i, earnings);
  7876. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  7877. GivePlayerScore(i, 1);
  7878. new rbskl[250];
  7879. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7880. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7881. SendClientMessage(i, SERVER_COLOR, rbskl);
  7882. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7883. format(string2, sizeof(string2), "You earned $%d from ZIP!", earnings);
  7884. SendClientMessage(i, WHITE, string2);
  7885. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7886. SendClientMessage(i, WHITE, string3);
  7887. }
  7888. //Bianco
  7889. if(RobBinco[i] > 1)
  7890. {
  7891. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7892. GetPlayerName(i, robber, sizeof(robber));
  7893. RobBinco[i]--;
  7894. robtime = (RobBinco[i]);
  7895. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7896. GameTextForPlayer(i, string, 3000, 3);
  7897. }
  7898. if(RobBinco[i] == 1)
  7899. {
  7900. new earnings = random(9500), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7901. RobBinco[i] = 0;
  7902. GetPlayerName(i, robber, sizeof(robber));
  7903. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7904. GameTextForPlayer(i, string, 3000, 3);
  7905. format(cops, sizeof(cops), "[HQ] %s has robbed Binco. Location: Binco.", robber);
  7906. SendRadioMessageToCops(cops);
  7907. GivePlayerMoney(i, earnings);
  7908. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  7909. GivePlayerScore(i, 1);
  7910. new rbskl[250];
  7911. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7912. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7913. SendClientMessage(i, SERVER_COLOR, rbskl);
  7914. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7915. format(string2, sizeof(string2), "You earned $%d from Binco!", earnings);
  7916. SendClientMessage(i, WHITE, string2);
  7917. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7918. SendClientMessage(i, WHITE, string3);
  7919. }
  7920. //Bank
  7921. if(RobBank[i] > 1)
  7922. {
  7923. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7924. GetPlayerName(i, robber, sizeof(robber));
  7925. RobBank[i]--;
  7926. robtime = (RobBank[i]);
  7927. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7928. GameTextForPlayer(i, string, 3000, 3);
  7929. }
  7930. if(RobBank[i] == 1)
  7931. {
  7932. new earnings = random(30000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7933. RobBank[i] = 0;
  7934. GetPlayerName(i, robber, sizeof(robber));
  7935. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7936. GameTextForPlayer(i, string, 3000, 3);
  7937. format(cops, sizeof(cops), "[HQ] %s has robbed Dave's Intl. Bank. Location: Dave's Intl. Bank.", robber);
  7938. SendRadioMessageToCops(cops);
  7939. GivePlayerMoney(i, earnings);
  7940. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  7941. GivePlayerScore(i, 2);
  7942. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7943. format(string2, sizeof(string2), "You earned $%d from Dave's Intl. Bank!", earnings);
  7944. SendClientMessage(i, WHITE, string2);
  7945. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7946. SendClientMessage(i, WHITE, string3);
  7947. }
  7948. //Rental
  7949. if(RobRental[i] > 1)
  7950. {
  7951. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7952. GetPlayerName(i, robber, sizeof(robber));
  7953. RobRental[i]--;
  7954. robtime = (RobRental[i]);
  7955. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7956. GameTextForPlayer(i, string, 3000, 3);
  7957. }
  7958. if(RobRental[i] == 1)
  7959. {
  7960. new earnings = random(15500), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7961. RobRental[i] = 0;
  7962. GetPlayerName(i, robber, sizeof(robber));
  7963. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7964. GameTextForPlayer(i, string, 3000, 3);
  7965. format(cops, sizeof(cops), "[HQ] %s has robbed Car Shop. Location: Car Shop.", robber);
  7966. SendRadioMessageToCops(cops);
  7967. GivePlayerMoney(i, earnings);
  7968. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 4);
  7969. GivePlayerScore(i, 1);
  7970. new rbskl[250];
  7971. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  7972. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  7973. SendClientMessage(i, SERVER_COLOR, rbskl);
  7974. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  7975. format(string2, sizeof(string2), "You earned $%d from Car Shop!", earnings);
  7976. SendClientMessage(i, WHITE, string2);
  7977. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  7978. SendClientMessage(i, WHITE, string3);
  7979. }
  7980. //City Hall
  7981. if(RobHall[i] > 1)
  7982. {
  7983. new string[250], robber[MAX_PLAYER_NAME], robtime;
  7984. GetPlayerName(i, robber, sizeof(robber));
  7985. RobHall[i]--;
  7986. robtime = (RobHall[i]);
  7987. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  7988. GameTextForPlayer(i, string, 3000, 3);
  7989. }
  7990. if(RobHall[i] == 1)
  7991. {
  7992. new earnings = random(20000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  7993. RobHall[i] = 0;
  7994. GetPlayerName(i, robber, sizeof(robber));
  7995. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  7996. GameTextForPlayer(i, string, 3000, 3);
  7997. format(cops, sizeof(cops), "[HQ] %s has robbed the City Hall. Location: City Hall.", robber);
  7998. SendRadioMessageToCops(cops);
  7999. GivePlayerMoney(i, earnings);
  8000. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 6);
  8001. GivePlayerScore(i, 1);
  8002. new rbskl[250];
  8003. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  8004. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  8005. SendClientMessage(i, SERVER_COLOR, rbskl);
  8006. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  8007. format(string2, sizeof(string2), "You earned $%d from the City Hall!", earnings);
  8008. SendClientMessage(i, WHITE, string2);
  8009. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  8010. SendClientMessage(i, WHITE, string3);
  8011. }
  8012. //Dildo
  8013. if(RobDildo[i] > 1)
  8014. {
  8015. new string[250], robber[MAX_PLAYER_NAME], robtime;
  8016. GetPlayerName(i, robber, sizeof(robber));
  8017. RobDildo[i]--;
  8018. robtime = (RobDildo[i]);
  8019. format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
  8020. GameTextForPlayer(i, string, 3000, 3);
  8021. }
  8022. if(RobDildo[i] == 1)
  8023. {
  8024. new earnings = random(19000), robber[MAX_PLAYER_NAME], string[250], string2[250], string3[250], cops[250];
  8025. RobDildo[i] = 0;
  8026. GetPlayerName(i, robber, sizeof(robber));
  8027. format(string, sizeof(string), "~w~ROBBERY COMPLETE!~n~YOU EARNED ~g~$%d", earnings);
  8028. GameTextForPlayer(i, string, 3000, 3);
  8029. format(cops, sizeof(cops), "[HQ] %s has robbed Las Venturas Dildos. Location: Las Venturas.", robber);
  8030. SendRadioMessageToCops(cops);
  8031. GivePlayerMoney(i, earnings);
  8032. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+ 5);
  8033. GivePlayerScore(i, 1);
  8034. new rbskl[250];
  8035. SetPlayerRobbingSkill(i, GetPlayerRobbingSkill(i)+1);
  8036. format(rbskl, sizeof(rbskl), "Robbing Skill upgraded! Your skill now is: %d", GetPlayerRobbingSkill(i));
  8037. SendClientMessage(i, SERVER_COLOR, rbskl);
  8038. SendClientMessage(i, GREY, "|_| Crime Commited |_|");
  8039. format(string2, sizeof(string2), "You earned $%d from Las Venturas Dildos!", earnings);
  8040. SendClientMessage(i, WHITE, string2);
  8041. format(string3, sizeof(string3), "Wanted Level: %d", GetPlayerWantedLevel(i));
  8042. SendClientMessage(i, WHITE, string3);
  8043. }
  8044. }
  8045. }
  8046. }
  8047.  
  8048. public Unjail()
  8049. {
  8050. for(new i = 0; i < MAX_PLAYERS; i++)
  8051. {
  8052. if(IsPlayerConnected(i))
  8053. {
  8054. new file[256], name[MAX_PLAYER_NAME];
  8055. GetPlayerName(i, name, sizeof(name));
  8056. format(file, sizeof(file), "%s.runix", name);
  8057.  
  8058. if(IsPlayerJailed(i))
  8059. {
  8060. if(PrisonTime[i] > 0)
  8061. {
  8062. PrisonTime[i] --;
  8063. new string[256];
  8064. format(string, sizeof(string), "~w~TIME LEFT~n~~r~%d", PrisonTime[i]);
  8065. GameTextForPlayer(i, string, 3000, 6);
  8066. }
  8067. if(PrisonTime[i] == 0)
  8068. {
  8069. new string[256];
  8070. SetPlayerInterior(i, 3);
  8071. SetPlayerPos(i, 231.1111, 146.7039, 1003.0234);
  8072. SetPlayerFacingAngle(i, 272.8459);
  8073. SetCameraBehindPlayer(i);
  8074. PD[i] = 2;
  8075. SendClientMessage(i, GREY, "|_| San Andreas Police Dept. |_|");
  8076. SendClientMessage(i, WHITE, "You are free to go. Just don't get into trouble.");
  8077. format(string, sizeof(string), "%s[ID:%d] has been released from prison.", name, i);
  8078. Announce(string);
  8079. SetPlayerHealth(i,100);
  8080. SetPlayerJailed(i, false);
  8081. SetPlayerPrisonTime(i, 0);
  8082. }
  8083. }
  8084. }
  8085. }
  8086. }
  8087.  
  8088. public ShowCarListMenu(playerid)
  8089. {
  8090. ShowMenuForPlayer(CarList, playerid);
  8091. }
  8092.  
  8093. public PlayerRecentlyRobbed()
  8094. {
  8095. for(new i=0; i < MAX_PLAYERS; i++)
  8096. {
  8097. if(IsPlayerConnected(i) && RecentlyRobbed[i] >=1)
  8098. {
  8099. RecentlyRobbed[i] --;
  8100. }
  8101. }
  8102. }
  8103.  
  8104. public BankRecentlyUsedByRobber()
  8105. {
  8106. for(new i = 0; i < MAX_PLAYERS; i++)
  8107. {
  8108. if(IsPlayerConnected(i) && BankRecentlyUsed[i] >= 1)
  8109. {
  8110. BankRecentlyUsed[i]--;
  8111. }
  8112. }
  8113. }
  8114.  
  8115. public RecentlyRentedACar()
  8116. {
  8117. for(new i = 0; i < MAX_PLAYERS; i++)
  8118. {
  8119. if(IsPlayerConnected(i) && RentedACarRecently[i] >= 1)
  8120. {
  8121. RentedACarRecently[i]--;
  8122. }
  8123. }
  8124. }
  8125.  
  8126. public WantedLevel()
  8127. {
  8128. for(new i = 0; i < MAX_PLAYERS; i++)
  8129. {
  8130. if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) == 0 && gTeam[i] != COP && gTeam[i] != SWAT && gTeam[i] != ARMY && gTeam[i] != FBI && gTeam[i] != Medic) SetPlayerColor(i, WHITE);
  8131. else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 3) SetPlayerColor(i, YELLOW);
  8132. else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 4 && GetPlayerWantedLevel(i) <= 6) SetPlayerColor(i, ORANGE);
  8133. else if(IsPlayerSpawned(i) && GetPlayerWantedLevel(i) >= 7) SetPlayerColor(i, RED);
  8134. }
  8135. }
  8136.  
  8137. public Float:GetDistanceBetweenPlayers(p1,p2)
  8138. {
  8139. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  8140. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) return -1.00;
  8141. GetPlayerPos(p1,x1,y1,z1);
  8142. GetPlayerPos(p2,x2,y2,z2);
  8143. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  8144. }
  8145.  
  8146. stock GivePlayerScore(playerid, score)
  8147. {
  8148. SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
  8149. return true;
  8150. }
  8151.  
  8152. stock SendClientMessageToAdmins(const str[])
  8153. {
  8154. for(new i = 0; i < MAX_PLAYERS; i++)
  8155. {
  8156. if(IsPlayerConnected(i))
  8157. {
  8158. if(AccountInfo[i][aLevel] > 0)
  8159. {
  8160. SendClientMessage(i, RED, str);
  8161. }
  8162. }
  8163. }
  8164. return true;
  8165. }
  8166.  
  8167. stock Announce(const str[])
  8168. {
  8169. return SendClientMessageToAll(SERVER_COLOR, str);
  8170. }
  8171.  
  8172. stock SendRadioMessageToCops(const str[])
  8173. {
  8174. for(new i = 0; i < MAX_PLAYERS; i++)
  8175. {
  8176. if(IsPlayerSpawned(i) && gTeam[i] == COP) SendClientMessage(i, LIGHT_BLUE, str);
  8177. }
  8178. return true;
  8179. }
  8180.  
  8181. stock SendRadioMessageToMedics(const str[])
  8182. {
  8183. for(new i = 0; i < MAX_PLAYERS; i++)
  8184. {
  8185. if(IsPlayerSpawned(i) && gTeam[i] == Medic) SendClientMessage(i, PINK, str);
  8186. }
  8187. return true;
  8188. }
  8189.  
  8190. stock IsPlayerSpawned(playerid)
  8191. {
  8192. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) ==
  8193.  
  8194. PLAYER_STATE_PASSENGER) return true;
  8195. else return false;
  8196. }
  8197.  
  8198. stock GetPlayerBankCash(playerid)
  8199. {
  8200. new bcash, file[256], name[MAX_PLAYER_NAME];
  8201. GetPlayerName(playerid, name, sizeof(name));
  8202. format(file, sizeof(file), "%s.runix", name);
  8203. bcash = dini_Int(file, "Bank");
  8204. return bcash;
  8205. }
  8206.  
  8207. stock GetPlayerRobbingSkill(playerid)
  8208. {
  8209. new robskill, file[256], name[MAX_PLAYER_NAME];
  8210. GetPlayerName(playerid, name, sizeof(name));
  8211. format(file, sizeof(file), "%s.runix", name);
  8212. robskill = dini_Int(file, "RobSkill");
  8213. return robskill;
  8214. }
  8215.  
  8216. stock GetPlayerTerrorSkill(playerid)
  8217. {
  8218. new terskill, file[256], name[MAX_PLAYER_NAME];
  8219. GetPlayerName(playerid, name, sizeof(name));
  8220. format(file, sizeof(file), "%s.runix", name);
  8221. terskill = dini_Int(file, "TerSkill");
  8222. return terskill;
  8223. }
  8224.  
  8225. stock SetPlayerBankCash(playerid, cash)
  8226. {
  8227. new file[256], name[MAX_PLAYER_NAME];
  8228. GetPlayerName(playerid, name, sizeof(name));
  8229. format(file, sizeof(file), "%s.runix", name);
  8230. dini_IntSet(file, "Bank", cash);
  8231. return true;
  8232. }
  8233.  
  8234. stock SetPlayerAdminLevel(playerid, level)
  8235. {
  8236. new file[256], name[MAX_PLAYER_NAME];
  8237. GetPlayerName(playerid, name, sizeof(name));
  8238. format(file, sizeof(file), "%s.runix", name);
  8239. dini_IntSet(file, "Admin", level);
  8240. return true;
  8241. }
  8242.  
  8243. stock SetPlayerRobbingSkill(playerid, skill)
  8244. {
  8245. new file[256], name[MAX_PLAYER_NAME];
  8246. GetPlayerName(playerid, name, sizeof(name));
  8247. format(file, sizeof(file), "%s.runix", name);
  8248. dini_IntSet(file, "RobSkill", skill);
  8249. return true;
  8250. }
  8251.  
  8252. stock SetPlayerTerrorSkill(playerid, skill)
  8253. {
  8254. new file[256], name[MAX_PLAYER_NAME];
  8255. GetPlayerName(playerid, name, sizeof(name));
  8256. format(file, sizeof(file), "%s.runix", name);
  8257. dini_IntSet(file, "TerSkill", skill);
  8258. return true;
  8259. }
  8260.  
  8261. stock GetPlayerWarnings(playerid)
  8262. {
  8263. new warns, file[256], name[MAX_PLAYER_NAME];
  8264. GetPlayerName(playerid, name, sizeof(name));
  8265. format(file, sizeof(file), "%s.runix", name);
  8266. warns = dini_Int(file, "Warnings");
  8267. return warns;
  8268. }
  8269.  
  8270. stock SetPlayerWarnings(playerid, warns)
  8271. {
  8272. new file[256], name[MAX_PLAYER_NAME];
  8273. GetPlayerName(playerid, name, sizeof(name));
  8274. format(file, sizeof(file), "%s.runix", name);
  8275. dini_IntSet(file, "Warnings", warns);
  8276. return true;
  8277. }
  8278.  
  8279. stock SetPlayerJailed(playerid, bool)
  8280. {
  8281. new file[256], name[MAX_PLAYER_NAME];
  8282. GetPlayerName(playerid, name, sizeof(name));
  8283. format(file, sizeof(file), "%s.runix", name);
  8284. if(bool == 1) dini_IntSet(file, "Jail", 1);
  8285. else if(bool == 0) dini_IntSet(file, "Jail", 0);
  8286. return true;
  8287. }
  8288.  
  8289. stock IsPlayerJailed(playerid)
  8290. {
  8291. new file[256], name[MAX_PLAYER_NAME];
  8292. GetPlayerName(playerid, name, sizeof(name));
  8293. format(file, sizeof(file), "%s.runix", name);
  8294. if(dini_Int(file, "Jail") == 1)
  8295. {
  8296. return true;
  8297. }
  8298. else if(dini_Int(file, "Jail") == 0)
  8299. {
  8300. return false;
  8301. }
  8302. return true;
  8303. }
  8304.  
  8305. stock GetPlayerPrisonTime(playerid)
  8306. {
  8307. new file[256], name[MAX_PLAYER_NAME], ptime;
  8308. GetPlayerName(playerid, name, sizeof(name));
  8309. format(file, sizeof(file), "%s.runix", name);
  8310. ptime = dini_Int(file, "PrisonTime");
  8311. return ptime;
  8312. }
  8313.  
  8314. stock SetPlayerPrisonTime(playerid, ptime)
  8315. {
  8316. new file[256], name[MAX_PLAYER_NAME];
  8317. GetPlayerName(playerid, name, sizeof(name));
  8318. format(file, sizeof(file), "%s.runix", name);
  8319. dini_IntSet(file, "PrisonTime", ptime);
  8320. return true;
  8321. }
  8322.  
  8323. stock GetPlayerC4Amount(playerid)
  8324. {
  8325. new c4s, file[256], name[MAX_PLAYER_NAME];
  8326. GetPlayerName(playerid, name, sizeof(name));
  8327. format(file, sizeof(file), "%s.runix", name);
  8328. c4s = dini_Int(file, "C4");
  8329. return c4s;
  8330. }
  8331.  
  8332. stock SetPlayerC4Amount(playerid, amount)
  8333. {
  8334. new file[256], name[MAX_PLAYER_NAME];
  8335. GetPlayerName(playerid, name, sizeof(name));
  8336. format(file, sizeof(file), "%s.runix", name);
  8337. dini_IntSet(file, "C4", amount);
  8338. return true;
  8339. }
  8340.  
  8341. stock GetPlayerDrugs(playerid)
  8342. {
  8343. new drugs, file[256], name[MAX_PLAYER_NAME];
  8344. GetPlayerName(playerid, name, sizeof(name));
  8345. format(file, sizeof(file), "%s.runix", name);
  8346. drugs = dini_Int(file, "Drugs");
  8347. return drugs;
  8348. }
  8349.  
  8350. stock SetPlayerDrugs(playerid, amount)
  8351. {
  8352. new file[256], name[MAX_PLAYER_NAME];
  8353. GetPlayerName(playerid, name, sizeof(name));
  8354. format(file, sizeof(file), "%s.runix", name);
  8355. dini_IntSet(file, "Drugs", amount);
  8356. return true;
  8357. }
  8358. //--------------------------TAXI------------------------------------------------
  8359. public terminarMission(playerid)
  8360. {
  8361. new msg[255];
  8362. format(msg,sizeof(msg),"~r~Taxi ~w~Job cancelled~n~ You carried ~r~%d~w~ pasengers.",contador[playerid]);
  8363. GameTextForPlayer(playerid,msg,5000,6);
  8364. playerInJob[playerid]=-1;
  8365. avisado[playerid]=-1;
  8366. new name[MAX_PLAYER_NAME];
  8367. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8368. format(msg,sizeof(msg),"***ATENTION: %s Is NOT a TAXI DRIVER anymore***",name);
  8369. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8370. for (new i=0;i<MAX_PLAYERS;i++)
  8371. {
  8372. if (playerid!=i)
  8373. {
  8374. SendClientMessage(i,0xFFFF00AA,msg);
  8375. }
  8376. }
  8377. for (new i=0;i<MAX_PLAYERS;i++)
  8378. {
  8379. if (OnTaxiAsPassenger[i]==playerid)
  8380. {
  8381. new taxista = playerid;
  8382. OnTaxiAsPassenger[i]=-1;
  8383. new viaje=CostoDelViaje[i];
  8384. format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Taxi~w~ ride.",name,viaje);
  8385. GameTextForPlayer(i,msg,5000,6);
  8386. format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Taxi~w~ ride.",viaje);
  8387. GameTextForPlayer(taxista,msg,5000,6);
  8388. GivePlayerMoney(i,-viaje);
  8389. GivePlayerMoney(taxista,viaje);
  8390. cantidadPasajeros--;
  8391. if (cantidadPasajeros==0)
  8392. {
  8393. KillTimer(caidadefichaTimer);
  8394. }
  8395. }
  8396. }
  8397. contador[playerid]=0;
  8398. return 1;
  8399. }
  8400. public caidadeficha()
  8401. {
  8402. for (new i=0;i<MAX_PLAYERS;i++)
  8403. {
  8404. CostoDelViaje[i]=CostoDelViaje[i]+PRECIO_FICHA;
  8405. }
  8406. }
  8407. //--------------------------------------------------TAXI----------------------------------------------------
  8408. MissionIni(playerid)
  8409. {
  8410. playerInJob[playerid]=1;
  8411. GameTextForPlayer(playerid,"~r~Taxi ~w~Job",5000,6);
  8412. new name[MAX_PLAYER_NAME];
  8413. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8414. new msg[255];
  8415. format(msg,sizeof(msg),"***ATENTION: %s is now a Taxi Driver***",name);
  8416. for (new i=0;i<MAX_PLAYERS;i++)
  8417. {
  8418. if (playerid!=i)
  8419. {
  8420. SendClientMessage(i,0xFFFF00AA,msg);
  8421. }
  8422. }
  8423. return 1;
  8424. }
  8425. //------------------------------------------------------------------------------------------------------
  8426. IsNumeric(const string[])
  8427. {
  8428. for (new i = 0, j = strlen(string); i < j; i++) {
  8429. if (string[i] > '9' || string[i] < '0') {
  8430. return 0;
  8431. }
  8432. }
  8433.  
  8434. return 1;
  8435. }
  8436.  
  8437. //----------------------------------------------------------SSCANF------------------------------------------------------------------------------------
  8438. stock sscanf(string[], format[], {Float,_}:...) // By Alex "Y_Less" Cole
  8439. {
  8440. #if defined isnull
  8441. if (isnull(string))
  8442. #else
  8443. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  8444. #endif
  8445. {
  8446. return format[0];
  8447. }
  8448. #pragma tabsize 4
  8449. new
  8450. formatPos = 0,
  8451. stringPos = 0,
  8452. paramPos = 2,
  8453. paramCount = numargs(),
  8454. delim = ' ';
  8455. while (string[stringPos] && string[stringPos] <= ' ')
  8456. {
  8457. stringPos++;
  8458. }
  8459. while (paramPos < paramCount && string[stringPos])
  8460. {
  8461. switch (format[formatPos++])
  8462. {
  8463. case '\0':
  8464. {
  8465. return 0;
  8466. }
  8467. case 'i', 'd':
  8468. {
  8469. new
  8470. neg = 1,
  8471. num = 0,
  8472. ch = string[stringPos];
  8473. if (ch == '-')
  8474. {
  8475. neg = -1;
  8476. ch = string[++stringPos];
  8477. }
  8478. do
  8479. {
  8480. stringPos++;
  8481. if ('0' <= ch <= '9')
  8482. {
  8483. num = (num * 10) + (ch - '0');
  8484. }
  8485. else
  8486. {
  8487. return -1;
  8488. }
  8489. }
  8490. while ((ch = string[stringPos]) > ' ' && ch != delim);
  8491. setarg(paramPos, 0, num * neg);
  8492. }
  8493. case 'h', 'x':
  8494. {
  8495. new
  8496. ch,
  8497. num = 0;
  8498. while ((ch = string[stringPos]) > ' ' && ch != delim)
  8499. {
  8500. switch (ch)
  8501. {
  8502. case 'x', 'X':
  8503. {
  8504. num = 0;
  8505. continue;
  8506. }
  8507. case '0' .. '9':
  8508. {
  8509. num = (num << 4) | (ch - '0');
  8510. }
  8511. case 'a' .. 'f':
  8512. {
  8513. num = (num << 4) | (ch - ('a' - 10));
  8514. }
  8515. case 'A' .. 'F':
  8516. {
  8517. num = (num << 4) | (ch - ('A' - 10));
  8518. }
  8519. default:
  8520. {
  8521. return -1;
  8522. }
  8523. }
  8524. }
  8525. setarg(paramPos, 0, num);
  8526. }
  8527. case 'c':
  8528. {
  8529. setarg(paramPos, 0, string[stringPos++]);
  8530. }
  8531. case 'f':
  8532. {
  8533. setarg(paramPos, 0, _:floatstr(string[stringPos]));
  8534. }
  8535. case 'p':
  8536. {
  8537. delim = format[formatPos++];
  8538. continue;
  8539. }
  8540. case '\'':
  8541. {
  8542. new
  8543. end = formatPos - 1,
  8544. ch;
  8545. while ((ch = format[++end]) && ch != '\'') {}
  8546. if (!ch)
  8547. {
  8548. return -1;
  8549. }
  8550. format[end] = '\0';
  8551. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  8552. {
  8553. if (format[end + 1])
  8554. {
  8555. return -1;
  8556. }
  8557. return 0;
  8558. }
  8559. format[end] = '\'';
  8560. stringPos = ch + (end - formatPos);
  8561. formatPos = end + 1;
  8562. }
  8563. case 'u':
  8564. {
  8565. new
  8566. end = stringPos - 1,
  8567. id = 0,
  8568. bool:num = true,
  8569. ch;
  8570. while ((ch = string[++end]) && ch != delim)
  8571. {
  8572. if (num)
  8573. {
  8574. if ('0' <= ch <= '9')
  8575. {
  8576. id = (id * 10) + (ch - '0');
  8577. }
  8578. else
  8579. {
  8580. num = false;
  8581. }
  8582. }
  8583. }
  8584. if (num && IsPlayerConnected(id))
  8585. {
  8586. setarg(paramPos, 0, id);
  8587. }
  8588. else
  8589. {
  8590. #if !defined foreach
  8591. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  8592. #define __SSCANF_FOREACH__
  8593. #endif
  8594. string[end] = '\0';
  8595. num = false;
  8596. new
  8597. name[MAX_PLAYER_NAME];
  8598. id = end - stringPos;
  8599. foreach (Player, playerid)
  8600. {
  8601. GetPlayerName(playerid, name, sizeof (name));
  8602. if (!strcmp(name, string[stringPos], true, id))
  8603. {
  8604. setarg(paramPos, 0, playerid);
  8605. num = true;
  8606. break;
  8607. }
  8608. }
  8609. if (!num)
  8610. {
  8611. setarg(paramPos, 0, INVALID_PLAYER_ID);
  8612. }
  8613. string[end] = ch;
  8614. #if defined __SSCANF_FOREACH__
  8615. #undef foreach
  8616. #undef __SSCANF_FOREACH__
  8617. #endif
  8618. }
  8619. stringPos = end;
  8620. }
  8621. case 's', 'z':
  8622. {
  8623. new
  8624. i = 0,
  8625. ch;
  8626. if (format[formatPos])
  8627. {
  8628. while ((ch = string[stringPos++]) && ch != delim)
  8629. {
  8630. setarg(paramPos, i++, ch);
  8631. }
  8632. if (!i)
  8633. {
  8634. return -1;
  8635. }
  8636. }
  8637. else
  8638. {
  8639. while ((ch = string[stringPos++]))
  8640. {
  8641. setarg(paramPos, i++, ch);
  8642. }
  8643. }
  8644. stringPos--;
  8645. setarg(paramPos, i, '\0');
  8646. }
  8647. default:
  8648. {
  8649. continue;
  8650. }
  8651. }
  8652. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  8653. {
  8654. stringPos++;
  8655. }
  8656. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  8657. {
  8658. stringPos++;
  8659. }
  8660. paramPos++;
  8661. }
  8662. do
  8663. {
  8664. if ((delim = format[formatPos++]) > ' ')
  8665. {
  8666. if (delim == '\'')
  8667. {
  8668. while ((delim = format[formatPos++]) && delim != '\'') {}
  8669. }
  8670. else if (delim != 'z')
  8671. {
  8672. return delim;
  8673. }
  8674. }
  8675. }
  8676. while (delim > ' ');
  8677. return 0;
  8678. }
  8679.  
  8680. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  8681. {
  8682. new Float:oldposx, Float:oldposy, Float:oldposz;
  8683. new Float:tempposx, Float:tempposy, Float:tempposz;
  8684. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  8685. tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z);
  8686. if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  8687. { return true; }
  8688. return false;
  8689. }
  8690. forward HideDraw(playerid);
  8691. public HideDraw(playerid)
  8692. {
  8693. TextDrawHideForPlayer(playerid, CIVBOX);
  8694. TextDrawHideForPlayer(playerid, HALLBOX);
  8695. TextDrawHideForPlayer(playerid, COPBOX);
  8696. TextDrawHideForPlayer(playerid, MDCBOX);
  8697. TextDrawHideForPlayer(playerid, text6);
  8698. TextDrawHideForPlayer(playerid, text7);
  8699. TextDrawHideForPlayer(playerid, text8);
  8700. TextDrawHideForPlayer(playerid, text9);
  8701. TextDrawHideForPlayer(playerid, text10);
  8702. TextDrawHideForPlayer(playerid, text11);
  8703. TextDrawHideForPlayer(playerid, text12);
  8704. TextDrawHideForPlayer(playerid, text13);
  8705. TextDrawHideForPlayer(playerid, text14);
  8706. TextDrawHideForPlayer(playerid, text15);
  8707. TextDrawHideForPlayer(playerid, text16);
  8708. TextDrawHideForPlayer(playerid, text17);
  8709. TextDrawHideForPlayer(playerid, text18);
  8710. TextDrawHideForPlayer(playerid, text19);
  8711. TextDrawHideForPlayer(playerid, text20);
  8712. TextDrawHideForPlayer(playerid, text21);
  8713. TextDrawHideForPlayer(playerid, text22);
  8714. TextDrawHideForPlayer(playerid, text23);
  8715. TextDrawHideForPlayer(playerid, CMDBOX);
  8716. TextDrawHideForPlayer(playerid, BUSBOX);
  8717. TextDrawHideForPlayer(playerid, text24);
  8718. TextDrawHideForPlayer(playerid, text25);
  8719. TextDrawHideForPlayer(playerid, text26);
  8720. TextDrawHideForPlayer(playerid, text27);
  8721. TextDrawHideForPlayer(playerid, text35);
  8722. TextDrawHideForPlayer(playerid, text36);
  8723. TextDrawHideForPlayer(playerid, BBOX);
  8724. TextDrawHideForPlayer(playerid, AMMUBOX1);
  8725. TextDrawHideForPlayer(playerid, AMMUBOX2);
  8726. TextDrawHideForPlayer(playerid, text37);
  8727. TextDrawHideForPlayer(playerid, text38);
  8728. TextDrawHideForPlayer(playerid, text39);
  8729. TextDrawHideForPlayer(playerid, text40);
  8730. TextDrawHideForPlayer(playerid, text41);
  8731. TextDrawHideForPlayer(playerid, text42);
  8732. TextDrawHideForPlayer(playerid, text43);
  8733. TextDrawHideForPlayer(playerid, PCBOX);
  8734. TextDrawHideForPlayer(playerid, text44);
  8735. TextDrawHideForPlayer(playerid, text45);
  8736. AMMUBOX[playerid] = 0;
  8737. return 1;
  8738. }
  8739. //BUS
  8740. public terminarMission2(playerid)
  8741. {
  8742. new msg[255];
  8743. format(msg,sizeof(msg),"~r~Bus ~w~Job cancelled~n~ You carried ~r~%d~w~ pasengers.",contador2[playerid]);
  8744. GameTextForPlayer(playerid,msg,5000,6);
  8745. playerInMiniMission2[playerid]=-1;
  8746. currentcheckpoint[playerid] = 0;
  8747. DisablePlayerRaceCheckpoint(playerid);
  8748. avisado2[playerid]=-1;
  8749. new name[MAX_PLAYER_NAME];
  8750. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8751. format(msg,sizeof(msg),"***ATENTION: %s Is NOT a Bus DRIVER anymore***",name);
  8752. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8753. for (new i=0;i<MAX_PLAYERS;i++)
  8754. {
  8755. if (playerid!=i)
  8756. {
  8757. SendClientMessage(i,0xFFFF00AA,msg);
  8758. }
  8759. }
  8760. for (new i=0;i<MAX_PLAYERS;i++)
  8761. {
  8762. if (OnBusAsPassenger[i]==playerid)
  8763. {
  8764. new Bussta = playerid;
  8765. OnBusAsPassenger[i]=-1;
  8766. new viaje=CostoDelViaje2[i];
  8767. format(msg,sizeof(msg),"~w~You pay to ~g~%s ~n~~r~$%d~w~ for the ~r~Bus~w~ ride.",name,viaje);
  8768. GameTextForPlayer(i,msg,5000,6);
  8769. format(msg,sizeof(msg),"~w~You get ~r~$%d~w~ ~n~for the ~r~Bus~w~ ride.",viaje);
  8770. GameTextForPlayer(Bussta,msg,5000,6);
  8771. GivePlayerMoney(i,-viaje);
  8772. GivePlayerMoney(Bussta,viaje);
  8773. cantidadPasajeros2--;
  8774. if (cantidadPasajeros2==0)
  8775. {
  8776. KillTimer(caidadeficha2Timer2);
  8777. }
  8778. }
  8779. }
  8780. contador2[playerid]=0;
  8781. return 1;
  8782. }
  8783. //------------------------------------------------------------------------------------------------------
  8784. public caidadeficha2()
  8785. {
  8786. for (new i=0;i<MAX_PLAYERS;i++)
  8787. {
  8788. CostoDelViaje2[i]=CostoDelViaje2[i]+PRECIO_FICHA2;
  8789. }
  8790. }
  8791.  
  8792. MissionIni2(playerid)
  8793. {
  8794. playerInMiniMission2[playerid]=1;
  8795. GameTextForPlayer(playerid,"~r~Bus ~w~Job",5000,6);
  8796. new name[MAX_PLAYER_NAME];
  8797. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  8798. new msg[255];
  8799. format(msg,sizeof(msg),"***ATENTION: %s is now a Bus DRIVER***",name);
  8800. for (new i=0;i<MAX_PLAYERS;i++)
  8801. {
  8802. if (playerid!=i)
  8803. {
  8804. SendClientMessage(i,0xFFFF00AA,msg);
  8805. }
  8806. }
  8807. return 1;
  8808. }
  8809. //------------------------------------------------------------------------------
  8810. dcmd_taze(playerid, params[])
  8811. {
  8812. new taze = strval(params);
  8813. if(!strlen(params))
  8814. {
  8815. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /taze [ID]");
  8816. }
  8817. else
  8818. {
  8819. if(gTeam[playerid] == COP || gTeam[playerid] == SWAT || gTeam[playerid] == ARMY || gTeam[playerid] == FBI)
  8820. {
  8821. if(IsPlayerConnected(taze))
  8822. {
  8823. if(GetDistanceBetweenPlayers(playerid, taze) <= 6)
  8824. {
  8825. if(tazetime[playerid] == 0)
  8826. {
  8827. new tehtaze = random(5);
  8828. if(tehtaze == 1 || tehtaze == 2 || tehtaze == 3 || tehtaze == 4)
  8829. {
  8830. new string[256], Float:thlth;
  8831. format(string, sizeof(string), "%s (%i) has tazed you.",ReturnPlayerName(playerid), playerid);
  8832. SendClientMessage(taze, COLOR_MSG, string);
  8833. format(string, sizeof(string), "You have tazed %s (%i).",ReturnPlayerName(taze), taze);
  8834. SendClientMessage(playerid, COLOR_MSG, string);
  8835. GetPlayerHealth(taze, thlth);
  8836. new Float:tehtaze3 = thlth-15-random(30);
  8837. SetPlayerHealth(taze, tehtaze3);
  8838. if(thlth < tehtaze3)
  8839. {
  8840. format(string, sizeof(string), "%s (%i) has been tazed to death", ReturnPlayerName(taze), taze);
  8841. SendClientMessageToAll(COLOR_KILLED, string);
  8842. }
  8843. else
  8844. {
  8845. SendClientMessage(taze, COLOR_MSG, "You are stunned for a while.");
  8846. TogglePlayerControllable(taze, 0);
  8847. stunned[taze] = 1;
  8848. tazetime[playerid] = 1;
  8849. SetTimerEx("tazetimer", ANTISPAM*1000, 0, "i", playerid);
  8850. SetTimerEx("stuntimer", STUNNED_TIME*1000, 0, "i", taze);
  8851. }
  8852. }
  8853. else
  8854. {
  8855. new string[256], Float:phlth;
  8856. format(string, sizeof(string), "%s (%i) has accidentally held the tazer the wrong way and tazed himself",ReturnPlayerName(playerid), playerid);
  8857. SendClientMessage(taze, COLOR_MSG, string);
  8858. SendClientMessage(playerid, COLOR_MSG, "You accidentally held the tazer the wrong way and tazed yourself");
  8859. GetPlayerHealth(playerid, phlth);
  8860. new Float:tehtaze2 = phlth-25-random(30);
  8861. SetPlayerHealth(playerid, tehtaze2);
  8862. if(phlth < tehtaze2)
  8863. {
  8864. format(string, sizeof(string), "%s (%i) has been tazed to death",ReturnPlayerName(playerid), playerid);
  8865. SendClientMessageToAll(COLOR_KILLED, string);
  8866. }
  8867. else
  8868. {
  8869. SendClientMessage(playerid, COLOR_MSG, "You are stunned for a while.");
  8870. TogglePlayerControllable(playerid, 0);
  8871. stunned[playerid] = 1;
  8872. SetTimerEx("stuntimer", STUNNED_TIME*1000, 0, "i", playerid);
  8873. SetTimerEx("tazetimer", ANTISPAM*1000, 0, "i", playerid);
  8874. tazetime[playerid] = 1;
  8875. }
  8876. }
  8877. }
  8878. else
  8879. {
  8880. SendClientMessage(playerid, COLOR_MSG, "Please wait before tazing someone again!");
  8881. }
  8882. }
  8883. else
  8884. {
  8885. new string[256];
  8886. format(string, sizeof(string), "%s (%i) is not close enough to taze!", ReturnPlayerName(taze), taze);
  8887. }
  8888. }
  8889. else
  8890. {
  8891. SendClientMessage(playerid, COLOR_MSG, "That player is not connected!");
  8892. }
  8893. }
  8894. else
  8895. {
  8896. SendClientMessage(playerid, COLOR_MSG, "You are not Police Officer!");
  8897. }
  8898. }
  8899. return 1;
  8900. }
  8901. //
  8902. forward stuntimer(taze);
  8903. forward tazetimer(i);
  8904. public stuntimer(taze)
  8905. {
  8906. stunned[taze] = 0;
  8907. TogglePlayerControllable(taze, 1);
  8908. SendClientMessage(taze, COLOR_MSG, "You have recovered from the tazer-shock");
  8909. }
  8910. public tazetimer(i)
  8911. {
  8912. tazetime[i] = 0;
  8913. }
  8914. stock ReturnPlayerName(ID)
  8915. {
  8916. new name[25];
  8917. GetPlayerName(ID, name, 25);
  8918. return name;
  8919. }
  8920. OnePlayAnim(playerid,animlib[],animname[], Float:Speed2, looping, lockx, locky, lockz, lp)
  8921. {
  8922. if (gPlayerUsingLoopingAnim[playerid] == 1)
  8923. ApplyAnimation(playerid, animlib, animname, Speed2, looping, lockx, locky, lockz, lp);
  8924. animation[playerid]++;
  8925. }
  8926.  
  8927. //-------------------------------------------------
  8928.  
  8929. LoopingAnim(playerid,animlib[],animname[], Float:Speed2, looping, lockx, locky, lockz, lp)
  8930. {
  8931. gPlayerUsingLoopingAnim[playerid] = 1;
  8932. ApplyAnimation(playerid, animlib, animname, Speed2, looping, lockx, locky, lockz, lp);
  8933. animation[playerid]++;
  8934. }
  8935. dcmd_lottohelp(playerid,params[])
  8936. {
  8937. #pragma unused params
  8938. SendClientMessage(playerid,yellow,"Lotto help: /lotto /mylotto /lottotest");
  8939. return 1;
  8940. }
  8941.  
  8942. dcmd_lotto(playerid,params[])
  8943. {
  8944. #pragma unused params
  8945. if(HaveTicket[playerid] == true) return SendClientMessage(playerid, red, "You already have a Lotto ticket (6/49) .");
  8946. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, red, "Tickets Lotto 6/49 cost $ 1,000.");
  8947. GivePlayerMoney(playerid, -1000);
  8948. HaveTicket[playerid] = true;
  8949. GepiLottoSzamok(playerid);
  8950. 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]);
  8951. SendClientMessage(playerid, yellow, output2);
  8952. return 1;
  8953. }
  8954.  
  8955. dcmd_mylotto(playerid,params[])
  8956. {
  8957. #pragma unused params
  8958. if(HaveTicket[playerid] == false) return SendClientMessage(playerid, red, "Do not have a ticket lotto 6/49. Use / lotto");
  8959. 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]);
  8960. SendClientMessage(playerid, yellow, output2);
  8961. return 1;
  8962. }
  8963.  
  8964. dcmd_lottotest(playerid,params[])
  8965. {
  8966. #pragma unused params
  8967. if(IsPlayerAdmin(playerid))
  8968. {
  8969. Sorsolas();
  8970. } else SendClientMessage(playerid,red,"You are not the main admin (RCON ADMIN)!");
  8971. return 1;
  8972. }
  8973.  
  8974. forward Sorsolas();
  8975. public Sorsolas()
  8976. {
  8977. NEXT:
  8978. for(new f = 0; f < 6; f++) KisorsoltSzamok[f] = random(49)+1; // random number 1,2,3........44,45
  8979. for(new f = 0; f < 5; f++)
  8980. {
  8981. for(new c = f+1; c < 6; c++)
  8982. {
  8983. if(KisorsoltSzamok[f] == KisorsoltSzamok[c])
  8984. {
  8985. goto NEXT;
  8986. }
  8987. }
  8988. }
  8989.  
  8990. new Talalat[ALTERNATIVE_MAX_PLAYERS];
  8991. for(new p = 0; p < ALTERNATIVE_MAX_PLAYERS; p++) if(IsPlayerConnected(p))
  8992. {
  8993. if(HaveTicket[p] == true)
  8994. {
  8995. 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.
  8996. SendClientMessage(p, red, " ============ Lotto 6/49 ============");
  8997. // Your Lotto 6/49 numbers:
  8998. 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]);
  8999. SendClientMessage(p, yellow, output2);
  9000. // The winning Lotto 6/49 numbers:
  9001. format(output2, sizeof(output2), "Winning Numbers: %d, %d, %d, %d, %d, %d", KisorsoltSzamok[0], KisorsoltSzamok[1], KisorsoltSzamok[2], KisorsoltSzamok[3], KisorsoltSzamok[4], KisorsoltSzamok[5]);
  9002. SendClientMessage(p, grgreen, output2);
  9003. if(Talalat[p] == 0) SendClientMessage(p, grgreen, "You have 0 correct numbers. Receive: $ 0");
  9004. if(Talalat[p] == 1) { SendClientMessage(p, grgreen, "You have 1 correct numbers. Receive: $500 +1 score"); GivePlayerMoney(p, 500); SetPlayerScore(p,GetPlayerScore(p)+1); }
  9005. if(Talalat[p] == 2) { SendClientMessage(p, grgreen, "You have 2 correct numbers. Receive: $4000 +3 score"); GivePlayerMoney(p, 4000); SetPlayerScore(p,GetPlayerScore(p)+3); }
  9006. if(Talalat[p] == 3) { SendClientMessage(p, grgreen, "You have 3 correct numbers. Receive: $9300 +6 score"); GivePlayerMoney(p, 9300); SetPlayerScore(p,GetPlayerScore(p)+6); }
  9007. if(Talalat[p] == 4) { SendClientMessage(p, grgreen, "You have 4 correct numbers. Receive: $27300 +9score"); GivePlayerMoney(p, 27300); SetPlayerScore(p,GetPlayerScore(p)+9); }
  9008. if(Talalat[p] == 5) { SendClientMessage(p, grgreen, "You have 5 correct numbers. Receive: $95128 +10 score"); GivePlayerMoney(p, 95128); SetPlayerScore(p,GetPlayerScore(p)+10); }
  9009. if(Talalat[p] == 6) {
  9010. SendClientMessage(p,red, "You have 5 correct numbers. Receive: $122000 si +11 score");
  9011. GivePlayerMoney(p, 122000);
  9012. 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
  9013. }
  9014. SendClientMessage(p, red, " ================================");
  9015. HaveTicket[p] = false;
  9016. }
  9017. }
  9018. return 1;
  9019. }
  9020.  
  9021. GepiLottoSzamok(playerid) // véletlenszerüen megad lottószámokat
  9022. {
  9023. START:
  9024. 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 :)
  9025. // for(new null = 0; null < 5; null++) { if(NyeroSzamok[null][playerid] == 0) return SetTimerEx("GepiLottoSzamok", 50, 0, "i", playerid); }
  9026. // Azonosság keresés egyezés esetén visszatérés ismétlésre.
  9027. for(new f = 0; f < 5; f++)
  9028. {
  9029. for(new c = f+1; c < 6; c++)
  9030. {
  9031. if(NyeroSzamok[f][playerid] == NyeroSzamok[c][playerid])
  9032. {
  9033. 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.
  9034. }
  9035. }
  9036. }
  9037. }
  9038.  
  9039. forward LottoHirdetes();
  9040. public LottoHirdetes()
  9041. {
  9042. SendClientMessageToAll(green,"Want to play the lotto? Write /lotto to buy a ticket.");
  9043. }
  9044. public Speedometer(playerid)
  9045. {
  9046. new State = GetPlayerState(playerid);
  9047. if(Spawned[playerid] == 1)
  9048. {
  9049. if(State == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle(playerid))
  9050. {
  9051. if(Speed[playerid][ShowSpeed] == 1)
  9052. {
  9053. #define MULTIPLY_SPEED 4
  9054. new vehicleid = GetPlayerVehicleID(playerid);
  9055. new VehicleModel = GetVehicleModel(vehicleid);
  9056.  
  9057. new Float:x, Float:y, Float:z, Float:health, string[256], string2[255];
  9058. GetPlayerPos(playerid, x, y, z); GetVehicleHealth(vehicleid, health);
  9059. new Float:Dis = floatsqroot(floatpower(floatabs(floatsub(Speed[playerid][OldCoordsX],x)),2) + floatpower(floatabs(floatsub(Speed[playerid][OldCoordsY],y)),2));
  9060.  
  9061. if(Vehicle[vehicleid][Fuel] <= 0){ RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_YELLOW, "[FUEL]: There is no fuel in the vehicle."); }
  9062. if(VehicleModel==509||VehicleModel==481||VehicleModel==510) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); Vehicle[vehicleid][Fuel] = 100; }
  9063. 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; }
  9064. new speed = (floatround(Dis)*MULTIPLY_SPEED);
  9065.  
  9066. TextDrawHideForPlayer(playerid, BOX2);
  9067. TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
  9068. TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
  9069. TextDrawShowForPlayer(playerid, Speed[playerid][Speedom2]);
  9070. TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  9071. format(string,sizeof(string),"~w~LoLocation: %s",ReturnPlayerZone(playerid), Vehicle[vehicleid][Fuel]);
  9072. TextDrawSetString(Speed[playerid][Speedom], string);
  9073. TextDrawSetString(Speed[playerid][Speedom2], string2);
  9074. Speed[playerid][OldCoordsX] = x; Speed[playerid][OldCoordsY] = y;
  9075. TextDrawShowForPlayer(playerid, BOX2);
  9076. }
  9077. } else
  9078. {
  9079. new string[250];
  9080. TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
  9081. format(string,sizeof(string),"~w~LoLocation: %s" ,ReturnPlayerZone(playerid));
  9082. TextDrawSetString(Speed[playerid][Speedom], string);
  9083. }
  9084. }
  9085. return true;
  9086. }
  9087.  
  9088. stock Random(min, max)
  9089. {
  9090. new a = random(max - min) + min;
  9091. return a;
  9092. }
  9093.  
  9094. dcmd_refuel(playerid,params[]){
  9095. #pragma unused params
  9096. if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid)){
  9097. if(IsAtFuelStation(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  9098. new vehicleid = GetPlayerVehicleID(playerid);
  9099. if(Speed[playerid][Refueling] == 0){
  9100. if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessage(playerid,COLOR_YELLOW,".:: [ERROR]: This vehicle does not need fuel :.");
  9101. if(Vehicle[vehicleid][Fuel] >= 100){
  9102. SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: Your gas tank is already full.");
  9103. } else {
  9104. Vehicle[GetPlayerVehicleID(playerid)][OldFuel] = 0; Speed[playerid][Refueling] = 1;
  9105. Speed[playerid][ReFuelTimer] = SetTimerEx("ReFill", 1000, true, "i", playerid); }
  9106. } else { SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: You are allready refueling your car."); }
  9107. } else { SendClientMessage(playerid,COLOR_YELLOW,".:: [FUEL]: You must be at a gas station to refuel"); } }
  9108. return true;
  9109. }
  9110.  
  9111. ///////////////////////////
  9112. // Fuel Functions
  9113. //////////////////////////
  9114.  
  9115. public ReFill(playerid)
  9116. {
  9117. new Float:x, Float:y, Float:z;
  9118. if(GetPlayerPos(playerid, x, y, z) != IsAtFuelStation(playerid) || Vehicle[GetPlayerVehicleID(playerid)][Fuel] >= 100){
  9119. StopRefueling(playerid);
  9120. } else { Vehicle[GetPlayerVehicleID(playerid)][Fuel] ++; Vehicle[GetPlayerVehicleID(playerid)][OldFuel] ++; }
  9121. return true;
  9122. }
  9123.  
  9124. stock StopRefueling(playerid)
  9125. {
  9126. GivePlayerMoney(playerid, -Vehicle[GetPlayerVehicleID(playerid)][OldFuel]);
  9127. SendFormattedMessage(playerid, COLOR_YELLOW,".:: [FUEL]: Your vehicle has been refueled for $%d.", Vehicle[GetPlayerVehicleID(playerid)][OldFuel]);
  9128. Speed[playerid][Refueling] = 0; KillTimer(Speed[playerid][ReFuelTimer]);
  9129. return true;
  9130. }
  9131.  
  9132. public IsAtFuelStation(playerid)
  9133. {
  9134. if(PlayerToPoint(10,playerid,1595.5406, 2198.0520, 10.3863) || PlayerToPoint(10,playerid,2202.0649, 2472.6697, 10.5677) ||
  9135. PlayerToPoint(10,playerid,2115.1929, 919.9908, 10.5266) || PlayerToPoint(10,playerid,2640.7209, 1105.9565, 10.5274) ||
  9136. PlayerToPoint(10,playerid,608.5971, 1699.6238, 6.9922) || PlayerToPoint(10,playerid,618.4878, 1684.5792, 6.9922) ||
  9137. PlayerToPoint(10,playerid,2146.3467, 2748.2893, 10.5245) || PlayerToPoint(10,playerid,-1679.4595, 412.5129, 6.9973) ||
  9138. PlayerToPoint(10,playerid,-1327.5607, 2677.4316, 49.8093) || PlayerToPoint(10,playerid,-1470.0050, 1863.2375, 32.3521) ||
  9139. PlayerToPoint(10,playerid,-2409.2200, 976.2798, 45.2969) || PlayerToPoint(10,playerid,-2244.1396, -2560.5833, 31.9219) ||
  9140. PlayerToPoint(10,playerid,-1606.0544, -2714.3083, 48.5335) || PlayerToPoint(10,playerid,1937.4293, -1773.1865, 13.3828) ||
  9141. PlayerToPoint(10,playerid,-91.3854, -1169.9175, 2.4213) || PlayerToPoint(10,playerid,1383.4221, 462.5385, 20.1506) ||
  9142. PlayerToPoint(10,playerid,660.4590, -565.0394, 16.3359) || PlayerToPoint(10,playerid,1381.7206, 459.1907, 20.3452) ||
  9143. PlayerToPoint(10,playerid,-1605.7156, -2714.4573, 48.5335))
  9144. { return true; }
  9145. return false;
  9146. }
  9147.  
  9148. ///////////////////////////
  9149. // Zone Functions
  9150. //////////////////////////
  9151.  
  9152. stock IsPlayerInZone(playerid, zoneid) {
  9153. if(zoneid == -1) return false;
  9154. new Float:x, Float:y, Float:z;
  9155. GetPlayerPos(playerid, x, y, z);
  9156. 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;
  9157. return false;
  9158. }
  9159.  
  9160. stock ReturnPlayerZone(playerid)
  9161. {
  9162. new playerzone[256] = "Unknown";
  9163. for(new j; j < sizeof(zones); j++) {
  9164. if(IsPlayerInZone(playerid,j)) {
  9165. memcpy(playerzone, zones[j][zone_name], 0, 108);
  9166. break;
  9167. }
  9168. }
  9169. return playerzone;
  9170. }
  9171.  
  9172. stock GetPlayerZoneID(playerid)
  9173. {
  9174. for(new j; j < sizeof(zones); j++) {
  9175. if(IsPlayerInZone(playerid, j)) return j;
  9176. }
  9177. }
  9178.  
  9179. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  9180. {
  9181. new file[256];
  9182. new name[MAX_PLAYER_NAME];
  9183. new Registre[250];
  9184. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  9185. if(dialogid == RegisterName)
  9186. {
  9187. if(!response) Kick(playerid);
  9188. {
  9189. if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Register","Invalid Password\nPlease enter an password!","Register","Ban");
  9190. format(file,sizeof(file),"%s.runix", name);
  9191. if(!fexist(file))
  9192. {
  9193. dini_Create(file);
  9194. dini_IntSet(file, "Password", udb_hash(inputtext));
  9195. dini_IntSet(file, "Money", 2500);
  9196. dini_IntSet(file, "Score", 1);
  9197. dini_IntSet(file, "Bank", 1000);
  9198. dini_IntSet(file, "RobSkill", 1);
  9199. dini_IntSet(file, "TerSkill", 1);
  9200. dini_IntSet(file, "Admin", 0);
  9201. dini_IntSet(file, "Warnings", 0);
  9202. dini_IntSet(file, "WantedLevel", 0);
  9203. dini_IntSet(file, "Jail", 0);
  9204. dini_IntSet(file, "RentalOwner", 0);
  9205. dini_IntSet(file, "Drugs", 0);
  9206. dini_IntSet(file, "C4", 0);
  9207. dini_IntSet(file, "Skin", -1);
  9208. format(Registre,sizeof(Registre),"Thanks for registering!\nYou may now login.",name);
  9209. ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Login","Ban");
  9210. GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
  9211. }
  9212. }
  9213. }
  9214. if(dialogid == LoginName)
  9215. {
  9216. if(!response) Kick(playerid);
  9217. {
  9218. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  9219. if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Invalit Password!\nPlease enter an password","Login","Ban");
  9220. format(file,sizeof(file),"%s.runix", name);
  9221. if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Wrong Password!\nPlease enter an password","Login","Ban");
  9222. else
  9223. {
  9224. IsPlayerLogged[playerid] = 1;
  9225. SetPlayerMoney(playerid, dini_Int(file, "Money"));
  9226. SetPlayerScore(playerid, dini_Int(file, "Score"));
  9227. AccountInfo[playerid][aLevel] = dini_Int(file, "Admin");
  9228. PlayerSkin[playerid] = dini_Int(file,"Skin");
  9229. SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
  9230. SendClientMessage(playerid, GREY, "You are now logged in. Your status will be saved on your logout.");
  9231. GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
  9232. }
  9233. }
  9234. }
  9235. return 0;
  9236. }
  9237.  
  9238. dcmd_report(playerid, params[])
  9239. {
  9240. new ID, reason[100];
  9241. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [id] [reason]");
  9242. else
  9243. {
  9244. new string[256], name[60], name2[60];
  9245. GetPlayerName(playerid, name, 60);
  9246. GetPlayerName(ID, name2, 60);
  9247. format(string, 256, "%s[%d] reported %s[%d] (Reason: %s)", name, playerid, name2, ID, reason);
  9248. for(new i=0;i<MAX_PLAYERS;i++)
  9249. {
  9250. if(IsPlayerConnected(i))
  9251. {
  9252. if(AccountInfo[i][aLevel] > 0)
  9253. {
  9254. SendClientMessage(i, COLOR_WHITE, string);
  9255. }
  9256. }
  9257. }
  9258. }
  9259. return 1;
  9260. }
  9261.  
  9262.  
  9263. dcmd_setlevel(playerid, params[])
  9264. {
  9265. if(IsPlayerAdmin(playerid))
  9266. {
  9267. new ID, level;
  9268. if(sscanf(params, "ii", ID, level)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setlevel [id] [level]");
  9269. else if(ID == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9270. else
  9271. {
  9272. AccountInfo[ID][aLevel] = level;
  9273. SendClientMessage(ID, COLOR_GREEN, "The RCON Admin promoted you to an admin!");
  9274. }
  9275. }
  9276. return 1;
  9277. }
  9278.  
  9279. dcmd_admins(playerid, params[])
  9280. {
  9281. SendClientMessage(playerid, COLOR_YELLOW, "Online admins:");
  9282. new chose;
  9283. for(new i=0;i<MAX_PLAYERS;i++)
  9284. {
  9285. if(AccountInfo[i][aLevel] > 0)
  9286. {
  9287. new name[60], string[100];
  9288. GetPlayerName(i, name, 60);
  9289. format(string, 100, "%s[%i] Level: %i", name, i, AccountInfo[i][aLevel]);
  9290. SendClientMessage(playerid, COLOR_WHITE, string);
  9291. chose = 1;
  9292. }
  9293. }
  9294. if(chose == 0)
  9295. {
  9296. SendClientMessage(playerid, COLOR_WHITE, "No administrators online!");
  9297. }
  9298. return 1;
  9299. #pragma unused params
  9300. }
  9301.  
  9302. dcmd_kick(playerid, params[])
  9303. {
  9304. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9305. else
  9306. {
  9307. new ID, reason[100];
  9308. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [id] [reason]");
  9309. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9310. else
  9311. {
  9312. new string[256], name[60], name2[60];
  9313. GetPlayerName(playerid, name, 60);
  9314. GetPlayerName(ID, name2, 60);
  9315. format(string, 256, "Administrator %s[%d] has kicked %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9316. SendClientMessageToAll(COLOR_YELLOW, string);
  9317. Kick(ID);
  9318. }
  9319. }
  9320. return 1;
  9321. }
  9322.  
  9323. dcmd_ban(playerid, params[])
  9324. {
  9325. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9326. else
  9327. {
  9328. new ID, reason[100];
  9329. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban [id] [reason]");
  9330. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9331. else
  9332. {
  9333. new string[256], name[60], name2[60];
  9334. GetPlayerName(playerid, name, 60);
  9335. GetPlayerName(ID, name2, 60);
  9336. format(string, 256, "Administrator %s[%d] has banned %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9337. SendClientMessageToAll(COLOR_YELLOW, string);
  9338. Ban(ID);
  9339. }
  9340. }
  9341. return 1;
  9342. }
  9343.  
  9344. dcmd_car(playerid,params[]) {
  9345. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9346. else
  9347. {
  9348. new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index,true), tmp2 = strtok(params,Index,true); tmp3 = strtok(params,Index,true);
  9349. if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /car [Modelid] [colour1] [colour2]");
  9350. new car, colour1, colour2;
  9351. car = strval(tmp);
  9352. if(car < 400 || car > 611) SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
  9353. if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);
  9354. if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);
  9355. if(IcmdCar[playerid][CarcmdI] != -1) ExkillCar(IcmdCar[playerid][CarcmdI]);
  9356. new VehiclulR,Float:X,Float:Y,Float:Z, Float:Angle,int1;
  9357. GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
  9358. int1 = GetPlayerInterior(playerid);
  9359. VehiclulR = AddStaticVehicleEx(car, X+3,Y,Z, Angle, colour1, colour2, 60);
  9360. PutPlayerInVehicle(playerid, VehiclulR, 0);
  9361. LinkVehicleToInterior(VehiclulR,int1);
  9362. IcmdCar[playerid][CarcmdI] = VehiclulR;
  9363. }
  9364. return 1;
  9365. }
  9366.  
  9367.  
  9368. dcmd_giveweapon(playerid,params[]) {
  9369. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9370. else
  9371. {
  9372. new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index,true), tmp2 = strtok(params,Index,true), tmp3 = strtok(params,Index,true);
  9373. if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /giveweapon [playerid] [weapon id/weapon name] [ammo]");
  9374. new player1 = strval(tmp), weap, ammo, string[128];
  9375. if(!strlen(tmp3) || !IsNumeric(tmp3) || strval(tmp3) <= 0 || strval(tmp3) > 99999) ammo = 500; else ammo = strval(tmp3);
  9376. weap = strval(tmp2);
  9377. if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  9378. if(!IsValidWeapon(weap)) return SendClientMessage(playerid,red,"ERROR: Invalid weapon ID");
  9379. format(string, sizeof(string), "You have given \"%s\" an weapon", PlayerName2(player1)); SendClientMessage(playerid,blue,string);
  9380. if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has given an weapon", PlayerName2(playerid)); SendClientMessage(player1,blue,string); }
  9381. return GivePlayerWeapon(player1, weap, ammo);
  9382. } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
  9383. }
  9384. return 1;
  9385. }
  9386.  
  9387. dcmd_freeze(playerid, params[])
  9388. {
  9389. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9390. else
  9391. {
  9392. new ID, reason[100];
  9393. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [id] [reason]");
  9394. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9395. else
  9396. {
  9397. new string[256], name[60], name2[60];
  9398. GetPlayerName(playerid, name, 60);
  9399. GetPlayerName(ID, name2, 60);
  9400. format(string, 256, "Administrator %s[%d] has frozen %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9401. SendClientMessageToAll(COLOR_YELLOW, string);
  9402. TogglePlayerControllable(ID, 0);
  9403. }
  9404. }
  9405. return 1;
  9406. }
  9407.  
  9408. dcmd_unfreeze(playerid, params[])
  9409. {
  9410. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9411. else
  9412. {
  9413. new ID;
  9414. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [id]");
  9415. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9416. else
  9417. {
  9418. TogglePlayerControllable(ID, 1);
  9419. }
  9420. }
  9421. return 1;
  9422. }
  9423.  
  9424. dcmd_akill(playerid, params[])
  9425. {
  9426. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9427. else
  9428. {
  9429. new ID, reason[100];
  9430. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /akill [id] [reason]");
  9431. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9432. else
  9433. {
  9434. new string[256], name[60], name2[60];
  9435. GetPlayerName(playerid, name, 60);
  9436. GetPlayerName(ID, name2, 60);
  9437. format(string, 256, "Administrator %s[%d] has adminkilled %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9438. SendClientMessageToAll(COLOR_YELLOW, string);
  9439. SetPlayerHealth(ID, 0);
  9440. }
  9441. }
  9442. return 1;
  9443. }
  9444.  
  9445. dcmd_mute(playerid, params[])
  9446. {
  9447. if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9448. else
  9449. {
  9450. new ID, reason[100];
  9451. if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [id] [reason]");
  9452. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9453. else
  9454. {
  9455. new string[256], name[60], name2[60];
  9456. GetPlayerName(playerid, name, 60);
  9457. GetPlayerName(ID, name2, 60);
  9458. format(string, 256, "Administrator %s[%d] has muted %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
  9459. SendClientMessageToAll(COLOR_YELLOW, string);
  9460. Muted[ID] = 1;
  9461. }
  9462. }
  9463. return 1;
  9464. }
  9465.  
  9466. dcmd_unmute(playerid, params[])
  9467. {
  9468. if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9469. else
  9470. {
  9471. new ID;
  9472. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unmute [id]");
  9473. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9474. else
  9475. {
  9476. new string[256], name[60], name2[60];
  9477. GetPlayerName(playerid, name, 60);
  9478. GetPlayerName(ID, name2, 60);
  9479. format(string, 256, "Administrator %s[%d] has unmuted %s[%d].", name, playerid, name2, ID);
  9480. SendClientMessageToAll(COLOR_YELLOW, string);
  9481. Muted[playerid] = 0;
  9482. }
  9483. }
  9484. return 1;
  9485. }
  9486.  
  9487. dcmd_spec(playerid, params[])
  9488. {
  9489. if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9490. else
  9491. {
  9492. new ID;
  9493. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spec [id]");
  9494. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9495. else
  9496. {
  9497. TogglePlayerSpectating(playerid, 1);
  9498. PlayerSpectatePlayer(playerid, ID, SPECTATE_MODE_NORMAL);
  9499. }
  9500. }
  9501. return 1;
  9502. }
  9503.  
  9504. dcmd_specoff(playerid, params[])
  9505. {
  9506. if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
  9507. else
  9508. {
  9509. TogglePlayerSpectating(playerid, 0);
  9510. SpawnPlayer(playerid);
  9511. }
  9512. return 1;
  9513. #pragma unused params
  9514. }
  9515.  
  9516. dcmd_slap(playerid, params[])
  9517. {
  9518. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9519. else
  9520. {
  9521. new ID;
  9522. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [id]");
  9523. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
  9524. else
  9525. {
  9526. new Float:x, Float:y, Float:z, name[60], string[100];
  9527. GetPlayerPos(ID, x, y, z);
  9528. SetPlayerPos(ID, x, y, z+30);
  9529. format(string, 100, "You have slapped %s[%d]", name, ID);
  9530. SendClientMessage(playerid, COLOR_YELLOW, string);
  9531. }
  9532. }
  9533. return 1;
  9534. }
  9535.  
  9536. dcmd_jetpack(playerid,params[])
  9537. {
  9538. if(AccountInfo[playerid][aLevel] < 4) SendClientMessage(playerid, COLOR_RED, "AdminLevel 4 needed for this command!");
  9539. else
  9540. {
  9541. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
  9542. }
  9543. return 1;
  9544. #pragma unused params
  9545. }
  9546.  
  9547. dcmd_announce(playerid, params[])
  9548. {
  9549. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9550. else
  9551. {
  9552. new string[256];
  9553. if(sscanf(params, "s", string)) SendClientMessage(playerid, COLOR_WHITE, "Usage: /announce [text]");
  9554. else
  9555. {
  9556. GameTextForAll(string, 3000, 3);
  9557. }
  9558. }
  9559. return 1;
  9560. }
  9561.  
  9562. dcmd_setscore(playerid, params[])
  9563. {
  9564. if(AccountInfo[playerid][aLevel] < 5) SendClientMessage(playerid, COLOR_RED, "AdminLevel 5 needed for this command!");
  9565. else
  9566. {
  9567. new ID, score;
  9568. if(sscanf(params, "ii", ID, score)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setscore [id] [score]");
  9569. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9570. else
  9571. {
  9572. new name[60], string[100];
  9573. GetPlayerName(playerid, name, 60);
  9574. format(string, 100, "Administrator %s set your score to %d", name, score);
  9575. SendClientMessage(ID, COLOR_YELLOW, string);
  9576. GetPlayerName(ID, name, 60);
  9577. format(string, 100, "You have set %s's score to %i", name, score);
  9578. SendClientMessage(playerid, COLOR_YELLOW, string);
  9579. SetPlayerScore(ID, score);
  9580. }
  9581. }
  9582. return 1;
  9583. }
  9584.  
  9585. dcmd_agivemoney(playerid, params[])
  9586. {
  9587. if(AccountInfo[playerid][aLevel] < 4) SendClientMessage(playerid, COLOR_RED, "AdminLevel 4 needed for this command!");
  9588. else
  9589. {
  9590. new ID, amount;
  9591. if(sscanf(params, "id", ID, amount)) SendClientMessage(playerid , COLOR_WHITE, "USAGE: /agivemoney [id] [amount]");
  9592. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9593. else
  9594. {
  9595. new string[100], name[60];
  9596. GetPlayerName(ID, name, 60);
  9597. format(string, 100, "You have given %s[%d] $%d", name, ID, amount);
  9598. SendClientMessage(playerid, COLOR_YELLOW, string);
  9599. GetPlayerName(playerid, name, 60);
  9600. format(string, 100, "Administrator %s[%d] has given you $%d", name, playerid, amount);
  9601. SendClientMessage(ID, COLOR_YELLOW, string);
  9602. GivePlayerMoney(ID, amount);
  9603. }
  9604. }
  9605. return 1;
  9606. }
  9607.  
  9608. dcmd_goto(playerid, params[])
  9609. {
  9610. if(AccountInfo[playerid][aLevel] < 3) SendClientMessage(playerid, COLOR_RED, "AdminLevel 3 needed for this command!");
  9611. else
  9612. {
  9613. new ID;
  9614. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goto [id]");
  9615. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9616. else
  9617. {
  9618. new Float:x, Float:y, Float:z;
  9619. GetPlayerPos(ID, x, y, z);
  9620. SetPlayerPos(playerid, x+1, y+1, z);
  9621. }
  9622. }
  9623. return 1;
  9624. }
  9625.  
  9626. dcmd_gethere(playerid, params[])
  9627. {
  9628. if(AccountInfo[playerid][aLevel] < 3) SendClientMessage(playerid, COLOR_RED, "AdminLevel 3 needed for this command!");
  9629. else
  9630. {
  9631. new ID;
  9632. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gethere [id]");
  9633. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9634. else
  9635. {
  9636. new Float:x, Float:y, Float:z;
  9637. GetPlayerPos(playerid, x, y, z);
  9638. SetPlayerPos(ID, x+1, y+1, z);
  9639. }
  9640. }
  9641. return 1;
  9642. }
  9643.  
  9644. dcmd_i(playerid, params[])
  9645. {
  9646. new ID,string[256],string2[256],name[60];
  9647. if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /i [id]");
  9648. else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
  9649. else
  9650. {
  9651. HideDraw(playerid);
  9652. GetPlayerName(ID, name, 60);
  9653. new carid = GetPlayerVehicleID(ID);
  9654. TextDrawShowForPlayer(playerid,text44);
  9655. TextDrawShowForPlayer(playerid,text45);
  9656. TextDrawShowForPlayer(playerid,PCBOX);
  9657. if(!IsPlayerInAnyVehicle(ID))
  9658. {
  9659. 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));
  9660. }else
  9661. if(IsPlayerInAnyVehicle(ID))
  9662. {
  9663. 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]);
  9664. }
  9665. TextDrawSetString(text44,string);
  9666. format(string2,256,"~n~~n~~n~~n~~n~~n~~n~~w~Type ~r~~h~LMB ~w~For Hide Thes~n~~w~Boxes!");
  9667. TextDrawSetString(text45,string2);
  9668. }
  9669. return 1;
  9670. }
  9671.  
  9672. dcmd_ahelp(playerid, params[])
  9673. {
  9674. SendClientMessage(playerid, COLOR_WHITE, "/kick /ban /freeze /unfreeze /slap /goto /gethere /jetpack");
  9675. SendClientMessage(playerid, COLOR_WHITE, "/agivemoney /setscore /announce /spec /specoff /mute");
  9676. SendClientMessage(playerid, COLOR_WHITE, "/unmute /akill /sethp /giveweapon /car");
  9677. return 1;
  9678. #pragma unused params
  9679. }
  9680.  
  9681. dcmd_sethp(playerid, params[])
  9682. {
  9683. if(AccountInfo[playerid][aLevel] < 2) SendClientMessage(playerid, COLOR_RED, "AdminLevel 2 needed for this command!");
  9684. else
  9685. {
  9686. new ID, amount;
  9687. if(sscanf(params, "ii", ID, amount)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethp [id] [amount]");
  9688. else
  9689. {
  9690. new name[60], string[256];
  9691. GetPlayerName(ID, name, 60);
  9692. format(string, 256, "You have set %s[%d]'s HP to %d", name, ID, amount);
  9693. SendClientMessage(playerid, COLOR_YELLOW, string);
  9694. SetPlayerHealth(playerid, amount);
  9695. }
  9696. }
  9697. return 1;
  9698. }
  9699. public GPSUpdate(playerid,playerid2)
  9700. {
  9701. if(IsPlayerConnected(playerid2)){
  9702. new Float:Distnace;
  9703. Distnace = GetDistanceBetweenPlayers(playerid,playerid2);
  9704. new Float:X,Float:Y,Float:Z;
  9705. GetPlayerPos(playerid2,X,Y,Z);
  9706. DisablePlayerRaceCheckpoint(playerid);
  9707. SetPlayerRaceCheckpoint(playerid,0,X,Y,Z,0,0,0,0.1);
  9708. new string[128];
  9709. format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~p~Distance: ~r~%.1f ~y~m",Distnace);
  9710. GameTextForPlayer(playerid, string, 1100, 5);
  9711. if(Distnace <= 4.0) {
  9712. DisablePlayerRaceCheckpoint(playerid);
  9713. KillTimer(GPSTimer[playerid]);
  9714. HaveGPS[playerid] = false;
  9715. GPSTimer[playerid] = 0;
  9716. }
  9717. }else{
  9718. DisablePlayerRaceCheckpoint(playerid);
  9719. KillTimer(GPSTimer[playerid]);
  9720. HaveGPS[playerid] = false;
  9721. GPSTimer[playerid] = 0;
  9722. SendClientMessage(playerid, 0xFF0000AA, "SERVER: Player Joints.");
  9723. }
  9724. return 1;
  9725. }
  9726. forward Wanted(playerid);
  9727. public Wanted(playerid)
  9728. {
  9729. if(GetPlayerWantedLevel(playerid) > 0)
  9730. {
  9731. SetPlayerWantedLevel(playerid,-1);
  9732. }
  9733. }
  9734. public BlowCar(vehicleid)
  9735. {
  9736. new Float:x, Float:y, Float:z;
  9737. GetVehiclePos(vehicleid, x, y, z);
  9738. CreateExplosion(x, y, z, 6, 5);
  9739. SetVehicleHealth(vehicleid,0.0);
  9740. }
  9741.  
  9742. public BlowPlayers()
  9743. {
  9744. for(new i = 0; i < MAX_PLAYERS; i++)
  9745. {
  9746. if(IsPlayerSpawned(i))
  9747. {
  9748. if(BlowTime[i] > 1)
  9749. {
  9750. BlowTime[i]--;
  9751. new string[250], timeleft = (BlowTime[i]);
  9752. format(string, sizeof(string), "~r~C4~w~:~n~~g~%d ~w~seconds to blow", timeleft);
  9753. GameTextForPlayer(i, string, 3000, 3);
  9754. }
  9755. if(BlowTime[i] == 1)
  9756. {
  9757. new Float:x, Float:y, Float:z;
  9758. GetPlayerPos(i, x, y, z);
  9759. CreateExplosion(x, y, z, 6, 5);
  9760. SetPlayerHealth(i, 0);
  9761. BlowTime[i] = 0;
  9762. }
  9763. }
  9764. }
  9765. }
  9766. stock IsValidWeapon(weaponid)
  9767. {
  9768. if (weaponid > 0 && weaponid < 19 || weaponid > 21 && weaponid < 47) return 1;
  9769. return 0;
  9770. }
  9771. stock PlayerName2(playerid) {
  9772. new name[MAX_PLAYER_NAME];
  9773. GetPlayerName(playerid, name, sizeof(name));
  9774. return name;
  9775. }
  9776. forward UcideMasinileBoule(vehicleid);
  9777. public UcideMasinileBoule(vehicleid)
  9778. {
  9779. for(new i=0;i<MAX_PLAYERS;i++) {
  9780. new Float:X,Float:Y,Float:Z;
  9781. if(IsPlayerInVehicle(i, vehicleid)) {
  9782. RemovePlayerFromVehicle(i);
  9783. GetPlayerPos(i,X,Y,Z);
  9784. SetPlayerPos(i,X,Y+3,Z);
  9785. }
  9786. SetVehicleParamsForPlayer(vehicleid,i,0,1);
  9787. }
  9788. SetTimerEx("VehRes",1500,0,"i",vehicleid);
  9789. }
  9790.  
  9791. forward VehRes(vehicleid);
  9792. public VehRes(vehicleid)
  9793. {
  9794. DestroyVehicle(vehicleid);
  9795. }
  9796.  
  9797. forward ExkillCar(vehicleid);
  9798. public ExkillCar(vehicleid)
  9799. {
  9800. for(new i=0;i<MAX_PLAYERS;i++) {
  9801. new Float:X,Float:Y,Float:Z;
  9802. if(IsPlayerInVehicle(i, vehicleid)) {
  9803. RemovePlayerFromVehicle(i);
  9804. GetPlayerPos(i,X,Y,Z);
  9805. SetPlayerPos(i,X,Y+3,Z);
  9806. }
  9807. SetVehicleParamsForPlayer(vehicleid,i,0,1);
  9808. }
  9809. DestroyVehicle(vehicleid);
  9810. }
  9811. dcmd_hit(playerid, params[])
  9812. {
  9813. new amount, ID;
  9814. if(sscanf(params, "dd", ID, amount))
  9815. {
  9816. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /hit [ID] [amount]");
  9817. }
  9818. else if(amount > 0)
  9819. {
  9820. if(IsPlayerConnected(ID))
  9821. {
  9822. if(gTeam[playerid] != COP && gTeam[playerid] != SWAT && gTeam[playerid] != FBI && gTeam[playerid] != ARMY)
  9823. {
  9824. if(GetPlayerMoney(playerid) >= amount)
  9825. {
  9826. if(antispam[playerid] == 0)
  9827. {
  9828. hit[ID] = amount;
  9829. hiter[ID] = playerid;
  9830. new string[256];
  9831. format(string, sizeof(string), "You have placed a hit on %s (%i) for $%i", ReturnPlayerName(ID), ID, amount);
  9832. SendClientMessage(playerid, COLOR_MSG, string);
  9833. format(string, sizeof(string), "%s (%i) has placed a hit on %s (%i) for $%i", ReturnPlayerName(playerid), playerid, ReturnPlayerName(ID), ID, amount);
  9834. SendClientMessageToAll(COLOR_MSG, string);
  9835. antispam[playerid] = 1;
  9836. SetTimerEx("antispamtimer", ANTISPAM_TIME*1000, false, "d", playerid);
  9837. }
  9838. else
  9839. {
  9840. SendClientMessage(playerid, COLOR_ERROR, "Please wait before placing another hit!");
  9841. }
  9842. }
  9843. else
  9844. {
  9845. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money!");
  9846. }
  9847. }
  9848. else
  9849. {
  9850. SendClientMessage(playerid, COLOR_ERROR, "You team cannot hit an player!");
  9851. }
  9852. }
  9853. else
  9854. {
  9855. SendClientMessage(playerid, COLOR_ERROR, "That player is not connected!");
  9856. }
  9857. }
  9858. else
  9859. {
  9860. SendClientMessage(playerid, COLOR_ERROR, "Minimum amount to hit a person with is $1!");
  9861. }
  9862. return 1;
  9863. }
  9864. forward antispamtimer(id);
  9865.  
  9866. public antispamtimer(id)
  9867. {
  9868. antispam[id] = 0;
  9869. }
  9870.  
  9871. forward ClockSync();
  9872. public ClockSync()
  9873. {
  9874. Second++;
  9875. if(Second == 60)
  9876. {
  9877. Minute++;
  9878. Second = 0;
  9879. }
  9880. if(Minute >= 24) Minute = 0;
  9881. for(new i; i<GetMaxPlayers(); i++) SetPlayerTime(i, Minute, Second);
  9882. new string[64];
  9883. format(string, sizeof(string), "The time [%d] [%d]", Minute, Second);
  9884. print(string); // testing only.
  9885. return 1;
  9886. }
  9887.  
  9888.  
  9889. //-------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement