1. /*#############################################################
  2. This gamemode was created mostly by me (BMUK)
  3. There are bits and bobs of code that I have picked up from the sa-mp.com forums
  4. All credits given where credit is due.. some are at /credits
  5. Rob got the hang of this script 14/3/08
  6. Byrner scripted 1.7 && 1.8 etc
  7. ###############################################################*/
  8. // Game Mode Includes
  9. #include <a_samp>
  10. #include <core>
  11. #include <file>
  12. #include <float>
  13. #include <dprop>
  14. #include <dutils>
  15. #include <dudb>
  16. #include <a_irc>
  17. #include <cpstream>
  18. // Uhm..
  19. #pragma dynamic 8192
  20. // Tells Loose Indentation warnings to be quiet
  21. #pragma tabsize 0
  22.  
  23. // For Beckyboi's Script
  24. #define tram 449
  25. #define shamal 519
  26.  
  27.  
  28. ////////For Conors Checkpoint things search cpid///////////
  29. // Colour Defines
  30. #define COLOR_GREY 0xAFAFAFAA
  31. #define COLOR_GREEN 0x33AA33AA
  32. #define COLOR_RED 0xFF0000AA
  33. #define COLOR_YELLOW 0xFFFF00AA
  34. #define COLOR_WHITE 0xFFFFFFAA
  35. #define COLOR_BLUEVIOLET 0x8A2BE2AA
  36. #define COLOR_DEADCONNECT 0x808080AA
  37. #define COLOR_BLUE 0x0000FFAA
  38. #define COLOR_FORESTGREEN 0x228B22AA
  39. #define COLOR_DODGERBLUE 0x1E90FFAA
  40. #define COLOR_DARKOLIVEGREEN 0x556B2FAA
  41. #define COLOR_ORANGE 0xFFA500AA
  42. #define COLOR_PURPLE 0x800080AA
  43. #define COLOR_ROYALBLUE 0x4169FFAA
  44. #define COLOR_ERROR 0xD2691EAA
  45. // Max Number of pickups (for destroying cash drops)
  46. #define MAX_PICKUPS 150
  47. // Teams
  48. #define TEAM_COP 1
  49. #define TEAM_ARMY 2
  50. #define TEAM_MEDIC 3
  51. #define TEAM_CARFIX 4
  52. #define TEAM_CASSEC 5
  53. #define TEAM_DRIVER 6
  54. #define TEAM_BISTRO 7
  55. #define TEAM_JAILTK 8
  56. #define TEAM_PVTMED 9
  57. #define TEAM_CIVIL 10
  58. #define TEAM_GASDEL 11
  59. #define TEAM_DRGDEL 12
  60. #define TEAM_HITMAN 13
  61. #define TEAM_GUNDEL 14
  62. #define TEAM_SNITCH 15
  63. #define TEAM_RAPIST 16
  64. #define TEAM_BOUNTY 17
  65. #define TEAM_KIDNAP 18
  66. #define TEAM_PILOT 19
  67. // Script Version ( for gamemode text etc)
  68. #define sversion "1.7"
  69.  
  70.  
  71.  
  72.  
  73. ///////////////Window///////
  74. //#define ADMIN_SPEC_TYPE_NONE 0
  75. //#define ADMIN_SPEC_TYPE_PLAYER 1
  76. //#define ADMIN_SPEC_TYPE_VEHICLE 2
  77.  
  78.  
  79. new Float:difc[13][4] = {
  80. {1.13, 0.05, 1.10, 0.0},
  81. {1.13, 2.35, 1.10, 180.0},
  82. {1.13, 4.65, 1.10, 180.0},
  83. {1.13, 1.05, 1.10, 0.0},
  84. {1.13, 3.45, 1.10, 180.0},
  85. {1.13, 5.85, 1.10, 180.0},
  86. {1.13, 0.39, 0.56, 0.0},
  87. {1.13, 2.69, 0.56, 180.0},
  88. {1.13, 4.99, 0.56, 180.0},
  89. {1.13, 0.71, 0.56, 0.0},
  90. {1.13, 3.79, 0.56, 180.0},
  91. {1.13, 6.19, 0.56, 180.0},
  92. {0.00, 0.30, 1.10, 0.0}
  93. };
  94.  
  95.  
  96.  
  97. new aWeaponNames[][32] = {
  98. {"Unarmed (Fist)"}, // 0
  99. {"Brass Knuckles"}, // 1
  100. {"Golf Club"}, // 2
  101. {"Night Stick"}, // 3
  102. {"Knife"}, // 4
  103. {"Baseball Bat"}, // 5
  104. {"Shovel"}, // 6
  105. {"Pool Cue"}, // 7
  106. {"Katana"}, // 8
  107. {"Chainsaw"}, // 9
  108. {"Purple Dildo"}, // 10
  109. {"Big White Vibrator"}, // 11
  110. {"Medium White Vibrator"}, // 12
  111. {"Small White Vibrator"}, // 13
  112. {"Flowers"}, // 14
  113. {"Cane"}, // 15
  114. {"Grenade"}, // 16
  115. {"Teargas"}, // 17
  116. {"Molotov"}, // 18
  117. {" "}, // 19
  118. {" "}, // 20
  119. {" "}, // 21
  120. {"Colt 45"}, // 22
  121. {"Colt 45 (Silenced)"}, // 23
  122. {"Desert Eagle"}, // 24
  123. {"Normal Shotgun"}, // 25
  124. {"Sawnoff Shotgun"}, // 26
  125. {"Combat Shotgun"}, // 27
  126. {"Micro Uzi (Mac 10)"}, // 28
  127. {"MP5"}, // 29
  128. {"AK47"}, // 30
  129. {"M4"}, // 31
  130. {"Tec9"}, // 32
  131. {"Country Rifle"}, // 33
  132. {"Sniper Rifle"}, // 34
  133. {"Rocket Launcher"}, // 35
  134. {"Heat-Seeking Rocket Launcher"}, // 36
  135. {"Flamethrower"}, // 37
  136. {"Minigun"}, // 38
  137. {"Satchel Charge"}, // 39
  138. {"Detonator"}, // 40
  139. {"Spray Can"}, // 41
  140. {"Fire Extinguisher"}, // 42
  141. {"Camera"}, // 43
  142. {"Night Vision Goggles"}, // 44
  143. {"Infrared Vision Goggles"}, // 45
  144. {"Parachute"}, // 46
  145. {"Fake Pistol"} // 47
  146. };
  147.  
  148.  
  149. new aDisconnectNames[][16] = {
  150. {"Timeout"}, // 0
  151. {"Left"}, // 1
  152. {"Kicked"} // 2
  153. };
  154.  
  155.  
  156. // Forwards
  157. forward AutoRobbedRecent();
  158. forward BanExplosionone();////////Gets rid of warning
  159. forward BanExplosiontwo();////////Gets rid of warning
  160. forward Float:GetDistanceBetweenPlayers(p1,p2);////////Gets rid of warning
  161. forward PilotOffDutyCriminal();
  162. forward OrderedPlaneRecentlyTimer();
  163. forward UsedAirPortRecentlyTimer();
  164. forward UsedFORecentlyTimer();
  165. forward PlaneDriverTimer();
  166. forward PlanePassengerTimer();
  167. forward UsedAutoRecentlyTimer();
  168. forward RobbedDrugsRecentlyTimer();
  169. forward PlayerRobbedAirPortRecentTimer();
  170. forward AirPortRobbedRecent();
  171. forward AirPortRobbedRecentlyTimer();
  172. forward AutoBahnRobbedRecent();
  173. forward DrugsRobbedRecent();
  174. forward AirPortRobbedRecent();
  175. forward PlayerVarDecrease();
  176. forward announcement();
  177. forward WantedYellow();
  178. forward WantedOrange();
  179. forward WantedRed();
  180. forward WantedInnocent();
  181. forward AntiJetpack();
  182. forward AutoUnjail();
  183. forward VisitReqTimer();
  184. forward EscapeCuffsTime();
  185. forward TimeWorld();
  186. forward CashCheck();
  187. forward TheEffectsOfDrugs();
  188. forward TaxiDriverTimer();
  189. forward TaxiPassengerTimer();
  190. forward PlantC4One();
  191. forward PlantC4Two();
  192. forward PlantC4Three();
  193. forward CaligsC4Explode();
  194. forward CaligsRobRestored();
  195. forward CaligsRobExplosionsone();
  196. forward CaligsRobExplosionstwo();
  197. forward CaligsRobExplosionsthree();
  198. forward JailFood();
  199. forward TrashMissionTimer();
  200. forward copshavevctimer();
  201. forward CopBackUpColour();
  202. forward SouthernCopGate();
  203. forward SouthernCopGateClose();
  204. forward WesternCopGate();
  205. forward WesternCopGateClose();
  206. forward WantedLevelReduce();
  207. forward TaxiDriverOffDutyCriminal();
  208. forward fixedcarrecenttimer();
  209. forward CopRefillWaitTimer();
  210. forward AutoUnjailAlcatraz();
  211. forward commitedcrimerecent();
  212. forward HitExpires();
  213. forward GunsDeliveryTimeLimitTimer();
  214. forward UsedBankRecentlyTimer();
  215. forward TriedToEscapePrisone();
  216. forward StoleCopCarRecentTimer();
  217. forward AskedForWeaponsRecent();
  218. forward InfectedPlayerRecent();
  219. forward RapedPlayerRecent();
  220. forward ATMRobbedRecentlyTimer();
  221. forward BankRobbedRecentlyTimer();
  222. forward PlayerRobbedBankRecentTimer();
  223. forward FourDragsRobbedRecent();
  224. forward RedsandsRobbedRecent();
  225. forward CaligsRobbedRecent();
  226. forward LoginTimer();
  227. forward RobbedPlayerRecent();
  228. forward JailCuffs();
  229. forward HandCuffed();
  230. forward RobbedCasinoRecent();
  231. forward HasChlamydia();
  232. forward HasSalmonella();
  233. forward BeenReported();
  234. forward ReqBkRecentTime();
  235. forward SandEngine();
  236. forward FilledGasRecentDealer();
  237. forward KickPlayer();
  238. forward BanPlayer();
  239. forward SoldDrugsRecentDealer();
  240. forward Tazingtime();
  241. forward Tazing();
  242. forward PlayerRobWait(playerid);
  243. forward weaponanti();
  244. forward cashanti();
  245. forward AskedForFoodRecent();
  246. forward SellFoodRecent();
  247. forward ReqMechRecentTime();
  248. forward ArmyPayDay();
  249. forward PolicePayDay();
  250. forward PilotPayDay();
  251. forward playerbeenrobbedrecent();
  252. forward update_zones();
  253. forward getCheckpointType(playerID);
  254. forward isPlayerInArea(playerID, Float:data[4]);
  255. forward checkpointUpdate();
  256. forward GetPlayerZone(playerid);
  257. forward newcasinorobbedrecent();
  258. forward selectskill();
  259. forward ExplodeShamal(vehicleid);
  260. forward cashdrop();
  261. forward twofoursevenmoveplayer();
  262. forward carrierliftinfotext();
  263. forward destroypickups();
  264. forward robbingstorecountdown();
  265. forward storerobbedrecent();
  266. forward robbingcityhallcountdown();
  267. forward Kidnapped();
  268. forward IsAPlane();
  269. forward robbingdrugscountdown();
  270.  
  271.  
  272.  
  273. // Vehicle Variables
  274. new EchoConnection; // This will hold the connection ID for messages.
  275. new EchoChan[15] = "Enter Channel Name here"; // This is the channel you want your echo to be in, as well as the !say command.
  276. new bool:TimerSet = false; // Prevents the timer from being set multiple times.
  277. forward EventTimer(); // Forward declaration for Event Timer (explained later)
  278. new Connections = 0;
  279. new Float:ShamalPos[MAX_VEHICLES][3];
  280. new sExplode[MAX_VEHICLES], tCount[MAX_VEHICLES];
  281. new BonusCars[MAX_VEHICLES];
  282. new BoughtCars[MAX_VEHICLES];
  283. new BoughtCarsOwner[MAX_VEHICLES];
  284. new SandInEngine[MAX_VEHICLES];
  285. new CarSold[MAX_VEHICLES];
  286. // Other Variables
  287. //new gSpectateID[MAX_PLAYERS];
  288. //new gSpectateType[MAX_PLAYERS];
  289. new OrderedPlaneRecently[MAX_PLAYERS];
  290. new UsedFORecently[MAX_PLAYERS];
  291. new Planepass[MAX_PLAYERS];
  292. new AirPortOwner[MAX_PLAYERS];
  293. new RegularPlayer[MAX_PLAYERS];
  294. new UsedAutoRecently[MAX_PLAYERS];
  295. new RobbedDrugsRecently[MAX_PLAYERS];
  296. new UsedAirPortRecently[MAX_PLAYERS];
  297. new PlayerrobbedAirPortrecent[MAX_PLAYERS];
  298. new RobbedCash[MAX_PLAYERS];
  299. new canselectskill[MAX_PLAYERS];
  300. new gTeam[MAX_PLAYERS];
  301. new Kicking[MAX_PLAYERS];
  302. new Banning[MAX_PLAYERS];
  303. new PlayerRobwwait[MAX_PLAYERS];
  304. new playerCheckpoint[MAX_PLAYERS];
  305. new Jailed[MAX_PLAYERS];
  306. new KidCar[MAX_PLAYERS];
  307. new Tazed[MAX_PLAYERS];
  308. new hastazer[MAX_PLAYERS];
  309. new LawEnforcementRadio[MAX_PLAYERS];
  310. new HasLawEnforcementRadio[MAX_PLAYERS];
  311. new IsSpawned[MAX_PLAYERS];
  312. new ReqBk[MAX_PLAYERS];
  313. new ReqBkRecent[MAX_PLAYERS];
  314. new ReportedRecent[MAX_PLAYERS];
  315. new cuffed[MAX_PLAYERS];
  316. new wantsheal[MAX_PLAYERS];
  317. new wantsmechanic[MAX_PLAYERS];
  318. new RecentAskedMechanic[MAX_PLAYERS];
  319. new RobbedCasRecent[MAX_PLAYERS];
  320. new RobbedPlyRecent[MAX_PLAYERS];
  321. new Chlamydia[MAX_PLAYERS];
  322. new RapedPlyRecent[MAX_PLAYERS];
  323. new AbandonedCopCar[MAX_PLAYERS];
  324. new Wantsfood[MAX_PLAYERS];
  325. new InAndrom[MAX_PLAYERS];
  326. new InShamal[MAX_PLAYERS];
  327. new sellfoodrecently[MAX_PLAYERS];
  328. new Salmonella[MAX_PLAYERS];
  329. new askedforfood[MAX_PLAYERS];
  330. new askedforweapons[MAX_PLAYERS];
  331. new Wantsguns[MAX_PLAYERS];
  332. new OfferedGuns[MAX_PLAYERS];
  333. new wantscure[MAX_PLAYERS];
  334. new filleduprecent[MAX_PLAYERS];
  335. new Taxipass[MAX_PLAYERS];
  336. new Muted[MAX_PLAYERS];
  337. new PlayerDrugs[MAX_PLAYERS];
  338. new wantsdrugs[MAX_PLAYERS];
  339. new solddrugsrecent[MAX_PLAYERS];
  340. new JailTime[MAX_PLAYERS];
  341. new JailTimeServed[MAX_PLAYERS];
  342. new StoleCopCarRecent[MAX_PLAYERS];
  343. new playerondrugs[MAX_PLAYERS];
  344. new playertookdrugs[MAX_PLAYERS];
  345. new HasDrugBag[MAX_PLAYERS];
  346. new InfectedPlyRecent[MAX_PLAYERS];
  347. new triedtoescaperecent[MAX_PLAYERS];
  348. new cannotescapejail[MAX_PLAYERS];
  349. new CuffedTime[MAX_PLAYERS];
  350. new CopWaitBetweenRefills[MAX_PLAYERS];
  351. new Frozen[MAX_PLAYERS];
  352. new VisitReq[MAX_PLAYERS];
  353. new EscapedConvict[MAX_PLAYERS];
  354. new InAlcatraz[MAX_PLAYERS];
  355. new VisitReqExpires[MAX_PLAYERS];
  356. new HasHitOnHim[MAX_PLAYERS];
  357. new PLAYERLIST_authed[MAX_PLAYERS];
  358. new BankCash[MAX_PLAYERS];
  359. new loginchances[MAX_PLAYERS];
  360. new UsedBankRecently[MAX_PLAYERS];
  361. new InBank[MAX_PLAYERS];
  362. new Playerrobbedbankrecent[MAX_PLAYERS];
  363. new InDerby[MAX_PLAYERS];
  364. new commitedcrimerecently[MAX_PLAYERS];
  365. new copshavevc[MAX_PLAYERS];
  366. new fixedcarrecent[MAX_PLAYERS];
  367. new OldCash[MAX_PLAYERS];
  368. new InAdminHQ[MAX_PLAYERS];
  369. new autobahnowner[MAX_PLAYERS];
  370. new drunkplayer[MAX_PLAYERS];
  371. new lastcardrove[MAX_PLAYERS];
  372. new DrugHouseOwner[MAX_PLAYERS];
  373. new InAdminMode[MAX_PLAYERS];
  374. new HasC4[MAX_PLAYERS];
  375. new PlantingC4[MAX_PLAYERS];
  376. new RobbedCaligs[MAX_PLAYERS];
  377. new HasWallet[MAX_PLAYERS];
  378. new TrashDeliveryTime[MAX_PLAYERS];
  379. new TrashDeliveryEarnings[MAX_PLAYERS];
  380. new GunDeliveryLevel[MAX_PLAYERS];
  381. new GunsDeliveryTime[MAX_PLAYERS];
  382. new OnDelMission[MAX_PLAYERS];
  383. new DeliveringGuns[MAX_PLAYERS];
  384. new RobbedBank[MAX_PLAYERS];
  385. new DeliveringCash[MAX_PLAYERS];
  386. new totalcashdelivered[MAX_PLAYERS];
  387. new Driveronduty[MAX_PLAYERS];
  388. new pmsoff[MAX_PLAYERS];
  389. new carwin[MAX_PLAYERS];
  390. new beenrobbedrecently[MAX_PLAYERS];
  391. new canchooseskill[MAX_PLAYERS];
  392. new robberrank[MAX_PLAYERS];
  393. new teamkiller[MAX_PLAYERS];
  394. new innocentkiller[MAX_PLAYERS];
  395. new lowwantedkiller[MAX_PLAYERS];
  396. new BankRobInsurance[MAX_PLAYERS];
  397. new BankCashReturns[MAX_PLAYERS];
  398. new PlayerWeapon[MAX_PLAYERS][13];
  399. new PlayerAmmo[MAX_PLAYERS][13];
  400. new robbingstore[MAX_PLAYERS];
  401. new robbinghall[MAX_PLAYERS];
  402. new CasSecLastPlayerCuffed[MAX_PLAYERS];
  403. new LeftTwoFourSeven[MAX_PLAYERS];
  404. new TimeToMoveTwoFourSeven[MAX_PLAYERS];
  405. new AdminKilled[MAX_PLAYERS];
  406. new HasCried[MAX_PLAYERS];
  407. new isKidnapped[MAX_PLAYERS];
  408. new CanUseArmy[MAX_PLAYERS];
  409. new PlayerAdminLevel[MAX_PLAYERS];
  410. new GotCopBriberecently[MAX_PLAYERS];
  411. new SpamStrings[MAX_PLAYERS];
  412. new KilledHimself[MAX_PLAYERS];
  413. new gPlayerUsingLoopingAnim[MAX_PLAYERS];
  414. new Pilotonduty[MAX_PLAYERS];
  415. new robbingdrugs[MAX_PLAYERS];
  416. new HasDrugHouseKeys[MAX_PLAYERS];
  417. // More Veriables
  418. new AirPortRobbedRecently =0;
  419. new AutoBahnRobbed =0;
  420. new AirPortRobbed =0;
  421. new AutoRobbed =0;
  422. new DrugsRobbed =0;
  423. new drugs = 10000;
  424.  
  425.  
  426.  
  427. new twofoursevenrobbed1 =0;
  428. new twofoursevenrobbed2 =0;
  429. new twofoursevenrobbed3 =0;
  430. new twofoursevenrobbed4 =0;
  431. new twofoursevenrobbed5 =0;
  432. new twofoursevenrobbed6 =0;
  433. new CaligsRobbed =0;
  434. new RedsandsRobbed =0;
  435. new FourDragsRobbed =0;
  436. new newcasinoRobbed =0;
  437. new atmcash1 = 350000; // Amount of Cash in ATM machines on gamemode start
  438. new atmcash2 = 350000; // Amount of Cash in ATM machines on gamemode start
  439. new atmcash3 = 350000; // Amount of Cash in ATM machines on gamemode start
  440. new atmcash4 = 350000; // Amount of Cash in ATM machines on gamemode start
  441. new RegisterLoginDisabled =0;
  442. new atmnetworkrobbedrecent =0;
  443. new cityhallrobbedrecent =0;
  444. new BankRobbedRecently =0;
  445. new caligsbeingrobbed =0;
  446. new DerbyOpen =0;
  447. //new DildoOpen =0;
  448. new GateSouthern =0; // closed
  449. new GateWestern =0; // closed
  450. new gametime =12;
  451. new gameday =1;
  452. new gameweek =1;
  453. // More Variables
  454. new bigassplane;
  455. new oscore;
  456. new alkatrazmap;
  457. new carriermap;
  458. new bombdoor;
  459. new westcopgate;
  460. new southcopgate;
  461. new carrierlift;
  462. // New Variables
  463. new kidnapTimer[MAX_PLAYERS];
  464. new gotSissors[MAX_PLAYERS];
  465. new gotRope[MAX_PLAYERS];
  466. new HasKidnapped[MAX_PLAYERS];
  467. // Text Draws
  468. //new Text:txtWebAddress;
  469. //new Text:txtScriptVers;
  470. new Text:txtTypeSkill;
  471.  
  472. //
  473. new hydra1;
  474. new hydra2;
  475. new hydra3;
  476. new hunter1;
  477. new hunter2;
  478. new hunter3;
  479. //
  480. new adminSultan;
  481. new adminElegy;
  482. new adminTurismo;
  483. new adminUranus;
  484. new PAC1;
  485. new PAC2;
  486. new PAC3;
  487. new PAC4;
  488. new mav1;
  489. new mav2;
  490. new mav3;
  491. new mav4;
  492. new mav5;
  493. new mav6;
  494. new mav7;
  495. new mav8;
  496. new mav9;
  497. //
  498. //new LoanSharkCar;
  499. new AutoBahnCar1;
  500. new AutoBahnCar2;
  501. //
  502. // For DCMD
  503. #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
  504. #define COLOR_SYSTEM 0x9ACD32AA
  505.  
  506. stock SystemMsg(playerid,msg[]) {
  507. if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) {
  508. SendClientMessage(playerid,COLOR_SYSTEM,msg);
  509. }
  510. return 1;
  511. }
  512.  
  513.  
  514. // Bonus SULTAN Random spawns
  515. new Float:BonusSULTANSpawn[5][4] =
  516. {
  517. {2076.1135,1326.5652,10.3769,181.6333},
  518. {2245.3894,2046.1937,10.5257,270.6115},
  519. {2534.6006,2021.1525,10.5252,90.6090},
  520. {1633.4686,1268.3292,10.5170,178.6508},
  521. {-2524.7595,2356.5090,4.6901,270.5555}
  522. };
  523.  
  524. //{-2524.7595,2356.5090,4.6901,270.5555}
  525. // Bonus NRG Random spawns
  526. new Float:BonusNRGSpawn[9][4] =
  527. {
  528. {566.3928,824.4446,-22.5606,280.3809},
  529. {-78.8893,1110.5144,19.3145,271.5569},
  530. {-125.9886,2256.1694,27.7319,131.6289},
  531. {-273.1327,2656.1860,62.1982,265.5641},
  532. {1416.1934,2783.1809,10.3855,359.1373},
  533. {2357.7241,2965.8831,30.8918,336.9967},
  534. {2310.1780,1305.1034,67.0384,90.3563},
  535. {2664.0305,746.5262,14.3100,86.5391},
  536. {1205.7609,668.1885,10.1378,80.7610}
  537. };
  538. // Arrested random jail spawns
  539. new Float:ArrestedSpawn[3][4] =
  540. {
  541. {198.1349,162.0804,1003.0300,24.3831},
  542. {198.1261,174.6805,1003.0234,209.8438},
  543. {193.7771,175.3129,1003.0234,337.1648}
  544. };
  545. // Alcatraz random jail spawns
  546. new Float:AlcatrazArrestedSpawn[3][4] =
  547. {
  548. {219.5959,110.5754,999.0156,329.5980},
  549. {223.3139,111.6365,999.0156,181.6979},
  550. {227.4478,110.4877,999.0156,335.7287}
  551. };
  552.  
  553.  
  554. IsKeyJustDown(key, newkeys, oldkeys)
  555. {
  556. if((newkeys & key) && !(oldkeys & key)) return 1;
  557. return 0;
  558. }
  559.  
  560. new VehileIDPermessed[] =
  561. {
  562. 400,411,412,560,405,401,402,
  563. 422,404,426,429,562,603,444,
  564. 602,581,589,477,434,458,558,
  565. 480,561,517
  566. };
  567. // Random Civilian Spawns
  568. new Float:SpawnPoints[20][4] =
  569. {
  570. {2352.9812,1001.9236,10.8203,87.6178},
  571. {2417.9851,1114.8572,10.8125,270.2919},
  572. {2445.8699,1279.4567,10.8061,182.7706},
  573. {2490.9990,1433.9799,10.8203,205.3045},
  574. {2443.8264,1654.3289,10.8203,227.9582},
  575. {1697.6488,1456.3223,10.7665,275.0996},
  576. {1891.6893,2314.0139,10.8203,277.7439},
  577. {1947.0715,2437.2217,10.8203,205.5250},
  578. {2092.6616,2479.8145,10.8203,173.1116},
  579. {2091.4067,2070.9500,10.8203,268.8218},
  580. {2185.9917,2001.2933,10.8203,88.6423},
  581. {2031.9304,1918.0876,12.3359,270.1340},
  582. {1952.1302,2655.0112,10.8203,180.1662},
  583. {994.6838,1985.7472,11.0389,272.6347},
  584. {955.9548,1730.4478,8.6484,272.9977},
  585. {-88.9428,1362.8306,10.2734,271.5778},
  586. {-97.2324,1088.1873,19.7500,353.0189},
  587. {-306.0002,1303.2164,53.6584,307.6807},
  588. {-333.2935,1531.8217,75.3594,181.2123},
  589. {-26.6790,2345.7227,24.1406,176.3719}
  590. };
  591.  
  592. // CheckPoint Define, (some are not used but I couldnt be bothered taking them out)
  593. #define CP_STATION1 0
  594. #define CP_STATION2 1
  595. #define CP_STATION3 2
  596. #define CP_STATION4 3
  597. #define CP_STATION5 4
  598. #define CP_STATION6 5
  599. #define CP_STATION7 6
  600. #define CP_STATION8 7
  601. #define CP_STATION9 8
  602. #define CP_STATION10 9
  603. #define CP_STATION11 10
  604. #define CP_STATION12 11
  605. #define CP_STATION13 12
  606. #define CP_STATION14 13
  607. #define CP_STATION15 14
  608. #define CP_STATION16 15
  609. #define CP_AIRCOPS1 16
  610. #define CP_LVAPORT1 17
  611. #define CP_LVADMIN1 18
  612. #define CP_LVCARSELL 19
  613. #define CP_LVADMINEX 20
  614. #define CP_FOURDRAGS 21
  615. #define CP_CALIGS 22
  616. #define CP_REDSANDS 23
  617. #define CP_HOSPLV 24
  618. #define CP_BANCPCAR 25
  619. #define CP_LVDRGHSE 26
  620. #define CP_ATM247 27
  621. #define CP_ATMAMUSTH 28
  622. #define CP_ATMWHITE 29
  623. #define CP_ATMROCEST 30
  624. #define CP_BANKMAIN 31
  625. #define CP_BANKMAINX 32
  626. #define CP_BANKBUSNES 33
  627. #define CP_LVPDARMSDE 34
  628. #define CP_ALKATRAZ1 35
  629. #define CP_ALKATRAZ2 36
  630. #define CP_BLKFSTAD 37
  631. #define CP_BLKFSTADX 38
  632. #define CP_LVPDCCAM3 39
  633. #define CP_LVPDCCAM2 40
  634. #define CP_LVPDCCAM1 41
  635. #define CP_ADMINBAR 42
  636. #define CP_PDGIVEUP 43
  637. #define CP_8BALLSUP 44
  638. #define CP_CALIGPLNT 45
  639. #define CP_247CP1 46
  640. #define CP_TRASHPICKUP1 47
  641. #define CP_TRASHPICKUP2 48
  642. #define CP_TRASHPICKUP3 49
  643. #define CP_TRASHPICKUP4 50
  644. #define CP_TRASHPICKUP5 51
  645. #define CP_TRASHPICKUP6 52
  646. #define CP_TRASHPICKUP7 53
  647. #define CP_TRASHPICKUP8 54
  648. #define CP_TRASHPICKUP9 55
  649. #define CP_TRASHPICKUP10 56
  650. #define CP_TRASHPICKUP11 57
  651. #define CP_GUNDELIVERY1 58
  652. #define CP_GUNDELIVERY2 59
  653. #define CP_GUNDELIVERY3 60
  654. #define CP_GUNDELIVERY4 61
  655. #define CP_GUNDELIVERY5 62
  656. #define CP_GUNDELIVERY6 63
  657. #define CP_GUNDELIVERY7 64
  658. #define CP_GUNDELIVERY8 65
  659. #define CP_GUNDELIVERY9 66
  660. #define CP_GUNDELIVERY10 67
  661. #define CP_GUNDELIVERY11 68
  662. #define CP_GUNDELIVERY12 69
  663. #define CP_GUNDELIVERY13 70
  664. #define CP_GUNDELIVERY14 71
  665. #define CP_WINCARADMINHQ 72
  666. #define CP_CASHDELPICKUP 73
  667. #define CP_CASHDELATM1 74
  668. #define CP_CASHDELATM2 75
  669. #define CP_CASHDELATM3 76
  670. #define CP_CASHDELATM4 77
  671. #define CP_CASHDELEND 78
  672. #define CP_BMUKCASENTR 79
  673. #define CP_REDSANDSEXIT 80
  674. #define CP_CITYHALLENTER 81
  675. #define CP_CITYHALLMAIN 82
  676. #define CP_247REDSANDS 83
  677. #define CP_247EMERALD 84
  678. #define CP_247SEASTLV 85
  679. #define CP_247SOUTHLV 86
  680. #define CP_247BONECOUN 87
  681. #define CP_247SPINYBED 88
  682. #define CP_ROBCITYHALL 89
  683. #define CP_BIGASSPLANE 90
  684. #define CP_ADHQ 91
  685. #define CP_BAR 92
  686. #define CP_LOANSHARK 93
  687. #define CP_LOANSHARKMAIN 94
  688. #define CP_LOANSHARKEXIT 95
  689. #define CP_EXITLOANSHARK 94
  690. #define CP_ROBAB 95
  691. #define CP_ADHQEXIT 96
  692.  
  693. #define MAX_POINTS 96
  694.  
  695.  
  696. new Float:checkCoords[MAX_POINTS][4] = {
  697. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  698. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  699. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  700. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  701. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  702. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  703. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  704. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  705. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  706. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  707. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  708. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  709. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  710. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  711. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  712. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  713. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Not Used
  714. {1658.02, 1279.851, 1771.26, 1705.338}, // Las Venturas Airport Teriminal
  715. {2059.8872, 1202.8521, 2120.8960, 1302.8754}, // RPL
  716. {2040.695, 1395.893, 2204.698, 1492.594}, // AutoBahn Selling Checkpoint
  717. {-2646.0603, 1402.8860, -2634.2737, 1411.6195}, // RPL Exit
  718. {1926.6289, 1004.3832, 2017.2037, 1031.9709}, // Four Dragons Casino robbing point
  719. {2141.2183, 1629.5417, 2147.1643, 1642.7115}, // Caligulas Vault Rob checkpoint
  720. {1137.0602, -11.2906, 1142.6293, 3.0941}, // Redsands Robbing point
  721. {1533.065, 1713.074, 1654.115, 1879.401}, // LV hospital
  722. {2657.661, 575.8629, 2813.854, 699.641}, // Abandoned cop car
  723. {2329.653, 633.8839, 2478.038, 800.2107}, // LV Drug house
  724. {2126.601, 1937.422, 2224.223, 2018.651}, // ATM at 24/7 at Starfish casino
  725. {2181.269, 927.8569, 2243.747, 997.4821}, // ATM at Ammunation south LV
  726. {1068.388, 2026.388, 1181.628, 2119.221}, // Whitewood Estates atm
  727. {2466.323, 2223.659, 2599.088, 2347.437}, // ATM Roca escalante
  728. {2306.224, 1527.407, 2407.75, 1577.692}, // LV City Bank entry
  729. {2304.9456, -17.3404, 2313.7649, -13.2493}, // LV City Bank exit
  730. {2314.5757, -17.2502, 2317.1465, -0.1237}, // LV City bank main business
  731. {2221.0667, 2448.5840, 2260.7422, 2487.7661}, // LVPD Weapons refill
  732. {3539.1328, 382.3327, 4085.4063, 560.8972}, // Alcatraz Entry
  733. {240.1793, 107.4361, 252.6249, 126.7327}, // Alcatraz Exit
  734. {998.1006, 1384.289, 1201.153, 1805.908}, // blackfield stadium entry
  735. {-1426.2727, 928.1482, -1421.1447, 938.1354}, // blackfield stadium exit
  736. {191.9815, 177.5239, 195.3998, 180.5036}, // lvpd cell camera 3
  737. {196.1084, 177.4886, 200.0713, 180.7824}, // lvpd cell camera 2
  738. {195.9898, 156.5928, 200.1871, 159.8862}, // lvpd cell camera 1
  739. {965.4654, -49.4240, 971.9686, -43.0032}, // Admin HQ Bar
  740. {228.7872, 141.2361, 249.2870, 168.5767}, // lvpd hand yourself in
  741. {2002.7880, 2317.5369, 2016.6089, 2332.7124}, // 8 ball c4 supply
  742. {2129.9563, 1607.1721, 2158.4114, 1625.4816}, // caligs plant bomb
  743. {-35.3856, -57.9658, -17.7096, -49.0101}, // 24 7 cpoint
  744. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 1
  745. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 2
  746. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 3
  747. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 4
  748. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 5
  749. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 6
  750. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 7
  751. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 8
  752. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 9
  753. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 10
  754. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // Trash Pickup 11
  755. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 1 pick
  756. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission1 drop
  757. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 2 pick
  758. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 2 drop
  759. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 3 pick
  760. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 3 drop
  761. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 4 pick
  762. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 4 drop
  763. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 5 pick
  764. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 5 drop
  765. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 6 pick
  766. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 6 drop
  767. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 7 pick
  768. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // gundel mission 7 drop
  769. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // wincaradminhq
  770. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash pickup
  771. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm1
  772. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm2
  773. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm3
  774. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel cash atm4
  775. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // cashdel van back to base
  776. {2040.695, 1306.927, 2110.982, 1357.212}, // extra casino entry on the strip
  777. {1130.4017, -11.2694,1135.5321, -3.8149}, // redsands new exit
  778. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // city hall lv entry
  779. {4446.9814, 1987.1090, 4453.0605, 1992.0865}, // city hall main
  780. {1562.7677, 2169.2029, 1616.5474, 2242.2063}, // 247 redsands
  781. {2158.1504, 2448.4175, 2215.2781, 2495.0105}, // 247 emerald
  782. {2618.1211, 1062.8726, 2657.2705, 1142.5107}, // 247 south east lv
  783. {2097.0437, 883.9355, 2137.2776, 963.3201}, // south lv
  784. {580.282, 1670.526, 689.6177, 1763.359}, // 247 bone county
  785. {2115.3542, 2708.7834, 2172.6797, 2777.5857}, // 247 spiny bed
  786. {351.3314, 196.9337, 368.2675,217.0970}, // robcityhall
  787. {311.4730, 975.7504, 320.0443,1038.1334}, // bigassplane
  788. {-2300.9724, 2200.7102, -2200.5178, 2400.7761}, // adhq
  789. {2321.2236,-1016.6204,2328.2024,-1016.5899},// ADHQ Bar
  790. {1430.0867,1890.1573,1500.4915,1950.5049}, // LoanShark
  791. {200.0041,1287.3019, 240.6371,1291.6040}, // Loan Shark inside
  792. {-2082.1331,845.2881,-2014.3762,902.5603} // Exited Loan Shark
  793. // min x, min y, max x, , max y
  794. };
  795.  
  796.  
  797. new Float:checkpoints[MAX_POINTS][4] = {
  798. {2109.2126, 917.5845, 10.8203, 5.0}, // Not Used
  799. {2640.1831, 1103.9224, 10.8203, 5.0}, // Not Used
  800. {611.8934,1694.7921,6.7193,5.0}, // Not Used
  801. {2256.1350,538.3187,-0.6582,10.0}, // Not Used
  802. {-2413.7427,975.9317,45.0031,5.0}, // Not Used
  803. {-1672.3597,414.2950,6.8866,5.0}, // Not Used
  804. {-2244.1365,-2560.6294,31.6276,5.0}, // Not Used
  805. {-1603.0166,-2709.3589,48.2419,5.0}, // Not Used
  806. {1939.3275,-1767.6813,13.2787,5.0}, // Not Used
  807. {-94.7651,-1174.8079,1.9979,5.0}, // Not Used
  808. {1381.6699,462.6467,19.8540,5.0}, // Not Used
  809. {657.8167,-559.6507,16.0630,5.0}, // Not Used
  810. {-1478.2916,1862.8318,32.3617,5.0}, // Not Used
  811. {2147.3054,2744.9377,10.5263,5.0}, // Not Used
  812. {2204.9602,2480.3494,10.5278,5.0}, // Not Used
  813. {1289.5997,1395.4048,10.8203,15.0}, // Not Used
  814. {1319.7441,1253.7612,10.8203,5.0}, // Not Used
  815. {1674.9529,1448.5413,10.7888,5.0},
  816. {2085.2048,1263.1144,10.8203,5.0},
  817. {2169.4319,1416.0619,10.8203,4.0},
  818. {-2635.6731,1409.0873,906.4647,4.0},
  819. {1940.3857,1017.9068,992.4688,2.5},
  820. {2144.1042,1641.3715,993.5761,2.0},
  821. {1142.1212,1.1375,1000.6797,2.5},
  822. {1606.8721,1817.9978,10.8203,2.5},
  823. {2788.3975,610.5909,10.8984,2.5},
  824. {2449.3792,713.8478,11.4683,2.5},
  825. {2193.1570,1974.6671,12.2894,1.5},
  826. {2232.1321,959.2865,10.8203,1.5},
  827. {1138.4005,2088.2024,11.0625,1.5},
  828. {2540.5017,2266.1240,10.8203,1.5},
  829. {2355.5588,1544.2212,10.8203,3.5},
  830. {2306.5139,-15.4770,26.7496,2.5},
  831. {2316.2385,-7.2282,26.7422,2.5},
  832. {2234.7769,2458.9241,-7.4531,5.0},
  833. {3795.7554,460.2423,33.9047,5.0},
  834. {245.9921,108.6929,1003.2188,2.0},
  835. {1099.5044,1601.8444,12.5469,5.0},
  836. {-1424.0109,928.2040,1036.3948,2.0},
  837. {193.8661,179.1723,1003.0234,1.0},
  838. {198.0848,179.2339,1003.0303,1.0},
  839. {198.0195,158.5698,1003.0234,1.0},
  840. {968.8552,-46.3709,1001.1172,2.0},
  841. {236.0950,166.4925,1003.0300,3.0},
  842. {2003.6357,2319.0925,10.8203,4.0},
  843. {2144.1226,1624.3165,993.6882,1.0},
  844. {-22.5446,-55.6001,1003.5469,3.0},
  845. {2581.4673,2148.2505,10.8203,5.0},
  846. {2062.6243,2238.9121,10.1745,5.0},
  847. {2297.3096,1567.2032,10.8203,5.0},
  848. {2121.1802,1232.1056,10.8203,5.0},
  849. {2198.5732,937.0938,10.8203,5.0},
  850. {2049.3103,658.2263,11.3006,5.0},
  851. {1654.0845,1080.9868,10.8203,5.0},
  852. {1286.5367,1252.1665,10.8203,5.0},
  853. {824.2954,856.6764,12.0343,5.0},
  854. {-1689.0303,683.4731,21.7940,5.0},
  855. {-1808.2322,-1649.6141,23.6609,5.0},
  856. {2197.8586,938.6444,10.8203,5.0},
  857. {1364.3669,-1282.7325,13.5469,5.0},
  858. {1423.3719,-1292.6678,13.5592,5.0},
  859. {2385.1118,-2009.9146,13.5537,5.0},
  860. {-61.5190,-1112.0059,1.0781,5.0},
  861. {-2096.9539,-2459.4238,30.6250,5.0},
  862. {-2628.5117,211.4568,4.5494,5.0},
  863. {-1591.4674,716.4246,-5.2422,5.0},
  864. {-1247.3684,455.1923,7.1875,5.0},
  865. {275.5387,1957.8539,17.6406,5.0},
  866. {219.3790,1862.9003,13.1470,5.0},
  867. {1271.0192,1324.8730,10.8130,5.0},
  868. {1272.1927,1360.7340,10.8130,5.0},
  869. {2293.2915,2468.5918,10.8203,5.0},
  870. {2090.0583,1314.2783,10.8203,4.0},
  871. {2355.3962,1603.7089,10.8203,5.0},
  872. {1135.3522,2087.9800,11.0625,5.0},
  873. {2537.2380,2266.7944,10.8203,5.0},
  874. {2193.0132,1968.3802,10.8203,5.0},
  875. {2229.6580,959.3417,10.8203,5.0},
  876. {2378.7620,1609.4525,10.6719,5.0},
  877. {2085.3196,1333.9230,10.8750,5.0},
  878. {1132.9811,-12.0000,1000.6797,2.0},
  879. {2446.1379,2376.3525,12.1635,5.0},
  880. {361.8299,173.5716,1008.3828,2.5},
  881. {1599.9943,2220.9233,11.0625,4.0},
  882. {2189.4114,2469.1099,11.2422,4.0},
  883. {2637.3494,1127.8949,11.1797,4.0},
  884. {2117.3906,898.2151,11.1797,4.0},
  885. {662.1166,1717.9940,7.1875,4.0},
  886. {2151.1006,2735.6091,11.1763,4.0},
  887. {356.7246,215.6280,1008.3828,3.0},
  888. {315.9641,1033.0465,1946.4037,4.5},
  889. {-2237.7969,2353.4224,4.9804,3.0},
  890. {2324.4875,-1014.3350,1050.2178,3.0},
  891. {1464.9091,1920.2568,11.4609,3.0},
  892. {225.5270,1292.9052,1082.1406,2.0},
  893. {-2059.1699,894.0970,60.4871,5.0}
  894. };
  895.  
  896. #define MAX_PLAYERS_ 40
  897.  
  898. // ZONES
  899. enum zoneinfo {
  900. zone_name[27],
  901. Float:zone_minx,
  902. Float:zone_miny,
  903. Float:zone_minz,
  904. Float:zone_maxx,
  905. Float:zone_maxy,
  906. Float:zone_maxz
  907. }
  908.  
  909. // Makabos zones script
  910. new Float:zones[][zoneinfo] = {
  911. { "LV Drug House (Int)", 2363.7732, -1135.5873, 1050.8750, 2366.7190, -1125.8083, 1050.8826},
  912. { "Alcatraz", 3539.1328, 382.3327, -5.0000, 4085.4063, 560.8972, 500.5000},
  913. { "Alcatraz (Int)", 240.3424, 107.4418, 998.0156, 260.3839, 119.8392, 1008.8303},
  914. { "Alcatraz (Int)", 213.9791, 107.4416, 999.0100, 229.0557, 116.0217, 999.0180},
  915. { "Lv City Bank", 2333.6050, 1538.5920, 9.0184, 2420.1487, 1607.1777, 500.5000},
  916. { "Lv City Bank (Int)", 2306.0767, -17.3174, 26.5496, 2317.1667, -0.1374, 26.7696},
  917. { "Regular Players Lounge", 2082.1758, 1203.3190, 6.0203, 2125.7268, 1278.4438, 500.5000},
  918. { "BMUK's Casino", 2078.8538, 1306.0410, 9.0203, 2114.8035, 1364.4226, 500.5000},
  919. { "AutoBahn", 2087.7778, 1384.0966, 9.0203, 2203.1501, 1440.7141, 500.5000},
  920. { "AutoBahn Lane", 2184.8328, 1447.0826, 9.0203, 2195.3687, 1522.7858, 500.5000},
  921. { "LV MultiStory", 2257.6921, 1383.5364, 9.0203, 2357.7520, 1523.2224, 500.5000},
  922. { "LV Pyramid", 2237.4563, 1205.2041, 9.0203, 2416.4814, 1362.8427, 500.5000},
  923. { "LV City Hall", 2354.4023, 1079.9636, 9.0203, 2420.8870, 1186.4084, 500.5000},
  924. { "LV Transfender", 2352.2302, 956.4175, 9.0203, 2421.1843, 1066.9310, 500.5000},
  925. { "SE LV Gas Station", 2617.8508, 1062.8749, 9.0203, 2657.1074, 1142.5132, 500.5000},
  926. { "Casino Security", 1878.7798, 944.3989, 9.0203, 1923.6537, 966.3892, 500.5000},
  927. { "Four Dragons Casino", 1878.7661, 970.0151, 9.0203, 2035.9320, 1082.8287, 500.5000},
  928. { "The Strip [South]", 2037.4653, 863.7079, 4.0203, 2076.8149, 1702.8253, 500.5000},
  929. { "Caligulas Casino", 2087.7002, 1543.7769, 9.8203, 2317.1528, 1763.7645, 500.5000},
  930. { "Admin HQ (Int)", 956.4382, -61.9423, 1000.1172, 964.4373, -43.0153, 1003.5865},
  931. { "Admin HQ (Int) Bar", 965.8417, -49.4062, 1000.1172, 971.5218, -43.1668, 1003.5865},
  932. { "Bedroom", 943.2505, -48.6990, 1000.1172, 948.3954, -40.9521, 1003.5865},
  933. { "LVPD HQ", 2234.2024, 2419.3340, -8.4531, 2360.7454, 2507.3718, 500.5000},
  934. { "LV Aircraft Carrier", 2782.5579, 441.7090, -5.0000, 3166.1729, 520.0420, 500.5000},
  935. { "24/7 store", -36.6344, -57.9175, 1003.3469, -17.3938, -48.9887, 1003.8469},
  936. { "The Big Ear", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
  937. { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
  938. { "Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
  939. { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
  940. { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
  941. { "Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
  942. { "Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
  943. { "Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
  944. { "Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
  945. { "Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
  946. { "Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
  947. { "Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
  948. { "Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
  949. { "Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
  950. { "Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
  951. { "Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
  952. { "Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
  953. { "Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
  954. { "Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
  955. { "Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
  956. { "Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
  957. { "Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
  958. { "Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
  959. { "Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
  960. { "Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
  961. { "Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
  962. { "Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
  963. { "Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
  964. { "Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
  965. { "Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
  966. { "Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
  967. { "Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
  968. { "Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
  969. { "Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
  970. { "Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
  971. { "Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
  972. { "Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
  973. { "Class Selection", 942.5793, 0.2095, 1000.9295, 947.4127, 4.8616, 1000.9299},
  974. { "Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
  975. { "Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
  976. { "Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
  977. { "Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
  978. { "Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
  979. { "Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
  980. { "Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
  981. { "Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
  982. { "Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
  983. { "Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
  984. { "Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
  985. { "Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
  986. { "Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
  987. { "Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
  988. { "Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
  989. { "Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
  990. { "Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
  991. { "Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
  992. { "Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
  993. { "East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
  994. { "East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
  995. { "East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
  996. { "East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
  997. { "East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
  998. { "East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
  999. { "East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
  1000. { "East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
  1001. { "East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
  1002. { "East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
  1003. { "East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
  1004. { "Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
  1005. { "Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
  1006. { "Easter Bay Airport", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
  1007. { "Easter Bay Airport", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
  1008. { "Easter Bay Airport", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
  1009. { "Easter Bay Airport", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
  1010. { "Easter Bay Airport", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
  1011. { "Easter Bay Airport", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
  1012. { "Easter Bay Airport", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
  1013. { "Easter Bay Airport", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
  1014. { "Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
  1015. { "Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
  1016. { "El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
  1017. { "El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
  1018. { "El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
  1019. { "El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
  1020. { "El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
  1021. { "El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
  1022. { "Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
  1023. { "Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
  1024. { "Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
  1025. { "Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
  1026. { "Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
  1027. { "Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
  1028. { "Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
  1029. { "Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
  1030. { "Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
  1031. { "Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
  1032. { "Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
  1033. { "Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
  1034. { "Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
  1035. { "Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
  1036. { "Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
  1037. { "Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
  1038. { "Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
  1039. { "Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
  1040. { "Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
  1041. { "Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
  1042. { "Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
  1043. { "Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
  1044. { "Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
  1045. { "Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
  1046. { "Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
  1047. { "Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
  1048. { "Garver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
  1049. { "Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
  1050. { "Glen Park", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
  1051. { "Glen Park", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
  1052. { "Glen Park", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
  1053. { "Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
  1054. { "Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
  1055. { "Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
  1056. { "Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
  1057. { "Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
  1058. { "Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
  1059. { "Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
  1060. { "Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
  1061. { "Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
  1062. { "Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
  1063. { "Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
  1064. { "Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
  1065. { "Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
  1066. { "Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
  1067. { "Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
  1068. { "Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
  1069. { "Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
  1070. { "Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
  1071. { "Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
  1072. { "Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
  1073. { "Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
  1074. { "Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
  1075. { "Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
  1076. { "Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
  1077. { "Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
  1078. { "Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
  1079. { "Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
  1080. { "Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
  1081. { "Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
  1082. { "Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
  1083. { "Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
  1084. { "Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
  1085. { "Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
  1086. { "Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
  1087. { "Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
  1088. { "Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
  1089. { "Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
  1090. { "Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
  1091. { "Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
  1092. { "K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
  1093. { "Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
  1094. { "Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
  1095. { "Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
  1096. { "King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
  1097. { "King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
  1098. { "King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
  1099. { "LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
  1100. { "LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
  1101. { "LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
  1102. { "LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
  1103. { "LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
  1104. { "Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
  1105. { "Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
  1106. { "Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
  1107. { "Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
  1108. { "Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
  1109. { "Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
  1110. { "Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
  1111. { "Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
  1112. { "Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
  1113. { "Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
  1114. { "Las Venturas Airport", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
  1115. { "Las Venturas Airport", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
  1116. { "Las Venturas Airport", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
  1117. { "Las Venturas Airport", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
  1118. { "LVPD (Int)", 228.8148, 140.0497, 1003.0000, 248.7047, 169.0779, 1003.0400},
  1119. { "LVPD (Int)", 188.3310, 156.6014, 1003.0000, 203.9910, 180.7771, 1003.0400},
  1120. { "Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
  1121. { "Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
  1122. { "Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
  1123. { "Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
  1124. { "Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
  1125. { "Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
  1126. { "Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
  1127. { "Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
  1128. { "Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
  1129. { "Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
  1130. { "Los Santos International", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
  1131. { "Los Santos International", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
  1132. { "Los Santos International", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
  1133. { "Los Santos International", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
  1134. { "Los Santos International", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
  1135. { "Los Santos International", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
  1136. { "Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
  1137. { "Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
  1138. { "Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
  1139. { "Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
  1140. { "Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
  1141. { "Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
  1142. { "Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
  1143. { "Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
  1144. { "Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
  1145. { "Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
  1146. { "Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
  1147. { "Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
  1148. { "Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
  1149. { "Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
  1150. { "Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
  1151. { "Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
  1152. { "Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
  1153. { "Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
  1154. { "Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
  1155. { "Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
  1156. { "Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
  1157. { "Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
  1158. { "Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
  1159. { "Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
  1160. { "Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
  1161. { "Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
  1162. { "Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
  1163. { "Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
  1164. { "North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
  1165. { "Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
  1166. { "Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
  1167. { "Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
  1168. { "Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
  1169. { "Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
  1170. { "Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
  1171. { "Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
  1172. { "Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
  1173. { "Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
  1174. { "Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
  1175. { "Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
  1176. { "Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
  1177. { "Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
  1178. { "Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
  1179. { "Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
  1180. { "Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
  1181. { "Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
  1182. { "Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
  1183. { "Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
  1184. { "Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
  1185. { "Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
  1186. { "Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
  1187. { "Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
  1188. { "Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
  1189. { "Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
  1190. { "Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
  1191. { "Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
  1192. { "Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
  1193. { "Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
  1194. { "Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
  1195. { "Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
  1196. { "Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
  1197. { "Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
  1198. { "Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
  1199. { "Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
  1200. { "Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
  1201. { "Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
  1202. { "Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
  1203. { "Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
  1204. { "Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
  1205. { "Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
  1206. { "Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
  1207. { "Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
  1208. { "Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
  1209. { "Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
  1210. { "Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
  1211. { "Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
  1212. { "Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
  1213. { "Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
  1214. { "Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
  1215. { "Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
  1216. { "Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
  1217. { "Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
  1218. { "Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
  1219. { "Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
  1220. { "Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
  1221. { "Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
  1222. { "Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
  1223. { "Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
  1224. { "Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
  1225. { "Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
  1226. { "Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
  1227. { "Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
  1228. { "Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
  1229. { "San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
  1230. { "Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
  1231. { "Santa Maria Beach", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
  1232. { "Santa Maria Beach", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
  1233. { "Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
  1234. { "Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
  1235. { "Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
  1236. { "Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
  1237. { "Spinybed", 2121.40, 2663.10, -89.00, 2498.20, 2861.50, 110.90},
  1238. { "Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
  1239. { "Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
  1240. { "Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
  1241. { "Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
  1242. { "Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
  1243. { "Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
  1244. { "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
  1245. { "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
  1246. { "The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
  1247. { "The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
  1248. { "The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
  1249. { "The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
  1250. { "The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
  1251. { "Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
  1252. { "Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
  1253. { "Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
  1254. { "Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
  1255. { "Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
  1256. { "Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
  1257. { "Verona Beach", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
  1258. { "Verona Beach", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
  1259. { "Verona Beach", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
  1260. { "Verona Beach", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
  1261. { "Verona Beach", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
  1262. { "Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
  1263. { "Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
  1264. { "Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
  1265. { "Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
  1266. { "Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
  1267. { "Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
  1268. { "Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
  1269. { "Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
  1270. { "Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
  1271. { "Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
  1272. { "Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
  1273. { "Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
  1274. { "Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
  1275. { "Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
  1276. { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
  1277. { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
  1278. { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
  1279. { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
  1280. { "San Fierro", -2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00},
  1281. { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
  1282. { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}};
  1283.  
  1284.  
  1285. new zoneupdates[MAX_PLAYERS_];
  1286. new player_zone[MAX_PLAYERS_];
  1287. new zoneupdate;
  1288. public update_zones() {
  1289. new line1[10];
  1290. new line2[10];
  1291.  
  1292. for(new i=0; i<MAX_PLAYERS_; i++) {
  1293. if(IsPlayerConnected(i) && zoneupdates[i] == 1) {
  1294. if(IsPlayerInZone(i,player_zone[i])) { }
  1295. else {
  1296.  
  1297. new player_zone_before;
  1298. player_zone_before = player_zone[i];
  1299. player_zone[i] = -1;
  1300.  
  1301.  
  1302. for(new j=0; j<sizeof(zones);j++) {
  1303. if(IsPlayerInZone(i,j) && player_zone[i] == -1) {
  1304.  
  1305. if(player_zone_before == -1) GameTextForPlayer(i,zones[j][zone_name],1500,1);
  1306. else if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0) GameTextForPlayer(i,zones[j][zone_name],1500,1);
  1307.  
  1308. player_zone[i] = j;
  1309. format(line1,10,"p%dzone",i);
  1310. format(line2,10,"%d",j);
  1311. PropertySet(line1,line2);
  1312.  
  1313.  
  1314. }
  1315. }
  1316.  
  1317.  
  1318.  
  1319. if(player_zone[i] == -1) player_zone[i] = player_zone_before;
  1320. }
  1321.  
  1322.  
  1323. }
  1324. }
  1325.  
  1326. }
  1327.  
  1328. IsPlayerInZone(playerid, zoneid) {
  1329. if(zoneid == -1) return 0;
  1330. new Float:x, Float:y, Float:z;
  1331. GetPlayerPos(playerid,x,y,z);
  1332. if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx]
  1333. && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy]
  1334. && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz]
  1335. && z < 1200.0000) return 1;
  1336. return 0;
  1337. }
  1338.  
  1339. new checkpointType[MAX_POINTS] = {
  1340. CP_STATION1,
  1341. CP_STATION2,
  1342. CP_STATION3,
  1343. CP_STATION4,
  1344. CP_STATION5,
  1345. CP_STATION6,
  1346. CP_STATION7,
  1347. CP_STATION8,
  1348. CP_STATION9,
  1349. CP_STATION10,
  1350. CP_STATION11,
  1351. CP_STATION12,
  1352. CP_STATION13,
  1353. CP_STATION14,
  1354. CP_STATION15,
  1355. CP_STATION16,
  1356. CP_AIRCOPS1,
  1357. CP_LVAPORT1,
  1358. CP_LVADMIN1,
  1359. CP_LVCARSELL,
  1360. CP_LVADMINEX,
  1361. CP_FOURDRAGS,
  1362. CP_CALIGS,
  1363. CP_REDSANDS,
  1364. CP_HOSPLV,
  1365. CP_BANCPCAR,
  1366. CP_LVDRGHSE,
  1367. CP_ATM247,
  1368. CP_ATMAMUSTH,
  1369. CP_ATMWHITE,
  1370. CP_ATMROCEST,
  1371. CP_BANKMAIN,
  1372. CP_BANKMAINX,
  1373. CP_BANKBUSNES,
  1374. CP_LVPDARMSDE,
  1375. CP_ALKATRAZ1,
  1376. CP_ALKATRAZ2,
  1377. CP_BLKFSTAD,
  1378. CP_BLKFSTADX,
  1379. CP_LVPDCCAM3,
  1380. CP_LVPDCCAM2,
  1381. CP_LVPDCCAM1,
  1382. CP_ADMINBAR,
  1383. CP_PDGIVEUP,
  1384. CP_8BALLSUP,
  1385. CP_CALIGPLNT,
  1386. CP_247CP1,
  1387. CP_TRASHPICKUP1,
  1388. CP_TRASHPICKUP2,
  1389. CP_TRASHPICKUP3,
  1390. CP_TRASHPICKUP4,
  1391. CP_TRASHPICKUP5,
  1392. CP_TRASHPICKUP6,
  1393. CP_TRASHPICKUP7,
  1394. CP_TRASHPICKUP8,
  1395. CP_TRASHPICKUP9,
  1396. CP_TRASHPICKUP10,
  1397. CP_TRASHPICKUP11,
  1398. CP_GUNDELIVERY1,
  1399. CP_GUNDELIVERY2,
  1400. CP_GUNDELIVERY3,
  1401. CP_GUNDELIVERY4,
  1402. CP_GUNDELIVERY5,
  1403. CP_GUNDELIVERY6,
  1404. CP_GUNDELIVERY7,
  1405. CP_GUNDELIVERY8,
  1406. CP_GUNDELIVERY9,
  1407. CP_GUNDELIVERY10,
  1408. CP_GUNDELIVERY11,
  1409. CP_GUNDELIVERY12,
  1410. CP_GUNDELIVERY13,
  1411. CP_GUNDELIVERY14,
  1412. CP_WINCARADMINHQ,
  1413. CP_CASHDELPICKUP,
  1414. CP_CASHDELATM1,
  1415. CP_CASHDELATM2,
  1416. CP_CASHDELATM3,
  1417. CP_CASHDELATM4,
  1418. CP_CASHDELEND,
  1419. CP_BMUKCASENTR,
  1420. CP_REDSANDSEXIT,
  1421. CP_CITYHALLENTER,
  1422. CP_CITYHALLMAIN,
  1423. CP_247REDSANDS,
  1424. CP_247EMERALD,
  1425. CP_247SEASTLV,
  1426. CP_247SOUTHLV,
  1427. CP_247BONECOUN,
  1428. CP_247SPINYBED,
  1429. CP_ROBCITYHALL,
  1430. CP_BIGASSPLANE,
  1431. CP_ADHQ,
  1432. CP_BAR,
  1433. CP_LOANSHARK,
  1434. CP_LOANSHARKMAIN,
  1435. CP_LOANSHARKEXIT
  1436. };
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442. main()
  1443. {
  1444. print("\n#######################");
  1445. print("# BM|UK's Las Venturas # ");
  1446. print("# Roleplay/Cops/Robbers # ");
  1447. print("########################\n");
  1448. }
  1449.  
  1450.  
  1451. public getCheckpointType(playerID) {
  1452. return checkpointType[playerCheckpoint[playerID]];
  1453. }
  1454.  
  1455.  
  1456. public isPlayerInArea(playerID, Float:data[4])
  1457. {
  1458.  
  1459. new Float:X, Float:Y, Float:Z;
  1460. GetPlayerPos(playerID, X, Y, Z);
  1461. if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
  1462. {
  1463. return 1;
  1464. }
  1465. return 0;
  1466. }
  1467.  
  1468. public checkpointUpdate()
  1469. {
  1470.  
  1471. for(new i=0; i<MAX_PLAYERS; i++)
  1472. {
  1473.  
  1474. if(IsPlayerConnected(i))
  1475. {
  1476. // SetPlayerCheckpoint(i,-2238.7200,2352.9326,4.9797,5.0);
  1477. if(OnDelMission[i] == 0 && DeliveringCash[i] == 0)
  1478. {
  1479.  
  1480.  
  1481.  
  1482. for(new j=0; j < MAX_POINTS; j++)
  1483. {
  1484.  
  1485. if(isPlayerInArea(i, checkCoords[j]))
  1486. {
  1487. if(playerCheckpoint[i]!=j)
  1488. {
  1489. DisablePlayerCheckpoint(i);
  1490. SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
  1491. playerCheckpoint[i] = j;
  1492. }
  1493. }
  1494. else
  1495. {
  1496. if(playerCheckpoint[i]==j)
  1497. {
  1498. DisablePlayerCheckpoint(i);
  1499. playerCheckpoint[i] = 999;
  1500. }
  1501. }
  1502. }
  1503. }
  1504. }
  1505. }
  1506. }
  1507.  
  1508.  
  1509. public OnGameModeInit()
  1510. {
  1511. EchoConnection = ircConnect("irc.ServerName.com",6667, "BotName Here");
  1512. SetGameModeText("Roleplay/Cops/Robbers");
  1513. SetTeamCount(1);
  1514. AllowInteriorWeapons(1);
  1515. EnableTirePopping(1);
  1516. SetWorldTime(12);
  1517. AllowAdminTeleport(1);
  1518. ircSay(EchoConnection, EchoChan,"2####################################");
  1519. ircSay(EchoConnection, EchoChan,"2################");
  1520. ircSay(EchoConnection, EchoChan,"2Change This");
  1521. ircSay(EchoConnection, EchoChan,"2Roleplay/Cops/Robbers");
  1522. ircSay(EchoConnection, EchoChan,"2Version 1.7");
  1523. ircSay(EchoConnection, EchoChan,"2################");
  1524. ircSay(EchoConnection, EchoChan,"2####################################");
  1525.  
  1526. SetTimer("checkpointUpdate", 1100, 1);
  1527. SetTimer("PolicePayDay", 3700000,1);
  1528. SetTimer("PilotPayDay", 3700000,1);
  1529. SetTimer("ArmyPayDay", 3700000,1);
  1530. SetTimer("announcement",120000,1);
  1531. SetTimer("weaponanti",1500,1);
  1532. SetTimer("Tazing",300,1);
  1533. SetTimer("WantedYellow",100,1);
  1534. SetTimer("WantedOrange",100,1);
  1535. SetTimer("WantedRed",100,1);
  1536. SetTimer("WantedInnocent",100,1);
  1537. SetTimer("BeenReported",60000,1);
  1538. SetTimer("ReqBkRecentTime",50000,1);
  1539. SetTimer("HandCuffed",5000,1);
  1540. SetTimer("SandEngine",1000,1);
  1541. SetTimer("ReqMechRecentTime",50000,1);
  1542. SetTimer("RobbedCasinoRecent",300000,1);
  1543. SetTimer("RobbedPlayerRecent",60000,1);
  1544. SetTimer("JailCuffs",5000,1);
  1545. SetTimer("RapedPlayerRecent",60000,1);
  1546. SetTimer("InfectedPlayerRecent",61000,1);
  1547.  
  1548. SetTimer("HasChlamydia",10000,1);
  1549. SetTimer("SellFoodRecent",60000,1);
  1550. SetTimer("HasSalmonella",15000,1);
  1551. SetTimer("AskedForFoodRecent",10000,1);
  1552. SetTimer("AskedForWeaponsRecent",9000,1);
  1553. SetTimer("FilledGasRecentDealer",11000,1);
  1554. SetTimer("TaxiPassengerTimer", 1000,1);
  1555. SetTimer("SoldDrugsRecentDealer",11000,1);
  1556. SetTimer("AutoUnjail",1000,1);
  1557. SetTimer("AutoUnjailAlcatraz",1000,1);
  1558. SetTimer("StoleCopCarRecentTimer",60000,1);
  1559. SetTimer("TheEffectsOfDrugs",1000,1);
  1560. SetTimer("TriedToEscapePrisone",40000,1);
  1561. SetTimer("cashanti",20000,1);
  1562. SetTimer("EscapeCuffsTime",1000,1);
  1563. SetTimer("SouthernCopGate",1000,1);
  1564. SetTimer("WesternCopGate",1000,1);
  1565. SetTimer("CopRefillWaitTimer",1000,1);
  1566. SetTimer("TimeWorld",60000,1);
  1567. SetTimer("VisitReqTimer",1000,1);
  1568. SetTimer("AntiJetpack",2000,1 );
  1569. SetTimer("HitExpires",1000,1 );
  1570. SetTimer("BankRobbedRecentlyTimer",1000,1);
  1571. SetTimer("ATMRobbedRecentlyTimer",1000,1);
  1572.  
  1573. SetTimer("PlayerRobbedBankRecentTimer",1000,1);
  1574. SetTimer("LoginTimer",10000,1);
  1575. SetTimer("UsedBankRecentlyTimer",1000,1);
  1576. SetTimer("WantedLevelReduce",1200000,1);
  1577. SetTimer("commitedcrimerecent",1000,1);
  1578. SetTimer("copshavevctimer",1000,1);
  1579. SetTimer("fixedcarrecenttimer",1000,1);
  1580. SetTimer("CashCheck",2000,1);
  1581. SetTimer("TrashMissionTimer",1000,1);
  1582. SetTimer("GunsDeliveryTimeLimitTimer",1000,1);
  1583. SetTimer("JailFood",120000,1);
  1584. SetTimer("TaxiDriverOffDutyCriminal",500,1);
  1585. SetTimer("playerbeenrobbedrecent",1000,1);
  1586. SetTimer("selectskill",1000,1);
  1587. SetTimer("cashdrop",7000,1);
  1588. SetTimer("twofoursevenmoveplayer",1000,1);
  1589. SetTimer("destroypickups",900000,1);
  1590. SetTimer("carrierliftinfotext",5000,1);
  1591. SetTimer("robbingstorecountdown",1000,1);
  1592. SetTimer("storerobbedrecent",1000,1);
  1593. SetTimer("robbingcityhallcountdown",1000,1);
  1594. SetTimer("PlayerVarDecrease",1000,1);
  1595. SetTimer("Kidnapped",1000,1);
  1596. SetTimer("AirPortRobbedRecentlyTimer",1000,1);
  1597. SetTimer("PlayerRobbedAirPortRecentTimer",1000,1);
  1598. SetTimer("UsedAutoRecentlyTimer",1000,1);
  1599. SetTimer("RobbedDrugsRecentlyTimer",1000,1);
  1600. SetTimer("UsedFORecentlyTimer",1000,1);
  1601. SetTimer("UsedAirPortRecentlyTimer",1000,1);
  1602. SetTimer("OrderedPlaneRecentlyTimer",1000,1);
  1603. SetTimer("PlanePassengerTimer", 1000,1);
  1604. SetTimer("PilotOffDutyCriminal",500,1);
  1605. SetTimer("robbingdrugscountdown",1000,1);
  1606.  
  1607.  
  1608.  
  1609. alkatrazmap = GangZoneCreate(3539.1328, 382.3327, 4085.4063, 560.8972);
  1610. carriermap = GangZoneCreate(2782.5579, 441.7090, 3166.1729, 520.0420);
  1611.  
  1612.  
  1613. AddStaticPickup(1239,2,2172.1626,1396.5553,11.0625); // autoban i
  1614. AddStaticPickup(366,2,2139.3486,1625.4484,993.6882); // FE in caligs
  1615. AddStaticPickup(366,2,2148.9221,1625.6168,993.6882); // FE in caligs
  1616. AddStaticPickup(355,2,-2651.7878,1412.5660,906.2734); // ak47 in admin hq
  1617. AddStaticPickup(1240,2,-2651.9155,1410.3878,906.2734); // health in admin hq
  1618. AddStaticPickup(353,2,-2651.8179,1408.0308,906.2734); // mp5 in admin hq
  1619. AddStaticPickup(1247,2,2052.6113,802.7152,17.3002); // bribe thruway ramp
  1620. AddStaticPickup(1247,2,2157.5210,2267.3660,19.8192); // bribe ramp close to pd
  1621. AddStaticPickup(1247,2,1298.1915,1525.8585,19.5423); // bribe ramp close to pd
  1622. AddStaticPickup(1247,2,1680.8639,1753.1685,10.8268); // bribe ramp close to pd
  1623. AddStaticPickup(1247,2,1186.1324,876.7701,10.8335); // bribe ramp close to pd
  1624. AddStaticPickup(1247,2,2163.1479,2474.0579,10.8203); // bribe ramp close to pd
  1625. AddStaticPickup(1247,2,2621.7563,2195.8796,-1.2323); // bribe ramp close to pd
  1626.  
  1627. txtTypeSkill = TextDrawCreate(150.0, 360.0,
  1628. "~y~CIVILIAN~n~~w~TYPE ~b~/SKILL~w~ TO SELECT A SKILL");
  1629. TextDrawUseBox(txtTypeSkill, 1);
  1630. TextDrawFont(txtTypeSkill, 1);
  1631. TextDrawLetterSize(txtTypeSkill, 0.8, 2.3);
  1632. //TextDrawTextSize(txtTypeSkill, 5.5, 9.0);
  1633. TextDrawSetShadow(txtTypeSkill,1); // no shadow
  1634. TextDrawSetOutline(txtTypeSkill,1); // thickness 1
  1635. TextDrawBackgroundColor(txtTypeSkill,0x000000FF);
  1636. TextDrawBoxColor(txtTypeSkill,0x000000AA);
  1637. TextDrawAlignment(txtTypeSkill,1); // align right.
  1638.  
  1639.  
  1640.  
  1641. // Player Classes
  1642. AddPlayerClass(266,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1643. AddPlayerClass(211,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // female citycop
  1644. AddPlayerClass(265,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1645. AddPlayerClass(267,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1646. AddPlayerClass(283,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1647. AddPlayerClass(284,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1648. AddPlayerClass(285,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // citycop
  1649. AddPlayerClass(286,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // fbi
  1650. AddPlayerClass(287,2941.0012,468.3174,21.6395,49.3062,24,50,30,500,34,20); // army
  1651. AddPlayerClass(164,1899.3256,962.4217,10.8203,178.9707,23,100,25,50,0,0); // casino security spawn
  1652. AddPlayerClass(122,2281.3210,2429.7224,3.2734,359.5055,3,1,22,50,29,500); // plain clothes
  1653. AddPlayerClass(71,1337.5198,1279.3478,10.8203,144.4931,3,1,22,50,29,500); // air cops
  1654. AddPlayerClass(71,2293.8950,543.3351,1.7944,182.4626,3,1,22,50,29,500); // marine unit new
  1655. AddPlayerClass(111,2343.2703,2454.1113,14.9742,95.8794,3,1,0,0,0,0); // jail turnkey
  1656. AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2
  1657. AddPlayerClass(50,2006.1929,2295.9451,10.8203,177.4306,22,50,0,0,0,0); // mechanic spawn
  1658. AddPlayerClass(155,2076.5696,2223.5557,10.8203,189.4515,5,1,22,50,0,0); // bistro spawn
  1659. AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male
  1660. AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female
  1661. AddPlayerClass(7,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0); // civil skin
  1662. AddPlayerClass(12,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
  1663. AddPlayerClass(23,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
  1664. AddPlayerClass(29,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi
  1665. AddPlayerClass(294,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin
  1666. AddPlayerClass(214,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi
  1667. AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
  1668. AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
  1669. AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
  1670. AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
  1671. AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin
  1672. AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
  1673. AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
  1674. AddPlayerClass(26,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
  1675. AddPlayerClass(31,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
  1676. AddPlayerClass(45,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
  1677. AddPlayerClass(46,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
  1678. AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin
  1679. AddPlayerClass(13,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1680. AddPlayerClass(14,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1681. AddPlayerClass(24,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1682. AddPlayerClass(33,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1683. AddPlayerClass(36,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1684. AddPlayerClass(38,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1685. AddPlayerClass(52,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1686. AddPlayerClass(63,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1687. AddPlayerClass(75,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1688. AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1689. AddPlayerClass(87,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1690. AddPlayerClass(92,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1691. AddPlayerClass(94,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1692. AddPlayerClass(127,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1693. AddPlayerClass(128,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1694. AddPlayerClass(138,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1695. AddPlayerClass(146,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1696. AddPlayerClass(147,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1697. AddPlayerClass(158,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1698. AddPlayerClass(160,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1699. AddPlayerClass(204,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1700. AddPlayerClass(249,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1701. AddPlayerClass(264,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1702. AddPlayerClass(269,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1703. AddPlayerClass(270,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1704. AddPlayerClass(271,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
  1705. AddPlayerClass(141,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin
  1706.  
  1707.  
  1708.  
  1709. // BONUS CARS
  1710. new rnd;
  1711. rnd = random(sizeof (BonusNRGSpawn));
  1712. AddStaticVehicle(522,BonusNRGSpawn[rnd][0], BonusNRGSpawn[rnd][1], BonusNRGSpawn[rnd][2],BonusNRGSpawn[rnd][3],-1,-1); // bonus nrg on tall rock $50000
  1713. new rnd1;
  1714. rnd1 = random(sizeof (BonusSULTANSpawn));
  1715. AddStaticVehicle(541,BonusSULTANSpawn[rnd1][0], BonusSULTANSpawn[rnd1][1], BonusSULTANSpawn[rnd1][2],BonusSULTANSpawn[rnd1][3],-1,-1); // bonus sultan hanger abandond $50000
  1716. // 2
  1717. // SELLABLE CARS ALL £10000
  1718.  
  1719. // Cars, eh?
  1720.  
  1721.  
  1722. AddStaticVehicle(400,-260.5457,1056.3306,19.8715,268.7226,-1,-1); // fort carson in drive
  1723. AddStaticVehicle(400,-345.8235,1514.3239,75.4517,1.1434,-1,-1); // satalite spawn
  1724. AddStaticVehicle(411,2250.0283,1745.9657,10.5474,0.4763,-1,-1); // behind caligs
  1725. AddStaticVehicle(411,2186.4280,1974.9047,10.5474,269.7653,-1,-1); // 24 7 off strip
  1726. AddStaticVehicle(411,2582.5378,2267.8010,10.5473,90.0122,-1,-1); // vrock
  1727. AddStaticVehicle(412,-36.7159,1166.4210,19.3073,179.1232,-1,-1); //
  1728. AddStaticVehicle(412,-165.0882,2698.1201,62.2406,268.9153,-1,-1); //
  1729. AddStaticVehicle(525,2013.6302,2295.3477,10.6977,180.4832,-1,-1); // towtruck
  1730. AddStaticVehicle(420,1714.3792,1463.8660,10.4760,161.7229,-1,-1); // LV airport
  1731. AddStaticVehicle(560,2240.9912,2258.8062,10.4231,273.1421,-1,-1); // wastelandjust south of PD
  1732. AddStaticVehicle(560,2657.9558,2326.0093,10.4489,166.1163,-1,-1); // vrock hotel
  1733. AddStaticVehicle(560,2364.0537,1655.9087,10.5250,88.8932,-1,-1); // carpark behind caligs
  1734. AddStaticVehicle(560,2292.5906,1448.0037,38.9831,91.1639,-1,-1); // top floor multistory at pyramid
  1735. AddStaticVehicle(560,2038.6998,1009.3288,10.3772,179.8236,-1,-1); // outside four dragons
  1736. AddStaticVehicle(405,1673.0708,1297.5497,10.6953,357.9945,-1,-1); // lv airport carpark
  1737. AddStaticVehicle(405,1289.8744,1379.4893,10.6953,88.8806,-1,-1); // at tankers lv airport
  1738. AddStaticVehicle(405,1311.0771,1258.1323,10.6953,358.7266,-1,-1); // lvpd air unit
  1739. AddStaticVehicle(402,1628.7238,2229.1563,10.6521,1.5808,-1,-1); // redsands casino
  1740. AddStaticVehicle(402,1963.3129,2410.9758,10.6520,179.1552,-1,-1); //
  1741. AddStaticVehicle(402,2553.6895,2317.9258,10.6520,179.5711,-1,-1); //
  1742. AddStaticVehicle(409,1658.5117,2259.5540,10.6203,90.7668,-1,-1); // limo redsands
  1743. AddStaticVehicle(426,-289.1980,1317.1255,54.0285,263.1293,-1,-1); //
  1744. AddStaticVehicle(426,-324.4553,1514.7328,75.1027,357.5986,-1,-1); //
  1745. AddStaticVehicle(429,2370.7654,2578.0522,10.5000,180.6153,-1,-1); //
  1746. AddStaticVehicle(429,2512.2239,2374.3684,10.5000,269.6915,-1,-1); //
  1747. AddStaticVehicle(429,2103.7051,2089.0283,10.5015,268.6300,-1,-1); //
  1748. AddStaticVehicle(581,2139.5164,2468.5984,10.4130,178.0234,-1,-1); //
  1749. AddStaticVehicle(581,2611.1777,2279.4063,10.4130,269.3283,-1,-1); //
  1750. //30
  1751. // LVPD VEHICLES (CAR)
  1752. //AddStaticVehicle(598,2316.4802,2475.2651,3.0217,90.3534,0,1); // lvpd car
  1753. //AddStaticVehicle(598,2316.4194,2480.0454,3.0615,88.5152,0,1); // lvpd car
  1754. //AddStaticVehicle(598,2316.4380,2485.3369,3.0167,89.5960,0,1); // lvpd car
  1755. //AddStaticVehicle(598,2316.3765,2490.0940,3.0220,91.9465,0,1); // lvpd car
  1756. //AddStaticVehicle(598,2316.2776,2495.1895,3.0200,90.2339,0,1); // lvpd car
  1757. //AddStaticVehicle(598,2316.4250,2500.2219,3.0197,89.7058,0,1); // lvpd car
  1758. //AddStaticVehicle(598,2296.8850,2460.2275,3.0203,88.8503,0,1); // lvpd car
  1759. AddStaticVehicle(598,2119.0054,929.0891,10.5671,88.3309,-1,-1); // lvpd car (ammu south lv)
  1760. AddStaticVehicle(598,2790.7935,609.4611,10.6448,239.4174,-1,-1); // lvpd car (abandoned)
  1761. AddStaticVehicle(598,1309.5187,1278.6099,10.5672,178.9121,-1,-1); // lvpd car
  1762. AddStaticVehicle(598,1306.3010,1278.7461,10.5685,181.5038,-1,-1); // lvpd car
  1763. AddStaticVehicle(560,2246.4089,2430.0127,2.9793,359.4404,0,0); // new
  1764. AddStaticVehicle(597,2297.0229,2451.5276,3.0412,268.7933,0,1); // sfpd car
  1765. //AddStaticVehicle(597,2260.4841,2458.9121,10.5888,178.9466,0,1); // sfpd car
  1766. AddStaticVehicle(597,2363.8188,2462.1348,10.4410,359.1209,0,1); // sfpd car
  1767. AddStaticVehicle(411,2240.8706,2431.6042,3.0005,315.8528,0,0); // infernus
  1768. //AddStaticVehicle(490,2239.6072,2451.8501,3.3989,269.9625,0,0); // fbi
  1769. //AddStaticVehicle(490,2239.6563,2456.7458,3.4010,269.4568,0,0); // fbi
  1770. AddStaticVehicle(490,2282.1882,2477.2366,10.9477,178.9290,0,0); // fbi
  1771. //AddStaticVehicle(490,2301.3066,2416.7947,10.8004,90.2152,0,0); // fbi
  1772. //AddStaticVehicle(523,2277.6663,2473.0217,2.8415,176.6104,0,0); // bike
  1773. //AddStaticVehicle(523,2240.1062,2471.1702,2.8380,90.2868,0,0); // bike
  1774. AddStaticVehicle(523,2268.6572,2430.7412,2.8447,177.7989,0,0); // bike
  1775. //AddStaticVehicle(601,2311.3298,2448.9504,10.5789,157.6322,1,1); // fbi tank
  1776. AddStaticVehicle(601,2251.6313,2444.0747,10.5807,178.9412,1,1); // fbi tank
  1777. //AddStaticVehicle(597,2263.6372,2473.2419,3.0424,0.0609,0,0);
  1778. AddStaticVehicle(597,2268.2463,2473.2190,3.0424,0.1667,0,0); //
  1779. //AddStaticVehicle(597,2352.3809,1609.3071,10.4399,270.3242,0,0); //
  1780. //AddStaticVehicle(597,2316.7251,2460.4163,3.0418,269.1222,0,0); //
  1781. //ddStaticVehicle(597,2256.1438,2477.6895,10.5879,358.7498,0,0); //
  1782. //AddStaticVehicle(597,2250.6978,2430.0125,3.0430,179.4021,0,0); //
  1783. //44
  1784. // LVPD VEHICLE (AIR)
  1785. AddStaticVehicle(497,1341.8801,1255.5431,19.5425,44.5802,-1,-1); // police maverick
  1786. AddStaticVehicle(497,1340.3700,1236.4381,19.5203,294.8706,-1,-1); // police maverick
  1787. AddStaticVehicle(497,1323.0903,1237.8447,19.5173,10.1612,-1,-1); // police maverick
  1788. AddStaticVehicle(497,1296.6628,1236.6494,19.5190,52.4852,-1,-1); // police maverick
  1789. AddStaticVehicle(497,1299.8175,1255.5842,19.5236,316.4109,-1,-1); // police maverick
  1790. AddStaticVehicle(497,3748.3474,470.5863,37.9441,90.8746,-1,-1); // police maverick at alkatraz
  1791. //50
  1792. // LVPD VEHICLES (MARINE)
  1793. AddStaticVehicle(430,2288.1111,518.8869,-0.1907,91.3782,-1,-1); // Predator
  1794. AddStaticVehicle(430,2299.9636,518.9166,-0.1355,269.2642,-1,-1); // Predator
  1795. AddStaticVehicle(430,2282.2551,538.3450,-0.2159,147.9407,-1,-1); // Predator
  1796. AddStaticVehicle(430,2306.7380,539.2404,-0.3769,217.6788,-1,-1); // Predator Alkatraz
  1797. AddStaticVehicle(430,3592.4229,514.0565,0.4481,0.5782,0,0); // Predator Alkatraz
  1798. AddStaticVehicle(430,3630.9941,500.9380,-0.8119,358.3138,0,0); // Predator Alkatraz
  1799. AddStaticVehicle(430,3620.9778,499.9655,0.3282,1.9102,0,0); // Predator Alkatraz
  1800. AddStaticVehicle(430,2879.2646,475.6259,-0.4424,88.2338,77,77); // pred at aircraft carrier
  1801. //59
  1802. // MEDIC VEHICLES (CAR)
  1803. AddStaticVehicle(416,1616.1962,1832.7340,10.9688,270.0724,1,86); // Ambulance
  1804. AddStaticVehicle(416,1607.7017,1832.7179,10.9696,270.0573,1,86); // Ambulance
  1805. AddStaticVehicle(416,1598.8495,1832.7233,10.9696,270.0156,1,86); // Ambulance
  1806. AddStaticVehicle(416,1610.3152,1838.5310,10.9695,269.8784,1,86); // Ambulance
  1807. AddStaticVehicle(407,1763.7043,2076.9663,11.0527,180.1710,-1,-1); // fire engine
  1808. AddStaticVehicle(407,1751.3513,2076.5618,11.0565,180.1663,-1,-1); // fire engine
  1809. //65
  1810. // MEDIC HELI
  1811. AddStaticVehicle(487,1622.6943,1852.4388,10.9966,179.0737,86,86); // heli new medic1
  1812. AddStaticVehicle(487,1590.5546,1852.2444,10.9957,179.3921,86,86); // heli medic new 2
  1813. //67
  1814. // CASINO SECURITY
  1815. AddStaticVehicle(579,1882.1576,953.9945,10.7521,268.3038,0,0); //
  1816. AddStaticVehicle(579,1882.1141,957.1571,10.7510,271.8213,0,0); //
  1817. AddStaticVehicle(579,1909.5972,962.4758,10.7515,179.1707,0,0); //
  1818. //70
  1819. // Carrier Aircraft
  1820. hydra1 = AddStaticVehicle(520,2931.0613,465.3756,19.3782,1.1622,0,0); // hydra carrier
  1821. hydra2 = AddStaticVehicle(520,2917.5867,465.7890,19.3795,312.2032,0,0); // hydra carrier
  1822. hydra3 = AddStaticVehicle(520,2899.7839,465.5906,19.3723,311.8952,0,0); // hydra carrier
  1823. hunter1 = AddStaticVehicle(425,3062.4238,466.6560,19.2461,52.5798,43,0); // hunter carrier
  1824. hunter2 = AddStaticVehicle(425,3047.4338,466.8032,19.2559,46.4933,43,0); // hunter carrier
  1825. hunter3 = AddStaticVehicle(425,3034.5884,467.3791,19.2494,41.5143,43,0); // hunter carrier
  1826. //76
  1827. // SEA PLANE
  1828. AddStaticVehicle(460,3870.3757,521.3595,1.5988,265.3323,-1,-1); // seaplane at alcatraz
  1829. AddStaticVehicle(460,3976.7407,515.1458,2.3438,262.1897,-1,-1); // seaplane at alcatraz
  1830. AddStaticVehicle(460,2979.3538,2103.4531,1.1234,296.8892,-1,-1); // seaplane
  1831. //AddStaticVehicle(460,2565.8223,494.8676,2.1482,270.9538,-1,-1); // seaplane
  1832. ///AddStaticVehicle(460,2105.4067,-95.3821,1.6661,123.0410,-1,-1); // seaplane
  1833. //AddStaticVehicle(460,-1152.5420,14.8533,1.5873,319.1891,-1,-1); // seaplane
  1834. // AddStaticVehicle(460,-1464.0345,693.4573,1.8334,357.9172,-1,-1); // seaplane
  1835. //83
  1836. // DRIVER VEHICLE (CAR)
  1837. AddStaticVehicle(420,1158.4103,1397.3376,5.5998,89.9673,6,1); // driver spawn
  1838. AddStaticVehicle(420,1158.4358,1401.3970,5.5994,88.4158,6,1); // driver spawn
  1839. AddStaticVehicle(420,1158.4359,1405.6311,5.5991,89.8338,6,1); // driver spawn
  1840. AddStaticVehicle(420,1158.4196,1410.0563,5.5988,89.9406,6,1); // driver spawn
  1841. AddStaticVehicle(420,1158.6406,1414.4780,5.5995,238.2890,6,1); // driver spawn
  1842. AddStaticVehicle(420,1158.7196,1419.6169,5.5992,235.1454,6,1); // driver spawn
  1843. AddStaticVehicle(420,1144.6538,1397.5892,5.5997,181.1381,6,1); // driver spawn
  1844. AddStaticVehicle(420,1673.5316,-2315.5212,13.1624,88.8791,-1,-1); // LS airport
  1845. AddStaticVehicle(420,1666.8280,-2315.4917,13.1640,90.1225,-1,-1); // LS airport
  1846. AddStaticVehicle(420,1660.0367,-2315.4790,13.1631,90.6457,-1,-1); // LS airport
  1847. AddStaticVehicle(420,1709.5975,1447.3756,10.4755,162.8830,-1,-1); // LV airport
  1848. AddStaticVehicle(420,-1419.6381,-309.1965,13.7791,44.0550,-1,-1); // sf airport
  1849. AddStaticVehicle(420,-1425.3394,-303.7048,13.7733,47.2148,-1,-1); // sf airport
  1850. AddStaticVehicle(420,-1431.3544,-298.4751,13.7790,48.9959,-1,-1); // sf airport
  1851. AddStaticVehicle(420,-1437.9172,-293.7115,13.7759,55.7972,-1,-1); // sf airport
  1852. AddStaticVehicle(431,1120.7922,1421.6825,5.9203,270.1187,-1,-1); // coach
  1853. AddStaticVehicle(431,1120.8073,1417.2930,5.9213,270.2127,-1,-1); // coach
  1854. //AddStaticVehicle(431,1123.4386,1401.6411,5.9139,359.5022,-1,-1); // coach
  1855. AddStaticVehicle(409,2184.7378,1683.6982,10.8875,89.3902,-1,-1); // limo caligs
  1856. AddStaticVehicle(409,2038.6005,1017.8719,10.4719,180.5361,-1,-1); // limo fourdrags
  1857. AddStaticVehicle(409,1135.3848,1397.7670,5.6203,0.0212,1,1); // limo driver spawn
  1858. AddStaticVehicle(409,1139.5439,1397.7987,5.6203,359.6214,1,1); //
  1859. //112
  1860. // TRASH TRUCKS
  1861. AddStaticVehicle(408,2762.6511,2629.0281,11.3657,205.4371,26,26); // new trash truck
  1862. AddStaticVehicle(408,2769.2124,2629.0071,11.3813,205.0175,26,26); // new trash truck
  1863. AddStaticVehicle(408,2599.8892,2171.3806,11.3604,124.5986,26,26); // new trash
  1864. AddStaticVehicle(408,2091.6597,2142.2932,11.3669,270.1578,26,26); // new trash
  1865. AddStaticVehicle(408,2118.9285,1894.8378,11.2368,179.9940,26,26); // new trash
  1866. AddStaticVehicle(408,1996.2535,1073.2250,11.3617,359.8930,26,26); // new trash
  1867. AddStaticVehicle(408,2229.8176,950.9883,11.3686,180.1651,26,26); // new trash
  1868. //119
  1869. // Car Dealer Cars
  1870. AddStaticVehicle(411,2208.4243,1392.3295,10.5474,90.6794,-1,-1); // car dealer infernus
  1871. AddStaticVehicle(451,2191.2715,1392.6343,10.5273,88.8673,-1,-1); // car dealer turismo
  1872. //121
  1873. // bank secure vans
  1874. AddStaticVehicle(428,2372.0300,1609.5376,10.7954,269.7663,4,75); // secure vans behind bank
  1875. AddStaticVehicle(428,2362.9207,1609.5750,10.7926,269.7670,4,75); // secure vans behind bank
  1876. //123
  1877. // Artic Trailers
  1878. AddStaticVehicle(591,2173.2791,1830.5649,11.4172,89.6210,-1,-1); //
  1879. AddStaticVehicle(591,2467.7417,1923.5344,9.4265,359.1829,-1,-1); // artics
  1880. AddStaticVehicle(591,2058.5928,2251.2957,10.1730,90.8581,-1,-1); // artics
  1881. AddStaticVehicle(591,1623.9597,2325.8767,10.4789,179.2105,-1,-1); // artics
  1882. AddStaticVehicle(591,1597.8265,1630.5233,10.4801,177.9328,-1,-1); // artics
  1883. AddStaticVehicle(591,1694.1700,960.6252,10.4550,89.7094,-1,-1); // artics
  1884. AddStaticVehicle(591,2179.9382,1017.4482,10.4800,201.2279,-1,-1); // artics
  1885. AddStaticVehicle(591,2123.1150,957.1656,10.4744,273.0740,-1,-1); // artics
  1886. //131
  1887. // LINE RUNNER
  1888. //AddStaticVehicle(514,2207.5239,1789.5764,11.4052,181.3414,-1,-1); //
  1889. // AddStaticVehicle(514,842.7371,868.4437,13.8652,294.8057,-1,-1); //
  1890. AddStaticVehicle(514,1049.8719,2131.8743,11.4259,89.0901,-1,-1); //
  1891. AddStaticVehicle(514,1408.7637,2088.9531,11.5369,177.8576,-1,-1); //
  1892. AddStaticVehicle(514,2654.4961,1134.1520,11.4056,358.1617,-1,-1); // SE Gas station
  1893. AddStaticVehicle(514,1308.3387,1411.3556,11.3949,60.5554,-1,-1); // LV airport
  1894. AddStaticVehicle(514,2260.9292,2770.3232,11.4264,90.1708,-1,-1); //
  1895. //138
  1896. // bangers in stadium
  1897. //AddStaticVehicle(504,-1421.4108,995.0195,1023.9284,187.5995,-1,-1); //
  1898. //AddStaticVehicle(504,-1420.1169,987.1750,1023.7940,6.9317,-1,-1); //
  1899. //AddStaticVehicle(504,-1425.8875,994.6539,1023.9357,7.6189,-1,-1); //
  1900. // AddStaticVehicle(504,-1424.7188,986.3735,1023.7917,187.2283,-1,-1); //
  1901. AddStaticVehicle(504,-1429.3414,986.0947,1023.7928,6.5205,-1,-1); //
  1902. AddStaticVehicle(504,-1430.6591,993.7530,1023.9292,187.9536,-1,-1); //
  1903. AddStaticVehicle(504,-1433.3226,978.8489,1023.7661,323.5251,-1,-1); //
  1904. AddStaticVehicle(504,-1435.7758,985.1437,1023.7878,276.9260,-1,-1); //
  1905. AddStaticVehicle(504,-1436.6047,993.0659,1023.9309,276.8188,-1,-1); //
  1906. AddStaticVehicle(504,-1435.9889,999.1473,1024.0264,236.7130,-1,-1); //
  1907. //148
  1908. // PIZZABOY
  1909. AddStaticVehicle(448,2076.1016,2227.7793,10.4197,182.2776,-1,-1); // pizzaboy1
  1910. AddStaticVehicle(448,2074.2893,2227.7356,10.4198,178.3668,-1,-1); // pizzaboy2
  1911. AddStaticVehicle(448,2072.4226,2228.1094,10.4173,358.1902,-1,-1); // pizza3
  1912. //151
  1913. // TOWTRUCK
  1914. AddStaticVehicle(525,1987.1045,2288.6025,10.6135,270.2471,-1,-1); // towtruck
  1915. AddStaticVehicle(525,1995.5443,2288.6602,10.6209,270.3867,-1,-1); // towtruck
  1916. //153
  1917. //155
  1918. // DFT 30
  1919. AddStaticVehicle(578,-526.7448,2620.3787,54.0389,359.4019,1,1);
  1920. AddStaticVehicle(578,-909.9553,2697.5984,42.9924,130.8771,1,1); //
  1921. AddStaticVehicle(578,-198.4705,2607.2178,63.3289,180.1292,1,1); //
  1922. AddStaticVehicle(578,1480.1882,2846.8203,11.4454,358.4138,1,1); //
  1923. AddStaticVehicle(578,1633.1060,2340.2183,11.2455,92.0694,1,1); //
  1924. AddStaticVehicle(578,1909.2942,2258.5046,11.4444,270.0823,1,1); //
  1925. //161
  1926. // BEAGLE AT AIRPORT
  1927. AddStaticVehicle(511,1542.9960,1840.6337,12.1951,91.0842,-1,-1); // beagle1
  1928. AddStaticVehicle(511,1543.4858,1815.3352,12.1963,90.7103,-1,-1); // beagle2
  1929. AddStaticVehicle(511,1543.8823,1790.8335,12.1951,90.3567,-1,-1); // beagle3
  1930. AddStaticVehicle(511,383.0163,2535.7126,17.9211,179.5423,8,66); // beagle at airstrip
  1931. //165
  1932. // BMX
  1933. //AddStaticVehicle(481,2084.4128,1082.8064,10.3308,235.7149,6,6); // BMX
  1934. //AddStaticVehicle(481,2018.2346,1347.9608,10.3362,266.5774,6,6); // BMX
  1935. //AddStaticVehicle(481,2004.7864,1546.3557,13.1020,114.6564,6,6); // BMX
  1936. //165
  1937. // SANCHEZ
  1938. AddStaticVehicle(468,2561.5830,1578.8514,10.4888,87.0434,-1,-1); // sanchez
  1939. AddStaticVehicle(468,2051.8228,819.7362,7.2582,88.2762,-1,-1); // sanchez bottom strip
  1940. AddStaticVehicle(468,1521.6385,986.0881,10.4888,1.4943,-1,-1); // sanchez
  1941. //178
  1942. // at 400
  1943. AddStaticVehicle(577,1477.6705,1817.5233,10.7286,179.7935,8,7); // at400
  1944. // STUNT PLANE 179
  1945. AddStaticVehicle(513,329.5012,2474.1362,17.0532,53.6861,-1,-1); // stuntplane airstrip
  1946. AddStaticVehicle(513,340.5403,2474.4924,17.0299,48.4815,-1,-1); // stunt 2 airstrip
  1947. AddStaticVehicle(513,1353.0137,1707.2864,11.3751,270.4409,-1,-1); // stunt lv airport
  1948. AddStaticVehicle(513,-1343.3337,-281.7327,14.6970,326.1327,-1,-1); // stunt sf
  1949. AddStaticVehicle(513,-1383.2651,-229.1063,14.6913,319.7043,-1,-1); // stunt sf
  1950. AddStaticVehicle(513,1686.5472,-2629.0112,14.0899,357.1628,-1,-1); // stunt ls
  1951. AddStaticVehicle(513,1624.4884,-2631.1340,14.1013,358.6935,-1,-1); // stunt ls
  1952. //186
  1953. // Launch Boat
  1954. AddStaticVehicle(595,2880.1399,480.4556,0.4235,89.8792,77,77); // launch at aricraft casrier
  1955. AddStaticVehicle(595,2982.8508,494.6537,-0.3568,270.0419,112,20); // launch
  1956. AddStaticVehicle(595,3022.6843,494.5869,0.9674,272.4197,112,20); // launch
  1957. AddStaticVehicle(595,3048.0571,439.7083,0.0367,81.2992,112,20); // launch
  1958. //AddStaticVehicle(595,2848.1538,457.8650,0.0415,310.5009,112,20); // launch
  1959. //AddStaticVehicle(595,2280.8005,525.0524,0.1593,317.8949,112,20); // launch
  1960. //AddStaticVehicle(595,3642.0657,531.2183,-0.5265,87.8562,112,20); // launch
  1961. //194
  1962. // JETMAX
  1963. AddStaticVehicle(493,2367.1226,514.3972,-0.0291,177.5325,-1,-1); // letmax
  1964. AddStaticVehicle(493,2352.3398,514.6149,-0.1203,178.0770,-1,-1); // jetmax
  1965. AddStaticVehicle(493,3700.3523,536.7863,-0.3763,267.7268,-1,-1); // jetmax
  1966. AddStaticVehicle(493,3981.5759,443.6727,1.2028,182.0452,-1,-1); // jetmax
  1967. AddStaticVehicle(493,2619.1726,536.8918,1.2353,102.1477,-1,-1); // jetmax
  1968. AddStaticVehicle(493,2319.9363,487.3689,-0.1096,88.0939,-1,-1); // jetmax
  1969. AddStaticVehicle(493,1628.6343,570.8010,-0.1023,89.2489,-1,-1); // jetmax
  1970. AddStaticVehicle(493,-87.5311,-572.5739,-0.1772,215.5085,-1,-1); // jetmax
  1971. AddStaticVehicle(493,301.5171,-1936.7384,-0.1729,307.8127,-1,-1); // jetmax
  1972. AddStaticVehicle(493,324.5273,-1931.1113,0.0345,192.7069,-1,-1); // jetmax
  1973. AddStaticVehicle(493,720.0939,-1701.7401,-0.2107,354.2910,-1,-1); // jetmax
  1974. AddStaticVehicle(493,719.7071,-1635.2107,0.0227,359.6180,-1,-1); // jetmax
  1975. AddStaticVehicle(493,2446.8323,-2716.9158,0.2881,267.0415,-1,-1); // jetmax
  1976. AddStaticVehicle(493,2597.2388,-2479.9136,-0.2891,266.8047,-1,-1); // jetmax
  1977. //208
  1978. //
  1979. //
  1980. // ADMIN STATION
  1981. adminSultan = AddStaticVehicle(560,2076.2837,1260.0215,10.3314,179.9376,0,0); // sultan admin 209
  1982. adminTurismo = AddStaticVehicle(451,2114.4238,1235.1420,10.5268,267.4263,0,0); // turismo admin 210
  1983. adminElegy = AddStaticVehicle(562,2076.2898,1266.0883,10.3315,179.9381,0,0); // elegy admin 211
  1984. adminUranus = AddStaticVehicle(558,2092.1531,1270.5258,10.4498,90.0759,0,0); // uranus admin 212
  1985. mav1 = AddStaticVehicle(487,1545.1851,1769.6086,10.9971,87.6224,-1,-1); // maverick at beagles 213
  1986. mav2 = AddStaticVehicle(487,1549.3344,1753.1544,10.9930,270.5984,-1,-1); // maverick at beagles2 214
  1987. mav3 = AddStaticVehicle(487,1619.0939,1356.7064,10.9488,136.5968,-1,-1); // heli airport1 215
  1988. mav4 = AddStaticVehicle(487,1573.9966,1355.0909,11.0338,132.8060,-1,-1); // heli airport 2 216
  1989. mav5 = AddStaticVehicle(487,1573.1521,1419.7258,11.0533,77.8943,-1,-1); // heli airport3 217
  1990. mav6 = AddStaticVehicle(487,365.5160,2536.9846,16.8408,176.7653,-1,-1); // maverick airstrip 218
  1991. mav7 = AddStaticVehicle(487,2093.1401,2414.8337,74.7489,356.9587,-1,-1); // maverick emerald isle 219
  1992. mav8 = AddStaticVehicle(519,1318.3536,1594.7084,11.7389,270.7145,1,1); // shamal 220
  1993. mav9 = AddStaticVehicle(519,1318.3253,1571.2150,11.7427,270.1246,1,1); // shamal 221 213
  1994. //212
  1995. // PATRIOT
  1996. AddStaticVehicle(470,2532.7153,2092.9478,10.7395,2.1899,-1,-1); // gun delivery patriot north ammu lv 217
  1997. AddStaticVehicle(470,2156.2000,935.4752,10.8169,0.1451,-1,-1); // gun dealer patriot south ammu lv
  1998. AddStaticVehicle(470,2233.4819,2453.5588,-7.4597,270.8889,-1,-1); // at lvpd
  1999. AddStaticVehicle(470,2233.4524,2463.1221,-7.4577,271.5103,-1,-1); // at lvpd
  2000. //216
  2001. // big ass plane
  2002. bigassplane = AddStaticVehicle(592,424.8123,2502.6685,16.1906,88.0697,-1,-1); // lvpd car
  2003. // JAD Cars. 217
  2004. AddStaticVehicle(487,-2227.8938,2326.1719,7.7243,179.0753,-1,-1); // Maverick 225
  2005. AddStaticVehicle(472,-2238.5442,2440.3230,0.1167,47.7596,-1,-1); // Boat 1 226
  2006. AddStaticVehicle(472,-2249.5664,2425.7747,0.2120,224.5431,-1,-1); // Boat 2 227
  2007. AddStaticVehicle(472,-2222.2161,2396.7266,-0.0250,230.6053,-1,-1); // Boat 3 228
  2008. AddStaticVehicle(598,-2491.2092,2367.7993,10.0268,180.2688,0,1); // Cop Car 1 229
  2009. AddStaticVehicle(598,-2296.1267,2287.9690,4.7217,91.0773,0,1); // Cop CAr 2 230
  2010. AddStaticVehicle(581,-2227.3630,2354.6685,4.5866,309.1919,-1,-1); // Bike (I think) 231
  2011. AddStaticVehicle(581,-2447.9534,2305.6353,4.5813,92.3717,-1,-1); // Bike (I think) 232
  2012. AddStaticVehicle(418,-2558.5378,2262.6719,5.1520,154.8613,-1,-1); // Bike / Moonbeam something. 233
  2013. AddStaticVehicle(560,-2524.7595,2356.5090,4.6901,270.5555,-1,-1); // Sultan 234
  2014. AddStaticVehicle(480,-2475.4949,2521.8577,17.4627,273.2271,-1,-1); // Comet 235
  2015. AddStaticVehicle(480,-2252.0298,2323.5259,4.5853,88.9625,-1,-1); // Comet 236
  2016. // PAC's. 230
  2017. //PAC1 = AddStaticVehicle(406,-2253.1099,2365.2844,6.5067,132.8848,-1,-1); // bobbies dumper 237
  2018. //PAC2 = AddStaticVehicle(483,-2252.2666,2335.1765,4.8042,81.3099,0,0); // -- hippie camper 238
  2019. PAC3 = AddStaticVehicle(432,-2293.5762,2231.5811,4.9973,357.4567,-1,-1); // 239
  2020. PAC4 = AddStaticVehicle(539,-2243.0930,2543.7827,0.2686,194.6352,-1,-1); // 240
  2021. // 234
  2022.  
  2023. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2050.6140,766.8976,10.8748,358.4364,94,1); // new spawncars
  2024. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2194.9690,758.4351,10.4634,321.8647,94,1); // new spawncars
  2025. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2853.6943,1351.7987,10.5653,89.3985,94,1); // new spawncars
  2026. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2803.8445,1336.0048,10.5099,90.8478,94,1); // new spawncars
  2027. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2443.0078,1351.9143,10.5751,267.2689,94,1); // new spawncars
  2028. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2292.3201,1412.0536,11.1552,272.4578,94,1); // new spawncars
  2029. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2362.6128,1537.1456,10.4748,271.0965,94,1); // new spawncars
  2030. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2388.8889,1527.7555,10.5025,90.3741,94,1); // new spawncars
  2031. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2159.5005,1685.5955,10.4456,13.3832,94,1); // new spawncars
  2032. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2145.5491,1806.6722,10.5743,64.3370,94,1); // new spawncars
  2033. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2164.4810,1788.2952,10.5770,0.6319,94,1); // new spawncars
  2034. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2193.1467,1821.1807,10.5756,357.7119,94,1); // new spawncars
  2035. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2210.2905,1878.5878,10.5728,2.0442,94,1); // new spawncars
  2036. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2171.1421,1985.0276,10.5762,272.2237,94,1); // new spawncars
  2037. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2155.8794,2194.3853,10.4258,0.2422,94,1); // new spawncars
  2038. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2107.4939,2207.8359,10.5733,0.0169,94,1); // new spawncars
  2039. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2007.1917,2329.5730,10.5745,272.9804,94,1); // new spawncars
  2040. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2152.9097,2498.2139,10.5725,271.0267,94,1); // new spawncars
  2041. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2080.6187,2468.7502,10.5743,0.5299,94,1); // new spawncars
  2042. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2188.8718,2503.3174,10.5727,0.2020,94,1); // new spawncars
  2043. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2222.0610,2485.2654,10.4989,180.6984,94,1); // new spawncars
  2044. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2249.1836,2407.9487,10.4975,268.8428,94,1); // new spawncars
  2045. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2282.4004,2391.6355,10.4939,181.2938,94,1); // new spawncars
  2046. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2282.4001,2380.0491,10.4930,180.3566,94,1); // new spawncars
  2047. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2363.7346,2474.0330,10.4257,180.5582,94,1); // new spawncars
  2048. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2104.4194,2653.2917,10.5715,266.3527,94,1); // new spawncars
  2049. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1956.4703,2638.9294,10.4990,92.7248,94,1); // new spawncars
  2050. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1903.7441,2764.1165,10.4257,179.8109,94,1); // new spawncars
  2051. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1609.9213,2720.5266,10.5755,178.0471,94,1); // new spawncars
  2052. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2039.9487,1627.5925,10.4265,179.8016,94,1); // new spawncars
  2053. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2039.8638,1604.3782,10.4265,179.7895,94,1); // new spawncars
  2054. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2075.8599,1330.2247,10.4257,181.6968,94,1); // new spawncars
  2055. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2075.8740,1347.9667,10.4268,179.4070,94,1); // new spawncars
  2056. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1663.0021,-175.4015,35.0692,183.5223,94,1); // new spawncars
  2057. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2346.1953,-1599.8646,22.4131,179.0826,94,1); // new spawncars
  2058. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2473.2693,-1695.9027,13.2700,175.1110,94,1); // new spawncars
  2059. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2498.8408,-1682.3564,13.1262,108.3925,94,1); // new spawncars
  2060. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2486.2708,-1682.8748,13.0884,90.0212,94,1); // new spawncars
  2061. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],836.8254,837.4991,12.3054,30.2748,-1,-1); // hunter quarry
  2062. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-292.1061,1298.8613,53.9015,260.9147,-1,-1); // bigear spawn
  2063. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1533.5408,2643.0444,55.9283,267.6417,-1,-1); // out by sherrif office
  2064. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2451.1023,1266.9518,10.9127,178.3685,-1,-1); //
  2065. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2631.2710,1067.4596,10.9127,358.7852,-1,-1); //
  2066. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1930.2173,2654.7783,10.9127,359.3286,-1,-1); //
  2067. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2460.9785,928.3632,10.9127,269.5720,-1,-1); //
  2068. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1641.8040,1308.1658,10.5474,90.2293,-1,-1); //
  2069. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1341.4496,1266.1099,10.5474,270.1592,-1,-1); // at air unit
  2070. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1021.6139,1921.1182,10.8739,89.9047,-1,-1); //
  2071. AutoBahnCar1 = AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2139.1897,1408.8348,10.5474,179.1921,-1,-1); // infernus autobahn
  2072. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],983.7245,1726.7664,8.3819,268.9172,-1,-1); //
  2073. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1910.1632,2325.4841,10.5474,86.8969,-1,-1); //
  2074. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2134.9392,2469.4993,10.5474,180.2005,-1,-1); //
  2075. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],983.2764,1730.8530,8.4891,90.8395,-1,-1); // voodoo
  2076. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1027.2737,1434.5303,5.6586,271.8362,-1,-1); //
  2077. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-175.9688,1222.5707,19.5799,269.0235,-1,-1); //
  2078. AutoBahnCar2 = AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2168.3533,1409.7892,10.5255,92.0394,-1,-1); // Sultan autobahn
  2079. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2202.8198,936.6826,10.5252,358.9428,-1,-1); // behind ammu south
  2080. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2393.4307,986.3323,10.5257,268.5880,-1,-1); // transfender
  2081. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2440.9390,697.7169,10.8556,269.0237,-1,-1); // at drug house
  2082. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1478.8868,711.1704,10.4467,286.6846,-1,-1); // chapel
  2083. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1529.6085,1020.3997,10.5255,179.2342,-1,-1); //
  2084. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],994.6566,1995.1582,10.8459,270.6577,-1,-1); // in drive in whitewood est
  2085. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1089.4946,2194.7002,16.4243,359.9457,-1,-1); // carpark whitewood
  2086. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],781.0810,1877.8872,4.6356,88.4915,-1,-1); // ammu desert
  2087. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-80.6216,1077.5908,19.4474,0.2646,-1,-1); // fort carson hi k69 carpark
  2088. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1928.5724,274.0573,40.7517,178.5947,-1,-1); // wangs
  2089. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],983.3817,1722.0114,8.5298,90.6754,-1,-1); // cia place spawn
  2090. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],617.6290,1684.9648,6.8672,127.6812,-1,-1); // gas station at ammu desert
  2091. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],686.5267,1948.6569,5.4141,0.5892,-1,-1); // big spread ranch
  2092. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],780.9633,1882.2065,4.8408,89.5654,-1,-1); // ammu whitewood
  2093. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2222.2300,2737.2322,10.6173,1.6180,-1,-1); //
  2094. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2061.4292,2479.7285,10.6953,359.0092,-1,-1); //
  2095. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],894.1536,2041.3546,11.0503,268.4199,-1,-1); // drive whitewood
  2096. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1466.5176,2794.3064,10.6180,145.2352,-1,-1); // yellow golf course
  2097. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2175.2969,2787.4104,10.6953,179.2941,-1,-1); // burgershot spinybed
  2098. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2139.6077,2755.6406,10.6953,89.4185,-1,-1); // gas station spinybed
  2099. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2122.4343,2468.9380,10.6953,179.8108,-1,-1); // carpark west of PD
  2100. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2119.3088,2073.7498,10.5469,179.1566,-1,-1); // outside sex shop on strip
  2101. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2075.7437,1516.4045,10.5469,180.3198,-1,-1); // outside ryal casino
  2102. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1200.3418,1605.9650,6.5845,179.6425,-1,-1); // on road near taxi spawn
  2103. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-79.0382,1340.8115,10.7928,185.4178,-1,-1); // lil probe in
  2104. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-176.6438,1217.0244,19.5219,88.7960,-1,-1); // dohnut shop fort carson
  2105. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-404.7926,1370.8772,30.8708,42.2148,-1,-1); // offroad at big ear
  2106. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2044.6632,1927.9281,11.9202,354.6493,-1,-1); //
  2107. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1942.2788,1345.0945,8.9603,181.0246,-1,-1); //
  2108. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1947.9371,2639.0198,10.5226,92.0482,-1,-1); //
  2109. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2510.7854,1676.5236,10.5994,314.6122,-1,-1); //
  2110. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2456.5396,1267.3923,10.5997,178.5381,-1,-1); //
  2111. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-336.7605,1514.7904,75.1385,181.1912,-1,-1); // satalite spawn
  2112. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-18.1628,2329.3164,23.9201,177.7238,-1,-1); // snakefarm
  2113. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-231.9656,2594.9744,62.4826,179.1445,-1,-1); // at cafe on cliff abandond airstrip
  2114. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1196.4055,1820.1152,41.4984,45.6327,-1,-1); // clucken bell desert
  2115. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],505.6008,1111.3848,14.6296,354.4701,-1,-1); // north of hunter quarry
  2116. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-291.4648,1308.0525,53.8902,260.3672,-1,-1); // cafe at big ear
  2117. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-330.4060,1514.7786,75.1910,359.6922,-1,-1); // satalite
  2118. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1964.7128,2639.1292,10.5749,90.2920,-1,-1); //
  2119. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2204.5981,2730.9722,10.6520,272.0461,-1,-1); //
  2120. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-670.3410,2306.2034,135.2072,90.4189,-1,-1); // jump track across river
  2121. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-210.5110,2595.1895,62.5347,177.6762,-1,-1); // cliff over abandond air
  2122. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],970.9341,2164.9844,10.6520,270.5607,-1,-1); // meat prosess plant whitewood
  2123. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1310.7207,2021.6523,10.9211,91.1905,-1,-1); // drive in redsands
  2124. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2142.5046,1426.2795,10.8005,268.6929,-1,-1); // bobcat
  2125. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2512.3438,1271.3553,10.8008,358.8993,-1,-1); //
  2126. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2422.2522,1119.8549,10.7286,180.6664,-1,-1); //
  2127. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2460.5740,918.6953,10.8068,88.7742,-1,-1); //
  2128. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2368.7251,1003.8484,10.8130,269.6161,-1,-1); //
  2129. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2151.3071,947.1481,10.7061,359.4868,-1,-1); //
  2130. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2179.5471,987.5303,10.8088,0.1205,-1,-1); //
  2131. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1702.6190,1726.4701,10.8177,0.6847,-1,-1); //
  2132. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1607.5125,1850.4384,10.8098,180.6895,-1,-1); //
  2133. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1474.4716,1901.2627,11.0635,272.1886,-1,-1); //
  2134. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1499.5348,2022.5737,10.7990,180.9890,-1,-1); //
  2135. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1024.5807,1749.4064,10.8083,88.6422,-1,-1); //
  2136. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1082.7098,1795.6642,10.8093,179.4237,-1,-1); //
  2137. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1022.5822,1982.3940,11.1391,357.4550,-1,-1); //
  2138. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],920.0219,2012.7793,11.0556,269.9519,-1,-1); //
  2139. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],796.8222,1691.1097,5.2675,89.5603,-1,-1); //
  2140. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],711.4960,1947.8843,5.5269,359.8099,-1,-1); //
  2141. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],404.3861,2540.0325,16.5288,327.7624,-1,-1); //
  2142. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-22.0977,2328.0559,24.1315,177.9422,-1,-1); //
  2143. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1496.5138,2203.9329,10.8090,359.3404,-1,-1); //
  2144. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1908.3434,2290.1626,10.8081,178.6591,-1,-1); //
  2145. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2166.7024,2349.9302,10.6575,268.9872,-1,-1); //
  2146. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2592.8467,2275.1633,10.8071,89.5999,-1,-1); //
  2147. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1669.7308,1306.2875,10.5538,177.8499,-1,-1); // airport cpark
  2148. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1730.3628,1447.8494,10.4771,269.6690,-1,-1); // airport terminal lv
  2149. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2222.2300,2730.7529,10.4755,359.2046,-1,-1); //
  2150. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2019.0457,1535.9329,10.4600,269.1005,-1,-1); // pirate ship
  2151. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2211.8584,1518.4458,10.5555,179.2325,-1,-1); // behind royal casino
  2152. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2445.7397,1629.1641,10.5528,177.3865,-1,-1); // behind caligs
  2153. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2458.5210,1337.0839,10.5538,359.0376,-1,-1); // carpark near caligs
  2154. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2549.6392,1318.4952,10.4744,90.0143,-1,-1); //
  2155. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2647.2390,1098.4166,10.5510,268.8929,-1,-1); // gas station
  2156. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2309.3301,699.2015,10.8861,181.5882,-1,-1); //
  2157. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2134.8291,1426.2422,10.5636,269.5263,-1,-1);
  2158. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2139.8093,1794.5874,10.5635,63.0217,-1,-1); //
  2159. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2509.0706,2133.0024,10.4142,269.5813,-1,-1); //
  2160. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2103.7922,2072.6116,10.5637,89.5842,-1,-1); //
  2161. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1693.0393,2053.3630,10.9362,90.2718,-1,-1); //
  2162. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1391.9200,1927.5245,10.4863,0.3621,-1,-1); //
  2163. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],676.7159,1948.0022,5.2821,359.2208,-1,-1); //
  2164. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-84.3122,1370.4288,10.0163,184.9445,-1,-1); //
  2165. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-101.0278,1336.9587,9.9952,5.1794,-1,-1); //
  2166. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],50.1873,1382.6958,10.8168,187.0010,-1,-1); //
  2167. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],98.6146,1062.7432,13.3525,180.9205,-1,-1); //
  2168. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-317.8594,1514.7922,75.0378,178.9677,-1,-1);
  2169. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-292.7351,1294.7372,53.3600,259.0432,-1,-1); //
  2170. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-176.2906,1225.6606,19.4219,270.1168,-1,-1); //
  2171. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-26.1015,2326.6606,23.8203,178.0624,-1,-1); //
  2172. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-208.4279,2767.8000,62.1466,357.6187,-1,-1); //
  2173. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2817.9731,2247.1655,10.5000,268.0619,-1,-1); //
  2174. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-213.2182,2609.1267,62.3828,180.1487,-1,-1); //
  2175. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],348.1575,2540.0422,16.4285,1.0227,-1,-1); //
  2176. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1470.8833,2799.5376,10.4234,132.2754,-1,-1); //
  2177. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1644.5061,2737.6892,10.4229,270.5334,-1,-1); //
  2178. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1959.8740,2755.2695,10.5000,359.8044,-1,-1); //
  2179. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2171.4063,2000.5366,10.5000,90.3243,-1,-1); //
  2180. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1392.7075,705.3434,10.5041,180.2693,-1,-1); // windsor
  2181. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-681.3878,966.9536,11.8166,268.7682,-1,-1); // windsor
  2182. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1457.0267,1870.2560,32.3172,182.4489,-1,-1); // windsor
  2183. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1716.3654,1470.8850,10.3304,163.3052,-1,-1); // elegy lv airport
  2184. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2300.9243,1433.6844,10.4829,89.9353,-1,-1); // elegy multistory
  2185. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2099.2659,1749.8036,10.8315,332.1214,-1,-1); // elegy caligs
  2186. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2044.0842,2142.6130,10.4799,271.7972,-1,-1); // elegy lane off strip
  2187. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2529.3408,2540.2446,10.4802,270.4623,-1,-1); // elegy
  2188. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2216.1257,1518.4196,10.6585,180.2177,-1,-1); // phoenix
  2189. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2103.4451,2079.1924,10.6584,271.0941,-1,-1); //
  2190. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2502.0288,2132.9226,10.5101,271.5238,-1,-1); //
  2191. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2587.6111,2056.8606,10.6585,90.8876,-1,-1); //
  2192. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2565.2998,1387.2158,10.6588,178.9306,-1,-1); //
  2193. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2433.0154,692.6452,10.5813,180.8976,-1,-1); //
  2194. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],984.1456,1734.8074,8.4900,271.4649,-1,-1); //
  2195. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],726.7349,1947.5322,5.3775,359.7186,-1,-1); //
  2196. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2491.8164,936.2037,10.6657,359.5074,-1,-1); //
  2197. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-105.2983,1094.8826,19.4322,89.8165,-1,-1); //
  2198. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-159.0712,1234.0072,19.5806,182.7559,-1,-1); //
  2199. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-354.1105,1521.4944,75.3982,86.8424,-1,-1); //
  2200. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-367.2291,1528.3917,75.2938,260.0083,-1,-1); //
  2201. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-371.3909,1591.6670,76.9201,226.5213,-1,-1); // Satalite
  2202. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2785.6228,2196.0696,11.1906,267.7400,-1,-1); //
  2203. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2438.8613,2564.4507,22.2463,163.7896,-1,-1); // monster
  2204. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2907.8491,1881.9324,11.6959,177.6743,-1,-1); // monster
  2205. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2038.6801,1333.4821,10.4780,180.3118,-1,-1); // alpha
  2206. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2342.0325,1006.8772,10.5459,358.8515,-1,-1); //
  2207. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2422.2505,1126.3094,10.5495,179.3824,-1,-1); //
  2208. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2444.6147,1267.3749,10.6272,359.6434,-1,-1); //
  2209. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2504.0164,1413.1415,10.6266,90.3205,-1,-1); //
  2210. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2631.1201,1845.7640,10.6260,270.3058,-1,-1); //
  2211. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2534.4775,2014.5391,10.6268,89.1626,-1,-1); //
  2212. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2440.5342,2017.2339,10.6263,270.7521,-1,-1); //
  2213. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2103.4380,2062.7900,10.6270,268.5229,-1,-1); //
  2214. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2075.2107,2042.4025,10.6262,270.2822,-1,-1); //
  2215. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2533.5251,929.2467,10.6332,268.3806,-1,-1); //
  2216. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2393.8105,989.9267,10.6263,268.6155,-1,-1); //
  2217. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2189.0762,921.4905,10.6263,270.9811,-1,-1); //
  2218. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1878.4082,2061.2112,10.6269,254.0050,-1,-1); //
  2219. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1731.2261,1928.2024,10.6269,90.2971,-1,-1); // new alpha
  2220. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1373.4199,1903.6282,10.9680,91.8769,-1,-1); //
  2221. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1024.9696,1793.7625,10.6266,88.4433,-1,-1); //
  2222. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],781.0677,1886.7731,4.8076,88.5104,-1,-1); //
  2223. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],681.2740,1948.1652,5.3458,357.4381,-1,-1); //
  2224. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-9.3990,2341.9578,23.9466,270.1199,-1,-1); //
  2225. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-96.0419,2657.9988,41.7356,201.2648,-1,-1); //
  2226. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-222.8627,2595.2273,62.5092,180.9099,-1,-1); //
  2227. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-303.4222,2706.5068,62.4170,93.7133,-1,-1); //
  2228. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1940.0819,2163.8765,10.4169,180.8596,-1,-1);
  2229. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2104.3523,2098.3245,10.4130,273.1944,-1,-1); //
  2230. //AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2441.1829,707.4238,10.7743,88.7547,-1,-1); //
  2231. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2166.1479,1193.3717,10.3299,158.6668,-1,-1); //
  2232. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1534.0114,1020.0434,10.4784,176.5594,-1,-1); //
  2233. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1963.9216,2154.8350,10.5752,89.8630,-1,-1); // 350
  2234. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2038.7606,1468.8704,10.4258,179.9187,-1,-1); // 350
  2235. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2076.2529,1310.6661,10.4258,180.2438,-1,-1); // 350
  2236. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2131.9915,935.5422,10.5735,359.5219,-1,-1); // 350
  2237. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2264.5498,2418.4700,10.5401,90.6762,-1,-1); // esperanto
  2238. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2195.3406,2502.8000,10.6177,179.4278,-1,-1); // esperanto
  2239. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1899.9891,2419.2949,10.6198,90.1853,-1,-1); // esperanto
  2240. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1978.5405,2239.5093,26.9928,89.9080,-1,-1); // esperanto
  2241. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1525.9907,2280.7429,10.6178,0.3453,-1,-1); //
  2242. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2818.1323,2238.8782,10.7877,269.5479,-1,-1); //
  2243. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2220.0222,957.9650,10.7881,3.9536,-1,-1); // hotknife
  2244. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2016.8037,1334.5527,9.5748,269.6653,-1,-1); // hotknife
  2245. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2352.4038,1412.1626,10.7835,269.7344,-1,-1); // hotknife
  2246. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2784.6040,1648.2450,10.7967,299.2473,-1,-1); // hotknife
  2247. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2044.9230,1905.8262,12.0130,183.7422,-1,-1); //
  2248. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2044.1902,1916.5961,12.0222,180.1309,-1,-1); //
  2249. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2070.7637,2318.5427,10.3382,52.5716,-1,-1); // new cars
  2250. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2026.6682,2652.4243,10.4800,2.4317,-1,-1); //
  2251. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1777.7482,2717.1541,10.3310,89.8452,-1,-1); //
  2252. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1352.3927,2695.5054,10.4785,0.6355,-1,-1); //
  2253. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1286.0125,2648.6936,10.4803,1.4406,-1,-1); //
  2254. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],997.3206,2631.0491,10.4391,142.7486,-1,-1); //
  2255. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],941.8555,2325.2915,10.4794,195.3492,-1,-1); //
  2256. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],632.1021,1695.5710,6.6544,215.5264,-1,-1); //
  2257. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],541.6105,1549.0546,0.6281,115.7740,-1,-1); //
  2258. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],259.1303,1144.8044,10.6470,117.0184,-1,-1); //
  2259. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1299.0778,263.2774,18.9728,338.3049,-1,-1); //
  2260. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1212.3887,363.8045,19.0226,65.9972,-1,-1); //
  2261. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],482.1411,-333.7878,35.5909,165.0099,-1,-1); //
  2262. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],242.2467,-1343.9393,51.6967,309.9397,-1,-1); //
  2263. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],414.8512,-1235.9982,50.7138,291.5662,-1,-1); //
  2264. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1020.0690,-1043.6227,30.9945,268.7721,-1,-1); //
  2265. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1045.9290,-1043.7478,31.3842,269.9538,-1,-1); //
  2266. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],1361.3573,-1273.4440,12.9492,180.2498,-1,-1); //
  2267. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],2161.9277,-1631.7932,13.6069,255.7534,-1,-1); //
  2268. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-2211.8093,572.0299,34.5817,268.9936,-1,-1); //
  2269. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1820.9757,598.9570,34.5830,271.5713,-1,-1); //
  2270. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1699.3866,1269.6954,28.6220,339.6370,-1,-1); //
  2271. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1657.9635,1213.2469,6.8155,72.6146,-1,-1); //
  2272. AddStaticVehicle(VehileIDPermessed[random(sizeof(VehileIDPermessed))],-1599.9417,672.4755,6.7568,2.0388,-1,-1); //
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281. for (new c = 0; c < 650; c++)
  2282. {
  2283. BoughtCars[c] =0;
  2284. }
  2285. LinkVehicleToInterior(155, 15);
  2286. LinkVehicleToInterior(156, 15);
  2287. LinkVehicleToInterior(157, 15);
  2288. LinkVehicleToInterior(158, 15);
  2289. LinkVehicleToInterior(159, 15);
  2290. LinkVehicleToInterior(160, 15);
  2291. LinkVehicleToInterior(161, 15);
  2292. LinkVehicleToInterior(162, 15);
  2293. LinkVehicleToInterior(163, 15);
  2294. LinkVehicleToInterior(164, 15);
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306. // ATM MACHINES
  2307. CreateObject(2754, 2194.1799,1974.6198,12.2894, 0, 0, 0); // ATM OFF STRIP 24-7
  2308. CreateObject(2754, 1139.6754,2088.2290,11.0625, 0, 0, 0); // ATM WHITEWOOD EST
  2309. CreateObject(2754, 2233.2556,959.6172,10.8203, 0, 0, 0); // ATM AMMU SOUTH
  2310. CreateObject(2754, 2541.4844,2266.1074,10.8203, 0, 0, 0); // ATM ROCA EAST
  2311. // LVPD GATES
  2312. southcopgate = CreateObject(16775, 2320.6426,2445.9233,5.2734, 0,0,90.0); //lvpd southern gate
  2313. westcopgate = CreateObject(16775, 2294.1990,2500.2039,4.2959, 0,0,90.0); //lvpd western gate
  2314. // CALIGS VAULT
  2315. bombdoor = CreateObject(5043, 2144.2280,1627.0021,994.2676, 0,0,90.0); //caligs bomb door
  2316. CreateObject(5043, 2146.0840,1629.4834,993.5761, 10.0,20.0,95.0); //caligs bomb door after blow
  2317. CreateObject(1501,2142.4000,1620.9189,1000.0688, 0,0,0); // blocked off glitch
  2318. // RAMPS
  2319. CreateObject(1655, 2094.3435,1085.0034,10.4791, 0,0,200.0); //rampcomealot
  2320. CreateObject(1655, 2051.2725,825.4291,6.8265, 0,0,180.0); //rampbottomofstrip
  2321. CreateObject(1655, 2121.9558,1749.3987,10.3850, 0,0,290.0); //rampcaligs
  2322. // ALCATRAZ
  2323. CreateObject(10610,3818.9189,462.4248,44.9047, 0,0,0); //alkatraz building
  2324. CreateObject(9241, 3747.5049,462.7799,35.9160, 0, 0, 0); // Helipad
  2325. CreateObject(16684,3843.6028,466.0061,35.0500, 0,0,0); //runway alkatraz TEMPHEIGHT
  2326. CreateObject(16684,3800.6028,466.0061,35.1500, 0,0,0); //runway alkatraz TEMPHEIGHT
  2327. CreateObject(7020,3903.8245,439.2713,0.1845, 90.0,0,0); //temp rock south side
  2328. CreateObject(7020,3847.9900,439.2713,0.1845, 90.0,0,0); //temp rock south side
  2329. CreateObject(7020,3792.3772,439.2713,0.1845, 90.0,0,0); //temp rock south side
  2330. CreateObject(7020,3736.7644,439.2713,0.1845, 90.0,0,0); //temp rock south side
  2331. CreateObject(7020,3681.1516,439.2713,0.1845, 90.0,0,0); //temp rock south side
  2332. CreateObject(7020,3925.3245,490.3089,0.1845, 90.0,180.0,0); //temp rock north side
  2333. CreateObject(7020,3869.7117,490.3089,0.1845, 90.0,180.0,0); //temp rock north side
  2334. CreateObject(7020,3814.0989,490.3089,0.1845, 90.0,180.0,0); //temp rock north side
  2335. CreateObject(7020,3758.4861,490.3089,0.1845, 90.0,180.0,0); //temp rock north side
  2336. CreateObject(7020,3702.8733,490.3089,0.1845, 90.0,180.0,0); //temp rock north side
  2337. CreateObject(7020,3661.5684,475.2261,0.1845, 90.0,-90.0,0); //temp rock west side
  2338. CreateObject(7020,3946.0205,454.2261,0.1845, 90.0,-270.0,0); //temp rock east side
  2339. CreateObject(9829,3653.1909,469.4975,-60.0422, 0,0,0); //temp jetty
  2340. CreateObject(1696,3719.6230,440.2697,36.1664, 0,0,0); //temp fucking graphic coverup
  2341. CreateObject(3361,3662.1975,434.8389,7.2625, 0,0,180.0); //alkatraz jetty stairs 1
  2342. CreateObject(3361,3670.5000,434.8389,11.2625, 0,0,180.0); //alkatraz jetty stairs 2
  2343. CreateObject(3361,3678.8025,434.8389,15.2625, 0,0,180.0); //alkatraz jetty stairs 3
  2344. CreateObject(3361,3687.1050,434.8389,19.2625, 0,0,180.0); //alkatraz jetty stairs 4
  2345. CreateObject(3361,3695.4075,434.8389,23.2625, 0,0,180.0); //alkatraz jetty stairs 5
  2346. CreateObject(3361,3703.7100,434.8389,27.2625, 0,0,180.0); //alkatraz jetty stairs 6
  2347. CreateObject(3361,3712.0125,434.8389,31.2625, 0,0,180.0); //alkatraz jetty stairs 7
  2348. CreateObject(3361,3720.3150,434.8389,35.2625, 0,0,180.0); //alkatraz jetty stairs 7
  2349. CreateObject(3361,3724.0175,440.9389,35.2625, 0,0,90.0); //alkatraz jetty stairs 7
  2350. CreateObject(16133,3949.3660,436.9482,-3.0720, 0,0,0); // rear rocks
  2351. CreateObject(16133,3949.5146,443.9666,-3.0720, 0,0,0); // rear rocks
  2352. CreateObject(16133,3949.5020,456.9551,-3.0720, 0,0,0); // rear rocks
  2353. CreateObject(16133,3950.1038,469.2790,-3.0720, 0,0,0); // rear rocks
  2354. CreateObject(16133,3950.0002,480.4923,-3.0720, 0,0,0); // rear rocks
  2355. CreateObject(16133,3949.7227,491.7022,-3.0720, 0,0,-260.0); //south rocks
  2356. CreateObject(16133,3939.9426,434.4523,-3.0720, 0,0,-260.0); //south rocks
  2357. CreateObject(16133,3931.4194,435.1336,-3.0720, 0,0,-260.0); //south rocks
  2358. CreateObject(16133,3915.6609,434.1054,-3.0720, 0,0,-260.0); //south rocks
  2359. CreateObject(16133,3900.5269,434.9130,-3.0720, 0,0,-260.0); //south rocks
  2360. CreateObject(16133,3877.0825,434.7708,-3.0720, 0,0,-260.0); //south rocks
  2361. CreateObject(16133,3861.7368,434.8331,-3.0720, 0,0,-260.0); //south rocks
  2362. CreateObject(16133,3842.6758,434.4243,-3.0720, 0,0,-260.0); //south rocks
  2363. CreateObject(16133,3824.8665,434.0956,-3.0720, 0,0,-260.0); //south rocks
  2364. CreateObject(16133,3804.7859,434.6244,-3.0720, 0,0,-260.0); //south rocks
  2365. CreateObject(16133,3789.3418,434.9493,-3.0720, 0,0,-260.0); //south rocks
  2366. CreateObject(16133,3772.1704,435.3078,-3.0720, 0,0,-260.0); //south rocks
  2367. CreateObject(16133,3755.1541,434.6487,-3.0720, 0,0,-260.0); //south rocks
  2368. CreateObject(16133,3736.2070,434.6945,-3.0720, 0,0,-260.0); //south rocks
  2369. CreateObject(16133,3715.8875,434.3674,-3.0720, 0,0,-260.0); //south rocks
  2370. CreateObject(16133,3704.3535,425.3149,-3.0720, 0,0,-260.0); //south rocksv
  2371. CreateObject(16133,3694.1118,423.1894,-3.0720, 0,0,-260.0); //south rocks
  2372. CreateObject(16133,3924.9871,494.2710,-3.0720, 0,0,260.0); //north rocks
  2373. CreateObject(16133,3909.9592,494.3855,-3.0720, 0,0,260.0); //north rocks
  2374. CreateObject(16133,3887.1895,495.0713,-3.0720, 0,0,260.0); //north rocks
  2375. CreateObject(16133,3868.9417,495.3724,-3.0720, 0,0,260.0); //north rocks
  2376. CreateObject(16133,3852.3093,494.3452,-3.0720, 0,0,260.0); //north rocks
  2377. CreateObject(16133,3833.7080,494.7250,-3.0720, 0,0,260.0); //north rocks
  2378. CreateObject(16133,3815.5708,494.6730,-3.0720, 0,0,260.0); //north rocks
  2379. CreateObject(16133,3798.0154,494.6982,-3.0720, 0,0,260.0); //north rocks
  2380. CreateObject(16133,3782.4626,494.5486,-3.0720, 0,0,260.0); //north rocks
  2381. CreateObject(16133,3768.0962,494.8924,-3.0720, 0,0,260.0); //north rocks
  2382. CreateObject(16133,3750.6816,496.3246,-3.0720, 0,0,260.0); //north rocks
  2383. CreateObject(16133,3736.1655,495.4835,-3.0720, 0,0,260.0); //north rocks
  2384. CreateObject(16133,3719.0859,495.2566,-3.0720, 0,0,260.0); //north rocks
  2385. CreateObject(16133,3712.8257,502.3133,-3.0720, 0,0,260.0); //north rocks
  2386. CreateObject(16133,3722.2229,515.6876,-3.0720, 0,0,260.0); //north rocks
  2387. CreateObject(3279,3919.0789,446.4962,34.9047, 0,0,180.0); //alkatraz a69 tower
  2388. CreateObject(3279,3917.3616,480.4556,34.9047, 0,0,180.0); //alkatraz a69 tower
  2389. CreateObject(3279,3667.6270,444.2554,34.9047, 0,0,0); //alkatraz a69 tower
  2390. CreateObject(3279,3666.9414,483.3572,34.9047, 0,0,0); //alkatraz a69 tower
  2391. CreateObject(3877,3577.4614,493.6883,6.2625, 0,0,0); //alkatraz red light jetty
  2392. CreateObject(3877,3577.3799,463.3489,6.2625, 0,0,0); //alkatraz red light jetty
  2393. CreateObject(3876,3808.4646,464.9513,55.4060, 0,0,0); //// long ariel
  2394. CreateObject(1695,3828.4995,460.1334,55.4060, 0,0,0); //vent
  2395. CreateObject(1694,3813.6328,454.2547,60.4060, 0,0,0); // ariel stack
  2396. CreateObject(3502,3785.1304,504.2955,7.8628, 0,0,0); // sewer pipe
  2397. // AIRCRAFT CARRIER
  2398. CreateObject(10771,2969.0896,472.0975,5.8692, 0,0,0.0); // hull
  2399. CreateObject(11145,2906.0896,472.0975,4.8692, 0,0,0.0); // lower deck
  2400. CreateObject(11149,2963.0000,466.9000,12.4000, 0,0,0.0); // corridors
  2401. CreateObject(11146,2960.2000,472.6000,12.7392, 0,0,0.0); // hanger
  2402. CreateObject(10770,2972.2000,464.5000,39.0692, 0,0,0.0); // bridge
  2403. CreateObject(10772,2970.3500,472.0975,17.6666, 0,0,0.0); // lines
  2404. carrierlift = CreateObject(3115,2870.2490,472.1000,17.3583, 0,0,0.0); // lift
  2405. CreateObject(11237,2976.3320,464.2060,31.5689, 0,0,0.0); // bits
  2406. // LVPD CAMS
  2407. CreateObject(1886,195.2251,172.8935,1006.1265, 10.0,0,-150.0); // cam cell 3
  2408. CreateObject(1886,199.4642,172.9892,1006.1265, 10.0,0,-150.0); // cam cell 2
  2409. CreateObject(1886,196.6696,163.5814,1006.1265, 10.0,0,40.0); // cam cell 1
  2410. // ADMIN HQ INTERIOR
  2411. CreateObject(17951,966.4022,-52.9265,1001.1172, 90.0,0,0); // admin hq garage door interior
  2412. // LVPD AIR STAIR
  2413. CreateObject(3743,1334.2067,1270.0383,13.8203,0,0,0); // stair lift
  2414. CreateObject(6157, 2095.9791,1235.3461,19.8577, 0, 0, 0); //NEw house againnnnnnnn
  2415. CreateObject(17951,-2638.4917,1403.5358,908.4609, 90.0,0,90.0); //block lowe admin hq jissy
  2416. CreateObject(17951,-2634.8997,1403.5358,908.4609, 90.0,0,90.0); //block lowe admin hq jissy
  2417. CreateObject(10773,-2636.7417,1413.4395,7.1016, 0,0,0); //block outside jizzy lower
  2418. CreateObject(10773,-2662.8811,1410.7958,23.8984, 0,0,90.0); //block outside jizzy upper
  2419. CreateObject(3852,-2661.0266,1416.9397,922.4953, 0,0,0); // inside block upper
  2420. CreateObject(7521, 2086.4880,1353.7477,11.8203, 0, 0, 90.0); // wall
  2421. // REDSANDS Door Block
  2422. CreateObject(17951,1133.2029,-11.8315,1000.6797, 90.0,0,90.0); // garage door interior
  2423. // REDSANDS Door Block
  2424. CreateObject(2003,351.8482,217.2340,1007.3828, 0.0,0,90.0); // safe in city hall
  2425.  
  2426.  
  2427.  
  2428. CarSold[3] =0;
  2429. CarSold[4] =0;
  2430. CarSold[5] =0;
  2431. CarSold[6] =0;
  2432. CarSold[7] =0;
  2433. CarSold[8] =0;
  2434. CarSold[9] =0;
  2435. CarSold[10] =0;
  2436. CarSold[11] =0;
  2437. CarSold[12] =0;
  2438. CarSold[13] =0;
  2439. CarSold[14] =0;
  2440. CarSold[15] =0;
  2441. CarSold[16] =0;
  2442. CarSold[17] =0;
  2443. CarSold[18] =0;
  2444. CarSold[19] =0;
  2445. CarSold[20] =0;
  2446. CarSold[21] =0;
  2447. CarSold[22] =0;
  2448. CarSold[23] =0;
  2449. CarSold[24] =0;
  2450. CarSold[25] =0;
  2451. CarSold[26] =0;
  2452. CarSold[27] =0;
  2453. CarSold[28] =0;
  2454. CarSold[29] =0;
  2455. CarSold[30] =0;
  2456. BonusCars[1] = 0;
  2457. BonusCars[2] = 0;
  2458.  
  2459.  
  2460.  
  2461. return 1;
  2462. }
  2463.  
  2464. public OnGameModeExit()
  2465. {
  2466. ircDisconnect(EchoConnection);
  2467. return 1;
  2468. }
  2469.  
  2470.  
  2471. public EventTimer()
  2472. {
  2473. TimerSet = true;
  2474. ircPollEvents();
  2475. }
  2476. public ircOnConnect(conn)
  2477. {
  2478. // join the echo channel
  2479. if (!TimerSet) SetTimer("EventTimer", 500, 1); // listen for callbacks from this channel
  2480. Connections++; // save number of connections
  2481. //ircSendRawData(conn, "USER robertdoc Rob` Rob` :Rob's bot");
  2482. //ircSendRawData(conn, "NICK KUMB");
  2483. //ircSendRawData(conn, "OPER Rob` karine");
  2484. //ircSendRawData(conn, "JOIN #brute-force");
  2485. //ircSendRawData(conn,"SILNCE *");
  2486. ircJoinChan(conn, EchoChan);
  2487. }
  2488.  
  2489.  
  2490.  
  2491. stock ircIsOp(conn,channel[],user[])
  2492. {
  2493. new ircLevel[3];
  2494. ircGetUserLevel(conn, channel, user, ircLevel);
  2495. if(!strcmp(ircLevel, "~", true,1) || !strcmp(ircLevel, "&", true,1) || !strcmp(ircLevel, "@", true,1)) return 1;
  2496. return 0;
  2497. }
  2498.  
  2499. stock ircIsHalfOp(conn,channel[],user[])
  2500. {
  2501. new ircLevel[3];
  2502. ircGetUserLevel(conn, channel, user, ircLevel);
  2503. if(!strcmp(ircLevel, "%", true,1)) return 1;
  2504. return 0;
  2505. }
  2506.  
  2507. stock ircHasVoice(conn,channel[],user[])
  2508. {
  2509. new ircLevel[4];
  2510. ircGetUserLevel(conn, channel, user, ircLevel);
  2511. if(!strcmp(ircLevel, "+", true,1)) return 1;
  2512. return 0;
  2513. }
  2514.  
  2515.  
  2516.  
  2517. public ircOnUserSay(conn, channel[], user[], message[])
  2518. {
  2519. if (channel[0] != '#') return 0;
  2520.  
  2521. if (message[0] != '!') return 1; // we only want messages starting with ~
  2522. new space = (strfind(message, " ")); // find the location of the space
  2523. new cmdlen; // holds the length of the command
  2524.  
  2525. if (space>=1) // do we have a space?
  2526. {
  2527. new lenmsg = strlen(message); // get the length of the entire message
  2528. cmdlen = ((lenmsg-(lenmsg-space))-1); // generate length of command
  2529. }
  2530. else
  2531. {
  2532. cmdlen = (strlen(message)-1); // generate the length of command
  2533. }
  2534. if (cmdlen == 3) // is our command 3 characters long?
  2535. {
  2536. irccmd(say,3,conn,channel,user,message);
  2537. irccmd(ban,3,conn,channel,user,message);
  2538. irccmd(gmx,3,conn,channel,user,message);
  2539. }
  2540. else if (cmdlen == 4) //is our command 4 characters long?
  2541. {
  2542. irccmd(mute,4,conn,channel,user,message);
  2543. irccmd(join,4,conn,channel,user,message);
  2544. irccmd(kick,4,conn,channel,user,message);
  2545. //irccmd(warn,4,conn,channel,user,message);
  2546. }
  2547. else if (cmdlen == 5) // commands 5 chars
  2548. {
  2549. irccmd(unban,5,conn,channel,user,message);
  2550. }
  2551. else if (cmdlen == 6) // commands 6 chars
  2552. {
  2553. irccmd(unmute,6,conn,channel,user,message);
  2554. }
  2555. else if (cmdlen == 7)
  2556. {
  2557. irccmd(unbanip,7,conn,channel,user,message);
  2558. }
  2559. return 1;
  2560. }
  2561. /*irccmd_warn(conn, channel[], user[], params[])
  2562. {
  2563. if(!ircIsOp(conn,channel,user) && !ircIsHalfOp(conn,channel,user)) return false;
  2564. new playerName[25];
  2565. new strMsg[150];
  2566. new giveplayerid[25];
  2567.  
  2568. for(new a=0; a<=MAX_PLAYERS; a++)
  2569. {
  2570. if(IsPlayerConnected(a))
  2571. {
  2572. GetPlayerName(a,playerName,16);
  2573. giveplayerid = GetPlayerID(playerName,1);
  2574. new space = (strfind(playerName, params));
  2575. if(space != -1)
  2576. {
  2577. format(strMsg, sizeof(strMsg), "**(ADMIN WARN)** \2;%s(%d)\2;", playerName,a);
  2578. SendClientMessageToAll(0xFF7F50AA, strMsg);
  2579. ircSay(conn,channel,strMsg);
  2580. new rpwarnings =0;
  2581. rpwarnings =dUserINT(playerName).("rpabusewar");
  2582. rpwarnings +=1;
  2583. if(rpwarnings >=3) {
  2584. SetPlayerInterior(giveplayerid,10);
  2585. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  2586. SetPlayerFacingAngle(giveplayerid,2.2339);
  2587. SetCameraBehindPlayer(giveplayerid);
  2588. GetPlayerName(giveplayerid, string, 24);
  2589. format(string, 100, "**(AUTO KICK)** %s(%d) Too many admin warnings.",string,giveplayerid);
  2590. SendClientMessageToAll(0xFF7F50AA, string);
  2591. printf("%s", string);
  2592. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",0);
  2593. Kicking[giveplayerid] = 1;
  2594. SetTimer("KickPlayer",700,0);
  2595. }
  2596. else {
  2597. if(rpwarnings <=2) {
  2598. new output[255];
  2599. AdminKilled[giveplayerid] =1;s
  2600. SendClientMessageToAll(0xFF7F50AA, string);
  2601. SendClientMessage(giveplayerid,COLOR_RED,"YOU HAVE BEEN WARNED BY SERVER ADMIN.");
  2602. SendClientMessage(giveplayerid,COLOR_RED,"Further abuse will result in more warnings and possible a kick/ban");
  2603. SendClientMessage(giveplayerid,COLOR_RED,"Visit www.lvrcr.com for details or speak to a server admin");
  2604. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",rpwarnings);
  2605.  
  2606. }
  2607. }
  2608. return true;
  2609. }
  2610. }
  2611. }
  2612. format(strMsg, sizeof(strMsg), "2*** \2;%s\2; is not found on the server.", params);
  2613. ircSay(conn,channel,strMsg);
  2614. return true;
  2615. }
  2616. */
  2617. irccmd_unban(conn, channel[], user[], params[])
  2618. {
  2619. if(!ircIsOp(conn,channel,user)) return false;
  2620. printinfo
  2621. dUserSetINT(params).("nameban",0);
  2622. new strMsg[150];
  2623. format(strMsg, sizeof(strMsg), "%s Unbanned.", params);
  2624. ircSay(conn,channel,strMsg);
  2625. return true;
  2626. }
  2627.  
  2628. irccmd_unbanip(conn, channel[], user[], params[])
  2629. {
  2630. if(!ircIsOp(conn,channel,user)) return false;
  2631. printinfo
  2632. new strMsg[150];
  2633. new strMsg2[150];
  2634. format(strMsg2, sizeof(strMsg2), "PRIVMSG %s %s unbanned, %s.", user, params, user);
  2635. ircSendRawData(conn, strMsg2);
  2636. format(strMsg, sizeof(strMsg), "unbanip %s", params);
  2637. //ircSay(conn,channel,strMsg);
  2638. SendRconCommand(strMsg);
  2639. return true;
  2640.  
  2641. }
  2642. irccmd_gmx(conn, channel[], user[], params[])
  2643. {
  2644. if(!ircIsOp(conn,channel,user)) return false;
  2645. printinfo
  2646. SendRconCommand("gmx");
  2647. return true;
  2648. }
  2649.  
  2650.  
  2651.  
  2652. irccmd_unmute(conn, channel[], user[], params[])
  2653. {
  2654. if(!ircIsOp(conn,channel,user) && !ircIsHalfOp(conn,channel,user)) return false;
  2655. printinfo
  2656. new playerName[25];
  2657. new strMsg[150];
  2658. for(new a=0; a<=MAX_PLAYERS; a++)
  2659. {
  2660. if(IsPlayerConnected(a))
  2661. {
  2662. GetPlayerName(a,playerName,16);
  2663. new space = (strfind(playerName, params));
  2664. if(space != -1)
  2665. {
  2666. format(strMsg, sizeof(strMsg), "**(ADMIN UNMUTE)** \2;%s(%d)\2;", playerName,a);
  2667. SendClientMessageToAll(0xFF7F50AA, strMsg);
  2668. ircSay(conn,channel,strMsg);
  2669. Muted[a] =0;
  2670. return true;
  2671. }
  2672. }
  2673. }
  2674. format(strMsg, sizeof(strMsg), "2*** \2;%s\2; is not found on the server.", params);
  2675. ircSay(conn,channel,strMsg);
  2676. return true;
  2677. }
  2678.  
  2679. irccmd_mute(conn, channel[], user[], params[])
  2680. {
  2681. if(!ircIsOp(conn,channel,user) && !ircIsHalfOp(conn,channel,user)) return false;
  2682. printinfo
  2683. new playerName[25];
  2684. new strMsg[150];
  2685. for(new a=0; a<=MAX_PLAYERS; a++)
  2686. {
  2687. if(IsPlayerConnected(a))
  2688. {
  2689. GetPlayerName(a,playerName,16);
  2690. new space = (strfind(playerName, params));
  2691. if(space != -1)
  2692. {
  2693. format(strMsg, sizeof(strMsg), "**(ADMIN MUTE)** \2;%s(%d)\2;", playerName,a);
  2694. SendClientMessageToAll(0xFF7F50AA, strMsg);
  2695. ircSay(conn,channel,strMsg);
  2696. Muted[a] =1;
  2697. return true;
  2698. }
  2699. }
  2700. }
  2701. format(strMsg, sizeof(strMsg), "2*** \2;%s\2; is not found on the server.", params);
  2702. ircSay(conn,channel,strMsg);
  2703. return true;
  2704. }
  2705.  
  2706. irccmd_say(conn, channel[], user[], params[])
  2707. {
  2708. if (!ircIsOp(conn,channel,user) && !ircHasVoice(conn,channel,user) && !ircIsHalfOp(conn,channel,user)) return false;
  2709. printinfo
  2710. new msg[112];
  2711. format(msg,sizeof(msg), "%s(IRC) %s", user, params);
  2712. SendClientMessageToAll(0x2587CEAA, msg);
  2713. format(msg, sizeof(msg), "%s(IRC) %s", user, params);
  2714. ircSay(conn, channel, msg);
  2715. return true;
  2716. }
  2717.  
  2718. irccmd_join(conn, channel[], user[], params[])
  2719. {
  2720. if (!ircIsOp(conn,channel,user)) return false;
  2721. printinfo
  2722. new strmessage[64];
  2723. format(strmessage, sizeof(strmessage), "2*** Joining channel \2;%s's\2;...", params);
  2724. ircSay(conn, channel, strmessage);
  2725. ircJoinChan(conn, params);
  2726. return true;
  2727. }
  2728.  
  2729. irccmd_kick(conn, channel[], user[], params[]) // supports kicking by partial nickname
  2730. {
  2731. if (!ircIsOp(conn,channel,user) && !ircIsHalfOp(conn,channel,user)) return false;
  2732. printinfo
  2733. new strname[25];
  2734. new strmessage[150];
  2735. for (new a=0; a<=MAX_PLAYERS; a++)
  2736. {
  2737. if (IsPlayerConnected(a))
  2738. {
  2739. GetPlayerName(a,strname,16);
  2740. new space = (strfind(strname, params));
  2741. if (space != -1)
  2742. {
  2743.  
  2744. format(strmessage, sizeof(strmessage), "**(ADMIN KICK)** \2;%s(%d)\2;", strname,a);
  2745. SendClientMessageToAll(0xFF7F50AA, strmessage);
  2746. ircSay(conn,channel,strmessage);
  2747. Kicking[a] =1;
  2748. SetTimer("KickPlayer",700,0);
  2749. return true;
  2750. }
  2751. }
  2752. }
  2753. format(strmessage, sizeof(strmessage), "2*** \2;%s\2; is not found on the server.", params);
  2754. ircSay(conn,channel,strmessage);
  2755. return true;
  2756. }
  2757.  
  2758.  
  2759. irccmd_ban(conn, channel[], user[], params[]) // supports banning by partial nickname
  2760. {
  2761. if (!ircIsOp(conn,channel,user)) return false;
  2762. printinfo
  2763. new strname[25];
  2764. new strmessage[150];
  2765. for (new a=0; a<=MAX_PLAYERS; a++)
  2766. {
  2767. if (IsPlayerConnected(a))
  2768. {
  2769. GetPlayerName(a,strname,16);
  2770. new space = (strfind(params, strname));
  2771. if (space != -1)
  2772. {
  2773.  
  2774. format(strmessage, sizeof(strmessage), "**(ADMIN BAN)** \2;%s(%d)\2;", strname,a);
  2775. SendClientMessageToAll(0xFF7F50AA, strmessage);
  2776. ircSay(conn,channel,strmessage);
  2777. if(udb_Exists(PlayerName(a)) && PLAYERLIST_authed[a]) {
  2778. dUserSetINT(PlayerName(a)).("nameban",1);
  2779. }
  2780. Banning[a] = 1;
  2781. SetTimer("BanPlayer",700,0);
  2782. return true;
  2783. }
  2784. }
  2785. }
  2786. format(strmessage, sizeof(strmessage), "2*** \2;%s\2; is not found on the server.", params);
  2787. ircSay(conn,channel,strmessage);
  2788. return true;
  2789. }
  2790.  
  2791.  
  2792. public ircOnUserPart(conn, channel[], user[])
  2793. {
  2794. return 1;
  2795. }
  2796.  
  2797. public ircOnUserJoin(conn, channel[], user[])
  2798. {
  2799. return 1;
  2800. }
  2801.  
  2802.  
  2803.  
  2804. public announcement()
  2805. {
  2806. new File:messagefile;
  2807. new line[256];
  2808. if (fexist("messages.txt"))
  2809. {
  2810. messagefile = fopen("messages.txt");
  2811. fread(messagefile, line, sizeof (line));
  2812. new i = strval(line);
  2813. i = random(i) + 1;
  2814. for (; i > 0; i--)
  2815. {
  2816. fread(messagefile, line, sizeof (line));
  2817. }
  2818. SendClientMessageToAll(0x5F9EA0AA, line);
  2819. printf("%s",line);
  2820. fclose(messagefile);
  2821. }
  2822.  
  2823. }
  2824. public robbingdrugscountdown()
  2825. {
  2826. for(new i=0; i < MAX_PLAYERS; i++)
  2827. {
  2828. if(IsPlayerConnected(i))
  2829. {
  2830. if(robbingdrugs[i] >= 2)
  2831. {
  2832. robbingdrugs[i] --;
  2833. new string[100];
  2834. format(string, sizeof(string), "~y~ROBBERY IN PROGRESS~n~~r~STAY IN THE CHECKPOINT");
  2835. GameTextForPlayer(i, string, 2000,3);
  2836. }
  2837. if(robbingdrugs[i] == 1)
  2838. {
  2839. new drugrobrand = random(3000);
  2840. robbingdrugs[i] =0;
  2841. new pname[30];
  2842. new string[100];
  2843. GetPlayerName(i,pname,30);
  2844. format(string, sizeof(string), "%s(%d) Has robbed %d grams of drugs from the Drug House",pname,i,drugrobrand);
  2845. SendClientMessageToAll(0x00C7FFAA,string);
  2846. ircSay(EchoConnection, EchoChan,string);
  2847. format(string, sizeof(string), "~b~DRUG HOUSE~n~~y~ROBBERY COMPLETE~n~~w~%d GRAMS STOLEN!",drugrobrand);
  2848. GameTextForPlayer(i, string, 5000,3);
  2849. oscore = GetPlayerScore(i);
  2850. SetPlayerScore(i, oscore +1);
  2851. DrugsRobbed =1;
  2852. drugs -=drugrobrand;
  2853. PlayerDrugs[i] += drugrobrand;
  2854. format(string, sizeof(string), "Drug House Robbery Complete. You robbed a total of %d grams of drugs",drugrobrand);
  2855. SendClientMessage(i,COLOR_RED, string);
  2856. if(robberrank[i] <=39) {
  2857. SendClientMessage(i,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  2858. robberrank[i] +=1;
  2859. }
  2860. printf("%s(%d) has robbed %s grams of drugs in a Drug House robbery",pname,i,drugrobrand);
  2861. for(new d=0;d<MAX_PLAYERS;d++)
  2862. {
  2863. if(DrugHouseOwner[d] == 1337) {
  2864. new string1[256];
  2865. new string2[256];
  2866. new string3[256];
  2867. format(string1, sizeof(string1), "%s(%d) has robbed %d grams of drugs from your drug house", pname,i,drugrobrand);
  2868. format(string2, sizeof(string2), "You can order more drugs using /orderdrugs");
  2869. format(string3, sizeof(string3), "Type /selldrughouse (id) to sell the drug house");
  2870. SendClientMessage(d, COLOR_ROYALBLUE, string1);
  2871. SendClientMessage(d, COLOR_ROYALBLUE, string2);
  2872. SendClientMessage(d, COLOR_DODGERBLUE, string3);
  2873. }
  2874. }
  2875. }
  2876. }
  2877. }
  2878. }
  2879.  
  2880.  
  2881. public twofoursevenmoveplayer()
  2882. {
  2883. for (new i = 0; i < MAX_PLAYERS; i++)
  2884. {
  2885. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && GetPlayerInterior(i) == 0 && Jailed[i] == 0)
  2886. {
  2887. if(TimeToMoveTwoFourSeven[i] >=1 && TimeToMoveTwoFourSeven[i] <=3)
  2888. {
  2889. TimeToMoveTwoFourSeven[i] --;
  2890. }
  2891. if(TimeToMoveTwoFourSeven[i] == 0)
  2892. {
  2893. if(LeftTwoFourSeven[i] == 1)
  2894. {
  2895. SetPlayerVirtualWorld(i,0);
  2896. SetPlayerInterior(i,0);
  2897. SetPlayerPos(i,1592.2305,2214.1846,10.8203);
  2898. SetPlayerFacingAngle(i,187.0764);
  2899. SetCameraBehindPlayer(i);
  2900. LeftTwoFourSeven[i] =999;
  2901. TimeToMoveTwoFourSeven[i] =999;
  2902. TogglePlayerControllable(i, 1);
  2903. }
  2904. if(LeftTwoFourSeven[i] == 2)
  2905. {
  2906. SetPlayerVirtualWorld(i,0);
  2907. SetPlayerInterior(i,0);
  2908. SetPlayerPos(i,2191.6472,2476.4624,10.8203);
  2909. SetPlayerFacingAngle(i,272.7751);
  2910. SetCameraBehindPlayer(i);
  2911. LeftTwoFourSeven[i] =999;
  2912. TimeToMoveTwoFourSeven[i] =999;
  2913. TogglePlayerControllable(i, 1);
  2914. }
  2915. if(LeftTwoFourSeven[i] == 3)
  2916. {
  2917. SetPlayerVirtualWorld(i,0);
  2918. SetPlayerInterior(i,0);
  2919. SetPlayerPos(i,2630.5876,1124.3673,10.8203);
  2920. SetPlayerFacingAngle(i,177.8683);
  2921. SetCameraBehindPlayer(i);
  2922. LeftTwoFourSeven[i] =999;
  2923. TimeToMoveTwoFourSeven[i] =999;
  2924. TogglePlayerControllable(i, 1);
  2925. }
  2926. if(LeftTwoFourSeven[i] == 4)
  2927. {
  2928. SetPlayerVirtualWorld(i,0);
  2929. SetPlayerInterior(i,0);
  2930. SetPlayerPos(i,2108.0222,901.5873,10.8203);
  2931. SetPlayerFacingAngle(i,2.9187);
  2932. SetCameraBehindPlayer(i);
  2933. LeftTwoFourSeven[i] =999;
  2934. TimeToMoveTwoFourSeven[i] =999;
  2935. TogglePlayerControllable(i, 1);
  2936. }
  2937. if(LeftTwoFourSeven[i] == 5)
  2938. {
  2939. SetPlayerVirtualWorld(i,0);
  2940. SetPlayerInterior(i,0);
  2941. SetPlayerPos(i,664.9492,1726.6813,6.9922);
  2942. SetPlayerFacingAngle(i,42.5792);
  2943. SetCameraBehindPlayer(i);
  2944. LeftTwoFourSeven[i] =999;
  2945. TimeToMoveTwoFourSeven[i] =999;
  2946. TogglePlayerControllable(i, 1);
  2947. }
  2948. if(LeftTwoFourSeven[i] == 6)
  2949. {
  2950. SetPlayerVirtualWorld(i,0);
  2951. SetPlayerInterior(i,0);
  2952. SetPlayerPos(i,2142.6326,2739.4309,10.8203);
  2953. SetPlayerFacingAngle(i,5.6754);
  2954. SetCameraBehindPlayer(i);
  2955. LeftTwoFourSeven[i] =999;
  2956. TimeToMoveTwoFourSeven[i] =999;
  2957. TogglePlayerControllable(i, 1);
  2958. }
  2959. }
  2960. }
  2961. }
  2962. }
  2963.  
  2964.  
  2965. public Float:GetDistanceBetweenPlayers(p1,p2){
  2966. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  2967. if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
  2968. return -1.00;
  2969. }
  2970. GetPlayerPos(p1,x1,y1,z1);
  2971. GetPlayerPos(p2,x2,y2,z2);
  2972. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  2973.  
  2974. }
  2975.  
  2976. IsNumeric(const string[])
  2977. {
  2978. for (new i = 0, j = strlen(string); i < j; i++) {
  2979. if (string[i] > '9' || string[i] < '0') {
  2980. return 0;
  2981. }
  2982. }
  2983.  
  2984. return 1;
  2985. }
  2986.  
  2987.  
  2988. public commitedcrimerecent()
  2989. {
  2990. for(new i = 0; i < MAX_PLAYERS; i++)
  2991. {
  2992. if(commitedcrimerecently[i] >= 1)
  2993. {
  2994. commitedcrimerecently[i] --;
  2995.  
  2996. }
  2997. }
  2998. }
  2999.  
  3000. public PlantC4One()
  3001. {
  3002. for(new i = 0; i < MAX_PLAYERS; i++)
  3003. {
  3004. if(IsSpawned[i] == 1 && PlantingC4[i] == 1)
  3005. {
  3006.  
  3007. SetPlayerPos(i,2142.0176,1625.8782,993.6882);
  3008. SetPlayerFacingAngle(i,354.8549);
  3009. SetCameraBehindPlayer(i);
  3010. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
  3011. SetTimer("PlantC4Two",4000,0);
  3012. }
  3013. }
  3014. }
  3015.  
  3016. public PlantC4Two()
  3017. {
  3018. for(new i = 0; i < MAX_PLAYERS; i++)
  3019. {
  3020. if(IsSpawned[i] == 1 && PlantingC4[i] == 1)
  3021. {
  3022. SetPlayerPos(i,2144.2222,1625.9305,993.6882);
  3023. SetPlayerFacingAngle(i,2.4904);
  3024. SetCameraBehindPlayer(i);
  3025. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
  3026. SetTimer("PlantC4Three",4000,0);
  3027. }
  3028. }
  3029. }
  3030. public PlantC4Three()
  3031. {
  3032. for(new i = 0; i < MAX_PLAYERS; i++)
  3033. {
  3034. if(IsSpawned[i] == 1 && PlantingC4[i] == 1)
  3035. {
  3036. SetPlayerPos(i,2146.2612,1626.0862,993.6882);
  3037. SetPlayerFacingAngle(i,356.1294);
  3038. SetCameraBehindPlayer(i);
  3039. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
  3040. SetTimer("CaligsC4Explode",7000,0);
  3041. GameTextForPlayer(i,"~r~STAND BACK~n~C4 WILL EXPLODE IN 5 SECONDS", 7000,3);
  3042. TogglePlayerControllable(i, 1);
  3043. RobbedCaligs[i] =1337;
  3044. PlantingC4[i] =0;
  3045. }
  3046. }
  3047. }
  3048.  
  3049. public CaligsC4Explode()
  3050. {
  3051. SetTimer("CaligsRobExplosionsone",200,0);
  3052. }
  3053.  
  3054.  
  3055. public destroypickups()
  3056. {
  3057. for(new p = 13; p < MAX_PICKUPS; p++)
  3058. {
  3059. DestroyPickup(p);
  3060. printf("( PICKUP DESTROYED ) Pickup (%d)",p);
  3061. }
  3062.  
  3063. }
  3064.  
  3065.  
  3066. public CaligsRobRestored()
  3067. {
  3068. bombdoor = CreateObject(5043, 2144.2280,1627.0021,994.2676, 0,0,90.0); //caligs bomb door
  3069. for(new i = 0; i < MAX_PLAYERS; i++)
  3070. {
  3071. if(RobbedCaligs[i] == 1337)
  3072. {
  3073. RobbedCaligs[i] =0;
  3074. }
  3075. }
  3076. caligsbeingrobbed =0;
  3077. }
  3078.  
  3079.  
  3080. public CaligsRobExplosionsone()
  3081. {
  3082. CreateExplosion(2142.5193,1626.4860,993.6882, 2, 10.0); // Explosion one
  3083. printf("explosion1");
  3084. SetTimer("CaligsRobExplosionstwo",200,0);
  3085. }
  3086.  
  3087. public CaligsRobExplosionstwo()
  3088. {
  3089. CreateExplosion(2144.1514,1626.6012,993.6882, 2, 10.0); // Explosion two
  3090. printf("explosion2beforedestroy");
  3091. DestroyObject(bombdoor);
  3092. printf("explosion2afterdestroy");
  3093. SetTimer("CaligsRobExplosionsthree",200,0);
  3094. }
  3095. public CaligsRobExplosionsthree()
  3096. {
  3097. CreateExplosion(2145.9702,1626.4946,993.6882, 2, 10.0); // Explosion three
  3098. SetTimer("CaligsRobRestored",150000,0);
  3099. printf("explosion3");
  3100. for(new i = 0; i < MAX_PLAYERS; i++)
  3101. {
  3102. if(RobbedCaligs[i] == 1337)
  3103. {
  3104. new blowername[30];
  3105. new string[200];
  3106. GetPlayerName(i,blowername,30);
  3107. format(string, sizeof(string), "%s(%d) Has blown the door off Caligulas Casino vault with C4",blowername,i);
  3108. SendClientMessageToAll(0x00C7FFAA,string);
  3109. printf("%s", string);
  3110. GameTextForPlayer(i,"~w~YOU HAVE BLOWN THE DOOR OFF~n~COLLECT THE ROBBERY CASH~n~IN THE VAULT CHECKPOINT", 7000,3);
  3111. }
  3112. }
  3113.  
  3114. //SetTimer("CaligsRobExplosionsthree",500,0);
  3115. }
  3116.  
  3117. public BanExplosionone()
  3118. {
  3119. CreateExplosion(-127.0526,2258.4316,28.4287, 2, 10.0); // Explosion one
  3120. SetTimer("BanExplosiontwo",500,0);
  3121. }
  3122.  
  3123. public BanExplosiontwo()
  3124. {
  3125. CreateExplosion(-127.0526,2258.4316,28.4287, 2, 10.0); // Explosion two
  3126. // SetTimer("CaligsRobExplosionsthree",200,0); Caligs Bug Fixed - Rob.
  3127. SetTimer("BanPlayer",500,0);
  3128. }
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137. public storerobbedrecent()
  3138. {
  3139. if(twofoursevenrobbed1 >= 1)
  3140. {
  3141. twofoursevenrobbed1 --;
  3142. }
  3143. if(twofoursevenrobbed2 >= 1)
  3144. {
  3145. twofoursevenrobbed2 --;
  3146. }
  3147. if(twofoursevenrobbed3 >= 1)
  3148. {
  3149. twofoursevenrobbed3 --;
  3150. }
  3151. if(twofoursevenrobbed4 >= 1)
  3152. {
  3153. twofoursevenrobbed4 --;
  3154. }
  3155. if(twofoursevenrobbed5 >= 1)
  3156. {
  3157. twofoursevenrobbed5 --;
  3158. }
  3159. if(twofoursevenrobbed6 >= 1)
  3160. {
  3161. twofoursevenrobbed6 --;
  3162. }
  3163. if(cityhallrobbedrecent >= 1)
  3164. {
  3165. cityhallrobbedrecent --;
  3166. }
  3167.  
  3168. }
  3169.  
  3170. public robbingcityhallcountdown()
  3171. {
  3172. for(new i=0; i < MAX_PLAYERS; i++)
  3173. {
  3174. if(IsPlayerConnected(i))
  3175. {
  3176. if(robbinghall[i] >= 2)
  3177. {
  3178. robbinghall[i] --;
  3179. new string[100];
  3180. format(string, sizeof(string), "~y~ROBBERY IN PROGRESS~n~~r~STAY IN THE CHECKPOINT");
  3181. GameTextForPlayer(i, string, 2000,3);
  3182. }
  3183. if(robbinghall[i] == 1)
  3184. {
  3185. new hallrobrand = random(150000);
  3186. robbinghall[i] =0;
  3187. new hrobbber[30];
  3188. new string[100];
  3189. new pcol = GetPlayerColor(i);
  3190. GetPlayerName(i,hrobbber,30);
  3191. format(string, sizeof(string), "%s(%d) Has robbed $%d from LV City Hall",hrobbber,i,hallrobrand);
  3192. SendClientMessageToAll(0x00C7FFAA,string);
  3193. ircSay(EchoConnection, EchoChan,string);
  3194. format(string, sizeof(string), "~b~CITY HALL~n~~y~ROBBERY COMPLETE~n~~w~$%d",hallrobrand);
  3195. GameTextForPlayer(i, string, 5000,3);
  3196. GivePlayerMoney(i,hallrobrand);
  3197. format(string, sizeof(string), "LV City Hall Robbery Complete. You robbed a total of $%d",hallrobrand);
  3198. SendClientMessage(i,pcol,string);
  3199. if(robberrank[i] <=39) {
  3200. SendClientMessage(i,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  3201. robberrank[i] +=1;
  3202. }
  3203. printf("%s(%d) has robbed $%d in a LV City Hall Robbery",hrobbber,i,hallrobrand);
  3204. }
  3205.  
  3206. }
  3207. }
  3208. }
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215. public robbingstorecountdown()
  3216. {
  3217. for(new i=0; i < MAX_PLAYERS; i++)
  3218. {
  3219. if(IsPlayerConnected(i))
  3220. {
  3221. if(robbingstore[i] >= 2)
  3222. {
  3223. robbingstore[i] --;
  3224. new string[256];
  3225. new robtimer;
  3226. robtimer = (robbingstore[i]);
  3227. format(string, sizeof(string), "~y~ROBBERY IN PROGRESS~n~~b~STAY IN THE CHECKPOINT~n~~w~ROBBERY COMPLETE IN~r~ %d~w~ SECONDS",robtimer);
  3228. GameTextForPlayer(i, string, 3000,3);
  3229. }
  3230. if(robbingstore[i] == 1)
  3231. {
  3232. new storerobrand = random(60000);
  3233. robbingstore[i] =0;
  3234. new robbber[30];
  3235. new string[256];
  3236. new pcol = GetPlayerColor(i);
  3237. GetPlayerName(i,robbber,30);
  3238. format(string, sizeof(string), "~y~ROBBERY COMPLETE~n~~w~$%d",storerobrand);
  3239. GameTextForPlayer(i, string, 5000,3);
  3240. GivePlayerMoney(i,storerobrand);
  3241. format(string, sizeof(string), "Robbery Complete. You robbed a total of $%d",storerobrand);
  3242. SendClientMessage(i,pcol,string);
  3243. if(robberrank[i] <=39) {
  3244. SendClientMessage(i,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  3245. robberrank[i] +=1;
  3246. }
  3247. printf("%s(%d) has robbed $%d in a 24/7 robbery",robbber,i,storerobrand);
  3248. format(string, sizeof(string), "%s(%d) Has robbed $%d in a 24/7 robbery",robbber,i,storerobrand);
  3249. ircSay(EchoConnection, EchoChan,string);
  3250. }
  3251.  
  3252. }
  3253. }
  3254. }
  3255.  
  3256. public JailFood()
  3257. {
  3258. for(new i = 0; i < MAX_PLAYERS; i++)
  3259. {
  3260. if(IsPlayerConnected(i) && Jailed[i] == 1)
  3261. {
  3262. new Float:health;
  3263. GetPlayerHealth(i, health);
  3264. if(health <=90) {
  3265. SetPlayerHealth(i,health+10);
  3266. }
  3267. SendClientMessage(i, 0xA9A9A9AA, "|_LVPD Prison Service_|");
  3268. SendClientMessage(i,COLOR_WHITE,"(Prison Food) LVPD has given you some food");
  3269. }
  3270. }
  3271. }
  3272.  
  3273. stock CreateShamalInt(vehicleid, Float:X, Float:Y, Float:Z)
  3274. {
  3275. CreateObject(14404, X, Y, Z, 0.0, 0.0, 0.0);
  3276. CreateObject(1562, floatadd(X, difc[0][0]), floatadd(Y, difc[0][1]), floatsub(Z, difc[0][2]), 0.0, 0.0, difc[0][3]);
  3277. CreateObject(1562, floatadd(X, difc[1][0]), floatsub(Y, difc[1][1]), floatsub(Z, difc[1][2]), 0.0, 0.0, difc[1][3]);
  3278. CreateObject(1562, floatadd(X, difc[2][0]), floatsub(Y, difc[2][1]), floatsub(Z, difc[2][2]), 0.0, 0.0, difc[2][3]);
  3279. CreateObject(1562, floatsub(X, difc[3][0]), floatsub(Y, difc[3][1]), floatsub(Z, difc[3][2]), 0.0, 0.0, difc[3][3]);
  3280. CreateObject(1562, floatsub(X, difc[4][0]), floatsub(Y, difc[4][1]), floatsub(Z, difc[4][2]), 0.0, 0.0, difc[4][3]);
  3281. CreateObject(1562, floatsub(X, difc[5][0]), floatsub(Y, difc[5][1]), floatsub(Z, difc[5][2]), 0.0, 0.0, difc[5][3]);
  3282. CreateObject(14405, X, floatsub(Y, difc[12][1]), floatsub(Z, difc[12][2]), 0.0, 0.0, difc[12][3]);
  3283. ShamalPos[vehicleid][0] = X, ShamalPos[vehicleid][1] = Y, ShamalPos[vehicleid][2] = Z;
  3284. }
  3285.  
  3286. stock SetPlayerPosInShamal(playerid, shamalid)
  3287. {
  3288. SetPlayerPos(playerid, ShamalPos[shamalid][0],
  3289. floatsub(ShamalPos[shamalid][1], 5.87),
  3290. floatsub(ShamalPos[shamalid][2], 0.75));
  3291. SetPlayerFacingAngle(playerid, 0.0);
  3292. SetCameraBehindPlayer(playerid);
  3293. }
  3294.  
  3295. stock ShamalExists(vehicleid)
  3296. {
  3297. if (floatsqroot(floatadd(ShamalPos[vehicleid][0], floatadd(ShamalPos[vehicleid][1], ShamalPos[vehicleid][2]))))
  3298. return 1;
  3299. return 0;
  3300. }
  3301.  
  3302. stock randomEx(randval)
  3303. {
  3304. new rand1 = random(2), rand2;
  3305. if (!rand1) rand2 -= random(randval);
  3306. else rand2 += random(randval);
  3307. return rand2;
  3308. }
  3309.  
  3310.  
  3311.  
  3312.  
  3313. public cashdrop()
  3314. {
  3315. for(new i = 0; i < MAX_PLAYERS; i++)
  3316. {
  3317. if(IsPlayerConnected(i) && IsSpawned[i] ==1 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  3318. {
  3319. if(GetPlayerMoney(i) >= 1001000)
  3320. {
  3321. GivePlayerMoney(i,-1000);
  3322. new nname[20];
  3323. GetPlayerName(i,nname,20);
  3324. printf("**(CASH DROP)** %s(%d) Has Dropped $1000 ($%d)",nname,i,GetPlayerMoney(i));
  3325. SendClientMessage(i,COLOR_RED, "You cant carry all of your cash, you have dropped $1000");
  3326. new Float:X,Float:Y,Float:Z;
  3327. GetPlayerPos(i,X,Y,Z);
  3328. CreatePickup(1212, 3,X+2,Y,Z);
  3329. }
  3330. }
  3331. }
  3332. }
  3333.  
  3334.  
  3335. public TrashMissionTimer()
  3336. {
  3337. for(new i = 0; i < MAX_PLAYERS; i++)
  3338. {
  3339. if(OnDelMission[i] == 1337)
  3340. {
  3341. TrashDeliveryTime[i] ++;
  3342. TrashDeliveryEarnings[i] --;
  3343.  
  3344. }
  3345. }
  3346. }
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352. public copshavevctimer()
  3353. {
  3354. for(new i = 0; i < MAX_PLAYERS; i++)
  3355. {
  3356. if(copshavevc[i] >= 1)
  3357. {
  3358. copshavevc[i] --;
  3359.  
  3360. }
  3361. }
  3362. }
  3363.  
  3364.  
  3365. public CopBackUpColour()
  3366. {
  3367. for(new i = 0; i < MAX_PLAYERS; i++)
  3368. {
  3369. if(GetPlayerColor(i) == COLOR_PURPLE && ReqBk[i] == 1)
  3370. {
  3371. SetPlayerToTeamColour(i);
  3372. ReqBk[i] =0;
  3373.  
  3374. }
  3375. }
  3376. }
  3377.  
  3378. public SouthernCopGate()
  3379. {
  3380. for (new i = 0; i < MAX_PLAYERS; i++)
  3381. {
  3382. if(IsPlayerConnected(i) && IsSpawned[i] == 1)
  3383. {
  3384. new Float:x, Float:y, Float:z;
  3385. GetPlayerPos(i, x, y, z);
  3386. if(x >= 2321.0969 && x <= 2336.8127 && y >= 2439.5466 && y <= 2451.8848 || x >= 2310.2278 && x <= 2320.1902 && y >= 2440.9089 && y <= 2452.2144)
  3387. {
  3388. if(gTeam[i] == TEAM_COP || gTeam[i] == TEAM_ARMY || PlayerAdminLevel[i] == 1337)
  3389. {
  3390. if(GateSouthern == 0) // closed
  3391. {
  3392. MoveObject(southcopgate, 2320.6426,2445.9233,-2.0000, 2);
  3393. GateSouthern =1; // open
  3394. SetTimer("SouthernCopGateClose",5000,0);
  3395. //if(isPlayerInArea(i, 2363.7737, -1135.5779, 2366.7964, -1125.8202))
  3396. }
  3397. }
  3398. }
  3399. }
  3400. }
  3401. }
  3402. public SouthernCopGateClose()
  3403. {
  3404. if(GateSouthern == 1) // open
  3405. {
  3406. MoveObject(southcopgate, 2320.6426,2445.9233,5.2734, 2);
  3407. GateSouthern =0; // closed
  3408. //if(isPlayerInArea(i, 2363.7737, -1135.5779, 2366.7964, -1125.8202))
  3409. }
  3410. }
  3411.  
  3412.  
  3413.  
  3414.  
  3415. public selectskill()
  3416. {
  3417. for (new i = 0; i < MAX_PLAYERS; i++)
  3418. {
  3419. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && gTeam[i] >=9)
  3420. {
  3421. if(canchooseskill[i] == 1)
  3422. {
  3423. if(canselectskill[i] >=1)
  3424. {
  3425. canselectskill[i] --;
  3426. }
  3427. else
  3428. if(canselectskill[i] == 0)
  3429. {
  3430. SendClientMessage(i,0x1E90FFAA, "Type /commands for your commands");
  3431. SendClientMessage(i,0x1E90FFAA, "RAPIST: You can rape other players and infect them with STDs that could kill them");
  3432. GivePlayerWeapon(i,5,1);
  3433. GivePlayerWeapon(i,22,100);
  3434. GivePlayerWeapon(i,14,1);
  3435. gTeam[i] = TEAM_RAPIST;
  3436. SetPlayerToTeamColour(i);
  3437. canchooseskill[i] =0;
  3438. TextDrawHideForPlayer(i,txtTypeSkill);
  3439. }
  3440. }
  3441. }
  3442. }
  3443. }
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451. stock IsPlayerDriverInVehicle(playerid, vehicleid, modelid)
  3452. {
  3453. if (IsPlayerInVehicle(playerid, vehicleid) && GetPlayerState(playerid) == 2
  3454. && GetVehicleModel(GetPlayerVehicleID(playerid)) == modelid)
  3455. return 1;
  3456. return 0;
  3457. }
  3458.  
  3459.  
  3460. public carrierliftinfotext()
  3461. {
  3462. for (new i = 0; i < MAX_PLAYERS; i++)
  3463. {
  3464. if(IsPlayerConnected(i) && IsSpawned[i] == 1)
  3465. {
  3466. new Float:x, Float:y, Float:z;
  3467. GetPlayerPos(i, x, y, z);
  3468. if(x >= 2860.2568 && x <= 2901.6670 && y >= 459.5847 && y <= 484.5682 && z >= 11.0254 && z <= 19.6801)
  3469. {
  3470. SendClientMessage(i,COLOR_ROYALBLUE,"Aircraft Carrier: Type /liftup or /liftdown to operate the aircraft elevator");
  3471. }
  3472. }
  3473. }
  3474. }
  3475. public WesternCopGate()
  3476. {
  3477. for (new i = 0; i < MAX_PLAYERS; i++)
  3478. {
  3479. if(IsPlayerConnected(i) && IsSpawned[i] == 1)
  3480. {
  3481. new Float:x, Float:y, Float:z;
  3482. GetPlayerPos(i, x, y, z);
  3483. if(x >= 2284.3335 && x <= 2304.8169 && y >= 2492.2542 && y <= 2502.3809)
  3484. {
  3485. if(gTeam[i] == TEAM_COP || gTeam[i] == TEAM_ARMY || PlayerAdminLevel[i] == 1337)
  3486. {
  3487. if(GateWestern == 0) // closed
  3488. {
  3489. MoveObject(westcopgate, 2294.1990,2510.2039,4.2959, 2);
  3490. GateWestern =1; // open
  3491. SetTimer("WesternCopGateClose",5000,0);
  3492. //if(isPlayerInArea(i, 2363.7737, -1135.5779, 2366.7964, -1125.8202))
  3493. }
  3494. }
  3495. }
  3496. }
  3497. }
  3498. }
  3499. public WesternCopGateClose()
  3500. {
  3501. if(GateWestern == 1) // open
  3502. {
  3503. MoveObject(westcopgate, 2294.1990,2500.2039,4.2959, 2);
  3504. GateWestern =0; // closed
  3505. //if(isPlayerInArea(i, 2363.7737, -1135.5779, 2366.7964, -1125.8202))
  3506. }
  3507. }
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514. public AntiJetpack( )
  3515. {
  3516. for (new i = 0; i < MAX_PLAYERS; i++)
  3517. {
  3518. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && PlayerAdminLevel[i] !=1337)
  3519. {
  3520. new pSpecialAction = GetPlayerSpecialAction(i);
  3521. if (pSpecialAction == SPECIAL_ACTION_USEJETPACK )
  3522. {
  3523. new pname[30];
  3524. new string[250];
  3525. new inter;
  3526. inter = GetPlayerInterior(i);
  3527. GetPlayerName(i, pname, 30);
  3528. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
  3529. SendClientMessageToAll(0xFF7F50AA, string);
  3530. ircSay(EchoConnection, EchoChan,string);
  3531. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
  3532. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
  3533. SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit http://www.lvrcr.com to appeal this ban");
  3534. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Det:[JetPack] Int:[%d]",pname,i,inter);
  3535. printf("%s", string);
  3536. if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
  3537. dUserSetINT(PlayerName(i)).("nameban",1);
  3538. }
  3539. SetPlayerInterior(i,10);
  3540. SetPlayerPos(i,219.6257,111.2549,999.0156);
  3541. SetPlayerFacingAngle(i,2.2339);
  3542. SetCameraBehindPlayer(i);
  3543. Banning[i] = 1;
  3544. SetTimer("BanPlayer",700,0);
  3545. }
  3546. }
  3547. }
  3548. }
  3549.  
  3550. public WantedLevelReduce()
  3551. {
  3552. for (new i = 0; i < MAX_PLAYERS; i++)
  3553. {
  3554. if(IsPlayerConnected(i))
  3555. {
  3556. if(IsSpawned[i] == 1)
  3557. {
  3558. if(commitedcrimerecently[i] == 0)
  3559. {
  3560. if(GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 9)
  3561. {
  3562. if(copshavevc[i] == 0)
  3563. {
  3564. new plwl = GetPlayerWantedLevel(i);
  3565. SetPlayerWantedLevel(i,plwl -1);
  3566. new criminal[30];
  3567. new string[100];
  3568. plwl = GetPlayerWantedLevel(i);
  3569. new pcol = GetPlayerColor(i);
  3570. GetPlayerName(i,criminal,30);
  3571. SendClientMessage(i, 0xA9A9A9AA, "|_Wanted Level Reduced_|");
  3572. SendClientMessage(i, pcol, "Your wanted level has been reduced due to a lack of police interest");
  3573. format(string, sizeof(string), "Reduced Wanted Level: %d",plwl);
  3574. SendClientMessage(i, pcol, string);
  3575. format(string, sizeof(string), "**(Reduced Wanted Level)** %s(%d) New Wanted Level: %d",criminal,i,plwl);
  3576. printf("%s",string);
  3577. ircSay(EchoConnection, EchoChan,string);
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. }
  3584. }
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590. public TaxiDriverOffDutyCriminal()
  3591. {
  3592. for(new i=0; i < MAX_PLAYERS; i++)
  3593. {
  3594. if(IsPlayerConnected(i))
  3595. {
  3596. if(gTeam[i] == TEAM_DRIVER && Driveronduty[i] == 1 && GetPlayerWantedLevel(i) >=1)
  3597. {
  3598. new drivername[30];
  3599. new string[50];
  3600. GetPlayerName(i,drivername,30);
  3601. format(string, sizeof(string), "Driver %s(%d) is off duty",drivername,i);
  3602. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  3603. SendClientMessage(i,COLOR_RED,"The police are looking for you. You are now off duty");
  3604. Driveronduty[i] =0;
  3605. }
  3606.  
  3607. }
  3608.  
  3609. }
  3610.  
  3611. }
  3612.  
  3613.  
  3614. public PilotOffDutyCriminal()
  3615. {
  3616. for(new i=0; i < MAX_PLAYERS; i++)
  3617. {
  3618. if(IsPlayerConnected(i))
  3619. {
  3620. if(gTeam[i] == TEAM_PILOT && Pilotonduty[i] == 1 && GetPlayerWantedLevel(i) >=1)
  3621. {
  3622. new drivername[30];
  3623. new string[50];
  3624. GetPlayerName(i,drivername,30);
  3625. format(string, sizeof(string), "Pilot %s(%d) is off duty",drivername,i);
  3626. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  3627. SendClientMessage(i,COLOR_RED,"The police are looking for you. You are now off duty");
  3628. Driveronduty[i] =0;
  3629. }
  3630.  
  3631. }
  3632.  
  3633. }
  3634.  
  3635. }
  3636.  
  3637. public fixedcarrecenttimer()
  3638. {
  3639. for(new i=0; i < MAX_PLAYERS; i++)
  3640. {
  3641. if (IsPlayerConnected(i) && IsSpawned[i] ==1)
  3642. {
  3643. if (fixedcarrecent[i] >= 1)
  3644.  
  3645. {
  3646. fixedcarrecent[i] --;
  3647. }
  3648. }
  3649. }
  3650. }
  3651.  
  3652.  
  3653. public PlayerVarDecrease()
  3654. {
  3655. for(new i=0; i < MAX_PLAYERS; i++)
  3656. {
  3657. if (IsPlayerConnected(i))
  3658. {
  3659. if(HasCried[i] >=1) {
  3660. HasCried[i] --;
  3661. }
  3662. if(GotCopBriberecently[i] >= 1) {
  3663. GotCopBriberecently[i] --;
  3664. }
  3665. if(SpamStrings[i] >=1) {
  3666. SpamStrings[i] --;
  3667. }
  3668. }
  3669. }
  3670. }
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685. public CopRefillWaitTimer()
  3686. {
  3687. for(new i=0; i < MAX_PLAYERS; i++)
  3688. {
  3689. if (IsPlayerConnected(i) && IsSpawned[i] ==1)
  3690. {
  3691. if (CopWaitBetweenRefills[i] >= 1)
  3692.  
  3693. {
  3694. CopWaitBetweenRefills[i] --;
  3695. }
  3696. }
  3697. }
  3698. }
  3699. public AutoUnjailAlcatraz()
  3700. {
  3701. for(new i=0; i < MAX_PLAYERS; i++)
  3702. {
  3703. if (IsPlayerConnected(i))
  3704. {
  3705. if(Jailed[i] == 1 && InAlcatraz[i] == 1)
  3706. {
  3707. if (JailTime[i] > 0)
  3708.  
  3709. {
  3710. JailTime[i] --;
  3711. new jtime;
  3712. new string[256];
  3713. jtime = (JailTime[i]);
  3714. format(string, sizeof(string), "~w~ALCATRAZ~n~..JAILTIME..~n~ %d",jtime);
  3715. GameTextForPlayer(i, string, 3000,6);
  3716. JailTimeServed[i] ++;
  3717. }
  3718. if (JailTime[i] == 0)
  3719. {
  3720. new pname[24];
  3721. GetPlayerName(i, pname, 24);
  3722. new string[256];
  3723. new timeserved;
  3724. timeserved = (JailTimeServed[i]);
  3725. SetPlayerPos(i,230.0633,121.7518,1010.2188);
  3726. SetPlayerFacingAngle(i,208.3710);
  3727. SetCameraBehindPlayer(i);
  3728. cannotescapejail[i] =0;
  3729. SendClientMessage(i, 0xA9A9A9AA, "|_Released From Alcatraz_|");
  3730. SendClientMessage(i,0x00C7FFAA,"You have been auto-released from Alcatraz. You are free to leave Alcatraz Island");
  3731. format(string, sizeof(string), "%s(%d) Has been auto-released from Alcatraz. Time Served: %d Seconds",pname,i,timeserved);
  3732. SendClientMessageToAll(0x00C7FFAA, string);
  3733. ircSay(EchoConnection, EchoChan,string);
  3734. Jailed[i] = 0;
  3735. InAlcatraz[i] =0;
  3736. JailTimeServed[i] =0;
  3737. }
  3738. }
  3739. }
  3740. }
  3741. }
  3742.  
  3743. public HitExpires()
  3744. {
  3745. for(new i=0; i < MAX_PLAYERS; i++)
  3746. {
  3747. if (IsPlayerConnected(i))
  3748. {
  3749. if(HasHitOnHim[i] >= 1)
  3750. {
  3751. HasHitOnHim[i] --;
  3752. }
  3753.  
  3754. }
  3755. }
  3756. }
  3757.  
  3758.  
  3759. public GunsDeliveryTimeLimitTimer()
  3760. {
  3761. for(new i=0; i < MAX_PLAYERS; i++)
  3762. {
  3763. if (IsPlayerConnected(i))
  3764. {
  3765. if(OnDelMission[i] == 1337 && DeliveringGuns[i] == 1 && GunsDeliveryTime[i] >= 1)
  3766. {
  3767. GunsDeliveryTime[i] --;
  3768. new deltime;
  3769. new string[50];
  3770. deltime = (GunsDeliveryTime[i]);
  3771. format(string, sizeof(string), "~w~DELIVERY TIME~n~ %d",deltime);
  3772. GameTextForPlayer(i, string, 3000,6);
  3773.  
  3774. }
  3775. if(OnDelMission[i] == 1337 && DeliveringGuns[i] == 1 && GunsDeliveryTime[i] == 0)
  3776. {
  3777. new pname[24];
  3778. GetPlayerName(i, pname, 24);
  3779. new string[200];
  3780. SendClientMessage(i,0xA9A9A9AA, "|_Weapon Delivery Mission Failed_|");
  3781. SendClientMessage(i,0xADD8E6AA,"You have taken too long to deliver the weapons. The mission is failed");
  3782. format(string, sizeof(string), "%s(%d) Has failed weapon delivery (time limit)",pname,i);
  3783. printf("%s",string);
  3784. OnDelMission[i] =0;
  3785. GunsDeliveryTime[i] =0;
  3786. GunDeliveryLevel[i] =0;
  3787.  
  3788. }
  3789. }
  3790. }
  3791. }
  3792.  
  3793. public ExplodeShamal(vehicleid)
  3794. {
  3795. KillTimer(sExplode[vehicleid]);
  3796. if (tCount[vehicleid])
  3797. {
  3798. CreateExplosion(ShamalPos[vehicleid][0], ShamalPos[vehicleid][1], ShamalPos[vehicleid][2], 2, 15.0);
  3799. sExplode[vehicleid] = SetTimerEx("ExplodeShamal", random(1300)+100, 1, "d", vehicleid);
  3800. }
  3801. }
  3802.  
  3803.  
  3804. public AutoUnjail()
  3805. {
  3806. for(new i=0; i < MAX_PLAYERS; i++)
  3807. {
  3808. if (IsPlayerConnected(i))
  3809. {
  3810. if(Jailed[i] == 1 && InAlcatraz[i] == 0)
  3811. {
  3812. if (JailTime[i] > 0)
  3813.  
  3814. {
  3815. JailTime[i] --;
  3816. new jtime;
  3817. new string[256];
  3818. jtime = (JailTime[i]);
  3819. format(string, sizeof(string), "~w~..JAILTIME..~n~ %d",jtime);
  3820. GameTextForPlayer(i, string, 3000,6);
  3821. JailTimeServed[i] ++;
  3822. }
  3823. if (JailTime[i] == 0)
  3824. {
  3825. new pname[24];
  3826. GetPlayerName(i, pname, 24);
  3827. new string[256];
  3828. new timeserved;
  3829. timeserved = (JailTimeServed[i]);
  3830. SetPlayerInterior(i,3);
  3831. SetPlayerPos(i,210.5272,146.3341,1003.0234);
  3832. SetPlayerFacingAngle(i,179.4662);
  3833. SetCameraBehindPlayer(i);
  3834. cannotescapejail[i] =0;
  3835. SendClientMessage(i, 0xA9A9A9AA, "|_Released From Jail_|");
  3836. SendClientMessage(i,0x00C7FFAA,"You have been auto-released from jail. You are free to leave the Police Station");
  3837. format(string, sizeof(string), "%s(%d) Has been auto-released from jail. JailTime Served: %d Seconds",pname,i,timeserved);
  3838. SendClientMessageToAll(0x00C7FFAA, string);
  3839. ircSay(EchoConnection, EchoChan,string);
  3840. Jailed[i] = 0;
  3841. JailTimeServed[i] =0;
  3842. dUserSetINT(PlayerName(i)).("jailed",Jailed[i]);
  3843. dUserSetINT(PlayerName(i)).("jailtime",JailTime[i]);
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849.  
  3850.  
  3851. public Kidnapped()
  3852. {
  3853. for(new i=0; i < MAX_PLAYERS; i++)
  3854. {
  3855. if(IsPlayerConnected(i))
  3856. {
  3857. if(isKidnapped[i] == 1)
  3858. {
  3859. kidnapTimer[i] --;
  3860. }
  3861. if(kidnapTimer[i] == 0 && isKidnapped[i] == 1)
  3862. {
  3863. TogglePlayerControllable(i,1);
  3864. SendClientMessage(i, 0xA9A9A9AA, "You managed to wriggle out from the rope! Exit the car and run!");
  3865. isKidnapped[i] =0;
  3866. for(new k=0;k<MAX_PLAYERS;k++)
  3867. {
  3868. if(HasKidnapped[k] == 1) {
  3869. new string[256];
  3870. new pname[30];
  3871. GetPlayerName(i,pname,30);
  3872. format(string, sizeof(string), "%s(%d) has gotten away",pname,i);
  3873. SendClientMessage(k,COLOR_ROYALBLUE,string);
  3874. HasKidnapped[k]=0;
  3875. }
  3876. }
  3877. }
  3878. }
  3879. }
  3880. }
  3881.  
  3882. public VisitReqTimer()
  3883. {
  3884. for(new i=0; i < MAX_PLAYERS; i++)
  3885. {
  3886. if (IsPlayerConnected(i))
  3887. {
  3888. if(VisitReq[i] == 1)
  3889. {
  3890. if (VisitReqExpires[i] > 0)
  3891.  
  3892. {
  3893. VisitReqExpires[i] --;
  3894. }
  3895. if (VisitReqExpires[i] == 0)
  3896. {
  3897.  
  3898. SendClientMessage(i, 0xA9A9A9AA, "|_Alcatraz Visiting Pass Expired_|");
  3899. SendClientMessage(i,0x00C7FFAA,"The visiting pass given to you has expired");
  3900. VisitReq[i] =0;
  3901. VisitReqExpires[i] =0;
  3902. }
  3903. }
  3904. }
  3905. }
  3906. }
  3907.  
  3908.  
  3909.  
  3910. public playerbeenrobbedrecent()
  3911. {
  3912. for(new i=0; i < MAX_PLAYERS; i++)
  3913. {
  3914. if (IsPlayerConnected(i) && beenrobbedrecently[i] >=1)
  3915. {
  3916. beenrobbedrecently[i] --;
  3917. }
  3918. }
  3919. }
  3920.  
  3921.  
  3922. public EscapeCuffsTime()
  3923. {
  3924. for(new i=0; i < MAX_PLAYERS; i++)
  3925. {
  3926. if (IsPlayerConnected(i))
  3927. {
  3928. if(IsSpawned[i] == 1 && cuffed[i] == 1)
  3929. {
  3930. if (CuffedTime[i] >= 1)
  3931.  
  3932. {
  3933. CuffedTime[i] --;
  3934. }
  3935. }
  3936. }
  3937. }
  3938. }
  3939. public TimeWorld()
  3940. {
  3941. if(gametime == 0 && gameday == 7 && gameweek == 4)
  3942. {
  3943. SendRconCommand("gmx");
  3944. }
  3945.  
  3946. gametime++;
  3947. if(gametime >= 24) {
  3948. gametime =0;
  3949. }
  3950. if(gametime == 0) {
  3951. gameday ++;
  3952. }
  3953. for(new i=0; i < MAX_PLAYERS; i++)
  3954. {
  3955. if (IsPlayerConnected(i))
  3956. {
  3957. SetPlayerTime(i,gametime,0);
  3958. }
  3959.  
  3960. }
  3961.  
  3962. new string[30];
  3963. SetWorldTime(gametime);
  3964. format(string, sizeof(string), "Game Time: %d:00", gametime);
  3965. SendClientMessageToAll(0x5F9EA0AA, string);
  3966. if(gametime == 0 && gameday == 1) {
  3967. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Monday");
  3968. }
  3969. if(gametime == 0 && gameday == 2) {
  3970. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Tuesday");
  3971. }
  3972. if(gametime == 0 && gameday == 3) {
  3973. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Wednesday");
  3974. }
  3975. if(gametime == 0 && gameday == 4) {
  3976. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Thursday");
  3977. }
  3978. if(gametime == 0 && gameday == 5) {
  3979. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Friday");
  3980. }
  3981. if(gametime == 0 && gameday == 6) {
  3982. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Saturday");
  3983. }
  3984. if(gametime == 0 && gameday == 7) {
  3985. SendClientMessageToAll(0x5F9EA0AA,"Game Day: Sunday");
  3986. }
  3987. if(gametime == 23 && gameday == 7) {
  3988. gameweek ++;
  3989. gameday =1;
  3990. if(gameweek == 1)
  3991. {
  3992. SendClientMessageToAll(0x5F9EA0AA,"Game Week: 1");
  3993. }
  3994. if(gameweek == 2)
  3995. {
  3996. SendClientMessageToAll(0x5F9EA0AA,"Game Week: 2");
  3997. }
  3998. if(gameweek == 3)
  3999. {
  4000. SendClientMessageToAll(0x5F9EA0AA,"Game Week: 3");
  4001. }
  4002. if(gameweek == 4)
  4003. {
  4004. SendClientMessageToAll(0x5F9EA0AA,"Game Week: 4");
  4005. }
  4006. }
  4007. if(gametime == 23 && gameday == 7 && gameweek == 4)
  4008. {
  4009. SendClientMessageToAll(0x2587CEAA,"*AutoAdmin: This month is over. The gamemode will restart in one game hour");
  4010. SendClientMessageToAll(0x2587CEAA,"*AutoAdmin: Dont forget to visit our website at www.lvrcr.com");
  4011. }
  4012. }
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020. public CashCheck()
  4021. {
  4022. for(new i=0; i < MAX_PLAYERS; i++)
  4023. {
  4024. if (IsPlayerConnected(i))
  4025. {
  4026. if(GetPlayerMoney(i) > OldCash[i])
  4027. {
  4028. new pname[30];
  4029. new string[100];
  4030. new difference;
  4031. difference = GetPlayerMoney(i) - OldCash[i];
  4032. GetPlayerName(i,pname,30);
  4033. printf("**(CASH INCREASE)** %s(%d) money has increased from $%d to $%d (%d) (%d)",pname,i,OldCash[i],GetPlayerMoney(i),difference,GetPlayerInterior(i));
  4034. format(string, sizeof(string), "**(CASH INCREASE)** %s(%d) money has increased from $%d to $%d (%d) (%d)",pname,i,OldCash[i],GetPlayerMoney(i),difference,GetPlayerInterior(i));
  4035. ircSay(EchoConnection, EchoChan,string);
  4036. if(difference >= 1500000 && PlayerAdminLevel[i] != 1337) {
  4037. ResetPlayerMoney(i);
  4038. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
  4039. SendClientMessageToAll(0xFF7F50AA, string);
  4040. ircSay(EchoConnection, EchoChan,string);
  4041. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
  4042. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
  4043. SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit www.lvrcr.com to appeal this ban");
  4044. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Inc:[$%d] Int:[%d]",pname,i,difference,GetPlayerInterior(i));
  4045. printf("%s", string);
  4046. if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
  4047. dUserSetINT(PlayerName(i)).("nameban",1);
  4048. }
  4049. SetPlayerInterior(i,10);
  4050. SetPlayerPos(i,219.6257,111.2549,999.0156);
  4051. SetPlayerFacingAngle(i,2.2339);
  4052. SetCameraBehindPlayer(i);
  4053.  
  4054. Banning[i] = 1;
  4055. SetTimer("BanPlayer",700,0);
  4056. }
  4057. OldCash[i] = GetPlayerMoney(i);
  4058. }
  4059.  
  4060. }
  4061.  
  4062. }
  4063.  
  4064. }
  4065.  
  4066. public TheEffectsOfDrugs()
  4067. {
  4068. for(new i=0; i < MAX_PLAYERS; i++)
  4069. {
  4070. if (IsPlayerConnected(i))
  4071. {
  4072. if (playertookdrugs[i] == 1)
  4073. {
  4074.  
  4075. if (playerondrugs[i] == 0)
  4076. {
  4077. SendClientMessage(i, 0xA9A9A9AA, "|_Drug Info_|");
  4078. SendClientMessage(i,0x00C7FFAA,"The effect of drugs taken has worn off. You are no longer on drugs");
  4079. playertookdrugs[i] =0;
  4080. StopLoopingAnim(i);
  4081. TogglePlayerControllable(i, 1);
  4082. }
  4083. if (playerondrugs[i] >= 1)
  4084. {
  4085. playerondrugs[i] --;
  4086. new Float:health;
  4087. GetPlayerHealth(i, health);
  4088.  
  4089. if(health <=95) {
  4090. SetPlayerHealth(i,health+5);
  4091. new druggiename[30];
  4092. new string[250];
  4093. GetPlayerName(i,druggiename,30);
  4094. format(string, sizeof(string), "**(Predicted Increase)** %s(%d)'s health has increased (Drugs)",druggiename,i);
  4095. printf("%s",string);
  4096. //ircSay(EchoConnection, EchoChan,string);
  4097. }
  4098.  
  4099. }
  4100. }
  4101. }
  4102. }
  4103. }
  4104.  
  4105. public TaxiDriverTimer()
  4106. {
  4107. for(new i = 0; i < MAX_PLAYERS; i++)
  4108. {
  4109. if(gTeam[i] == TEAM_DRIVER && Driveronduty[i] == 1)
  4110. {
  4111. new taxicab = GetPlayerVehicleID(i);
  4112. for(new j = 0; j < MAX_PLAYERS; j++)
  4113. {
  4114. if(IsPlayerConnected(j))
  4115. {
  4116. if(IsPlayerInVehicle(j,taxicab) && GetPlayerState(j) == PLAYER_STATE_PASSENGER && Taxipass[j] == 1)
  4117. {
  4118. GivePlayerMoney(i,1);
  4119. }
  4120. }
  4121. }
  4122. }
  4123. }
  4124. }
  4125.  
  4126. public TaxiPassengerTimer()
  4127. {
  4128. for(new i = 0; i < MAX_PLAYERS; i++)
  4129. {
  4130. if(Taxipass[i] == 1 && GetPlayerMoney(i) >=5)
  4131. {
  4132. GivePlayerMoney(i,-1);
  4133.  
  4134. }
  4135. else
  4136. if(Taxipass[i] == 1 && GetPlayerMoney(i) <=4)
  4137. {
  4138. SendClientMessage(i,COLOR_ERROR, "You cannot afford to pay the driver the minimum hire fee ($5)");
  4139. RemovePlayerFromVehicle(i);
  4140. Taxipass[i] =0;
  4141. }
  4142. }
  4143. }
  4144.  
  4145. public PlaneDriverTimer()
  4146. {
  4147. for(new i = 0; i < MAX_PLAYERS; i++)
  4148. {
  4149. if(gTeam[i] == TEAM_PILOT && Pilotonduty[i] == 1)
  4150. {
  4151. new planecab = GetPlayerVehicleID(i);
  4152. for(new j = 0; j < MAX_PLAYERS; j++)
  4153. {
  4154. if(IsPlayerConnected(j))
  4155. {
  4156. if(IsPlayerInVehicle(j,planecab) && GetPlayerState(j) == PLAYER_STATE_PASSENGER && Planepass[j] == 1)
  4157. {
  4158. GivePlayerMoney(i,7);
  4159. }
  4160. }
  4161. }
  4162. }
  4163. }
  4164. }
  4165.  
  4166.  
  4167. public PlanePassengerTimer()
  4168. {
  4169. for(new i = 0; i < MAX_PLAYERS; i++)
  4170. {
  4171. if(Planepass[i] == 1 && GetPlayerMoney(i) >=100)
  4172. {
  4173. GivePlayerMoney(i,-7);
  4174.  
  4175. }
  4176. else
  4177. if(Planepass[i] == 1 && GetPlayerMoney(i) <=99)
  4178. {
  4179. SendClientMessage(i,COLOR_ERROR, "You cannot afford to pay the Pilot the minimum hire fee ($100)");
  4180. RemovePlayerFromVehicle(i);
  4181. Planepass[i] =0;
  4182. }
  4183. }
  4184. }
  4185.  
  4186. public UsedBankRecentlyTimer()
  4187. {
  4188. for(new i = 0; i < MAX_PLAYERS; i++)
  4189. {
  4190. if(IsPlayerConnected(i))
  4191. {
  4192. if(IsSpawned[i] == 1 && UsedBankRecently[i] >= 1)
  4193. {
  4194.  
  4195. UsedBankRecently[i] --;
  4196.  
  4197. }
  4198. }
  4199. }
  4200. }
  4201.  
  4202.  
  4203. public UsedAutoRecentlyTimer()
  4204. {
  4205. for(new i = 0; i < MAX_PLAYERS; i++)
  4206. {
  4207. if(IsPlayerConnected(i))
  4208. {
  4209. if(IsSpawned[i] == 1 && UsedAutoRecently[i] >= 1)
  4210. {
  4211.  
  4212. UsedAutoRecently[i] --;
  4213.  
  4214. }
  4215. }
  4216. }
  4217. }
  4218. public RobbedDrugsRecentlyTimer()
  4219. {
  4220. for(new i = 0; i < MAX_PLAYERS; i++)
  4221. {
  4222. if(IsPlayerConnected(i))
  4223. {
  4224. if(IsSpawned[i] == 1 && RobbedDrugsRecently[i] >= 1)
  4225. {
  4226.  
  4227. RobbedDrugsRecently[i] --;
  4228.  
  4229. }
  4230. }
  4231. }
  4232. }
  4233.  
  4234. public OrderedPlaneRecentlyTimer()
  4235. {
  4236. for(new i = 0; i < MAX_PLAYERS; i++)
  4237. {
  4238. if(IsPlayerConnected(i))
  4239. {
  4240. if(IsSpawned[i] == 1 && OrderedPlaneRecently[i] >= 1)
  4241. {
  4242.  
  4243. OrderedPlaneRecently[i] --;
  4244.  
  4245. }
  4246. }
  4247. }
  4248. }
  4249.  
  4250.  
  4251. public UsedFORecentlyTimer()
  4252. {
  4253. for(new i = 0; i < MAX_PLAYERS; i++)
  4254. {
  4255. if(IsPlayerConnected(i))
  4256. {
  4257. if(IsSpawned[i] == 1 && UsedFORecently[i] >= 1)
  4258. {
  4259.  
  4260. UsedFORecently[i] --;
  4261.  
  4262. }
  4263. }
  4264. }
  4265. }
  4266.  
  4267.  
  4268. public UsedAirPortRecentlyTimer()
  4269. {
  4270. for(new i = 0; i < MAX_PLAYERS; i++)
  4271. {
  4272. if(IsPlayerConnected(i))
  4273. {
  4274. if(IsSpawned[i] == 1 && UsedAirPortRecently[i] >= 1)
  4275. {
  4276.  
  4277. UsedAirPortRecently[i] --;
  4278.  
  4279. }
  4280. }
  4281. }
  4282. }
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.  
  4294.  
  4295. public TriedToEscapePrisone()
  4296. {
  4297. for(new i = 0; i < MAX_PLAYERS; i++)
  4298. {
  4299. if(IsPlayerConnected(i))
  4300. {
  4301. if(IsSpawned[i] == 1 && Jailed[i] == 1)
  4302. {
  4303. if(triedtoescaperecent[i] == 1)
  4304. {
  4305. triedtoescaperecent[i] =0;
  4306. } }
  4307. }
  4308. }
  4309. }
  4310.  
  4311.  
  4312.  
  4313. public StoleCopCarRecentTimer()
  4314. {
  4315. for(new i = 0; i < MAX_PLAYERS; i++)
  4316. {
  4317. if(StoleCopCarRecent[i] == 1 && IsPlayerConnected(i))
  4318. {
  4319. StoleCopCarRecent[i] =0;
  4320.  
  4321. }
  4322. }
  4323. }
  4324.  
  4325. public AskedForWeaponsRecent()
  4326. {
  4327. for(new i = 0; i < MAX_PLAYERS; i++)
  4328. {
  4329. if(askedforweapons[i] == 1)
  4330. {
  4331. askedforweapons[i] =0;
  4332.  
  4333. }
  4334. }
  4335. }
  4336.  
  4337. public InfectedPlayerRecent()
  4338. {
  4339. for(new i = 0; i < MAX_PLAYERS; i++)
  4340. {
  4341. if(InfectedPlyRecent[i] == 1)
  4342. {
  4343. InfectedPlyRecent[i] =0;
  4344.  
  4345. }
  4346. }
  4347. }
  4348.  
  4349.  
  4350. public RapedPlayerRecent()
  4351. {
  4352. for(new i = 0; i < MAX_PLAYERS; i++)
  4353. {
  4354. if(RapedPlyRecent[i] == 1)
  4355. {
  4356. RapedPlyRecent[i] =0;
  4357.  
  4358. }
  4359. }
  4360. }
  4361.  
  4362. public ATMRobbedRecentlyTimer()
  4363. {
  4364. if(atmnetworkrobbedrecent >= 1)
  4365. {
  4366. atmnetworkrobbedrecent --;
  4367.  
  4368. }
  4369. }
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375. public BankRobbedRecentlyTimer()
  4376. {
  4377. if(BankRobbedRecently >= 1)
  4378. {
  4379. BankRobbedRecently --;
  4380.  
  4381. }
  4382. }
  4383.  
  4384.  
  4385. public AirPortRobbedRecentlyTimer()
  4386. {
  4387. if(AirPortRobbedRecently >= 1)
  4388. {
  4389. AirPortRobbedRecently --;
  4390.  
  4391. }
  4392. }
  4393.  
  4394.  
  4395.  
  4396. public PlayerRobbedAirPortRecentTimer()
  4397. {
  4398. for(new i = 0; i < MAX_PLAYERS; i++)
  4399. {
  4400. if(IsPlayerConnected(i) && IsSpawned[i] ==1)
  4401. {
  4402. if(PLAYERLIST_authed[i])
  4403. {
  4404.  
  4405. if(PlayerrobbedAirPortrecent[i] >= 1)
  4406. {
  4407. PlayerrobbedAirPortrecent[i] --;
  4408. }
  4409. } }
  4410. }
  4411. }
  4412.  
  4413.  
  4414. public AutoBahnRobbedRecent()
  4415. {
  4416. if(AutoBahnRobbed == 1)
  4417. {
  4418. AutoBahnRobbed =0;
  4419.  
  4420. }
  4421. }
  4422. public DrugsRobbedRecent()
  4423. {
  4424. if(DrugsRobbed == 1)
  4425. {
  4426. DrugsRobbed =0;
  4427.  
  4428. }
  4429. }
  4430.  
  4431. public AirPortRobbedRecent()
  4432. {
  4433. if(AirPortRobbed == 1)
  4434. {
  4435. AirPortRobbed =0;
  4436.  
  4437. }
  4438. }
  4439.  
  4440.  
  4441. public PlayerRobbedBankRecentTimer()
  4442. {
  4443. for(new i = 0; i < MAX_PLAYERS; i++)
  4444. {
  4445. if(IsPlayerConnected(i) && IsSpawned[i] ==1)
  4446. {
  4447. if(PLAYERLIST_authed[i])
  4448. {
  4449.  
  4450. if(Playerrobbedbankrecent[i] >= 1)
  4451. {
  4452. Playerrobbedbankrecent[i] --;
  4453. }
  4454. } }
  4455. }
  4456. }
  4457. public FourDragsRobbedRecent()
  4458. {
  4459. if(FourDragsRobbed == 1)
  4460. {
  4461. FourDragsRobbed =0;
  4462.  
  4463. }
  4464. }
  4465. public AutoRobbedRecent()
  4466. {
  4467. if(AutoRobbed == 1)
  4468. {
  4469. AutoRobbed =0;
  4470.  
  4471. }
  4472. }
  4473. public RedsandsRobbedRecent()
  4474. {
  4475. if(RedsandsRobbed == 1)
  4476. {
  4477. RedsandsRobbed =0;
  4478.  
  4479. }
  4480. }
  4481. public CaligsRobbedRecent()
  4482. {
  4483. if(CaligsRobbed == 1)
  4484. {
  4485. CaligsRobbed =0;
  4486.  
  4487. }
  4488. }
  4489.  
  4490. public newcasinorobbedrecent()
  4491. {
  4492. if(newcasinoRobbed == 1)
  4493. {
  4494. newcasinoRobbed =0;
  4495.  
  4496. }
  4497. }
  4498.  
  4499.  
  4500. public LoginTimer()
  4501. {
  4502. for(new i = 0; i < MAX_PLAYERS; i++)
  4503. {
  4504. if(IsPlayerConnected(i) && udb_Exists(PlayerName(i)))
  4505. {
  4506. if(!PLAYERLIST_authed[i])
  4507. {
  4508. if(loginchances[i] <= 3) {
  4509. //GameTextForPlayer(i, "~w~www.lvrcr.com",5000,0);
  4510. GameTextForPlayer(i,"~r~THIS PLAYERNAME IS REGISTERED~n~TYPE /LOGIN OR CHANGE YOUR NAME",5000,5);
  4511. SendClientMessage(i,COLOR_ERROR,"This Playername Is Registered. Please Login. Use: /login password");
  4512. loginchances[i] ++;
  4513. }
  4514. else
  4515. if(loginchances[i] >= 4) {
  4516. new str[100];
  4517. GetPlayerName(i, str, 24);
  4518. format(str, 100, "**(AUTO KICK)** %s(%d) Failed to login - Registered Playername", str,i);
  4519. SendClientMessageToAll(0xFF7F50AA, str);
  4520. ircSay(EchoConnection, EchoChan, str);
  4521. printf("%s", str);
  4522. SetPlayerInterior(i,10);
  4523. SetPlayerPos(i,219.6257,111.2549,999.0156);
  4524. SetPlayerFacingAngle(i,2.2339);
  4525. SetCameraBehindPlayer(i);
  4526. ResetPlayerMoney(i);
  4527. Kicking[i] =1;
  4528. SetTimer("KickPlayer",700,0);
  4529. }
  4530. }
  4531. }
  4532. }
  4533. }
  4534.  
  4535.  
  4536.  
  4537. public RobbedPlayerRecent()
  4538. {
  4539. for(new i = 0; i < MAX_PLAYERS; i++)
  4540. {
  4541. if(RobbedPlyRecent[i] == 1)
  4542. {
  4543. RobbedPlyRecent[i] =0;
  4544.  
  4545. }
  4546. }
  4547. }
  4548.  
  4549. public JailCuffs()
  4550. {
  4551. for(new i = 0; i < MAX_PLAYERS; i++)
  4552. {
  4553. if(Jailed[i] == 1)
  4554. {
  4555. LeftTwoFourSeven[i] =999;
  4556. TimeToMoveTwoFourSeven[i] =999;
  4557. TogglePlayerControllable(i, 1);
  4558. }
  4559. if(Jailed[i] == 1 && cuffed[i] == 1 && IsPlayerConnected(i))
  4560. {
  4561. cuffed[i] =0;
  4562. SendClientMessage(i,COLOR_WHITE,"LVPD Prison Service: Your handcuffs have been removed");
  4563. }
  4564. }
  4565. }
  4566.  
  4567. public HandCuffed()
  4568. {
  4569. for(new i = 0; i < MAX_PLAYERS; i++)
  4570. {
  4571. if(cuffed[i] == 1 && IsPlayerConnected(i))
  4572. {
  4573. GameTextForPlayer(i,"YOU ARE HANDCUFFED",4000,3);
  4574.  
  4575. }
  4576. }
  4577. }
  4578.  
  4579. public RobbedCasinoRecent()
  4580. {
  4581. for(new i = 0; i < MAX_PLAYERS; i++)
  4582. {
  4583. if(RobbedCasRecent[i] == 1 && IsPlayerConnected(i))
  4584. {
  4585. RobbedCasRecent[i] =0;
  4586.  
  4587. }
  4588. }
  4589. }
  4590.  
  4591. public HasChlamydia()
  4592. {
  4593. for(new i = 0; i < MAX_PLAYERS; i++)
  4594. {
  4595. new Float:health;
  4596. GetPlayerHealth(i, health);
  4597.  
  4598. if(Chlamydia[i] == 1 && health > 5 && IsSpawned[i] == 1 && IsPlayerConnected(i))
  4599. {
  4600. SetPlayerHealth(i, health-5);
  4601. }
  4602. else
  4603. if(Chlamydia[i] == 1 && health <= 5 && IsSpawned[i] == 1 && IsPlayerConnected(i))
  4604. {
  4605. new string[256];
  4606. new victim[24];
  4607. SetPlayerHealth(i, health-5);
  4608. GetPlayerName(i,victim, 24);
  4609. format(string, sizeof(string), "%s(%d) Has died from Chlamydia",victim,i);
  4610. SendClientMessageToAll(0xB22222AA,string);
  4611. }
  4612. }
  4613. }
  4614.  
  4615.  
  4616.  
  4617.  
  4618. public HasSalmonella()
  4619. {
  4620. for(new i = 0; i < MAX_PLAYERS; i++)
  4621. {
  4622. new Float:health;
  4623. GetPlayerHealth(i, health);
  4624.  
  4625. if(Salmonella[i] == 1 && health > 5 && IsSpawned[i] == 1 && IsPlayerConnected(i))
  4626. {
  4627. SetPlayerHealth(i, health-5);
  4628. }
  4629. else
  4630. if(Salmonella[i] == 1 && health <= 5 && IsSpawned[i] == 1 && IsPlayerConnected(i))
  4631. {
  4632. new string[256];
  4633. new victim[24];
  4634. SetPlayerHealth(i, health-5);
  4635. GetPlayerName(i,victim, 24);
  4636. format(string, sizeof(string), "%s(%d) Has died from Salmonella",victim,i);
  4637. SendClientMessageToAll(0xB22222AA,string);
  4638. }
  4639. }
  4640. }
  4641.  
  4642. public BeenReported()
  4643. {
  4644. for(new i = 0; i < MAX_PLAYERS; i++)
  4645. {
  4646. if(ReportedRecent[i] == 1 && IsPlayerConnected(i))
  4647. {
  4648. ReportedRecent[i] =0;
  4649.  
  4650. }
  4651. }
  4652. }
  4653.  
  4654.  
  4655. public ReqBkRecentTime()
  4656. {
  4657. for(new i = 0; i < MAX_PLAYERS; i++)
  4658. {
  4659. if(ReqBkRecent[i] == 1 && IsPlayerConnected(i))
  4660. {
  4661. ReqBkRecent[i] =0;
  4662. }
  4663. }
  4664. }
  4665.  
  4666.  
  4667.  
  4668. public SandEngine()
  4669. {
  4670. for(new v = 0; v < MAX_VEHICLES; v++)
  4671. {
  4672. if(SandInEngine[v] == 1)
  4673. {
  4674. new Float:vHealth;
  4675. GetVehicleHealth(v, vHealth);
  4676. SetVehicleHealth(v, vHealth -100);
  4677.  
  4678. }
  4679. }
  4680. }
  4681.  
  4682. public FilledGasRecentDealer()
  4683. {
  4684. for(new i = 0; i < MAX_PLAYERS; i++)
  4685. {
  4686. if(filleduprecent[i] == 1 && IsPlayerConnected(i))
  4687. {
  4688. filleduprecent[i] =0;
  4689. }
  4690. }
  4691. }
  4692.  
  4693.  
  4694.  
  4695. public WantedYellow()
  4696. {
  4697. for(new i = 0; i < MAX_PLAYERS; i++)
  4698. {
  4699. if(IsSpawned[i] == 1)
  4700. {
  4701. if(GetPlayerWantedLevel(i) >= 1 && GetPlayerWantedLevel(i) <= 3)
  4702. {
  4703. SetPlayerColor(i, COLOR_YELLOW);
  4704. }
  4705. }
  4706. }
  4707. }
  4708.  
  4709.  
  4710.  
  4711.  
  4712. public WantedOrange()
  4713. {
  4714. for(new i = 0; i < MAX_PLAYERS; i++)
  4715. {
  4716. if(IsSpawned[i] == 1)
  4717. {
  4718. if(GetPlayerWantedLevel(i) >= 4 && GetPlayerWantedLevel(i) <= 9)
  4719. {
  4720. SetPlayerColor(i, COLOR_ORANGE);
  4721. }
  4722. }
  4723. }
  4724. }
  4725. public WantedRed()
  4726. {
  4727. for(new i = 0; i < MAX_PLAYERS; i++)
  4728. {
  4729. if(IsSpawned[i] == 1)
  4730. {
  4731. if(GetPlayerWantedLevel(i) >= 10)
  4732. {
  4733. SetPlayerColor(i, COLOR_RED);
  4734. }
  4735. }
  4736. }
  4737. }
  4738.  
  4739. public WantedInnocent()
  4740. {
  4741. for(new i = 0; i < MAX_PLAYERS; i++)
  4742. {
  4743. if(IsSpawned[i] == 1 && gTeam[i] >= 3)
  4744. {
  4745. if(GetPlayerWantedLevel(i) == 0)
  4746. {
  4747. SetPlayerToTeamColour(i);
  4748. }
  4749. }
  4750. }
  4751. }
  4752. public KickPlayer()
  4753. {
  4754. for(new i = 0; i < MAX_PLAYERS; i++)
  4755. {
  4756. if(IsPlayerConnected(i))
  4757. {
  4758. if(Kicking[i] == 1)
  4759. {
  4760. Kick(i);
  4761. }
  4762. }
  4763. }
  4764. }
  4765. public BanPlayer()
  4766. {
  4767. for(new i = 0; i < MAX_PLAYERS; i++)
  4768. {
  4769. if(IsPlayerConnected(i))
  4770. {
  4771. if(Banning[i] == 1)
  4772. {
  4773. Ban(i);
  4774. }
  4775. }
  4776. }
  4777. }
  4778.  
  4779. public GetPlayerZone(playerid) {
  4780. new line[10];
  4781. format(line,10,"p%dzone",playerid);
  4782. new zoneid = strval(PropertyGet(line));
  4783. return zoneid;
  4784. }
  4785.  
  4786.  
  4787. public SoldDrugsRecentDealer()
  4788. {
  4789. for (new i = 0; i < MAX_PLAYERS; i++)
  4790. {
  4791. if(solddrugsrecent[i] == 1)
  4792. {
  4793. solddrugsrecent[i] =0;
  4794. }
  4795. }
  4796. }
  4797.  
  4798. public Tazingtime()
  4799. {
  4800. for (new i = 0; i < MAX_PLAYERS; i++)
  4801. {
  4802. if(Tazed[i] == 1)
  4803. {
  4804. Tazed[i] =0;
  4805. TogglePlayerControllable(i, 1);
  4806.  
  4807. }
  4808. }
  4809. }
  4810.  
  4811. public Tazing()
  4812. {
  4813. for (new i = 0; i < MAX_PLAYERS; i++)
  4814. {
  4815. if(Tazed[i] == 1)
  4816. {
  4817.  
  4818. new Float:phealth;
  4819. GetPlayerHealth(i,phealth);
  4820. if(phealth > 50)
  4821. {
  4822. SetPlayerHealth(i, phealth-5);
  4823. PlayerPlaySound(i, 1190, 0.0, 0.0, 0.0);
  4824. TogglePlayerControllable(i, 0);
  4825. }
  4826. }
  4827. }
  4828. }
  4829.  
  4830. public PlayerRobWait(playerid)
  4831. {
  4832. if(PlayerRobwwait[playerid] == 1)
  4833. {
  4834. PlayerRobwwait[playerid] = 0;
  4835. }
  4836. }
  4837.  
  4838. public weaponanti()
  4839. {
  4840. for (new i = 0; i < MAX_PLAYERS; i++)
  4841. {
  4842. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  4843. {
  4844. if (GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 16 || GetPlayerWeapon(i) == 17 || GetPlayerWeapon(i) == 18 || GetPlayerWeapon(i) == 19 || GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 37 || GetPlayerWeapon(i) == 39 || GetPlayerWeapon(i) == 4)
  4845. {
  4846. if(PlayerAdminLevel[i] != 1337) {
  4847. new pname[30];
  4848. new string[256];
  4849. new inter;
  4850. inter = GetPlayerInterior(i);
  4851. new wep = GetPlayerWeapon(i);
  4852. GetPlayerName(i, pname, 30);
  4853. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
  4854. SendClientMessageToAll(0xFF7F50AA, string);
  4855. ircSay(EchoConnection, EchoChan,string);
  4856. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
  4857. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
  4858. SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit www.lvrcr.com to appeal this ban");
  4859. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Wep:[%d] Int:[%d]",pname,i,wep,inter);
  4860. printf("%s", string);
  4861. if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
  4862. dUserSetINT(PlayerName(i)).("nameban",1);
  4863. }
  4864. SetPlayerInterior(i,10);
  4865. SetPlayerPos(i,219.6257,111.2549,999.0156);
  4866. SetPlayerFacingAngle(i,2.2339);
  4867. SetCameraBehindPlayer(i);
  4868. Banning[i] = 1;
  4869. SetTimer("BanPlayer",700,0);
  4870.  
  4871. }
  4872. }
  4873. }
  4874. }
  4875. }
  4876.  
  4877. public cashanti()
  4878. {
  4879. for (new i = 0; i < MAX_PLAYERS; i++)
  4880. {
  4881. if(IsPlayerConnected(i) && IsSpawned[i] == 1)
  4882. {
  4883. if (GetPlayerMoney(i) > 4000000)
  4884. {
  4885. if(PlayerAdminLevel[i] != 1337) {
  4886. new pname[30];
  4887. new string[256];
  4888. new inter;
  4889. inter = GetPlayerInterior(i);
  4890. new pcash = GetPlayerMoney(i);
  4891. GetPlayerName(i, pname, 24);
  4892. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i,pcash);
  4893. SendClientMessageToAll(0xFF7F50AA, string);
  4894. ircSay(EchoConnection, EchoChan,string);
  4895. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
  4896. SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
  4897. SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit www.lvrcr.com to appeal this ban");
  4898. format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Cash:[$%d] Int:[%d]",pname,i,pcash,inter);
  4899. printf("%s", string);
  4900. SetPlayerInterior(i,10);
  4901. SetPlayerPos(i,219.6257,111.2549,999.0156);
  4902. SetPlayerFacingAngle(i,2.2339);
  4903. SetCameraBehindPlayer(i);
  4904. ResetPlayerMoney(i);
  4905. Banning[i] = 1;
  4906. SetTimer("BanPlayer",700,0);
  4907.  
  4908. }
  4909. }
  4910. }
  4911. }
  4912. }
  4913.  
  4914.  
  4915. public AskedForFoodRecent()
  4916. {
  4917. for (new i = 0; i < MAX_PLAYERS; i++)
  4918. {
  4919. if (askedforfood[i] ==1)
  4920. {
  4921. askedforfood[i] =0;
  4922. }
  4923. }
  4924. }
  4925.  
  4926. public SellFoodRecent()
  4927. {
  4928. for (new i = 0; i < MAX_PLAYERS; i++)
  4929. {
  4930. if (sellfoodrecently[i] ==1)
  4931. {
  4932. sellfoodrecently[i] =0;
  4933. }
  4934. }
  4935. }
  4936.  
  4937. public ReqMechRecentTime()
  4938. {
  4939. for (new i = 0; i < MAX_PLAYERS; i++)
  4940. {
  4941. if (RecentAskedMechanic[i] ==1)
  4942. {
  4943. RecentAskedMechanic[i] =0;
  4944. }
  4945. }
  4946. }
  4947.  
  4948.  
  4949.  
  4950. stock GetPlayersInTeam(TEAM)
  4951. {
  4952. new players;
  4953. for (new i; i < MAX_PLAYERS; i++)
  4954. {
  4955. if (IsPlayerConnected(i))
  4956. {
  4957. if (gTeam[i] == TEAM) players++;
  4958. }
  4959. }
  4960. return players;
  4961. }
  4962.  
  4963.  
  4964.  
  4965.  
  4966. public ArmyPayDay()
  4967. {
  4968. for (new i = 0; i < MAX_PLAYERS; i++)
  4969. {
  4970. if (gTeam[i] == TEAM_ARMY && GetPlayerColor(i) == COLOR_BLUEVIOLET)
  4971. {
  4972. SendClientMessage(i,COLOR_ROYALBLUE,"SA ARMY RESOURCES: You have received your daily paycheck. $10000.");
  4973. GivePlayerMoney(i,10000);
  4974. }
  4975. }
  4976. }
  4977.  
  4978. public PilotPayDay()
  4979. {
  4980. for (new i = 0; i < MAX_PLAYERS; i++)
  4981. {
  4982. if (gTeam[i] == TEAM_PILOT)
  4983. {
  4984. SendClientMessage(i,COLOR_ROYALBLUE,"AirPort Owner: You have received your daily paycheck. $2500 ");
  4985. GivePlayerMoney(i,2500);
  4986. {
  4987. if(IsPlayerConnected(i))
  4988. {
  4989. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  4990. if(AirPortOwner[i] == 1337)
  4991. {
  4992. new string[256];
  4993. GetPlayerName(i,AirPortOwner,24);
  4994. SendClientMessage(i, 0xA9A9A9AA, "|_Worker Pay Day_|");
  4995. format(string, sizeof(string), "You have payed all of your workers you lose 10k ");
  4996. GivePlayerMoney(i,- 10000);
  4997. }
  4998. }
  4999. }
  5000. }
  5001. }
  5002. }
  5003.  
  5004. public PolicePayDay()
  5005. {
  5006. for (new i = 0; i < MAX_PLAYERS; i++)
  5007. {
  5008. if (gTeam[i] == TEAM_COP && GetPlayerColor(i) == COLOR_BLUE)
  5009. {
  5010. SendClientMessage(i,COLOR_ROYALBLUE,"SAPD RESOURCES: You have received your daily paycheck. $5000");
  5011. GivePlayerMoney(i,5000);
  5012. }
  5013. }
  5014. }
  5015.  
  5016. SetPlayerTeamFromClass(playerid, classid) {
  5017.  
  5018. if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 10 || classid == 11 || classid == 12) {
  5019.  
  5020. gTeam[playerid] = TEAM_COP;
  5021.  
  5022. } else if(classid == 8) {
  5023.  
  5024. gTeam[playerid] = TEAM_ARMY;
  5025.  
  5026. } else if(classid == 9) {
  5027.  
  5028. gTeam[playerid] = TEAM_CASSEC;
  5029.  
  5030. } else if(classid == 13) {
  5031.  
  5032. gTeam[playerid] = TEAM_JAILTK;
  5033.  
  5034. } else if(classid == 14) {
  5035.  
  5036. gTeam[playerid] = TEAM_MEDIC;
  5037.  
  5038. } else if(classid == 15) {
  5039.  
  5040. gTeam[playerid] = TEAM_CARFIX;
  5041.  
  5042. } else if(classid == 16) {
  5043.  
  5044. gTeam[playerid] = TEAM_BISTRO;
  5045.  
  5046. } else if(classid == 17 || classid == 18) {
  5047.  
  5048. gTeam[playerid] = TEAM_DRIVER;
  5049.  
  5050. } else if(classid >= 19 && classid <= 63) {
  5051.  
  5052. gTeam[playerid] = TEAM_CIVIL;
  5053.  
  5054.  
  5055. }
  5056.  
  5057. }
  5058.  
  5059. public OnPlayerRequestClass(playerid, classid)
  5060. {
  5061. SetPlayerTeamFromClass(playerid, classid);
  5062. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5063.  
  5064. SetPlayerInterior(playerid,3);
  5065. SetPlayerPos(playerid,1206.9768,-32.5926,1000.9531);
  5066. SetPlayerFacingAngle(playerid,249.3010);
  5067. SetPlayerCameraPos(playerid,1209.1083,-33.8061,1000.9531);
  5068. SetPlayerCameraLookAt(playerid,1206.9768,-32.5926,1000.9531);
  5069.  
  5070.  
  5071.  
  5072. switch (classid) {
  5073.  
  5074. case 0,1,2,3,4,5,6:
  5075.  
  5076. {
  5077.  
  5078. GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
  5079.  
  5080. }
  5081.  
  5082. case 7:
  5083.  
  5084. {
  5085.  
  5086. GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~FBI", 3000, 5);
  5087.  
  5088. }
  5089.  
  5090. case 8:
  5091.  
  5092. {
  5093.  
  5094. GameTextForPlayer(playerid, "~b~SA ARMY OFFICER~n~~w~DEADLY FORCE SQUAD", 3000, 5);
  5095.  
  5096. }
  5097.  
  5098. case 9:
  5099.  
  5100. {
  5101.  
  5102. GameTextForPlayer(playerid, "~w~CASINO SECURITY", 3000, 5);
  5103.  
  5104. }
  5105.  
  5106. case 10:
  5107.  
  5108. {
  5109.  
  5110. GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CASUAL CLOTHES", 3000, 5);
  5111.  
  5112. }
  5113.  
  5114. case 11:
  5115.  
  5116. {
  5117.  
  5118. GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~AIR SUPPORT", 3000, 5);
  5119.  
  5120. }
  5121.  
  5122. case 12:
  5123.  
  5124. {
  5125.  
  5126. GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~MARINE SUPPORT", 3000, 5);
  5127.  
  5128. }
  5129.  
  5130. case 13:
  5131.  
  5132. {
  5133.  
  5134. GameTextForPlayer(playerid, "~b~JAIL TURNKEY~n~~w~(RELEASE PRISONERS)", 3000, 5);
  5135. }
  5136.  
  5137. case 14:
  5138.  
  5139. {
  5140.  
  5141. GameTextForPlayer(playerid, "~b~MEDIC", 3000, 5);
  5142.  
  5143. }
  5144.  
  5145. case 15:
  5146.  
  5147. {
  5148.  
  5149. GameTextForPlayer(playerid, "~w~CAR MECHANIC", 3000, 5);
  5150.  
  5151. }
  5152.  
  5153. case 16:
  5154.  
  5155. {
  5156.  
  5157. GameTextForPlayer(playerid, "~w~BISTRO STAFF", 3000, 5);
  5158.  
  5159. }
  5160.  
  5161. case 17,18:
  5162.  
  5163. {
  5164.  
  5165. GameTextForPlayer(playerid, "~g~TAXI DRIVER", 3000, 5);
  5166.  
  5167. }
  5168. case 19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63:
  5169.  
  5170. {
  5171.  
  5172. GameTextForPlayer(playerid, "~w~CIVILIAN~b~~n~CHOOSE A JOB WHEN YOU SPAWN", 3000, 5);
  5173.  
  5174. }
  5175.  
  5176. }
  5177. return 1;
  5178. }
  5179.  
  5180. public OnPlayerRequestSpawn(playerid)
  5181. {
  5182. if(udb_Exists(PlayerName(playerid)) && !PLAYERLIST_authed[playerid]) {
  5183. GameTextForPlayer(playerid,"~w~ THIS PLAYER NAME IS REGISTERED~n~~r~!- YOU ARE NOT LOGGED IN -!~n~~w~ USE ~g~/LOGIN (PASSWORD)",5000,3);
  5184. return 0;
  5185. }
  5186. if(!udb_Exists(PlayerName(playerid)) && !PLAYERLIST_authed[playerid]) {
  5187. GameTextForPlayer(playerid,"~w~ PLAYER NAME NOT REGISTERED~n~~r~!- YOU ARE NOT REGISTERED -!~n~~w~ USE ~g~/REGISTER (PASSWORD)",5000,3);
  5188. return 0;
  5189. }
  5190. if(gTeam[playerid] == TEAM_ARMY && CanUseArmy[playerid] == 0) {
  5191. GameTextForPlayer(playerid,"~w~you cannot use this class/skill~n~ you do not have the required permissions to play as~n~ ~b~ sa army",5000,3);
  5192. return 0;
  5193. }
  5194.  
  5195. return 1;
  5196. }
  5197.  
  5198. public OnPlayerConnect(playerid)
  5199. {
  5200. new str[100], str2[100], string[100];
  5201. GetPlayerName(playerid, str, 24);
  5202. format(str2, 100, "\2;%s(%d) Has Joined Las Venturas Roleplay/Cops/Robbers v%s\2;", str,playerid,sversion);
  5203. ircSay(EchoConnection, EchoChan,str2);
  5204. format(str, 100, "%s(%d) Has Joined Las Venturas Roleplay/Cops/Robbers v%s", str,playerid,sversion);
  5205. printf("%s",str);
  5206. for(new i=0; i<MAX_PLAYERS_; i++) {
  5207. if(IsPlayerConnected(i) && i != playerid) {
  5208. SendClientMessage(i,0x808080AA, str);
  5209. }
  5210. }
  5211. new taggedname[30];
  5212. GetPlayerName(playerid,taggedname,50);
  5213. if(strfind(taggedname, "[",true)!= -1 || strfind(taggedname, "]",true)!= -1 ){
  5214. SendClientMessage(playerid,COLOR_RED,"Tags / Clans are not allowed on this server. Please change your name");
  5215. Kick(playerid);
  5216. return 1;
  5217. }
  5218.  
  5219.  
  5220. TogglePlayerClock(playerid,true);
  5221. InShamal[playerid] = 0;
  5222.  
  5223. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5224.  
  5225. SetPlayerVirtualWorld(playerid,0);
  5226. format(string, sizeof(string), "Las Venturas Roleplay/Cops/Robbers - Script Version %s",sversion);
  5227. SendClientMessage(playerid,COLOR_WHITE, string);
  5228. SendClientMessage(playerid,0x87CEEBAA, "This is NOT a deathmatch server. Do not randomly kill players");
  5229. SendClientMessage(playerid,0x87CEEBAA, "Visit our website to report bugs/suggestions/complaints etc");
  5230. SendClientMessage(playerid,0x87CEEBAA, "There is a full list of commands/rules and other information on our website" );
  5231. SendClientMessage(playerid,0x87CEEBAA, "Visit our website at www.lvrcr.com");
  5232. format(string, sizeof(string), "~w~WELCOME TO~n~LAS VENTURAS~n~ROLEPLAY/COPS/ROBBERS~n~~b~version %s",sversion);
  5233. GameTextForPlayer(playerid,string, 6000, 0);
  5234. if(udb_Exists(PlayerName(playerid))) {
  5235. SendClientMessage(playerid,0x9ACD32AA,"This Playername is Registered. Please login before you spawn");
  5236. SendClientMessage(playerid,COLOR_RED,"Please use /login (password) to login before you can spawn");
  5237. }
  5238. else
  5239. if(!udb_Exists(PlayerName(playerid))) {
  5240. SendClientMessage(playerid,0x9ACD32AA,"This Playername has not yet been registered. You must register on this server before you can play");
  5241. SendClientMessage(playerid,COLOR_RED,"Please use /register (password) to register before you can spawn");
  5242. }
  5243. KilledHimself[playerid] =0;
  5244. HasKidnapped[playerid] =0;
  5245. SpamStrings[playerid] =0;
  5246. GotCopBriberecently[playerid] =0;
  5247. CanUseArmy[playerid] =0;
  5248. PlayerAdminLevel[playerid] =0;
  5249. HasDrugHouseKeys[playerid] =0;
  5250. AdminKilled[playerid] =0;
  5251. TimeToMoveTwoFourSeven[playerid] =999;
  5252. RobbedCash[playerid] =0;
  5253. BankCashReturns[playerid] =0;
  5254. BankRobInsurance[playerid] =0;
  5255. AbandonedCopCar[playerid] =1;
  5256. HasCried[playerid] =0;
  5257. IsSpawned[playerid] =0;
  5258. zoneupdates[playerid] = 0;
  5259. player_zone[playerid] = -1;
  5260. Jailed[playerid] =0;
  5261. Frozen[playerid] =0;
  5262. cuffed[playerid] =0;
  5263. Kicking[playerid] =0;
  5264. Chlamydia[playerid] =0;
  5265. Banning[playerid] =0;
  5266. PlayerRobwwait[playerid] =1;
  5267. Tazed[playerid] =0;
  5268. hastazer[playerid] =0;
  5269. LawEnforcementRadio[playerid] =0;
  5270. HasLawEnforcementRadio[playerid] =0;
  5271. ReqBk[playerid] =0;
  5272. ReqBkRecent[playerid] =0;
  5273. ReportedRecent[playerid] =0;
  5274. wantsheal[playerid] =0;
  5275. wantscure[playerid] =0;
  5276. wantsmechanic[playerid] =0;
  5277. RecentAskedMechanic[playerid] =0;
  5278. RobbedCasRecent[playerid] =0;
  5279. RobbedPlyRecent[playerid] =0;
  5280. Wantsfood[playerid] =0;
  5281. sellfoodrecently[playerid] =1;
  5282. Salmonella[playerid] =0;
  5283. askedforfood[playerid] =0;
  5284. askedforweapons[playerid] =0;
  5285. Wantsguns[playerid] =0;
  5286. OfferedGuns[playerid] =0;
  5287. Muted[playerid] =0;
  5288. PlayerDrugs[playerid] =0;
  5289. wantsdrugs[playerid] =0;
  5290. solddrugsrecent[playerid] =0;
  5291. JailTime[playerid] =0;
  5292. StoleCopCarRecent[playerid] =0;
  5293. playerondrugs[playerid] =0;
  5294. playertookdrugs[playerid] =0;
  5295. HasDrugBag[playerid] =0;
  5296. triedtoescaperecent[playerid] =0;
  5297. cannotescapejail[playerid] =0;
  5298. CopWaitBetweenRefills[playerid] =0;
  5299. VisitReq[playerid] =0;
  5300. EscapedConvict[playerid] =0;
  5301. VisitReqExpires[playerid] =0;
  5302. HasHitOnHim[playerid] =0;
  5303. InAlcatraz[playerid] =0;
  5304. PLAYERLIST_authed[playerid]=false;
  5305. loginchances[playerid] =0;
  5306. BankCash[playerid] =0;
  5307. UsedBankRecently[playerid] =0;
  5308. RobbedDrugsRecently[playerid] =0;
  5309. UsedAutoRecently[playerid] =0;
  5310. OrderedPlaneRecently[playerid] =0;
  5311. UsedAirPortRecently[playerid] =0;
  5312. InBank[playerid] =0;
  5313. Playerrobbedbankrecent[playerid] =0;
  5314. InDerby[playerid] =0;
  5315. commitedcrimerecently[playerid] =0;
  5316. copshavevc[playerid] =0;
  5317. fixedcarrecent[playerid] =0;
  5318. //NewCash[playerid] =0;
  5319. OldCash[playerid] =0;
  5320. InAdminHQ[playerid] =0;
  5321. autobahnowner[playerid] =0;
  5322. drunkplayer[playerid] =0;
  5323. lastcardrove[playerid] =999;
  5324. InAdminMode[playerid] =0;
  5325. HasC4[playerid] =0;
  5326. PlantingC4[playerid] =0;
  5327. RobbedCaligs[playerid] =0;
  5328. HasWallet[playerid] =0;
  5329. TrashDeliveryTime[playerid] =0;
  5330. TrashDeliveryEarnings[playerid] =0;
  5331. GunDeliveryLevel[playerid] =0;
  5332. OnDelMission[playerid] =0;
  5333. GunsDeliveryTime[playerid] =0;
  5334. DeliveringGuns[playerid] =0;
  5335. RobbedBank[playerid] =0;
  5336. DeliveringCash[playerid] =0;
  5337. totalcashdelivered[playerid] =0;
  5338. Driveronduty[playerid] =0;
  5339. Pilotonduty[playerid] =0;
  5340. pmsoff[playerid] =0;
  5341. carwin[playerid] =0;
  5342. beenrobbedrecently[playerid] =0;
  5343. AllowPlayerTeleport(playerid,0);
  5344. canchooseskill[playerid] =0;
  5345. robberrank[playerid] =0;
  5346. teamkiller[playerid] =0;
  5347. innocentkiller[playerid] =0;
  5348. lowwantedkiller[playerid] =0;
  5349. CasSecLastPlayerCuffed[playerid] =999;
  5350. LeftTwoFourSeven[playerid] =999;
  5351. isKidnapped[playerid] =0;
  5352. gotSissors[playerid] =0;
  5353. gotRope[playerid] =0;
  5354. DrugHouseOwner[playerid] =0;
  5355.  
  5356.  
  5357. SetPlayerMapIcon( playerid, 1, 3834.0366,462.8921,40.4060, 30, 0 );
  5358. SetPlayerMapIcon( playerid, 2, 2347.7432,1561.8536,36.9063, 52, 0 ); // bank
  5359. SetPlayerMapIcon( playerid, 3, 1137.7289,2088.1465,11.0625, 52, 0 ); // atm 1
  5360. SetPlayerMapIcon( playerid, 4, 2540.4976,2266.2742,10.8203, 52, 0 ); // atm 2
  5361. SetPlayerMapIcon( playerid, 5, 2192.8577,1975.1671,12.2894, 52, 0 ); // atm 3
  5362. SetPlayerMapIcon( playerid, 6, 2231.5820,958.6937,10.8203, 52, 0 ); // atm 4
  5363. SetPlayerMapIcon( playerid, 7, 2174.4482,1398.4165,11.4234, 55, 0 ); // autobahn
  5364. SetPlayerMapIcon( playerid, 8, 2283.0537,2437.0647,46.9775, 30, 0 ); // lvpd
  5365. //SetPlayerMapIcon( playerid, 9, 2440.9717,2376.7434,11.2572, 40, 0 ); // lvpd
  5366.  
  5367.  
  5368. return 1;
  5369. }
  5370. public OnPlayerDisconnect(playerid, reason)
  5371. {
  5372. new msg[128];
  5373. new name[32];
  5374. GetPlayerName(playerid, name, sizeof(name));
  5375. format(msg, sizeof(msg), "\2;%s(%d) Has left the server (%s)\2;", name,playerid,aDisconnectNames[reason]);
  5376. ircSay(EchoConnection, EchoChan, msg);
  5377. zoneupdates[playerid] = 0;
  5378. player_zone[playerid] = -1;
  5379. Banning[playerid] = 0;
  5380. Kicking[playerid] = 0;
  5381. PlayerAdminLevel[playerid] =0;
  5382. HasDrugHouseKeys[playerid] =0;
  5383. if (PLAYERLIST_authed[playerid]) {
  5384. dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
  5385. dUserSetINT(PlayerName(playerid)).("score",GetPlayerScore(playerid));
  5386. dUserSetINT(PlayerName(playerid)).("robrank",robberrank[playerid]);
  5387. dUserSetINT(PlayerName(playerid)).("teamkills",teamkiller[playerid]);
  5388. dUserSetINT(PlayerName(playerid)).("innocentkills",innocentkiller[playerid]);
  5389. dUserSetINT(PlayerName(playerid)).("lowwantedkills",lowwantedkiller[playerid]);
  5390. dUserSetINT(PlayerName(playerid)).("cashinsured",BankRobInsurance[playerid]);
  5391. dUserSetINT(PlayerName(playerid)).("RegularPlayer",RegularPlayer[playerid]);
  5392. dUserSetINT(PlayerName(playerid)).("HasDrugHouseKeys",HasDrugHouseKeys[playerid]);
  5393.  
  5394.  
  5395. }
  5396. PLAYERLIST_authed[playerid]=false;
  5397.  
  5398. new ConnectName[30], str[100];
  5399. GetPlayerName(playerid, ConnectName, 30);
  5400. switch (reason) {
  5401. case 0: format(str, 256, "%s has left the server! (Timeout)", ConnectName);
  5402. case 1: format(str, 256, "%s has left the server! (Leaving)", ConnectName);
  5403. case 2: format(str, 256, "%s has left the server! (Kicked)", ConnectName);
  5404. }
  5405. SendClientMessageToAll(0x808080AA, str);
  5406. return 1;
  5407. }
  5408.  
  5409. stock PlayerName(playerid) {
  5410. new name[255];
  5411. GetPlayerName(playerid, name, 255);
  5412. return name;
  5413. }
  5414. public OnPlayerSpawn(playerid)
  5415. {
  5416. SetCameraBehindPlayer(playerid);
  5417.  
  5418. SetPlayerTime(playerid,gametime,0);
  5419. IsSpawned[playerid] =1;
  5420. GangZoneShowForPlayer(playerid, alkatrazmap, 0x8B4513AA);
  5421. GangZoneShowForPlayer(playerid, carriermap, 0x8B4513AA);
  5422. //TextDrawShowForPlayer(playerid,txtWebAddress);
  5423. //TextDrawShowForPlayer(playerid,txtScriptVers);
  5424.  
  5425.  
  5426.  
  5427. zoneupdates[playerid] = 1;
  5428. player_zone[playerid] = -1;
  5429. RobbedCasRecent[playerid] =0;
  5430. RobbedPlyRecent[playerid] =1;
  5431. if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
  5432.  
  5433. SetPlayerWantedLevel(playerid, 0);
  5434. SetPlayerInterior(playerid,0);
  5435. SetPlayerToTeamColour(playerid);
  5436.  
  5437.  
  5438. if(gTeam[playerid] >= 9) {
  5439. new rnd;
  5440. rnd = random(sizeof (SpawnPoints));
  5441. SetPlayerPos(playerid, SpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
  5442. SetPlayerFacingAngle(playerid, SpawnPoints[rnd][3]);
  5443. canchooseskill[playerid] = 1;
  5444. canselectskill[playerid] = 25;
  5445. SendClientMessage(playerid,COLOR_WHITE, "Type /skill to select a skill");
  5446. SendClientMessage(playerid,COLOR_WHITE, "You only have a short time to select before the default skill is given (Rapist)");
  5447. //GameTextForPlayer(playerid,"~w~TYPE ~y~/SKILL~n~ ~b~TO SELECT A SKILL",5000,0);
  5448. TextDrawShowForPlayer(playerid,txtTypeSkill);
  5449. }
  5450.  
  5451.  
  5452.  
  5453.  
  5454. if(gTeam[playerid] == TEAM_COP) {
  5455.  
  5456. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5457. SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
  5458. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5459. SendClientMessage(playerid,0x1E90FFAA, "Due to you being a cop, your bank insurance has been paid for automaticly.");
  5460. hastazer[playerid] =1;
  5461. HasLawEnforcementRadio[playerid] =1;
  5462. LawEnforcementRadio[playerid] =1;
  5463. CopWaitBetweenRefills[playerid] =120;
  5464. BankRobInsurance[playerid] =1;
  5465.  
  5466.  
  5467.  
  5468.  
  5469. }else if(gTeam[playerid] == TEAM_ARMY) {
  5470. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5471. SendClientMessage(playerid,0x1E90FFAA, "SA ARMY: Your objective is to take out MOST WANTED (Level 10 +) suspects only");
  5472. SendClientMessage(playerid,0x1E90FFAA, "If you dont need to kill the suspect, then dont. Use /ar to arrest instead");
  5473. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5474. SendClientMessage(playerid,0x1E90FFAA, "Due to you being a part in the army, your bank insurance has been paid for automaticly.");
  5475. HasLawEnforcementRadio[playerid] =1;
  5476. LawEnforcementRadio[playerid] =1;
  5477. CopWaitBetweenRefills[playerid] =120;
  5478. BankRobInsurance[playerid] =1;
  5479.  
  5480.  
  5481. }else if(gTeam[playerid] == TEAM_MEDIC) {
  5482.  
  5483. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5484. SendClientMessage(playerid,0x1E90FFAA, "MEDIC: Your job is to keep civilians and government personel alive");
  5485. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5486.  
  5487.  
  5488.  
  5489.  
  5490. }else if(gTeam[playerid] == TEAM_CASSEC) {
  5491.  
  5492. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5493. SendClientMessage(playerid,0x1E90FFAA, "CASINO SECURITY: You must protect the casinos from robbers");
  5494. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5495. HasLawEnforcementRadio[playerid] =1;
  5496. LawEnforcementRadio[playerid] =1;
  5497.  
  5498.  
  5499. }else if(gTeam[playerid] == TEAM_JAILTK) {
  5500.  
  5501. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5502. SendClientMessage(playerid,0x1E90FFAA, "JAIL TURNKEY: You get the job of releasing prisoners from jail");
  5503. SendClientMessage(playerid,0x1E90FFAA, "If a prisoner wants to be released early then you can take cash in exchange for their freedom");
  5504. SendClientMessage(playerid,0x1E90FFAA, "You can also release them without taking any cash if you wish");
  5505. SendClientMessage(playerid,0x1E90FFAA, "Use: /jail to see who is in jail - you can only parole prisoners in LVPD (non Alcatraz)");
  5506.  
  5507.  
  5508. }else if(gTeam[playerid] == TEAM_CARFIX) {
  5509.  
  5510. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5511. SendClientMessage(playerid,0x1E90FFAA, "CAR MECHANIC: You can fix beat up cars");
  5512. SendClientMessage(playerid,0x1E90FFAA, "Look out for players needing your services on the chat");
  5513. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5514.  
  5515.  
  5516.  
  5517. }else if(gTeam[playerid] == TEAM_BISTRO) {
  5518.  
  5519. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5520. SendClientMessage(playerid,0x1E90FFAA, "BISTRO STAFF: Your job is to sell food to other players if their health less than full");
  5521. SendClientMessage(playerid,0x1E90FFAA, "Look out for players needing food on the chat");
  5522. SendClientMessage(playerid,0x1E90FFAA, "You can sell players bad food and infect them with food poisining");
  5523. SendClientMessage(playerid,0x1E90FFAA, "You can also sell healthy, non infected food");
  5524. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5525.  
  5526.  
  5527. }else if(gTeam[playerid] == TEAM_DRIVER) {
  5528.  
  5529. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  5530. SendClientMessage(playerid,0x1E90FFAA, "DRIVER: You can take players in your vehicle and drop them of for cash");
  5531. SendClientMessage(playerid,0x1E90FFAA, "You can only use a Taxi, Limo, Maverick or a Coach to earn points");
  5532. SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
  5533.  
  5534. }
  5535.  
  5536.  
  5537. if(udb_Exists(PlayerName(playerid)) && PLAYERLIST_authed[playerid])
  5538. {
  5539. new str[100];
  5540. new isbanned =0;
  5541. isbanned =dUserINT(PlayerName(playerid)).("nameban");
  5542. if(isbanned == 1) {
  5543. GetPlayerName(playerid, str, 24);
  5544. format(str, 100, "**(AUTO BAN)** %s(%d) Banned Playername (Ban Evade)", str,playerid);
  5545. SendClientMessageToAll(0xFF7F50AA, str);
  5546. printf("%s", str);
  5547. SendClientMessage(playerid,COLOR_ERROR,"This playername has been previously banned. Visit www.lvrcr.com to appeal");
  5548. SetPlayerInterior(playerid,10);
  5549. SetPlayerPos(playerid,219.6257,111.2549,999.0156);
  5550. SetPlayerFacingAngle(playerid,2.2339);
  5551. SetCameraBehindPlayer(playerid);
  5552. Banning[playerid] = 1;
  5553. SetTimer("BanPlayer",700,0);
  5554. }
  5555. if(gTeam[playerid] == TEAM_ARMY && CanUseArmy[playerid] == 0) {
  5556. GetPlayerName(playerid, str, 24);
  5557. Kicking[playerid] = 1;
  5558. SetTimer("KickPlayer",700,0);
  5559. format(str, 100, "**(AUTO KICK)** %s(%d) Bug Abuse", str,playerid);
  5560. SendClientMessageToAll(0xFF7F50AA, str);
  5561. printf("%s", str);
  5562. SendClientMessage(playerid,COLOR_ERROR,"You cannot bug abuse");
  5563. SetPlayerInterior(playerid,10);
  5564. SetPlayerPos(playerid,219.6257,111.2549,999.0156);
  5565. SetPlayerFacingAngle(playerid,2.2339);
  5566. SetCameraBehindPlayer(playerid);
  5567. Kicking[playerid] = 1;
  5568. SetTimer("KickPlayer",700,0);
  5569. }
  5570. }
  5571. return 1;
  5572. }
  5573.  
  5574.  
  5575. SetPlayerToTeamColour(playerid) {
  5576.  
  5577. if(gTeam[playerid] == TEAM_COP) {
  5578.  
  5579. SetPlayerColor(playerid,COLOR_BLUE); // Blue
  5580.  
  5581. } else if(gTeam[playerid] == TEAM_ARMY) {
  5582.  
  5583. SetPlayerColor(playerid,COLOR_BLUEVIOLET); // Blue Violet
  5584.  
  5585. } else if(gTeam[playerid] == TEAM_MEDIC) {
  5586.  
  5587. SetPlayerColor(playerid,COLOR_FORESTGREEN); // Forrest Green
  5588.  
  5589. } else if(gTeam[playerid] == TEAM_CARFIX) {
  5590.  
  5591. SetPlayerColor(playerid,COLOR_WHITE); // White
  5592.  
  5593. } else if(gTeam[playerid] == TEAM_CASSEC) {
  5594.  
  5595. SetPlayerColor(playerid,COLOR_DODGERBLUE); // Dodger Blue
  5596.  
  5597. } else if(gTeam[playerid] == TEAM_DRIVER) {
  5598.  
  5599. SetPlayerColor(playerid,COLOR_DARKOLIVEGREEN); // Dark Olive Green
  5600.  
  5601. } else if(gTeam[playerid] == TEAM_BISTRO) {
  5602.  
  5603. SetPlayerColor(playerid,COLOR_WHITE); // White
  5604.  
  5605. } else if(gTeam[playerid] == TEAM_JAILTK) {
  5606.  
  5607. SetPlayerColor(playerid,COLOR_WHITE); // White
  5608.  
  5609. } else if(gTeam[playerid] == TEAM_PVTMED) {
  5610.  
  5611. SetPlayerColor(playerid,COLOR_WHITE); // White
  5612.  
  5613. } else if(gTeam[playerid] == TEAM_GASDEL) {
  5614.  
  5615. SetPlayerColor(playerid,COLOR_WHITE); // White
  5616.  
  5617. } else if(gTeam[playerid] == TEAM_DRGDEL) {
  5618.  
  5619. SetPlayerColor(playerid,COLOR_WHITE); // White
  5620.  
  5621. } else if(gTeam[playerid] == TEAM_HITMAN) {
  5622.  
  5623. SetPlayerColor(playerid,COLOR_WHITE); // White
  5624.  
  5625. } else if(gTeam[playerid] == TEAM_GUNDEL) {
  5626.  
  5627. SetPlayerColor(playerid,COLOR_WHITE); // White
  5628.  
  5629. } else if(gTeam[playerid] == TEAM_SNITCH) {
  5630.  
  5631. SetPlayerColor(playerid,COLOR_WHITE); // White
  5632.  
  5633. } else if(gTeam[playerid] == TEAM_RAPIST) {
  5634.  
  5635. SetPlayerColor(playerid,COLOR_WHITE); // White
  5636.  
  5637. } else if(gTeam[playerid] == TEAM_CIVIL) {
  5638.  
  5639. SetPlayerColor(playerid,COLOR_WHITE); // White
  5640.  
  5641. } else if(gTeam[playerid] == TEAM_BOUNTY) {
  5642.  
  5643. SetPlayerColor(playerid,COLOR_WHITE); // White
  5644.  
  5645. } else if(gTeam[playerid] == TEAM_PILOT) {
  5646.  
  5647. SetPlayerColor(playerid,COLOR_WHITE); // White
  5648. }
  5649. else if(gTeam[playerid] == TEAM_KIDNAP) {
  5650.  
  5651. SetPlayerColor(playerid,COLOR_WHITE); // White
  5652. }
  5653.  
  5654. }
  5655.  
  5656.  
  5657. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  5658. {
  5659. new Float:pos[7], tvar[2];
  5660. if (newkeys == 16)
  5661. {
  5662. if (InShamal[playerid])
  5663. {
  5664. GetVehiclePos(InShamal[playerid], pos[0], pos[1], pos[2]);
  5665. GetVehicleZAngle(InShamal[playerid], pos[3]);
  5666. pos[0] += floatmul(floatsin(-floatsub(pos[3], 45.0), degrees), 5.0);
  5667. pos[1] += floatmul(floatcos(-floatsub(pos[3], 45.0), degrees), 5.0);
  5668. SetPlayerInterior(playerid, 0);
  5669. SetPlayerPos(playerid, pos[0], pos[1], floatsub(pos[2], 0.94));
  5670. SetPlayerFacingAngle(playerid, pos[3]);
  5671. SetCameraBehindPlayer(playerid);
  5672. InShamal[playerid] = 0;
  5673. return 1;
  5674. }
  5675. if (GetPlayerState(playerid) == 1)
  5676. {
  5677. GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  5678. for (new vs = 1; vs <= MAX_VEHICLES; vs++)
  5679. {
  5680. if (GetVehicleModel(vs) == tram)
  5681. {
  5682. GetVehiclePos(vs, pos[3], pos[4], pos[5]);
  5683. GetVehicleZAngle(vs, pos[6]);
  5684. pos[3] += floatmul(floatsin(-pos[6], degrees), 3.0);
  5685. pos[4] += floatmul(floatcos(-pos[6], degrees), 3.0);
  5686. if (floatcmp(floatsqroot(floatadd(floatadd(floatpower(floatsub(pos[0], pos[3]), 2.0), floatpower
  5687. (floatsub(pos[1], pos[4]), 2.0)), floatpower(floatsub(pos[2], pos[5]), 2.0))), 3.0) != 1)
  5688. {
  5689. for (new a; a < MAX_PLAYERS; a++)
  5690. if (IsPlayerConnected(a) && IsPlayerDriverInVehicle(a, vs, tram))
  5691. tvar[0] ++;
  5692. if (!tvar[0]) PutPlayerInVehicle(playerid, vs, 0);
  5693. }
  5694. }
  5695. }
  5696. }
  5697. return 1;
  5698. }
  5699. if (newkeys == 128 && IsPlayerDriverInVehicle(playerid, GetPlayerVehicleID(playerid), 525))
  5700. {
  5701. GetVehiclePos(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[2]);
  5702. while (tvar[0] < MAX_VEHICLES && !tvar[1])
  5703. {
  5704. tvar[0] ++;
  5705. GetVehiclePos(tvar[0], pos[3], pos[4], pos[5]);
  5706. if (floatcmp(floatabs(floatsub(pos[0], pos[3])), 7.0) != 1 && floatcmp(floatabs(floatsub(pos[1], pos[4])), 7.0) != 1
  5707. && floatcmp(floatabs(floatsub(pos[2], pos[5])), 7.0) != 1 && tvar[0] != GetPlayerVehicleID(playerid))
  5708. {
  5709. tvar[1] ++;
  5710. if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
  5711. DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
  5712. AttachTrailerToVehicle(tvar[0], GetPlayerVehicleID(playerid));
  5713. }
  5714. }
  5715. }
  5716.  
  5717. if(!gPlayerUsingLoopingAnim[playerid])
  5718.  
  5719. if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys)) {
  5720. StopLoopingAnim(playerid);
  5721. }
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728.  
  5729. return 1;
  5730. }
  5731.  
  5732.  
  5733.  
  5734. public OnPlayerDeath(playerid, killerid, reason)
  5735. {
  5736. new string[256];
  5737.  
  5738. if(GetPlayerMoney(playerid) >= 4000)
  5739. {
  5740. new Float:X,Float:Y,Float:Z;
  5741. GetPlayerPos(playerid,X,Y,Z);
  5742. CreatePickup(1212, 3,X,Y-1,Z);
  5743. CreatePickup(1212, 3,X,Y+1,Z);
  5744. CreatePickup(1212, 3,X-1,Y,Z);
  5745. CreatePickup(1212, 3,X+1,Y,Z);
  5746. }
  5747. if(OnDelMission[playerid] == 1337)
  5748. {
  5749. SendClientMessage(playerid,COLOR_ERROR,"Delivery Mission Cancelled. You died!");
  5750. OnDelMission[playerid] =0;
  5751. }
  5752. if(DeliveringCash[playerid] == 1337)
  5753. {
  5754. SendClientMessage(playerid,COLOR_ERROR,"Delivery Mission Cancelled. You died!");
  5755. DeliveringCash[playerid] =0;
  5756. }
  5757.  
  5758. new msg[128];
  5759. new playername[32];
  5760. new killername[32];
  5761. new killercolor = GetPlayerColor(killerid);
  5762. new playercolor = GetPlayerColor(playerid);
  5763. new IRCCode1[32];
  5764. new IRCCode2[32];
  5765. GetPlayerName(playerid,playername,32);
  5766. if ((reason == 255) || (killerid == 255))
  5767. {
  5768. format(msg, sizeof(msg), "[Death] \2;%s(%i)\2; killed himself.", playername,playerid);
  5769. goto snd;
  5770. }
  5771. else
  5772. {
  5773. if(killercolor == COLOR_WHITE)
  5774. {
  5775. IRCCode1 = "0";
  5776. }
  5777. if(killercolor == COLOR_RED)
  5778. {
  5779. IRCCode1 = "4";
  5780. }
  5781. if(killercolor == COLOR_BLUE)
  5782. {
  5783. IRCCode1 = "10";
  5784. }
  5785. if(killercolor == COLOR_YELLOW)
  5786. {
  5787. IRCCode1 = "8";
  5788. }
  5789. if(killercolor == COLOR_ORANGE)
  5790. {
  5791. IRCCode1 = "7";
  5792. }
  5793. if(killercolor == COLOR_BLUEVIOLET)
  5794. {
  5795. IRCCode1 = "6";
  5796. }
  5797. //
  5798. if(playercolor == COLOR_BLUEVIOLET)
  5799. {
  5800. IRCCode2 = "6";
  5801. }
  5802. if(playercolor == COLOR_WHITE)
  5803. {
  5804. IRCCode2 = "0";
  5805. }
  5806. if(playercolor == COLOR_RED)
  5807. {
  5808. IRCCode2 = "4";
  5809. }
  5810. if(playercolor == COLOR_BLUE)
  5811. {
  5812. IRCCode2 = "10";
  5813. }
  5814. if(playercolor == COLOR_YELLOW)
  5815. {
  5816. IRCCode2 = "8";
  5817. }
  5818. if(playercolor == COLOR_ORANGE)
  5819. {
  5820. IRCCode2 = "7";
  5821. }
  5822. //
  5823. GetPlayerName(killerid,killername,32);
  5824. format(msg, sizeof(msg), "[Death] %s\2;%s(%i)\2; 14was killed by %s \2;%s(%i)\2;. 2(%s)", IRCCode2, playername, playerid, IRCCode1, killername,killerid, aWeaponNames[reason]);
  5825. }
  5826. snd:
  5827. printf("msg: %s\n", msg);
  5828. ircSay(EchoConnection, EchoChan, msg);
  5829.  
  5830.  
  5831. InShamal[playerid] = 0;
  5832. TextDrawHideForPlayer(playerid,txtTypeSkill);
  5833. SetPlayerVirtualWorld(playerid,0);
  5834. GotCopBriberecently[playerid] =0;
  5835. OldCash[playerid] =0;
  5836. ResetPlayerMoney(playerid);
  5837. ResetPlayerWeapons(playerid);
  5838. PlayerDrugs[playerid] =0;
  5839. HasDrugBag[playerid] =0;
  5840. HasCried[playerid] =0;
  5841. HasC4[playerid] =0;
  5842. HasWallet[playerid] =0;
  5843. BankRobInsurance[playerid] =0;
  5844. Salmonella[playerid] =0;
  5845. Chlamydia[playerid] =0;
  5846. IsSpawned[playerid] =0;
  5847. playerondrugs[playerid] =0;
  5848. playertookdrugs[playerid] =0;
  5849. HasLawEnforcementRadio[playerid] =0;
  5850. LawEnforcementRadio[playerid] =0;
  5851. Jailed[playerid] = 0;
  5852. JailTime[playerid] =0;
  5853. HasKidnapped[playerid] =0;
  5854. InAlcatraz[playerid] =0;
  5855. EscapedConvict[playerid] =0;
  5856. cuffed[playerid] =0;
  5857. cannotescapejail[playerid] =0;
  5858. Wantsfood[playerid] =0;
  5859. VisitReq[playerid] =0;
  5860. VisitReqExpires[playerid] =0;
  5861. wantsheal[playerid] =0;
  5862. triedtoescaperecent[playerid] =0;
  5863. InBank[playerid] =0;
  5864. InDerby[playerid] =0;
  5865. Tazed[playerid] =0;
  5866. InAdminHQ[playerid] =0;
  5867. drunkplayer[playerid] =0;
  5868. lastcardrove[playerid] =999;
  5869. PlantingC4[playerid] =0;
  5870. RobbedCaligs[playerid] =0;
  5871. GunDeliveryLevel[playerid] =0;
  5872. HasKidnapped[playerid] =0;
  5873. GunsDeliveryTime[playerid] =0;
  5874. DeliveringGuns[playerid] =0;
  5875. isKidnapped[playerid] =0;
  5876. gotSissors[playerid] =0;
  5877. gotRope[playerid] =0;
  5878.  
  5879. if(AdminKilled[playerid] == 1 || KilledHimself[playerid] == 1)
  5880. {
  5881. SendDeathMessage(INVALID_PLAYER_ID,playerid,16);
  5882. AdminKilled[playerid] =0;
  5883. KilledHimself[playerid] =0;
  5884. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5885. SetPlayerWantedLevel(playerid,0);
  5886. return 1;
  5887. }
  5888. if(killerid == INVALID_PLAYER_ID)
  5889. {
  5890. SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  5891. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5892. SetPlayerWantedLevel(playerid,0);
  5893. return 1;
  5894. }
  5895.  
  5896. if(GetDistanceBetweenPlayers(playerid,killerid) > 200)
  5897. {
  5898. SendDeathMessage(INVALID_PLAYER_ID,playerid,53);
  5899. SetPlayerWantedLevel(playerid,0);
  5900. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5901. return 1;
  5902. }
  5903. if(InAdminMode[killerid] == 1337)
  5904. {
  5905. SendDeathMessage(killerid,playerid,reason);
  5906. //new killername[24];
  5907. new killedname[24];
  5908. GetPlayerName(killerid, killername, 24);
  5909. GetPlayerName(playerid, killedname, 24);
  5910. SetPlayerWantedLevel(playerid,0);
  5911. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5912. format(string, sizeof(string),"You have killed %s(%d) while you are in Admin Mode",killedname,playerid);
  5913. SendClientMessage(killerid,0xFF7F50AA,string);
  5914. format(string, sizeof(string),"Server Admin %s(%d) has killed %s(%d) While in Admin Mode",killername,killerid,killedname,playerid);
  5915. printf("%s",string);
  5916. ircSay(EchoConnection, EchoChan,string);
  5917. return 1;
  5918. }
  5919. if(gTeam[killerid] == TEAM_HITMAN && HasHitOnHim[playerid] >=1)
  5920. {
  5921. new victim[30];
  5922. new killer[30];
  5923. GetPlayerName(playerid,victim, 30);
  5924. GetPlayerName(killerid, killer, 30);
  5925. new plwl = GetPlayerWantedLevel(killerid);
  5926. new pcol = GetPlayerColor(killerid);
  5927. SetPlayerWantedLevel(killerid,plwl +10);
  5928. plwl = GetPlayerWantedLevel(killerid);
  5929. format(string, sizeof(string), "%s(%d) Has been killed by hitman %s(%d) for a hit contract",victim,playerid,killer,killerid);
  5930. SendClientMessageToAll(0xB22222AA,string);
  5931. SendClientMessage(killerid, 0xA9A9A9AA, "|_Crime Commited_|");
  5932. format(string, sizeof(string), "(MURDER) Wanted Level %d",plwl);
  5933. SendClientMessage(killerid,pcol,string);
  5934. format(string, sizeof(string), "You have killed %s(%d) for a hit contract. You receive a $3000 bonus",victim,playerid);
  5935. SendClientMessage(killerid,pcol,string);
  5936. GivePlayerMoney(killerid,3000);
  5937. SendClientMessage(playerid, 0xA9A9A9AA, "|_Killed For A Hit Contract_|");
  5938. format(string, sizeof(string), "Hitman %s(%d) Has killed you for a Hit Contract. Be careful who you make enemys with in future",killer,killerid);
  5939. SendClientMessage(playerid,0x00C7FFAA,string);
  5940. HasHitOnHim[playerid] =0;
  5941. commitedcrimerecently[killerid] +=360;
  5942. SendDeathMessage(killerid,playerid,reason);
  5943. SetPlayerWantedLevel(playerid,0);
  5944. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5945. oscore = GetPlayerScore(killerid);
  5946. SetPlayerScore(killerid, oscore +1);
  5947. for(new i=0;i<MAX_PLAYERS;i++)
  5948. {
  5949. new current_zone;
  5950. current_zone = player_zone[killerid];
  5951. if(LawEnforcementRadio[i] == 1) {
  5952. format(string, sizeof(string), "DISPATCH: (CONTRACTED MURDER) %s(%d) Has murdered %s(%d) Location: %s",killer,killerid,victim,playerid,zones[current_zone][zone_name]);
  5953. SendClientMessage(i, COLOR_ROYALBLUE, string);
  5954. }
  5955. }
  5956. return 1;
  5957. }
  5958.  
  5959. if(Jailed[killerid] == 1) {
  5960. SendDeathMessage(killerid,playerid,reason);
  5961. }
  5962.  
  5963.  
  5964. if(gTeam[killerid] >=3 && Jailed[killerid] == 0) {
  5965. new victim[24];
  5966. new killer[24];
  5967. GetPlayerName(playerid,victim, 24);
  5968. GetPlayerName(killerid, killer, 24);
  5969. new plwl = GetPlayerWantedLevel(killerid);
  5970. new pcol = GetPlayerColor(killerid);
  5971. SetPlayerWantedLevel(killerid,plwl +10);
  5972. plwl = GetPlayerWantedLevel(killerid);
  5973. SendClientMessage(killerid, 0xA9A9A9AA, "|_Crime Commited_|");
  5974. format(string, sizeof(string), "(MURDER) Wanted Level %d",plwl);
  5975. SendClientMessage(killerid,pcol,string);
  5976. commitedcrimerecently[killerid] +=360;
  5977. SendDeathMessage(killerid,playerid,reason);
  5978. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  5979. for(new i=0;i<MAX_PLAYERS;i++)
  5980. {
  5981. new current_zone;
  5982. current_zone = player_zone[killerid];
  5983. if(LawEnforcementRadio[i] == 1) {
  5984. format(string, sizeof(string), "DISPATCH: (MURDER) %s(%d) Has murdered %s(%d) Location: %s",killer,killerid,victim,playerid,zones[current_zone][zone_name]);
  5985. SendClientMessage(i, COLOR_ROYALBLUE, string);
  5986. }
  5987. }
  5988. return 1;
  5989. }
  5990.  
  5991. if(gTeam[killerid] <=2 && gTeam[playerid] <=2 && IsSpawned[killerid] == 1 && Jailed[killerid] == 0) {
  5992. teamkiller[killerid] +=1;
  5993. if(teamkiller[killerid] >=3) {
  5994. new str[100];
  5995. GetPlayerName(killerid, str, 24);
  5996. format(str, 100, "**(AUTO KICK)** %s(%d) Too Many Team Kills (TeamKiller)", str,killerid);
  5997. SendClientMessageToAll(0xFF7F50AA, str);
  5998. ircSay(EchoConnection, EchoChan, str);
  5999. printf("%s", str);
  6000. SetPlayerInterior(killerid,10);
  6001. SetPlayerPos(killerid,219.6257,111.2549,999.0156);
  6002. SetPlayerFacingAngle(killerid,2.2339);
  6003. SetCameraBehindPlayer(killerid);
  6004. teamkiller[killerid] =0;
  6005. Kicking[killerid] =1;
  6006. SetTimer("KickPlayer",700,0);
  6007. return 1;
  6008. }
  6009. SendClientMessage(killerid,COLOR_RED, "TEAM KILL - Do not kill other Law Enforcement agents (Blue/Purple)");
  6010. SendClientMessage(killerid,COLOR_RED, "If you continue to kill other Law Enforcement agents you will be kicked/banned");
  6011. SendDeathMessage(killerid,playerid,reason);
  6012. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  6013. oscore = GetPlayerScore(killerid);
  6014. SetPlayerScore(killerid, oscore -1);
  6015. return 1;
  6016. }
  6017.  
  6018. if(gTeam[killerid] <=2 && gTeam[playerid] >= 3 && IsSpawned[killerid] == 1 && Jailed[killerid] == 0)
  6019. {
  6020. new plwl = GetPlayerWantedLevel(playerid);
  6021. if(plwl == 0) {
  6022. innocentkiller[killerid] +=1;
  6023. if(innocentkiller[killerid] >=3) {
  6024. new str[100];
  6025. GetPlayerName(killerid, str, 24);
  6026. format(str, 100, "**(AUTO KICK)** %s(%d) Too Many Innocent Kills", str,killerid);
  6027. SendClientMessageToAll(0xFF7F50AA, str);
  6028. ircSay(EchoConnection, EchoChan, str);
  6029. printf("%s", str);
  6030. SetPlayerInterior(killerid,10);
  6031. SetPlayerPos(killerid,219.6257,111.2549,999.0156);
  6032. SetPlayerFacingAngle(killerid,2.2339);
  6033. SetCameraBehindPlayer(killerid);
  6034. innocentkiller[killerid] =0;
  6035. Kicking[killerid] =1;
  6036. SetTimer("KickPlayer",700,0);
  6037. return 1;
  6038. }
  6039. SendClientMessage(killerid,COLOR_RED, "INNOCENT KILL - Do not kill innocent civilians (White)");
  6040. SendClientMessage(killerid,COLOR_RED, "If you continue to kill innocent players you will be kicked/banned");
  6041. SendDeathMessage(killerid,playerid,reason);
  6042. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  6043. oscore = GetPlayerScore(killerid);
  6044. SetPlayerScore(killerid, oscore -1);
  6045. }
  6046. else
  6047. if(plwl >=1 && plwl <=3) {
  6048. lowwantedkiller[killerid] +=1;
  6049. if(lowwantedkiller[killerid] >=3) {
  6050. new str[100];
  6051. GetPlayerName(killerid, str, 24);
  6052. format(str, 100, "**(AUTO KICK)** %s(%d) Too Many Low Wanted Kills", str,killerid);
  6053. SendClientMessageToAll(0xFF7F50AA, str);
  6054. ircSay(EchoConnection, EchoChan, str);
  6055. printf("%s", str);
  6056. SetPlayerInterior(killerid,10);
  6057. SetPlayerPos(killerid,219.6257,111.2549,999.0156);
  6058. SetPlayerFacingAngle(killerid,2.2339);
  6059. SetCameraBehindPlayer(killerid);
  6060. lowwantedkiller[killerid] =0;
  6061. Kicking[killerid] =1;
  6062. SetTimer("KickPlayer",700,0);
  6063. return 1;
  6064. }
  6065.  
  6066. SendClientMessage(killerid,COLOR_RED, "LOW WANTED KILL - Do not kill low wanted players (Yellow)");
  6067. SendClientMessage(killerid,COLOR_RED, "Use /fine (id) to issue a fine to low wanted suspects (Yellow)");
  6068. SendDeathMessage(killerid,playerid,reason);
  6069. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  6070. oscore = GetPlayerScore(killerid);
  6071. SetPlayerScore(killerid, oscore -1);
  6072.  
  6073. }
  6074. else
  6075. if(plwl >=4 && plwl <=9) {
  6076. new killer[24];
  6077. new victim[24];
  6078. GetPlayerName(playerid,victim,24);
  6079. GetPlayerName(killerid, killer, 24);
  6080. format(string, sizeof(string), "Officer %s(%d) has taken suspect %s(%d) down using deadly force",killer,killerid,victim,playerid);
  6081. SendClientMessageToAll(0x00C7FFAA, string);
  6082. ircSay(EchoConnection, EchoChan, string);
  6083. printf("%s", string);
  6084. SendDeathMessage(killerid,playerid,reason);
  6085. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  6086. }
  6087. else
  6088. if(plwl >=10) {
  6089. new killer[24];
  6090. new victim[24];
  6091. GetPlayerName(playerid,victim,24);
  6092. GetPlayerName(killerid, killer, 24);
  6093. format(string, sizeof(string), "Officer %s(%d) has taken Most Wanted suspect %s(%d) down using deadly force",killer,killerid,victim,playerid);
  6094. SendClientMessageToAll(0x00C7FFAA, string);
  6095. ircSay(EchoConnection, EchoChan, string);
  6096. printf("%s", string);
  6097. if(gTeam[killerid] == TEAM_ARMY) {
  6098. oscore = GetPlayerScore(killerid);
  6099. SetPlayerScore(killerid, oscore +1);
  6100. SendClientMessage(killerid,0xA9A9A9AA, "|_Suspect Take Down_|");
  6101. format(string, sizeof(string), "You have taken Most Wanted suspect %s(%d) down. You receive a $3500 bonus",victim,playerid);
  6102. SendClientMessage(killerid,0x00C7FFAA, string);
  6103. GivePlayerMoney(killerid,3500);
  6104. }
  6105. SendDeathMessage(killerid,playerid,reason);
  6106. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  6107. }
  6108. }
  6109.  
  6110.  
  6111. HasHitOnHim[playerid] =0;
  6112. SetPlayerWantedLevel(playerid,0);
  6113.  
  6114. return 1;
  6115. }
  6116.  
  6117.  
  6118.  
  6119.  
  6120. public OnVehicleSpawn(vehicleid)
  6121. {
  6122. tCount[vehicleid] = false;
  6123. return 1;
  6124. }
  6125.  
  6126. public OnVehicleDeath(vehicleid, killerid)
  6127. {
  6128. if (GetVehicleModel(vehicleid) == shamal && ShamalExists(vehicleid))
  6129. {
  6130. CreateExplosion(ShamalPos[vehicleid][0], ShamalPos[vehicleid][1], ShamalPos[vehicleid][2], 2, 15.0);
  6131. sExplode[vehicleid] = SetTimerEx("ExplodeShamal", 700, 1, "d", vehicleid);
  6132. tCount[vehicleid] = true;
  6133. }
  6134.  
  6135. if(BoughtCars[vehicleid] == 999)
  6136. {
  6137. DestroyVehicle(vehicleid);
  6138. }
  6139. SandInEngine[vehicleid] =0;
  6140.  
  6141. return 1;
  6142. }
  6143.  
  6144. public OnPlayerText(playerid, text[])
  6145. {
  6146. if(SpamStrings[playerid] >= 1) {
  6147. SendClientMessage(playerid, COLOR_ERROR, "DO NOT SPAM! Please wait before talking again!");
  6148. return 0;
  6149. }
  6150. if(Muted[playerid] == 1)
  6151. {
  6152. SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Chat");
  6153. return 0;
  6154. }
  6155. if(strfind(text,"rcon",true)!= -1 )
  6156. {
  6157. return 0;
  6158. }
  6159. if(strfind(text,"login",true)!= -1 )
  6160. {
  6161. return 0;
  6162. }
  6163.  
  6164. new msg[128];
  6165. new name[32];
  6166. GetPlayerName(playerid, name, sizeof(name));
  6167. format(msg, sizeof(msg), "\2;%s(%i)\2; - %s",name,playerid,text); // [0] <jacob> hi
  6168. ircSay(EchoConnection, EchoChan, msg);
  6169.  
  6170. SpamStrings[playerid] ++;
  6171. return 1;
  6172. }
  6173.  
  6174. public OnPlayerPrivmsg(playerid, recieverid, text[])
  6175. {
  6176. if(Muted[playerid] == 1) {
  6177. SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Use This Command");
  6178. return 0;
  6179. }
  6180. if(pmsoff[recieverid] == 1) {
  6181. SendClientMessage(playerid, COLOR_YELLOW, "That player is not accepting Private Messages at this time");
  6182. return 0;
  6183. }
  6184. SendClientMessage(recieverid, COLOR_GREY, "Type /pmoff to refuse Personal Messages");
  6185. SpamStrings[playerid] ++;
  6186. new pmsg[128];
  6187. new priname[32],prinamee[32];
  6188. GetPlayerName(playerid,priname, sizeof(priname));
  6189. GetPlayerName(recieverid,prinamee, sizeof(prinamee));
  6190. format(pmsg, sizeof(pmsg), "2**(PM)** From \2;%s(%i)\2; To \2;%s(%i)\2; - %s",priname,playerid,prinamee,recieverid,text); // [0] <jacob> hi
  6191. ircSay(EchoConnection, EchoChan,pmsg);
  6192.  
  6193. return 1;
  6194. }
  6195.  
  6196. public OnPlayerCommandText(playerid, cmdtext[])
  6197. {
  6198. dcmd(login,5,cmdtext); // because login has 5 characters
  6199. dcmd(register,8,cmdtext); // because register has 8 characters
  6200. new string[256];
  6201. new cmd[256];
  6202. new giveplayerid, idx;
  6203. new tmp[256];
  6204.  
  6205.  
  6206. cmd = strtok(cmdtext, idx);
  6207.  
  6208. ////////////////////////////////////////
  6209. ///////Byrner Add ons////////////////
  6210. if(strcmp(cmdtext, "/robab", true) == 0)
  6211. {
  6212. if(IsSpawned[playerid] == 0) {
  6213. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6214. return 1;
  6215. }
  6216. if(Jailed[playerid] == 1) {
  6217. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6218. return 1;
  6219. }
  6220. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  6221. if(autobahnowner[playerid] == 1337) {
  6222. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob your own buissness");
  6223. return 1;
  6224. }
  6225. if(AutoRobbed == 1) {
  6226. SendClientMessage(playerid,COLOR_ERROR,"Autobahn has been robbed recently, Please wait");
  6227. return 1;
  6228. }
  6229. if(UsedAutoRecently[playerid] >= 1) {
  6230. SendClientMessage(playerid,COLOR_ERROR,"Please wait before using Autobahn again");
  6231. return 1;
  6232. }
  6233. if(IsPlayerInAnyVehicle(playerid)) {
  6234. format(string, sizeof(string), "You cannot rob Autobahn while in a vehcile");
  6235. SendClientMessage(playerid, COLOR_ERROR, string);
  6236. return 1;
  6237. }
  6238. if(!IsPlayerInCheckpoint(playerid)) {
  6239. SendClientMessage(playerid,COLOR_ERROR,"You are not in any the Autobahn checkpoint");
  6240. return 1;
  6241. }
  6242. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  6243. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob anything");
  6244. return 1;
  6245. }
  6246. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19)
  6247. {
  6248. if(robberrank[playerid] <=29) {
  6249. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob Autobahn. Type /robskill for more info");
  6250. return 1;
  6251. }
  6252. new zrand = random(5000);
  6253. if(zrand >=0 && zrand <=1000) {
  6254. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  6255. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to Autobahn has failed");
  6256. UsedAutoRecently[playerid] += 120;
  6257. return 1;
  6258. }
  6259. else
  6260. if(zrand >=1001 && zrand <=5000)
  6261. {
  6262. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19) {
  6263. {
  6264. new plwl = GetPlayerWantedLevel(playerid);
  6265. SetPlayerWantedLevel(playerid, plwl +4 );
  6266. new mrand = random(175000);
  6267. new pname[30];
  6268. GetPlayerName(playerid, pname, 30);
  6269. format(string, sizeof(string), "%s(%d) Has robbed $%d from Autobahn",pname,playerid,mrand);
  6270. SendClientMessageToAll(0x00C7FFAA, string);
  6271. ircSay(EchoConnection, EchoChan,string);
  6272. format(string, sizeof(string), "%s(%d) Has robbed $%d from Autobahn",pname,playerid,mrand);
  6273. printf("%s", string);
  6274. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU ROBBED~n~~r~ $%d~n~~w~FROM Autobahn", mrand);
  6275. GameTextForPlayer(playerid, string, 7000, 3);
  6276. new pcol = GetPlayerColor(playerid);
  6277. plwl = GetPlayerWantedLevel(playerid);
  6278. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  6279. format(string, sizeof(string), "(AUTOBAHN ROBBERY) Wanted Level %d",plwl);
  6280. SendClientMessage(playerid,pcol,string);
  6281. GivePlayerMoney(playerid, mrand);
  6282. oscore = GetPlayerScore(playerid);
  6283. AutoRobbed =1;
  6284. UsedAutoRecently[playerid] += 320;
  6285. SetPlayerScore(playerid, oscore +1);
  6286. if(robberrank[playerid] >=30 && robberrank[playerid] <=39) {
  6287. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  6288. robberrank[playerid] +=1;
  6289. commitedcrimerecently[playerid] +=360;
  6290. }
  6291. SetTimer("AutoRobbedRecent",70000,0);
  6292. for(new i=0;i<MAX_PLAYERS;i++)
  6293. {
  6294. if(LawEnforcementRadio[i] == 1) {
  6295. new string1[256];
  6296. new string2[256];
  6297. new string3[256];
  6298. format(string1, sizeof(string1), "DISPATCH: (AUTOBAHN ROBBERY) Autobahn has been robbed. Suspect: %s(%d)", pname,playerid);
  6299. format(string2, sizeof(string2), "ALL UNITS: Please respond to the Autobahn");
  6300. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  6301. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  6302. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  6303. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  6304. {
  6305. if(IsPlayerConnected(i))
  6306. {
  6307. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  6308. if(autobahnowner[i] == 1337)
  6309. {
  6310. GetPlayerName(i,autobahnowner,24);
  6311. SendClientMessage(i, 0xA9A9A9AA, "|_Autobahn Robbery_|");
  6312. format(string, sizeof(string), "%s(%d) has robbed $%d from your Autobahn",pname,playerid,mrand);
  6313. SendClientMessage(i, 0x00C7FFAA, string);
  6314. SendClientMessage(i, 0xA9A9A9AA, "If Your tired of losing money from the AirPort then use /sellautobahn (ID)");
  6315. GivePlayerMoney(i,- mrand);
  6316. }
  6317. }
  6318. }
  6319. }
  6320. }
  6321. }
  6322. }
  6323. }
  6324. }
  6325. return 1;
  6326. }
  6327. if(strcmp(cmd, "/camera", true) == 0) {
  6328. if(PlayerAdminLevel[playerid] == 0) {
  6329. SendClientMessage(playerid,COLOR_ERROR,"Unknown command please use /commands.");
  6330. return 1;
  6331. }
  6332. GivePlayerWeapon(playerid,43,100);
  6333. SendClientMessage(playerid, 0xA9A9A9AA, "You have admin spawned a camera");
  6334. return 1;
  6335. }
  6336. ////////////////////////
  6337. if(strcmp(cmd, "/adreg", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Gives a player regular player status
  6338. {
  6339. tmp = strtok(cmdtext, idx);
  6340. if(!strlen(tmp)) {
  6341. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adreg (id)");
  6342. return 1;
  6343. }
  6344. giveplayerid = strval(tmp);
  6345. if(!IsPlayerConnected(giveplayerid)) {
  6346. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  6347. SendClientMessage(playerid, COLOR_ERROR, string);
  6348. return 1;
  6349. }
  6350. new oname[24];
  6351. new pname[24];
  6352. GetPlayerName(playerid,oname, 24);
  6353. GetPlayerName(giveplayerid, pname, 24);
  6354. if(!IsNumeric(tmp)) {
  6355. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adreg (id) ID Must be a number");
  6356. return 1;
  6357. }
  6358. dUserSetINT(PlayerName(playerid)).("RegularPlayer",RegularPlayer[playerid]);
  6359. RegularPlayer[giveplayerid] =1337;
  6360. dUserSetINT(PlayerName(giveplayerid)).("RegularPlayer",RegularPlayer[giveplayerid]);
  6361. format(string, sizeof(string), "Admin %s(%d) has give you regular player status,you will now be able to enter the RPL and be more respected. ",oname,playerid);
  6362. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  6363. format(string, sizeof(string), "~g~You are now a Regular Player!");
  6364. GameTextForPlayer(giveplayerid, string,5000, 0);
  6365. for(new i=0;i<MAX_PLAYERS;i++)
  6366. {
  6367. if(IsPlayerConnected(i) && PlayerAdminLevel[i] == 1337) {
  6368. {
  6369. format(string, sizeof(string), "%s(%d) has given %s(%d) Regular Player status. ",oname,playerid,pname,giveplayerid);
  6370. SendClientMessage(i,0xFF7F50AA,string);
  6371. printf("%s",string);
  6372. }
  6373. }
  6374. }
  6375. return 1;
  6376. }
  6377. /////
  6378. if(strcmp(cmd,"/rc",true)==0)
  6379. {
  6380. if(RegularPlayer[playerid] == 0) {
  6381. SendClientMessage(playerid,COLOR_ERROR,"You are not a Regular Player");
  6382. return 1;
  6383. }
  6384. if(RegularPlayer[playerid] == 1337) {
  6385. new output[150];
  6386. new pname[24];
  6387. GetPlayerName(playerid, pname, 24);
  6388. strmid(output,cmdtext,3,strlen(cmdtext));
  6389. format(string, sizeof(string), "(REGULAR CHAT): %s(%d) %s",pname,playerid,output);
  6390. printf("%s", string);
  6391. for(new i=0;i<MAX_PLAYERS;i++)
  6392. {
  6393. if(RegularPlayer[i] == 1337) {
  6394. SendClientMessage(i,COLOR_YELLOW,string);
  6395. }
  6396. }
  6397. }
  6398. return 1;
  6399. }
  6400. ////////////
  6401. if(strcmp(cmdtext, "/robairport", true) == 0)
  6402. {
  6403. if(IsSpawned[playerid] == 0) {
  6404. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6405. return 1;
  6406. }
  6407. if(Jailed[playerid] == 1) {
  6408. SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command");
  6409. return 1;
  6410. }
  6411. if(!IsPlayerInCheckpoint(playerid)) {
  6412. SendClientMessage(playerid,COLOR_ERROR,"You are not in the AirPort checkpoint");
  6413. return 1;
  6414. }
  6415. AirPortOwner[playerid]=dUserINT(PlayerName(playerid)).("AirPortOwner");
  6416. if(AirPortOwner[playerid] == 1337) {
  6417. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob your own buissness");
  6418. return 1;
  6419. }
  6420. if(UsedAirPortRecently[playerid] >= 1) {
  6421. SendClientMessage(playerid,COLOR_ERROR,"Please wait using using the AirPort again");
  6422. return 1;
  6423. }
  6424. if(AirPortRobbedRecently >=1 ) {
  6425. SendClientMessage(playerid,COLOR_ERROR,"The AirPort has been robbed recenty. Please wait");
  6426. return 1;
  6427. }
  6428. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  6429. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob anything");
  6430. return 1;
  6431. }
  6432. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17)
  6433. {
  6434. if(robberrank[playerid] <=19) {
  6435. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob the AirPort. Type /robskill for more info");
  6436. return 1;
  6437. }
  6438. new zrand = random(5000);
  6439. if(zrand >=0 && zrand <=1000) {
  6440. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  6441. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to the AirPort has failed");
  6442. UsedAirPortRecently[playerid] += 120;
  6443. AirPortRobbedRecently =100;
  6444. return 1;
  6445. }
  6446. else
  6447. if(zrand >=1001 && zrand <=5000)
  6448. {
  6449. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17) {
  6450. {
  6451. new plwl = GetPlayerWantedLevel(playerid);
  6452. SetPlayerWantedLevel(playerid, plwl +4 );
  6453. new mrand = random(115000);
  6454. new pname[30];
  6455. GetPlayerName(playerid, pname, 30);
  6456. format(string, sizeof(string), "%s(%d) Has robbed $%d from the AirPort",pname,playerid,mrand);
  6457. SendClientMessageToAll(0x00C7FFAA, string);
  6458. ircSay(EchoConnection, EchoChan,string);
  6459. format(string, sizeof(string), "%s(%d) Has robbed $%d from the AirPort",pname,playerid,mrand);
  6460. printf("%s", string);
  6461. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU ROBBED~n~~r~ $%d~n~~w~FROM THE AIRPORT", mrand);
  6462. GameTextForPlayer(playerid, string, 7000, 3);
  6463. new pcol = GetPlayerColor(playerid);
  6464. plwl = GetPlayerWantedLevel(playerid);
  6465. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  6466. format(string, sizeof(string), "(AirPort Robbery) Wanted Level %d",plwl);
  6467. SendClientMessage(playerid,pcol,string);
  6468. GivePlayerMoney(playerid, mrand);
  6469. oscore = GetPlayerScore(playerid);
  6470. SetPlayerScore(playerid, oscore +1);
  6471. UsedAirPortRecently[playerid] += 320;
  6472. AirPortRobbedRecently=600;
  6473. if(robberrank[playerid] >=30 && robberrank[playerid] <=29) {
  6474. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  6475. robberrank[playerid] +=1;
  6476. }
  6477. commitedcrimerecently[playerid] +=360;
  6478. for(new i=0;i<MAX_PLAYERS;i++)
  6479. {
  6480. if(LawEnforcementRadio[i] == 1) {
  6481. new string1[256];
  6482. new string2[256];
  6483. new string3[256];
  6484. format(string1, sizeof(string1), "DISPATCH: (AirPort Robbery)The AirPort has been robbed. Suspect: %s(%d)", pname,playerid);
  6485. format(string2, sizeof(string2), "ALL UNITS: Please respond to the AirPort");
  6486. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  6487. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  6488. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  6489. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  6490. {
  6491. if(IsPlayerConnected(i))
  6492. {
  6493. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  6494. if(AirPortOwner[i] == 1337)
  6495. {
  6496. GetPlayerName(i,AirPortOwner,24);
  6497. SendClientMessage(i, 0xA9A9A9AA, "|_AirPort Robbery_|");
  6498. format(string, sizeof(string), "%s(%d) has robbed $%d from your AirPort ",pname,playerid,mrand);
  6499. SendClientMessage(i, 0x00C7FFAA, string);
  6500. SendClientMessage(i, 0xA9A9A9AA, "If Your tired of losing money from the AirPort then use /sellairport (ID)");
  6501. GivePlayerMoney(i,- mrand);
  6502. }
  6503. }
  6504. }
  6505. }
  6506. }
  6507. }
  6508. }
  6509. }
  6510. }
  6511. return 1;
  6512. }
  6513. if(strcmp(cmd, "/sellairport", true) == 0) {
  6514. if(IsSpawned[playerid] == 0) {
  6515. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6516. return 1;
  6517. }
  6518. if(Jailed[playerid] == 1) {
  6519. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  6520. return 1;
  6521. }
  6522. AirPortOwner[playerid]=dUserINT(PlayerName(playerid)).("AirPortOwner");
  6523.  
  6524. if(AirPortOwner[playerid] == 0) {
  6525. SendClientMessage(playerid,COLOR_ERROR,"You are not the current owner of the Air Port");
  6526. return 1;
  6527. }
  6528. if(AirPortOwner[playerid] == 1337)
  6529. {
  6530. tmp = strtok(cmdtext, idx);
  6531. if(!strlen(tmp)) {
  6532. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellairport (id)");
  6533. return 1;
  6534. }
  6535. giveplayerid = strval(tmp);
  6536. if(!IsNumeric(tmp)) {
  6537. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellairport (id) ID Must be a number");
  6538. return 1;
  6539. }
  6540. if(!IsPlayerConnected(giveplayerid)) {
  6541. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  6542. SendClientMessage(playerid, COLOR_ERROR, string);
  6543. return 1;
  6544. }
  6545. if(strval(tmp) == playerid) {
  6546. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell your business to yourself");
  6547. return 1;
  6548. }
  6549. if(!udb_Exists(PlayerName(giveplayerid))) {
  6550. SendClientMessage(playerid,COLOR_ERROR,"That player does not have any account on our server. Cannot sell to that player");
  6551. return 1;
  6552. }
  6553. if(!PLAYERLIST_authed[giveplayerid]) {
  6554. SendClientMessage(playerid,COLOR_ERROR,"That player is not logged into their account. Cannot sell to that player");
  6555. return 1;
  6556. }
  6557. new oldowner[30];
  6558. new newowner[30];
  6559. GetPlayerName(playerid,oldowner,30);
  6560. GetPlayerName(giveplayerid,newowner,30);
  6561. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10) {
  6562. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot give that player the official papers",newowner,giveplayerid);
  6563. SendClientMessage(playerid, COLOR_ERROR, string);
  6564. return 1;
  6565. }
  6566. AirPortOwner[playerid] =0;
  6567. dUserSetINT(PlayerName(playerid)).("AirPortOwner",AirPortOwner[playerid]);
  6568. AirPortOwner[giveplayerid] =1337;
  6569. dUserSetINT(PlayerName(giveplayerid)).("AirPortOwner",AirPortOwner[giveplayerid]);
  6570.  
  6571. SendClientMessage(playerid, 0xA9A9A9AA, "|_AirPort Business Sold_|");
  6572. format(string, sizeof(string), "You have sold the AirPort business to %s(%d) - You are no longer the owner of The Air Port",newowner,giveplayerid);
  6573. SendClientMessage(playerid,0x00C7FFAA, string);
  6574.  
  6575. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Air Port Business Purchased_|");
  6576. format(string, sizeof(string), "You have purchased the Air Port business from %s(%d) | Use /sellairport (id) to sell the business",oldowner,playerid);
  6577. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  6578. SendClientMessage(giveplayerid,0x00C7FFAA,"If a player buys a ticket from the Airport, you will get the full amount of the sale in your pocket");
  6579. SendClientMessage(giveplayerid,0x00C7FFAA,"You will only be paid if you are online and logged into your account at the time of the sale");
  6580.  
  6581. format(string, sizeof(string), "AirPort owner %s(%d) has sold the AirPort business to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  6582. SendClientMessageToAll(0x00C7FFAA, string);
  6583. printf("**(AirPort Sold)** %s(%d) has sold the AirPort to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  6584. }
  6585.  
  6586. return 1;
  6587. }
  6588. //////////////////////////////
  6589. if(strcmp(cmd,"/buyplane",true)==0)
  6590. {
  6591. if(IsSpawned[playerid] == 0) {
  6592. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6593. return 1;
  6594. }
  6595. if(Jailed[playerid] == 1) {
  6596. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  6597. return 1;
  6598. }
  6599. if(UsedAirPortRecently[playerid] >= 1) {
  6600. SendClientMessage(playerid, COLOR_ERROR,"Please wait before using the AirPort again again");
  6601. return 1;
  6602. }
  6603. new x_nr[256];
  6604. x_nr = strtok(cmdtext, idx);
  6605. if(!strlen(x_nr)) {
  6606. SendClientMessage(playerid, COLOR_ROYALBLUE,"Use: /buyplane 1-3 to buy a plane from the AirPort");
  6607. SendClientMessage(playerid, 0x00C7FFAA, "1. Maverick");
  6608. SendClientMessage(playerid, 0x00C7FFAA, "2. Shamal");
  6609. SendClientMessage(playerid, 0x00C7FFAA, "3. Stunt Plane");
  6610. return 1;
  6611. }
  6612. if(!IsPlayerInCheckpoint(playerid)) {
  6613. SendClientMessage(playerid,COLOR_ERROR,"You need to be in the checkpoint at the AirPort to attempt to buy a plane");
  6614. return 1;
  6615. }
  6616. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17)
  6617. {
  6618. if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) {
  6619. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  6620. SendClientMessage(playerid, COLOR_ERROR, "You cannot be in a car when using this command");
  6621. return 1;
  6622. }
  6623. new buyername[24];
  6624. GetPlayerName(playerid,buyername, 24);
  6625. if(!strlen(x_nr)) {
  6626. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buyplane 1-3");
  6627. return 1;
  6628. }
  6629. if(strcmp(x_nr,"1",true) == 0)//////////////Maverick
  6630. {
  6631. AirPortOwner[playerid]=dUserINT(PlayerName(playerid)).("AirPortOwner");
  6632. if(GetPlayerMoney(playerid) <= 149999 && AirPortOwner[playerid] == 0) {
  6633. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchase Failed_|");
  6634. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Maverick ($150000)");
  6635. return 1;
  6636. }
  6637. if (AirPortOwner[playerid] == 1337) {
  6638. new boughtplane;
  6639. GetPlayerName(playerid,buyername,24);
  6640. boughtplane = CreateVehicle(487,1548.7792,1745.0867,10.8203,91.0247, -1, -1, 99999999999);
  6641. BoughtCars[boughtplane] =999;
  6642. BoughtCarsOwner[boughtplane] =playerid;
  6643. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Taken_|");
  6644. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a maverick from your AirPort.");
  6645. UsedAirPortRecently[playerid] += 320;
  6646. PutPlayerInVehicle(playerid, boughtplane, 0);
  6647. printf("**(PLANE TAKEN)** %s(%d) has taken a maverick from his AirPort",buyername,playerid);
  6648. return 1;
  6649. }
  6650. new boughtplane;
  6651. GetPlayerName(playerid,buyername,24);
  6652. boughtplane = CreateVehicle(487,1548.7792,1745.0867,10.8203,91.0247, -1, -1, 99999999999);
  6653. BoughtCars[boughtplane] =999;
  6654. BoughtCarsOwner[boughtplane] =playerid;
  6655. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchased_|");
  6656. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a maverick from the AirPort for $150000");
  6657. UsedAirPortRecently[playerid] += 320;
  6658. GivePlayerMoney(playerid,-150000);
  6659. PutPlayerInVehicle(playerid, boughtplane, 0);
  6660. printf("**(PLANE PURCHASE)** %s(%d) has purchased a maverick from the AirPort ($150000)",buyername,playerid);
  6661. for(new i=0;i<MAX_PLAYERS;i++)
  6662. {
  6663. if(IsPlayerConnected(i))
  6664. {
  6665. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  6666. if(AirPortOwner[i] == 1337)
  6667. {
  6668. new PortOwner[24];
  6669. GetPlayerName(i,PortOwner,24);
  6670. SendClientMessage(i, 0xA9A9A9AA, "|_Plane Sold_|");
  6671. format(string, sizeof(string), "AirPort salesmen have sold a maverick to %s(%d) - You receive $150000",buyername,playerid);
  6672. SendClientMessage(i, 0x00C7FFAA, string);
  6673. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  6674. GivePlayerMoney(i,150000);
  6675. printf("**(PLANE PURCHASE CASH)** AirPort owner %s(%d) has received $150000 from a plane sale",PortOwner,i);
  6676. }
  6677. }
  6678. }
  6679. }
  6680. else if(strcmp(x_nr,"2",true) == 0)/////////////Shamal
  6681. {
  6682. AirPortOwner[playerid]=dUserINT(PlayerName(playerid)).("AirPortOwner");
  6683. if(GetPlayerMoney(playerid) <= 199999 && AirPortOwner[playerid] == 0) {
  6684. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchase Failed_|");
  6685. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a shamal plane ($200000)");
  6686. return 1;
  6687. }
  6688. if (AirPortOwner[playerid] == 1337) {
  6689. new boughtplane;
  6690. GetPlayerName(playerid,buyername,24);
  6691. boughtplane = CreateVehicle(519,1386.7036,1638.0930,11.7314,181.2340,1,1, 99999999999);
  6692. BoughtCars[boughtplane] =999;
  6693. BoughtCarsOwner[boughtplane] =playerid;
  6694. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Taken_|");
  6695. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Shamal from your AirPort.");
  6696. UsedAirPortRecently[playerid] += 320;
  6697. PutPlayerInVehicle(playerid, boughtplane, 0);
  6698. printf("**(PLANE TAKEN)** %s(%d) has taken a Shamal from his AirPort",buyername,playerid);
  6699. return 1;
  6700. }
  6701. new boughtplane;
  6702. GetPlayerName(playerid,buyername,24);
  6703. boughtplane = CreateVehicle(519,1386.7036,1638.0930,11.7314,181.2340,1,1, 99999999999);
  6704. BoughtCars[boughtplane] =999;
  6705. BoughtCarsOwner[boughtplane] =playerid;
  6706. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchased_|");
  6707. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a shamal from the AirPort for $200000");
  6708. GivePlayerMoney(playerid,-200000);
  6709. UsedAirPortRecently[playerid] += 320;
  6710. PutPlayerInVehicle(playerid, boughtplane, 0);
  6711. printf("**(PLANE PURCHASE)** %s(%d) has purchased a Shamal from the AirPort ($200000)",buyername,playerid);
  6712. for(new i=0;i<MAX_PLAYERS;i++)
  6713. {
  6714. if(IsPlayerConnected(i))
  6715. {
  6716. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  6717. if(AirPortOwner[i] == 1337)
  6718. {
  6719. new PortOwner[24];
  6720. GetPlayerName(i,PortOwner,24);
  6721. SendClientMessage(i, 0xA9A9A9AA, "|_Plane Sold_|");
  6722. format(string, sizeof(string), "AirPort salesmen have sold a shamal to %s(%d) - You receive $200000",buyername,playerid);
  6723. SendClientMessage(i, 0x00C7FFAA, string);
  6724. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  6725. GivePlayerMoney(i,200000);
  6726. printf("**(PLANE PURCHASE CASH)** AirPort owner %s(%d) has received $200000 from a plane sale",PortOwner,i);
  6727. }
  6728. }
  6729. }
  6730. }
  6731. else if(strcmp(x_nr,"3",true) == 0)/////////////Stunt Plane
  6732. {
  6733. AirPortOwner[playerid]=dUserINT(PlayerName(playerid)).("AirPortOwner");
  6734. if(GetPlayerMoney(playerid) <= 99999 && AirPortOwner[playerid] == 0) {
  6735. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchase Failed_|");
  6736. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Stunt plane ($100000)");
  6737. return 1;
  6738. }
  6739. if (AirPortOwner[playerid] == 1337) {
  6740. new boughtplane;
  6741. new planebuyer[24];
  6742. GetPlayerName(playerid,planebuyer,24);
  6743. boughtplane = CreateVehicle(513,1379.5085,1362.4580,11.3745,359.3210,1,1, 99999999999);
  6744. BoughtCars[boughtplane] =999;
  6745. BoughtCarsOwner[boughtplane] =playerid;
  6746. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Taken_|");
  6747. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Stunt Plane from your AirPort.");
  6748. UsedAirPortRecently[playerid] += 320;
  6749. PutPlayerInVehicle(playerid, boughtplane, 0);
  6750. printf("**(PLANE TAKEN)** %s(%d) has taken a Stunt Plane from his AirPort",planebuyer,playerid);
  6751. return 1;
  6752. }
  6753. new boughtplane;
  6754. new bish[24];
  6755. GetPlayerName(playerid,bish,24);
  6756. boughtplane = CreateVehicle(513,1379.5085,1362.4580,11.3745,359.3210,1,1, 99999999999);
  6757. BoughtCars[boughtplane] =999;
  6758. BoughtCarsOwner[boughtplane] =playerid;
  6759. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Purchased_|");
  6760. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Stunt Plane from the AirPort for $100000");
  6761. GivePlayerMoney(playerid,-100000);
  6762. UsedAirPortRecently[playerid] += 320;
  6763. PutPlayerInVehicle(playerid, boughtplane, 0);
  6764. printf("**(PLANE PURCHASE)** %s(%d) has purchased a Stunt plane from the AirPort ($100000)",bish,playerid);
  6765. for(new i=0;i<MAX_PLAYERS;i++)
  6766. {
  6767. if(IsPlayerConnected(i))
  6768. {
  6769. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  6770. if(AirPortOwner[i] == 1337)
  6771. {
  6772. new PortOwner[24];
  6773. GetPlayerName(i,PortOwner,24);
  6774. SendClientMessage(i, 0xA9A9A9AA, "|_Plane Sold_|");
  6775. format(string, sizeof(string), "AirPort salesmen have sold a Stunt Plane to %s(%d) - You receive $100000",bish,playerid);
  6776. SendClientMessage(i, 0x00C7FFAA, string);
  6777. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  6778. GivePlayerMoney(i,100000);
  6779. printf("**(PLANE PURCHASE CASH)** AirPort owner %s(%d) has received $100000 from a plane sale",PortOwner,i);
  6780. }
  6781. }
  6782. }
  6783. }
  6784. else
  6785. {
  6786. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buyplane 1-3");
  6787.  
  6788. return 1;
  6789. }
  6790.  
  6791. }
  6792. return 1;
  6793. }
  6794. ///////////////
  6795. if(strcmp(cmd, "/adgc", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Gives a player money
  6796. {
  6797. tmp = strtok(cmdtext, idx);
  6798. if(!strlen(tmp)) {
  6799. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adgc (id) (amount)");
  6800. return 1;
  6801. }
  6802. if(!IsNumeric(tmp)) {
  6803. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adgc (id) (amount) ID Must be a number");
  6804. return 1;
  6805. }
  6806. if(strval(tmp) == playerid) {
  6807. SendClientMessage(playerid, COLOR_ERROR, "You cannot send cash to yourself");
  6808. return 1;
  6809. }
  6810. giveplayerid = strval(tmp);
  6811. if(!IsPlayerConnected(giveplayerid)) {
  6812. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  6813. SendClientMessage(playerid, COLOR_ERROR, string);
  6814. return 1;
  6815. }
  6816. new sendername[24];
  6817. new receivername[24];
  6818. GetPlayerName(playerid,sendername, 24);
  6819. GetPlayerName(giveplayerid,receivername, 24);
  6820. tmp = strtok(cmdtext, idx);
  6821. if(!strlen(tmp)) {
  6822. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adgc (id) (amount)");
  6823. return 1;
  6824. }
  6825. if(!IsNumeric(tmp)) {
  6826. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adgc (id) (amount) Amount must be a number");
  6827. return 1;
  6828. }
  6829. new cashsend = strval(tmp);
  6830. GivePlayerMoney(giveplayerid,cashsend);
  6831. SendClientMessage(playerid, 0xA9A9A9AA, "|_Cash Sent_|");
  6832. format(string, sizeof(string), "You have sent $%d to %s(%d)",cashsend,receivername,giveplayerid);
  6833. SendClientMessage(playerid, 0x00C7FFAA, string);
  6834. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Cash Received From Admin_|");
  6835. format(string, sizeof(string), "%s(%d) Has sent you $%d",sendername,playerid,cashsend);
  6836. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  6837. format(string, sizeof(string), "Admin %s(%d) Has sent $%d to receiver %s(%d)",sendername,playerid,cashsend,receivername,giveplayerid);
  6838. printf("%s",string);
  6839. ircSay(EchoConnection, EchoChan,string);
  6840. return 1;
  6841. }
  6842. //////////////
  6843. if (strcmp("/adautobahn", cmdtext, true, 10) == 0) // Teleports Admins To Autobahn
  6844. {
  6845. if(PlayerAdminLevel[playerid] == 1337)
  6846. {
  6847. SetPlayerInterior(playerid,0);
  6848. SetPlayerFacingAngle(playerid,88.7433);
  6849. SetPlayerPos(playerid,2158.3606,1419.1886,10.8203);
  6850. SetCameraBehindPlayer(playerid);
  6851. }
  6852. else
  6853. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  6854. return 1;
  6855. }
  6856. if (strcmp("/adapcheck", cmdtext, true, 10) == 0) // Teleports Admins To Admin HQ
  6857. {
  6858. if(PlayerAdminLevel[playerid] == 1337)
  6859. {
  6860. SetPlayerInterior(playerid,0);
  6861. SetPlayerFacingAngle(playerid,88.7433);
  6862. SetPlayerPos(playerid,1688.3779,1452.5260,10.7678);
  6863. SetCameraBehindPlayer(playerid);
  6864. }
  6865. else
  6866. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  6867. return 1;
  6868. }
  6869. /////////////////////
  6870. if(strcmp(cmd, "/adnoob", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Warn for being a nub
  6871. {
  6872. tmp = strtok(cmdtext, idx);
  6873. if(!strlen(tmp)) {
  6874. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adnoob (id)");
  6875. return 1;
  6876. }
  6877. giveplayerid = strval(tmp);
  6878.  
  6879. if(!IsNumeric(tmp)) {
  6880. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adnoob (id) ID Must be a number");
  6881. return 1;
  6882. }
  6883. if(!IsPlayerConnected(giveplayerid)) {
  6884. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  6885. SendClientMessage(playerid, COLOR_ERROR, string);
  6886. return 1;
  6887. }
  6888. if(udb_Exists(PlayerName(giveplayerid)) && PLAYERLIST_authed[giveplayerid])
  6889. {
  6890. new rpwarnings =0;
  6891. rpwarnings =dUserINT(PlayerName(giveplayerid)).("rpabusewar");
  6892. rpwarnings +=1;
  6893. if(rpwarnings >=3) {
  6894. SetPlayerInterior(giveplayerid,10);
  6895. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  6896. SetPlayerFacingAngle(giveplayerid,2.2339);
  6897. SetCameraBehindPlayer(giveplayerid);
  6898. GetPlayerName(giveplayerid, string, 24);
  6899. format(string, 100, "**(AUTO KICK)** %s(%d) Too many admin warnings for being a noob.Read the rules",string,giveplayerid);
  6900. SendClientMessageToAll(0xFF7F50AA, string);
  6901. printf("%s", string);
  6902. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",0);
  6903. Kicking[giveplayerid] = 1;
  6904. SetTimer("KickPlayer",700,0);
  6905. }
  6906. else
  6907. if(rpwarnings <=2) {
  6908. GetPlayerName(giveplayerid, string, 24);
  6909. format(string, 100, "**(ADMIN WARN)** %s(%d) Has been warned by server admin for being a nooblet",string,giveplayerid);
  6910. SendClientMessageToAll(0xFF7F50AA, string);
  6911. SendClientMessage(giveplayerid,COLOR_RED,"YOU HAVE BEEN WARNED BY SERVER ADMIN FOR BEING A NOOB!");
  6912. SendClientMessage(giveplayerid,COLOR_RED,"Further nooby activity will result in a kick");
  6913. SendClientMessage(giveplayerid,COLOR_RED,"Speak to a server admin if you arent sure why you were warned");
  6914. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",rpwarnings);
  6915. }
  6916. }
  6917. return 1;
  6918. }
  6919. if(strcmp(cmd, "/addmer", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Warn for DM
  6920. {
  6921. tmp = strtok(cmdtext, idx);
  6922. if(!strlen(tmp)) {
  6923. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /addmer (id)");
  6924. return 1;
  6925. }
  6926. giveplayerid = strval(tmp);
  6927.  
  6928. if(!IsNumeric(tmp)) {
  6929. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /addmer (id) ID Must be a number");
  6930. return 1;
  6931. }
  6932. if(!IsPlayerConnected(giveplayerid)) {
  6933. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  6934. SendClientMessage(playerid, COLOR_ERROR, string);
  6935. return 1;
  6936. }
  6937. if(udb_Exists(PlayerName(giveplayerid)) && PLAYERLIST_authed[giveplayerid])
  6938. {
  6939. new rpwarnings =0;
  6940. rpwarnings =dUserINT(PlayerName(giveplayerid)).("rpabusewar");
  6941. rpwarnings +=1;
  6942. if(rpwarnings >=3) {
  6943. SetPlayerInterior(giveplayerid,10);
  6944. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  6945. SetPlayerFacingAngle(giveplayerid,2.2339);
  6946. SetCameraBehindPlayer(giveplayerid);
  6947. GetPlayerName(giveplayerid, string, 24);
  6948. format(string, 100, "**(AUTO KICK)** %s(%d) Too many admin warnings for dming.Read /pc further abuse could result in a ban",string,giveplayerid);
  6949. SendClientMessageToAll(0xFF7F50AA, string);
  6950. printf("%s", string);
  6951. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",0);
  6952. Kicking[giveplayerid] = 1;
  6953. SetTimer("KickPlayer",700,0);
  6954. }
  6955. else
  6956. if(rpwarnings <=2) {
  6957. GetPlayerName(giveplayerid, string, 24);
  6958. format(string, 100, "**(ADMIN WARN)** %s(%d) Has been warned by server admin for DMING",string,giveplayerid);
  6959. SendClientMessageToAll(0xFF7F50AA, string);
  6960. SendClientMessage(giveplayerid,COLOR_RED,"YOU HAVE BEEN WARNED BY SERVER ADMIN FOR DMING!");
  6961. SendClientMessage(giveplayerid,COLOR_RED,"Further dming will result in a kick maybe even a ban");
  6962. SendClientMessage(giveplayerid,COLOR_RED,"Read /pc");
  6963. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",rpwarnings);
  6964. }
  6965. }
  6966. return 1;
  6967. }
  6968. //////////////////////////
  6969. if(strcmp(cmd, "/bail", true) == 0) {
  6970. if(IsSpawned[playerid] == 0) {
  6971. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  6972. return 1;
  6973. }
  6974. if(Jailed[playerid] == 1) {
  6975. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  6976. return 1;
  6977. }
  6978. tmp = strtok(cmdtext, idx);
  6979. if(!strlen(tmp)) {
  6980. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /bail (id)");
  6981. return 1;
  6982. }
  6983. giveplayerid = strval(tmp);
  6984. if(!IsNumeric(tmp)) {
  6985. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /bail (id) ID Must be a number");
  6986. return 1;
  6987. }
  6988. if(strval(tmp) == playerid) {
  6989. SendClientMessage(playerid, COLOR_ERROR, "You used your own ID please use another.");
  6990. return 1;
  6991. }
  6992. if(gTeam[playerid] == TEAM_ARMY) {
  6993. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot bail people,use /parole");
  6994. return 1;
  6995. }
  6996. if(!IsPlayerConnected(giveplayerid)) {
  6997. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  6998. SendClientMessage(playerid, COLOR_ERROR, string);
  6999. return 1;
  7000. }
  7001. new prisonername[24];
  7002. new turnkeyname[24];
  7003. GetPlayerName(giveplayerid,prisonername, 24);
  7004. GetPlayerName(playerid, turnkeyname, 24);
  7005. if(InAlcatraz[giveplayerid] == 1) {
  7006. format(string, sizeof(string), "%s(%d) is in jail on Alcatraz Island. He is not eligble for bail.",prisonername,giveplayerid);
  7007. SendClientMessage(playerid, COLOR_ERROR, string);
  7008. return 1;
  7009. }
  7010. if(Jailed[giveplayerid] == 0) {
  7011. format(string, sizeof(string), "%s(%d) is not in jail",prisonername,giveplayerid);
  7012. SendClientMessage(playerid, COLOR_ERROR, string);
  7013. return 1;
  7014. }
  7015. if(GetPlayerMoney(playerid) <= 24999 && IsPlayerInCheckpoint(playerid)) {
  7016. SendClientMessage(playerid,COLOR_ERROR,"You havent got enough money to bail this player {$25000)");
  7017. return 1;
  7018. }
  7019. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  7020. format(string, sizeof(string), "You are not close enough to bail %s(%d).",prisonername,giveplayerid);
  7021. SendClientMessage(playerid, COLOR_ERROR, string);
  7022. return 1;
  7023. }
  7024. SetPlayerInterior(giveplayerid,3);
  7025. SetPlayerPos(giveplayerid,210.5272,146.3341,1003.0234);
  7026. SetPlayerFacingAngle(giveplayerid,179.4662);
  7027. SetCameraBehindPlayer(giveplayerid);
  7028. Jailed[giveplayerid] = 0;
  7029. JailTime[giveplayerid] =0;
  7030. cannotescapejail[giveplayerid] =0;
  7031. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Bail Payed_|");
  7032. format(string, sizeof(string), "%s(%d) has paid your bail of 25K you have been released early.",turnkeyname,playerid);
  7033. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  7034. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bail Payed_|");
  7035. format(string, sizeof(string), "You payed $25000 to bail %s(%d) out of jail",prisonername,giveplayerid);
  7036. SendClientMessage(playerid, 0x00C7FFAA, string);
  7037. format(string, sizeof(string), "%s(%d) Has bailed %s(%d) from jail",turnkeyname,playerid,prisonername,giveplayerid);
  7038. SendClientMessageToAll(0x00C7FFAA, string);
  7039. return 1;
  7040. }
  7041. if(strcmp(cmd, "/reqbail", true) == 0) {
  7042. if(IsSpawned[playerid] == 0) {
  7043. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7044. return 1;
  7045. }
  7046. if(Jailed[playerid] == 0 && InAlcatraz[playerid] == 0) {
  7047. SendClientMessage(playerid,COLOR_ERROR,"You are not in jail. You can only use this command while you are in jail.");
  7048. return 1;
  7049. }
  7050. tmp = strtok(cmdtext, idx);
  7051. if(!strlen(tmp)) {
  7052. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /reqbail (id)");
  7053. return 1;
  7054. }
  7055. if(!IsNumeric(tmp)) {
  7056. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /reqbail (id) ID Must be a number");
  7057. return 1;
  7058. }
  7059. if(strval(tmp) == playerid) {
  7060. SendClientMessage(playerid, COLOR_ERROR, "You cannot give yourself a bail request");
  7061. return 1;
  7062. }
  7063. giveplayerid = strval(tmp);
  7064. if(!IsPlayerConnected(giveplayerid)) {
  7065. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  7066. SendClientMessage(playerid, COLOR_ERROR, string);
  7067. return 1;
  7068. }
  7069. new sendername[24];
  7070. new receivername[24];
  7071. GetPlayerName(playerid,sendername, 24);
  7072. GetPlayerName(giveplayerid,receivername, 24);
  7073. if(gTeam[giveplayerid] <= 2) {
  7074. SendClientMessage(playerid, COLOR_ERROR, "You cannot send a bail request to Police or Army Officers");
  7075. return 1;
  7076. }
  7077. if(IsSpawned[giveplayerid] == 0) {
  7078. format(string, sizeof(string), "%s(%d) is dead. You cannot give a bail request to a dead body",receivername,giveplayerid);
  7079. SendClientMessage(playerid, COLOR_ERROR, string);
  7080. return 1;
  7081. }
  7082. if(Jailed[giveplayerid] == 1) {
  7083. SendClientMessage(playerid,COLOR_ERROR,"That player is in jail. You cannot give a bail request to a prisoner");
  7084. return 1;
  7085. }
  7086. else
  7087. if(VisitReq[giveplayerid] == 0) {
  7088. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Bail Request Received_|");
  7089. format(string, sizeof(string), "Prisoner %s(%d) has sent you a bail request",sendername,playerid);
  7090. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  7091. SendClientMessage(giveplayerid, 0x00C7FFAA, "Go to out side the players cell and use /bail (ID) this will cost you 25000");
  7092. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bail request Sent Out_|");
  7093. format(string, sizeof(string), "You have sent a bail request to %s(%d).",receivername,giveplayerid);
  7094. SendClientMessage(playerid, 0x00C7FFAA, string);
  7095. }
  7096. return 1;
  7097. }
  7098. ////////////////////////////
  7099. if(strcmp(cmd, "/throwaway", true) == 0 || strcmp(cmd, "/ta", true) == 0)
  7100. {
  7101. if(IsSpawned[playerid] == 0) {
  7102. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7103. return 1;
  7104. }
  7105. if(Jailed[playerid] == 1) {
  7106. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7107. return 1;
  7108. }
  7109. if(cuffed[playerid] == 1) {
  7110. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while handcuffed");
  7111. return 1;
  7112. }
  7113. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY ||
  7114. gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC ||
  7115. gTeam[playerid] == TEAM_JAILTK || gTeam[playerid] == TEAM_DRIVER) {
  7116. SendClientMessage(playerid,COLOR_ERROR,"Only criminals can use this command");
  7117. return 1;
  7118. }
  7119. if(HasC4[playerid] == 0 && PlayerDrugs[playerid] == 0) {
  7120. SendClientMessage(playerid, 0xA9A9A9AA, "|_No Illegal Items_|");
  7121. SendClientMessage(playerid,0x00C7FFAA,"You are not carrying any illegal items!");
  7122. return 1;
  7123. }
  7124. new oname[24];
  7125. GetPlayerName(playerid,oname, 24);
  7126. if(HasC4[playerid] == 1 && PlayerDrugs[playerid] >= 1) {
  7127. SendClientMessage(playerid, 0xA9A9A9AA, "|_Illegal Items Discarded_|");
  7128. format(string, sizeof(string), "You have thrown away %d grams of drugs and 3 blocks of C4!",PlayerDrugs[playerid]);
  7129. SendClientMessage(playerid,0x00C7FFAA, string);
  7130. HasC4[playerid] =0;
  7131. PlayerDrugs[playerid] =0;
  7132. }
  7133. else
  7134. if(HasC4[playerid] == 0 && PlayerDrugs[playerid] >= 1) {
  7135. SendClientMessage(playerid, 0xA9A9A9AA, "|_Illegal Items Discarded_|");
  7136. format(string, sizeof(string), "You have thrown away %d grams of drugs!",PlayerDrugs[playerid]);
  7137. SendClientMessage(playerid,0x00C7FFAA, string);
  7138. PlayerDrugs[playerid] =0;
  7139. }
  7140. else
  7141. if(HasC4[playerid] == 1 && PlayerDrugs[playerid] == 0) {
  7142. SendClientMessage(playerid, 0xA9A9A9AA, "|_Illegal Items Discarded_|");
  7143. SendClientMessage(playerid,0x00C7FFAA,"You have thrown away 3 blocks of C4!");
  7144. HasC4[playerid] =0;
  7145. for(new j=0;j<MAX_PLAYERS;j++)
  7146. {
  7147. if(GetDistanceBetweenPlayers(playerid,j) < 7 && gTeam[j] == TEAM_COP) {
  7148. format(string, sizeof(string), "You have seen %s(%d) throw away illegal items",oname,playerid);
  7149. SendClientMessage(j, COLOR_ROYALBLUE, string);
  7150. SendClientMessage(j, COLOR_DODGERBLUE, "An officer has seen him throw away illegal items");
  7151. SendClientMessage(playerid, COLOR_DODGERBLUE, "An officer has seen you throw away illegal items");
  7152. new plwl = GetPlayerWantedLevel(playerid);
  7153. SetPlayerWantedLevel(playerid,plwl +4);
  7154. plwl = GetPlayerWantedLevel(playerid);
  7155. commitedcrimerecently[playerid] +=120;
  7156. }
  7157. }
  7158. }
  7159. return 1;
  7160. }
  7161. ////////////////////
  7162. if (strcmp("/adap", cmdtext, true, 10) == 0) // Teleports Admins To Admin HQ
  7163. {
  7164. if(PlayerAdminLevel[playerid] == 1337)
  7165. {
  7166. SetPlayerInterior(playerid,0);
  7167. SetPlayerFacingAngle(playerid,88.7433);
  7168. SetPlayerPos(playerid,1548.7792,1745.0867,10.8203);
  7169. SetCameraBehindPlayer(playerid);
  7170. }
  7171. else
  7172. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  7173. return 1;
  7174. }
  7175.  
  7176. /*if(strcmp(cmd, "/pduty", true) == 0) {
  7177. if(IsSpawned[playerid] == 0) {
  7178. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7179. return 1;
  7180. }
  7181. if(Jailed[playerid] ==1) {
  7182. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7183. return 1;
  7184. }
  7185. if(gTeam[playerid] != TEAM_PILOT) {
  7186. SendClientMessage(playerid, COLOR_ERROR, "Only drivers can use this command");
  7187. return 1;
  7188. }
  7189. if(Pilotonduty[playerid] == 1) {
  7190. SendClientMessage(playerid, COLOR_ERROR, "You are already on duty");
  7191. return 1;
  7192. }
  7193. if(!IsPlayerInAnyVehicle(playerid)) {
  7194. SendClientMessage(playerid, COLOR_ERROR, "You are not in any drivers vehicle");
  7195. return 1;
  7196. }
  7197. if(GetPlayerWantedLevel(playerid) >= 1) {
  7198. SendClientMessage(playerid, COLOR_ERROR, "You must be innocent to go on duty as a driver");
  7199. return 1;
  7200. }
  7201. if(IsPlayerInAnyVehicle(playerid))
  7202. {
  7203. if(GetPlayerVehicleID(playerid) != mav1 &&
  7204. GetPlayerVehicleID(playerid) != mav2 &&
  7205. GetPlayerVehicleID(playerid) != mav3 &&
  7206. GetPlayerVehicleID(playerid) != mav4 &&
  7207. GetPlayerVehicleID(playerid) != mav5 &&
  7208. GetPlayerVehicleID(playerid) != mav6 &&
  7209. GetPlayerVehicleID(playerid) != mav7 &&
  7210. GetPlayerVehicleID(playerid) != mav8 &&
  7211. GetPlayerVehicleID(playerid) != mav9) {
  7212. SendClientMessage(playerid, COLOR_ERROR, "You must be in a plane to go on duty");
  7213. return 1;
  7214. }
  7215. new pilotname[30];
  7216. GetPlayerName(playerid,pilotname,30);
  7217. format(string, sizeof(string), "Pilot %s(%d) Is now on duty. Type /plane to order a private plane",pilotname,playerid);
  7218. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  7219. Pilotonduty[playerid] =1;
  7220. }
  7221. return 1;
  7222. }
  7223. */
  7224.  
  7225.  
  7226.  
  7227.  
  7228.  
  7229.  
  7230.  
  7231. /* if(strcmp(cmd, "/offpduty", true) == 0) {
  7232. if(IsSpawned[playerid] == 0) {
  7233. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7234. return 1;
  7235. }
  7236. if(Jailed[playerid] ==1) {
  7237. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7238. return 1;
  7239. }
  7240. if(gTeam[playerid] != TEAM_PILOT) {
  7241. SendClientMessage(playerid, COLOR_ERROR, "Only drivers can use this command");
  7242. return 1;
  7243. }
  7244. if(Pilotonduty[playerid] == 0) {
  7245. SendClientMessage(playerid, COLOR_ERROR, "You are not on duty");
  7246. return 1;
  7247. }
  7248. if(Pilotonduty[playerid] == 1)
  7249. {
  7250. new pilotname[30];
  7251. GetPlayerName(playerid,pilotname,30);
  7252. format(string, sizeof(string), "Pilot %s(%d) is no longer accepting fares",pilotname,playerid);
  7253. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  7254. Pilotonduty[playerid] =0;
  7255. new taxiid = GetPlayerVehicleID(playerid);
  7256. for(new i=0;i<MAX_PLAYERS;i++)
  7257. {
  7258. if(IsPlayerInVehicle(i,taxiid) && GetPlayerState(i) == PLAYER_STATE_PASSENGER)
  7259. {
  7260. RemovePlayerFromVehicle(i);
  7261. Planepass[i] =0;
  7262. }
  7263. }
  7264. }
  7265. return 1;
  7266. }
  7267. if(strcmp(cmd, "/plane", true) == 0) {
  7268. if(IsSpawned[playerid] == 0) {
  7269. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7270. return 1;
  7271. }
  7272. if(Jailed[playerid] ==1) {
  7273. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7274. return 1;
  7275. }
  7276. if(OrderedPlaneRecently[playerid] >= 1) {
  7277. SendClientMessage(playerid,COLOR_ERROR,"Please wait before calling a plane again");
  7278. return 1;
  7279. }
  7280. if(IsPlayerInAnyVehicle(playerid)) {
  7281. SendClientMessage(playerid, COLOR_ERROR, "You cannot call a private plane if you are in a vehicle");
  7282. return 1;
  7283. }
  7284. if (!GetPlayersInTeam(TEAM_PILOT)) {
  7285. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Pilot's");
  7286. return 1;
  7287. }
  7288. if(GetPlayersInTeam(TEAM_PILOT) >=1) {
  7289. SendClientMessage(playerid, 0xA9A9A9AA, "|_Plane Called_|");
  7290. SendClientMessage(playerid, COLOR_DARKOLIVEGREEN, "You have called a Pilot to your location. Please wait");
  7291. for(new i=0;i<MAX_PLAYERS;i++)
  7292. {
  7293. if(gTeam[i] == TEAM_PILOT) {
  7294. new pname[24];
  7295. GetPlayerName(playerid, pname, 24);
  7296. new current_zone;
  7297. current_zone = player_zone[playerid];
  7298. SendClientMessage(i, 0xA9A9A9AA, "|_Pilot Requested_|");
  7299. format(string, sizeof(string), "%s(%d) Has requested a private plane. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  7300. SendClientMessage(i, COLOR_DARKOLIVEGREEN, string);
  7301. OrderedPlaneRecently[playerid] += 80;
  7302. }
  7303. }
  7304. }
  7305. return 1;
  7306. }
  7307. */
  7308. /////////////
  7309. /* if(strcmp(cmd, "/lookwindow", true) == 0)
  7310. {
  7311. if(IsSpawned[playerid] == 0) {
  7312. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7313. return 1;
  7314. }
  7315. if(!InShamal[playerid]) {
  7316. SendClientMessage(playerid, COLOR_ERROR, "You are not in a shamal.");
  7317. return 1;
  7318. }
  7319. if(InShamal[playerid]) {
  7320. TogglePlayerSpectating(playerid, 1);
  7321. PlayerSpectateVehicle(playerid, mav8);
  7322. SendClientMessage(playerid, COLOR_ERROR, "You are now looking out the window.");
  7323. }
  7324. return 1;
  7325. }
  7326. if(strcmp(cmd, "/stopwindow", true) == 0) {
  7327. SetPlayerPos(playerid, ShamalPos[mav8][0],
  7328. floatsub(ShamalPos[mav8][1], 5.87),
  7329. floatsub(ShamalPos[mav8][2], 0.75));
  7330. SetPlayerFacingAngle(playerid, 0.0);
  7331. SetCameraBehindPlayer(playerid);
  7332. return 1;
  7333. }
  7334. */
  7335.  
  7336.  
  7337.  
  7338.  
  7339.  
  7340. if(!strcmp(cmdtext, "/fofff", true, 4)) {
  7341. if(IsSpawned[playerid] == 0) {
  7342. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7343. return 1;
  7344. }
  7345. if(Muted[playerid] == 1) {
  7346. SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Use This Command");
  7347. return 1;
  7348. }
  7349. if(UsedFORecently[playerid] >= 1) {
  7350. SendClientMessage(playerid,COLOR_ERROR,"Please wait before using this command again");
  7351. return 1;
  7352. }
  7353. tmp = strtok(cmdtext, idx);
  7354. if(!strlen(tmp)) {
  7355. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /foff (id)");
  7356. return 1;
  7357. }
  7358. giveplayerid = strval(tmp);
  7359. if(!IsPlayerConnected(giveplayerid)) {
  7360. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  7361. SendClientMessage(playerid, COLOR_ERROR, string);
  7362. return 1;
  7363. }
  7364. if(!IsNumeric(tmp)) {
  7365. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /foff (id) ID Must be a number");
  7366. return 1;
  7367. }
  7368. new oname[24];
  7369. new pname[24];
  7370. GetPlayerName(playerid,oname, 24);
  7371. GetPlayerName(giveplayerid, pname, 24);
  7372. SendClientMessage(playerid, 0xA9A9A9AA, "|_Fucked Off_|");
  7373. format(string, sizeof(string), "You have told %s(%d) to Fuck Off", pname, giveplayerid);
  7374. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  7375. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Fucked off_|");
  7376. format(string, sizeof(string), "%s(%d): Has told you to Fuck Off",oname, playerid);
  7377. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  7378. format(string, sizeof(string), " %s(%d) has told %s(%d) to Fuck Off",oname,playerid,pname,giveplayerid);
  7379. SendClientMessageToAll(0x00C7FFAA, string);
  7380. UsedFORecently[playerid] += 80;
  7381. return 1;
  7382. }
  7383. //////////////////////////////
  7384. if(!strcmp(cmdtext, "/givec4", true, 4)) {
  7385. if(IsSpawned[playerid] == 0) {
  7386. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7387. return 1;
  7388. }
  7389. tmp = strtok(cmdtext, idx);
  7390. if(!strlen(tmp)) {
  7391. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givec4 (id)");
  7392. return 1;
  7393. }
  7394. if(!IsNumeric(tmp)) {
  7395. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givec4 (id) ID Must be a number");
  7396. return 1;
  7397. }
  7398. if(strval(tmp) == playerid) {
  7399. SendClientMessage(playerid, COLOR_ERROR, "You cannot give yourself C4");
  7400. return 1;
  7401. }
  7402. giveplayerid = strval(tmp);
  7403. if(HasC4[playerid] == 0) {
  7404. SendClientMessage(playerid,COLOR_ERROR,"You do not have any C4 - Goto the bomb shop in Redsands to buy some C4 for $1500");
  7405. return 1;
  7406. }
  7407. if(HasC4[giveplayerid] == 1) {
  7408. SendClientMessage(playerid,COLOR_ERROR,"That player already has C4");
  7409. return 1;
  7410. }
  7411. new oname[24];
  7412. new pname[24];
  7413. GetPlayerName(playerid,oname, 24);
  7414. GetPlayerName(giveplayerid, pname, 24);
  7415. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 4) {
  7416. format(string, sizeof(string), "%s(%d) Is not close enough you cannot give that player C4",pname, giveplayerid);
  7417. SendClientMessage(playerid, COLOR_ERROR, string);
  7418. return 1;
  7419. }
  7420. if(gTeam[giveplayerid] <= 2) {
  7421. SendClientMessage(playerid, COLOR_ERROR, "You cannotgive a Law Enforcement agent C4");
  7422. return 1;
  7423. }
  7424. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK || gTeam[playerid] == TEAM_DRIVER) {
  7425. SendClientMessage(playerid,COLOR_ERROR,"You should not have C4!");
  7426. return 1;
  7427. }
  7428. HasC4[giveplayerid] =1;
  7429. HasC4[playerid] =0;
  7430. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_C4 Recived_|");
  7431. format(string, sizeof(string), "%s(%d): Has given you C4,go to Caligulas Casino vaults and blow the doors off with it",oname, playerid);
  7432. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  7433. SendClientMessage(playerid, 0xA9A9A9AA, "|_C4 Given_|");
  7434. format(string, sizeof(string), "You have given %s(%d) C4", pname, giveplayerid);
  7435. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  7436. return 1;
  7437. }
  7438. ///////////////////////////////////
  7439. if(!strcmp(cmdtext, "/sur", true, 4)) {
  7440. if(IsSpawned[playerid] == 0) {
  7441. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7442. return 1;
  7443. }
  7444. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  7445. if(cuffed[playerid] == 1) {
  7446. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  7447. return 1;
  7448. }
  7449. if(GetPlayerWantedLevel(playerid) == 0) {
  7450. format(string, sizeof(string), "You are innocent you cannot use this command");
  7451. SendClientMessage(playerid,COLOR_ERROR,string);
  7452. return 1;
  7453. }
  7454. if(GetPlayerWantedLevel(playerid) <= 3) {
  7455. format(string, sizeof(string), "You must be at least orange to use this command ");
  7456. SendClientMessage(playerid,COLOR_ERROR, string);
  7457. return 1;
  7458. }
  7459. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  7460. TogglePlayerControllable(playerid, 0);
  7461. new surendername[30];
  7462. GetPlayerName(playerid,surendername,30);
  7463. format(string, sizeof(string), "You have surrenderd you will wait here until arrested");
  7464. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  7465. for(new j=0;j<MAX_PLAYERS;j++)
  7466. {
  7467. if(LawEnforcementRadio[j] == 1) {
  7468. format(string, sizeof(string), "DISPATCH: (Suspect Surrenders) Suspect: %s(%d) Location: Whitewood Estates",surendername,playerid);
  7469. SendClientMessage(j, COLOR_ROYALBLUE, string);
  7470. }
  7471. }
  7472. }
  7473. }
  7474. return 1;
  7475. }
  7476. //////////////////////////////////
  7477. if(strcmp(cmd, "/tie", true) == 0) {
  7478. if(IsSpawned[playerid] == 0) {
  7479. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command.");
  7480. return 1;
  7481. }
  7482. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY ||
  7483. gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC ||
  7484. gTeam[playerid] == TEAM_JAILTK || gTeam[playerid] == TEAM_DRIVER) {
  7485. SendClientMessage(playerid,COLOR_ERROR,"Law enforcment officers cannnot kidnap players");
  7486. return 1;
  7487. }
  7488. if(gTeam[playerid] != TEAM_KIDNAP) {
  7489. SendClientMessage(playerid, COLOR_ERROR, "Only Kidnappers can use this command");
  7490. return 1;
  7491. }
  7492. tmp = strtok(cmdtext, idx);
  7493. if(!strlen(tmp)) {
  7494. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tie (id)");
  7495. return 1;
  7496. }
  7497. if(cuffed[playerid] == 1) {
  7498. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  7499. return 1;
  7500. }
  7501. if(isKidnapped[playerid] == 1) {
  7502. SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped yourself,try /cutrope if you have a scissors.");
  7503. return 1;
  7504. }
  7505. if(Jailed[playerid] == 1) {
  7506. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command in jail");
  7507. return 1;
  7508. }
  7509. if(!IsNumeric(tmp)) {
  7510. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /tie (id) ID Must be a number");
  7511. return 1;
  7512. }
  7513. if(strval(tmp) == playerid) {
  7514. SendClientMessage(playerid, COLOR_ERROR, "You cannot kidnap yourself");
  7515. return 1;
  7516. }
  7517. giveplayerid = strval(tmp);
  7518. if(gotRope[playerid] == 0) {
  7519. SendClientMessage(playerid,COLOR_ERROR,"You have no rope,buy some at a 24/7 shop");
  7520. return 1;
  7521. }
  7522. if(GetPlayerState(giveplayerid) != PLAYER_STATE_PASSENGER) {
  7523. SendClientMessage(playerid,COLOR_ERROR,"The player must be a passanger");
  7524. return 1;
  7525. }
  7526. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != PLAYER_STATE_DRIVER) {
  7527. SendClientMessage(playerid, COLOR_ERROR, "You are not the driver of this vehicle.Only the driver can kidnap players");
  7528. return 1;
  7529. }
  7530. if(cuffed[giveplayerid] == 1) {
  7531. SendClientMessage(playerid,COLOR_ERROR,"This player is cuffed, you cannot tie him up");
  7532. return 1;
  7533. }
  7534. new kidnappername[24];
  7535. new victimname[24];
  7536. GetPlayerName(playerid,kidnappername, 24);
  7537. GetPlayerName(giveplayerid, victimname, 24);
  7538. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 3) {
  7539. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot kidnap that player",victimname,giveplayerid);
  7540. SendClientMessage(playerid, COLOR_ERROR, string);
  7541. return 1;
  7542. }
  7543. gotRope[playerid] =0;
  7544. format(string, sizeof(string), "You have tied up %s(%d).",victimname,giveplayerid);
  7545. SendClientMessage(playerid,COLOR_ROYALBLUE,string);
  7546. SendClientMessage(giveplayerid,COLOR_ERROR,"You have been kidnapped!");
  7547. format(string, sizeof(string), "(Kidnapping) %s(%d) Has been kidnapped by $%d",kidnappername,playerid,victimname,giveplayerid);
  7548. SendClientMessageToAll(0x00C7FFAA,string);
  7549. TogglePlayerControllable(giveplayerid, 0);
  7550. isKidnapped[giveplayerid] = 1;
  7551. kidnapTimer[giveplayerid] = 180;
  7552. new pcol = GetPlayerColor(playerid);
  7553. new plwl = GetPlayerWantedLevel(playerid);
  7554. plwl = GetPlayerWantedLevel(playerid);
  7555. commitedcrimerecently[playerid] +=120;
  7556. SetPlayerWantedLevel(playerid, plwl +4);
  7557. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  7558. format(string, sizeof(string), "(KIDNAPPING) Wanted Level %d",plwl);
  7559. SendClientMessage(playerid,pcol,string);
  7560. oscore = GetPlayerScore(playerid);
  7561. SetPlayerScore(playerid, oscore +1);
  7562. for(new i=0;i<MAX_PLAYERS;i++)
  7563. {
  7564. if(LawEnforcementRadio[i] == 1) {
  7565. new string1[256];
  7566. new string2[256];
  7567. new current_zone;
  7568. current_zone = player_zone[playerid];
  7569. format(string1, sizeof(string1), "DISPATCH: (KIDNAPPING) Suspect: %s(%d) Victim:",kidnappername,playerid,victimname,giveplayerid);
  7570. format(string2, sizeof(string2), "ALL UNITS: Please respond to %s and arrest %s(%d)",zones[current_zone][zone_name],kidnappername,giveplayerid);
  7571. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  7572. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  7573. }
  7574. }
  7575. return 1;
  7576. }
  7577. if (strcmp("/kill", cmdtext, true, 10) == 0)
  7578. {
  7579. if(IsSpawned[playerid] == 0) {
  7580. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7581. return 1;
  7582. }
  7583. if(InDerby[playerid] == 1) {
  7584. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  7585. return 1;
  7586. }
  7587. if(Jailed[playerid] == 1) {
  7588. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7589. return 1;
  7590. }
  7591. if(cuffed[playerid] == 1) {
  7592. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command if you are handcuffed");
  7593. return 1;
  7594. }
  7595. if(GetPlayerMoney(playerid) <= -1) {
  7596. SendClientMessage(playerid, COLOR_ERROR, "You are in Debt. You cannot use this command");
  7597. return 1;
  7598. }
  7599. if(isKidnapped[playerid] == 1)
  7600. {
  7601. SendClientMessage(playerid, COLOR_ERROR, "You are tied up. You cannot use this command");
  7602. return 1;
  7603. }
  7604. if(GetPlayerWantedLevel(playerid) == 0)
  7605. {
  7606. KilledHimself[playerid] =1;
  7607. new str[100];
  7608. GetPlayerName(playerid, str, 24);
  7609. format(str, 100, "%s(%d) Has commited suicide using /kill", str,playerid);
  7610. SendClientMessageToAll(0xEE82EEAA, str);
  7611. ircSay(EchoConnection, EchoChan, str);
  7612. oscore = GetPlayerScore(playerid);
  7613. SetPlayerScore(playerid, oscore -1);
  7614. SetPlayerHealth(playerid,0);
  7615. }
  7616. else
  7617. SendClientMessage(playerid,COLOR_ERROR,"The police are looking for you. You cannot use this command");
  7618. return 1;
  7619. }
  7620. /////////////////
  7621. //////For 1.8////
  7622. if(strcmp(cmd, "/kidnap", true) == 0)
  7623. {
  7624. if(IsSpawned[playerid] == 0) {
  7625. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7626. return 1;
  7627. }
  7628. if(Jailed[playerid] ==1) {
  7629. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7630. return 1;
  7631. }
  7632. if(gTeam[playerid] != TEAM_KIDNAP) {
  7633. SendClientMessage(playerid,COLOR_ERROR,"You are not a kidnapper. Only kidnappers can use this command");
  7634. return 1;
  7635. }
  7636. if(InDerby[playerid] == 1) {
  7637. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  7638. return 1;
  7639. }
  7640. if(HasKidnapped[playerid] == 1) {
  7641. SendClientMessage(playerid,COLOR_ERROR,"You already have a person kidnapped,untie them first.You can still use /tie");
  7642. return 1;
  7643. }
  7644. if(gTeam[playerid] == TEAM_ARMY) {
  7645. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot kidnap people");
  7646. return 1;
  7647. }
  7648. tmp = strtok(cmdtext, idx);
  7649. if(!strlen(tmp)) {
  7650. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /kidnap (id)");
  7651. return 1;
  7652. }
  7653. if(gotRope[playerid] == 0) {
  7654. SendClientMessage(playerid, COLOR_ERROR, "You have no rope buy some at a 24/7");
  7655. return 1;
  7656. }
  7657. giveplayerid = strval(tmp);
  7658. if(!IsPlayerConnected(giveplayerid)) {
  7659. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  7660. SendClientMessage(playerid, COLOR_ERROR, string);
  7661. return 1;
  7662. }
  7663. new oname[24];
  7664. new pname[24];
  7665. GetPlayerName(playerid,oname, 24);
  7666. GetPlayerName(giveplayerid, pname, 24);
  7667.  
  7668. if(!IsNumeric(tmp)) {
  7669. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /kidnap (id) ID Must be a number");
  7670. return 1;
  7671. }
  7672. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 4) {
  7673. format(string, sizeof(string), "%s(%d) Is not close enough you cannot tie up that player",pname, giveplayerid);
  7674. SendClientMessage(playerid, COLOR_ERROR, string);
  7675. return 1;
  7676. }
  7677. if(InAdminMode[giveplayerid] == 1337) {
  7678. format(string, sizeof(string), "%s(%d) Is a server Admin. He / She is in Admin Mode. You cannot use this command on this player at this time",pname, giveplayerid);
  7679. SendClientMessage(playerid, COLOR_ERROR, string);
  7680. format(string, sizeof(string), "(ADMIN MODE) %s(%d) Has attempted to tie you up. You are in Admin mode. You cannot be tied up",oname,playerid);
  7681. SendClientMessage(giveplayerid, 0xFF7F50AA, string);
  7682. return 1;
  7683. }
  7684. if(Jailed[giveplayerid] == 1) {
  7685. format(string, sizeof(string), "%s(%d) Is in jail. You cannot tie up a prisoner",pname, giveplayerid);
  7686. SendClientMessage(playerid, COLOR_ERROR, string);
  7687. return 1;
  7688. }
  7689. if(IsPlayerInAnyVehicle(playerid)) {
  7690. SendClientMessage(playerid, COLOR_ERROR, "You are in a vehicle.Use /tie (ID) instead");
  7691. return 1;
  7692. }
  7693. if(IsPlayerInAnyVehicle(giveplayerid)) {
  7694. SendClientMessage(playerid, COLOR_ERROR, "That player is already in a vehicle");
  7695. return 1;
  7696. }
  7697. new kidnaprand = random(100);
  7698. if(kidnaprand >=26 && kidnaprand <=100) // Failed
  7699. {
  7700. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Kidnapping failed_|");
  7701. format(string, sizeof(string), "%s(%d): has attempted to kidnap you,you fought him off",oname, playerid);
  7702. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  7703. SendClientMessage(playerid, 0xA9A9A9AA, "|_Kidnapping failed_|");
  7704. format(string, sizeof(string), "%s(%d) fought you off", pname, giveplayerid);
  7705. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  7706. return 1;
  7707. }
  7708. else
  7709. if(kidnaprand >=0 && kidnaprand <=25) // complete
  7710. {
  7711. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Kidnapped_|");
  7712. format(string, sizeof(string), "%s(%d): has Kidnapped you,use /cutrope to attempt an escape!",oname, playerid);
  7713. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  7714. TogglePlayerControllable(giveplayerid, 0);
  7715. isKidnapped[giveplayerid] =1;
  7716. oscore = GetPlayerScore(playerid);
  7717. SetPlayerScore(playerid, oscore +1);
  7718. gotRope[playerid] =0;
  7719. SendClientMessage(playerid, 0xA9A9A9AA, "|_Victim Kidnapped_|");
  7720. format(string, sizeof(string), "You have Kidnapped %s(%d).Use /untie to untie him,Use /eject (id) to eject him from the vehicle and have your way with him", pname, giveplayerid);
  7721. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  7722. format(string, sizeof(string), "(Kidnapping) %s(%d) has grabbed %s(%d) and thrown him into his car!",oname,playerid,pname,giveplayerid);
  7723. SendClientMessageToAll(0x00C7FFAA, string);
  7724. PutPlayerInVehicle(giveplayerid,KidCar[playerid],1);
  7725. HasKidnapped[playerid] =1;
  7726. new plwl = GetPlayerWantedLevel(playerid);
  7727. new pcol = GetPlayerColor(playerid);
  7728. SetPlayerWantedLevel(playerid,plwl +4);
  7729. plwl = GetPlayerWantedLevel(playerid);
  7730. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  7731. format(string, sizeof(string), "(KIDNAPPING) Wanted Level %d",plwl);
  7732. SendClientMessage(playerid,pcol,string);
  7733. format(string, sizeof(string), "~r~KIDNAPPED BY~n~~w~%s(%d)",oname,playerid);
  7734. GameTextForPlayer(giveplayerid,string,5000,3);
  7735. new current_zone;
  7736. current_zone = player_zone[playerid];
  7737. for(new i=0;i<MAX_PLAYERS;i++)
  7738. {
  7739. if(LawEnforcementRadio[i] == 1) {
  7740. format(string, sizeof(string), "DISPATCH: (KIDNAPPING) Suspect: %s(%d) has kidnapped %s(%d) Location: %s",oname,playerid,pname,giveplayerid,zones[current_zone][zone_name]);
  7741. SendClientMessage(i,COLOR_ROYALBLUE,string);
  7742. SendClientMessage(i,COLOR_ROYALBLUE,"DISPATCH: All units in the area respond");
  7743. }
  7744. }
  7745. }
  7746. return 1;
  7747. }
  7748. if(strcmp(cmd, "/untie", true) == 0) {
  7749. if(IsSpawned[playerid] == 0) {
  7750. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7751. return 1;
  7752. }
  7753. if(Jailed[playerid] ==1) {
  7754. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7755. return 1;
  7756. }
  7757. if(InDerby[playerid] == 1) {
  7758. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  7759. return 1;
  7760. }
  7761. tmp = strtok(cmdtext, idx);
  7762. if(!strlen(tmp)) {
  7763. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /untie (id)");
  7764. return 1;
  7765. }
  7766. if(strval(tmp) == playerid) {
  7767. SendClientMessage(playerid, COLOR_ERROR, "You cannot untie yourself");
  7768. return 1;
  7769. }
  7770. giveplayerid = strval(tmp);
  7771. if(!IsPlayerConnected(giveplayerid)) {
  7772. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  7773. SendClientMessage(playerid, COLOR_ERROR, string);
  7774. return 1;
  7775. }
  7776. new oname[24];
  7777. new pname[24];
  7778. GetPlayerName(playerid,oname, 24);
  7779. GetPlayerName(giveplayerid, pname, 24);
  7780.  
  7781. if(!IsNumeric(tmp)) {
  7782. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /untie (id) ID Must be a number");
  7783. return 1;
  7784. }
  7785. if(isKidnapped[giveplayerid] == 0) {
  7786. format(string, sizeof(string), "%s(%d) is not tied up",pname, giveplayerid);
  7787. SendClientMessage(playerid, COLOR_ERROR, string);
  7788. return 1;
  7789. }
  7790. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 2) {
  7791. format(string, sizeof(string), "%s(%d) is not close enough to cannot untie him.",pname, giveplayerid);
  7792. SendClientMessage(playerid, COLOR_ERROR, string);
  7793. return 1;
  7794. }
  7795. format(string, sizeof(string), "%s(%d): Has untied you",oname, playerid);
  7796. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  7797. kidnapTimer[giveplayerid] = 0;
  7798. TogglePlayerControllable(giveplayerid, 1);
  7799. format(string, sizeof(string), "You have untied %s(%d)'s", pname, giveplayerid);
  7800. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  7801. HasKidnapped[playerid] =0;
  7802. isKidnapped[giveplayerid] =0;
  7803. for(new i=0;i<MAX_PLAYERS;i++)
  7804. {
  7805. if(HasKidnapped[i] == 1) {
  7806. format(string, sizeof(string), "%s(%d) has been released ",pname,giveplayerid);
  7807. SendClientMessage(i,COLOR_ROYALBLUE,string);
  7808. HasKidnapped[i]=0;
  7809. }
  7810. }
  7811. return 1;
  7812. }
  7813. //////////////
  7814. if(strcmp(cmdtext, "/robdh", true) == 0)
  7815. {
  7816. if(IsSpawned[playerid] == 0) {
  7817. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7818. return 1;
  7819. }
  7820. if(Jailed[playerid] == 1) {
  7821. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7822. return 1;
  7823. }
  7824. if(!IsPlayerInCheckpoint(playerid)) {
  7825. SendClientMessage(playerid,COLOR_ERROR,"You are not in the drug house checkpoint");
  7826. return 1;
  7827. }
  7828. if(RobbedDrugsRecently[playerid] >= 1) {
  7829. SendClientMessage(playerid,COLOR_ERROR,"Please wait before robbing the Drug house again");
  7830. return 1;
  7831. }
  7832. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  7833. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob the drug house");
  7834. return 1;
  7835. }
  7836. if(robberrank[playerid] <=19) {
  7837. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob any Casino. Type /robskill for more info");
  7838. return 1;
  7839. }
  7840. if(DrugsRobbed == 1) {
  7841. SendClientMessage(playerid,COLOR_ERROR,"The drug house has been robbed recently, Please wait");
  7842. return 1;
  7843. }
  7844. new zrand = random(5000);
  7845. if(zrand >=0 && zrand <=1000) {
  7846. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  7847. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the Drug House has failed");
  7848. RobbedDrugsRecently[playerid] +=90;
  7849. return 1;
  7850. }
  7851. else
  7852. if(zrand >=1001 && zrand <=5000)
  7853. {
  7854. new pname[30];
  7855. GetPlayerName(playerid,pname,30);
  7856. SendClientMessage(playerid,0x00C7FFAA,"You have begun robbing the Drug House");
  7857. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  7858. printf("%s(%d) has started a Drug house robbery",pname,playerid);
  7859. robbingdrugs[playerid] =25;
  7860. RobbedDrugsRecently[playerid]+=160;
  7861. for(new i=0;i<MAX_PLAYERS;i++)
  7862. {
  7863. if(DrugHouseOwner[i] == 1337) {
  7864. new string1[256];
  7865. new string2[256];
  7866. new string3[256];
  7867. format(string1, sizeof(string1), "%s(%d) has begun to rob your drug house", pname,playerid);
  7868. format(string2, sizeof(string2), "You have a few seconds until he finishes you can go up and blast his ass");
  7869. format(string3, sizeof(string3), "Type /selldrughouse (id) to sell the drug house");
  7870. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  7871. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  7872. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  7873. }
  7874. }
  7875. }
  7876. return 1;
  7877. }
  7878. if(strcmp(cmd, "/selldrughouse", true) == 0) {
  7879. if(IsSpawned[playerid] == 0) {
  7880. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7881. return 1;
  7882. }
  7883. if(Jailed[playerid] == 1) {
  7884. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7885. return 1;
  7886. }
  7887. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  7888.  
  7889. if(DrugHouseOwner[playerid] == 0) {
  7890. SendClientMessage(playerid,COLOR_ERROR,"You are not the current owner of the Drug House");
  7891. return 1;
  7892. }
  7893. if(DrugHouseOwner[playerid] == 1337)
  7894. {
  7895. tmp = strtok(cmdtext, idx);
  7896. if(!strlen(tmp)) {
  7897. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrughouse(id)");
  7898. return 1;
  7899. }
  7900. giveplayerid = strval(tmp);
  7901. if(!IsNumeric(tmp)) {
  7902. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrughouse (id) ID Must be a number");
  7903. return 1;
  7904. }
  7905. if(!IsPlayerConnected(giveplayerid)) {
  7906. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  7907. SendClientMessage(playerid, COLOR_ERROR, string);
  7908. return 1;
  7909. }
  7910. if(strval(tmp) == playerid) {
  7911. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell your business to yourself");
  7912. return 1;
  7913. }
  7914. if(!udb_Exists(PlayerName(giveplayerid))) {
  7915. SendClientMessage(playerid,COLOR_ERROR,"That player does not have any account on our server. Cannot sell to that player");
  7916. return 1;
  7917. }
  7918. if(!PLAYERLIST_authed[giveplayerid]) {
  7919. SendClientMessage(playerid,COLOR_ERROR,"That player is not logged into their account. Cannot sell to that player");
  7920. return 1;
  7921. }
  7922. new oldowner[30];
  7923. new newowner[30];
  7924. GetPlayerName(playerid,oldowner,30);
  7925. GetPlayerName(giveplayerid,newowner,30);
  7926. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10) {
  7927. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot give that player the official papers",newowner,giveplayerid);
  7928. SendClientMessage(playerid, COLOR_ERROR, string);
  7929. return 1;
  7930. }
  7931. DrugHouseOwner[playerid] =0;
  7932. dUserSetINT(PlayerName(playerid)).("DrugHouseOwner",DrugHouseOwner[playerid]);
  7933. DrugHouseOwner[giveplayerid] =1337;
  7934. dUserSetINT(PlayerName(giveplayerid)).("DrugHouseOwner",DrugHouseOwner[giveplayerid]);
  7935. //HasDrugHouseKeys[playerid] =0;
  7936. //HasDrugHouseKeys[playerid]=dUserINT(PlayerName(playerid)).("HasDrugHouseKeys");
  7937. //HasDrugHouseKeys[giveplayerid] =1;
  7938. dUserSetINT(PlayerName(giveplayerid)).("DrugHouseOwner",DrugHouseOwner[giveplayerid]);
  7939. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drug House Business Sold_|");
  7940. format(string, sizeof(string), "You have sold the Drug House to %s(%d) - You are no longer the owner",newowner,giveplayerid);
  7941. SendClientMessage(playerid,0x00C7FFAA, string);
  7942. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Drug House Business Purchased_|");
  7943. format(string, sizeof(string), "You have purchased the Drug house business from %s(%d) | Use /selldrughouse (id) to sell the business",oldowner,playerid);
  7944. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  7945. SendClientMessage(giveplayerid,0x00C7FFAA,"If a player buys drugs from the Drug House, you will get the full amount in your pocket");
  7946. SendClientMessage(giveplayerid,0x00C7FFAA,"You will only be paid if you are online and logged into your account at the time of the sale");
  7947. format(string, sizeof(string), "Drug house owner %s(%d) has sold the business to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  7948. SendClientMessageToAll(0x00C7FFAA, string);
  7949. printf("**(Auto Bahn Sold)** %s(%d) has sold the Drug house to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  7950. }
  7951. return 1;
  7952. }
  7953. /////////////////
  7954.  
  7955. if(strcmp(cmd,"/grabdrugs",true)==0)
  7956. {
  7957. if(IsSpawned[playerid] == 0) {
  7958. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  7959. return 1;
  7960. }
  7961. if(Jailed[playerid] == 1) {
  7962. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  7963. return 1;
  7964. }
  7965. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  7966. if(DrugHouseOwner[playerid] == 0) {
  7967. SendClientMessage(playerid,COLOR_ERROR,"You are not the current owner of the Drug House");
  7968. return 1;
  7969. }
  7970. if(!IsPlayerInCheckpoint(playerid)) {
  7971. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint at the LV Drug House to buy drugs or call a dealer");
  7972. return 1;
  7973. }
  7974. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 26)
  7975. {
  7976. new buyername[24];
  7977. GetPlayerName(playerid,buyername, 24);
  7978. new d_nr[256];
  7979. d_nr = strtok(cmdtext, idx);
  7980. if(!strlen(d_nr)) {
  7981. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /grabdrugs 1-5");
  7982. return 1;
  7983. }
  7984. if(strcmp(d_nr,"1",true) == 0)
  7985. {
  7986. if(drugs <=9) {
  7987. SendClientMessage(playerid,COLOR_ERROR,"Your drug house hasnt got 10 grams of drugs");
  7988. SendClientMessage(playerid,COLOR_ERROR,"Use /orderdrugs to call your supplier");
  7989. return 1;
  7990. }
  7991. PlayerDrugs[playerid] += 10;
  7992. drugs -=10;
  7993. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Taken_|");
  7994. SendClientMessage(playerid, 0x00C7FFAA, "You have taken 10 grams of drugs from your LV Drug House");
  7995. SendClientMessage(playerid, 0x00C7FFAA, "Use /takedrugs (grams) to use drugs. Your health will refill while on drugs");
  7996. }
  7997. else if(strcmp(d_nr,"2",true) == 0)
  7998. {
  7999. if(drugs <=99) {
  8000. SendClientMessage(playerid,COLOR_ERROR,"Your drug house hasnt got 100 grams of drugs");
  8001. SendClientMessage(playerid,COLOR_ERROR,"Use /orderdrugs to call your supplier");
  8002. return 1;
  8003. }
  8004.  
  8005. PlayerDrugs[playerid] += 100;
  8006. drugs -=100;
  8007. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Taken_|");
  8008. SendClientMessage(playerid, 0x00C7FFAA, "You have taken 100 grams of drugs from your LV Drug House");
  8009. SendClientMessage(playerid, 0x00C7FFAA, "Use /takedrugs (grams) to use drugs. Your health will refill while on drugs");
  8010. }
  8011. else if(strcmp(d_nr,"3",true) == 0)
  8012. {
  8013. if(drugs <=499) {
  8014. SendClientMessage(playerid,COLOR_ERROR,"Your drug house hasnt got 500 grams of drugs");
  8015. SendClientMessage(playerid,COLOR_ERROR,"Use /orderdrugs to call your supplier");
  8016. return 1;
  8017. }
  8018. PlayerDrugs[playerid] += 500;
  8019. drugs -=500;
  8020. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Taken_|");
  8021. SendClientMessage(playerid, 0x00C7FFAA, "You have taken 500 grams of drugs from your LV Drug House");
  8022. SendClientMessage(playerid, 0x00C7FFAA, "If you sell this drugs for $250 / gram you will make a $25k profit");
  8023.  
  8024. }
  8025. else if(strcmp(d_nr,"4",true) == 0)
  8026. {
  8027. if(drugs <=999) {
  8028. SendClientMessage(playerid,COLOR_ERROR,"Your drug house hasnt got 1000 grams of drugs");
  8029. SendClientMessage(playerid,COLOR_ERROR,"Use /orderdrugs to call your supplier");
  8030. return 1;
  8031. }
  8032. PlayerDrugs[playerid] += 1000;
  8033. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Taken_|");
  8034. SendClientMessage(playerid, 0x00C7FFAA, "You have taken 1000 grams of drugs from your LV Drug House");
  8035. SendClientMessage(playerid, 0x00C7FFAA, "If you sell this drugs for $250 / gram you will make a $100k profit");
  8036. }
  8037. else if(strcmp(d_nr,"5",true) == 0)
  8038. {
  8039. if(HasDrugBag[playerid] == 1) {
  8040. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bag Purchase Failed_|");
  8041. SendClientMessage(playerid, COLOR_ERROR, "You already have a DrugBag");
  8042. return 1;
  8043. }
  8044. HasDrugBag[playerid] =1;
  8045. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bag taken_|");
  8046. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a DrugBag from your LV Drug House");
  8047. SendClientMessage(playerid, 0x00C7FFAA, "If the cops search you while you have a DrugBag they wont find your drugs");
  8048.  
  8049. }
  8050. else
  8051. {
  8052. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /grabdrugs 1-5");
  8053. return 1;
  8054. }
  8055.  
  8056. }
  8057. return 1;
  8058. }
  8059. if(strcmp(cmd,"/orderdrugs",true)==0)
  8060. {
  8061. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  8062. if(DrugHouseOwner[playerid] != 1337) {
  8063. SendClientMessage(playerid,COLOR_ERROR,"Only the owner of the drug house can call the supplier");
  8064. return 1;
  8065. }
  8066. if(IsSpawned[playerid] == 0) {
  8067. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  8068. return 1;
  8069. }
  8070. if(Jailed[playerid] == 1) {
  8071. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  8072. return 1;
  8073. }
  8074. if(!IsPlayerInCheckpoint(playerid)) {
  8075. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint at the LV Drug House to buy drugs or call a dealer");
  8076. return 1;
  8077. }
  8078. new buyername[24];
  8079. GetPlayerName(playerid,buyername, 24);
  8080. new x_nr[256];
  8081. x_nr = strtok(cmdtext, idx);
  8082. if(!strlen(x_nr)) {
  8083. SendClientMessage(playerid, COLOR_ROYALBLUE, "Yo man whats up?");
  8084. SendClientMessage(playerid, COLOR_ROYALBLUE, "I got the usual list for my favorite customer");
  8085. SendClientMessage(playerid, COLOR_ROYALBLUE, "1) 1000 grams for $8000");
  8086. SendClientMessage(playerid, COLOR_ROYALBLUE, "2) 5000 grams for $15000");
  8087. SendClientMessage(playerid, COLOR_ROYALBLUE, "3) 10000 grams for $25000");
  8088. SendClientMessage(playerid, COLOR_ROYALBLUE, "4) 20000 grams for $50000");
  8089. SendClientMessage(playerid, COLOR_ROYALBLUE, "5) 50000 grams for $150000");
  8090. SendClientMessage(playerid, COLOR_ROYALBLUE, "6) 100000 grams for $200000");
  8091. return 1;
  8092. }
  8093. if(strcmp(x_nr,"1",true) == 0)
  8094. {
  8095. if(GetPlayerMoney(playerid) <= 7999) {
  8096. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 8k,dont waste my time bitch");
  8097. return 1;
  8098. }
  8099. drugs += 1000;
  8100. GivePlayerMoney(playerid,-8000);
  8101. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8102. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8103. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8104. oscore = GetPlayerScore(playerid);
  8105. SetPlayerScore(playerid, oscore +1);
  8106. }
  8107. else if(strcmp(x_nr,"2",true) == 0)
  8108. {
  8109. if(GetPlayerMoney(playerid) <= 14999) {
  8110. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 15k,dont waste my time bitch");
  8111. return 1;
  8112. }
  8113. drugs += 5000;
  8114. GivePlayerMoney(playerid,-15000);
  8115. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8116. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8117. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8118. oscore = GetPlayerScore(playerid);
  8119. SetPlayerScore(playerid, oscore +1);
  8120. }
  8121. else if(strcmp(x_nr,"3",true) == 0)
  8122. {
  8123. if(GetPlayerMoney(playerid) <= 24999) {
  8124. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 25k,dont waste my time bitch");
  8125. return 1;
  8126. }
  8127. drugs += 10000;
  8128. GivePlayerMoney(playerid,-25000);
  8129. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8130. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8131. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8132. oscore = GetPlayerScore(playerid);
  8133. SetPlayerScore(playerid, oscore +1);
  8134. }
  8135. else if(strcmp(x_nr,"4",true) == 0)
  8136. {
  8137. if(GetPlayerMoney(playerid) <= 49999) {
  8138. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 50k,dont waste my time bitch");
  8139. return 1;
  8140. }
  8141. drugs += 20000;
  8142. GivePlayerMoney(playerid,-50000);
  8143. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8144. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8145. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8146. oscore = GetPlayerScore(playerid);
  8147. SetPlayerScore(playerid, oscore +1);
  8148. }
  8149. else if(strcmp(x_nr,"5",true) == 0)
  8150. {
  8151. if(GetPlayerMoney(playerid) <= 149999) {
  8152. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 150k,dont waste my time bitch");
  8153. return 1;
  8154. }
  8155. drugs += 50000;
  8156. GivePlayerMoney(playerid,-150000);
  8157. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8158. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8159. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8160. oscore = GetPlayerScore(playerid);
  8161. SetPlayerScore(playerid, oscore +1);
  8162. }
  8163. else if(strcmp(x_nr,"6",true) == 0)
  8164. {
  8165. if(GetPlayerMoney(playerid) <= 199999) {
  8166. SendClientMessage(playerid, COLOR_ERROR, "Man fuck you we both know you dont got 200k,dont waste my time bitch");
  8167. return 1;
  8168. }
  8169. drugs += 100000;
  8170. GivePlayerMoney(playerid,-200000);
  8171. SendClientMessage(playerid, 0xA9A9A9AA, "|_Now we talking man_|");
  8172. SendClientMessage(playerid, 0x00C7FFAA, "We should catch up soon");
  8173. SendClientMessage(playerid, 0x00C7FFAA, "I've sent out one of my bitches with the drugs,shit she probely there now");
  8174. oscore = GetPlayerScore(playerid);
  8175. SetPlayerScore(playerid, oscore +1);
  8176. }
  8177. else
  8178. {
  8179. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /orderdrugs 1-6");
  8180. return 1;
  8181. }
  8182. return 1;
  8183. }
  8184. //////////////////////////////
  8185. if(strcmp(cmdtext, "/drugstock", true) == 0)
  8186. {
  8187. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  8188. if(DrugHouseOwner[playerid] != 1337) {
  8189. SendClientMessage(playerid,COLOR_ERROR,"Only the owner of the drug house can call the supplier");
  8190. return 1;
  8191. }
  8192. if(!IsPlayerInCheckpoint(playerid)) {
  8193. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint at the LV Drug House to buy drugs or call a dealer");
  8194. return 1;
  8195. }
  8196. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 26)
  8197. {
  8198. SendClientMessage(playerid,0x808080AA,"|** Drug House Stock");
  8199. format(string, sizeof(string), "|Current Total: %d grams of drugs in the Drug house",drugs);
  8200. SendClientMessage(playerid,0x808080AA,string);
  8201. }
  8202. return 1;
  8203. }
  8204. if(strcmp(cmdtext, "/drugownercmds", true) == 0)
  8205. {
  8206. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  8207. if(DrugHouseOwner[playerid] != 1337) {
  8208. SendClientMessage(playerid,COLOR_ERROR,"Only the owner of the drug house can use this command");
  8209. return 1;
  8210. }
  8211. SendClientMessage(playerid,COLOR_ROYALBLUE,"/selldrughouse (id) - Sells the drug house to a player");
  8212. SendClientMessage(playerid,COLOR_ROYALBLUE,"/takedrugs - Takes drugs from your drug house for free");
  8213. SendClientMessage(playerid,COLOR_ROYALBLUE,"/givekeys (id) - Gives a player keys to your drug house");
  8214. SendClientMessage(playerid,COLOR_ROYALBLUE,"/enter - Enter's your drug house");
  8215. SendClientMessage(playerid,COLOR_ROYALBLUE,"/drugstock - Check how many drug's the drug house has in stock");
  8216. SendClientMessage(playerid,COLOR_ROYALBLUE,"/orderdrugs - Calls your supplier to re-fill your stock");
  8217. return 1;
  8218. }
  8219. ///////////////////////
  8220. if(strcmp(cmd,"/buydrugs",true)==0)
  8221. {
  8222. if(IsSpawned[playerid] == 0) {
  8223. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  8224. return 1;
  8225. }
  8226. if(Jailed[playerid] == 1) {
  8227. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  8228. return 1;
  8229. }
  8230. if(!IsPlayerInCheckpoint(playerid)) {
  8231. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint at the LV Drug House to buy drugs or call a dealer");
  8232. return 1;
  8233. }
  8234. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  8235. if(DrugHouseOwner[playerid] == 1337) {
  8236. SendClientMessage(playerid,COLOR_ERROR,"You are the owner of the Drug House use /grabdrugs");
  8237. return 1;
  8238. }
  8239.  
  8240. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 26)
  8241. {
  8242. new buyername[24];
  8243. GetPlayerName(playerid,buyername, 24);
  8244. new x_nr[256];
  8245. x_nr = strtok(cmdtext, idx);
  8246. if(!strlen(x_nr)) {
  8247. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buydrugs 1-7");
  8248. return 1;
  8249. }
  8250. if(strcmp(x_nr,"1",true) == 0)
  8251. {
  8252. if(drugs <=9) {
  8253. SendClientMessage(playerid,COLOR_ERROR,"The drug house hasnt got 10 grams of drugs.");
  8254. SendClientMessage(playerid,COLOR_ERROR,"You will need to wait until the Drug House owner re-stocks");
  8255. return 1;
  8256. }
  8257. if(GetPlayerMoney(playerid) <= 1999) {
  8258. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8259. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy 10 grams of drugs ($2000)");
  8260. return 1;
  8261. }
  8262.  
  8263. if(gTeam[playerid] != TEAM_DRGDEL && PlayerDrugs[playerid] >=241) {
  8264. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8265. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 10 more grams of drugs (max 250 grams)");
  8266. return 1;
  8267. }
  8268.  
  8269. if(gTeam[playerid] == TEAM_DRGDEL && PlayerDrugs[playerid] >=991) {
  8270. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8271. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 10 more grams (max 1000 grams)");
  8272. return 1;
  8273. }
  8274.  
  8275. PlayerDrugs[playerid] += 10;
  8276. GivePlayerMoney(playerid,-2000);
  8277. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchased_|");
  8278. SendClientMessage(playerid, 0x00C7FFAA, "You have bought 10 grams of drugs from LV Drug House for $2000");
  8279. SendClientMessage(playerid, 0x00C7FFAA, "Use /takedrugs (grams) to use drugs. Your health will refill while on drugs");
  8280. oscore = GetPlayerScore(playerid);
  8281. SetPlayerScore(playerid, oscore +1);
  8282. drugs -=10;
  8283. for(new i=0;i<MAX_PLAYERS;i++)
  8284. {
  8285. if(IsPlayerConnected(i))
  8286. {
  8287. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  8288. if(DrugHouseOwner[i] == 1337)
  8289. {
  8290. new DrugOwner[24];
  8291. GetPlayerName(i,DrugOwner,24);
  8292. SendClientMessage(i, 0xA9A9A9AA, "|_Drug's Sold_|");
  8293. format(string, sizeof(string), "%s(%d) has bought 10 grams of drugs from your Drug house you recieve $2000",buyername,playerid);
  8294. SendClientMessage(i, 0x00C7FFAA, string);
  8295. SendClientMessage(i, 0x00C7FFAA, "You can sell the Drug house to a player using /selldrughouse (id)");
  8296. GivePlayerMoney(i,2000);
  8297. printf("**(DRUG CASH)** Drug House owner %s(%d) has received $2000 from a drug sale",DrugOwner,i);
  8298. }
  8299. }
  8300. }
  8301. }
  8302. else if(strcmp(x_nr,"2",true) == 0)
  8303. {
  8304. if(drugs <=99) {
  8305. SendClientMessage(playerid,COLOR_ERROR,"The drug house hasnt got 100 grams of drugs.");
  8306. SendClientMessage(playerid,COLOR_ERROR,"You will need to wait until the Drug House owner re-stocks");
  8307. return 1;
  8308. }
  8309. if(GetPlayerMoney(playerid) <= 19999) {
  8310. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8311. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy 100 grams of drugs ($20000)");
  8312. return 1;
  8313. }
  8314.  
  8315. if(gTeam[playerid] != TEAM_DRGDEL && PlayerDrugs[playerid] >=151) {
  8316. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8317. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 100 more grams of drugs (max 250 grams)");
  8318. return 1;
  8319. }
  8320.  
  8321. if(gTeam[playerid] == TEAM_DRGDEL && PlayerDrugs[playerid] >=901) {
  8322. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8323. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 100 more grams (max 1000 grams)");
  8324. return 1;
  8325. }
  8326.  
  8327. PlayerDrugs[playerid] += 100;
  8328. drugs -=100;
  8329. GivePlayerMoney(playerid,-20000);
  8330. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchased_|");
  8331. SendClientMessage(playerid, 0x00C7FFAA, "You have bought 100 grams of drugs from LV Drug House for $20000");
  8332. SendClientMessage(playerid, 0x00C7FFAA, "Use /takedrugs (grams) to use drugs. Your health will refill while on drugs");
  8333. oscore = GetPlayerScore(playerid);
  8334. SetPlayerScore(playerid, oscore +1);
  8335. for(new i=0;i<MAX_PLAYERS;i++)
  8336. {
  8337. if(IsPlayerConnected(i))
  8338. {
  8339. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  8340. if(DrugHouseOwner[i] == 1337)
  8341. {
  8342. new DrugOwner[24];
  8343. GetPlayerName(i,DrugOwner,24);
  8344. SendClientMessage(i, 0xA9A9A9AA, "|_Drug's Sold_|");
  8345. format(string, sizeof(string), "%s(%d) has bought 100 grams of drugs from your Drug house you recieve $20000",buyername,playerid);
  8346. SendClientMessage(i, 0x00C7FFAA, string);
  8347. SendClientMessage(i, 0x00C7FFAA, "You can sell the Drug house to a player using /selldrughouse (id)");
  8348. GivePlayerMoney(i,20000);
  8349. printf("**(DRUG CASH)** Drug House owner %s(%d) has received $20000 from a drug sale",DrugOwner,i);
  8350. }
  8351. }
  8352. }
  8353. }
  8354. else if(strcmp(x_nr,"3",true) == 0)
  8355. {
  8356. if(gTeam[playerid] != TEAM_DRGDEL) {
  8357. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8358. SendClientMessage(playerid, COLOR_ERROR, "You have to be a Drug Dealer to buy 500 grams");
  8359. return 1;
  8360. }
  8361. if(drugs <=499) {
  8362. SendClientMessage(playerid,COLOR_ERROR,"The drug house hasnt got 500 grams of drugs.");
  8363. SendClientMessage(playerid,COLOR_ERROR,"You will need to wait until the Drug House owner re-stocks");
  8364. return 1;
  8365. }
  8366. if(gTeam[playerid] == TEAM_DRGDEL && GetPlayerMoney(playerid) <= 99999) {
  8367. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8368. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy 500 grams of drugs ($100000)");
  8369. return 1;
  8370. }
  8371.  
  8372. if(gTeam[playerid] == TEAM_DRGDEL && PlayerDrugs[playerid] >=501) {
  8373. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8374. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 500 more grams (max 1000 grams)");
  8375. return 1;
  8376. }
  8377.  
  8378. PlayerDrugs[playerid] += 500;
  8379. drugs -=500;
  8380. GivePlayerMoney(playerid,-100000);
  8381. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchased_|");
  8382. SendClientMessage(playerid, 0x00C7FFAA, "You have bought 500 grams of drugs from LV Drug House for $100000");
  8383. SendClientMessage(playerid, 0x00C7FFAA, "If you sell this drugs for $250 / gram you will make a $25k profit");
  8384. oscore = GetPlayerScore(playerid);
  8385. SetPlayerScore(playerid, oscore +1);
  8386. for(new i=0;i<MAX_PLAYERS;i++)
  8387. {
  8388. if(IsPlayerConnected(i))
  8389. {
  8390. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  8391. if(DrugHouseOwner[i] == 1337)
  8392. {
  8393. new DrugOwner[24];
  8394. GetPlayerName(i,DrugOwner,24);
  8395. SendClientMessage(i, 0xA9A9A9AA, "|_Drug's Sold_|");
  8396. format(string, sizeof(string), "%s(%d) has bought 500 grams of drugs from your Drug house you recieve $100000",buyername,playerid);
  8397. SendClientMessage(i, 0x00C7FFAA, string);
  8398. SendClientMessage(i, 0x00C7FFAA, "You can sell the Drug house to a player using /selldrughouse (id)");
  8399. GivePlayerMoney(i,100000);
  8400. printf("**(DRUG CASH)** Drug House owner %s(%d) has received $100000 from a drug sale",DrugOwner,i);
  8401. }
  8402. }
  8403. }
  8404. }
  8405. else if(strcmp(x_nr,"4",true) == 0)
  8406. {
  8407. if(gTeam[playerid] != TEAM_DRGDEL) {
  8408. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8409. SendClientMessage(playerid, COLOR_ERROR, "You have to be a Drug Dealer to buy 1000 grams");
  8410. return 1;
  8411. }
  8412. if(drugs <=999) {
  8413. SendClientMessage(playerid,COLOR_ERROR,"The drug house hasnt got 1000 grams of drugs.");
  8414. SendClientMessage(playerid,COLOR_ERROR,"You will need to wait until the Drug House owner re-stocks");
  8415. return 1;
  8416. }
  8417. if(gTeam[playerid] == TEAM_DRGDEL && GetPlayerMoney(playerid) <= 149999) {
  8418. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8419. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy 1000 grams of drugs ($150000)");
  8420. return 1;
  8421. }
  8422.  
  8423. if(gTeam[playerid] == TEAM_DRGDEL && PlayerDrugs[playerid] >=1) {
  8424. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchase Failed_|");
  8425. SendClientMessage(playerid, COLOR_ERROR, "You cannot carry 1000 more grams (max 1000 grams)");
  8426. return 1;
  8427. }
  8428.  
  8429. PlayerDrugs[playerid] += 1000;
  8430. drugs -=500;
  8431. GivePlayerMoney(playerid,-150000);
  8432. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Purchased_|");
  8433. SendClientMessage(playerid, 0x00C7FFAA, "You have bought 1000 grams of drugs from LV Drug House for $150000");
  8434. SendClientMessage(playerid, 0x00C7FFAA, "If you sell this drugs for $250 / gram you will make a $100k profit");
  8435. oscore = GetPlayerScore(playerid);
  8436. SetPlayerScore(playerid, oscore +1);
  8437. for(new i=0;i<MAX_PLAYERS;i++)
  8438. {
  8439. if(IsPlayerConnected(i))
  8440. {
  8441. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  8442. if(DrugHouseOwner[i] == 1337)
  8443. {
  8444. new DrugOwner[24];
  8445. GetPlayerName(i,DrugOwner,24);
  8446. SendClientMessage(i, 0xA9A9A9AA, "|_Drug's Sold_|");
  8447. format(string, sizeof(string), "%s(%d) has bought 1000 grams of drugs from your Drug house you recieve $150000",buyername,playerid);
  8448. SendClientMessage(i, 0x00C7FFAA, string);
  8449. SendClientMessage(i, 0x00C7FFAA, "You can sell the Drug house to a player using /selldrughouse (id)");
  8450. GivePlayerMoney(i,150000);
  8451. printf("**(DRUG CASH)** Drug House owner %s(%d) has received $150000 from a drug sale",DrugOwner,i);
  8452. }
  8453. }
  8454. }
  8455. }
  8456. else if(strcmp(x_nr,"5",true) == 0)
  8457. {
  8458. if(HasDrugBag[playerid] == 1) {
  8459. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bag Purchase Failed_|");
  8460. SendClientMessage(playerid, COLOR_ERROR, "You already have a DrugBag");
  8461. return 1;
  8462. }
  8463. if(GetPlayerMoney(playerid) <= 999) {
  8464. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bag Purchase Failed_|");
  8465. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a DrugBag ($1000)");
  8466. return 1;
  8467. }
  8468.  
  8469. HasDrugBag[playerid] =1;
  8470. GivePlayerMoney(playerid,-1000);
  8471. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bag Purchased_|");
  8472. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a DrugBag LV Drug House for $1000");
  8473. SendClientMessage(playerid, 0x00C7FFAA, "If the cops search you while you have a DrugBag they wont find your drugs");
  8474. oscore = GetPlayerScore(playerid);
  8475. SetPlayerScore(playerid, oscore +1);
  8476. for(new i=0;i<MAX_PLAYERS;i++)
  8477. {
  8478. if(IsPlayerConnected(i))
  8479. {
  8480. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  8481. if(DrugHouseOwner[i] == 1337)
  8482. {
  8483. new DrugOwner[24];
  8484. GetPlayerName(i,DrugOwner,24);
  8485. SendClientMessage(i, 0xA9A9A9AA, "|_Drug's Sold_|");
  8486. format(string, sizeof(string), "%s(%d) has bought a drug bag from your Drug house you recieve $1000",buyername,playerid);
  8487. SendClientMessage(i, 0x00C7FFAA, string);
  8488. SendClientMessage(i, 0x00C7FFAA, "You can sell the Drug house to a player using /selldrughouse (id)");
  8489. GivePlayerMoney(i,1000);
  8490. printf("**(DRUG CASH)** Drug House owner %s(%d) has received $1000 from a drug sale",DrugOwner,i);
  8491. }
  8492. }
  8493. }
  8494. }
  8495. }
  8496. return 1;
  8497. }
  8498. if(strcmp(cmd,"/enter",true)==0)
  8499. {
  8500. if(IsSpawned[playerid] == 0) {
  8501. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  8502. return 1;
  8503. }
  8504. if(Jailed[playerid] == 1) {
  8505. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  8506. return 1;
  8507. }
  8508. if(!IsPlayerInCheckpoint(playerid)) {
  8509. SendClientMessage(playerid,COLOR_ERROR,"You are not in the house checkpoint");
  8510. return 1;
  8511. }
  8512. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 26) {
  8513. SendClientMessage(playerid,COLOR_ERROR,"You are not in the house checkpoint");
  8514. return 1;
  8515. }
  8516. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 26)
  8517. {
  8518. HasDrugHouseKeys[playerid]=dUserINT(PlayerName(playerid)).("HasDrugHouseKeys");
  8519. if(HasDrugHouseKeys[playerid] != 1) {
  8520. HasDrugHouseKeys[playerid]=dUserINT(PlayerName(playerid)).("HasDrugHouseKeys");
  8521. SendClientMessage(playerid,COLOR_ERROR,"You do not have the keys for the drug house");
  8522. return 1;
  8523. }
  8524. dUserSetINT(PlayerName(playerid)).("HasDrugHouseKeys",HasDrugHouseKeys[playerid]);
  8525. if(HasDrugHouseKeys[playerid] == 1) {
  8526. dUserSetINT(PlayerName(playerid)).("HasDrugHouseKeys",HasDrugHouseKeys[playerid]);
  8527. SetPlayerInterior(playerid,1);
  8528. SetPlayerPos(playerid,2212.2668,-1075.9944,1050.4844);
  8529. SetPlayerFacingAngle(playerid,88.3286);
  8530. SetCameraBehindPlayer(playerid);
  8531. SendClientMessage(playerid,COLOR_ROYALBLUE,"Welcome to the Drug House");
  8532. }
  8533. }
  8534. return 1;
  8535. }
  8536.  
  8537.  
  8538.  
  8539.  
  8540.  
  8541.  
  8542.  
  8543.  
  8544.  
  8545.  
  8546.  
  8547.  
  8548.  
  8549.  
  8550.  
  8551. /*---------------------------------------------------------------
  8552. SERVER ADMIN COMMANDS
  8553. \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  8554. ---------------------------------------------------------------*/
  8555.  
  8556.  
  8557. if (strcmp("/adcmds", cmdtext, true, 10) == 0) // Shows Admin Command List
  8558. {
  8559. if(PlayerAdminLevel[playerid] == 1337)
  8560. {
  8561. SendClientMessage(playerid,0xA9A9A9AA, "|_Server Admin Commands_|");
  8562. SendClientMessage(playerid,0xFF7F50AA,"/adhq [Go To Admin HQ] /adon [MiniGun and Invinsable] /adoff [Turn Off]");
  8563. SendClientMessage(playerid,0xFF7F50AA,"/adan (text) [Announce] /adfr (id) [Freeze] /adunfr (id) [Unfreeze]");
  8564. SendClientMessage(playerid,0xFF7F50AA,"/adjail (id) [Jail] /adunjail (id) [Unjail] /adkick (id) [Kick] ");
  8565. SendClientMessage(playerid,0xFF7F50AA,"/adban (id) [Ban] /adkill (id) [Kill Player] /goto (id) [Goto Player]");
  8566. SendClientMessage(playerid,0xFF7F50AA,"/bring (id) [Bring Player] /specplayer (id) [Spectate Player] /specoff");
  8567. SendClientMessage(playerid,0xFF7F50AA,"/admsg (msg) [Talk To Admins] /adblow (id) [Blow a players car up]");
  8568. SendClientMessage(playerid,0xFF7F50AA,"/adfrall [Freeze All Players] /adunfrall [Unfreeze All Players] ");
  8569. SendClientMessage(playerid,0xFF7F50AA,"/adtimeban (id) (days) [Timeban's a player.] /adwarn (id) (reason)");
  8570. SendClientMessage(playerid,0xFF7F50AA,"/adweb [Advertise website.] /adderbyopen [Open Derby] /adderbyclose [Close Derby]");
  8571. SendClientMessage(playerid,0xFF7F50AA,"/adreg [id] /adautobahn -Teleport to Autobahn /adnoob Warns a player for being a noob");
  8572. SendClientMessage(playerid,0xFF7F50AA,"/addmer warns a player for DM /adautobahn Teles to AB /adgc (ID) (Amount)");
  8573. }
  8574. else
  8575. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8576. return 1;
  8577. }
  8578.  
  8579.  
  8580.  
  8581.  
  8582. if (strcmp("/adpos", cmdtext, true, 10) == 0)
  8583. {
  8584. if(PlayerAdminLevel[playerid] == 1337)
  8585. {
  8586. new string1[256];
  8587. new Float:X,Float:Y,Float:Z;
  8588. GetPlayerPos(playerid,X,Y,Z);
  8589. format(string1,sizeof(string1),"Position = X: %.0f , Y: %.0f , Z: %.0f",X,Y,Z);
  8590. SendClientMessage(playerid,COLOR_GREEN,string1);
  8591. return 1;
  8592. }
  8593. }
  8594.  
  8595. if (!strcmp("/adhippie", cmdtext, true))
  8596. {
  8597. if(PlayerAdminLevel[playerid] == 1337)
  8598. {
  8599. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 483)
  8600. {
  8601. SendClientMessage(playerid, COLOR_GREEN, "** Mothership!");
  8602. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
  8603. }
  8604. }
  8605. return 1;
  8606. }
  8607.  
  8608. if(strcmp(cmd, "/adderbyopen", true) == 0) // Open BlackField Stadium
  8609. if(PlayerAdminLevel[playerid] == 1337)
  8610. {
  8611. if(DerbyOpen == 1) {
  8612. SendClientMessage(playerid, COLOR_ERROR, "The Derby checkpoint is already open to players");
  8613. }
  8614. else
  8615. if(DerbyOpen == 0) {
  8616. new pname[30];
  8617. new sstring[256];
  8618. GetPlayerName(playerid, pname, 30);
  8619. format(sstring, sizeof(sstring), "**(ADMIN OPEN)** The LV Stadium has been opened by Admin: %s(%i)",pname,playerid);
  8620. SendClientMessageToAll(0xFF7F50AA, sstring);
  8621. SendClientMessageToAll(0xFF7F50AA, "Destruction Derby will begin soon - Do ya want to enter?");
  8622. DerbyOpen =1;
  8623. return 1;
  8624. }
  8625. else
  8626. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8627. return 1;
  8628. }
  8629. if(strcmp(cmd, "/adderbyclose", true) == 0) // Close Stadium
  8630. if(PlayerAdminLevel[playerid] == 1337)
  8631. {
  8632. if(DerbyOpen == 0) {
  8633. SendClientMessage(playerid, COLOR_ERROR, "The Derby checkpoint is already closed");
  8634. }
  8635. else
  8636. if(DerbyOpen == 1) {
  8637. new pname[30];
  8638. new str[256];
  8639. GetPlayerName(playerid, pname, 30);
  8640. format(str, sizeof(str), "**(ADMIN CLOSE)** The LV Stadium has been closed by Admin: %s(%d)", pname,playerid);
  8641. SendClientMessageToAll(0xFF7F50AA, str);
  8642. DerbyOpen =0;
  8643. return 1;
  8644. }
  8645. else
  8646. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8647. return 1;
  8648. }
  8649. if (strcmp("/adhq", cmdtext, true, 10) == 0) // Teleports Admins To Admin HQ
  8650. {
  8651. if(PlayerAdminLevel[playerid] == 1337)
  8652. {
  8653. SetPlayerInterior(playerid,0);
  8654. SetPlayerFacingAngle(playerid,88.7433);
  8655. SetPlayerPos(playerid,2082.8745,1272.4794,10.8203);
  8656. SetCameraBehindPlayer(playerid);
  8657. }
  8658. else
  8659. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8660. return 1;
  8661. }
  8662.  
  8663. if (strcmp("/adon", cmdtext, true, 10) == 0) // Gives Admins Alot Of Health & Armor And Minigun (Saves Weaps)
  8664. {
  8665. if(PlayerAdminLevel[playerid] == 1337)
  8666. {
  8667. if(InAdminMode[playerid] == 1337) {
  8668. SendClientMessage(playerid,0xFF7F50AA,"You are already in Admin Mode");
  8669. return 1;
  8670. }
  8671.  
  8672. for(new w=0;w<13;w++)
  8673. {
  8674. GetPlayerWeaponData(playerid,w,PlayerWeapon[playerid][w],PlayerAmmo[playerid][w]);
  8675. }
  8676.  
  8677. ResetPlayerWeapons(playerid);
  8678. SetPlayerHealth(playerid,999999);
  8679. GivePlayerWeapon(playerid,38,99999);
  8680. SetPlayerArmour(playerid,999999);
  8681. InAdminMode[playerid] =1337;
  8682. SendClientMessage(playerid,0xFF7F50AA,"(ADMIN MODE ON) You are now in Admin Mode");
  8683. }
  8684. else
  8685. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8686. return 1;
  8687. }
  8688.  
  8689. if (strcmp("/adoff", cmdtext, true, 10) == 0) // Turns Admin Mode Off, Restores Weapons
  8690. {
  8691. if(PlayerAdminLevel[playerid] == 1337)
  8692. {
  8693. if(InAdminMode[playerid] == 0) {
  8694. SendClientMessage(playerid,0xFF7F50AA,"You are not in Admin Mode");
  8695. return 1;
  8696. }
  8697. ResetPlayerWeapons(playerid);
  8698. for(new w=0;w<13;w++)
  8699. {
  8700. GivePlayerWeapon(playerid,PlayerWeapon[playerid][w],PlayerAmmo[playerid][w]);
  8701. }
  8702. SetPlayerHealth(playerid,100);
  8703. SetPlayerArmour(playerid,0);
  8704. InAdminMode[playerid] =0;
  8705. SendClientMessage(playerid,0xFF7F50AA,"(ADMIN MODE OFF) You are no longer in Admin Mode");
  8706. }
  8707. else
  8708. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8709. return 1;
  8710. }
  8711. /*
  8712. if (strcmp("/adjp", cmdtext, true) == 0)
  8713. {
  8714. if(PlayerAdminLevel[playerid] == 1337)
  8715. {
  8716. SetPlayerSpecialAction(playerid, 2);
  8717. return 1;
  8718. }
  8719. }
  8720. else
  8721. {
  8722. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill.");
  8723. return 1;
  8724. }
  8725. */
  8726.  
  8727. if (strcmp("/adan", cmdtext, true, 5) == 0) // Anounces Text Accross All Players Screens
  8728. {
  8729. if(PlayerAdminLevel[playerid] == 1337)
  8730. {
  8731. if(strlen(cmdtext) <= 6) {
  8732. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adan (msg)");
  8733. return 1;
  8734. }
  8735. new output[100];
  8736. strmid(output,cmdtext,5,strlen(cmdtext));
  8737. GameTextForAll(output,4000,0);
  8738. }
  8739. else
  8740. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8741. return 1;
  8742. }
  8743.  
  8744. if (strcmp("/adweb", cmdtext, true, 5) == 0) // Announces Website Address
  8745. {
  8746. if(PlayerAdminLevel[playerid] == 1337)
  8747. {
  8748. format(string, sizeof(string), "Las Venturas Roleplay/Cops/Robbers - Script Version %s",sversion);
  8749. SendClientMessageToAll(COLOR_WHITE, string);
  8750. SendClientMessageToAll(0x87CEEBAA, "This is NOT a deathmatch server. Do not randomly kill players");
  8751. SendClientMessageToAll(0x87CEEBAA, "Visit our website to report bugs/suggestions/complaints etc");
  8752. SendClientMessageToAll(0x87CEEBAA, "There is a full list of commands/rules and other information on our website" );
  8753. SendClientMessageToAll(0x87CEEBAA, "www.lvrcr.com");
  8754. GameTextForAll("~w~www.lvrcr.com", 6000, 0);
  8755. }
  8756. else
  8757. SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  8758.  
  8759. return 1;
  8760. }
  8761.  
  8762. if(strcmp(cmd, "/adspawn", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Forced Player Spawn
  8763. {
  8764. tmp = strtok(cmdtext, idx);
  8765. if(!strlen(tmp)) {
  8766. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adspawn (id)");
  8767. return 1;
  8768. }
  8769. giveplayerid = strval(tmp);
  8770.  
  8771. if(!IsNumeric(tmp)) {
  8772. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adspawn (id) ID Must be a number");
  8773. return 1;
  8774. }
  8775. if(IsSpawned[giveplayerid] == 1) {
  8776. SendClientMessage(playerid, COLOR_ERROR, "That player is already spawned");
  8777. return 1;
  8778. }
  8779. if (IsPlayerConnected(giveplayerid)) {
  8780. new pname[24];
  8781. GetPlayerName(giveplayerid, pname, 24);
  8782. format(string, sizeof(string), "**(ADMIN SPAWN)** %s(%d) Forced Spawn ",pname,giveplayerid);
  8783. SendClientMessageToAll(0xFF7F50AA, string);
  8784. printf("%s", string);
  8785. SpawnPlayer(giveplayerid);
  8786. }
  8787. else {
  8788. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  8789. SendClientMessage(playerid, COLOR_ERROR, string);
  8790. }
  8791. return 1;
  8792. }
  8793.  
  8794. if(strcmp(cmd, "/adslap", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Slap
  8795. {
  8796. tmp = strtok(cmdtext, idx);
  8797. if(!strlen(tmp)) {
  8798. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adslap (id)");
  8799. return 1;
  8800. }
  8801. giveplayerid = strval(tmp);
  8802. if(!IsNumeric(tmp)) {
  8803. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adslap (id) ID Must be a number");
  8804. return 1;
  8805. }
  8806. if(!IsPlayerConnected(giveplayerid)) {
  8807. format(string, sizeof(string), "ID (%d) Is not an active player",giveplayerid);
  8808. SendClientMessage(playerid, COLOR_ERROR, string);
  8809. return 1;
  8810. }
  8811. new pname[24];
  8812. GetPlayerName(giveplayerid, pname, 24);
  8813. printf("(ADMIN SLAP) %s(%d)",pname,giveplayerid);
  8814. SendClientMessage(giveplayerid,0xFF7F50AA,"You have been slapped by Server Admin. Ouch!");
  8815. GameTextForPlayer(giveplayerid,"ADMIN SLAP",5000,4);
  8816. PlayerPlaySound(giveplayerid, 1190, 0.0, 0.0, 0.0);
  8817. format(string, sizeof(string), "%s(%d) has been Admin Slapped",pname,giveplayerid);
  8818. SendClientMessage(playerid,0xFF7F50AA, string);
  8819. return 1;
  8820. }
  8821.  
  8822.  
  8823. if(strcmp(cmd, "/adinfo", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Displays Some Player Info
  8824. {
  8825. tmp = strtok(cmdtext, idx);
  8826. if(!strlen(tmp)) {
  8827. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adinfo (id)");
  8828. return 1;
  8829. }
  8830. giveplayerid = strval(tmp);
  8831. if(!IsNumeric(tmp)) {
  8832. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adinfo (id) ID Must be a number");
  8833. return 1;
  8834. }
  8835. if(!IsPlayerConnected(giveplayerid)) {
  8836. format(string, sizeof(string), "ID (%d) Is not an active player",giveplayerid);
  8837. SendClientMessage(playerid, COLOR_ERROR, string);
  8838. return 1;
  8839. }
  8840. new pname[24];
  8841. new adminname[24];
  8842. new Float:phealth;
  8843. new Float:parmor;
  8844. new playercash = GetPlayerMoney(giveplayerid);
  8845. new wep0,ammo0;
  8846. new ipstring[25];
  8847. new pping;
  8848. pping = GetPlayerPing(playerid);
  8849. GetPlayerIp(giveplayerid,ipstring,255);
  8850. GetPlayerWeaponData(giveplayerid,7,wep0,ammo0);
  8851. GetPlayerName(giveplayerid, pname, 24);
  8852. GetPlayerName(playerid,adminname,24);
  8853. GetPlayerHealth(giveplayerid,phealth);
  8854. GetPlayerArmour(giveplayerid,parmor);
  8855. printf("**(ADMIN INFO)** Server Admin %s(%d) has requested to view the information of %s(%d)",adminname,playerid,pname,giveplayerid);
  8856. format(string, sizeof(string), "**(ADMIN INFO)** Server Admin %s(%d) has requested to view the information of %s(%d)",adminname,playerid,pname,giveplayerid);
  8857. ircSay(EchoConnection, EchoChan,string);
  8858. format(string, sizeof(string), "(ADMIN INFO) %s(%d)",pname,giveplayerid);
  8859. SendClientMessage(playerid,0xFF7F50AA, string);
  8860. format(string, sizeof(string), "ID: %d IP: %s PING: %d",giveplayerid,ipstring,pping);
  8861. SendClientMessage(playerid,COLOR_YELLOW, string);
  8862. format(string, sizeof(string), "Health: %f Armour: %f",phealth,parmor);
  8863. SendClientMessage(playerid,COLOR_YELLOW, string);
  8864. if(playerondrugs[giveplayerid] >= 1) {
  8865. SendClientMessage(playerid,COLOR_YELLOW,"OnDrugs: Yes");
  8866. }
  8867. if(playerondrugs[giveplayerid] == 0) {
  8868. SendClientMessage(playerid,COLOR_YELLOW,"On Drugs: No");
  8869. }
  8870. if(RegularPlayer[giveplayerid] == 1337) {
  8871. SendClientMessage(playerid,COLOR_YELLOW,"Regular Player: Yes");
  8872. }
  8873. if(RegularPlayer[giveplayerid] == 0) {
  8874. SendClientMessage(playerid,COLOR_YELLOW,"Regular Player: No");
  8875. }
  8876. if(HasC4[giveplayerid] == 1) {
  8877. SendClientMessage(playerid,COLOR_YELLOW,"Has C4: Yes");
  8878. }
  8879. if(HasC4[giveplayerid] == 0) {
  8880. SendClientMessage(playerid,COLOR_YELLOW,"Has C4: No");
  8881. }
  8882. format(string, sizeof(string), "Has Drugs: %d Grams",PlayerDrugs[giveplayerid]);
  8883. SendClientMessage(playerid,COLOR_YELLOW, string);
  8884. format(string, sizeof(string), "Cash: $%d",playercash);
  8885. SendClientMessage(playerid,COLOR_YELLOW, string);
  8886. if(gTeam[giveplayerid] == TEAM_COP) {
  8887. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Police Officer");
  8888. }
  8889. else
  8890. if(gTeam[giveplayerid] == TEAM_ARMY) {
  8891. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Army");
  8892. }
  8893. else
  8894. if(gTeam[giveplayerid] == TEAM_MEDIC) {
  8895. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Medic");
  8896. }
  8897. else
  8898. if(gTeam[giveplayerid] == TEAM_CARFIX) {
  8899. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Car Mechanic");
  8900. }
  8901. else
  8902. if(gTeam[giveplayerid] == TEAM_CASSEC) {
  8903. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Casino Security");
  8904. }
  8905. else
  8906. if(gTeam[giveplayerid] == TEAM_DRIVER) {
  8907. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Taxi Driver");
  8908. }
  8909. else
  8910. if(gTeam[giveplayerid] == TEAM_BISTRO) {
  8911. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Food Delivery");
  8912. }
  8913. else
  8914. if(gTeam[giveplayerid] == TEAM_JAILTK) {
  8915. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Jail Turnkey");
  8916. }
  8917. else
  8918. if(gTeam[giveplayerid] == TEAM_PVTMED) {
  8919. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Private Medic");
  8920. }
  8921. else
  8922. if(gTeam[giveplayerid] == TEAM_CIVIL) {
  8923. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: You are a nobody, If you have chosen a skill already then report this bug asap");
  8924. }
  8925. else
  8926. if(gTeam[giveplayerid] == TEAM_DRGDEL) {
  8927. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Drug Dealer");
  8928. }
  8929. else
  8930. if(gTeam[giveplayerid] == TEAM_HITMAN) {
  8931. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Hitman");
  8932. }
  8933. else
  8934. if(gTeam[giveplayerid] == TEAM_GUNDEL) {
  8935. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Gun Dealer");
  8936. }
  8937. else
  8938. if(gTeam[giveplayerid] == TEAM_PILOT) {
  8939. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Pilot");
  8940. }
  8941. else
  8942. if(gTeam[giveplayerid] == TEAM_RAPIST) {
  8943. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Rapist");
  8944. }
  8945. else
  8946. if(gTeam[giveplayerid] == TEAM_BOUNTY) {
  8947. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Bounty Hunter");
  8948. }
  8949. else
  8950. if(gTeam[giveplayerid] == TEAM_KIDNAP) {
  8951. SendClientMessage(playerid,COLOR_YELLOW,"Skill/Job: Kidnapper");
  8952. }
  8953. format(string, sizeof(string), "Weapon Ban: %d (%d)",wep0,ammo0);
  8954. SendClientMessage(playerid,COLOR_YELLOW, string);
  8955. return 1;
  8956. }
  8957.  
  8958. if(strcmp(cmd, "/adblow", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Blow A Player Up In A Car
  8959. {
  8960. tmp = strtok(cmdtext, idx);
  8961. if(!strlen(tmp)) {
  8962. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adblow (id)");
  8963. return 1;
  8964. }
  8965. giveplayerid = strval(tmp);
  8966. if(!IsNumeric(tmp)) {
  8967. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adblow (id) ID Must be a number");
  8968. return 1;
  8969. }
  8970. if(!IsPlayerConnected(giveplayerid)) {
  8971. format(string, sizeof(string), "ID (%d) Is not an active player",giveplayerid);
  8972. SendClientMessage(playerid, COLOR_ERROR, string);
  8973. return 1;
  8974. }
  8975. new pname[24];
  8976. GetPlayerName(giveplayerid, pname, 24);
  8977. if(!IsPlayerInAnyVehicle(giveplayerid)) {
  8978. format(string, sizeof(string), "%s(%d) is not in any vehicle. It is only fun if the player is in a vehicle",pname,giveplayerid);
  8979. SendClientMessage(playerid,COLOR_ERROR, string);
  8980. return 1;
  8981. }
  8982. AdminKilled[giveplayerid] =1;
  8983. new Float:X, Float:Y, Float:Z;
  8984. GetPlayerPos(giveplayerid, X, Y, Z);
  8985. CreateExplosion(X,Y,Z, 5, 10.0);
  8986. format(string, sizeof(string), "%s(%d)'s vehicle has been blown up by a Server Admin",pname,giveplayerid);
  8987. SendClientMessageToAll(0xB22222AA, string);
  8988. return 1;
  8989. }
  8990.  
  8991. if(strcmp(cmd, "/goto", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Teleports Admin To A Player
  8992. {
  8993. tmp = strtok(cmdtext, idx);
  8994. if(!strlen(tmp)) {
  8995. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /goto (id)");
  8996. return 1;
  8997. }
  8998. giveplayerid = strval(tmp);
  8999.  
  9000. if(!IsNumeric(tmp)) {
  9001. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /goto (id) ID Must be a number");
  9002. return 1;
  9003. }
  9004. if (IsPlayerConnected(giveplayerid)) {
  9005. SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
  9006. new Float:x, Float:y, Float:z;
  9007. new pname[24];
  9008. new aname[24];
  9009. GetPlayerPos(giveplayerid, x,y,z);
  9010. SetPlayerPos(playerid, x+1,y,z);
  9011. GetPlayerName(giveplayerid, pname, 24);
  9012. GetPlayerName(playerid, aname, 24);
  9013. SendClientMessage(playerid, 0xA9A9A9AA, "|_Admin Command Used_|");
  9014. format(string, sizeof(string), "You have teleported to %s(%d)",pname,giveplayerid);
  9015. SendClientMessage(playerid,0xFF7F50AA, string);
  9016. format(string, sizeof(string), "%s(%d) has teleported to %s(%d) [ADMIN COMMAND /GOTO]",aname,playerid,pname,giveplayerid);
  9017. printf("%s", string);
  9018. }
  9019. else {
  9020. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9021. SendClientMessage(playerid, COLOR_ERROR, string);
  9022. }
  9023. return 1;
  9024. }
  9025.  
  9026. if(strcmp(cmd, "/bring", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Brings A Player To Admin
  9027. {
  9028. tmp = strtok(cmdtext, idx);
  9029. if(!strlen(tmp)) {
  9030. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /bring (id)");
  9031. return 1;
  9032. }
  9033. giveplayerid = strval(tmp);
  9034.  
  9035. if(!IsNumeric(tmp)) {
  9036. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /bring (id) ID Must be a number");
  9037. return 1;
  9038. }
  9039. if (IsPlayerConnected(giveplayerid)) {
  9040. SetPlayerInterior(giveplayerid, GetPlayerInterior(playerid));
  9041. new Float:x, Float:y, Float:z;
  9042. new pname[24];
  9043. new aname[24];
  9044. GetPlayerPos(playerid, x,y,z);
  9045. SetPlayerPos(giveplayerid, x+1,y,z);
  9046. SetPlayerVirtualWorld(giveplayerid,GetPlayerVirtualWorld(playerid));
  9047. GetPlayerName(giveplayerid, pname, 24);
  9048. GetPlayerName(playerid, aname, 24);
  9049. SendClientMessage(playerid, 0xA9A9A9AA, "|_Admin Command Used_|");
  9050. format(string, sizeof(string), "You have brought (teleported) %s(%d) to you",pname,giveplayerid);
  9051. SendClientMessage(playerid,0xFF7F50AA, string);
  9052. format(string, sizeof(string), "%s(%d) has brought (teleported) %s(%d) [ADMIN COMMAND /BRING]",aname,playerid,pname,giveplayerid);
  9053. printf("%s", string);
  9054. }
  9055. else {
  9056. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9057. SendClientMessage(playerid, COLOR_ERROR, string);
  9058. }
  9059. return 1;
  9060. }
  9061.  
  9062. if(strcmp(cmd, "/adfr", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Freeze A Player
  9063. {
  9064. tmp = strtok(cmdtext, idx);
  9065. if(!strlen(tmp)) {
  9066. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adfr (id)");
  9067. return 1;
  9068. }
  9069. giveplayerid = strval(tmp);
  9070.  
  9071. if(!IsNumeric(tmp)) {
  9072. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adfr (id) ID Must be a number");
  9073. return 1;
  9074. }
  9075. new output[255];
  9076. strmid(output,cmdtext,8,strlen(cmdtext));
  9077. if (IsPlayerConnected(giveplayerid)) {
  9078. TogglePlayerControllable(giveplayerid, 0);
  9079. GetPlayerName(giveplayerid, string, 24);
  9080. format(string, 100, "**(ADMIN FREEZE)** %s(%d) %s", string,giveplayerid,output);
  9081. SendClientMessageToAll(0xFF7F50AA, string);
  9082. printf("%s", string);
  9083. Frozen[giveplayerid] =1;
  9084. }
  9085. else {
  9086. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9087. SendClientMessage(playerid, COLOR_ERROR, string);
  9088. }
  9089. return 1;
  9090. }
  9091.  
  9092.  
  9093.  
  9094.  
  9095. if(strcmp(cmd, "/adfrall", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Freeze All Players Except Admins
  9096. {
  9097. for (new i = 0; i < MAX_PLAYERS; i++)
  9098. {
  9099. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && PlayerAdminLevel[i] == 0 && Frozen[i] == 0)
  9100. {
  9101. TogglePlayerControllable(i, 0);
  9102. Frozen[i] =1;
  9103. }
  9104. }
  9105. new output[100];
  9106. strmid(output,cmdtext,9,strlen(cmdtext));
  9107. format(string, sizeof(string),"**(ADMIN SERVER FREEZE)** %s",output);
  9108. SendClientMessageToAll(0xFF7F50AA, string);
  9109. printf("%s", string);
  9110. return 1;
  9111. }
  9112.  
  9113. if(strcmp(cmd, "/adunfrall", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Un-Freeze All Players
  9114. {
  9115. for (new i = 0; i < MAX_PLAYERS; i++)
  9116. {
  9117. if(IsPlayerConnected(i) && IsSpawned[i] == 1 && PlayerAdminLevel[i] == 0 && Frozen[i] == 1)
  9118. {
  9119. TogglePlayerControllable(i, 1);
  9120. Frozen[i] =0;
  9121. }
  9122. }
  9123. new output[100];
  9124. strmid(output,cmdtext,11,strlen(cmdtext));
  9125. format(string, sizeof(string),"**(ADMIN SERVER UNFREEZE)** %s",output);
  9126. SendClientMessageToAll(0xFF7F50AA, string);
  9127. printf("%s", string);
  9128. return 1;
  9129. }
  9130.  
  9131. if(strcmp(cmd, "/adunfr", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Unfreeze Player
  9132. {
  9133. tmp = strtok(cmdtext, idx);
  9134. if(!strlen(tmp)) {
  9135. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adunfr (id)");
  9136. return 1;
  9137. }
  9138. giveplayerid = strval(tmp);
  9139.  
  9140. if(!IsNumeric(tmp)) {
  9141. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adfr (id) ID Must be a number");
  9142. return 1;
  9143. }
  9144. new output[255];
  9145. strmid(output,cmdtext,10,strlen(cmdtext));
  9146. if (IsPlayerConnected(giveplayerid)) {
  9147. TogglePlayerControllable(giveplayerid, 1);
  9148. GetPlayerName(giveplayerid, string, 24);
  9149. format(string, 100, "**(ADMIN UNFREEZE)** %s(%d) %s", string,giveplayerid,output);
  9150. SendClientMessageToAll(0xFF7F50AA, string);
  9151. printf("%s", string);
  9152. Frozen[giveplayerid] =0;
  9153. }
  9154. else {
  9155. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9156. SendClientMessage(playerid, COLOR_ERROR, string);
  9157. }
  9158. return 1;
  9159. }
  9160.  
  9161. if(strcmp(cmd, "/adjail", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Sent A Player To Jail
  9162. {
  9163. tmp = strtok(cmdtext, idx);
  9164. if(!strlen(tmp)) {
  9165. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adjail (id)");
  9166. return 1;
  9167. }
  9168. giveplayerid = strval(tmp);
  9169.  
  9170. if(!IsNumeric(tmp)) {
  9171. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adjail (id) ID Must be a number");
  9172. return 1;
  9173. }
  9174. new output[255];
  9175. strmid(output,cmdtext,10,strlen(cmdtext));
  9176. if (IsPlayerConnected(giveplayerid) && Jailed[giveplayerid] == 0) {
  9177. SetPlayerInterior(giveplayerid,3);
  9178. SetPlayerPos(giveplayerid,194.0873,175.3850,1003.0234);
  9179. SetPlayerFacingAngle(giveplayerid,20.7011);
  9180. Jailed[giveplayerid] = 1;
  9181. JailTime[giveplayerid] =300;
  9182. ResetPlayerWeapons(giveplayerid);
  9183. SetCameraBehindPlayer(giveplayerid);
  9184. GetPlayerName(giveplayerid, string, 24);
  9185. format(string, 100, "**(ADMIN JAIL)** %s(%d) %s", string,giveplayerid,output);
  9186. SendClientMessageToAll(0xFF7F50AA, string);
  9187. printf("%s", string);
  9188. cannotescapejail[giveplayerid] =1;
  9189. SetPlayerWantedLevel(giveplayerid,0);
  9190. SetPlayerToTeamColour(giveplayerid);
  9191. }
  9192. else {
  9193. format(string, sizeof(string), "ID (%d) Is not an active player (Or is already in jail)", giveplayerid);
  9194. SendClientMessage(playerid, COLOR_ERROR, string);
  9195. }
  9196. return 1;
  9197. }
  9198.  
  9199.  
  9200. if(strcmp(cmd, "/adunjail", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Release From Jail
  9201. {
  9202. tmp = strtok(cmdtext, idx);
  9203. if(!strlen(tmp)) {
  9204. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adunjail (id)");
  9205. return 1;
  9206. }
  9207. giveplayerid = strval(tmp);
  9208.  
  9209. if(!IsNumeric(tmp)) {
  9210. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adunjail (id) ID Must be a number");
  9211. return 1;
  9212. }
  9213.  
  9214. new output[255];
  9215. strmid(output,cmdtext,12,strlen(cmdtext));
  9216.  
  9217. if (IsPlayerConnected(giveplayerid) && Jailed[giveplayerid] == 1) {
  9218. SetPlayerInterior(giveplayerid,3);
  9219. SetPlayerPos(giveplayerid,210.5272,146.3341,1003.0234);
  9220. SetPlayerFacingAngle(giveplayerid,179.4662);
  9221. SetCameraBehindPlayer(giveplayerid);
  9222. Jailed[giveplayerid] = 0;
  9223. GetPlayerName(giveplayerid, string, 24);
  9224. format(string, 100, "**(ADMIN UNJAIL)** %s(%d) %s", string,giveplayerid,output);
  9225. SendClientMessageToAll(0xFF7F50AA, string);
  9226. printf("%s", string);
  9227. cannotescapejail[giveplayerid] =0;
  9228. }
  9229. else {
  9230. format(string, sizeof(string), "ID (%d) Is not an active player (Or is not in jail)", giveplayerid);
  9231. SendClientMessage(playerid, COLOR_ERROR, string);
  9232. }
  9233. return 1;
  9234. }
  9235.  
  9236. if(strcmp(cmd, "/adkick", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Kick
  9237. {
  9238. tmp = strtok(cmdtext, idx);
  9239. if(!strlen(tmp)) {
  9240. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adkick (id)");
  9241. return 1;
  9242. }
  9243. giveplayerid = strval(tmp);
  9244.  
  9245. if(!IsNumeric(tmp)) {
  9246. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adkick (id) ID Must be a number");
  9247. return 1;
  9248. }
  9249. new output[255];
  9250. strmid(output,cmdtext,10,strlen(cmdtext));
  9251. if (IsPlayerConnected(giveplayerid)) {
  9252. SetPlayerInterior(giveplayerid,10);
  9253. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  9254. SetPlayerFacingAngle(giveplayerid,2.2339);
  9255. SetCameraBehindPlayer(giveplayerid);
  9256. GetPlayerName(giveplayerid, string, 24);
  9257. format(string, 100, "**(ADMIN KICK)** %s(%d) %s", string,giveplayerid,output);
  9258. SendClientMessageToAll(0xFF7F50AA, string);
  9259. printf("%s", string);
  9260. ircSay(EchoConnection, EchoChan,string);
  9261. //format(string, 100, "\2;**(ADMIN KICK)** %s(%d) %s\2;", string,giveplayerid,output);
  9262. //ircSay(EchoConnection, EchoChan,string);
  9263. Kicking[giveplayerid] = 1;
  9264. SetTimer("KickPlayer",700,0);
  9265. }
  9266. else {
  9267. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9268. SendClientMessage(playerid, COLOR_ERROR, string);
  9269. }
  9270. return 1;
  9271. }
  9272.  
  9273. if(strcmp(cmd, "/adban", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Ban
  9274. {
  9275. tmp = strtok(cmdtext, idx);
  9276. if(!strlen(tmp)) {
  9277. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adban (id)");
  9278. return 1;
  9279. }
  9280. giveplayerid = strval(tmp);
  9281.  
  9282. if(!IsNumeric(tmp)) {
  9283. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adban (id) ID Must be a number");
  9284. return 1;
  9285. }
  9286. new output[255];
  9287. strmid(output,cmdtext,9,strlen(cmdtext));
  9288. if (IsPlayerConnected(giveplayerid)) {
  9289. SetPlayerInterior(giveplayerid,0);
  9290. SetPlayerPos(giveplayerid,-127.0526,2258.4316,29.4287);
  9291. SetPlayerFacingAngle(giveplayerid,217.0701);
  9292. SetCameraBehindPlayer(giveplayerid);
  9293. SetTimer("BanExplosionone",500,0);
  9294. AdminKilled[giveplayerid] =1;
  9295. GetPlayerName(giveplayerid, string, 24);
  9296. format(string, 100, "**(ADMIN BAN)** %s(%d) %s", string,giveplayerid,output);
  9297. SendClientMessageToAll(0xFF7F50AA, string);
  9298. printf("%s", string);
  9299. if(udb_Exists(PlayerName(giveplayerid)) && PLAYERLIST_authed[giveplayerid]) {
  9300. dUserSetINT(PlayerName(giveplayerid)).("nameban",1);
  9301. }
  9302. SendClientMessage(giveplayerid,COLOR_RED,"||| YOU HAVE BEEN BANNED FROM THIS SERVER");
  9303. SendClientMessage(giveplayerid,COLOR_RED,"||| You can appeal this action at our website");
  9304. SendClientMessage(giveplayerid,COLOR_RED,"||| Visit www.lvrcr.com for details");
  9305. SendClientMessage(giveplayerid,COLOR_RED,"||| Please note that we do not unban hackers/cheaters or repeat offenders");
  9306. Banning[giveplayerid] = 1;
  9307.  
  9308. }
  9309. else {
  9310. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9311. SendClientMessage(playerid, COLOR_ERROR, string);
  9312. }
  9313. return 1;
  9314. }
  9315.  
  9316. if(strcmp(cmd, "/adrpwarn", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Warn
  9317. {
  9318. tmp = strtok(cmdtext, idx);
  9319. if(!strlen(tmp)) {
  9320. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adwarn (id) (reason)");
  9321. return 1;
  9322. }
  9323. giveplayerid = strval(tmp);
  9324.  
  9325. if(!IsNumeric(tmp)) {
  9326. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adwarn (id) (reason) ID must be a number.");
  9327. return 1;
  9328. }
  9329. if(!IsPlayerConnected(giveplayerid)) {
  9330. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  9331. SendClientMessage(playerid, COLOR_ERROR, string);
  9332. return 1;
  9333. }
  9334. if(udb_Exists(PlayerName(giveplayerid)) && PLAYERLIST_authed[giveplayerid])
  9335. {
  9336. new rpwarnings =0;
  9337. rpwarnings =dUserINT(PlayerName(giveplayerid)).("rpabusewar");
  9338. rpwarnings +=1;
  9339. if(rpwarnings >=3) {
  9340. SetPlayerInterior(giveplayerid,10);
  9341. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  9342. SetPlayerFacingAngle(giveplayerid,2.2339);
  9343. SetCameraBehindPlayer(giveplayerid);
  9344. GetPlayerName(giveplayerid, string, 24);
  9345. format(string, 100, "**(AUTO KICK)** %s(%d) Too many admin warnings for abusing the /rp command",string,giveplayerid);
  9346. SendClientMessageToAll(0xFF7F50AA, string);
  9347. printf("%s", string);
  9348. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",0);
  9349. Kicking[giveplayerid] = 1;
  9350. SetTimer("KickPlayer",700,0);
  9351. }
  9352. else
  9353. if(rpwarnings <=2) {
  9354. GetPlayerName(giveplayerid, string, 24);
  9355. format(string, 100, "**(ADMIN WARN)** %s(%d) Has been warned by server admin for abusing the /rp command",string,giveplayerid);
  9356. SendClientMessageToAll(0xFF7F50AA, string);
  9357. SendClientMessage(giveplayerid,COLOR_RED,"YOU HAVE BEEN WARNED BY SERVER ADMIN FOR ABUSING THE /RP COMMAND");
  9358. SendClientMessage(giveplayerid,COLOR_RED,"Further abuse will result in more warnings and possible a kick/ban");
  9359. SendClientMessage(giveplayerid,COLOR_RED,"Visit www.lvrcr.com for details or speak to a server admin");
  9360. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",rpwarnings);
  9361. }
  9362. }
  9363. return 1;
  9364. }
  9365.  
  9366. if(strcmp(cmd, "/adwarn", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Warn /rp Abuse
  9367. {
  9368. tmp = strtok(cmdtext, idx);
  9369. if(!strlen(tmp)) {
  9370. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adrpwarn (id)");
  9371. return 1;
  9372. }
  9373. giveplayerid = strval(tmp);
  9374.  
  9375. if(!IsNumeric(tmp)) {
  9376. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adrpwarn (id) ID Must be a number");
  9377. return 1;
  9378. }
  9379. if(!IsPlayerConnected(giveplayerid)) {
  9380. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9381. SendClientMessage(playerid, COLOR_ERROR, string);
  9382. return 1;
  9383. }
  9384. if(udb_Exists(PlayerName(giveplayerid)) && PLAYERLIST_authed[giveplayerid])
  9385. {
  9386. new rpwarnings =0;
  9387. rpwarnings =dUserINT(PlayerName(giveplayerid)).("rpabusewar");
  9388. rpwarnings +=1;
  9389. if(rpwarnings >=3) {
  9390. SetPlayerInterior(giveplayerid,10);
  9391. SetPlayerPos(giveplayerid,219.6257,111.2549,999.0156);
  9392. SetPlayerFacingAngle(giveplayerid,2.2339);
  9393. SetCameraBehindPlayer(giveplayerid);
  9394. GetPlayerName(giveplayerid, string, 24);
  9395. format(string, 100, "**(AUTO KICK)** %s(%d) Too many admin warnings.",string,giveplayerid);
  9396. SendClientMessageToAll(0xFF7F50AA, string);
  9397. printf("%s", string);
  9398. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",0);
  9399. Kicking[giveplayerid] = 1;
  9400. SetTimer("KickPlayer",700,0);
  9401. }
  9402. else
  9403. if(rpwarnings <=2) {
  9404. new output[255];
  9405. AdminKilled[giveplayerid] =1;
  9406. strmid(output,cmdtext,10,strlen(cmdtext));
  9407. GetPlayerName(giveplayerid, string, 24);
  9408. format(string, 100, "**(ADMIN WARN)** %s(%d) %s", string,giveplayerid,output);
  9409. printf("%s", string);
  9410. SendClientMessageToAll(0xFF7F50AA, string);
  9411. SendClientMessage(giveplayerid,COLOR_RED,"YOU HAVE BEEN WARNED BY SERVER ADMIN.");
  9412. SendClientMessage(giveplayerid,COLOR_RED,"Further abuse will result in more warnings and possible a kick/ban");
  9413. SendClientMessage(giveplayerid,COLOR_RED,"Visit www.lvrcr.com for details or speak to a server admin");
  9414. dUserSetINT(PlayerName(giveplayerid)).("rpabusewar",rpwarnings);
  9415.  
  9416. }
  9417. }
  9418. return 1;
  9419. }
  9420.  
  9421.  
  9422.  
  9423. if(strcmp(cmd, "/adkill", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Admin Kill A Player
  9424. {
  9425. tmp = strtok(cmdtext, idx);
  9426. if(!strlen(tmp)) {
  9427. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adkill (id)");
  9428. return 1;
  9429. }
  9430. giveplayerid = strval(tmp);
  9431.  
  9432. if(!IsNumeric(tmp)) {
  9433. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adkill (id) ID Must be a number");
  9434. return 1;
  9435. }
  9436. new output[255];
  9437. AdminKilled[giveplayerid] =1;
  9438. strmid(output,cmdtext,10,strlen(cmdtext));
  9439. if (IsPlayerConnected(giveplayerid)) {
  9440. GetPlayerName(giveplayerid, string, 24);
  9441. format(string, 100, "**(ADMIN KILL)** %s(%d) %s", string,giveplayerid,output);
  9442. printf("%s", string);
  9443. SendClientMessageToAll(0xFF7F50AA, string);
  9444. SetPlayerHealth(giveplayerid,0);
  9445. }
  9446. else {
  9447. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9448. SendClientMessage(playerid, COLOR_ERROR, string);
  9449. }
  9450. return 1;
  9451. }
  9452.  
  9453. if(strcmp(cmd, "/admute", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Mute A Player
  9454. {
  9455. tmp = strtok(cmdtext, idx);
  9456. if(!strlen(tmp)) {
  9457. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /admute (id)");
  9458. return 1;
  9459. }
  9460. giveplayerid = strval(tmp);
  9461.  
  9462. if(!IsNumeric(tmp)) {
  9463. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /admute (id) ID Must be a number");
  9464. return 1;
  9465. }
  9466. if(Muted[giveplayerid] == 1) {
  9467. format(string, sizeof(string), "ID (%d) Is already Muted", giveplayerid);
  9468. SendClientMessage(playerid, COLOR_ERROR, string);
  9469. return 1;
  9470. }
  9471. new output[255];
  9472. strmid(output,cmdtext,10,strlen(cmdtext));
  9473. if (IsPlayerConnected(giveplayerid)) {
  9474. GetPlayerName(giveplayerid, string, 24);
  9475. format(string, 100, "**(ADMIN MUTE)** %s(%d) %s", string,giveplayerid,output);
  9476. SendClientMessageToAll(0xFF7F50AA, string);
  9477. Muted[giveplayerid] =1;
  9478. printf("%s", string);
  9479. }
  9480. else {
  9481. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9482. SendClientMessage(playerid, COLOR_ERROR, string);
  9483. }
  9484. return 1;
  9485. }
  9486.  
  9487. if(strcmp(cmd, "/adunmute", true) == 0 && PlayerAdminLevel[playerid] == 1337) // Unmute A Player
  9488. {
  9489. tmp = strtok(cmdtext, idx);
  9490. if(!strlen(tmp)) {
  9491. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adunmute (id)");
  9492. return 1;
  9493. }
  9494. giveplayerid = strval(tmp);
  9495.  
  9496. if(!IsNumeric(tmp)) {
  9497. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /adunmute (id) ID Must be a number");
  9498. return 1;
  9499. }
  9500. if(Muted[giveplayerid] == 0) {
  9501. format(string, sizeof(string), "ID (%d) Is not Muted", giveplayerid);
  9502. SendClientMessage(playerid, COLOR_ERROR, string);
  9503. return 1;
  9504. }
  9505. new output[255];
  9506. strmid(output,cmdtext,12,strlen(cmdtext));
  9507. if (IsPlayerConnected(giveplayerid)) {
  9508. GetPlayerName(giveplayerid, string, 24);
  9509. format(string, 100, "**(ADMIN UNMUTE)** %s(%d) %s", string,giveplayerid,output);
  9510. SendClientMessageToAll(0xFF7F50AA, string);
  9511. Muted[giveplayerid] =0;
  9512. printf("%s", string);
  9513. }
  9514. else {
  9515. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9516. SendClientMessage(playerid, COLOR_ERROR, string);
  9517. }
  9518. return 1;
  9519. }
  9520.  
  9521. if (strcmp (cmd, "/adgiveweapon", true) == 0)
  9522. {
  9523. if(PlayerAdminLevel[playerid] == 1337)
  9524. {
  9525. new player[MAX_STRING], weaponid [MAX_STRING],ammo[MAX_STRING];
  9526. player = strtok(cmdtext,idx);
  9527. weaponid = strtok(cmdtext,idx);
  9528. ammo = strtok(cmdtext,idx);
  9529. if(!strlen(player) || !strlen(weaponid) || !strlen(ammo))
  9530. {
  9531. SendClientMessage(playerid, COLOR_ERROR, "Correct usage: /adgiveweapon [playerid] [weaponid] [ammo]");
  9532. return 1;
  9533. }
  9534. if(!IsPlayerConnected(strval(player))) { SendClientMessage(playerid,COLOR_ERROR,"The player you are trying to give a weapon to is not connected."); return 1;}
  9535. new aname[256];
  9536. new wname[256];
  9537. new weapon[256];
  9538. GetPlayerName(playerid, aname, sizeof(aname));
  9539. GetPlayerName(strval(player), wname, sizeof(wname));
  9540. GetWeaponName(strval(weaponid), weapon, sizeof(weapon));
  9541. format(string, sizeof(string), "Admin: %s has given %s a weapon (%s, AMMO: %d)",aname,wname,weapon,strval(ammo));
  9542. SendClientMessage(playerid, COLOR_ROYALBLUE, string);
  9543. print(string);
  9544. GivePlayerWeapon(strval(player), strval(weaponid), strval(ammo));
  9545. format(string, 100, "\2;**(ADMIN GIVE WEAPON)** %s(%d) Admin Gave Player %s, Weapon: %s, with ammo: %s\2;", string, player,weaponid,ammo);
  9546. ircSay(EchoConnection, EchoChan,string);
  9547.  
  9548. return 1;
  9549. }
  9550. }
  9551.  
  9552. if (strcmp("/admsg", cmdtext, true, 6) == 0 && PlayerAdminLevel[playerid] == 1337) // Talk To Other Admins
  9553. {
  9554. if(strlen(cmdtext) <= 7) {
  9555. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /admsg (msg)");
  9556. return 1;
  9557. }
  9558. new output[255];
  9559. new pname[24];
  9560. GetPlayerName(playerid, pname, 24);
  9561. strmid(output,cmdtext,7,strlen(cmdtext));
  9562. format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
  9563. printf("%s", string);
  9564. for(new i=0;i<MAX_PLAYERS;i++)
  9565. {
  9566. if(PlayerAdminLevel[i] == 1337) {
  9567. format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
  9568. SendClientMessage(i,0xFF7F50AA,string);
  9569. }
  9570. }
  9571. return 1;
  9572. }
  9573. /*---------------------------------------------------------------
  9574. END OF SERVER ADMIN COMMANDS
  9575. ---------------------------------------------------------------*/
  9576.  
  9577.  
  9578.  
  9579.  
  9580.  
  9581.  
  9582.  
  9583.  
  9584.  
  9585.  
  9586. if(strcmp(cmd, "/liftdown", true) == 0) {
  9587. if(IsPlayerConnected(playerid)) {
  9588. if(IsSpawned[playerid] == 0) {
  9589. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9590. return 1;
  9591. }
  9592. if(gTeam[playerid] != TEAM_ARMY) {
  9593. SendClientMessage(playerid, COLOR_ERROR, "This command can only be used by SA Army");
  9594. return 1;
  9595. }
  9596. new Float:x, Float:y, Float:z;
  9597. GetPlayerPos(playerid, x, y, z);
  9598. if(x >= 2860.2568 && x <= 2901.6670 && y >= 459.5847 && y <= 484.5682 && z >= 11.0254 && z <= 19.6801)
  9599. {
  9600. MoveObject(carrierlift,2870.2490,472.1000,10.3583,2);
  9601. }
  9602. else {
  9603. SendClientMessage(playerid, COLOR_ERROR, "You are not close enough to use the aircraft elevator");
  9604. }
  9605. }
  9606. return 1;
  9607. }
  9608.  
  9609.  
  9610.  
  9611. if(strcmp(cmd, "/liftup", true) == 0) {
  9612. if(IsPlayerConnected(playerid)) {
  9613. if(IsSpawned[playerid] == 0) {
  9614. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9615. return 1;
  9616. }
  9617. if(gTeam[playerid] != TEAM_ARMY) {
  9618. SendClientMessage(playerid, COLOR_ERROR, "This command can only be used by SA Army");
  9619. return 1;
  9620. }
  9621. new Float:x, Float:y, Float:z;
  9622. GetPlayerPos(playerid, x, y, z);
  9623. if(x >= 2860.2568 && x <= 2901.6670 && y >= 459.5847 && y <= 484.5682 && z >= 11.0254 && z <= 19.6801)
  9624. {
  9625. MoveObject(carrierlift,2870.2490,472.1000,17.3583,2);
  9626. }
  9627. else {
  9628. SendClientMessage(playerid, COLOR_ERROR, "You are not close enough to use the aircraft elevator");
  9629. }
  9630. }
  9631. return 1;
  9632. }
  9633.  
  9634. if(strcmp(cmd,"/weaponsoff",true)==0) {
  9635. if(IsSpawned[playerid] == 0) {
  9636. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9637. return 1;
  9638. }
  9639. if(gTeam[playerid] == TEAM_GUNDEL) {
  9640. SendClientMessage(playerid, COLOR_ERROR, "Bad Command. Type /commands for available commands depending on your chosen job/skill");
  9641. return 1;
  9642. }
  9643. if(Wantsguns[playerid] == 0) {
  9644. SendClientMessage(playerid, COLOR_ERROR, "You haven't requested weapons.");
  9645. return 1;
  9646. }
  9647. else
  9648. {
  9649. SendClientMessage(playerid, 0xFF7F50AA, "You stopped requesting weapons.");
  9650. Wantsguns[playerid] =0;
  9651. askedforweapons[playerid] =0;
  9652. OfferedGuns[playerid] =0;
  9653. OfferedGuns[giveplayerid] =0;
  9654. return 1;
  9655. }
  9656.  
  9657. }
  9658.  
  9659. if(strcmp(cmd,"/cw",true)==0)
  9660. {
  9661. if(IsSpawned[playerid] == 0) {
  9662. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9663. return 1;
  9664. }
  9665. if(!IsPlayerInAnyVehicle(playerid)) {
  9666. SendClientMessage(playerid, COLOR_ERROR, "You not in any vehicle. You cannot use this command");
  9667. return 1;
  9668. }
  9669.  
  9670. if(strlen(cmdtext) <= 4) {
  9671. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cw (msg)");
  9672. return 1;
  9673. }
  9674. new cwhisperid = GetPlayerVehicleID(playerid);
  9675. new output[150];
  9676. new pname[24];
  9677. GetPlayerName(playerid, pname, 24);
  9678. strmid(output,cmdtext,3,strlen(cmdtext));
  9679. format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  9680. printf("%s", string);
  9681. for(new i=0;i<MAX_PLAYERS;i++)
  9682. {
  9683. if(IsPlayerInAnyVehicle(i))
  9684. {
  9685. if(GetPlayerVehicleID(i) == cwhisperid)
  9686. {
  9687. format(string, sizeof(string), "(CAR WHISPER): %s(%d) %s",pname,playerid,output);
  9688. SendClientMessage(i,COLOR_YELLOW,string);
  9689. }
  9690. }
  9691. }
  9692. return 1;
  9693. }
  9694.  
  9695.  
  9696.  
  9697. if(strcmp(cmd,"/playercolours",true)==0 || strcmp(cmd,"/pc",true)==0)
  9698. {
  9699. SendClientMessage(playerid, COLOR_GREY, "- - - - - - - - - - - - - - - - - - - -");
  9700. SendClientMessage(playerid, COLOR_WHITE, "A WHITE PLAYER: Innocent Civilian");
  9701. SendClientMessage(playerid, COLOR_YELLOW, "A YELLOW PLAYER: Low Wanted player. Cops should issue a fine with /fine (id)");
  9702. SendClientMessage(playerid, COLOR_ORANGE, "A ORANGE PLAYER: Warrant Issued for player. Cops should arrest the player with /ar (id)");
  9703. SendClientMessage(playerid, COLOR_RED, "A RED PLAYER: Warrant Issued, Armed And Dangerous. Cops should let the Army take the suspect down");
  9704. SendClientMessage(playerid, COLOR_BLUE, "A BLUE PLAYER: Police Officer");
  9705. SendClientMessage(playerid, COLOR_PURPLE, "A PURPLE PLAYER: SA Army Officer");
  9706. SendClientMessage(playerid, COLOR_GREEN, "A GREEN PLAYER: Medic / Driver");
  9707. SendClientMessage(playerid,COLOR_WHITE,"Type /commands for a full list of commands available to your skill/job");
  9708. SendClientMessage(playerid, COLOR_GREY, "- - - - - - - - - - - - - - - - - - - -");
  9709. for(new i=0;i<MAX_PLAYERS;i++)
  9710. {
  9711. if(IsPlayerConnected(i) && PlayerAdminLevel[i] == 1337) {
  9712. {
  9713. new reportername[24];
  9714. GetPlayerName(playerid,reportername, 24);
  9715. format(string, sizeof(string), "(%s(%d) has typed /pc",reportername,playerid);
  9716. SendClientMessage(i,0xFF7F50AA,string);
  9717. printf("%s",string);
  9718. }
  9719. }
  9720. }
  9721. return 1;
  9722. }
  9723.  
  9724.  
  9725.  
  9726.  
  9727. if(strcmp(cmd,"/w",true)==0)
  9728. {
  9729. if(IsSpawned[playerid] == 0) {
  9730. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9731. return 1;
  9732. }
  9733. if(strlen(cmdtext) <= 3) {
  9734. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /w (msg)");
  9735. return 1;
  9736. }
  9737. new output[150];
  9738. new pname[24];
  9739. GetPlayerName(playerid, pname, 24);
  9740. strmid(output,cmdtext,2,strlen(cmdtext));
  9741. format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  9742. printf("%s", string);
  9743. for(new i=0;i<MAX_PLAYERS;i++)
  9744. {
  9745. if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) {
  9746. {
  9747. format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  9748. SendClientMessage(i,COLOR_YELLOW,string);
  9749. }
  9750. }
  9751. }
  9752. return 1;
  9753. }
  9754.  
  9755.  
  9756. if(strcmp(cmd, "/report", true) == 0) {
  9757. if(IsSpawned[playerid] == 0) {
  9758. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9759. return 1;
  9760. }
  9761. tmp = strtok(cmdtext, idx);
  9762. if(!IsNumeric(tmp)) {
  9763. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /report (id) (reason) ID Must be a number");
  9764. return 1;
  9765. }
  9766. if(!strlen(tmp)) {
  9767. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /report (id) (reason)");
  9768. return 1;
  9769. }
  9770. giveplayerid = strval(tmp);
  9771. if(!IsPlayerConnected(giveplayerid)) {
  9772. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9773. SendClientMessage(playerid, COLOR_ERROR, string);
  9774. return 1;
  9775. }
  9776. new output[70];
  9777. strmid(output,cmdtext,10,strlen(cmdtext));
  9778. if(!strlen(cmdtext)) {
  9779. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /report (id) (reason)");
  9780. return 1;
  9781. }
  9782. new reportername[24];
  9783. new reportedname[24];
  9784. GetPlayerName(playerid,reportername, 24);
  9785. GetPlayerName(giveplayerid,reportedname, 24);
  9786. format(string, sizeof(string), "(REPORT SENT) You have reported: %s(%d) to any online Admins",reportedname,giveplayerid);
  9787. SendClientMessage(playerid,0xFF7F50AA,string);
  9788. format(string, sizeof(string), "(REPORT DETAILS) '%s'",output);
  9789. SendClientMessage(playerid,0xFF7F50AA,string);
  9790. for(new i=0;i<MAX_PLAYERS;i++)
  9791. {
  9792. if(IsPlayerConnected(i) && PlayerAdminLevel[i] == 1337) {
  9793. {
  9794. format(string, sizeof(string), "(REPORT SENT BY: %s(%d)",reportername,playerid);
  9795. SendClientMessage(i,0xFF7F50AA,string);
  9796. printf("%s",string);
  9797. format(string, sizeof(string), "(REPORTED PLAYER: %s(%d): %s",reportedname,giveplayerid,output);
  9798. SendClientMessage(i,0xFF7F50AA,string);
  9799. printf("%s",string);
  9800. }
  9801. }
  9802. }
  9803. return 1;
  9804. }
  9805.  
  9806.  
  9807. if(strcmp(cmd,"/skill",true)==0)
  9808. {
  9809. if(IsSpawned[playerid] == 0) {
  9810. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9811. return 1;
  9812. }
  9813.  
  9814. if(canchooseskill[playerid] == 0) {
  9815. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command now. Only certain teams can use this at time of spawn");
  9816. return 1;
  9817. }
  9818. if(IsPlayerConnected(playerid))
  9819. {
  9820. new x_nr[256];
  9821. x_nr = strtok(cmdtext, idx);
  9822. if(!strlen(x_nr)) {
  9823. SendClientMessage(playerid, COLOR_ROYALBLUE,"Use: /skill 1-7 to select your chosen skill. Default skill (Rapist) Will be given if you dont choose");
  9824. SendClientMessage(playerid, 0x00C7FFAA, "1. Rapist");
  9825. SendClientMessage(playerid, 0x00C7FFAA, "2. Drug Dealer");
  9826. SendClientMessage(playerid, 0x00C7FFAA, "3. GunDealer");
  9827. SendClientMessage(playerid, 0x00C7FFAA, "4. Hitman");
  9828. SendClientMessage(playerid, 0x00C7FFAA, "5. Private Medic");
  9829. SendClientMessage(playerid, 0x00C7FFAA, "6. Bounty Hunter");
  9830. SendClientMessage(playerid, 0x00C7FFAA, "7. Kidnapper");
  9831. //SendClientMessage(playerid, 0x00C7FFAA, "8. Pilot");
  9832. return 1;
  9833. }
  9834. if(strcmp(x_nr,"1",true) == 0)// Rapist
  9835. {
  9836. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9837. SendClientMessage(playerid,0x1E90FFAA, "RAPIST: You can rape other players and infect them with STDs that could kill them");
  9838.  
  9839. GivePlayerWeapon(playerid,5,1);
  9840. GivePlayerWeapon(playerid,22,100);
  9841. GivePlayerWeapon(playerid,14,1);
  9842. gTeam[playerid] = TEAM_RAPIST;
  9843. SetPlayerToTeamColour(playerid);
  9844. canchooseskill[playerid] =0;
  9845. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9846.  
  9847.  
  9848. }
  9849. else if(strcmp(x_nr,"2",true) == 0)//Drug Dealer
  9850. {
  9851. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9852. SendClientMessage(playerid,0x00FFFFAA, "DRUG DEALER: You will supply people with drugs for a price. Dont let people rip you off..");
  9853. SendClientMessage(playerid,0x00FFFFAA, "Keep a watch on the chat for players wanting drugs. Visit the drug house to replenish your stock");
  9854. GivePlayerWeapon(playerid,25,50);
  9855. GivePlayerWeapon(playerid,28,100);
  9856. GivePlayerWeapon(playerid,5,1);
  9857. gTeam[playerid] = TEAM_DRGDEL;
  9858. SetPlayerToTeamColour(playerid);
  9859. PlayerDrugs[playerid] = 500;
  9860. canchooseskill[playerid] =0;
  9861. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9862.  
  9863. }
  9864. else if(strcmp(x_nr,"3",true) == 0)//Gun Dealer
  9865. {
  9866. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9867. SendClientMessage(playerid,0x00FFFFAA, "GUN DEALER: If anyone needs weapons then you sell them some lead. Your prices are set by the game");
  9868. SendClientMessage(playerid,0x00FFFFAA, "You can also deliver guns to ammunations, just get in the PATRIOT car at ammunation stores in LV");
  9869. GivePlayerWeapon(playerid,29,500);
  9870. GivePlayerWeapon(playerid,30,50);
  9871. gTeam[playerid] = TEAM_GUNDEL;
  9872. SetPlayerToTeamColour(playerid);
  9873. canchooseskill[playerid] =0;
  9874. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9875.  
  9876. }
  9877. else if(strcmp(x_nr,"4",true) == 0)//Hitman
  9878. {
  9879. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9880. SendClientMessage(playerid,0x00FFFFAA, "HITMAN: If anyone needs another player dead then they will contact you. Make sure you agree a price and get paid");
  9881. //SendClientMessage(playerid,0x00FFFFAA, "Look out for messages on the chat like **Hitmen: PsyKo wants Tyrone dead. Contact PsyKo to discuss**");
  9882. SendClientMessage(playerid,0x00FFFFAA, "Type /hits to see if there are any hit contracts available");
  9883. GivePlayerWeapon(playerid,27,250);
  9884. GivePlayerWeapon(playerid,23,100);
  9885. GivePlayerWeapon(playerid,31,250);
  9886. gTeam[playerid] = TEAM_HITMAN;
  9887. SetPlayerToTeamColour(playerid);
  9888. canchooseskill[playerid] =0;
  9889. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9890.  
  9891. }
  9892.  
  9893. else if(strcmp(x_nr,"5",true) == 0)//pvt medic
  9894. {
  9895. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9896. SendClientMessage(playerid,0x00FFFFAA, "PRIVATE MEDIC: If anyone needs medical attention for cuts and bruses or STDs then you can cure then and heal them");
  9897. SendClientMessage(playerid,0x00FFFFAA, "You can also infect them with STDs that could kill them DO NOT HIT/INFECT THEM JUST TO HEAL/CURE THEM");
  9898. GivePlayerWeapon(playerid,22,250);
  9899. gTeam[playerid] = TEAM_PVTMED;
  9900. SetPlayerToTeamColour(playerid);
  9901. canchooseskill[playerid] =0;
  9902. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9903.  
  9904. }
  9905. else if(strcmp(x_nr,"6",true) == 0)//bounty hunter
  9906. {
  9907. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9908. SendClientMessage(playerid,0x00FFFFAA, "BOUNTY HUNTER: You have to help the cops take Escaped prisoners back into custody");
  9909. SendClientMessage(playerid,0x00FFFFAA, "Simply target RED players and type /ar (id) next to them to see if you have found an escaped convict");
  9910. SendClientMessage(playerid,0x00FFFFAA, "Type /bounty for details of Escaped Prisoners");
  9911. GivePlayerWeapon(playerid,27,250);
  9912. GivePlayerWeapon(playerid,23,100);
  9913. GivePlayerWeapon(playerid,31,250);
  9914. gTeam[playerid] = TEAM_BOUNTY;
  9915. SetPlayerToTeamColour(playerid);
  9916. canchooseskill[playerid] =0;
  9917. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9918. }
  9919. else if(strcmp(x_nr,"7",true) == 0) // Kidnapper
  9920. {
  9921. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands.");
  9922. SendClientMessage(playerid,0x00FFFFAA, "Kidnapper: You have to get a passenger in your car.");
  9923. SendClientMessage(playerid,0x00FFFFAA, "Tie them up using /tie, and then drive to a location which is out");
  9924. SendClientMessage(playerid,0x00FFFFAA, "of the way and proceed to do what you wish.");
  9925. GivePlayerWeapon(playerid,26,40);
  9926. GivePlayerWeapon(playerid,32,200);
  9927. GivePlayerWeapon(playerid,22,200);
  9928. gTeam[playerid] = TEAM_KIDNAP;
  9929. SetPlayerToTeamColour(playerid);
  9930. canchooseskill[playerid] =0;
  9931. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9932. }
  9933. /*else if(strcmp(x_nr,"8",true) == 0)//Pilot
  9934. {
  9935. SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  9936. SendClientMessage(playerid,0x00FFFFAA, "Pilot: You are a plane driver");
  9937. SendClientMessage(playerid,0x00FFFFAA, "If a player orders a private plane you can be the driver");
  9938. GivePlayerWeapon(playerid,5,1);
  9939. GivePlayerWeapon(playerid,22,100);
  9940. GivePlayerWeapon(playerid,14,1);
  9941. gTeam[playerid] = TEAM_PILOT;
  9942. SetPlayerToTeamColour(playerid);
  9943. canchooseskill[playerid] =0;
  9944. TextDrawHideForPlayer(playerid,txtTypeSkill);
  9945. }
  9946. */
  9947. else
  9948. {
  9949.  
  9950. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /skill 1-7");
  9951. return 1;
  9952. }
  9953. }
  9954. return 1;
  9955. }
  9956. // COP COMMANDS
  9957.  
  9958. if(strcmp(cmd, "/parole", true) == 0) {
  9959. if(IsSpawned[playerid] == 0) {
  9960. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  9961. return 1;
  9962. }
  9963. if(gTeam[playerid] != 1 && gTeam[playerid] != 8) {
  9964. SendClientMessage(playerid, COLOR_ERROR, "Only the Jail Turnkey or Police Officer classes can release prisoners from jail");
  9965. return 1;
  9966. }
  9967. if(Jailed[playerid] == 1) {
  9968. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  9969. return 1;
  9970. }
  9971. tmp = strtok(cmdtext, idx);
  9972. if(!strlen(tmp)) {
  9973. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /parole (id)");
  9974. return 1;
  9975. }
  9976. giveplayerid = strval(tmp);
  9977. if(!IsNumeric(tmp)) {
  9978. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /parole (id) ID Must be a number");
  9979. return 1;
  9980. }
  9981. if(!IsPlayerConnected(giveplayerid)) {
  9982. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  9983. SendClientMessage(playerid, COLOR_ERROR, string);
  9984. return 1;
  9985. }
  9986. new prisonername[24];
  9987. new turnkeyname[24];
  9988. GetPlayerName(giveplayerid,prisonername, 24);
  9989. GetPlayerName(playerid, turnkeyname, 24);
  9990. if(InAlcatraz[giveplayerid] == 1) {
  9991. format(string, sizeof(string), "%s(%d) is in jail on Alcatraz Island. You cannot parole that player",prisonername,giveplayerid);
  9992. SendClientMessage(playerid, COLOR_ERROR, string);
  9993. return 1;
  9994. }
  9995. if(Jailed[giveplayerid] == 0) {
  9996. format(string, sizeof(string), "%s(%d) is not in jail",prisonername,giveplayerid);
  9997. SendClientMessage(playerid, COLOR_ERROR, string);
  9998. return 1;
  9999. }
  10000. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  10001. format(string, sizeof(string), "%s(%d) Is in jail. You are not close enough to parole",prisonername,giveplayerid);
  10002. SendClientMessage(playerid, COLOR_ERROR, string);
  10003. return 1;
  10004. }
  10005. SetPlayerInterior(giveplayerid,3);
  10006. SetPlayerPos(giveplayerid,210.5272,146.3341,1003.0234);
  10007. SetPlayerFacingAngle(giveplayerid,179.4662);
  10008. SetCameraBehindPlayer(giveplayerid);
  10009. Jailed[giveplayerid] = 0;
  10010. JailTime[giveplayerid] =0;
  10011. cannotescapejail[giveplayerid] =0;
  10012. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Released From Jail_|");
  10013. format(string, sizeof(string), "%s(%d) has released you from jail",turnkeyname,playerid);
  10014. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10015. SendClientMessage(playerid, 0xA9A9A9AA, "|_Prisoner Released_|");
  10016. format(string, sizeof(string), "You have released %s(%d) from jail",prisonername,giveplayerid);
  10017. SendClientMessage(playerid, 0x00C7FFAA, string);
  10018. format(string, sizeof(string), "%s(%d) Has released %s(%d) from jail early",turnkeyname,playerid,prisonername,giveplayerid);
  10019. SendClientMessageToAll(0x00C7FFAA, string);
  10020. format(string, sizeof(string), "%s(%d) Has released %s(%d) from jail early",turnkeyname,playerid,prisonername,giveplayerid);
  10021. printf("%s",string);
  10022. ircSay(EchoConnection, EchoChan,string);
  10023. oscore = GetPlayerScore(playerid);
  10024. SetPlayerScore(playerid, oscore +1);
  10025. return 1;
  10026. }
  10027.  
  10028.  
  10029. if(strcmp(cmd, "/jam", true) == 0) {
  10030. if(IsSpawned[playerid] == 0) {
  10031. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10032. return 1;
  10033. }
  10034. if(Jailed[playerid] == 1) {
  10035. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10036. return 1;
  10037. }
  10038. if(gTeam[playerid] <= 2) {
  10039. SendClientMessage(playerid, COLOR_ERROR, "Law Enforcement agents cannot jam the radio system");
  10040. return 1;
  10041. }
  10042. if(HasLawEnforcementRadio[playerid] == 0) {
  10043. SendClientMessage(playerid, COLOR_ERROR, "You do not have a Law Enforcement radio");
  10044. return 1;
  10045. }
  10046. SendClientMessage(playerid, COLOR_ERROR, "your attempt to jam the Law Enforcement radio systems has failed");
  10047. return 1;
  10048. }
  10049.  
  10050. if(strcmp(cmd, "/food", true) == 0) {
  10051. if(IsSpawned[playerid] == 0) {
  10052. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10053. return 1;
  10054. }
  10055. if(InDerby[playerid] == 1) {
  10056. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10057. return 1;
  10058. }
  10059. if(gTeam[playerid] == TEAM_BISTRO) {
  10060. SendClientMessage(playerid, COLOR_ERROR, "You are food delivery staff. You have to goto the shop to eat");
  10061. return 1;
  10062. }
  10063. if(askedforfood[playerid] == 1) {
  10064. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  10065. return 1;
  10066. }
  10067. if (!GetPlayersInTeam(TEAM_BISTRO)) {
  10068. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Food Delivery staff");
  10069. return 1;
  10070. }
  10071. for(new i=0;i<MAX_PLAYERS;i++)
  10072. {
  10073. if(gTeam[i] == TEAM_BISTRO) {
  10074. new pname[24];
  10075. new current_zone;
  10076. current_zone = player_zone[playerid];
  10077. GetPlayerName(playerid, pname, 24);
  10078. SendClientMessage(i, 0xA9A9A9AA, "|_Food Delivery Requested_|");
  10079. format(string, sizeof(string), "%s(%d) has called for a food delivery. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  10080. SendClientMessage(i,COLOR_ROYALBLUE,string);
  10081. SendClientMessage(playerid, 0xA9A9A9AA, "|_Food Delivery Called_|");
  10082. SendClientMessage(playerid,COLOR_ROYALBLUE,"You have called for a food delivery");
  10083. Wantsfood[playerid] =1;
  10084. askedforfood[playerid] =1;
  10085. }
  10086. }
  10087. return 1;
  10088. }
  10089.  
  10090. if(strcmp(cmd, "/weapons", true) == 0) {
  10091. if(IsSpawned[playerid] == 0) {
  10092. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10093. return 1;
  10094. }
  10095. if(InDerby[playerid] == 1) {
  10096. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10097. return 1;
  10098. }
  10099. if(gTeam[playerid] == TEAM_GUNDEL) {
  10100. SendClientMessage(playerid, COLOR_ERROR, "You are a Weapon Dealer. You have to go to ammunation buy guns");
  10101. return 1;
  10102. }
  10103. if(askedforweapons[playerid] == 1) {
  10104. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  10105. return 1;
  10106. }
  10107. if (!GetPlayersInTeam(TEAM_GUNDEL)) {
  10108. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Weapon Dealers");
  10109. return 1;
  10110. }
  10111. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Dealer Called_|");
  10112. SendClientMessage(playerid,COLOR_ROYALBLUE,"You have called a Weapon Dealer to your location");
  10113. for(new i=0;i<MAX_PLAYERS;i++)
  10114. {
  10115. if(gTeam[i] == TEAM_GUNDEL) {
  10116. new pname[24];
  10117. new current_zone;
  10118. current_zone = player_zone[playerid];
  10119. GetPlayerName(playerid, pname, 24);
  10120. SendClientMessage(i, 0xA9A9A9AA, "|_Weapon Dealer Requested_|");
  10121. format(string, sizeof(string), "%s(%d) has called for a Weapon Dealer. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  10122. SendClientMessage(i,COLOR_ROYALBLUE,string);
  10123. Wantsguns[playerid] =1;
  10124. askedforweapons[playerid] =1;
  10125. }
  10126. }
  10127. return 1;
  10128. }
  10129. if(strcmp(cmd, "/sellweapons", true) == 0) {
  10130. if(IsSpawned[playerid] == 0) {
  10131. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10132. return 1;
  10133. }
  10134. if(gTeam[playerid] != TEAM_GUNDEL) {
  10135. SendClientMessage(playerid, COLOR_ERROR, "Only Weapon Dealers can sell weapons");
  10136. return 1;
  10137. }
  10138. if(InDerby[playerid] == 1) {
  10139. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10140. return 1;
  10141. }
  10142. if(Jailed[playerid] == 1) {
  10143. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10144. return 1;
  10145. }
  10146. if(cuffed[playerid] == 1) {
  10147. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  10148. return 1;
  10149. }
  10150. tmp = strtok(cmdtext, idx);
  10151. if(!strlen(tmp)) {
  10152. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapons (id)");
  10153. return 1;
  10154. }
  10155. giveplayerid = strval(tmp);
  10156. if(!IsNumeric(tmp)) {
  10157. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapons (id) ID Must be a number");
  10158. return 1;
  10159. }
  10160. if(!IsPlayerConnected(giveplayerid)) {
  10161. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  10162. SendClientMessage(playerid, COLOR_ERROR, string);
  10163. return 1;
  10164. }
  10165. if(Jailed[giveplayerid] == 1) {
  10166. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell weapons to a prisoner");
  10167. return 1;
  10168. }
  10169. new workername[24];
  10170. new playername[24];
  10171. GetPlayerName(playerid,workername, 24);
  10172. GetPlayerName(giveplayerid, playername, 24);
  10173. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 15) {
  10174. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot sell weapons to that player",playername,giveplayerid);
  10175. SendClientMessage(playerid, COLOR_ERROR, string);
  10176. return 1;
  10177. }
  10178. if(gTeam[giveplayerid] == TEAM_GUNDEL) {
  10179. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell weapons to another Weapon Dealer");
  10180. return 1;
  10181. }
  10182. if(Wantsguns[giveplayerid] == 0) {
  10183. format(string, sizeof(string), "%s(%d) Has not asked for a Gun Dealer. You have offered to sell Weapons",playername,giveplayerid);
  10184. SendClientMessage(playerid, COLOR_ERROR, string);
  10185. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapons Offered_|");
  10186. format(string, sizeof(string), "%s(%d) Has offered to sell you weapons. Type /weapons to accept the offer",workername,playerid);
  10187. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10188. OfferedGuns[giveplayerid] =1;
  10189. return 1;
  10190. }
  10191. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Offered_|");
  10192. format(string, sizeof(string), "%s(%d) Is viewing your weapon list...Use /sellweapon %d (Item Number) to sell ... Please wait...",playername,giveplayerid,giveplayerid);
  10193. SendClientMessage(playerid, 0x00C7FFAA, string);
  10194. format(string, sizeof(string), "Use /sellweapon %d (Item Number) when %s(%d) tells you the item number...",giveplayerid,playername,giveplayerid);
  10195. SendClientMessage(playerid, 0x00C7FFAA, string);
  10196. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapons Offered_|");
  10197. SendClientMessage(giveplayerid,0x00C7FFAA," Weapons available. Tell the Weapon Dealer which number you want to purchase (1-6)");
  10198. SendClientMessage(giveplayerid,0x00C7FFAA,"1. =[100 Ammo]=$2500====Silenced 9mm");
  10199. SendClientMessage(giveplayerid,0x00C7FFAA,"2. =[500 Ammo]=$1000====Tec9");
  10200. SendClientMessage(giveplayerid,0x00C7FFAA,"3. =[30 Ammo]=$3500====S/O ShotGun");
  10201. SendClientMessage(giveplayerid,0x00C7FFAA,"4. =[30 Ammo]=$15000===Sniper Rifle");
  10202. SendClientMessage(giveplayerid,0x00C7FFAA,"5. =[200 Ammo]=$8000====AK47");
  10203. SendClientMessage(giveplayerid,0x00C7FFAA,"6. ============$500=====Armor");
  10204. SendClientMessage(giveplayerid,0x00C7FFAA,"7. ============$3500=====3 Blocks Of C4");
  10205. OfferedGuns[giveplayerid] =1;
  10206. return 1;
  10207. }
  10208.  
  10209.  
  10210. if(strcmp(cmd,"/sellweapon",true)==0)
  10211. {
  10212. if(IsSpawned[playerid] == 0) {
  10213. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10214. return 1;
  10215. }
  10216. if(Jailed[playerid] == 1) {
  10217. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10218. return 1;
  10219. }
  10220. if(InDerby[playerid] == 1) {
  10221. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10222. return 1;
  10223. }
  10224. if(gTeam[playerid] != TEAM_GUNDEL) {
  10225. SendClientMessage(playerid, COLOR_ERROR, "Only Weapon Dealers can sell weapons");
  10226. return 1;
  10227. }
  10228. tmp = strtok(cmdtext, idx);
  10229. if(!strlen(tmp)) {
  10230. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapon (id) [WEAPON.No]");
  10231. return 1;
  10232. }
  10233. giveplayerid = strval(tmp);
  10234. if(!IsNumeric(tmp)) {
  10235. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapon (id) [WEAPON.No] ID Must be a number");
  10236. return 1;
  10237. }
  10238. if(Jailed[giveplayerid] == 1) {
  10239. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell weapons to a prisoner");
  10240. return 1;
  10241. }
  10242. if(OfferedGuns[giveplayerid] == 0) {
  10243. SendClientMessage(playerid, COLOR_ERROR,"No Weapon Dealer has offered to sell this player weapons. Use /sellweapons id first");
  10244. return 1;
  10245. }
  10246. new workername[24];
  10247. new playername[24];
  10248. GetPlayerName(playerid,workername, 24);
  10249. GetPlayerName(giveplayerid, playername, 24);
  10250. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 15) {
  10251. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot sell weapons to that player",playername,giveplayerid);
  10252. SendClientMessage(playerid, COLOR_ERROR, string);
  10253. return 1;
  10254. }
  10255. if(IsPlayerConnected(playerid))
  10256. {
  10257. new x_nr[256];
  10258. x_nr = strtok(cmdtext, idx);
  10259. if(!strlen(x_nr)) {
  10260. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapon (id) [1-7]");
  10261. return 1;
  10262. }
  10263. if(strcmp(x_nr,"1",true) == 0)
  10264. {
  10265. if(GetPlayerMoney(giveplayerid) <= 2499) {
  10266. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10267. format(string, sizeof(string), "%s(%d) Has tried to sell you a Silenced 9mm weapon. You cannot afford $2500",workername,playerid);
  10268. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10269. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10270. format(string, sizeof(string), "%s(%d) cannot afford that weapon",playername,giveplayerid);
  10271. SendClientMessage(playerid, COLOR_ERROR, string);
  10272.  
  10273. return 1;
  10274. }
  10275. GivePlayerWeapon(giveplayerid,23,100);
  10276. GivePlayerMoney(giveplayerid, -2500);
  10277. GivePlayerMoney(playerid,1500);
  10278. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10279. format(string, sizeof(string), "%s(%d) Has sold you a Silenced 9mm weapon with 100 Ammo for $2500",workername,playerid);
  10280. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10281. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10282. format(string, sizeof(string), "%s(%d) Has purchased a Silenced 9mm weapon from you. You receive a $1500 bonus",playername,giveplayerid);
  10283. SendClientMessage(playerid, 0x00C7FFAA, string);
  10284. oscore = GetPlayerScore(playerid);
  10285. SetPlayerScore(playerid, oscore +1);
  10286.  
  10287.  
  10288. }
  10289. else if(strcmp(x_nr,"2",true) == 0)
  10290. {
  10291. if(GetPlayerMoney(giveplayerid) <= 999) {
  10292. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10293. format(string, sizeof(string), "%s(%d) Has tried to sell you a Tec9 weapon. You cannot afford $1000",workername,playerid);
  10294. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10295. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10296. format(string, sizeof(string), "%s(%d) cannot afford that weapon",playername,giveplayerid);
  10297. SendClientMessage(playerid, COLOR_ERROR, string);
  10298.  
  10299. return 1;
  10300. }
  10301. GivePlayerWeapon(giveplayerid,32,500);
  10302. GivePlayerMoney(giveplayerid, -1000);
  10303. GivePlayerMoney(playerid,1500);
  10304. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10305. format(string, sizeof(string), "%s(%d) Has sold you a Tec9 weapon with 500 Ammo for $1000",workername,playerid);
  10306. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10307. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10308. format(string, sizeof(string), "%s(%d) Has purchased a Tec9 weapon from you. You receive a $1500 bonus",playername,giveplayerid);
  10309. SendClientMessage(playerid, 0x00C7FFAA, string);
  10310. oscore = GetPlayerScore(playerid);
  10311. SetPlayerScore(playerid, oscore +1);
  10312.  
  10313.  
  10314. }
  10315. else if(strcmp(x_nr,"3",true) == 0)
  10316. {
  10317. if(GetPlayerMoney(giveplayerid) <= 3499) {
  10318. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10319. format(string, sizeof(string), "%s(%d) Has tried to sell you a Sawnoff Shotgun weapon. You cannot afford $3500",workername,playerid);
  10320. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10321. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10322. format(string, sizeof(string), "%s(%d) cannot afford that weapon",playername,giveplayerid);
  10323. SendClientMessage(playerid, COLOR_ERROR, string);
  10324.  
  10325. return 1;
  10326. }
  10327. GivePlayerWeapon(giveplayerid,26,30);
  10328. GivePlayerMoney(giveplayerid, -3500);
  10329. GivePlayerMoney(playerid,1500);
  10330. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10331. format(string, sizeof(string), "%s(%d) Has sold you a Sawnoff Shotgun weapon with 30 Ammo for $3500",workername,playerid);
  10332. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10333. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10334. format(string, sizeof(string), "%s(%d) Has purchased a Sawnoff Shotgun weapon from you. You receive a $1500 bonus",playername,giveplayerid);
  10335. SendClientMessage(playerid, 0x00C7FFAA, string);
  10336. oscore = GetPlayerScore(playerid);
  10337. SetPlayerScore(playerid, oscore +1);
  10338.  
  10339. }
  10340. else if(strcmp(x_nr,"4",true) == 0)
  10341. {
  10342. if(GetPlayerMoney(giveplayerid) <= 14999) {
  10343. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10344. format(string, sizeof(string), "%s(%d) Has tried to sell you a Sniper Rifle weapon. You cannot afford $15000",workername,playerid);
  10345. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10346. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10347. format(string, sizeof(string), "%s(%d) cannot afford that weapon",playername,giveplayerid);
  10348. SendClientMessage(playerid, COLOR_ERROR, string);
  10349.  
  10350. return 1;
  10351. }
  10352. GivePlayerWeapon(giveplayerid,34,30);
  10353. GivePlayerMoney(giveplayerid, -15000);
  10354. GivePlayerMoney(playerid,1500);
  10355. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10356. format(string, sizeof(string), "%s(%d) Has sold you a Sniper Rifle weapon with 30 Ammo for $15000",workername,playerid);
  10357. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10358. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10359. format(string, sizeof(string), "%s(%d) Has purchased a Sniper Rifle weapon from you. You receive a $1500 bonus",playername,giveplayerid);
  10360. SendClientMessage(playerid, 0x00C7FFAA, string);
  10361. oscore = GetPlayerScore(playerid);
  10362. SetPlayerScore(playerid, oscore +1);
  10363.  
  10364. }
  10365. else if(strcmp(x_nr,"5",true) == 0)
  10366. {
  10367. if(GetPlayerMoney(giveplayerid) <= 7999) {
  10368. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10369. format(string, sizeof(string), "%s(%d) Has tried to sell you a AK47 weapon. You cannot afford $8000",workername,playerid);
  10370. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10371. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10372. format(string, sizeof(string), "%s(%d) cannot afford that weapon",playername,giveplayerid);
  10373. SendClientMessage(playerid, COLOR_ERROR, string);
  10374.  
  10375. return 1;
  10376. }
  10377. GivePlayerWeapon(giveplayerid,30,200);
  10378. GivePlayerMoney(giveplayerid, -8000);
  10379. GivePlayerMoney(playerid,1500);
  10380. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10381. format(string, sizeof(string), "%s(%d) Has sold you a AK47 weapon with 200 Ammo for $8000",workername,playerid);
  10382. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10383. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10384. format(string, sizeof(string), "%s(%d) Has purchased a AK47 weapon from you. You receive a $1500 bonus",playername,giveplayerid);
  10385. SendClientMessage(playerid, 0x00C7FFAA, string);
  10386. oscore = GetPlayerScore(playerid);
  10387. SetPlayerScore(playerid, oscore +1);
  10388.  
  10389. }
  10390. else if(strcmp(x_nr,"6",true) == 0)
  10391. {
  10392. if(GetPlayerMoney(giveplayerid) <= 499) {
  10393. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10394. format(string, sizeof(string), "%s(%d) Has tried to sell you Armor. You cannot afford $500",workername,playerid);
  10395. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10396. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10397. format(string, sizeof(string), "%s(%d) cannot afford Armor",playername,giveplayerid);
  10398. SendClientMessage(playerid, COLOR_ERROR, string);
  10399.  
  10400. return 1;
  10401. }
  10402. SetPlayerArmour(giveplayerid, 100);
  10403. GivePlayerMoney(giveplayerid, -500);
  10404. GivePlayerMoney(playerid,1500);
  10405. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10406. format(string, sizeof(string), "%s(%d) Has sold you Armor for $500",workername,playerid);
  10407. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10408. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10409. format(string, sizeof(string), "%s(%d) Has purchased Armor from you. You receive a $1500 bonus",playername,giveplayerid);
  10410. SendClientMessage(playerid, 0x00C7FFAA, string);
  10411. oscore = GetPlayerScore(playerid);
  10412. SetPlayerScore(playerid, oscore +1);
  10413.  
  10414. }
  10415. else if(strcmp(x_nr,"7",true) == 0)
  10416. {
  10417. if(GetPlayerMoney(giveplayerid) <= 3499) {
  10418. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10419. format(string, sizeof(string), "%s(%d) Has tried to sell you 3 Blocks of C4. You cannot afford $3500",workername,playerid);
  10420. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10421. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10422. format(string, sizeof(string), "%s(%d) cannot afford 3 Blocks of C4",playername,giveplayerid);
  10423. SendClientMessage(playerid, COLOR_ERROR, string);
  10424.  
  10425. return 1;
  10426. }
  10427. if(HasC4[giveplayerid] == 1) {
  10428. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10429. format(string, sizeof(string), "%s(%d) Has tried to sell you 3 Blocks of C4. You already have enough C4",workername,playerid);
  10430. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  10431. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sale Failed_|");
  10432. format(string, sizeof(string), "%s(%d) already has enough C4",playername,giveplayerid);
  10433. SendClientMessage(playerid, COLOR_ERROR, string);
  10434. return 1;
  10435. }
  10436. HasC4[giveplayerid] =1;
  10437. GivePlayerMoney(giveplayerid, -3500);
  10438. GivePlayerMoney(playerid,1500);
  10439. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Weapon Purchased_|");
  10440. format(string, sizeof(string), "%s(%d) Has sold you 3 Blocks of C4 for $3500",workername,playerid);
  10441. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  10442. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Sold_|");
  10443. format(string, sizeof(string), "%s(%d) Has purchased 3 Blocks of C4 from you. You receive a $1500 bonus",playername,giveplayerid);
  10444. SendClientMessage(playerid, 0x00C7FFAA, string);
  10445. oscore = GetPlayerScore(playerid);
  10446. SetPlayerScore(playerid, oscore +1);
  10447.  
  10448. }
  10449. else
  10450. {
  10451. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellweapon (id) (WEAPON.No)");
  10452. return 1;
  10453. }
  10454. }
  10455. return 1;
  10456. }
  10457.  
  10458.  
  10459.  
  10460. if(strcmp(cmd, "/sellfood", true) == 0) {
  10461. if(IsSpawned[playerid] == 0) {
  10462. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10463. return 1;
  10464. }
  10465. if(gTeam[playerid] != TEAM_BISTRO) {
  10466. SendClientMessage(playerid, COLOR_ERROR, "Only food delivery workers can sell food");
  10467. return 1;
  10468. }
  10469. if(InDerby[playerid] == 1) {
  10470. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10471. return 1;
  10472. }
  10473. if(Jailed[playerid] == 1) {
  10474. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10475. return 1;
  10476. }
  10477. if(cuffed[playerid] == 1) {
  10478. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  10479. return 1;
  10480. }
  10481. if(sellfoodrecently[playerid] == 1) {
  10482. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  10483. return 1;
  10484. }
  10485. tmp = strtok(cmdtext, idx);
  10486. if(!strlen(tmp)) {
  10487. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellfood (id)");
  10488. return 1;
  10489. }
  10490. giveplayerid = strval(tmp);
  10491. if(!IsNumeric(tmp)) {
  10492. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellfood (id) ID Must be a number");
  10493. return 1;
  10494. }
  10495. if(!IsPlayerConnected(giveplayerid)) {
  10496. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  10497. SendClientMessage(playerid, COLOR_ERROR, string);
  10498. return 1;
  10499. }
  10500. new workername[24];
  10501. new playername[24];
  10502. GetPlayerName(playerid,workername, 24);
  10503. GetPlayerName(giveplayerid, playername, 24);
  10504. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 15) {
  10505. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot sell food to that player",playername,giveplayerid);
  10506. SendClientMessage(playerid, COLOR_ERROR, string);
  10507. return 1;
  10508. }
  10509. if(gTeam[giveplayerid] == TEAM_BISTRO) {
  10510. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell food to another food delivery worker");
  10511. return 1;
  10512. }
  10513. if(Wantsfood[giveplayerid] == 0) {
  10514. format(string, sizeof(string), "%s(%d) Has not asked for a food delivery",playername,giveplayerid);
  10515. SendClientMessage(playerid, COLOR_ERROR, string);
  10516. return 1;
  10517. }
  10518. new Float:phealth;
  10519. GetPlayerHealth(giveplayerid,phealth);
  10520. SetPlayerHealth(giveplayerid, phealth+10);
  10521. SendClientMessage(playerid, 0xA9A9A9AA, "|_Food Sold_|");
  10522. format(string, sizeof(string), "You have sold food to %s(%d) You receive a $500 bonus",playername,giveplayerid);
  10523. SendClientMessage(playerid,0x00C7FFAA,string);
  10524. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Food Purchased_|");
  10525. format(string, sizeof(string), "Food Delivery Worker %s(%d) has sold you food for $25",workername,playerid);
  10526. SendClientMessage(giveplayerid,0x00C7FFAA,string);
  10527. Wantsfood[giveplayerid] =0;
  10528. sellfoodrecently[playerid] =1;
  10529. GivePlayerMoney(giveplayerid,-25);
  10530. GivePlayerMoney(playerid,500);
  10531. oscore = GetPlayerScore(playerid);
  10532. SetPlayerScore(playerid, oscore +1);
  10533. format(string, sizeof(string), "%s(%d) Has sold food to %s(%d)",workername,playerid,playername,giveplayerid);
  10534. printf("%s", string);
  10535. return 1;
  10536. }
  10537.  
  10538. if(strcmp(cmd, "/sellbadfood", true) == 0) {
  10539. if(IsSpawned[playerid] == 0) {
  10540. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10541. return 1;
  10542. }
  10543. if(gTeam[playerid] != TEAM_BISTRO) {
  10544. SendClientMessage(playerid, COLOR_ERROR, "Only food delivery workers can sell food");
  10545. return 1;
  10546. }
  10547. if(InDerby[playerid] == 1) {
  10548. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10549. return 1;
  10550. }
  10551. if(Jailed[playerid] == 1) {
  10552. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10553. return 1;
  10554. }
  10555. if(cuffed[playerid] == 1) {
  10556. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  10557. return 1;
  10558. }
  10559. if(sellfoodrecently[playerid] == 1) {
  10560. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  10561. return 1;
  10562. }
  10563. tmp = strtok(cmdtext, idx);
  10564. if(!strlen(tmp)) {
  10565. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellbadfood (id)");
  10566. return 1;
  10567. }
  10568. giveplayerid = strval(tmp);
  10569. if(!IsNumeric(tmp)) {
  10570. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellbadfood (id) ID Must be a number");
  10571. return 1;
  10572. }
  10573. if(!IsPlayerConnected(giveplayerid)) {
  10574. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  10575. SendClientMessage(playerid, COLOR_ERROR, string);
  10576. return 1;
  10577. }
  10578. new workername[24];
  10579. new playername[24];
  10580. GetPlayerName(playerid,workername, 24);
  10581. GetPlayerName(giveplayerid, playername, 24);
  10582. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 15) {
  10583. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot sell bad food to that player",playername,giveplayerid);
  10584. SendClientMessage(playerid, COLOR_ERROR, string);
  10585. return 1;
  10586. }
  10587. if(gTeam[giveplayerid] == TEAM_BISTRO) {
  10588. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell bad food to another food delivery worker");
  10589. return 1;
  10590. }
  10591. if(Wantsfood[giveplayerid] == 0) {
  10592. format(string, sizeof(string), "%s(%d) Has not asked for a food delivery",playername,giveplayerid);
  10593. SendClientMessage(playerid, COLOR_ERROR, string);
  10594. return 1;
  10595. }
  10596.  
  10597. format(string, sizeof(string), "%s(%d) Has been infected with Salmonella",playername,giveplayerid);
  10598. SendClientMessageToAll(0x00C7FFAA, string);
  10599. printf("%s", string);
  10600. Salmonella[giveplayerid] =1;
  10601. SendClientMessage(playerid, 0xA9A9A9AA, "|_Bad Food Sold_|");
  10602. format(string, sizeof(string), "You have sold bad food. You have infected %s(%d) With Salmonella",playername,giveplayerid);
  10603. SendClientMessage(playerid, 0x00C7FFAA, string);
  10604. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Bad Food Purchased_|");
  10605. format(string, sizeof(string), "%s(%d) Has sold you bad food. You have been infected with Salmonella",workername,playerid);
  10606. SendClientMessage(giveplayerid, 0xD2691EAA, string);
  10607. Wantsfood[giveplayerid] =0;
  10608. sellfoodrecently[playerid] =1;
  10609. GivePlayerMoney(giveplayerid,-25);
  10610. oscore = GetPlayerScore(playerid);
  10611. SetPlayerScore(playerid, oscore +1);
  10612. format(string, sizeof(string), "%s(%d) Has sold bad food to %s(%d)",workername,playerid,playername,giveplayerid);
  10613. printf("%s", string);
  10614.  
  10615. return 1;
  10616. }
  10617.  
  10618.  
  10619.  
  10620.  
  10621. if(strcmp(cmd, "/taze", true) == 0) {
  10622. if(IsSpawned[playerid] == 0) {
  10623. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10624. return 1;
  10625. }
  10626. if(gTeam[playerid] >= 3) {
  10627. SendClientMessage(playerid, COLOR_ERROR, "Only Law Enforcement can use this command");
  10628. return 1;
  10629. }
  10630. if(InDerby[playerid] == 1) {
  10631. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10632. return 1;
  10633. }
  10634. if(Jailed[playerid] == 1) {
  10635. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10636. return 1;
  10637. }
  10638. tmp = strtok(cmdtext, idx);
  10639. if(!strlen(tmp)) {
  10640. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /taze (id)");
  10641. return 1;
  10642. }
  10643. giveplayerid = strval(tmp);
  10644. if(!IsNumeric(tmp)) {
  10645. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /taze (id) ID Must be a number");
  10646. return 1;
  10647. }
  10648. if(!IsPlayerConnected(giveplayerid)) {
  10649. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  10650. SendClientMessage(playerid, COLOR_ERROR, string);
  10651. return 1;
  10652. }
  10653. if(gTeam[giveplayerid] <= 2) {
  10654. SendClientMessage(playerid, COLOR_ERROR, "You cannot taze another Law Enforcement agent");
  10655. return 1;
  10656. }
  10657. new oname[24];
  10658. new pname[24];
  10659. GetPlayerName(playerid,oname, 24);
  10660. GetPlayerName(giveplayerid, pname, 24);
  10661. if(GetPlayerWantedLevel(giveplayerid) <= 3) {
  10662. format(string, sizeof(string), "%s(%d) Does not have a warrant. You cannot use your tazer on this player",pname,giveplayerid);
  10663. SendClientMessage(playerid, COLOR_ERROR, string);
  10664. return 1;
  10665. }
  10666. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10) {
  10667. format(string, sizeof(string), "%s(%d) Is not close enough to taze",pname,giveplayerid);
  10668. SendClientMessage(playerid, COLOR_ERROR, string);
  10669. return 1;
  10670. }
  10671. if(cuffed[giveplayerid] == 1) {
  10672. format(string, sizeof(string), "%s(%d) Is in handcuffs and is restrained. You cannot taze a handcuffed player",pname, giveplayerid);
  10673. SendClientMessage(playerid, COLOR_ERROR, string);
  10674. return 1;
  10675. }
  10676. if(IsPlayerInAnyVehicle(giveplayerid)) {
  10677. format(string, sizeof(string), "%s(%d) Is in a vehicle. Get the player out the vehicle then use your tazer",pname,giveplayerid);
  10678. SendClientMessage(playerid, COLOR_ERROR, string);
  10679. return 1;
  10680. }
  10681. if(IsPlayerInAnyVehicle(playerid)) {
  10682. SendClientMessage(playerid, COLOR_ERROR, "You cannot taze a player from inside a vehicle");
  10683. return 1;
  10684. }
  10685. if(Tazed[giveplayerid] == 1) {
  10686. format(string, sizeof(string), "%s(%d) Is being tazed right now. You cannot taze a player while the player is being tazed",pname,giveplayerid);
  10687. SendClientMessage(playerid, COLOR_ERROR, string);
  10688. }
  10689. else{
  10690.  
  10691. Tazed[giveplayerid] =1;
  10692. new tazername[30];
  10693. GetPlayerName(playerid,tazername,30);
  10694. format(string, sizeof(string), "Law Enforcement agent %s(%d) Has tazed suspect %s(%d)",tazername,playerid,pname,giveplayerid);
  10695. SendClientMessageToAll(0x00C7FFAA, string);
  10696. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Law Enforcement Action_|");
  10697. format(string, sizeof(string), "Officer %s(%d) Has tazed you", oname,playerid);
  10698. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  10699. ApplyAnimation(giveplayerid,"PED","BIKE_fall_off",4.1,0,1,1,1,1);
  10700. SetTimer("Tazingtime",3000,0);
  10701. }
  10702. return 1;
  10703. }
  10704.  
  10705.  
  10706.  
  10707. if (strcmp("/cm", cmdtext, true, 3) == 0)
  10708. {
  10709. if(IsSpawned[playerid] == 0) {
  10710. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10711. return 1;
  10712. }
  10713. if(Jailed[playerid] == 1) {
  10714. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10715. return 1;
  10716. }
  10717. if(HasLawEnforcementRadio[playerid] == 0) {
  10718. SendClientMessage(playerid,COLOR_ERROR,"You do not have a Law Enforcement radio");
  10719. return 1;
  10720. }
  10721. if(LawEnforcementRadio[playerid] == 0) {
  10722. SendClientMessage(playerid, COLOR_ERROR, "Your Law Enforcement radio is off. Turn it on with /radon before using it");
  10723. return 1;
  10724. }
  10725. if(strlen(cmdtext) <= 4) {
  10726. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /cm yourmessagehere");
  10727. return 1;
  10728. }
  10729. else{
  10730. new output[255];
  10731. new pname[24];
  10732. GetPlayerName(playerid, pname, 24);
  10733. strmid(output,cmdtext,3,strlen(cmdtext));
  10734. format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  10735. printf("%s", string);
  10736. for(new i=0;i<MAX_PLAYERS;i++)
  10737. {
  10738. if(LawEnforcementRadio[i] == 1) {
  10739. format(string, sizeof(string), "COP MESSAGE: %s(%d) %s",pname,playerid,output);
  10740. SendClientMessage(i,COLOR_ROYALBLUE,string);
  10741. }
  10742. }
  10743. }
  10744. return 1;
  10745. }
  10746.  
  10747. if(strcmp(cmd, "/pu", true) == 0) {
  10748. if(IsSpawned[playerid] == 0) {
  10749. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10750. return 1;
  10751. }
  10752. if(gTeam[playerid] >= 3) {
  10753. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcemnt officer");
  10754. return 1;
  10755. }
  10756. if(InDerby[playerid] == 1) {
  10757. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10758. return 1;
  10759. }
  10760. if(Jailed[playerid] ==1) {
  10761. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10762. return 1;
  10763. }
  10764.  
  10765. tmp = strtok(cmdtext, idx);
  10766. if(!strlen(tmp)) {
  10767. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /pu (id)");
  10768. return 1;
  10769. }
  10770. if(!IsNumeric(tmp)) {
  10771. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /pu (id) ID Must be a number");
  10772. return 1;
  10773. }
  10774. if(strval(tmp) == playerid) {
  10775. SendClientMessage(playerid, COLOR_ERROR, "You cannot ask yourself to pull over");
  10776. return 1;
  10777. }
  10778. giveplayerid = strval(tmp);
  10779. if(!IsPlayerConnected(giveplayerid)) {
  10780. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  10781. SendClientMessage(playerid, COLOR_ERROR, string);
  10782. return 1;
  10783. }
  10784. new oname[24];
  10785. new pname[24];
  10786. GetPlayerName(playerid,oname, 24);
  10787. GetPlayerName(giveplayerid, pname, 24);
  10788.  
  10789. if(gTeam[giveplayerid] <= 2) {
  10790. SendClientMessage(playerid, COLOR_ERROR, "You cannot ask another Law Enforcement agent to pull over");
  10791. return 1;
  10792. }
  10793. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 25) {
  10794. format(string, sizeof(string), "%s(%d) is not close enough you cannot ask him to pull over",pname, giveplayerid);
  10795. SendClientMessage(playerid, COLOR_ERROR, string);
  10796. return 1;
  10797. }
  10798. if(GetPlayerState(giveplayerid) == PLAYER_STATE_ONFOOT) {
  10799. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Law Enforcement Action_|");
  10800. format(string, sizeof(string), "Officer %s(%d) Has asked you to freeze and disarm", oname,playerid);
  10801. SendClientMessage(giveplayerid, COLOR_ROYALBLUE, string);
  10802. SendClientMessage(playerid, 0xA9A9A9AA, "|_Law Enforcement Action Taken_|");
  10803. format(string, sizeof(string), "%s(%d) is not in any veichle. You have asked that player to freeze and disarm", pname, giveplayerid);
  10804. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  10805. return 1;
  10806. }
  10807. if(GetPlayerState(giveplayerid) == PLAYER_STATE_PASSENGER) {
  10808. format(string, sizeof(string), "%s(%d) is a passenger in the vehicle. Ask the driver to stop", pname, giveplayerid);
  10809. SendClientMessage(playerid, COLOR_ERROR, string);
  10810. return 1;
  10811. }
  10812. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  10813. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Law Enforcement Action_|");
  10814. format(string, sizeof(string), "Officer %s(%d): Has asked you to stop your vehicle and get out", oname,playerid);
  10815. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  10816. SendClientMessage(playerid, 0xA9A9A9AA, "|_Law Enforcement Action Taken_|");
  10817. format(string, sizeof(string), "You have asked %s(%d) to stop the vehicle and get out", pname,giveplayerid);
  10818. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  10819. }
  10820. return 1;
  10821. }
  10822.  
  10823. if(strcmp(cmd, "/bk", true) == 0)
  10824. {
  10825. if(IsSpawned[playerid] == 0) {
  10826. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10827. return 1;
  10828. }
  10829.  
  10830. if(gTeam[playerid] >= 3) {
  10831. SendClientMessage(playerid, COLOR_ERROR, "You are not a Law Enforcement officer");
  10832. return 1;
  10833. }
  10834. if(InDerby[playerid] == 1) {
  10835. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10836. return 1;
  10837. }
  10838. if(ReqBkRecent[playerid] == 1) {
  10839. SendClientMessage(playerid, COLOR_ERROR, "You have asked for backup recently. Please wait before asking for backup again");
  10840. return 1;
  10841. }
  10842. if(LawEnforcementRadio[playerid] == 0) {
  10843. SendClientMessage(playerid, COLOR_ERROR, "Your Police Radio is off. Turn it on with /radon before requesting backup");
  10844. return 1;
  10845. }
  10846.  
  10847. if(Jailed[playerid] ==1) {
  10848. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10849. return 1;
  10850. }
  10851. if(IsPlayerConnected(playerid)) {
  10852. new oname[24];
  10853. new current_zone;
  10854. GetPlayerName(playerid,oname, 24);
  10855. current_zone = player_zone[playerid];
  10856. for(new i=0;i<MAX_PLAYERS;i++)
  10857. {
  10858. if(LawEnforcementRadio[i] == 1) {
  10859. format(string, sizeof(string), "ASSISTANCE REQUIRED: Officer %s(%d) Is requesting backup. Location: %s",oname,playerid,zones[current_zone][zone_name]);
  10860. SendClientMessage(i, COLOR_ROYALBLUE, string);
  10861. format(string, sizeof(string), "All units respond. Provide backup to officer %s(%d) Location: %s",oname,playerid,zones[current_zone][zone_name]);
  10862. SendClientMessage(i, COLOR_ROYALBLUE, string);
  10863. }
  10864. }
  10865.  
  10866. ReqBk[playerid] =1;
  10867. SetPlayerColor(playerid,COLOR_PURPLE);
  10868. SetTimer("CopBackUpColour", 10000, 0);
  10869. ReqBkRecent[playerid] =1;
  10870. }
  10871. return 1;
  10872. }
  10873.  
  10874. if(strcmp(cmd, "/ar", true) == 0) {
  10875. if(IsSpawned[playerid] == 0) {
  10876. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  10877. return 1;
  10878. }
  10879.  
  10880. if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_BOUNTY) {
  10881. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement officer ");
  10882. return 1;
  10883. }
  10884. if(InDerby[playerid] == 1) {
  10885. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  10886. return 1;
  10887. }
  10888. if(isKidnapped[playerid] ==1)
  10889. {
  10890. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while tied up!");
  10891. return 1;
  10892. }
  10893. if(Jailed[playerid] ==1) {
  10894. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  10895. return 1;
  10896. }
  10897. tmp = strtok(cmdtext, idx);
  10898. if(!strlen(tmp)) {
  10899. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id)");
  10900. return 1;
  10901. }
  10902. giveplayerid = strval(tmp);
  10903. if(!IsNumeric(tmp)) {
  10904. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ar (id) ID Must be a number");
  10905. return 1;
  10906. }
  10907. if(cuffed[giveplayerid] == 0)
  10908. {
  10909. SendClientMessage(playerid,COLOR_ERROR,"That player is not handcuffed! Please cuff the suspect before arresting.");
  10910. return 1;
  10911. }
  10912. if(!IsPlayerConnected(giveplayerid)) {
  10913. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  10914. SendClientMessage(playerid, COLOR_ERROR, string);
  10915. return 1;
  10916. }
  10917. new oname[24];
  10918. new pname[24];
  10919. GetPlayerName(playerid,oname, 24);
  10920. GetPlayerName(giveplayerid, pname, 24);
  10921. if(GetPlayerWantedLevel(giveplayerid) <= 3) {
  10922. format(string, sizeof(string), "%s(%d) Does not have a warrant. You cannot arrest a player without a warrant",pname,giveplayerid);
  10923. SendClientMessage(playerid,COLOR_ERROR,string);
  10924. return 1;
  10925. }
  10926. if(IsPlayerInAnyVehicle(playerid)) {
  10927. SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest a suspect if you are in a car");
  10928. return 1;
  10929. }
  10930. if(IsPlayerInAnyVehicle(giveplayerid)) {
  10931. format(string, sizeof(string), "%s(%d) Is in a vehicle. Get the suspect out before making the arrest",pname,giveplayerid);
  10932. SendClientMessage(playerid,COLOR_ERROR,string);
  10933. return 1;
  10934. }
  10935. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 4) {
  10936. format(string, sizeof(string), "%s(%d) Is too far away. You cannot arrest that player",pname,giveplayerid);
  10937. SendClientMessage(playerid,COLOR_ERROR,string);
  10938. return 1;
  10939. }
  10940. if(IsSpawned[giveplayerid] == 0) {
  10941. format(string, sizeof(string), "%s(%d) Is dead. You cannot arrest a dead body",pname,giveplayerid);
  10942. SendClientMessage(playerid,COLOR_ERROR,string);
  10943. return 1;
  10944. }
  10945. SetPlayerVirtualWorld(giveplayerid,0);
  10946. if(GetPlayerWantedLevel(playerid) >=1) {
  10947. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command if you are wanted by the police");
  10948. return 1;
  10949. }
  10950. if(gTeam[playerid] == TEAM_BOUNTY && EscapedConvict[giveplayerid] == 0) {
  10951. SendClientMessage(playerid,COLOR_ERROR,"That player is not on your bounty list. Type /bounty for details");
  10952. return 1;
  10953. }
  10954. if(giveplayerid == playerid) {
  10955. SendClientMessage(playerid,COLOR_ERROR,"You cannot arrest yourself");
  10956. return 1;
  10957. }
  10958. if(gTeam[playerid] == TEAM_BOUNTY && EscapedConvict[giveplayerid] == 1 && GetPlayerWantedLevel(giveplayerid) >=10) {
  10959. SetPlayerInterior(giveplayerid,10);
  10960. new rnd;
  10961. rnd = random(sizeof (AlcatrazArrestedSpawn));
  10962. SetPlayerPos(giveplayerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  10963. SetPlayerFacingAngle(giveplayerid, AlcatrazArrestedSpawn[rnd][3]);
  10964. format(string, sizeof(string), "Bounty Hunter %s(%d) has re-captured Escaped Convict %s(%d) and has sent the suspect to Alcatraz",oname,playerid,pname,giveplayerid);
  10965. SendClientMessageToAll(0x00C7FFAA, string);
  10966. ircSay(EchoConnection, EchoChan,string);
  10967. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Busted By A Bounty Hunter_|");
  10968. format(string, sizeof(string), "You have been sent to Alcatraz by Bounty Hunter %s(%d)",oname,playerid);
  10969. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  10970. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  10971. SendClientMessage(giveplayerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  10972. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  10973. format(string, sizeof(string), "You have sent escaped prisoner %s(%d) to Alcatraz - you receive a $5000 re-capture bonus",pname,giveplayerid);
  10974. SendClientMessage(playerid,0x00C7FFAA, string);
  10975. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  10976. format(string, sizeof(string), "Escaped Convict %s(%d) has been re-arrested and sent to Alcatraz by Bounty Hunter %s(%d)",pname,giveplayerid,oname,playerid);
  10977. printf("%s", string);
  10978. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  10979. GivePlayerMoney(playerid,5000);
  10980. Jailed[giveplayerid] =1;
  10981. InAlcatraz[giveplayerid] =1;
  10982. StoleCopCarRecent[giveplayerid] =0;
  10983. triedtoescaperecent[giveplayerid] =1;
  10984. ResetPlayerWeapons(giveplayerid);
  10985. JailTime[giveplayerid] =320;
  10986. JailTimeServed[giveplayerid] =0;
  10987. EscapedConvict[giveplayerid] =0;
  10988. SetPlayerWantedLevel(giveplayerid,0);
  10989. oscore = GetPlayerScore(playerid);
  10990. SetPlayerScore(playerid, oscore +1);
  10991. isKidnapped[giveplayerid] =0;
  10992. kidnapTimer[giveplayerid] =0;
  10993. return 1;
  10994. }
  10995.  
  10996. if(EscapedConvict[giveplayerid] == 1 && GetPlayerWantedLevel(giveplayerid) >=10) {
  10997. SetPlayerInterior(giveplayerid,10);
  10998. new rnd;
  10999. rnd = random(sizeof (AlcatrazArrestedSpawn));
  11000. SetPlayerPos(giveplayerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  11001. SetPlayerFacingAngle(giveplayerid, AlcatrazArrestedSpawn[rnd][3]);
  11002. format(string, sizeof(string), "Escaped Convict %s(%d) has been re-arrested and sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11003. SendClientMessageToAll(0x00C7FFAA, string);
  11004. ircSay(EchoConnection, EchoChan,string);
  11005. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11006. format(string, sizeof(string), "You have been sent to Alcatraz by Officer %s(%d)",oname,playerid);
  11007. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11008. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  11009. SendClientMessage(giveplayerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  11010. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11011. format(string, sizeof(string), "You have sent escaped prisoner %s(%d) to Alcatraz - you receive a $4000 re-capture bonus",pname,giveplayerid);
  11012. SendClientMessage(playerid,0x00C7FFAA, string);
  11013. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11014. format(string, sizeof(string), "Escaped Convict %s(%d) has been re-arrested and sent to Alcatraz by Officer %s(%d)",pname,giveplayerid,oname,playerid);
  11015. printf("%s", string);
  11016. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11017. GivePlayerMoney(playerid,4000);
  11018. Jailed[giveplayerid] =1;
  11019. InAlcatraz[giveplayerid] =1;
  11020. StoleCopCarRecent[giveplayerid] =0;
  11021. triedtoescaperecent[giveplayerid] =1;
  11022. ResetPlayerWeapons(giveplayerid);
  11023. JailTime[giveplayerid] =320;
  11024. JailTimeServed[giveplayerid] =0;
  11025. EscapedConvict[giveplayerid] =0;
  11026. SetPlayerWantedLevel(giveplayerid,0);
  11027. oscore = GetPlayerScore(playerid);
  11028. SetPlayerScore(playerid, oscore +1);
  11029. return 1;
  11030. }
  11031. if(GetPlayerWantedLevel(giveplayerid) >=4 && GetPlayerWantedLevel(giveplayerid) <=5) {
  11032. SetPlayerInterior(giveplayerid,3);
  11033. new rnd;
  11034. rnd = random(sizeof (ArrestedSpawn));
  11035. SetPlayerPos(giveplayerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  11036. SetPlayerFacingAngle(giveplayerid, ArrestedSpawn[rnd][3]);
  11037. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11038. SendClientMessageToAll(0x00C7FFAA, string);
  11039. ircSay(EchoConnection, EchoChan,string);
  11040. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11041. format(string, sizeof(string), "You were Arrested by Officer %s(%d)",oname,playerid);
  11042. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11043. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  11044. SendClientMessage(giveplayerid,0x00C7FFAA,"If jail life sucks for you... Why not try /escape");
  11045. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11046. format(string, sizeof(string), "You have arrested %s(%d) - you receive a $1500 bonus",pname,giveplayerid);
  11047. SendClientMessage(playerid,0x00C7FFAA, string);
  11048. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11049. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d)",pname,giveplayerid,oname,playerid);
  11050. printf("%s", string);
  11051. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11052. GivePlayerMoney(playerid,1500);
  11053. Jailed[giveplayerid] =1;
  11054. StoleCopCarRecent[giveplayerid] =0;
  11055. triedtoescaperecent[giveplayerid] =1;
  11056. ResetPlayerWeapons(giveplayerid);
  11057. JailTime[giveplayerid] =80;
  11058. JailTimeServed[giveplayerid] =0;
  11059. SetPlayerWantedLevel(giveplayerid,0);
  11060. oscore = GetPlayerScore(playerid);
  11061. SetPlayerScore(playerid, oscore +1);
  11062. return 1;
  11063. }
  11064. if(GetPlayerWantedLevel(giveplayerid) >=6 && GetPlayerWantedLevel(giveplayerid) <=8) {
  11065. SetPlayerInterior(giveplayerid,3);
  11066. new rnd;
  11067. rnd = random(sizeof (ArrestedSpawn));
  11068. SetPlayerPos(giveplayerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  11069. SetPlayerFacingAngle(giveplayerid, ArrestedSpawn[rnd][3]);
  11070. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11071. SendClientMessageToAll(0x00C7FFAA, string);
  11072. ircSay(EchoConnection, EchoChan,string);
  11073. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11074. format(string, sizeof(string), "You were Arrested by Officer %s(%d)",oname,playerid);
  11075. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11076. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11077. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  11078. SendClientMessage(giveplayerid,0x00C7FFAA,"If jail life sucks for you... Why not try /escape");
  11079. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11080. format(string, sizeof(string), "You have arrested %s(%d) - you receive a $2000 bonus",pname,giveplayerid);
  11081. SendClientMessage(playerid,0x00C7FFAA, string);
  11082. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d)",pname,giveplayerid,oname,playerid);
  11083. printf("%s", string);
  11084. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11085. GivePlayerMoney(playerid,2000);
  11086. Jailed[giveplayerid] =1;
  11087.  
  11088. StoleCopCarRecent[giveplayerid] =0;
  11089. triedtoescaperecent[giveplayerid] =1;
  11090. ResetPlayerWeapons(giveplayerid);
  11091. JailTime[giveplayerid] =140;
  11092. JailTimeServed[giveplayerid] =0;
  11093. SetPlayerWantedLevel(giveplayerid,0);
  11094. oscore = GetPlayerScore(playerid);
  11095. SetPlayerScore(playerid, oscore +1);
  11096. return 1;
  11097. }
  11098.  
  11099. if(GetPlayerWantedLevel(giveplayerid) == 9) {
  11100. SetPlayerInterior(giveplayerid,3);
  11101. new rnd;
  11102. rnd = random(sizeof (ArrestedSpawn));
  11103. SetPlayerPos(giveplayerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  11104. SetPlayerFacingAngle(giveplayerid, ArrestedSpawn[rnd][3]);
  11105. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11106. SendClientMessageToAll(0x00C7FFAA, string);
  11107. ircSay(EchoConnection, EchoChan,string);
  11108. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11109. format(string, sizeof(string), "You were Arrested by Officer %s(%d)",oname,playerid);
  11110. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11111. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  11112. SendClientMessage(giveplayerid,0x00C7FFAA,"If jail life sucks for you... Why not try /escape");
  11113. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11114. format(string, sizeof(string), "You have arrested %s(%d) - you receive a $2500 bonus",pname,giveplayerid);
  11115. SendClientMessage(playerid,0x00C7FFAA, string);
  11116. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11117. format(string, sizeof(string), "Wanted suspect %s(%d) has been arrested by Officer %s(%d)",pname,giveplayerid,oname,playerid);
  11118. printf("%s", string);
  11119. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11120. GivePlayerMoney(playerid,2500);
  11121. Jailed[giveplayerid] =1;
  11122. StoleCopCarRecent[giveplayerid] =0;
  11123. triedtoescaperecent[giveplayerid] =1;
  11124. ResetPlayerWeapons(giveplayerid);
  11125. JailTime[giveplayerid] =200;
  11126. JailTimeServed[giveplayerid] =0;
  11127. SetPlayerWantedLevel(giveplayerid,0);
  11128. oscore = GetPlayerScore(playerid);
  11129. SetPlayerScore(playerid, oscore +1);
  11130. return 1;
  11131. }
  11132. if(GetPlayerWantedLevel(giveplayerid) >=10 && GetPlayerWantedLevel(giveplayerid) <=14) {
  11133. SetPlayerInterior(giveplayerid,10);
  11134. new rnd;
  11135. rnd = random(sizeof (AlcatrazArrestedSpawn));
  11136. SetPlayerPos(giveplayerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  11137. SetPlayerFacingAngle(giveplayerid, AlcatrazArrestedSpawn[rnd][3]);
  11138. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11139. SendClientMessageToAll(0x00C7FFAA, string);
  11140. ircSay(EchoConnection, EchoChan,string);
  11141. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11142. format(string, sizeof(string), "You have been sent to Alcatraz by Officer %s(%d)",oname,playerid);
  11143. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11144. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  11145. SendClientMessage(giveplayerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  11146. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11147. format(string, sizeof(string), "You have sent Most Wanted suspect %s(%d) to Alcatraz - you receive a $3000 bonus",pname,giveplayerid);
  11148. SendClientMessage(playerid,0x00C7FFAA, string);
  11149. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11150. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been arrested and sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11151. printf("%s", string);
  11152. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11153. GivePlayerMoney(playerid,3000);
  11154. Jailed[giveplayerid] =1;
  11155. InAlcatraz[giveplayerid] =1;
  11156. StoleCopCarRecent[giveplayerid] =0;
  11157. triedtoescaperecent[giveplayerid] =1;
  11158. ResetPlayerWeapons(giveplayerid);
  11159. JailTime[giveplayerid] =280;
  11160. JailTimeServed[giveplayerid] =0;
  11161. SetPlayerWantedLevel(giveplayerid,0);
  11162. oscore = GetPlayerScore(playerid);
  11163. SetPlayerScore(playerid, oscore +1);
  11164. return 1;
  11165. }
  11166. if(GetPlayerWantedLevel(giveplayerid) >=15 && GetPlayerWantedLevel(giveplayerid) <=24) {
  11167. SetPlayerInterior(giveplayerid,10);
  11168. new rnd;
  11169. rnd = random(sizeof (AlcatrazArrestedSpawn));
  11170. SetPlayerPos(giveplayerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  11171. SetPlayerFacingAngle(giveplayerid, AlcatrazArrestedSpawn[rnd][3]);
  11172. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11173. SendClientMessageToAll(0x00C7FFAA, string);
  11174. ircSay(EchoConnection, EchoChan,string);
  11175. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11176. format(string, sizeof(string), "You have been sent to Alcatraz by Officer %s(%d)",oname,playerid);
  11177. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11178. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  11179. SendClientMessage(giveplayerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  11180. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11181. format(string, sizeof(string), "You have sent Most Wanted suspect %s(%d) to Alcatraz - you receive a $3500 bonus",pname,giveplayerid);
  11182. SendClientMessage(playerid,0x00C7FFAA, string);
  11183. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11184. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been arrested and sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11185. printf("%s", string);
  11186. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11187. GivePlayerMoney(playerid,3500);
  11188. Jailed[giveplayerid] =1;
  11189. InAlcatraz[giveplayerid] =1;
  11190. StoleCopCarRecent[giveplayerid] =0;
  11191. triedtoescaperecent[giveplayerid] =1;
  11192. ResetPlayerWeapons(giveplayerid);
  11193. JailTime[giveplayerid] =320;
  11194. JailTimeServed[giveplayerid] =0;
  11195. SetPlayerWantedLevel(giveplayerid,0);
  11196. oscore = GetPlayerScore(playerid);
  11197. SetPlayerScore(playerid, oscore +1);
  11198. return 1;
  11199. }
  11200. if(GetPlayerWantedLevel(giveplayerid) >=25) {
  11201. SetPlayerInterior(giveplayerid,10);
  11202. new rnd;
  11203. rnd = random(sizeof (AlcatrazArrestedSpawn));
  11204. SetPlayerPos(giveplayerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  11205. SetPlayerFacingAngle(giveplayerid, AlcatrazArrestedSpawn[rnd][3]);
  11206. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11207. SendClientMessageToAll(0x00C7FFAA, string);
  11208. ircSay(EchoConnection, EchoChan,string);
  11209. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_You Have Been Arrested_|");
  11210. format(string, sizeof(string), "You have been sent to Alcatraz by Officer %s(%d)",oname,playerid);
  11211. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11212. SendClientMessage(giveplayerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  11213. SendClientMessage(giveplayerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  11214. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Arrested_|");
  11215. format(string, sizeof(string), "You have sent Most Wanted suspect %s(%d) to Alcatraz - you receive a $4000 bonus",pname,giveplayerid);
  11216. SendClientMessage(playerid,0x00C7FFAA, string);
  11217. GameTextForPlayer(playerid,"~b~Suspect Arrested",5000,3);
  11218. format(string, sizeof(string), "Most Wanted suspect %s(%d) has been arrested and sent to Alcatraz by Officer %s(%d) ",pname,giveplayerid,oname,playerid);
  11219. printf("%s", string);
  11220. SendClientMessage(giveplayerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  11221. GivePlayerMoney(playerid,4000);
  11222. Jailed[giveplayerid] =1;
  11223. InAlcatraz[giveplayerid] =1;
  11224. StoleCopCarRecent[giveplayerid] =0;
  11225. triedtoescaperecent[giveplayerid] =1;
  11226. ResetPlayerWeapons(giveplayerid);
  11227. JailTime[giveplayerid] =420;
  11228. JailTimeServed[giveplayerid] =0;
  11229. SetPlayerWantedLevel(giveplayerid,0);
  11230. oscore = GetPlayerScore(playerid);
  11231. SetPlayerScore(playerid, oscore +2);
  11232. }
  11233. return 1;
  11234. }
  11235.  
  11236. if(strcmp(cmd, "/fine", true) == 0) {
  11237. if(IsSpawned[playerid] == 0) {
  11238. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11239. return 1;
  11240. }
  11241. if(gTeam[playerid] >= 3) {
  11242. SendClientMessage(playerid,COLOR_ERROR,"You are not Law Enforcement");
  11243. return 1;
  11244. }
  11245. if(InDerby[playerid] == 1) {
  11246. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  11247. return 1;
  11248. }
  11249. tmp = strtok(cmdtext, idx);
  11250. if(!strlen(tmp)) {
  11251. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /fine (id)");
  11252. return 1;
  11253. }
  11254. if(!IsNumeric(tmp)) {
  11255. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /fine (id) ID Must be a number");
  11256. return 1;
  11257. }
  11258. giveplayerid = strval(tmp);
  11259. if(!IsPlayerConnected(giveplayerid)) {
  11260. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  11261. SendClientMessage(playerid, COLOR_ERROR, string);
  11262. return 1;
  11263. }
  11264. new oname[24];
  11265. new pname[24];
  11266. GetPlayerName(playerid,oname, 24);
  11267. GetPlayerName(giveplayerid, pname, 24);
  11268. if(GetPlayerWantedLevel(giveplayerid) == 0) {
  11269. format(string, sizeof(string), "%s(%d) Is innocent. You cannot issue a fine",pname,giveplayerid);
  11270. SendClientMessage(playerid,COLOR_ERROR,string);
  11271. return 1;
  11272. }
  11273.  
  11274. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 8) {
  11275. format(string, sizeof(string), "%s(%d) Is too far away. You cannot issue a fine",pname,giveplayerid);
  11276. SendClientMessage(playerid,COLOR_ERROR,string);
  11277. return 1;
  11278. }
  11279. if(GetPlayerWantedLevel(giveplayerid) == 1) {
  11280. format(string, sizeof(string), "Officer %s(%d) has fined you $500. Your wanted level has been reduced ",oname,playerid);
  11281. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  11282. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$500");
  11283. GameTextForPlayer(giveplayerid, string,5000, 0);
  11284. new plwl = GetPlayerWantedLevel(giveplayerid);
  11285. SetPlayerWantedLevel(giveplayerid,plwl -1);
  11286. GivePlayerMoney(giveplayerid, -500);
  11287. oscore = GetPlayerScore(playerid);
  11288. SetPlayerScore(playerid, oscore +1);
  11289. format(string, sizeof(string), "You have issued a fine to %s(%d) and you receive a collection bonus of $125",pname,giveplayerid);
  11290. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  11291. GivePlayerMoney(playerid, 125);
  11292. oscore = GetPlayerScore(playerid);
  11293. SetPlayerScore(playerid, oscore +1);
  11294. return 1;
  11295. }
  11296. if(GetPlayerWantedLevel(giveplayerid) == 2) {
  11297. format(string, sizeof(string), "Officer %s(%d) has fined you $1000. Your wanted level has been reduced ",oname,playerid);
  11298. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  11299. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$1000");
  11300. GameTextForPlayer(giveplayerid, string,5000, 0);
  11301. new plwl = GetPlayerWantedLevel(giveplayerid);
  11302. SetPlayerWantedLevel(giveplayerid,plwl -2);
  11303. GivePlayerMoney(giveplayerid, -1000);
  11304. oscore = GetPlayerScore(playerid);
  11305. SetPlayerScore(playerid, oscore +1);
  11306. format(string, sizeof(string), "You have issued a fine to %s(%d) and you receive a collection bonus of $250",pname,giveplayerid);
  11307. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  11308. GivePlayerMoney(playerid, 250);
  11309. oscore = GetPlayerScore(playerid);
  11310. SetPlayerScore(playerid, oscore +1);
  11311. return 1;
  11312. }
  11313. if(GetPlayerWantedLevel(giveplayerid) == 3) {
  11314. format(string, sizeof(string), "Officer %s(%d) has fined you $2000. Your wanted level has been reduced ",oname,playerid);
  11315. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  11316. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$2000");
  11317. GameTextForPlayer(giveplayerid, string,5000, 0);
  11318. new plwl = GetPlayerWantedLevel(giveplayerid);
  11319. SetPlayerWantedLevel(giveplayerid,plwl -3);
  11320. GivePlayerMoney(giveplayerid, -2000);
  11321. oscore = GetPlayerScore(playerid);
  11322. SetPlayerScore(playerid, oscore +1);
  11323. format(string, sizeof(string), "You have issued a fine to %s(%d) and you receive a collection bonus of $500",pname,giveplayerid);
  11324. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  11325. GivePlayerMoney(playerid, 500);
  11326. oscore = GetPlayerScore(playerid);
  11327. SetPlayerScore(playerid, oscore +1);
  11328. return 1;
  11329. }
  11330. if(GetPlayerWantedLevel(giveplayerid) >= 4) {
  11331. format(string, sizeof(string), "%s(%d) Has a warrant. You cannot issue a fine. Take the suspect into custody ",pname,giveplayerid);
  11332. SendClientMessage(playerid,COLOR_ERROR, string);
  11333. }
  11334. return 1;
  11335. }
  11336.  
  11337.  
  11338.  
  11339. if(strcmp(cmd, "/vc", true) == 0) {
  11340. if(IsSpawned[playerid] == 0) {
  11341. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11342. return 1;
  11343. }
  11344. if(gTeam[playerid] >= 3) {
  11345. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement officer ");
  11346. return 1;
  11347. }
  11348. if(InDerby[playerid] == 1) {
  11349. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  11350. return 1;
  11351. }
  11352. if(LawEnforcementRadio[playerid] == 0) {
  11353. SendClientMessage(playerid, COLOR_ERROR, "Your Police Radio is off. Turn it on with /radon before reporting visual contact");
  11354. return 1;
  11355. }
  11356. tmp = strtok(cmdtext, idx);
  11357. if(!IsNumeric(tmp)) {
  11358. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /vc (id) ID Must be a number");
  11359. return 1;
  11360. }
  11361. if(!strlen(tmp)) {
  11362. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /vc (id)");
  11363. return 1;
  11364. }
  11365. giveplayerid = strval(tmp);
  11366. if(!IsPlayerConnected(giveplayerid)) {
  11367. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  11368. SendClientMessage(playerid, COLOR_ERROR, string);
  11369. return 1;
  11370. }
  11371.  
  11372. new officername[24];
  11373. new criminalname[24];
  11374. GetPlayerName(playerid,officername, 24);
  11375. GetPlayerName(giveplayerid,criminalname, 24);
  11376. if(gTeam[giveplayerid] <= 2) {
  11377. SendClientMessage(playerid, COLOR_ERROR, "You cannot report other Law Enforcement agents");
  11378. return 1;
  11379. }
  11380. if(GetPlayerWantedLevel(giveplayerid) == 0) {
  11381. format(string, sizeof(string), "%s(%d) Is innocent. You can only report visual contact with wanted suspects (Yellow/Orange/Red)",criminalname,giveplayerid);
  11382. SendClientMessage(playerid, COLOR_ERROR, string);
  11383. return 1;
  11384. }
  11385. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 30) {
  11386. format(string, sizeof(string), "%s(%d) Is too far away. You cannot report visual contact",criminalname,giveplayerid);
  11387. SendClientMessage(playerid,COLOR_ERROR,string);
  11388. return 1;
  11389. }
  11390. if(Jailed[giveplayerid] == 1) {
  11391. format(string, sizeof(string), "%s(%d) Is in jail. You cannot report visual contact with a prisoner",criminalname,giveplayerid);
  11392. SendClientMessage(playerid, COLOR_ERROR, string);
  11393. return 1;
  11394. }
  11395. if(ReportedRecent[giveplayerid] == 1) {
  11396. format(string, sizeof(string), "%s(%d) Has been reported recently. Please wait before reporting visual contact",criminalname,giveplayerid);
  11397. SendClientMessage(playerid, COLOR_ERROR, string);
  11398. return 1;
  11399. }
  11400. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Police Visual Contact_|");
  11401. format(string, sizeof(string), "Officer %s(%d) Has reported visual contact with you",officername,playerid);
  11402. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  11403. copshavevc[giveplayerid] =60;
  11404. new current_zone;
  11405. current_zone = player_zone[giveplayerid];
  11406. for(new i=0;i<MAX_PLAYERS;i++)
  11407. {
  11408. if(LawEnforcementRadio[i] == 1) {
  11409. format(string, sizeof(string), "DISPATCH: (VISUAL CONTACT) Officer %s(%d) has visual contact with suspect %s(%d)- Location: %s",officername,playerid,criminalname,giveplayerid,zones[current_zone][zone_name]);
  11410. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11411. format(string, sizeof(string), "DISPATCH: (ALL UNITS) Get into the area and stop suspect %s(%d)",criminalname,giveplayerid);
  11412. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11413. }
  11414. }
  11415.  
  11416. return 1;
  11417. }
  11418.  
  11419.  
  11420. if(strcmp(cmd, "/rp", true) == 0) {
  11421. if(IsSpawned[playerid] == 0) {
  11422. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11423. return 1;
  11424. }
  11425. if(gTeam[playerid] >= 3) {
  11426. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement officer ");
  11427. return 1;
  11428. }
  11429. if(InDerby[playerid] == 1) {
  11430. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  11431. return 1;
  11432. }
  11433. if(LawEnforcementRadio[playerid] == 0) {
  11434. SendClientMessage(playerid, COLOR_ERROR, "Your Police Radio is off. Turn it on with /radon before reporting a suspect");
  11435. return 1;
  11436. }
  11437.  
  11438.  
  11439. tmp = strtok(cmdtext, idx);
  11440. if(!IsNumeric(tmp)) {
  11441. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rp (id) ID Must be a number");
  11442. return 1;
  11443. }
  11444.  
  11445. if(!strlen(tmp)) {
  11446. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rp (id) [reason]");
  11447. return 1;
  11448. }
  11449. giveplayerid = strval(tmp);
  11450.  
  11451. new output[255];
  11452. strmid(output,cmdtext,6,strlen(cmdtext));
  11453.  
  11454.  
  11455. new oname[24];
  11456. new pname[24];
  11457. GetPlayerName(playerid,oname, 24);
  11458. GetPlayerName(giveplayerid, pname, 24);
  11459. if(gTeam[giveplayerid] <= 2) {
  11460. SendClientMessage(playerid, COLOR_ERROR, "You cannot report other Law Enforcement agents");
  11461. return 1;
  11462. }
  11463. if(Jailed[giveplayerid] == 1) {
  11464. format(string, sizeof(string), "%s(%d) Is in jail. You cannot report a prisoner", pname,giveplayerid);
  11465. SendClientMessage(playerid, COLOR_ERROR, string);
  11466. return 1;
  11467. }
  11468. if(ReportedRecent[giveplayerid] == 1) {
  11469. format(string, sizeof(string), "%s(%d) Has been reported recently. Please wait before reporting criminal activity", pname,giveplayerid);
  11470. SendClientMessage(playerid, COLOR_ERROR, string);
  11471. return 1;
  11472. }
  11473.  
  11474. if(!IsPlayerConnected(giveplayerid)) {
  11475. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  11476. SendClientMessage(playerid, COLOR_ERROR, string);
  11477. return 1;
  11478. }
  11479. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 15) {
  11480. format(string, sizeof(string), "%s(%d) Is too far away. You cannot report criminal activity",pname,giveplayerid);
  11481. SendClientMessage(playerid,COLOR_ERROR,string);
  11482. return 1;
  11483. }
  11484.  
  11485. if(GetPlayerWantedLevel(giveplayerid) <= 9) {
  11486. for(new i=0;i<MAX_PLAYERS;i++)
  11487. {
  11488. if(LawEnforcementRadio[i] == 1) {
  11489. format(string, sizeof(string), "Officer %s(%d) has reported suspect %s(%d) Reason: (%s)",oname,playerid,pname,giveplayerid,output);
  11490. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11491. }
  11492. }
  11493. for(new j=0;j<MAX_PLAYERS;j++)
  11494. {
  11495. if(PlayerAdminLevel[j] == 1337) {
  11496. format(string, sizeof(string), "(POLICE REPORT) Officer %s(%d) has reported suspect %s(%d) Reason: (%s)",oname,playerid,pname,giveplayerid,output);
  11497. SendClientMessage(j,0xFF7F50AA,string);
  11498. }
  11499. }
  11500. printf("(POLICE REPORT) Officer %s(%d) has reported suspect %s(%d) Reason: (%s)",oname,playerid,pname,giveplayerid,output);
  11501. format(string, sizeof(string), "**(POLICE REPORT)** Officer %s(%d) has reported suspect %s(%d) Reason: (%s)",oname,playerid,pname,giveplayerid,output);
  11502. ircSay(EchoConnection, EchoChan,string);
  11503. new plwl = GetPlayerWantedLevel(giveplayerid);
  11504. new pcol = GetPlayerColor(giveplayerid);
  11505. SetPlayerWantedLevel(giveplayerid, plwl +1);
  11506. format(string, sizeof(string), "Officer %s(%d) has reported you. Reason: (%s)",oname,playerid,output);
  11507. SendClientMessage(giveplayerid,COLOR_DODGERBLUE,string);
  11508. plwl = GetPlayerWantedLevel(giveplayerid);
  11509. format(string, sizeof(string), "Wanted Level: (%d) ",plwl);
  11510. SendClientMessage(giveplayerid,pcol,string);
  11511. ReportedRecent[giveplayerid] =1;
  11512. commitedcrimerecently[giveplayerid] +=120;
  11513. }
  11514. else{
  11515. format(string, sizeof(string), "%s(%d) Already has a high wanted level. You cannot report criminal activity",pname,giveplayerid);
  11516. SendClientMessage(playerid,COLOR_ERROR,string);
  11517. }
  11518. return 1;
  11519. }
  11520.  
  11521.  
  11522.  
  11523. if(strcmp(cmd, "/911", true) == 0) {
  11524. if(IsSpawned[playerid] == 0) {
  11525. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11526. return 1;
  11527. }
  11528. if(Jailed[playerid] ==1) {
  11529. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11530. return 1;
  11531. }
  11532. if(InDerby[playerid] == 1) {
  11533. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  11534. return 1;
  11535. }
  11536. if(gTeam[playerid] <= 2) {
  11537. SendClientMessage(playerid,COLOR_ERROR,"You are a Law Enforcement officer. You cannot call /911 ");
  11538. return 1;
  11539. }
  11540. if (!GetPlayersInTeam(TEAM_COP) && !GetPlayersInTeam(TEAM_ARMY)) {
  11541. SendClientMessage(playerid,COLOR_ERROR,"There are no Police officers in the area");
  11542. return 1;
  11543. }
  11544.  
  11545. new output[70];
  11546. strmid(output,cmdtext,5,strlen(cmdtext));
  11547. if(strlen(cmdtext) <= 4) {
  11548. SendClientMessage(playerid, 0xA9A9A9AA, "USAGE: /911 (message)");
  11549. return 1;
  11550. }
  11551. SendClientMessage(playerid, 0xA9A9A9AA, "|_Dialed 911_|");
  11552. SendClientMessage(playerid,0x00C7FFAA,"You have dialed 911 - Please wait for Police assistance");
  11553. new callername[30];
  11554. GetPlayerName(playerid,callername, 30);
  11555. new current_zone;
  11556. current_zone = player_zone[playerid];
  11557. for(new i=0;i<MAX_PLAYERS;i++)
  11558. {
  11559. if(LawEnforcementRadio[i] == 1) {
  11560. format(string, sizeof(string), "DISPATCH: (911) %s(%d) has called 911",callername,playerid);
  11561. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11562. format(string, sizeof(string), "%s(%d) Said: ( %s )",callername,playerid,output);
  11563. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11564. format(string, sizeof(string), "All units in the area please respond. Location: %s",zones[current_zone][zone_name]);
  11565. SendClientMessage(i,COLOR_ROYALBLUE,string);
  11566. }
  11567. }
  11568.  
  11569. return 1;
  11570. }
  11571.  
  11572.  
  11573.  
  11574. if(strcmp(cmd, "/bankstate", true) == 0) {
  11575. if(IsSpawned[playerid] == 0) {
  11576. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11577. return 1;
  11578. }
  11579. if(Jailed[playerid] ==1) {
  11580. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11581. return 1;
  11582. }
  11583. if(!IsPlayerInCheckpoint(playerid)) {
  11584. SendClientMessage(playerid,0xD2691EAA,"You are not in any bank checkpoint");
  11585. return 1;
  11586. }
  11587. if(!udb_Exists(PlayerName(playerid))) {
  11588. SendClientMessage(playerid,0xD2691EAA,"You do not have an account on this server. Type /register (your password)");
  11589. return 1;
  11590. }
  11591. if(!PLAYERLIST_authed[playerid]) {
  11592. SendClientMessage(playerid,0xD2691EAA,"You are not logged in! Type /login (your password)");
  11593. return 1;
  11594. }
  11595. if(IsPlayerInCheckpoint(playerid) && !IsPlayerInAnyVehicle(playerid))
  11596. {
  11597. if(getCheckpointType(playerid) >= 27 && getCheckpointType(playerid) <= 30 || getCheckpointType(playerid) == 33 )
  11598. {
  11599.  
  11600. new bcash = dUserINT(PlayerName(playerid)).("bankcash");
  11601. new pname[30];
  11602. GetPlayerName(playerid,pname,30);
  11603. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  11604. SendClientMessage(playerid, 0xA9A9A9AA, string);
  11605. SendClientMessage(playerid, 0x808080AA, "|** Mode: Account Statement");
  11606. format(string, sizeof(string), "|** Account Holder: %s",pname);
  11607. SendClientMessage(playerid,0x808080AA,string);
  11608. SendClientMessage(playerid, 0x808080AA, "|** Branch: Las Venturas");
  11609. format(string, sizeof(string), "|** Current Balance: $%d",bcash);
  11610. SendClientMessage(playerid,0x808080AA,string);
  11611. format(string, sizeof(string), "|** Bank Opening Hours: 8:00 - 21:00");
  11612. SendClientMessage(playerid,0x808080AA,string);
  11613. format(string, sizeof(string), "|** 24h ATM machines. /atmloc");
  11614. SendClientMessage(playerid,0x808080AA,string);
  11615. format(string, sizeof(string), "|_|-------------------------------------------|_|");
  11616. SendClientMessage(playerid,0xA9A9A9AA,string);
  11617. }
  11618. else{
  11619. SendClientMessage(playerid,0xD2691EAA,"You are not in any bank or ATM checkpoint");
  11620. }
  11621. }
  11622. return 1;
  11623. }
  11624.  
  11625. if (strcmp("/trashdelivery", cmdtext, true, 10) == 0)
  11626. {
  11627. if(IsSpawned[playerid] == 0) {
  11628. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11629. return 1;
  11630. }
  11631. if(Jailed[playerid] ==1) {
  11632. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11633. return 1;
  11634. }
  11635. if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 5 || gTeam[playerid] == 6 || gTeam[playerid] == 7 || gTeam[playerid] == 8) {
  11636. SendClientMessage(playerid,COLOR_ERROR,"You cannot collect any trash");
  11637. return 1;
  11638. }
  11639. if(!IsPlayerInAnyVehicle(playerid)) {
  11640. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Trash collecting mission while in a TrashMaster truck");
  11641. return 1;
  11642. }
  11643. if(GetPlayerWantedLevel(playerid) >=1) {
  11644. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent before you can work for the city");
  11645. return 1;
  11646. }
  11647. if(OnDelMission[playerid] == 1337) {
  11648. SendClientMessage(playerid,COLOR_ERROR,"You are already doing a delivery mission");
  11649. return 1;
  11650. }
  11651. new vehicleid = GetPlayerVehicleID(playerid);
  11652. if(GetVehicleModel(vehicleid) != 408) {
  11653. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Trash collecting mission while in a TrashMaster truck");
  11654. return 1;
  11655. }
  11656. new vidy = GetPlayerVehicleID(playerid);
  11657. if(GetVehicleModel(vidy) == 408) {
  11658. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Mission Started_|");
  11659. SendClientMessage(playerid,0xADD8E6AA,"You have started the Trash Delivery mission. Do not exit this vehicle or the mission will end");
  11660. SendClientMessage(playerid,0xADD8E6AA,"Your current target location is marked with a RED checkpoint on your mini-map");
  11661. SendClientMessage(playerid,0xADD8E6AA,"You will be paid when you make your last drop at the trash yard in San Fierro (Mnt Chilliad)");
  11662. SendClientMessage(playerid,0xADD8E6AA,"The amount that the city pay you depends on how long it takes you to do the round. So hurry");
  11663. SendClientMessage(playerid,0xADD8E6AA,"Get to the first pick up at Well Stacked Pizza Co in Old Las Venturas Strip");
  11664. DisablePlayerCheckpoint(playerid);
  11665. playerCheckpoint[playerid] = 47;
  11666. TrashDeliveryTime[playerid] =0;
  11667. TrashDeliveryEarnings[playerid] =80000;
  11668. SetPlayerCheckpoint(playerid,checkpoints[47][0],checkpoints[47][1],checkpoints[47][2],checkpoints[47][3]); // no 1
  11669. OnDelMission[playerid] = 1337;
  11670. }
  11671. return 1;
  11672. }
  11673.  
  11674.  
  11675. if (strcmp("/atmcash", cmdtext, true, 10) == 0)
  11676. {
  11677. if(IsSpawned[playerid] == 0) {
  11678. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11679. return 1;
  11680. }
  11681. if(!IsPlayerInAnyVehicle(playerid)) {
  11682. SendClientMessage(playerid, COLOR_ERROR, "You have to be in a Securicar vehicle to use this command");
  11683. return 1;
  11684. }
  11685. new carrid = GetPlayerVehicleID(playerid);
  11686. if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(carrid) != 428) {
  11687. SendClientMessage(playerid,COLOR_ERROR,"You have to be in a Securicar vehicle to use this command");
  11688. return 1;
  11689. }
  11690.  
  11691. if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(carrid) == 428) {
  11692. SendClientMessage(playerid, COLOR_GREY, "Please wait.... Loading Data....");
  11693. SendClientMessage(playerid,0x808080AA,"|_|----- Las Venturas City Bank -----|_|");
  11694. SendClientMessage(playerid,0x808080AA,"|** ATM Network Maintenance Menu");
  11695. SendClientMessage(playerid,0x808080AA,"|** Current Cash Totals");
  11696. format(string, sizeof(string), "|**ATM 1 (WhiteWood Estates) Current Total: $%d",atmcash1);
  11697. SendClientMessage(playerid,0x808080AA,string);
  11698. format(string, sizeof(string), "|**ATM 2 (Roca Escalante) Current Total: $%d",atmcash2);
  11699. SendClientMessage(playerid,0x808080AA,string);
  11700. format(string, sizeof(string), "|**ATM 3 (24/7 StarFish Casino) Current Total: $%d",atmcash3);
  11701. SendClientMessage(playerid,0x808080AA,string);
  11702. format(string, sizeof(string), "|**ATM 4 (South LV Come-Alot) Current Total: $%d",atmcash4);
  11703. SendClientMessage(playerid,0x808080AA,string);
  11704. new atmcashtotal =0;
  11705. atmcashtotal = atmcash1 +atmcash2 +atmcash3 +atmcash4;
  11706. format(string, sizeof(string), "|**Grand Total: $%d",atmcashtotal);
  11707. SendClientMessage(playerid,0x808080AA,string);
  11708. SendClientMessage(playerid,0x808080AA,"|_|---------------------------------------------|_|");
  11709. atmcashtotal =0;
  11710. }
  11711. return 1;
  11712. }
  11713.  
  11714.  
  11715. if (!strcmp(cmdtext, "/models", true))
  11716. {
  11717. new mt[212], hm, str[45];
  11718. for (new v = 1; v <= 700; v ++)
  11719. if (GetVehicleModel(v)) mt[GetVehicleModel(v)-400] ++;
  11720. for (new et2; et2 < sizeof(mt); et2 ++) if (mt[et2]) hm ++;
  11721. format(str, 45, "This server has %d different vehicle models.", hm);
  11722. SendClientMessage(playerid, 0xFFFFFFAA, str);
  11723. return true;
  11724. }
  11725. /*
  11726. if (!strcmp(cmdtext, "/eee", true))
  11727. {
  11728. new Float:X,Float:Y,Float:Z,Float:A;
  11729. GetVehiclePos(bigassplane,X,Y,Z);
  11730. GetVehicleZAngle(bigassplane,A);
  11731. X+=(5*floatsin(-floatsub(A,45.0),degrees)),
  11732. Y+=(5*floatcos(-floatsub(A,45.0),degrees));
  11733. SetPlayerInterior(playerid,0);
  11734. SetPlayerPos(playerid,X,Y,floatsub(Z,0.94));
  11735. SetPlayerFacingAngle(playerid,A);
  11736. SetCameraBehindPlayer(playerid);
  11737. InAndrom[playerid]=0;
  11738. return true;
  11739. }
  11740.  
  11741. */
  11742. // WTF REMOVED. LOL.
  11743.  
  11744. if (strcmp("/cashdelivery", cmdtext, true, 10) == 0)
  11745. {
  11746. if(IsSpawned[playerid] == 0) {
  11747. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11748. return 1;
  11749. }
  11750. if(Jailed[playerid] ==1) {
  11751. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11752. return 1;
  11753. }
  11754. if(OnDelMission[playerid] == 1337) {
  11755. SendClientMessage(playerid,COLOR_ERROR,"You are already doing a delivery mission");
  11756. return 1;
  11757. }
  11758. if(DeliveringCash[playerid] == 1337) {
  11759. SendClientMessage(playerid,COLOR_ERROR,"You are already doing a delivery mission");
  11760. return 1;
  11761. }
  11762. if(!IsPlayerInAnyVehicle(playerid)) {
  11763. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Cash Delivery mission while in a Securicar vehicle");
  11764. return 1;
  11765. }
  11766. if(GetPlayerWantedLevel(playerid) >=1) {
  11767. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent before you can work for LV City Bank");
  11768. return 1;
  11769. }
  11770. new vehicleid = GetPlayerVehicleID(playerid);
  11771. if(GetVehicleModel(vehicleid) != 428) {
  11772. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Cash Delivery mission while in a Securicar vehicle");
  11773. return 1;
  11774. }
  11775. new resultss =0;
  11776. for (new i = 0; i < MAX_PLAYERS; i++)
  11777. {
  11778. if(IsPlayerConnected(i) && DeliveringCash[playerid] ==1337)
  11779. {
  11780. resultss ++;
  11781. }
  11782. }
  11783. if(resultss >= 1) {
  11784. SendClientMessage(playerid,COLOR_ERROR,"Another player is already delivering cash. Try again later");
  11785. return 1;
  11786. }
  11787.  
  11788.  
  11789. new vidy = GetPlayerVehicleID(playerid);
  11790. if(GetVehicleModel(vidy) == 428) {
  11791. new atmtotall =0;
  11792. atmtotall = atmcash1 +atmcash2 +atmcash3 +atmcash4;
  11793. if(atmtotall == 2400000) {
  11794. SendClientMessage(playerid,COLOR_ERROR,"All of the ATM's in Las Venturas are full. Cannot start the Cash Delivery mission");
  11795. return 1;
  11796. }
  11797. if(atmtotall >=0 && atmtotall <= 2399999)
  11798. {
  11799. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank Cash Delivery_|");
  11800. SendClientMessage(playerid,0xADD8E6AA,"You have started the Cash Delivery mission - Do not exit this vehicle or the mission will end");
  11801. SendClientMessage(playerid,0xADD8E6AA,"Follow the RED markers on your mini-map to get to the next ATM on the route");
  11802. SendClientMessage(playerid,0xADD8E6AA,"You will be paid when you have delivered this vehicle back to the bank at the end of the route");
  11803. SendClientMessage(playerid,0xADD8E6AA,"Pick the cash up from the rear of LV City bank to get started...");
  11804. DisablePlayerCheckpoint(playerid);
  11805. playerCheckpoint[playerid] = 73;
  11806. totalcashdelivered[playerid] =0;
  11807. DeliveringCash[playerid] =1337;
  11808. SetPlayerCheckpoint(playerid,checkpoints[73][0],checkpoints[73][1],checkpoints[73][2],checkpoints[73][3]); // no 1
  11809. }
  11810. }
  11811. return 1;
  11812. }
  11813.  
  11814.  
  11815.  
  11816.  
  11817.  
  11818.  
  11819. if (strcmp("/gundelivery", cmdtext, true, 10) == 0)
  11820. {
  11821. if(IsSpawned[playerid] == 0) {
  11822. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11823. return 1;
  11824. }
  11825. if(Jailed[playerid] ==1) {
  11826. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11827. return 1;
  11828. }
  11829. if(gTeam[playerid] != TEAM_GUNDEL) {
  11830. SendClientMessage(playerid,COLOR_ERROR,"Only Gun Dealers can deliver weapons to ammunation stores");
  11831. return 1;
  11832. }
  11833. if(OnDelMission[playerid] == 1337) {
  11834. SendClientMessage(playerid,COLOR_ERROR,"You are already doing a delivery mission");
  11835. return 1;
  11836. }
  11837. if(!IsPlayerInAnyVehicle(playerid)) {
  11838. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Weapon Delivery mission while in a Patriot vehicle");
  11839. return 1;
  11840. }
  11841. if(GetPlayerWantedLevel(playerid) >=1) {
  11842. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent before you can work for the city");
  11843. return 1;
  11844. }
  11845. new vehicleid = GetPlayerVehicleID(playerid);
  11846. if(GetVehicleModel(vehicleid) != 470) {
  11847. SendClientMessage(playerid,COLOR_ERROR,"You can only start a Weapon Delivery mission while in a Patriot vehicle");
  11848. return 1;
  11849. }
  11850. new vidy = GetPlayerVehicleID(playerid);
  11851. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 0) {
  11852. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11853. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 1) - Do not exit this vehicle or the mission will end");
  11854. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11855. SendClientMessage(playerid,0xADD8E6AA,"Get to Ammunition in South LV to pick up the first load of weapons. You have got 300 seconds to get there");
  11856. DisablePlayerCheckpoint(playerid);
  11857. playerCheckpoint[playerid] = 58;
  11858. OnDelMission[playerid] =1337;
  11859. DeliveringGuns[playerid] =1;
  11860. GunsDeliveryTime[playerid] =300;
  11861. SetPlayerCheckpoint(playerid,checkpoints[58][0],checkpoints[58][1],checkpoints[58][2],checkpoints[58][3]); // no 1
  11862. return 1;
  11863. }
  11864. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 1) {
  11865. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11866. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 2) - Do not exit this vehicle or the mission will end");
  11867. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11868. SendClientMessage(playerid,0xADD8E6AA,"Pick up the weapons from the rear of Ammunation in Los Santos (Market) You have got 300 seconds to get there");
  11869. DisablePlayerCheckpoint(playerid);
  11870. playerCheckpoint[playerid] = 60;
  11871. OnDelMission[playerid] =1337;
  11872. DeliveringGuns[playerid] =1;
  11873. GunsDeliveryTime[playerid] =300;
  11874. SetPlayerCheckpoint(playerid,checkpoints[60][0],checkpoints[60][1],checkpoints[60][2],checkpoints[60][3]); // no 1
  11875. return 1;
  11876. }
  11877. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 2) {
  11878. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11879. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 3) - Do not exit this vehicle or the mission will end");
  11880. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11881. SendClientMessage(playerid,0xADD8E6AA,"RS Haul (Flint County) cant make this weapon delivery. You have to do it for them");
  11882. SendClientMessage(playerid,0xADD8E6AA,"You have got 300 seconds to get there");
  11883. DisablePlayerCheckpoint(playerid);
  11884. playerCheckpoint[playerid] = 62;
  11885. OnDelMission[playerid] =1337;
  11886. DeliveringGuns[playerid] =1;
  11887. GunsDeliveryTime[playerid] =300;
  11888. SetPlayerCheckpoint(playerid,checkpoints[62][0],checkpoints[62][1],checkpoints[62][2],checkpoints[62][3]); // no 1
  11889. return 1;
  11890. }
  11891. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 3) {
  11892. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11893. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 4) - Do not exit this vehicle or the mission will end");
  11894. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11895. SendClientMessage(playerid,0xADD8E6AA,"Pick up some federal lead at the Ammunation in Ocean Flats (San Fierro)");
  11896. SendClientMessage(playerid,0xADD8E6AA,"You have got 300 seconds to get there");
  11897. DisablePlayerCheckpoint(playerid);
  11898. playerCheckpoint[playerid] = 64;
  11899. OnDelMission[playerid] =1337;
  11900. DeliveringGuns[playerid] =1;
  11901. GunsDeliveryTime[playerid] =300;
  11902. SetPlayerCheckpoint(playerid,checkpoints[64][0],checkpoints[64][1],checkpoints[64][2],checkpoints[64][3]); // no 1
  11903. return 1;
  11904. }
  11905. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 4) {
  11906. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11907. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 5) - Do not exit this vehicle or the mission will end");
  11908. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11909. SendClientMessage(playerid,0xADD8E6AA,"Army bosses are too busy dealing with Most Wanted suspects. Collect their load at the Naval Base (San Fierro)");
  11910. SendClientMessage(playerid,0xADD8E6AA,"You have got 300 seconds to get there");
  11911. DisablePlayerCheckpoint(playerid);
  11912. playerCheckpoint[playerid] = 66;
  11913. OnDelMission[playerid] =1337;
  11914. DeliveringGuns[playerid] =1;
  11915. GunsDeliveryTime[playerid] =300;
  11916. SetPlayerCheckpoint(playerid,checkpoints[66][0],checkpoints[66][1],checkpoints[66][2],checkpoints[66][3]); // no 1
  11917. return 1;
  11918. }
  11919. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 5) {
  11920. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11921. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 6) - Do not exit this vehicle or the mission will end");
  11922. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11923. SendClientMessage(playerid,0xADD8E6AA,"Gotta deliver some weapons to Las Venturas Army HQ. Pick them up at Area 69");
  11924. SendClientMessage(playerid,0xADD8E6AA,"You have got 300 seconds to get there");
  11925. DisablePlayerCheckpoint(playerid);
  11926. playerCheckpoint[playerid] = 68;
  11927. OnDelMission[playerid] =1337;
  11928. DeliveringGuns[playerid] =1;
  11929. GunsDeliveryTime[playerid] =300;
  11930. SetPlayerCheckpoint(playerid,checkpoints[68][0],checkpoints[68][1],checkpoints[68][2],checkpoints[68][3]); // no 1
  11931. return 1;
  11932. }
  11933. if(GetVehicleModel(vidy) == 470 && GunDeliveryLevel[playerid] == 6) {
  11934. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Delivery Mission Started_|");
  11935. SendClientMessage(playerid,0xADD8E6AA,"You have started Weapon Delivery (Mission 7) - Do not exit this vehicle or the mission will end");
  11936. SendClientMessage(playerid,0xADD8E6AA,"You gotta deliver the weapons on time! If you run out of time you have to start at mission 1 again");
  11937. SendClientMessage(playerid,0xADD8E6AA,"Gotta deliver some weapons to Las Venturas Police Departement. Pick them up at LV Army HQ");
  11938. SendClientMessage(playerid,0xADD8E6AA,"You have got 300 seconds to get there");
  11939. DisablePlayerCheckpoint(playerid);
  11940. playerCheckpoint[playerid] = 70;
  11941. OnDelMission[playerid] =1337;
  11942. DeliveringGuns[playerid] =1;
  11943. GunsDeliveryTime[playerid] =300;
  11944. SetPlayerCheckpoint(playerid,checkpoints[70][0],checkpoints[70][1],checkpoints[70][2],checkpoints[70][3]); // no 1
  11945. }
  11946. return 1;
  11947. }
  11948.  
  11949.  
  11950.  
  11951.  
  11952. if(strcmp(cmd, "/withdraw", true) == 0) {
  11953. if(IsSpawned[playerid] == 0) {
  11954. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  11955. return 1;
  11956. }
  11957. if(Jailed[playerid] ==1) {
  11958. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  11959. return 1;
  11960. }
  11961. if(!IsPlayerInCheckpoint(playerid)) {
  11962. SendClientMessage(playerid,0xD2691EAA,"You are not in any bank checkpoint");
  11963. return 1;
  11964. }
  11965. if(!udb_Exists(PlayerName(playerid))) {
  11966. SendClientMessage(playerid,0xD2691EAA,"You do not have an account on this server. Type /register (your password)");
  11967. return 1;
  11968. }
  11969. if(!PLAYERLIST_authed[playerid]) {
  11970. SendClientMessage(playerid,0xD2691EAA,"You are not logged in! Type /login (your password)");
  11971. return 1;
  11972. }
  11973.  
  11974. if(UsedBankRecently[playerid] >= 1) {
  11975. SendClientMessage(playerid,0xD2691EAA,"Please wait before using the bank again");
  11976. return 1;
  11977. }
  11978. tmp = strtok(cmdtext, idx);
  11979. if(!strlen(tmp)) {
  11980. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /withdraw (amount)");
  11981. return 1;
  11982. }
  11983. new moneystowithdraw = strval(tmp);
  11984. if(!IsNumeric(tmp)) {
  11985. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /withdraw (amount) Amount must be a number");
  11986. return 1;
  11987. }
  11988.  
  11989. if(IsPlayerInCheckpoint(playerid) && !IsPlayerInAnyVehicle(playerid))
  11990. {
  11991. if(getCheckpointType(playerid) >= 27 && getCheckpointType(playerid) <= 30 || getCheckpointType(playerid) == 33)
  11992. {
  11993. if(GetPlayerMoney(playerid) + moneystowithdraw >= 1000001) {
  11994. SendClientMessage(playerid, 0xA9A9A9AA, "|_Transaction Failed_|");
  11995. format(string, sizeof(string), "You cannot fit $%d more in your pockets!",moneystowithdraw);
  11996. SendClientMessage(playerid, COLOR_ERROR, string);
  11997. return 1;
  11998. }
  11999. new pname[30];
  12000. GetPlayerName(playerid,pname,30);
  12001. if(moneystowithdraw <= 0 || moneystowithdraw >= 500001) {
  12002. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12003. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12004. format(string, sizeof(string), "|** Transaction Failed. Min/Max Withdraw amounts reached");
  12005. SendClientMessage(playerid,0x808080AA,string);
  12006. SendClientMessage(playerid,0x808080AA,"Minimum/Maximum amounts are $1 - $500000");
  12007. format(string, sizeof(string), "**(Bank F Transaction)** %s(%d) Has attempted to withdraw $%d from bank account",pname,playerid,moneystowithdraw);
  12008. ircSay(EchoConnection, EchoChan,string);
  12009. printf("%s",string);
  12010. UsedBankRecently[playerid] =5;
  12011. return 1;
  12012. }
  12013.  
  12014. BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");
  12015. if(BankCash[playerid] < moneystowithdraw) {
  12016. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12017. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12018. format(string, sizeof(string), "|** Transaction Failed. You do not have enough bank funds");
  12019. SendClientMessage(playerid,0x808080AA,string);
  12020. format(string, sizeof(string), "**(Bank NEF Transaction** %s(%d) Has attempted to withdraw $%d from bank account",pname,playerid,moneystowithdraw);
  12021. ircSay(EchoConnection, EchoChan,string);
  12022. printf("%s",string);
  12023. UsedBankRecently[playerid] =5;
  12024. return 1;
  12025. }
  12026. new whatatm = (getCheckpointType(playerid));
  12027. if(whatatm == 29 && atmcash1 < moneystowithdraw) {
  12028. SendClientMessage(playerid,0x808080AA,"|_|----- Las Venturas City Bank -----|_|");
  12029. SendClientMessage(playerid,0x808080AA,"|** This ATM does not have enough cash. Transaction Failed");
  12030. UsedBankRecently[playerid] =5;
  12031. return 1;
  12032. }
  12033. if(whatatm == 30 && atmcash2 < moneystowithdraw) {
  12034. SendClientMessage(playerid,0x808080AA,"|_|----- Las Venturas City Bank -----|_|");
  12035. SendClientMessage(playerid,0x808080AA,"|** This ATM does not have enough cash. Transaction Failed");
  12036. UsedBankRecently[playerid] =5;
  12037. return 1;
  12038. }
  12039. if(whatatm == 27 && atmcash3 < moneystowithdraw) {
  12040. SendClientMessage(playerid,0x808080AA,"|_|----- Las Venturas City Bank -----|_|");
  12041. SendClientMessage(playerid,0x808080AA,"|** This ATM does not have enough cash. Transaction Failed");
  12042. UsedBankRecently[playerid] =5;
  12043. return 1;
  12044. }
  12045. if(whatatm == 28 && atmcash4 < moneystowithdraw) {
  12046. SendClientMessage(playerid,0x808080AA,"|_|----- Las Venturas City Bank -----|_|");
  12047. SendClientMessage(playerid,0x808080AA,"|** This ATM does not have enough cash. Transaction Failed");
  12048. UsedBankRecently[playerid] =5;
  12049. return 1;
  12050. }
  12051.  
  12052. if(BankCash[playerid] >= moneystowithdraw) {
  12053. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12054. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12055. format(string, sizeof(string), "|** Mode: Transaction Reciept (Withdraw)");
  12056. SendClientMessage(playerid,0x808080AA,string);
  12057. format(string, sizeof(string), "|** Transaction Total: $%d",moneystowithdraw);
  12058. SendClientMessage(playerid,0x808080AA,string);
  12059. format(string, sizeof(string), "|** Notes: You have withdrawn $%d from your bank account",moneystowithdraw);
  12060. SendClientMessage(playerid,0x808080AA,string);
  12061. format(string, sizeof(string), "|** Bank Opening Hours: 8:00 - 21:00");
  12062. SendClientMessage(playerid,0x808080AA,string);
  12063. format(string, sizeof(string), "|** 24h ATM machines. /atmloc");
  12064. SendClientMessage(playerid,0x808080AA,string);
  12065. format(string, sizeof(string), "|_|-------------------------------------------|_|");
  12066. SendClientMessage(playerid,0xA9A9A9AA,string);
  12067. BankCash[playerid] -=moneystowithdraw;
  12068. GivePlayerMoney(playerid,moneystowithdraw);
  12069. dUserSetINT(PlayerName(playerid)).("bankcash",BankCash[playerid]);
  12070. format(string, sizeof(string), "**(Bank Transaction)** %s(%d) Has withdrawn $%d from bank account",pname,playerid,moneystowithdraw);
  12071. printf("%s",string);
  12072. ircSay(EchoConnection, EchoChan,string);
  12073. UsedBankRecently[playerid] =5;
  12074. if(whatatm == 29) {
  12075. atmcash1 -=moneystowithdraw;
  12076. return 1;
  12077. }
  12078. if(whatatm == 30) {
  12079. atmcash2 -=moneystowithdraw;
  12080. return 1;
  12081. }
  12082. if(whatatm == 27) {
  12083. atmcash3 -=moneystowithdraw;
  12084. return 1;
  12085. }
  12086. if(whatatm == 28) {
  12087. atmcash4 -=moneystowithdraw;
  12088. return 1;
  12089. }
  12090.  
  12091. return 1;
  12092. }
  12093. else{
  12094. SendClientMessage(playerid,0x808080AA,"You are not in any Bank or ATM chackpoint");
  12095. }
  12096. }
  12097. }
  12098. return 1;
  12099. }
  12100.  
  12101.  
  12102.  
  12103.  
  12104.  
  12105.  
  12106.  
  12107.  
  12108.  
  12109.  
  12110. if(strcmp(cmd, "/deposit", true) == 0) {
  12111. if(IsSpawned[playerid] == 0) {
  12112. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  12113. return 1;
  12114. }
  12115. if(Jailed[playerid] ==1) {
  12116. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  12117. return 1;
  12118. }
  12119. if(!IsPlayerInCheckpoint(playerid)) {
  12120. SendClientMessage(playerid,0xD2691EAA,"You are not in any bank checkpoint");
  12121. return 1;
  12122. }
  12123. if(!udb_Exists(PlayerName(playerid))) {
  12124. SendClientMessage(playerid,0xD2691EAA,"You do not have an account on this server. Type /register (your password)");
  12125. return 1;
  12126. }
  12127. if(!PLAYERLIST_authed[playerid]) {
  12128. SendClientMessage(playerid,0xD2691EAA,"You are not logged in! Type /login (your password)");
  12129. return 1;
  12130. }
  12131.  
  12132. if(UsedBankRecently[playerid] >= 1) {
  12133. SendClientMessage(playerid,0xD2691EAA,"Please wait before using the bank again");
  12134. return 1;
  12135. }
  12136. tmp = strtok(cmdtext, idx);
  12137. if(!strlen(tmp)) {
  12138. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /deposit (amount)");
  12139. return 1;
  12140. }
  12141. new moneystodeposit = strval(tmp);
  12142. if(!IsNumeric(tmp)) {
  12143. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /deposit (amount) Amount must be a number");
  12144. return 1;
  12145. }
  12146. if(IsPlayerInCheckpoint(playerid) && !IsPlayerInAnyVehicle(playerid))
  12147. {
  12148. if(getCheckpointType(playerid) != 33) {
  12149. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12150. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12151. SendClientMessage(playerid,0x808080AA,"You can only withdraw funds at a ATM. You can deposit cash in the bank only");
  12152. return 1;
  12153. }
  12154.  
  12155. if(IsPlayerInCheckpoint(playerid) && !IsPlayerInAnyVehicle(playerid))
  12156. {
  12157. if(getCheckpointType(playerid) == 33)
  12158. {
  12159. new pname[30];
  12160. GetPlayerName(playerid,pname,30);
  12161. if(moneystodeposit <= 0 || moneystodeposit >= 1000000) {
  12162. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12163. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12164. format(string, sizeof(string), "|** Transaction Failed. Min/Max Deposit amounts reached");
  12165. SendClientMessage(playerid,0x808080AA,string);
  12166. SendClientMessage(playerid,0x808080AA,"Minimum/Maximum amounts are $1 - $1000000");
  12167. format(string, sizeof(string), "**Bank Failed Transaction** %s(%d) Has attempted to deposit $%d into bank account",pname,playerid,moneystodeposit);
  12168. printf("%s",string);
  12169. UsedBankRecently[playerid] =10;
  12170. return 1;
  12171. }
  12172.  
  12173. //BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");
  12174. if(GetPlayerMoney(playerid) < moneystodeposit) {
  12175. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12176. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12177. format(string, sizeof(string), "|** Transaction Failed. You do not have enough funds to deposit $%d",moneystodeposit);
  12178. SendClientMessage(playerid,0x808080AA,string);
  12179. format(string, sizeof(string), "**Bank Not Enough Funds Transaction** %s(%d) Has attempted to deposit $%d into bank account",pname,playerid,moneystodeposit);
  12180. printf("%s",string);
  12181. UsedBankRecently[playerid] =10;
  12182. return 1;
  12183. }
  12184. if(GetPlayerMoney(playerid) >= moneystodeposit) {
  12185. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  12186. SendClientMessage(playerid, 0xA9A9A9AA, string);
  12187. format(string, sizeof(string), "|** Mode: Transaction Reciept (Deposit)");
  12188. SendClientMessage(playerid,0x808080AA,string);
  12189. format(string, sizeof(string), "|** Transaction Total: $%d",moneystodeposit);
  12190. SendClientMessage(playerid,0x808080AA,string);
  12191. format(string, sizeof(string), "|** Notes: You have made a deposit of $%d into your bank account",moneystodeposit);
  12192. SendClientMessage(playerid,0x808080AA,string);
  12193. format(string, sizeof(string), "|** Bank Opening Hours: 8:00 - 21:00");
  12194. SendClientMessage(playerid,0x808080AA,string);
  12195. format(string, sizeof(string), "|** 24h ATM machines. /atmloc");
  12196. SendClientMessage(playerid,0x808080AA,string);
  12197. format(string, sizeof(string), "|_|-------------------------------------------|_|");
  12198. SendClientMessage(playerid,0xA9A9A9AA,string);
  12199. BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");
  12200. GivePlayerMoney(playerid,-moneystodeposit);
  12201. BankCash[playerid] +=moneystodeposit;
  12202. dUserSetINT(PlayerName(playerid)).("bankcash",BankCash[playerid]);
  12203. format(string, sizeof(string), "**(Bank Transaction)** %s(%d) Has made a deposit of $%d into bank account",pname,playerid,moneystodeposit);
  12204. printf("%s",string);
  12205. ircSay(EchoConnection, EchoChan,string);
  12206. UsedBankRecently[playerid] =10;
  12207. }
  12208. }
  12209. }
  12210. }
  12211. return 1;
  12212. }
  12213.  
  12214.  
  12215.  
  12216. if(strcmp(cmd, "/cuff", true) == 0) {
  12217. if(IsSpawned[playerid] == 0) {
  12218. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  12219. return 1;
  12220. }
  12221. if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CASSEC) {
  12222. SendClientMessage(playerid,COLOR_ERROR,"You are not Law Enforcement");
  12223. return 1;
  12224. }
  12225. if(Jailed[playerid] ==1) {
  12226. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  12227. return 1;
  12228. }
  12229. if(InDerby[playerid] == 1) {
  12230. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  12231. return 1;
  12232. }
  12233. tmp = strtok(cmdtext, idx);
  12234. if(!strlen(tmp)) {
  12235. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cuff (id)");
  12236. return 1;
  12237. }
  12238. giveplayerid = strval(tmp);
  12239. if(!IsPlayerConnected(giveplayerid)) {
  12240. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  12241. SendClientMessage(playerid, COLOR_ERROR, string);
  12242. return 1;
  12243. }
  12244. new oname[24];
  12245. new pname[24];
  12246. GetPlayerName(playerid,oname, 24);
  12247. GetPlayerName(giveplayerid, pname, 24);
  12248.  
  12249. if(!IsNumeric(tmp)) {
  12250. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cuff (id) ID Must be a number");
  12251. return 1;
  12252. }
  12253.  
  12254. if(gTeam[giveplayerid] <= 2) {
  12255. SendClientMessage(playerid, COLOR_ERROR, "You cannot handcuff a Law Enforcement agent");
  12256. return 1;
  12257. }
  12258. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 4) {
  12259. format(string, sizeof(string), "%s(%d) Is not close enough you cannot handcuff that player",pname, giveplayerid);
  12260. SendClientMessage(playerid, COLOR_ERROR, string);
  12261. return 1;
  12262. }
  12263.  
  12264. if(InAdminMode[giveplayerid] == 1337) {
  12265. format(string, sizeof(string), "%s(%d) Is a server Admin. He / She is in Admin Mode. You cannot use this command on this player at this time",pname, giveplayerid);
  12266. SendClientMessage(playerid, COLOR_ERROR, string);
  12267. format(string, sizeof(string), "(ADMIN MODE) %s(%d) Has attempted to handcuff you. You are in Admin mode. You cannot be handcuffed",oname,playerid);
  12268. SendClientMessage(giveplayerid, 0xFF7F50AA, string);
  12269. return 1;
  12270. }
  12271. if(cuffed[giveplayerid] == 1) {
  12272. format(string, sizeof(string), "%s(%d) Is already handcuffed",pname, giveplayerid);
  12273. SendClientMessage(playerid, COLOR_ERROR, string);
  12274. return 1;
  12275. }
  12276. if(Jailed[giveplayerid] == 1) {
  12277. format(string, sizeof(string), "%s(%d) Is in jail. You cannot handcuff a prisoner",pname, giveplayerid);
  12278. SendClientMessage(playerid, COLOR_ERROR, string);
  12279. return 1;
  12280. }
  12281. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  12282. SendClientMessage(playerid, COLOR_ERROR, "You cannot handcuff a player from inside a car");
  12283. return 1;
  12284. }
  12285. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
  12286. SendClientMessage(playerid, COLOR_ERROR, "You cannot handcuff a player from inside a car");
  12287. return 1;
  12288. }
  12289. if(GetPlayerState(giveplayerid) == PLAYER_STATE_PASSENGER) {
  12290. format(string, sizeof(string), "%s(%d) Is in a vehicle. Ask the player to get out before trying to use your handcuffs", pname, giveplayerid);
  12291. SendClientMessage(playerid, COLOR_ERROR, string);
  12292. return 1;
  12293. }
  12294. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  12295. format(string, sizeof(string), "%s(%d) Is in a vehicle. Ask the player to get out before trying to use your handcuffs", pname, giveplayerid);
  12296. SendClientMessage(playerid, COLOR_ERROR, string);
  12297. return 1;
  12298. }
  12299. if(gTeam[playerid] == TEAM_CASSEC && GetPlayerWantedLevel(giveplayerid) <=3) {
  12300. SendClientMessage(playerid, COLOR_ERROR, "Casino Security agents can only handcuff suspects who have a warrant issued (Orange / Red)");
  12301. return 1;
  12302. }
  12303.  
  12304. if(GetPlayerState(giveplayerid) == PLAYER_STATE_ONFOOT) {
  12305. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Handcuffed_|");
  12306. format(string, sizeof(string), "%s(%d): Has put handcuffs on you. Use /breakcuffs to attempt an escape",oname, playerid);
  12307. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  12308. TogglePlayerControllable(giveplayerid, 0);
  12309. cuffed[giveplayerid] =1;
  12310. LoopingAnim(giveplayerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); // Taking Cover
  12311. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Handcuffed_|");
  12312. format(string, sizeof(string), "You have placed %s(%d) in handcuffs. Use /search (id) to search for illegal items", pname, giveplayerid);
  12313. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12314. format(string, sizeof(string), "DO NOT GO AWAY AND LEAVE PLAYERS HANDCUFFED. YOU WILL BE KICKED IF YOU DO", pname, giveplayerid);
  12315. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12316. }
  12317.  
  12318. if(gTeam[playerid] == TEAM_CASSEC && CasSecLastPlayerCuffed[playerid] !=giveplayerid) {
  12319. SendClientMessage(playerid, COLOR_ERROR, "Use your police radio with /cm (msg) and request Police assistance to arrest the suspect");
  12320. SendClientMessage(playerid, COLOR_ERROR, "You have received a $3500 bonus for handcuffing this player");
  12321. GivePlayerMoney(playerid,3500);
  12322. oscore = GetPlayerScore(playerid);
  12323. SetPlayerScore(playerid, oscore +1);
  12324. }
  12325. if(gTeam[playerid] == TEAM_CASSEC) {
  12326. CasSecLastPlayerCuffed[playerid] =giveplayerid;
  12327. }
  12328. return 1;
  12329. }
  12330.  
  12331.  
  12332. if(strcmp(cmd, "/uncuff", true) == 0) {
  12333. if(IsSpawned[playerid] == 0) {
  12334. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  12335. return 1;
  12336. }
  12337. if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CASSEC && PlayerAdminLevel[playerid] == 0) {
  12338. SendClientMessage(playerid,COLOR_ERROR,"You are not Law Enforcement");
  12339. return 1;
  12340. }
  12341. if(Jailed[playerid] ==1) {
  12342. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  12343. return 1;
  12344. }
  12345. if(InDerby[playerid] == 1) {
  12346. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  12347. return 1;
  12348. }
  12349. tmp = strtok(cmdtext, idx);
  12350. if(!strlen(tmp)) {
  12351. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /uncuff (id)");
  12352. return 1;
  12353. }
  12354. giveplayerid = strval(tmp);
  12355. if(!IsPlayerConnected(giveplayerid)) {
  12356. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  12357. SendClientMessage(playerid, COLOR_ERROR, string);
  12358. return 1;
  12359. }
  12360. new oname[24];
  12361. new pname[24];
  12362. GetPlayerName(playerid,oname, 24);
  12363. GetPlayerName(giveplayerid, pname, 24);
  12364.  
  12365. if(!IsNumeric(tmp)) {
  12366. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /uncuff (id) ID Must be a number");
  12367. return 1;
  12368. }
  12369. if(cuffed[giveplayerid] == 0) {
  12370. format(string, sizeof(string), "%s(%d) is not handcuffed",pname, giveplayerid);
  12371. SendClientMessage(playerid, COLOR_ERROR, string);
  12372. return 1;
  12373. }
  12374.  
  12375. //if(gTeam[giveplayerid] == 1) {
  12376. //SendClientMessage(playerid, COLOR_ERROR, "You cannot ask another Law Enforcement agent to surrender");
  12377. //return 1;
  12378. //}
  12379. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 2) {
  12380. format(string, sizeof(string), "%s(%d) is not close enough to cannot uncuff",pname, giveplayerid);
  12381. SendClientMessage(playerid, COLOR_ERROR, string);
  12382. return 1;
  12383. }
  12384. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  12385. SendClientMessage(playerid, COLOR_DODGERBLUE, "You cannot take players handcuffs off from inside a car");
  12386. return 1;
  12387. }
  12388. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
  12389. SendClientMessage(playerid, COLOR_DODGERBLUE, "You cannot handcuff a player from inside a car");
  12390. return 1;
  12391. }
  12392. if(GetPlayerState(giveplayerid) == PLAYER_STATE_PASSENGER) {
  12393. format(string, sizeof(string), "%s(%d) is in a vehicle. You cannot uncuff that player", pname, giveplayerid);
  12394. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12395. return 1;
  12396. }
  12397. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  12398. format(string, sizeof(string), "%s(%d) is in a vehicle. You cannot uncuff that player", pname, giveplayerid);
  12399. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12400. return 1;
  12401. }
  12402. if(GetPlayerState(giveplayerid) == PLAYER_STATE_ONFOOT) {
  12403. format(string, sizeof(string), "%s(%d): Has removed your handcuffs",oname, playerid);
  12404. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  12405. TogglePlayerControllable(giveplayerid, 1);
  12406. cuffed[giveplayerid] =0;
  12407. format(string, sizeof(string), "You have removed %s(%d)'s handcuffs", pname, giveplayerid);
  12408. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12409. }
  12410. return 1;
  12411. }
  12412.  
  12413. // ARMY COMMANDS
  12414.  
  12415. if(strcmp(cmd, "/handsup", true) == 0) {
  12416. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  12417. if(cuffed[playerid] == 1) {
  12418. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  12419. return 1;
  12420. }
  12421. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  12422. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  12423. return 1;
  12424. }
  12425. }
  12426.  
  12427. }
  12428.  
  12429.  
  12430.  
  12431. if(strcmp(cmd, "/dance", true) == 0) {
  12432. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  12433. if(cuffed[playerid] == 1) {
  12434. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  12435. return 1;
  12436. }
  12437.  
  12438. tmp = strtok(cmdtext, idx);
  12439. if(!strlen(tmp)) {
  12440. SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  12441. return 1;
  12442. }
  12443.  
  12444. new dancestyle = strval(tmp);
  12445. if(dancestyle < 1 || dancestyle > 3) {
  12446. SendClientMessage(playerid,COLOR_ERROR,"Usage: /dance [style 1-3]");
  12447. return 1;
  12448. }
  12449.  
  12450. if(dancestyle == 1) {
  12451. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  12452. } else if(dancestyle == 2) {
  12453. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  12454. } else if(dancestyle == 3) {
  12455. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  12456. }
  12457. return 1;
  12458. }
  12459. }
  12460.  
  12461.  
  12462. if(strcmp(cmd, "/su", true) == 0) {
  12463. if(IsSpawned[playerid] == 0) {
  12464. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  12465. return 1;
  12466. }
  12467. if(gTeam[playerid] != 2) {
  12468. SendClientMessage(playerid,COLOR_ERROR,"You are not Military Personel");
  12469. return 1;
  12470. }
  12471. if(Jailed[playerid] ==1) {
  12472. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  12473. return 1;
  12474. }
  12475. if(InDerby[playerid] == 1) {
  12476. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  12477. return 1;
  12478. }
  12479. tmp = strtok(cmdtext, idx);
  12480. if(!strlen(tmp)) {
  12481. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /su (id)");
  12482. return 1;
  12483. }
  12484. giveplayerid = strval(tmp);
  12485. if(!IsPlayerConnected(giveplayerid)) {
  12486. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  12487. SendClientMessage(playerid, COLOR_ERROR, string);
  12488. return 1;
  12489. }
  12490. new oname[24];
  12491. new pname[24];
  12492. GetPlayerName(playerid,oname, 24);
  12493. GetPlayerName(giveplayerid, pname, 24);
  12494.  
  12495. if(!IsNumeric(tmp)) {
  12496. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /su (id) ID Must be a number");
  12497. return 1;
  12498. }
  12499. if(strval(tmp) == playerid) {
  12500. SendClientMessage(playerid, COLOR_ERROR, "You cannot ask yourself to surrender");
  12501. return 1;
  12502. }
  12503.  
  12504. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 35) {
  12505. format(string, sizeof(string), "%s(%d) is not close enough you cannot ask him to surrender",pname, giveplayerid);
  12506. SendClientMessage(playerid, COLOR_ERROR, string);
  12507. return 1;
  12508. }
  12509. if(gTeam[giveplayerid] <= 2) {
  12510. SendClientMessage(playerid, COLOR_ERROR, "You cannot ask another Law Enforcement agent to surrender");
  12511. return 1;
  12512. }
  12513. if(GetPlayerState(giveplayerid) == PLAYER_STATE_ONFOOT) {
  12514. format(string, sizeof(string), "~b~SA ARMY Officer~n~ %s ~n~~w~has asked you to surrender", oname);
  12515. GameTextForPlayer(giveplayerid, string, 6000, 0);
  12516. format(string, sizeof(string), "SA ARMY Officer %s(%d): Has asked you to surrender",oname, playerid);
  12517. SendClientMessage(giveplayerid, COLOR_ROYALBLUE, string);
  12518. format(string, sizeof(string), "You have asked %s(%d) to surrender", pname, giveplayerid);
  12519. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12520. return 1;
  12521. }
  12522. if(GetPlayerState(giveplayerid) == PLAYER_STATE_PASSENGER) {
  12523. format(string, sizeof(string), "%s(%d) is a passenger in the vehicle. Ask the driver to stop", pname, giveplayerid);
  12524. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  12525. return 1;
  12526. }
  12527. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  12528. format(string, sizeof(string), "SA ARMY Officer %s(%d): Has asked you to pull over and surrender", oname,playerid);
  12529. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  12530. format(string, sizeof(string), "~b~SA ARMY Officer~n~ %s ~n~~w~has asked you to stop and surrender", oname);
  12531. GameTextForPlayer(giveplayerid, string, 6000, 0);
  12532. format(string, sizeof(string), "You asked %s(%d) to surrender. Open fire if player fails to comply as a warning", pname,giveplayerid);
  12533. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  12534. }
  12535. return 1;
  12536. }
  12537.  
  12538.  
  12539. if(strcmp(cmd,"/buycar",true)==0)
  12540. {
  12541. if(IsSpawned[playerid] == 0) {
  12542. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  12543. return 1;
  12544. }
  12545. //if(IsSpawned[playerid] == 1) {
  12546. //SendClientMessage(playerid, COLOR_ERROR, "This command has been disabled due to upgrades. Check back soon");
  12547. //return 1;
  12548. //}
  12549. if(Jailed[playerid] == 1) {
  12550. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  12551. return 1;
  12552. }
  12553. if(UsedAutoRecently[playerid] >= 1) {
  12554. SendClientMessage(playerid, COLOR_ERROR,"Please wait before using Autobahn again");
  12555. return 1;
  12556. }
  12557. if(!IsPlayerInCheckpoint(playerid)) {
  12558. SendClientMessage(playerid,COLOR_ERROR,"You need to be in the checkpoint at AutoBahn to attempt to sell a car");
  12559. return 1;
  12560. }
  12561. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19)
  12562. {
  12563. if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) {
  12564. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12565. SendClientMessage(playerid, COLOR_ERROR, "You cannot be in a car when using this command");
  12566. return 1;
  12567. }
  12568. new buyername[24];
  12569. GetPlayerName(playerid,buyername, 24);
  12570. new x_nr[256];
  12571. x_nr = strtok(cmdtext, idx);
  12572. if(!strlen(x_nr)) {
  12573. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buycar 1-12");
  12574. return 1;
  12575. }
  12576. if(strcmp(x_nr,"1",true) == 0)
  12577. {
  12578. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12579. if(GetPlayerMoney(playerid) <= 39999 && autobahnowner[playerid] == 0) {
  12580. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12581. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Sultan car ($40000)");
  12582. return 1;
  12583. }
  12584. if (autobahnowner[playerid] == 1337) {
  12585. new boughtcar;
  12586. GetPlayerName(playerid,buyername,24);
  12587. boughtcar = CreateVehicle(560, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12588. BoughtCars[boughtcar] =999;
  12589. BoughtCarsOwner[boughtcar] =playerid;
  12590. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12591. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Sultan from your AutoBahn");
  12592. UsedAutoRecently[playerid] += 90;
  12593. PutPlayerInVehicle(playerid, boughtcar, 0);
  12594. printf("**(CAR TAKEN)** %s(%d) has taken a Sultan from his AutoBahn",buyername,playerid);
  12595. return 1;
  12596. }
  12597. new boughtcar;
  12598. GetPlayerName(playerid,buyername,24);
  12599. boughtcar = CreateVehicle(560, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12600. BoughtCars[boughtcar] =999;
  12601. BoughtCarsOwner[boughtcar] =playerid;
  12602. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12603. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Sultan vehicle from AutoBahn for $40000");
  12604. GivePlayerMoney(playerid,-40000);
  12605. PutPlayerInVehicle(playerid, boughtcar, 0);
  12606. UsedAutoRecently[playerid] += 90;
  12607. printf("**(CAR PURCHASE)** %s(%d) has purchased a Sultan car from AutoBahn ($40000)",buyername,playerid);
  12608. for(new i=0;i<MAX_PLAYERS;i++)
  12609. {
  12610. if(IsPlayerConnected(i))
  12611. {
  12612. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12613. if(autobahnowner[i] == 1337)
  12614. {
  12615. new autoowner[24];
  12616. GetPlayerName(i,autoowner,24);
  12617. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12618. format(string, sizeof(string), "AutoBahn salesmen have sold a Sultan vehicle to %s(%d) - You receive $40000",buyername,playerid);
  12619. SendClientMessage(i, 0x00C7FFAA, string);
  12620. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12621. GivePlayerMoney(i,40000);
  12622. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $40000 from a Sultan car sale",autoowner,i);
  12623. }
  12624. }
  12625. }
  12626. }
  12627. else if(strcmp(x_nr,"2",true) == 0)
  12628. {
  12629. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12630. if(GetPlayerMoney(playerid) <= 59999 && autobahnowner[playerid] == 0) {
  12631. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12632. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Elegy car ($60000)");
  12633. return 1;
  12634. }
  12635. if (autobahnowner[playerid] == 1337) {
  12636. new boughtcar;
  12637. GetPlayerName(playerid,buyername,24);
  12638. boughtcar = CreateVehicle(562, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12639. BoughtCars[boughtcar] =999;
  12640. BoughtCarsOwner[boughtcar] =playerid;
  12641. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12642. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Elegy from your AutoBahn");
  12643. UsedAutoRecently[playerid] += 90;
  12644. PutPlayerInVehicle(playerid, boughtcar, 0);
  12645. printf("**(CAR TAKEN)** %s(%d) has taken a Elegy from his AutoBahn",buyername,playerid);
  12646. return 1;
  12647. }
  12648. new boughtcar;
  12649. GetPlayerName(playerid,buyername,24);
  12650. boughtcar = CreateVehicle(562, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12651. BoughtCars[boughtcar] =999;
  12652. BoughtCarsOwner[boughtcar] =playerid;
  12653. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12654. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Elegy vehicle from AutoBahn for $60000");
  12655. GivePlayerMoney(playerid,-60000);
  12656. UsedAutoRecently[playerid] += 90;
  12657. PutPlayerInVehicle(playerid, boughtcar, 0);
  12658. printf("**(CAR PURCHASE)** %s(%d) has purchased a Elegy car from AutoBahn ($60000)",buyername,playerid);
  12659. for(new i=0;i<MAX_PLAYERS;i++)
  12660. {
  12661. if(IsPlayerConnected(i))
  12662. {
  12663. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12664. if(autobahnowner[i] == 1337)
  12665. {
  12666. new autoowner[24];
  12667. GetPlayerName(i,autoowner,24);
  12668. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12669. format(string, sizeof(string), "AutoBahn salesmen have sold a Elegy vehicle to %s(%d) - You receive $60000",buyername,playerid);
  12670. SendClientMessage(i, 0x00C7FFAA, string);
  12671. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12672. GivePlayerMoney(i,60000);
  12673. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $60000 from a Elegy car sale",autoowner,i);
  12674. }
  12675. }
  12676. }
  12677. }
  12678. else if(strcmp(x_nr,"3",true) == 0)
  12679. {
  12680. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12681. if(GetPlayerMoney(playerid) <= 79999 && autobahnowner[playerid] == 0) {
  12682. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12683. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Jester car ($80000)");
  12684. return 1;
  12685. }
  12686. if (autobahnowner[playerid] == 1337) {
  12687. new boughtcar;
  12688. GetPlayerName(playerid,buyername,24);
  12689. boughtcar = CreateVehicle(559, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12690. BoughtCars[boughtcar] =999;
  12691. BoughtCarsOwner[boughtcar] =playerid;
  12692. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12693. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Jester from your AutoBahn");
  12694. UsedAutoRecently[playerid] += 90;
  12695. PutPlayerInVehicle(playerid, boughtcar, 0);
  12696. printf("**(CAR TAKEN)** %s(%d) has taken a Jester fron his AutoBahn",buyername,playerid);
  12697. return 1;
  12698. }
  12699. new boughtcar;
  12700. GetPlayerName(playerid,buyername,24);
  12701. boughtcar = CreateVehicle(559, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12702. BoughtCars[boughtcar] =999;
  12703. BoughtCarsOwner[boughtcar] =playerid;
  12704. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12705. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Jester vehicle from AutoBahn for $80000");
  12706. GivePlayerMoney(playerid,-80000);
  12707. UsedAutoRecently[playerid] += 90;
  12708. PutPlayerInVehicle(playerid, boughtcar, 0);
  12709. printf("**(CAR PURCHASE)** %s(%d) has purchased a Jester car from AutoBahn ($80000)",buyername,playerid);
  12710. for(new i=0;i<MAX_PLAYERS;i++)
  12711. {
  12712. if(IsPlayerConnected(i))
  12713. {
  12714. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12715. if(autobahnowner[i] == 1337)
  12716. {
  12717. new autoowner[24];
  12718. GetPlayerName(i,autoowner,24);
  12719. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12720. format(string, sizeof(string), "AutoBahn salesmen have sold a Jester vehicle to %s(%d) - You receive $80000",buyername,playerid);
  12721. SendClientMessage(i, 0x00C7FFAA, string);
  12722. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12723. GivePlayerMoney(i,80000);
  12724. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $80000 from a Jester car sale",autoowner,i);
  12725. }
  12726. }
  12727. }
  12728. }
  12729. else if(strcmp(x_nr,"4",true) == 0)
  12730. {
  12731. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12732. if(GetPlayerMoney(playerid) <= 99999 && autobahnowner[playerid] == 0) {
  12733. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12734. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Cheetah car ($100000)");
  12735. return 1;
  12736. }
  12737. if (autobahnowner[playerid] == 1337) {
  12738. new boughtcar;
  12739. GetPlayerName(playerid,buyername,24);
  12740. boughtcar = CreateVehicle(415, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12741. BoughtCars[boughtcar] =999;
  12742. BoughtCarsOwner[boughtcar] =playerid;
  12743. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12744. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Cheetah from your AutoBahn");
  12745. UsedAutoRecently[playerid] += 90;
  12746. PutPlayerInVehicle(playerid, boughtcar, 0);
  12747. printf("**(CAR TAKEN)** %s(%d) has taken a Cheetah from his AutoBahn",buyername,playerid);
  12748. return 1;
  12749. }
  12750. new boughtcar;
  12751. GetPlayerName(playerid,buyername,24);
  12752. boughtcar = CreateVehicle(415, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12753. BoughtCars[boughtcar] =999;
  12754. BoughtCarsOwner[boughtcar] =playerid;
  12755. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12756. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Cheetah vehicle from AutoBahn for $100000");
  12757. GivePlayerMoney(playerid,-100000);
  12758. UsedAutoRecently[playerid] += 90;
  12759. PutPlayerInVehicle(playerid, boughtcar, 0);
  12760. printf("**(CAR PURCHASE)** %s(%d) has purchased a Cheetah car from AutoBahn ($100000)",buyername,playerid);
  12761. for(new i=0;i<MAX_PLAYERS;i++)
  12762. {
  12763. if(IsPlayerConnected(i))
  12764. {
  12765. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12766. if(autobahnowner[i] == 1337)
  12767. {
  12768. new autoowner[24];
  12769. GetPlayerName(i,autoowner,24);
  12770. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12771. format(string, sizeof(string), "AutoBahn salesmen have sold a Cheetah vehicle to %s(%d) - You receive $100000",buyername,playerid);
  12772. SendClientMessage(i, 0x00C7FFAA, string);
  12773. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12774. GivePlayerMoney(i,100000);
  12775. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $100000 from a Cheetah car sale",autoowner,i);
  12776. }
  12777. }
  12778. }
  12779. }
  12780. else if(strcmp(x_nr,"5",true) == 0)
  12781. {
  12782. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12783. if(GetPlayerMoney(playerid) <= 119999 && autobahnowner[playerid] == 0) {
  12784. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12785. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Turismo car ($120000)");
  12786. return 1;
  12787. }
  12788. if (autobahnowner[playerid] == 1337) {
  12789. new boughtcar;
  12790. GetPlayerName(playerid,buyername,24);
  12791. boughtcar = CreateVehicle(451, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12792. BoughtCars[boughtcar] =999;
  12793. BoughtCarsOwner[boughtcar] =playerid;
  12794. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12795. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Turismo from your AutoBahn");
  12796. UsedAutoRecently[playerid] += 90;
  12797. PutPlayerInVehicle(playerid, boughtcar, 0);
  12798. printf("**(CAR TAKEN)** %s(%d) has taken a Turismo from his AutoBahn",buyername,playerid);
  12799. return 1;
  12800. }
  12801. new boughtcar;
  12802. GetPlayerName(playerid,buyername,24);
  12803. boughtcar = CreateVehicle(451, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12804. BoughtCars[boughtcar] =999;
  12805. BoughtCarsOwner[boughtcar] =playerid;
  12806. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12807. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Turismo vehicle from AutoBahn for $120000");
  12808. GivePlayerMoney(playerid,-120000);
  12809. UsedAutoRecently[playerid] += 90;
  12810. PutPlayerInVehicle(playerid, boughtcar, 0);
  12811. printf("**(CAR PURCHASE)** %s(%d) has purchased a Turismo car from AutoBahn ($120000)",buyername,playerid);
  12812. for(new i=0;i<MAX_PLAYERS;i++)
  12813. {
  12814. if(IsPlayerConnected(i))
  12815. {
  12816. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12817. if(autobahnowner[i] == 1337)
  12818. {
  12819. new autoowner[24];
  12820. GetPlayerName(i,autoowner,24);
  12821. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12822. format(string, sizeof(string), "AutoBahn salesmen have sold a Turismo vehicle to %s(%d) - You receive $120000",buyername,playerid);
  12823. SendClientMessage(i, 0x00C7FFAA, string);
  12824. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12825. GivePlayerMoney(i,120000);
  12826. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $120000 from a Turismo car sale",autoowner,i);
  12827. }
  12828. }
  12829. }
  12830. }
  12831. else if(strcmp(x_nr,"6",true) == 0)
  12832. {
  12833. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12834. if(GetPlayerMoney(playerid) <= 139999 && autobahnowner[playerid] == 0) {
  12835. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12836. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Infernus vehicle ($140000)");
  12837. return 1;
  12838. }
  12839. if (autobahnowner[playerid] == 1337) {
  12840. new boughtcar;
  12841. GetPlayerName(playerid,buyername,24);
  12842. boughtcar = CreateVehicle(411, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12843. BoughtCars[boughtcar] =999;
  12844. BoughtCarsOwner[boughtcar] =playerid;
  12845. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12846. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Infernus from your AutoBahn");
  12847. UsedAutoRecently[playerid] += 90;
  12848. PutPlayerInVehicle(playerid, boughtcar, 0);
  12849. printf("**(CAR TAKEN)** %s(%d) has taken a Infernus from his AutoBahn",buyername,playerid);
  12850. return 1;
  12851. }
  12852. new boughtcar;
  12853. GetPlayerName(playerid,buyername,24);
  12854. boughtcar = CreateVehicle(411, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12855. BoughtCars[boughtcar] =999;
  12856. BoughtCarsOwner[boughtcar] =playerid;
  12857. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12858. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Infernus vehicle from AutoBahn for $140000");
  12859. GivePlayerMoney(playerid,-140000);
  12860. UsedAutoRecently[playerid] += 90;
  12861. PutPlayerInVehicle(playerid, boughtcar, 0);
  12862. printf("**(CAR PURCHASE)** %s(%d) has purchased a Infernus vehicle from AutoBahn ($140000)",buyername,playerid);
  12863. for(new i=0;i<MAX_PLAYERS;i++)
  12864. {
  12865. if(IsPlayerConnected(i))
  12866. {
  12867. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12868. if(autobahnowner[i] == 1337)
  12869. {
  12870. new autoowner[24];
  12871. GetPlayerName(i,autoowner,24);
  12872. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12873. format(string, sizeof(string), "AutoBahn salesmen have sold a Infernus vehicle to %s(%d) - You receive $140000",buyername,playerid);
  12874. SendClientMessage(i, 0x00C7FFAA, string);
  12875. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12876. GivePlayerMoney(i,140000);
  12877. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $140000 from a Infernus car sale",autoowner,i);
  12878. }
  12879. }
  12880. }
  12881. }
  12882. else if(strcmp(x_nr,"7",true) == 0)
  12883. {
  12884. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12885. if(GetPlayerMoney(playerid) <= 139999 && autobahnowner[playerid] == 0) {
  12886. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12887. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a NRG500 motorbike ($140000)");
  12888. return 1;
  12889. }
  12890. if (autobahnowner[playerid] == 1337) {
  12891. new boughtcar;
  12892. GetPlayerName(playerid,buyername,24);
  12893. boughtcar = CreateVehicle(522, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12894. BoughtCars[boughtcar] =999;
  12895. BoughtCarsOwner[boughtcar] =playerid;
  12896. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12897. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a NRG500 from your AutoBahn");
  12898. UsedAutoRecently[playerid] += 90;
  12899. PutPlayerInVehicle(playerid, boughtcar, 0);
  12900. printf("**(CAR TAKEN)** %s(%d) has taken a NRG500 from his AutoBahn",buyername,playerid);
  12901. return 1;
  12902. }
  12903. new boughtcar;
  12904. GetPlayerName(playerid,buyername,24);
  12905. boughtcar = CreateVehicle(522, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12906. BoughtCars[boughtcar] =999;
  12907. BoughtCarsOwner[boughtcar] =playerid;
  12908. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12909. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a NRG500 motorbike from AutoBahn for $140000");
  12910. GivePlayerMoney(playerid,-140000);
  12911. UsedAutoRecently[playerid] += 90;
  12912. PutPlayerInVehicle(playerid, boughtcar, 0);
  12913. printf("**(CAR PURCHASE)** %s(%d) has purchased a NRG500 motorbike from AutoBahn ($140000)",buyername,playerid);
  12914. for(new i=0;i<MAX_PLAYERS;i++)
  12915. {
  12916. if(IsPlayerConnected(i))
  12917. {
  12918. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12919. if(autobahnowner[i] == 1337)
  12920. {
  12921. new autoowner[24];
  12922. GetPlayerName(i,autoowner,24);
  12923. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12924. format(string, sizeof(string), "AutoBahn salesmen have sold a NRG500 motorbike to %s(%d) - You receive $140000",buyername,playerid);
  12925. SendClientMessage(i, 0x00C7FFAA, string);
  12926. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12927. GivePlayerMoney(i,140000);
  12928. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $140000 from a NRG500 motorbike sale",autoowner,i);
  12929. }
  12930. }
  12931. }
  12932. }
  12933. /*else if(strcmp(x_nr,"9",true) == 0)
  12934. {
  12935. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  12936. if(GetPlayerMoney(playerid) <= 99 && autobahnowner[playerid] == 0) {
  12937. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  12938. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a BMX bike ($100)");
  12939. return 1;
  12940. }
  12941. if (autobahnowner[playerid] == 1337) {
  12942. new boughtcar;
  12943. GetPlayerName(playerid,buyername,24);
  12944. boughtcar = CreateVehicle(481, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12945. BoughtCars[boughtcar] =999;
  12946. BoughtCarsOwner[boughtcar] =playerid;
  12947. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  12948. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a BMX Bike from your AutoBahn");
  12949. UsedAutoRecently[playerid] += 90;
  12950. PutPlayerInVehicle(playerid, boughtcar, 0);
  12951. printf("**(CAR TAKEN)** %s(%d) has taken a BMX Bike from his AutoBahn",buyername,playerid);
  12952. return 1;
  12953. }
  12954. if (autobahnowner[playerid] == 1337) {
  12955. new boughtcar;
  12956. GetPlayerName(playerid,buyername,24);
  12957. boughtcar = CreateVehicle(481, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12958. BoughtCars[boughtcar] =999;
  12959. BoughtCarsOwner[boughtcar] =playerid;
  12960. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12961. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a BMX bike from AutoBahn for $100");
  12962. UsedAutoRecently[playerid] += 90;
  12963. PutPlayerInVehicle(playerid, boughtcar, 0);
  12964. printf("**(CAR TAKEN)** %s(%d) has taken a BMX bike from his AutoBahn",buyername,playerid);
  12965. return 1;
  12966. }
  12967. new boughtcar;
  12968. GetPlayerName(playerid,buyername,24);
  12969. boughtcar = CreateVehicle(481, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  12970. BoughtCars[boughtcar] =999;
  12971. BoughtCarsOwner[boughtcar] =playerid;
  12972. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  12973. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a BMX bike from AutoBahn for $100");
  12974. GivePlayerMoney(playerid,-100);
  12975. UsedAutoRecently[playerid] += 90;
  12976. PutPlayerInVehicle(playerid, boughtcar, 0);
  12977. printf("**(CAR PURCHASE)** %s(%d) has purchased a BMX bike from AutoBahn ($100)",buyername,playerid);
  12978. for(new i=0;i<MAX_PLAYERS;i++)
  12979. {
  12980. if(IsPlayerConnected(i))
  12981. {
  12982. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  12983. if(autobahnowner[i] == 1337)
  12984. {
  12985. new autoowner[24];
  12986. GetPlayerName(i,autoowner,24);
  12987. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  12988. format(string, sizeof(string), "AutoBahn salesmen have sold a BMX bike to %s(%d) - You receive $100",buyername,playerid);
  12989. SendClientMessage(i, 0x00C7FFAA, string);
  12990. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  12991. GivePlayerMoney(i,100);
  12992. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $100 from a BMX bike sale",autoowner,i);
  12993. }
  12994. }
  12995. }
  12996. }
  12997. */
  12998.  
  12999.  
  13000.  
  13001. else if(strcmp(x_nr,"8",true) == 0)
  13002. {
  13003. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13004. if(GetPlayerMoney(playerid) <= 49999 && autobahnowner[playerid] == 0) {
  13005. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  13006. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Uranus vehicle ($50000)");
  13007. return 1;
  13008. }
  13009. if (autobahnowner[playerid] == 1337) {
  13010. new boughtcar;
  13011. GetPlayerName(playerid,buyername,24);
  13012. boughtcar = CreateVehicle(558, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13013. BoughtCars[boughtcar] =999;
  13014. BoughtCarsOwner[boughtcar] =playerid;
  13015. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  13016. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Uranus from your AutoBahn");
  13017. UsedAutoRecently[playerid] += 90;
  13018. PutPlayerInVehicle(playerid, boughtcar, 0);
  13019. printf("**(CAR TAKEN)** %s(%d) has taken a Uranus from his AutoBahn",buyername,playerid);
  13020. return 1;
  13021. }
  13022. new boughtcar;
  13023. GetPlayerName(playerid,buyername,24);
  13024. boughtcar = CreateVehicle(558, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13025. BoughtCars[boughtcar] =999;
  13026. BoughtCarsOwner[boughtcar] =playerid;
  13027. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  13028. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Uranus vehicle from AutoBahn for $50000");
  13029. GivePlayerMoney(playerid,-50000);
  13030. UsedAutoRecently[playerid] += 90;
  13031. PutPlayerInVehicle(playerid, boughtcar, 0);
  13032. printf("**(CAR PURCHASE)** %s(%d) has purchased a Uranus car from AutoBahn ($50000)",buyername,playerid);
  13033. for(new i=0;i<MAX_PLAYERS;i++)
  13034. {
  13035. if(IsPlayerConnected(i))
  13036. {
  13037. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  13038. if(autobahnowner[i] == 1337)
  13039. {
  13040. new autoowner[24];
  13041. GetPlayerName(i,autoowner,24);
  13042. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  13043. format(string, sizeof(string), "AutoBahn salesmen have sold a Uranus vehicle to %s(%d) - You receive $50000",buyername,playerid);
  13044. SendClientMessage(i, 0x00C7FFAA, string);
  13045. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  13046. GivePlayerMoney(i,50000);
  13047. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $50000 from a Uranus car sale",autoowner,i);
  13048. }
  13049. }
  13050. }
  13051. }
  13052. else if(strcmp(x_nr,"9",true) == 0)
  13053. {
  13054. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13055. if(GetPlayerMoney(playerid) <= 59000 && autobahnowner[playerid] == 0) {
  13056. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  13057. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Phoneix vehicle ($60000)");
  13058. return 1;
  13059. }
  13060. if (autobahnowner[playerid] == 1337) {
  13061. new boughtcar;
  13062. GetPlayerName(playerid,buyername,24);
  13063. boughtcar = CreateVehicle(603, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13064. BoughtCars[boughtcar] =999;
  13065. BoughtCarsOwner[boughtcar] =playerid;
  13066. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  13067. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Phoneix from your AutoBahn");
  13068. UsedAutoRecently[playerid] += 90;
  13069. PutPlayerInVehicle(playerid, boughtcar, 0);
  13070. printf("**(CAR TAKEN)** %s(%d) has taken a Phoneix from his AutoBahn",buyername,playerid);
  13071. return 1;
  13072. }
  13073. new boughtcar;
  13074. GetPlayerName(playerid,buyername,24);
  13075. boughtcar = CreateVehicle(603, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13076. BoughtCars[boughtcar] =999;
  13077. BoughtCarsOwner[boughtcar] =playerid;
  13078. UsedAutoRecently[playerid] += 90;
  13079. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  13080. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Phoneix vehicle from AutoBahn for $60000");
  13081. GivePlayerMoney(playerid,-60000);
  13082. PutPlayerInVehicle(playerid, boughtcar, 0);
  13083. printf("**(CAR PURCHASE)** %s(%d) has purchased a Phoneix car from AutoBahn ($60000)",buyername,playerid);
  13084. for(new i=0;i<MAX_PLAYERS;i++)
  13085. {
  13086. if(IsPlayerConnected(i))
  13087. {
  13088. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  13089. if(autobahnowner[i] == 1337)
  13090. {
  13091. new autoowner[24];
  13092. GetPlayerName(i,autoowner,24);
  13093. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  13094. format(string, sizeof(string), "AutoBahn salesmen have sold a Phoneix vehicle to %s(%d) - You receive $60000",buyername,playerid);
  13095. SendClientMessage(i, 0x00C7FFAA, string);
  13096. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  13097. GivePlayerMoney(i,60000);
  13098. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $60000 from a Phoneix car sale",autoowner,i);
  13099. }
  13100. }
  13101. }
  13102. }
  13103. else if(strcmp(x_nr,"10",true) == 0)
  13104. {
  13105. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13106. if(GetPlayerMoney(playerid) <= 34999 && autobahnowner[playerid] == 0) {
  13107. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  13108. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Blade vehicle ($35000)");
  13109. return 1;
  13110. }
  13111. if (autobahnowner[playerid] == 1337) {
  13112. new boughtcar;
  13113. GetPlayerName(playerid,buyername,24);
  13114. boughtcar = CreateVehicle(536, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13115. BoughtCars[boughtcar] =999;
  13116. BoughtCarsOwner[boughtcar] =playerid;
  13117. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  13118. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Blade from your AutoBahn");
  13119. UsedAutoRecently[playerid] += 90;
  13120. PutPlayerInVehicle(playerid, boughtcar, 0);
  13121. printf("**(CAR TAKEN)** %s(%d) has taken a Blade from his AutoBahn",buyername,playerid);
  13122. return 1;
  13123. }
  13124. new boughtcar;
  13125. GetPlayerName(playerid,buyername,24);
  13126. boughtcar = CreateVehicle(536, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13127. BoughtCars[boughtcar] =999;
  13128. BoughtCarsOwner[boughtcar] =playerid;
  13129. UsedAutoRecently[playerid] += 90;
  13130. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  13131. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Blade vehicle from AutoBahn for $35000");
  13132. GivePlayerMoney(playerid,-35000);
  13133. PutPlayerInVehicle(playerid, boughtcar, 0);
  13134. printf("**(CAR PURCHASE)** %s(%d) has purchased a Blade car from AutoBahn ($35000)",buyername,playerid);
  13135. for(new i=0;i<MAX_PLAYERS;i++)
  13136. {
  13137. if(IsPlayerConnected(i))
  13138. {
  13139. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  13140. if(autobahnowner[i] == 1337)
  13141. {
  13142. new autoowner[24];
  13143. GetPlayerName(i,autoowner,24);
  13144. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  13145. format(string, sizeof(string), "AutoBahn salesmen have sold a Blade vehicle to %s(%d) - You receive $35000",buyername,playerid);
  13146. SendClientMessage(i, 0x00C7FFAA, string);
  13147. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  13148. GivePlayerMoney(i,35000);
  13149. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $35000 from a Blade car sale",autoowner,i);
  13150. }
  13151. }
  13152. }
  13153. }
  13154. else if(strcmp(x_nr,"11",true) == 0)
  13155. {
  13156. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13157. if(GetPlayerMoney(playerid) <= 249999 && autobahnowner[playerid] == 0) {
  13158. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  13159. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Turismo GT vehicle ($250000)");
  13160. return 1;
  13161. }
  13162. if (autobahnowner[playerid] == 1337) {
  13163. new boughtcar;
  13164. GetPlayerName(playerid,buyername,24);
  13165. boughtcar = CreateVehicle(506, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13166. BoughtCars[boughtcar] =999;
  13167. BoughtCarsOwner[boughtcar] =playerid;
  13168. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  13169. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Turismo GT from your AutoBahn");
  13170. UsedAutoRecently[playerid] += 90;
  13171. PutPlayerInVehicle(playerid, boughtcar, 0);
  13172. printf("**(CAR TAKEN)** %s(%d) has taken a Turismo GT from his AutoBahn",buyername,playerid);
  13173. return 1;
  13174. }
  13175. new boughtcar;
  13176. GetPlayerName(playerid,buyername,24);
  13177. boughtcar = CreateVehicle(506, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13178. BoughtCars[boughtcar] =999;
  13179. BoughtCarsOwner[boughtcar] =playerid;
  13180. UsedAutoRecently[playerid] += 90;
  13181. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  13182. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Turisomo GT vehicle from AutoBahn for $250000");
  13183. GivePlayerMoney(playerid,-250000);
  13184. PutPlayerInVehicle(playerid, boughtcar, 0);
  13185. printf("**(CAR PURCHASE)** %s(%d) has purchased a Turismo GT car from AutoBahn ($250000)",buyername,playerid);
  13186. for(new i=0;i<MAX_PLAYERS;i++)
  13187. {
  13188. if(IsPlayerConnected(i))
  13189. {
  13190. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  13191. if(autobahnowner[i] == 1337)
  13192. {
  13193. new autoowner[24];
  13194. GetPlayerName(i,autoowner,24);
  13195. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  13196. format(string, sizeof(string), "AutoBahn salesmen have sold a Turismo GT vehicle to %s(%d) - You receive $250000",buyername,playerid);
  13197. SendClientMessage(i, 0x00C7FFAA, string);
  13198. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  13199. GivePlayerMoney(i,250000);
  13200. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $250000 from a Turismo GT car sale",autoowner,i);
  13201. }
  13202. }
  13203. }
  13204. }
  13205. else if(strcmp(x_nr,"12",true) == 0)
  13206. {
  13207. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13208. if(GetPlayerMoney(playerid) <= 74999 && autobahnowner[playerid] == 0) {
  13209. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
  13210. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Freeway Bike ($75000)");
  13211. return 1;
  13212. }
  13213. if (autobahnowner[playerid] == 1337) {
  13214. new boughtcar;
  13215. GetPlayerName(playerid,buyername,24);
  13216. boughtcar = CreateVehicle(463, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13217. BoughtCars[boughtcar] =999;
  13218. BoughtCarsOwner[boughtcar] =playerid;
  13219. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Taken_|");
  13220. SendClientMessage(playerid, 0x00C7FFAA, "You have taken a Freeway Bike from your AutoBahn");
  13221. UsedAutoRecently[playerid] += 90;
  13222. PutPlayerInVehicle(playerid, boughtcar, 0);
  13223. printf("**(CAR TAKEN)** %s(%d) has taken a Freeway Bike from his AutoBahn",buyername,playerid);
  13224. return 1;
  13225. }
  13226. new boughtcar;
  13227. GetPlayerName(playerid,buyername,24);
  13228. boughtcar = CreateVehicle(463, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
  13229. BoughtCars[boughtcar] =999;
  13230. BoughtCarsOwner[boughtcar] =playerid;
  13231. UsedAutoRecently[playerid] += 90;
  13232. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
  13233. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Freeway Bike vehicle from AutoBahn for $250000");
  13234. GivePlayerMoney(playerid,-75000);
  13235. PutPlayerInVehicle(playerid, boughtcar, 0);
  13236. printf("**(CAR PURCHASE)** %s(%d) has purchased a Freeway bike car from AutoBahn ($75000)",buyername,playerid);
  13237. for(new i=0;i<MAX_PLAYERS;i++)
  13238. {
  13239. if(IsPlayerConnected(i))
  13240. {
  13241. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  13242. if(autobahnowner[i] == 1337)
  13243. {
  13244. new autoowner[24];
  13245. GetPlayerName(i,autoowner,24);
  13246. SendClientMessage(i, 0xA9A9A9AA, "|_Vehicle Sold_|");
  13247. format(string, sizeof(string), "AutoBahn salesmen have sold a Freeway Bike vehicle to %s(%d) - You receive $75000",buyername,playerid);
  13248. SendClientMessage(i, 0x00C7FFAA, string);
  13249. SendClientMessage(i, 0x00C7FFAA, "You can sell the AutoBahn business to a player using /sellautobahn (id)");
  13250. GivePlayerMoney(i,75000);
  13251. printf("**(CAR PURCHASE CASH)** AutoBahn owner %s(%d) has received $750000 from a Freeway Bike sale",autoowner,i);
  13252. }
  13253. }
  13254. }
  13255. }
  13256. else
  13257. {
  13258. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buycar 1-12");
  13259.  
  13260. return 1;
  13261. }
  13262.  
  13263. }
  13264. return 1;
  13265. }
  13266.  
  13267.  
  13268.  
  13269.  
  13270.  
  13271.  
  13272.  
  13273.  
  13274.  
  13275.  
  13276. if(strcmp(cmd,"/refill",true)==0)
  13277. {
  13278. if(IsSpawned[playerid] == 0) {
  13279. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13280. return 1;
  13281. }
  13282. if(Jailed[playerid] == 1) {
  13283. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13284. return 1;
  13285. }
  13286. if(gTeam[playerid] >= 3) {
  13287. SendClientMessage(playerid, COLOR_ERROR, "Only Police officers and Army can refill their weapons");
  13288. return 1;
  13289. }
  13290. if(!IsPlayerInCheckpoint(playerid)) {
  13291. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint at LVPD (Bottom Floor) to refill weapons");
  13292. return 1;
  13293. }
  13294.  
  13295. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 34)
  13296. {
  13297. if(CopWaitBetweenRefills[playerid] >= 1)
  13298. {
  13299. SendClientMessage(playerid, COLOR_ERROR, "Please wait before refilling your weapons");
  13300. return 1;
  13301. }
  13302. new copname[24];
  13303. GetPlayerName(playerid,copname, 24);
  13304. new x_nr[256];
  13305. x_nr = strtok(cmdtext, idx);
  13306. if(!strlen(x_nr)) {
  13307. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /refill 1-4");
  13308. return 1;
  13309. }
  13310. if(strcmp(x_nr,"1",true) == 0)
  13311. {
  13312. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Received_|");
  13313. SendClientMessage(playerid, 0x00C7FFAA, "You have received a Pistol weapon with 150 Ammo from LVPD");
  13314. GivePlayerWeapon(playerid,22,150);
  13315. CopWaitBetweenRefills[playerid] =120;
  13316. format(string, sizeof(string), "%s(%d) Has received a Pistol weapon with 150 Ammo from LVPD",copname,playerid);
  13317. printf("%s", string);
  13318. }
  13319. else if(strcmp(x_nr,"2",true) == 0)
  13320. {
  13321. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Received_|");
  13322. SendClientMessage(playerid, 0x00C7FFAA, "You have received a Shotgun weapon with 50 Ammo from LVPD");
  13323. GivePlayerWeapon(playerid,25,50);
  13324. CopWaitBetweenRefills[playerid] =120;
  13325. format(string, sizeof(string), "%s(%d) Has received a Shotgun weapon with 50 Ammo from LVPD",copname,playerid);
  13326. printf("%s", string);
  13327. }
  13328. else if(strcmp(x_nr,"3",true) == 0)
  13329. {
  13330.  
  13331. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Received_|");
  13332. SendClientMessage(playerid, 0x00C7FFAA, "You have received a MP5 weapon with 500 Ammo from LVPD");
  13333. GivePlayerWeapon(playerid,29,500);
  13334. CopWaitBetweenRefills[playerid] =120;
  13335. format(string, sizeof(string), "%s(%d) Has received a MP5 weapon with 500 Ammo from LVPD",copname,playerid);
  13336. printf("%s", string);
  13337.  
  13338. }
  13339. else if(strcmp(x_nr,"4",true) == 0)
  13340. {
  13341. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapon Received_|");
  13342. SendClientMessage(playerid, 0x00C7FFAA, "You have received a Parachute from LVPD");
  13343. GivePlayerWeapon(playerid,46,1);
  13344. CopWaitBetweenRefills[playerid] =120;
  13345. format(string, sizeof(string), "%s(%d) Has received a Parachute from LVPD",copname,playerid);
  13346. printf("%s", string);
  13347. }
  13348. else
  13349. {
  13350. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /refill (1-4)");
  13351.  
  13352. return 1;
  13353. }
  13354.  
  13355. }
  13356. return 1;
  13357. }
  13358.  
  13359.  
  13360. if(strcmp(cmd, "/medic", true) == 0) {
  13361. if(IsSpawned[playerid] == 0) {
  13362. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13363. return 1;
  13364. }
  13365. if(gTeam[playerid] == TEAM_MEDIC) {
  13366. SendClientMessage(playerid,COLOR_ERROR,"You are a Medic. Type /healme or /cureme");
  13367. return 1;
  13368. }
  13369. if(gTeam[playerid] == TEAM_PVTMED) {
  13370. SendClientMessage(playerid,COLOR_ERROR,"You are a Private Medic. Type /healme or /cureme");
  13371. return 1;
  13372. }
  13373. if (!GetPlayersInTeam(TEAM_MEDIC) && !GetPlayersInTeam(TEAM_PVTMED)) {
  13374. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Medics");
  13375. return 1;
  13376. }
  13377. SendClientMessage(playerid, COLOR_DODGERBLUE, "You have called a medic");
  13378. for(new i=0;i<MAX_PLAYERS;i++)
  13379. {
  13380. if(IsPlayerConnected(i))
  13381. {
  13382. if(gTeam[i] == TEAM_MEDIC || gTeam[i] == TEAM_PVTMED ) {
  13383. new pname[24];
  13384. GetPlayerName(playerid, pname, 24);
  13385. new current_zone;
  13386. current_zone = player_zone[playerid];
  13387. format(string, sizeof(string), "%s(%d) Has requested a medic. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  13388. SendClientMessage(i, COLOR_FORESTGREEN, string);
  13389.  
  13390. wantsheal[playerid] =1;
  13391. wantscure[playerid] =1;
  13392. }
  13393. }
  13394. }
  13395. return 1;
  13396. }
  13397.  
  13398.  
  13399. if(strcmp(cmd, "/onduty", true) == 0) {
  13400. if(IsSpawned[playerid] == 0) {
  13401. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13402. return 1;
  13403. }
  13404. if(Jailed[playerid] ==1) {
  13405. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13406. return 1;
  13407. }
  13408. if(gTeam[playerid] != TEAM_DRIVER) {
  13409. SendClientMessage(playerid, COLOR_ERROR, "Only drivers can use this command");
  13410. return 1;
  13411. }
  13412. if(Driveronduty[playerid] == 1) {
  13413. SendClientMessage(playerid, COLOR_ERROR, "You are already on duty");
  13414. return 1;
  13415. }
  13416. if(!IsPlayerInAnyVehicle(playerid)) {
  13417. SendClientMessage(playerid, COLOR_ERROR, "You are not in any drivers vehicle");
  13418. return 1;
  13419. }
  13420. if(GetPlayerWantedLevel(playerid) >= 1) {
  13421. SendClientMessage(playerid, COLOR_ERROR, "You must be innocent to go on duty as a driver");
  13422. return 1;
  13423. }
  13424. if(IsPlayerInAnyVehicle(playerid))
  13425. {
  13426. new vehicleid = GetPlayerVehicleID(playerid);
  13427. if(GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 431 || GetVehicleModel(vehicleid) == 409)
  13428. {
  13429. new drivername[30];
  13430. GetPlayerName(playerid,drivername,30);
  13431. format(string, sizeof(string), "Driver %s(%d) Is now on duty. Type /taxi to call a driver",drivername,playerid);
  13432. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  13433. Driveronduty[playerid] =1;
  13434. }
  13435. else {
  13436. SendClientMessage(playerid, COLOR_ERROR, "You are not in any drivers vehicle");
  13437. }
  13438. }
  13439. return 1;
  13440. }
  13441.  
  13442.  
  13443.  
  13444. if(strcmp(cmd, "/offduty", true) == 0) {
  13445. if(IsSpawned[playerid] == 0) {
  13446. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13447. return 1;
  13448. }
  13449. if(Jailed[playerid] ==1) {
  13450. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13451. return 1;
  13452. }
  13453. if(gTeam[playerid] != TEAM_DRIVER) {
  13454. SendClientMessage(playerid, COLOR_ERROR, "Only drivers can use this command");
  13455. return 1;
  13456. }
  13457. if(Driveronduty[playerid] == 0) {
  13458. SendClientMessage(playerid, COLOR_ERROR, "You are not on duty");
  13459. return 1;
  13460. }
  13461. if(Driveronduty[playerid] == 1)
  13462. {
  13463. new drivername[30];
  13464. GetPlayerName(playerid,drivername,30);
  13465. format(string, sizeof(string), "Driver %s(%d) is off duty",drivername,playerid);
  13466. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  13467. Driveronduty[playerid] =0;
  13468. new taxiid = GetPlayerVehicleID(playerid);
  13469. for(new i=0;i<MAX_PLAYERS;i++)
  13470. {
  13471. if(IsPlayerInVehicle(i,taxiid) && GetPlayerState(i) == PLAYER_STATE_PASSENGER)
  13472. {
  13473. RemovePlayerFromVehicle(i);
  13474. Taxipass[i] =0;
  13475. }
  13476. }
  13477. }
  13478. return 1;
  13479. }
  13480.  
  13481.  
  13482.  
  13483. if(strcmp(cmd, "/taxi", true) == 0) {
  13484. if(IsSpawned[playerid] == 0) {
  13485. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13486. return 1;
  13487. }
  13488. if(Jailed[playerid] ==1) {
  13489. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13490. return 1;
  13491. }
  13492. if(IsPlayerInAnyVehicle(playerid)) {
  13493. SendClientMessage(playerid, COLOR_ERROR, "You cannot call a taxi if you are in a vehicle");
  13494. return 1;
  13495. }
  13496. if (!GetPlayersInTeam(TEAM_DRIVER)) {
  13497. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Drivers");
  13498. return 1;
  13499. }
  13500. if(GetPlayersInTeam(TEAM_DRIVER) >=1) {
  13501. SendClientMessage(playerid, 0xA9A9A9AA, "|_Driver Called_|");
  13502. SendClientMessage(playerid, COLOR_DARKOLIVEGREEN, "You have called a driver to your location. Please wait");
  13503. for(new i=0;i<MAX_PLAYERS;i++)
  13504. {
  13505. if(gTeam[i] == TEAM_DRIVER) {
  13506. new pname[24];
  13507. GetPlayerName(playerid, pname, 24);
  13508. new current_zone;
  13509. current_zone = player_zone[playerid];
  13510. SendClientMessage(i, 0xA9A9A9AA, "|_Driver Requested_|");
  13511. format(string, sizeof(string), "%s(%d) Has requested a driver. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  13512. SendClientMessage(i, COLOR_DARKOLIVEGREEN, string);
  13513. }
  13514. }
  13515. }
  13516. return 1;
  13517. }
  13518.  
  13519.  
  13520. if(strcmp(cmd, "/sellautobahn", true) == 0) {
  13521. if(IsSpawned[playerid] == 0) {
  13522. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13523. return 1;
  13524. }
  13525. if(Jailed[playerid] == 1) {
  13526. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13527. return 1;
  13528. }
  13529. autobahnowner[playerid]=dUserINT(PlayerName(playerid)).("autobahnowner");
  13530.  
  13531. if(autobahnowner[playerid] == 0) {
  13532. SendClientMessage(playerid,COLOR_ERROR,"You are not the current owner of the AutoBahn business");
  13533. return 1;
  13534. }
  13535. if(autobahnowner[playerid] == 1337)
  13536. {
  13537. tmp = strtok(cmdtext, idx);
  13538. if(!strlen(tmp)) {
  13539. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellautobahn (id)");
  13540. return 1;
  13541. }
  13542. giveplayerid = strval(tmp);
  13543. if(!IsNumeric(tmp)) {
  13544. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sellautobahn (id) ID Must be a number");
  13545. return 1;
  13546. }
  13547. if(!IsPlayerConnected(giveplayerid)) {
  13548. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  13549. SendClientMessage(playerid, COLOR_ERROR, string);
  13550. return 1;
  13551. }
  13552. if(strval(tmp) == playerid) {
  13553. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell your business to yourself");
  13554. return 1;
  13555. }
  13556. if(!udb_Exists(PlayerName(giveplayerid))) {
  13557. SendClientMessage(playerid,COLOR_ERROR,"That player does not have any account on our server. Cannot sell to that player");
  13558. return 1;
  13559. }
  13560. if(!PLAYERLIST_authed[giveplayerid]) {
  13561. SendClientMessage(playerid,COLOR_ERROR,"That player is not logged into their account. Cannot sell to that player");
  13562. return 1;
  13563. }
  13564. new oldowner[30];
  13565. new newowner[30];
  13566. GetPlayerName(playerid,oldowner,30);
  13567. GetPlayerName(giveplayerid,newowner,30);
  13568. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10) {
  13569. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot give that player the official papers",newowner,giveplayerid);
  13570. SendClientMessage(playerid, COLOR_ERROR, string);
  13571. return 1;
  13572. }
  13573. autobahnowner[playerid] =0;
  13574. dUserSetINT(PlayerName(playerid)).("autobahnowner",autobahnowner[playerid]);
  13575. autobahnowner[giveplayerid] =1337;
  13576. dUserSetINT(PlayerName(giveplayerid)).("autobahnowner",autobahnowner[giveplayerid]);
  13577.  
  13578. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Business Sold_|");
  13579. format(string, sizeof(string), "You have sold the AutoBahn business to %s(%d) - You are no longer the owner of AutoBahn",newowner,giveplayerid);
  13580. SendClientMessage(playerid,0x00C7FFAA, string);
  13581.  
  13582. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_AutoBahn Business Purchased_|");
  13583. format(string, sizeof(string), "You have purchased the AutoBahn business from %s(%d) | Use /sellautobahn (id) to sell the business",oldowner,playerid);
  13584. SendClientMessage(giveplayerid,0x00C7FFAA, string);
  13585. SendClientMessage(giveplayerid,0x00C7FFAA,"If a player buys a vehicle from AutoBahn, you will get the full amount of the sale in your pocket");
  13586. SendClientMessage(giveplayerid,0x00C7FFAA,"You will only be paid if you are online and logged into your account at the time of the sale");
  13587.  
  13588. format(string, sizeof(string), "AutoBahn owner %s(%d) has sold the car showroom business to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  13589. SendClientMessageToAll(0x00C7FFAA, string);
  13590. printf("**(Auto Bahn Sold)** %s(%d) has sold AutoBahn to %s(%d)",oldowner,playerid,newowner,giveplayerid);
  13591. }
  13592.  
  13593. return 1;
  13594. }
  13595.  
  13596.  
  13597. if(strcmp(cmd,"/buy",true)==0)
  13598. {
  13599. if(IsSpawned[playerid] == 0) {
  13600. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13601. return 1;
  13602. }
  13603. if(!IsPlayerInCheckpoint(playerid)) {
  13604. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint inside a 24/7 store to use this command");
  13605. return 1;
  13606. }
  13607. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 46) {
  13608. SendClientMessage(playerid,COLOR_ERROR,"You have to be in the checkpoint inside a 24/7 store to use this command");
  13609. return 1;
  13610. }
  13611. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 46)
  13612. {
  13613. new buyername[24];
  13614. GetPlayerName(playerid,buyername, 24);
  13615. new x_nr[256];
  13616. x_nr = strtok(cmdtext, idx);
  13617. if(!strlen(x_nr)) {
  13618. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buy 1-7");
  13619. return 1;
  13620. }
  13621. if(strcmp(x_nr,"1",true) == 0)
  13622. {
  13623. if(GetPlayerMoney(playerid) <= 1499) {
  13624. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13625. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Chainsaw ($2000)");
  13626. return 1;
  13627. }
  13628.  
  13629.  
  13630. GivePlayerMoney(playerid,-1500);
  13631. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13632. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Chainsaw. You were charged $1500");
  13633. GivePlayerWeapon(playerid,9,1);
  13634.  
  13635. }
  13636. else if(strcmp(x_nr,"2",true) == 0)
  13637. {
  13638. if(GetPlayerMoney(playerid) <= 4) {
  13639. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13640. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy flowers ($5)");
  13641.  
  13642. return 1;
  13643. }
  13644.  
  13645.  
  13646. GivePlayerMoney(playerid,-5);
  13647. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13648. SendClientMessage(playerid, 0x00C7FFAA, "You have bought flowers. You were charged $5");
  13649. GivePlayerWeapon(playerid,14,1);
  13650. }
  13651. else if(strcmp(x_nr,"3",true) == 0)
  13652. {
  13653.  
  13654. if(GetPlayerMoney(playerid) <= 99) {
  13655. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13656. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Baseball Bat ($100)");
  13657. return 1;
  13658. }
  13659.  
  13660.  
  13661. GivePlayerMoney(playerid,-100);
  13662. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13663. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Baseball Bat. You were charged $100");
  13664. GivePlayerWeapon(playerid,5,1);
  13665.  
  13666. }
  13667. else if(strcmp(x_nr,"4",true) == 0)
  13668. {
  13669. if(GetPlayerMoney(playerid) <= 19) {
  13670. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13671. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy Beer ($20)");
  13672. return 1;
  13673. }
  13674.  
  13675.  
  13676. GivePlayerMoney(playerid,-20);
  13677. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13678. SendClientMessage(playerid, 0x00C7FFAA, "You have bought Beer. You were charged $20");
  13679. new Float:beerhealth;
  13680. GetPlayerHealth(playerid,beerhealth);
  13681. if(beerhealth <=95) {
  13682. SetPlayerHealth(playerid,beerhealth+5);
  13683. }
  13684.  
  13685. }
  13686. else if(strcmp(x_nr,"5",true) == 0)
  13687. {
  13688. if(GetPlayerMoney(playerid) <= 999) {
  13689. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13690. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Wallet ($1000)");
  13691. return 1;
  13692. }
  13693. if(HasWallet[playerid] >= 1) {
  13694. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13695. SendClientMessage(playerid, COLOR_ERROR, "You already have a Wallet");
  13696. return 1;
  13697. }
  13698.  
  13699. GivePlayerMoney(playerid,-1000);
  13700. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13701. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Wallet. You were charged $1000");
  13702. SendClientMessage(playerid, 0x00C7FFAA, "You can be robbed upto 3 times and not loose any cash");
  13703. HasWallet[playerid] =3;
  13704.  
  13705. }
  13706. else if(strcmp(x_nr,"6",true) == 0)
  13707. {
  13708. if(GetPlayerMoney(playerid) <= 499) {
  13709. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13710. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Parachute ($500)");
  13711. return 1;
  13712. }
  13713.  
  13714. GivePlayerMoney(playerid,-500);
  13715. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13716. SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Parachute. You were charged $500");
  13717. GivePlayerWeapon(playerid,46,1);
  13718. }
  13719. else if(strcmp(x_nr,"7",true) == 0)
  13720. {
  13721. if(GetPlayerMoney(playerid) <= 3999) {
  13722. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13723. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy some rope ($4000)");
  13724. return 1;
  13725. }
  13726. if(gotRope[playerid] == 1) {
  13727. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13728. SendClientMessage(playerid, 0x00C7FFAA, "You already have some rope.");
  13729. }
  13730.  
  13731. GivePlayerMoney(playerid,-4000);
  13732. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13733. SendClientMessage(playerid, 0x00C7FFAA, "You have bought some rope. You were charged $4000");
  13734. gotRope[playerid] =1;
  13735. }
  13736. else if(strcmp(x_nr,"8",true) == 0)
  13737. {
  13738. if(GetPlayerMoney(playerid) <= 999) {
  13739. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
  13740. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a pair of rusty sissors. ($1000)");
  13741. return 1;
  13742. }
  13743.  
  13744.  
  13745. GivePlayerMoney(playerid,-1000);
  13746. SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
  13747. SendClientMessage(playerid, 0x00C7FFAA, "You have bought rusty sissors.. You were charged $1000");
  13748. gotSissors[playerid] =1;
  13749. }
  13750. else
  13751. {
  13752. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /buy 1-8");
  13753.  
  13754. return 1;
  13755. }
  13756.  
  13757. }
  13758. return 1;
  13759. }
  13760.  
  13761.  
  13762. if(strcmp(cmd, "/heal", true) == 0) {
  13763. if(IsSpawned[playerid] == 0) {
  13764. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13765. return 1;
  13766. }
  13767. if(Jailed[playerid] == 1) {
  13768. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13769. return 1;
  13770. }
  13771. if(gTeam[playerid] != TEAM_MEDIC && gTeam[playerid] != TEAM_PVTMED ) {
  13772. SendClientMessage(playerid,COLOR_ERROR,"You are not a medic");
  13773. return 1;
  13774. }
  13775. if(InDerby[playerid] == 1) {
  13776. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  13777. return 1;
  13778. }
  13779. tmp = strtok(cmdtext, idx);
  13780. if(!strlen(tmp)) {
  13781. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /heal (id)");
  13782. return 1;
  13783. }
  13784. giveplayerid = strval(tmp);
  13785. if(!IsNumeric(tmp)) {
  13786. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /heal (id) ID Must be a number");
  13787. return 1;
  13788. }
  13789. new mname[24];
  13790. new pname[24];
  13791. GetPlayerName(playerid,mname, 24);
  13792. GetPlayerName(giveplayerid, pname, 24);
  13793. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  13794. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot heal that player",pname,giveplayerid);
  13795. SendClientMessage(playerid, COLOR_ERROR, string);
  13796. return 1;
  13797. }
  13798. if(wantsheal[giveplayerid] == 0) {
  13799. format(string, sizeof(string), "Medic %s(%d) has attempted to heal you. Type /medic if you need a Medic",mname,playerid);
  13800. SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
  13801. format(string, sizeof(string), "%s(%d) has not asked for a medic. You cannot heal that player", pname,giveplayerid);
  13802. SendClientMessage(playerid,COLOR_ERROR, string);
  13803. }
  13804. else
  13805. if(wantsheal[giveplayerid] == 1) {
  13806. new mrand = random(3500);
  13807. oscore = GetPlayerScore(playerid);
  13808. SendClientMessage(giveplayerid,0xA9A9A9AA, "|_Health Restored_|");
  13809. format(string, sizeof(string), "Medic %s(%d) has healed you for $%d",mname,playerid,mrand);
  13810. SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
  13811. SendClientMessage(playerid,0xA9A9A9AA, "|_Player Health Restored_|");
  13812. format(string, sizeof(string), "%s(%d) has been healed. You earned $%d", pname,giveplayerid,mrand);
  13813. SendClientMessage(playerid,COLOR_FORESTGREEN, string);
  13814. SetPlayerHealth(giveplayerid,100);
  13815. GivePlayerMoney(giveplayerid,-mrand);
  13816. GivePlayerMoney(playerid,mrand);
  13817. SetPlayerScore(playerid, oscore +1);
  13818. wantsheal[giveplayerid] =0;
  13819. }
  13820. return 1;
  13821. }
  13822.  
  13823. if(strcmp(cmd, "/cure", true) == 0) {
  13824. if(IsSpawned[playerid] == 0) {
  13825. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13826. return 1;
  13827. }
  13828. if(Jailed[playerid] == 1) {
  13829. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13830. return 1;
  13831. }
  13832. if(InDerby[playerid] == 1) {
  13833. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  13834. return 1;
  13835. }
  13836. if(gTeam[playerid] != TEAM_MEDIC && gTeam[playerid] != TEAM_PVTMED ) {
  13837. SendClientMessage(playerid,COLOR_ERROR,"You are not a Medic / Private Medic");
  13838. return 1;
  13839. }
  13840. tmp = strtok(cmdtext, idx);
  13841. if(!strlen(tmp)) {
  13842. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cure (id)");
  13843. return 1;
  13844. }
  13845. giveplayerid = strval(tmp);
  13846. if(!IsNumeric(tmp)) {
  13847. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cure (id) ID Must be a number");
  13848. return 1;
  13849. }
  13850. new mname[24];
  13851. new pname[24];
  13852. GetPlayerName(playerid,mname, 24);
  13853. GetPlayerName(giveplayerid, pname, 24);
  13854. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  13855. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot cure that player",pname,giveplayerid);
  13856. SendClientMessage(playerid, COLOR_ERROR, string);
  13857. return 1;
  13858. }
  13859. if(Chlamydia[giveplayerid] == 0 && Salmonella[giveplayerid] == 0) {
  13860. format(string, sizeof(string), "%s(%d) Does not have any infections",pname,giveplayerid);
  13861. SendClientMessage(playerid, COLOR_ERROR, string);
  13862. return 1;
  13863. }
  13864. if(wantscure[giveplayerid] == 0) {
  13865. format(string, sizeof(string), "Medic %s(%d) has attempted to cure your infection. Type /medic if you need a Medic",mname,playerid);
  13866. SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
  13867. format(string, sizeof(string), "%s(%d) has not asked for a medic. You cannot cure that players infection", pname,giveplayerid);
  13868. SendClientMessage(playerid,COLOR_ERROR, string);
  13869. }
  13870. else
  13871. if(wantscure[giveplayerid] == 1) {
  13872. new mrand = random(3500);
  13873. oscore = GetPlayerScore(playerid);
  13874. SendClientMessage(giveplayerid,0xA9A9A9AA, "|_Infection(s) Cured_|");
  13875. format(string, sizeof(string), "Medic %s(%d) has cured your infections for $%d",mname,playerid,mrand);
  13876. SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
  13877. SendClientMessage(playerid,0xA9A9A9AA, "|_Player Infection(s) Cured_|");
  13878. format(string, sizeof(string), "%s(%d) has beed cured. You earned $%d", pname,giveplayerid,mrand);
  13879. SendClientMessage(playerid,COLOR_FORESTGREEN, string);
  13880. GivePlayerMoney(giveplayerid,-mrand);
  13881. GivePlayerMoney(playerid,mrand);
  13882. Chlamydia[giveplayerid] =0;
  13883. Salmonella[giveplayerid] =0;
  13884. SetPlayerScore(playerid, oscore +1);
  13885. wantscure[giveplayerid] =0;
  13886. }
  13887. return 1;
  13888. }
  13889.  
  13890. if(strcmp(cmd, "/healme", true) == 0 && IsPlayerConnected(playerid)) {
  13891. if(IsSpawned[playerid] == 0) {
  13892. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13893. return 1;
  13894. }
  13895. if(Jailed[playerid] == 1) {
  13896. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13897. return 1;
  13898. }
  13899. if(gTeam[playerid] != TEAM_MEDIC && gTeam[playerid] != TEAM_PVTMED ) {
  13900. SendClientMessage(playerid,COLOR_ERROR,"Only Medic's or Private Medic's can use this command");
  13901. return 1;
  13902. }
  13903. if(GetPlayerWantedLevel(playerid) >= 4) {
  13904. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you have a warrant (Orange/Red)");
  13905. return 1;
  13906. }
  13907. if(InDerby[playerid] == 1) {
  13908. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  13909. return 1;
  13910. }
  13911. new Float:playerhealth;
  13912. GetPlayerHealth(playerid,playerhealth);
  13913. if(playerhealth >= 100) {
  13914. SendClientMessage(playerid,COLOR_ERROR,"Your health is already high. You cannot heal yourself");
  13915. }
  13916. else
  13917. if(playerhealth >= 0 && playerhealth <= 99)
  13918. {
  13919. new healername[24];
  13920. GetPlayerName(playerid,healername, 24);
  13921. SetPlayerHealth(playerid,100);
  13922. SendClientMessage(playerid,0xA9A9A9AA, "|_Health Restored_|");
  13923. SendClientMessage(playerid,COLOR_FORESTGREEN, "You are a Medic / Private Medic. You have restored your own health");
  13924. printf("Medic / Private Medic %s(%d) has used /healme",healername,playerid);
  13925. }
  13926. return 1;
  13927. }
  13928.  
  13929.  
  13930.  
  13931. if(strcmp(cmd, "/cureme", true) == 0) {
  13932. if(IsSpawned[playerid] == 0) {
  13933. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13934. return 1;
  13935. }
  13936. if(Jailed[playerid] == 1) {
  13937. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13938. return 1;
  13939. }
  13940. if(InDerby[playerid] == 1) {
  13941. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  13942. return 1;
  13943. }
  13944. if(gTeam[playerid] != TEAM_MEDIC && gTeam[playerid] != TEAM_PVTMED ) {
  13945. SendClientMessage(playerid,COLOR_ERROR,"Only Medic's or Private Medic's can use this command");
  13946. return 1;
  13947. }
  13948. if(Chlamydia[playerid] == 0 && Salmonella[playerid] == 0) {
  13949. SendClientMessage(playerid, COLOR_ERROR,"You do not have any infections");
  13950. return 1;
  13951. }
  13952. new curername[24];
  13953. GetPlayerName(playerid,curername, 24);
  13954.  
  13955. SendClientMessage(playerid,0xA9A9A9AA, "|_Infection(s) Cured_|");
  13956. SendClientMessage(playerid,COLOR_FORESTGREEN, "You are a Medic / Private Medic. You have cured your own infection(s)");
  13957. printf("Medic / Private Medic %s(%d) has used /cureme",curername,playerid);
  13958. Chlamydia[playerid] =0;
  13959. Salmonella[playerid] =0;
  13960. return 1;
  13961. }
  13962.  
  13963.  
  13964.  
  13965.  
  13966.  
  13967. if(strcmp(cmd, "/infect", true) == 0) {
  13968. if(IsSpawned[playerid] == 0) {
  13969. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  13970. return 1;
  13971. }
  13972. if(Jailed[playerid] == 1) {
  13973. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  13974. return 1;
  13975. }
  13976. if(InDerby[playerid] == 1) {
  13977. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  13978. return 1;
  13979. }
  13980. if(gTeam[playerid] != TEAM_PVTMED ) {
  13981. SendClientMessage(playerid,COLOR_ERROR,"You are not a Private Medic");
  13982. return 1;
  13983. }
  13984. if(InfectedPlyRecent[playerid] == 1) {
  13985. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  13986. return 1;
  13987. }
  13988.  
  13989. tmp = strtok(cmdtext, idx);
  13990. if(!strlen(tmp)) {
  13991. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /infect (id)");
  13992. return 1;
  13993. }
  13994. giveplayerid = strval(tmp);
  13995. if(!IsNumeric(tmp)) {
  13996. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /infect (id) ID Must be a number");
  13997. return 1;
  13998. }
  13999. if(!IsPlayerConnected(giveplayerid)) {
  14000. format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  14001. SendClientMessage(playerid, COLOR_ERROR, string);
  14002. return 1;
  14003. }
  14004. if(strval(tmp) == playerid) {
  14005. SendClientMessage(playerid, COLOR_ERROR, "You cannot infect yourself");
  14006. return 1;
  14007. }
  14008.  
  14009. new mname[24];
  14010. new pname[24];
  14011. GetPlayerName(playerid,mname, 24);
  14012. GetPlayerName(giveplayerid, pname, 24);
  14013. if(IsPlayerInAnyVehicle(playerid)) {
  14014. SendClientMessage(playerid, COLOR_ERROR, "You cannot infect a player from inside a vehicle");
  14015. return 1;
  14016. }
  14017. if(cuffed[playerid] == 1) {
  14018. SendClientMessage(playerid, COLOR_ERROR, "You cannot infect a player while you are handcuffed");
  14019. return 1;
  14020. }
  14021. if(Jailed[giveplayerid] == 1) {
  14022. format(string, sizeof(string), "%s(%d) Is in jail. You cannot rob a prisoner",pname,giveplayerid);
  14023. SendClientMessage(playerid, COLOR_ERROR, string);
  14024. return 1;
  14025. }
  14026. if(cuffed[giveplayerid] == 1) {
  14027. format(string, sizeof(string), "%s(%d) Is handcuffed. You cannot rob a player who is handcuffed",pname,giveplayerid);
  14028. SendClientMessage(playerid, COLOR_ERROR, string);
  14029. return 1;
  14030. }
  14031. if(IsPlayerInAnyVehicle(giveplayerid)) {
  14032. format(string, sizeof(string), "%s(%d) Is in a vehicle. You cannot rob that player",pname,giveplayerid);
  14033. SendClientMessage(playerid, COLOR_ERROR, string);
  14034. return 1;
  14035. }
  14036. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  14037. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot attempt to infect that player",pname,giveplayerid);
  14038. SendClientMessage(playerid, COLOR_ERROR, string);
  14039. return 1;
  14040. }
  14041. new rand = random(500);
  14042. if(rand >= 0 && rand <= 199) {
  14043. format(string, sizeof(string), "Your attempt to infect %s(%d) has failed",pname,giveplayerid);
  14044. SendClientMessage(playerid, COLOR_ERROR, string);
  14045. InfectedPlyRecent[playerid] =1;
  14046. return 1;
  14047. }
  14048. if(rand >= 200 && rand <= 500) {
  14049. format(string, sizeof(string), "%s(%d) Has been infected with Chlamydia",pname,giveplayerid);
  14050. SendClientMessageToAll(0x00C7FFAA, string);
  14051. SendClientMessage(giveplayerid,0xA9A9A9AA, "|_You Have Been Infected_|");
  14052. format(string, sizeof(string), "Private Medic %s(%d) has infected you with Chlamydia",mname,playerid);
  14053. SendClientMessage(giveplayerid,COLOR_FORESTGREEN, string);
  14054. SendClientMessage(playerid,0xA9A9A9AA, "|_Player Infected_|");
  14055. format(string, sizeof(string), "You have infected %s(%d) with Chlamydia", pname,giveplayerid);
  14056. SendClientMessage(playerid,COLOR_FORESTGREEN, string);
  14057. Chlamydia[giveplayerid] =1;
  14058. oscore = GetPlayerScore(playerid);
  14059. SetPlayerScore(playerid, oscore +1);
  14060. InfectedPlyRecent[playerid] =1;
  14061. GameTextForPlayer(giveplayerid,"Infected with Chlamydia",7000,3);
  14062. new current_zone;
  14063. current_zone = player_zone[playerid];
  14064. for(new i=0;i<MAX_PLAYERS;i++)
  14065. {
  14066. if(LawEnforcementRadio[i] == 1) {
  14067. format(string, sizeof(string), "DISPATCH: (MEDICAL CRIMES) Suspect: %s(%d) has infected %s(%d) Location: %s",mname,playerid,pname,giveplayerid,zones[current_zone][zone_name]);
  14068. SendClientMessage(i,COLOR_ROYALBLUE,string);
  14069. }
  14070. }
  14071. if(gTeam[giveplayerid] == TEAM_COP || gTeam[giveplayerid] == TEAM_ARMY) {
  14072. new plwl = GetPlayerWantedLevel(playerid);
  14073. SetPlayerWantedLevel(playerid, plwl +4 );
  14074. }
  14075. else{
  14076. new plwl = GetPlayerWantedLevel(playerid);
  14077. SetPlayerWantedLevel(playerid, plwl +2 );
  14078. }
  14079. new pcol = GetPlayerColor(playerid);
  14080. new plwl = GetPlayerWantedLevel(playerid);
  14081. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14082. format(string, sizeof(string), "(MEDICAL CRIMES) Wanted Level %d",plwl);
  14083. SendClientMessage(playerid,pcol,string);
  14084. }
  14085. return 1;
  14086. }
  14087.  
  14088.  
  14089.  
  14090. if(strcmp(cmd, "/pmoff", true) == 0) {
  14091. if(pmsoff[playerid] == 1) {
  14092. SendClientMessage(playerid, COLOR_YELLOW, "You are already refusing to accept any Personal Messages");
  14093. return 1;
  14094. }
  14095. else {
  14096. SendClientMessage(playerid, COLOR_YELLOW, "You are now refusing all Personal Messages");
  14097. pmsoff[playerid] =1;
  14098. }
  14099. return 1;
  14100. }
  14101.  
  14102. if(strcmp(cmd, "/pmon", true) == 0) {
  14103. if(pmsoff[playerid] == 0) {
  14104. SendClientMessage(playerid, COLOR_YELLOW, "You are already accepting Personal Messages");
  14105. return 1;
  14106. }
  14107. else {
  14108. pmsoff[playerid] =0;
  14109. SendClientMessage(playerid, COLOR_YELLOW, "You are now accepting all Personal Messages");
  14110. }
  14111. return 1;
  14112. }
  14113.  
  14114.  
  14115.  
  14116.  
  14117.  
  14118. if(strcmp(cmd, "/selldrugs", true) == 0) {
  14119. if(IsSpawned[playerid] == 0) {
  14120. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14121. return 1;
  14122. }
  14123. if(Jailed[playerid] == 1) {
  14124. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  14125. return 1;
  14126. }
  14127. if(cuffed[playerid] == 1) {
  14128. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  14129. return 1;
  14130. }
  14131. if(gTeam[playerid] != TEAM_DRGDEL) {
  14132. SendClientMessage(playerid,COLOR_ERROR,"You are not a Drug Dealer");
  14133. return 1;
  14134. }
  14135. if(solddrugsrecent[playerid] == 1) {
  14136. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  14137. return 1;
  14138. }
  14139. if(PlayerDrugs[playerid] == 0) {
  14140. SendClientMessage(playerid,COLOR_ERROR,"You are not carrying any drugs. Visit the drug house to get your supply");
  14141. return 1;
  14142. }
  14143. tmp = strtok(cmdtext, idx);
  14144. if(!strlen(tmp)) {
  14145. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrugs (id) [Amount Per Gram]");
  14146. return 1;
  14147. }
  14148. giveplayerid = strval(tmp);
  14149. if(!IsNumeric(tmp)) {
  14150. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrugs (id) [Amount Per Gram] ID Must be a number");
  14151. return 1;
  14152. }
  14153. if(strval(tmp) == playerid) {
  14154. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell yourself drugs");
  14155. return 1;
  14156. }
  14157. tmp = strtok(cmdtext, idx);
  14158. if(!strlen(tmp)) {
  14159. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrugs (id) [Amount Per Gram]");
  14160. return 1;
  14161. }
  14162. new dollerspergram = strval(tmp);
  14163. if(!IsNumeric(tmp)) {
  14164. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /selldrugs (id) [Amount Per Gram] Amount per gram must be a number");
  14165. return 1;
  14166. }
  14167. if(!IsPlayerConnected(giveplayerid)) {
  14168. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  14169. SendClientMessage(playerid, COLOR_ERROR, string);
  14170. return 1;
  14171. }
  14172. if(dollerspergram <=4) {
  14173. SendClientMessage(playerid, COLOR_ERROR, "Minimum amount per gram is $5");
  14174. return 1;
  14175. }
  14176. if(dollerspergram >=1001) {
  14177. SendClientMessage(playerid, COLOR_ERROR, "Maximum amount per gram is $1000");
  14178. return 1;
  14179. }
  14180. new dealername[24];
  14181. new buyername[24];
  14182. GetPlayerName(playerid,dealername, 24);
  14183. GetPlayerName(giveplayerid,buyername, 24);
  14184. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 7) {
  14185. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot offer to sell that player drugs",buyername,giveplayerid);
  14186. SendClientMessage(playerid, COLOR_ERROR, string);
  14187. return 1;
  14188. }
  14189. if(wantsdrugs[giveplayerid] == 0) {
  14190. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Drugs Offered_|");
  14191. format(string, sizeof(string), "Drug Dealer %s(%d) Has offered to sell you drugs for $%d per gram",dealername,playerid,dollerspergram);
  14192. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  14193. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, "Type /drugs to accept. Do nothing to refuse the offer");
  14194. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Offered_|");
  14195. format(string, sizeof(string), "You have offered to sell %s(%d) drugs for $%d per gram. Use /givedrugs %d [grams]",buyername,giveplayerid,dollerspergram,giveplayerid);
  14196. SendClientMessage(playerid, 0x00C7FFAA, string);
  14197.  
  14198. return 1;
  14199. }
  14200. if(wantsdrugs[giveplayerid] == 1) {
  14201. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Drugs Offered_|");
  14202. format(string, sizeof(string), "You called a drug dealer. %s(%d) Has offered to sell you drugs for $%d per gram",dealername,playerid,dollerspergram);
  14203. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  14204. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, "Tell the dealer if this price is ok and how many grams you want. Do nothing to refuse");
  14205. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Drugs Offered_|");
  14206. format(string, sizeof(string), "%s(%d) Has called a Drug Dealer. You offered to sell drugs for $%d per gram",buyername,giveplayerid,dollerspergram);
  14207. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  14208. format(string, sizeof(string), "Use /givedrugs %d [grams] to give the player drugs",giveplayerid);
  14209. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  14210. }
  14211. return 1;
  14212. }
  14213.  
  14214. if(strcmp(cmd, "/placehit", true) == 0) {
  14215. if(IsSpawned[playerid] == 0) {
  14216. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14217. return 1;
  14218. }
  14219. if(gTeam[playerid] == TEAM_HITMAN) {
  14220. SendClientMessage(playerid,COLOR_ERROR,"You are a Hitman. You cannot place a Hit contract on anyone");
  14221. return 1;
  14222. }
  14223. if(InDerby[playerid] == 1) {
  14224. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  14225. return 1;
  14226. }
  14227. tmp = strtok(cmdtext, idx);
  14228. if(!strlen(tmp)) {
  14229. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /placehit (ID) (Amount)");
  14230. return 1;
  14231. }
  14232. giveplayerid = strval(tmp);
  14233. if(!IsNumeric(tmp)) {
  14234. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /placehit (ID) (Amount) ID Must be a number");
  14235. return 1;
  14236. }
  14237. if (!GetPlayersInTeam(TEAM_HITMAN)) {
  14238. SendClientMessage(playerid,COLOR_ERROR,"There are no Hitmen online");
  14239. return 1;
  14240. }
  14241. if(!IsPlayerConnected(giveplayerid)) {
  14242. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  14243. SendClientMessage(playerid, COLOR_ERROR, string);
  14244. return 1;
  14245. }
  14246. new hittername[24];
  14247. new hiteename[24];
  14248. GetPlayerName(playerid,hittername, 24);
  14249. GetPlayerName(giveplayerid,hiteename, 24);
  14250. if(IsSpawned[giveplayerid] == 0) {
  14251. format(string, sizeof(string), "%s(%d) Is dead. You cannot place a hit contract on a dead body",hiteename,giveplayerid);
  14252. SendClientMessage(playerid, COLOR_ERROR, string);
  14253. return 1;
  14254. }
  14255. if(strval(tmp) == playerid) {
  14256. SendClientMessage(playerid, COLOR_ERROR, "You cannot put a hit contract on yourself");
  14257. return 1;
  14258. }
  14259.  
  14260. if(HasHitOnHim[giveplayerid] >= 1) {
  14261. format(string, sizeof(string), "%s(%d) Already has a hit contract. You cannot place a further hit contract on that player",hiteename,giveplayerid);
  14262. SendClientMessage(playerid, COLOR_ERROR, string);
  14263. return 1;
  14264. }
  14265. tmp = strtok(cmdtext, idx);
  14266. if(!strlen(tmp)) {
  14267. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /placehit (ID) (Amount)");
  14268. return 1;
  14269. }
  14270. new hitmoney = strval(tmp);
  14271. if(!IsNumeric(tmp)) {
  14272. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /placehit (ID) (Amount) Amount must be a number");
  14273. return 1;
  14274. }
  14275. if(hitmoney <= 6999 || hitmoney > 1000001) {
  14276. SendClientMessage(playerid, COLOR_ERROR, "Min/Max hit contract amount is $7000 - $1000000");
  14277. return 1;
  14278. }
  14279. if(GetPlayerMoney(playerid) < hitmoney) {
  14280. format(string, sizeof(string), "You cannot afford to place a $%d hit contract on %s(%d)",hitmoney,hiteename,giveplayerid);
  14281. SendClientMessage(playerid, COLOR_ERROR, string);
  14282. return 1;
  14283. }
  14284. SendClientMessage(playerid, 0xA9A9A9AA, "|_Hit Contract Placed_|");
  14285. format(string, sizeof(string), "You have placed a hit contract on %s(%d) for $%d",hiteename,giveplayerid,hitmoney);
  14286. SendClientMessage(playerid, 0x00C7FFAA, string);
  14287. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Hit Contract Placed On You_|");
  14288. SendClientMessage(giveplayerid, 0x00C7FFAA, "A Hit Contract has been placed on you! Watch out for hitmen.");
  14289. GameTextForPlayer(giveplayerid, "~w~HIT CONTRACT~n~PLACED ON YOU",5000,5);
  14290. format(string, sizeof(string), "%s(%d) has placed a hit on %s(%d) for $%d",hittername,playerid,hiteename,giveplayerid,hitmoney);
  14291. printf("%s",string);
  14292. HasHitOnHim[giveplayerid] =1400;
  14293. for(new i=0;i<MAX_PLAYERS;i++)
  14294. {
  14295. if(IsPlayerConnected(i))
  14296. {
  14297. if(gTeam[i] == TEAM_HITMAN) {
  14298. SendClientMessage(i, 0xA9A9A9AA, "|_Hit Contract Placed_|");
  14299. format(string, sizeof(string), "%s(%d) Has placed a hit contract on %s(%d) for $%d",hittername,playerid,hiteename,giveplayerid,hitmoney);
  14300. SendClientMessage(i, 0x00C7FFAA, string);
  14301. }
  14302. }
  14303. }
  14304. return 1;
  14305. }
  14306.  
  14307. if(strcmp(cmd, "/ej", true) == 0) {
  14308. if(isKidnapped[playerid] == 1) {
  14309. SendClientMessage(playerid, COLOR_ERROR, "You can't /ej yourself when you are tied up!");
  14310. }
  14311. else
  14312. {
  14313. if(!IsPlayerInAnyVehicle(playerid)) {
  14314. SendClientMessage(playerid, COLOR_ERROR, "You are not in any vehicle");
  14315. }
  14316. else {
  14317. RemovePlayerFromVehicle(playerid);
  14318. SendClientMessage(playerid, COLOR_GREY, "You have ejected yourself from the vehicle");
  14319. }
  14320. return 1;
  14321. }
  14322. }
  14323.  
  14324. if(strcmp(cmd, "/ejall", true) == 0) {
  14325. if(!IsPlayerInAnyVehicle(playerid)) {
  14326. SendClientMessage(playerid, COLOR_ERROR, "You are not in any vehicle");
  14327. return 1;
  14328. }
  14329. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
  14330. SendClientMessage(playerid, COLOR_ERROR, "You must be the driver of the vehicle to eject all players from a vehicle");
  14331. return 1;
  14332. }
  14333. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  14334. new carrrrid = GetPlayerVehicleID(playerid);
  14335. for(new i=0;i<MAX_PLAYERS;i++)
  14336. {
  14337. if(IsPlayerConnected(i) && IsPlayerInVehicle(i,carrrrid))
  14338. {
  14339. RemovePlayerFromVehicle(i);
  14340. SendClientMessage(i, COLOR_GREY, "You have been ejected from the vehicle");
  14341. }
  14342. }
  14343. }
  14344.  
  14345. return 1;
  14346. }
  14347.  
  14348. if(strcmp(cmd, "/eject", true) == 0)
  14349. {
  14350. tmp = strtok(cmdtext, idx);
  14351. if(!strlen(tmp)) {
  14352. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /eject (id)");
  14353. return 1;
  14354. }
  14355. giveplayerid = strval(tmp);
  14356. if(!IsNumeric(tmp)) {
  14357. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /eject (id) ID Must be a number");
  14358. return 1;
  14359. }
  14360. if(!IsPlayerConnected(giveplayerid)) {
  14361. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  14362. SendClientMessage(playerid, COLOR_ERROR, string);
  14363. return 1;
  14364. }
  14365. if(!IsPlayerInAnyVehicle(playerid)) {
  14366. SendClientMessage(playerid, COLOR_ERROR, "You must be driving a vehicle to use this command");
  14367. return 1;
  14368. }
  14369. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != PLAYER_STATE_DRIVER) {
  14370. SendClientMessage(playerid, COLOR_ERROR, "You are not the driver of this vehicle. Only the driver can eject players");
  14371. return 1;
  14372. }
  14373. if(!IsPlayerInAnyVehicle(giveplayerid)) {
  14374. GetPlayerName(giveplayerid, string, 24);
  14375. format(string, 100, "%s(%d) Is not in any vehicle", string,giveplayerid);
  14376. return 1;
  14377. }
  14378. new kar = GetPlayerVehicleID(playerid);
  14379. if(GetPlayerVehicleID(giveplayerid) != kar) {
  14380. GetPlayerName(giveplayerid, string, 24);
  14381. format(string, 100, "%s(%d) Is not in your vehicle. You cannot eject that player", string,giveplayerid);
  14382. return 1;
  14383. }
  14384. RemovePlayerFromVehicle(giveplayerid);
  14385. GameTextForPlayer(giveplayerid,"EJECTED",7000,3);
  14386. SendClientMessage(playerid,0x00C7FFAA,"Player Ejected..");
  14387. return 1;
  14388. }
  14389.  
  14390.  
  14391.  
  14392.  
  14393.  
  14394.  
  14395.  
  14396.  
  14397.  
  14398.  
  14399.  
  14400.  
  14401.  
  14402.  
  14403.  
  14404.  
  14405.  
  14406.  
  14407.  
  14408.  
  14409.  
  14410.  
  14411.  
  14412.  
  14413.  
  14414.  
  14415.  
  14416.  
  14417.  
  14418.  
  14419. if(strcmp(cmd, "/jail", true) == 0) {
  14420. if(IsSpawned[playerid] == 0) {
  14421. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14422. return 1;
  14423. }
  14424. if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_JAILTK) {
  14425. SendClientMessage(playerid,COLOR_ERROR,"Only Police, Army and Jail Turnkeys can see who is in Jail");
  14426. return 1;
  14427. }
  14428. SendClientMessage(playerid, 0xA9A9A9AA, "|_Listing Players Currently In Jail_|");
  14429. SendClientMessage(playerid, COLOR_ROYALBLUE, "Prisoners in Alcatraz are not listed here");
  14430. new jailedresult =0;
  14431. for(new i=0;i<MAX_PLAYERS;i++)
  14432. {
  14433. if(IsPlayerConnected(i) && Jailed[i] == 1 && InAlcatraz[i] == 0)
  14434. {
  14435. jailedresult ++;
  14436. new jailbirdname[30];
  14437. GetPlayerName(i,jailbirdname,30);
  14438. format(string, sizeof(string), "%s(%d) Is in jail at Las Venturas Police Department HQ. Time Left: %d Seconds",jailbirdname,i,JailTime[i]);
  14439. SendClientMessage(playerid, 0x00C7FFAA, string);
  14440. }
  14441. }
  14442. if(jailedresult == 0) {
  14443. SendClientMessage(playerid, 0x00C7FFAA, "There jail cells are empty. No players are in jail");
  14444. }
  14445. return 1;
  14446. }
  14447.  
  14448.  
  14449. if(strcmp(cmd, "/bounty", true) == 0) {
  14450. if(IsSpawned[playerid] == 0) {
  14451. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14452. return 1;
  14453. }
  14454. if(gTeam[playerid] != TEAM_BOUNTY) {
  14455. SendClientMessage(playerid,COLOR_ERROR,"You are not a Bounty Hunter. Only Bounty Hunters can use this command");
  14456. return 1;
  14457. }
  14458. if(GetPlayerWantedLevel(playerid) >=1) {
  14459. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command if you are wanted by the police");
  14460. return 1;
  14461. }
  14462. new bountyresult =0;
  14463. for(new i=0;i<MAX_PLAYERS;i++)
  14464. {
  14465. if(IsPlayerConnected(i) && EscapedConvict[i] >= 1)
  14466. {
  14467. bountyresult ++;
  14468. new bountyname[30];
  14469. GetPlayerName(i,bountyname,30);
  14470. format(string, sizeof(string), "%s(%d) Is on your bounty list. Use /loc (id) to locate the target",bountyname,i);
  14471. SendClientMessage(playerid, 0x00C7FFAA, string);
  14472. }
  14473. }
  14474. if(bountyresult == 0) {
  14475. SendClientMessage(playerid, 0x00C7FFAA, "There are no bountys on your list. Bounty hunters only hunt Escaped Convicts");
  14476. }
  14477. return 1;
  14478. }
  14479.  
  14480.  
  14481.  
  14482.  
  14483.  
  14484.  
  14485.  
  14486.  
  14487.  
  14488.  
  14489.  
  14490.  
  14491.  
  14492.  
  14493.  
  14494.  
  14495.  
  14496.  
  14497.  
  14498.  
  14499.  
  14500.  
  14501. if(strcmp(cmd, "/listhits", true) == 0) {
  14502. if(IsSpawned[playerid] == 0) {
  14503. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14504. return 1;
  14505. }
  14506. if(gTeam[playerid] != TEAM_HITMAN) {
  14507. SendClientMessage(playerid,COLOR_ERROR,"You are not a Hitman. Only hitmen can use this command");
  14508. return 1;
  14509. }
  14510. new hitsresult =0;
  14511. for(new i=0;i<MAX_PLAYERS;i++)
  14512. {
  14513. if(IsPlayerConnected(i) && HasHitOnHim[i] >= 1)
  14514. {
  14515. hitsresult ++;
  14516. new hitteename[30];
  14517. GetPlayerName(i,hitteename,30);
  14518. format(string, sizeof(string), "%s(%d) Has a hit contract. Use /loc (id) to locate the target. Contract expires in %d Seconds",hitteename,i,HasHitOnHim[i]);
  14519. SendClientMessage(playerid, 0x00C7FFAA, string);
  14520. }
  14521. }
  14522. if(hitsresult == 0) {
  14523. SendClientMessage(playerid, 0x00C7FFAA, "There are no hit contracts available right now");
  14524. }
  14525. return 1;
  14526. }
  14527.  
  14528.  
  14529.  
  14530. if(strcmp(cmd, "/drugs", true) == 0) {
  14531. if(IsSpawned[playerid] == 0) {
  14532. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14533. return 1;
  14534. }
  14535. if(gTeam[playerid] == TEAM_DRGDEL) {
  14536. SendClientMessage(playerid,COLOR_ERROR,"You are a Drug Dealer. Type /takedrugs [grams] to take drugs");
  14537. return 1;
  14538. }
  14539. if(InDerby[playerid] == 1) {
  14540. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  14541. return 1;
  14542. }
  14543. if(gTeam[playerid] == TEAM_COP) {
  14544. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot call a Drug Dealer");
  14545. return 1;
  14546. }
  14547. if(gTeam[playerid] == TEAM_ARMY) {
  14548. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot call a Drug Dealer");
  14549. return 1;
  14550. }
  14551. if(gTeam[playerid] == TEAM_CASSEC) {
  14552. SendClientMessage(playerid,COLOR_ERROR,"Casino Security agents cannot call a Drug Dealer");
  14553. return 1;
  14554. }
  14555. if (!GetPlayersInTeam(TEAM_DRGDEL)) {
  14556. SendClientMessage(playerid,COLOR_ERROR,"Unable to locate any Drug Dealers. Visit the drug house in LV if you are desperate for some crack");
  14557. return 1;
  14558. }
  14559. if (GetPlayersInTeam(TEAM_DRGDEL) > 0) {
  14560. SendClientMessage(playerid,COLOR_ERROR,"You have called a Drug Dealer");
  14561. }
  14562.  
  14563. for(new i=0;i<MAX_PLAYERS;i++)
  14564. {
  14565. if(IsPlayerConnected(i))
  14566. {
  14567. if(gTeam[i] == TEAM_DRGDEL) {
  14568. new pname[24];
  14569. GetPlayerName(playerid, pname, 24);
  14570. new current_zone;
  14571. current_zone = player_zone[playerid];
  14572. format(string, sizeof(string), "%s(%d) Has requested a Drug Dealer. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  14573. SendClientMessage(i, COLOR_DODGERBLUE, string);
  14574.  
  14575. wantsdrugs[playerid] =1;
  14576. }
  14577. }
  14578. }
  14579. return 1;
  14580. }
  14581.  
  14582.  
  14583.  
  14584. if(strcmp(cmd, "/givedrugs", true) == 0) {
  14585. if(IsSpawned[playerid] == 0) {
  14586. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14587. return 1;
  14588. }
  14589. if(Jailed[playerid] == 1) {
  14590. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  14591. return 1;
  14592. }
  14593. if(InDerby[playerid] == 1) {
  14594. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  14595. return 1;
  14596. }
  14597. if(cuffed[playerid] == 1) {
  14598. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  14599. return 1;
  14600. }
  14601. if(gTeam[playerid] != TEAM_DRGDEL) {
  14602. SendClientMessage(playerid,COLOR_ERROR,"You are not a Drug Dealer");
  14603. return 1;
  14604. }
  14605. if(solddrugsrecent[playerid] == 1) {
  14606. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  14607. return 1;
  14608. }
  14609. if(PlayerDrugs[playerid] == 0) {
  14610. SendClientMessage(playerid,COLOR_ERROR,"You are not carrying any drugs. Visit the drug house to get your supply");
  14611. return 1;
  14612. }
  14613. tmp = strtok(cmdtext, idx);
  14614. if(!strlen(tmp)) {
  14615. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givedrugs (id) [Grams]");
  14616. return 1;
  14617. }
  14618. giveplayerid = strval(tmp);
  14619. if(!IsNumeric(tmp)) {
  14620. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givedrugs (id) [Grams] ID Must be a number");
  14621. return 1;
  14622. }
  14623. if(strval(tmp) == playerid) {
  14624. SendClientMessage(playerid, COLOR_ERROR, "You cannot sell yourself drugs");
  14625. return 1;
  14626. }
  14627. if(gTeam[giveplayerid] <=2) {
  14628. SendClientMessage(playerid, COLOR_ERROR, "You cannot give drugs to a Law Enforcement agent");
  14629. return 1;
  14630. }
  14631. tmp = strtok(cmdtext, idx);
  14632. if(!strlen(tmp)) {
  14633. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givedrugs (id) [Grams]");
  14634. return 1;
  14635. }
  14636. new gramtogive = strval(tmp);
  14637. if(!IsNumeric(tmp)) {
  14638. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /givedrugs (id) [Grams] Grams must be a number");
  14639. return 1;
  14640. }
  14641. if(!IsPlayerConnected(giveplayerid)) {
  14642. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  14643. SendClientMessage(playerid, COLOR_ERROR, string);
  14644. return 1;
  14645. }
  14646. if(gramtogive <=0) {
  14647. SendClientMessage(playerid, COLOR_ERROR, "Minimum amount of grams you can give in one transaction is 1 Gram");
  14648. return 1;
  14649. }
  14650. if(gramtogive >=501) {
  14651. SendClientMessage(playerid, COLOR_ERROR, "Maximum amount of grams you can give in one transaction is 500 Grams");
  14652. return 1;
  14653. }
  14654. if(PlayerDrugs[playerid] < gramtogive) {
  14655. SendClientMessage(playerid,COLOR_ERROR,"You are not carrying that much drugs. Visit the drug house to replenish your supply");
  14656. return 1;
  14657. }
  14658. new dealername[24];
  14659. new buyername[24];
  14660. GetPlayerName(playerid,dealername, 24);
  14661. GetPlayerName(giveplayerid,buyername, 24);
  14662. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 7) {
  14663. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot deal drugs to that player",buyername,giveplayerid);
  14664. SendClientMessage(playerid, COLOR_ERROR, string);
  14665. return 1;
  14666. }
  14667. if(wantsdrugs[giveplayerid] == 0) {
  14668. SendClientMessage(playerid, COLOR_ERROR, "That player does not want drugs. Use /selldrugs ID to offer drugs to a player");
  14669. return 1;
  14670. }
  14671. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Drugs Purchased_|");
  14672. format(string, sizeof(string), "Drug Dealer %s(%d) has given you %d grams of drugs. Make sure you pay/have paid the dealer",dealername,playerid,gramtogive);
  14673. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
  14674. SendClientMessage(giveplayerid, COLOR_DODGERBLUE, "Use /takedrugs (grams) to use drugs. Remember, cops can search you for drugs...try /throwaway in emergency");
  14675. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Sold_|");
  14676. format(string, sizeof(string), "You have given %s(%d) %d grams of drugs. Make sure you get paid",buyername,giveplayerid,gramtogive);
  14677. SendClientMessage(playerid, 0x00C7FFAA, string);
  14678. PlayerDrugs[playerid] -= gramtogive;
  14679. PlayerDrugs[giveplayerid] += gramtogive;
  14680. oscore = GetPlayerScore(playerid);
  14681. SetPlayerScore(playerid, oscore +1);
  14682. new current_zone;
  14683. current_zone = player_zone[playerid];
  14684. commitedcrimerecently[playerid] +=180;
  14685. for(new i=0;i<MAX_PLAYERS;i++)
  14686. {
  14687. if(LawEnforcementRadio[i] == 1) {
  14688. format(string, sizeof(string), "DISPATCH: (DRUG DEALING) Suspected drug deal has taken place - Suspect: %s(%d) Location: %s",dealername,playerid,zones[current_zone][zone_name]);
  14689. SendClientMessage(i,COLOR_ROYALBLUE,string);
  14690.  
  14691. }
  14692. }
  14693. new plwl = GetPlayerWantedLevel(playerid);
  14694. SetPlayerWantedLevel(playerid, plwl +2 );
  14695. new pcol = GetPlayerColor(playerid);
  14696. plwl = GetPlayerWantedLevel(playerid);
  14697. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14698. format(string, sizeof(string), "(DRUG DEALING) Wanted Level %d",plwl);
  14699. SendClientMessage(playerid,pcol,string);
  14700. return 1;
  14701. }
  14702.  
  14703.  
  14704.  
  14705. if(strcmp(cmd, "/takedrugs", true) == 0) {
  14706. if(IsSpawned[playerid] == 0) {
  14707. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14708. return 1;
  14709. }
  14710. if(Jailed[playerid] == 1) {
  14711. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  14712. return 1;
  14713. }
  14714. if(InDerby[playerid] == 1) {
  14715. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  14716. return 1;
  14717. }
  14718. if(cuffed[playerid] == 1) {
  14719. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  14720. return 1;
  14721. }
  14722. if(gTeam[playerid] == TEAM_COP) {
  14723. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot take drugs");
  14724. return 1;
  14725. }
  14726. if(gTeam[playerid] == TEAM_ARMY) {
  14727. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot take drugs");
  14728. return 1;
  14729. }
  14730. if(gTeam[playerid] == TEAM_CASSEC) {
  14731. SendClientMessage(playerid,COLOR_ERROR,"Casino Security agents cannot take drugs");
  14732. return 1;
  14733. }
  14734. if(playerondrugs[playerid] >= 1) {
  14735. SendClientMessage(playerid,COLOR_ERROR,"You are already on drugs. Please wait before taking more");
  14736. return 1;
  14737. }
  14738. if(PlayerDrugs[playerid] == 0) {
  14739. SendClientMessage(playerid,COLOR_ERROR,"You are not carrying any drugs. Call a dealer with /drugs if you want some crack");
  14740. return 1;
  14741. }
  14742. tmp = strtok(cmdtext, idx);
  14743. if(!strlen(tmp)) {
  14744. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /takedrugs [Grams]");
  14745. return 1;
  14746. }
  14747. new gramstotake = strval(tmp);
  14748. if(!IsNumeric(tmp)) {
  14749. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /takedrugs [Grams] Grams must be a number");
  14750. return 1;
  14751. }
  14752. if(PlayerDrugs[playerid] < gramstotake ) {
  14753. SendClientMessage(playerid,COLOR_ERROR,"You are not carrying that much drugs");
  14754. return 1;
  14755. }
  14756. if(gramstotake <= 0 || gramstotake >=51) {
  14757. SendClientMessage(playerid,COLOR_ERROR,"You can only take drugs between 1 - 50 grams");
  14758. return 1;
  14759. }
  14760. if(gramstotake >=1 && gramstotake <=5) {
  14761. playertookdrugs[playerid] =1;
  14762. playerondrugs[playerid] =15;
  14763. }
  14764. else
  14765. if(gramstotake >=6 && gramstotake <=9) {
  14766. playertookdrugs[playerid] =1;
  14767. playerondrugs[playerid] =30;
  14768. }
  14769. else
  14770. if(gramstotake >=10 && gramstotake <=19) {
  14771. playertookdrugs[playerid] =1;
  14772. playerondrugs[playerid] =45;
  14773. }
  14774. else
  14775. if(gramstotake >=20 && gramstotake <=29) {
  14776. playertookdrugs[playerid] =1;
  14777. playerondrugs[playerid] =60;
  14778. }
  14779. else
  14780. if(gramstotake >=30 && gramstotake <=39) {
  14781. playertookdrugs[playerid] =1;
  14782. playerondrugs[playerid] =120;
  14783. LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
  14784. }
  14785. else
  14786. if(gramstotake >=40 && gramstotake <=50) {
  14787. playertookdrugs[playerid] =1;
  14788. playerondrugs[playerid] =180;
  14789. LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
  14790. }
  14791. PlayerDrugs[playerid] -= gramstotake;
  14792. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Taken_|");
  14793. format(string, sizeof(string), "You are on drugs. You have took %d grams of drugs. Your health will increase while you are on drugs",gramstotake);
  14794. SendClientMessage(playerid, 0x00C7FFAA, string);
  14795.  
  14796. return 1;
  14797. }
  14798.  
  14799. if(strcmp(cmd, "/breakcuffs", true) == 0) {
  14800. if(IsSpawned[playerid] == 0) {
  14801. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14802. return 1;
  14803. }
  14804. if(gTeam[playerid] <= 2) {
  14805. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot use this command");
  14806. return 1;
  14807. }
  14808. if(Jailed[playerid] == 1) {
  14809. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  14810. return 1;
  14811. }
  14812. if(cuffed[playerid] == 0) {
  14813. SendClientMessage(playerid,COLOR_ERROR,"You are not handcuffed. You cannot use this command");
  14814. return 1;
  14815. }
  14816. if(CuffedTime[playerid] >= 1) {
  14817. SendClientMessage(playerid, COLOR_ERROR, "Please wait before trying to break the handcuffs");
  14818. return 1;
  14819. }
  14820. new breakcuffsrand = random(100);
  14821. if(breakcuffsrand >=26 && breakcuffsrand <=100) // Failed
  14822. {
  14823. new escapedname[24];
  14824. GetPlayerName(playerid,escapedname,24);
  14825. new plwl = GetPlayerWantedLevel(playerid);
  14826. new pcol = GetPlayerColor(playerid);
  14827. SetPlayerWantedLevel(playerid, plwl +1 );
  14828. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14829. plwl = GetPlayerWantedLevel(playerid);
  14830. format(string, sizeof(string), "(ATTEMPTED ESCAPE) Wanted Level: %d",plwl);
  14831. SendClientMessage(playerid,pcol,string);
  14832. SendClientMessage(playerid,COLOR_ERROR,"You have been seen trying to escape from the handcuffs. Attempt failed");
  14833. format(string, sizeof(string), "%s(%d) Has tried to escape from handcuffs",escapedname,playerid);
  14834. CuffedTime[playerid] =10;
  14835. printf("%s",string);
  14836. commitedcrimerecently[playerid] +=120;
  14837. for(new i=0;i<MAX_PLAYERS;i++)
  14838. {
  14839. if(LawEnforcementRadio[i] == 1 && IsSpawned[i] == 1)
  14840. {
  14841. if(GetDistanceBetweenPlayers(playerid,i) < 25)
  14842. {
  14843. new string1[256];
  14844. new string2[256];
  14845. new current_zone;
  14846. current_zone = player_zone[playerid];
  14847. format(string1, sizeof(string1), "DISPATCH: (ATTEMPTED ESCAPE) %s(%d) Has attempted to escape from handcuffs",escapedname,playerid);
  14848. format(string2, sizeof(string2), "Please respond and secure suspect: %s(%d) - Location: %s",escapedname,playerid,zones[current_zone][zone_name]);
  14849. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  14850. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  14851. }
  14852. }
  14853. }
  14854. return 1;
  14855. }
  14856. else
  14857. if(breakcuffsrand >=0 && breakcuffsrand <=25) // complete
  14858. {
  14859. TogglePlayerControllable(playerid, 1);
  14860. cuffed[playerid] =0;
  14861. new escapedname[24];
  14862. new plwl = GetPlayerWantedLevel(playerid);
  14863. SetPlayerWantedLevel(playerid, plwl +4 );
  14864. GetPlayerName(playerid,escapedname,24);
  14865. GameTextForPlayer(playerid,"~r~ESCAPED~n~FROM HANDCUFFS",6000,3);
  14866. new pcol = GetPlayerColor(playerid);
  14867. plwl = GetPlayerWantedLevel(playerid);
  14868. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14869. format(string, sizeof(string), "(HANDCUFF ESCAPE) Wanted Level %d",plwl);
  14870. SendClientMessage(playerid,pcol,string);
  14871. format(string, sizeof(string), "%s(%d) Has escaped from handcuffs",escapedname,playerid);
  14872. printf("%s",string);
  14873. commitedcrimerecently[playerid] +=360;
  14874. for(new i=0;i<MAX_PLAYERS;i++)
  14875. {
  14876. if(LawEnforcementRadio[i] == 1 && IsSpawned[i] == 1)
  14877. {
  14878. if(GetDistanceBetweenPlayers(playerid,i) < 25)
  14879. {
  14880. new string1[256];
  14881. new string2[256];
  14882. new current_zone;
  14883. current_zone = player_zone[playerid];
  14884. format(string1, sizeof(string1), "DISPATCH: (HANDCUFF ESCAPE) %s(%d) Has escaped from handcuffs",escapedname,playerid);
  14885. format(string2, sizeof(string2), "Please respond and take suspect: %s(%d) into custody. Location: %s",escapedname,playerid,zones[current_zone][zone_name]);
  14886. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  14887. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  14888. }
  14889. }
  14890. }
  14891. }
  14892. return 1;
  14893. }
  14894.  
  14895.  
  14896. if(strcmp(cmd, "/escape", true) == 0) {
  14897. if(IsSpawned[playerid] == 0) {
  14898. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  14899. return 1;
  14900. }
  14901. if(gTeam[playerid] <= 2) {
  14902. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot use this command");
  14903. return 1;
  14904. }
  14905. if(Jailed[playerid] == 1 && InAlcatraz[playerid] == 1) {
  14906. SendClientMessage(playerid, COLOR_ERROR, "You must have a visitor to help you escape from Alcatraz (/breakout)");
  14907. return 1;
  14908. }
  14909. if(Jailed[playerid] == 0) {
  14910. SendClientMessage(playerid, COLOR_ERROR, "You are not in jail. You cannot use this command");
  14911. return 1;
  14912. }
  14913. if(JailTime[playerid] == 0) {
  14914. SendClientMessage(playerid, COLOR_ERROR, "You are free to go. You cannot escape. Your jail sentence is finnished");
  14915. return 1;
  14916. }
  14917. if(cuffed[playerid] == 1) {
  14918. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  14919. return 1;
  14920. }
  14921. if(cannotescapejail[playerid] == 1) {
  14922. SendClientMessage(playerid,COLOR_ERROR,"You cannot attempt to escape jail again");
  14923. return 1;
  14924. }
  14925. if(triedtoescaperecent[playerid] == 1) {
  14926. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  14927. return 1;
  14928. }
  14929. new escaperand = random(5000);
  14930. if(escaperand >=0 && escaperand <=1000) // Failed
  14931. {
  14932. JailTime[playerid] += 60;
  14933. new jtime;
  14934. jtime = (JailTime[playerid]);
  14935. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14936. format(string, sizeof(string), "(ATTEMPTED JAIL ESCAPE) Your jail sentence has been increased. Time Remaining: %d Seconds",jtime);
  14937. SendClientMessage(playerid,COLOR_WHITE,string);
  14938. SendClientMessage(playerid,COLOR_ERROR,"You have failed to escape from jail. You cannot attempt escape again");
  14939. triedtoescaperecent[playerid] =1;
  14940. cannotescapejail[playerid] =1;
  14941. return 1;
  14942. }
  14943. else
  14944. if(escaperand >=1001 && escaperand <=3000) // Outside LVPD
  14945. {
  14946. new escapedname[24];
  14947. Jailed[playerid] =0;
  14948. JailTime[playerid] =0;
  14949. cannotescapejail[playerid] =1;
  14950. new plwl = GetPlayerWantedLevel(playerid);
  14951. SetPlayerWantedLevel(playerid, plwl +15 );
  14952. GetPlayerName(playerid,escapedname,24);
  14953. GameTextForPlayer(playerid,"~r~ESCAPED~n~FROM JAIL",6000,3);
  14954. SetPlayerInterior(playerid,0);
  14955. SetPlayerPos(playerid, 2245.3135,2487.6631,10.8203);
  14956. SetPlayerFacingAngle(playerid,88.3985);
  14957. SetCameraBehindPlayer(playerid);
  14958. EscapedConvict[playerid] =1;
  14959. new pcol = GetPlayerColor(playerid);
  14960. plwl = GetPlayerWantedLevel(playerid);
  14961. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  14962. format(string, sizeof(string), "(JAIL ESCAPE) Wanted Level %d",plwl);
  14963. SendClientMessage(playerid,pcol,string);
  14964. format(string, sizeof(string), "%s(%d) Has escaped from jail",escapedname,playerid);
  14965. SendClientMessageToAll(0x00C7FFAA,string);
  14966. format(string, sizeof(string), "%s(%d) Has escaped from jail",escapedname,playerid);
  14967. printf("%s",string);
  14968. commitedcrimerecently[playerid] +=360;
  14969. for(new i=0;i<MAX_PLAYERS;i++)
  14970. {
  14971. if(LawEnforcementRadio[i] == 1) {
  14972. new string1[256];
  14973. new string2[256];
  14974. new string3[256];
  14975. format(string1, sizeof(string1), "DISPATCH: (JAIL ESCAPE) %s(%d) Has escaped from jail. All units respond",escapedname,playerid);
  14976. format(string2, sizeof(string2), "ALL UNITS: Please respond and take %s(%d) back into custody",escapedname,playerid);
  14977. format(string3, sizeof(string3), "Location: Las Venturas Police Department");
  14978. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  14979. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  14980. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  14981. }
  14982. }
  14983. return 1;
  14984. }
  14985. else
  14986. if(escaperand >=3001 && escaperand <=5000) // Outside LVPD top entrance
  14987. {
  14988. new escapedname[24];
  14989. Jailed[playerid] =0;
  14990. JailTime[playerid] =0;
  14991. cannotescapejail[playerid] =1;
  14992. new plwl = GetPlayerWantedLevel(playerid);
  14993. SetPlayerWantedLevel(playerid, plwl +15 );
  14994. GetPlayerName(playerid,escapedname,24);
  14995. GameTextForPlayer(playerid,"~r~ESCAPED~n~FROM JAIL",6000,3);
  14996. SetPlayerInterior(playerid,0);
  14997. SetPlayerPos(playerid,2345.3525,2453.4285,14.9742);
  14998. SetPlayerFacingAngle(playerid,181.5988);
  14999. SetCameraBehindPlayer(playerid);
  15000. new pcol = GetPlayerColor(playerid);
  15001. plwl = GetPlayerWantedLevel(playerid);
  15002. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15003. format(string, sizeof(string), "(JAIL ESCAPE) Wanted Level %d",plwl);
  15004. SendClientMessage(playerid,pcol,string);
  15005. format(string, sizeof(string), "%s(%d) Has escaped from jail",escapedname,playerid);
  15006. SendClientMessageToAll(0x00C7FFAA,string);
  15007. format(string, sizeof(string), "%s(%d) Has escaped from jail",escapedname,playerid);
  15008. printf("%s",string);
  15009. commitedcrimerecently[playerid] +=360;
  15010. EscapedConvict[playerid] =1;
  15011. for(new i=0;i<MAX_PLAYERS;i++)
  15012. {
  15013. if(LawEnforcementRadio[i] == 1) {
  15014. new string1[256];
  15015. new string2[256];
  15016. new string3[256];
  15017. new current_zone;
  15018. current_zone = player_zone[playerid];
  15019. format(string1, sizeof(string1), "DISPATCH: (JAIL ESCAPE) %s(%d) Has escaped from jail. All units respond",escapedname,playerid);
  15020. format(string2, sizeof(string2), "ALL UNITS: Please respond and take %s(%d) back into custody",escapedname,playerid);
  15021. format(string3, sizeof(string3), "Location: %s",zones[current_zone][zone_name]);
  15022. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  15023. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  15024. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  15025. }
  15026. }
  15027. }
  15028. return 1;
  15029. }
  15030.  
  15031.  
  15032. if(!strcmp(cmdtext, "/cry", true, 4)) {
  15033. if(IsSpawned[playerid] == 0) {
  15034. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15035. return 1;
  15036. }
  15037. if(Muted[playerid] == 1) {
  15038. SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Use This Command");
  15039. return 1;
  15040. }
  15041. if(HasCried[playerid] >= 1) {
  15042. SendClientMessage(playerid, COLOR_ERROR, "You have cried like a big baby recently. Please wait before crying again");
  15043. return 1;
  15044. }
  15045. new cryer[25];
  15046. GetPlayerName(playerid,cryer,sizeof(cryer));
  15047. format(string, sizeof(string),"* %s(%d) cries. Get a Tissue!",cryer,playerid);
  15048. SendClientMessageToAll(GetPlayerColor(playerid),string);
  15049. ircSay(EchoConnection, EchoChan,string);
  15050. HasCried[playerid] =10;
  15051. return 1;
  15052. }
  15053.  
  15054.  
  15055.  
  15056.  
  15057. if(strcmp(cmd, "/breakout", true) == 0) {
  15058. if(IsSpawned[playerid] == 0) {
  15059. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15060. return 1;
  15061. }
  15062. if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 5 || gTeam[playerid] == 8) {
  15063. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command");
  15064. return 1;
  15065. }
  15066. if(Jailed[playerid] == 1 && InAlcatraz[playerid] == 0) {
  15067. SendClientMessage(playerid, COLOR_ERROR, "The /breakout command can only be used by a visitor at Alcatraz");
  15068. return 1;
  15069. }
  15070. if(Jailed[playerid] == 1 && InAlcatraz[playerid] == 1) {
  15071. SendClientMessage(playerid, COLOR_ERROR, "You must have a visitor to help you escape from Alcatraz use /reqvisit (id)");
  15072. return 1;
  15073. }
  15074. if(cuffed[playerid] == 1) {
  15075. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  15076. return 1;
  15077. }
  15078. tmp = strtok(cmdtext, idx);
  15079. if(!strlen(tmp)) {
  15080. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /breakout (id)");
  15081. return 1;
  15082. }
  15083. giveplayerid = strval(tmp);
  15084. if(!IsNumeric(tmp)) {
  15085. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /breakout (id) ID Must be a number");
  15086. return 1;
  15087. }
  15088. if(!IsPlayerConnected(giveplayerid)) {
  15089. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  15090. SendClientMessage(playerid, COLOR_ERROR, string);
  15091. return 1;
  15092. }
  15093. new visitorname[30];
  15094. new prisonername[30];
  15095. GetPlayerName(playerid,visitorname,30);
  15096. GetPlayerName(giveplayerid,prisonername,30);
  15097. if(Jailed[giveplayerid] == 0 && InAlcatraz[giveplayerid] == 0) {
  15098. format(string, sizeof(string), "%s(%d) is not in jail",prisonername,giveplayerid);
  15099. SendClientMessage(playerid,COLOR_ERROR,string);
  15100. return 1;
  15101. }
  15102. if(Jailed[giveplayerid] == 1 && InAlcatraz[giveplayerid] == 0) {
  15103. format(string, sizeof(string), "Prisoner %s(%d) is not on Alcatraz Island. You can only use /breakout (id) at Alcatraz",prisonername,giveplayerid);
  15104. SendClientMessage(playerid,COLOR_ERROR,string);
  15105. return 1;
  15106. }
  15107. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 10) {
  15108. format(string, sizeof(string), "%s(%d) Is too far away. You cannot break this player out of Alcatraz",prisonername,giveplayerid);
  15109. SendClientMessage(playerid,COLOR_ERROR,string);
  15110. return 1;
  15111. }
  15112. if(cannotescapejail[giveplayerid] == 1) {
  15113. format(string, sizeof(string), "You cannot break this player out of Alcatraz",prisonername,giveplayerid);
  15114. SendClientMessage(playerid,COLOR_ERROR,string);
  15115. return 1;
  15116. }
  15117. new alctrazescaperand = random(200);
  15118. if(alctrazescaperand >=100 && alctrazescaperand <=200) // failed
  15119. {
  15120.  
  15121. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Breakout Failed_|");
  15122. format(string, sizeof(string), "%s(%d) Has attempted to break you out of Alcatraz. Attempt has failed",visitorname,playerid);
  15123. SendClientMessage(giveplayerid,0x00C7FFAA,string);
  15124. SendClientMessage(playerid, 0xA9A9A9AA, "|_Breakout Failed_|");
  15125. format(string, sizeof(string), "Your attempt to break %s(%d) out of Alcatraz has failed",prisonername,giveplayerid);
  15126. SendClientMessage(playerid,0x00C7FFAA,string);
  15127. SendClientMessage(playerid, 0x00C7FFAA, "You have been escorted from the building by security staff");
  15128. SetPlayerInterior(playerid,0);
  15129. SetPlayerPos(playerid,3792.1602,471.8931,36.4192);
  15130. SetPlayerFacingAngle(playerid,89.9220);
  15131. SetCameraBehindPlayer(playerid);
  15132. cannotescapejail[giveplayerid] =1;
  15133. return 1;
  15134. }
  15135. else
  15136. if(alctrazescaperand >=0 && alctrazescaperand <=49) // sewerpipe
  15137. {
  15138.  
  15139. Jailed[giveplayerid] =0;
  15140. JailTime[giveplayerid] =0;
  15141. InAlcatraz[giveplayerid] =0;
  15142. cannotescapejail[giveplayerid] =1;
  15143. EscapedConvict[giveplayerid] =1;
  15144. commitedcrimerecently[playerid] +=600;
  15145. commitedcrimerecently[giveplayerid] +=600;
  15146. new plwlv = GetPlayerWantedLevel(playerid);
  15147. new plwlp = GetPlayerWantedLevel(giveplayerid);
  15148. SetPlayerWantedLevel(playerid, plwlv +20 );
  15149. SetPlayerWantedLevel(giveplayerid, plwlp +20 );
  15150. SetPlayerInterior(playerid,0);
  15151. SetPlayerInterior(giveplayerid,0);
  15152. SetPlayerPos(playerid,3785.1953,507.6611,7.3365);
  15153. SetPlayerFacingAngle(playerid,3.2000);
  15154. SetCameraBehindPlayer(playerid);
  15155. SetPlayerPos(giveplayerid,3785.3389,505.0921,7.3384);
  15156. SetPlayerFacingAngle(giveplayerid,3.2000);
  15157. SetCameraBehindPlayer(giveplayerid);
  15158. new pcolv = GetPlayerColor(playerid);
  15159. new pcolp = GetPlayerColor(giveplayerid);
  15160. plwlv = GetPlayerWantedLevel(playerid);
  15161. plwlp = GetPlayerWantedLevel(giveplayerid);
  15162. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15163. format(string, sizeof(string), "(AIDING JAIL ESCAPE) Wanted Level %d",plwlv);
  15164. SendClientMessage(playerid,pcolv,string);
  15165. format(string, sizeof(string), "You have helped %s(%d) escape from Alcatraz. You escaped through a sewer pipe",prisonername,giveplayerid);
  15166. SendClientMessage(playerid,pcolv,string);
  15167. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15168. format(string, sizeof(string), "(JAIL ESCAPE) Wanted Level %d",plwlp);
  15169. SendClientMessage(giveplayerid,pcolp,string);
  15170. format(string, sizeof(string), "Visitor %s(%d) has helped you escape from Alcatraz. You escaped through a sewer pipe",visitorname,playerid);
  15171. SendClientMessage(giveplayerid,pcolp,string);
  15172. format(string, sizeof(string), "%s(%d) has helped %s(%d) escape from Alcatraz",visitorname,playerid,prisonername,giveplayerid);
  15173. SendClientMessageToAll(0x00C7FFAA,string);
  15174. format(string, sizeof(string), "%s(%d) Has helped %s(%d) escape from alcatraz (pipe)",visitorname,playerid,prisonername,giveplayerid);
  15175. printf("%s",string);
  15176. for(new i=0;i<MAX_PLAYERS;i++)
  15177. {
  15178. if(LawEnforcementRadio[i] == 1) {
  15179. new string1[256];
  15180. new string2[256];
  15181. new string3[256];
  15182. new current_zone;
  15183. current_zone = player_zone[giveplayerid];
  15184. format(string1, sizeof(string1), "DISPATCH: (ALCATRAZ ESCAPE) %s(%d) Has escaped from Alcatraz. ALL UNITS RESPOND",prisonername,giveplayerid);
  15185. format(string2, sizeof(string2), "ALL UNITS: Please respond and take %s(%d) and aider %s(%d) into custody",prisonername,giveplayerid,visitorname,playerid);
  15186. format(string3, sizeof(string3), "Location: %s",zones[current_zone][zone_name]);
  15187. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  15188. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  15189. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  15190. }
  15191. }
  15192. return 1;
  15193. }
  15194. else
  15195. if(alctrazescaperand >=50 && alctrazescaperand <=99) // roof vent
  15196. {
  15197.  
  15198. Jailed[giveplayerid] =0;
  15199. JailTime[giveplayerid] =0;
  15200. InAlcatraz[giveplayerid] =0;
  15201. cannotescapejail[giveplayerid] =1;
  15202. EscapedConvict[giveplayerid] =1;
  15203. commitedcrimerecently[playerid] +=600;
  15204. commitedcrimerecently[giveplayerid] +=600;
  15205. new plwlv = GetPlayerWantedLevel(playerid);
  15206. new plwlp = GetPlayerWantedLevel(giveplayerid);
  15207. SetPlayerWantedLevel(playerid, plwlv +20 );
  15208. SetPlayerWantedLevel(giveplayerid, plwlp +20 );
  15209. SetPlayerInterior(playerid,0);
  15210. SetPlayerInterior(giveplayerid,0);
  15211. SetPlayerPos(playerid,3831.7861,460.3024,56.4060);
  15212. SetPlayerFacingAngle(playerid,292.2207);
  15213. SetCameraBehindPlayer(playerid);
  15214. SetPlayerPos(giveplayerid,3828.9524,460.2530,56.8904);
  15215. SetPlayerFacingAngle(giveplayerid,292.2207);
  15216. SetCameraBehindPlayer(giveplayerid);
  15217. new pcolv = GetPlayerColor(playerid);
  15218. new pcolp = GetPlayerColor(giveplayerid);
  15219. plwlv = GetPlayerWantedLevel(playerid);
  15220. plwlp = GetPlayerWantedLevel(giveplayerid);
  15221. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15222. format(string, sizeof(string), "(AIDING ALCATRAZ ESCAPE) Wanted Level %d",plwlv);
  15223. SendClientMessage(playerid,pcolv,string);
  15224. format(string, sizeof(string), "You have helped %s(%d) escape from Alcatraz. You escaped through the air con pipes",prisonername,giveplayerid);
  15225. SendClientMessage(playerid,pcolv,string);
  15226. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15227. format(string, sizeof(string), "(JAIL ESCAPE) Wanted Level %d",plwlp);
  15228. SendClientMessage(giveplayerid,pcolp,string);
  15229. format(string, sizeof(string), "Visitor %s(%d) has helped you escape from Alcatraz. You escaped through the air con pipes",visitorname,playerid);
  15230. SendClientMessage(giveplayerid,pcolp,string);
  15231. format(string, sizeof(string), "%s(%d) has helped %s(%d) escape from Alcatraz",visitorname,playerid,prisonername,giveplayerid);
  15232. SendClientMessageToAll(0x00C7FFAA,string);
  15233. format(string, sizeof(string), "%s(%d) Has helped %s(%d) escape from alcatraz (vent)",visitorname,playerid,prisonername,giveplayerid);
  15234. printf("%s",string);
  15235. for(new i=0;i<MAX_PLAYERS;i++)
  15236. {
  15237. if(LawEnforcementRadio[i] == 1) {
  15238. new string1[256];
  15239. new string2[256];
  15240. new string3[256];
  15241. new current_zone;
  15242. current_zone = player_zone[giveplayerid];
  15243. format(string1, sizeof(string1), "DISPATCH: (ALCATRAZ ESCAPE) %s(%d) Has escaped from Alcatraz. ALL UNITS RESPOND",prisonername,giveplayerid);
  15244. format(string2, sizeof(string2), "ALL UNITS: Please respond and take %s(%d) and %s(%d) back into custody",prisonername,giveplayerid,visitorname,playerid);
  15245. format(string3, sizeof(string3), "Location: %s",zones[current_zone][zone_name]);
  15246. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  15247. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  15248. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  15249. }
  15250. }
  15251. }
  15252. return 1;
  15253. }
  15254.  
  15255.  
  15256.  
  15257.  
  15258.  
  15259. if (strcmp("/me", cmdtext, true, 3) == 0)
  15260. {
  15261. if(IsSpawned[playerid] == 0) {
  15262. SendClientMessage(playerid,COLOR_ERROR, "You are dead. You cannot use this command");
  15263. return 1;
  15264. }
  15265. if(Muted[playerid] == 1) {
  15266. SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Use This Command");
  15267. return 1;
  15268. }
  15269. if(strlen(cmdtext) <= 4) {
  15270. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /me texthere");
  15271. return 1;
  15272. }
  15273. new output[200];
  15274. new pname[24];
  15275. GetPlayerName(playerid,pname,24);
  15276. strmid(output,cmdtext,3,strlen(cmdtext));
  15277. new pcol = GetPlayerColor(playerid);
  15278. format(string, sizeof(string), "* %s(%d) - %s",pname,playerid,output);
  15279. SendClientMessageToAll(pcol,string);
  15280. printf("%s",string);
  15281. SpamStrings[playerid] ++;
  15282. return 1;
  15283. }
  15284.  
  15285. if(strcmp(cmd, "/druginfo", true) == 0) {
  15286. if(IsSpawned[playerid] == 0) {
  15287. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15288. return 1;
  15289. }
  15290. if(gTeam[playerid] <= 2) {
  15291. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot carry drugs");
  15292. return 1;
  15293. }
  15294. new pDrugs = (PlayerDrugs[playerid]);
  15295. SendClientMessage(playerid, 0xA9A9A9AA, "|_Drugs Info_|");
  15296. format(string, sizeof(string), "You have %d grams of drugs on you",pDrugs);
  15297. SendClientMessage(playerid, 0x00C7FFAA, string);
  15298. SendClientMessage(playerid, 0x00C7FFAA, "Use /takedrugs (grams) to use drugs");
  15299. return 1;
  15300. }
  15301.  
  15302. if(strcmp(cmd, "/search", true) == 0) {
  15303. if(IsSpawned[playerid] == 0) {
  15304. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15305. return 1;
  15306. }
  15307. if(Jailed[playerid] == 1) {
  15308. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  15309. return 1;
  15310. }
  15311. if(gTeam[playerid] >= 3) {
  15312. SendClientMessage(playerid,COLOR_ERROR,"You are not a Law Enforcement agent");
  15313. return 1;
  15314. }
  15315. tmp = strtok(cmdtext, idx);
  15316. if(!strlen(tmp)) {
  15317. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /search (id)");
  15318. return 1;
  15319. }
  15320. giveplayerid = strval(tmp);
  15321. if(!IsNumeric(tmp)) {
  15322. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /search (id) ID Must be a number");
  15323. return 1;
  15324. }
  15325. if(!IsPlayerConnected(giveplayerid)) {
  15326. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  15327. SendClientMessage(playerid, COLOR_ERROR, string);
  15328. return 1;
  15329. }
  15330. new officername[24];
  15331. new civilname[24];
  15332. GetPlayerName(playerid,officername, 24);
  15333. GetPlayerName(giveplayerid,civilname, 24);
  15334. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  15335. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot search that player",civilname,giveplayerid);
  15336. SendClientMessage(playerid, COLOR_ERROR, string);
  15337. return 1;
  15338. }
  15339. if(cuffed[giveplayerid] == 0) {
  15340. format(string, sizeof(string), "%s(%d) Is not handcuffed. Place the suspect in handcuffs before searching",civilname,giveplayerid);
  15341. SendClientMessage(playerid, COLOR_ERROR, string);
  15342. return 1;
  15343. }
  15344. if(IsSpawned[giveplayerid] == 0) {
  15345. format(string, sizeof(string), "%s(%d) Is dead. You cannot search a dead body",civilname,giveplayerid);
  15346. SendClientMessage(playerid, COLOR_ERROR, string);
  15347. return 1;
  15348. }
  15349. if(IsPlayerInAnyVehicle(giveplayerid)) {
  15350. format(string, sizeof(string), "%s(%d) Is in a vehicle. Get the suspect out before searching",civilname,giveplayerid);
  15351. SendClientMessage(playerid, COLOR_ERROR, string);
  15352. return 1;
  15353. }
  15354. SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Searched_|");
  15355. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Law Enforcement Stop Search_|");
  15356. if(PlayerDrugs[giveplayerid] <= 0) {
  15357. format(string, sizeof(string), "%s(%d) Has been searched. Nothing was found!",civilname,giveplayerid);
  15358. SendClientMessage(playerid, 0x00C7FFAA, string);
  15359. format(string, sizeof(string), "Officer %s(%d) Has searched you. You are not carrying anything illegal.",officername,playerid);
  15360. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  15361. }
  15362. if(PlayerDrugs[giveplayerid] >=1 && HasDrugBag[giveplayerid] == 1) {
  15363. format(string, sizeof(string), "%s(%d) Has been searched. Nothing was found. The suspect is free to go",civilname,giveplayerid);
  15364. SendClientMessage(playerid, 0x00C7FFAA, string);
  15365. format(string, sizeof(string), "Officer %s(%d) Has searched you for. You have a DrugBag. Your drugs were not found",officername,playerid);
  15366. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  15367. }
  15368. if(PlayerDrugs[giveplayerid] >=1 && HasDrugBag[giveplayerid] == 0) {
  15369. new drugspossesed = (PlayerDrugs[giveplayerid]);
  15370. format(string, sizeof(string), "%s(%d) Has been searched. You found %d gram(s) of drugs. You have siezed the drugs and receive a £2000 bonus",civilname,giveplayerid,drugspossesed);
  15371. SendClientMessage(playerid, 0x00C7FFAA, string);
  15372. format(string, sizeof(string), "Officer %s(%d) Has searched you for drugs. %d gram(s) of drugs were found and siezed",officername,playerid,drugspossesed);
  15373. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  15374. new plwl = GetPlayerWantedLevel(giveplayerid);
  15375. SetPlayerWantedLevel(giveplayerid, plwl +4 );
  15376. new pcol = GetPlayerColor(giveplayerid);
  15377. plwl = GetPlayerWantedLevel(giveplayerid);
  15378. format(string, sizeof(string), "Officer %s(%d) has searched %s(%d) - %d gram(s) of drugs were found during the search",officername,playerid,civilname,giveplayerid,drugspossesed);
  15379. SendClientMessageToAll(0x00C7FFAA, string);
  15380. printf("%s", string);
  15381. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15382. format(string, sizeof(string), "(DRUG POSSESION) Wanted Level %d",plwl);
  15383. SendClientMessage(giveplayerid,pcol,string);
  15384. oscore = GetPlayerScore(playerid);
  15385. SetPlayerScore(playerid, oscore +1);
  15386. PlayerDrugs[giveplayerid] =0;
  15387. GivePlayerMoney(playerid,2000);
  15388. }
  15389. if(HasC4[giveplayerid] == 1) {
  15390. format(string, sizeof(string), "You have found 3 Blocks of C4 in %s(%d)'s possesion. You have siezed the explosives and receive a £1500 bonus",civilname,giveplayerid);
  15391. SendClientMessage(playerid, 0x00C7FFAA, string);
  15392. format(string, sizeof(string), "Officer %s(%d) Has found 3 Blocks of C4 in your possesion. The explosives were siezed",officername,playerid);
  15393. SendClientMessage(giveplayerid, COLOR_ERROR, string);
  15394. new plwl = GetPlayerWantedLevel(giveplayerid);
  15395. SetPlayerWantedLevel(giveplayerid, plwl +4 );
  15396. new pcol = GetPlayerColor(giveplayerid);
  15397. plwl = GetPlayerWantedLevel(giveplayerid);
  15398. format(string, sizeof(string), "Officer %s(%d) has siezed 3 Blocks of C4 from %s(%d)",officername,playerid,civilname,giveplayerid);
  15399. SendClientMessageToAll(0x00C7FFAA, string);
  15400. ircSay(EchoConnection, EchoChan,string);
  15401. printf("%s", string);
  15402. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15403. format(string, sizeof(string), "(EXPLOSIVES POSSESION) Wanted Level %d",plwl);
  15404. SendClientMessage(giveplayerid,pcol,string);
  15405. oscore = GetPlayerScore(playerid);
  15406. SetPlayerScore(playerid, oscore +1);
  15407. HasC4[giveplayerid] =0;
  15408. GivePlayerMoney(playerid,1500);
  15409. }
  15410. return 1;
  15411. }
  15412.  
  15413.  
  15414.  
  15415. if(strcmp(cmd, "/fix", true) == 0) {
  15416. if(IsSpawned[playerid] == 0) {
  15417. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15418. return 1;
  15419. }
  15420. if(gTeam[playerid] != TEAM_CARFIX) {
  15421. SendClientMessage(playerid,COLOR_ERROR,"You are not a Car Mechanic");
  15422. return 1;
  15423. }
  15424. if(InDerby[playerid] == 1) {
  15425. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  15426. return 1;
  15427. }
  15428. if(fixedcarrecent[playerid] >=1) {
  15429. SendClientMessage(playerid,COLOR_ERROR,"Command used recently. Please wait");
  15430. return 1;
  15431. }
  15432. tmp = strtok(cmdtext, idx);
  15433. if(!strlen(tmp)) {
  15434. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /fix (id)");
  15435. return 1;
  15436. }
  15437. giveplayerid = strval(tmp);
  15438. if(!IsNumeric(tmp)) {
  15439. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /fix (id) ID Must be a number");
  15440. return 1;
  15441. }
  15442. if(!IsPlayerConnected(giveplayerid)) {
  15443. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  15444. SendClientMessage(playerid, COLOR_ERROR, string);
  15445. return 1;
  15446. }
  15447. if(strval(tmp) == playerid) {
  15448. SendClientMessage(playerid, COLOR_ERROR, "Please use /fixme to fix your own vehicle");
  15449. return 1;
  15450. }
  15451. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 5) {
  15452. format(string, sizeof(string), "(%d) Is not close enough. You cannot fix that players vehicle engine",giveplayerid);
  15453. SendClientMessage(playerid, COLOR_ERROR, string);
  15454. return 1;
  15455. }
  15456. new mname[24];
  15457. new pname[24];
  15458. GetPlayerName(playerid,mname, 24);
  15459. GetPlayerName(giveplayerid, pname, 24);
  15460. if(!IsPlayerInAnyVehicle(giveplayerid)) {
  15461. format(string, sizeof(string), "%s(%d) is not in any vehicle",pname,giveplayerid);
  15462. SendClientMessage(playerid, COLOR_ERROR, string);
  15463. return 1;
  15464. }
  15465.  
  15466.  
  15467. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  15468. new tofix = GetPlayerVehicleID(giveplayerid);
  15469. new Float:vHealth;
  15470. GetVehicleHealth(tofix, vHealth);
  15471. if(vHealth > 700) {
  15472. format(string, sizeof(string), "%s(%d)'s vehicle engine does not need fixed",pname,giveplayerid);
  15473. SendClientMessage(playerid, COLOR_ERROR, string);
  15474. return 1;
  15475. }
  15476.  
  15477. new mrand = random(2500);
  15478. oscore = GetPlayerScore(playerid);
  15479. SetVehicleHealth(tofix,1000);
  15480. GivePlayerMoney(giveplayerid,-mrand);
  15481. GivePlayerMoney(playerid,mrand);
  15482. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Vehicle Engine Repaired_|");
  15483. format(string, sizeof(string), "Mechanic %s(%d) has fixed your vehicle engine for $%d",mname,playerid,mrand);
  15484. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  15485. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Engine Repaired_|");
  15486. format(string, sizeof(string), "You have fixed %s(%d)s vehicle engine. You earned $%d", pname,giveplayerid,mrand);
  15487. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  15488. SetPlayerScore(playerid, oscore +1);
  15489. fixedcarrecent[playerid] =60;
  15490. }
  15491. else{
  15492. format(string, sizeof(string), "%s(%d) is not the driver of the vehicle",pname,giveplayerid);
  15493. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  15494. }
  15495. return 1;
  15496. }
  15497.  
  15498. if(strcmp(cmd, "/break", true) == 0) {
  15499. if(IsSpawned[playerid] == 0) {
  15500. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15501. return 1;
  15502. }
  15503. if(InDerby[playerid] == 1) {
  15504. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  15505. return 1;
  15506. }
  15507. if(gTeam[playerid] != TEAM_CARFIX) {
  15508. SendClientMessage(playerid,COLOR_ERROR,"You are not a Car Mechanic");
  15509. return 1;
  15510. }
  15511. tmp = strtok(cmdtext, idx);
  15512. if(!strlen(tmp)) {
  15513. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /break (id)");
  15514. return 1;
  15515. }
  15516. giveplayerid = strval(tmp);
  15517. if(!IsNumeric(tmp)) {
  15518. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /break (id) ID Must be a number");
  15519. return 1;
  15520. }
  15521. if(!IsPlayerConnected(giveplayerid)) {
  15522. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  15523. SendClientMessage(playerid, COLOR_ERROR, string);
  15524. return 1;
  15525. }
  15526.  
  15527. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 3) {
  15528. format(string, sizeof(string), "(%d) Is not close enough. You cannot pour sand into that players vehicle engine",giveplayerid);
  15529. SendClientMessage(playerid, COLOR_ERROR, string);
  15530. return 1;
  15531. }
  15532. new mname[24];
  15533. new pname[24];
  15534. GetPlayerName(playerid,mname, 24);
  15535. GetPlayerName(giveplayerid, pname, 24);
  15536. if(!IsPlayerInAnyVehicle(giveplayerid)) {
  15537. format(string, sizeof(string), "%s(%d) is not in any vehicle",pname,giveplayerid);
  15538. SendClientMessage(playerid, COLOR_ERROR, string);
  15539. return 1;
  15540. }
  15541.  
  15542. if(GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER) {
  15543. if(GetVehicleModel(GetPlayerVehicleID(giveplayerid)) == 481) {
  15544. SendClientMessage(playerid, COLOR_ERROR, "That vehicle does not have any engine, you cannot use this command on that vehicle (BMX Bike)");
  15545. return 1;
  15546. }
  15547. new tobreak = GetPlayerVehicleID(giveplayerid);
  15548.  
  15549. SandInEngine[tobreak] =1;
  15550. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Sand In Engine_|");
  15551. format(string, sizeof(string), "Mechanic %s(%d) has filled your vehicle engine with sand. GET OUT",mname,playerid);
  15552. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  15553. SendClientMessage(playerid, 0xA9A9A9AA, "|_Sand In Engine_|");
  15554. format(string, sizeof(string), "You have filled %s(%d)'s vehicle engine with sand", pname,giveplayerid);
  15555. SendClientMessage(playerid,COLOR_DODGERBLUE, string);
  15556. new plwl = GetPlayerWantedLevel(playerid);
  15557. SetPlayerWantedLevel(playerid, plwl +1 );
  15558. commitedcrimerecently[playerid] +=60;
  15559. for(new i=0;i<MAX_PLAYERS;i++)
  15560. {
  15561. if(IsPlayerConnected(i))
  15562. {
  15563. if(LawEnforcementRadio[i] == 1)
  15564. {
  15565. new current_zone;
  15566. current_zone = player_zone[playerid];
  15567. format(string, sizeof(string), "DISPATCH: (CRIME IN PROGRESS) SUSPECT: %s(%d) CRIME: Criminal Damage LOCATION: %s",mname,playerid,zones[current_zone][zone_name]);
  15568. SendClientMessage(i,COLOR_ROYALBLUE, string);
  15569. }
  15570. }
  15571. }
  15572. new pcol = GetPlayerColor(playerid);
  15573. plwl = GetPlayerWantedLevel(playerid);
  15574. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  15575. format(string, sizeof(string), "(CRIMINAL DAMAGE) Wanted Level %d",plwl);
  15576. SendClientMessage(playerid,pcol,string);
  15577. }
  15578. else{
  15579. format(string, sizeof(string), "%s(%d) is not the driver of the vehicle",pname,giveplayerid);
  15580. SendClientMessage(giveplayerid,COLOR_DODGERBLUE, string);
  15581. }
  15582. return 1;
  15583. }
  15584.  
  15585. /*if(strcmp(cmd, "/mechanic", true) == 0) {
  15586. if(IsSpawned[playerid] == 0) {
  15587. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15588. return 1;
  15589. }
  15590. if(gTeam[playerid] == TEAM_CARFIX) {
  15591. SendClientMessage(playerid,COLOR_ERROR,"You are a mechanic. Use /fixme to fix your car");
  15592. return 1;
  15593. }
  15594. if(RecentAskedMechanic[playerid] == 1) {
  15595. SendClientMessage(playerid,COLOR_ERROR,"Please wait before asking for a mechanic again");
  15596. return 1;
  15597. }
  15598. for(new i=0;i<MAX_PLAYERS;i++)
  15599. {
  15600. if(IsPlayerConnected(i))
  15601. {
  15602. if(gTeam[i] == TEAM_CARFIX)
  15603. {
  15604. new pname[24];
  15605. GetPlayerName(playerid,pname, 24);
  15606. new current_zone;
  15607. current_zone = player_zone[playerid];
  15608. format(string, sizeof(string), "%s(%d) is looking for a mechanic. Location: %s", pname,giveplayerid,zones[current_zone][zone_name]);
  15609. SendClientMessage(i,COLOR_BLUE, string);
  15610. SendClientMessage(playerid,COLOR_DODGERBLUE,"You have called a mechanic");
  15611. RecentAskedMechanic[playerid] =1;
  15612. }
  15613. else{
  15614. SendClientMessage(playerid,COLOR_DODGERBLUE,"not any mechanic");
  15615. }
  15616. }
  15617. }
  15618. return 1;
  15619. }*/
  15620.  
  15621. if(strcmp(cmd, "/fixme", true) == 0) {
  15622. if(IsSpawned[playerid] == 0) {
  15623. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15624. return 1;
  15625. }
  15626. if(GetPlayerWantedLevel(playerid) >= 4) {
  15627. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you have a warrant (Orange/Red)");
  15628. return 1;
  15629. }
  15630. if(InDerby[playerid] == 1) {
  15631. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while you are in the stadium");
  15632. return 1;
  15633. }
  15634.  
  15635. if(gTeam[playerid] != TEAM_CARFIX) {
  15636. SendClientMessage(playerid,COLOR_ERROR,"You are not a mechanic");
  15637. return 1;
  15638. }
  15639. if(!IsPlayerInAnyVehicle(playerid)) {
  15640. SendClientMessage(playerid,COLOR_ERROR,"You are not in a vehicle");
  15641. return 1;
  15642. }
  15643. if(fixedcarrecent[playerid] >=1) {
  15644. SendClientMessage(playerid,COLOR_ERROR,"Command used recently. Please wait");
  15645. return 1;
  15646. }
  15647. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  15648. new tofix = GetPlayerVehicleID(playerid);
  15649. SetVehicleHealth(tofix, 1000);
  15650. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Engine Repaired_|");
  15651. SendClientMessage(playerid, 0x00C7FFAA, "You have fixed your vehicle engine");
  15652. fixedcarrecent[playerid] =60;
  15653. }
  15654. else
  15655. SendClientMessage(playerid, COLOR_ERROR, "You need to be driver to fix your own car");
  15656. return 1;
  15657. }
  15658.  
  15659. if(strcmp(cmd, "/ccommands", true) == 0) {
  15660. if(IsSpawned[playerid] == 0) {
  15661. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15662. return 1;
  15663. }
  15664.  
  15665. SendClientMessage(playerid,COLOR_ROYALBLUE, "Criminal Commands");
  15666. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rob (id) - Attempt to rob another player");
  15667. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rape (id) - Attempt to rape another player");
  15668. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robcasino - Attempt to rob a casino");
  15669. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robbank - Attempt to rob LV City Bank");
  15670. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robatm - Attempt to rob a ATM Machine");
  15671. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robstore - Attempt to rob a 24/7 Store");
  15672. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robhall - Attempt to rob LV City Hall");
  15673. SendClientMessage(playerid,COLOR_ROYALBLUE, "/robab - Attempt to rob AutoBahn");
  15674. SendClientMessage(playerid,COLOR_ROYALBLUE, "/takedrugs (grams) - Use drugs");
  15675. SendClientMessage(playerid,COLOR_ROYALBLUE, "/sur - Surrender when wanted");
  15676. SendClientMessage(playerid,COLOR_ROYALBLUE, "/givec4 - Give a player C4");
  15677. SendClientMessage(playerid,COLOR_ROYALBLUE, "/ta - Throws away any illegal items");
  15678. SendClientMessage(playerid,COLOR_ROYALBLUE, "See /gcommands for general gameplay commands");
  15679.  
  15680. return 1;
  15681. }
  15682.  
  15683. if(strcmp(cmd, "/gcommands", true) == 0) {
  15684. if(IsSpawned[playerid] == 0) {
  15685. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15686. return 1;
  15687. }
  15688.  
  15689. SendClientMessage(playerid,COLOR_ROYALBLUE, "General Gameplay Commands");
  15690. SendClientMessage(playerid,COLOR_ROYALBLUE, "/food - Call a food delivery worker");
  15691. SendClientMessage(playerid,COLOR_ROYALBLUE, "/drugs - Call a drugs dealer");
  15692. SendClientMessage(playerid,COLOR_ROYALBLUE, "/hit (id) (amount) - Place a hit contract on another player");
  15693. SendClientMessage(playerid,COLOR_ROYALBLUE, "/gc (id) (amount) - Give another player cash");
  15694. SendClientMessage(playerid,COLOR_ROYALBLUE, "/pm (id) (msg) - Send a Personal Message /pmoff - Refuse PMs");
  15695. SendClientMessage(playerid,COLOR_ROYALBLUE, "/ej - Eject you from vehicle /ejall - Eject all from vehicle");
  15696. SendClientMessage(playerid,COLOR_ROYALBLUE, "/ej (id) - Eject a player from your vehicle");
  15697. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cry - Cry like a big girl");
  15698. SendClientMessage(playerid,COLOR_ROYALBLUE, "/foff (ID)- Tell a player to Fuck Off");
  15699. SendClientMessage(playerid,COLOR_ROYALBLUE, "/bail (ID) bail a player from prision for 25k");
  15700. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rc - Speak so only Regular Players can see");
  15701. SendClientMessage(playerid,COLOR_ROYALBLUE, "See /ccommands for criminal commands");
  15702.  
  15703. return 1;
  15704. }
  15705. if(strcmp(cmd, "/credits", true) == 0)
  15706. {
  15707. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Roleplay/Cops/Robbers -(CREDITS)-_|");
  15708. SendClientMessage(playerid,COLOR_WHITE, "The people mentioned here are thanked and are given due credit!!");
  15709. SendClientMessage(playerid,COLOR_YELLOW, "1 - BMUK -Made most of the GM");
  15710. SendClientMessage(playerid,COLOR_YELLOW, "2 - Byrner - Scripted 1.7 ");
  15711. SendClientMessage(playerid,COLOR_YELLOW, "3 - [VLA]Wooz1e - Annimations FS (Edited)");
  15712. SendClientMessage(playerid,COLOR_YELLOW, "4 - Robert_Doc - Added Kidnapper skill");
  15713. SendClientMessage(playerid,COLOR_YELLOW, "5 - All the admins");
  15714. SendClientMessage(playerid,COLOR_YELLOW, "6 - Joe_Dean - Took over the server, kept it going, much <3.");
  15715. SendClientMessage(playerid,COLOR_GREY, "If you think your name should be in the Credits.. Visit the forums: www.lvrcr.com");
  15716. return 1;
  15717. }
  15718.  
  15719.  
  15720. if(strcmp(cmd, "/rules", true) == 0) {
  15721. SendClientMessage(playerid, 0x00C7FFAA, "No Random Killing / hit contracts / DeathMatching / TeamKilling");
  15722. SendClientMessage(playerid, 0x00C7FFAA, "No Hacking / Cheating");
  15723. SendClientMessage(playerid, 0x00C7FFAA, "No Bitching");
  15724. SendClientMessage(playerid, 0x00C7FFAA, "Speak only English in main chat");
  15725. SendClientMessage(playerid, 0x00C7FFAA, "Hitmen can only kill players on there /listhits");
  15726. SendClientMessage(playerid, 0x00C7FFAA, "Do not go on a cop killing spree just because you are wanted");
  15727. SendClientMessage(playerid, 0x00C7FFAA, "Read /pc for a list of colour relevance");
  15728. SendClientMessage(playerid, 0x00C7FFAA, "Go to our website for more rules @ www.lvrcr.com");
  15729. for(new i=0;i<MAX_PLAYERS;i++)
  15730. {
  15731. if(IsPlayerConnected(i) && PlayerAdminLevel[i] == 1337) {
  15732. {
  15733. new reportername[24];
  15734. GetPlayerName(playerid,reportername, 24);
  15735. format(string, sizeof(string), "(%s(%d) has typed /rules",reportername,playerid);
  15736. SendClientMessage(i,0xFF7F50AA,string);
  15737. printf("%s",string);
  15738. }
  15739. }
  15740. }
  15741. return 1;
  15742. }
  15743.  
  15744.  
  15745.  
  15746.  
  15747.  
  15748.  
  15749. if(strcmp(cmd, "/commands", true) == 0) {
  15750. if(IsSpawned[playerid] == 0) {
  15751. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15752. return 1;
  15753. }
  15754.  
  15755. if(gTeam[playerid] == TEAM_COP) {
  15756.  
  15757. SendClientMessage(playerid,COLOR_ROYALBLUE, "Police Officer Commands");
  15758. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rp (id) [reason] - Report criminal activity");
  15759. SendClientMessage(playerid,COLOR_ROYALBLUE, "/fine (id) - Issue a fine to a suspect. Suspect must be Yellow");
  15760. SendClientMessage(playerid,COLOR_ROYALBLUE, "/pu (id) - Ask a player to pull over if in vehicle. Or freeze if on foot");
  15761. SendClientMessage(playerid,COLOR_ROYALBLUE, "/taze (id) - Taze a suspect. Suspect must have a warrant issued");
  15762. SendClientMessage(playerid,COLOR_ROYALBLUE, "/ar (id) - Arrest a suspect with a warrant");
  15763. SendClientMessage(playerid,COLOR_ROYALBLUE, "/parole (id) - Release a player from jail");
  15764. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cuff (id) - Place a suspect in handcuffs. /vc (id) - Report Visual contact");
  15765. SendClientMessage(playerid,COLOR_ROYALBLUE, "/search (id) - Search a suspect for drugs. /cm (message) - Cop Message");
  15766. SendClientMessage(playerid,COLOR_ROYALBLUE, "/radon - Turn Police radio on. /radoff - Turn Police radio off");
  15767.  
  15768.  
  15769. }else if(gTeam[playerid] == TEAM_ARMY) {
  15770. new canbearmy = dUserINT(PlayerName(playerid)).("canusearmy");
  15771. if(canbearmy == 0)
  15772. {
  15773. ForceClassSelection(playerid);
  15774. SendClientMessage(playerid,COLOR_ERROR, "You do not have permission to be the army class.");
  15775. }
  15776. else
  15777. {
  15778. SendClientMessage(playerid,COLOR_ROYALBLUE, "SA Army Commands");
  15779. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rp (id) [reason] - Report criminal activity");
  15780. SendClientMessage(playerid,COLOR_ROYALBLUE, "/su (id) - Ask a suspect to freeze and surrender");
  15781. SendClientMessage(playerid,COLOR_ROYALBLUE, "/fine (id) - Issue a fine to a suspect. Suspect must be Yellow");
  15782. SendClientMessage(playerid,COLOR_ROYALBLUE, "/taze (id) - Taze a suspect. Suspect must have a warrant issued");
  15783. SendClientMessage(playerid,COLOR_ROYALBLUE, "/ar (id) - Arrest a suspect with a warrant");
  15784. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cuff (id) - Place a suspect in handcuffs");
  15785. SendClientMessage(playerid,COLOR_ROYALBLUE, "/search (id) - Search a suspect for drugs. /cm (message) - Cop Message");
  15786. SendClientMessage(playerid,COLOR_ROYALBLUE, "/radon - Turn Law Enforcement radio on. /radoff - Turn radio off");
  15787. }
  15788. }else if(gTeam[playerid] == TEAM_MEDIC) {
  15789.  
  15790. SendClientMessage(playerid,COLOR_ROYALBLUE, "Medic Commands");
  15791. SendClientMessage(playerid,COLOR_ROYALBLUE, "/heal (id) - Restore a players health for a fee");
  15792. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cure (id) - Cure a players infections for a fee");
  15793. SendClientMessage(playerid,COLOR_ROYALBLUE, "/healme - Restore your own health");
  15794. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cureme - Cure your own infections");
  15795.  
  15796. }else if(gTeam[playerid] == TEAM_CARFIX) {
  15797.  
  15798. SendClientMessage(playerid,COLOR_ROYALBLUE, "Vehicle Mechanic Commands");
  15799. SendClientMessage(playerid,COLOR_ROYALBLUE, "/fix (id) - Fix a players vehicle. The player must be the driver of a vehicle");
  15800. SendClientMessage(playerid,COLOR_ROYALBLUE, "/break (id) - Pour sand into a players engine. Car will explode");
  15801. SendClientMessage(playerid,COLOR_ROYALBLUE, "/fixme - Fix your own vehicle");
  15802.  
  15803. }else if(gTeam[playerid] == TEAM_CASSEC) {
  15804.  
  15805. SendClientMessage(playerid,COLOR_ROYALBLUE, "Casino Security Commands");
  15806. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cuff (id) - Hand cuff a player with a warrant untill Police arrive");
  15807. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cm (msg) - Talk directly with the Police. You have a Police Radio");
  15808. SendClientMessage(playerid,COLOR_ROYALBLUE, "/radon - Turn Police radio on. /radoff - Turn Police radio off");
  15809.  
  15810. }else if(gTeam[playerid] == TEAM_DRIVER) {
  15811.  
  15812. SendClientMessage(playerid,COLOR_ROYALBLUE, "Driver Commands");
  15813. SendClientMessage(playerid,COLOR_ROYALBLUE, "Drivers do not have any commands. Players call your service with /driver");
  15814. SendClientMessage(playerid,COLOR_ROYALBLUE, "Your passengers are charged $1 every 1 second if they get in your car");
  15815. SendClientMessage(playerid,COLOR_ROYALBLUE, "You can use criminal commands. Type /ccommands for details");
  15816. SendClientMessage(playerid,COLOR_ROYALBLUE, "You do not earn points or get your city paycheck if you have a wanted level");
  15817.  
  15818. }else if(gTeam[playerid] == TEAM_BISTRO) {
  15819.  
  15820. SendClientMessage(playerid,COLOR_ROYALBLUE, "Bistro Staff Commands");
  15821. SendClientMessage(playerid,COLOR_ROYALBLUE, "/sellfood (id) - Sell food to a player for a fee");
  15822. SendClientMessage(playerid,COLOR_ROYALBLUE, "/Sellbadfood (id) - Sell bad food to a player. Player will be infected");
  15823. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15824.  
  15825. }else if(gTeam[playerid] == TEAM_JAILTK) {
  15826.  
  15827. SendClientMessage(playerid,COLOR_ROYALBLUE, "Jail Turnkey Commands");
  15828. SendClientMessage(playerid,COLOR_ROYALBLUE, "/parole (id) - Release a player from jail");
  15829. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15830.  
  15831. }else if(gTeam[playerid] == TEAM_PVTMED) {
  15832.  
  15833. SendClientMessage(playerid,COLOR_ROYALBLUE, "Private Medic Commands");
  15834. SendClientMessage(playerid,COLOR_ROYALBLUE, "/heal (id) - Restore a players health for a fee");
  15835. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cure (id) - Cure a players infections for a fee");
  15836. SendClientMessage(playerid,COLOR_ROYALBLUE, "/healme - Restore your own health");
  15837. SendClientMessage(playerid,COLOR_ROYALBLUE, "/cureme - Cure your own infections");
  15838. SendClientMessage(playerid,COLOR_ROYALBLUE, "/infect (id) - Infect a player with a disease");
  15839.  
  15840. }else if(gTeam[playerid] == TEAM_CIVIL) {
  15841.  
  15842. SendClientMessage(playerid,COLOR_RED, "You do not have a skill or are not in a team");
  15843. SendClientMessage(playerid,COLOR_RED, "Use /skill to select a skill");
  15844.  
  15845. }else if(gTeam[playerid] == TEAM_DRGDEL) {
  15846.  
  15847. SendClientMessage(playerid,COLOR_ROYALBLUE, "Drug Dealer Commands");
  15848. SendClientMessage(playerid,COLOR_ROYALBLUE, "/selldrugs (id) (amount per gram) - Offer to sell a player drugs for a set amount per gram");
  15849. SendClientMessage(playerid,COLOR_ROYALBLUE, "/givedrugs (id) (grams) - give a player drugs. Remember to get paid");
  15850. SendClientMessage(playerid,COLOR_ROYALBLUE, "/takedrugs (grams) - Take some drugs. Health refills when you are on drugs");
  15851. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15852.  
  15853. }else if(gTeam[playerid] == TEAM_HITMAN) {
  15854.  
  15855. SendClientMessage(playerid,COLOR_ROYALBLUE, "Hitman Commands");
  15856. SendClientMessage(playerid,COLOR_ROYALBLUE, "You do not have any commands. Players will contact you if they want someone dead");
  15857. SendClientMessage(playerid,COLOR_ROYALBLUE, "Make sure you get paid");
  15858. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15859.  
  15860. }else if(gTeam[playerid] == TEAM_GUNDEL) {
  15861.  
  15862. SendClientMessage(playerid,COLOR_ROYALBLUE, "Gun Dealer Commands");
  15863. SendClientMessage(playerid,COLOR_ROYALBLUE, "/sellweapons (id) - Offer to sell a player guns");
  15864. SendClientMessage(playerid,COLOR_ROYALBLUE, "/sellweapon (id) (itemnumber) - Sell a player a weapon");
  15865. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15866.  
  15867. }else if(gTeam[playerid] == TEAM_SNITCH) {
  15868.  
  15869. SendClientMessage(playerid,COLOR_ROYALBLUE, "Snitch (Police Informant) Commands");
  15870. SendClientMessage(playerid,COLOR_ROYALBLUE, "You do not have any commands. If you are in the area when crimes are commited..");
  15871. SendClientMessage(playerid,COLOR_ROYALBLUE, "Then the police will be informed and you will earn some cash");
  15872. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15873.  
  15874. }else if(gTeam[playerid] == TEAM_PILOT) {
  15875.  
  15876. SendClientMessage(playerid,COLOR_ROYALBLUE, "Pilot Commands");
  15877. SendClientMessage(playerid,COLOR_ROYALBLUE, "/pduty To go on duty as a driver");
  15878. SendClientMessage(playerid,COLOR_ROYALBLUE, "/offpduty to go off duty");
  15879. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15880.  
  15881.  
  15882. }else if(gTeam[playerid] == TEAM_RAPIST) {
  15883.  
  15884. SendClientMessage(playerid,COLOR_ROYALBLUE, "Rapist Commands");
  15885. SendClientMessage(playerid,COLOR_ROYALBLUE, "/rape (id) - Rape a player and give them STD/Infection");
  15886. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15887.  
  15888.  
  15889. }else if(gTeam[playerid] == TEAM_BOUNTY) {
  15890.  
  15891. SendClientMessage(playerid,COLOR_ROYALBLUE, "Bounty Hunter Commands");
  15892. SendClientMessage(playerid,COLOR_ROYALBLUE, "/bounty - See a list of players who are on your bounty list");
  15893. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15894.  
  15895.  
  15896. }else if(gTeam[playerid] == TEAM_KIDNAP) {
  15897.  
  15898. SendClientMessage(playerid,COLOR_ROYALBLUE, "Kidnapper Commands");
  15899. SendClientMessage(playerid,COLOR_ROYALBLUE, "/kidnap - Drags a player into your vehicle.");
  15900. SendClientMessage(playerid,COLOR_ROYALBLUE, "/tie - Tie the passenger in your car up in rope.");
  15901. SendClientMessage(playerid,COLOR_ROYALBLUE, "/untie - Unties a kidnapped player if you feel sorry for them or your penis is simply too sore from raping.");
  15902. SendClientMessage(playerid,COLOR_ROYALBLUE, "See also /ccommands for criminal commands you can use");
  15903. }
  15904.  
  15905.  
  15906.  
  15907. return 1;
  15908. }
  15909.  
  15910. if(strcmp(cmd, "/rape", true) == 0) {
  15911. if(IsSpawned[playerid] == 0) {
  15912. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  15913. return 1;
  15914. }
  15915. if(cuffed[playerid] == 1) {
  15916. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  15917. return 1;
  15918. }
  15919. if(Jailed[playerid] == 1) {
  15920. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command in jail");
  15921. return 1;
  15922. }
  15923. if(gTeam[playerid] == TEAM_COP) {
  15924. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot rape people");
  15925. return 1;
  15926. }
  15927. if(gTeam[playerid] == TEAM_ARMY) {
  15928. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot rape people");
  15929. return 1;
  15930. }
  15931. if(gTeam[playerid] == TEAM_CASSEC) {
  15932. SendClientMessage(playerid,COLOR_ERROR,"Casino Security agents cannot rape people");
  15933. return 1;
  15934. }
  15935. if(gTeam[playerid] == TEAM_MEDIC) {
  15936. SendClientMessage(playerid,COLOR_ERROR,"Medics cannot rape people");
  15937. return 1;
  15938. }
  15939. if(gTeam[playerid] == TEAM_JAILTK) {
  15940. SendClientMessage(playerid,COLOR_ERROR,"Jail Turnkeys cannot rape people");
  15941. return 1;
  15942. }
  15943. if(RapedPlyRecent[playerid] == 1) {
  15944. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  15945. return 1;
  15946. }
  15947. if(isKidnapped[playerid] == 1) {
  15948. SendClientMessage(playerid, COLOR_ERROR, "You are tied up! You cannot rape anyone.");
  15949. return 1;
  15950. }
  15951. if(InBank[playerid] == 1) {
  15952. SendClientMessage(playerid, COLOR_ERROR, "You cannot rape a player inside the bank");
  15953. return 1;
  15954. }
  15955. tmp = strtok(cmdtext, idx);
  15956. if(!strlen(tmp)) {
  15957. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rape (id)");
  15958. return 1;
  15959. }
  15960. if(!IsNumeric(tmp)) {
  15961. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rape (id) ID Must be a number");
  15962. return 1;
  15963. }
  15964. if(strval(tmp) == playerid) {
  15965. SendClientMessage(playerid, COLOR_ERROR, "You cannot rape yourself unless you pull your penis to your ass cheeks.");
  15966. return 1;
  15967. }
  15968. giveplayerid = strval(tmp);
  15969. if(!IsPlayerConnected(giveplayerid)) {
  15970. format(string, sizeof(string), "ID (%d) Is not an active player",giveplayerid);
  15971. SendClientMessage(playerid, COLOR_ERROR, string);
  15972. return 1;
  15973. }
  15974.  
  15975. new rapername[24];
  15976. new victimname[24];
  15977. GetPlayerName(playerid,rapername, 24);
  15978. GetPlayerName(giveplayerid, victimname, 24);
  15979.  
  15980. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 2) {
  15981. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot rape that player",victimname,giveplayerid);
  15982. SendClientMessage(playerid, COLOR_ERROR, string);
  15983. return 1;
  15984. }
  15985. if(Jailed[giveplayerid] == 1) {
  15986. format(string, sizeof(string), "%s(%d) Is in jail. You cannot rape a prisoner",victimname,giveplayerid);
  15987. SendClientMessage(playerid, COLOR_ERROR, string);
  15988. return 1;
  15989. }
  15990. if(cuffed[giveplayerid] == 1) {
  15991. format(string, sizeof(string), "%s(%d) Is handcuffed. You cannot rob a player who is handcuffed",victimname,giveplayerid);
  15992. SendClientMessage(playerid, COLOR_ERROR, string);
  15993. return 1;
  15994. }
  15995. if(IsPlayerInAnyVehicle(giveplayerid)) {
  15996. format(string, sizeof(string), "%s(%d) Is in a vehicle. You cannot rape that player",victimname,giveplayerid);
  15997. SendClientMessage(playerid, COLOR_ERROR, string);
  15998. return 1;
  15999. }
  16000. new Float:victimhealth;
  16001. GetPlayerHealth(giveplayerid,victimhealth);
  16002. if(IsSpawned[giveplayerid] == 0) {
  16003. new plwl = GetPlayerWantedLevel(playerid);
  16004. new pcol = GetPlayerColor(playerid);
  16005. SetPlayerWantedLevel(playerid,plwl +1);
  16006. format(string, sizeof(string), "%s(%d) Has raped %s(%d)'s dead, rotting corpse",rapername,playerid,victimname,giveplayerid);
  16007. SendClientMessageToAll(0xB22222AA, string);
  16008. ircSay(EchoConnection, EchoChan,string);
  16009. SpamStrings[playerid] ++;
  16010. if(Chlamydia[playerid] == 0) {
  16011. format(string, sizeof(string), "%s(%d) Has been infected with Chlamydia",rapername,playerid);
  16012. SendClientMessageToAll(0x00C7FFAA, string);
  16013. Chlamydia[playerid] =1;
  16014. }
  16015. SendClientMessage(playerid, 0xA9A9A9AA, "|_Rape Complete_|");
  16016. format(string, sizeof(string), "You have raped %s(%d)'s dead body", victimname,giveplayerid);
  16017. SendClientMessage(playerid,0x00C7FFAA,string);
  16018. plwl = GetPlayerWantedLevel(playerid);
  16019. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  16020. format(string, sizeof(string), "(CORPSE RAPE) Wanted Level %d",plwl);
  16021. SendClientMessage(playerid,pcol,string);
  16022. return 1;
  16023. }
  16024. if(gTeam[playerid] == TEAM_RAPIST && victimhealth <=25) {
  16025. SetPlayerHealth(giveplayerid,0);
  16026. oscore = GetPlayerScore(playerid);
  16027. SetPlayerScore(playerid, oscore +1);
  16028. format(string, sizeof(string), "%s(%d) Has been raped to death by rapist %s(%d)",victimname,giveplayerid,rapername,playerid);
  16029. SendClientMessageToAll(0xB22222AA, string);
  16030. ircSay(EchoConnection, EchoChan,string);
  16031. new plwl = GetPlayerWantedLevel(playerid);
  16032. new pcol = GetPlayerColor(playerid);
  16033. SetPlayerWantedLevel(playerid,plwl +10);
  16034. plwl = GetPlayerWantedLevel(playerid);
  16035. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  16036. format(string, sizeof(string), "(MURDER) Wanted Level %d",plwl);
  16037. SendClientMessage(playerid,pcol,string);
  16038. format(string, sizeof(string), "~r~RAPED TO DEATH BY~n~~w~%s(%d)",rapername,playerid);
  16039. GameTextForPlayer(giveplayerid,string,5000,3);
  16040. new current_zone;
  16041. current_zone = player_zone[playerid];
  16042. for(new i=0;i<MAX_PLAYERS;i++)
  16043. {
  16044. if(LawEnforcementRadio[i] == 1) {
  16045. format(string, sizeof(string), "DISPATCH: (MURDER) Suspect: %s(%d) has murdered %s(%d) Location: %s",rapername,playerid,victimname,giveplayerid,zones[current_zone][zone_name]);
  16046. SendClientMessage(i,COLOR_ROYALBLUE,string);
  16047. SendClientMessage(i,COLOR_ROYALBLUE,"DISPATCH: All units in the area respond");
  16048. }
  16049. }
  16050. return 1;
  16051. }
  16052.  
  16053. if(gTeam[playerid] == TEAM_RAPIST) {
  16054. new Float:phealth;
  16055. GetPlayerHealth(giveplayerid,phealth);
  16056. SetPlayerHealth(giveplayerid, phealth-10);
  16057. GetPlayerHealth(playerid,phealth);
  16058. SetPlayerHealth(playerid, phealth+10);
  16059. oscore = GetPlayerScore(playerid);
  16060. SetPlayerScore(playerid, oscore +1);
  16061. Chlamydia[giveplayerid] =1;
  16062. format(string, sizeof(string), "%s(%d) Has been infected with Chlamydia",victimname,giveplayerid);
  16063. SendClientMessageToAll(0x00C7FFAA, string);
  16064. ircSay(EchoConnection, EchoChan,string);
  16065. }
  16066. if(gTeam[playerid] != TEAM_RAPIST && Chlamydia[playerid] == 1) {
  16067. Chlamydia[giveplayerid] =1;
  16068. format(string, sizeof(string), "%s(%d) Has been infected with Chlamydia",victimname,giveplayerid);
  16069. SendClientMessageToAll(0x00C7FFAA, string);
  16070. ircSay(EchoConnection, EchoChan,string);
  16071. format(string, sizeof(string), "You have infected %s(%d) with Chlamydia",victimname,giveplayerid);
  16072. SendClientMessage(playerid,0x00C7FFAA, string);
  16073. }
  16074. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Rape Victim_|");
  16075. format(string, sizeof(string), "%s(%d) Has raped you",rapername,playerid);
  16076. SendClientMessage(giveplayerid, 0xD2691EAA, string);
  16077. SendClientMessage(playerid, 0xA9A9A9AA, "|_Rape Complete_|");
  16078. format(string, sizeof(string), "You have raped %s(%d)", victimname,giveplayerid);
  16079. SendClientMessage(playerid, 0x00C7FFAA, string);
  16080. RapedPlyRecent[playerid] =1;
  16081. format(string, sizeof(string), "%s(%d) Has raped %s(%d)",rapername,playerid,victimname,giveplayerid);
  16082. printf("%s", string);
  16083. ircSay(EchoConnection, EchoChan,string);
  16084. PlayerPlaySound(giveplayerid, 1190, 0.0, 0.0, 0.0);
  16085. commitedcrimerecently[playerid] +=120;
  16086. new current_zone;
  16087. current_zone = player_zone[playerid];
  16088. for(new i=0;i<MAX_PLAYERS;i++)
  16089. {
  16090. if(LawEnforcementRadio[i] == 1) {
  16091. format(string, sizeof(string), "DISPATCH: (RAPE) Suspect: %s(%d) has raped %s(%d) Location: %s",rapername,playerid,victimname,giveplayerid,zones[current_zone][zone_name]);
  16092. SendClientMessage(i,COLOR_ROYALBLUE,string);
  16093. }
  16094. }
  16095. if(gTeam[giveplayerid] == TEAM_COP || gTeam[giveplayerid] == TEAM_ARMY) {
  16096. new plwl = GetPlayerWantedLevel(playerid);
  16097. SetPlayerWantedLevel(playerid, plwl +4 );
  16098. }
  16099. else{
  16100. new plwl = GetPlayerWantedLevel(playerid);
  16101. SetPlayerWantedLevel(playerid, plwl +2 );
  16102. }
  16103. new pcol = GetPlayerColor(playerid);
  16104. new plwl = GetPlayerWantedLevel(playerid);
  16105. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  16106. format(string, sizeof(string), "(RAPE) Wanted Level %d",plwl);
  16107. SendClientMessage(playerid,pcol,string);
  16108.  
  16109.  
  16110. return 1;
  16111. }
  16112.  
  16113.  
  16114.  
  16115. if(strcmp(cmd, "/cutrope") == 0) {
  16116. if(IsSpawned[playerid] == 0) {
  16117. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16118. return 1;
  16119. }
  16120. if(gTeam[playerid] <= 2) {
  16121. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot use this command");
  16122. return 1;
  16123. }
  16124. if(Jailed[playerid] == 1) {
  16125. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  16126. return 1;
  16127. }
  16128. if(isKidnapped[playerid] == 0) {
  16129. SendClientMessage(playerid,COLOR_ERROR,"You are not tied. You cannot use this command");
  16130. return 1;
  16131. }
  16132. if(CuffedTime[playerid] >= 1) {
  16133. SendClientMessage(playerid, COLOR_ERROR, "Please wait before trying to cut the rope");
  16134. return 1;
  16135. }
  16136. if(gotSissors[playerid] == 0)
  16137. {
  16138. SendClientMessage(playerid, COLOR_ERROR, "You have no rusty scissors!");
  16139. return 1;
  16140. }
  16141. new breakcuffsrand = random(100);
  16142. if(breakcuffsrand >=26 && breakcuffsrand <=100) // Failed
  16143. {
  16144. new escapedname[24];
  16145. GetPlayerName(playerid,escapedname,24);
  16146. SendClientMessage(playerid,COLOR_ERROR,"The rusty scissors broke when trying to use them! Escape failed.");
  16147. gotSissors[playerid] =0;
  16148. return 1;
  16149. }
  16150. else
  16151. if(breakcuffsrand >=0 && breakcuffsrand <=25) // complete
  16152. {
  16153. TogglePlayerControllable(playerid, 1);
  16154. isKidnapped[playerid] =0;
  16155. new escapedname[24];
  16156. GetPlayerName(playerid,escapedname,24);
  16157. GameTextForPlayer(playerid,"~r~ESCAPED~n~FROM ROPE",6000,3);
  16158. format(string, sizeof(string), "%s(%d) Has escaped from rope",escapedname,playerid);
  16159. printf("%s",string);
  16160. for(new i=0;i<MAX_PLAYERS;i++)
  16161. {
  16162. if(HasKidnapped[i] == 1) {
  16163. format(string, sizeof(string), "%s(%d) has escaped ",escapedname,playerid);
  16164. SendClientMessage(i,COLOR_ROYALBLUE,string);
  16165. HasKidnapped[i]=0;
  16166. }
  16167. }
  16168. }
  16169. return 1;
  16170. }
  16171.  
  16172.  
  16173. if(strcmp(cmd, "/rob", true) == 0) {
  16174. if(IsSpawned[playerid] == 0) {
  16175. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16176. return 1;
  16177. }
  16178. if(cuffed[playerid] == 1) {
  16179. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  16180. return 1;
  16181. }
  16182. if(Jailed[playerid] == 1) {
  16183. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command in jail");
  16184. return 1;
  16185. }
  16186. if(gTeam[playerid] == TEAM_COP) {
  16187. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot rob people");
  16188. return 1;
  16189. }
  16190. if(gTeam[playerid] == TEAM_ARMY) {
  16191. SendClientMessage(playerid,COLOR_ERROR,"Law Enforcement agents cannot rob people");
  16192. return 1;
  16193. }
  16194. if(gTeam[playerid] == TEAM_CASSEC) {
  16195. SendClientMessage(playerid,COLOR_ERROR,"Casino Security agents cannot rob people");
  16196. return 1;
  16197. }
  16198. if(gTeam[playerid] == TEAM_MEDIC) {
  16199. SendClientMessage(playerid,COLOR_ERROR,"Medics cannot rob people");
  16200. return 1;
  16201. }
  16202. if(gTeam[playerid] == TEAM_JAILTK) {
  16203. SendClientMessage(playerid,COLOR_ERROR,"Jail Turnkeys cannot rob people");
  16204. return 1;
  16205. }
  16206. if(RobbedPlyRecent[playerid] == 1) {
  16207. SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
  16208. return 1;
  16209. }
  16210. if(isKidnapped[playerid] == 1) {
  16211. SendClientMessage(playerid,COLOR_ERROR,"You are tied up, you cannot use this command.");
  16212. return 1;
  16213. }
  16214. if(InBank[playerid] == 1) {
  16215. SendClientMessage(playerid, COLOR_ERROR, "You cannot rob a player inside the bank");
  16216. return 1;
  16217. }
  16218. tmp = strtok(cmdtext, idx);
  16219. if(!strlen(tmp)) {
  16220. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rob (id)");
  16221. return 1;
  16222. }
  16223. if(!IsNumeric(tmp)) {
  16224. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rob (id) ID Must be a number");
  16225. return 1;
  16226. }
  16227. if(strval(tmp) == playerid) {
  16228. SendClientMessage(playerid, COLOR_ERROR, "You cannot rob yourself");
  16229. return 1;
  16230. }
  16231. giveplayerid = strval(tmp);
  16232. if(!IsPlayerConnected(giveplayerid)) {
  16233. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  16234. SendClientMessage(playerid, COLOR_ERROR, string);
  16235. return 1;
  16236. }
  16237. new rname[24];
  16238. new vname[24];
  16239. GetPlayerName(playerid,rname, 24);
  16240. GetPlayerName(giveplayerid, vname, 24);
  16241. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 3) {
  16242. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot rob that player",vname,giveplayerid);
  16243. SendClientMessage(playerid, COLOR_ERROR, string);
  16244. return 1;
  16245. }
  16246. if(IsPlayerInAnyVehicle(playerid)) {
  16247. SendClientMessage(playerid, COLOR_ERROR, "You cannot rob a player from inside a vehicle");
  16248. return 1;
  16249. }
  16250. if(Jailed[giveplayerid] == 1) {
  16251. format(string, sizeof(string), "%s(%d) Is in jail. You cannot rob a prisoner",vname,giveplayerid);
  16252. SendClientMessage(playerid, COLOR_ERROR, string);
  16253. return 1;
  16254. }
  16255. if(cuffed[giveplayerid] == 1) {
  16256. format(string, sizeof(string), "%s(%d) Is handcuffed. You cannot rob a player who is handcuffed",vname,giveplayerid);
  16257. SendClientMessage(playerid, COLOR_ERROR, string);
  16258. return 1;
  16259. }
  16260. if(IsPlayerInAnyVehicle(giveplayerid)) {
  16261. format(string, sizeof(string), "%s(%d) Is in a vehicle. You cannot rob that player",vname,giveplayerid);
  16262. SendClientMessage(playerid, COLOR_ERROR, string);
  16263. return 1;
  16264. }
  16265. if(GetPlayerMoney(giveplayerid) <= 100) {
  16266. format(string, sizeof(string), "%s(%d) Does not have any cash",vname,giveplayerid);
  16267. SendClientMessage(playerid, COLOR_ERROR, string);
  16268. return 1;
  16269. }
  16270. if(beenrobbedrecently[giveplayerid] >= 1) {
  16271. format(string, sizeof(string), "%s(%d) Has been robbed recently. Please wait",vname,giveplayerid);
  16272. SendClientMessage(playerid, COLOR_ERROR, string);
  16273. return 1;
  16274. }
  16275. if(HasWallet[giveplayerid] >= 1) {
  16276. HasWallet[giveplayerid] --;
  16277. format(string, sizeof(string), "%s(%d) has got a secure wallet. You failed to rob any of that players cash",vname,giveplayerid);
  16278. SendClientMessage(playerid, COLOR_RED, string);
  16279. format(string, sizeof(string), "%s(%d) has attempted to rob you. Your wallet will keep your cash secure for %d more rob(s)",rname,playerid,HasWallet[giveplayerid]);
  16280. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  16281. printf("%s(%d) has attempted to rob %s(%d) Wallet Chances: %d",rname,playerid,vname,giveplayerid,HasWallet[giveplayerid]);
  16282. PlayerPlaySound(giveplayerid, 1190, 0.0, 0.0, 0.0);
  16283. beenrobbedrecently[giveplayerid] =60;
  16284. return 1;
  16285. }
  16286. new pcash = random(GetPlayerMoney(giveplayerid));
  16287. format(string, sizeof(string), "%s(%d) Has robbed $%d from %s(%d)",rname,playerid,pcash,vname,giveplayerid);
  16288. printf("%s", string);
  16289. ircSay(EchoConnection, EchoChan,string);
  16290. GivePlayerMoney(playerid,pcash);
  16291. GivePlayerMoney(giveplayerid, -pcash);
  16292. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Robbery Victim_|");
  16293. format(string, sizeof(string), "%s(%d) Has robbed $%d from you", rname,playerid,pcash);
  16294. SendClientMessage(giveplayerid, 0xD2691EAA, string);
  16295. OldCash[giveplayerid] -=pcash;
  16296. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Complete_|");
  16297. format(string, sizeof(string), "You have robbed $%d from %s(%d)", pcash,vname,giveplayerid);
  16298. SendClientMessage(playerid, 0x00C7FFAA, string);
  16299. format(string, sizeof(string), "~w~Robbed by ~n~%s(%d)~n~$%d lost",rname,playerid,pcash);
  16300. GameTextForPlayer(giveplayerid,string,5000,3);
  16301. oscore = GetPlayerScore(playerid);
  16302. SetPlayerScore(playerid, oscore +1);
  16303. format(string, sizeof(string), "~w~Robbed %s(%d)~n~$%d stolen",vname,giveplayerid,pcash);
  16304. GameTextForPlayer(playerid,string,5000,3);
  16305. RobbedPlyRecent[playerid] =1;
  16306. beenrobbedrecently[giveplayerid] =120;
  16307. commitedcrimerecently[playerid] +=120;
  16308. if(robberrank[playerid] >=0 && robberrank[playerid] <=9) {
  16309. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  16310. robberrank[playerid] +=1;
  16311. }
  16312. new current_zone;
  16313. current_zone = player_zone[playerid];
  16314. for(new i=0;i<MAX_PLAYERS;i++)
  16315. {
  16316. if(LawEnforcementRadio[i] == 1) {
  16317. format(string, sizeof(string), "DISPATCH: (ROBBERY) Suspect: %s(%d) has robbed %s(%d) Location: %s",rname,playerid,vname,giveplayerid,zones[current_zone][zone_name]);
  16318. SendClientMessage(i,COLOR_ROYALBLUE,string);
  16319. }
  16320. }
  16321. if(gTeam[giveplayerid] == TEAM_COP || gTeam[giveplayerid] == TEAM_ARMY) {
  16322. new plwl = GetPlayerWantedLevel(playerid);
  16323. SetPlayerWantedLevel(playerid, plwl +4 );
  16324. }
  16325. else{
  16326. new plwl = GetPlayerWantedLevel(playerid);
  16327. SetPlayerWantedLevel(playerid, plwl +2 );
  16328. }
  16329. new pcol = GetPlayerColor(playerid);
  16330. new plwl = GetPlayerWantedLevel(playerid);
  16331. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  16332. format(string, sizeof(string), "(ROBBERY) Wanted Level %d",plwl);
  16333. SendClientMessage(playerid,pcol,string);
  16334.  
  16335. return 1;
  16336. }
  16337.  
  16338.  
  16339.  
  16340. if(strcmp(cmdtext,"/loc ",true,5) == 0 && strlen(cmdtext) > 5) {
  16341. new target, current_zone;
  16342. target = strval(cmdtext[5]);
  16343. if(!IsNumeric(cmdtext[5])) {
  16344. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /loc (id) ID Must be a number");
  16345. return 1;
  16346. }
  16347. if(GetPlayerColor(target) == COLOR_DEADCONNECT) {
  16348. SendClientMessage(playerid,COLOR_ERROR,"That player is dead");
  16349. return 1;
  16350. }
  16351. current_zone = player_zone[target];
  16352. // printf("D1: %d %d",target,current_zone);
  16353. if(current_zone != -1 && IsPlayerConnected(target)) {
  16354. new playername[MAX_PLAYER_NAME],message2[256];
  16355. GetPlayerName(target,playername,MAX_PLAYER_NAME);
  16356. format(message2,sizeof(message2),"%s(%d)'s current location: %s",playername,target,zones[current_zone][zone_name]);
  16357. SendClientMessage(playerid,0x00C7FFAA,message2);
  16358. // printf("D2: %s %s",playername,message);
  16359. } else {
  16360. SendClientMessage(playerid,COLOR_ERROR,"Invalid Player ID");
  16361. }
  16362. return 1;
  16363. } else if(strcmp(cmdtext,"/loc",true,4) == 0 && strlen(cmdtext) <= 4) {
  16364. SendClientMessage(playerid,COLOR_ERROR,"USAGE: /loc (id)");
  16365. return 1;
  16366. }
  16367.  
  16368.  
  16369. if(strcmp(cmd, "/reqvisit", true) == 0) {
  16370. if(IsSpawned[playerid] == 0) {
  16371. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16372. return 1;
  16373. }
  16374. if(Jailed[playerid] == 0 && InAlcatraz[playerid] == 0) {
  16375. SendClientMessage(playerid,COLOR_ERROR,"You are not in jail. You can only use this command while you are in jail (Alcatraz)");
  16376. return 1;
  16377. }
  16378. if(Jailed[playerid] == 1 && InAlcatraz[playerid] == 0) {
  16379. SendClientMessage(playerid,COLOR_ERROR,"You can only request a visit if you are in jail on Alcatraz Island");
  16380. return 1;
  16381. }
  16382. tmp = strtok(cmdtext, idx);
  16383. if(!strlen(tmp)) {
  16384. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /reqvisit (id)");
  16385. return 1;
  16386. }
  16387. if(!IsNumeric(tmp)) {
  16388. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /reqvisit (id) ID Must be a number");
  16389. return 1;
  16390. }
  16391. if(strval(tmp) == playerid) {
  16392. SendClientMessage(playerid, COLOR_ERROR, "You cannot give yourself a visiting pass");
  16393. return 1;
  16394. }
  16395. giveplayerid = strval(tmp);
  16396. if(!IsPlayerConnected(giveplayerid)) {
  16397. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  16398. SendClientMessage(playerid, COLOR_ERROR, string);
  16399. return 1;
  16400. }
  16401. new sendername[24];
  16402. new receivername[24];
  16403. GetPlayerName(playerid,sendername, 24);
  16404. GetPlayerName(giveplayerid,receivername, 24);
  16405. if(gTeam[giveplayerid] <= 2) {
  16406. SendClientMessage(playerid, COLOR_ERROR, "You cannot send a visiting pass to Police or Army Officers");
  16407. return 1;
  16408. }
  16409. if(IsSpawned[giveplayerid] == 0) {
  16410. format(string, sizeof(string), "%s(%d) is dead. You cannot give a visiting pass to a dead body",receivername,giveplayerid);
  16411. SendClientMessage(playerid, COLOR_ERROR, string);
  16412. return 1;
  16413. }
  16414. if(Jailed[giveplayerid] == 1) {
  16415. SendClientMessage(playerid,COLOR_ERROR,"That player is in jail. You cannot give a visiting pass to a prisoner");
  16416. return 1;
  16417. }
  16418. if(VisitReq[giveplayerid] == 1) {
  16419. format(string, sizeof(string), "%s(%d) Already has a visiting pass from you or another inmate",receivername,giveplayerid);
  16420. SendClientMessage(playerid, COLOR_ERROR, string);
  16421. }
  16422. else
  16423. if(VisitReq[giveplayerid] == 0) {
  16424. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Alcatraz Island Visit Pass Received_|");
  16425. format(string, sizeof(string), "Alcatraz prisoner %s(%d) has sent you a visiting pass",sendername,playerid);
  16426. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  16427. SendClientMessage(giveplayerid, 0x00C7FFAA, "This pass will get you inside Alcatraz building. The pass is valid for 5 game hours");
  16428. SendClientMessage(playerid, 0xA9A9A9AA, "|_Alcatraz Island Visit Pass Sent_|");
  16429. format(string, sizeof(string), "You have sent a Alcatraz visiting pass to %s(%d) - This pass is valid for 5 game hours",receivername,giveplayerid);
  16430. SendClientMessage(playerid, 0x00C7FFAA, string);
  16431. VisitReq[giveplayerid] =1;
  16432. VisitReqExpires[giveplayerid] =300;
  16433. }
  16434. return 1;
  16435. }
  16436.  
  16437.  
  16438. if(strcmp(cmd, "/gc", true) == 0) {
  16439. if(IsSpawned[playerid] == 0) {
  16440. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16441. return 1;
  16442. }
  16443. if(cuffed[playerid] == 1) {
  16444. SendClientMessage(playerid,COLOR_ERROR,"You are handcuffed. You cannot use this command");
  16445. return 1;
  16446. }
  16447. tmp = strtok(cmdtext, idx);
  16448. if(!strlen(tmp)) {
  16449. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gc (id) (amount)");
  16450. return 1;
  16451. }
  16452. if(!IsNumeric(tmp)) {
  16453. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gc (id) (amount) ID Must be a number");
  16454. return 1;
  16455. }
  16456. if(strval(tmp) == playerid) {
  16457. SendClientMessage(playerid, COLOR_ERROR, "You cannot send cash to yourself");
  16458. return 1;
  16459. }
  16460. giveplayerid = strval(tmp);
  16461. if(!IsPlayerConnected(giveplayerid)) {
  16462. format(string, sizeof(string), "ID (%d) is not an active player", giveplayerid);
  16463. SendClientMessage(playerid, COLOR_ERROR, string);
  16464. return 1;
  16465. }
  16466. new sendername[24];
  16467. new receivername[24];
  16468. GetPlayerName(playerid,sendername, 24);
  16469. GetPlayerName(giveplayerid,receivername, 24);
  16470. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 8) {
  16471. format(string, sizeof(string), "%s(%d) Is not close enough. You cannot give cash to that player",receivername,giveplayerid);
  16472. SendClientMessage(playerid, COLOR_ERROR, string);
  16473. return 1;
  16474. }
  16475. tmp = strtok(cmdtext, idx);
  16476. if(!strlen(tmp)) {
  16477. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gc (id) (amount)");
  16478. return 1;
  16479. }
  16480. if(!IsNumeric(tmp)) {
  16481. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gc (id) (amount) Amount must be a number");
  16482. return 1;
  16483. }
  16484. new cashsend = strval(tmp);
  16485. if(cashsend <= 0 || cashsend >= 100001) {
  16486. SendClientMessage(playerid, COLOR_ERROR, "USAGE: Minimum $1 / Maximum $100000");
  16487. return 1;
  16488. }
  16489. if(GetPlayerMoney(giveplayerid) + cashsend >= 1000001) {
  16490. SendClientMessage(playerid, 0xA9A9A9AA, "|_Cash Send Failed_|");
  16491. format(string, sizeof(string), "%s(%d) Does not have enough pockets to carry that ammount of cash ",receivername,giveplayerid);
  16492. SendClientMessage(playerid, 0x00C7FFAA, string);
  16493. return 1;
  16494. }
  16495. if(GetPlayerMoney(playerid) >= cashsend) {
  16496. GivePlayerMoney(playerid,-cashsend);
  16497. GivePlayerMoney(giveplayerid,cashsend);
  16498. SendClientMessage(playerid, 0xA9A9A9AA, "|_Cash Sent_|");
  16499. format(string, sizeof(string), "You have sent $%d to %s(%d)",cashsend,receivername,giveplayerid);
  16500. SendClientMessage(playerid, 0x00C7FFAA, string);
  16501. SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Cash Received_|");
  16502. SendClientMessage(giveplayerid, 0xA9A9A9AA, "If you think that this might be hacked cash then inform a Server Admin asap! /report (id) (reason)");
  16503. format(string, sizeof(string), "%s(%d) Has sent you $%d",sendername,playerid,cashsend);
  16504. SendClientMessage(giveplayerid, 0x00C7FFAA, string);
  16505. format(string, sizeof(string), "Sender %s(%d) Has sent $%d to receiver %s(%d)",sendername,playerid,cashsend,receivername,giveplayerid);
  16506. printf("%s",string);
  16507. ircSay(EchoConnection, EchoChan,string);
  16508. }
  16509. else
  16510. if(GetPlayerMoney(playerid) < cashsend) {
  16511. SendClientMessage(playerid, 0xA9A9A9AA, "|_Cash Send Failed_|");
  16512. format(string, sizeof(string), "You cannot afford to send $%d",cashsend);
  16513. SendClientMessage(playerid, COLOR_ERROR, string);
  16514. }
  16515.  
  16516. return 1;
  16517. }
  16518.  
  16519. if(strcmp(cmdtext, "/robskill", true) == 0)
  16520. {
  16521. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robber Skill Information_|");
  16522. format(string, sizeof(string), "Your current Robbing Skill level is: %d",robberrank[playerid]);
  16523. SendClientMessage(playerid, COLOR_GREY, string);
  16524. if(robberrank[playerid] == 0) {
  16525. SendClientMessage(playerid,0x00C7FFAA,"You are a failing pick pocket. You need to start robbing some players");
  16526. }
  16527. else
  16528. if(robberrank[playerid] >= 1 && robberrank[playerid] <= 9) {
  16529. SendClientMessage(playerid,0x00C7FFAA,"You are a learning pick pocket. You will soon be able to rob ATM machines (Target Skill Level: 10)");
  16530. }
  16531. else
  16532. if(robberrank[playerid] >= 10 && robberrank[playerid] <= 19) {
  16533. SendClientMessage(playerid,0x00C7FFAA,"You are a ATM Machines Fraudster. (Target Skill Level: 20)");
  16534. }
  16535. else
  16536. if(robberrank[playerid] >= 20 && robberrank[playerid] <= 29) {
  16537. SendClientMessage(playerid,0x00C7FFAA,"You are a Experienced Fraudster. You can rob the casino(s) now (Target Skill Level: 30)");
  16538. }
  16539. else
  16540. if(robberrank[playerid] >= 30 && robberrank[playerid] <= 39) {
  16541. SendClientMessage(playerid,0x00C7FFAA,"You are too good. Robbing the bank will be easy now. (Target Skill Level: 40)");
  16542. }
  16543. else
  16544. if(robberrank[playerid] == 40) {
  16545. SendClientMessage(playerid,0x00C7FFAA,"You are amazing. Robbing AutoBahn and the bank at night is now possible. (Target Skill Level 50)");
  16546. }
  16547. return 1;
  16548. }
  16549.  
  16550.  
  16551.  
  16552.  
  16553. if(strcmp(cmdtext, "/time", true) == 0)
  16554. {
  16555. SendClientMessage(playerid, 0xA9A9A9AA, "|_Game Time / Day Information_|");
  16556. format(string, sizeof(string), "Game Time: %d:00", gametime);
  16557. SendClientMessage(playerid,0x5F9EA0AA,string);
  16558. if(gameday == 1) {
  16559. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Monday");
  16560. }
  16561. if(gameday == 2) {
  16562. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Tuesday");
  16563. }
  16564. if(gameday == 3) {
  16565. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Wednesday");
  16566. }
  16567. if(gameday == 4) {
  16568. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Thursday");
  16569. }
  16570. if(gameday == 5) {
  16571. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Friday");
  16572. }
  16573. if(gameday == 6) {
  16574. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Saturday");
  16575. }
  16576. if(gameday == 7) {
  16577. SendClientMessage(playerid,0x5F9EA0AA,"Game Day: Sunday");
  16578. }
  16579. if(gameweek == 1) {
  16580. SendClientMessage(playerid,0x5F9EA0AA,"Game Week: 1");
  16581. }
  16582. if(gameweek == 2) {
  16583. SendClientMessage(playerid,0x5F9EA0AA,"Game Week: 2");
  16584. }
  16585. if(gameweek == 3) {
  16586. SendClientMessage(playerid,0x5F9EA0AA,"Game Week: 3");
  16587. }
  16588. if(gameweek == 4) {
  16589. SendClientMessage(playerid,0x5F9EA0AA,"Game Week: 4");
  16590. }
  16591. return 1;
  16592. }
  16593.  
  16594.  
  16595. ////// INFO COMMAND Returns player team skill
  16596. if(strcmp(cmdtext, "/info", true) == 0)
  16597. {
  16598. SendClientMessage(playerid, 0xA9A9A9AA, "|_Personal Information_|");
  16599. if(gTeam[playerid] == TEAM_COP) {
  16600. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Police Officer");
  16601. }
  16602. else
  16603. if(gTeam[playerid] == TEAM_ARMY) {
  16604. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Army");
  16605. }
  16606. else
  16607. if(gTeam[playerid] == TEAM_MEDIC) {
  16608. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Medic");
  16609. }
  16610. else
  16611. if(gTeam[playerid] == TEAM_CARFIX) {
  16612. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Car Mechanic");
  16613. }
  16614. else
  16615. if(gTeam[playerid] == TEAM_CASSEC) {
  16616. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Casino Security");
  16617. }
  16618. else
  16619. if(gTeam[playerid] == TEAM_DRIVER) {
  16620. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Taxi Driver");
  16621. }
  16622. else
  16623. if(gTeam[playerid] == TEAM_BISTRO) {
  16624. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Food Delivery");
  16625. }
  16626. else
  16627. if(gTeam[playerid] == TEAM_JAILTK) {
  16628. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Jail Turnkey");
  16629. }
  16630. else
  16631. if(gTeam[playerid] == TEAM_PVTMED) {
  16632. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Private Medic");
  16633. }
  16634. else
  16635. if(gTeam[playerid] == TEAM_CIVIL) {
  16636. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: You are a nobody, If you have chosen a skill already then report this bug asap");
  16637. }
  16638. else
  16639. if(gTeam[playerid] == TEAM_DRGDEL) {
  16640. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Drug Dealer");
  16641. }
  16642. else
  16643. if(gTeam[playerid] == TEAM_PILOT) {
  16644. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Pilot");
  16645. }
  16646. else
  16647. if(gTeam[playerid] == TEAM_HITMAN) {
  16648. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Hitman");
  16649. }
  16650. else
  16651. if(gTeam[playerid] == TEAM_GUNDEL) {
  16652. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Gun Dealer");
  16653. }
  16654. else
  16655. if(gTeam[playerid] == TEAM_RAPIST) {
  16656. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Rapist");
  16657. }
  16658. else
  16659. if(gTeam[playerid] == TEAM_BOUNTY) {
  16660. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Bounty Hunter");
  16661. }
  16662. else
  16663. if(gTeam[playerid] == TEAM_KIDNAP) {
  16664. SendClientMessage(playerid, 0x00C7FFAA,"Skill/Job: Kidnapper");
  16665. }
  16666. if(gTeam[playerid] !=TEAM_COP && gTeam[playerid] !=TEAM_ARMY && gTeam[playerid] !=TEAM_MEDIC)
  16667. {
  16668. new wantedlevelo = GetPlayerWantedLevel(playerid);
  16669. format(string, sizeof(string), "Wanted Level: %d",wantedlevelo);
  16670. SendClientMessage(playerid, 0x00C7FFAA, string);
  16671. }
  16672. if(HasHitOnHim[playerid] >= 1) {
  16673. format(string, sizeof(string), "There is a hit contract on you. Expires in %d Seconds",HasHitOnHim[playerid]);
  16674. SendClientMessage(playerid, 0x00C7FFAA, string);
  16675. }
  16676. if(HasHitOnHim[playerid] == 0) {
  16677. SendClientMessage(playerid, 0x00C7FFAA,"There are no hit contracts on you");
  16678. }
  16679. if(HasWallet[playerid] >= 1) {
  16680. format(string, sizeof(string), "Secure Wallet: You can be robbed %d more time(s)",HasWallet[playerid]);
  16681. SendClientMessage(playerid, 0x00C7FFAA, string);
  16682. }
  16683. if(HasWallet[playerid] == 0) {
  16684. format(string, sizeof(string), "Secure Wallet: You do not have a Secure Wallet",HasWallet[playerid]);
  16685. SendClientMessage(playerid, 0x00C7FFAA, string);
  16686. }
  16687. if(HasC4[playerid] == 1) {
  16688. SendClientMessage(playerid, 0x00C7FFAA,"C4 Explosives: You have 3 blocks of C4 in your possesion");
  16689. }
  16690. if(HasC4[playerid] == 0) {
  16691. SendClientMessage(playerid, 0x00C7FFAA,"C4 Explosives: You are not carrying any C4");
  16692. }
  16693. if(BankRobInsurance[playerid] == 1) {
  16694. SendClientMessage(playerid, 0x00C7FFAA,"Bank Cash Theft Insurance: Yes");
  16695. }
  16696. if(BankRobInsurance[playerid] == 0) {
  16697. SendClientMessage(playerid, 0x00C7FFAA,"Bank Cash Theft Insurance: No");
  16698. }
  16699. if(gotSissors[playerid] == 0) {
  16700. SendClientMessage(playerid, 0x00C7FFAA,"Rusty Scissors: No");
  16701. }
  16702. if(gotSissors[playerid] == 1) {
  16703. SendClientMessage(playerid, 0x00C7FFAA,"Rusty Scissors: Yes");
  16704. }
  16705. if(gotRope[playerid] == 0) {
  16706. SendClientMessage(playerid, 0x00C7FFAA,"Rope: No");
  16707. }
  16708. if(gotRope[playerid] == 1) {
  16709. SendClientMessage(playerid, 0x00C7FFAA,"Rope: Yes");
  16710. }
  16711. if(UsedBankRecently[playerid] >= 1) {
  16712. format(string, sizeof(string), "You can use the bank again in %d seconds",UsedBankRecently[playerid]);
  16713. SendClientMessage(playerid, 0x00C7FFAA, string);
  16714. }
  16715. if(UsedAutoRecently[playerid] >= 1) {
  16716. format(string, sizeof(string), "You can use Autobahn again in %d seconds",UsedAutoRecently[playerid]);
  16717. SendClientMessage(playerid, 0x00C7FFAA, string);
  16718. }
  16719. return 1;
  16720. }
  16721.  
  16722.  
  16723. if(strcmp(cmdtext, "/atmloc", true) == 0) {
  16724. if(IsSpawned[playerid] == 0) {
  16725. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16726. return 1;
  16727. }
  16728. SendClientMessage(playerid, 0xA9A9A9AA, "|_ATM Machine Locations_|");
  16729. SendClientMessage(playerid, 0x808080AA, "WhiteWood Estates (Burger Shot)");
  16730. SendClientMessage(playerid, 0x808080AA, "Starfish Casino (24/7)");
  16731. SendClientMessage(playerid, 0x808080AA, "South LV (East of Ammunation)");
  16732. SendClientMessage(playerid, 0x808080AA, "Roca Escalante");
  16733. return 1;
  16734. }
  16735.  
  16736.  
  16737. if(strcmp(cmdtext, "/bonus", true) == 0)
  16738. {
  16739. if(BonusCars[1] == 0 && BonusCars[2] == 0)
  16740. {
  16741. SendClientMessage(playerid, 0x4682B4AA, "Both bonus vehicles (Bullet / NRG500) are still waiting to be found and sold at AutoBahn for $50000 each");
  16742. return 1;
  16743. }
  16744. if(BonusCars[1] == 1 && BonusCars[2] == 0)
  16745. {
  16746. SendClientMessage(playerid, 0x4682B4AA, "Only one bonus car remains to be sold this week (Bullet) Find it and sell it at AutoBahn for $50000");
  16747. return 1;
  16748. }
  16749. if(BonusCars[1] == 0 && BonusCars[2] == 1)
  16750. {
  16751. SendClientMessage(playerid, 0x4682B4AA, "Only one bonus car remains to be sold this week (Nrg500) Find it and sell it at AutoBahn for $50000");
  16752. return 1;
  16753. }
  16754. else {
  16755. SendClientMessage(playerid, 0x4682B4AA, "Both bonus cars have been sold");
  16756. }
  16757. return 1;
  16758. }
  16759.  
  16760.  
  16761.  
  16762. if(strcmp(cmdtext, "/radon", true) == 0)
  16763. {
  16764. if(HasLawEnforcementRadio[playerid] == 0) {
  16765. SendClientMessage(playerid,COLOR_WHITE,"You dont have a police radio");
  16766. return 1;
  16767. }
  16768. if(LawEnforcementRadio[playerid] == 1) {
  16769. SendClientMessage(playerid,COLOR_WHITE,"Radio is already on");
  16770. return 1;
  16771. }
  16772. if(LawEnforcementRadio[playerid] == 0) {
  16773. SendClientMessage(playerid,COLOR_WHITE,"Radio is now on. You will receive alerts from dispatch about crimes");
  16774. LawEnforcementRadio[playerid] = 1;
  16775. }
  16776. return 1;
  16777. }
  16778.  
  16779.  
  16780. if(strcmp(cmdtext, "/radoff", true) == 0)
  16781. {
  16782. if(HasLawEnforcementRadio[playerid] == 0) {
  16783. SendClientMessage(playerid,COLOR_WHITE,"You dont have a police radio");
  16784. return 1;
  16785. }
  16786. if(LawEnforcementRadio[playerid] == 0) {
  16787. SendClientMessage(playerid,COLOR_WHITE,"Radio is already off");
  16788. return 1;
  16789. }
  16790. if(LawEnforcementRadio[playerid] == 1) {
  16791. SendClientMessage(playerid,COLOR_WHITE,"Radio is now off");
  16792. LawEnforcementRadio[playerid] = 0;
  16793. }
  16794. return 1;
  16795. }
  16796.  
  16797. if(strcmp(cmdtext, "/buyheal", true) == 0)
  16798. {
  16799. if(IsSpawned[playerid] == 0) {
  16800. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16801. return 1;
  16802. }
  16803. if(!IsPlayerInCheckpoint(playerid)) {
  16804. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16805. return 1;
  16806. }
  16807. if(gTeam[playerid] == TEAM_MEDIC) {
  16808. SendClientMessage(playerid,COLOR_ERROR,"You are a Medic. Use /healme or /cureme");
  16809. return 1;
  16810. }
  16811. if(gTeam[playerid] == TEAM_PVTMED) {
  16812. SendClientMessage(playerid,COLOR_ERROR,"You are a Private Medic. Use /healme or /cureme");
  16813. return 1;
  16814. }
  16815. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 24) {
  16816. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16817. return 1;
  16818. }
  16819. if(GetPlayerMoney(playerid) <= 999 && IsPlayerInCheckpoint(playerid)) {
  16820. SendClientMessage(playerid,COLOR_ERROR,"You cannot afford this Medical Service {$1000)");
  16821. return 1;
  16822. }
  16823. new Float:health;
  16824. GetPlayerHealth(playerid, health);
  16825. if(health == 100) {
  16826. SendClientMessage(playerid,COLOR_ERROR,"You do not have any injuries");
  16827. return 1;
  16828. }
  16829. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 24) {
  16830. {
  16831. SetPlayerHealth(playerid,100);
  16832. GameTextForPlayer(playerid, "~g~HEALED", 6000, 3);
  16833. GivePlayerMoney(playerid,-1000);
  16834. SendClientMessage(playerid,COLOR_FORESTGREEN,"You have purchased Medical services. You have been charged $1000.");
  16835. }
  16836. }
  16837. else
  16838. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16839. return 1;
  16840. }
  16841.  
  16842. if(strcmp(cmdtext, "/buycure", true) == 0)
  16843. {
  16844. if(IsSpawned[playerid] == 0) {
  16845. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16846. return 1;
  16847. }
  16848. if(!IsPlayerInCheckpoint(playerid)) {
  16849. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16850. return 1;
  16851. }
  16852. if(gTeam[playerid] == TEAM_MEDIC) {
  16853. SendClientMessage(playerid,COLOR_ERROR,"You are a Medic. Use /healme or /cureme");
  16854. return 1;
  16855. }
  16856. if(gTeam[playerid] == TEAM_PVTMED) {
  16857. SendClientMessage(playerid,COLOR_ERROR,"You are a Private Medic. Use /healme or /cureme");
  16858. return 1;
  16859. }
  16860. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 24) {
  16861. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16862. return 1;
  16863. }
  16864. if(Chlamydia[playerid] == 0 && Salmonella[playerid] == 0 && IsPlayerInCheckpoint(playerid)) {
  16865. SendClientMessage(playerid,COLOR_ERROR,"You do not have any infections");
  16866. return 1;
  16867. }
  16868. if(GetPlayerMoney(playerid) <= 4449 && IsPlayerInCheckpoint(playerid)) {
  16869. SendClientMessage(playerid,COLOR_ERROR,"You cannot afford this Medical service {$4500)");
  16870. return 1;
  16871. }
  16872. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 24) {
  16873. {
  16874. Chlamydia[playerid] =0;
  16875. Salmonella[playerid] =0;
  16876. GameTextForPlayer(playerid, "~g~INFECTIONS~n~CURED", 6000, 3);
  16877. GivePlayerMoney(playerid,-4500);
  16878. SendClientMessage(playerid,COLOR_FORESTGREEN,"You have purchased Medical services. You have been charged $4500.");
  16879. }
  16880. }
  16881. else
  16882. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16883. return 1;
  16884. }
  16885.  
  16886.  
  16887.  
  16888.  
  16889. if(strcmp(cmdtext, "/buyhc", true) == 0)
  16890. {
  16891. if(IsSpawned[playerid] == 0) {
  16892. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16893. return 1;
  16894. }
  16895. if(!IsPlayerInCheckpoint(playerid)) {
  16896. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16897. return 1;
  16898. }
  16899. if(gTeam[playerid] == TEAM_MEDIC) {
  16900. SendClientMessage(playerid,COLOR_ERROR,"You are a Medic. Use /healme or /cureme");
  16901. return 1;
  16902. }
  16903. if(gTeam[playerid] == TEAM_PVTMED) {
  16904. SendClientMessage(playerid,COLOR_ERROR,"You are a Private Medic. Use /healme or /cureme");
  16905. return 1;
  16906. }
  16907. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 24) {
  16908. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16909. return 1;
  16910. }
  16911. if(Chlamydia[playerid] == 0 && IsPlayerInCheckpoint(playerid)) {
  16912. SendClientMessage(playerid,COLOR_ERROR,"You do not have any infections");
  16913. return 1;
  16914. }
  16915. new Float:health;
  16916. GetPlayerHealth(playerid, health);
  16917. if(health == 100) {
  16918. SendClientMessage(playerid,COLOR_ERROR,"You do not have any injuries");
  16919. return 1;
  16920. }
  16921. if(GetPlayerMoney(playerid) <= 4999 && IsPlayerInCheckpoint(playerid)) {
  16922. SendClientMessage(playerid,COLOR_ERROR,"You cannot afford this Medical service {$5000)");
  16923. return 1;
  16924. }
  16925. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 24) {
  16926. {
  16927. Chlamydia[playerid] =0;
  16928. SetPlayerHealth(playerid,100);
  16929. GameTextForPlayer(playerid, "~g~INFECTION CURED~n~HEALED", 6000, 3);
  16930. GivePlayerMoney(playerid,-5000);
  16931. SendClientMessage(playerid,COLOR_FORESTGREEN,"You have purchased Medical services. You have been charged $5000");
  16932. }
  16933. }
  16934. else
  16935. SendClientMessage(playerid,COLOR_ERROR,"You are not at Las Venturas hospital");
  16936. return 1;
  16937. }
  16938.  
  16939. /*if(strcmp(cmdtext, "/throwaway", true) == 0 || strcmp(cmdtext, "/ta", true) == 0)
  16940. {
  16941. if(IsSpawned[playerid] == 0) {
  16942. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16943. return 1;
  16944. }
  16945. if(Jailed[playerid] == 1) {
  16946. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  16947. return 1;
  16948. }
  16949. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Roleplay/Cops/Robbers Business Owners_|");
  16950. new autobahnownername[24];
  16951. new autobahnowneronline =0;
  16952. for(new i=0;i<MAX_PLAYERS;i++)
  16953. {
  16954. if(IsPlayerConnected(i))
  16955. {
  16956. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  16957. if(autobahnowner[i] == 1337)
  16958. {
  16959. autobahnowneronline ++;
  16960. GetPlayerName(i,autobahnownername,24);
  16961. }
  16962. }
  16963. }
  16964. if(autobahnowneronline == 1)
  16965. {
  16966. format(string, sizeof(string), "Business: [AutoBahn] Owner: [%s]",autobahnownername);
  16967. SendClientMessage(playerid,0x00C7FFAA, string);
  16968. }
  16969. else
  16970. if(autobahnowneronline == 0)
  16971. {
  16972.  
  16973.  
  16974. */
  16975.  
  16976.  
  16977.  
  16978.  
  16979.  
  16980.  
  16981.  
  16982.  
  16983.  
  16984.  
  16985.  
  16986.  
  16987.  
  16988.  
  16989.  
  16990.  
  16991.  
  16992.  
  16993.  
  16994.  
  16995.  
  16996.  
  16997.  
  16998.  
  16999.  
  17000.  
  17001.  
  17002.  
  17003.  
  17004.  
  17005.  
  17006.  
  17007.  
  17008.  
  17009.  
  17010.  
  17011.  
  17012.  
  17013.  
  17014.  
  17015.  
  17016.  
  17017.  
  17018. if(strcmp(cmdtext, "/businessowners", true) == 0 || strcmp(cmdtext, "/bo", true) == 0)
  17019. {
  17020. if(IsSpawned[playerid] == 0) {
  17021. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17022. return 1;
  17023. }
  17024. if(Jailed[playerid] == 1) {
  17025. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17026. return 1;
  17027. }
  17028. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Roleplay/Cops/Robbers Business Owners_|");
  17029. new autobahnownername[24];
  17030. new autobahnowneronline =0;
  17031. new DrugHouseOwnername[24];
  17032. new DrugHouseOwneronline =0;
  17033. new AirPortOwnername[24];
  17034. new AirPortOwneronline =0;
  17035. for(new i=0;i<MAX_PLAYERS;i++)
  17036. {
  17037. if(IsPlayerConnected(i))
  17038. {
  17039. autobahnowner[i]=dUserINT(PlayerName(i)).("autobahnowner");
  17040. if(autobahnowner[i] == 1337)
  17041. {
  17042. autobahnowneronline ++;
  17043. GetPlayerName(i,autobahnownername,24);
  17044. }
  17045. DrugHouseOwner[i]=dUserINT(PlayerName(i)).("DrugHouseOwner");
  17046. if(DrugHouseOwner[i] == 1337)
  17047. {
  17048. DrugHouseOwneronline ++;
  17049. GetPlayerName(i,DrugHouseOwnername,24);
  17050. }
  17051. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  17052. if(AirPortOwner[i] == 1337)
  17053. {
  17054. AirPortOwneronline ++;
  17055. GetPlayerName(i,AirPortOwnername,24);
  17056. }
  17057. }
  17058. }
  17059. if(autobahnowneronline == 1)
  17060. {
  17061. format(string, sizeof(string), "Business: [AutoBahn] Owner: [%s]",autobahnownername);
  17062. SendClientMessage(playerid,0x00C7FFAA, string);
  17063. }
  17064. else
  17065. if(autobahnowneronline == 0)
  17066. {
  17067. SendClientMessage(playerid,0x00C7FFAA,"Business: [AutoBahn] Owner: [OFFLINE]");
  17068. }
  17069. if(AirPortOwneronline == 1)
  17070. {
  17071. format(string, sizeof(string), "Business: [AirPort] Owner: [%s]",AirPortOwnername);
  17072. SendClientMessage(playerid,0x00C7FFAA, string);
  17073. }
  17074. if(AirPortOwneronline == 0)
  17075. {
  17076. SendClientMessage(playerid,0x00C7FFAA,"Business: [AirPort] Owner: [OFFLINE]");
  17077. }
  17078. if(DrugHouseOwneronline == 1)
  17079. {
  17080. format(string, sizeof(string), "Business: [Drug House] Owner: [%s]",DrugHouseOwnername);
  17081. SendClientMessage(playerid,0x00C7FFAA, string);
  17082. }
  17083. else
  17084. if(DrugHouseOwneronline == 0)
  17085. {
  17086. SendClientMessage(playerid,0x00C7FFAA,"Business: [Drug House Owner: [OFFLINE]");
  17087. }
  17088. return 1;
  17089. }
  17090.  
  17091.  
  17092.  
  17093. if(strcmp(cmdtext, "/robhall", true) == 0)
  17094. {
  17095. if(IsSpawned[playerid] == 0) {
  17096. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17097. return 1;
  17098. }
  17099. if(Jailed[playerid] == 1) {
  17100. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17101. return 1;
  17102. }
  17103. if(cuffed[playerid] == 1) {
  17104. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while you are handcuffed");
  17105. return 1;
  17106. }
  17107. if(!IsPlayerInCheckpoint(playerid)) {
  17108. SendClientMessage(playerid,COLOR_ERROR,"You are not in the LV City Hall robbing checkpoint");
  17109. return 1;
  17110. }
  17111. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 89) {
  17112. SendClientMessage(playerid,COLOR_ERROR,"You are not in the LV City Hall robbing checkpoint");
  17113. return 1;
  17114. }
  17115. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  17116. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob LV City Hall");
  17117. return 1;
  17118. }
  17119. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 89)
  17120. {
  17121. if(cityhallrobbedrecent >= 1) {
  17122. SendClientMessage(playerid,COLOR_ERROR,"LV City Hall has been robbed recently. Try again later");
  17123. return 1;
  17124. }
  17125. new challrand = random(100);
  17126. if(challrand >=0 && challrand <=10) {
  17127. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Hall Robbery Failed_|");
  17128. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob LV City Hall has failed");
  17129. return 1;
  17130. }
  17131. if(challrand >=11 && challrand <=100)
  17132. {
  17133. new hallrobbber[30];
  17134. new pcol = GetPlayerColor(playerid);
  17135. GetPlayerName(playerid,hallrobbber,30);
  17136. new plwl = GetPlayerWantedLevel(playerid);
  17137. SetPlayerWantedLevel(playerid, plwl +4);
  17138. robbinghall[playerid] =15;
  17139. SendClientMessage(playerid,0x00C7FFAA,"You are now robbing LV City Hall. The Police have been dispatched and will be on route right now");
  17140. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17141. plwl = GetPlayerWantedLevel(playerid);
  17142. cityhallrobbedrecent = 240;
  17143. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17144. format(string, sizeof(string), "(LV CITY HALL ROBBERY) Wanted Level %d",plwl);
  17145. SendClientMessage(playerid,pcol,string);
  17146. commitedcrimerecently[playerid] +=120;
  17147. printf("%s(%d) has started a LV City Hall robbery",hallrobbber,playerid);
  17148. for(new i=0;i<MAX_PLAYERS;i++)
  17149. {
  17150. if(LawEnforcementRadio[i] == 1) {
  17151. new string1[256];
  17152. new string2[256];
  17153. format(string1, sizeof(string1), "DISPATCH: (ROBBERY IN PROGRESS) Suspect: %s(%d)",hallrobbber,playerid);
  17154. format(string2, sizeof(string2), "ALL UNITS: Please respond to LV City Hall and arrest %s(%d)",hallrobbber,playerid);
  17155. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17156. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17157. }
  17158. }
  17159. }
  17160. }
  17161. return 1;
  17162. }
  17163.  
  17164.  
  17165.  
  17166.  
  17167.  
  17168. if(strcmp(cmdtext, "/robstore", true) == 0)
  17169. {
  17170. if(IsSpawned[playerid] == 0) {
  17171. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17172. return 1;
  17173. }
  17174. if(Jailed[playerid] == 1) {
  17175. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17176. return 1;
  17177. }
  17178. if(cuffed[playerid] == 1) {
  17179. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while you are handcuffed");
  17180. return 1;
  17181. }
  17182. if(!IsPlayerInCheckpoint(playerid)) {
  17183. SendClientMessage(playerid,COLOR_ERROR,"You are not in any store main checkpoint");
  17184. return 1;
  17185. }
  17186. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 46) {
  17187. SendClientMessage(playerid,COLOR_ERROR,"You are not in any store checkpoint");
  17188. return 1;
  17189. }
  17190. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  17191. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob any store");
  17192. return 1;
  17193. }
  17194. if(GetPlayerVirtualWorld(playerid) == 0) {
  17195. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob this store. You can only rob 24/7 stores at gas stations in LV");
  17196. return 1;
  17197. }
  17198. new roobrand = random(5000);
  17199. if(roobrand >=0 && roobrand <=50) {
  17200. SendClientMessage(playerid, 0xA9A9A9AA, "|_Store Robbery Failed_|");
  17201. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the store has failed");
  17202. return 1;
  17203. }
  17204. else
  17205. if(roobrand >=51 && roobrand <=5000)
  17206. {
  17207. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 46)
  17208. {
  17209. if(GetPlayerVirtualWorld(playerid) == 1 && twofoursevenrobbed1 >= 1) {
  17210. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17211. return 1;
  17212. }
  17213. if(GetPlayerVirtualWorld(playerid) == 1 && twofoursevenrobbed1 == 0) {
  17214. new robbber[30];
  17215. new pcol = GetPlayerColor(playerid);
  17216. GetPlayerName(playerid,robbber,30);
  17217. new plwl = GetPlayerWantedLevel(playerid);
  17218. SetPlayerWantedLevel(playerid, plwl +4);
  17219. robbingstore[playerid] =20;
  17220. twofoursevenrobbed1 = 240;
  17221. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17222. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17223. plwl = GetPlayerWantedLevel(playerid);
  17224. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17225. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17226. SendClientMessage(playerid,pcol,string);
  17227. commitedcrimerecently[playerid] +=120;
  17228. printf("%s(%d) has started a 24/7 robbery in Redsands East",robbber,playerid);
  17229. for(new i=0;i<MAX_PLAYERS;i++)
  17230. {
  17231. if(LawEnforcementRadio[i] == 1) {
  17232. new string1[256];
  17233. new string2[256];
  17234. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17235. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in Redsands East and arrest %s(%d)", robbber,playerid);
  17236. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17237. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17238. }
  17239. }
  17240. return 1;
  17241. }
  17242.  
  17243. if(GetPlayerVirtualWorld(playerid) == 2 && twofoursevenrobbed2 >= 1) {
  17244. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17245. return 1;
  17246. }
  17247. if(GetPlayerVirtualWorld(playerid) == 2 && twofoursevenrobbed2 == 0) {
  17248. new robbber[30];
  17249. new pcol = GetPlayerColor(playerid);
  17250. GetPlayerName(playerid,robbber,30);
  17251. new plwl = GetPlayerWantedLevel(playerid);
  17252. SetPlayerWantedLevel(playerid, plwl +4);
  17253. robbingstore[playerid] =20;
  17254. twofoursevenrobbed2 = 240;
  17255. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17256. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17257. plwl = GetPlayerWantedLevel(playerid);
  17258. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17259. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17260. SendClientMessage(playerid,pcol,string);
  17261. commitedcrimerecently[playerid] +=120;
  17262. if(robberrank[playerid] <=39) {
  17263. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17264. robberrank[playerid] +=1;
  17265. }
  17266. printf("%s(%d) has started a 24/7 robbery in Emerald Isle",robbber,playerid);
  17267. for(new i=0;i<MAX_PLAYERS;i++)
  17268. {
  17269. if(LawEnforcementRadio[i] == 1) {
  17270. new string1[256];
  17271. new string2[256];
  17272. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17273. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in Emerald Isle and arrest %s(%d)", robbber,playerid);
  17274. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17275. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17276. }
  17277. }
  17278. return 1;
  17279. }
  17280.  
  17281. if(GetPlayerVirtualWorld(playerid) == 3 && twofoursevenrobbed3 >= 1) {
  17282. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17283. return 1;
  17284. }
  17285. if(GetPlayerVirtualWorld(playerid) == 3 && twofoursevenrobbed3 == 0) {
  17286. new robbber[30];
  17287. new pcol = GetPlayerColor(playerid);
  17288. GetPlayerName(playerid,robbber,30);
  17289. new plwl = GetPlayerWantedLevel(playerid);
  17290. SetPlayerWantedLevel(playerid, plwl +4);
  17291. robbingstore[playerid] =20;
  17292. twofoursevenrobbed3 = 240;
  17293. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17294. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17295. plwl = GetPlayerWantedLevel(playerid);
  17296. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17297. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17298. SendClientMessage(playerid,pcol,string);
  17299. commitedcrimerecently[playerid] +=120;
  17300. if(robberrank[playerid] <=39) {
  17301. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17302. robberrank[playerid] +=1;
  17303. }
  17304. printf("%s(%d) has started a 24/7 robbery in South East Las Venturas",robbber,playerid);
  17305. for(new i=0;i<MAX_PLAYERS;i++)
  17306. {
  17307. if(LawEnforcementRadio[i] == 1) {
  17308. new string1[256];
  17309. new string2[256];
  17310. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17311. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in South East Las Venturas and arrest %s(%d)", robbber,playerid);
  17312. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17313. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17314. }
  17315. }
  17316. return 1;
  17317. }
  17318.  
  17319.  
  17320.  
  17321. if(GetPlayerVirtualWorld(playerid) == 4 && twofoursevenrobbed4 >= 1) {
  17322. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17323. return 1;
  17324. }
  17325. if(GetPlayerVirtualWorld(playerid) == 4 && twofoursevenrobbed4 == 0) {
  17326. new robbber[30];
  17327. new pcol = GetPlayerColor(playerid);
  17328. GetPlayerName(playerid,robbber,30);
  17329. new plwl = GetPlayerWantedLevel(playerid);
  17330. SetPlayerWantedLevel(playerid, plwl +4);
  17331. robbingstore[playerid] =20;
  17332. twofoursevenrobbed4 = 240;
  17333. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17334. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17335. plwl = GetPlayerWantedLevel(playerid);
  17336. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17337. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17338. SendClientMessage(playerid,pcol,string);
  17339. commitedcrimerecently[playerid] +=120;
  17340. if(robberrank[playerid] <=39) {
  17341. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17342. robberrank[playerid] +=1;
  17343. }
  17344. printf("%s(%d) has started a 24/7 robbery in South Las Venturas",robbber,playerid);
  17345. for(new i=0;i<MAX_PLAYERS;i++)
  17346. {
  17347. if(LawEnforcementRadio[i] == 1) {
  17348. new string1[256];
  17349. new string2[256];
  17350. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17351. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in South Las Venturas and arrest %s(%d)", robbber,playerid);
  17352. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17353. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17354. }
  17355. }
  17356. return 1;
  17357. }
  17358.  
  17359. if(GetPlayerVirtualWorld(playerid) == 5 && twofoursevenrobbed5 >= 1) {
  17360. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17361. return 1;
  17362. }
  17363. if(GetPlayerVirtualWorld(playerid) == 5 && twofoursevenrobbed5 == 0) {
  17364. new robbber[30];
  17365. new pcol = GetPlayerColor(playerid);
  17366. GetPlayerName(playerid,robbber,30);
  17367. new plwl = GetPlayerWantedLevel(playerid);
  17368. SetPlayerWantedLevel(playerid, plwl +4);
  17369. robbingstore[playerid] =20;
  17370. twofoursevenrobbed5 = 240;
  17371. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17372. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17373. plwl = GetPlayerWantedLevel(playerid);
  17374. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17375. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17376. SendClientMessage(playerid,pcol,string);
  17377. commitedcrimerecently[playerid] +=120;
  17378. if(robberrank[playerid] <=39) {
  17379. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17380. robberrank[playerid] +=1;
  17381. }
  17382. printf("%s(%d) has started a 24/7 robbery in Bone County",robbber,playerid);
  17383. for(new i=0;i<MAX_PLAYERS;i++)
  17384. {
  17385. if(LawEnforcementRadio[i] == 1) {
  17386. new string1[256];
  17387. new string2[256];
  17388. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17389. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in Bone County and arrest %s(%d)", robbber,playerid);
  17390. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17391. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17392. }
  17393. }
  17394. return 1;
  17395. }
  17396.  
  17397.  
  17398. if(GetPlayerVirtualWorld(playerid) == 6 && twofoursevenrobbed6 >= 1) {
  17399. SendClientMessage(playerid,COLOR_ERROR,"This store has been robbed recently. Try again later");
  17400. return 1;
  17401. }
  17402. if(GetPlayerVirtualWorld(playerid) == 6 && twofoursevenrobbed6 == 0) {
  17403. new robbber[30];
  17404. new pcol = GetPlayerColor(playerid);
  17405. GetPlayerName(playerid,robbber,30);
  17406. new plwl = GetPlayerWantedLevel(playerid);
  17407. SetPlayerWantedLevel(playerid, plwl +4);
  17408. robbingstore[playerid] =20;
  17409. twofoursevenrobbed6 = 240;
  17410. SendClientMessage(playerid,0x00C7FFAA,"Starting robbery. The Police have been advised and will be dispatched to this store");
  17411. SendClientMessage(playerid,0x00C7FFAA,"Stay in the checkpoint to complete the robbery...");
  17412. plwl = GetPlayerWantedLevel(playerid);
  17413. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17414. format(string, sizeof(string), "(24/7 STORE ROBBERY) Wanted Level %d",plwl);
  17415. SendClientMessage(playerid,pcol,string);
  17416. commitedcrimerecently[playerid] +=120;
  17417. if(robberrank[playerid] <=39) {
  17418. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17419. robberrank[playerid] +=1;
  17420. }
  17421. printf("%s(%d) has started a 24/7 robbery in Spiny Bed",robbber,playerid);
  17422. for(new i=0;i<MAX_PLAYERS;i++)
  17423. {
  17424. if(LawEnforcementRadio[i] == 1) {
  17425. new string1[256];
  17426. new string2[256];
  17427. format(string1, sizeof(string1), "DISPATCH: (STORE ROBBERY IN PROGRESS) Suspect: %s(%d)", robbber,playerid);
  17428. format(string2, sizeof(string2), "ALL UNITS: Please respond to the 24/7 store in Spiny Bed and arrest %s(%d)", robbber,playerid);
  17429. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17430. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17431. }
  17432. }
  17433. }
  17434. }
  17435. }
  17436. return 1;
  17437. }
  17438.  
  17439. if(strcmp(cmdtext, "/robcasino", true) == 0)
  17440. {
  17441. if(IsSpawned[playerid] == 0) {
  17442. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17443. return 1;
  17444. }
  17445. if(Jailed[playerid] == 1) {
  17446. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17447. return 1;
  17448. }
  17449. if(!IsPlayerInCheckpoint(playerid)) {
  17450. SendClientMessage(playerid,COLOR_ERROR,"You are not in any casino checkpoint");
  17451. return 1;
  17452. }
  17453. if(RobbedCasRecent[playerid] == 1) {
  17454. SendClientMessage(playerid,COLOR_ERROR,"Please wait before robbing the casino again");
  17455. return 1;
  17456. }
  17457. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  17458. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob any casino");
  17459. return 1;
  17460. }
  17461. if(robberrank[playerid] <=19) {
  17462. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob any Casino. Type /robskill for more info");
  17463. return 1;
  17464. }
  17465. new zrand = random(5000);
  17466. if(zrand >=0 && zrand <=1000) {
  17467. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  17468. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the casino has failed");
  17469. RobbedCasRecent[playerid] =1;
  17470. return 1;
  17471. }
  17472. else
  17473. if(zrand >=1001 && zrand <=5000)
  17474. {
  17475. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 21) {
  17476. {
  17477. if(FourDragsRobbed == 1) {
  17478. SendClientMessage(playerid,COLOR_ERROR,"Four Dragons casino has been robbed recently, Please wait");
  17479. return 1;
  17480. }
  17481.  
  17482. new plwl = GetPlayerWantedLevel(playerid);
  17483. SetPlayerWantedLevel(playerid, plwl +4 );
  17484. new mrand = random(125000);
  17485. new pname[30];
  17486. GetPlayerName(playerid, pname, 30);
  17487. format(string, sizeof(string), "%s(%d) Has robbed $%d from the Four Dragons casino",pname,playerid,mrand);
  17488. SendClientMessageToAll(0x00C7FFAA, string);
  17489. ircSay(EchoConnection, EchoChan,string);
  17490. format(string, sizeof(string), "%s(%d) Has robbed $%d from the Four Dragons casino",pname,playerid,mrand);
  17491. printf("%s", string);
  17492. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU ROBBED~n~~r~ $%d~n~~w~FROM THE CASINO", mrand);
  17493. GameTextForPlayer(playerid, string, 7000, 3);
  17494. new pcol = GetPlayerColor(playerid);
  17495. plwl = GetPlayerWantedLevel(playerid);
  17496. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17497. format(string, sizeof(string), "(CASINO ROBBERY) Wanted Level %d",plwl);
  17498. SendClientMessage(playerid,pcol,string);
  17499. GivePlayerMoney(playerid, mrand);
  17500. RobbedCasRecent[playerid] =1;
  17501. oscore = GetPlayerScore(playerid);
  17502. SetPlayerScore(playerid, oscore +1);
  17503. FourDragsRobbed =1;
  17504. if(robberrank[playerid] >=20 && robberrank[playerid] <=29) {
  17505. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17506. robberrank[playerid] +=1;
  17507. }
  17508. commitedcrimerecently[playerid] +=360;
  17509. SetTimer("FourDragsRobbedRecent",70000,0);
  17510. for(new i=0;i<MAX_PLAYERS;i++)
  17511. {
  17512. if(LawEnforcementRadio[i] == 1) {
  17513. new string1[256];
  17514. new string2[256];
  17515. new string3[256];
  17516. format(string1, sizeof(string1), "DISPATCH: (CASINO ROBBERY) The Four Dragons casino has been robbed. Suspect: %s(%d)", pname,playerid);
  17517. format(string2, sizeof(string2), "ALL UNITS: Please respond to the Four Dragons casino");
  17518. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  17519. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17520. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17521. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  17522. }
  17523. }
  17524. }
  17525. return 1;
  17526. }
  17527. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 23) {
  17528. {
  17529. if(GetPlayerVirtualWorld(playerid) == 1)
  17530. {
  17531. if(newcasinoRobbed == 1) {
  17532. SendClientMessage(playerid,COLOR_ERROR,"Casino has been robbed recently, Please wait");
  17533. return 1;
  17534. }
  17535. new plwl = GetPlayerWantedLevel(playerid);
  17536. SetPlayerWantedLevel(playerid, plwl +4 );
  17537. new mrand = random(200000);
  17538. new pname[30];
  17539. GetPlayerName(playerid, pname, 30);
  17540. format(string, sizeof(string), "%s(%d) Has robbed $%d from BMUK's Casino",pname,playerid,mrand);
  17541. SendClientMessageToAll(0x00C7FFAA, string);
  17542. ircSay(EchoConnection, EchoChan,string);
  17543. format(string, sizeof(string), "%s(%d) Has robbed $%d from BMUK's Casino",pname,playerid,mrand);
  17544. printf("%s", string);
  17545. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU ROBBED~n~~r~ $%d~n~~w~FROM THE CASINO", mrand);
  17546. GameTextForPlayer(playerid, string, 7000, 3);
  17547. new pcol = GetPlayerColor(playerid);
  17548. plwl = GetPlayerWantedLevel(playerid);
  17549. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17550. format(string, sizeof(string), "(CASINO ROBBERY) Wanted Level %d",plwl);
  17551. SendClientMessage(playerid,pcol,string);
  17552. GivePlayerMoney(playerid, mrand);
  17553. oscore = GetPlayerScore(playerid);
  17554. SetPlayerScore(playerid, oscore +1);
  17555. RobbedCasRecent[playerid] =1;
  17556. newcasinoRobbed =1;
  17557. if(robberrank[playerid] >=20 && robberrank[playerid] <=29) {
  17558. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17559. robberrank[playerid] +=1;
  17560. }
  17561. commitedcrimerecently[playerid] +=360;
  17562. SetTimer("newcasinorobbedrecent",70000,0);
  17563. for(new i=0;i<MAX_PLAYERS;i++)
  17564. {
  17565. if(LawEnforcementRadio[i] == 1) {
  17566. new string1[256];
  17567. new string2[256];
  17568. new string3[256];
  17569. format(string1, sizeof(string1), "DISPATCH: (CASINO ROBBERY) Casino has been robbed. Suspect: %s(%d)", pname,playerid);
  17570. format(string2, sizeof(string2), "ALL UNITS: Please respond to Casino");
  17571. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  17572. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17573. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17574. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  17575. }
  17576. }
  17577. return 1;
  17578. }
  17579. if(GetPlayerVirtualWorld(playerid) == 0)
  17580. {
  17581. if(RedsandsRobbed == 1) {
  17582. SendClientMessage(playerid,COLOR_ERROR,"Casino has been robbed recently, Please wait");
  17583. return 1;
  17584. }
  17585. new plwl = GetPlayerWantedLevel(playerid);
  17586. SetPlayerWantedLevel(playerid, plwl +4 );
  17587. new mrand = random(100000);
  17588. new pname[30];
  17589. GetPlayerName(playerid, pname, 30);
  17590. format(string, sizeof(string), "%s(%d) Has robbed $%d from the Redsands Casino",pname,playerid,mrand);
  17591. SendClientMessageToAll(0x00C7FFAA, string);
  17592. ircSay(EchoConnection, EchoChan,string);
  17593. format(string, sizeof(string), "%s(%d) Has robbed $%d from the Redsands casino",pname,playerid,mrand);
  17594. printf("%s", string);
  17595. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU ROBBED~n~~r~ $%d~n~~w~FROM THE CASINO", mrand);
  17596. GameTextForPlayer(playerid, string, 7000, 3);
  17597. new pcol = GetPlayerColor(playerid);
  17598. plwl = GetPlayerWantedLevel(playerid);
  17599. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17600. format(string, sizeof(string), "(CASINO ROBBERY) Wanted Level %d",plwl);
  17601. SendClientMessage(playerid,pcol,string);
  17602. GivePlayerMoney(playerid, mrand);
  17603. oscore = GetPlayerScore(playerid);
  17604. SetPlayerScore(playerid, oscore +1);
  17605. RobbedCasRecent[playerid] =1;
  17606. RedsandsRobbed =1;
  17607. if(robberrank[playerid] >=20 && robberrank[playerid] <=29) {
  17608. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17609. robberrank[playerid] +=1;
  17610. }
  17611. commitedcrimerecently[playerid] +=360;
  17612. SetTimer("RedsandsRobbedRecent",70000,0);
  17613. for(new i=0;i<MAX_PLAYERS;i++)
  17614. {
  17615. if(LawEnforcementRadio[i] == 1) {
  17616. new string1[256];
  17617. new string2[256];
  17618. new string3[256];
  17619. format(string1, sizeof(string1), "DISPATCH: (CASINO ROBBERY) The Redsands casino has been robbed. Suspect: %s(%d)", pname,playerid);
  17620. format(string2, sizeof(string2), "ALL UNITS: Please respond to the Redsands casino");
  17621. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  17622. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  17623. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  17624. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  17625. }
  17626. }
  17627. }
  17628. }
  17629. }
  17630. }
  17631. return 1;
  17632. }
  17633.  
  17634. if(strcmp(cmdtext, "/prepc4", true) == 0)
  17635. {
  17636. if(IsSpawned[playerid] == 0) {
  17637. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17638. return 1;
  17639. }
  17640. if(Jailed[playerid] == 1) {
  17641. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  17642. return 1;
  17643. }
  17644. if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 4 || gTeam[playerid] == 5 || gTeam[playerid] == 6 || gTeam[playerid] == 7 || gTeam[playerid] == 8) {
  17645. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command");
  17646. return 1;
  17647. }
  17648. if(!IsPlayerInCheckpoint(playerid)) {
  17649. SendClientMessage(playerid,COLOR_ERROR,"You are not in the checkpoint at the vault in Caligulas Casino");
  17650. return 1;
  17651. }
  17652. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 45) {
  17653. SendClientMessage(playerid,COLOR_ERROR,"You are not in the checkpoint at the vault in Caligulas Casino");
  17654. return 1;
  17655. }
  17656. if(robberrank[playerid] <=19) {
  17657. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob any Casino. Type /robskill for more info");
  17658. return 1;
  17659. }
  17660. if(HasC4[playerid] == 0) {
  17661. SendClientMessage(playerid,COLOR_ERROR,"You do not have any C4 - Goto the bomb shop in Redsands to buy some C4 for $1500");
  17662. return 1;
  17663. }
  17664. if(caligsbeingrobbed == 1337) {
  17665. SendClientMessage(playerid,COLOR_ERROR,"Another player is already robbing the vault");
  17666. return 1;
  17667. }
  17668. if(CaligsRobbed == 1) {
  17669. SendClientMessage(playerid,COLOR_ERROR,"The vault has been robbed recently. Try again later");
  17670. return 1;
  17671. }
  17672. if(RobbedCasRecent[playerid] == 1) {
  17673. SendClientMessage(playerid,COLOR_ERROR,"Please wait before robbing the casino again");
  17674. return 1;
  17675. }
  17676. for(new i = 0; i < MAX_PLAYERS; i++)
  17677. {
  17678. if(RobbedCaligs[i] == 1337)
  17679. {
  17680. RobbedCaligs[i] =0;
  17681. }
  17682. }
  17683. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 45) {
  17684. SendClientMessage(playerid, 0xA9A9A9AA, "|_Preparing the C4_|");
  17685. SendClientMessage(playerid,0x00C7FFAA,"You will begin to plant the C4 in a second..");
  17686. SendClientMessage(playerid,0x00C7FFAA,"Once the third block is planted, you should get away from the bombs");
  17687. TogglePlayerControllable(playerid, 0);
  17688. PlantingC4[playerid] =1;
  17689. HasC4[playerid] =0;
  17690. caligsbeingrobbed =1337;
  17691. SetTimer("PlantC4One",2000,0);
  17692. }
  17693. return 1;
  17694. }
  17695.  
  17696. if(strcmp(cmdtext, "/robatm", true) == 0)
  17697. {
  17698. if(IsSpawned[playerid] == 0) {
  17699. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17700. return 1;
  17701. }
  17702. if(Jailed[playerid] == 1) {
  17703. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  17704. return 1;
  17705. }
  17706. if(!IsPlayerInCheckpoint(playerid)) {
  17707. SendClientMessage(playerid,COLOR_ERROR,"You are not in any LV City ATM checkpoint");
  17708. return 1;
  17709. }
  17710. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK || gTeam[playerid] == TEAM_DRIVER) {
  17711. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob any ATM");
  17712. return 1;
  17713. }
  17714. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 27 && getCheckpointType(playerid) != 28 && getCheckpointType(playerid) != 29 && getCheckpointType(playerid) != 30) {
  17715. SendClientMessage(playerid,COLOR_ERROR,"You are not in any LV City ATM checkpoint");
  17716. return 1;
  17717. }
  17718. if(robberrank[playerid] <=9) {
  17719. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob any ATM machine. Type /robskill for more info");
  17720. return 1;
  17721. }
  17722. if(atmnetworkrobbedrecent >=1) {
  17723. SendClientMessage(playerid,COLOR_ERROR,"The ATM network has been robbed recently. Try again later");
  17724. return 1;
  17725. }
  17726. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 29)
  17727. {
  17728. if(GetPlayerWantedLevel(playerid) >=1) {
  17729. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent to attempt to rob the ATM");
  17730. return 1;
  17731. }
  17732. if(atmcash1 <=99999) {
  17733. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the ATM has failed");
  17734. UsedBankRecently[playerid] += 60;
  17735. return 1;
  17736. }
  17737. if(atmcash1 >=100000)
  17738. {
  17739. new atmrobrand = random(55000);
  17740. if(GetPlayerMoney(playerid) + atmrobrand >= 1000001) {
  17741. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  17742. format(string, sizeof(string), "You cannot fit $%d more in your pockets! Deposit some cash into your bank account",atmrobrand);
  17743. SendClientMessage(playerid, COLOR_ERROR, string);
  17744. return 1;
  17745. }
  17746. new atmrobbername[30];
  17747. GetPlayerName(playerid,atmrobbername,30);
  17748. new plwl = GetPlayerWantedLevel(playerid);
  17749. new pcol = GetPlayerColor(playerid);
  17750. SetPlayerWantedLevel(playerid,plwl +4);
  17751. plwl = GetPlayerWantedLevel(playerid);
  17752. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17753. format(string, sizeof(string), "(ATM BANK ROBBERY) Wanted Level %d",plwl);
  17754. SendClientMessage(playerid,pcol,string);
  17755. format(string, sizeof(string), "You have robbed the LV City Bank ATM. You robbed a total of $%d",atmrobrand);
  17756. SendClientMessage(playerid,0x00C7FFAA, string);
  17757. format(string, sizeof(string), "%s(%d) Has robbed $%d from the ATM in Whitewood Estates",atmrobbername,playerid,atmrobrand);
  17758. SendClientMessageToAll(0x00C7FFAA, string);
  17759. ircSay(EchoConnection, EchoChan,string);
  17760. printf("%s",string);
  17761. GivePlayerMoney(playerid,atmrobrand);
  17762. commitedcrimerecently[playerid] +=120;
  17763. oscore = GetPlayerScore(playerid);
  17764. SetPlayerScore(playerid, oscore +1);
  17765. Playerrobbedbankrecent[playerid] = 1100;
  17766. UsedBankRecently[playerid] += 1200;
  17767. RobbedBank[playerid] = 1337;
  17768. atmnetworkrobbedrecent =200;
  17769. if(robberrank[playerid] >=10 && robberrank[playerid] <=19) {
  17770. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17771. robberrank[playerid] +=1;
  17772. }
  17773. atmcash1 -=atmrobrand;
  17774. for(new j=0;j<MAX_PLAYERS;j++)
  17775. {
  17776. if(LawEnforcementRadio[j] == 1) {
  17777. format(string, sizeof(string), "DISPATCH: (ATM ROBBERY) Suspect: %s(%d) Location: Whitewood Estates",atmrobbername,playerid);
  17778. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17779. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to Whitewood Estates - (ATM ROBBERY) Suspect: %s(%d)",atmrobbername,playerid);
  17780. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17781. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  17782. }
  17783. }
  17784. }
  17785. }
  17786.  
  17787. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 30)
  17788. {
  17789. if(GetPlayerWantedLevel(playerid) >=1) {
  17790. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent to attempt to rob the ATM");
  17791. return 1;
  17792. }
  17793. if(atmcash2 <=99999) {
  17794. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the ATM has failed");
  17795. UsedBankRecently[playerid] += 120;
  17796. return 1;
  17797. }
  17798. if(atmcash2 >=100000)
  17799. {
  17800. new atmrobrand = random(55000);
  17801. if(GetPlayerMoney(playerid) + atmrobrand >= 1000001) {
  17802. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  17803. format(string, sizeof(string), "You cannot fit $%d more in your pockets! Deposit some cash into your bank account",atmrobrand);
  17804. SendClientMessage(playerid, COLOR_ERROR, string);
  17805. return 1;
  17806. }
  17807. new atmrobbername[30];
  17808. GetPlayerName(playerid,atmrobbername,30);
  17809. new plwl = GetPlayerWantedLevel(playerid);
  17810. new pcol = GetPlayerColor(playerid);
  17811. SetPlayerWantedLevel(playerid,plwl +4);
  17812. plwl = GetPlayerWantedLevel(playerid);
  17813. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17814. format(string, sizeof(string), "(ATM BANK ROBBERY) Wanted Level %d",plwl);
  17815. SendClientMessage(playerid,pcol,string);
  17816. format(string, sizeof(string), "You have robbed the LV City Bank ATM. You robbed a total of $%d",atmrobrand);
  17817. SendClientMessage(playerid,0x00C7FFAA, string);
  17818. format(string, sizeof(string), "%s(%d) Has robbed $%d from the ATM in Roca Escalante",atmrobbername,playerid,atmrobrand);
  17819. SendClientMessageToAll(0x00C7FFAA, string);
  17820. ircSay(EchoConnection, EchoChan,string);
  17821. printf("%s",string);
  17822. GivePlayerMoney(playerid,atmrobrand);
  17823. commitedcrimerecently[playerid] +=120;
  17824. oscore = GetPlayerScore(playerid);
  17825. SetPlayerScore(playerid, oscore +1);
  17826. Playerrobbedbankrecent[playerid] = 1100;
  17827. UsedBankRecently[playerid] += 1200;
  17828. RobbedBank[playerid] = 1337;
  17829. atmnetworkrobbedrecent =200;
  17830. if(robberrank[playerid] >=10 && robberrank[playerid] <=19) {
  17831. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17832. robberrank[playerid] +=1;
  17833. }
  17834. atmcash2 -=atmrobrand;
  17835. for(new j=0;j<MAX_PLAYERS;j++)
  17836. {
  17837. if(LawEnforcementRadio[j] == 1) {
  17838. format(string, sizeof(string), "DISPATCH: (ATM ROBBERY) Suspect: %s(%d) Location: Roca Escalante",atmrobbername,playerid);
  17839. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17840. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to Roca Escalante - (ATM ROBBERY) Suspect: %s(%d)",atmrobbername,playerid);
  17841. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17842. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  17843. }
  17844. }
  17845. }
  17846. }
  17847.  
  17848.  
  17849. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 27)
  17850. {
  17851. if(GetPlayerWantedLevel(playerid) >=1) {
  17852. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent to attempt to rob the ATM");
  17853. return 1;
  17854. }
  17855. if(atmcash3 <=99999) {
  17856. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the ATM has failed");
  17857. UsedBankRecently[playerid] += 120;
  17858. return 1;
  17859. }
  17860. if(atmcash3 >=100000)
  17861. {
  17862. new atmrobrand = random(55000);
  17863. if(GetPlayerMoney(playerid) + atmrobrand >= 1000001) {
  17864. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  17865. format(string, sizeof(string), "You cannot fit $%d more in your pockets! Deposit some cash into your bank account",atmrobrand);
  17866. SendClientMessage(playerid, COLOR_ERROR, string);
  17867. return 1;
  17868. }
  17869. new atmrobbername[30];
  17870. GetPlayerName(playerid,atmrobbername,30);
  17871. new plwl = GetPlayerWantedLevel(playerid);
  17872. new pcol = GetPlayerColor(playerid);
  17873. SetPlayerWantedLevel(playerid,plwl +4);
  17874. plwl = GetPlayerWantedLevel(playerid);
  17875. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17876. format(string, sizeof(string), "(ATM BANK ROBBERY) Wanted Level %d",plwl);
  17877. SendClientMessage(playerid,pcol,string);
  17878. format(string, sizeof(string), "You have robbed the LV City Bank ATM. You robbed a total of $%d",atmrobrand);
  17879. SendClientMessage(playerid,0x00C7FFAA, string);
  17880. format(string, sizeof(string), "%s(%d) Has robbed $%d from the ATM at the Starfish Casino",atmrobbername,playerid,atmrobrand);
  17881. SendClientMessageToAll(0x00C7FFAA, string);
  17882. ircSay(EchoConnection, EchoChan,string);
  17883. printf("%s",string);
  17884. GivePlayerMoney(playerid,atmrobrand);
  17885. commitedcrimerecently[playerid] +=120;
  17886. oscore = GetPlayerScore(playerid);
  17887. SetPlayerScore(playerid, oscore +1);
  17888. Playerrobbedbankrecent[playerid] = 1100;
  17889. UsedBankRecently[playerid] += 1200;
  17890. RobbedBank[playerid] = 1337;
  17891. atmnetworkrobbedrecent =200;
  17892. if(robberrank[playerid] >=10 && robberrank[playerid] <=19) {
  17893. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17894. robberrank[playerid] +=1;
  17895. }
  17896. atmcash3 -=atmrobrand;
  17897. for(new j=0;j<MAX_PLAYERS;j++)
  17898. {
  17899. if(LawEnforcementRadio[j] == 1) {
  17900. format(string, sizeof(string), "DISPATCH: (ATM ROBBERY) Suspect: %s(%d) Location: Starfish Casino",atmrobbername,playerid);
  17901. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17902. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to Starfish Casino - (ATM ROBBERY) Suspect: %s(%d)",atmrobbername,playerid);
  17903. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17904. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  17905. }
  17906. }
  17907. }
  17908. }
  17909.  
  17910.  
  17911. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 28)
  17912. {
  17913. if(GetPlayerWantedLevel(playerid) >=1) {
  17914. SendClientMessage(playerid,COLOR_ERROR,"You must be innocent to attempt to rob the ATM");
  17915. return 1;
  17916. }
  17917. if(atmcash4 <=99999) {
  17918. SendClientMessage(playerid,COLOR_ERROR,"Your attempt to rob the ATM has failed");
  17919. UsedBankRecently[playerid] += 120;
  17920. return 1;
  17921. }
  17922. if(atmcash4 >=100000)
  17923. {
  17924. new atmrobrand = random(55000);
  17925. if(GetPlayerMoney(playerid) + atmrobrand >= 1000001) {
  17926. SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
  17927. format(string, sizeof(string), "You cannot fit $%d more in your pockets! Deposit some cash into your bank account",atmrobrand);
  17928. SendClientMessage(playerid, COLOR_ERROR, string);
  17929. return 1;
  17930. }
  17931. new atmrobbername[30];
  17932. GetPlayerName(playerid,atmrobbername,30);
  17933. new plwl = GetPlayerWantedLevel(playerid);
  17934. new pcol = GetPlayerColor(playerid);
  17935. SetPlayerWantedLevel(playerid,plwl +4);
  17936. plwl = GetPlayerWantedLevel(playerid);
  17937. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  17938. format(string, sizeof(string), "(ATM BANK ROBBERY) Wanted Level %d",plwl);
  17939. SendClientMessage(playerid,pcol,string);
  17940. format(string, sizeof(string), "You have robbed the LV City Bank ATM. You robbed a total of $%d",atmrobrand);
  17941. SendClientMessage(playerid,0x00C7FFAA, string);
  17942. format(string, sizeof(string), "%s(%d) Has robbed $%d from the ATM in Come-Alot",atmrobbername,playerid,atmrobrand);
  17943. SendClientMessageToAll(0x00C7FFAA, string);
  17944. ircSay(EchoConnection, EchoChan,string);
  17945. printf("%s",string);
  17946. GivePlayerMoney(playerid,atmrobrand);
  17947. commitedcrimerecently[playerid] +=120;
  17948. oscore = GetPlayerScore(playerid);
  17949. SetPlayerScore(playerid, oscore +1);
  17950. Playerrobbedbankrecent[playerid] = 1100;
  17951. UsedBankRecently[playerid] += 1200;
  17952. RobbedBank[playerid] = 1337;
  17953. atmnetworkrobbedrecent =200;
  17954. if(robberrank[playerid] >=10 && robberrank[playerid] <=19) {
  17955. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  17956. robberrank[playerid] +=1;
  17957. }
  17958. atmcash4 -=atmrobrand;
  17959. for(new j=0;j<MAX_PLAYERS;j++)
  17960. {
  17961. if(LawEnforcementRadio[j] == 1) {
  17962. format(string, sizeof(string), "DISPATCH: (ATM ROBBERY) Suspect: %s(%d) Location: Come-Alot",atmrobbername,playerid);
  17963. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17964. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to Come-Alot - (ATM ROBBERY) Suspect: %s(%d)",atmrobbername,playerid);
  17965. SendClientMessage(j, COLOR_ROYALBLUE, string);
  17966. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  17967. }
  17968. }
  17969. }
  17970.  
  17971.  
  17972. }
  17973. return 1;
  17974. }
  17975.  
  17976.  
  17977.  
  17978.  
  17979.  
  17980. if(strcmp(cmdtext, "/robbank", true) == 0)
  17981. {
  17982. if(IsSpawned[playerid] == 0) {
  17983. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  17984. return 1;
  17985. }
  17986. if(Jailed[playerid] == 1) {
  17987. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  17988. return 1;
  17989. }
  17990. if(!IsPlayerInCheckpoint(playerid)) {
  17991. SendClientMessage(playerid,COLOR_ERROR,"You are not in the LV City Bank checkpoint");
  17992. return 1;
  17993. }
  17994. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_JAILTK) {
  17995. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob the bank");
  17996. return 1;
  17997. }
  17998. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 33) {
  17999. SendClientMessage(playerid,COLOR_ERROR,"You are not in the main bank checkpoint");
  18000. return 1;
  18001. }
  18002. if(robberrank[playerid] <=29) {
  18003. SendClientMessage(playerid,COLOR_ERROR,"Your robber skill level is too low to rob LV City Bank. Type /robskill for more info");
  18004. return 1;
  18005. }
  18006. if(BankRobbedRecently >=1 ) {
  18007. SendClientMessage(playerid,COLOR_ERROR,"LV City Bank has been robbed recenty. Please wait");
  18008. return 1;
  18009. }
  18010. if(Playerrobbedbankrecent[playerid] >=1 ) {
  18011. SendClientMessage(playerid,COLOR_ERROR,"Please wait before robbing the bank again");
  18012. return 1;
  18013. }
  18014. if(GetPlayerWantedLevel(playerid) >=1) {
  18015. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob the bank if you have wanted level");
  18016. return 1;
  18017. }
  18018.  
  18019. new bankrobchance = random(500);
  18020. new robbername[30];
  18021. GetPlayerName(playerid,robbername,30);
  18022. if(bankrobchance >=0 && bankrobchance <=249) {
  18023. new plwl = GetPlayerWantedLevel(playerid);
  18024. new pcol = GetPlayerColor(playerid);
  18025. SetPlayerWantedLevel(playerid,plwl +3);
  18026. plwl = GetPlayerWantedLevel(playerid);
  18027. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  18028. format(string, sizeof(string), "(ATTEMPTED BANK ROBBERY) Wanted Level %d",plwl);
  18029. SendClientMessage(playerid,pcol,string);
  18030. SendClientMessage(playerid,COLOR_ERROR,"Your attempted to rob LV City Bank has failed. The police have been advised");
  18031. Playerrobbedbankrecent[playerid] =120;
  18032. UsedBankRecently[playerid] =120;
  18033. format(string, sizeof(string), "%s(%d) has attempted to rob the bank. Attempt failed",robbername,playerid);
  18034. printf("%s",string);
  18035. commitedcrimerecently[playerid] +=200;
  18036. for(new j=0;j<MAX_PLAYERS;j++)
  18037. {
  18038. new current_zone;
  18039. current_zone = player_zone[playerid];
  18040. if(LawEnforcementRadio[j] == 1) {
  18041. format(string, sizeof(string), "DISPATCH: (ATTEMPTED BANK ROBBERY) Suspect: %s(%d) Location: %s",robbername,playerid,zones[current_zone][zone_name]);
  18042. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18043. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to %s - (ATTEMPTED ROBBERY)",zones[current_zone][zone_name]);
  18044. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18045. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  18046. }
  18047. }
  18048. }
  18049. else
  18050. if(bankrobchance >=250 && bankrobchance <=500)
  18051. {
  18052.  
  18053.  
  18054.  
  18055. new bankrobberytotal =0;
  18056. for(new i=0;i<MAX_PLAYERS;i++)
  18057. {
  18058. if(IsPlayerConnected(i) && IsSpawned[i] == 1)
  18059. {
  18060. if(PLAYERLIST_authed[i] && InBank[i] ==0)
  18061. {
  18062. BankCash[i] = dUserINT(PlayerName(i)).("bankcash");
  18063. if(BankCash[i] >=75000)
  18064. {
  18065. new victimname[30];
  18066. GetPlayerName(i,victimname,30);
  18067. format(string, sizeof(string), "%s(%d) has $%d in bank account",victimname,i,BankCash[i]);
  18068. printf("%s",string);
  18069. new robbedrand = random(75000);
  18070.  
  18071. bankrobberytotal +=robbedrand;
  18072. BankCash[i] -=robbedrand;
  18073.  
  18074. dUserSetINT(PlayerName(i)).("bankcash",BankCash[i]);
  18075.  
  18076. format(string, sizeof(string), "|_|----- Las Venturas City Bank -----|_|");
  18077. SendClientMessage(i, 0xA9A9A9AA, string);
  18078. format(string, sizeof(string), "|** Mode: **SMS ALERT** (Money Stolen)");
  18079. SendClientMessage(i,0x808080AA,string);
  18080. format(string, sizeof(string), "|** Notes: LV City Bank has been robbed. $%d of your cash was stolen",robbedrand);
  18081. SendClientMessage(i, 0xA9A9A9AA, string);
  18082. if(BankRobInsurance[i] == 1) {
  18083. BankCashReturns[i] +=robbedrand;
  18084. SendClientMessage(i, 0x00C7FFAA,"Your bank account is insured against theft. Visit the LV City branch to make a claim");
  18085. format(string, sizeof(string), "Total ammount due to you in this current insurance policy: $%d ",BankCashReturns[i]);
  18086. SendClientMessage(i, 0x00C7FFAA,string);
  18087. }
  18088. format(string, sizeof(string), "%s(%d) has had $%d stolen during a bank robbery",victimname,i,robbedrand);
  18089. printf("%s",string);
  18090. }
  18091. }
  18092. }
  18093. }
  18094. if(bankrobberytotal >=1) {
  18095. GivePlayerMoney(playerid,bankrobberytotal);
  18096. format(string, sizeof(string), "%s(%d) Has robbed $%d from LV City Bank",robbername,playerid,bankrobberytotal);
  18097. SendClientMessageToAll(0x00C7FFAA, string);
  18098. ircSay(EchoConnection, EchoChan,string);
  18099. format(string, sizeof(string), "%s(%d) Has robbed $%d from LV City Bank",robbername,playerid,bankrobberytotal);
  18100. printf("%s",string);
  18101. new plwl = GetPlayerWantedLevel(playerid);
  18102. new pcol = GetPlayerColor(playerid);
  18103. SetPlayerWantedLevel(playerid,plwl +5);
  18104. plwl = GetPlayerWantedLevel(playerid);
  18105. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  18106. format(string, sizeof(string), "(BANK ROBBERY) Wanted Level %d",plwl);
  18107. SendClientMessage(playerid,pcol,string);
  18108. format(string, sizeof(string), "You have robbed LV City Bank. You robbed a total of $%d",bankrobberytotal);
  18109. SendClientMessage(playerid,0x00C7FFAA, string);
  18110. SetPlayerPos(playerid,2361.9761,1539.9305,10.8203);
  18111. SetPlayerFacingAngle(playerid,181.8405);
  18112. SetCameraBehindPlayer(playerid);
  18113. if(robberrank[playerid] >=30 && robberrank[playerid] <=39) {
  18114. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  18115. robberrank[playerid] +=1;
  18116. }
  18117. oscore = GetPlayerScore(playerid);
  18118. SetPlayerScore(playerid, oscore +1);
  18119. InBank[playerid] =0;
  18120. Playerrobbedbankrecent[playerid] = 1100;
  18121. UsedBankRecently[playerid] += 1200;
  18122. RobbedBank[playerid] = 1337;
  18123. BankRobbedRecently =400;
  18124. commitedcrimerecently[playerid] +=460;
  18125. for(new j=0;j<MAX_PLAYERS;j++)
  18126. {
  18127. new current_zone;
  18128. current_zone = player_zone[playerid];
  18129. if(LawEnforcementRadio[j] == 1) {
  18130. format(string, sizeof(string), "DISPATCH: (BANK ROBBERY) Suspect: %s(%d) Location: %s",robbername,playerid,zones[current_zone][zone_name]);
  18131. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18132. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to %s - (BANK ROBBERY)",zones[current_zone][zone_name]);
  18133. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18134. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  18135. }
  18136. }
  18137. }
  18138.  
  18139. if(bankrobberytotal == 0) {
  18140. new plwl = GetPlayerWantedLevel(playerid);
  18141. new pcol = GetPlayerColor(playerid);
  18142. SetPlayerWantedLevel(playerid,plwl +3);
  18143. plwl = GetPlayerWantedLevel(playerid);
  18144. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  18145. format(string, sizeof(string), "(ATTEMPTED BANK ROBBERY) Wanted Level %d",plwl);
  18146. SendClientMessage(playerid,pcol,string);
  18147. SendClientMessage(playerid,COLOR_ERROR,"Your attempted to rob LV City Bank has failed. (Could not find the safe)");
  18148. Playerrobbedbankrecent[playerid] =300;
  18149. format(string, sizeof(string), "%s(%d) has attempted to rob the bank (Could not find the safe)",robbername,playerid);
  18150. printf("%s",string);
  18151. commitedcrimerecently[playerid] +=200;
  18152. for(new j=0;j<MAX_PLAYERS;j++)
  18153. {
  18154. new current_zone;
  18155. current_zone = player_zone[playerid];
  18156. if(LawEnforcementRadio[j] == 1) {
  18157. format(string, sizeof(string), "DISPATCH: (ATTEMPTED BANK ROBBERY) Suspect: %s(%d) Location: %s",robbername,playerid,zones[current_zone][zone_name]);
  18158. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18159. format(string, sizeof(string), "DISPATCH: **ATTENTION ALL UNITS** Please respond to %s - (ATTEMPTED ROBBERY)",zones[current_zone][zone_name]);
  18160. SendClientMessage(j, COLOR_ROYALBLUE, string);
  18161. SendClientMessage(j, COLOR_DODGERBLUE, "Type /radoff to turn your Law Enforcement radio off");
  18162. }
  18163. }
  18164. }
  18165. }
  18166. return 1;
  18167. }
  18168.  
  18169.  
  18170. if(strcmp(cmdtext, "/claimcash", true) == 0)
  18171. {
  18172. if(IsSpawned[playerid] == 0) {
  18173. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  18174. return 1;
  18175. }
  18176. if(Jailed[playerid] == 1) {
  18177. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  18178. return 1;
  18179. }
  18180. if(!IsPlayerInCheckpoint(playerid)) {
  18181. SendClientMessage(playerid,COLOR_ERROR,"You are not in the LV City Bank checkpoint");
  18182. return 1;
  18183. }
  18184. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 33) {
  18185. SendClientMessage(playerid,COLOR_ERROR,"You need to be in the LV City Bank checkpoint to claim stolen cash");
  18186. return 1;
  18187. }
  18188. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 33)
  18189. {
  18190. if(UsedBankRecently[playerid] >= 1) {
  18191. SendClientMessage(playerid,0xD2691EAA,"Please wait before using the bank again");
  18192. return 1;
  18193. }
  18194. if(BankRobInsurance[playerid] == 0) {
  18195. SendClientMessage(playerid,0x00C7FFAA,"You do not have a valid cash theft insurance policy. Type /buyinsure to get instant cover");
  18196. return 1;
  18197. }
  18198. if(BankCashReturns[playerid] >= 1)
  18199. {
  18200. new claimer[30];
  18201. GetPlayerName(playerid,claimer,30);
  18202. SendClientMessage(playerid, 0xA9A9A9AA, "|_Claim Completed_|");
  18203. GivePlayerMoney(playerid,BankCashReturns[playerid]);
  18204. format(string, sizeof(string), "Your insurance policy is active. You have claimed $%d",BankCashReturns[playerid]);
  18205. SendClientMessage(playerid, 0x00C7FFAA, string);
  18206. format(string, sizeof(string), "%s(%d) Has received $%d from the LV City Bank Insurance department",claimer,playerid,BankCashReturns[playerid]);
  18207. SendClientMessageToAll(0x00C7FFAA, string);
  18208. printf("%s",string);
  18209. BankCashReturns[playerid] =0;
  18210. }
  18211. else {
  18212. SendClientMessage(playerid, 0xA9A9A9AA, "|_Claim Failed_|");
  18213. SendClientMessage(playerid, 0x00C7FFAA, "You do not have any outstanding payments due to you at this time");
  18214. }
  18215. }
  18216. return 1;
  18217. }
  18218.  
  18219.  
  18220.  
  18221.  
  18222.  
  18223. if(strcmp(cmdtext, "/buyinsure", true) == 0)
  18224. {
  18225. if(IsSpawned[playerid] == 0) {
  18226. SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command");
  18227. return 1;
  18228. }
  18229. if(Jailed[playerid] == 1) {
  18230. SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail");
  18231. return 1;
  18232. }
  18233. if(!IsPlayerInCheckpoint(playerid)) {
  18234. SendClientMessage(playerid,COLOR_ERROR,"You are not in the Bank checkpoint (Cash Theft Insurance)");
  18235. return 1;
  18236. }
  18237. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 33 && getCheckpointType(playerid) != 82 && getCheckpointType(playerid) != 29 && getCheckpointType(playerid) != 30) {
  18238. SendClientMessage(playerid,COLOR_ERROR,"You are not in the Bank checkpoint (Cash Theft Insurance)");
  18239. return 1;
  18240. }
  18241.  
  18242. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 33)
  18243. {
  18244. if(BankRobInsurance[playerid] == 1) {
  18245. SendClientMessage(playerid,COLOR_ERROR,"You already have a valid policy with us. Your acount is already insured");
  18246. return 1;
  18247. }
  18248. if(GetPlayerMoney(playerid) <=14999) {
  18249. SendClientMessage(playerid,COLOR_ERROR,"LV City Bank theft insurance costs $15000 - You do not have enough cash");
  18250. return 1;
  18251. }
  18252. SendClientMessage(playerid, 0xA9A9A9AA, "|_Your Account Is Insured_|");
  18253. SendClientMessage(playerid, 0x00C7FFAA, "Thanks! Your bank account cash is now insured against theft");
  18254. SendClientMessage(playerid, 0x00C7FFAA, "If you die, your policy will die with you");
  18255. SendClientMessage(playerid, 0x00C7FFAA, "If you are due any claim then type /claimcash in this checkpoint to make a claim");
  18256. BankRobInsurance[playerid] =1;
  18257. GivePlayerMoney(playerid,-15000);
  18258. /*return 1;
  18259. }
  18260. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 82)
  18261. {
  18262. if(GetPlayerVirtualWorld(playerid) == 0) {
  18263. SendClientMessage(playerid,COLOR_ERROR,"You are not in City Hall. You can enter City Hall up in Roca Escalante");
  18264. return 1;
  18265. }
  18266. if(LifeInsurance[playerid] == 1) {
  18267. SendClientMessage(playerid,COLOR_ERROR,"You already have a valid Life Insurance policy. You can only insure one life at any time");
  18268. return 1;
  18269. }
  18270. if(GetPlayerMoney(playerid) <=49999) {
  18271. SendClientMessage(playerid,COLOR_ERROR,"Life Insurance costs $50000 - You do not have enough cash");
  18272. return 1;
  18273. }
  18274. SendClientMessage(playerid, 0xA9A9A9AA, "|_Your Life Is Insured_|");
  18275. SendClientMessage(playerid, 0x00C7FFAA, "You are now covered with Life Insurance. This policy will last for 1 death");
  18276. SendClientMessage(playerid, 0x00C7FFAA, "If you die while you have Life Insurance then you will spawn at LV Hospital with full health");
  18277. SendClientMessage(playerid, 0x00C7FFAA, "Life insurance covers weapons, bank cash, pocket cash, other insurances, drug bags");
  18278. SendClientMessage(playerid, 0x00C7FFAA, "drugs, robber rank, C4, wallet");
  18279. LifeInsurance[playerid] =1;
  18280. GivePlayerMoney(playerid,-50000);
  18281. */
  18282. }
  18283. return 1;
  18284. }
  18285.  
  18286.  
  18287.  
  18288.  
  18289. // LV Airport Checkpoint Commands
  18290. if (strcmp("/dive", cmdtext, true, 6) == 0) // skydive from lv
  18291. {
  18292. if(GetPlayerMoney(playerid) < 14999 && IsPlayerInCheckpoint(playerid)) {
  18293. SendClientMessage(playerid,COLOR_WHITE,"CHECKPOINT HELP: You cannot afford to buy a skydive ticket for $15000");
  18294. return 1;
  18295. }
  18296. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17) {
  18297. {
  18298. GivePlayerMoney(playerid,-15000);
  18299. GivePlayerWeapon(playerid,46,1);
  18300. SetPlayerInterior(playerid,0);
  18301. new buyername[24];
  18302. GetPlayerName(playerid,buyername, 24);
  18303. SetPlayerPos(playerid,2116.1709,1809.3512,865.7900);
  18304. GameTextForPlayer(playerid, "~r~Have a good jump!", 6000, 3);
  18305. SendClientMessage(playerid,0x4682B4AA,"You have purchased 1 skydive ticket. You have been charged $3000");
  18306. printf("**(SKY DIVE)** %s(%d) has payed the AirPort owner $15000 to sky dive.",buyername,playerid);
  18307. for(new i=0;i<MAX_PLAYERS;i++)
  18308. {
  18309. if(IsPlayerConnected(i))
  18310. {
  18311. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  18312. if(AirPortOwner[i] == 1337)
  18313. {
  18314. new PortOwner[24];
  18315. GetPlayerName(i,PortOwner,24);
  18316. SendClientMessage(i, 0xA9A9A9AA, "|_Ticket Bought_|");
  18317. format(string, sizeof(string), "%s(%d) has bought a ticket to skydive you have recived $15000",buyername,playerid);
  18318. SendClientMessage(i, 0x00C7FFAA, string);
  18319. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  18320. GivePlayerMoney(i,15000);
  18321. }
  18322. }
  18323. }
  18324. }
  18325. }
  18326. else
  18327. SendClientMessage(playerid,0xA52A2AAA,"Skydive tickets can only be purchased in the checkpoint at Las Venturas airport!");
  18328. return 1;
  18329. }
  18330.  
  18331. if (strcmp("/flyls", cmdtext, true, 6) == 0) // fly to ls from lv
  18332. {
  18333. if(GetPlayerMoney(playerid) < 10499 && IsPlayerInCheckpoint(playerid) == 17) {
  18334. SendClientMessage(playerid,COLOR_WHITE,"CHECKPOINT HELP: You cannot afford to buy a flight ticket to Los Santos for $10500");
  18335. return 1;
  18336. }
  18337. if(GetPlayerMoney(playerid) <= 10499) {
  18338. SendClientMessage(playerid, 0xA9A9A9AA, "|_Ticket Purchase Failed_|");
  18339. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a ticket to Los Santos($10500)");
  18340. return 1;
  18341. }
  18342. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17) {
  18343. {
  18344. GivePlayerMoney(playerid,-10500);
  18345. SetPlayerInterior(playerid,0);
  18346. new buyername[24];
  18347. GetPlayerName(playerid,buyername, 24);
  18348. SetPlayerPos(playerid,1684.5850,-2326.6030,13.5469);
  18349. SetPlayerFacingAngle(playerid,2.9027);
  18350. GameTextForPlayer(playerid, "~w~Welcome to Los Santos!", 6000, 3);
  18351. SendClientMessage(playerid,0x4682B4AA,"You have purchased 1 ticket to Los Santos. You have been charged $10500.");
  18352. for(new i=0;i<MAX_PLAYERS;i++)
  18353. {
  18354. if(IsPlayerConnected(i))
  18355. {
  18356. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  18357. if(AirPortOwner[i] == 1337)
  18358. {
  18359. new PortOwner[24];
  18360. GetPlayerName(i,PortOwner,24);
  18361. SendClientMessage(i, 0xA9A9A9AA, "|_Ticket Bought_|");
  18362. format(string, sizeof(string), "%s(%d) has bought a ticket to Los Santos you have recived $10500",buyername,playerid);
  18363. SendClientMessage(i, 0x00C7FFAA, string);
  18364. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  18365. GivePlayerMoney(i,10500);
  18366. }
  18367. }
  18368. }
  18369. }
  18370. }
  18371. else
  18372. SendClientMessage(playerid,0xA52A2AAA,"Flight tickets can only be purchased in the checkpoint at Las Venturas airport!");
  18373. return 1;
  18374. }
  18375.  
  18376. if (strcmp("/flysf", cmdtext, true, 6) == 0) // fly to sf from lv
  18377. {
  18378. if(GetPlayerMoney(playerid) < 10499 && IsPlayerInCheckpoint(playerid) == 17) {
  18379. SendClientMessage(playerid,COLOR_WHITE,"CHECKPOINT HELP: You cannot afford to buy a flight ticket to San Fierro for $10500");
  18380. return 1;
  18381. }
  18382. if(GetPlayerMoney(playerid) <= 10499) {
  18383. SendClientMessage(playerid, 0xA9A9A9AA, "|_Ticket Purchase Failed_|");
  18384. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a ticket to San Fierro($10500)");
  18385. return 1;
  18386. }
  18387. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 17) {
  18388. {
  18389. GivePlayerMoney(playerid,-10500);
  18390. SetPlayerInterior(playerid,0);
  18391. new buyername[24];
  18392. GetPlayerName(playerid,buyername, 24);
  18393. SetPlayerPos(playerid,-1425.9320,-293.2484,14.0000);
  18394. SetPlayerFacingAngle(playerid,140.9852);
  18395. GameTextForPlayer(playerid, "~w~Welcome to San Fierro!", 6000, 3);
  18396. SendClientMessage(playerid,0x4682B4AA,"You have purchased 1 ticket to San Fierro. You have been charged $10500.");
  18397. for(new i=0;i<MAX_PLAYERS;i++)
  18398. {
  18399. if(IsPlayerConnected(i))
  18400. {
  18401. AirPortOwner[i]=dUserINT(PlayerName(i)).("AirPortOwner");
  18402. if(AirPortOwner[i] == 1337)
  18403. {
  18404. new PortOwner[24];
  18405. GetPlayerName(i,PortOwner,24);
  18406. SendClientMessage(i, 0xA9A9A9AA, "|_Ticket Bought_|");
  18407. format(string, sizeof(string), "%s(%d) has bought a ticket to San Fierro you have recived $10500",buyername,playerid);
  18408. SendClientMessage(i, 0x00C7FFAA, string);
  18409. SendClientMessage(i, 0x00C7FFAA, "You can sell the AirPort business to a player using /sellairport (id)");
  18410. GivePlayerMoney(i,10500);
  18411. }
  18412. }
  18413. }
  18414. }
  18415. }
  18416. else
  18417. SendClientMessage(playerid,0xA52A2AAA,"Flight tickets can only be purchased in the checkpoint at Las Venturas airport!");
  18418. return 1;
  18419. }
  18420.  
  18421. if (strcmp("/sell", cmdtext, true, 6) == 0) // sellcar
  18422. {
  18423.  
  18424. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19 && GetPlayerVehicleID(playerid) == 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  18425. if(BonusCars[1] == 1) {
  18426. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18427. SendClientMessage(playerid,0xD2691EAA,"Sorry...We do not want to buy this vehicle");
  18428. return 1;
  18429. }
  18430. new str[100];
  18431. GetPlayerName(playerid, str, 24);
  18432. format(str, 100, "%s(%d) Has found and sold the bonus nrg-500 for $100000 at AutoBahn", str,playerid);
  18433. SendClientMessageToAll(0x00C7FFAA, str);
  18434. printf("%s",str);
  18435. ircSay(EchoConnection, EchoChan,str);
  18436. GivePlayerMoney(playerid,100000);
  18437. new playerScore = GetPlayerScore(playerid);
  18438. SetPlayerScore(playerid, playerScore+ 1);
  18439. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18440. SendClientMessage(playerid,0x00C7FFAA,"You have sold us the bonus NRG-500 motorbike. We have given you $100000");
  18441. BonusCars[1] = 1;
  18442. SetVehicleToRespawn(1);
  18443. }
  18444. else
  18445. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19 && GetPlayerVehicleID(playerid) == 2 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  18446. if(BonusCars[2] == 1) {
  18447. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18448. SendClientMessage(playerid,0xD2691EAA,"Sorry...We do not want to buy this vehicle");
  18449. return 1;
  18450. }
  18451. new str[100];
  18452. GetPlayerName(playerid, str, 24);
  18453. format(str, 100, "%s(%d) Has found and sold the bonus Bullet for $100000 at AutoBahn.", str,playerid);
  18454. SendClientMessageToAll(0x00C7FFAA, str);
  18455. printf("%s",str);
  18456. ircSay(EchoConnection, EchoChan,str);
  18457. GivePlayerMoney(playerid,100000);
  18458. new playerScore = GetPlayerScore(playerid);
  18459. SetPlayerScore(playerid, playerScore+ 1);
  18460. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18461. SendClientMessage(playerid,0x00C7FFAA,"You have sold us the bonus Bullet vehicle. We have given you $100000");
  18462. BonusCars[2] = 1;
  18463. SetVehicleToRespawn(2);
  18464. }
  18465. else
  18466. if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) == 19 && GetPlayerVehicleID(playerid) >= 3 && GetPlayerVehicleID(playerid) <= 30 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
  18467. new VehicleID = GetPlayerVehicleID(playerid);
  18468. if(CarSold[VehicleID] == 1) {
  18469. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18470. SendClientMessage(playerid,0xD2691EAA,"Sorry...We do not want to buy this vehicle");
  18471. return 1;
  18472. }
  18473. SetVehicleToRespawn(VehicleID);
  18474. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18475. SendClientMessage(playerid,0x00C7FFAA,"You have sold us your vehicle. We have given you $25000");
  18476. GivePlayerMoney(playerid,25000);
  18477. CarSold[VehicleID] =1;
  18478. new str[100];
  18479. GetPlayerName(playerid, str, 24);
  18480. format(str, 100, "%s(%d) Has sold a vehicle for $25000 at AutoBahn.", str,playerid);
  18481. printf("%s",str);
  18482. ircSay(EchoConnection, EchoChan,str);
  18483. }
  18484. else
  18485. if(GetPlayerVehicleID(playerid) == adminElegy || GetPlayerVehicleID(playerid) == adminTurismo || GetPlayerVehicleID(playerid) == adminSultan || GetPlayerVehicleID(playerid) == adminUranus) {
  18486. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18487. SendClientMessage(playerid,0xD2691EAA,"You cannot sell any Admin vehicle");
  18488. }
  18489. else
  18490. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
  18491. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18492. SendClientMessage(playerid,0xD2691EAA,"You cannot sell any vehicle while you are a passenger. You must be the driver");
  18493. }
  18494. else
  18495. if(!IsPlayerInCheckpoint(playerid)) {
  18496. SendClientMessage(playerid,COLOR_ERROR,"You need to be in the checkpoint at AutoBahn to attempt to sell a car");
  18497. }
  18498. else
  18499. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  18500. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18501. SendClientMessage(playerid,0xD2691EAA,"You are not in any vehichle. Get a vehicle then come back to see us");
  18502. }
  18503. else
  18504. if(GetPlayerVehicleID(playerid) >= 31 ) {
  18505. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  18506. SendClientMessage(playerid,0xD2691EAA,"Sorry...We do not want to buy this vehicle");
  18507. return 1;
  18508. }
  18509.  
  18510. return 1;
  18511. }
  18512. return SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  18513. }
  18514.  
  18515.  
  18516. public OnPlayerInfoChange(playerid)
  18517. {
  18518.  
  18519.  
  18520. return 1;
  18521. }
  18522.  
  18523.  
  18524.  
  18525.  
  18526. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  18527. {
  18528. if (GetVehicleModel(vehicleid) == shamal && ispassenger)
  18529. {
  18530. if (!ShamalExists(vehicleid))
  18531. CreateShamalInt(vehicleid, float(randomEx(3000)), float(randomEx(3000)), float(random(100)+800));
  18532. SetPlayerPosInShamal(playerid, vehicleid);
  18533. InShamal[playerid] = vehicleid;
  18534. }
  18535. if(GetVehicleModel(vehicleid) == 592 && ispassenger == 1)
  18536. {
  18537. SetPlayerInterior(playerid,9);
  18538. SetPlayerFacingAngle(playerid,0.0);
  18539. SetPlayerPos(playerid, 315.856170,1024.496459,1949.797363);
  18540. SetCameraBehindPlayer(playerid);
  18541. InAndrom[playerid]=1;
  18542. }
  18543.  
  18544.  
  18545. new str[100];
  18546. if(GetPlayerMoney(playerid) < -5000) {
  18547. GetPlayerName(playerid, str, 24);
  18548.  
  18549. format(str, 100, "**(AUTO KICK)** %s(%d) Negative Money", str,playerid);
  18550. SendClientMessageToAll(0xFF7F50AA, str);
  18551. printf("%s", str);
  18552. SetPlayerInterior(playerid,10);
  18553. SetPlayerPos(playerid,219.6257,111.2549,999.0156);
  18554. SetPlayerFacingAngle(playerid,2.2339);
  18555. SetCameraBehindPlayer(playerid);
  18556. ResetPlayerMoney(playerid);
  18557. Kicking[playerid] =1;
  18558. SetTimer("KickPlayer",700,0);
  18559. return 1;
  18560. }
  18561.  
  18562.  
  18563. return 1;
  18564. }
  18565.  
  18566.  
  18567.  
  18568.  
  18569.  
  18570. public OnPlayerExitVehicle(playerid, vehicleid)
  18571. {
  18572. return 1;
  18573. }
  18574.  
  18575. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  18576. {
  18577. if(oldinteriorid == 6 && newinteriorid == 0)
  18578. {
  18579. if(GetPlayerVirtualWorld(playerid) == 1)
  18580. {
  18581. SetPlayerVirtualWorld(playerid,0);
  18582. //SetPlayerInterior(playerid,0);
  18583. SetPlayerPos(playerid,1592.2305,2214.1846,10.8203);
  18584. SetPlayerFacingAngle(playerid,187.0764);
  18585. SetCameraBehindPlayer(playerid);
  18586. LeftTwoFourSeven[playerid] =1;
  18587. TimeToMoveTwoFourSeven[playerid] =3;
  18588. TogglePlayerControllable(playerid, 0);
  18589. }
  18590. if(GetPlayerVirtualWorld(playerid) == 2)
  18591. {
  18592. SetPlayerVirtualWorld(playerid,0);
  18593. //SetPlayerInterior(playerid,0);
  18594. SetPlayerPos(playerid,2191.6472,2476.4624,10.8203);
  18595. SetPlayerFacingAngle(playerid,272.7751);
  18596. SetCameraBehindPlayer(playerid);
  18597. LeftTwoFourSeven[playerid] =2;
  18598. TimeToMoveTwoFourSeven[playerid] =3;
  18599. TogglePlayerControllable(playerid, 0);
  18600. }
  18601. if(GetPlayerVirtualWorld(playerid) == 3)
  18602. {
  18603. SetPlayerVirtualWorld(playerid,0);
  18604. //SetPlayerInterior(playerid,0);
  18605. SetPlayerPos(playerid,2630.5876,1124.3673,10.8203);
  18606. SetPlayerFacingAngle(playerid,177.8683);
  18607. SetCameraBehindPlayer(playerid);
  18608. LeftTwoFourSeven[playerid] =3;
  18609. TimeToMoveTwoFourSeven[playerid] =3;
  18610. TogglePlayerControllable(playerid, 0);
  18611. }
  18612. if(GetPlayerVirtualWorld(playerid) == 4)
  18613. {
  18614. SetPlayerVirtualWorld(playerid,0);
  18615. //SetPlayerInterior(playerid,0);
  18616. SetPlayerPos(playerid,2108.0222,901.5873,10.8203);
  18617. SetPlayerFacingAngle(playerid,2.9187);
  18618. SetCameraBehindPlayer(playerid);
  18619. LeftTwoFourSeven[playerid] =4;
  18620. TimeToMoveTwoFourSeven[playerid] =3;
  18621. TogglePlayerControllable(playerid, 0);
  18622. }
  18623. if(GetPlayerVirtualWorld(playerid) == 5)
  18624. {
  18625. SetPlayerVirtualWorld(playerid,0);
  18626. //SetPlayerInterior(playerid,0);
  18627. SetPlayerPos(playerid,664.9492,1726.6813,6.9922);
  18628. SetPlayerFacingAngle(playerid,42.5792);
  18629. SetCameraBehindPlayer(playerid);
  18630. LeftTwoFourSeven[playerid] =5;
  18631. TimeToMoveTwoFourSeven[playerid] =3;
  18632. TogglePlayerControllable(playerid, 0);
  18633. }
  18634. if(GetPlayerVirtualWorld(playerid) == 6)
  18635. {
  18636. SetPlayerVirtualWorld(playerid,0);
  18637. //SetPlayerInterior(playerid,0);
  18638. SetPlayerPos(playerid,2142.6326,2739.4309,10.8203);
  18639. SetPlayerFacingAngle(playerid,5.6754);
  18640. SetCameraBehindPlayer(playerid);
  18641. LeftTwoFourSeven[playerid] =6;
  18642. TimeToMoveTwoFourSeven[playerid] =3;
  18643. TogglePlayerControllable(playerid, 0);
  18644. }
  18645. }
  18646. return 0;
  18647. }
  18648.  
  18649. public OnPlayerStateChange(playerid, newstate, oldstate)
  18650. {
  18651. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hydra1 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hydra2 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hydra3)
  18652. {
  18653. for(new i=0;i<MAX_PLAYERS;i++)
  18654. {
  18655. if(IsPlayerInAnyVehicle(i))
  18656. {
  18657. if(gTeam[playerid] != TEAM_ARMY)
  18658. {
  18659. RemovePlayerFromVehicle(playerid);
  18660. SendClientMessage(playerid,COLOR_ERROR,"Only army can use a hunter/hydra.");
  18661. return 1;
  18662. }
  18663. else
  18664. {
  18665. SendClientMessage(playerid, 0xA9A9A9AA, "|_SA Army Instructions_|");
  18666. SendClientMessage(playerid,COLOR_RED,"USE THIS AIRCRAFT TO TAKE DOWN RED SUSPECTS ONLY");
  18667. SendClientMessage(playerid,COLOR_RED,"DO NOT SHOOT AT OR KILL ANY PLAYER UNLESS THEY ARE RED (MOST WANTED)");
  18668. SendClientMessage(playerid,COLOR_RED,"You WILL be kicked/banned if you kill/shoot at low wanted/innocent/team players");
  18669. SendClientMessage(playerid,COLOR_YELLOW,"Type /pc for a list of player colours with brief descriptions");
  18670. }
  18671. }
  18672. }
  18673. }
  18674.  
  18675. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hunter1 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hunter2 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == hunter3)
  18676. {
  18677. for(new i=0;i<MAX_PLAYERS;i++)
  18678. {
  18679. if(IsPlayerInAnyVehicle(i))
  18680. {
  18681. if(gTeam[playerid] != TEAM_ARMY)
  18682. {
  18683. RemovePlayerFromVehicle(playerid);
  18684. SendClientMessage(playerid,COLOR_ERROR,"Only army can use a hunter/hydra.");
  18685. return 1;
  18686. }
  18687. else
  18688. {
  18689. SendClientMessage(playerid, 0xA9A9A9AA, "|_SA Army Instructions_|");
  18690. SendClientMessage(playerid,COLOR_RED,"USE THIS AIRCRAFT TO TAKE DOWN RED SUSPECTS ONLY");
  18691. SendClientMessage(playerid,COLOR_RED,"DO NOT SHOOT AT OR KILL ANY PLAYER UNLESS THEY ARE RED (MOST WANTED)");
  18692. SendClientMessage(playerid,COLOR_RED,"You WILL be kicked/banned if you kill/shoot at low wanted/innocent/team players");
  18693. SendClientMessage(playerid,COLOR_YELLOW,"Type /pc for a list of player colours with brief descriptions");
  18694. }
  18695. }
  18696. }
  18697. }
  18698. // adminSultan
  18699. // adminElegy
  18700. // adminUranus
  18701. // adminTurismo
  18702. // PAC1
  18703. // PAC2
  18704. // PAC3
  18705. // PAC4
  18706. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == adminSultan && PlayerAdminLevel[playerid] != 1337 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == adminElegy && PlayerAdminLevel[playerid] != 1337) {
  18707. RemovePlayerFromVehicle(playerid);
  18708. SendClientMessage(playerid,COLOR_ERROR,"This vehicle is reserved for Server Admins - You cannot use this vehicle!");
  18709. return 1;
  18710. }
  18711. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == adminUranus && PlayerAdminLevel[playerid] != 1337 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == adminTurismo && PlayerAdminLevel[playerid] != 1337) {
  18712. RemovePlayerFromVehicle(playerid);
  18713. SendClientMessage(playerid,COLOR_ERROR,"This vehicle is reserved for Server Admins - You cannot use this vehicle!");
  18714. return 1;
  18715. }
  18716.  
  18717. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == PAC3 && PlayerAdminLevel[playerid] != 1337 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == PAC4 && PlayerAdminLevel[playerid] != 1337) {
  18718. RemovePlayerFromVehicle(playerid);
  18719. SendClientMessage(playerid,COLOR_ERROR,"This vehicle is reserved for Server Admins - You cannot use this vehicle!");
  18720. return 1;
  18721. }
  18722.  
  18723. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == PAC1 && PlayerAdminLevel[playerid] != 1337 || oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == PAC2 && PlayerAdminLevel[playerid] != 1337) {
  18724. RemovePlayerFromVehicle(playerid);
  18725. SendClientMessage(playerid,COLOR_ERROR,"This vehicle is reserved for Server Admins - You cannot use this vehicle!");
  18726. return 1;
  18727. }
  18728.  
  18729.  
  18730. new string[256];
  18731. new name[256];
  18732. new playerName[24];
  18733. GetPlayerName(playerid, playerName, 24);
  18734. GetPlayerName(BoughtCarsOwner[GetPlayerVehicleID(playerid)], name, 256);
  18735. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && BoughtCars[GetPlayerVehicleID(playerid)] == 999 && playerName[playerid] != name[playerid]) {
  18736. SendClientMessage(playerid,COLOR_YELLOW,"This car has been purchased from AutoBahn. You are not the owner.");
  18737. GetPlayerName(BoughtCarsOwner[GetPlayerVehicleID(playerid)], name,sizeof(name));
  18738. format(string, sizeof(string), "This vehicle is registered to: %s",name);
  18739. SendClientMessage(playerid, COLOR_YELLOW, string);
  18740. RemovePlayerFromVehicle(playerid);
  18741. return 1;
  18742. }
  18743.  
  18744. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER && GetPlayerWantedLevel(playerid) >= 4) {
  18745. for(new i=0;i<MAX_PLAYERS;i++)
  18746. {
  18747. if(IsPlayerInAnyVehicle(i))
  18748. {
  18749. if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
  18750. {
  18751. if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
  18752. {
  18753. if(gTeam[i] != 1 && gTeam[i] != 2 && gTeam[i] != 3 && gTeam[i] != 5 && gTeam[i] != 6 && commitedcrimerecently[i] == 0) {
  18754. SetPlayerWantedLevel(i,GetPlayerWantedLevel(i)+1);
  18755. new pcol = GetPlayerColor(i);
  18756. SendClientMessage(i, 0xA9A9A9AA, "|_Crime Commited_|");
  18757. format(string, sizeof(string), "(CARRYING WANTED PLAYERS) Wanted Level %d",GetPlayerWantedLevel(i));
  18758. SendClientMessage(i,pcol,string);
  18759. commitedcrimerecently[i] +=120;
  18760. }
  18761. }
  18762. }
  18763. }
  18764. }
  18765.  
  18766. }
  18767.  
  18768. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18769. {
  18770. if(GetPlayerVehicleID(playerid) == adminElegy && PlayerAdminLevel[playerid] == 1337)
  18771. {
  18772. AddVehicleComponent(adminElegy,1147); // elegy spoiler
  18773. AddVehicleComponent(adminElegy,1085); // elegy rims
  18774. AddVehicleComponent(adminElegy,1148); // elegy rear bumper
  18775. AddVehicleComponent(adminElegy,1172); // elegy front bumper
  18776. AddVehicleComponent(adminElegy,1034); // elegy pipes
  18777. AddVehicleComponent(adminElegy,1010); // elegy nawz
  18778. AddVehicleComponent(adminElegy,1040); // elegy skirt
  18779. AddVehicleComponent(adminElegy,1036); // elegy skirt
  18780. }
  18781. }
  18782. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18783. {
  18784. if(GetPlayerVehicleID(playerid) == adminTurismo && PlayerAdminLevel[playerid] == 1337)
  18785. {
  18786. AddVehicleComponent(adminTurismo,1085); // turismo rims
  18787. AddVehicleComponent(adminTurismo,1010); // turismo nawz
  18788. }
  18789. }
  18790. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18791. {
  18792. if(GetPlayerVehicleID(playerid) == adminSultan && PlayerAdminLevel[playerid] == 1337)
  18793. {
  18794. AddVehicleComponent(adminSultan,1085); // sultan rims
  18795. AddVehicleComponent(adminSultan,1010); // sultan nawz
  18796. AddVehicleComponent(adminSultan,1026); // sultan skirt
  18797. AddVehicleComponent(adminSultan,1027); // sultan skirt
  18798. AddVehicleComponent(adminSultan,1029); // sultan zawst
  18799. AddVehicleComponent(adminSultan,1139); // sultan spoiler
  18800. AddVehicleComponent(adminSultan,1140); // sultan rear bumper
  18801. AddVehicleComponent(adminSultan,1170); // sultan front bumper
  18802. }
  18803. }
  18804. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18805. {
  18806. if(GetPlayerVehicleID(playerid) == adminUranus && PlayerAdminLevel[playerid] == 1337)
  18807. {
  18808. AddVehicleComponent(adminUranus,1085); // uranus rims
  18809. AddVehicleComponent(adminUranus,1010); // uranus nawz
  18810. AddVehicleComponent(adminUranus,1090); // uranus skirt
  18811. AddVehicleComponent(adminUranus,1094); // uranus skirt
  18812. AddVehicleComponent(adminUranus,1089); // uranus zawst
  18813. AddVehicleComponent(adminUranus,1164); // uranus spoiler
  18814. AddVehicleComponent(adminUranus,1167); // uranus rear bumper
  18815. AddVehicleComponent(adminUranus,1165); // uranus front bumper
  18816. }
  18817. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18818. {
  18819. if(GetPlayerVehicleID(playerid) == PAC2 && PlayerAdminLevel[playerid] == 1337)
  18820. {
  18821. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 483)
  18822. {
  18823. SendClientMessage(playerid, COLOR_GREEN, "** Mothership!");
  18824. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
  18825. }
  18826. }
  18827. }
  18828. }
  18829.  
  18830.  
  18831. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) >= 31 && GetPlayerVehicleID(playerid) <= 86)
  18832. {
  18833. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CASSEC || gTeam[playerid] == TEAM_MEDIC) {
  18834. SendClientMessage(playerid,0xF08080AA,"This vehicle belongs to the city. You can use this vehicle to do your job");
  18835. return 1;
  18836. }
  18837. new pname[24];
  18838. new plwl;
  18839. GetPlayerName(playerid,pname,24);
  18840. if(StoleCopCarRecent[playerid] == 0) {
  18841. plwl = GetPlayerWantedLevel(playerid);
  18842. SetPlayerWantedLevel(playerid,plwl +4);
  18843. }
  18844. new pcol = GetPlayerColor(playerid);
  18845. plwl = GetPlayerWantedLevel(playerid);
  18846. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  18847. format(string, sizeof(string), "(LAW ENFORCEMENT VEHICLE THEFT) Wanted Level %d",plwl);
  18848. SendClientMessage(playerid,pcol,string);
  18849. commitedcrimerecently[playerid] +=200;
  18850. if(StoleCopCarRecent[playerid] == 0) {
  18851. for(new i=0;i<MAX_PLAYERS;i++)
  18852. {
  18853. new current_zone;
  18854. current_zone = player_zone[playerid];
  18855. if(LawEnforcementRadio[i] == 1) {
  18856. format(string, sizeof(string), "DISPATCH: (LAW ENFORCEMENT VEHICLE THEFT) %s(%d) Has stolen a police vehicle. Location: %s",pname,playerid,zones[current_zone][zone_name]);
  18857. SendClientMessage(i, COLOR_ROYALBLUE, string);
  18858. }
  18859. }
  18860. }
  18861. StoleCopCarRecent[playerid] =1;
  18862. }
  18863. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && gTeam[playerid] == TEAM_KIDNAP)
  18864. {
  18865. KidCar[playerid] = GetPlayerVehicleID(playerid);
  18866. }
  18867.  
  18868.  
  18869. if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT && gTeam[playerid] == TEAM_DRIVER && Driveronduty[playerid] == 1)
  18870. {
  18871. new drivername[30];
  18872. GetPlayerName(playerid,drivername,30);
  18873. format(string, sizeof(string), "Driver %s(%d) is off duty",drivername,playerid);
  18874. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  18875. Driveronduty[playerid] =0;
  18876. }
  18877.  
  18878. if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT && gTeam[playerid] == TEAM_PILOT && Pilotonduty[playerid] == 1)
  18879. {
  18880. new drivername[30];
  18881. GetPlayerName(playerid,drivername,30);
  18882. format(string, sizeof(string), "Pilot %s(%d) is off duty",drivername,playerid);
  18883. SendClientMessageToAll(COLOR_FORESTGREEN,string);
  18884. Pilotonduty[playerid] =0;
  18885. }
  18886.  
  18887. if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
  18888. {
  18889. if(OnDelMission[playerid] == 1337 || DeliveringCash[playerid] == 1337)
  18890. {
  18891. SendClientMessage(playerid,COLOR_ERROR,"Delivery Mission Cancelled");
  18892. OnDelMission[playerid] =0;
  18893. DeliveringCash[playerid] =0;
  18894. DisablePlayerCheckpoint(playerid);
  18895. playerCheckpoint[playerid] = 999;
  18896. }
  18897. }
  18898.  
  18899. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18900. {
  18901. new vehicleid = GetPlayerVehicleID(playerid);
  18902. if(GetVehicleModel(vehicleid) == 408) {
  18903. SendClientMessage(playerid,0x00C7FFAA,"Type /trashdelivery to collect trash for cash");
  18904. }
  18905. }
  18906.  
  18907. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) {
  18908. new vehicleid = GetPlayerVehicleID(playerid);
  18909. if(GetVehicleModel(vehicleid) == 470) {
  18910. SendClientMessage(playerid,0x00C7FFAA,"Type /gundelivery to deliver weapons to ammunation stores for cash");
  18911. }
  18912. }
  18913.  
  18914. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && drunkplayer[playerid] >= 1)
  18915. {
  18916. if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 5 || gTeam[playerid] == 8) {
  18917. SendClientMessage(playerid,COLOR_ERROR,"You are drunk. You cannot drink and drive");
  18918. RemovePlayerFromVehicle(playerid);
  18919. }
  18920. else{
  18921. new plwl = GetPlayerWantedLevel(playerid);
  18922. SetPlayerWantedLevel(playerid,plwl +1);
  18923. new drinkdriver[30];
  18924. plwl = GetPlayerWantedLevel(playerid);
  18925. new pcol = GetPlayerColor(playerid);
  18926. GetPlayerName(playerid,drinkdriver,30);
  18927. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  18928. format(string, sizeof(string), "(DRINK DRIVING) Wanted Level: %d",plwl);
  18929. SendClientMessage(playerid, pcol, string);
  18930. for(new i=0;i<MAX_PLAYERS;i++)
  18931. {
  18932. new current_zone;
  18933. current_zone = player_zone[playerid];
  18934. if(LawEnforcementRadio[i] == 1 && GetDistanceBetweenPlayers(playerid,i) < 50) {
  18935. format(string, sizeof(string), "DISPATCH: (DUI) %s(%d) drink driving. Units in the area respond to Location: %s",drinkdriver,playerid,zones[current_zone][zone_name]);
  18936. SendClientMessage(i, COLOR_ROYALBLUE, string);
  18937. }
  18938. }
  18939. }
  18940. }
  18941.  
  18942. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
  18943. {
  18944. new vehicleid = GetPlayerVehicleID(playerid);
  18945. if(GetVehicleModel(vehicleid) == 428)
  18946. {
  18947. if(RobbedBank[playerid] == 1337 || GetPlayerWantedLevel(playerid) >=1) {
  18948. SendClientMessage(playerid,0x808080AA,"You cannot work for LV City Bank if you are wanted or if you have robbed the Bank or a ATM recently");
  18949. RemovePlayerFromVehicle(playerid);
  18950. return 1;
  18951. }
  18952. SendClientMessage(playerid,0x808080AA,"You can work for LV City Bank! We need casual workers to deliver cash to ATM machines");
  18953. SendClientMessage(playerid,0x808080AA,"Type /atmcash to use the computer in the van. This will show the current cash levels in all ATMs");
  18954. SendClientMessage(playerid,0x808080AA,"If the levels are below 500k then type /cashdelivery to start this mission");
  18955. SendClientMessage(playerid,0x808080AA,"The amount that the Bank will pay you depends on the amount of cash you deliver");
  18956. SendClientMessage(playerid,0x808080AA,"So make sure that there is alot of cash needing delivered otherwise you might earn only $100");
  18957. }
  18958. }
  18959.  
  18960.  
  18961. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && gTeam[playerid] == TEAM_DRIVER) {
  18962. new vehicleidd = GetPlayerVehicleID(playerid);
  18963. if(GetVehicleModel(vehicleidd) == 420 || GetVehicleModel(vehicleidd) == 487 || GetVehicleModel(vehicleidd) == 431 || GetVehicleModel(vehicleidd) == 409) {
  18964. SendClientMessage(playerid,0x00C7FFAA,"You have entered a drivers vehicle. Type /onduty to go on duty as a taxi driver");
  18965. SendClientMessage(playerid,0x00C7FFAA,"All taxi drivers have a fixed rate of $1 / Minute. You get a bonus for picking passengers up");
  18966. }
  18967. }
  18968.  
  18969. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
  18970. {
  18971. new vehicleid = GetPlayerVehicleID(playerid);
  18972. if(gTeam[playerid] != TEAM_DRIVER && GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 431 || GetVehicleModel(vehicleid) == 409)
  18973. {
  18974. for(new i=0;i<MAX_PLAYERS;i++)
  18975. {
  18976. if(IsPlayerInVehicle(i,vehicleid))
  18977. {
  18978. if(gTeam[i] == TEAM_DRIVER && GetPlayerState(i) == PLAYER_STATE_DRIVER && Driveronduty[i] == 1)
  18979. {
  18980. SendClientMessage(playerid, 0xA9A9A9AA, "|_Driver On Duty_|");
  18981. SendClientMessage(playerid,COLOR_DARKOLIVEGREEN,"This driver is on duty. You will be charged $1 / 1 game minute");
  18982. SendClientMessage(i, 0xA9A9A9AA, "|_Passenger Pick Up_|");
  18983. SendClientMessage(i,COLOR_DARKOLIVEGREEN,"You have picked up a paying passenger. You receive a £2500 bonus");
  18984. oscore = GetPlayerScore(playerid);
  18985. SetPlayerScore(playerid, oscore +1);
  18986. GivePlayerMoney(i,2500);
  18987. Taxipass[playerid] =1;
  18988. }
  18989. }
  18990.  
  18991.  
  18992. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && gTeam[playerid] == TEAM_PILOT) {
  18993. if(GetPlayerVehicleID(playerid) == mav1 ||
  18994. GetPlayerVehicleID(playerid) == mav2 ||
  18995. GetPlayerVehicleID(playerid) == mav3 ||
  18996. GetPlayerVehicleID(playerid) == mav4 ||
  18997. GetPlayerVehicleID(playerid) == mav5 ||
  18998. GetPlayerVehicleID(playerid) == mav6 ||
  18999. GetPlayerVehicleID(playerid) == mav7 ||
  19000. GetPlayerVehicleID(playerid) == mav8 ||
  19001. GetPlayerVehicleID(playerid) == mav9) {
  19002. SendClientMessage(playerid,0x00C7FFAA,"You have entered a Pilots plane. Type /pduty to go on duty as a pilot");
  19003. SendClientMessage(playerid,0x00C7FFAA,"All Pilots have a fixed rate of $7 / Minute. You get a bonus for picking passengers up");
  19004. }
  19005. }
  19006.  
  19007.  
  19008.  
  19009. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER) {
  19010. {
  19011. if(gTeam[playerid] != TEAM_PILOT && GetPlayerVehicleID(playerid) == mav1 || GetPlayerVehicleID(playerid) == mav2 || GetPlayerVehicleID(playerid) == mav3 ||
  19012. GetPlayerVehicleID(playerid) == mav4 || GetPlayerVehicleID(playerid) == mav5 || GetPlayerVehicleID(playerid) == mav6 || GetPlayerVehicleID(playerid) == mav7 ||
  19013. GetPlayerVehicleID(playerid) == mav8 || GetPlayerVehicleID(playerid) == mav9) {
  19014. }
  19015. for(new p=0;p<MAX_PLAYERS;p++) {
  19016. if(IsPlayerInVehicle(p,vehicleid)) {
  19017. if(gTeam[p] == TEAM_PILOT && GetPlayerState(p) == PLAYER_STATE_DRIVER && Pilotonduty[p] == 1) {
  19018. SendClientMessage(playerid, 0xA9A9A9AA, "|_Pilot On Duty_|");
  19019. SendClientMessage(playerid,COLOR_DARKOLIVEGREEN,"This pilot is on duty. You will be charged $7 / 1 game minute");
  19020. SendClientMessage(p, 0xA9A9A9AA, "|_Passenger Pick Up_|");
  19021. SendClientMessage(p,COLOR_DARKOLIVEGREEN,"You have picked up a paying passenger. You receive a $5500 bonus");
  19022. oscore = GetPlayerScore(playerid);
  19023. SetPlayerScore(playerid, oscore +1);
  19024. GivePlayerMoney(p,5500);
  19025. Planepass[playerid] =1;
  19026. }
  19027. }
  19028. }
  19029. }
  19030. }
  19031. }
  19032. }
  19033. }
  19034.  
  19035. if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
  19036. {
  19037. if(InDerby[playerid] == 1)
  19038. {
  19039. SendClientMessage(playerid, 0xA9A9A9AA, "|_BlackField Stadium_|");
  19040. SendClientMessage(playerid, 0x00C7FFAA, "You have been ejected from the derby for exiting your vehicle");
  19041. SetPlayerInterior(playerid,0);
  19042. SetPlayerPos(playerid,1085.6786,1603.7218,12.5469);
  19043. SetPlayerFacingAngle(playerid,5.5373);
  19044. SetCameraBehindPlayer(playerid);
  19045. InDerby[playerid] =0;
  19046. new ejectedname[30];
  19047. GetPlayerName(playerid,ejectedname,30);
  19048. for(new i=0;i<MAX_PLAYERS;i++)
  19049. {
  19050. if(InDerby[i] == 1) {
  19051. SendClientMessage(i, 0xA9A9A9AA, "|_BlackField Stadium_|");
  19052. format(string, sizeof(string), "%s(%d) Has been ejected from the derby for exiting their vehicle",ejectedname,playerid);
  19053. SendClientMessage(i, 0x00C7FFAA, string);
  19054. }
  19055. }
  19056. }
  19057. }
  19058.  
  19059. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) <= 2) {
  19060. {
  19061. new vid = GetPlayerVehicleID(playerid);
  19062. if(BonusCars[vid] == 0) {
  19063. SendClientMessage(playerid,0x4682B4AA,"Congratulations. You have found a bonus Vehicle worth $100000. Will you keep it or sell it?");
  19064. SendClientMessage(playerid,0x4682B4AA,"Go to AutoBahn on the strip and type /sell in the checkpoint to get your cash");
  19065. }
  19066. }
  19067. }
  19068. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) >= 3 && GetPlayerVehicleID(playerid) <= 30) {
  19069. {
  19070. new vid = GetPlayerVehicleID(playerid);
  19071. if(CarSold[vid] == 0) {
  19072. SendClientMessage(playerid,0x4682B4AA,"You can sell this car at AutoBahn for $25000 - Type /sell in the checkpoint");
  19073. }
  19074. }
  19075. }
  19076.  
  19077. /* if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) >= 87 && GetPlayerVehicleID(playerid) <= 92)
  19078. {
  19079. if(gTeam[playerid] != TEAM_ARMY) {
  19080. SendClientMessage(playerid,0xFF0000AA,"You are not military personel. You cannot use this vehicle");
  19081. RemovePlayerFromVehicle(playerid);
  19082. return 1;
  19083. }
  19084. SendClientMessage(playerid, 0xA9A9A9AA, "|_SA Army Instructions_|");
  19085. SendClientMessage(playerid,COLOR_RED,"USE THIS AIRCRAFT TO TAKE DOWN RED SUSPECTS ONLY");
  19086. SendClientMessage(playerid,COLOR_RED,"DO NOT SHOOT AT OR KILL ANY PLAYER UNLESS THEY ARE RED (MOST WANTED)");
  19087. SendClientMessage(playerid,COLOR_RED,"You WILL be kicked/banned if you kill/shoot at low wanted/innocent/team players");
  19088. SendClientMessage(playerid,COLOR_YELLOW,"Type /pc for a list of player colours with brief descriptions");
  19089. return 1;
  19090. }
  19091.  
  19092. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) >= 1) {
  19093. SendClientMessage(playerid,COLOR_GREY,"You are driving a vehicle. Type /ej to exit the vehicle or /ejall to remove all players (including you)");
  19094. }
  19095.  
  19096. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER && GetPlayerVehicleID(playerid) >= 1) {
  19097. SendClientMessage(playerid,COLOR_GREY,"Type /ej to exit the vehicle");
  19098. }
  19099. */
  19100.  
  19101.  
  19102.  
  19103.  
  19104. return 1;
  19105. }
  19106. public OnPlayerEnterCheckpoint(playerid)
  19107. {
  19108. //new cpid = CPS_GetPlayerCheckpoint(playerid);
  19109. new string[256];
  19110.  
  19111. if(getCheckpointType(playerid) == 89 && getCheckpointType(playerid) == 89)
  19112. {
  19113. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Hall Administration Dept_|");
  19114. SendClientMessage(playerid,0x00C7FFAA,"Type /robhall to attempt a robbery at LV City Hall");
  19115. }
  19116.  
  19117. if(getCheckpointType(playerid) == 90 && getCheckpointType(playerid) == 90)
  19118. {
  19119. new Float:X,Float:Y,Float:Z,Float:A;
  19120. GetVehiclePos(bigassplane,X,Y,Z);
  19121. GetVehicleZAngle(bigassplane,A);
  19122. X+=(5*floatsin(-floatsub(A,45.0),degrees)),
  19123. Y+=(5*floatcos(-floatsub(A,45.0),degrees));
  19124. SetPlayerInterior(playerid,0);
  19125. SetPlayerPos(playerid,X,Y,floatsub(Z,0.94));
  19126. SetPlayerFacingAngle(playerid,A);
  19127. SetCameraBehindPlayer(playerid);
  19128. InAndrom[playerid]=0;
  19129. GivePlayerWeapon(playerid,46,1);
  19130. }
  19131.  
  19132. if(getCheckpointType(playerid) == 81 && getCheckpointType(playerid) == 81)
  19133. {
  19134. if(!IsPlayerInAnyVehicle(playerid))
  19135. {
  19136. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Hall_|");
  19137. SendClientMessage(playerid,0x00C7FFAA,"Welcome to Las Venturas City Hall");
  19138. SetPlayerVirtualWorld(playerid,1);
  19139. SetPlayerInterior(playerid,3);
  19140. SetPlayerPos(playerid,381.3491,173.8634,1008.3828);
  19141. SetPlayerFacingAngle(playerid,88.3286);
  19142. SetCameraBehindPlayer(playerid);
  19143. }
  19144. }
  19145. if(getCheckpointType(playerid) == 95 && getCheckpointType(playerid) == 95)
  19146. {
  19147. if(!IsPlayerInAnyVehicle(playerid))
  19148. {
  19149. SetPlayerPos(playerid,1469.0784,1921.1641,11.3400);
  19150. SetPlayerFacingAngle(playerid,218.0000);
  19151. SetCameraBehindPlayer(playerid);
  19152. }
  19153. }
  19154.  
  19155. if(getCheckpointType(playerid) == 83 && getCheckpointType(playerid) == 83)
  19156. {
  19157. if(!IsPlayerInAnyVehicle(playerid))
  19158. {
  19159. SetPlayerVirtualWorld(playerid,1);
  19160. SetPlayerInterior(playerid,6);
  19161. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19162. SetPlayerFacingAngle(playerid,0.0000);
  19163. SetCameraBehindPlayer(playerid);
  19164. }
  19165. }
  19166.  
  19167. if(getCheckpointType(playerid) == 84 && getCheckpointType(playerid) == 84)
  19168. {
  19169. if(!IsPlayerInAnyVehicle(playerid))
  19170. {
  19171. SetPlayerVirtualWorld(playerid,2);
  19172. SetPlayerInterior(playerid,6);
  19173. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19174. SetPlayerFacingAngle(playerid,0.0000);
  19175. SetCameraBehindPlayer(playerid);
  19176. }
  19177. }
  19178.  
  19179. if(getCheckpointType(playerid) == 85 && getCheckpointType(playerid) == 85)
  19180. {
  19181. if(!IsPlayerInAnyVehicle(playerid))
  19182. {
  19183. SetPlayerVirtualWorld(playerid,3);
  19184. SetPlayerInterior(playerid,6);
  19185. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19186. SetPlayerFacingAngle(playerid,0.0000);
  19187. SetCameraBehindPlayer(playerid);
  19188. }
  19189. }
  19190.  
  19191. if(getCheckpointType(playerid) == 86 && getCheckpointType(playerid) == 86)
  19192. {
  19193. if(!IsPlayerInAnyVehicle(playerid))
  19194. {
  19195. SetPlayerVirtualWorld(playerid,4);
  19196. SetPlayerInterior(playerid,6);
  19197. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19198. SetPlayerFacingAngle(playerid,0.0000);
  19199. SetCameraBehindPlayer(playerid);
  19200. }
  19201. }
  19202.  
  19203. if(getCheckpointType(playerid) == 87 && getCheckpointType(playerid) == 87)
  19204. {
  19205. if(!IsPlayerInAnyVehicle(playerid))
  19206. {
  19207. SetPlayerVirtualWorld(playerid,5);
  19208. SetPlayerInterior(playerid,6);
  19209. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19210. SetPlayerFacingAngle(playerid,0.0000);
  19211. SetCameraBehindPlayer(playerid);
  19212. }
  19213. }
  19214.  
  19215. if(getCheckpointType(playerid) == 88 && getCheckpointType(playerid) == 88)
  19216. {
  19217. if(!IsPlayerInAnyVehicle(playerid))
  19218. {
  19219. SetPlayerVirtualWorld(playerid,6);
  19220. SetPlayerInterior(playerid,6);
  19221. SetPlayerPos(playerid,-26.6916,-55.7149,1003.5469);
  19222. SetPlayerFacingAngle(playerid,0.0000);
  19223. SetCameraBehindPlayer(playerid);
  19224. }
  19225. }
  19226.  
  19227.  
  19228.  
  19229.  
  19230. if(getCheckpointType(playerid) == 42 && getCheckpointType(playerid) == 42)
  19231. {
  19232. if(GetPlayerMoney(playerid) >= 25) {
  19233. SendClientMessage(playerid, 0xA9A9A9AA, "|_Public Bar_|");
  19234. SendClientMessage(playerid,0x00C7FFAA,"You purchased a cold beer for $20 from the bar");
  19235. GameTextForPlayer(playerid,"~w~beer purchased for $20",5000,3);
  19236. GivePlayerMoney(playerid,-20);
  19237. new Float:beerhealth;
  19238. GetPlayerHealth(playerid,beerhealth);
  19239. if(beerhealth <=95) {
  19240. SetPlayerHealth(playerid,beerhealth+5);
  19241. }
  19242. }
  19243. }
  19244.  
  19245. if(getCheckpointType(playerid) == 91 && getCheckpointType(playerid) == 91)
  19246. {
  19247. if(PlayerAdminLevel[playerid] == 1337)
  19248. {
  19249. SetPlayerVirtualWorld(playerid,1);
  19250. SetPlayerInterior(playerid,9);
  19251. SetPlayerPos(playerid,2317.8201,-1024.7500,1050.2109);
  19252. SetPlayerFacingAngle(playerid,0.0000);
  19253. SetCameraBehindPlayer(playerid);
  19254. SendClientMessage(playerid,0x00C7FFAA,"Thanks for for being a loyal admin to the server.");
  19255. SendClientMessage(playerid,0x00C7FFAA,"For doing this.. have some beer in the bar!");
  19256. }
  19257. else
  19258. {
  19259. SendClientMessage(playerid,COLOR_ERROR,"You are not a server admin, you cannot enter.");
  19260. }
  19261. }
  19262.  
  19263. if(getCheckpointType(playerid) == 92 && getCheckpointType(playerid) == 92)
  19264. {
  19265. if(PlayerAdminLevel[playerid] == 1337)
  19266. {
  19267. SendClientMessage(playerid,0x00C7FFAA,"Thank you for buying a beer! ($20)");
  19268. if(GetPlayerMoney(playerid) >= 25) {
  19269. GameTextForPlayer(playerid,"~w~beer purchased for $20",5000,3);
  19270. GivePlayerMoney(playerid,-20);
  19271. new Float:beerhealth;
  19272. GetPlayerHealth(playerid,beerhealth);
  19273. if(beerhealth <=95) {
  19274. SetPlayerHealth(playerid,beerhealth+5);
  19275. }
  19276. }
  19277.  
  19278. }
  19279. }
  19280.  
  19281. if(getCheckpointType(playerid) == 45 && getCheckpointType(playerid) == 45)
  19282. {
  19283. SendClientMessage(playerid,0x00C7FFAA,"You can blow the door off the vault with C4. Get C4 at the bomb shop in Redsands");
  19284. SendClientMessage(playerid,0x00C7FFAA,"Type /prepc4 to start a robbery attempt");
  19285. }
  19286.  
  19287. if(getCheckpointType(playerid) == 72 && getCheckpointType(playerid) == 72)
  19288. {
  19289. if(!IsPlayerInAnyVehicle(playerid))
  19290. {
  19291. GameTextForPlayer(playerid,"~w~WIN YOUR OWN CAR ON OUR SERVER~n~TYPE ~y~/BUYTICKET~w~ for $1k to enter",5000,3);
  19292. SendClientMessage(playerid,COLOR_YELLOW,"You can win this BULLET vehicle. If you win, only you will be able to drive it");
  19293. SendClientMessage(playerid,COLOR_YELLOW,"Only buy a ticket if you can be online on the 5th October 2007 at 1800 (GMT+1)");
  19294. SendClientMessage(playerid,COLOR_YELLOW,"The winner will be notified on the server at the time of the draw");
  19295. SendClientMessage(playerid,COLOR_YELLOW,"Not open to Server Admins or Current Business Owners");
  19296. }
  19297. }
  19298.  
  19299.  
  19300. if(getCheckpointType(playerid) == 73 && getCheckpointType(playerid) == 73)
  19301. {
  19302. if(DeliveringCash[playerid] == 1337)
  19303. {
  19304. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Picked Up_|");
  19305. SendClientMessage(playerid,0xADD8E6AA,"You have picked up the cash for all of the ATM's in Las Venturas");
  19306. SendClientMessage(playerid,0xADD8E6AA,"The first ATM on your route is in Whitewood Estates");
  19307. DisablePlayerCheckpoint(playerid);
  19308. playerCheckpoint[playerid] = 74;
  19309. SetPlayerCheckpoint(playerid,checkpoints[74][0],checkpoints[74][1],checkpoints[74][2],checkpoints[74][3]); // no 2
  19310. }
  19311. return 1;
  19312. }
  19313.  
  19314.  
  19315.  
  19316. if(getCheckpointType(playerid) == 74 && getCheckpointType(playerid) == 74)
  19317. {
  19318. if(DeliveringCash[playerid] == 1337)
  19319. {
  19320. new cashrefill =0;
  19321. new deliverername[30];
  19322. GetPlayerName(playerid,deliverername,30);
  19323. totalcashdelivered[playerid] =0;
  19324. cashrefill = 600000 - atmcash1;
  19325. totalcashdelivered[playerid] +=cashrefill;
  19326. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Delivered_|");
  19327. if(atmcash1 == 600000) {
  19328. SendClientMessage(playerid,0x00C7FFAA,"This ATM does not need any cash. It is full");
  19329. DisablePlayerCheckpoint(playerid);
  19330. playerCheckpoint[playerid] = 75;
  19331. SetPlayerCheckpoint(playerid,checkpoints[75][0],checkpoints[75][1],checkpoints[75][2],checkpoints[75][3]); // no 2
  19332. return 1;
  19333. }
  19334. format(string, sizeof(string), "You have delivered $%d to this ATM - Goto the next ATM in Roca Escalante",cashrefill);
  19335. SendClientMessage(playerid, 0x00C7FFAA, string);
  19336. format(string, sizeof(string), "%s(%d) Has delivered $%d to the ATM in Whitewood Estates",deliverername,playerid,cashrefill);
  19337. SendClientMessageToAll(0x00C7FFAA, string);
  19338. printf("%s",string);
  19339. atmcash1 +=cashrefill;
  19340. DisablePlayerCheckpoint(playerid);
  19341. playerCheckpoint[playerid] = 75;
  19342. SetPlayerCheckpoint(playerid,checkpoints[75][0],checkpoints[75][1],checkpoints[75][2],checkpoints[75][3]); // no 2
  19343. }
  19344. return 1;
  19345. }
  19346.  
  19347.  
  19348. if(getCheckpointType(playerid) == 75 && getCheckpointType(playerid) == 75)
  19349. {
  19350. if(DeliveringCash[playerid] == 1337)
  19351. {
  19352. new cashrefill =0;
  19353. new deliverername[30];
  19354. GetPlayerName(playerid,deliverername,30);
  19355. cashrefill = 600000 - atmcash2;
  19356. totalcashdelivered[playerid] +=cashrefill;
  19357. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Delivered_|");
  19358. if(atmcash2 == 600000) {
  19359. SendClientMessage(playerid,0x00C7FFAA,"This ATM does not need any cash. It is full");
  19360. DisablePlayerCheckpoint(playerid);
  19361. playerCheckpoint[playerid] = 76;
  19362. SetPlayerCheckpoint(playerid,checkpoints[76][0],checkpoints[76][1],checkpoints[76][2],checkpoints[76][3]); // no 2
  19363. return 1;
  19364. }
  19365. format(string, sizeof(string), "You have delivered $%d to this ATM - Goto the next ATM in at 24/7 beside the Starfish Casino",cashrefill);
  19366. SendClientMessage(playerid, 0x00C7FFAA, string);
  19367. format(string, sizeof(string), "%s(%d) Has delivered $%d to the ATM in Roca Escalante",deliverername,playerid,cashrefill);
  19368. SendClientMessageToAll(0x00C7FFAA, string);
  19369. printf("%s",string);
  19370. atmcash2 +=cashrefill;
  19371. DisablePlayerCheckpoint(playerid);
  19372. playerCheckpoint[playerid] = 76;
  19373. SetPlayerCheckpoint(playerid,checkpoints[76][0],checkpoints[76][1],checkpoints[76][2],checkpoints[76][3]); // no 2
  19374. }
  19375. return 1;
  19376. }
  19377.  
  19378. if(getCheckpointType(playerid) == 76 && getCheckpointType(playerid) == 76)
  19379. {
  19380. if(DeliveringCash[playerid] == 1337)
  19381. {
  19382. new cashrefill =0;
  19383. new deliverername[30];
  19384. GetPlayerName(playerid,deliverername,30);
  19385. cashrefill = 600000 - atmcash3;
  19386. totalcashdelivered[playerid] +=cashrefill;
  19387. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Delivered_|");
  19388. if(atmcash3 == 600000) {
  19389. SendClientMessage(playerid,0x00C7FFAA,"This ATM does not need any cash. It is full");
  19390. DisablePlayerCheckpoint(playerid);
  19391. playerCheckpoint[playerid] = 77;
  19392. SetPlayerCheckpoint(playerid,checkpoints[77][0],checkpoints[77][1],checkpoints[77][2],checkpoints[77][3]); // no 2
  19393. return 1;
  19394. }
  19395. format(string, sizeof(string), "You have delivered $%d to this ATM - Goto the next ATM in Come-Alot",cashrefill);
  19396. SendClientMessage(playerid, 0x00C7FFAA, string);
  19397. format(string, sizeof(string), "%s(%d) Has delivered $%d to the ATM at the Starfish Casino",deliverername,playerid,cashrefill);
  19398. SendClientMessageToAll(0x00C7FFAA, string);
  19399. printf("%s",string);
  19400. atmcash3 +=cashrefill;
  19401. DisablePlayerCheckpoint(playerid);
  19402. playerCheckpoint[playerid] = 77;
  19403. SetPlayerCheckpoint(playerid,checkpoints[77][0],checkpoints[77][1],checkpoints[77][2],checkpoints[77][3]); // no 2
  19404. }
  19405. return 1;
  19406. }
  19407.  
  19408.  
  19409. if(getCheckpointType(playerid) == 77 && getCheckpointType(playerid) == 77)
  19410. {
  19411. if(DeliveringCash[playerid] == 1337)
  19412. {
  19413. new cashrefill =0;
  19414. new deliverername[30];
  19415. GetPlayerName(playerid,deliverername,30);
  19416. cashrefill = 600000 - atmcash4;
  19417. totalcashdelivered[playerid] +=cashrefill;
  19418. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Delivered_|");
  19419. if(atmcash4 == 600000) {
  19420. SendClientMessage(playerid,0x00C7FFAA,"This ATM does not need any cash. It is full");
  19421. DisablePlayerCheckpoint(playerid);
  19422. playerCheckpoint[playerid] = 78;
  19423. SetPlayerCheckpoint(playerid,checkpoints[78][0],checkpoints[78][1],checkpoints[78][2],checkpoints[78][3]); // no 2
  19424. return 1;
  19425. }
  19426. format(string, sizeof(string), "You have delivered $%d to this ATM - Take the van back to LV City Bank to get paid",cashrefill);
  19427. SendClientMessage(playerid, 0x00C7FFAA, string);
  19428. format(string, sizeof(string), "%s(%d) Has delivered $%d to the ATM in Come-Alot",deliverername,playerid,cashrefill);
  19429. SendClientMessageToAll(0x00C7FFAA, string);
  19430. printf("%s",string);
  19431. atmcash4 +=cashrefill;
  19432. DisablePlayerCheckpoint(playerid);
  19433. playerCheckpoint[playerid] = 78;
  19434. SetPlayerCheckpoint(playerid,checkpoints[78][0],checkpoints[78][1],checkpoints[78][2],checkpoints[78][3]); // no 2
  19435. }
  19436. return 1;
  19437. }
  19438.  
  19439.  
  19440. if(getCheckpointType(playerid) == 78 && getCheckpointType(playerid) == 78)
  19441. {
  19442. if(DeliveringCash[playerid] == 1337)
  19443. {
  19444. new cashrefill =0;
  19445. new deliverername[30];
  19446. new cashdeliveryearnings =0;
  19447. GetPlayerName(playerid,deliverername,30);
  19448. cashrefill = 600000 - atmcash4;
  19449. totalcashdelivered[playerid] +=cashrefill;
  19450. if(totalcashdelivered[playerid] >=1 && totalcashdelivered[playerid] <=5000) {
  19451. cashdeliveryearnings =1000;
  19452. }
  19453. else
  19454. if(totalcashdelivered[playerid] >=5001 && totalcashdelivered[playerid] <=10000) {
  19455. cashdeliveryearnings =2000;
  19456. }
  19457. else
  19458. if(totalcashdelivered[playerid] >=10001 && totalcashdelivered[playerid] <=20000) {
  19459. cashdeliveryearnings =3000;
  19460. }
  19461. else
  19462. if(totalcashdelivered[playerid] >=20001 && totalcashdelivered[playerid] <=30000) {
  19463. cashdeliveryearnings =4000;
  19464. }
  19465. else
  19466. if(totalcashdelivered[playerid] >=30001 && totalcashdelivered[playerid] <=40000) {
  19467. cashdeliveryearnings =5000;
  19468. }
  19469. else
  19470. if(totalcashdelivered[playerid] >=40001 && totalcashdelivered[playerid] <=60000) {
  19471. cashdeliveryearnings =8000;
  19472. }
  19473. else
  19474. if(totalcashdelivered[playerid] >=70001 && totalcashdelivered[playerid] <=100000) {
  19475. cashdeliveryearnings =15000;
  19476. }
  19477. else
  19478. if(totalcashdelivered[playerid] >=100001 && totalcashdelivered[playerid] <=150000) {
  19479. cashdeliveryearnings =20000;
  19480. }
  19481. else
  19482. if(totalcashdelivered[playerid] >=150001 && totalcashdelivered[playerid] <=200000) {
  19483. cashdeliveryearnings =25000;
  19484. }
  19485. else
  19486. if(totalcashdelivered[playerid] >=250000) {
  19487. cashdeliveryearnings =50000;
  19488. }
  19489. SendClientMessage(playerid, 0xA9A9A9AA, "|_LV City Bank - Cash Delivery Complete_|");
  19490. format(string, sizeof(string), "You have delivered a total of $%d to the ATM's in Las Venturas. You were paid $%d",totalcashdelivered[playerid],cashdeliveryearnings);
  19491. SendClientMessage(playerid, 0x00C7FFAA, string);
  19492. GivePlayerMoney(playerid,cashdeliveryearnings);
  19493. format(string, sizeof(string), "%s(%d) has delivered a total of $%d to the ATM's in Las Venturas and was paid $%d ",deliverername,playerid,totalcashdelivered[playerid],cashdeliveryearnings);
  19494. printf("%s",string);
  19495. oscore = GetPlayerScore(playerid);
  19496. SetPlayerScore(playerid, oscore +1);
  19497. DisablePlayerCheckpoint(playerid);
  19498. playerCheckpoint[playerid] = 999;
  19499. DeliveringCash[playerid] =0;
  19500. totalcashdelivered[playerid] =0;
  19501. }
  19502. return 1;
  19503. }
  19504.  
  19505.  
  19506.  
  19507.  
  19508.  
  19509.  
  19510.  
  19511.  
  19512.  
  19513.  
  19514.  
  19515.  
  19516.  
  19517.  
  19518.  
  19519.  
  19520.  
  19521.  
  19522.  
  19523.  
  19524.  
  19525.  
  19526.  
  19527.  
  19528. if(getCheckpointType(playerid) == 58 && getCheckpointType(playerid) == 58)
  19529. {
  19530. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 0)
  19531. {
  19532. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 1_|");
  19533. SendClientMessage(playerid,0xADD8E6AA,"Take these weapons to the Ammunation store in Los Santos (Market)");
  19534. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19535. DisablePlayerCheckpoint(playerid);
  19536. GunsDeliveryTime[playerid] = 100;
  19537. playerCheckpoint[playerid] = 59;
  19538. SetPlayerCheckpoint(playerid,checkpoints[59][0],checkpoints[59][1],checkpoints[59][2],checkpoints[59][3]); // no 2
  19539. }
  19540. return 1;
  19541. }
  19542.  
  19543. if(getCheckpointType(playerid) == 59 && getCheckpointType(playerid) == 59)
  19544. {
  19545. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 0)
  19546. {
  19547. new deliveryname[30];
  19548. OnDelMission[playerid] =0;
  19549. DeliveringGuns[playerid] =0;
  19550. GetPlayerName(playerid,deliveryname,30);
  19551. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 1_|");
  19552. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $1500");
  19553. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 2");
  19554. format(string, sizeof(string), "%s(%d) Has delivered weapons from South LV Ammunation to Los Santos Ammunation (Mission 1)",deliveryname,playerid);
  19555. SendClientMessageToAll(0x00C7FFAA, string);
  19556. printf("%s",string);
  19557. GivePlayerMoney(playerid,1500);
  19558. GunsDeliveryTime[playerid] =0;
  19559. GunDeliveryLevel[playerid] =1;
  19560. DisablePlayerCheckpoint(playerid);
  19561. }
  19562. return 1;
  19563. }
  19564.  
  19565. if(getCheckpointType(playerid) == 60 && getCheckpointType(playerid) == 60)
  19566. {
  19567. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 1)
  19568. {
  19569. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 2_|");
  19570. SendClientMessage(playerid,0xADD8E6AA,"Take these weapons to the Ammunation store in Los Santos (Willowfield)");
  19571. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19572. DisablePlayerCheckpoint(playerid);
  19573. GunsDeliveryTime[playerid] = 62;
  19574. playerCheckpoint[playerid] = 61;
  19575. SetPlayerCheckpoint(playerid,checkpoints[61][0],checkpoints[61][1],checkpoints[61][2],checkpoints[61][3]); // no 2
  19576. }
  19577. return 1;
  19578. }
  19579.  
  19580. if(getCheckpointType(playerid) == 61 && getCheckpointType(playerid) == 61)
  19581. {
  19582. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 1)
  19583. {
  19584. new deliveryname[30];
  19585. OnDelMission[playerid] =0;
  19586. DeliveringGuns[playerid] =0;
  19587. GetPlayerName(playerid,deliveryname,30);
  19588. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 2_|");
  19589. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $2000");
  19590. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 3");
  19591. format(string, sizeof(string), "%s(%d) Has delivered weapons from Ammunation in Market to Ammunation in Willowfield (Mission 2)",deliveryname,playerid);
  19592. SendClientMessageToAll(0x00C7FFAA, string);
  19593. printf("%s",string);
  19594. GivePlayerMoney(playerid,2000);
  19595. DisablePlayerCheckpoint(playerid);
  19596. GunsDeliveryTime[playerid] =0;
  19597. GunDeliveryLevel[playerid] =2;
  19598. }
  19599. return 1;
  19600. }
  19601.  
  19602.  
  19603. if(getCheckpointType(playerid) == 62 && getCheckpointType(playerid) == 62)
  19604. {
  19605. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 2)
  19606. {
  19607. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 3_|");
  19608. SendClientMessage(playerid,0xADD8E6AA,"Take these weapons to the Ammunation store in Whetstone");
  19609. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19610. DisablePlayerCheckpoint(playerid);
  19611. GunsDeliveryTime[playerid] = 180;
  19612. playerCheckpoint[playerid] = 63;
  19613. SetPlayerCheckpoint(playerid,checkpoints[63][0],checkpoints[63][1],checkpoints[63][2],checkpoints[63][3]); // no 2
  19614. }
  19615. return 1;
  19616. }
  19617.  
  19618. if(getCheckpointType(playerid) == 63 && getCheckpointType(playerid) == 63)
  19619. {
  19620. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 2)
  19621. {
  19622. new deliveryname[30];
  19623. OnDelMission[playerid] =0;
  19624. DeliveringGuns[playerid] =0;
  19625. GetPlayerName(playerid,deliveryname,30);
  19626. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 3_|");
  19627. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $2500");
  19628. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 4");
  19629. format(string, sizeof(string), "%s(%d) Has delivered weapons from RS Haul to Ammunation in Whetstone (Mission 3)",deliveryname,playerid);
  19630. SendClientMessageToAll(0x00C7FFAA, string);
  19631. printf("%s",string);
  19632. GivePlayerMoney(playerid,2500);
  19633. DisablePlayerCheckpoint(playerid);
  19634. GunsDeliveryTime[playerid] =0;
  19635. GunDeliveryLevel[playerid] =3;
  19636. }
  19637. return 1;
  19638. }
  19639.  
  19640.  
  19641. if(getCheckpointType(playerid) == 64 && getCheckpointType(playerid) == 64)
  19642. {
  19643. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 3)
  19644. {
  19645. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 4_|");
  19646. SendClientMessage(playerid,0xADD8E6AA,"The cops at SFPD are wating on these weapons. Dont be late");
  19647. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19648. DisablePlayerCheckpoint(playerid);
  19649. GunsDeliveryTime[playerid] = 60;
  19650. playerCheckpoint[playerid] = 65;
  19651. SetPlayerCheckpoint(playerid,checkpoints[65][0],checkpoints[65][1],checkpoints[65][2],checkpoints[65][3]); // no 2
  19652. }
  19653. return 1;
  19654. }
  19655.  
  19656. if(getCheckpointType(playerid) == 65 && getCheckpointType(playerid) == 65)
  19657. {
  19658. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 3)
  19659. {
  19660. new deliveryname[30];
  19661. OnDelMission[playerid] =0;
  19662. DeliveringGuns[playerid] =0;
  19663. GetPlayerName(playerid,deliveryname,30);
  19664. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 4_|");
  19665. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $5000");
  19666. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 5");
  19667. format(string, sizeof(string), "%s(%d) Has delivered weapons from Ammunation in Ocean Flats to SFPD (Mission 4)",deliveryname,playerid);
  19668. SendClientMessageToAll(0x00C7FFAA, string);
  19669. printf("%s",string);
  19670. GivePlayerMoney(playerid,5000);
  19671. DisablePlayerCheckpoint(playerid);
  19672. GunsDeliveryTime[playerid] =0;
  19673. GunDeliveryLevel[playerid] =4;
  19674. }
  19675. return 1;
  19676. }
  19677.  
  19678. if(getCheckpointType(playerid) == 66 && getCheckpointType(playerid) == 66)
  19679. {
  19680. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 4)
  19681. {
  19682. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 5_|");
  19683. SendClientMessage(playerid,0xADD8E6AA,"Drop these military weapons at Area 69");
  19684. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19685. DisablePlayerCheckpoint(playerid);
  19686. GunsDeliveryTime[playerid] = 150;
  19687. playerCheckpoint[playerid] = 67;
  19688. SetPlayerCheckpoint(playerid,checkpoints[67][0],checkpoints[67][1],checkpoints[67][2],checkpoints[67][3]); // no 2
  19689. }
  19690. return 1;
  19691. }
  19692.  
  19693. if(getCheckpointType(playerid) == 67 && getCheckpointType(playerid) == 67)
  19694. {
  19695. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 4)
  19696. {
  19697. new deliveryname[30];
  19698. OnDelMission[playerid] =0;
  19699. DeliveringGuns[playerid] =0;
  19700. GetPlayerName(playerid,deliveryname,30);
  19701. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 5_|");
  19702. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $6000");
  19703. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 6");
  19704. format(string, sizeof(string), "%s(%d) Has delivered weapons from Easter Bay Naval Base to Areas 69 (Mission 5)",deliveryname,playerid);
  19705. SendClientMessageToAll(0x00C7FFAA, string);
  19706. printf("%s",string);
  19707. GivePlayerMoney(playerid,6000);
  19708. DisablePlayerCheckpoint(playerid);
  19709. GunsDeliveryTime[playerid] =0;
  19710. GunDeliveryLevel[playerid] =5;
  19711. }
  19712. return 1;
  19713. }
  19714.  
  19715.  
  19716. if(getCheckpointType(playerid) == 68 && getCheckpointType(playerid) == 68)
  19717. {
  19718. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 5)
  19719. {
  19720. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 6_|");
  19721. SendClientMessage(playerid,0xADD8E6AA,"LVPD Army base requires missiles and other ammo. Drop this load at the LVPD Army Base");
  19722. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19723. DisablePlayerCheckpoint(playerid);
  19724. GunsDeliveryTime[playerid] = 120;
  19725. playerCheckpoint[playerid] = 69;
  19726. SetPlayerCheckpoint(playerid,checkpoints[69][0],checkpoints[69][1],checkpoints[69][2],checkpoints[69][3]); // no 2
  19727. }
  19728. return 1;
  19729. }
  19730.  
  19731. if(getCheckpointType(playerid) == 69 && getCheckpointType(playerid) == 69)
  19732. {
  19733. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 5)
  19734. {
  19735. new deliveryname[30];
  19736. OnDelMission[playerid] =0;
  19737. DeliveringGuns[playerid] =0;
  19738. GetPlayerName(playerid,deliveryname,30);
  19739. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 6_|");
  19740. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $8000");
  19741. SendClientMessage(playerid,0xADD8E6AA,"Type /gundelivery when you want to start Mission 7");
  19742. format(string, sizeof(string), "%s(%d) Has delivered weapons from Area 69 to LV Army Base (Mission 6)",deliveryname,playerid);
  19743. SendClientMessageToAll(0x00C7FFAA, string);
  19744. printf("%s",string);
  19745. GivePlayerMoney(playerid,8000);
  19746. DisablePlayerCheckpoint(playerid);
  19747. GunsDeliveryTime[playerid] =0;
  19748. GunDeliveryLevel[playerid] =6;
  19749. }
  19750. return 1;
  19751. }
  19752.  
  19753.  
  19754. if(getCheckpointType(playerid) == 70 && getCheckpointType(playerid) == 70)
  19755. {
  19756. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 6)
  19757. {
  19758. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Picked up - Mission 7_|");
  19759. SendClientMessage(playerid,0xADD8E6AA,"Drop these weapons at LVPD HQ - This is the final delivery");
  19760. SendClientMessage(playerid,0xADD8E6AA,"Make sure you get there before the timer runs out or the mission will be failed");
  19761. DisablePlayerCheckpoint(playerid);
  19762. GunsDeliveryTime[playerid] = 80;
  19763. playerCheckpoint[playerid] = 71;
  19764. SetPlayerCheckpoint(playerid,checkpoints[71][0],checkpoints[71][1],checkpoints[71][2],checkpoints[71][3]); // no 2
  19765. }
  19766. return 1;
  19767. }
  19768.  
  19769. if(getCheckpointType(playerid) == 71 && getCheckpointType(playerid) == 71)
  19770. {
  19771. if(OnDelMission[playerid] == 1337 && GunDeliveryLevel[playerid] == 6)
  19772. {
  19773. new deliveryname[30];
  19774. OnDelMission[playerid] =0;
  19775. DeliveringGuns[playerid] =0;
  19776. GetPlayerName(playerid,deliveryname,30);
  19777. SendClientMessage(playerid, 0xA9A9A9AA, "|_Weapons Delivered - Mission 7_|");
  19778. SendClientMessage(playerid,0xADD8E6AA,"You have delivered the weapons on time. You earned: $8000");
  19779. SendClientMessage(playerid,0xADD8E6AA,"You have completed all of the Gun Delivery missions. You earn a $15000 bonus");
  19780. format(string, sizeof(string), "%s(%d) Has delivered weapons from LV Army Base to LVPD HQ (Mission 7)",deliveryname,playerid);
  19781. SendClientMessageToAll(0x00C7FFAA, string);
  19782. printf("%s",string);
  19783. GivePlayerMoney(playerid,23000);
  19784. DisablePlayerCheckpoint(playerid);
  19785. GunsDeliveryTime[playerid] =0;
  19786. GunDeliveryLevel[playerid] =0;
  19787. }
  19788. return 1;
  19789. }
  19790.  
  19791. if(getCheckpointType(playerid) == 47 && getCheckpointType(playerid) == 47)
  19792. {
  19793. if(OnDelMission[playerid] == 1337)
  19794. {
  19795. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19796. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from Well Stacked Pizza Co");
  19797. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at Well Stacked Pizza Co in The Emerald Isle");
  19798. DisablePlayerCheckpoint(playerid);
  19799. playerCheckpoint[playerid] = 48;
  19800. SetPlayerCheckpoint(playerid,checkpoints[48][0],checkpoints[48][1],checkpoints[48][2],checkpoints[48][3]); // no 2
  19801. }
  19802. return 1;
  19803. }
  19804.  
  19805. if(getCheckpointType(playerid) == 48 && getCheckpointType(playerid) == 48)
  19806. {
  19807. if(OnDelMission[playerid] == 1337)
  19808. {
  19809. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19810. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from Well Stacked Pizza Co");
  19811. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at Caligulas Casino (rear)");
  19812. DisablePlayerCheckpoint(playerid);
  19813. playerCheckpoint[playerid] = 49;
  19814. SetPlayerCheckpoint(playerid,checkpoints[49][0],checkpoints[49][1],checkpoints[49][2],checkpoints[49][3]); // no 2
  19815. }
  19816. return 1;
  19817. }
  19818. if(getCheckpointType(playerid) == 49 && getCheckpointType(playerid) == 49)
  19819. {
  19820. if(OnDelMission[playerid] == 1337)
  19821. {
  19822. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19823. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from Caligulas Casino");
  19824. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at Admin HQ (rear)");
  19825. DisablePlayerCheckpoint(playerid);
  19826. playerCheckpoint[playerid] = 50;
  19827. SetPlayerCheckpoint(playerid,checkpoints[50][0],checkpoints[50][1],checkpoints[50][2],checkpoints[50][3]); // no 2
  19828. }
  19829. return 1;
  19830. }
  19831. if(getCheckpointType(playerid) == 50 && getCheckpointType(playerid) == 50)
  19832. {
  19833. if(OnDelMission[playerid] == 1337)
  19834. {
  19835. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19836. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from Admin HQ");
  19837. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at Ammunation (South LV)");
  19838. DisablePlayerCheckpoint(playerid);
  19839. playerCheckpoint[playerid] = 51;
  19840. SetPlayerCheckpoint(playerid,checkpoints[51][0],checkpoints[51][1],checkpoints[51][2],checkpoints[51][3]); // no 2
  19841. }
  19842. return 1;
  19843. }
  19844. if(getCheckpointType(playerid) == 51 && getCheckpointType(playerid) == 51)
  19845. {
  19846. if(OnDelMission[playerid] == 1337)
  19847. {
  19848. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19849. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from Ammunation (South LV)");
  19850. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at old grandmas house in Rockshore");
  19851. DisablePlayerCheckpoint(playerid);
  19852. playerCheckpoint[playerid] = 52;
  19853. SetPlayerCheckpoint(playerid,checkpoints[52][0],checkpoints[52][1],checkpoints[52][2],checkpoints[52][3]); // no 2
  19854. }
  19855. return 1;
  19856. }
  19857. if(getCheckpointType(playerid) == 52 && getCheckpointType(playerid) == 52)
  19858. {
  19859. if(OnDelMission[playerid] == 1337)
  19860. {
  19861. new grandmarand = random(10000);
  19862.  
  19863. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19864. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from old grandmas house in Rockshore");
  19865. format(string, sizeof(string), "old grandma has given you a $%d tip - how sweet! ",grandmarand);
  19866. SendClientMessage(playerid,0xADD8E6AA, string);
  19867. format(string, sizeof(string), "~w~$%d~n~TIP",grandmarand);
  19868. GameTextForPlayer(playerid,string,6000,3);
  19869. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at LVA Freight Depot");
  19870. GivePlayerMoney(playerid,grandmarand);
  19871. DisablePlayerCheckpoint(playerid);
  19872. playerCheckpoint[playerid] = 53;
  19873. SetPlayerCheckpoint(playerid,checkpoints[53][0],checkpoints[53][1],checkpoints[53][2],checkpoints[53][3]); // no 2
  19874. }
  19875. return 1;
  19876. }
  19877. if(getCheckpointType(playerid) == 53 && getCheckpointType(playerid) == 53)
  19878. {
  19879. if(OnDelMission[playerid] == 1337)
  19880. {
  19881. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19882. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from LVA Freight Depot");
  19883. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at LVPD Air Support Unit");
  19884. DisablePlayerCheckpoint(playerid);
  19885. playerCheckpoint[playerid] = 54;
  19886. SetPlayerCheckpoint(playerid,checkpoints[54][0],checkpoints[54][1],checkpoints[54][2],checkpoints[54][3]); // no 2
  19887. }
  19888. return 1;
  19889. }
  19890. if(getCheckpointType(playerid) == 54 && getCheckpointType(playerid) == 54)
  19891. {
  19892. if(OnDelMission[playerid] == 1337)
  19893. {
  19894. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19895. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from LVPD Air Support Unit");
  19896. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at The Quarry");
  19897. DisablePlayerCheckpoint(playerid);
  19898. playerCheckpoint[playerid] = 55;
  19899. SetPlayerCheckpoint(playerid,checkpoints[55][0],checkpoints[55][1],checkpoints[55][2],checkpoints[55][3]); // no 2
  19900. }
  19901. return 1;
  19902. }
  19903. if(getCheckpointType(playerid) == 55 && getCheckpointType(playerid) == 55)
  19904. {
  19905. if(OnDelMission[playerid] == 1337)
  19906. {
  19907. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19908. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from The Quarry");
  19909. SendClientMessage(playerid,0xADD8E6AA,"Goto the next pickup at San Fierro Police Department");
  19910. DisablePlayerCheckpoint(playerid);
  19911. playerCheckpoint[playerid] = 56;
  19912. SetPlayerCheckpoint(playerid,checkpoints[56][0],checkpoints[56][1],checkpoints[56][2],checkpoints[56][3]); // no 2
  19913. }
  19914. return 1;
  19915. }
  19916. if(getCheckpointType(playerid) == 56 && getCheckpointType(playerid) == 56)
  19917. {
  19918. if(OnDelMission[playerid] == 1337)
  19919. {
  19920. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Pick Up_|");
  19921. SendClientMessage(playerid,0xADD8E6AA,"You have picked trash up from San Fierro Police Department");
  19922. SendClientMessage(playerid,0xADD8E6AA,"This was the last pickup. Go and dump the trash at the trash site");
  19923. SendClientMessage(playerid,0xADD8E6AA,"The city will pay you when you deliver the trash!");
  19924. DisablePlayerCheckpoint(playerid);
  19925. playerCheckpoint[playerid] = 57;
  19926. SetPlayerCheckpoint(playerid,checkpoints[57][0],checkpoints[57][1],checkpoints[57][2],checkpoints[57][3]); // no 2
  19927. }
  19928. return 1;
  19929. }
  19930. if(getCheckpointType(playerid) == 57 && getCheckpointType(playerid) == 57)
  19931. {
  19932. if(OnDelMission[playerid] == 1337)
  19933. {
  19934. new trashtime = (TrashDeliveryTime[playerid]);
  19935. new trashearn = (TrashDeliveryEarnings[playerid]);
  19936. new trashname[30];
  19937. GetPlayerName(playerid,trashname,30);
  19938. format(string, sizeof(string), "%s(%d) Has collected all the trash from the city and dropped it all off in San Fierro! Time Taken: %d Seconds",trashname,playerid,trashtime);
  19939. SendClientMessageToAll(0x00C7FFAA, string);
  19940. SendClientMessage(playerid, 0xA9A9A9AA, "|_Trash Delivery Mission Complete_|");
  19941. SendClientMessage(playerid,0xADD8E6AA,"You have collected all the trash. You have cleaned the city up");
  19942. format(string, sizeof(string), "Time Taken: %d Seconds = Earnings: $%d ",trashtime,trashearn);
  19943. SendClientMessage(playerid,0xADD8E6AA, string);
  19944. DisablePlayerCheckpoint(playerid);
  19945. playerCheckpoint[playerid] = 999;
  19946. OnDelMission[playerid] =0;
  19947. GivePlayerMoney(playerid,trashearn);
  19948. }
  19949. }
  19950.  
  19951.  
  19952. if(getCheckpointType(playerid) == 22 && getCheckpointType(playerid) == 22)
  19953. {
  19954. if(!IsPlayerInAnyVehicle(playerid) && RobbedCaligs[playerid] == 1337)
  19955. {
  19956. new crobrand = random(300000);
  19957. if(crobrand >=0 && crobrand <=20) {
  19958. SendClientMessage(playerid, 0xA9A9A9AA, "|_Vault Lockdown_|");
  19959. SendClientMessage(playerid,0x00C7FFAA,"Security have heard the explosion and remotely locked the vault cages. Robbery Failed!");
  19960. RobbedCaligs[playerid] =0;
  19961. return 1;
  19962. }
  19963. else
  19964. if(crobrand >=21 && crobrand <=300000) {
  19965. new plwl = GetPlayerWantedLevel(playerid);
  19966. SetPlayerWantedLevel(playerid, plwl +4 );
  19967. new caligsname[30];
  19968. GetPlayerName(playerid,caligsname, 30);
  19969. format(string, sizeof(string), "%s(%d) Has robbed $%d from the Caligulas Casino vault",caligsname,playerid,crobrand);
  19970. SendClientMessageToAll(0x00C7FFAA, string);
  19971. ircSay(EchoConnection, EchoChan,string);
  19972. format(string, sizeof(string), "%s(%d) Has robbed $%d from Caligulas casino",caligsname,playerid,crobrand);
  19973. printf("%s", string);
  19974. format(string, sizeof(string), "~w~ROBBERY ~b~COMPLETE~n~~w~YOU HAVE ROBBED~n~~r~ $%d~n~~w~FROM THE CASINO VAULT",crobrand);
  19975. GameTextForPlayer(playerid, string, 7000, 3);
  19976. new pcol = GetPlayerColor(playerid);
  19977. plwl = GetPlayerWantedLevel(playerid);
  19978. SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
  19979. format(string, sizeof(string), "(CASINO ROBBERY) Wanted Level %d",plwl);
  19980. SendClientMessage(playerid,pcol,string);
  19981. GivePlayerMoney(playerid,crobrand);
  19982. RobbedCasRecent[playerid] =1;
  19983. oscore = GetPlayerScore(playerid);
  19984. SetPlayerScore(playerid, oscore +1);
  19985. CaligsRobbed =1;
  19986. if(robberrank[playerid] >=20 && robberrank[playerid] <=29) {
  19987. SendClientMessage(playerid,COLOR_WHITE,"Your robbing skill level has been increased. Type /robskill for more info");
  19988. robberrank[playerid] +=1;
  19989. }
  19990. commitedcrimerecently[playerid] +=360;
  19991. SetTimer("CaligsRobbedRecent",300000,0);
  19992. RobbedCaligs[playerid] =0;
  19993. caligsbeingrobbed =0;
  19994. for(new i=0;i<MAX_PLAYERS;i++)
  19995. {
  19996. if(LawEnforcementRadio[i] == 1) {
  19997. new string1[256];
  19998. new string2[256];
  19999. new string3[256];
  20000. format(string1, sizeof(string1), "DISPATCH: (CASINO ROBBERY) The Caligula's Casino Vault has been robbed. Suspect: %s(%d)",caligsname,playerid);
  20001. format(string2, sizeof(string2), "ALL UNITS: Please respond to Caligula's Casino");
  20002. format(string3, sizeof(string3), "Type /radoff to turn your Law Enforcement radio off");
  20003. SendClientMessage(i, COLOR_ROYALBLUE, string1);
  20004. SendClientMessage(i, COLOR_ROYALBLUE, string2);
  20005. SendClientMessage(i, COLOR_DODGERBLUE, string3);
  20006. }
  20007. }
  20008. }
  20009. }
  20010. return 1;
  20011. }
  20012.  
  20013.  
  20014. if(getCheckpointType(playerid) == 44 && getCheckpointType(playerid) == 44)
  20015. {
  20016. if(!IsPlayerInAnyVehicle(playerid))
  20017. {
  20018. if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 4 || gTeam[playerid] == 5 || gTeam[playerid] == 6 || gTeam[playerid] == 7 || gTeam[playerid] == 8) {
  20019. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Bomb Shop_|");
  20020. SendClientMessage(playerid,0x00C7FFAA,"Wow.. I dont sell anything to your class/skill/job");
  20021. return 1;
  20022. }
  20023. if(HasC4[playerid] == 1) {
  20024. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Bomb Shop_|");
  20025. SendClientMessage(playerid,0x00C7FFAA,"You already have enough C4 to send yourself and two friends to the moon...");
  20026. return 1;
  20027. }
  20028. if(HasC4[playerid] == 0 && GetPlayerMoney(playerid) >= 2500) {
  20029. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Bomb Shop_|");
  20030. SendClientMessage(playerid,0x00C7FFAA,"You have purchase 3 blocks of C4 - You have been charged $2500");
  20031. SendClientMessage(playerid,0x00C7FFAA,"Goto Caligulas Casino and type /prepc4 in the checkpoint");
  20032. GivePlayerMoney(playerid,-2500);
  20033. HasC4[playerid] =1;
  20034. }
  20035. else {
  20036. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Bomb Shop_|");
  20037. SendClientMessage(playerid,0x00C7FFAA,"You aint got enough cash. Come back when you have $2500");
  20038. }
  20039. }
  20040. return 1;
  20041. }
  20042.  
  20043.  
  20044.  
  20045. if(getCheckpointType(playerid) == 43 && getCheckpointType(playerid) == 43)
  20046. {
  20047. if(gTeam[playerid] == 1 || gTeam[playerid] == 2) {
  20048. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20049. SendClientMessage(playerid,0x00C7FFAA,"This is where wanted suspects can hand themselves into the police");
  20050. return 1;
  20051. }
  20052. if(GetPlayerWantedLevel(playerid) == 0) {
  20053. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20054. SendClientMessage(playerid,0x00C7FFAA,"This is where wanted suspects can hand themselves into the police - You are innocent");
  20055. }
  20056. new wantedsuspect[25];
  20057. GetPlayerName(playerid,wantedsuspect,25);
  20058. if(GetPlayerWantedLevel(playerid) == 1) {
  20059. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20060. SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $500. Your wanted level has been reduced");
  20061. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$500");
  20062. GameTextForPlayer(playerid, string,5000,3);
  20063. SetPlayerWantedLevel(playerid,0);
  20064. GivePlayerMoney(playerid, -500);
  20065. printf("%s(%d) has been fined $500 at lvpd hq",wantedsuspect,playerid);
  20066. return 1;
  20067. }
  20068. if(GetPlayerWantedLevel(playerid) == 2) {
  20069. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20070. SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $1000. Your wanted level has been reduced");
  20071. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$1000");
  20072. GameTextForPlayer(playerid, string,5000,3);
  20073. SetPlayerWantedLevel(playerid,0);
  20074. GivePlayerMoney(playerid, -1000);
  20075. printf("%s(%d) has been fined $1000 at lvpd hq",wantedsuspect,playerid);
  20076. return 1;
  20077. }
  20078. if(GetPlayerWantedLevel(playerid) == 3) {
  20079. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20080. SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $2000. Your wanted level has been reduced");
  20081. format(string, sizeof(string), "~w~You have been fined~n~ ~b~$2000");
  20082. GameTextForPlayer(playerid, string,5000,3);
  20083. SetPlayerWantedLevel(playerid,0);
  20084. GivePlayerMoney(playerid, -2000);
  20085. printf("%s(%d) has been fined $2000 at lvpd hq",wantedsuspect,playerid);
  20086. return 1;
  20087. }
  20088. if(EscapedConvict[playerid] == 1 && GetPlayerWantedLevel(playerid) >=10) {
  20089. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20090. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been sent to Alcatraz");
  20091. SetPlayerInterior(playerid,10);
  20092. new rnd;
  20093. rnd = random(sizeof (AlcatrazArrestedSpawn));
  20094. SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  20095. SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
  20096. format(string, sizeof(string), "Escaped Convict %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20097. SendClientMessageToAll(0x00C7FFAA, string);
  20098. ircSay(EchoConnection, EchoChan,string);
  20099. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  20100. SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  20101. format(string, sizeof(string), "Escaped Convict %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20102. printf("%s", string);
  20103. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20104. Jailed[playerid] =1;
  20105. InAlcatraz[playerid] =1;
  20106. StoleCopCarRecent[playerid] =0;
  20107. triedtoescaperecent[playerid] =1;
  20108. ResetPlayerWeapons(playerid);
  20109. JailTime[playerid] =300;
  20110. JailTimeServed[playerid] =0;
  20111. EscapedConvict[playerid] =0;
  20112. SetPlayerWantedLevel(playerid,0);
  20113. oscore = GetPlayerScore(playerid);
  20114. SetPlayerScore(playerid, oscore +1);
  20115. return 1;
  20116. }
  20117. if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5) {
  20118. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20119. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20120. //SetPlayerInterior(playerid,3);
  20121. new rnd;
  20122. rnd = random(sizeof (ArrestedSpawn));
  20123. SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  20124. SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
  20125. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20126. SendClientMessageToAll(0x00C7FFAA, string);
  20127. ircSay(EchoConnection, EchoChan,string);
  20128. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  20129. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20130. printf("%s", string);
  20131. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20132. Jailed[playerid] =1;
  20133. StoleCopCarRecent[playerid] =0;
  20134. cannotescapejail[playerid] =1;
  20135. ResetPlayerWeapons(playerid);
  20136. JailTime[playerid] =60;
  20137. JailTimeServed[playerid] =0;
  20138. SetPlayerWantedLevel(playerid,0);
  20139. oscore = GetPlayerScore(playerid);
  20140. SetPlayerScore(playerid, oscore +1);
  20141. return 1;
  20142. }
  20143. if(GetPlayerWantedLevel(playerid) >=6 && GetPlayerWantedLevel(playerid) <=9) {
  20144. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20145. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20146. //SetPlayerInterior(giveplayerid,3);
  20147. new rnd;
  20148. rnd = random(sizeof (ArrestedSpawn));
  20149. SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  20150. SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
  20151. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20152. SendClientMessageToAll(0x00C7FFAA, string);
  20153. ircSay(EchoConnection, EchoChan,string);
  20154. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  20155. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20156. printf("%s", string);
  20157. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20158. Jailed[playerid] =1;
  20159. StoleCopCarRecent[playerid] =0;
  20160. cannotescapejail[playerid] =1;
  20161. triedtoescaperecent[playerid] =1;
  20162. ResetPlayerWeapons(playerid);
  20163. JailTime[playerid] =160;
  20164. JailTimeServed[playerid] =0;
  20165. SetPlayerWantedLevel(playerid,0);
  20166. oscore = GetPlayerScore(playerid);
  20167. SetPlayerScore(playerid, oscore +1);
  20168. return 1;
  20169. }
  20170. if(GetPlayerWantedLevel(playerid) == 9) {
  20171. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20172. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20173. //SetPlayerInterior(giveplayerid,3);
  20174. new rnd;
  20175. rnd = random(sizeof (ArrestedSpawn));
  20176. SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
  20177. SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
  20178. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
  20179. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20180. SendClientMessageToAll(0x00C7FFAA, string);
  20181. ircSay(EchoConnection, EchoChan,string);
  20182. format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
  20183. printf("%s", string);
  20184. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20185. Jailed[playerid] =1;
  20186. StoleCopCarRecent[playerid] =0;
  20187. cannotescapejail[playerid] =1;
  20188. triedtoescaperecent[playerid] =1;
  20189. ResetPlayerWeapons(playerid);
  20190. JailTime[playerid] =200;
  20191. JailTimeServed[playerid] =0;
  20192. SetPlayerWantedLevel(playerid,0);
  20193. oscore = GetPlayerScore(playerid);
  20194. SetPlayerScore(playerid, oscore +1);
  20195. return 1;
  20196. }
  20197. if(GetPlayerWantedLevel(playerid) >=10 && GetPlayerWantedLevel(playerid) <=14) {
  20198. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20199. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20200. SetPlayerInterior(playerid,10);
  20201. new rnd;
  20202. rnd = random(sizeof (AlcatrazArrestedSpawn));
  20203. SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  20204. SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
  20205. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  20206. SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  20207. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20208. SendClientMessageToAll(0x00C7FFAA, string);
  20209. ircSay(EchoConnection, EchoChan,string);
  20210. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20211. printf("%s", string);
  20212. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20213. Jailed[playerid] =1;
  20214. InAlcatraz[playerid] =1;
  20215. StoleCopCarRecent[playerid] =0;
  20216. cannotescapejail[playerid] =1;
  20217. triedtoescaperecent[playerid] =1;
  20218. ResetPlayerWeapons(playerid);
  20219. JailTime[playerid] =280;
  20220. JailTimeServed[playerid] =0;
  20221. SetPlayerWantedLevel(playerid,0);
  20222. oscore = GetPlayerScore(playerid);
  20223. SetPlayerScore(playerid, oscore +1);
  20224. return 1;
  20225. }
  20226. if(GetPlayerWantedLevel(playerid) >=15 && GetPlayerWantedLevel(playerid) <=24) {
  20227. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20228. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20229. SetPlayerInterior(playerid,10);
  20230. new rnd;
  20231. rnd = random(sizeof (AlcatrazArrestedSpawn));
  20232. SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  20233. SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
  20234. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  20235. SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  20236. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20237. SendClientMessageToAll(0x00C7FFAA, string);
  20238. ircSay(EchoConnection, EchoChan,string);
  20239. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20240. printf("%s", string);
  20241. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20242. Jailed[playerid] =1;
  20243. InAlcatraz[playerid] =1;
  20244. StoleCopCarRecent[playerid] =0;
  20245. cannotescapejail[playerid] =1;
  20246. triedtoescaperecent[playerid] =1;
  20247. ResetPlayerWeapons(playerid);
  20248. JailTime[playerid] =320;
  20249. JailTimeServed[playerid] =0;
  20250. SetPlayerWantedLevel(playerid,0);
  20251. oscore = GetPlayerScore(playerid);
  20252. SetPlayerScore(playerid, oscore +1);
  20253. return 1;
  20254. }
  20255. if(GetPlayerWantedLevel(playerid) >=25) {
  20256. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
  20257. SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
  20258. SetPlayerInterior(playerid,10);
  20259. new rnd;
  20260. rnd = random(sizeof (AlcatrazArrestedSpawn));
  20261. SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
  20262. SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
  20263. SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
  20264. SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
  20265. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20266. SendClientMessageToAll(0x00C7FFAA, string);
  20267. ircSay(EchoConnection, EchoChan,string);
  20268. format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
  20269. printf("%s", string);
  20270. SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
  20271. Jailed[playerid] =1;
  20272. InAlcatraz[playerid] =1;
  20273. StoleCopCarRecent[playerid] =0;
  20274. cannotescapejail[playerid] =1;
  20275. triedtoescaperecent[playerid] =1;
  20276. ResetPlayerWeapons(playerid);
  20277. JailTime[playerid] =420;
  20278. JailTimeServed[playerid] =0;
  20279. SetPlayerWantedLevel(playerid,0);
  20280. oscore = GetPlayerScore(playerid);
  20281. SetPlayerScore(playerid, oscore +1);
  20282. }
  20283. return 1;
  20284. }
  20285.  
  20286.  
  20287.  
  20288.  
  20289.  
  20290.  
  20291.  
  20292.  
  20293.  
  20294. if(getCheckpointType(playerid) == 39 && getCheckpointType(playerid) == 39)
  20295. {
  20296. if(!IsPlayerInAnyVehicle(playerid))
  20297. {
  20298. if(Jailed[playerid] == 0) {
  20299. SetPlayerCameraPos(playerid,195.2251,172.8935,1005.6265);
  20300.  
  20301. SetPlayerCameraLookAt(playerid,194.0067,176.0527,1003.0234);
  20302. SendClientMessage(playerid, 0xA9A9A9AA, "|_LVPD Security Camera_|");
  20303. SendClientMessage(playerid,0xA9A9A9AA,"You are now looking through the security camera in Cell 3");
  20304. }
  20305. }
  20306. }
  20307.  
  20308. if(getCheckpointType(playerid) == 40 && getCheckpointType(playerid) == 40)
  20309. {
  20310. if(!IsPlayerInAnyVehicle(playerid))
  20311. {
  20312. if(Jailed[playerid] == 0) {
  20313. SetPlayerCameraPos(playerid,199.4642,172.9892,1005.6265);
  20314.  
  20315. SetPlayerCameraLookAt(playerid,198.1925,176.4489,1003.0234);
  20316. SendClientMessage(playerid, 0xA9A9A9AA, "|_LVPD Security Camera_|");
  20317. SendClientMessage(playerid,0xA9A9A9AA,"You are now looking through the security camera in Cell 2");
  20318. }
  20319. }
  20320. }
  20321.  
  20322. if(getCheckpointType(playerid) == 41 && getCheckpointType(playerid) == 41)
  20323. {
  20324. if(!IsPlayerInAnyVehicle(playerid))
  20325. {
  20326. if(Jailed[playerid] == 0) {
  20327. SetPlayerCameraPos(playerid,196.6696,163.5814,1005.6265);
  20328.  
  20329. SetPlayerCameraLookAt(playerid,198.0134,160.9352,1003.0300);
  20330. SendClientMessage(playerid, 0xA9A9A9AA, "|_LVPD Security Camera_|");
  20331. SendClientMessage(playerid,0xA9A9A9AA,"You are now looking through the security camera in Cell 1");
  20332. }
  20333. }
  20334. }
  20335.  
  20336.  
  20337.  
  20338.  
  20339. if(getCheckpointType(playerid) == 31 && getCheckpointType(playerid) == 31)
  20340. {
  20341. if(!IsPlayerInAnyVehicle(playerid))
  20342. {
  20343. if(gametime >=8 && gametime <=20)
  20344. {
  20345.  
  20346. SetPlayerPos(playerid,2310.1270,-15.4618,26.7496);
  20347. SetPlayerFacingAngle(playerid,272.8260);
  20348. SetCameraBehindPlayer(playerid);
  20349. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas City Bank_|");
  20350. SendClientMessage(playerid, 0x00C7FFAA, "Welcome LV City Bank - Enter the main checkpoint to make transactions");
  20351. InBank[playerid] =1;
  20352. }
  20353. else{
  20354. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas City Bank_|");
  20355. SendClientMessage(playerid, 0x00C7FFAA, "The bank is currently closed. Come back between 8:00 and 21:00");
  20356. SendClientMessage(playerid, 0x00C7FFAA, "You can use 24h ATM machines to withdraw cash. Type /atmloc for locations");
  20357. }
  20358. }
  20359. return 1;
  20360. }
  20361.  
  20362. if(getCheckpointType(playerid) == 35 && getCheckpointType(playerid) == 35)
  20363. {
  20364. if(!IsPlayerInAnyVehicle(playerid))
  20365. {
  20366. if(gTeam[playerid] <= 2) {
  20367. SendClientMessage(playerid, 0xA9A9A9AA, "|_Alcatraz Island_|");
  20368. SendClientMessage(playerid, 0x00C7FFAA, "You have entered Alcatraz building. Prisoners in Alcatraz cannot be released early");
  20369. SetPlayerInterior(playerid,10);
  20370. SetPlayerPos(playerid,246.2731,112.8218,1003.2188);
  20371. SetPlayerFacingAngle(playerid,358.8193);
  20372. SetCameraBehindPlayer(playerid);
  20373. return 1;
  20374. }
  20375. if(gTeam[playerid] >= 2 && VisitReq[playerid] == 0) {
  20376. SendClientMessage(playerid, 0xA9A9A9AA, "|_Alcatraz Island_|");
  20377. SendClientMessage(playerid, 0x00C7FFAA, "Civilians can only enter the Alcatraz building with a valid visiting pass");
  20378. return 1;
  20379. }
  20380. if(gTeam[playerid] >= 2 && VisitReq[playerid] == 1) {
  20381. SendClientMessage(playerid, 0xA9A9A9AA, "|_Alcatraz Island_|");
  20382. SendClientMessage(playerid, 0x00C7FFAA, "You have a valid visiting pass. You have entered Alcatraz building");
  20383. SetPlayerInterior(playerid,10);
  20384. SetPlayerPos(playerid,246.2731,112.8218,1003.2188);
  20385. SetPlayerFacingAngle(playerid,358.8193);
  20386. SetCameraBehindPlayer(playerid);
  20387. VisitReq[playerid] =0;
  20388. }
  20389. }
  20390. return 1;
  20391. }
  20392.  
  20393. if(getCheckpointType(playerid) == 36 && getCheckpointType(playerid) == 36)
  20394. {
  20395. if(!IsPlayerInAnyVehicle(playerid))
  20396. {
  20397. SendClientMessage(playerid, 0xA9A9A9AA, "|_Alcatraz Island_|");
  20398. SendClientMessage(playerid, 0x00C7FFAA, "You have left the Alcatraz building");
  20399. SetPlayerInterior(playerid,0);
  20400. SetPlayerPos(playerid,3792.1602,471.8931,36.4192);
  20401. SetPlayerFacingAngle(playerid,89.9220);
  20402. SetCameraBehindPlayer(playerid);
  20403. }
  20404. return 1;
  20405. }
  20406.  
  20407.  
  20408. if(getCheckpointType(playerid) == 79 && getCheckpointType(playerid) == 79)
  20409. {
  20410. if(!IsPlayerInAnyVehicle(playerid))
  20411. {
  20412. SendClientMessage(playerid, 0xA9A9A9AA, "|_Casino_|");
  20413. SendClientMessage(playerid, 0x00C7FFAA, "Welcome to Casino");
  20414. SetPlayerVirtualWorld(playerid,1);
  20415. SetPlayerInterior(playerid,12);
  20416. SetPlayerPos(playerid,1133.3054,-5.9871,1000.6797);
  20417. SetPlayerFacingAngle(playerid,5.0969);
  20418. SetCameraBehindPlayer(playerid);
  20419. }
  20420. return 1;
  20421. }
  20422.  
  20423.  
  20424. if(getCheckpointType(playerid) == 80 && getCheckpointType(playerid) == 80)
  20425. {
  20426. if(GetPlayerVirtualWorld(playerid) == 0) {
  20427. SetPlayerInterior(playerid,0);
  20428. SetPlayerPos(playerid,1658.1958,2253.1714,11.0625);
  20429. SetPlayerFacingAngle(playerid,358.7586);
  20430. SetCameraBehindPlayer(playerid);
  20431. }
  20432. else
  20433. if(GetPlayerVirtualWorld(playerid) == 1) {
  20434. SetPlayerVirtualWorld(playerid,0);
  20435. SetPlayerInterior(playerid,0);
  20436. SetPlayerPos(playerid,2079.1787,1334.1761,10.8203);
  20437. SetPlayerFacingAngle(playerid,92.1118);
  20438. SetCameraBehindPlayer(playerid);
  20439. }
  20440. return 1;
  20441. }
  20442.  
  20443. if(getCheckpointType(playerid) == 38 && getCheckpointType(playerid) == 38)
  20444. {
  20445. if(!IsPlayerInAnyVehicle(playerid))
  20446. {
  20447. SendClientMessage(playerid, 0xA9A9A9AA, "|_BlackField Stadium_|");
  20448. SendClientMessage(playerid, 0x00C7FFAA, "You have left the Blackfield stadium");
  20449. SetPlayerInterior(playerid,0);
  20450. SetPlayerPos(playerid,1085.6786,1603.7218,12.5469);
  20451. SetPlayerFacingAngle(playerid,5.5373);
  20452. SetCameraBehindPlayer(playerid);
  20453. InDerby[playerid] =0;
  20454. }
  20455. return 1;
  20456. }
  20457.  
  20458. if(getCheckpointType(playerid) == 46 && getCheckpointType(playerid) == 46)
  20459. {
  20460. if(!IsPlayerInAnyVehicle(playerid))
  20461. {
  20462. SendClientMessage(playerid, 0xA9A9A9AA, "|_Welcome to 24/7 Stores_|");
  20463. SendClientMessage(playerid, 0x00C7FFAA, "Type /buy 1-8 to purchase items from the store");
  20464. SendClientMessage(playerid, 0x00C7FFAA, "1. Chainsaw ($1500) - 2. Flowers ($5)");
  20465. SendClientMessage(playerid, 0x00C7FFAA, "3. Baseball Bat ($100) - 4. Beer ($20)");
  20466. SendClientMessage(playerid, 0x00C7FFAA, "5. Wallet ($1000) - 6. Parachute ($500)");
  20467. SendClientMessage(playerid, 0x00C7FFAA, "7. Rope ($4000) - 8. Rusty Scissors ($1000)");
  20468. SendClientMessage(playerid, COLOR_GREY, "Type /robstore to rob this store");
  20469.  
  20470. }
  20471. return 1;
  20472. }
  20473.  
  20474. if(getCheckpointType(playerid) == 37 && getCheckpointType(playerid) == 37)
  20475. {
  20476. if(!IsPlayerInAnyVehicle(playerid))
  20477. {
  20478. if(DerbyOpen == 1) {
  20479. SetPlayerInterior(playerid,15);
  20480. SetPlayerPos(playerid,-1423.5120,937.8108,1036.5293);
  20481. SetPlayerFacingAngle(playerid,0.2352);
  20482. SetCameraBehindPlayer(playerid);
  20483. SendClientMessage(playerid, 0xA9A9A9AA, "|_BlackField Stadium_|");
  20484. SendClientMessage(playerid, 0x00C7FFAA, "Welcome to the Destruction Derby!! The last player to survive gets $10000");
  20485. SendClientMessage(playerid, 0x00C7FFAA, "Get in a Banger car and get to a starting position");
  20486. SendClientMessage(playerid, 0x00C7FFAA, "Do not hit others cars untill the Derby starts (Admin will say when)");
  20487. InDerby[playerid] =1;
  20488. }
  20489. else
  20490. if(DerbyOpen == 0) {
  20491. SendClientMessage(playerid, 0xA9A9A9AA, "|_BlackField Stadium_|");
  20492. SendClientMessage(playerid, 0x00C7FFAA, "The stadium is currently closed. Admin must open it before you can enter");
  20493. }
  20494. }
  20495. return 1;
  20496. }
  20497.  
  20498.  
  20499.  
  20500. if(getCheckpointType(playerid) == 32 && getCheckpointType(playerid) == 32)
  20501. {
  20502. if(!IsPlayerInAnyVehicle(playerid))
  20503. {
  20504. SetPlayerPos(playerid,2361.9761,1539.9305,10.8203);
  20505. SetPlayerFacingAngle(playerid,181.8405);
  20506. SetCameraBehindPlayer(playerid);
  20507. InBank[playerid] =0;
  20508. }
  20509. return 1;
  20510. }
  20511.  
  20512. if(getCheckpointType(playerid) == 33 && getCheckpointType(playerid) == 33)
  20513. {
  20514. if(!IsPlayerInAnyVehicle(playerid))
  20515. {
  20516. if(gametime >=8 && gametime <=20)
  20517. {
  20518. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas City Bank_|");
  20519. SendClientMessage(playerid, 0x808080AA, "Use the following commands to make financial transactions");
  20520. SendClientMessage(playerid, 0x808080AA, "/bankstate or /deposit (amount) or /withdraw (amount)");
  20521. SendClientMessage(playerid, 0x808080AA, "Type /robbank to attempt to rob the bank");
  20522. SendClientMessage(playerid, 0x808080AA, "Type /buyinsure to cover your bank account against theft");
  20523. }
  20524. else{
  20525. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas City Bank_|");
  20526. SendClientMessage(playerid, 0x00C7FFAA, "The bank has closed while you were inside. Come back between 8:00 and 2100");
  20527. SetPlayerPos(playerid,2361.9761,1539.9305,10.8203);
  20528. SetPlayerFacingAngle(playerid,181.8405);
  20529. SetCameraBehindPlayer(playerid);
  20530. InBank[playerid] =0;
  20531. }
  20532. }
  20533. return 1;
  20534. }
  20535.  
  20536. if(getCheckpointType(playerid) == 34 && getCheckpointType(playerid) == 34)
  20537. {
  20538. if(!IsPlayerInAnyVehicle(playerid))
  20539. {
  20540. SendClientMessage(playerid, 0xA9A9A9AA, "|_LVPD Weapons Refill_|");
  20541. SendClientMessage(playerid, 0x00C7FFAA,"LVPD Supply Officers and Army with weapons. Type /refill (1-4)");
  20542. SendClientMessage(playerid, 0x00C7FFAA,"1. Pistol (150 AMMO)");
  20543. SendClientMessage(playerid, 0x00C7FFAA,"2. Shotgun (50 AMMO)");
  20544. SendClientMessage(playerid, 0x00C7FFAA,"3. MP5 (500 AMMO)");
  20545. SendClientMessage(playerid, 0x00C7FFAA,"4. Parachute");
  20546. }
  20547. return 1;
  20548. }
  20549.  
  20550.  
  20551.  
  20552. if(getCheckpointType(playerid) >= 27 && getCheckpointType(playerid) <= 30)
  20553. {
  20554. if(!IsPlayerInAnyVehicle(playerid))
  20555. {
  20556. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas ATM Machine Network_|");
  20557. SendClientMessage(playerid, 0x808080AA, "You can only withdraw cash or check your balance at this ATM machine");
  20558. SendClientMessage(playerid, 0x808080AA, "Use /withdraw (amount) to take funds out of your bank account");
  20559. SendClientMessage(playerid, 0x808080AA, "Use /bankstate to check the balance of your bank account");
  20560. SendClientMessage(playerid, 0x00C7FFAA, "Use /robatm to attempt to rob the atm");
  20561. }
  20562. return 1;
  20563. }
  20564.  
  20565.  
  20566.  
  20567.  
  20568.  
  20569.  
  20570.  
  20571.  
  20572.  
  20573.  
  20574.  
  20575.  
  20576.  
  20577. if(getCheckpointType(playerid) == 26 && getCheckpointType(playerid) == 26)
  20578. {
  20579. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  20580. {
  20581. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CASSEC) {
  20582. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Drug House_|");
  20583. SendClientMessage(playerid, 0xE9967AAA, "Go away... pig! ");
  20584. return 1;
  20585. }
  20586. DrugHouseOwner[playerid]=dUserINT(PlayerName(playerid)).("DrugHouseOwner");
  20587. if(DrugHouseOwner[playerid] == 1337)
  20588. {
  20589. SendClientMessage(playerid, 0xA9A9A9AA, "|_Type /drugownercmds for a list of commands_|");
  20590. return 1;
  20591. }
  20592. SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Drug House_|");
  20593. SendClientMessage(playerid, 0xE9967AAA, "So.. to buy some shit... you must type /buydrugs 1-5 (Example: /buydrugs 2)");
  20594. SendClientMessage(playerid, 0xE9967AAA, "House prices are not cheap. Find a dealer on the street for cheaper drugs");
  20595. SendClientMessage(playerid, 0xE9967AAA, "1 - Buy 10 grams of drugs ($2000)");
  20596. SendClientMessage(playerid, 0xE9967AAA, "2 - Buy 100 grams of drugs ($20000)");
  20597. SendClientMessage(playerid, 0xE9967AAA, "3 - Buy 500 grams of drugs ($100000)");
  20598. SendClientMessage(playerid, 0xE9967AAA, "4 - Buy 1000 grams of drugs ($150000) - Dealers Only");
  20599. SendClientMessage(playerid, 0xE9967AAA, "5 - Buy DrugBag ($1000) - Cops cant find your drugs if they search you");
  20600. }
  20601. return 1;
  20602. }
  20603.  
  20604. if(getCheckpointType(playerid) == 25 && getCheckpointType(playerid) == 25 && IsPlayerConnected(playerid))
  20605. {
  20606. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  20607. {
  20608. if(AbandonedCopCar[playerid] == 1) {
  20609. SendClientMessage(playerid, COLOR_RED, "There is nothing here");
  20610. return 1;
  20611. }
  20612. new rand = random(10000);
  20613. if(rand >= 0 && rand <= 1999) {
  20614. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have found $10000 of Police siezed drug money");
  20615. GameTextForPlayer(playerid,"~w~Found $10000",4000,3);
  20616. GivePlayerMoney(playerid,10000);
  20617. PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  20618. AbandonedCopCar[playerid] =1;
  20619. }
  20620. if(rand >= 2000 && rand <= 3999) {
  20621. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have found a Law Enforcement radio. Use /radon and /radoff");
  20622. SendClientMessage(playerid, COLOR_ROYALBLUE, "You can attempt to jam the signal to commit crimes without the Police being alerted");
  20623. SendClientMessage(playerid, COLOR_ROYALBLUE, "Use /jam to attempt to jam the Law Enforcement radio systems");
  20624. GameTextForPlayer(playerid,"~w~Found~n~~w~LAW ENFORCEMENT RADIO",4000,3);
  20625. HasLawEnforcementRadio[playerid] =1;
  20626. LawEnforcementRadio[playerid] =1;
  20627. PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  20628. AbandonedCopCar[playerid] =1;
  20629. }
  20630. if(rand >= 4000 && rand <= 5999) {
  20631. new pname[24];
  20632.  
  20633. GetPlayerName(playerid,pname,24);
  20634. format(string, sizeof(string), "%s(%d) Has been infected with Chlamydia",pname,playerid);
  20635. SendClientMessageToAll(0x00C7FFAA, string);
  20636. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have found a used bodybag. You have been infected with Chlamydia");
  20637. Chlamydia[playerid] =1;
  20638. PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  20639. AbandonedCopCar[playerid] =1;
  20640. }
  20641. if(rand >= 6000 && rand <= 7999) {
  20642. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have found a MP5 Weapon with 500 ammo");
  20643. GameTextForPlayer(playerid,"~w~Found MP5 Weapon",4000,3);
  20644. GivePlayerWeapon(playerid,29,500);
  20645. PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  20646. AbandonedCopCar[playerid] =1;
  20647. }
  20648. if(rand >= 8000 && rand <= 10000) {
  20649. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have found a set of handcuffs. Locked, with no key. You threw them away");
  20650. GameTextForPlayer(playerid,"~b~Found Handcuffs",4000,3);
  20651. PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  20652. AbandonedCopCar[playerid] =1;
  20653. }
  20654. }
  20655. return 1;
  20656. }
  20657.  
  20658.  
  20659. if(getCheckpointType(playerid) == 24 && getCheckpointType(playerid) == 24)
  20660. {
  20661. if(IsPlayerInAnyVehicle(playerid))
  20662. {
  20663. SendClientMessage(playerid,COLOR_WHITE,"CHECKPOINT HELP: You are in a vehicle. Get out the vehicle and re-enter chekpoint");
  20664. }
  20665. else
  20666. {
  20667. SendClientMessage(playerid, COLOR_FORESTGREEN, "*** Welcome to Las Venturas Hospital ***");
  20668. SendClientMessage(playerid, COLOR_FORESTGREEN, "/buycure - Any infections that you have will be cured ($4500)");
  20669. SendClientMessage(playerid, COLOR_FORESTGREEN, "/buyheal - Your health will be restored ($1000)");
  20670. SendClientMessage(playerid, COLOR_FORESTGREEN, "/buyhc - Your health will be restored and your infections cured ($5000)");
  20671. }
  20672. return 1;
  20673. }
  20674.  
  20675. if(getCheckpointType(playerid) == 21 || getCheckpointType(playerid) == 23)
  20676. {
  20677. GameTextForPlayer(playerid, "~w~type /robcasino~n~to rob the casino", 5000, 3);
  20678. return 1;
  20679. }
  20680.  
  20681. if(getCheckpointType(playerid) == 17 && getCheckpointType(playerid) == 17)
  20682. {
  20683. if(IsPlayerInAnyVehicle(playerid))
  20684. {
  20685. SendClientMessage(playerid,COLOR_WHITE,"CHECKPOINT HELP: You are in a vehicle. Please exit the vehicle and re-enter the checkpoint!");
  20686. }
  20687. else
  20688. {
  20689. SendClientMessage(playerid,0xE9967AAA,"Welcome to Las Venturas airport. See the list below for todays flights.");
  20690. SendClientMessage(playerid,0xE9967AAA,"Use /flysf for all flights to San Fierro ($10500)");
  20691. SendClientMessage(playerid,0xE9967AAA,"Use /flyls for all flights to Los Santos ($10500)");
  20692. SendClientMessage(playerid,0xE9967AAA,"Use /dive to skydive over Central Las Venturas. Free parachute! ($15000)");
  20693. SendClientMessage(playerid,0xE9967AAA,"Use /buyplane to buy a private plane");
  20694. SendClientMessage(playerid,0xE9967AAA,"Use /robairport toattempt to steal money for the Air Port");
  20695. }
  20696. return 1;
  20697. }
  20698.  
  20699. if(getCheckpointType(playerid) == 18 && getCheckpointType(playerid) == 18) {
  20700. if(!IsPlayerInAnyVehicle(playerid)) {
  20701. new pname[24];
  20702. GetPlayerName(playerid,pname, 24);
  20703. dUserSetINT(PlayerName(playerid)).("RegularPlayer",RegularPlayer[playerid]);
  20704. if(RegularPlayer[playerid] == 0) {
  20705. SendClientMessage(playerid, COLOR_ERROR, "You are not a regular player,if you think you should be get in contact with an admin.");
  20706. return 1;
  20707. }
  20708. if(RegularPlayer[playerid] == 1337) {
  20709. SetPlayerInterior(playerid,3);
  20710. SetPlayerFacingAngle(playerid,89.0523);
  20711. SetPlayerPos(playerid,-2639.7832,1406.4753,906.4609);
  20712. SetCameraBehindPlayer(playerid);
  20713. SendClientMessage(playerid, 0xA9A9A9AA, "|_Regular Players Lounge_|");
  20714. SendClientMessage(playerid,0x00C7FFAA,"Welcome To The RPL. You are a Regular Player!");
  20715. SendClientMessage(playerid,0x00C7FFAA,"There are some pickups and some cash etc laying around, help ya'self ");
  20716. format(string, sizeof(string), "%s(%d) Has entered the Regular Players Lounge! (Score: %d)",pname,playerid,GetPlayerScore(playerid));
  20717. ircSay(EchoConnection, EchoChan,string);
  20718. InAdminHQ[playerid] =1;
  20719. }
  20720. }
  20721. return 1;
  20722. }
  20723.  
  20724.  
  20725.  
  20726.  
  20727.  
  20728.  
  20729.  
  20730.  
  20731.  
  20732.  
  20733.  
  20734.  
  20735.  
  20736.  
  20737.  
  20738.  
  20739. if(getCheckpointType(playerid) == 19 && getCheckpointType(playerid) == 19)
  20740. {
  20741. if(!IsPlayerInAnyVehicle(playerid))
  20742. {
  20743. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  20744. SendClientMessage(playerid,0x00C7FFAA,"Type /buycar (1-13) to buy yourself a nice new car! Cars are locked to your player ID");
  20745. SendClientMessage(playerid,0x5F9EA0AA,"1. Sultan ($40000)--- 2. Elegy ($60000) ");
  20746. SendClientMessage(playerid,0x5F9EA0AA,"3. Jester ($80000)--- 4. Cheetah ($100000)");
  20747. SendClientMessage(playerid,0x5F9EA0AA,"5. Turismo ($120000)- 6. Infernus ($140000)");
  20748. SendClientMessage(playerid,0x5F9EA0AA,"7. NRG500 ($140000)");
  20749. SendClientMessage(playerid,0x5F9EA0AA,"8. Uranus ($50000) -- 9.Phoneix ($60000)");
  20750. SendClientMessage(playerid,0x5F9EA0AA,"10.Blade ($35000) -- 11.Turismo GT ($250000)");
  20751. SendClientMessage(playerid,0x5F9EA0AA,"12.Freeway Bike ($75000)");
  20752. SendClientMessage(playerid,COLOR_RED,"/robab - Attempt to rob Autobahn");
  20753. }
  20754. else
  20755. {
  20756. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom_|");
  20757. SendClientMessage(playerid,0x00C7FFAA,"Welcome to AutoBahn.. Type /sell to sell us your vehicle..");
  20758. }
  20759. return 1;
  20760. }
  20761.  
  20762.  
  20763.  
  20764.  
  20765.  
  20766. if(getCheckpointType(playerid) == 20 && getCheckpointType(playerid) == 20) {
  20767. SetPlayerInterior(playerid,0);
  20768. SetPlayerFacingAngle(playerid,88.7433);
  20769. SetPlayerPos(playerid,2082.8745,1272.4794,10.8203);
  20770. SetCameraBehindPlayer(playerid);
  20771. InAdminHQ[playerid] =0;
  20772. SendClientMessage(playerid, 0xA9A9A9AA, "|_Regular Players Lounge_|");
  20773. SendClientMessage(playerid,0x00C7FFAA,"You have left the RPL - Have a nice day!");
  20774. return 1;
  20775. }
  20776.  
  20777. return 1;
  20778. }
  20779.  
  20780.  
  20781.  
  20782. public OnPlayerLeaveCheckpoint(playerid)
  20783. {
  20784. if(getCheckpointType(playerid) >= 39 && getCheckpointType(playerid) <= 41) {
  20785. SetCameraBehindPlayer(playerid);
  20786. }
  20787. if(getCheckpointType(playerid) == 46 && robbingstore[playerid] >=1) {
  20788. robbingstore[playerid] =0;
  20789. SendClientMessage(playerid,COLOR_ERROR,"Store robbery failed, you left the checkpoint");
  20790. }
  20791. if(getCheckpointType(playerid) == 89 && robbinghall[playerid] >=1) {
  20792. robbinghall[playerid] =0;
  20793. SendClientMessage(playerid,COLOR_ERROR,"LV City Hall robbery failed, you left the checkpoint");
  20794. }
  20795.  
  20796.  
  20797. return 1;
  20798. }
  20799.  
  20800. public OnPlayerEnterRaceCheckpoint(playerid)
  20801. {
  20802. return 1;
  20803. }
  20804.  
  20805. public OnPlayerLeaveRaceCheckpoint(playerid)
  20806. {
  20807. return 1;
  20808. }
  20809.  
  20810. public OnRconCommand(cmd[])
  20811. {
  20812. return 1;
  20813. }
  20814.  
  20815. public OnObjectMoved(objectid)
  20816. {
  20817. return 1;
  20818. }
  20819.  
  20820. public OnPlayerObjectMoved(playerid, objectid)
  20821. {
  20822. return 1;
  20823. }
  20824.  
  20825. public OnPlayerPickUpPickup(playerid, pickupid)
  20826. {
  20827. if(pickupid >= 6 && pickupid <= 12 && GetPlayerWantedLevel(playerid) >=1 && GetPlayerWantedLevel(playerid) <=9 && GotCopBriberecently[playerid] == 0) {
  20828. SendClientMessage(playerid, 0xA9A9A9AA, "|_LVPD Bribe Found - Wanted Level Reduced_|");
  20829. SendClientMessage(playerid,0x00C7FFAA,"Your wanted level has been reduced");
  20830. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1);
  20831. GotCopBriberecently[playerid] =250;
  20832. }
  20833.  
  20834. if(pickupid >= 13 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  20835. new pickuper[30];
  20836. new string[50];
  20837. new cashrnd = random(1000);
  20838. GetPlayerName(playerid,pickuper,30);
  20839. format(string, sizeof(string), "You have found another players dropped cash ($%d)",cashrnd);
  20840. SendClientMessage(playerid,0x00C7FFAA,string);
  20841. GivePlayerMoney(playerid,cashrnd);
  20842. DestroyPickup(pickupid);
  20843. printf("(CASH DROP PICKUP) - %s(%d) Has picked up $%d",pickuper,playerid,cashrnd);
  20844. format(string, sizeof(string), "**(CASH DROP PICKUP)** - %s(%d) Has picked up $%d",pickuper,playerid,cashrnd);
  20845. ircSay(EchoConnection, EchoChan,string);
  20846. }
  20847.  
  20848. if(pickupid == 0) {
  20849. SendClientMessage(playerid, 0xA9A9A9AA, "|_AutoBahn Car Showroom Information_|");
  20850. SendClientMessage(playerid,0x00C7FFAA,"This business is already owned by a player. It can be purchased from the current owner");
  20851. SendClientMessage(playerid,0x00C7FFAA,"Type /bussinessowners or /bo for ownership details. You can contact the owner if he/she is online");
  20852. }
  20853. else
  20854. if(pickupid == 1) {
  20855. SendClientMessage(playerid, 0xA9A9A9AA, "|_Fire Extinguisher_|");
  20856. SendClientMessage(playerid,0x00C7FFAA,"Use this to fight the resulting fire from the C4 exploding");
  20857. SendClientMessage(playerid,COLOR_ERROR,"DO NOT use this on other players. You will be kicked if you do");
  20858. GivePlayerWeapon(playerid,42,25);
  20859. }
  20860. else
  20861. if(pickupid == 2) {
  20862. SendClientMessage(playerid, 0xA9A9A9AA, "|_Fire Extinguisher_|");
  20863. SendClientMessage(playerid,0x00C7FFAA,"Use this to fight the resulting fire from the C4 exploding");
  20864. SendClientMessage(playerid,COLOR_ERROR,"DO NOT use this on other players. You will be kicked if you do");
  20865. GivePlayerWeapon(playerid,42,25);
  20866. }
  20867.  
  20868.  
  20869.  
  20870. return 1;
  20871. }
  20872.  
  20873. public OnPlayerSelectedMenuRow(playerid, row)
  20874. {
  20875.  
  20876. return 1;
  20877.  
  20878. }
  20879.  
  20880.  
  20881. public OnPlayerExitedMenu(playerid)
  20882. {
  20883. return 1;
  20884. }
  20885. /*strtok(const string[], &index)
  20886. {
  20887. new length = strlen(string);
  20888. while ((index < length) && (string[index] <= ' '))
  20889. {
  20890. index++;
  20891. }
  20892.  
  20893. new offset = index;
  20894. new result[20];
  20895. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  20896. {
  20897. result[index - offset] = string[index];
  20898. index++;
  20899. }
  20900. result[index - offset] = EOS;
  20901. return result;
  20902. }*/
  20903.  
  20904. /*
  20905. * /register password
  20906. *
  20907. */
  20908. dcmd_register(playerid,params[]) {
  20909.  
  20910. // The command shouldn't work if we already are authed
  20911. if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You are already logged into your account");
  20912.  
  20913. // The command shouldn't work if an account with this
  20914. // nick already exists
  20915. if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"This name is registered, please use /login password to log in.");
  20916.  
  20917. if (RegisterLoginDisabled == 1337) return SystemMsg(playerid,"New Account Registrations are Disabled. This is due to maintenance");
  20918. // Did he forgot the password?
  20919. if (strlen(params)==0) return SystemMsg(playerid,"Use: /register password to create a new account");
  20920.  
  20921. // We save the money to the accstate
  20922. if (udb_Create(PlayerName(playerid),params)) {
  20923.  
  20924. dUserSetINT(PlayerName(playerid)).("money",7500);
  20925. dUserSetINT(PlayerName(playerid)).("bankcash",5000);
  20926. dUserSetINT(PlayerName(playerid)).("loancash",0);
  20927. dUserSetINT(PlayerName(playerid)).("cashinsured",0);
  20928. dUserSetINT(PlayerName(playerid)).("autobahnowner",0);
  20929. dUserSetINT(PlayerName(playerid)).("regplayer",0);
  20930. dUserSetINT(PlayerName(playerid)).("carwinner",0);
  20931. dUserSetINT(PlayerName(playerid)).("score",0);
  20932. dUserSetINT(PlayerName(playerid)).("team",0);
  20933. dUserSetINT(PlayerName(playerid)).("skin",0);
  20934. dUserSetINT(PlayerName(playerid)).("jailtime",0);
  20935. dUserSetINT(PlayerName(playerid)).("wallet",0);
  20936. dUserSetINT(PlayerName(playerid)).("drugs",0);
  20937. dUserSetINT(PlayerName(playerid)).("drugbagy",0);
  20938. dUserSetINT(PlayerName(playerid)).("adminlevel",0);
  20939. dUserSetINT(PlayerName(playerid)).("teamkills",0);
  20940. dUserSetINT(PlayerName(playerid)).("innocentkills",0);
  20941. dUserSetINT(PlayerName(playerid)).("lowwantedkills",0);
  20942. dUserSetINT(PlayerName(playerid)).("coprank",0);
  20943. dUserSetINT(PlayerName(playerid)).("robrank",0);
  20944. dUserSetINT(PlayerName(playerid)).("rpabusewar",0);
  20945. dUserSetINT(PlayerName(playerid)).("deaths",0);
  20946. dUserSetINT(PlayerName(playerid)).("casinorob",0);
  20947. dUserSetINT(PlayerName(playerid)).("cashfromcasninorob",0);
  20948. dUserSetINT(PlayerName(playerid)).("atmsrobbed",0);
  20949. dUserSetINT(PlayerName(playerid)).("cashfromatmsrobbed",0);
  20950. dUserSetINT(PlayerName(playerid)).("crimsarrested",0);
  20951. dUserSetINT(PlayerName(playerid)).("timesarrested",0);
  20952. dUserSetINT(PlayerName(playerid)).("totaljailtime",0);
  20953. dUserSetINT(PlayerName(playerid)).("timesparoled",0);
  20954. dUserSetINT(PlayerName(playerid)).("finesissued",0);
  20955. dUserSetINT(PlayerName(playerid)).("finespaid",0);
  20956. dUserSetINT(PlayerName(playerid)).("nameban",0);
  20957. dUserSetINT(PlayerName(playerid)).("timesinfected",0);
  20958. dUserSetINT(PlayerName(playerid)).("timesraped",0);
  20959. dUserSetINT(PlayerName(playerid)).("timesrobbed",0);
  20960. dUserSetINT(PlayerName(playerid)).("timeshealed",0);
  20961. dUserSetINT(PlayerName(playerid)).("timescured",0);
  20962. dUserSetINT(PlayerName(playerid)).("hitsplaced",0);
  20963. dUserSetINT(PlayerName(playerid)).("hitsplacedonyou",0);
  20964. dUserSetINT(PlayerName(playerid)).("timessearched",0);
  20965. dUserSetINT(PlayerName(playerid)).("drugssiezedbycops",0);
  20966. dUserSetINT(PlayerName(playerid)).("canusearmy",0);
  20967. dUserSetINT(PlayerName(playerid)).("connectedminute",0);
  20968. dUserSetINT(PlayerName(playerid)).("connectedhour",0);
  20969. dUserSetINT(PlayerName(playerid)).("timesfuckedoff",0);
  20970. dUserSetINT(PlayerName(playerid)).("storesrobbed",0);
  20971. dUserSetINT(PlayerName(playerid)).("cashfromstorerob",0);
  20972. dUserSetINT(PlayerName(playerid)).("RegularPlayer",0);
  20973. dUserSetINT(PlayerName(playerid)).("AirPortOwner",0);
  20974. dUserSetINT(PlayerName(playerid)).("DrugHouseOwner",0);
  20975. dUserSetINT(PlayerName(playerid)).("HasDrugHouseKeys",0);
  20976.  
  20977.  
  20978.  
  20979. return SystemMsg(playerid,"Your Account has been created. Login with /login password now to log in (Before Spawn)");
  20980.  
  20981. }
  20982. return true;
  20983.  
  20984. }
  20985.  
  20986.  
  20987. /*
  20988. * /login password
  20989. *
  20990. */
  20991. dcmd_login(playerid,params[]) {
  20992.  
  20993.  
  20994. // The command shouldn't work if we already are authed
  20995. if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You are already logged in");
  20996.  
  20997. // The command shouldn't work if an account with this
  20998. // nick does not exists
  20999. if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Account does not exist, please use /register password");
  21000.  
  21001. // Did he forgot the password?
  21002. if (strlen(params)==0) return SystemMsg(playerid,"Usage: /login password");
  21003.  
  21004. if (udb_CheckLogin(PlayerName(playerid),params)) {
  21005. // Login was correct
  21006.  
  21007. // Following thing is the same like the missing SetPlayerCommand
  21008. GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid));
  21009. SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score")-GetPlayerScore(playerid));
  21010. robberrank[playerid] =dUserINT(PlayerName(playerid)).("robrank");
  21011. teamkiller[playerid] =dUserINT(PlayerName(playerid)).("teamkills");
  21012. innocentkiller[playerid] =dUserINT(PlayerName(playerid)).("innocentkills");
  21013. lowwantedkiller[playerid] =dUserINT(PlayerName(playerid)).("lowwantedkills");
  21014. BankRobInsurance[playerid] =dUserINT(PlayerName(playerid)).("cashinsured");
  21015. CanUseArmy[playerid] =dUserINT(PlayerName(playerid)).("canusearmy");
  21016. PlayerAdminLevel[playerid] =dUserINT(PlayerName(playerid)).("adminlevel");
  21017. RegularPlayer[playerid] =dUserINT(PlayerName(playerid)).("RegularPlayer");
  21018. HasDrugHouseKeys[playerid] =dUserINT(PlayerName(playerid)).("HasDrugHouseKeys");
  21019. PLAYERLIST_authed[playerid]=true;
  21020.  
  21021. return SystemMsg(playerid,"You are now logged in. Your stats will be auto-saved when you disconnect");
  21022. }
  21023. // Login was incorrect
  21024. return SystemMsg(playerid,"Login Attempt Failed");
  21025. }
  21026. //////////////For animations//////////
  21027. LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  21028. {
  21029. gPlayerUsingLoopingAnim[playerid] = 1;
  21030. ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  21031. }
  21032.  
  21033. //-------------------------------------------------
  21034.  
  21035. StopLoopingAnim(playerid)
  21036. {
  21037. gPlayerUsingLoopingAnim[playerid] = 0;
  21038. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  21039. }