Guest User

Jail bug please check it

a guest
Jul 29th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 340.95 KB | None | 0 0
  1. /*
  2. Los Santos Cops n Robbers by Karagon (1.2)
  3. This script was created from scratch. It includes:
  4. -Terrorism, Rapist, Theif, and Private Medics classes
  5. -Cops/Army/FBI with restrictions
  6. -Houses
  7. -Lots of Admin Commands
  8. *****************************************************
  9. Credits for this script goes to:
  10. -The dude who made ZCMD (Zeex)
  11. -The dude who made GVars (the one that actually works) (Incognito)
  12. -SSCANF <3 (Y_Less)
  13. -Who ever came up with the idea of PVars and the tutorial on SAMP wiki on how to use them <3
  14. -DUDB/Draco Blue <3
  15. -BMUK and LVRCR 1.7 for the Checkpoints
  16. -The Creator of xObjects (Who ever you are)
  17. -Me for the /getcp command (I love it, it's simple :))
  18.  
  19. -1.1.1 Changelog:
  20. -Credits changed to remove retards
  21. -SSCANF updated for 0.3e
  22. -Recompiled script and w/e with 0.3e stuff
  23. -Releasing script with 0.3e stuff (server stuff, etc)
  24.  
  25. -1.2 Changelog:
  26. -Removed IRC
  27. -Made some Script Optimizations (Removing LSPD1, LSPD2, etc, replacing it with Arrays)
  28. -Removed all the ol' GetPlayerName calls and so forth into PlayerInfo(playerid)
  29.  
  30. */
  31.  
  32. #include <a_samp>
  33. #include <zcmd>
  34. #include <sscanf2>
  35. #include <dudb>
  36. #include <gvar>
  37. #include <time>
  38. #include <dprops>
  39.  
  40. #pragma unused strtok
  41.  
  42. #undef MAX_PLAYERS
  43. #define MAX_PLAYERS (50)
  44.  
  45. #define VERSION "1.2"
  46.  
  47.  
  48. new PLAYERLIST_authed[MAX_PLAYERS];
  49. //Debug Addtions
  50.  
  51. //Colors
  52.  
  53.  
  54. #define COLOR_GREY 0xAFAFAFAA
  55. #define COLOR_GREEN 0x33AA33AA
  56. #define COLOR_RED 0xFF0000AA
  57. #define COLOR_YELLOW 0xFFFF00AA
  58. #define COLOR_WHITE 0xFFFFFFAA
  59. #define COLOR_VIOLETBLUE 0x8A2BE2AA
  60. #define COLOR_DEADCONNECT 0x808080AA
  61. #define COLOR_BLUE 0x0000FFAA
  62. #define COLOR_FORESTGREEN 0x228B22AA
  63. #define COLOR_DODGERBLUE 0x1E90FFAA
  64. #define COLOR_DARKOLIVEGREEN 0x556B2FAA
  65. #define COLOR_ORANGE 0xFFA500AA
  66. #define COLOR_PURPLE 0x800080AA
  67. #define COLOR_ROYALBLUE 0x4169FFAA
  68. #define COLOR_ERROR 0xD2691EAA
  69. #define COLOR_PINK 0xFF0080FF
  70. #define COLOR_SEXYGREEN 0x00FF00FF
  71. #define COLOR_LIGHTBLUE 0x33CCFFAA
  72. #define COLOR_LIME 0x10F441AA
  73. #define COLOR_CYAN 0x40FFFFFF
  74. #define COLOR_ORANGERED 0xFF4500AA
  75. #define COLOR_BLACK 0x000000
  76. #define COLOR_ADMIN 0x33CCFFAA // Same as the light blue
  77. #define COLOR_HOUSE 0x45FF00
  78.  
  79. //Teams
  80. #define Team_Cop 1
  81. #define Team_Medic 2
  82. #define Team_Army 3
  83. #define Team_FBI 4
  84. #define Team_Civi 5
  85. #define Team_Rape 6
  86. #define Team_Terror 7
  87. #define Team_Steal 8
  88. #define Team_PrvtMed 9
  89.  
  90. new gTeam[MAX_PLAYERS];
  91.  
  92. //Forwards
  93. forward SetPlayerTeamFromClass(playerid, classid);
  94. forward SetPlayerToTeamColor(playerid);
  95. forward IncreaseWantedLevel(playerid, value);
  96. forward WantedLevelColor(playerid);
  97. forward SendAdminMessage(msg[]);
  98. forward SendCopMessage(msg[]);
  99. forward SendMedicMessage(msg[]);
  100. forward getCheckpointType(playerID);
  101. forward checkpointUpdate(playerid);
  102. forward isPlayerInArea(playerID, Float:data[4]);
  103. forward RemoveVariables(playerid);
  104. forward RapeAgain(playerid);
  105. forward STDTimer(playerid);
  106. forward IncreaseScore(playerid, value);
  107. forward DecreaseScore(playerid, value);
  108. forward WorldTime();
  109. forward Float:GetDistanceBetweenPlayers(p1,p2);
  110. forward ResetFondle(playerid);
  111. forward SixNineStoreRobAgain(playerid);
  112. forward ResetGVars();
  113. forward Server();
  114. forward BanWeapon(playerid);
  115. forward SaveStats();
  116. forward ServerMessages();
  117. forward IsABike(carid);
  118. forward Weather(); // Weather :))))))
  119. forward SendEliteMessage(msg[]);
  120. forward GivePlayerTeamWeapons(playerid);
  121. forward Taxes();
  122. forward SetPlayerTeamFromNoTeam(playerid);
  123. forward CarBombs();
  124.  
  125. new ArmyVehicle[9];
  126.  
  127. new LSPD[21];
  128.  
  129. new AdminCar1;
  130. new AdminCar2;
  131. new House4Car1;
  132. new House4Car2;
  133. new House6Car1;
  134. new House7Car1;
  135.  
  136. /* Speedo */
  137.  
  138. new Text:FuelTDraw[MAX_PLAYERS];
  139. new Text:SpeedTDraw[MAX_PLAYERS];
  140. new Text:DamageTDraw[MAX_PLAYERS];
  141. new Text:SpeedoBox[MAX_PLAYERS];
  142. new Text:vSpeed[MAX_PLAYERS];
  143. new Text:vDamage[MAX_PLAYERS];
  144.  
  145.  
  146. //Dialogs
  147. #define DIALOG_REGISTER 1
  148. #define DIALOG_LOGIN 2
  149. #define DIALOG_SKILL 3
  150. #define DIALOG_STOREONE 4
  151. #define DIALOG_PACK 5
  152. #define DIALOG_TAKEOUT 6
  153. #define DIALOG_PUTIN 7
  154. #define DIALOG_BOMB 8
  155. #define DIALOG_ADMINCMDS 9
  156. #define DIALOG_SEXSHOP 10
  157. #define DIALOG_GASONE 11
  158. #define DIALOG_BUY 12
  159. #define DIALOG_HOSPITAL 13
  160. #define DIALOG_STOREROB 14
  161. #define DIALOG_DRUG 15
  162. #define DIALOG_PORT 16
  163.  
  164. //Time
  165. new gametime =12;
  166. new gameday =1;
  167. new gameweek =1;
  168.  
  169. //Spawns
  170.  
  171. new Float:SpawnPoints[19][4] =
  172. {
  173. {2041.4232,-1643.7749,13.5469},
  174. {2050.3225,-1901.5059,13.5469},
  175. {1757.8662,-1893.7533,13.5561},
  176. {1719.9373,-1709.5448,13.5000},
  177. {1392.6620,-1573.8087,14.2513},
  178. {1291.8687,-1485.8612,13.5469},
  179. {1309.8313,-1373.3232,13.6131},
  180. {1137.0586,-1378.6705,14.2813},
  181. {996.2015,-1303.5378,13.3899},
  182. {1186.2542,-1126.6255,24.0339},
  183. {1093.9709,-1078.3153,27.5821},
  184. {999.1002,-897.4241,42.2493},
  185. {1012.3271,-769.9664,108.2267},
  186. {309.8324,-1600.5162,33.1888},
  187. {407.6028,-1543.4286,32.2734},
  188. {433.1201,-1648.3763,25.5938},
  189. {693.7420,-1572.2668,14.2422},
  190. {824.8494,-1869.3324,12.8672},
  191. {856.4250,-1644.4429,13.5584}
  192. };
  193.  
  194. new Float:PrisonSpawn[4][4] =
  195. {
  196. {215.3656,110.1666,999.0156},
  197. {223.6761,110.4839,999.0156},
  198. {227.6406,110.6463,999.0156},
  199. {215.3656,110.1666,999.0156}
  200. };
  201.  
  202. // Object Streamer (xObjects)
  203. enum object_info//////xobjects
  204. {
  205. xmodelid,
  206. Float:ox,
  207. Float:oy,
  208. Float:oz,
  209. Float:orx,
  210. Float:ory,
  211. Float:orz,
  212. Float:viewdist
  213. }
  214. new Objects[][object_info] = {
  215. {3491,1820.85437012,-2420.75170898,20.52900505,0.00000000,0.00000000,0.00000000}, //object(vegass_hanger2) (1)
  216. {8253,1868.85485840,-2435.81982422,16.48247528,0.00000000,0.00000000,0.00000000}, //object(pltschlhnger01_lvs) (1)
  217.  
  218. //LSPD
  219. {6976,1561.19323730,-1636.00317383,10.00000000,0.00000000,0.00000000,0.00000000}, //object(shamheliprt04) (1) (STAIRS)
  220. {6976,1578.89599609,-1642.44042969,18.60000038,0.00000000,0.00000000,270.00000000} //object(shamheliprt04) (2) (STAIRS)
  221. };
  222. enum player_info
  223. {
  224. objid[sizeof(Objects)],
  225. bool:view[sizeof(Objects)]
  226. }
  227. new Player[MAX_PLAYERS][player_info];
  228.  
  229. bool:IsInReach(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2,Float:dist)
  230. {
  231. x = (x > x2) ? x - x2 : x2 - x;
  232. if(x > dist) return false;
  233. y = (y > y2) ? y - y2 : y2 - y;
  234. if(y > dist) return false;
  235. z = (z > z2) ? z - z2 : z2 - z;
  236. if(z > dist) return false;
  237. return true;
  238. }
  239.  
  240. forward Timer();////////////For xObjects
  241. //Checkpoints
  242. #define MAX_POINTS 52
  243. #define CP_StoreOne 0 //69 Cent store
  244. #define CP_PrisonExit 1
  245. #define CP_PrisonEnter 2
  246. #define CP_BankEnter 3
  247. #define CP_BankExit 4
  248. #define CP_Bank 5
  249. #define CP_BuyExp 6
  250. #define CP_AdminHouse 7
  251. #define CP_AdminHouseExit 8
  252. #define CP_SexShopEnter 9
  253. #define CP_SexShopExit 10
  254. #define CP_SexShopCounter 11
  255. #define CP_GasOneEnter 12
  256. #define CP_GasOneCounter 13
  257. #define CP_GasOneExit 14
  258. #define CP_DanceCounter 15
  259. #define CP_AmmoRob 16
  260. #define CP_BurgerShotRob 17
  261. #define CP_Hospital 18
  262. #define CP_Tatoo 19
  263. #define CP_HouseOneEnter 20
  264. #define CP_HouseOneExit 21
  265. #define CP_HouseTwoEnter 22
  266. #define CP_HouseTwoExit 23
  267. #define CP_HouseThreeEnter 24
  268. #define CP_HouseThreeExit 25
  269. #define CP_HouseFourEnter 26
  270. #define CP_HouseFourExit 27
  271. #define CP_HouseFiveEnter 28
  272. #define CP_HouseFiveExit 29
  273. #define CP_HouseSixEnter 30
  274. #define CP_HouseSixExit 31
  275. #define CP_HouseSevenEnter 32
  276. #define CP_HouseSevenExit 33
  277. #define CP_HouseEightEnter 34
  278. #define CP_HouseEightExit 35
  279. #define CP_HouseNineEnter 36
  280. #define CP_HouseNineExit 37
  281. #define CP_PigPenRob 38
  282. #define CP_LSHospital 39
  283. #define CP_LSAirportBlow 40
  284. #define CP_ParkBlow 41
  285. #define CP_RobStore1 42
  286. #define CP_VinewoodBlow 43
  287. #define CP_BankBlow 44
  288. #define CP_DrugHouse 45
  289. #define CP_Suburban 46
  290. #define CP_Binco 47
  291. #define CP_WellStacked 48
  292. #define CP_Airport 49
  293. #define CP_SFAirport 50
  294. #define CP_LVAirport 51
  295.  
  296. new playerCheckpoint[MAX_PLAYERS];
  297. new Float:checkpoints[MAX_POINTS][4] = {
  298. {-28.100069,-89.627357,1003.5469,3.0}, //69 Cent STore
  299. {246.375991,109.245994,1003.218750, 3.0}, //SFPD Exit
  300. {1484.7555,-1771.3855,18.7958, 3.0}, //CP_PrisonEnter
  301. {1510.011352, -1060.139526, 25.062500, 3.0}, //CP bank Enter
  302. {2304.7012,-16.0591,26.7422, 3.0}, //CP BankExit
  303. {2311.645019, -4.784075, 26.742187, 3.0}, // Inside Bank
  304. {2174.755615, -2249.109130, 13.303812, 3.0}, //Explosives
  305. {977.451416, -769.852722, 112.202629, 3.0}, // Admin House Enter
  306. {2317.830322, -1026.757690, 1050.217773, 3.0}, //Admin House Exit
  307. {1940.014160, -2116.011474, 13.695312, 3.0}, //Sex Shop Enter
  308. {-100.511611, -23.429288, 1000.718750, 3.0}, // Sex Shop Exit
  309. {-105.566085, -10.617439, 1000.718750, 3.0}, // Sex Shop Counter
  310. {1928.582031, -1776.320434, 13.546875, 3.0}, // Gas Station Enter
  311. {-10.311285, -178.242904, 1003.546875, 3.0}, // Gas station checkpoint
  312. {-26.028060, -187.120574, 1003.546875, 3.0}, // Store one exit
  313. {476.096069, -15.185485, 1003.695312, 3.0}, // dance Rob
  314. {293.810852, -34.787994, 1001.515625, 3.0}, // Ammunation (Center LS) Robbery Spot
  315. {377.797363, -67.435653, 1001.507812, 3.0}, // Burger Shot Robbery Spot
  316. {1176.014282, -1323.302246, 14.000391, 3.0}, // Hospital
  317. {-201.742660, -23.566627, 1002.273437, 3.0}, // Tatoo Shop
  318. {2486.337646, -1644.873291, 14.077178, 3.0}, // House 1
  319. {235.373641, 1186.680053, 1080.257812, 3.0}, // House 1 Exit
  320. {1980.387695, -1719.006713, 17.030405, 3.0}, // House2Enter
  321. {228.089996, 1114.303955, 1080.992187, 3.0}, // House2 Exit
  322. {280.929382, -1767.145751, 4.546875, 3.0}, // House3enter
  323. {223.038757, 1288.227294, 1082.140625, 3.0}, // House3Exit
  324. {189.641677, -1308.114135, 70.249511, 3.0}, // House4Enter
  325. {24.116802, 1340.033691, 1084.375000, 3.0}, // House4Exit
  326. {352.405242, -1197.921020, 76.515625, 3.0}, // House5Enter
  327. {22.747611, 1404.215698, 1084.429687, 3.0}, // House5Exit inside
  328. {989.783447, -828.658874, 95.468574, 3.0}, // House 6 enter
  329. {447.005004, 1397.073608, 1084.304687, 3.0}, // House Exit to outside
  330. {1094.829467, -647.912902, 113.648437, 3.0}, // House 7 enter
  331. {234.166671, 1065.024414, 1084.210327, 3.0}, // House 7 Exit
  332. {2090.942626, -1277.854370, 26.179687, 3.0}, // House 8 enter loc
  333. {2259.523193, -1135.836303, 1050.632812, 3.0},// House 8 Exit Cp (THIS ONE)
  334. {2111.024902, -1244.397460, 25.851562, 3.0}, // House9Enter
  335. {2467.589111, -1698.400024, 1013.507812, 3.0}, // House 9 Exit CP
  336. {1214.997924, -13.298475, 1000.921875, 3.0}, // Pig Pen Robbery Spot
  337. {2034.464721, -1406.565551, 17.205287, 3.0}, // hospital
  338. {1440.501220, -2287.199462, 13.546875, 3.0},// Airpot blow cp
  339. {363.255249, -2009.069458, 7.835937, 3.0}, // park cp for blow
  340. {-31.306764, -28.996454, 1003.557250, 3.0}, // Gas Station Rob
  341. {1401.436889, -767.322265, 95.011589, 3.0}, // Vinewood sign blow cp
  342. {1526.515136, -1071.242065, 25.062500, 3.0}, // Blow bank CP
  343. {2147.707763, -1367.095458, 25.641782, 3.0}, // Drug house cp
  344. {203.934204, -40.282241, 1001.804687, 3.0}, // SubUrban robbery checkpoint
  345. {207.757797, -98.696815, 1005.257812, 3.0}, // Binco rob
  346. {376.704528, -118.806343, 1001.499511, 3.0}, // Pizza place robbery
  347. {1642.319335, -2237.777832, 13.498379, 3.0}, // Airport
  348. {-1422.704101, -286.657531, 14.148437, 3.0}, // SF Airport cp
  349. {1674.765625, 1447.695068, 10.789379, 3.0} // LV Airport
  350. };
  351.  
  352. new Float:checkCoords[MAX_POINTS][4] = {
  353. {-32.100069,-94.627357,-24.100069,-85.626357}, //69 Cent Store
  354. {242.375991, 103.245994, 250.375991, 113.245994},//SFPD Exit
  355. {1480.7555,-1777.3855 , 1485.7555, -1766.3855}, //CP_PrisonEnter
  356. {1506.011352, -1064.139526, 1514.011352, -1056.139526}, // bank
  357. {2300.7012, -24.0591, 2308.7012, -12.0591}, //CP BANK EXIT
  358. {2307.645019, -8.784074, 2315.645019, -0.784075}, // Inside Bank
  359. {2170.755615, -2253.109130, 2178.755615, -2245.109130}, //Explosives
  360. {973.451416, -773.852722, 981.451416, -765.852722}, // Admin House
  361. {2313.830322, -1030.757690, 2321.830322, -1022.757690}, //Admin House Exit
  362. {1926.014160, -2126.011474, 1950.014160, -2106.011474}, //Sex Shop enter
  363. {-114.511611, -33.429290, -90.511611, -13.429288}, // Sex Shop Exit
  364. {-119.566085, -20.617439, -95.566085, -0.617439}, // Sex Shop Counter
  365. {1914.582031, -1786.320434, 1938.582031, -1766.320434}, // Gas Station Enter
  366. {-24.311285, -188.242904, -0.311285, -168.242904}, // Gas station checkpoint
  367. {-40.028060, -197.120574, -16.028060, -177.120574}, // Store one exit
  368. {462.096069, -25.185485, 486.096069, -5.185485}, // dance Rob
  369. {279.810852, -44.787994, 303.810852, -24.787994}, // Ammunation (Center LS) Robbery Spot
  370. {363.797363, -77.435653, 387.797363, -57.435653}, // Burger Shot Robbery Spot
  371. {1166.014282, -1333.302246, 1186.014282, -1313.302246}, // Hospital
  372. {-211.742660, -33.566627, -191.742660, -13.566627}, // Tatoo Shop
  373. {2476.337646, -1654.873291, 2496.337646, -1634.873291}, // House 1
  374. {225.373641, 1176.680053, 245.373641, 1196.680053}, // House 1 Exit
  375. {1970.387695, -1729.006713, 1990.387695, -1709.006713}, // House2Enter
  376. {218.089996, 1104.303955, 238.089996, 1124.303955}, // House2 Exit
  377. {270.929382, -1777.145751, 290.929382, -1757.145751}, // House3enter
  378. {213.038757, 1278.227294, 233.038757, 1298.227294}, // House3Exit
  379. {179.641677, -1318.114135, 199.641677, -1298.114135}, // House4Enter
  380. {14.116802, 1330.033691, 34.116802, 1350.033691}, // House4Exit
  381. {342.405242, -1207.921020, 362.405242, -1187.921020}, // House5Enter
  382. {12.747611, 1394.215698, 32.747611, 1414.215698}, // House5Exit inside
  383. {979.783447, -838.658874, 999.783447, -818.658874}, // House 6 enter
  384. {437.005004, 1387.073608, 457.005004, 1407.073608}, // House Exit to outside
  385. {1084.829467, -657.912902, 1104.829467, -637.912902}, // House 7 enter
  386. {224.166671, 1055.024414, 244.166671, 1075.024414}, // House 7 Exit
  387. {2080.942626, -1287.854370, 2100.942626, -1267.854370}, // House 8 enter loc
  388. {2249.523193, -1145.836303, 2269.523193, -1125.836303}, // House 8 Exit Cp (THIS ONE)
  389. {2101.024902, -1254.397460, 2121.024902, -1234.397460}, // House9Enter
  390. {2457.589111, -1708.400024, 2477.589111, -1688.400024}, // House 9 Exit CP
  391. {1204.997924, -23.298475, 1224.997924, -3.298475}, // Pig Pen Robbery Spot
  392. {2024.464721, -1416.565551, 2044.464721, -1396.565551},// hospital
  393. {1430.501220, -2297.199462, 1450.501220, -2277.199462}, // Airpot blow cp
  394. {353.255249, -2019.069458, 373.255249, -1999.069458}, // park cp for blow
  395. {-41.306762, -38.996452, -21.306764, -18.996454}, // Gas Station Rob
  396. {1391.436889, -777.322265, 1411.436889, -757.322265}, // Vinewood sign blow cp
  397. {1516.515136, -1081.242065, 1536.515136, -1061.242065}, // Blow bank CP
  398. {2137.707763, -1377.095458, 2157.707763, -1357.095458}, // Drug house cp
  399. {193.934204, -50.282241, 213.934204, -30.282241}, // SubUrban robbery checkpoint
  400. {197.757797, -108.696815, 217.757797, -88.696815}, // Binco rob
  401. {366.704528, -128.806335, 386.704528, -108.806343}, // Pizza place robbery
  402. {1592.319335, -2287.777832, 1692.319335, -2187.777832}, // Airport
  403. {-1472.704101, -336.657531, -1372.704101, -236.657531}, // SF Airport cp
  404. {1624.765625, 1397.695068, 1724.765625, 1497.695068} // LV Airport
  405. };
  406.  
  407. new checkpointType[MAX_POINTS] = {
  408. CP_StoreOne, //69 Cent Store
  409. CP_PrisonExit,
  410. CP_PrisonEnter,
  411. CP_BankEnter,
  412. CP_BankExit,
  413. CP_Bank,
  414. CP_BuyExp,
  415. CP_AdminHouse,
  416. CP_AdminHouseExit,
  417. CP_SexShopEnter,
  418. CP_SexShopExit,
  419. CP_SexShopCounter,
  420. CP_GasOneEnter,
  421. CP_GasOneCounter,
  422. CP_GasOneExit,
  423. CP_DanceCounter,
  424. CP_AmmoRob,
  425. CP_BurgerShotRob,
  426. CP_Hospital,
  427. CP_Tatoo,
  428. CP_HouseOneEnter,
  429. CP_HouseOneExit,
  430. CP_HouseTwoEnter,
  431. CP_HouseTwoExit,
  432. CP_HouseThreeEnter,
  433. CP_HouseThreeExit,
  434. CP_HouseFourEnter,
  435. CP_HouseFourExit,
  436. CP_HouseFiveEnter,
  437. CP_HouseFiveExit,
  438. CP_HouseSixEnter,
  439. CP_HouseSixExit,
  440. CP_HouseSevenEnter,
  441. CP_HouseSevenExit,
  442. CP_HouseEightEnter,
  443. CP_HouseEightExit,
  444. CP_HouseNineEnter,
  445. CP_HouseNineExit,
  446. CP_PigPenRob,
  447. CP_LSHospital,
  448. CP_LSAirportBlow,
  449. CP_ParkBlow,
  450. CP_RobStore1,
  451. CP_VinewoodBlow,
  452. CP_BankBlow,
  453. CP_DrugHouse,
  454. CP_Suburban,
  455. CP_Binco,
  456. CP_WellStacked,
  457. CP_Airport,
  458. CP_SFAirport,
  459. CP_LVAirport
  460. };
  461. //Home Owners
  462. #define HOUSE_ONE_OWNER ""
  463. #define House_Two_Owner ""
  464. #define House_Three_Owner ""
  465. #define House_Four_Owner ""
  466. #define House_Five_Owner ""
  467. #define House_Six_Owner ""
  468. #define House_Seven_Owner ""
  469. #define House_Eight_Owner ""
  470. #define House_Nine_Owner ""
  471. //House Names
  472. #define House_One_Name "This house is for sale. Contact a Server Admin if you wish to buy it"
  473. #define House_Two_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  474. #define House_Three_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  475. #define House_Four_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  476. #define House_Five_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  477. #define House_Six_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  478. #define House_Seven_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  479. #define House_Eight_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  480. #define House_Nine_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  481.  
  482. //Biz owners
  483. #define Drug_House_Owner ""
  484.  
  485. //Spike Strips
  486.  
  487. #define MAX_SPIKES 20
  488. enum SpikeInfo
  489. {
  490. SpikeCreated,
  491. Float:SX,
  492. Float:SY,
  493. Float:SZ,
  494. sObject
  495. };
  496.  
  497. new SInfo[MAX_SPIKES][SpikeInfo];
  498.  
  499. enum Vinfo
  500. {
  501. bought,
  502. bomb
  503. }
  504.  
  505.  
  506. new VehicleInfo[MAX_VEHICLES][Vinfo];
  507. new aWeaponNames[][32] = {
  508. {"Unarmed (Fist)"}, // 0
  509. {"Brass Knuckles"}, // 1
  510. {"Golf Club"}, // 2
  511. {"Night Stick"}, // 3
  512. {"Knife"}, // 4
  513. {"Baseball Bat"}, // 5
  514. {"Shovel"}, // 6
  515. {"Pool Cue"}, // 7
  516. {"Katana"}, // 8
  517. {"Chainsaw"}, // 9
  518. {"Purple Dildo"}, // 10
  519. {"Big White Vibrator"}, // 11
  520. {"Medium White Vibrator"}, // 12
  521. {"Small White Vibrator"}, // 13
  522. {"Flowers"}, // 14
  523. {"Cane"}, // 15
  524. {"Grenade"}, // 16
  525. {"Teargas"}, // 17
  526. {"Molotov"}, // 18
  527. {" "}, // 19
  528. {" "}, // 20
  529. {" "}, // 21
  530. {"Colt 45"}, // 22
  531. {"Colt 45 (Silenced)"}, // 23
  532. {"Desert Eagle"}, // 24
  533. {"Normal Shotgun"}, // 25
  534. {"Sawnoff Shotgun"}, // 26
  535. {"Combat Shotgun"}, // 27
  536. {"Micro Uzi (Mac 10)"}, // 28
  537. {"MP5"}, // 29
  538. {"AK47"}, // 30
  539. {"M4"}, // 31
  540. {"Tec9"}, // 32
  541. {"Country Rifle"}, // 33
  542. {"Sniper Rifle"}, // 34
  543. {"Rocket Launcher"}, // 35
  544. {"Heat-Seeking Rocket Launcher"}, // 36
  545. {"Flamethrower"}, // 37
  546. {"Minigun"}, // 38
  547. {"Satchel Charge"}, // 39
  548. {"Detonator"}, // 40
  549. {"Spray Can"}, // 41
  550. {"Fire Extinguisher"}, // 42
  551. {"Camera"}, // 43
  552. {"Night Vision Goggles"}, // 44
  553. {"Infrared Vision Goggles"}, // 45
  554. {"Parachute"}, // 46
  555. {"Fake Pistol"}, // 47
  556. {"Unknown"}, //48
  557. {"Vehicle"}, //49
  558. {"Helicopter Blades"}, //50
  559. {"Explosion"}, //51
  560. {"Unknown"}, //52
  561. {"Drowned"}, //53
  562. {"Explosion"} //54
  563. };
  564. // ZONES
  565. enum zoneinfo {
  566. zone_name[27],
  567. Float:zone_minx,
  568. Float:zone_miny,
  569. Float:zone_minz,
  570. Float:zone_maxx,
  571. Float:zone_maxy,
  572. Float:zone_maxz
  573. }
  574. // Makabos zones script // ALWAYS ADD NEW ZONES TO THE END (YOULL MESS UP ALL ROBBERIES)
  575. new Float:zones[][zoneinfo] = {
  576. { "Store (Int)", -11.0048, -31.3442, 1003.5494, 8.3204, -2.7050, 50.00},
  577. { "Army Base", -1546.4114, 260.0058, 7.1797, -1222.0865, 521.8784, 50.00},
  578. { "Prison (Int)", 214.0158, 107.4454, 999.0156, 278.4889, 127.9651, 50.00},
  579. { "Police Department (Int)", 217.2494, 62.7068, 1001.0391, 270.0461, 92.4821, 50.00},
  580. { "Police Department", -1336.4915, 705.7386, 6.6299, -1182.2593, 823.7599, 200.00},
  581. { "Police Department (Int)", 188.1787, 138.6903, 1003.0234, 301.7826, 197.7743, 50.00},
  582. { "The Big Ear", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
  583. { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
  584. { "Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
  585. { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
  586. { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
  587. { "Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
  588. { "Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
  589. { "Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
  590. { "Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
  591. { "Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
  592. { "Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
  593. { "Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
  594. { "Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
  595. { "Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
  596. { "Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
  597. { "Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
  598. { "Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
  599. { "Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
  600. { "Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
  601. { "Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
  602. { "Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
  603. { "Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
  604. { "Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
  605. { "Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
  606. { "Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
  607. { "Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
  608. { "Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
  609. { "Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
  610. { "Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
  611. { "Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
  612. { "Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
  613. { "Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
  614. { "Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
  615. { "Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
  616. { "Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
  617. { "Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
  618. { "Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
  619. { "Class Selection", 942.5793, 0.2095, 1000.9295, 947.4127, 4.8616, 1000.9299},
  620. { "Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
  621. { "Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
  622. { "Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
  623. { "Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
  624. { "Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
  625. { "Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
  626. { "Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
  627. { "Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
  628. { "Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
  629. { "Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
  630. { "Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
  631. { "Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
  632. { "Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
  633. { "Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
  634. { "Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
  635. { "Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
  636. { "Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
  637. { "Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
  638. { "Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
  639. { "East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
  640. { "East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
  641. { "East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
  642. { "East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
  643. { "East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
  644. { "East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
  645. { "East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
  646. { "East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
  647. { "East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
  648. { "East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
  649. { "East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
  650. { "Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
  651. { "Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
  652. { "Easter Bay Airport", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
  653. { "Easter Bay Airport", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
  654. { "Easter Bay Airport", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
  655. { "Easter Bay Airport", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
  656. { "Easter Bay Airport", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
  657. { "Easter Bay Airport", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
  658. { "Easter Bay Airport", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
  659. { "Easter Bay Airport", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
  660. { "Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
  661. { "Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
  662. { "El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
  663. { "El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
  664. { "El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
  665. { "El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
  666. { "El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
  667. { "El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
  668. { "Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
  669. { "Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
  670. { "Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
  671. { "Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
  672. { "Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
  673. { "Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
  674. { "Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
  675. { "Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
  676. { "Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
  677. { "Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
  678. { "Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
  679. { "Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
  680. { "Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
  681. { "Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
  682. { "Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
  683. { "Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
  684. { "Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
  685. { "Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
  686. { "Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
  687. { "Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
  688. { "Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
  689. { "Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
  690. { "Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
  691. { "Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
  692. { "Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
  693. { "Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
  694. { "Garver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
  695. { "Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
  696. { "Glen Park", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
  697. { "Glen Park", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
  698. { "Glen Park", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
  699. { "Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
  700. { "Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
  701. { "Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
  702. { "Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
  703. { "Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
  704. { "Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
  705. { "Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
  706. { "Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
  707. { "Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
  708. { "Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
  709. { "Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
  710. { "Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
  711. { "Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
  712. { "Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
  713. { "Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
  714. { "Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
  715. { "Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
  716. { "Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
  717. { "Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
  718. { "Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
  719. { "Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
  720. { "Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
  721. { "Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
  722. { "Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
  723. { "Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
  724. { "Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
  725. { "Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
  726. { "Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
  727. { "Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
  728. { "Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
  729. { "Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
  730. { "Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
  731. { "Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
  732. { "Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
  733. { "Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
  734. { "Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
  735. { "Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
  736. { "Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
  737. { "Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
  738. { "K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
  739. { "Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
  740. { "Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
  741. { "Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
  742. { "King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
  743. { "King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
  744. { "King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
  745. { "LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
  746. { "LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
  747. { "LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
  748. { "LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
  749. { "LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
  750. { "Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
  751. { "Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
  752. { "Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
  753. { "Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
  754. { "Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
  755. { "Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
  756. { "Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
  757. { "Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
  758. { "Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
  759. { "Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
  760. { "Las Venturas Airport", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
  761. { "Las Venturas Airport", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
  762. { "Las Venturas Airport", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
  763. { "Las Venturas Airport", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
  764. { "Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
  765. { "Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
  766. { "Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
  767. { "Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
  768. { "Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
  769. { "Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
  770. { "Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
  771. { "Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
  772. { "Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
  773. { "Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
  774. { "Los Santos International", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
  775. { "Los Santos International", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
  776. { "Los Santos International", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
  777. { "Los Santos International", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
  778. { "Los Santos International", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
  779. { "Los Santos International", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
  780. { "Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
  781. { "Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
  782. { "Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
  783. { "Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
  784. { "Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
  785. { "Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
  786. { "Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
  787. { "Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
  788. { "Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
  789. { "Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
  790. { "Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
  791. { "Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
  792. { "Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
  793. { "Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
  794. { "Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
  795. { "Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
  796. { "Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
  797. { "Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
  798. { "Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
  799. { "Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
  800. { "Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
  801. { "Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
  802. { "Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
  803. { "Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
  804. { "Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
  805. { "Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
  806. { "Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
  807. { "Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
  808. { "North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
  809. { "Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
  810. { "Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
  811. { "Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
  812. { "Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
  813. { "Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
  814. { "Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
  815. { "Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
  816. { "Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
  817. { "Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
  818. { "Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
  819. { "Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
  820. { "Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
  821. { "Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
  822. { "Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
  823. { "Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
  824. { "Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
  825. { "Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
  826. { "Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
  827. { "Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
  828. { "Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
  829. { "Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
  830. { "Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
  831. { "Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
  832. { "Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
  833. { "Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
  834. { "Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
  835. { "Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
  836. { "Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
  837. { "Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
  838. { "Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
  839. { "Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
  840. { "Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
  841. { "Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
  842. { "Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
  843. { "Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
  844. { "Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
  845. { "Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
  846. { "Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
  847. { "Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
  848. { "Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
  849. { "Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
  850. { "Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
  851. { "Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
  852. { "Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
  853. { "Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
  854. { "Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
  855. { "Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
  856. { "Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
  857. { "Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
  858. { "Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
  859. { "Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
  860. { "Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
  861. { "Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
  862. { "Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
  863. { "Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
  864. { "Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
  865. { "Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
  866. { "Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
  867. { "Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
  868. { "Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
  869. { "Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
  870. { "Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
  871. { "Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
  872. { "Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
  873. { "San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
  874. { "Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
  875. { "Santa Maria Beach", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
  876. { "Santa Maria Beach", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
  877. { "Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
  878. { "Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
  879. { "Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
  880. { "Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
  881. { "Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
  882. { "Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
  883. { "Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
  884. { "Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
  885. { "Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
  886. { "Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
  887. { "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
  888. { "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
  889. { "The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
  890. { "The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
  891. { "The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
  892. { "The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
  893. { "The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
  894. { "Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
  895. { "Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
  896. { "Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
  897. { "Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
  898. { "Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
  899. { "Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
  900. { "Verona Beach", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
  901. { "Verona Beach", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
  902. { "Verona Beach", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
  903. { "Verona Beach", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
  904. { "Verona Beach", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
  905. { "Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
  906. { "Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
  907. { "Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
  908. { "Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
  909. { "Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
  910. { "Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
  911. { "Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
  912. { "Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
  913. { "Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
  914. { "Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
  915. { "Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
  916. { "Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
  917. { "Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
  918. { "Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
  919. { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
  920. { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
  921. { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
  922. { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
  923. { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
  924. { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
  925. };
  926.  
  927. #define MAX_PLAYERS_ 32
  928. new zoneupdates[MAX_PLAYERS_];
  929. new player_zone[MAX_PLAYERS_];
  930. new zoneupdate;
  931.  
  932.  
  933. forward update_zones();
  934. public update_zones()
  935. {
  936. new line1[10];
  937. new line2[10];
  938.  
  939. for(new i=0; i<MAX_PLAYERS_; i++)
  940. {
  941. if(IsPlayerConnected(i) && zoneupdates[i] == 1)
  942. {
  943. if(IsPlayerInZone(i,player_zone[i]))
  944. {
  945. }
  946. else {
  947. new player_zone_before;
  948. player_zone_before = player_zone[i];
  949. player_zone[i] = -1;
  950. for(new j=0; j<sizeof(zones);j++)
  951. {
  952. if(IsPlayerInZone(i,j) && player_zone[i] == -1)
  953. {
  954.  
  955. if(player_zone_before == -1)
  956. {
  957. new string[128];
  958. format(string,sizeof(string),"%s",zones[j][zone_name]);
  959. GameTextForPlayer(i, string, 2000, 1);
  960. }
  961. else
  962. {
  963. if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0)
  964. {
  965. new string[128];
  966. format(string,sizeof(string),"%s",zones[j][zone_name]);
  967. GameTextForPlayer(i, string, 2000, 1);
  968. }
  969. }
  970. player_zone[i] = j;
  971. format(line1,10,"p%dzone",i);
  972. format(line2,10,"%d",j);
  973. PropertySet(line1,line2);
  974. }
  975. }
  976. if(player_zone[i] == -1) player_zone[i] = player_zone_before;
  977. }
  978. }
  979. }
  980. }
  981.  
  982. IsPlayerInZone(playerid, zoneid)
  983. {
  984. if(zoneid == -1) return 0;
  985. new Float:x, Float:y, Float:z;
  986. GetPlayerPos(playerid,x,y,z);
  987. if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx]
  988. && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy]
  989. && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz]
  990. && z < 1200.0000) return 1;
  991. return 0;
  992. }
  993.  
  994.  
  995. main()
  996. {
  997. print("\n ---------------------");
  998. printf("Cops n Robbers By DarkLord", VERSION);
  999. print("------------------------\n");
  1000. }
  1001.  
  1002.  
  1003. public OnGameModeInit()
  1004. {
  1005. //House names
  1006. //AllowAdminTeleport(1); // Allows Rc0n admin waypoint teleport
  1007. SetWeather(10); //Sets the weather to 10 (Shiny, plan to make it different through the game month
  1008. //ManualVehicleEngineAndLights(); // Manual engines
  1009. SetWorldTime(12);
  1010. //Timers
  1011. //SetTimer("CarBombs", 1000, 1);
  1012. SetTimer("checkpointUpdate", 1100, 1); //Checkpoint system
  1013. //SetTimer("STDTimer", 1000*30, 1); //Checks for STD, used only once
  1014. SetTimer("WorldTime",60000,1); //World Time
  1015. SetTimer("Server", 1000, 1); //Server/Player Variables
  1016. SetTimer("SaveStats", 1000*60*2, 1); //Saves the stats every 2 minutes (PVars can't do that on OnPlayerDisconnect)
  1017. //SetTimer("ServerMessages", 1000*60*5, 1); //Server Messages
  1018. //SetTimer("Weather", 1000*60*24, 1); //Weather - comment to take it out
  1019. SetTimer("Taxes", 1000*60*24, 1); //Does taxes: pay cops, give biz owners money, etc.............
  1020. if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
  1021.  
  1022. SetGameModeText("Cops n Robbers V1.1 "); //Game Mode Text
  1023.  
  1024. //Cops/Army
  1025. AddPlayerClass(265,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1026. AddPlayerClass(266,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1027. AddPlayerClass(281,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1028. AddPlayerClass(285,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1029. AddPlayerClass(288,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1030. AddPlayerClass(280,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1031. //Army
  1032. AddPlayerClass(287,1767.4132,-2435.5422,13.5547,178.6999,0,0,0,0,0,0); //
  1033. //FBI
  1034. AddPlayerClass(286,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1035. //Civi
  1036. AddPlayerClass(1,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1037. AddPlayerClass(2,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1038. AddPlayerClass(7,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1039. AddPlayerClass(9,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1040. AddPlayerClass(11,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1041. AddPlayerClass(13,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1042. AddPlayerClass(16,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1043. AddPlayerClass(23,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1044. AddPlayerClass(24,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1045. AddPlayerClass(26,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1046. AddPlayerClass(29,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1047. AddPlayerClass(47,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1048. AddPlayerClass(66,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1049. AddPlayerClass(103,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1050. AddPlayerClass(105,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1051. AddPlayerClass(107,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1052. AddPlayerClass(123,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1053. AddPlayerClass(174,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1054. AddPlayerClass(217,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1055. AddPlayerClass(270,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1056. AddPlayerClass(299,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1057. AddPlayerClass(298,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1058.  
  1059. //Army Base (LS)
  1060. ArmyVehicle[0] = AddStaticVehicleEx(520,1803.13793945,-2406.17114258,14.47426319,217.99993896,-1,-1,900); //Hydra
  1061. ArmyVehicle[1] = AddStaticVehicleEx(520,1838.41601562,-2406.30737305,14.47426319,142.00378418,-1,-1,900); //Hydra
  1062. ArmyVehicle[2] = AddStaticVehicleEx(520,1818.97277832,-2404.87744141,14.47426319,180.00000000,-1,-1,900); //Hydra
  1063. ArmyVehicle[3] = AddStaticVehicleEx(425,1740.16857910,-2420.96972656,14.40568733,179.99993896,-1,-1,900); //Hunter
  1064. ArmyVehicle[4] = AddStaticVehicleEx(425,1724.65991211,-2404.00146484,14.40568733,179.99450684,-1,-1,900); //Hunter
  1065. ArmyVehicle[5] = AddStaticVehicleEx(425,1710.71911621,-2422.50415039,14.40568733,179.99450684,-1,-1,900); //Hunter
  1066. ArmyVehicle[6] = AddStaticVehicleEx(470,1865.78295898,-2442.98876953,13.66469955,298.00000000,-1,-1,900); //Patriot
  1067. ArmyVehicle[7] = AddStaticVehicleEx(470,1865.26049805,-2438.05322266,13.66469955,297.99865723,-1,-1,900); //Patriot
  1068. ArmyVehicle[8] = AddStaticVehicleEx(470,1864.10070801,-2432.87500000,13.66469955,297.99865723,-1,-1,900); //Patriot
  1069. CreateObject(3491,1820.85437012,-2420.75170898,20.52900505,0.00000000,0.00000000,0.00000000); //object(vegass_hanger2) (1)
  1070. CreateObject(8253,1868.85485840,-2435.81982422,16.48247528,0.00000000,0.00000000,0.00000000); //object(pltschlhnger01_lvs) (1)
  1071.  
  1072. //LSPD
  1073. CreateObject(6976,1561.19323730,-1636.00317383,10.00000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt04) (1) (STAIRS)
  1074. CreateObject(6976,1578.89599609,-1642.44042969,18.60000038,0.00000000,0.00000000,270.00000000); //object(shamheliprt04) (2) (STAIRS)
  1075.  
  1076. //LSPD Cars
  1077. LSPD[0] = AddStaticVehicle(596,1538.6554,-1645.4680,5.6120,179.5933,0,1); // LSPD
  1078. LSPD[1] = AddStaticVehicle(596,1530.4604,-1645.3107,5.6124,177.7601,0,1); // LSPD
  1079. LSPD[2] = AddStaticVehicle(523,1546.4139,-1654.8896,5.4586,270.2880,0,0); // HPV
  1080. LSPD[3] = AddStaticVehicle(596,1545.1909,-1680.1108,5.6098,268.8843,0,1); // LSPD
  1081. LSPD[4] = AddStaticVehicle(596,1529.0856,-1683.8678,5.6119,90.2738,0,1); // LSPD
  1082. LSPD[5] = AddStaticVehicle(411,1558.6659,-1710.4635,5.4839,180.4114,0,0); // undecover make black
  1083. LSPD[6] = AddStaticVehicle(427,1587.5168,-1709.7181,6.0220,359.9041,0,1); // Enforcer
  1084. LSPD[7] = AddStaticVehicle(490,1574.2781,-1709.8967,6.0200,0.7341,0,0); // FBI Rancher
  1085. LSPD[8] = AddStaticVehicle(490,1578.5839,-1709.9985,6.0172,358.9602,0,0); // FBI Rancher
  1086. LSPD[9] = AddStaticVehicle(596,1570.5350,-1710.4485,5.6105,179.5916,0,1); // LDPS
  1087. LSPD[10] = AddStaticVehicle(596,1566.5233,-1710.3140,5.6121,179.4903,0,1); // LSPD
  1088. LSPD[11] = AddStaticVehicle(596,1601.7191,-1704.3359,5.6108,268.6521,0,1); // LSPD
  1089. LSPD[12] = AddStaticVehicle(402,1601.2964,-1692.0686,5.7223,90.0956,13,13); // Undercover FBI Car
  1090. LSPD[13] = AddStaticVehicle(402,1601.1915,-1683.9227,5.7224,90.0514,22,22); // FBI Buffalo
  1091. LSPD[14] = AddStaticVehicle(405,1600.9851,-1687.9960,5.7656,90.2003,24,1); // FBI Sentinel
  1092. LSPD[15] = AddStaticVehicle(596,1544.2131,-1671.8967,5.6124,89.8306,0,1); // LSPD
  1093. LSPD[16] = AddStaticVehicle(411,1544.4808,-1663.0748,5.4839,90.6810,6,6); // A-R Unit
  1094. LSPD[17] = AddStaticVehicle(522,1543.5620,-1667.8304,5.4611,87.7870,3,8); // A-R Unit
  1095. LSPD[18] = AddStaticVehicle(415,1544.1481,-1659.2570,5.6624,89.9421,25,1); // Cheetah
  1096. LSPD[19] = AddStaticVehicle(497,1563.8291,-1647.2522,28.5786,87.9044,0,1); // LSPD Mav
  1097. LSPD[20] = AddStaticVehicle(596,1535.8528,-1668.1055,13.1040,359.9227,0,1); // LSPD
  1098.  
  1099. //Others
  1100. AddStaticVehicle(592,1442.0022,-2593.0347,14.7432,269.9402,1,1); // Andromada
  1101. AddStaticVehicle(577,1442.0778,-2493.6089,13.4701,270.2746,8,16); // AT-400
  1102. AddStaticVehicle(560,1362.9446,-1489.2616,13.2517,70.0243,9,39); // Street car
  1103. AddStaticVehicle(400,441.1136,-1296.9650,15.2771,33.7294,123,1); //
  1104. AddStaticVehicle(402,661.2392,-1263.4077,13.2974,180.4469,13,13); //
  1105. AddStaticVehicle(404,727.5649,-1198.1158,18.9327,332.0143,119,50); //
  1106. AddStaticVehicle(405,847.8672,-1153.2953,23.5313,270.5562,24,1); //
  1107. AddStaticVehicle(410,592.4474,-1298.6516,14.3986,195.8924,9,1); //
  1108. AddStaticVehicle(411,599.8068,-1296.5234,14.4330,198.7522,0,0); //
  1109. AddStaticVehicle(412,295.3885,-1419.2489,13.7880,292.8682,10,8); //
  1110. AddStaticVehicle(415,216.1153,-1431.7924,13.0211,134.5198,25,1); //
  1111. AddStaticVehicle(419,198.1319,-1438.1703,12.8807,318.4540,47,76); //
  1112. AddStaticVehicle(421,317.9250,-1809.6421,4.3541,180.2348,13,1); //
  1113. AddStaticVehicle(422,337.3482,-1809.7214,4.4771,358.7836,97,25); //
  1114. AddStaticVehicle(424,324.6066,-1788.1311,4.5653,0.6627,2,2); //
  1115. AddStaticVehicle(411,393.5659,-1890.3940,1.1139,274.5846,85,85); //
  1116. AddStaticVehicle(468,463.5244,-1823.6342,5.1035,268.1549,46,46); //
  1117. AddStaticVehicle(474,495.4467,-1767.6510,5.3166,269.9758,81,1); //
  1118. AddStaticVehicle(477,665.8559,-1886.1223,3.6893,266.2523,94,1); //
  1119. AddStaticVehicle(481,682.4985,-1852.5225,5.4641,2.4120,3,3); //
  1120. AddStaticVehicle(521,822.7520,-1699.5719,13.1165,359.5197,75,13); //
  1121. AddStaticVehicle(526,686.4927,-1568.9868,14.0089,356.7253,9,39); //
  1122. AddStaticVehicle(525,701.6587,-1571.7688,14.1193,180.8628,18,20); //
  1123. AddStaticVehicle(446,719.8644,-1636.4723,-0.4465,357.0965,1,5); //
  1124. AddStaticVehicle(448,783.1911,-1637.3964,12.9824,91.3249,3,6); //
  1125. AddStaticVehicle(455,782.2476,-1605.8896,13.8189,358.5023,84,58); //
  1126. AddStaticVehicle(457,838.4237,-1552.1782,13.0880,356.4117,2,1); //
  1127. AddStaticVehicle(458,872.1634,-1505.1324,12.9550,89.3787,101,1); //
  1128. AddStaticVehicle(461,815.1939,-1501.1245,12.6237,180.6368,37,1); //
  1129. AddStaticVehicle(467,810.4442,-1448.8104,12.8154,87.3158,58,8); //
  1130. AddStaticVehicle(560,869.7569,-1657.6364,13.2514,358.3217,17,1); //
  1131. AddStaticVehicle(562,888.2688,-1669.5073,13.2046,179.9898,35,1); //
  1132. AddStaticVehicle(565,874.4271,-1678.0381,13.1739,179.3548,42,42); //
  1133. AddStaticVehicle(400,2247.7559,-1924.4431,13.6392,179.6043,123,1); //
  1134. AddStaticVehicle(404,2283.6428,-1931.3055,12.7527,180.8797,119,50); //
  1135. AddStaticVehicle(408,2311.1282,-1994.4446,14.1198,357.9063,26,26); //
  1136. AddStaticVehicle(410,2495.6108,-1986.2244,13.0924,0.1197,9,1); //
  1137. AddStaticVehicle(412,2452.2275,-2021.9824,13.3828,178.2901,10,8); //
  1138. AddStaticVehicle(419,2395.0791,-2074.6975,13.3144,88.8546,47,76); //
  1139. AddStaticVehicle(422,2444.3772,-2114.7273,13.5293,358.7563,97,25); //
  1140. AddStaticVehicle(403,2488.6995,-2106.0339,14.1311,92.4613,30,1); //
  1141. AddStaticVehicle(403,2489.3936,-2114.3250,14.1531,91.9732,28,1); //
  1142. AddStaticVehicle(420,2504.0386,-1755.2026,13.1758,179.1026,6,1); //
  1143. AddStaticVehicle(600,2494.6516,-1755.5043,13.1951,181.4729,32,8); //
  1144. AddStaticVehicle(602,2498.2732,-1681.7469,13.1667,285.0013,69,1); //
  1145. AddStaticVehicle(604,2508.1958,-1666.0525,13.1416,10.7108,68,76); //
  1146. AddStaticVehicle(605,2484.1882,-1655.1521,13.1367,88.7774,32,8); //
  1147. AddStaticVehicle(405,2278.9871,-1683.5277,14.0112,178.6860,24,1); //
  1148. AddStaticVehicle(409,2063.2822,-1636.4720,13.3467,271.9295,1,1); //
  1149. AddStaticVehicle(410,2051.8411,-1694.6627,13.2074,91.0224,36,1); //
  1150. AddStaticVehicle(411,2122.1047,-1783.8508,12.9809,358.5475,0,0); //
  1151. AddStaticVehicle(413,2100.7090,-1782.8505,13.4707,174.5412,105,1); //
  1152. AddStaticVehicle(415,2062.4036,-1904.6412,13.3209,359.7023,40,1); //
  1153. AddStaticVehicle(418,2062.2371,-1919.5068,13.6401,179.3507,108,108); //
  1154. AddStaticVehicle(420,2339.9822,-2086.9375,13.3255,359.0136,6,1); //
  1155. AddStaticVehicle(421,2086.5957,-2090.7112,13.4292,177.0427,25,1); //
  1156. AddStaticVehicle(422,1773.1512,-2082.2983,13.5359,359.3152,111,31); //
  1157. AddStaticVehicle(424,1745.4312,-2127.2371,13.3277,358.4977,2,2); //
  1158. AddStaticVehicle(426,1699.6639,-2093.4856,13.2895,359.8446,42,42); //
  1159. AddStaticVehicle(429,1762.8582,-2117.9116,13.1451,269.7401,13,13); //
  1160. AddStaticVehicle(440,1261.2045,-1796.3574,13.5329,358.9323,32,32); //
  1161. AddStaticVehicle(444,1277.7642,-1795.6394,13.7704,357.0524,32,42); //
  1162. AddStaticVehicle(445,1135.2518,-1698.7494,13.6596,180.5404,35,35); //
  1163. AddStaticVehicle(451,1066.1433,-1357.3958,13.0897,0.4214,125,125); //
  1164. AddStaticVehicle(506,1219.2655,-1410.6830,12.9831,270.5204,6,6); //
  1165. AddStaticVehicle(416,1181.3505,-1338.5973,13.8270,268.4014,1,3); // Ambulance
  1166. AddStaticVehicle(420,1191.4980,-1325.6393,13.1773,179.8307,6,1); //
  1167. AddStaticVehicle(420,1191.6094,-1346.1454,13.1793,179.2798,6,1); //
  1168. AddStaticVehicle(428,1422.0940,-1344.5942,13.6948,1.6520,4,75); //
  1169. AddStaticVehicle(439,1286.0500,-1137.3101,23.5523,90.4965,8,17); //
  1170. AddStaticVehicle(444,1210.6799,-1100.1733,25.6637,183.2065,32,66); //
  1171.  
  1172. //Airport (LS)
  1173. AddStaticVehicleEx(519,1602.49316406,-2623.76196289,14.54694748,0.00000000,-1,-1,900); //Shamal
  1174. AddStaticVehicleEx(519,1628.05786133,-2624.20629883,14.54694748,0.00000000,-1,-1,900); //Shamal
  1175. AddStaticVehicleEx(519,1651.77563477,-2624.23461914,14.54694748,0.00000000,-1,-1,900); //Shamal
  1176. AddStaticVehicleEx(519,1675.72583008,-2624.73730469,14.54694748,0.00000000,-1,-1,900); //Shamal
  1177. AddStaticVehicleEx(519,1699.00317383,-2625.00097656,14.54694748,0.00000000,-1,-1,900); //Shamal
  1178. AddStaticVehicleEx(593,1741.92358398,-2632.72705078,14.09705734,0.00000000,-1,-1,900); //Dodo
  1179. AddStaticVehicleEx(593,1768.04223633,-2632.86157227,14.09705734,0.00000000,-1,-1,900); //Dodo
  1180. AddStaticVehicleEx(513,1808.86926270,-2632.50317383,14.33163166,0.00000000,-1,-1,900); //Stunt
  1181. AddStaticVehicleEx(513,1822.12475586,-2632.54833984,14.33163166,0.00000000,-1,-1,900); //Stunt
  1182. AddStaticVehicleEx(513,1836.28283691,-2632.23925781,14.33163166,0.00000000,-1,-1,900); //Stunt
  1183. AddStaticVehicleEx(417,1544.89050293,-2446.11743164,13.55468750,214.00000000,-1,-1,900); //Leviathan
  1184. AddStaticVehicleEx(417,1564.89416504,-2443.75463867,13.55468750,214.00000000,-1,-1,900); //Leviathan
  1185. AddStaticVehicleEx(487,1592.35961914,-2451.34326172,13.81968784,219.99993896,-1,-1,900); //Maverick
  1186. AddStaticVehicleEx(487,1610.40087891,-2449.77563477,13.81968784,219.99572754,-1,-1,900); //Maverick
  1187.  
  1188.  
  1189. AddStaticVehicle(560,1973.9471,-1728.3358,15.6740,268.8695,9,39); //
  1190. AddStaticVehicle(562,1975.8925,-1692.5078,15.6274,89.3488,35,1); //
  1191. AddStaticVehicle(565,2390.8472,-1493.9200,23.4575,90.1655,42,42); //
  1192. AddStaticVehicle(566,2468.6011,-1545.9546,23.7828,91.7723,30,8); //
  1193. AddStaticVehicle(571,2490.7092,-1558.2249,23.3647,274.2814,36,2); //
  1194. AddStaticVehicle(573,2505.7622,-1535.7524,24.2679,177.8382,115,43); //
  1195. AddStaticVehicle(600,2519.7258,-1537.2168,23.2535,356.8831,43,8); //
  1196. AddStaticVehicle(602,2708.7246,-1189.6343,69.1237,268.4034,75,77); //
  1197. AddStaticVehicle(603,2752.9653,-1110.0433,69.4163,0.2933,69,1); //
  1198. AddStaticVehicle(604,2717.6113,-1315.8680,50.8129,179.5339,78,76); //
  1199. AddStaticVehicle(605,2742.7874,-1460.3485,30.1806,358.7147,43,8); //
  1200. AddStaticVehicle(400,2811.1116,-1432.4337,16.3437,3.4675,113,1); //
  1201. AddStaticVehicle(521,2791.8081,-1429.3348,23.7543,87.3197,87,118); //
  1202. AddStaticVehicle(411,2792.7446,-1449.6279,39.6498,90.4645,6,6); //
  1203. AddStaticVehicle(411,2816.9929,-1446.2472,39.6563,269.7231,85,85); //
  1204. AddStaticVehicle(451,2792.7192,-1432.4875,39.7681,87.0277,125,125); //
  1205. AddStaticVehicle(522,2796.3882,-1549.6428,10.4898,90.1214,3,8); //
  1206. AddStaticVehicle(526,2770.5667,-1605.5872,10.6885,90.7724,9,39); //
  1207. AddStaticVehicle(527,2743.4241,-1614.7783,12.3851,357.6433,53,1); //
  1208. AddStaticVehicle(529,2706.7659,-1842.8486,9.1274,338.6997,42,42); //
  1209. AddStaticVehicle(533,2782.6765,-1875.7839,9.5195,178.4063,74,1); //
  1210. AddStaticVehicle(534,2810.4614,-1837.1199,9.6499,267.8372,42,42); //
  1211. AddStaticVehicle(568,2879.9138,-1859.3710,4.4213,325.5295,17,1); //
  1212. AddStaticVehicle(424,2891.4314,-1909.1479,4.1350,181.9928,2,2); //
  1213. AddStaticVehicle(468,2887.1760,-1994.7191,5.4558,178.6574,46,46); //
  1214. AddStaticVehicle(493,2929.1023,-2057.4500,0.2582,87.0258,36,13); //
  1215. AddStaticVehicle(452,2933.3682,-2045.4890,-0.5488,88.5820,1,5); //
  1216. AddStaticVehicle(446,2920.5764,-2057.6011,0.0120,270.6396,1,5); //
  1217. AddStaticVehicle(460,2952.2100,-2052.0940,2.1444,174.3388,1,9); //
  1218. AddStaticVehicle(462,2740.0894,-1942.7235,13.1451,92.7067,13,13); //
  1219. AddStaticVehicle(463,2749.6504,-2104.8103,11.5784,265.7299,84,84); //
  1220. AddStaticVehicle(560,1928.6273,-2141.2437,13.2678,0.2657,21,1); //
  1221. AddStaticVehicle(561,1946.8700,-2123.8020,13.3616,90.2954,8,17); //
  1222. AddStaticVehicle(567,1798.6418,-2050.0444,13.4370,270.9849,88,64); //
  1223. AddStaticVehicle(498,1751.4166,-2059.3850,13.7033,181.3239,13,120); //
  1224. AddStaticVehicle(578,1773.9139,-2023.2332,14.6891,272.4109,1,1); //
  1225. AddStaticVehicle(411,1479.6533,-1843.8639,13.1404,267.7712,56,56); //
  1226. AddStaticVehicle(414,1476.0985,-1498.8483,13.6429,89.7816,28,1); //
  1227. AddStaticVehicle(415,1479.3143,-1237.6947,13.8485,269.8049,20,1); //
  1228. AddStaticVehicle(418,1330.8606,-1061.7308,28.6767,88.7811,119,119); //
  1229. AddStaticVehicle(409,1276.3948,-1381.4437,13.0138,178.8206,1,1); //
  1230. AddStaticVehicle(410,1282.5106,-1295.3256,13.0236,357.6100,36,1); //
  1231. AddStaticVehicle(486,1242.0427,-1265.8451,13.6237,92.8921,1,1); //
  1232. AddStaticVehicle(406,1268.8685,-1252.3369,15.1707,107.3903,1,1); //
  1233. AddStaticVehicle(560,1059.4990,-1136.5386,23.4450,86.6929,56,29); //
  1234. AddStaticVehicle(411,1056.4602,-1032.3748,31.6340,89.9467,1,1); //
  1235. AddStaticVehicle(445,1028.3601,-1054.9408,31.5363,180.4680,37,37); //
  1236. AddStaticVehicle(448,952.6252,-912.5894,45.3611,2.9908,3,6); //
  1237. AddStaticVehicle(455,884.6342,-1137.4799,24.1322,90.4818,84,58); //
  1238. AddStaticVehicle(456,851.4206,-1302.4886,13.7775,181.9248,91,63); //
  1239. AddStaticVehicle(522,1050.4155,-1289.0911,13.0510,179.1246,39,106); //
  1240. AddStaticVehicle(527,1014.6523,-1369.4447,12.8260,271.7850,75,1); //
  1241. AddStaticVehicle(533,893.9490,-1360.1431,13.5758,269.0062,77,1); //
  1242. AddStaticVehicle(535,738.0388,-1436.0945,13.3012,271.7214,28,1); //
  1243. AddStaticVehicle(536,480.0226,-1516.8356,19.9839,184.6269,12,1); //
  1244. AddStaticVehicle(540,544.4927,-1508.8596,14.2423,359.3493,42,42); //
  1245. AddStaticVehicle(541,338.3979,-1607.2764,32.6801,0.8414,58,8); //
  1246. AddStaticVehicle(543,784.3918,-820.5186,68.7186,194.3683,32,8); //
  1247. AddStaticVehicle(545,812.9794,-768.5654,76.4932,104.2797,47,1); //
  1248. AddStaticVehicle(546,1007.1812,-663.4985,120.8698,213.7551,78,38); //
  1249. AddStaticVehicle(549,1361.4869,-620.4485,108.8300,104.8417,72,39); //
  1250. AddStaticVehicle(572,1475.3203,-702.3226,92.4138,269.4503,116,1); //
  1251. AddStaticVehicle(560,1530.3494,-812.9666,71.6773,270.7061,56,29); //
  1252. AddStaticVehicle(561,1464.1514,-902.0443,54.6498,179.2653,54,38); //
  1253. AddStaticVehicle(411,1172.2279,-881.3878,42.9081,97.9175,53,53); //
  1254. AddStaticVehicle(600,1114.9319,-926.8351,42.8933,89.4798,32,8); //
  1255. AddStaticVehicle(603,1095.8495,-869.3295,43.0182,89.3896,69,1); //
  1256. AddStaticVehicle(400,980.6792,-904.2131,42.5927,183.5705,123,1); //
  1257. AddStaticVehicle(404,834.5959,-925.2833,54.9829,60.9081,123,92); //
  1258. AddStaticVehicle(405,833.2117,-860.1843,69.7675,19.6952,36,1); //
  1259. AddStaticVehicle(410,796.7640,-843.6369,60.2915,11.2662,9,1); //
  1260. AddStaticVehicleEx(405,2404.10546875,-1397.28955078,24.05439949,0.00000000,-1,-1,900); //Sentinel
  1261. AddStaticVehicleEx(409,2357.95068359,-1363.88928223,23.94581604,0.00000000,-1,-1,900); //Stretch
  1262. AddStaticVehicleEx(540,2386.35742188,-1351.78100586,24.45530510,0.00000000,-1,-1,900); //Vincent
  1263. AddStaticVehicleEx(561,2376.14428711,-1320.61645508,23.92399979,0.00000000,-1,-1,900); //Stratum
  1264. AddStaticVehicleEx(463,2348.61474609,-1263.26757812,22.12603378,272.00000000,-1,-1,900); //Freeway
  1265. AddStaticVehicleEx(422,2347.32519531,-1252.51977539,22.57999992,270.00000000,-1,-1,900); //Bobcat
  1266. AddStaticVehicleEx(554,2346.17163086,-1221.64086914,22.69499969,0.00000000,-1,-1,900); //Yosemite
  1267. AddStaticVehicleEx(514,2411.67993164,-1228.56323242,24.99980736,0.00000000,-1,-1,900); //Tanker
  1268. AddStaticVehicleEx(411,2428.06982422,-1227.90234375,24.91224670,0.00000000,-1,-1,900); //Infernus
  1269. AddStaticVehicleEx(541,2471.79931641,-1251.54309082,26.46301270,89.99993896,-1,-1,900); //Bullet
  1270. AddStaticVehicleEx(555,2506.51904297,-1277.77490234,34.63193512,179.99993896,-1,-1,900); //Windsor
  1271. AddStaticVehicleEx(602,2516.76196289,-1297.55761719,34.75156403,0.00000000,-1,-1,900); //Alpha
  1272. AddStaticVehicleEx(401,2506.51733398,-1366.55187988,28.39906502,177.99993896,-1,-1,900); //Bravura
  1273. AddStaticVehicleEx(491,2517.00708008,-1393.34033203,28.43826675,0.00000000,-1,-1,900); //Virgo
  1274. AddStaticVehicleEx(527,2683.12133789,-1429.45336914,30.29467773,0.00000000,-1,-1,900); //Cadrona
  1275. AddStaticVehicleEx(533,2623.14672852,-1261.46813965,48.92050934,270.50000000,-1,-1,900); //Feltzer
  1276. AddStaticVehicleEx(545,2137.59619141,-1283.52319336,24.75648880,0.00000000,-1,-1,900); //Hustler
  1277. AddStaticVehicleEx(475,2196.45190430,-1286.17517090,24.09451103,0.00000000,-1,-1,900); //Sabre
  1278. AddStaticVehicleEx(412,2256.12939453,-1287.19006348,24.53050232,0.00000000,-1,-1,900); //Voodoo
  1279. AddStaticVehicleEx(518,2140.97241211,-1315.43017578,24.28842545,0.00000000,-1,-1,900); //Buccaneer
  1280. AddStaticVehicleEx(536,2148.44506836,-1199.37609863,23.72622490,270.00000000,-1,-1,900); //Blade
  1281. AddStaticVehicle(416,2037.1030,-1426.9613,17.0979,179.7931,1,3); // Ambulance
  1282. AddStaticVehicle(416,2026.4424,-1409.2092,17.0986,90.3309,1,3); // Ambulance
  1283. AddStaticVehicle(481,1944.9799,-1423.3868,9.8702,99.7650,3,3); // bmx
  1284. AddStaticVehicle(522,1889.6011,-1433.0640,9.9852,208.0781,36,105); // NRG
  1285. AddStaticVehicle(471,1908.2617,-1388.4788,9.8670,60.9329,103,111); // Quatd
  1286. AddStaticVehicle(560,1842.8820,-1309.2706,13.0958,179.4665,37,0); // Sultan
  1287. AddStaticVehicle(481,1907.0743,-1220.4691,17.3505,326.9318,6,6); // BMX
  1288. AddStaticVehicle(411,1910.5283,-1123.9529,24.9005,1.0823,1,1); // Infernus
  1289. AddStaticVehicle(506,1989.7363,-1119.2100,26.5294,88.4550,7,7); // Super GT
  1290. AddStaticVehicle(491,2086.0562,-1140.2959,24.7930,268.7915,64,72); // Virgo
  1291. AddStaticVehicle(492,2161.5000,-1177.9441,23.6004,270.3815,77,26); // Greenwood
  1292. AddStaticVehicle(496,2148.7170,-1148.0298,24.1607,88.0711,66,72); //
  1293. AddStaticVehicle(471,2309.2771,-1052.1664,49.9301,342.6730,74,91); //
  1294. AddStaticVehicle(600,2344.2231,-1059.2657,52.8345,289.9105,83,13); //
  1295. AddStaticVehicle(478,2385.0522,-1029.8955,53.6107,316.6493,66,1); //
  1296. AddStaticVehicle(479,2429.7053,-1019.3953,53.9940,193.6098,59,36); //
  1297. AddStaticVehicle(482,2452.3965,-1050.4058,59.7480,356.6701,48,48); //
  1298. AddStaticVehicle(483,2570.6553,-1030.9257,69.5739,357.5074,1,31); //
  1299. AddStaticVehicle(489,2597.9280,-1062.3071,69.7218,1.1586,14,123); //
  1300. AddStaticVehicle(491,1622.1725,-1094.0273,23.6663,90.7516,52,66); //
  1301. AddStaticVehicle(561,1632.4114,-1013.2068,23.7127,341.4184,65,79); //
  1302. AddStaticVehicle(562,1685.1648,-1035.7760,23.5654,179.1545,113,1); //
  1303. AddStaticVehicle(566,1692.5903,-1084.7720,23.6853,180.2076,83,1); //
  1304. AddStaticVehicle(515,1651.2184,-1886.2770,14.5733,268.2462,24,77); //
  1305. AddStaticVehicle(518,1838.0511,-1871.3605,13.0550,179.1560,9,39); //
  1306. AddStaticVehicle(521,1804.8612,-1930.3901,12.9552,178.1389,87,118); //
  1307. AddStaticVehicle(492,1780.0067,-1932.6024,13.1682,181.3466,28,56); //
  1308. AddStaticVehicle(496,1804.9237,-1694.1798,13.2584,5.0938,37,19); //
  1309. AddStaticVehicle(494,1782.0830,-1702.2521,13.4023,1.4439,42,33); //
  1310. AddStaticVehicle(499,1609.2104,-1669.8256,13.5386,0.9787,109,32); //
  1311.  
  1312.  
  1313. //Special Cars (House cars/Reg/Admins)
  1314. AdminCar1 = AddStaticVehicle(560,969.6414,-760.4233,111.0436,278.1985,41,29); // Admin Sultan
  1315. AdminCar2 = AddStaticVehicle(522,962.8135,-764.6016,109.7994,275.8972,3,8); // Admin NRG
  1316. House4Car1 = AddStaticVehicle(411,172.0054,-1340.0504,69.4026,356.1563,6,6); // House4car
  1317. House4Car2 = AddStaticVehicle(536,166.2974,-1340.4438,69.4719,358.9040,9,1); // House4Car
  1318. House6Car1 = AddStaticVehicle(560,979.3285,-830.7790,95.3591,207.9206,21,1); // house6 car
  1319. House7Car1 = AddStaticVehicle(445,1088.6074,-641.3738,113.0374,271.2308,39,39); // House 7 car
  1320.  
  1321.  
  1322. for(new v =0; v<MAX_VEHICLES; v ++)
  1323. {
  1324. //VehicleInfo[v][bought] = 999;
  1325. VehicleInfo[v][bomb] = 0;
  1326. }
  1327. return 1;
  1328. }
  1329.  
  1330. public OnGameModeExit()
  1331. {
  1332. ResetGVars();
  1333. return 1;
  1334. }
  1335.  
  1336. public OnPlayerRequestClass(playerid, classid)
  1337. {
  1338. SetPlayerInterior(playerid, 0);
  1339. SetPlayerPos(playerid,2025.0773,-1423.5450,16.9922);
  1340. SetPlayerCameraPos(playerid,2016.2635,-1432.2692,13.5458);
  1341. SetPlayerCameraLookAt(playerid,2025.0773,-1423.5450,16.9922);
  1342. SetPlayerFacingAngle(playerid, 135.4);
  1343. SetPlayerTeamFromClass(playerid, classid);
  1344. SetPlayerColor(playerid, COLOR_DEADCONNECT);
  1345. SetPVarInt(playerid, "Spawned", 0);
  1346.  
  1347. switch(classid)
  1348. {
  1349. case 0, 1, 2, 3, 4, 5:
  1350. {
  1351. GameTextForPlayer(playerid, "~b~Police officer", 3000, 5);
  1352. }
  1353. case 6:
  1354. {
  1355. GameTextForPlayer(playerid, "~p~Los Santos Army", 3000, 5);
  1356. }
  1357. case 7:
  1358. {
  1359. GameTextForPlayer(playerid, "~b~FBI official", 3000, 5);
  1360. }
  1361. case 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29:
  1362. {
  1363. GameTextForPlayer(playerid, "~w~Civilian ~n~ Choose your job when you spawn", 3000, 5);
  1364. }
  1365. }
  1366. return 1;
  1367. }
  1368.  
  1369. SetPlayerTeamFromClass(playerid, classid)
  1370. {
  1371. if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5)
  1372. {
  1373. gTeam[playerid] = Team_Cop;
  1374. }
  1375. else if(classid == 6)
  1376. {
  1377. gTeam[playerid] = Team_Army;
  1378. }
  1379. else if(classid == 7)
  1380. {
  1381. gTeam[playerid] = Team_FBI;
  1382. }
  1383. else if(classid >= 8)
  1384. {
  1385. gTeam[playerid] = Team_Civi;
  1386. }
  1387. }
  1388.  
  1389. public SetPlayerToTeamColor(playerid)
  1390. {
  1391. if(gTeam[playerid] == Team_Cop)
  1392. {
  1393. SetPlayerColor(playerid, COLOR_BLUE);
  1394. }
  1395. if(gTeam[playerid] == Team_Army)
  1396. {
  1397. SetPlayerColor(playerid, COLOR_PURPLE);
  1398. }
  1399. if(gTeam[playerid] == Team_FBI)
  1400. {
  1401. SetPlayerColor(playerid, COLOR_BLUE);
  1402. }
  1403. if(gTeam[playerid] >= 5)
  1404. {
  1405. SetPlayerColor(playerid, COLOR_WHITE);
  1406. }
  1407. return 1;
  1408. }
  1409.  
  1410. public OnPlayerConnect(playerid)
  1411. {
  1412. //xObjects
  1413. for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
  1414.  
  1415. zoneupdates[playerid] =1;
  1416. GameTextForPlayer(playerid, "~b~COPS ~n~ ~p~ and ~n~ ~r~ROBBERS", 3000, 5);
  1417. SendClientMessage(playerid, COLOR_BLUE, "Welcome to Cops n Robbers version "VERSION"");
  1418. SendClientMessage(playerid, COLOR_YELLOW, "This script was created by DarkLord.");
  1419. SendClientMessage(playerid, COLOR_RED, "Be sure to read /rules and /pc when you spawn.");
  1420. SendClientMessage(playerid, COLOR_ORANGE, "Login is required to play on this server.");
  1421. new string[200], pIP[16];
  1422. GetPlayerIp(playerid, pIP, 16);
  1423. SetPVarInt(playerid, "Spawned", 0);
  1424. SetPlayerColor(playerid, COLOR_DEADCONNECT);
  1425. format(string, 200, "%s has joined the server.", PlayerInfo(playerid));
  1426. SendClientMessageToAll(COLOR_GREEN, string);
  1427. if(udb_Exists(PlayerName(playerid)))
  1428. {
  1429. SendClientMessage(playerid, COLOR_ERROR, "This player name is taken. Please login.");
  1430. LogPlayer(playerid);
  1431. }
  1432. else if (!udb_Exists(PlayerName(playerid)))
  1433. {
  1434. SendClientMessage(playerid, COLOR_ERROR, "This player name is not registered. Please do so before you spawn.");
  1435. RegisterPlayer(playerid);
  1436. }
  1437.  
  1438. //Map Icons
  1439. SetPlayerMapIcon(playerid, 0, 2174.574951, -2249.029785, 13.303776,42, 0,1); // Bomb shop
  1440. SetPlayerMapIcon(playerid, 1, 2147.854003, -1367.340209, 25.641782, 24, 0,1); // Drug House
  1441. SetPlayerMapIcon(playerid, 2, 2036.381835, -1410.065917, 17.164062,22, 0,1); // LS Hospital
  1442. SetPlayerMapIcon(playerid, 3, 363.430023, -2008.615844, 7.835937, 25, 0,1); // Amusement Park Terrorism
  1443. SetPlayerMapIcon(playerid, 4,1416.219360, -767.366699, 95.786659,25,0,1); // Hollywood sign terrorism
  1444. SetPlayerMapIcon(playerid, 5,1510.626342, -1052.714355, 25.062500,52,0,1); // Bank
  1445. SetPlayerMapIcon(playerid, 6, 1440.395629, -2286.691894, 13.546875, 25, 0, 1); //LS Airport Terrorism
  1446. SetPlayerMapIcon(playerid, 7, -1413.557250, -300.654418, 14.141115, 5, 0, 1); // Airport location
  1447. SetPlayerMapIcon(playerid, 8, 1685.137939, 1448.447631, 10.770167, 5, 0, 1); // Airport Location
  1448. SetPlayerMapIcon(playerid, 9, 1642.319335, -2237.777832, 13.498379, 5, 0, 1); // Airport
  1449. /* Text Draw Stuff */
  1450.  
  1451.  
  1452. return 1;
  1453. }
  1454.  
  1455. public OnPlayerDisconnect(playerid, reason)
  1456. {
  1457. //xObject
  1458. for(new i = 0; i < sizeof(Objects); i++) ////Xobj
  1459. {
  1460. if(Player[playerid][view][i])
  1461. {
  1462. Player[playerid][view][i] = false;
  1463. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  1464. }
  1465. }
  1466.  
  1467. new string[200];
  1468. PLAYERLIST_authed[playerid]=false;
  1469. switch(reason)
  1470. {
  1471. case 0: format(string, 200, "%s has left the server. (Timeout)", PlayerInfo(playerid));
  1472. case 1: format(string, 200, "%s has left the server. (Left)", PlayerInfo(playerid));
  1473. case 2: format(string, 200, "%s has left the server. (Kicked)", PlayerInfo(playerid));
  1474. }
  1475. SendClientMessageToAll(COLOR_DEADCONNECT, string);
  1476. playerCheckpoint[playerid] =0;
  1477. RemoveVariables(playerid);
  1478. return 1;
  1479. }
  1480.  
  1481. public OnPlayerSpawn(playerid)
  1482. {
  1483. SetPlayerTime(playerid, gametime, 0);
  1484. new string[200];
  1485. format(string, 200, "[SPAWN] %s", PlayerInfo(playerid));
  1486. print(string);
  1487. SetPVarInt(playerid, "Spawned", 1);
  1488. GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
  1489. SetPVarInt(playerid, "Cash", 0);
  1490. SetPlayerWantedLevel(playerid, GetPVarInt(playerid, "WantedLevel"));
  1491. if(GetPVarInt(playerid, "Banned") == 1)
  1492. {
  1493. format(string, sizeof(string), "[DarkyBot] %s banned player name: ban evade", PlayerInfo(playerid));
  1494. SendClientMessageToAll(COLOR_PURPLE, string);
  1495. print(string);
  1496. format(string, sizeof(string), "Player %s has been banned for ban evasion (Banned player name)", PlayerInfo(playerid));
  1497. print(string);
  1498. Ban(playerid);
  1499. return 1;
  1500. }
  1501. SetPlayerWantedLevel(playerid, GetPVarInt(playerid, "WantedLevel"));
  1502. SetPlayerToTeamColor(playerid);
  1503. if(gTeam[playerid] == Team_Cop)
  1504. {
  1505. SendClientMessage(playerid, COLOR_DODGERBLUE, "**Police Officer**");
  1506. SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
  1507. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest wanted suspects in Los Santos and surrounding areas.");
  1508. SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
  1509. GivePlayerWeapon(playerid, 3, 1);
  1510. GivePlayerWeapon(playerid, 22, 100);
  1511. GivePlayerWeapon(playerid, 29, 500);
  1512. GivePlayerWeapon(playerid, 33, 10);
  1513. SetPlayerArmour(playerid, 100.0);
  1514. SetPVarInt(playerid, "CopRadio", 1);
  1515. SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
  1516. SetCameraBehindPlayer(playerid);
  1517. }
  1518. if(gTeam[playerid] == Team_FBI)
  1519. {
  1520. SendClientMessage(playerid, COLOR_DODGERBLUE, "**FBI Agent**");
  1521. SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
  1522. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest and catch criminals in Los Santos and nearby areas.");
  1523. SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
  1524. GivePlayerWeapon(playerid, 3, 1);
  1525. GivePlayerWeapon(playerid, 22, 100);
  1526. GivePlayerWeapon(playerid, 29, 500);
  1527. GivePlayerWeapon(playerid, 31, 100);
  1528. SetPlayerArmour(playerid, 100.0);
  1529. SetPVarInt(playerid, "CopRadio", 1);
  1530. SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
  1531. SetCameraBehindPlayer(playerid);
  1532. }
  1533. if(gTeam[playerid] == Team_Army)
  1534. {
  1535. SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
  1536. SendClientMessage(playerid, COLOR_PURPLE, "Type /commands for your commands");
  1537. SendClientMessage(playerid, COLOR_PURPLE, "Your job is to take down MOST WANTED criminals by any means necessary.");
  1538. SendClientMessage(playerid, COLOR_RED, "YOU CANNOT SHOOT AT OTHER ARMY, POLICE, OR NON MOST WANTED PLAYERS.");
  1539. SendClientMessage(playerid, COLOR_PURPLE, "Type Stay away from red players or die with them before starting playing.");
  1540. GivePlayerWeapon(playerid, 24, 50);
  1541. GivePlayerWeapon(playerid, 31, 500);
  1542. GivePlayerWeapon(playerid, 34, 20);
  1543. GivePlayerWeapon(playerid, 26, 25);
  1544. SetPlayerArmour(playerid, 100.0);
  1545. SetPVarInt(playerid, "CopRadio", 1);
  1546. SetPlayerPos(playerid,1767.4132,-2435.5422,13.5547);
  1547. SetCameraBehindPlayer(playerid);
  1548. }
  1549. if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal)
  1550. {
  1551. SelectSkill(playerid);
  1552. new rnd = random(sizeof(SpawnPoints));
  1553. SetPlayerPos(playerid, SpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
  1554. SetPlayerFacingAngle(playerid, SpawnPoints[rnd][3]);
  1555. SetCameraBehindPlayer(playerid);
  1556. }
  1557. if(GetPVarInt(playerid, "JailTime") > 90)
  1558. {
  1559. new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  1560. SetPlayerInterior(playerid, 10);
  1561. format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
  1562. print(string);
  1563. SendClientMessageToAll(COLOR_RED, string);
  1564. SetPVarInt(playerid, "Jailed", 90);
  1565. }
  1566. SetTimer("SetPlayerTeamFromNoTeam", 1000*15, 0);
  1567. return 1;
  1568. }
  1569.  
  1570. public SetPlayerTeamFromNoTeam(playerid)
  1571. {
  1572. for(new i = 0; i<MAX_PLAYERS; i ++)
  1573. {
  1574. if(gTeam[i] != Team_Cop && gTeam[i] != Team_FBI && gTeam[i] != Team_Army && gTeam[i] != Team_Rape && gTeam[i] != Team_Terror && gTeam[i] != Team_PrvtMed && gTeam[i] != Team_Steal)
  1575. {
  1576. gTeam[i] = Team_Rape;
  1577. SendClientMessage(i, COLOR_RED, "Your team has been decided by default. You failed to choose a team.");
  1578. return 1;
  1579. }
  1580. return 1;
  1581. }
  1582. return 1;
  1583. }
  1584. public OnPlayerDeath(playerid, killerid, reason)
  1585. {
  1586. new string[120];
  1587. GivePlayerMoney(playerid, GetPlayerMoney(playerid)+1000);
  1588. SendClientMessage(playerid, COLOR_BLUE, "You have been charged $1,000 for medical services.");
  1589. SetPlayerWantedLevel(playerid, 0);
  1590. if(!IsPlayerConnected(killerid))
  1591. {
  1592. format(string, sizeof(string), "[DEATH] %s killed himself for a odd reason.", PlayerInfo(playerid));
  1593. print(string);
  1594. return 1;
  1595. }
  1596. format(string, sizeof(string), "%s has killed %s (%s)", PlayerInfo(killerid),PlayerInfo(playerid), aWeaponNames[reason]);
  1597. print(string);
  1598. if(gTeam[killerid] == Team_Cop || gTeam[killerid] == Team_Army || gTeam[killerid] == Team_FBI)
  1599. {
  1600. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  1601. {
  1602. format(string, 120, "[TEAM KILL] %s was killed by %s (%s)", PlayerInfo(playerid), PlayerInfo(killerid), aWeaponNames[reason]);
  1603. print(string);
  1604. DecreaseScore(killerid, 0);
  1605. return 1;
  1606. }
  1607. if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal)
  1608. {
  1609. new pwl = GetPlayerWantedLevel(playerid);
  1610. if(pwl == 0)
  1611. {
  1612. format(string, sizeof(string), "Police Officer %s has taken down innocent civillian %s with deadly force.", PlayerInfo(killerid), PlayerInfo(playerid));
  1613. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1614. print(string);
  1615. DecreaseScore(killerid, 0);
  1616. return 1;
  1617. }
  1618. if(pwl == 1 || pwl == 2)
  1619. {
  1620. format(string, sizeof(string), "Police Officer %s has taken down least wanted player %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1621. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1622. print(string);
  1623. DecreaseScore(killerid, 0);
  1624. return 1;
  1625. }
  1626. if(pwl == 3 || pwl == 4 || pwl == 5)
  1627. {
  1628. format(string, sizeof(string), "Police officer %s has taken down wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1629. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1630. print(string);
  1631. IncreaseScore(killerid, 1);
  1632. GivePlayerMoney(killerid, 5000);
  1633. return 1;
  1634. }
  1635. if(pwl == 6)
  1636. {
  1637. format(string, sizeof(string), "Police Officer %s has taken down most wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1638. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1639. print(string);
  1640. IncreaseScore(killerid, 1);
  1641. GivePlayerMoney(killerid, 5000);
  1642. return 1;
  1643. }
  1644. return 1;
  1645. }
  1646. }
  1647. SetPVarInt(playerid, "HasSTDs", 0);
  1648. SetPVarInt(playerid, "LastVehicle", 0);
  1649. SetPVarInt(playerid, "InEvent", 0);
  1650. SetPVarInt(playerid, "CalledForMedic", 0);
  1651. SetPVarInt(playerid, "IsSick", 0);
  1652. playerCheckpoint[playerid] =0;
  1653. return 1;
  1654. }
  1655.  
  1656. public OnVehicleSpawn(vehicleid)
  1657. {
  1658. if(vehicleid == AdminCar1)
  1659. {
  1660. ChangeVehiclePaintjob(AdminCar1, 1);
  1661. AddVehicleComponent(AdminCar1, 1026);
  1662. AddVehicleComponent(AdminCar1, 1027);
  1663. AddVehicleComponent(AdminCar1, 1028);
  1664. AddVehicleComponent(AdminCar1, 1032);
  1665. AddVehicleComponent(AdminCar1, 1141);
  1666. AddVehicleComponent(AdminCar1, 1169);
  1667. }
  1668. return 1;
  1669. }
  1670.  
  1671. public OnVehicleDeath(vehicleid, killerid)
  1672. {
  1673. return 1;
  1674. }
  1675.  
  1676. public OnPlayerText(playerid, text[])
  1677. {
  1678. if(strfind(text, "rcon", true) != -1)
  1679. {
  1680. return 0;
  1681. }
  1682. if(strfind(text, "login",true) != -1)
  1683. {
  1684. return 0;
  1685. }
  1686. if(GetPVarInt(playerid, "Muted") == 1)
  1687. {
  1688. SendClientMessage(playerid, COLOR_ERROR, "You are muted. You cannot talk.");
  1689. return 0;
  1690. }
  1691. return 1;
  1692. }
  1693.  
  1694. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1695. {
  1696. return 1;
  1697. }
  1698.  
  1699. public OnPlayerExitVehicle(playerid, vehicleid)
  1700. {
  1701. new engine, lights, alarm, doors, bonnet, boot, objective;
  1702. new vid = GetPlayerVehicleID(playerid);
  1703. GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
  1704. if(doors == VEHICLE_PARAMS_ON)
  1705. {
  1706. SetVehicleParamsEx(vid, engine, lights, alarm, VEHICLE_PARAMS_OFF, bonnet, boot, objective);
  1707. SendClientMessage(playerid, COLOR_CYAN, "[VEHICLE] The doors have automatically unlocked.");
  1708. return 1;
  1709. }
  1710. return 1;
  1711. }
  1712.  
  1713. public OnPlayerStateChange(playerid, newstate, oldstate)
  1714. {
  1715. new oname[MAX_PLAYER_NAME];
  1716. GetPlayerName(playerid, oname, sizeof oname);
  1717. if(newstate == PLAYER_STATE_DRIVER)
  1718. {
  1719. if (IsArmyVehicle(GetPlayerVehicleID(playerid))) {
  1720. if(gTeam[playerid] !=Team_Army)
  1721. {
  1722. RemovePlayerFromVehicle(playerid);
  1723. SendClientMessage(playerid, COLOR_ERROR, "You are not an Army official. You cannot drive/fly an army vehicle.");
  1724. return 1;
  1725. }
  1726. }
  1727. if(GetPlayerVehicleID(playerid) == House4Car1 || GetPlayerVehicleID(playerid) == House4Car2)
  1728. {
  1729. if(!strcmp(House_Four_Owner, oname, true))
  1730. {
  1731. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1732. }
  1733. else {
  1734. RemovePlayerFromVehicle(playerid);
  1735. SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
  1736. return 1;
  1737. }
  1738. }
  1739. if(GetPlayerVehicleID(playerid) == House7Car1)
  1740. {
  1741. if(!strcmp(House_Seven_Owner, oname, true))
  1742. {
  1743. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1744. }
  1745. else {
  1746. RemovePlayerFromVehicle(playerid);
  1747. SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
  1748. return 1;
  1749. }
  1750. }
  1751.  
  1752. if(GetPlayerVehicleID(playerid) == House6Car1)
  1753. {
  1754. if(strcmp(House_Six_Owner, oname,true))
  1755. {
  1756. RemovePlayerFromVehicle(playerid);
  1757. SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
  1758. return 1;
  1759. }
  1760. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1761. }
  1762. if (IsLSPDVehicle(GetPlayerVehicleID(playerid))) {
  1763. if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_FBI)
  1764. {
  1765. new string[120];
  1766. format(string, 120, "[CAR THEFT] %s has stolen a police vehicle.", PlayerInfo(playerid));
  1767. SendCopMessage(string);
  1768. format(string, 120, "Type /radiooff to turn off your police radio.");
  1769. SendCopMessage(string);
  1770. IncreaseWantedLevel(playerid, 2);
  1771. }
  1772. }
  1773. if(GetPlayerVehicleID(playerid) == AdminCar1 || GetPlayerVehicleID(playerid) == AdminCar2)
  1774. {
  1775. if(GetPVarInt(playerid, "AdminLevel") == 0)
  1776. {
  1777. SendClientMessage(playerid, COLOR_ADMIN, "You cannot drive the Admin Vehicle.");
  1778. RemovePlayerFromVehicle(playerid);
  1779. return 1;
  1780. }
  1781. SendClientMessage(playerid, COLOR_ADMIN, "Welcome to your Admin Only Vehicle!");
  1782. }
  1783. }
  1784. if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
  1785. ShowPlayerSpeedo(playerid);
  1786. SetPVarInt(playerid, "LastVehicle", GetPlayerVehicleID(playerid));
  1787. }
  1788. return 1;
  1789. }
  1790.  
  1791. public OnPlayerEnterCheckpoint(playerid)
  1792. {
  1793. if(getCheckpointType(playerid) == CP_StoreOne)
  1794. {
  1795. new string[200];
  1796. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nAttempt Robbery");
  1797. ShowPlayerDialog(playerid, DIALOG_STOREONE, DIALOG_STYLE_LIST,"69 Cent Store", string, "Okay", "Cancel");
  1798. return 1;
  1799. }
  1800. if(getCheckpointType(playerid) == CP_PrisonEnter)
  1801. {
  1802. SetPlayerInterior(playerid, 10);
  1803. SetPlayerPos(playerid, 242.2959,109.6138,1003.2188);
  1804. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  1805. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] Welcome to the Los Santos Prison. Don't try anything stupid.");
  1806. return 1;
  1807. }
  1808. if(getCheckpointType(playerid) == CP_PrisonExit)
  1809. {
  1810. SetPlayerInterior(playerid, 0);
  1811. SetPlayerPos(playerid, 1481.3938,-1763.8625,18.7958);
  1812. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  1813. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] We hope you enjoyed your stay in the Los Santos Prison.");
  1814. return 1;
  1815. }
  1816. if(getCheckpointType(playerid) == CP_BankEnter)
  1817. {
  1818. SetPlayerInterior(playerid, 0);
  1819. SetPlayerPos(playerid, 2313.4858,-14.6773,26.7422);
  1820. SendClientMessage(playerid, COLOR_GREY,"**LOS SANTOS BANK**");
  1821. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[BANK] We hope you invest your money with us today!");
  1822. return 1;
  1823. }
  1824. if(getCheckpointType(playerid) == CP_BankExit)
  1825. {
  1826. SetPlayerInterior(playerid, 0);
  1827. SetPlayerPos(playerid,1516.7577,-1057.4893,25.0625);
  1828. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
  1829. SendClientMessage(playerid, COLOR_BLUE, "[BANK] We hope you enjoyed your stay!");
  1830. return 1;
  1831. }
  1832. if(getCheckpointType(playerid) == CP_Bank)
  1833. {
  1834. new string[120];
  1835. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
  1836. format(string, 120, "Welcome back, %s!", PlayerInfo(playerid));
  1837. SendClientMessage(playerid, COLOR_GREY, string);
  1838. SendClientMessage(playerid, COLOR_GREY, "How may we help you today, sir?");
  1839. SendClientMessage(playerid, COLOR_GREY, "Type /bankstate to find out your bankstate. Type /withdraw (AMOUNT) to take out money. Type /emptypack to deposit your pack.");
  1840. SendClientMessage(playerid, COLOR_GREY, "Type /transfer (ID) (amount) to transfer a player money. Type /deposit (amount) to deposit money.");
  1841. SendClientMessage(playerid, COLOR_GREY, "If that doesn't do for you, type /robbank to attempt robbery.");
  1842. return 1;
  1843. }
  1844. if(getCheckpointType(playerid) == CP_BuyExp)
  1845. {
  1846. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BOMB SHOP**");
  1847. if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_RED, "Sorry, we do not accept your kind.");
  1848. SendClientMessage(playerid, COLOR_BLUE, "If you're intereseted into buying some explosives, type /buyexp");
  1849. return 1;
  1850. }
  1851. if(getCheckpointType(playerid) == CP_AdminHouse)
  1852. {
  1853. SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
  1854. SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House.");
  1855. if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You cannot enter the Admin House.");
  1856. SetPlayerPos(playerid, 2320.0864,-1020.3311,1050.2109);
  1857. SetPlayerInterior(playerid, 9);
  1858. SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House. Please enjoy your stay.");
  1859. return 1;
  1860. }
  1861. if(getCheckpointType(playerid) == CP_AdminHouseExit)
  1862. {
  1863. SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
  1864. SendClientMessage(playerid, COLOR_HOUSE, "Hope you enjoyed your stay at the Admin House.");
  1865. SetPlayerPos(playerid, 977.4326,-764.2095,112.2005);
  1866. SetPlayerInterior(playerid, 0);
  1867. return 1;
  1868. }
  1869. if(getCheckpointType(playerid) == CP_SexShopEnter)
  1870. {
  1871. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  1872. SendClientMessage(playerid, COLOR_PINK, "Welcome to the South Los Santos Sex Shop! Please go by the counter to statisfy your sexual needs");
  1873. SetPlayerPos(playerid, -100.2078,-20.4230,1000.7188);
  1874. SetPlayerInterior(playerid, 3);
  1875. return 1;
  1876. }
  1877. if(getCheckpointType(playerid) == CP_SexShopExit)
  1878. {
  1879. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  1880. SendClientMessage(playerid, COLOR_PINK, "We hope you enjoyed your time in the Los Santos Sex Shop. We sure did like you :)");
  1881. SetPlayerPos(playerid,1946.5485,-2119.4226,13.5480);
  1882. SetPlayerInterior(playerid, 0);
  1883. return 1;
  1884. }
  1885. if(getCheckpointType(playerid) == CP_SexShopCounter)
  1886. {
  1887. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  1888. SendClientMessage(playerid, COLOR_PINK, "Please choose something from the menu!");
  1889. ShowPlayerDialog(playerid, DIALOG_SEXSHOP, DIALOG_STYLE_LIST, "Welcome to the Sex Shop!", "Buy a dildo\nBuy a porn magazine\nBuy some jelly\nAttempt Robbery", "Okay", "Cancel");
  1890. return 1;
  1891. }
  1892. if(getCheckpointType(playerid) == CP_GasOneEnter)
  1893. {
  1894. SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
  1895. SendClientMessage(playerid, COLOR_GREY, "Welcome to the Gas Station! Please go by the counter to buy something.");
  1896. SetPlayerPos(playerid, -25.5497,-183.2443,1003.5469);
  1897. SetPlayerInterior(playerid, 17);
  1898. return 1;
  1899. }
  1900. if(getCheckpointType(playerid) == CP_GasOneCounter)
  1901. {
  1902. SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
  1903. SendClientMessage(playerid, COLOR_GREY, "Please choose something from the menu!");
  1904. ShowPlayerDialog(playerid, DIALOG_GASONE, DIALOG_STYLE_LIST, "Welcome to the Gas Station!", "Buy Cigar\nBuy snacks\nBuy Condom\nAttempt Robbery", "Okay", "Cancel");
  1905. return 1;
  1906. }
  1907. if(getCheckpointType(playerid) == CP_GasOneExit)
  1908. {
  1909. SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
  1910. SendClientMessage(playerid, COLOR_GREY, "We hope you enjoyed your stay at out gas station!");
  1911. SetPlayerPos(playerid,1932.1599,-1785.1970,13.3828);
  1912. SetPlayerInterior(playerid, 0);
  1913. return 1;
  1914. }
  1915. if(getCheckpointType(playerid) == CP_DanceCounter)
  1916. {
  1917. SendClientMessage(playerid, COLOR_GREY, "**DANCE DANCE REVOLUTION**");
  1918. SendClientMessage(playerid, COLOR_GREEN, "Welcome to Dance Dance Revolution! Select an option on the menu!");
  1919. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /robshop to attempt robbery.");
  1920. return 1;
  1921. }
  1922. if(getCheckpointType(playerid) == CP_AmmoRob)
  1923. {
  1924. SendClientMessage(playerid, COLOR_GREY, "**CENTRAL LOS SANTOS AMMUNATION**");
  1925. SendClientMessage(playerid, COLOR_RED, "Type /robshop to attempt robbery.");
  1926. return 1;
  1927. }
  1928. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  1929. {
  1930. SendClientMessage(playerid, COLOR_RED, "[BURGER SHOT] Type /robshop to attempt robbery.");
  1931. return 1;
  1932. }
  1933. if(getCheckpointType(playerid) == CP_Hospital)
  1934. {
  1935. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
  1936. SendClientMessage(playerid, COLOR_GREY, "Welcome to the L.S Medical Center! We will take care of you like you've never been taken care of before!");
  1937. Hospital(playerid);
  1938. return 1;
  1939. }
  1940. if(getCheckpointType(playerid) == CP_Tatoo)
  1941. {
  1942. SendClientMessage(playerid, COLOR_GREY, "**TATOO PARLOR**");
  1943. SendClientMessage(playerid, COLOR_GREY, "Welcome to the Tatoo Parlor. Type /robshop to attempt robbery.");
  1944. return 1;
  1945. }
  1946. if(getCheckpointType(playerid) == CP_LSHospital)
  1947. {
  1948. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
  1949. SendClientMessage(playerid, COLOR_GREY, "Welcome to the L.S Medical Cetner! We will take care of you like you've never been taken care of before!");
  1950. Hospital(playerid);
  1951. return 1;
  1952. }
  1953. if(getCheckpointType(playerid) == CP_PigPenRob)
  1954. {
  1955. SendClientMessage(playerid, COLOR_PINK, "**PIG PEN CLUB**");
  1956. SendClientMessage(playerid, COLOR_GREY, "Type /robshop to attempt robbery.");
  1957. return 1;
  1958. }
  1959. if(getCheckpointType(playerid) == CP_LSAirportBlow)
  1960. {
  1961. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Airport up.");
  1962. return 1;
  1963. }
  1964. if(getCheckpointType(playerid) == CP_ParkBlow)
  1965. {
  1966. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Amusement park up.");
  1967. return 1;
  1968. }
  1969. if(getCheckpointType(playerid) == CP_RobStore1)
  1970. {
  1971. SendClientMessage(playerid, COLOR_GREY, "**24/7 Gas Station**");
  1972. SendClientMessage(playerid, COLOR_GREY, "Please select something from the menu.");
  1973. StoreRob(playerid);
  1974. return 1;
  1975. }
  1976. if(getCheckpointType(playerid) == CP_VinewoodBlow)
  1977. {
  1978. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Vinewood Sign.");
  1979. return 1;
  1980. }
  1981. if(getCheckpointType(playerid) == CP_BankBlow)
  1982. {
  1983. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Bank.");
  1984. return 1;
  1985. }
  1986. if(getCheckpointType(playerid) == CP_DrugHouse)
  1987. {
  1988. SendClientMessage(playerid, COLOR_GREY, "**DRUG HOUSE**");
  1989. SendClientMessage(playerid, COLOR_GREY, "[DRUG HOUSE] Where your high is sooner than you think!");
  1990. if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Army && gTeam[playerid] != Team_FBI)
  1991. {
  1992. ShowPlayerDialog(playerid, DIALOG_DRUG, DIALOG_STYLE_LIST, "Welcome to the Drug House What would you like to do?", "Buy 10 grams of weed\nBuy 20 grams of weed\nBuy 30 grams of weed\nCollect my cash\nAttempt Robbery", "Okay", "Cancel");
  1993. return 1;
  1994. }
  1995. SendClientMessage(playerid, COLOR_GREY, "Wait, did we say drug house? Umm..... we're not, that's next door.");
  1996. return 1;
  1997. }
  1998. if(getCheckpointType(playerid) == CP_Suburban)
  1999. {
  2000. SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Suburban.");
  2001. return 1;
  2002. }
  2003. if(getCheckpointType(playerid) == CP_Binco)
  2004. {
  2005. SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Binco.");
  2006. return 1;
  2007. }
  2008. if(getCheckpointType(playerid) == CP_WellStacked)
  2009. {
  2010. SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Well Stacked Pizza.");
  2011. return 1;
  2012. }
  2013. if(getCheckpointType(playerid) == CP_Airport || getCheckpointType(playerid) == CP_SFAirport || getCheckpointType(playerid) == CP_LVAirport)
  2014. {
  2015. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to the Los Santos Air Port. If you wish to buy a ticket, please do so below.");
  2016. ShowPlayerDialog(playerid, DIALOG_PORT, DIALOG_STYLE_LIST, "Welcome to the Air Port. Select a Destination", "San Fierro\nLas Venturas\nLos Santos", "Okay", "Cancel");
  2017. return 1;
  2018. }
  2019. //Houses below (only)
  2020. new string[120];
  2021. new oname[MAX_PLAYER_NAME];
  2022. GetPlayerName(playerid, oname, sizeof oname);
  2023. if(getCheckpointType(playerid) == CP_HouseOneEnter)
  2024. {
  2025. format(string, 120, "[HOUSE] %s", House_One_Name);
  2026. SendClientMessage(playerid, COLOR_GREY, string);
  2027. if(!strcmp(HOUSE_ONE_OWNER, oname, true))
  2028. {
  2029. SetPlayerInterior(playerid, 3);
  2030. SetPlayerPos(playerid, 234.2559,1190.5710,1080.2578);
  2031. SendClientMessage(playerid, COLOR_GREY, "Welcome back!");
  2032. return 1;
  2033. }
  2034. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the keys to this house.");
  2035. }
  2036. if(getCheckpointType(playerid) == CP_HouseOneExit)
  2037. {
  2038. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
  2039. SendClientMessage(playerid, COLOR_GREY, string);
  2040. SetPlayerPos(playerid, 2486.2502,-1650.7339,13.4805);
  2041. SetPlayerInterior(playerid, 0);
  2042. SetPlayerFacingAngle(playerid, 0.1821934);
  2043. SetCameraBehindPlayer(playerid);
  2044. return 1;
  2045. }
  2046. if(getCheckpointType(playerid) == CP_HouseTwoEnter)
  2047. {
  2048. format(string, 120, "[HOUSE] %s", House_Two_Name);
  2049. SendClientMessage(playerid, COLOR_GREY, string);
  2050. if(!strcmp(House_Two_Owner, oname, true))
  2051. {
  2052. SetPlayerInterior(playerid, 5);
  2053. SetPlayerPos(playerid, 233.0603,1114.2969,1080.9922);
  2054. SetCameraBehindPlayer(playerid);
  2055. SetPlayerFacingAngle(playerid, 0.2686274);
  2056. SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
  2057. return 1;
  2058. }
  2059. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
  2060. }
  2061. if(getCheckpointType(playerid) == CP_HouseTwoExit)
  2062. {
  2063. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
  2064. SendClientMessage(playerid, COLOR_GREY, string);
  2065. SetPlayerPos(playerid, 1985.9744,-1718.7900,15.9696);
  2066. SetPlayerInterior(playerid, 0);
  2067. return 1;
  2068. }
  2069. if(getCheckpointType(playerid) == CP_HouseThreeEnter)
  2070. {
  2071. format(string,120, "[HOUSE] %s", House_Three_Name);
  2072. SendClientMessage(playerid, COLOR_GREY, string);
  2073. if(!strcmp(House_Three_Owner, oname, true))
  2074. {
  2075. SetPlayerInterior(playerid, 1);
  2076. SetPlayerPos(playerid, 223.1494,1291.0422,1082.1406);
  2077. SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
  2078. SetCameraBehindPlayer(playerid);
  2079. return 1;
  2080. }
  2081. return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this house.");
  2082. }
  2083. if(getCheckpointType(playerid) == CP_HouseThreeExit)
  2084. {
  2085. format(string, 210, "[HOUSE] Hope you enjoyed your stay in %s", House_Three_Name);
  2086. SendClientMessage(playerid, COLOR_GREY, string);
  2087. SetPlayerPos(playerid,280.7995,-1772.5166,4.3760);
  2088. SetPlayerInterior(playerid, 0);
  2089. SetCameraBehindPlayer(playerid);
  2090. return 1;
  2091. }
  2092. if(getCheckpointType(playerid) == CP_HouseFourEnter)
  2093. {
  2094. format(string, 120, "[HOUSE] %s", House_Four_Name);
  2095. SendClientMessage(playerid, COLOR_GREY, string);
  2096. if(!strcmp(House_Four_Owner, oname, true))
  2097. {
  2098. SetPlayerInterior(playerid, 10);
  2099. SetPlayerPos(playerid, 27.9228,1341.7559,1084.3750);
  2100. SetCameraBehindPlayer(playerid);
  2101. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2102. return 1;
  2103. }
  2104. return SendClientMessage(playerid, COLOR_ERROR, "You do not ahve the permission to enter this house.");
  2105. }
  2106. if(getCheckpointType(playerid) == CP_HouseFourExit)
  2107. {
  2108. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Four_Name);
  2109. SendClientMessage(playerid, COLOR_GREY, string);
  2110. SetPlayerPos(playerid, 193.7315,-1307.1362,70.2484);
  2111. SetPlayerInterior(playerid, 0);
  2112. SetCameraBehindPlayer(playerid);
  2113. return 1;
  2114. }
  2115. if(getCheckpointType(playerid) == CP_HouseFiveEnter)
  2116. {
  2117. format(string, 120, "[HOUSE] %s", House_Five_Name);
  2118. SendClientMessage(playerid, COLOR_GREY, string);
  2119. if(!strcmp(House_Five_Owner,oname,true))
  2120. {
  2121. SetPlayerPos(playerid, 22.7003,1408.2192,1084.4297);
  2122. SetPlayerInterior(playerid, 5);
  2123. SetCameraBehindPlayer(playerid);
  2124. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2125. return 1;
  2126. }
  2127. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
  2128. }
  2129. if(getCheckpointType(playerid) == CP_HouseFiveExit)
  2130. {
  2131. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Five_Name);
  2132. SendClientMessage(playerid, COLOR_GREY, string);
  2133. SetPlayerPos(playerid,348.2536,-1192.8020,76.5156);
  2134. SetPlayerInterior(playerid, 0);
  2135. SetCameraBehindPlayer(playerid);
  2136. return 1;
  2137. }
  2138. if(getCheckpointType(playerid) == CP_HouseSixEnter)
  2139. {
  2140. format(string, 120, "[HOUSE] %s", House_Six_Name);
  2141. SendClientMessage(playerid, COLOR_GREY, string);
  2142. if(!strcmp(House_Six_Owner, oname, true))
  2143. {
  2144. SetPlayerPos(playerid, 447.1404,1401.7974,1084.3120);
  2145. SetPlayerInterior(playerid, 2);
  2146. SetCameraBehindPlayer(playerid);
  2147. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2148. return 1;
  2149. }
  2150. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
  2151. }
  2152. if(getCheckpointType(playerid) == CP_HouseSixExit)
  2153. {
  2154. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Six_Name);
  2155. SendClientMessage(playerid, COLOR_GREY, string);
  2156. SetPlayerPos(playerid, 984.8436,-830.5888,95.4686);
  2157. SetCameraBehindPlayer(playerid);
  2158. SetPlayerInterior(playerid, 0);
  2159. return 1;
  2160. }
  2161. if(getCheckpointType(playerid) == CP_HouseSevenEnter)
  2162. {
  2163. format(string, 120, "[HOUSE] %s", House_Seven_Name);
  2164. SendClientMessage(playerid, COLOR_GREY, string);
  2165. if(!strcmp(House_Seven_Owner, oname, true))
  2166. {
  2167. SetPlayerPos(playerid,234.5786,1068.7251,1084.2084);
  2168. SetPlayerInterior(playerid, 6);
  2169. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2170. SetCameraBehindPlayer(playerid);
  2171. return 1;
  2172. }
  2173. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
  2174. }
  2175. if(getCheckpointType(playerid) == CP_HouseSevenExit)
  2176. {
  2177. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Seven_Name);
  2178. SendClientMessage(playerid, COLOR_GREY, string);
  2179. SetPlayerPos(playerid,1095.1383,-643.1854,113.0625);
  2180. SetPlayerInterior(playerid, 0);
  2181. SetCameraBehindPlayer(playerid);
  2182. return 1;
  2183. }
  2184. if(getCheckpointType(playerid) == CP_HouseEightEnter)
  2185. {
  2186. format(string, 120, "[HOUSE] %s", House_Eight_Name);
  2187. SendClientMessage(playerid, COLOR_GREY, string);
  2188. if(!strcmp(House_Eight_Owner, oname, true))
  2189. {
  2190. SetPlayerPos(playerid, 2263.3396,-1135.9362,1050.6328);
  2191. SetPlayerInterior(playerid, 10);
  2192. SetCameraBehindPlayer(playerid);
  2193. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2194. return 1;
  2195. }
  2196. return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this house.");
  2197. }
  2198. if(getCheckpointType(playerid) == CP_HouseEightExit)
  2199. {
  2200. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Eight_Name);
  2201. SendClientMessage(playerid, COLOR_GREY, string);
  2202. SetPlayerPos(playerid, 2095.5596,-1278.4520,25.4941);
  2203. SetPlayerInterior(playerid, 0);
  2204. return 1;
  2205. }
  2206. if(getCheckpointType(playerid) == CP_HouseNineEnter)
  2207. {
  2208. format(string, 120, "[HOUSE] %s", House_Nine_Name);
  2209. SendClientMessage(playerid, COLOR_GREY, string);
  2210. if(!strcmp(House_Nine_Owner, oname, true))
  2211. {
  2212. SetPlayerPos(playerid, 2461.5542,-1698.4072,1013.5078);
  2213. SetPlayerInterior(playerid, 2);
  2214. SetCameraBehindPlayer(playerid);
  2215. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2216. return 1;
  2217. }
  2218. return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this home.");
  2219. }
  2220. if(getCheckpointType(playerid) == CP_HouseNineExit)
  2221. {
  2222. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Nine_Name);
  2223. SendClientMessage(playerid, COLOR_GREY, string);
  2224. SetCameraBehindPlayer(playerid);
  2225. SetPlayerPos(playerid,2110.7129,-1238.3899,25.4785);
  2226. SetPlayerInterior(playerid, 0);
  2227. return 1;
  2228. }
  2229. return 1;
  2230. }
  2231.  
  2232. public OnPlayerLeaveCheckpoint(playerid)
  2233. {
  2234. if(getCheckpointType(playerid) == CP_StoreOne)
  2235. {
  2236. if(GetPVarInt(playerid, "Robbing69CentStore") == 1)
  2237. {
  2238. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You have left the checkpoint, you have failed the robbery.");
  2239. SetPVarInt(playerid, "Robbing69CentStore", 0);
  2240. SetGVarInt("69CentStoreBeingRobbed", 0);
  2241. return 1;
  2242. }
  2243. return 1;
  2244. }
  2245. if(getCheckpointType(playerid) == CP_SexShopCounter)
  2246. {
  2247. if(GetPVarInt(playerid, "RobbingSouthSex") >=1)
  2248. {
  2249. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2250. SetPVarInt(playerid, "RobbingSouthSex", 0);
  2251. return 1;
  2252. }
  2253. return 1;
  2254. }
  2255. if(getCheckpointType(playerid) == CP_GasOneCounter)
  2256. {
  2257. if(GetPVarInt(playerid, "RobbingGasOne") >= 1)
  2258. {
  2259. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2260. SetPVarInt(playerid, "RobbingGasOne", 0);
  2261. return 1;
  2262. }
  2263. return 1;
  2264. }
  2265. if(getCheckpointType(playerid) == CP_DanceCounter)
  2266. {
  2267. if(GetPVarInt(playerid, "RobbingDanceDance") >= 1)
  2268. {
  2269. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2270. SetPVarInt(playerid, "RobbingDanceDance", 0);
  2271. return 1;
  2272. }
  2273. return 1;
  2274. }
  2275. if(getCheckpointType(playerid) == CP_AmmoRob)
  2276. {
  2277. if(GetPVarInt(playerid, "RobbingAmmo") >=1)
  2278. {
  2279. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2280. SetPVarInt(playerid, "RobbingAmmo", -1);
  2281. return 1;
  2282. }
  2283. return 1;
  2284. }
  2285. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  2286. {
  2287. if(GetPVarInt(playerid, "RobbingBurgerShot") >=1)
  2288. {
  2289. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2290. SetPVarInt(playerid, "RobbingBurgerShot", -1);
  2291. return 1;
  2292. }
  2293. return 1;
  2294. }
  2295. if(getCheckpointType(playerid) == CP_Tatoo)
  2296. {
  2297. if(GetPVarInt(playerid, "RobbingTatooShop") >= 1)
  2298. {
  2299. SetPVarInt(playerid, "RobbingTatooShop", -1);
  2300. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2301. return 1;
  2302. }
  2303. return 1;
  2304. }
  2305. if(getCheckpointType(playerid) == CP_PigPenRob)
  2306. {
  2307. if(GetPVarInt(playerid, "RobbingPigPen") >=1)
  2308. {
  2309. SetPVarInt(playerid, "RobbingPigPen", -1);
  2310. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2311. return 1;
  2312. }
  2313. return 1;
  2314. }
  2315. if(getCheckpointType(playerid) == CP_RobStore1)
  2316. {
  2317. if(GetPVarInt(playerid, "RobbingGasStation") > 1)
  2318. {
  2319. SetPVarInt(playerid, "RobbingGasStation", -1);
  2320. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2321. return 1;
  2322. }
  2323. return 1;
  2324. }
  2325. if(getCheckpointType(playerid) == CP_DrugHouse)
  2326. {
  2327. if(GetPVarInt(playerid, "RobbingDrugHouse") > 1)
  2328. {
  2329. SetPVarInt(playerid, "RobbingDrugHouse", -1);
  2330. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2331. return 1;
  2332. }
  2333. }
  2334. if(getCheckpointType(playerid) == CP_Suburban)
  2335. {
  2336. if(GetPVarInt(playerid, "RobbingSuburban") > 1)
  2337. {
  2338. SetPVarInt(playerid, "RobbingSuburban", -1);
  2339. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoing.");
  2340. return 1;
  2341. }
  2342. return 1;
  2343. }
  2344. if(getCheckpointType(playerid) == CP_Binco)
  2345. {
  2346. if(GetPVarInt(playerid, "RobbingBinco") > 1)
  2347. {
  2348. SetPVarInt(playerid, "RobbingBinco", -1);
  2349. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2350. return 1;
  2351. }
  2352. return 1;
  2353. }
  2354. if(getCheckpointType(playerid) == CP_WellStacked)
  2355. {
  2356. if(GetPVarInt(playerid, "RobbingPizza") > 1)
  2357. {
  2358. SetPVarInt(playerid, "RobbingPizza", -1);
  2359. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2360. return 1;
  2361. }
  2362. }
  2363. return 1;
  2364. }
  2365.  
  2366. public OnPlayerEnterRaceCheckpoint(playerid)
  2367. {
  2368. return 1;
  2369. }
  2370.  
  2371. public OnPlayerLeaveRaceCheckpoint(playerid)
  2372. {
  2373. return 1;
  2374. }
  2375.  
  2376. public OnRconCommand(cmd[])
  2377. {
  2378. return 1;
  2379. }
  2380.  
  2381. public OnPlayerRequestSpawn(playerid)
  2382. {
  2383. if(gTeam[playerid] == Team_Army && GetPVarInt(playerid, "ArmyPermission") == 0)
  2384. {
  2385. GameTextForPlayer(playerid, "~p~You cannot play as army.", 5000, 3);
  2386. return 0;
  2387. }
  2388. if(gTeam[playerid] == Team_FBI && GetPlayerScore(playerid) < 400)
  2389. {
  2390. GameTextForPlayer(playerid, "~b~You cannot play as FBI.", 5000, 3);
  2391. return 0;
  2392. }
  2393. if(gTeam[playerid] == Team_Cop && GetPlayerScore(playerid) < 0)
  2394. {
  2395. return 0;
  2396. }
  2397. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI )
  2398. {
  2399. if(GetPVarInt(playerid, "WantedLevel") != 0)
  2400. {
  2401. GameTextForPlayer(playerid, "~r~You had a wanted level at your last gameplay. ~n~ You cannot play as cop/army", 5000, 3);
  2402. return 0;
  2403. }
  2404. }
  2405. return 1;
  2406. }
  2407.  
  2408. public OnObjectMoved(objectid)
  2409. {
  2410. return 1;
  2411. }
  2412.  
  2413. public OnPlayerObjectMoved(playerid, objectid)
  2414. {
  2415. return 1;
  2416. }
  2417.  
  2418. public OnPlayerPickUpPickup(playerid, pickupid)
  2419. {
  2420. return 1;
  2421. }
  2422.  
  2423. public OnVehicleMod(playerid, vehicleid, componentid)
  2424. {
  2425. return 1;
  2426. }
  2427.  
  2428. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  2429. {
  2430. return 1;
  2431. }
  2432.  
  2433. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  2434. {
  2435. return 1;
  2436. }
  2437.  
  2438. public OnPlayerSelectedMenuRow(playerid, row)
  2439. {
  2440. return 1;
  2441. }
  2442.  
  2443. public OnPlayerExitedMenu(playerid)
  2444. {
  2445. return 1;
  2446. }
  2447.  
  2448. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  2449. {
  2450. return 1;
  2451. }
  2452.  
  2453. public OnRconLoginAttempt(ip[], password[], success)
  2454. {
  2455. return 1;
  2456. }
  2457.  
  2458. public OnPlayerUpdate(playerid)
  2459. {
  2460. WantedLevelColor(playerid);
  2461. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2462. {
  2463. for(new i = 0; i < sizeof(SInfo); i ++)
  2464. {
  2465. if(IsPlayerInRangeOfPoint(playerid, 4.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
  2466. {
  2467. if(SInfo[i][SpikeCreated] == 1)
  2468. {
  2469. new panels, doors, lights, tires;
  2470. new carid = GetPlayerVehicleID(playerid);
  2471. GetVehicleDamageStatus(carid, panels, doors, lights, tires);
  2472. tires = encode_tires(1, 1, 1, 1);
  2473. UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  2474. return 0;
  2475. }
  2476. }
  2477. }
  2478. }
  2479. return 1;
  2480. }
  2481.  
  2482. public OnPlayerStreamIn(playerid, forplayerid)
  2483. {
  2484. return 1;
  2485. }
  2486.  
  2487. public OnPlayerStreamOut(playerid, forplayerid)
  2488. {
  2489. return 1;
  2490. }
  2491.  
  2492. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2493. {
  2494. new string[200];
  2495. if(dialogid == DIALOG_REGISTER)
  2496. {
  2497. if(response == 0)
  2498. {
  2499. SendClientMessage(playerid, COLOR_ERROR, "You must register using a password first.");
  2500. RegisterPlayer(playerid);
  2501. return 1;
  2502. }
  2503. if(response == 1)
  2504. {
  2505. if(udb_Exists(PlayerName(playerid)))
  2506. {
  2507. SendClientMessage(playerid, COLOR_ERROR, "This player name is already registered. Please login.");
  2508. return 1;
  2509. }
  2510. if(strlen(inputtext) ==0)
  2511. {
  2512. SendClientMessage(playerid, COLOR_ERROR, "Please enter a password below.");
  2513. RegisterPlayer(playerid);
  2514. return 1;
  2515. }
  2516. if(udb_Create(PlayerName(playerid),inputtext))
  2517. {
  2518. SendClientMessage(playerid, COLOR_BLUE, "You have registerd. Your stats will save when you leave the game.");
  2519. LogPlayer(playerid);
  2520. PLAYERLIST_authed[playerid] = true;
  2521. dUserSetINT(PlayerName(playerid)).("Score", 0);
  2522. dUserSetINT(PlayerName(playerid)).("Cash", 1000);
  2523. dUserSetINT(PlayerName(playerid)).("BankCash", 5000);
  2524. dUserSetINT(PlayerName(playerid)).("AdminLevel", 0);
  2525. dUserSetINT(PlayerName(playerid)).("Banned", 0);
  2526. dUserSetINT(PlayerName(playerid)).("WantedLevel", 0);
  2527. dUserSetINT(PlayerName(playerid)).("Warnings", 0);
  2528. dUserSetINT(PlayerName(playerid)).("PackCash", 0);
  2529. dUserSetINT(PlayerName(playerid)).("ArmyPermission", 0);
  2530. dUserSetINT(PlayerName(playerid)).("PackPot", 0);
  2531. dUserSetINT(PlayerName(playerid)).("PackPipe", 0);
  2532. dUserSetINT(PlayerName(playerid)).("PackCondom", 0);
  2533. dUserSetINT(PlayerName(playerid)).("PackSnack", 0);
  2534. dUserSetINT(PlayerName(playerid)).("PackExp", 0);
  2535. dUserSetINT(PlayerName(playerid)).("HasPack", 0);
  2536. dUserSetINT(PlayerName(playerid)).("RobSkill", 0);
  2537. dUserSetINT(PlayerName(playerid)).("TerrorSkill", 0);
  2538. new pIP[16]; GetPlayerIp(playerid, pIP, 16);
  2539. dUserSet(PlayerName(playerid)).("IP", pIP);
  2540. }
  2541. return true;
  2542. }
  2543. return 1;
  2544. }//End of Register Dialog
  2545. if(dialogid == DIALOG_LOGIN)
  2546. {
  2547. if(response == 0)
  2548. {
  2549. SendClientMessage(playerid, COLOR_ERROR, "You must login below.");
  2550. LogPlayer(playerid);
  2551. return 1;
  2552. }
  2553. if(response == 1)
  2554. {
  2555. if(strlen(inputtext) == 0)
  2556. {
  2557. SendClientMessage(playerid, COLOR_ERROR, "Please enter your password below.");
  2558. LogPlayer(playerid);
  2559. }
  2560. if(udb_CheckLogin(PlayerName(playerid),inputtext))
  2561. {
  2562. SetPVarInt(playerid, "AdminLevel", dUserINT(PlayerName(playerid)).("AdminLevel"));
  2563. SetPVarInt(playerid, "Banned", dUserINT(PlayerName(playerid)).("Banned"));
  2564. SetPVarInt(playerid, "BankCash", dUserINT(PlayerName(playerid)).("BankCash"));
  2565. SetPVarInt(playerid, "Cash", dUserINT(PlayerName(playerid)).("Cash"));
  2566. SetPVarInt(playerid, "WantedLevel", dUserINT(PlayerName(playerid)).("WantedLevel"));
  2567. SetPVarInt(playerid, "HasPack", dUserINT(PlayerName(playerid)).("HasPack"));
  2568. SetPVarInt(playerid, "Warnings", dUserINT(PlayerName(playerid)).("Warnings"));
  2569. SetPVarInt(playerid, "PackCash", dUserINT(PlayerName(playerid)).("PackCash"));
  2570. SetPVarInt(playerid, "ArmyPermission", dUserINT(PlayerName(playerid)).("ArmyPermission"));
  2571. SetPVarInt(playerid, "PackPipe", dUserINT(PlayerName(playerid)).("PackPipe"));
  2572. SetPVarInt(playerid, "PackCondom", dUserINT(PlayerName(playerid)).("PackCondom"));
  2573. SetPVarInt(playerid, "PackExp", dUserINT(PlayerName(playerid)).("PackExp"));
  2574. SetPVarInt(playerid, "PackSnack", dUserINT(PlayerName(playerid)).("PackSnack"));
  2575. SetPVarInt(playerid, "PackPot", dUserINT(PlayerName(playerid)).("PackPot"));
  2576. SetPVarInt(playerid, "JailTime", dUserINT(PlayerName(playerid)).("JailTime"));
  2577. SetPVarInt(playerid, "RobSkill", dUserINT(PlayerName(playerid)).("RobSkill"));
  2578. SetPVarInt(playerid, "Elite", dUserINT(PlayerName(playerid)).("Elite"));
  2579. SetPVarInt(playerid, "TerrorSkill", dUserINT(PlayerName(playerid)).("TerrorSkill"));
  2580. /*SetPVarInt(playerid, "HouseOnePerson", dUserINT(PlayerName(playerid)).("HouseOnePerson"));
  2581. SetPVarInt(palyerid, "HouseTwoPerson", dUserINT(PlayerName(playerid)).("HouseTwoPerson"));
  2582. SetPVarInt(playerid, "HouseThreePerson", dUserINT(PlayerName(playerid)).("HouseThreePerson"));
  2583. SetPVarInt(playerid, "HouseFourPerson", dUserINT(PlayerName(playerid)).("HouseFourPerson"));
  2584. SetPVarInt(playerid, "HouseFivePerson", dUserINT(PlayerName(playerid)).("HouseFivePerson"));
  2585. SetPVarInt(playerid, "HouseSixPerson", dUserINT(PlayerName(playerid))."HouseSixPerson"));*/
  2586. SetPlayerScore(playerid, dUserINT(PlayerName(playerid)).("Score"));
  2587. new pIP[16]; GetPlayerIp(playerid, pIP, 16);
  2588. dUserSet(PlayerName(playerid)).("IP", pIP);
  2589. PLAYERLIST_authed[playerid] = true;
  2590. return SendClientMessage(playerid, COLOR_BLUE, "You are now logged in. Your stats will save when you leave the server.");
  2591. }
  2592. LogPlayer(playerid);
  2593. }
  2594. return 1;
  2595. }//End of Dialog
  2596. if(dialogid == DIALOG_SKILL && response)
  2597. { //"Rapist\nTerrorist\nTheif\nPrivate Med");
  2598. if(listitem == 0)
  2599. {
  2600. gTeam[playerid] = Team_Rape;
  2601. SendClientMessage(playerid, COLOR_WHITE, "**Rapist**");
  2602. SendClientMessage(playerid, COLOR_WHITE, "Your job is to rape people and infect them with STDs that can/will kill them.");
  2603. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  2604. GivePlayerWeapon(playerid, 22, 100);
  2605. }
  2606. if(listitem == 1)
  2607. {
  2608. gTeam[playerid] = Team_Terror;
  2609. SendClientMessage(playerid, COLOR_WHITE, "**Terrorist**");
  2610. SendClientMessage(playerid, COLOR_WHITE, "Your job is to cause chaos in Los Santos by creating explosions.");
  2611. SendClientMessage(playerid, COLOR_WHITE, "REMEMBER: This is NOT a deathmatching server. Do not shoot/kill people randomly.");
  2612. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  2613. GivePlayerWeapon(playerid, 31, 100);
  2614. GivePlayerWeapon(playerid, 32, 250);
  2615. }
  2616. if(listitem == 2)
  2617. {
  2618. gTeam[playerid] = Team_Steal;
  2619. SendClientMessage(playerid, COLOR_WHITE, "**Thief**");
  2620. SendClientMessage(playerid, COLOR_WHITE, "Your job is to rob as much as possible.");
  2621. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  2622. GivePlayerWeapon(playerid, 22, 100);
  2623. GivePlayerWeapon(playerid, 32, 100);
  2624. }
  2625. if(listitem == 3)
  2626. {
  2627. gTeam[playerid] = Team_PrvtMed;
  2628. SendClientMessage(playerid, COLOR_WHITE, "**Private Medic**");
  2629. SendClientMessage(playerid, COLOR_WHITE, "Your job is to heal, cure, or infect players. Players who need you will call '/medic' and you will see in chat.");
  2630. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  2631. GivePlayerWeapon(playerid, 22, 100);
  2632. GivePlayerWeapon(playerid, 4, 1);
  2633. }
  2634. if(listitem == 4)
  2635. {
  2636. ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
  2637. }
  2638. }//End of dialog
  2639. if(dialogid == DIALOG_STOREONE && response)
  2640. { //format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nAttempt Robbery");
  2641. new pcash = GetPlayerMoney(playerid);
  2642. if(listitem == 0)
  2643. {
  2644. if(pcash < 1000)
  2645. {
  2646. SendClientMessage(playerid, COLOR_ERROR, "You do not have the money to buy a condom.");
  2647. return 1;
  2648. }
  2649. if(GetPVarInt(playerid, "HasCondom") == 1)
  2650. {
  2651. SendClientMessage(playerid, COLOR_ERROR, "You all ready have a condom. Put it in your pack before buying another.");
  2652. return 1;
  2653. }
  2654. SetPVarInt(playerid, "HasCondom", 1);
  2655. GivePlayerMoney(playerid, -1000);
  2656. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Condom: $1000.");
  2657. SendClientMessage(playerid, COLOR_BLUE, "This item will protect you from a rape ONCE.");
  2658. return 1;
  2659. }
  2660. if(listitem == 1)
  2661. {
  2662. if(pcash < 500)
  2663. {
  2664. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a snack.");
  2665. return 1;
  2666. }
  2667. SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") +1);
  2668. GivePlayerMoney(playerid, -500);
  2669. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Snack: $500.");
  2670. SendClientMessage(playerid, COLOR_BLUE, "This item will restore your health by 10 by using /snack");
  2671. return 1;
  2672. }
  2673. if(listitem == 2)
  2674. {
  2675. if(pcash < 500)
  2676. {
  2677. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy cigars.");
  2678. return 1;
  2679. }
  2680. SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") +5);
  2681. GivePlayerMoney(playerid, -500);
  2682. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Cigars: $500.");
  2683. SendClientMessage(playerid, COLOR_BLUE, "This item will increase your health by 10 by using /smoke");
  2684. return 1;
  2685. }
  2686. if(listitem == 3)
  2687. {
  2688. if(pcash < 1000)
  2689. {
  2690. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a pipe.");
  2691. return 1;
  2692. }
  2693. if(GetPVarInt(playerid, "HasPipe") == 1)
  2694. {
  2695. SendClientMessage(playerid, COLOR_ERROR, "You already have a pipe.");
  2696. return 1;
  2697. }
  2698. SetPVarInt(playerid, "HasPipe", 1);
  2699. GivePlayerMoney(playerid, -1000);
  2700. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Pipe: $1000.");
  2701. SendClientMessage(playerid, COLOR_BLUE, "This will allow you to smoke pot. Get pot at the drug house.");
  2702. return 1;
  2703. }
  2704. if(listitem == 4)
  2705. {
  2706. if(pcash < 100000)
  2707. {
  2708. SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the pack.");
  2709. return 1;
  2710. }
  2711. if(GetPVarInt(playerid, "HasPack") == 1)
  2712. {
  2713. SendClientMessage(playerid, COLOR_ERROR, "You already have a pack on you.");
  2714. return 1;
  2715. }
  2716. SetPVarInt(playerid, "HasPack", 1);
  2717. GivePlayerMoney(playerid, -100000);
  2718. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Pack: $100,000.");
  2719. SendClientMessage(playerid, COLOR_BLUE, "This will allow you to save things like pot and money.");
  2720. return 1;
  2721. }
  2722. if(listitem == 5)
  2723. {
  2724. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army)
  2725. {
  2726. SendClientMessage(playerid, COLOR_ERROR, "You cannot attempt robbery.");
  2727. return 1;
  2728. }
  2729. if(getCheckpointType(playerid) != CP_StoreOne)
  2730. {
  2731. SendClientMessage(playerid, COLOR_ERROR, "You must be in the 69 Cent store checkpoint to attempt robbery.");
  2732. return 1;
  2733. }
  2734. if(GetGVarInt("SixNineRobbed") == 1337)
  2735. {
  2736. SendClientMessage(playerid, COLOR_ERROR, "The 69 Cent store has been robbed recently.");
  2737. return 1;
  2738. }
  2739. new crand = random(100);
  2740. if(crand > 10)
  2741. {
  2742. new mrand = random(100000);
  2743. format(string, sizeof(string), "[ROBBERY] %s has robbed $%d from the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid), mrand);
  2744. GivePlayerMoney(playerid, mrand);
  2745. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  2746. print(string);
  2747. SetGVarInt("SixNineRobbed", 1337);
  2748. SetTimer("SixNineStoreRobAgain", 1000*60*5, 0);
  2749. IncreaseWantedLevel(playerid, 4);
  2750. IncreaseScore(playerid, 1);
  2751. format(string, sizeof(string), "[ROBBERY] %s has robbed the 69 Cent Store. Go arrest him now.", PlayerInfo(playerid));
  2752. SendCopMessage(string);
  2753. return 1;
  2754. }
  2755. else
  2756. {
  2757. format(string, sizeof(string), "%s has failed a robbery at the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid));
  2758. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  2759. print(string);
  2760. }
  2761. return 1;
  2762. }
  2763. return 1;
  2764. }//End of dialog
  2765. if(dialogid == DIALOG_PACK && response)
  2766. {
  2767. switch(listitem)
  2768. {
  2769. case 0:
  2770. return ShowPlayerDialog(playerid, DIALOG_TAKEOUT, DIALOG_STYLE_LIST, "What do you want to take out?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot", "Okay", "Cancel");
  2771. case 1:
  2772. return ShowPlayerDialog(playerid, DIALOG_PUTIN, DIALOG_STYLE_LIST, "What do you want to put in?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot", "Okay", "Cancel");
  2773. }
  2774. return 1;
  2775. }//End of Dialog
  2776. if(dialogid == DIALOG_TAKEOUT && response)
  2777. {
  2778. switch(listitem)
  2779. {
  2780. case 0:
  2781. {
  2782. if(GetPVarInt(playerid, "HasCondom") == 0)
  2783. {
  2784. if(GetPVarInt(playerid, "PackCondom") >= 1)
  2785. {
  2786. SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") -1);
  2787. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2788. format(string, sizeof(string), "You now have %d condoms left in your bag.", GetPVarInt(playerid, "PackCondom"));
  2789. SendClientMessage(playerid, COLOR_GREEN, string);
  2790. SetPVarInt(playerid, "HasCondom", 1);
  2791. return 1;
  2792. }
  2793. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any condoms to take out.");
  2794. }
  2795. return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom.");
  2796. }
  2797. case 1:
  2798. {
  2799. if(GetPVarInt(playerid, "HasSnacks") == 0)
  2800. {
  2801. if(GetPVarInt(playerid, "PackSnacks") >= 1)
  2802. {
  2803. SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") -1);
  2804. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2805. format(string, sizeof(string), "You now have %d snacks left in your bag.", GetPVarInt(playerid, "PackSnacks"));
  2806. SendClientMessage(playerid, COLOR_GREEN, string);
  2807. SetPVarInt(playerid, "HasSnacks", 1);
  2808. return 1;
  2809. }
  2810. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks in your bag to take out.");
  2811. }
  2812. return SendClientMessage(playerid, COLOR_ERROR, "You already have a snack.");
  2813. }
  2814. case 2: //Cigars
  2815. {
  2816. if(GetPVarInt(playerid, "HasCigars") == 0)
  2817. {
  2818. if(GetPVarInt(playerid, "PackCigars") >= 5)
  2819. {
  2820. SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") -1);
  2821. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2822. format(string, sizeof(string), "You now have %d cigars left in your bag.", GetPVarInt(playerid, "PackCigars"));
  2823. SendClientMessage(playerid, COLOR_GREEN, string);
  2824. SetPVarInt(playerid, "HasCigars", 5);
  2825. return 1;
  2826. }
  2827. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any packed cigars");
  2828. }
  2829. return SendClientMessage(playerid, COLOR_ERROR, "You already have cigars.");
  2830. }
  2831. case 3: //Explosives
  2832. {
  2833. if(GetPVarInt(playerid, "HasExp") == 0)
  2834. {
  2835. if(GetPVarInt(playerid, "PackExp") >= 1)
  2836. {
  2837. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") -1);
  2838. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2839. format(string, sizeof(string), "You have %d sets of explosives left in your bag.", GetPVarInt(playerid, "PackExp"));
  2840. SendClientMessage(playerid, COLOR_GREEN, string);
  2841. SetPVarInt(playerid, "HasExp", 1);
  2842. return 1;
  2843. }
  2844. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives in your pack.");
  2845. }
  2846. return SendClientMessage(playerid, COLOR_ERROR, "You already have explosives.");
  2847. }
  2848. case 4: //Money
  2849. {
  2850. if(GetPVarInt(playerid, "PackCash") > 0)
  2851. {
  2852. if(GetPVarInt(playerid, "PackCash") > 100000)
  2853. {
  2854. SetPVarInt(playerid, "PackCash", GetPVarInt(playerid, "PackCash") -100000);
  2855. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2856. format(string, sizeof(string), "You have taken out $100,000 from your pack. You now have $%d", GetPVarInt(playerid, "PackCash"));
  2857. SendClientMessage(playerid, COLOR_GREEN, string);
  2858. GivePlayerMoney(playerid, 100000);
  2859. return 1;
  2860. }
  2861. GivePlayerMoney(playerid, GetPVarInt(playerid, "PackCash"));
  2862. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2863. SendClientMessage(playerid, COLOR_GREEN, "You have taken out all the money in your pack. You have none left.");
  2864. SetPVarInt(playerid, "PackMoney", 0);
  2865. return 1;
  2866. }
  2867. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any money in your pack to take out.");
  2868. }
  2869. case 5: //Pipe
  2870. {
  2871. if(GetPVarInt(playerid, "HasPipe") == 1)
  2872. {
  2873. if(GetPVarInt(playerid, "PackPipe") >= 1)
  2874. {
  2875. SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") -1);
  2876. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2877. format(string, sizeof(string), "You have taken out a pipe. You now have %d pipes left.", GetPVarInt(playerid, "PackPipe"));
  2878. SendClientMessage(playerid, COLOR_GREEN, string);
  2879. SetPVarInt(playerid, "HasPipe", 1);
  2880. return 1;
  2881. }
  2882. return SendClientMessage(playerid, COLOR_ERROR, "You do not have pipes in your pack.");
  2883. }
  2884. return SendClientMessage(playerid, COLOR_ERROR, "You already have a pipe.");
  2885. }
  2886. case 6: //Pot
  2887. {
  2888. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  2889. {
  2890. return SendClientMessage(playerid ,COLOR_ERROR, "Your team/class cannot have pot!");
  2891. }
  2892. if(GetPVarInt(playerid, "PackPot") >=1)
  2893. {
  2894. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "PackPot"));
  2895. SetPVarInt(playerid, "PackPot", 0);
  2896. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2897. SendClientMessage(playerid, COLOR_GREEN, "You have taken out all of your pot.");
  2898. return 1;
  2899. }
  2900. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any pot in your pack.");
  2901. }
  2902. }
  2903. }
  2904. if(dialogid == DIALOG_PUTIN && response)
  2905. {
  2906. if(listitem == 0)
  2907. {
  2908. if(GetPVarInt(playerid, "HasCondom") == 1)
  2909. {
  2910. SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") +1);
  2911. SetPVarInt(playerid, "HasCondom", 0);
  2912. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2913. SendClientMessage(playerid, COLOR_GREEN, "You have put a condom into your backpack.");
  2914. return 1;
  2915. }
  2916. return SendClientMessage(playerid, COLOR_ERROR, "You do not have a condom to put into your pack.");
  2917. }
  2918. if(listitem == 1)
  2919. {
  2920. if(GetPVarInt(playerid, "HasSnacks") == 1)
  2921. {
  2922. SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") +1);
  2923. SetPVarInt(playerid, "HasSnacks", 0);
  2924. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2925. SendClientMessage(playerid, COLOR_GREEN, "You have put in snacks into your pack.");
  2926. return 1;
  2927. }
  2928. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks to put in.");
  2929. }
  2930. if(listitem == 2)
  2931. {
  2932. if(GetPVarInt(playerid, "HasCigars") >= 1)
  2933. {
  2934. SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") + 1);
  2935. SetPVarInt(playerid, "HasCigars", 0);
  2936. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2937. SendClientMessage(playerid, COLOR_GREEN, "You have put cigars into your pack.");
  2938. return 1;
  2939. }
  2940. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cigars to put in.");
  2941. }
  2942. if(listitem == 3)
  2943. {
  2944. if(GetPVarInt(playerid, "HasExp") == 1)
  2945. {
  2946. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 1);
  2947. SetPVarInt(playerid, "HasExp", 0);
  2948. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2949. SendClientMessage(playerid, COLOR_GREEN, "You have put your explosives in your pack.");
  2950. return 1;
  2951. }
  2952. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives to put in your pack.");
  2953. }
  2954. if(listitem == 4)
  2955. {
  2956. if(GetPlayerMoney(playerid) > 0)
  2957. {
  2958. if(GetPVarInt(playerid, "PackCash") >= 2000000) return SendClientMessage(playerid, COLOR_ERROR, "You already have $2,000,000 in your pack");
  2959. SetPVarInt(playerid, "PackCash", GetPlayerMoney(playerid));
  2960. ResetPlayerMoney(playerid);
  2961. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2962. SendClientMessage(playerid, COLOR_GREEN, "You have put your cash into your pack.");
  2963. return 1;
  2964. }
  2965. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cash to put in.");
  2966. }
  2967. if(listitem == 5)
  2968. {
  2969. if(GetPVarInt(playerid, "HasPipe") == 1)
  2970. {
  2971. SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") +1);
  2972. SetPVarInt(playerid, "HasPipe", 0);
  2973. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2974. SendClientMessage(playerid, COLOR_GREEN, "You have put your pipe into your pack.");
  2975. return 1;
  2976. }
  2977. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any pipes to put in.");
  2978. }
  2979. if(listitem == 6)
  2980. {
  2981. if(GetPVarInt(playerid, "HasPot") >= 1)
  2982. {
  2983. SetPVarInt(playerid, "PackPot", GetPVarInt(playerid, "PackPot") + GetPVarInt(playerid, "HasPot"));
  2984. SetPVarInt(playerid, "HasPot", 0);
  2985. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  2986. SendClientMessage(playerid, COLOR_GREEN, "You have put your pot into your pack.");
  2987. return 1;
  2988. }
  2989. return SendClientMessage(playerid, COLOR_ERROR, "You haven't pot to put in.");
  2990. }
  2991. } //End of Dialog
  2992. if(dialogid == DIALOG_SEXSHOP && response)
  2993. { //"Buy a dildo\nBuy a porn magazine\nBuy some jelly\nAttempt Robbery"
  2994. if(listitem == 0) // Dildo
  2995. {
  2996. if(GetPlayerMoney(playerid) >= 1000)
  2997. {
  2998. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a dildo! Price: $1,000.");
  2999. GivePlayerWeapon(playerid,10, 1);
  3000. GivePlayerMoney(playerid, -1000);
  3001. return 1;
  3002. }
  3003. return SendClientMessage(playerid, COLOR_ERROR, "You do no have enough funds to buy a dildo.");
  3004. }
  3005. if(listitem == 1) // Porn
  3006. {
  3007. if(GetPlayerMoney(playerid) >= 1500)
  3008. {
  3009. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a porn magazine. Price: %1,500");
  3010. format(string, 120, "[SEX SHOP] %s bought a porn magazine. He's horny!", PlayerInfo(playerid));
  3011. SendClientMessageToAll(COLOR_PINK, string);
  3012. CNR_PrintString(string);
  3013. GivePlayerMoney(playerid, -1500);
  3014. SetPVarInt(playerid, "Horny", 500);
  3015. SendClientMessage(playerid, COLOR_GREY, "You will be horny for the next 8 or so minutes. Get sex while you can!");
  3016. return 1;
  3017. }
  3018. return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough funds to buy a porn magazine.");
  3019. }
  3020. if(listitem == 2) //Jelly (Help with rapes)
  3021. {
  3022. if(GetPlayerMoney(playerid) >=2000)
  3023. {
  3024. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought sex jelly! This will help you out with sex.");
  3025. GivePlayerMoney(playerid, -2000);
  3026. SetPVarInt(playerid, "Jelly", 1);
  3027. return 1;
  3028. }
  3029. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash.");
  3030. }
  3031. if(listitem == 3)
  3032. {
  3033. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot attempt robbery.");
  3034. if(GetGVarInt("SexShopRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "This sex shop has been robbed recently. Please wait.");
  3035. new crand = random(100);
  3036. if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the Sex Shop has failed.");
  3037. SetPVarInt(playerid, "RobbingSouthSex", 10);
  3038. IncreaseWantedLevel(playerid, 4);
  3039. IncreaseScore(playerid, 2);
  3040. format(string, 120, "[ROBBERY] %s has started a robbery at the South Los Santos Sex shop.", PlayerInfo(playerid));
  3041. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3042. CNR_PrintString(string);
  3043. format(string, 120, "[DISPATCH] %s has started a robbery at the South Lost Santos Sex shop, near the L.S Airport. Go arrest the suspect.", PlayerInfo(playerid));
  3044. SendCopMessage(string);
  3045. format(string, 120, "Type /radioof to turn off your Police Radio and stop getting crime reports.");
  3046. SendCopMessage(string);
  3047. SetPVarInt(playerid, "RobbedSexShop", 120);
  3048. return 1;
  3049. }
  3050. }//End of Sex Shop Dialog (south)
  3051. if(dialogid == DIALOG_GASONE && response)
  3052. {//"Buy Cigar\nBuy snacks\nBuy Condom\nAttempt Robbery"
  3053. if(listitem == 0) //cigars
  3054. {
  3055. if(GetPlayerMoney(playerid) < 500)
  3056. {
  3057. SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") + 1);
  3058. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought Cigars.");
  3059. GivePlayerMoney(playerid, -500);
  3060. return 1;
  3061. }
  3062. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
  3063. }
  3064. if(listitem == 1)//Snacks
  3065. {
  3066. if(GetPlayerMoney(playerid) < 100)
  3067. {
  3068. SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") + 1);
  3069. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks.");
  3070. GivePlayerMoney(playerid, -1000);
  3071. return 1;
  3072. }
  3073. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
  3074. }
  3075. if(listitem == 2)//Condom
  3076. {
  3077. if(GetPlayerMoney(playerid) < 5000)
  3078. {
  3079. if(GetPVarInt(playerid, "HasCondom") == 0)
  3080. {
  3081. SetPVarInt(playerid, "HasCondom", 1);
  3082. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a condom.");
  3083. return 1;
  3084. }
  3085. return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Pack it first before you buy another.");
  3086. }
  3087. return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
  3088. }
  3089. if(listitem == 3)//Robbery
  3090. {
  3091. if(GetGVarInt("GasOneRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "This store has been robbed recently.");
  3092. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
  3093. new crand = random(100);
  3094. if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
  3095. SetPVarInt(playerid, "RobbingGasOne", 15);
  3096. format(string, 120, "[ROBBERY] %s has began a robbery at the Gas Station in South L.S.", PlayerInfo(playerid));
  3097. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3098. CNR_PrintString(string);
  3099. format(string, 120, "[DISPATCH] %s has begane a robbery at the Gas Station in South L.S. Go arrest the suspect.", PlayerInfo(playerid));
  3100. SendCopMessage(string);
  3101. IncreaseScore(playerid, 1);
  3102. IncreaseWantedLevel(playerid, 4);
  3103. return 1;
  3104. }
  3105. } //End of Dialog
  3106. if(dialogid == DIALOG_BUY && response)
  3107. { //"Condom\nCigars\nPack\nSnacks"
  3108. if(listitem == 0) // Condom (HasCondom) && (PackCondom)
  3109. {
  3110. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a condom. ($1,000)");
  3111. if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Put it in your pack first.");
  3112. SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
  3113. GivePlayerMoney(playerid, -1000);
  3114. return 1;
  3115. }
  3116. if(listitem == 1) // Cigars (HasCigars) && PackCigar
  3117. {
  3118. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy cigars. ($500)");
  3119. if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_ERROR, "You already have 5 cigars. Put some in your pack first.");
  3120. SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 5 cigars. You have been chaged $500.");
  3121. GivePlayerMoney(playerid, -500);
  3122. return 1;
  3123. }
  3124. if(listitem == 2) // Pack (HasPack)
  3125. {
  3126. if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a pack. ($100,00)");
  3127. if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a pack, no need for 2 of them.");
  3128. SetPVarInt(playerid, "HasPack", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a pack. You can now store belongings with '/pack'. You've been chaged $100,000");
  3129. GivePlayerMoney(playerid, -100000);
  3130. return 1;
  3131. }
  3132. if(listitem == 3) // HasSnacks && PackSnacks
  3133. {
  3134. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy snacks. ($2,000)");
  3135. if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have snacks. No need for more!");
  3136. SetPVarInt(playerid, "HasSnacks", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks. Type /snacks to restore your health.You have been charged $2,000");
  3137. GivePlayerMoney(playerid, -2000);
  3138. return 1;
  3139. }
  3140. } // end of dialog
  3141. if(dialogid == DIALOG_HOSPITAL && response)
  3142. { //"Heal\nCure",
  3143. if(listitem == 0) // Heal
  3144. {
  3145. new wl = GetPlayerWantedLevel(playerid);
  3146. new Float:ph;
  3147. GetPlayerHealth(playerid, ph);
  3148. if(ph == 100) return SendClientMessage(playerid, COLOR_ERROR, "You are already healed 100 percent.");
  3149. if(wl == 0)
  3150. {
  3151. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford a heal. It's $10,000");
  3152. SetPlayerHealth(playerid, 100);
  3153. GivePlayerMoney(playerid, -10000);
  3154. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital.You have been charged $10,000.");
  3155. return 1;
  3156. }
  3157. if(wl >= 1)
  3158. {
  3159. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford a heal. It's $20,000");
  3160. SetPlayerHealth(playerid, 100);
  3161. GivePlayerMoney(playerid, -20000);
  3162. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital. You have been chaged $20,000");
  3163. return 1;
  3164. }
  3165. return 1;
  3166. }
  3167. if(listitem == 1) //Cure
  3168. {
  3169. new wl = GetPlayerWantedLevel(playerid);
  3170. if(wl == 0)
  3171. {
  3172. if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not infected with any disease.");
  3173. if(GetPVarInt(playerid, "IsSick") == 1 && GetPVarInt(playerid, "HasSTDs") == 0)
  3174. {
  3175. if(wl == 0)
  3176. {
  3177. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($10,000)");
  3178. SetPVarInt(playerid, "IsSick", 0);
  3179. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3180. GivePlayerMoney(playerid, -10000);
  3181. return 1;
  3182. }
  3183. if(wl >=0)
  3184. {
  3185. if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($15,000");
  3186. SetPVarInt(playerid, "IsSick", 0);
  3187. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3188. GivePlayerMoney(playerid, -15000);
  3189. return 1;
  3190. }
  3191. return 1;
  3192. }
  3193. if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 1)
  3194. {
  3195. if(wl == 0)
  3196. {
  3197. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($5,00)");
  3198. SetPVarInt(playerid, "HasSTDs", 0);
  3199. SendClientMessage(playerid, COLOR_BLUE, "[HOSPTAL] You have been cured of your sickness.");
  3200. GivePlayerMoney(playerid, -5000);
  3201. return 1;
  3202. }
  3203. if(wl >= 0)
  3204. {
  3205. if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($8,000)");
  3206. SetPVarInt(playerid, "HasSTDs", 0);
  3207. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3208. GivePlayerMoney(playerid,-8000);
  3209. return 1;
  3210. }
  3211. }
  3212. }
  3213. }
  3214. return 1;
  3215. } // End of Dialog lololol
  3216. if(dialogid == DIALOG_STOREROB && response)
  3217. { // Buy a condom\nBuy Cigars\nBuy a pack\nBuy Snacks\nAttempt Robbery"
  3218. if(listitem == 0) // Condom (HasCondom) && (PackCondom)
  3219. {
  3220. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a condom. ($1,000)");
  3221. if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Put it in your pack first.");
  3222. SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
  3223. GivePlayerMoney(playerid, -1000);
  3224. return 1;
  3225. }
  3226. if(listitem == 1) // Cigars (HasCigars) && PackCigar
  3227. {
  3228. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy cigars. ($500)");
  3229. if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_ERROR, "You already have 5 cigars. Put some in your pack first.");
  3230. SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 5 cigars. You have been chaged $500.");
  3231. GivePlayerMoney(playerid, -500);
  3232. return 1;
  3233. }
  3234. if(listitem == 2) // Pack (HasPack)
  3235. {
  3236. if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a pack. ($100,00)");
  3237. if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a pack, no need for 2 of them.");
  3238. SetPVarInt(playerid, "HasPack", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a pack. You can now store belongings with '/pack'. You've been chaged $100,000");
  3239. GivePlayerMoney(playerid, -100000);
  3240. return 1;
  3241. }
  3242. if(listitem == 3) // HasSnacks && PackSnacks
  3243. {
  3244. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy snacks. ($2,000)");
  3245. if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have snacks. No need for more!");
  3246. SetPVarInt(playerid, "HasSnacks", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks. Type /snacks to restore your health.You have been charged $2,000");
  3247. GivePlayerMoney(playerid, -2000);
  3248. return 1;
  3249. }
  3250. if(listitem == 4) // Robbery
  3251. {
  3252. new current_zone = player_zone[playerid];
  3253. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
  3254. if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You have robbed a store recently. Please Wait.");
  3255. if(GetGVarInt("GasStationRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Gas Stations have been robbed recently. Please wait.");
  3256. new crand = random(100);
  3257. if(crand < 10)
  3258. {
  3259. SetGVarInt("GasStationRobbed", 60);
  3260. SetPVarInt(playerid, "RobbedRecently", 60);
  3261. return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
  3262. }
  3263. format(string, 120, "[ROBBERY] %s has started a robbery at the Gas Station in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3264. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3265. CNR_PrintString(string);
  3266. format(string, 120, "[DISPATCH] %s has started a robbery at the Gas Station in %s. Go arrest the suspet.", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3267. SendCopMessage(string);
  3268. IncreaseScore(playerid, 1);
  3269. IncreaseWantedLevel(playerid, 4);
  3270. SetPVarInt(playerid, "RobbingGasStation", 15);
  3271. SetGVarInt("GasStationRobbed", 120);
  3272. SetPVarInt(playerid, "RobbedRecently", 120);
  3273. }
  3274. } // End of Dialog
  3275. if(dialogid == DIALOG_DRUG && response)
  3276. { // "Buy 10 grams of weed\nBuy 20 grams of weed\nBuy 30 grams of weed\nCollect my cash\nAttempt Robbery"
  3277. if(listitem == 0) // 10 grams of weed
  3278. {
  3279. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 10 grams of weed. ($10,000)");
  3280. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 10);
  3281. format(string, 120, "[WEED BOUGHT] You have bought 10 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  3282. SendClientMessage(playerid, COLOR_GREY, string);
  3283. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 10000);
  3284. GivePlayerMoney(playerid, -10000);
  3285. return 1;
  3286. }
  3287. if(listitem == 1) // 20 grams of weed
  3288. {
  3289. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 20 grams of weed. ($20,000)");
  3290. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 20);
  3291. format(string, 120, "[WEED BOUGHT] You have bought 20 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  3292. SendClientMessage(playerid, COLOR_GREY, string);
  3293. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 20000);
  3294. GivePlayerMoney(playerid, -20000);
  3295. return 1;
  3296. }
  3297. if(listitem == 2) // 30 grams of weed
  3298. {
  3299. if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 30 grams of weed. ($30,000)");
  3300. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 30);
  3301. format(string, 120, "[WEED BOUGHT] You have bought 30 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  3302. SendClientMessage(playerid, COLOR_GREY, string);
  3303. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 30000);
  3304. GivePlayerMoney(playerid, -30000);
  3305. return 1;
  3306. }
  3307. if(listitem == 3) // Collect the Cash (OWNER)
  3308. {
  3309. new oname[MAX_PLAYER_NAME];
  3310. if(!strcmp(HOUSE_ONE_OWNER, oname, true))
  3311. {
  3312. if(GetGVarInt("DrugHouseCash") <= 0) return SendClientMessage(playerid, COLOR_ERROR, "There is no money in the drug house for you to collect.");
  3313. GivePlayerMoney(playerid, GetGVarInt("DrugHouseCash"));
  3314. format(string, 120, "[DRUG CASH] Drug house owner %s has collected $%d from the Drug House.", PlayerInfo(playerid), GetGVarInt("DrugHouseCash"));
  3315. CNR_PrintString(string);
  3316. format(string, 120, "[DRUG CASH] You have collected $%d from your Drug House.", GetGVarInt("DrugHouseCash"));
  3317. SendClientMessage(playerid, COLOR_GREY, string);
  3318. SetGVarInt("DrugHouseCash", 0);
  3319. return 1;
  3320. }
  3321. SendClientMessage(playerid, COLOR_ERROR, "You do not own the drug house.");
  3322. return 1;
  3323. }
  3324. if(listitem == 4) // Attempt Robbery
  3325. {
  3326. new current_zone = player_zone[playerid];
  3327. if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You've robbed a place recently. Please wait.");
  3328. if(GetGVarInt("DrugHouseRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The drug house has been robbed recently. Please wait.");
  3329. if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_ERROR, "You do not know how to rob the Drug House.");
  3330. if(GetGVarInt("DrugHouseCash") == 0) return SendClientMessage(playerid, COLOR_ERROR, "There is nothing you can rob....");
  3331. new crand = random(100);
  3332. if(crand < 10)
  3333. {
  3334. SetPVarInt(playerid, "RobbedRecently", 60);
  3335. SetGVarInt("DrugHouseRobbed", 50);
  3336. return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the Drug House has failed.");
  3337. }
  3338. format(string, 120, "[ROBBERY] %s has started a robbery at the Drug House in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3339. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3340. CNR_PrintString(string);
  3341. format(string, 120, "[DISPATCH] %s has started a robbery at the Drug House in %s. Go arrest him.", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3342. SendCopMessage(string);
  3343. IncreaseWantedLevel(playerid, 1);
  3344. IncreaseScore(playerid, 4);
  3345. format(string, 120, "Robbery Started. Stay in the checkpoint to complete the robbery.");
  3346. SendClientMessage(playerid, COLOR_RED, string);
  3347. SetPVarInt(playerid, "RobbingDrugHouse", 15);
  3348. return 1;
  3349. }
  3350. }// End of Dialog
  3351. if(dialogid == DIALOG_PORT && response)
  3352. {//""San Fierro\nLas Venturas", "Okay", "Cancel");
  3353. if(listitem == 0)
  3354. {
  3355. if(PlayerHasCash(playerid, 10000))
  3356. {
  3357. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to San Fierro. You have boarded your plane and will arrive later.");
  3358. SetPVarInt(playerid, "FlyToSF", 10);
  3359. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  3360. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750);
  3361. SetPlayerInterior(playerid, 1);
  3362. SetTimerEx("PutPlayerInSF", 1000*10, false, "i",playerid);
  3363. return 1;
  3364. }
  3365. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket.");
  3366. return 1;
  3367. }
  3368. if(listitem == 1)
  3369. {
  3370. if(PlayerHasCash(playerid, 10000))
  3371. {
  3372. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Las Venturas. You have boarded your plane and will arrive soon.");
  3373. SetPVarInt(playerid, "FlyToLV", 10);
  3374. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  3375. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
  3376. SetPlayerInterior(playerid, 1);
  3377. SetTimerEx("PutPlayerInLV", 1000*10, false, "i",playerid);
  3378. return 1;
  3379. }
  3380. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket to Las Venturas.");
  3381. return 1;
  3382. }
  3383. if(listitem == 2) {
  3384. if(PlayerHasCash(playerid, 10000)) {
  3385. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Los santos. You have boarded your plane and will arrive soon.");
  3386. SetPVarInt(playerid, "FlyToLS", 10);
  3387. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  3388. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
  3389. SetPlayerInterior(playerid, 1);
  3390. SetTimerEx("PutPlayerInLS", 1000*10, false, "i",playerid);
  3391. return 1;
  3392. }
  3393. SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket to Los Santos.");
  3394. return 1;
  3395. }
  3396. }
  3397. return 1;
  3398. }
  3399.  
  3400. cmd(credits, playerid, params[])
  3401. {
  3402. SendClientMessage(playerid, COLOR_BLUE, "Cops N Robbers Version 1.2 by Karagon");
  3403. SendClientMessage(playerid, COLOR_BLUE, "This script was created by scratch by Karagon");
  3404. SendClientMessage(playerid, COLOR_BLUE, "Checkpoint Streamer: BMUK Object Streamer: xObjects Zones Script");
  3405. SendClientMessage(playerid, COLOR_BLUE, "Script is done 100 percent in ZCMD and what I call compressed code formating.");
  3406. SendClientMessage(playerid, COLOR_BLUE, "Please enjoy the script as much as you can, and updates are really possible!");
  3407. SendClientMessage(playerid, COLOR_BLUE, "And say Fuck you Stevo127 and The_Byrner for screwing me over!");
  3408. return 1;
  3409. }
  3410. cmd(robshop, playerid, params[])
  3411. {
  3412. new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
  3413. if(!IsPlayerInCheckpoint(playerid)) {
  3414. SendClientMessage(playerid, COLOR_ERROR, "You are not in the checkpoint!");
  3415. return 1;
  3416. }
  3417. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army )
  3418. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
  3419. if(GetPVarInt(playerid, "RobbedRecently") > 1)
  3420. return SendClientMessage(playerid, COLOR_ERROR, "You have robbed a store recently. Please wait.");
  3421. new string[120];
  3422. new crand = random(100);
  3423. if(getCheckpointType(playerid) == CP_DanceCounter)
  3424. {
  3425. if(GetGVarInt("DanceDanceRobbed") > 1)
  3426. return SendClientMessage(playerid, COLOR_ERROR, "This store has been robbed recently.");
  3427. if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
  3428. format(string, 120, "[ROBBERY] %s has started a robbery at Dance Dance Revolution.", PlayerInfo(playerid));
  3429. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3430. CNR_PrintString(string);
  3431. format(string, 120, "[DISPATCH] %s has started a robbery at Dance Dance Revolution. Go arrest the suspect.", PlayerInfo(playerid));
  3432. SendCopMessage(string);
  3433. SetPVarInt(playerid, "RobbingDanceDance", 15);
  3434. IncreaseScore(playerid, 1);
  3435. IncreaseWantedLevel(playerid, 4);
  3436. SetPVarInt(playerid, "RobbedRecently", 120);
  3437. return 1;
  3438. }
  3439. if(getCheckpointType(playerid) == CP_AmmoRob)
  3440. {
  3441. if(GetGVarInt("AmmoRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "Ammunation has been robbed recently. Please wait.");
  3442. if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_ERROR, "You do not know how to rob a place like this. Get more experience.");
  3443. if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
  3444. format(string, 120, "[ROBBERY] %s has started a robbery at the Central Los Santos Ammunation.", PlayerInfo(playerid));
  3445. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3446. CNR_PrintString(string);
  3447. format(string, 120, "[DISPATCH] %s has started a robber at the Central Los Santos Ammunation. Go arrest the suspect.", PlayerInfo(playerid));
  3448. SendCopMessage(string);
  3449. SetPVarInt(playerid, "RobbingAmmo", 15);
  3450. IncreaseScore(playerid, 1);
  3451. IncreaseWantedLevel(playerid, 4);
  3452. SetPVarInt(playerid, "RobbedRecently", 100);
  3453. return 1;
  3454. }
  3455. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  3456. {
  3457. if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
  3458. if(GetGVarInt("BurgerShotRobbed") >1) return SendClientMessage(playerid, COLOR_ERROR, "Burger Shot has been robbed recently.");
  3459. format(string, 120, "[ROBBERY] %s has began a robbery at the Burger Shot in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3460. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3461. CNR_PrintString(string);
  3462. format(string, 120, "[DISPATCH] %s has began a robbery at the Burger Shot. Go arrest the suspect.", PlayerInfo(playerid));
  3463. SendCopMessage(string);
  3464. SetPVarInt(playerid, "RobbingBurgerShot", 15);
  3465. IncreaseScore(playerid, 1);
  3466. IncreaseWantedLevel(playerid,4);
  3467. SetPVarInt(playerid, "RobbedRecently", 65);
  3468. return 1;
  3469. }
  3470. if(getCheckpointType(playerid) == CP_Tatoo)
  3471. {
  3472. if(crand < 10)
  3473. {
  3474. SetPVarInt(playerid, "RobbedRecently", 65);
  3475. SetGVarInt("TatooRobbed", 60);
  3476. return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
  3477. }
  3478. if(GetGVarInt("TatooRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Tatoo parlor has been robbed recently.");
  3479. format(string, 120, "[ROBBERY] %s has began a robbery at the Tatoo Parlor.", PlayerInfo(playerid));
  3480. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3481. CNR_PrintString(string);
  3482. format(string, 120, "[DISPATCH] %s has began a robbery at the Tatoo Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3483. SendCopMessage(string);
  3484. SetPVarInt(playerid, "RobbingTattoShop", 15);
  3485. IncreaseScore(playerid, 1);
  3486. IncreaseWantedLevel(playerid, 4);
  3487. SetPVarInt(playerid, "TatooRobbed", 100);
  3488. SetPVarInt(playerid, "RobbedRecently", 60);
  3489. return 1;
  3490. }
  3491. if(getCheckpointType(playerid) == CP_PigPenRob)
  3492. {
  3493. if(crand < 10)
  3494. {
  3495. SetPVarInt(playerid, "RobbedRecently", 65);
  3496. SetGVarInt("PigPenRobbed", 60);
  3497. return SendClientMessage(playerid, COLOR_ERROR, "Robbery faild.");
  3498. }
  3499. if(GetGVarInt("PigPenRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Pig Pen has been robbed recently.");
  3500. format(string, 120, "[ROBBERY] %s has started a robbery at the Pig Pen Dance Club.", PlayerInfo(playerid));
  3501. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3502. CNR_PrintString(string);
  3503. format(string, 120, "[DISPATCH] %s has began a robbery at the Pig Pen Dance Club. Location: %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3504. SendCopMessage(string);
  3505. SetPVarInt(playerid, "RobbingPigPen", 15);
  3506. SetPVarInt(playerid, "RobbedRecently", 60);
  3507. IncreaseScore(playerid, 1);
  3508. IncreaseWantedLevel(playerid, 4);
  3509. return 1;
  3510. }
  3511. if(getCheckpointType(playerid) == CP_Suburban)
  3512. {
  3513. if(crand < 10)
  3514. {
  3515. SetPVarInt(playerid, "RobbedRecently", 65);
  3516. SetGVarInt("SuburbanRobbed", 60);
  3517. return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
  3518. }
  3519. if(GetGVarInt("SuburbanRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Suburban has been robbed recently.");
  3520. format(string, 120, "[ROBBERY] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3521. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3522. CNR_PrintString(string);
  3523. format(string, 120, "[DISPATCH] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3524. SendCopMessage(string);
  3525. SetPVarInt(playerid, "RobbingSuburban", 15);
  3526. SetPVarInt(playerid, "RobbedRecently", 120);
  3527. SetGVarInt("SuburbanRobbed", 120);
  3528. IncreaseScore(playerid, 1);
  3529. IncreaseWantedLevel(playerid, 4);
  3530. return 1;
  3531. }
  3532. if(getCheckpointType(playerid) == CP_Binco)
  3533. {
  3534. if(crand < 10)
  3535. {
  3536. SetPVarInt(playerid, "RobbedRecently", 65);
  3537. SetGVarInt("BincoRobbed", 60);
  3538. return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
  3539. }
  3540. if(GetGVarInt("BincoRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Binco has been robbed recently. Please wait.");
  3541. format(string, 120, "[ROBBERY] %s has started a robbery at the Binco in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3542. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3543. CNR_PrintString(string);
  3544. format(string, 120, "[DISPATCH] %s has started a robbery at the Binco in %s.",PlayerInfo(playerid), zones[current_zone][zone_name]);
  3545. SendCopMessage(string);
  3546. SetPVarInt(playerid, "RobbingBinco", 15);
  3547. SetPVarInt(playerid, "RobbedRecently", 120);
  3548. SetGVarInt("BincoRobbed", 120);
  3549. IncreaseScore(playerid, 1);
  3550. IncreaseWantedLevel(playerid, 4);
  3551. return 1;
  3552. }
  3553. if(getCheckpointType(playerid) == CP_WellStacked)
  3554. {
  3555. if(crand < 10)
  3556. {
  3557. SetPVarInt(playerid, "RobbedRecently", 65);
  3558. SetGVarInt("PizzaRobbed", 60);
  3559. return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
  3560. }
  3561. if(GetGVarInt("PizzaRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Well Stacked Pizza parlor has been robbed recently.");
  3562. format(string, 120, "[ROBBERY] %s has started a robbery at the Well Stacked Pizza Parlor in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
  3563. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3564. CNR_PrintString(string);
  3565. format(string, 120, "[DISPATCH] %s has started a robbery at the Well Stacked Pizza Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3566. SendCopMessage(string);
  3567. SetPVarInt(playerid, "RobbingPizza", 15);
  3568. SetPVarInt(playerid, "RobbedRecently", 120);
  3569. SetGVarInt("PizzaRobbed", 120);
  3570. IncreaseScore(playerid, 1);
  3571. IncreaseWantedLevel(playerid, 4);
  3572. return 1;
  3573. }
  3574. return 1;
  3575. }
  3576. command(pack, playerid, params[])
  3577. {
  3578. if(GetPVarInt(playerid, "HasPack") !=1)
  3579. {
  3580. return SendClientMessage(playerid, COLOR_ERROR, "Sorry, you must have a pack before using this command.");
  3581. }
  3582. if(GetPVarInt(playerid, "Jailed") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
  3583. if(GetPVarInt(playerid, "Cuffed") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  3584. ShowPlayerDialog(playerid, DIALOG_PACK, DIALOG_STYLE_LIST, "What do you want to do?", "Take something out\nPut something in", "Okay", "Cancel");
  3585. return 1;
  3586. }
  3587.  
  3588. cmd(location, playerid, params[])
  3589. {
  3590. new current_zone = player_zone[playerid];
  3591. new string[120];
  3592. format(string, 120, "[LOCATION] %s", zones[current_zone][zone_name]);
  3593. SendClientMessage(playerid, COLOR_RED, string);
  3594. return 1;
  3595. }
  3596. command(commands, playerid, params[])
  3597. {
  3598. if(gTeam[playerid] == Team_Army)
  3599. {
  3600. SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
  3601. SendClientMessage(playerid, COLOR_PURPLE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID) ");
  3602. }
  3603. if(gTeam[playerid] == Team_Cop)
  3604. {
  3605. SendClientMessage(playerid, COLOR_DODGERBLUE, "**Los Santos Police Department**");
  3606. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID) ");
  3607. }
  3608. if(gTeam[playerid] == Team_Rape)
  3609. {
  3610. SendClientMessage(playerid, COLOR_WHITE, "**Rapist**");
  3611. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rape (ID) /fondle (ID)");
  3612. }
  3613. if(gTeam[playerid] == Team_FBI)
  3614. {
  3615. SendClientMessage(playerid, COLOR_BLUE, "**FBI Agent**");
  3616. SendClientMessage(playerid, COLOR_BLUE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID)");
  3617. }
  3618. if(gTeam[playerid] == Team_Terror)
  3619. {
  3620. SendClientMessage(playerid, COLOR_WHITE, "**Terrorist**");
  3621. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /bomb /blow");
  3622. }
  3623. if(gTeam[playerid] == Team_Steal)
  3624. {
  3625. SendClientMessage(playerid, COLOR_WHITE, "**Theif**");
  3626. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rob (ID)");
  3627. }
  3628. if(gTeam[playerid] == Team_PrvtMed)
  3629. {
  3630. SendClientMessage(playerid, COLOR_WHITE, "**Private Medic**");
  3631. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /infect (ID) /healme /heal (ID) /cure (ID)");
  3632. }
  3633. return 1;
  3634. }
  3635. cmd(healme, playerid, params[])
  3636. {
  3637. if(gTeam[playerid] != Team_PrvtMed) return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
  3638. if(GetPlayerWantedLevel(playerid) >= 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while wanted.");
  3639. if(GetPVarInt(playerid, "UsedHealme") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command right now, you just used it!");
  3640. SetPlayerHealth(playerid, 100);
  3641. SendClientMessage(playerid, COLOR_GREEN, "[MEDIC] You have healed yourself.");
  3642. SetPVarInt(playerid, "UsedHealme", 120);
  3643. return 1;
  3644. }
  3645.  
  3646. cmd(blow, playerid, params[])
  3647. {
  3648. if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_ERROR, "Only Terrorists can use this command.");
  3649. if(!IsPlayerInCheckpoint(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a checkpoint that you can blow.");
  3650. if(getCheckpointType(playerid) == CP_LSAirportBlow)
  3651. {
  3652. if(GetPVarInt(playerid, "TerrorSkill") < 20)
  3653. {
  3654. return SendClientMessage(playerid, COLOR_ERROR, "Your terrorist skill isn't high enough to blow the airport.");
  3655. }
  3656. if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
  3657. if(GetGVarInt("AirportBlown") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The airport has been blown up recently.");
  3658. SetPVarInt(playerid, "HasExp", 0);
  3659. new string[120];
  3660. new current_zone = player_zone[playerid];
  3661. format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has began to plant explosives at the L.S. Airport in %s. ", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3662. SendCopMessage(string);
  3663. format(string, 120, "[DISPATCH] Go arrest him now.");
  3664. SendCopMessage(string);
  3665. format(string, 120, "[TERRORISM] Terrorist %s has began to plant explosives at the L.S. Airport in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3666. SendClientMessageToAll(COLOR_RED, string);
  3667. CNR_PrintString(string);
  3668. IncreaseWantedLevel(playerid, 6);
  3669. IncreaseScore(playerid, 3);
  3670. SetTimer("APPlantOne",5000,0);
  3671. SetGVarInt("AirportBlown", 400);
  3672. SetPVarInt(playerid, "BlowingAirport", 1);
  3673. if(GetPVarInt(playerid, "TerrorSkill") > 20 && GetPVarInt(playerid, "TerrorSkill") < 30)
  3674. {
  3675. SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") +1);
  3676. format(string, 120, "[SKILL UPGRADE] Your terrorist skill has increased to %s!", GetPVarInt(playerid, "TerrorSkill"));
  3677. SendClientMessage(playerid, COLOR_RED, string);
  3678. }
  3679. return 1;
  3680. }
  3681. if(getCheckpointType(playerid) == CP_ParkBlow)
  3682. {
  3683. if(GetPVarInt(playerid, "TerrorSkill") != 30)
  3684. {
  3685. return SendClientMessage(playerid, COLOR_ERROR, "You must be a master terrorist to do this job.");
  3686. }
  3687. if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
  3688. if(GetGVarInt("ParkBlown") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The park has been blown up recently.");
  3689. SetPVarInt(playerid, "HasExp", 0);
  3690. new string[120];
  3691. new current_zone = player_zone[playerid];
  3692. format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has began to plant explosives at the Amusement Park in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
  3693. SendCopMessage(string);
  3694. format(string, 120, "[TERRORISM] Master Terrorist %s has began to plant explosives at the Amusement Park in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3695. SendClientMessageToAll(COLOR_RED, string);
  3696. CNR_PrintString(string);
  3697. IncreaseWantedLevel(playerid, 6);
  3698. IncreaseScore(playerid, 5);
  3699. SetTimer("ParkPlantOne", 3000,0);
  3700. SetGVarInt("AmuseParkBlown", 500);
  3701. SetPVarInt(playerid, "BlowingPark", 1);
  3702. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  3703. return 1;
  3704. }
  3705. if(getCheckpointType(playerid) == CP_VinewoodBlow)
  3706. {
  3707. if(GetPVarInt(playerid, "TerrorSkill") < 15)
  3708. {
  3709. return SendClientMessage(playerid, COLOR_ERROR, "You must have a terrorist skill of 15 or higher to do this job.");
  3710. }
  3711. if(GetPVarInt(playerid, "HasExp") == 0)
  3712. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
  3713. if(GetPVarInt(playerid, "SignBlown") > 1)
  3714. return SendClientMessage(playerid, COLOR_ERROR, "The sign has been blown recently. Please wait.");
  3715. new string[120];
  3716. new current_zone = player_zone[playerid];
  3717. format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has begun to plant the Vinewood sign with Explosives in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3718. SendCopMessage(string);
  3719. format(string, 120, "[TERRORISM] Terrorist %s has started to plant explosives at the Vinewood Sign in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3720. SendClientMessageToAll(COLOR_RED, string);
  3721. CNR_PrintString(string);
  3722. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  3723. SetTimer("SignPlantOne", 2000, 0);
  3724. SetGVarInt("SignBlown", 400);
  3725. SetPVarInt(playerid, "BlowingSign", 1);
  3726. SetPVarInt(playerid, "HasExp", 0);
  3727. return 1;
  3728. }
  3729. if(getCheckpointType(playerid) == CP_BankBlow)
  3730. {
  3731. if(GetPVarInt(playerid, "TerrorSkill") < 10)
  3732. return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough skill to blow up the bank.");
  3733. if(GetPVarInt(playerid, "HasExp") == 0)
  3734. return SendClientMessage(playerid, COLOR_ERROR, "You do not have explosives.");
  3735. if(GetGVarInt("BankBlown") > 1)
  3736. return SendClientMessage(playerid, COLOR_ERROR, "The bank has been blown up recently");
  3737. new string[120];
  3738. new current_zone = player_zone[playerid];
  3739. format(string, 120, "[DISPATCH] Terrorism: %s has started to plant explosives at the Los Santos bank in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3740. SendCopMessage(string);
  3741. format(string, 120, "[TERRORISM] %s has started to plant explosives at the Los Santos Bank in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3742. SendClientMessageToAll(COLOR_RED, string);
  3743. CNR_PrintString(string);
  3744. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  3745. SetTimer("BankPlantOne", 3000, 0);
  3746. SetPVarInt(playerid, "HasExp", 0);
  3747. SetGVarInt("BankBlown", 300);
  3748. SetPVarInt(playerid, "BlowingBank", 1);
  3749. if(GetPVarInt(playerid, "TerrorSkill") > 10 && GetPVarInt(playerid, "TerrorSkill") < 20)
  3750. {
  3751. SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") + 1);
  3752. SendClientMessage(playerid, COLOR_RED, "[SKILL UPGRADE] You terrorist skill has gone up!");
  3753. return 1;
  3754. }
  3755. return 1;
  3756. }
  3757. return 1;
  3758. }
  3759. cmd(fine, playerid, params[])
  3760. {
  3761. if(!IsCop(playerid))
  3762. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  3763. new string[120], ID;
  3764. if(sscanf(params, "u", ID))
  3765. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /fine (ID)");
  3766. if(!IsPlayerConnected(ID))
  3767. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  3768. new pwl = GetPlayerWantedLevel(playerid);
  3769. if(pwl != 3)
  3770. return SendClientMessage(playerid, COLOR_ERROR, "Only persons with a wanted level of 3 can be fined.");
  3771. format(string, 120, "[COP ACTION] You have been fined by officer %s. You have been charged $5,000", PlayerInfo(playerid));
  3772. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  3773. format(string, 120, "[COP ACTION] You have fined %s. You have recieved a collection prize.", PlayerInfo(ID));
  3774. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  3775. format(string, 120, "[DISPATCH] Officer %s has fined %s. He is no longer wanted.", PlayerInfo(playerid), PlayerInfo(ID));
  3776. SendCopMessage(string);
  3777. SetPlayerWantedLevel(ID, 0);
  3778. IncreaseScore(playerid, 1);
  3779. GivePlayerMoney(playerid, 2500);
  3780. GivePlayerMoney(ID, -5000);
  3781. return 1;
  3782.  
  3783. }
  3784. cmd(cure, playerid, params[])
  3785. {
  3786. new string[120];
  3787. if(gTeam[playerid] != Team_PrvtMed)
  3788. return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
  3789. if(GetPVarInt(playerid, "Cuffed") == 1)
  3790. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
  3791. if(GetPVarInt(playerid, "Jailed") == 1)
  3792. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in prison.");
  3793. if(GetPVarInt(playerid, "Spawned") == 0)
  3794. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
  3795. new ID;
  3796. if(sscanf(params, "u", ID))
  3797. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /heal (ID)");
  3798. if(!IsPlayerConnected(ID))
  3799. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  3800. if(GetPVarInt(ID, "CalledForMedic") == 0)
  3801. return SendClientMessage(playerid, COLOR_ERROR, "That player hasn't called for a medic.");
  3802. if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 0)
  3803. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't infected with a disease.");
  3804. if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 0)
  3805. {
  3806. format(string, 120, "[MEDIC] Medic %s has healed you of your infection. You are no longer sick.", PlayerInfo(playerid));
  3807. SendClientMessage(ID, COLOR_GREEN, string);
  3808. format(string, 120, "[MEDIC] You have cured %s of his infection.", PlayerInfo(ID));
  3809. SendClientMessage(playerid, COLOR_GREEN, string);
  3810. SetPVarInt(ID, "IsSick", 0);
  3811. IncreaseScore(playerid, 1);
  3812. GivePlayerMoney(playerid, 5000);
  3813. GivePlayerMoney(ID, -5000);
  3814. return 1;
  3815. }
  3816. if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 1)
  3817. {
  3818. format(string, 120, "[MEDIC] Medic %s has healed you of your STDs.", PlayerInfo(playerid));
  3819. SendClientMessage(ID, COLOR_GREEN, string);
  3820. format(string, 120, "[MEDIC] You have cured %s of his STD.", PlayerInfo(ID));
  3821. SendClientMessage(playerid, COLOR_GREEN, string);
  3822. SetPVarInt(ID, "HasSTDs", 0);
  3823. IncreaseScore(playerid, 1);
  3824. GivePlayerMoney(playerid, 5000);
  3825. GivePlayerMoney(ID, -5000);
  3826. return 1;
  3827. }
  3828. if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 1)
  3829. {
  3830. format(string, 120, "[MEDIC] Medic %s has healed you of your STDs and infections.", PlayerInfo(playerid));
  3831. SendClientMessage(ID, COLOR_GREEN, string);
  3832. format(string, 120, "[MEDIC] You have healed %s of their infection and STDs.", PlayerInfo(ID));
  3833. SendClientMessage(playerid, COLOR_GREEN, string);
  3834. SetPVarInt(ID, "HasSTDs", 0);
  3835. SetPVarInt(ID, "IsSick", 0);
  3836. GivePlayerMoney(playerid, 10000);
  3837. GivePlayerMoney(ID, -10000);
  3838. IncreaseScore(playerid, 2);
  3839. return 1;
  3840. }
  3841. return 1;
  3842. }
  3843. cmd(bomb, playerid, params[])
  3844. {
  3845. new string[120];
  3846. new current_zone = player_zone[playerid];
  3847. if(gTeam[playerid] != Team_Terror)
  3848. return SendClientMessage(playerid, COLOR_ERROR, "Only terrorists can use this command.");
  3849. if(GetPVarInt(playerid, "Jailed") == 1)
  3850. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  3851. if(GetPVarInt(playerid, "Cuffed") == 1)
  3852. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  3853. if(!IsPlayerInAnyVehicle(playerid))
  3854. return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
  3855. if(GetPVarInt(playerid, "HasExp") == 0)
  3856. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives. Go buy some at the bomb shop.");
  3857. if(GetPVarInt(playerid, "HasBlownCar") >= 1)
  3858. return SendClientMessage(playerid, COLOR_ERROR, "You have blown up a car recently. Please wait.");
  3859. new veh = GetPlayerVehicleID(playerid);
  3860. VehicleInfo[veh][bomb] = 15;
  3861. format(string, 120, "[TERRORISM] %s has planted a bomb in his car. It will soon explode.", PlayerInfo(playerid));
  3862. SendClientMessageToAll(COLOR_RED, string);
  3863. CNR_PrintString(string);
  3864. format(string, 120, "[DISPATCH] Terrorist %s has planted a bomb in his car. Go arrest the suspect now. Location: %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3865. SendCopMessage(string);
  3866. IncreaseScore(playerid, 1);
  3867. IncreaseWantedLevel(playerid, 4);
  3868. SetPVarInt(playerid, "HasBlownCar", 120);
  3869. SetPVarInt(playerid, "HasExp", 0);
  3870. SendClientMessage(playerid, COLOR_ERROR, "[TERRORISM] You have planted a bomb in your car. Get out now!");
  3871. return 1;
  3872. }
  3873. cmd(medic, playerid, params[])
  3874. {
  3875. new current_zone = player_zone[playerid];
  3876. new string[120];
  3877. if(GetPVarInt(playerid, "Cuffed") == 1)
  3878. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
  3879. if(GetPVarInt(playerid, "Jailed") == 1)
  3880. return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
  3881. if(GetPVarInt(playerid, "Spawned") == 0)
  3882. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  3883. if(gTeam[playerid] == Team_PrvtMed)
  3884. return SendClientMessage(playerid, COLOR_ERROR, "You are a medic!");
  3885. format(string, 120, "[ALERT] %s has called for a medic. Go assist that person now. (%s)",PlayerInfo(playerid), zones[current_zone][zone_name]);
  3886. SendMedicMessage(string);
  3887. SetPVarInt(playerid, "CalledForMedic", 1);
  3888. return 1;
  3889. }
  3890. cmd(heal, playerid, params[])
  3891. {
  3892. new string[120];
  3893. if(gTeam[playerid] != Team_PrvtMed)
  3894. return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
  3895. if(GetPVarInt(playerid, "Cuffed") == 1)
  3896. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
  3897. if(GetPVarInt(playerid, "Jailed") == 1)
  3898. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in prison.");
  3899. if(GetPVarInt(playerid, "Spawned") == 0)
  3900. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
  3901. new ID;
  3902. if(sscanf(params, "u", ID))
  3903. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /heal (ID)");
  3904. if(!IsPlayerConnected(ID))
  3905. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  3906. if(GetPVarInt(ID, "CalledForMedic") == 0)
  3907. return SendClientMessage(playerid, COLOR_ERROR, "That player hasn't called for a medic.");
  3908. SetPlayerHealth(ID, 100);
  3909. IncreaseScore(playerid, 1);
  3910. SetPVarInt(ID, "CalledForMedic", 0);
  3911. format(string, 120, "[MEDIC] Private Medic %s has healed %s.",PlayerInfo(playerid), PlayerInfo(ID));
  3912. CNR_PrintString(string);
  3913. format(string, 120, "[MEDIC] %s has healed you.", PlayerInfo(playerid));
  3914. SendClientMessage(ID,COLOR_GREEN, string);
  3915. format(string, 120, "[MEDIC] You have healed %s.", PlayerInfo(ID));
  3916. SendClientMessage(playerid, COLOR_GREEN, string);
  3917. GivePlayerMoney(playerid, 5000);
  3918. GivePlayerMoney(ID, -5000);
  3919. return 1;
  3920. }
  3921. command(rape, playerid, params[])
  3922. {
  3923. new ID, string[200];
  3924. if(IsCop(playerid))
  3925. {
  3926. return SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot rape people.");
  3927. }
  3928. if(!IsCop(playerid))
  3929. {
  3930. if(GetPVarInt(playerid, "RapeRecently") == 1)
  3931. {
  3932. return SendClientMessage(playerid, COLOR_ERROR, "Command used recently. Please wait.");
  3933. }
  3934. if(GetPVarInt(playerid, "Spawned") == 0)
  3935. {
  3936. return SendClientMessage(playerid, COLOR_ERROR, "You must be alive to use that command.");
  3937. }
  3938. if(GetPVarInt(playerid, "Cuffed") == 1)
  3939. {
  3940. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
  3941. }
  3942. if(GetPVarInt(playerid, "Jailed") == 1)
  3943. {
  3944. return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
  3945. }
  3946. if(IsPlayerInAnyVehicle(playerid))
  3947. {
  3948. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
  3949. }
  3950. if(sscanf(params, "u", ID))
  3951. {
  3952. return SendClientMessage(playerid, COLOR_RED, "Usage: /rape (ID)");
  3953. }
  3954. if(ID == playerid)
  3955. {
  3956. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape yourself.");
  3957. }
  3958. if(!IsPlayerConnected(ID))
  3959. {
  3960. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  3961. }
  3962. if(GetPVarInt(ID, "Jailed") == 1)
  3963. {
  3964. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape a prisoner.");
  3965. }
  3966. if(GetPVarInt(ID, "Cuffed") == 1)
  3967. {
  3968. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape that player. He/She is cuffed.");
  3969. }
  3970. if(IsPlayerInAnyVehicle(ID))
  3971. {
  3972. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape a player in a vehicle.");
  3973. }
  3974. if(GetDistanceBetweenPlayers(playerid, ID) > 4)
  3975. {
  3976. return SendClientMessage(playerid, COLOR_ERROR, "Your dick is not big enough! Get closer!");
  3977. }
  3978. if(GetPVarInt(ID, "HasCondom") == 1)
  3979. {
  3980. SendClientMessage(playerid, COLOR_ERROR, "That player had a condom. You failed to rape them.");
  3981. SendClientMessage(ID, COLOR_ERROR, "Your condom has protected you from a rape. You have lost your condom.");
  3982. SetPVarInt(ID, "HasCondom", 0);
  3983. }
  3984. format(string, sizeof(string), "**RAPE COMPLETE**");
  3985. SendClientMessage(playerid, COLOR_GREY, string);
  3986. format(string, sizeof(string), "You have raped %s.", PlayerInfo(ID));
  3987. SendClientMessage(playerid, COLOR_GREEN, string);
  3988. if(gTeam[playerid] == Team_Rape)
  3989. {
  3990. format(string, sizeof(string), "%s has been infected with STDs.", PlayerInfo(ID));
  3991. SendClientMessageToAll(COLOR_RED, string);
  3992. CNR_PrintString(string);
  3993. SetPVarInt(ID, "HasSTDs", 1);
  3994. }
  3995. if(IsCop(ID))
  3996. {
  3997. IncreaseWantedLevel(playerid, 4);
  3998. }
  3999. if(gTeam[ID] == Team_Rape || gTeam[ID] == Team_Terror || gTeam[ID] == Team_Steal || gTeam[ID] == Team_PrvtMed)
  4000. {
  4001. IncreaseWantedLevel(playerid, 3);
  4002. }
  4003. new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
  4004. format(string, sizeof(string), "**RAPE VICTIM**");
  4005. SendClientMessage(ID, COLOR_GREY, string);
  4006. format(string, sizeof(string), "You have been raped by %s. You might have STDs.", PlayerInfo(playerid));
  4007. SendClientMessage(ID, COLOR_GREEN, string);
  4008. format(string, sizeof(string), "%s has raped %s", PlayerInfo(playerid), PlayerInfo(ID));
  4009. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4010. CNR_PrintString(string);
  4011. SetPVarInt(playerid, "RapeRecently", 1);
  4012. SetTimer("RapeAgain", 1000*6*2, 0);
  4013. format(string, 120, "[DISPATCH] %s has raped %s Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
  4014. SendCopMessage(string);
  4015. return 1;
  4016. }
  4017. return 1;
  4018. }
  4019.  
  4020. command(fondle, playerid, params[])
  4021. {
  4022. new ID, string[200];
  4023. if(IsCop(playerid))
  4024. {
  4025. SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot fondle other people.");
  4026. return 1;
  4027. }
  4028. if(gTeam[playerid] != Team_Rape)
  4029. {
  4030. SendClientMessage(playerid, COLOR_ERROR, "Only Rapists can fondle players.");
  4031. return 1;
  4032. }
  4033. if(GetPVarInt(playerid, "Spawned") == 0)
  4034. {
  4035. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned and alive to use this command.");
  4036. }
  4037. if(GetPVarInt(playerid, "Cuffed") == 1)
  4038. {
  4039. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
  4040. }
  4041. if(GetPVarInt(playerid, "Jailed") == 1)
  4042. {
  4043. return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle someone. You are in jail.");
  4044. }
  4045. if(IsPlayerInAnyVehicle(playerid))
  4046. {
  4047. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
  4048. }
  4049. if(sscanf(params, "u", ID))
  4050. {
  4051. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /fondle (ID)");
  4052. }
  4053. if(ID == playerid)
  4054. {
  4055. return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle yourself.");
  4056. }
  4057. if(!IsPlayerConnected(ID))
  4058. {
  4059. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4060. }
  4061. if(IsPlayerInAnyVehicle(ID))
  4062. {
  4063. return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle someone in a vehicle.");
  4064. }
  4065. if(GetDistanceBetweenPlayers(playerid, ID) > 5)
  4066. {
  4067. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to fondle.");
  4068. }
  4069. if(GetPVarInt(ID, "Cuffed") == 1)
  4070. {
  4071. return SendClientMessage(playerid, COLOR_ERROR, "That player is cuffed, you cannot fondle him.");
  4072. }
  4073. if(GetPVarInt(ID, "Jailed") == 1)
  4074. {
  4075. return SendClientMessage(playerid, COLOR_ERROR, "That player is in jail, you cannot fondle him.");
  4076. }
  4077. if(GetPVarInt(playerid, "FondleRecent") == 1)
  4078. {
  4079. return SendClientMessage(playerid, COLOR_ERROR, "Please wait before using this command again.");
  4080. }
  4081. if(IsCop(ID))
  4082. {
  4083. IncreaseWantedLevel(playerid, 4);
  4084. }
  4085. if(!IsCop(ID))
  4086. {
  4087. IncreaseWantedLevel(playerid, 3);
  4088. }
  4089. new current_zone = player_zone[playerid];
  4090. format(string, 200, "%s has fondled %s!", PlayerInfo(playerid), PlayerInfo(ID));
  4091. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4092. CNR_PrintString(string);
  4093. format(string, 200, "**FONDLE COMPLETE**");
  4094. SendClientMessage(playerid, COLOR_GREY, string);
  4095. format(string, 200, "You have fondled %s", PlayerInfo(ID));
  4096. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  4097. format(string, 200, "%s has fondled you.", PlayerInfo(playerid));
  4098. SendClientMessage(ID, COLOR_LIGHTBLUE, string);
  4099. IncreaseScore(playerid, 1);
  4100. SetPVarInt(playerid, "FondleRecent", 1);
  4101. SetTimer("ResetFondle", 1000*60*3, 0);
  4102. format(string, 120, "[DISPATCH] %s has fondled %s. Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
  4103. SendCopMessage(string);
  4104. return 1;
  4105. }
  4106.  
  4107. command(ar, playerid, params[])
  4108. {
  4109. new ID, string[200];
  4110. if(!IsCop(playerid))
  4111. {
  4112. return SendClientMessage(playerid, COLOR_ERROR, "You are not a Law Enforcement officer.");
  4113. }
  4114. if(IsPlayerInAnyVehicle(playerid))
  4115. {
  4116. return SendClientMessage(playerid, COLOR_ERROR, "You cannot be in a vehicle to use this command.");
  4117. }
  4118. if(sscanf(params, "u", ID))
  4119. {
  4120. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ar (ID)");
  4121. }
  4122. if(!IsPlayerConnected(ID))
  4123. {
  4124. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4125. }
  4126. if(ID == playerid)
  4127. {
  4128. return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest yourself.");
  4129. }
  4130. if(IsPlayerInAnyVehicle(ID))
  4131. {
  4132. return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest a player inside a vehicle.");
  4133. }
  4134. if(GetPVarInt(ID, "Jailed") == 1)
  4135. {
  4136. return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest a jailed person.");
  4137. }
  4138. if(GetPVarInt(ID, "Cuffed") ==0)
  4139. {
  4140. return SendClientMessage(playerid, COLOR_ERROR, "You must cuff the player before arresting.");
  4141. }
  4142. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  4143. {
  4144. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to arrest.");
  4145. }
  4146. if(GetPlayerWantedLevel(ID) <= 4)
  4147. {
  4148. return SendClientMessage(playerid, COLOR_ERROR, "The player must have a wanted level before you arrest.");
  4149. }
  4150. new pwl = GetPlayerWantedLevel(ID);
  4151. if(pwl == 4)
  4152. {
  4153. format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s",PlayerInfo(playerid), PlayerInfo(ID));
  4154. SendClientMessageToAll(COLOR_BLUE, string);
  4155. CNR_PrintString(string);
  4156. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  4157. SendCopMessage(string);
  4158. GivePlayerMoney(playerid, 5000);
  4159. IncreaseScore(playerid, 1);
  4160. SetPVarInt(ID, "JailTime", 45);
  4161. SetPlayerInterior(ID, 10);
  4162. new rnd = random(sizeof(PrisonSpawn));
  4163. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  4164. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  4165. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  4166. TogglePlayerControllable(ID, 1);
  4167. SetPlayerWantedLevel(ID, 0);
  4168. return 1;
  4169. }
  4170. if(pwl == 4)
  4171. {
  4172. format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  4173. SendClientMessageToAll(COLOR_BLUE, string);
  4174. CNR_PrintString(string);
  4175. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  4176. SendCopMessage(string);
  4177. GivePlayerMoney(playerid, 4000);
  4178. IncreaseScore(playerid, 1);
  4179. SetPVarInt(ID, "JailTime", 70);
  4180. SetPlayerInterior(ID, 10);
  4181. new rnd = random(sizeof(PrisonSpawn));
  4182. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  4183. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  4184. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  4185. TogglePlayerControllable(ID, 1);
  4186. SetPlayerWantedLevel(ID, 0);
  4187. return 1;
  4188. }
  4189. if(pwl == 5)
  4190. {
  4191. format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  4192. SendClientMessageToAll(COLOR_BLUE, string);
  4193. CNR_PrintString(string);
  4194. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  4195. SendCopMessage(string);
  4196. GivePlayerMoney(playerid, 10000);
  4197. IncreaseScore(playerid, 2);
  4198. SetPVarInt(ID, "JailTime", 80);
  4199. SetPlayerInterior(ID, 10);
  4200. new rnd = random(sizeof(PrisonSpawn));
  4201. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  4202. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  4203. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  4204. TogglePlayerControllable(ID, 1);
  4205. SetPlayerWantedLevel(ID, 0);
  4206. return 1;
  4207. }
  4208. if(pwl == 6)
  4209. {
  4210. format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  4211. SendClientMessageToAll(COLOR_BLUE, string);
  4212. CNR_PrintString(string);
  4213. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  4214. SendCopMessage(string);
  4215. GivePlayerMoney(playerid, 10000);
  4216. IncreaseScore(playerid, 2);
  4217. SetPVarInt(ID, "JailTime", 100);
  4218. SetPlayerInterior(ID, 10);
  4219. new rnd = random(sizeof(PrisonSpawn));
  4220. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  4221. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  4222. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  4223. TogglePlayerControllable(ID, 1);
  4224. SetPlayerWantedLevel(ID, 0);
  4225. return 1;
  4226. }
  4227. return 1;
  4228. }
  4229.  
  4230. command(cuff, playerid, params[])
  4231. {
  4232. new ID; new string[200];
  4233. if(!IsCop(playerid))
  4234. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command");
  4235. if(GetPVarInt(playerid, "Spawned") == 0)
  4236. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
  4237. if(IsPlayerInAnyVehicle(playerid))
  4238. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
  4239. if(sscanf(params, "u", ID))
  4240. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /cuff (ID)");
  4241. if(!IsPlayerConnected(ID))
  4242. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4243. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  4244. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to hand cuff.");
  4245. if(GetPVarInt(ID, "Cuffed") == 1)
  4246. return SendClientMessage(playerid, COLOR_ERROR, "That player is already cuffed.");
  4247. if(GetPVarInt(ID, "Jailed") == 1)
  4248. return SendClientMessage(playerid, COLOR_ERROR, "You cannot cuff a prisoner.");
  4249. if(IsPlayerInAnyVehicle(ID))
  4250. return SendClientMessage(playerid, COLOR_ERROR, "That player is in a vehicle. You cannot cuff him.");
  4251. if(IsCop(ID))
  4252. return SendClientMessage(playerid, COLOR_ERROR, "You cannot cuff other Police Officers.");
  4253. TogglePlayerControllable(ID, 0);
  4254. GameTextForPlayer(ID, "~b~HANDCUFFED!", 5000, 1);
  4255. format(string, sizeof(string), "[POLICE] Officer %s has put hand cuffs on you. You cannot move.", PlayerInfo(playerid));
  4256. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  4257. format(string, 200, "[DISPATCH] Officer %s has cuffed player %s", PlayerInfo(playerid), PlayerInfo(ID));
  4258. SendCopMessage(string);
  4259. SetPVarInt(ID, "Cuffed", 1);
  4260. SetPVarInt(ID, "CuffTimer", 30);
  4261. SendClientMessage(playerid, COLOR_DODGERBLUE, "[POLICE] You have cuffed a suspect. You have 30 seconds before they are let loose.");
  4262. return 1;
  4263. }
  4264. cmd(uncuff, playerid, params[])
  4265. {
  4266. new ID; new string[200];
  4267. if(!IsCop(playerid))
  4268. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4269. if(GetPVarInt(playerid, "Spawned") == 0)
  4270. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
  4271. if(IsPlayerInAnyVehicle(playerid))
  4272. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
  4273. if(sscanf(params, "u", ID))
  4274. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /uncuff (ID)");
  4275. if(!IsPlayerConnected(ID))
  4276. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4277. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  4278. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to uncuff.");
  4279. if(GetPVarInt(ID, "Cuffed") == 0)
  4280. return SendClientMessage(playerid, COLOR_ERROR, "That player ID isn't cuffed.");
  4281. if(IsPlayerInAnyVehicle(ID))
  4282. return SendClientMessage(playerid, COLOR_ERROR, "That person is in a vehicle, you cannot uncuff them.");
  4283. TogglePlayerControllable(ID, 1);
  4284. format(string, 200, "[POLICE] %s has uncuffed you.", PlayerInfo(playerid));
  4285. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  4286. format(string, 200, "[DISPATCH] %s has uncuffed %s", PlayerInfo(playerid), PlayerInfo(ID));
  4287. SendCopMessage(string);
  4288. SetPVarInt(ID, "Cuffed", 0); SetPVarInt(ID, "CuffTimer", 0);
  4289. return 1;
  4290. }
  4291.  
  4292. cmd(search, playerid, params[])
  4293. {
  4294. new ID, string[200];
  4295. if(!IsCop(playerid))
  4296. return SendClientMessage(playerid, COLOR_ERROR, "Only cops/army can use this command.");
  4297. if(GetPVarInt(playerid, "Spawned") == 0)
  4298. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
  4299. if(IsPlayerInAnyVehicle(playerid))
  4300. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car/plane/helicopter.");
  4301. if(sscanf(params, "u", ID))
  4302. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /search (ID)");
  4303. if(!IsPlayerConnected(ID))
  4304. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4305. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  4306. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to search.");
  4307. if(IsPlayerInAnyVehicle(ID))
  4308. return SendClientMessage(playerid, COLOR_ERROR, "That player is in a car. You cannot search them.");
  4309. if(GetPVarInt(ID, "Cuffed") == 0)
  4310. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't cuffed. ");
  4311. if(GetPVarInt(ID, "Jailed") == 1)
  4312. return SendClientMessage(playerid, COLOR_ERROR, "That player is in jail. You cannot search a prisoner.");
  4313. if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") > 0)
  4314. {
  4315. format(string, 200, "[DISPATCH] %s has searched %s and has found %d grams of pot and %d sticks of explosives.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
  4316. SendCopMessage(string);
  4317. format(string, 200, "[POLICE] Officer %s has searched %s and %d grams of pot and %d sticks of explosives were found.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
  4318. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  4319. CNR_PrintString(string);
  4320. IncreaseWantedLevel(ID, 2);
  4321. IncreaseScore(playerid, 2);
  4322. format(string, 200, "[POLICE ACTION] Officer %s has searched you and found %d grams of pot and %d sticks of explosives.", PlayerInfo(playerid), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
  4323. SendClientMessage(ID, COLOR_RED, string);
  4324. SetPVarInt(ID, "HasPot", 0); SetPVarInt(ID, "HasExp", 0);
  4325. return 1;
  4326. }
  4327. if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") > 0)
  4328. {
  4329. format(string, 200, "[DISPATCH] %s has searched %s(%d) and has found %d sticks of explosives.",PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
  4330. SendCopMessage(string);
  4331. format(string, 200, "[POLICE] Officer %s has searched %s and has found %d sticks of explosives.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
  4332. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  4333. CNR_PrintString(string);
  4334. IncreaseWantedLevel(ID, 1);
  4335. format(string, 200, "[POLICE ACTION] Officer %s has found %d sticks of explosives on you.", PlayerInfo(playerid), GetPVarInt(ID, "HasExp"));
  4336. SendClientMessage(ID, COLOR_RED, string);
  4337. IncreaseScore(playerid, 1);
  4338. SetPVarInt(ID, "HasExp", 0);
  4339. return 1;
  4340. }
  4341. if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") == 0)
  4342. {
  4343. format(string, 200, "[DISPATCH] %s has searched %s and has found %d grams of pot.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"));
  4344. SendCopMessage(string);
  4345. format(string, 200, "[POLICE] Officer %s(%d) has searched %s and has found %d grams of pot on him.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"));
  4346. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  4347. CNR_PrintString(string);
  4348. format(string, 200, "[POLICE ACTION] Officer %s(%d) has searched you and found %d grams of pot.", PlayerInfo(playerid), GetPVarInt(ID, "HasPot"));
  4349. SendClientMessage(ID, COLOR_RED, string);
  4350. IncreaseWantedLevel(ID, 1);
  4351. IncreaseScore(playerid, 1);
  4352. SetPVarInt(ID, "HasPot", 0);
  4353. return 1;
  4354. }
  4355. if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") == 0)
  4356. {
  4357. format(string, 200, "[DISPATCH] %s has searched %s and found nothing.", PlayerInfo(playerid),PlayerInfo(ID));
  4358. SendCopMessage(string);
  4359. format(string, 200, "[POLICE] Officer %s has searched %s and found nothing.", PlayerInfo(playerid), PlayerInfo(ID));
  4360. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  4361. CNR_PrintString(string);
  4362. return 1;
  4363. }
  4364. return 1;
  4365. }
  4366. cmd(jail, playerid, params[])
  4367. {
  4368. new ID, string[200], reason;
  4369. if(GetPVarInt(playerid, "AdminLevel") == 0)
  4370. return SendClientMessage(playerid, COLOR_ERROR, "Invalid command.");
  4371. if(sscanf(params, "uZ", ID, reason))
  4372. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /jail (ID) (reason)");
  4373. if(!IsPlayerConnected(ID))
  4374. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4375. if(GetPVarInt(ID, "Jailed") == 1)
  4376. return SendClientMessage(playerid, COLOR_ERROR, "That player is already in jail.");
  4377. format(string, 200, "[ADMIN JAIL] %s %s", PlayerInfo(ID), reason);
  4378. SendClientMessageToAll(COLOR_RED, string);
  4379. CNR_PrintString(string);
  4380. new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  4381. SetPlayerInterior(ID, 10);
  4382. SetPVarInt(ID, "Jailed", 1); SetPVarInt(ID, "JailTime", 300);
  4383. return 1;
  4384. }
  4385.  
  4386. cmd(unjail, playerid, params[])
  4387. {
  4388. new ID, string[200], reason;
  4389. if(GetPVarInt(playerid, "AdminLevel") == 0)
  4390. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
  4391. if(sscanf(params, "uz", ID, reason))
  4392. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unjail (ID) (reason)");
  4393. if(!IsPlayerConnected(ID))
  4394. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4395. if(GetPVarInt(ID, "Jailed") == 0)
  4396. return SendClientMessage(playerid, COLOR_ERROR, "That player isnt' in jail.");
  4397. format(string, 200, "[ADMIN UNJAIL] %s %s", PlayerInfo(ID), reason);
  4398. SendClientMessageToAll(COLOR_RED, string);
  4399. CNR_PrintString(string);
  4400. SetPlayerPos(ID, 237.110794, 111.975547, 1003.218750);
  4401. SetPlayerInterior(ID, 10);
  4402. SetPVarInt(ID, "Jailed", 0);
  4403. SetPVarInt(ID, "JailTIme", 0);
  4404. return 1;
  4405. }
  4406.  
  4407. cmd(spike, playerid, params[])
  4408. {
  4409. new string[200];
  4410. if(!IsCop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4411. if(GetPVarInt(playerid, "Jailed") == 1)
  4412. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
  4413. if(GetPVarInt(playerid, "Spawned") == 0)
  4414. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
  4415. if(IsPlayerInAnyVehicle(playerid))
  4416. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car.");
  4417. new Float:x, Float:y, Float:z, Float:a;
  4418. GetPlayerPos(playerid, x, y, z);
  4419. GetPlayerFacingAngle(playerid, a);
  4420. CreateStrip(x, y, z, a);
  4421. format(string, 200, "[DISPATCH] Officer %s has laid spike strips. Take caution.", PlayerInfo(playerid));
  4422. SendCopMessage(string);
  4423. return 1;
  4424. }
  4425.  
  4426. cmd(remspike, playerid, params[])
  4427. {
  4428. new string[200];
  4429. if(!IsCop(playerid))
  4430. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4431. if(GetPVarInt(playerid, "Spawned") == 0)
  4432. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command");
  4433. if(IsPlayerInAnyVehicle(playerid))
  4434. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car.");
  4435. RemoveClosestSpike(playerid);
  4436. format(string, 200, "[DISPATCH] %s has removed spike strips in his location.", PlayerInfo(playerid));
  4437. SendCopMessage(string);
  4438. return 1;
  4439. }
  4440. cmd(remallspike, playerid, params[])
  4441. {
  4442. new string[200];
  4443. if(GetPVarInt(playerid, "AdminLevel") == 0)
  4444. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
  4445. RemoveAllSpikes();
  4446. format(string, 200, "[ADMIN ACTION] %s has used the command: /remallspike.", PlayerInfo(playerid));
  4447. SendAdminMessage(string);
  4448. print(string);
  4449. return 1;
  4450. }
  4451. cmd(detain, playerid, params[])
  4452. {
  4453. new ID; new string[200];
  4454. if(!IsCop(playerid))
  4455. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4456. if(GetPVarInt(playerid, "Spawned") == 1)
  4457. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
  4458. if(sscanf(params, "u", ID))
  4459. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /detain (ID)");
  4460. if(!IsPlayerConnected(ID))
  4461. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4462. if(GetPVarInt(playerid, "Cuffed") == 0)
  4463. return SendClientMessage(playerid, COLOR_ERROR, "The player must be cuffed in order for you to use this command.");
  4464. if(GetPVarInt(playerid, "Jailed") == 0)
  4465. return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain a prisoner.");
  4466. if(IsPlayerInAnyVehicle(playerid))
  4467. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
  4468. if(IsPlayerInAnyVehicle(ID))
  4469. return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain that player. He/She is in a vehicle.");
  4470. if(playerid == ID)
  4471. return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain yourself.");
  4472. if(GetPVarInt(playerid, "LastVehicle") == 0)
  4473. return SendClientMessage(playerid, COLOR_ERROR, "You must enter a vehicle first.");
  4474. if(GetDistanceBetweenPlayers(playerid, ID) > 4)
  4475. return SendClientMessage(playerid, COLOR_ERROR, "That playeris too far away.");
  4476. if(GetPlayerWantedLevel(ID) <= 1)
  4477. return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain this player.");
  4478. format(string, 200, "[DISPATCH] Officer %s has taken %s and detained them.",PlayerInfo(playerid), PlayerInfo(ID));
  4479. SendCopMessage(string);
  4480. format(string, 200, "[POLICE] Officer %s has detained %s.", PlayerInfo(playerid), PlayerInfo(ID));
  4481. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  4482. CNR_PrintString(string);
  4483. SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS POLICE**");
  4484. SendClientMessage(playerid, COLOR_GREY, "You have been detained. You will be taken to jail shortly.");
  4485. SetPVarInt(playerid, "CuffTimer", 200); SetPVarInt(playerid, "Cuffed", 0);
  4486. PutPlayerInVehicle(ID, GetPVarInt(playerid, "LastVehicle"), 1);
  4487. SetPlayerScore(playerid, 1);
  4488. GivePlayerMoney(playerid, 10000);
  4489. return 1;
  4490. }
  4491. cmd(buyexp, playerid, params[])
  4492. {
  4493. new number;
  4494. if(getCheckpointType(playerid) != CP_BuyExp)
  4495. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bomb shop checkpoint.");
  4496. if(gTeam[playerid] != Team_Terror)
  4497. return SendClientMessage(playerid, COLOR_ERROR, "Sorry, you are not a terrorist.");
  4498. if(sscanf(params, "i", number))
  4499. return SendClientMessage(playerid, COLOR_GREEN, "Type /buyexp (amount) to buy explosives. Amounts: Between 1 and 5");
  4500. if(number == 1)
  4501. {
  4502. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You must have $10,000 to buy one stick of explosives.");
  4503. if(GetPVarInt(playerid, "HasExp") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have explosives on you. You must put them away before buying more.");
  4504. SetPVarInt(playerid, "HasExp", 1); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought one stick of explosives for $10,000.");
  4505. GivePlayerMoney(playerid, -10000);
  4506. return 1;
  4507. }
  4508. if(number == 2)
  4509. {
  4510. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You must have $20,000 to buy two sticks of explosives.");
  4511. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 2); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 2 sticks of explosives. They have been placed in your pack.");
  4512. GivePlayerMoney(playerid, -20000);
  4513. return 1;
  4514. }
  4515. if(number == 3)
  4516. {
  4517. if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_ERROR, "You do no have $30,000.");
  4518. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 3); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 3 sticks of explosives.");
  4519. GivePlayerMoney(playerid, -30000);
  4520. return 1;
  4521. }
  4522. if(number == 4)
  4523. {
  4524. if(GetPlayerMoney(playerid) < 40000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have $40,000 for explosives.");
  4525. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 4); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 4 sticks of explosives. They have been put into your pack.");
  4526. return GivePlayerMoney(playerid, -40000);
  4527. }
  4528. if(number == 5)
  4529. {
  4530. if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have $45,000 to spend on explosives.");
  4531. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 5); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 5 sticks of explosives. They have been put into your pack.");
  4532. return GivePlayerMoney(playerid, -45000);
  4533. }
  4534. else
  4535. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /buyexp (1-5)");
  4536. }
  4537. cmd(bankstate, playerid, params[])
  4538. {
  4539. new string[120];
  4540. if(!IsPlayerInCheckpoint(playerid))
  4541. return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
  4542. if(getCheckpointType(playerid) != CP_Bank)
  4543. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
  4544. format(string, sizeof(string), "Your current bank balance is: $%d", GetPVarInt(playerid, "BankCash"));
  4545. SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS BANK**");
  4546. SendClientMessage(playerid, COLOR_GREY, "Thank you for choosing us today!");
  4547. SendClientMessage(playerid, COLOR_GREY, string);
  4548. return 1;
  4549. }
  4550. cmd(emptypack, playerid, params[])
  4551. {
  4552. new string[120];
  4553. if(!IsPlayerInCheckpoint(playerid))
  4554. return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
  4555. if(getCheckpointType(playerid) != CP_Bank)
  4556. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
  4557. if(GetPVarInt(playerid, "PackCash") == 0)
  4558. return SendClientMessage(playerid, COLOR_ERROR, "You don't have any money in your pack to put in the bank.");
  4559. format(string, 120, "[BANK] You have put $%d into your bank account.", GetPVarInt(playerid, "PackCash"));
  4560. SendClientMessage(playerid, COLOR_GREY, string);
  4561. SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") + GetPVarInt(playerid, "PackCash"));
  4562. SetPVarInt(playerid, "PackCash", 0);
  4563. return 1;
  4564. }
  4565.  
  4566. cmd(deposit, playerid, params[])
  4567. {
  4568. new string[120]; new amount;
  4569. if(!IsPlayerInCheckpoint(playerid))
  4570. return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
  4571. if(getCheckpointType(playerid) != CP_Bank)
  4572. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
  4573. if(sscanf(params, "i", amount))
  4574. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /deposit (AMOUNT)");
  4575. if(GetPlayerMoney(playerid) == 0)
  4576. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cash to deposit.");
  4577. if(GetPlayerMoney(playerid) < amount)
  4578. return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to deposit.");
  4579. if(amount > 1000000)
  4580. return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount below $1,000,000");
  4581. GivePlayerMoney(playerid, -amount);
  4582. SetPVarInt(playerid, "BankCash", amount);
  4583. format(string, 120, "[BANK] You have deposited $%d into your bank account.", amount);
  4584. SendClientMessage(playerid, COLOR_GREY, string);
  4585. return 1;
  4586. }
  4587.  
  4588. cmd(withdraw, playerid, params[])
  4589. {
  4590. new string[120]; new amount;
  4591. if(!IsPlayerInCheckpoint(playerid))
  4592. return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
  4593. if(getCheckpointType(playerid) != CP_Bank)
  4594. return SendClientMessage(playerid, COLOR_ERROR, "You are not in the bank checkpoint.");
  4595. if(sscanf(params, "i", amount))
  4596. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /withdraw (amount)");
  4597. if(amount > 100000)
  4598. return SendClientMessage(playerid, COLOR_ERROR, "Invalid amount. Please be below $100,000");
  4599. if(amount < 0)
  4600. return SendClientMessage(playerid, COLOR_ERROR, "Invalid amount. Please choose above $0.");
  4601. if(amount > GetPVarInt(playerid, "BankCash"))
  4602. return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to take out.");
  4603. SetPVarInt(playerid, "BankCash", -amount);
  4604. format(string, 120, "[BANK] You have taken out $%d from your bank account.", amount);
  4605. SendClientMessage(playerid, COLOR_GREY, string);
  4606. return 1;
  4607. }
  4608. cmd(transfer, playerid, params[])
  4609. {
  4610. new string[120]; new amount, ID;
  4611. if(!IsPlayerInCheckpoint(playerid))
  4612. return SendClientMessage(playerid, COLOR_ERROR, "You are not in any checkpoint.");
  4613. if(getCheckpointType(playerid) != CP_Bank)
  4614. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
  4615. if(sscanf(params, "ui", ID, amount))
  4616. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /transfer (ID) (amount)");
  4617. if(!IsPlayerConnected(ID))
  4618. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4619. if(GetPVarInt(playerid, "BankCash") < amount)
  4620. return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to transfer.");
  4621. if(amount < 0)
  4622. return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount greater than $0");
  4623. if(amount > 1000000)
  4624. return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount less than $1,000,000");
  4625. SetPVarInt(ID, "BankCash", GetPVarInt(ID, "BankCash") + amount);
  4626. format(string, 120, "[BANK] You have setn $%d to %s's bank account.", amount, PlayerInfo(ID));
  4627. SendClientMessage(playerid, COLOR_GREY, string);
  4628. format(string, 120, "[BANK] %s has transfered $%d to your bank account.", PlayerInfo(playerid), amount);
  4629. SendClientMessage(playerid, COLOR_GREY, string);
  4630. SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") -amount);
  4631. format(string, 120, "[BANK TRANSACTION] %s(%d) has sent %s(%d) $%d VIA Bank transfer.", PlayerInfo(playerid), PlayerInfo(ID), amount);
  4632. CNR_PrintString(string);
  4633. return 1;
  4634. }
  4635. cmd(robbank, playerid, params[])
  4636. {
  4637. new string[120];
  4638. if(IsCop(playerid))
  4639. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank.");
  4640. if(!IsPlayerInCheckpoint(playerid))
  4641. return SendClientMessage(playerid, COLOR_ERROR, "You are not in a checkpoint.");
  4642. if(getCheckpointType(playerid) != CP_Bank)
  4643. return SendClientMessage(playerid, COLOR_ERROR, "You are not in the bank checkpoint.");
  4644. if(GetGVarInt("BankRobbedRecently") >= 1)
  4645. return SendClientMessage(playerid, COLOR_ERROR, "The bank has been robbed recently, please wait.");
  4646. if(GetPlayerWantedLevel(playerid) >= 1)
  4647. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank with a wanted level.");
  4648. if(GetPVarInt(playerid, "RobSkill") != 10)
  4649. return SendClientMessage(playerid, COLOR_ERROR, "You are not a master of bank robberies, you cannot rob the bank.");
  4650. new crand = random(100);
  4651. if(crand < 10)
  4652. return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the bank has failed.");
  4653. SetPVarInt(playerid, "RobbingBank", 30);
  4654. SetGVarInt("BankRobbedRecently", 500);
  4655. format(string, 120, "[BANK ROBBERY] %s has started a robbery at Los Santos Bank.", PlayerInfo(playerid));
  4656. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4657. CNR_PrintString(string);
  4658. format(string, 120, "[DISPATCH] %s has started a robbery at the L.S Bank.", PlayerInfo(playerid));
  4659. SendCopMessage(string);
  4660. return 1;
  4661. }
  4662.  
  4663. cmd(kill, playerid, params[])
  4664. {
  4665. new string[120];
  4666. if(GetPVarInt(playerid, "Spawned") == 0)
  4667. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  4668. if(GetPVarInt(playerid, "Jailed") == 1)
  4669. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  4670. if(GetPVarInt(playerid, "Cuffed") == 1)
  4671. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  4672. if(GetPVarInt(playerid, "HasSTDs") == 1)
  4673. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command with STDs.");
  4674. if(GetPVarInt(playerid, "Wanted") == 1)
  4675. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while wanted.");
  4676. SetPlayerHealth(playerid, -1);
  4677. format(string, 120, "%s(%d) has commited suicide using /kill. (for a odd reason) ", PlayerInfo(playerid));
  4678. SendClientMessageToAll(COLOR_GREEN, string);
  4679. return 1;
  4680. }
  4681. cmd(rob, playerid, params[])
  4682. {
  4683. new ID; new string[120];
  4684. if(gTeam[playerid] != Team_Steal)
  4685. return SendClientMessage(playerid, COLOR_ERROR, "Only Theifs can use this command.");
  4686. if(GetPVarInt(playerid, "Jailed") == 1)
  4687. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
  4688. if(GetPVarInt(playerid, "Cuffed") == 1)
  4689. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  4690. if(sscanf(params, "u", ID))
  4691. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /rob (ID)");
  4692. if(!IsPlayerConnected(ID))
  4693. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  4694. if(GetDistanceBetweenPlayers(playerid, ID) > 5)
  4695. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away.");
  4696. if(IsPlayerInAnyVehicle(playerid))
  4697. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
  4698. if(IsPlayerInAnyVehicle(ID))
  4699. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob them when they are in a vehicle.");
  4700. if(GetPVarInt(playerid, "RobbedPlayerRecent") >= 1)
  4701. return SendClientMessage(playerid, COLOR_ERROR, "You must wait before robbing a player again.");
  4702. new chance = random(10);
  4703. if(chance == 1)
  4704. return SendClientMessage(playerid, COLOR_ERROR, "You failed the robbery.");
  4705. new mrand = random(GetPlayerMoney(ID));
  4706. if(GetPlayerMoney(ID) <=0)
  4707. return SendClientMessage(playerid, COLOR_ERROR, "That player doesn't have any money.");
  4708. new current_zone = player_zone[playerid];
  4709. if(IsCop(ID))
  4710. {
  4711. format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
  4712. SendClientMessage(ID, COLOR_RED, string);
  4713. format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
  4714. SendClientMessage(playerid, COLOR_RED, string);
  4715. format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
  4716. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4717. CNR_PrintString(string);
  4718. format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
  4719. SendCopMessage(string);
  4720. format(string, 120, "Type /radioof to turn off the Police Radio.");
  4721. SendCopMessage(string);
  4722. IncreaseWantedLevel(playerid, 2);
  4723. IncreaseScore(playerid, 2);
  4724. if(GetPVarInt(playerid, "RobSkill") <= 3)
  4725. {
  4726. SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
  4727. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
  4728. SendClientMessage(playerid, COLOR_GREY, string);
  4729. }
  4730. return 1;
  4731. }
  4732. format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
  4733. SendClientMessage(ID, COLOR_RED, string);
  4734. format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
  4735. SendClientMessage(playerid, COLOR_RED, string);
  4736. format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
  4737. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4738. CNR_PrintString(string);
  4739. format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
  4740. SendCopMessage(string);
  4741. format(string, 120, "Type /radioof to turn off the Police Radio.");
  4742. SendCopMessage(string);
  4743. IncreaseWantedLevel(playerid, 1);
  4744. IncreaseScore(playerid, 1);
  4745. if(GetPVarInt(playerid, "RobSkill") <= 3)
  4746. {
  4747. SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
  4748. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
  4749. SendClientMessage(playerid, COLOR_GREY, string);
  4750. }
  4751. return 1;
  4752. }
  4753. cmd(radiooff, playerid, params[])
  4754. {
  4755. if(IsCop(playerid))
  4756. {
  4757. if(GetPVarInt(playerid, "CopRadio") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Your radio is already off. Type /radioon to turn it back on.");
  4758. SetPVarInt(playerid, "CopRadio", 0);
  4759. SendClientMessage(playerid, COLOR_DODGERBLUE, "You have turned your cop radio off. Type /radioon to turn it back on.");
  4760. return 1;
  4761. }
  4762. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4763. }
  4764. cmd(radioon, playerid, params[])
  4765. {
  4766. if(IsCop(playerid))
  4767. {
  4768. if(GetPVarInt(playerid, "CopRadio") == 1) return SendClientMessage(playerid, COLOR_ERROR, "Your cop radio is already off. Type /radioof to turn it off.");
  4769. SetPVarInt(playerid, "CopRadio", 1);
  4770. SendClientMessage(playerid, COLOR_ERROR, "You have turned your radio on. Type /radiooff to turn it off.");
  4771. return 1;
  4772. }
  4773. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  4774. }
  4775. cmd(startevent, playerid, params[])
  4776. {
  4777. new string[120];
  4778. if(GetPVarInt(playerid, "AdminLevel") == 0)
  4779. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands.");
  4780. if(GetPVarInt(playerid, "Jailed") == 1)
  4781. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  4782. if(GetPVarInt(playerid, "Cuffed") == 1)
  4783. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  4784. new Float:x, Float:y, Float:z;
  4785. GetPlayerPos(playerid, x, y, z);
  4786. SetGVarFloat("EventX", x);
  4787. SetGVarFloat("EventY", y);
  4788. SetGVarFloat("EventZ", z);
  4789. SetGVarInt("EventI", GetPlayerInterior(playerid));
  4790. SetGVarInt("EventStarted", 1);
  4791. format(string, 120, "[ADMIN EVENT] Server Admin %s has started an event. Type /event to join.", PlayerInfo(playerid));
  4792. SendClientMessageToAll(COLOR_ADMIN, string);
  4793. CNR_PrintString(string);
  4794. SendClientMessage(playerid, COLOR_GREEN, "You have started an event. Type /endevent to end it.");
  4795. return 1;
  4796. }
  4797. cmd(event, playerid, params[])
  4798. {
  4799. if(GetGVarInt("EventStarted") == 0)
  4800. return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
  4801. if(GetPVarInt(playerid, "Cuffed") == 1)
  4802. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
  4803. if(GetPVarInt(playerid, "Jailed") == 1)
  4804. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  4805. SendClientMessage(playerid, COLOR_GREEN, "You have joined the Admin Event.");
  4806. SetPlayerPos(playerid, GetGVarFloat("EventX"), GetGVarFloat("EventY"), GetGVarFloat("EventZ"));
  4807. SetPlayerInterior(playerid, GetGVarInt("EventI"));
  4808. SetPVarInt(playerid, "InEvent", 1);
  4809. return 1;
  4810. }
  4811. cmd(endevent, playerid, params[])
  4812. {
  4813. new string[120];
  4814. if(GetPVarInt(playerid, "AdminLevel") == 0)
  4815. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands");
  4816. if(GetGVarInt("EventStarted") == 0)
  4817. return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
  4818. SetGVarInt("EventStarted", 0);
  4819. format(string, 120, "[ADMIN EVENT] Admin %s has ended the current event. You can no longer join.",PlayerInfo(playerid));
  4820. SendClientMessage(playerid, COLOR_ADMIN, string);
  4821. CNR_PrintString(string);
  4822. return 1;
  4823. }
  4824. cmd(eventweapon, playerid, params[])
  4825. {
  4826. new weapon; new ammo;
  4827. if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
  4828. if(sscanf(params, "ii", weapon, ammo)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /eventweapon (WeaponID) (Ammo)");
  4829. for(new i = 0; i<MAX_PLAYERS; i ++)
  4830. {
  4831. if(GetPVarInt(i, "InEvent") == 1)
  4832. {
  4833. GivePlayerWeapon(i, weapon, ammo);
  4834. SendClientMessage(i, COLOR_ADMIN, "You have been given an event weapon.");
  4835. SendClientMessage(playerid, COLOR_ADMIN, "You have given everyone at the event an event weapon.");
  4836. }
  4837. }
  4838. return 1;
  4839. }
  4840.  
  4841. cmd(adcmds, playerid, params[])
  4842. {
  4843. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4844. new str[1200];
  4845. strcat(str, "Admin Commands are: /startevent - Starts an Admin Event /endevent - Ends an Admin event /eventweapon (WeaponID) (Ammo) - Gives an Event Weapon\n");
  4846. strcat(str, "/jail (ID) (reason) - Admin Jails a Player /unjail (ID) (reason) - Unjails a Player /adban (ID) (reason) - Admin Bans a Player\n");
  4847. strcat(str, "/adkick (ID) (reason) - Admin Kicks a player /freeze (ID) (reason) - Freezes a player /unfreeze (ID) (reason) - Unfreezes a player\n");
  4848. strcat(str, "/teleports - Shows a list of teleports /lock - Locks your car /spec (ID) - Spectates a Player /specoff - Turns off Spectate\n");
  4849. strcat(str, "/ad (message) - Send an Admin Message /admin (message) - Same as /rcon say /goto (ID) - Puts you near a player /bring (ID) Brings a player \n");
  4850. strcat(str, "/jetpack - Spawns a Jetpack /warn (ID) (reason) - Admin Warns a player /elite (ID) - Makes a player Elite /unelite (ID) - Takes away Elite Status\n");
  4851. strcat(str, "/army (ID) - Makes a Player Army /unarmy (ID) - Takes Army Status /mute (ID) - Mutes a player /unmute (ID) - Unmutes a player\n");
  4852. strcat(str, "/admode - Minigun and infinite health /repaircar (ID) - Fixes Car /adgc (ID) (amount) - Gives a player cash /nos (ID) - Gives a player nos\n");
  4853. strcat(str, "/adheal (ID) - Heals and Cures a player /adarmour (ID) - Gives a player Armour\n");
  4854. ShowPlayerDialog(playerid, DIALOG_ADMINCMDS, DIALOG_STYLE_MSGBOX, "Admin Commands", str, "Okay", "");
  4855. return 1;
  4856. }
  4857. cmd(adheal, playerid, params[])
  4858. {
  4859. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4860. new ID;
  4861. if(sscanf(params, "u", ID))
  4862. {
  4863. SetPlayerHealth(playerid, 100);
  4864. SetPVarInt(playerid, "IsSick", 0);
  4865. SetPVarInt(playerid, "HasSTDs", 0);
  4866. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed yourself.");
  4867. return 1;
  4868. }
  4869. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4870. SetPlayerHealth(ID, 100);
  4871. SetPVarInt(playerid, "IsSick", 0);
  4872. SetPVarInt(playerid, "HaSTDs", 0);
  4873. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed that player.");
  4874. return 1;
  4875. }
  4876. cmd(adarmour, playerid, params[])
  4877. {
  4878. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4879. new ID;
  4880. if(sscanf(params, "u", ID))
  4881. {
  4882. SetPlayerArmour(playerid, 100);
  4883. SetPVarInt(playerid, "IsSick", 0);
  4884. SetPVarInt(playerid, "HasSTDs", 0);
  4885. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given yourself armour.");
  4886. return 1;
  4887. }
  4888. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4889. SetPlayerArmour(ID, 100);
  4890. SetPVarInt(playerid, "IsSick", 0);
  4891. SetPVarInt(playerid, "HaSTDs", 0);
  4892. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given that player armour");
  4893. return 1;
  4894. }
  4895. cmd(repaircar, playerid, params[])
  4896. {
  4897. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4898. new ID;
  4899. if(sscanf(params, "u", ID))
  4900. {
  4901. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
  4902. RepairVehicle(GetPlayerVehicleID(playerid));
  4903. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Vehicle repaired.");
  4904. return 1;
  4905. }
  4906. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4907. if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
  4908. RepairVehicle(GetPlayerVehicleID(ID));
  4909. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Your car has been repaired by an Admin.");
  4910. return 1;
  4911. }
  4912. cmd(nos, playerid, params[])
  4913. {
  4914. if(GetPVarInt(playerid, "AdminLevel") ==0) return 0;
  4915. new ID;
  4916. if(sscanf(params,"u", ID))
  4917. {
  4918. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
  4919. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  4920. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to your car.");
  4921. return 1;
  4922. }
  4923. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4924. if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
  4925. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  4926. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to that person's car.");
  4927. return 1;
  4928. }
  4929. cmd(admode, playerid, params[])
  4930. {
  4931. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4932. if(GetPVarInt(playerid, "AdminMode") == 1)
  4933. {
  4934. SetPlayerHealth(playerid, 100);
  4935. SetPlayerArmour(playerid, 100);
  4936. ResetPlayerWeapons(playerid);
  4937. GivePlayerTeamWeapons(playerid);
  4938. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have turned Admin Mode off.");
  4939. SetPVarInt(playerid, "AdminMode", 0);
  4940. return 1;
  4941. }
  4942. ResetPlayerWeapons(playerid);
  4943. GivePlayerWeapon(playerid, 38, 10000);
  4944. SetPlayerHealth(playerid, 1000);
  4945. SetPlayerArmour(playerid, 10000);
  4946. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have gone into Admin Mode.");
  4947. SetPVarInt(playerid, "AdminMode", 1);
  4948. return 1;
  4949. }
  4950. cmd(adgc, playerid, params[])
  4951. {
  4952. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  4953. new ID, amount, string[120];
  4954. if(sscanf(params, "ui", ID, amount))
  4955. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adgc (ID) (amount)");
  4956. if(!IsPlayerConnected(ID))
  4957. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  4958. if(amount > 100000)
  4959. return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount lower than $100,000");
  4960. if(amount < 0)
  4961. return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount over $0.");
  4962. GivePlayerMoney(ID, amount);
  4963. format(string, 120, "[ADMIN CASH] You have recieved $%d from Server Admin %s", amount, PlayerInfo(playerid));
  4964. SendClientMessage(ID, COLOR_ADMIN, string);
  4965. format(string, 120, "[ADMIN CASH] You have given %s $%d of Admin Cash.", PlayerInfo(ID), amount);
  4966. SendClientMessage(playerid, COLOR_ADMIN, string);
  4967. format(string, 120, "[ADMIN CASH] Server Admin %s has given %s $%d", PlayerInfo(playerid), PlayerInfo(ID), amount);
  4968. CNR_PrintString(string);
  4969. return 1;
  4970. }
  4971.  
  4972. cmd(mute, playerid, params[])
  4973. {
  4974. new ID; new reason; new string[200];
  4975. if(GetPVarInt(playerid, "AdminLevel") == 1337)
  4976. {
  4977. if(sscanf(params, "iz", ID, reason))
  4978. {
  4979. SendClientMessage(playerid, COLOR_ERROR, "Usage: /mute <ID> <reason>");
  4980. return 1;
  4981. }
  4982. if(!IsPlayerConnected(ID))
  4983. {
  4984. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  4985. return 1;
  4986. }
  4987. format(string, 200, "[ADMIN MUTE] %s %s", PlayerInfo(ID), reason);
  4988. CNR_PrintString(string);
  4989. SendClientMessageToAll(COLOR_ADMIN, string);
  4990. SetPVarInt(ID, "Muted", 1);
  4991. }
  4992. return 1;
  4993. }
  4994. cmd(unmute, playerid, params[])
  4995. {
  4996. new ID; new reason; new string[200];
  4997. if(GetPVarInt(playerid, "AdminLevel") != 0)
  4998. {
  4999. if(sscanf(params, "iz", ID, reason))
  5000. {
  5001. SendClientMessage(playerid, COLOR_ERROR, "Usage: /unmute <ID> <reason>");
  5002. return 1;
  5003. }
  5004. if(!IsPlayerConnected(ID))
  5005. {
  5006. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  5007. return 1;
  5008. }
  5009. format(string, 200, "[ADMIN UMUTE] %s %s", PlayerInfo(ID), reason);
  5010. CNR_PrintString(string);
  5011. SendClientMessageToAll(COLOR_ADMIN, string);
  5012. SetPVarInt(ID, "Muted", 0);
  5013. }
  5014. return 1;
  5015. }
  5016. cmd(elite, playerid, params[])
  5017. {
  5018. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5019. new ID; new string[120];
  5020. if(sscanf(params, "u", ID))
  5021. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /elite (ID)");
  5022. if(!IsPlayerConnected(ID))
  5023. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5024. if(GetPVarInt(ID, "Elite") == 1337)
  5025. return SendClientMessage(playerid, COLOR_ERROR, "That player is already an Elite Player.");
  5026. format(string, 120, "[ELITE PLAYER] Server Admin %s has made player %s an elite player!", PlayerInfo(playerid), PlayerInfo(ID));
  5027. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  5028. CNR_PrintString(string);
  5029. GameTextForPlayer(ID, "~B~ELITE PLAYER STATUS", 5000, 3);
  5030. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have been crowned 'Elite' by a Server Admin. You can now use Elite commands.");
  5031. SetPVarInt(ID, "Elite", 1337);
  5032. return 1;
  5033. }
  5034. cmd(unelite, playerid, params[])
  5035. {
  5036. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5037. new ID; new string[120];
  5038. if(sscanf(params, "u", ID))
  5039. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unelite (ID)");
  5040. if(!IsPlayerConnected(ID))
  5041. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5042. if(GetPVarInt(ID, "Elite") == 0)
  5043. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't an Elite Player.");
  5044. format(string, 120, "[ELITE PLAYER] Server Admin %s has taken your Elite Player Status.", PlayerInfo(playerid));
  5045. SendClientMessage(ID, COLOR_ROYALBLUE, string);
  5046. SendClientMessage(playerid, COLOR_ROYALBLUE, "Contact that Admin if you think this is wrong.");
  5047. format(string, 120, "[ADMIN ACTION] Server Admin %s has taken %s's Elite Player Status.", PlayerInfo(playerid), PlayerInfo(ID));
  5048. SendAdminMessage(string);
  5049. SetPVarInt(ID, "Elite", 0);
  5050. return 1;
  5051. }
  5052. cmd(army, playerid, params[])
  5053. {
  5054. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5055. new ID; new string[120];
  5056. if(sscanf(params, "u", ID))
  5057. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  5058. if(!IsPlayerConnected(ID))
  5059. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  5060. if(GetPVarInt(ID, "ArmyPermission") == 1337)
  5061. return SendClientMessage(playerid, COLOR_ERROR, "That player is already army.");
  5062. format(string, 120, "[ARMY STATUS] Server Admin %s has made %s a member of the Army!", PlayerInfo(playerid), PlayerInfo(ID));
  5063. SendClientMessageToAll(COLOR_PURPLE, string);
  5064. SendAdminMessage(string);
  5065. CNR_PrintString(string);
  5066. SendClientMessage(playerid, COLOR_PURPLE, "You are now able to play as Los Santos Army. Be sure to stick with /rules.");
  5067. SetPVarInt(ID, "ArmyPermission", 1337);
  5068. return 1;
  5069. }
  5070. cmd(unarmy, playerid, params[])
  5071. {
  5072. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5073. new ID; new string[120];
  5074. if(sscanf(params, "u", ID))
  5075. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unarmy (ID)");
  5076. if(!IsPlayerConnected(ID))
  5077. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  5078. format(string, 120, "[ARMY STATUS] Server Admin %s has taken %s's Army Status!", PlayerInfo(playerid), PlayerInfo(ID));
  5079. //SendClientMessageToAll(COLOR_PURPLE, string);
  5080. SendAdminMessage(string);
  5081. //CNR_PrintString(string);
  5082. SendClientMessage(ID, COLOR_PURPLE, string);
  5083. SendClientMessage(playerid, COLOR_PURPLE, "You are no longer able to be Army. If you think this is wrong, contact the admin.");
  5084. SetPVarInt(ID, "ArmyPermission", 0);
  5085. return 1;
  5086. }
  5087. cmd(ec, playerid, params[])
  5088. {
  5089. if(GetPVarInt(playerid, "Elite") == 0)
  5090. return SendClientMessage(playerid, COLOR_ERROR, "Only Elite Players can use this command.");
  5091. if(isnull(params))
  5092. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ec (message)");
  5093. new string[120];
  5094. format(string, 120, "[ELITE CHAT] %s: %s", PlayerInfo(playerid), params);
  5095. SendEliteMessage(string);
  5096. CNR_PrintString(string);
  5097. return 1;
  5098. }
  5099. cmd(afk, playerid, params[])
  5100. {
  5101. if(GetPVarInt(playerid, "Elite") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Only Elite players can use this command.");
  5102. new string[120];
  5103. if(GetPVarInt(playerid, "IsAFK") == 1)
  5104. {
  5105. SetPVarInt(playerid, "IsAFK", 0);
  5106. format(string, 120, "[AFK] Elite Player %s is no longer AFK.", PlayerInfo(playerid));
  5107. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  5108. TogglePlayerControllable(playerid, true);
  5109. CNR_PrintString(string);
  5110. return 1;
  5111. }
  5112. SetPVarInt(playerid, "IsAFK", 1);
  5113. format(string, 120, "[AFK] Elite Player %s is now AFK.", PlayerInfo(playerid));
  5114. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  5115. CNR_PrintString(string);
  5116. TogglePlayerControllable(playerid, false);
  5117. return 1;
  5118. }
  5119. cmd(jetpack, playerid, params[])
  5120. {
  5121. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5122. SetPlayerSpecialAction(playerid, 2);
  5123. return 1;
  5124. }
  5125. cmd(warn, playerid, params[])
  5126. {
  5127. new ID; new reason; new string[200];
  5128. if(GetPVarInt(playerid, "AdminLevel") == 1337)
  5129. {
  5130. if(sscanf(params, "iz", ID, reason))
  5131. {
  5132. SendClientMessage(playerid, COLOR_ERROR, "Usage: /warn <ID> <reason>");
  5133. return 1;
  5134. }
  5135. if(!IsPlayerConnected(ID))
  5136. {
  5137. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  5138. return 1;
  5139. }
  5140. format(string, sizeof(string), "[ADMIN WARN] %s has been warned by a Server Admin. %s", PlayerInfo(ID), reason);
  5141. SendClientMessageToAll(COLOR_ADMIN, string);
  5142. CNR_PrintString(string);
  5143. SendClientMessage(ID, COLOR_RED, "[ADMIN WARN] You have been warned by a Server Admin to follow the rules.");
  5144. SendClientMessage(ID, COLOR_RED, "Please follow the rules and read /rules and /pc");
  5145. if(GetPVarInt(ID, "Warnings") == 3)
  5146. {
  5147. format(string, sizeof(string), "[AUTO KICK] %s Too many Admin Warnings", PlayerInfo(ID));
  5148. SendClientMessageToAll(COLOR_RED, string);
  5149. CNR_PrintString(string);
  5150. Kick(ID);
  5151. return 1;
  5152. }
  5153. if(GetPVarInt(ID, "Warnings") <= 2)
  5154. {
  5155. SendClientMessage(ID, COLOR_RED, "Repeated warnings will result in a kick.");
  5156. SetPVarInt(ID, "Warnings", GetPVarInt(ID, "Warnings") +1);
  5157. return 1;
  5158. }
  5159. }
  5160. return 1;
  5161. }
  5162.  
  5163. cmd(adkick, playerid, params[])
  5164. {
  5165. new ID; new string[120]; new reason;
  5166. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5167. if(sscanf(params, "uz", ID, reason))
  5168. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adkick (ID) (reason)");
  5169. if(!IsPlayerConnected(ID))
  5170. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5171. format(string, 120, "[ADMIN KICK] %s %s", PlayerInfo(playerid), reason);
  5172. SendClientMessageToAll(COLOR_ADMIN, string);
  5173. CNR_PrintString(string);
  5174. format(string, 120, "[ADMIN ACTION] Admin %s has kicked %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  5175. SendAdminMessage(string);
  5176. Kick(ID);
  5177. return 1;
  5178. }
  5179. cmd(adban, playerid, params[])
  5180. {
  5181. new ID;new string[120]; new reason;
  5182. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5183. if(sscanf(params, "uz", ID, reason))
  5184. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adban (ID) (reason)");
  5185. if(!IsPlayerConnected(ID))
  5186. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5187. format(string, 120, "[ADMIN BAN] %s %s", PlayerInfo(ID), reason);
  5188. SendClientMessageToAll(COLOR_ADMIN, string);
  5189. CNR_PrintString(string);
  5190. format(string, 120, "[ADMIN ACTION] Admin %s has banned %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  5191. SendAdminMessage(string);
  5192. SendClientMessage(ID, COLOR_RED, "You have been Admin Banned. If you wish to appeal this ban, go to our website.");
  5193. SendClientMessage(ID, COLOR_RED, "Please note that Hackers do not get unbanned.");
  5194. format(string, 120, "Banned by %s for the reason of: %s", PlayerInfo(playerid), reason);
  5195. BanEx(ID, string);
  5196. return 1;
  5197. }
  5198. cmd(bring, playerid, params[])
  5199. {
  5200. new ID; new string[120];
  5201. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5202. if(sscanf(params, "u", ID))
  5203. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /bring (ID)");
  5204. if(!IsPlayerConnected(ID))
  5205. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5206. format(string, 120, "[ADMIN ACTION] You have brought %s to you using /bring", PlayerInfo(ID));
  5207. SendClientMessage(playerid, COLOR_ADMIN, string);
  5208. format(string, 120, "[ADMIN] Admin %s has teleported you to him/her.", PlayerInfo(playerid));
  5209. SendClientMessage(ID, COLOR_ADMIN, string);
  5210. new Float:x, Float:y, Float:z;
  5211. GetPlayerPos(playerid, x, y, z);
  5212. SetPlayerPos(ID, x, y, z);
  5213. SetPlayerInterior(ID, GetPlayerInterior(playerid));
  5214. return 1;
  5215. }
  5216. cmd(goto, playerid, params[])
  5217. {
  5218. new ID; new string[120];
  5219. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5220. if(sscanf(params, "u", ID))
  5221. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /goto (ID)");
  5222. if(!IsPlayerConnected(ID))
  5223. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5224. format(string, 120, "[ADMIN ACTION] You have teleported to %s", PlayerInfo(playerid));
  5225. SendClientMessage(playerid, COLOR_ADMIN, string);
  5226. new Float:x, Float:y, Float:z;
  5227. GetPlayerPos(ID, x, y, z);
  5228. SetPlayerPos(playerid, x, y, z);
  5229. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  5230. return 1;
  5231. }
  5232. cmd(freeze, playerid, params[])
  5233. {
  5234. new ID; new string[120]; new reason;
  5235. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5236. if(sscanf(params, "uz", ID, reason))
  5237. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /freeze (ID) (reason)");
  5238. if(!IsPlayerConnected(ID))
  5239. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5240. format(string, 120, "[ADMIN FREEZE] %s %s", PlayerInfo(ID), reason);
  5241. SendClientMessageToAll(COLOR_ADMIN, string);
  5242. CNR_PrintString(string);
  5243. TogglePlayerControllable(ID, 0);
  5244. format(string, 120, "[ADMIN ACTION] Admin %s has frozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
  5245. SendAdminMessage(string);
  5246. return 1;
  5247. }
  5248. cmd(unfreeze, playerid, params[])
  5249. {
  5250. new ID; new string[120]; new reason;
  5251. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5252. if(sscanf(params, "uz", ID, reason))
  5253. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unfreeze (ID) (reason)");
  5254. if(!IsPlayerConnected(ID))
  5255. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5256. format(string, 120, "[ADMIN UNFREEZE] %s %s", PlayerInfo(ID), reason);
  5257. SendClientMessageToAll(COLOR_ADMIN, string);
  5258. CNR_PrintString(string);
  5259. TogglePlayerControllable(ID, 1);
  5260. format(string, 120, "[ADMIN ACTION] Admin %s has unfrozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
  5261. SendAdminMessage(string);
  5262. return 1;
  5263. }
  5264. cmd(spec, playerid, params[])
  5265. {
  5266. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5267. new ID;
  5268. if(sscanf(params, "u", ID))
  5269. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /spec (ID)");
  5270. if(!IsPlayerConnected(ID))
  5271. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5272. if(GetPVarInt(ID, "Spawned") == 0)
  5273. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't spawned.");
  5274. if(playerid == ID)
  5275. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command on yourself.");
  5276. if(GetPVarInt(playerid, "Spawned") == 0)
  5277. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  5278. if(IsPlayerInAnyVehicle(ID))
  5279. {
  5280. new vid = GetPlayerVehicleID(ID);
  5281. TogglePlayerSpectating(playerid, 1);
  5282. PlayerSpectateVehicle(playerid, vid);
  5283. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  5284. SetPVarInt(playerid, "Spectating", 1);
  5285. return 1;
  5286. }
  5287. TogglePlayerSpectating(playerid, 1);
  5288. PlayerSpectatePlayer(playerid, ID);
  5289. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  5290. SetPVarInt(playerid, "Spectating", 1);
  5291. return 1;
  5292. }
  5293. cmd(specoff, playerid, params[])
  5294. {
  5295. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5296. if(GetPVarInt(playerid, "Spectating") == 0)
  5297. return SendClientMessage(playerid, COLOR_ERROR, "You are not spectating.");
  5298. TogglePlayerSpectating(playerid, 0);
  5299. SetPVarInt(playerid, "Spectating", 0);
  5300. return 1;
  5301. }
  5302. cmd(ad, playerid, params[])
  5303. {
  5304. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5305. if(isnull(params))
  5306. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ad (message)");
  5307. new string[120];
  5308. format(string, 120, "[ADMIN MESSAGE] %s: %s", PlayerInfo(playerid), params);
  5309. SendAdminMessage(string);
  5310. return 1;
  5311. }
  5312. cmd(admin, playerid, params[])
  5313. {
  5314. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5315. if(isnull(params))
  5316. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /admin (message)");
  5317. new string[120];
  5318. format(string, 120, "*Admin: %s", params);
  5319. SendClientMessageToAll(COLOR_ADMIN, string);
  5320. CNR_PrintString(string);
  5321. format(string, 120, "[ADMIN ACTION] %s has used '/admin' to say: %s", PlayerInfo(playerid), params);
  5322. SendAdminMessage(string);
  5323. CNR_PrintString(string);
  5324. return 1;
  5325. }
  5326. cmd(havesex, playerid, params[])
  5327. {
  5328. new string[120];
  5329. if(GetPVarInt(playerid, "Horny") <= 0)
  5330. return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot have sex.");
  5331. new ID;
  5332. if(sscanf(params, "u", ID))
  5333. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /havesex (ID)");
  5334. if(!IsPlayerConnected(ID))
  5335. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5336. if(GetDistanceBetweenPlayers(playerid, ID) > 8)
  5337. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
  5338. if(GetPVarInt(ID, "Partner") != playerid)
  5339. return SendClientMessage(playerid, COLOR_ERROR, "You must first /offersex before having sex.");
  5340. if(GetPVarInt(ID, "Horny") <=0)
  5341. return SendClientMessage(playerid, COLOR_ERROR, "That player is not horny enough to have sex.");
  5342. if(GetPVarInt(playerid, "Jelly") == 0)
  5343. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any jelly to have sex. Get some first!");
  5344. format(string, 120, "[PUBLIC SEX] %s and %s has had public sex. Shame on them!", PlayerInfo(playerid), PlayerInfo(ID));
  5345. SendClientMessageToAll(COLOR_GREY, string);
  5346. CNR_PrintString(string);
  5347. IncreaseWantedLevel(ID, 1);
  5348. IncreaseWantedLevel(playerid, 1);
  5349. IncreaseScore(ID, 1);
  5350. IncreaseScore(playerid, 1);
  5351. format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(ID));
  5352. SendClientMessage(playerid, COLOR_GREY, string);
  5353. format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(playerid));
  5354. SendClientMessage(ID, COLOR_GREY, string);
  5355. SetPVarInt(ID, "Horny", 0);
  5356. SetPVarInt(playerid, "Jelly", 0);
  5357. SetPVarInt(playerid, "Horny", 0);
  5358. SetPVarInt(playerid, "Partner", -1); SetPVarInt(ID, "Partner", -1);
  5359. new current_zone = player_zone[playerid];
  5360. format(string, 120, "[DISPATCH] Lunatics %s and %s have had sex in public. Go arrest their naked bodies now! (%s)", PlayerInfo(playerid), PlayerInfo(ID),zones[current_zone][zone_name]);
  5361. SendCopMessage(string);
  5362. SetPVarInt(ID, "HadSex", 400);
  5363. SetPVarInt(playerid, "HadSex", 400);
  5364. return 1;
  5365. }
  5366. cmd(offersex, playerid, params[])
  5367. {
  5368. new string[120]; new ID;
  5369. if(GetPVarInt(playerid, "Horny") <=0)
  5370. return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot offer sex.");
  5371. if(sscanf(params, "u", ID))
  5372. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /offersex (ID)");
  5373. if(!IsPlayerConnected(ID))
  5374. return SendClientMessage(playerid, COLOR_ERROR, "Invaid ID.");
  5375. if(GetDistanceBetweenPlayers(playerid, ID) > 8)
  5376. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
  5377. SetPVarInt(ID, "Partner", playerid);
  5378. SetPVarInt(playerid, "Partner", ID);
  5379. format(string, 120, "[SEX OFFERED] You have been offered sex by %s. Type /havesex %d to have sex with them.", PlayerInfo(playerid), playerid);
  5380. SendClientMessage(ID, COLOR_GREY, string);
  5381. format(string, 120, "[SEX OFFERED] You have offered sex to %s. You must wait for them to agree.", PlayerInfo(ID));
  5382. SendClientMessage(playerid, COLOR_GREY, string);
  5383. return 1;
  5384. }
  5385.  
  5386. cmd(snack, playerid, params[])
  5387. {
  5388. if(GetPVarInt(playerid, "Cuffed") == 1)
  5389. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5390. if(GetPVarInt(playerid, "HasSnacks") == 0)
  5391. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks. Take them out your pack or buy them from the store.");
  5392. if(GetPVarInt(playerid, "EatenSnacks") > 1)
  5393. return SendClientMessage(playerid, COLOR_ERROR, "You have eaten snacks recently. Please wait.");
  5394. new Float:ph;
  5395. GetPlayerHealth(playerid, ph);
  5396. if(ph > 90)
  5397. return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a snack.");
  5398. SetPlayerHealth(playerid, ph + 10);
  5399. SetPVarInt(playerid, "HasSnacks", 0);
  5400. SetPVarInt(playerid, "EatenSnacks", 30);
  5401. SendClientMessage(playerid, COLOR_GREY, "[SNACKS] You have eaten your snack. You have been healed by 10 percent.");
  5402. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  5403. return 1;
  5404. }
  5405. cmd(smoke, playerid, params[])
  5406. {
  5407. if(GetPVarInt(playerid, "Cuffed") == 1)
  5408. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5409. if(GetPVarInt(playerid, "HasCigars") == 0)
  5410. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cigars on you.");
  5411. if(GetPVarInt(playerid, "HasSmoked") > 1)
  5412. return SendClientMessage(playerid, COLOR_ERROR, "You have smoked a cigar recently. Please wait.");
  5413. new Float:ph;
  5414. GetPlayerHealth(playerid, ph);
  5415. if(ph > 90) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a smoke.");
  5416. SetPlayerHealth(playerid, ph + 10);
  5417. SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") -1);
  5418. SetPVarInt(playerid, "HasSmoked", 45);
  5419. SendClientMessage(playerid, COLOR_GREY, "[SMOKES] You have had a smoke. Your health has risen.");
  5420. ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01" , 4.0, 0,0,0, 0, 0);
  5421. return 1;
  5422. }
  5423. cmd(pot, playerid, params[])
  5424. {
  5425. new string[120];
  5426. if(IsCop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot use this command.");
  5427. if(GetPVarInt(playerid, "Cuffed") == 1)
  5428. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
  5429. if(GetPVarInt(playerid, "Jailed") == 1)
  5430. return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
  5431. if(GetPVarInt(playerid, "HasPot") <= 0)
  5432. return SendClientMessage(playerid, COLOR_ERROR, "You don't have any pot, you cannot smoke it!");
  5433. if(GetPVarInt(playerid, "HasPipe") == 0)
  5434. return SendClientMessage(playerid, COLOR_ERROR, "You do not have a pipe to smoke your pot!");
  5435. new Float:ph;
  5436. GetPlayerHealth(playerid, ph);
  5437. if(ph > 70) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a joint.");
  5438. SetPlayerHealth(playerid, ph + 30);
  5439. format(string, 120, "[WEED] %s has smoked a joint. His health has increased.", PlayerInfo(playerid));
  5440. CNR_PrintString(string);
  5441. SetPVarInt(playerid, "UsedPot",120);
  5442. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") -1);
  5443. ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01", 4.0, 0, 0, 0, 0, 0);
  5444. return 1;
  5445. }
  5446. cmd(report, playerid, params[])
  5447. {
  5448. new ID; new reason; new string[120];
  5449. if(sscanf(params, "us[100]", ID, reason))
  5450. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /report (ID) (Reason)");
  5451. if (!IsPlayerConnected(ID)) {
  5452. SendClientMessage(playerid, COLOR_ERROR, "That ID is not connected.");
  5453. return 1;
  5454. }
  5455. format(string, 120, "[REPORT SENT] Report sent on %s for the reason of: %s", PlayerInfo(ID), reason);
  5456. SendClientMessage(playerid, COLOR_ADMIN, string);
  5457. format(string, 120, "[REPORTED PLAYER] Player %s has reported %s for %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  5458. CNR_PrintString(string);
  5459. SendAdminMessage(string);
  5460. return 1;
  5461. }
  5462. cmd(pm, playerid, params[])
  5463. {
  5464. new ID; new message; new string[120];
  5465. if(sscanf(params, "us[100]", ID, message)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /pm (ID) (Message)");
  5466. if (!IsPlayerConnected(ID)) {
  5467. SendClientMessage(playerid, COLOR_ERROR, "Error. That ID is not connected.");
  5468. return 1;
  5469. }
  5470. format(string, 120, "[PRIVATE MESSAGE] From: %s to %s: %s", PlayerInfo(playerid), PlayerInfo(ID), message);
  5471. CNR_PrintString(string);
  5472. format(string, 120, "[PM] From: %s: %s", PlayerInfo(playerid), message);
  5473. SendClientMessage(ID, COLOR_YELLOW, string);
  5474. format(string, 120, "[PM] Sent to %s: %s", PlayerInfo(ID), message);
  5475. SendClientMessage(playerid, COLOR_YELLOW, string);
  5476. return 1;
  5477. }
  5478.  
  5479. stock PlayerName(playerid) {
  5480. new name[255];
  5481. GetPlayerName(playerid, name, 255);
  5482. return name;
  5483. }
  5484.  
  5485. stock Hospital(playerid)
  5486. {
  5487. ShowPlayerDialog(playerid, DIALOG_HOSPITAL, DIALOG_STYLE_LIST, "Welcome to Los Santos Medical Center!", "Heal\nCure", "Okay", "Cancel");
  5488. }
  5489. stock SellItems(playerid)
  5490. {
  5491. ShowPlayerDialog(playerid,DIALOG_BUY, DIALOG_STYLE_LIST, "What would you like to buy?", "Condom\nCigars\nPack\nSnacks", "Okay", "Cancel");
  5492. }
  5493. stock StoreRob(playerid)
  5494. {
  5495. ShowPlayerDialog(playerid, DIALOG_STOREROB, DIALOG_STYLE_LIST, "Welcome to the Gas Station!", "Buy a condom\nBuy Cigars\nBuy a pack\nBuy Snacks\nAttempt Robbery", "Okay", "Cancel");
  5496. }
  5497. stock LogPlayer(playerid)
  5498. {
  5499. new string[100];
  5500. format(string, 100, "Welcome to the server, %s\nPlease login before you spawn", PlayerName(playerid));
  5501. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Please Login", string, "Login", "Cancel");
  5502. }
  5503. stock RegisterPlayer(playerid)
  5504. {
  5505. new string[100];
  5506. format(string, 100, "Welcome to the server, %s\nPlease register your player name with a password below", PlayerName(playerid));
  5507. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Please Register", string, "Register", "Cancel");
  5508. }
  5509. stock SelectSkill(playerid)
  5510. {
  5511. new string[200];
  5512. format(string, 200, "Rapist\nTerrorist\nThief\nPrivate Med");
  5513. ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
  5514. }
  5515.  
  5516. public IncreaseWantedLevel(playerid, value)
  5517. {
  5518. new string[200]; new pwl; pwl = GetPlayerWantedLevel(playerid);
  5519. new pcol; pcol = GetPlayerColor(playerid);
  5520. pwl +=value;
  5521. SetPlayerWantedLevel(playerid, pwl);
  5522. if(pwl > 6)
  5523. {
  5524. SetPlayerWantedLevel(playerid, 6);
  5525. SendClientMessage(playerid, pcol, "[WANTED LEVEL] Your wanted level is now at 6 stars.");
  5526. WantedLevelColor(playerid);
  5527. }
  5528. else
  5529. {
  5530. format(string, 200, "[WANTED LEVEL UPDATE] Your new wanted level is now %d", GetPlayerWantedLevel(playerid));
  5531. SendClientMessage(playerid, pcol, string);
  5532. }
  5533. return 1;
  5534. }
  5535.  
  5536. public WantedLevelColor(playerid)
  5537. {
  5538. new pwl = GetPlayerWantedLevel(playerid);
  5539. if(pwl == 6)
  5540. {
  5541. SetPlayerColor(playerid, COLOR_RED);
  5542. }
  5543. if(pwl == 5)
  5544. {
  5545. SetPlayerColor(playerid, COLOR_ORANGE);
  5546. }
  5547. if(pwl == 4)
  5548. {
  5549. SetPlayerColor(playerid, COLOR_ORANGE);
  5550. }
  5551. if(pwl == 3)
  5552. {
  5553. SetPlayerColor(playerid, COLOR_ORANGE);
  5554. }
  5555. if(pwl == 2)
  5556. {
  5557. SetPlayerColor(playerid, COLOR_YELLOW);
  5558. }
  5559. if(pwl == 1)
  5560. {
  5561. SetPlayerColor(playerid, COLOR_YELLOW);
  5562. }
  5563. if(pwl == 0)
  5564. {
  5565. SetPlayerToTeamColor(playerid);
  5566. }
  5567. return 1;
  5568. }
  5569.  
  5570. public SendAdminMessage(msg[])
  5571. {
  5572. for(new i=0; i<MAX_PLAYERS; i++)
  5573. {
  5574. if(IsPlayerConnected(i))
  5575. {
  5576. if(GetPVarInt(i, "AdminLevel") == 1337)
  5577. {
  5578. SendClientMessage(i, COLOR_ADMIN, msg);
  5579. }
  5580. }
  5581. }
  5582. }
  5583. public SendCopMessage(msg[])
  5584. {
  5585. for(new i=0; i<MAX_PLAYERS; i++)
  5586. {
  5587. if(IsPlayerConnected(i))
  5588. {
  5589. if(GetPVarInt(i, "CopRadio") == 1)
  5590. {
  5591. SendClientMessage(i, COLOR_BLUE, msg);
  5592. }
  5593. }
  5594. }
  5595. }
  5596. public SendEliteMessage(msg[])
  5597. {
  5598. for(new i=0; i<MAX_PLAYERS; i++)
  5599. {
  5600. if(IsPlayerConnected(i))
  5601. {
  5602. if(GetPVarInt(i, "Elite") == 1337)
  5603. {
  5604. SendClientMessage(i, COLOR_ROYALBLUE, msg);
  5605. }
  5606. }
  5607. }
  5608. }
  5609. public SendMedicMessage(msg[])
  5610. {
  5611. for(new i = 0; i<MAX_PLAYERS; i++)
  5612. {
  5613. if(IsPlayerConnected(i))
  5614. {
  5615. if(gTeam[i] == Team_PrvtMed)
  5616. {
  5617. SendClientMessage(i, COLOR_FORESTGREEN, msg);
  5618. }
  5619. }
  5620. }
  5621. }
  5622. public getCheckpointType(playerID)
  5623. {
  5624. return checkpointType[playerCheckpoint[playerID]];
  5625. }
  5626.  
  5627. public checkpointUpdate()
  5628. {
  5629. for(new i=0; i<MAX_PLAYERS; i++)
  5630. {
  5631. if(IsPlayerConnected(i))
  5632. {
  5633. for(new j=0; j < MAX_POINTS; j++)
  5634. {
  5635. if(isPlayerInArea(i, checkCoords[j]))
  5636. {
  5637. if(playerCheckpoint[i]!=j)
  5638. {
  5639. DisablePlayerCheckpoint(i);
  5640. SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
  5641. playerCheckpoint[i] = j;
  5642. }
  5643. }
  5644. else
  5645. {
  5646. if(playerCheckpoint[i]==j)
  5647. {
  5648. DisablePlayerCheckpoint(i);
  5649. playerCheckpoint[i] = 999;
  5650. }
  5651. }
  5652. }
  5653. }
  5654. }
  5655. }
  5656. public isPlayerInArea(playerID, Float:data[4])
  5657. {
  5658. new Float:X, Float:Y, Float:Z;
  5659. GetPlayerPos(playerID, X, Y, Z);
  5660. if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
  5661. {
  5662. return 1;
  5663. }
  5664. return 0;
  5665. }
  5666.  
  5667. public RemoveVariables(playerid)
  5668. {
  5669. DeletePVar(playerid, "AdminLevel");
  5670. DeletePVar(playerid, "Banned");
  5671. DeletePVar(playerid, "BankCash");
  5672. DeletePVar(playerid, "Cash");
  5673. DeletePVar(playerid, "WantedLevel");
  5674. DeletePVar(playerid, "HasPack");
  5675. DeletePVar(playerid, "Warnings");
  5676. DeletePVar(playerid, "PackCash");
  5677. DeletePVar(playerid, "ArmyPermission");
  5678. DeletePVar(playerid, "HasSTDs");
  5679. DeletePVar(playerid, "PackSnack");
  5680. DeletePVar(playerid, "HasSnacks");
  5681. DeletePVar(playerid, "HasPipe");
  5682. DeletePVar(playerid, "PackPipe");
  5683. DeletePVar(playerid, "HasPot");
  5684. DeletePVar(playerid, "PackPot");
  5685. DeletePVar(playerid, "PackCondom");
  5686. DeletePVar(playerid, "HasCondom");
  5687. DeletePVar(playerid, "HasExp");
  5688. DeletePVar(playerid, "PackExp");
  5689. DeletePVar(playerid, "Cuffed");
  5690. DeletePVar(playerid, "Jailed");
  5691. DeletePVar(playerid, "CuffTimer");
  5692. DeletePVar(playerid, "JailTime");
  5693. DeletePVar(playerid, "RobbingBank");
  5694. DeletePVar(playerid, "RobSkill");
  5695. DeletePVar(playerid, "BlowingAirport");
  5696. DeletePVar(playerid, "BlowingPark");
  5697. DeletePVar(playerid, "BlowingSign");
  5698. DeletePVar(playerid, "BlowingBank");
  5699. DeletePVar(playerid, "RobbingDrugHouse");
  5700. DeletePVar(playerid, "RobbingSuburban");
  5701. DeletePVar(playerid, "RobbingBinco");
  5702. DeletePVar(playerid, "RobbingPizza");
  5703. return 1;
  5704. }
  5705.  
  5706. public RapeAgain(playerid)
  5707. {
  5708. if(GetPVarInt(playerid, "RapeRecently") == 1)
  5709. {
  5710. SetPVarInt(playerid, "RapeRecently", 0);
  5711. return 1;
  5712. }
  5713. return 1;
  5714. }
  5715.  
  5716. public IncreaseScore(playerid, value)
  5717. {
  5718. new pscore = GetPlayerScore(playerid);
  5719. pscore +=value;
  5720. SetPlayerScore(playerid, pscore);
  5721. return 1;
  5722. }
  5723. public DecreaseScore(playerid, value)
  5724. {
  5725. new pscore = GetPlayerScore(playerid);
  5726. pscore -=value;
  5727. SetPlayerScore(playerid, pscore);
  5728. return 1;
  5729. }
  5730.  
  5731. public WorldTime()
  5732. {
  5733. if(gametime == 0 && gameday == 7 && gameweek == 4)
  5734. {
  5735. SendClientMessageToAll(COLOR_GREEN, "The server has had it's montly Game Mode Restart.");
  5736. SendRconCommand("gmx");
  5737. }
  5738. gametime++;
  5739. if(gametime >=24)
  5740. {
  5741. gametime =0;
  5742. }
  5743. if(gametime == 0)
  5744. {
  5745. gameday ++;
  5746. }
  5747. for(new i=0; i<MAX_PLAYERS; i++)
  5748. {
  5749. if(IsPlayerConnected(i))
  5750. {
  5751. SetPlayerTime(i, gametime, 0);
  5752. }
  5753. }
  5754. new string[30];
  5755. SetWorldTime(gametime);
  5756. format(string, sizeof(string), "[TIME] %d:00", gametime);
  5757. SendClientMessageToAll(COLOR_GREY, string);
  5758. if(gametime == 0 && gameday == 1)
  5759. {
  5760. SendClientMessageToAll(COLOR_WHITE,"[DATE] Monday");
  5761. }
  5762. if(gametime == 0 && gameday == 2)
  5763. {
  5764. SendClientMessageToAll(COLOR_WHITE,"[DATE] Tuesday");
  5765. }
  5766. if(gametime == 0 && gameday == 3)
  5767. {
  5768. SendClientMessageToAll(COLOR_WHITE,"[DATE] Wednesday");
  5769. }
  5770. if(gametime == 0 && gameday == 4)
  5771. {
  5772. SendClientMessageToAll(COLOR_WHITE,"[DATE] Thursday");
  5773. }
  5774. if(gametime == 0 && gameday == 5)
  5775. {
  5776. SendClientMessageToAll(COLOR_WHITE,"[DATE] Friday");
  5777. }
  5778. if(gametime == 0 && gameday == 6)
  5779. {
  5780. SendClientMessageToAll(COLOR_WHITE,"[DATE] Saturday");
  5781. }
  5782. if(gametime == 0 && gameday == 7)
  5783. {
  5784. SendClientMessageToAll(COLOR_WHITE,"[DATE] Sunday");
  5785. }
  5786. if(gametime == 23 && gameday == 7)
  5787. {
  5788. gameweek ++;
  5789. gameday =1;
  5790. if(gameweek == 1)
  5791. {
  5792. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 1");
  5793. }
  5794. if(gameweek == 2)
  5795. {
  5796. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 2");
  5797. }
  5798. if(gameweek == 3)
  5799. {
  5800. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 3");
  5801. }
  5802. if(gameweek == 4)
  5803. {
  5804. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 4");
  5805. }
  5806. }
  5807. if(gametime == 23 && gameday == 7 && gameweek == 4)
  5808. {
  5809. SendClientMessageToAll(COLOR_BLUE,"[AUTO ADMIN] The server will restart in one game hour.");
  5810. }
  5811. }
  5812.  
  5813. public ResetFondle(playerid)
  5814. {
  5815. SetPVarInt(playerid, "FondleRecent", 0);
  5816. return 1;
  5817. }
  5818.  
  5819. public SixNineStoreRobAgain(playerid)
  5820. {
  5821. SetGVarInt("SixNineCentStoreRobbed", 0);
  5822. return 1;
  5823. }
  5824. public Float:GetDistanceBetweenPlayers(p1,p2){
  5825. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  5826. if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
  5827. return -1.00;
  5828. }
  5829. GetPlayerPos(p1,x1,y1,z1);
  5830. GetPlayerPos(p2,x2,y2,z2);
  5831. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  5832.  
  5833. }
  5834.  
  5835.  
  5836. public ResetGVars()
  5837. {
  5838. DeleteGVar("SixNineRobbed");
  5839. DeleteGVar("RobbedGasOne");
  5840. DeleteGVar("SexShopRobbed");
  5841. DeleteGVar("DanceDanceRobbed");
  5842. DeleteGVar("AmmoRobbed");
  5843. DeleteGVar("AirportBlown");
  5844. DeleteGVar("ParkBlown");
  5845. DeleteGVar("GasStationRobbed");
  5846. DeleteGVar("SignBlown");
  5847. DeleteGVar("BankBlown");
  5848. DeleteGVar("DrugHouseCash");
  5849. DeleteGVar("DrugHouseRobbed");
  5850. DeleteGVar("SuburbanRobbed");
  5851. DeleteGVar("BincoRobbed");
  5852. DeleteGVar("PizzaRobbed");
  5853. return 1;
  5854. }
  5855. /*
  5856. public CarBombs()
  5857. {
  5858. //Terrorism Car Bombs
  5859. for(new v=0; v<MAX_VEHICLES; v++)
  5860. {
  5861. if(VehicleInfo[v][bomb] > 1)
  5862. {
  5863. VehicleInfo[v][bomb] --;
  5864. }
  5865. if(VehicleInfo[v][bomb] == 1)
  5866. {
  5867. new Float:x, Float:y, Float:z;
  5868. GetVehiclePos(v, x, y, z);
  5869. CreateExplosion(x, y, z, 10, 10.0);
  5870. SetVehicleToRespawn(v);
  5871. VehicleInfo[v][bomb] = 0;
  5872. }
  5873. }
  5874. return 1;
  5875. }
  5876. */
  5877.  
  5878. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
  5879. if(IsPlayerAdmin(playerid) || GetPVarInt(playerid, "AdminLevel") == 1337) {
  5880. SetPlayerPosFindZ(playerid, fX,fY,fZ);
  5881. }
  5882. return 1;
  5883. }
  5884. public Server()
  5885. {
  5886. //printf("Tick Count: %d",GetTickCount());
  5887.  
  5888. for(new v=0; v<MAX_VEHICLES; v++)
  5889. {
  5890. if(VehicleInfo[v][bomb] > 1)
  5891. {
  5892. VehicleInfo[v][bomb] --;
  5893. }
  5894. if(VehicleInfo[v][bomb] == 1)
  5895. {
  5896. new Float:x, Float:y, Float:z;
  5897. GetVehiclePos(v, x, y, z);
  5898. CreateExplosion(x, y, z, 10, 10.0);
  5899. SetVehicleToRespawn(v);
  5900. VehicleInfo[v][bomb] = 0;
  5901. }
  5902. }
  5903. if(GetGVarInt("ServerMsg") != 0) {
  5904. SetGVarInt("ServerMsg", GetGVarInt("ServerMsg") -1);
  5905. }
  5906. if(GetGVarInt("ServerMsg") == 0) {
  5907. new ran = random(4);
  5908. SetGVarInt("ServerMsg",1000*60*5);
  5909. if(ran == 1)
  5910. {
  5911. SendClientMessageToAll(COLOR_GREEN, "This is Cops n Robbers (Los Santos) script "VERSION" by Karagon. Bug reports please post on the SA-MP Forums.");
  5912. SendClientMessageToAll(COLOR_GREEN, "The script hoster has the rights to change/modify the script, as long as the above line stays in.");
  5913. }
  5914. if(ran == 2)
  5915. {
  5916. SendClientMessageToAll(COLOR_BLUE, "Please remember that this is NOT a deathmatching server. You cannot kill people randomly. ");
  5917. SendClientMessageToAll(COLOR_BLUE, "If you see a rule breaker, use '/report (ID) (reason)' to report the player to the admins.");
  5918. SendClientMessageToAll(COLOR_BLUE, "Failure to do so can result in you being banned.");
  5919. }
  5920. if(ran == 3)
  5921. {
  5922. SendClientMessageToAll(COLOR_RED, "If you need help, type /commands. Also, feel free to ask the other players. ");
  5923. }
  5924. if(ran == 4)
  5925. {
  5926. SendClientMessageToAll(COLOR_LIGHTBLUE, "Remember to abide by all rules and guidelines! Have a great day!");
  5927. }
  5928. }
  5929. for(new i=0; i<MAX_PLAYERS; i++)
  5930. {
  5931. if(IsPlayerConnected(i))
  5932. {
  5933. if(IsPlayerInAnyVehicle(i)) {
  5934. TextDrawShowForPlayer(i,SpeedoBox[i]);
  5935.  
  5936. TextDrawShowForPlayer(i, SpeedTDraw[i]);
  5937.  
  5938. new string[110], Float:x, Float:y, Float:z;
  5939. GetVehicleVelocity(GetPlayerVehicleID(i),x,y,z);
  5940. format(string, 110, "%d mph", floatround(floatsqroot(((x*x)+(y*y))+(z*z))*156.666667));
  5941. TextDrawSetString(vSpeed[i],string);
  5942. TextDrawShowForPlayer(i,vSpeed[i]);
  5943.  
  5944. TextDrawShowForPlayer(i,DamageTDraw[i]);
  5945.  
  5946. new Float:hp;
  5947. GetVehicleHealth(GetPlayerVehicleID(i),hp);
  5948. format(string, 110, "%d", floatround(hp));
  5949. TextDrawSetString(vDamage[i],string);
  5950. TextDrawShowForPlayer(i,vDamage[i]);
  5951. }
  5952. if(!IsPlayerInAnyVehicle(i)) {
  5953. RemovePlayerSpeedo(i);
  5954. }
  5955. new Float:health;
  5956. GetPlayerHealth(i, health);
  5957. if(GetPVarInt(i,"HealthDown") != 0) {
  5958. SetPVarInt(i, "HealthDown", GetPVarInt(i, "HealthDown") -1);
  5959. }
  5960. if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health > 5 && IsPlayerConnected(i) && GetPVarInt(i, "HealthDown") == 0)
  5961. {
  5962. SetPlayerHealth(i, health-5);
  5963. SetPVarInt(i, "HealthDown",30);
  5964. }
  5965. if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health <=5 && IsPlayerConnected(i))
  5966. {
  5967. new string[200];
  5968. format(string, 200, "%s has died from STDs.", PlayerInfo(i));
  5969. SendClientMessageToAll(COLOR_GREY, string);
  5970. CNR_PrintString(string);
  5971. SetPlayerHealth(i, -1);
  5972. DeletePVar(i, "HasSTDs");
  5973. DeletePVar(i, "HealthDown");
  5974. }
  5975. new current_zone = player_zone[i];
  5976. if(GetPlayerMoney(i) > GetPVarInt(i, "OldCash"))
  5977. {
  5978. new string[200];
  5979. if(GetPlayerMoney(i) > 2000000 && GetPVarInt(i, "AdminLevel") !=1337)
  5980. {
  5981. ResetPlayerMoney(i);
  5982. format(string, 200, "[AUTO BAN] %s (CASH HACKS)", PlayerInfo(i));
  5983. SendClientMessageToAll(COLOR_RED, string);
  5984. CNR_PrintString(string);
  5985. format(string, 200, "Banned for spawning $%d", GetPlayerMoney(i));
  5986. SendClientMessage(i, COLOR_RED, "You have been detected as a cash hacker.");
  5987. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  5988. SetPVarInt(i, "Banned", 1);
  5989. BanEx(i, string);
  5990. }
  5991. }
  5992. new pAction = GetPlayerSpecialAction(i);
  5993. if(pAction == SPECIAL_ACTION_USEJETPACK)
  5994. {
  5995. if(GetPVarInt(i, "AdminLevel") == 0)
  5996. {
  5997. new string[200];
  5998. format(string, sizeof(string), "[AUTO BAN] %s (JETPACK)", PlayerInfo(i));
  5999. SendClientMessageToAll(COLOR_RED, string);
  6000. CNR_PrintString(string);
  6001. format(string, 200, "Banned for spawning a jetpack.");
  6002. SendClientMessage(i, COLOR_RED, "You have been banned for spawning a Jetpack.");
  6003. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal on our website.");
  6004. SetPVarInt(i, "Banned", 1);
  6005. BanEx(i, string);
  6006. }
  6007. }
  6008. if(BanWeapon(i))
  6009. {
  6010. if(GetPVarInt(i, "AdminLevel") == 0)
  6011. {
  6012. if(GetPVarInt(i, "InEvent") == 0)
  6013. {
  6014. new string[200];
  6015. format(string, 200, "[AUTO BAN] %s (WEAPON SPAWN)", PlayerInfo(i));
  6016. SendClientMessageToAll(COLOR_RED, string);
  6017. CNR_PrintString(string);
  6018. SendClientMessage(i, COLOR_RED, "You have been banned for spawning an illegal weapon.");
  6019. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  6020. SetPVarInt(i, "Banned", 1);
  6021. BanEx(i, "AUTO BAN: Weapon Spawn");
  6022. }
  6023. }
  6024. }
  6025. if(GetPVarInt(i, "Jailed") == 1)
  6026. {
  6027. new string[200];
  6028. SetPVarInt(i, "JailTime", GetPVarInt(i, "JailTime") -1);
  6029. format(string, 200, "~b~Jail Time ~n~ ~r~%d", GetPVarInt(i, "JailTime"));
  6030. GameTextForPlayer(i, string, 1000, 3);
  6031. ResetPlayerWeapons(i);
  6032. }
  6033. if(GetPVarInt(i, "Cuffed") == 1)
  6034. {
  6035. SetPVarInt(i, "CuffTimer", GetPVarInt(i, "CuffedTimer") -1);
  6036. }
  6037. if(GetPVarInt(i, "Cuffed") == 1 && GetPVarInt(i, "CuffTimer") == 0)
  6038. {
  6039. TogglePlayerControllable(i, 1);
  6040. new string[200];
  6041. format(string, 200, "[ANTI ABUSE] %s has been auto uncuffed to prevent abuse.", PlayerInfo(i));
  6042. SendClientMessageToAll(COLOR_BLUE, string);
  6043. CNR_PrintString(string);
  6044. SetPVarInt(i, "Cuffed", 0);
  6045. SetPVarInt(i, "CuffTimer", 0);
  6046. }
  6047. if(GetPVarInt(i, "Jailed") == 1 && GetPVarInt(i, "JailTime") < 0)
  6048. {
  6049. SetPlayerPos(i, 237.110794, 111.975547, 1003.218750);
  6050. SetPlayerInterior(i, 10);
  6051. new string[120];
  6052. format(string, 120, "[PRISON] %s has been auto released from prison.", PlayerInfo(i));
  6053. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6054. CNR_PrintString(string);
  6055. SetPVarInt(i, "Jailed", 0);
  6056. SetPVarInt(i, "JailTime", 0);
  6057. }
  6058. new Float:phealth;
  6059. GetPlayerHealth(i, phealth);
  6060. if(phealth >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
  6061. {
  6062. new string[200]; GetPlayerHealth(i, phealth);
  6063. format(string, 200, "[AUTO BAN] %s [HEALTH HACKS]", PlayerInfo(i));
  6064. SendClientMessageToAll(COLOR_RED, string);
  6065. CNR_PrintString(string);
  6066. SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
  6067. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  6068. format(string, 200, "[AUTO BAN - HEALTH HACKS AT %d]", phealth);
  6069. BanEx(i, string);
  6070. SetPVarInt(i, "Banned", 1);
  6071. }
  6072. new Float:pArmour;
  6073. GetPlayerArmour(i, pArmour);
  6074. if(pArmour >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
  6075. {
  6076. new string[200]; GetPlayerArmour(i, pArmour);
  6077. format(string, 200, "[AUTO BAN] %s [ARMOUR HACKS]", PlayerInfo(i));
  6078. SendClientMessageToAll(COLOR_RED, string);
  6079. CNR_PrintString(string);
  6080. SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
  6081. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  6082. format(string, 200, "[AUTO BAN - ARMOUR HACKS AT %d]", pArmour);
  6083. BanEx(i, string);
  6084. SetPVarInt(i, "Banned", 1);
  6085. }
  6086. if(GetPVarInt(i, "IsSick") == 1)
  6087. {
  6088. SetPlayerHealth(i, phealth -2);
  6089. }
  6090. if(GetPVarInt(i, "RobbingBank") > 1)
  6091. {
  6092. new string[45];
  6093. format(string, 45, "~b~BANK ROBBERY ~n~ %d seconds left", GetPVarInt(i, "RobbingBank"));
  6094. GameTextForPlayer(i, string, 1000, 3);
  6095. }
  6096. if(GetPVarInt(i, "RobbingBank") == 1)
  6097. {
  6098. new string[120];
  6099. new rand = random(500000);
  6100. format(string, 120, "[BANK ROBBERY] %s has robbed $%d from the Los Santos bank.", PlayerInfo(i), rand);
  6101. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6102. CNR_PrintString(string);
  6103. GivePlayerMoney(i, rand);
  6104. IncreaseWantedLevel(i, 6);
  6105. IncreaseScore(i, 3);
  6106. format(string, 120, "[DISPATCH] %s has robbed the Los Santos Bank. Respond now.", PlayerInfo(i));
  6107. SendCopMessage(string);
  6108. format(string, 120, "Type /radiooff to turn your radio off and stop recieving alerts.");
  6109. SendCopMessage(string);
  6110. SetPVarInt(i, "RobbingBank", 0);
  6111. }
  6112. if(GetGVarInt("BankRobbedRecently") > 1)
  6113. {
  6114. SetGVarInt("BankRobbedRecently", GetGVarInt("BankRobbedRecently") -1);
  6115. }
  6116. if(GetPVarInt(i, "HasBlownCar") > 1)
  6117. {
  6118. SetPVarInt(i, "HasBlownCar", GetPVarInt(i, "HasBlownCar") -1);
  6119. }
  6120. if(GetPVarInt(i, "HasBlownCar") < 0)
  6121. {
  6122. SetPVarInt(i, "HasBlownCar", 0);
  6123. }
  6124. if(GetPVarInt(i, "Horny") > 0)
  6125. {
  6126. SetPVarInt(i, "Horny", GetPVarInt(i, "Horny") -1);
  6127. }
  6128. if(GetPVarInt(i, "HadSex") > 0)
  6129. {
  6130. SetPVarInt(i, "HadSex", GetPVarInt(i, "HadSex") -1);
  6131. }
  6132. if(GetPVarInt(i, "RobbingSouthSex") > 1)
  6133. {
  6134. SetPVarInt(i, "RobbingSouthSex", GetPVarInt(i, "RobbingSouthSex") -1);
  6135. new string[120];
  6136. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSouthSex"));
  6137. GameTextForPlayer(i, string, 1000, 3);
  6138. }
  6139. if(GetPVarInt(i, "RobbingSouthSex") == 1)
  6140. {
  6141. new mrand = random(100000); new string[120];
  6142. format(string, 120, "[ROBBERY] %s has robbed $%d from the South L.S Sex Shop!", PlayerInfo(i), mrand);
  6143. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6144. CNR_PrintString(string);
  6145. format(string, 120, "[DISPATCH] %s has robbed the South Los Santos Sex Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6146. IncreaseScore(i, 1);
  6147. IncreaseWantedLevel(i, 4);
  6148. GivePlayerMoney(i, mrand);
  6149. if(GetPVarInt(i, "RobSkill") < 5)
  6150. {
  6151. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6152. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. It is now %d", GetPVarInt(i, "RobSkill"));
  6153. SendClientMessage(i, COLOR_GREY, string);
  6154. }
  6155. SetPVarInt(i, "RobbingSouthSex", -1);
  6156. SetGVarInt("SexShopRobbed", 300);
  6157. }
  6158. if(GetPVarInt(i, "RobbedSexShop") > 1)
  6159. {
  6160. SetPVarInt(i, "RobbedSexShop", GetPVarInt(i, "RobbedSexShop") -1);
  6161. }
  6162. if(GetGVarInt("SexShopRobbed") > 1)
  6163. {
  6164. SetGVarInt("SexShopRobbed", GetGVarInt("SexShopRobbed") -1);
  6165. }
  6166. if(GetPVarInt(i, "RobbingGasOne") > 1)
  6167. {
  6168. SetPVarInt(i, "RobbingGasOne", GetPVarInt(i, "RobbingGasOne") -1);
  6169. new string[120];
  6170. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasOne"));
  6171. GameTextForPlayer(i, string, 1000, 3);
  6172. }
  6173. new string[120];
  6174. if(GetPVarInt(i, "RobbingGasOne") == 1)
  6175. {
  6176. new mrand = random(75000);
  6177. format(string, 120, "[ROBBERY] %s has robbed $%d from the Gas Station in south L.S.", PlayerInfo(i), mrand);
  6178. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6179. CNR_PrintString(string);
  6180. format(string, 120, "[DISPATCH] %s has robbed the Gas Station in South L.S. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6181. SendCopMessage(string);
  6182. format(string, 120, "Type /radiooff to turn off your Cop Radio and stop getting crime calls.");
  6183. SendCopMessage(string);
  6184. GivePlayerMoney(i, mrand);
  6185. IncreaseScore(i, 1);
  6186. IncreaseWantedLevel(i, 4);
  6187. if(GetPVarInt(i, "RobSkill") < 5)
  6188. {
  6189. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6190. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  6191. SendClientMessage(i, COLOR_GREY, string);
  6192. }
  6193. SetPVarInt(i, "RobbingGasOne", -1);
  6194. SetGVarInt("GasOneRobbed", 300);
  6195. }
  6196. if(GetGVarInt("GasOneRobbed") > 1)
  6197. {
  6198. SetGVarInt("GasOneRobbed", GetGVarInt("GasOneRobbed") -1);
  6199. }
  6200. if(GetPVarInt(i, "RobbingDanceDance") > 1)
  6201. {
  6202. SetPVarInt(i, "RobbingDanceDance", GetPVarInt(i, "RobbingDanceDance") -1);
  6203. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDanceDance"));
  6204. GameTextForPlayer(i, string, 1000, 3);
  6205. }
  6206. if(GetPVarInt(i, "RobbingDanceDance") == 1)
  6207. {
  6208. new mrand = random(65000);
  6209. format(string, 120, "[ROBBERY] %s has robbed $%d from Dance Dance Revolution.",PlayerInfo(i), mrand);
  6210. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6211. CNR_PrintString(string);
  6212. format(string, 120, "[DISPATCH] %s has robbed the Dance Dance Revolution. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6213. SendCopMessage(string);
  6214. format(string, 120, "Type /radioof to turn off your Cop Radio.");
  6215. SendCopMessage(string);
  6216. IncreaseScore(i, 1);
  6217. IncreaseWantedLevel(i, 4);
  6218. GivePlayerMoney(i, mrand);
  6219. if(GetPVarInt(i, "RobSkill") < 5)
  6220. {
  6221. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6222. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  6223. SendClientMessage(i, COLOR_GREY, string);
  6224. }
  6225. SetPVarInt(i, "RobbingDancedance", -1);
  6226. SetGVarInt("DanceDanceRobbed", 300);
  6227. }
  6228. if(GetGVarInt("DanceDancRobbed") > 1)
  6229. {
  6230. SetGVarInt("DanceDanceRobbed", GetGVarInt("DanceDanceRobbed") -1);
  6231. }
  6232. if(GetPVarInt(i, "RobbedRecently") > 1)
  6233. {
  6234. SetPVarInt(i, "RobbedRecently", GetPVarInt(i,"RobbedRecently") -1);
  6235. }
  6236. if(GetPVarInt(i, "RobbingAmmo") > 1)
  6237. {
  6238. SetPVarInt(i, "RobbingAmmo", GetPVarInt(i, "RobbingAmmo") -1);
  6239. }
  6240. if(GetPVarInt(i, "RobbingAmmo") > 1)
  6241. {
  6242. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingAmmo"));
  6243. GameTextForPlayer(i, string, 1010, 3);
  6244. }
  6245. if(GetPVarInt(i, "RobbingAmmo") == 1)
  6246. {
  6247. format(string, 120, "[ROBBERY] %s has robbed weapons from the Central Los Santos Ammunation.", PlayerInfo(i));
  6248. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6249. CNR_PrintString(string);
  6250. format(string, 120, "[DISPATCH] %s has robbed weapons from Ammunation. He's armed and dangerous. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6251. SendCopMessage(string);
  6252. new arand = random(100);
  6253. GivePlayerWeapon(i, 31, arand);
  6254. new aranda = random(100);
  6255. GivePlayerWeapon(i, 26, aranda);
  6256. new arandb = random(120);
  6257. GivePlayerWeapon(i, 22, arandb);
  6258. new arandc = random(100);
  6259. SetPlayerArmour(i, arandc);
  6260. SendClientMessage(i, COLOR_RED, "You have robbed weapons from the Ammunation.");
  6261. IncreaseWantedLevel(i, 4);
  6262. IncreaseScore(i, 1);
  6263. SetPVarInt(i, "RobbingAmmo", -1);
  6264. SetGVarInt("AmmoRobbed", 400);
  6265. if(GetPVarInt(i, "RobSkill") > 5 && GetPVarInt(i, "RobSkill") < 10)
  6266. {
  6267. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6268. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
  6269. SendClientMessage(i,COLOR_RED, string);
  6270. }
  6271. }
  6272. if(GetPVarInt(i, "RobbingBurgerShot") > 1)
  6273. {
  6274. SetPVarInt(i, "RobbingBurgerShot", GetPVarInt(i, "RobbingBurgerShot") -1);
  6275. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingBurgerShot"));
  6276. GameTextForPlayer(i, string, 1010, 3);
  6277. }
  6278. if(GetPVarInt(i, "RobbingBurgerShot") == 1)
  6279. {
  6280. new mrand = random(50000);
  6281. format(string, 120, "[ROBBERY] %s has robbed $%d from the Northern L.S Burger Shot.", PlayerInfo(i), mrand);
  6282. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6283. CNR_PrintString(string);
  6284. format(string, 120, "[DISPATCH] %s has robbed the Northern Burger Shot. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6285. SendCopMessage(string);
  6286. GivePlayerMoney(i, mrand);
  6287. IncreaseScore(i, 1);
  6288. IncreaseWantedLevel(i, 4);
  6289. if(GetPVarInt(i, "RobSkill") < 5)
  6290. {
  6291. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") +1);
  6292. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
  6293. SendClientMessage(i, COLOR_RED, string);
  6294. }
  6295. SetGVarInt("BurgerShotRobbed", 120);
  6296. SetPVarInt(i, "RobbingBurgerShot", -1);
  6297. }
  6298. if(GetGVarInt("BurgerShotRobbed") > 1)
  6299. {
  6300. SetGVarInt("BurgerShotRobbed", GetGVarInt("BurgerShotRobbed") -1);
  6301. }
  6302. if(GetPVarInt(i,"RobbingTatooShop") > 1)
  6303. {
  6304. SetPVarInt(i, "RobbingTatooShop", GetPVarInt(i, "RobbingTatooShop") -1);
  6305. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingTatooShop"));
  6306. GameTextForPlayer(i, string, 1010, 3);
  6307. }
  6308. if(GetPVarInt(i, "RobbingTatooShop") == 1)
  6309. {
  6310. new mrand = random(30000);
  6311. format(string, 120, "[ROBBERY] %s has robbed $d from the Tatoo Shop.", PlayerInfo(i), mrand);
  6312. CNR_PrintString(string);
  6313. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6314. format(string, 120, "[DISPATCH] %s has robbed the Tatoo Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6315. SendCopMessage(string);
  6316. GivePlayerMoney(i, mrand);
  6317. IncreaseScore(i, 1);
  6318. IncreaseWantedLevel(i, 4);
  6319. SetPVarInt(i, "RobbingTatooShop", -1);
  6320. SetGVarInt("TatooRobbed", 120);
  6321. if(GetPVarInt(i, "RobSkill") < 3)
  6322. {
  6323. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6324. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  6325. SendClientMessage(i, COLOR_RED, string);
  6326. }
  6327. }
  6328. if(GetGVarInt("TatooRobbed") < 1)
  6329. {
  6330. SetGVarInt("TatooRobbed", GetGVarInt("TatooRobbed") -1);
  6331. }
  6332. if(GetPVarInt(i, "RobbingPigPen") > 1)
  6333. {
  6334. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingPigPen"));
  6335. GameTextForPlayer(i, string, 1010, 3);
  6336. }
  6337. if(GetPVarInt(i, "RobbingPigPen") == 1)
  6338. {
  6339. new mrand = random(45000);
  6340. format(string, 120, "[ROBBERY] %s has robbed %d from the the Pig Pen.", PlayerInfo(i), mrand);
  6341. CNR_PrintString(string);
  6342. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6343. format(string, 120, "[DISPATCH] %s has robbed the Pig Pen in %s. Go arrest the suspect. Location: %s", PlayerInfo(i),zones[current_zone][zone_name]);
  6344. SendCopMessage(string);
  6345. SetPVarInt(i, "RobbingPigPen", -1);
  6346. SetGVarInt("PigPenRobbed", 300);
  6347. IncreaseScore(i, 1);
  6348. IncreaseWantedLevel(i, 4);
  6349. if(GetPVarInt(i, "RobSkill") < 5)
  6350. {
  6351. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6352. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  6353. SendClientMessage(i, COLOR_RED, string);
  6354. }
  6355. }
  6356. if(GetGVarInt("PigPenRobbed") > 1)
  6357. {
  6358. SetGVarInt("PigPenRobbed", GetGVarInt("PigPenRobbed") -1);
  6359. }
  6360. if(GetGVarInt("AirportBlown") > 1)
  6361. {
  6362. SetGVarInt("AirportBlown", GetGVarInt("AirportBlown") -1);
  6363. }
  6364. if(GetGVarInt("ParkBlown") > 1)
  6365. {
  6366. SetGVarInt("ParkBlown", GetGVarInt("ParkBlown") -1);
  6367. }
  6368. if(GetPVarInt(i, "RobbingGasStation") > 1)
  6369. {
  6370. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasStation"));
  6371. GameTextForPlayer(i, string, 1010, 3);
  6372. }
  6373. if(GetPVarInt(i, "RobbingGasStation") > 1)
  6374. {
  6375. SetPVarInt(i, "RobbingGasStation", GetPVarInt(i, "RobbingGasStation") -1);
  6376. }
  6377. if(GetPVarInt(i, "RobbingGasStation") == 1)
  6378. {
  6379. new mrand = random(65000);
  6380. format(string, 120, "[ROBBERY] %s has robbed $%d from the gas station in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  6381. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6382. CNR_PrintString(string);
  6383. format(string, 120, "[DISPATCH] %s has robbed the Gas Station in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  6384. SendCopMessage(string);
  6385. IncreaseScore(i, 1);
  6386. IncreaseWantedLevel(i, 4);
  6387. GivePlayerMoney(i, mrand);
  6388. if(GetPVarInt(i, "RobSkill") < 5)
  6389. {
  6390. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6391. format(string, 120, "[SKILL UPGRADE] Your rob skill has increased to %s!", GetPVarInt(i, "RobSkill"));
  6392. SendClientMessage(i, COLOR_RED, string);
  6393. }
  6394. SetPVarInt(i, "RobbingGasStation", -1);
  6395. }
  6396. if(GetGVarInt("SignBlown") > 1)
  6397. {
  6398. SetGVarInt("SignBlown", GetGVarInt("SignBlown") -1);
  6399. }
  6400. if(GetGVarInt("BankBlown") > 1)
  6401. {
  6402. SetGVarInt("BankBlown", GetGVarInt("BankBlown") -1);
  6403. }
  6404. if(GetPVarInt(i, "EatenSnacks") > 1)
  6405. {
  6406. SetPVarInt(i, "EatenSnacks", GetPVarInt(i, "EatenSnacks") -1);
  6407. }
  6408. if(GetPVarInt(i, "HasSmoked") > 1)
  6409. {
  6410. SetPVarInt(i, "HasSmoked", GetPVarInt(i, "HasSmoked") -1);
  6411. }
  6412. if(GetPVarInt(i, "UsedPot") > 1)
  6413. {
  6414. SetPVarInt(i, "UsedPot", GetPVarInt(i, "UsedPot") -1);
  6415. }
  6416. if(GetGVarInt("DrugHouseRobbed") > 1)
  6417. {
  6418. SetGVarInt("DrugHouseRobbed", GetGVarInt("DrugHouseRobbed") -1);
  6419. }
  6420. if(GetPVarInt(i, "RobbingDrugHouse") > 1)
  6421. {
  6422. format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDrugHouse"));
  6423. GameTextForPlayer(i, string, 1050, 3);
  6424. SetPVarInt(i, "RobbingDrugHouse", GetPVarInt(i, "RobbingDrugHouse") -1);
  6425. }
  6426. if(GetPVarInt(i, "RobbingDrugHouse") == 1)
  6427. {
  6428. new mrand = random(GetGVarInt("DrugHouseCash"));
  6429. format(string, 120, "[ROBBERY] %s has robbed $%d from the Drug House in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  6430. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6431. CNR_PrintString(string);
  6432. format(string, 120, "[DISPATCH] %s has robbed the Drug House in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  6433. SendCopMessage(string);
  6434. GivePlayerMoney(i, mrand);
  6435. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") -mrand);
  6436. IncreaseScore(i, 1);
  6437. IncreaseWantedLevel(i, 4);
  6438. SetPVarInt(i, "RobbingDrugHouse", -1);
  6439. SetGVarInt("DrugHouseRobbed", 200);
  6440. if(GetPVarInt(i, "RobSkill") < 10)
  6441. {
  6442. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6443. format(string, 120, "[SKILL UPGRADE] Your robbing skill is now %d!", GetPVarInt(i, "RobSkill"));
  6444. SendClientMessage(i, COLOR_RED, string);
  6445. return 1;
  6446. }
  6447. }
  6448. if(GetGVarInt("SuburbanRobbed") > 1)
  6449. {
  6450. SetGVarInt("SuburbanRobbed", GetGVarInt("SuburbanRobbed") -1);
  6451. }
  6452. if(GetPVarInt(i, "RobbingSuburban") > 1)
  6453. {
  6454. SetPVarInt(i, "RobbingSuburban", GetPVarInt(i, "RobbingSuburban") -1);
  6455. format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~b~ STAY IN THE CHECKPOINT ~n~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSuburban"));
  6456. GameTextForPlayer(i, string, 1100, 3);
  6457. }
  6458. if(GetPVarInt(i, "RobbingSuburban") == 1)
  6459. {
  6460. new mrand = random(35000);
  6461. format(string, 120, "[ROBBERY] %s has robbed $%d from the Suburban in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  6462. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6463. CNR_PrintString(string);
  6464. format(string, 120, "[DISPATCH] %s has robbed the Suburban in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  6465. SendCopMessage(string);
  6466. IncreaseScore(i, 1);
  6467. IncreaseWantedLevel(i, 4);
  6468. SetPVarInt(i, "RobbingSuburban", -1);
  6469. GivePlayerMoney(i, mrand);
  6470. if(GetPVarInt(i, "RobSkill") < 5)
  6471. {
  6472. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6473. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d!", GetPVarInt(i, "RobSkill"));
  6474. SendClientMessage(i, COLOR_RED, string);
  6475. return 1;
  6476. }
  6477. }
  6478. if(GetPVarInt(i, "RobbingBinco") > 1)
  6479. {
  6480. SetPVarInt(i, "RobbingBinco", GetPVarInt(i, "RobbingBinco") -1);
  6481. format(string, 120, "~R~ ROBBERY IN PROGRESS ~n~ ~b~ STAY IN THE CHECKPOINT ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingBinco"));
  6482. GameTextForPlayer(i, string, 1100, 3);
  6483. }
  6484. if(GetPVarInt(i, "RobbingBinco") == 1)
  6485. {
  6486. new mrand = random(45000);
  6487. format(string, 120, "[ROBBERY] %s has robbed $%d from the Binco in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  6488. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6489. CNR_PrintString(string);
  6490. format(string, 120, "[DISPATCH] %s has robbed the Binco in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6491. SendCopMessage(string);
  6492. IncreaseScore(i, 1);
  6493. IncreaseWantedLevel(i, 4);
  6494. SetPVarInt(i, "RobbingBinco", -1);
  6495. GivePlayerMoney(i, mrand);
  6496. if(GetPVarInt(i, "RobSkill") < 5)
  6497. {
  6498. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6499. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
  6500. SendClientMessage(i, COLOR_RED, string);
  6501. return 1;
  6502. }
  6503. }
  6504. if(GetGVarInt("BincoRobbed") > 1)
  6505. {
  6506. SetGVarInt("BincoRobbed", GetGVarInt("BincoRobbed") -1);
  6507. }
  6508. if(GetPVarInt(i, "RobbingPizza") > 1)
  6509. {
  6510. SetPVarInt(i, "RobbingPizza", GetPVarInt(i, "RobbingPizza") -1);
  6511. format(string, 120, "~r~ STAY IN THE CHECKPOINT ~N~ ~b~ ROBBERY IN PROGRESS ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingPizza"));
  6512. GameTextForPlayer(i, string, 1100, 3);
  6513. }
  6514. if(GetGVarInt("PizzaRobbed") > 1)
  6515. {
  6516. SetGVarInt("PizzaRobbed", GetGVarInt("PizzaRobbed") -1);
  6517. }
  6518. if(GetPVarInt(i, "RobbingPizza") == 1)
  6519. {
  6520. new mrand = random(25000);
  6521. format(string, 120, "[ROBBERY] %s has robbed $%d from the Well Stacked Pizza Parlor in %s",PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  6522. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  6523. CNR_PrintString(string);
  6524. format(string, 120, "[DISPATCH] %s has robbed the Pizza Parlor in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  6525. SendCopMessage(string);
  6526. GivePlayerMoney(i, mrand);
  6527. SetPVarInt(i, "RobbingPizza", -1);
  6528. IncreaseScore(i, 1);
  6529. IncreaseWantedLevel(i, 4);
  6530. if(GetPVarInt(i, "RobSkill") < 5)
  6531. {
  6532. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  6533. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
  6534. return 1;
  6535. }
  6536. }
  6537. }
  6538. }
  6539. //printf("Tick Count: %d", GetTickCount());
  6540. return 1;
  6541. }
  6542.  
  6543. public BanWeapon(playerid)
  6544. {
  6545. if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
  6546. GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
  6547. GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
  6548. {
  6549. return 1;
  6550. }
  6551. return 0;
  6552. }
  6553.  
  6554. public SaveStats()
  6555. {
  6556. for(new i = 0; i<MAX_PLAYERS; i++)
  6557. {
  6558. if(IsPlayerConnected(i)) {
  6559. if(PLAYERLIST_authed[i])
  6560. {
  6561. dUserSetINT(PlayerName(i)).("Score", GetPlayerScore(i));
  6562. dUserSetINT(PlayerName(i)).("AdminLevel", GetPVarInt(i, "AdminLevel"));
  6563. dUserSetINT(PlayerName(i)).("Cash", GetPlayerMoney(i));
  6564. dUserSetINT(PlayerName(i)).("BankCash", GetPVarInt(i, "BankCash"));
  6565. dUserSetINT(PlayerName(i)).("Banned", GetPVarInt(i, "Banned"));
  6566. dUserSetINT(PlayerName(i)).("WantedLevel", GetPlayerWantedLevel(i));
  6567. dUserSetINT(PlayerName(i)).("Warnings", GetPVarInt(i, "Warnings"));
  6568. dUserSetINT(PlayerName(i)).("HasPack", GetPVarInt(i, "HasPack"));
  6569. dUserSetINT(PlayerName(i)).("ArmyPermission", GetPVarInt(i, "ArmyPermission"));
  6570. dUserSetINT(PlayerName(i)).("PackCash", GetPVarInt(i, "PackCash"));
  6571. dUserSetINT(PlayerName(i)).("PackSnack", GetPVarInt(i, "PackSnack"));
  6572. dUserSetINT(PlayerName(i)).("PackPipe", GetPVarInt(i, "PackPipe"));
  6573. dUserSetINT(PlayerName(i)).("PackPot", GetPVarInt(i, "PackPot"));
  6574. dUserSetINT(PlayerName(i)).("PackCondom", GetPVarInt(i, "PackCondom"));
  6575. dUserSetINT(PlayerName(i)).("JailTime", GetPVarInt(i, "JailTime"));
  6576. dUserSetINT(PlayerName(i)).("RobSkill", GetPVarInt(i, "RobSkill"));
  6577. dUserSetINT(PlayerName(i)).("Elite", GetPVarInt(i, "Elite"));
  6578. dUserSetINT(PlayerName(i)).("PackExp", GetPVarInt(i, "PackExp"));
  6579. dUserSetINT(PlayerName(i)).("TerrorSkill", GetPVarInt(i, "TerrorSkill"));
  6580. }
  6581. }
  6582. }
  6583. return 1;
  6584. }
  6585.  
  6586. encode_tires(tires1, tires2, tires3, tires4) {
  6587.  
  6588. return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
  6589.  
  6590. }
  6591.  
  6592.  
  6593. stock CreateStrip(Float:x, Float:y, Float:z, Float:Angle)
  6594. {
  6595. for(new i = 0; i < sizeof(SInfo); i ++)
  6596. {
  6597. if(SInfo[i][SpikeCreated] == 0)
  6598. {
  6599. SInfo[i][SpikeCreated] = 1;
  6600. SInfo[i][SX] = x;
  6601. SInfo[i][SY] = y;
  6602. SInfo[i][SZ] = z-0.7;
  6603. SInfo[i][sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90);
  6604. return 1;
  6605. }
  6606. }
  6607. return 0;
  6608. }
  6609.  
  6610. stock RemoveClosestSpike(playerid)
  6611. {
  6612. for(new i = 0; i < sizeof(SInfo); i++)
  6613. {
  6614. if(IsPlayerInRangeOfPoint(playerid, 2.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
  6615. {
  6616. if(SInfo[i][SpikeCreated] == 1)
  6617. {
  6618. SInfo[i][SpikeCreated]=0;
  6619. SInfo[i][SX]=0.0;
  6620. SInfo[i][SY]=0.0;
  6621. SInfo[i][SZ]=0.0;
  6622. DestroyObject(SInfo[i][sObject]);
  6623. return 1;
  6624. }
  6625. }
  6626. }
  6627. return 0;
  6628. }
  6629. stock RemoveAllSpikes()
  6630. {
  6631. for(new i = 0; i < sizeof(SInfo); i++)
  6632. {
  6633. if(SInfo[i][SpikeCreated] == 1)
  6634. {
  6635. SInfo[i][SpikeCreated]=0;
  6636. SInfo[i][SX]=0.0;
  6637. SInfo[i][SY]=0.0;
  6638. SInfo[i][SZ]=0.0;
  6639. DestroyObject(SInfo[i][sObject]);
  6640. }
  6641. }
  6642. return 0;
  6643. }
  6644. public IsABike(carid)
  6645. {
  6646. if(GetVehicleModel(carid) == 509 || GetVehicleModel(carid) == 481 || GetVehicleModel(carid) == 510)
  6647. {
  6648. return 1;
  6649. }
  6650. return 0;
  6651. }
  6652.  
  6653. public Weather()
  6654. {
  6655. new wrand = random(6);
  6656. if(wrand == 1)
  6657. {
  6658. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The weather has taken a turn for the worse. It seems if a storm is rolling in.");
  6659. SetWeather(16);
  6660. return 1;
  6661. }
  6662. if(wrand == 2)
  6663. {
  6664. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The dust storm from Las Venturas is rolling in yet again. Expect low sight distance.");
  6665. SetWeather(42);
  6666. return 1;
  6667. }
  6668. if(wrand == 3)
  6669. {
  6670. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Clouds are moving in from the coast, and will bring a chance of rain.");
  6671. SetWeather(12);
  6672. return 1;
  6673. }
  6674. if(wrand == 4)
  6675. {
  6676. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The rain is coming in. Expect foggy conditions.");
  6677. SetWeather(9);
  6678. return 1;
  6679. }
  6680. if(wrand == 5)
  6681. {
  6682. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] It's gonna be a normal day, folks. Sunny skies all day.");
  6683. SetWeather(10);
  6684. return 1;
  6685. }
  6686. if(wrand == 6)
  6687. {
  6688. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Seems as though the sun is in an odd position today. Expect odd colored skies.");
  6689. SetWeather(2009);
  6690. return 1;
  6691. }
  6692. return 1;
  6693. }
  6694.  
  6695. /**
  6696. * It is much easier to actually make this print than to replace all of it in the script.
  6697. * Same goes for public IRCAdmin
  6698. */
  6699. stock CNR_PrintString(msg[]) {
  6700. print(msg);
  6701. }
  6702.  
  6703. public GivePlayerTeamWeapons(playerid)
  6704. {
  6705. if(gTeam[playerid] == Team_Cop)
  6706. {
  6707. GivePlayerWeapon(playerid, 3, 1);
  6708. GivePlayerWeapon(playerid, 22, 100);
  6709. GivePlayerWeapon(playerid, 29, 500);
  6710. GivePlayerWeapon(playerid, 33, 10);
  6711. SetPlayerArmour(playerid, 100.0);
  6712. return 1;
  6713. }
  6714. if(gTeam[playerid] == Team_FBI)
  6715. {
  6716. GivePlayerWeapon(playerid, 3, 1);
  6717. GivePlayerWeapon(playerid, 22, 100);
  6718. GivePlayerWeapon(playerid, 29, 500);
  6719. GivePlayerWeapon(playerid, 31, 100);
  6720. SetPlayerArmour(playerid, 100.0);
  6721. return 1;
  6722. }
  6723. if(gTeam[playerid] == Team_Army)
  6724. {
  6725. GivePlayerWeapon(playerid, 24, 50);
  6726. GivePlayerWeapon(playerid, 31, 500);
  6727. GivePlayerWeapon(playerid, 34, 20);
  6728. GivePlayerWeapon(playerid, 26, 25);
  6729. SetPlayerArmour(playerid, 100.0);
  6730. return 1;
  6731. }
  6732. if(gTeam[playerid] == Team_Rape)
  6733. {
  6734. GivePlayerWeapon(playerid, 22, 100);
  6735. return 1;
  6736. }
  6737. if(gTeam[playerid] == Team_Terror)
  6738. {
  6739. GivePlayerWeapon(playerid, 31, 100);
  6740. GivePlayerWeapon(playerid, 32, 250);
  6741. return 1;
  6742. }
  6743. if(gTeam[playerid] == Team_Steal)
  6744. {
  6745. GivePlayerWeapon(playerid, 22, 100);
  6746. GivePlayerWeapon(playerid, 32, 100);
  6747. return 1;
  6748. }
  6749. if(gTeam[playerid] == Team_PrvtMed)
  6750. {
  6751. GivePlayerWeapon(playerid, 22, 100);
  6752. GivePlayerWeapon(playerid, 4, 1);
  6753. return 1;
  6754. }
  6755. return 1;
  6756. }
  6757.  
  6758. public Taxes()
  6759. {
  6760. new string[120];
  6761. for(new i = 0; i<MAX_PLAYERS; i++)
  6762. {
  6763. if(gTeam[i] == Team_Cop || gTeam[i] == Team_FBI || gTeam[i] == Team_Army)
  6764. {
  6765. format(string, 120, "[DAILY CHECK] You have gotten your daily check of $15,000. Keep up the good work!");
  6766. SendCopMessage(string);
  6767. format(string, 120, "[DAILY PAY] The Cops have recieved their daily pay of $15,000");
  6768. CNR_PrintString(string);
  6769. GivePlayerMoney(i, 15000);
  6770. }
  6771. }
  6772. return 1;
  6773. }
  6774. //xObjects
  6775. public Timer()
  6776. {
  6777. for(new i = 0; i < MAX_PLAYERS; i++)
  6778. if(IsPlayerConnected(i))
  6779. PlayerObjectUpdate(i);
  6780. }
  6781.  
  6782. PlayerObjectUpdate(playerid)
  6783. {
  6784. new Float:pos[3];
  6785. GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
  6786. for(new i = 0; i < sizeof(Objects); i++)
  6787. {
  6788. if(!Player[playerid][view][i])
  6789. {
  6790. if(IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  6791. {
  6792. Player[playerid][view][i] = true;
  6793. Player[playerid][objid][i] = CreatePlayerObject(playerid,Objects[i][xmodelid],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][orx],Objects[i][ory],Objects[i][orz],350.0);
  6794. }
  6795. } else if(!IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  6796. {
  6797. Player[playerid][view][i] = false;
  6798. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  6799. }
  6800. }
  6801. }
  6802. forward SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z);
  6803. public SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z)
  6804. {
  6805. for(new i = 0; i < sizeof(Objects); i++)
  6806. {
  6807. if(!Player[playerid][view][i])
  6808. {
  6809. if(IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  6810. {
  6811. Player[playerid][view][i] = true;
  6812. Player[playerid][objid][i] = CreatePlayerObject(playerid,Objects[i][xmodelid],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][orx],Objects[i][ory],Objects[i][orz],350.0);
  6813. }
  6814. } else if(!IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  6815. {
  6816. Player[playerid][view][i] = false;
  6817. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  6818. }
  6819. }
  6820. SetPlayerPos(playerid,Float:x,Float:y,Float:z);
  6821. }
  6822.  
  6823. /////////
  6824. //Los Santos Airpot explosions
  6825. forward APPlantOne();
  6826. forward APPlantTwo();
  6827. forward APPlantThree();
  6828. forward APPlantFour();
  6829. forward APPlantFive();
  6830. forward APPlantSix();
  6831. forward APPlantSeven();
  6832. forward APPlantEight();
  6833. forward AirportExplode();
  6834. forward AirportExplode2();
  6835. forward AirportExplode3();
  6836. forward AirportExplode4();
  6837. //Bomb Objects
  6838. new APBomb1;
  6839. new APBomb2;
  6840. new APBomb3;
  6841. new APBomb4;
  6842. new APBomb5;
  6843. new APBomb6;
  6844. new APBomb7;
  6845. public APPlantOne()
  6846. {
  6847. for(new i = 0; i < MAX_PLAYERS; i ++ )
  6848. {
  6849. if(GetPVarInt(i, "BlowingAirport") == 1)
  6850. {
  6851. SetPlayerFacingAngle(i,227.48);
  6852. TogglePlayerControllable(i, false);
  6853. SetPlayerPos(i,1446.511230, -2259.595703, 13.546875);
  6854. SetCameraBehindPlayer(i);
  6855. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0,0);
  6856. APBomb1 = CreateObject(1252, 1446.511230, -2259.595703, 13.546875 , 0, 0, 0);
  6857. SetTimer("APPlantTwo", 5000, 0);
  6858. }
  6859. }
  6860. return 1;
  6861. }
  6862.  
  6863. public APPlantTwo()
  6864. {
  6865. for(new i = 0; i<MAX_PLAYERS;i++)
  6866. {
  6867. if(GetPVarInt(i, "BlowingAirport") == 1)
  6868. {
  6869. SetPlayerFacingAngle(i,181.73);
  6870. TogglePlayerControllable(i, false);
  6871. SetPlayerPos(i, 1474.257080, -2247.815917, 13.546875);
  6872. SetCameraBehindPlayer(i);
  6873. APBomb2 = CreateObject(1252, 1474.257080, -2247.815917, 13.546875, 0, 0,0);
  6874. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6875. SetTimer("APPlantThree", 1000*5, 0);
  6876. }
  6877. }
  6878. return 1;
  6879. }
  6880. public APPlantThree()
  6881. {
  6882. for(new i = 0; i<MAX_PLAYERS;i++)
  6883. {
  6884. if(GetPVarInt(i, "BlowingAirport") == 1)
  6885. {
  6886. SetPlayerFacingAngle(i,137.86);
  6887. TogglePlayerControllable(i, false);
  6888. SetPlayerPos(i, 1501.784790, -2258.842773, 13.546875);
  6889. SetCameraBehindPlayer(i);
  6890. APBomb3 = CreateObject(1252, 1501.784790, -2258.842773, 13.546875, 0, 0,0);
  6891. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6892. SetTimer("APPlantFour", 1000*5,0);
  6893. }
  6894. }
  6895. return 1;
  6896. }
  6897. public APPlantFour()
  6898. {
  6899. for(new i = 0; i<MAX_PLAYERS;i++)
  6900. {
  6901. if(GetPVarInt(i, "BlowingAirport") == 1)
  6902. {
  6903. SetPlayerFacingAngle(i,45.74);
  6904. TogglePlayerControllable(i, false);
  6905. SetPlayerPos(i, 1502.540283, -2313.813232, 13.546875);
  6906. SetCameraBehindPlayer(i);
  6907. APBomb4 = CreateObject(1252, 1502.540283, -2313.813232, 13.546875, 0, 0,0);
  6908. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6909. SetTimer("APPlantFive", 5000,0);
  6910. }
  6911. }
  6912. return 1;
  6913. }
  6914. public APPlantFive()
  6915. {
  6916. for(new i = 0; i<MAX_PLAYERS;i++)
  6917. {
  6918. if(GetPVarInt(i, "BlowingAirport") == 1)
  6919. {
  6920. SetPlayerFacingAngle(i,3.13);
  6921. TogglePlayerControllable(i, false);
  6922. SetPlayerPos(i, 1475.110595, -2325.812011, 13.546875);
  6923. SetCameraBehindPlayer(i);
  6924. APBomb5 = CreateObject(1252, 1475.110595, -2325.812011, 13.546875, 0, 0,0);
  6925. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6926. SetTimer("APPlantSix", 5000, 0);
  6927. }
  6928. }
  6929. return 1;
  6930. }
  6931. public APPlantSix()
  6932. {
  6933. for(new i = 0; i<MAX_PLAYERS;i++)
  6934. {
  6935. if(GetPVarInt(i, "BlowingAirport") == 1)
  6936. {
  6937. SetPlayerFacingAngle(i,311.43);
  6938. TogglePlayerControllable(i, false);
  6939. SetPlayerPos(i, 1446.560058, -2314.601074, 13.546875);
  6940. SetCameraBehindPlayer(i);
  6941. APBomb6 = CreateObject(1252, 1446.560058, -2314.601074, 13.546875, 0, 0,0);
  6942. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6943. SetTimer("APPlantSeven", 5000, 0);
  6944. }
  6945. }
  6946. return 1;
  6947. }
  6948. public APPlantSeven()
  6949. {
  6950. for(new i = 0; i<MAX_PLAYERS;i++)
  6951. {
  6952. if(GetPVarInt(i, "BlowingAirport") == 1)
  6953. {
  6954. SetPlayerFacingAngle(i,88.36);
  6955. TogglePlayerControllable(i, false);
  6956. SetPlayerPos(i, 1474.212158, -2287.304687, 42.420486);
  6957. SetCameraBehindPlayer(i);
  6958. APBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  6959. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  6960. SetTimer("APPlantEight", 5000, 0);
  6961. }
  6962. }
  6963. return 1;
  6964. }
  6965. public APPlantEight()
  6966. {
  6967. for(new i = 0; i<MAX_PLAYERS;i++)
  6968. {
  6969. if(GetPVarInt(i, "BlowingAirport") == 1)
  6970. {
  6971. TogglePlayerControllable(i, true);
  6972. SetPlayerPos(i, 1418.392700, -2276.415771, 13.541189);
  6973. SetCameraBehindPlayer(i);
  6974. GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~r~ IT WILL EXPLODE SOON", 3000, 3);
  6975. SendClientMessage(i, COLOR_RED, "[TERRORISM] You have blown up the Airport. Run for your life!");
  6976. SetTimer("AirportExplode", 1000*5, 0);
  6977. SetPVarInt(i, "BlowingAirport", 0);
  6978. SetPlayerFacingAngle(i, 264.50);
  6979. }
  6980. }
  6981. return 1;
  6982. }
  6983. public AirportExplode()
  6984. {
  6985. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  6986. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  6987. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  6988. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  6989. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  6990. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  6991. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  6992. DestroyObject(APBomb1);
  6993. DestroyObject(APBomb2);
  6994. DestroyObject(APBomb3);
  6995. DestroyObject(APBomb4);
  6996. DestroyObject(APBomb5);
  6997. DestroyObject(APBomb6);
  6998. DestroyObject(APBomb7);
  6999. SetTimer("AirportExplode2", 1000*5, 0);
  7000. return 1;
  7001. }
  7002. public AirportExplode2()
  7003. {
  7004. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  7005. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  7006. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  7007. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  7008. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  7009. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  7010. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  7011. SetTimer("AirportExplode3", 1000*6, 0);
  7012. return 1;
  7013. }
  7014. public AirportExplode3()
  7015. {
  7016. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  7017. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  7018. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  7019. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  7020. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  7021. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  7022. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  7023. SetTimer("AirportExplode4", 1000*7, 0);
  7024. return 1;
  7025. }
  7026. public AirportExplode4()
  7027. {
  7028. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  7029. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  7030. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  7031. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  7032. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  7033. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  7034. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  7035. return 1;
  7036. }
  7037.  
  7038. //
  7039. //Amusement park Blowing (PVar - BlowingPark) Public : ParkPlantOne and on
  7040. forward ParkPlantOne();
  7041. forward ParkPlantTwo();
  7042. forward ParkPlantThree();
  7043. forward ParkPlantFour();
  7044. forward ParkPlantFive();
  7045. forward ParkPlantSix();
  7046. forward ParkPlantSeven();
  7047. forward ParkPlantEight();
  7048. forward ParkPlantNine();
  7049. forward ParkPlantTen();
  7050. forward ParkBlowOne();
  7051. forward ParkBlowTwo();
  7052. forward ParkBlowThree();
  7053. forward ParkBlowFour();
  7054. new ParkBomb1;
  7055. new ParkBomb2;
  7056. new ParkBomb3;
  7057. new ParkBomb4;
  7058. new ParkBomb5;
  7059. new ParkBomb6;
  7060. new ParkBomb7;
  7061. new ParkBomb8;
  7062. new ParkBomb9;
  7063. public ParkPlantOne()
  7064. {
  7065. for(new i = 0; i < MAX_PLAYERS; i ++)
  7066. {
  7067. if(GetPVarInt(i, "BlowingPark") == 1)
  7068. {
  7069. TogglePlayerControllable(i, false);
  7070. SetPlayerPos(i, 386.390991, -2016.805053, 7.835937);
  7071. SetPlayerFacingAngle(i,271.95);
  7072. SetCameraBehindPlayer(i);
  7073. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7074. ParkBomb1 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7075. SetTimer("ParkPlantTwo", 4000, false);
  7076. }
  7077. }
  7078. return 1;
  7079. }
  7080. public ParkPlantTwo()
  7081. {
  7082. for(new i = 0; i < MAX_PLAYERS; i ++)
  7083. {
  7084. if(GetPVarInt(i, "BlowingPark") == 1)
  7085. {
  7086. TogglePlayerControllable(i, false);
  7087. SetPlayerPos(i, 393.594512, -2016.958374, 7.835937);
  7088. SetPlayerFacingAngle(i,89.59);
  7089. SetCameraBehindPlayer(i);
  7090. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7091. ParkBomb2 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7092. SetTimer("ParkPlantThree", 4000, false);
  7093. }
  7094. }
  7095. return 1;
  7096. }
  7097. public ParkPlantThree()
  7098. {
  7099. for(new i = 0; i < MAX_PLAYERS; i ++)
  7100. {
  7101. if(GetPVarInt(i, "BlowingPark") == 1)
  7102. {
  7103. TogglePlayerControllable(i, false);
  7104. SetPlayerPos(i, 393.441101, -2040.196533, 7.835937);
  7105. SetPlayerFacingAngle(i,93.03);
  7106. SetCameraBehindPlayer(i);
  7107. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7108. ParkBomb3 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7109. SetTimer("ParkPlantFour", 4000, false);
  7110. }
  7111. }
  7112. return 1;
  7113. }
  7114. public ParkPlantFour()
  7115. {
  7116. for(new i = 0; i < MAX_PLAYERS; i ++)
  7117. {
  7118. if(GetPVarInt(i, "BlowingPark") == 1)
  7119. {
  7120. TogglePlayerControllable(i, false);
  7121. SetPlayerPos(i, 386.078521, -2040.287109, 7.835937 );
  7122. SetPlayerFacingAngle(i,269.10);
  7123. SetCameraBehindPlayer(i);
  7124. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7125. ParkBomb4 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7126. SetTimer("ParkPlantFive", 4000, false);
  7127. }
  7128. }
  7129. return 1;
  7130. }
  7131. public ParkPlantFive()
  7132. {
  7133. for(new i = 0; i < MAX_PLAYERS; i ++)
  7134. {
  7135. if(GetPVarInt(i, "BlowingPark") == 1)
  7136. {
  7137. TogglePlayerControllable(i, false);
  7138. SetPlayerPos(i,399.358306, -2053.864013, 7.835937);
  7139. SetPlayerFacingAngle(i,90.50);
  7140. SetCameraBehindPlayer(i);
  7141. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7142. ParkBomb5 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7143. SetTimer("ParkPlantSix", 4000, false);
  7144. }
  7145. }
  7146. return 1;
  7147. }
  7148. public ParkPlantSix()
  7149. {
  7150. for(new i = 0; i < MAX_PLAYERS; i ++)
  7151. {
  7152. if(GetPVarInt(i, "BlowingPark") == 1)
  7153. {
  7154. TogglePlayerControllable(i, false);
  7155. SetPlayerPos(i,399.360260, -2067.079345, 10.746990);
  7156. SetPlayerFacingAngle(i,90.50);
  7157. SetCameraBehindPlayer(i);
  7158. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7159. ParkBomb6 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7160. SetTimer("ParkPlantSeven", 4000, false);
  7161. }
  7162. }
  7163. return 1;
  7164. }
  7165. public ParkPlantSeven()
  7166. {
  7167. for(new i = 0; i < MAX_PLAYERS; i ++)
  7168. {
  7169. if(GetPVarInt(i, "BlowingPark") == 1)
  7170. {
  7171. TogglePlayerControllable(i, false);
  7172. SetPlayerPos(i,359.417694, -2071.052001, 10.695312);
  7173. SetPlayerFacingAngle(i,359.32);
  7174. SetCameraBehindPlayer(i);
  7175. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7176. ParkBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7177. SetTimer("ParkPlantEight", 4000, false);
  7178. }
  7179. }
  7180. return 1;
  7181. }
  7182. public ParkPlantEight()
  7183. {
  7184. for(new i = 0; i < MAX_PLAYERS; i ++)
  7185. {
  7186. if(GetPVarInt(i, "BlowingPark") == 1)
  7187. {
  7188. TogglePlayerControllable(i, false);
  7189. SetPlayerPos(i,382.292480, -2058.703857, 10.719718);
  7190. SetPlayerFacingAngle(i,270.02);
  7191. SetCameraBehindPlayer(i);
  7192. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7193. ParkBomb8 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7194. SetTimer("ParkPlantNine", 4000, false);
  7195. }
  7196. }
  7197. return 1;
  7198. }
  7199. public ParkPlantNine()
  7200. {
  7201. for(new i = 0; i < MAX_PLAYERS; i ++)
  7202. {
  7203. if(GetPVarInt(i, "BlowingPark") == 1)
  7204. {
  7205. TogglePlayerControllable(i, false);
  7206. SetPlayerPos(i,359.547882, -2052.848388, 8.015625 );
  7207. SetPlayerFacingAngle(i,271.92);
  7208. SetCameraBehindPlayer(i);
  7209. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7210. ParkBomb9 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  7211. SetTimer("ParkPlantTen", 4000, false);
  7212. }
  7213. }
  7214. return 1;
  7215. }
  7216. public ParkPlantTen()
  7217. {
  7218. for(new i = 0; i < MAX_PLAYERS; i ++)
  7219. {
  7220. if(GetPVarInt(i, "BlowingPark") == 1)
  7221. {
  7222. SetPlayerPos(i,368.264892, -2011.568969, 7.671875 );
  7223. SetPlayerFacingAngle(i,180.0);
  7224. SetCameraBehindPlayer(i);
  7225. TogglePlayerControllable(i, true);
  7226. GameTextForPlayer(i, "~b~ STAND BACK ~n~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
  7227. SetTimer("ParkBlowOne", 5000, false);
  7228. SetPVarInt(i, "BlowingPark", 0);
  7229. }
  7230. }
  7231. return 1;
  7232. }
  7233. public ParkBlowOne()
  7234. {
  7235. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  7236. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  7237. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  7238. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  7239. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  7240. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  7241. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  7242. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  7243. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  7244. new string[120];
  7245. format(string, 120, "[TERRORISM] The Amusement Park has been blown up by a terrorist.");
  7246. SendClientMessageToAll(COLOR_RED, string);
  7247. CNR_PrintString(string);
  7248. SetTimer("ParkBlowTwo", 5000, false);
  7249. DestroyObject(ParkBomb1);
  7250. DestroyObject(ParkBomb2);
  7251. DestroyObject(ParkBomb3);
  7252. DestroyObject(ParkBomb4);
  7253. DestroyObject(ParkBomb5);
  7254. DestroyObject(ParkBomb6);
  7255. DestroyObject(ParkBomb7);
  7256. DestroyObject(ParkBomb8);
  7257. DestroyObject(ParkBomb9);
  7258. return 1;
  7259. }
  7260. public ParkBlowTwo()
  7261. {
  7262. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  7263. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  7264. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  7265. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  7266. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  7267. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  7268. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  7269. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  7270. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  7271. SetTimer("ParkBlowThree", 5000, false);
  7272. return 1;
  7273. }
  7274. public ParkBlowThree()
  7275. {
  7276. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  7277. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  7278. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  7279. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  7280. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  7281. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  7282. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  7283. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  7284. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  7285. SetTimer("ParkBlowFour", 5000, false);
  7286. return 1;
  7287. }
  7288. public ParkBlowFour()
  7289. {
  7290. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  7291. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  7292. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  7293. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  7294. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  7295. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  7296. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  7297. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  7298. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  7299. return 1;
  7300. }
  7301.  
  7302. // Vinewood sign
  7303. forward SignPlantOne();
  7304. forward SignPlantTwo();
  7305. forward SignPlantThree();
  7306. forward SignPlantFour();
  7307. forward SignPlantFive();
  7308. forward SignPlantSix();
  7309. forward SignPlantSeven();
  7310. forward SignPlantEight();
  7311. forward SignPlantNine();
  7312. forward SignPlantTen();
  7313. forward SignPlant11();
  7314. forward SignPlant12();
  7315. forward SignPlant13();
  7316. forward SignPlant14();
  7317. forward SignPlant15();
  7318.  
  7319. forward SignBlowOne();
  7320. forward SignBlowTwo();
  7321. forward SignBlowThree();
  7322. forward SignBlowFour();
  7323. forward SignBlowFive();
  7324. forward SignBlowSix();
  7325. forward SignBlowSeven();
  7326. public SignPlantOne()
  7327. {
  7328. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7329. {
  7330. if(GetPVarInt(i, "BlowingSign") == 1)
  7331. {
  7332. SetCameraBehindPlayer(i);
  7333. TogglePlayerControllable(i, false);
  7334. SetPlayerPos(i,1449.423461, -806.295959, 84.260368);
  7335. SetPlayerFacingAngle(i,181.91);
  7336. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7337. SetTimer("SignPlantTwo", 3000, 0);
  7338. return 1;
  7339. }
  7340. }
  7341. return 1;
  7342. }
  7343. public SignPlantTwo()
  7344. {
  7345. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7346. {
  7347. if(GetPVarInt(i, "BlowingSign") == 1)
  7348. {
  7349. SetCameraBehindPlayer(i);
  7350. TogglePlayerControllable(i, false);
  7351. SetPlayerPos(i,1438.864135, -806.372375, 86.463600);
  7352. SetPlayerFacingAngle(i,178.15);
  7353. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7354. SetTimer("SignPlantThree", 3000, 0);
  7355. return 1;
  7356. }
  7357. }
  7358. return 1;
  7359. }
  7360. public SignPlantThree()
  7361. {
  7362. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7363. {
  7364. if(GetPVarInt(i, "BlowingSign") == 1)
  7365. {
  7366. SetCameraBehindPlayer(i);
  7367. TogglePlayerControllable(i, false);
  7368. SetPlayerPos(i,1427.885253, -806.273071, 86.457664);
  7369. SetPlayerFacingAngle(i,183.16);
  7370. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7371. SetTimer("SignPlantFour", 3000, 0);
  7372. return 1;
  7373. }
  7374. }
  7375. return 1;
  7376. }
  7377. public SignPlantFour()
  7378. {
  7379. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7380. {
  7381. if(GetPVarInt(i, "BlowingSign") == 1)
  7382. {
  7383. SetCameraBehindPlayer(i);
  7384. TogglePlayerControllable(i, false);
  7385. SetPlayerPos(i,1415.526611, -806.473693, 85.039077);
  7386. SetPlayerFacingAngle(i,178.78);
  7387. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7388. SetTimer("SignPlantFive", 3000, 0);
  7389. return 1;
  7390. }
  7391. }
  7392. return 1;
  7393. }
  7394. public SignPlantFive()
  7395. {
  7396. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7397. {
  7398. if(GetPVarInt(i, "BlowingSign") == 1)
  7399. {
  7400. SetCameraBehindPlayer(i);
  7401. TogglePlayerControllable(i, false);
  7402. SetPlayerPos(i,1404.023315, -806.558349, 85.036766);
  7403. SetPlayerFacingAngle(i,180.95);
  7404. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7405. SetTimer("SignPlantSix", 3000, 0);
  7406. return 1;
  7407. }
  7408. }
  7409. return 1;
  7410. }
  7411. public SignPlantSix()
  7412. {
  7413. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7414. {
  7415. if(GetPVarInt(i, "BlowingSign") == 1)
  7416. {
  7417. SetCameraBehindPlayer(i);
  7418. TogglePlayerControllable(i, false);
  7419. SetPlayerPos(i,1394.168090, -805.948608, 85.030563);
  7420. SetPlayerFacingAngle(i, 180.00);
  7421. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7422. SetTimer("SignPlantSeven", 3000, 0);
  7423. return 1;
  7424. }
  7425. }
  7426. return 1;
  7427. }
  7428. public SignPlantSeven()
  7429. {
  7430. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7431. {
  7432. if(GetPVarInt(i, "BlowingSign") == 1)
  7433. {
  7434. SetCameraBehindPlayer(i);
  7435. TogglePlayerControllable(i, false);
  7436. SetPlayerPos(i,1385.198120, -806.237854, 86.335533);
  7437. SetPlayerFacingAngle(i, 180.32);
  7438. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7439. SetTimer("SignPlantEight", 3000, 0);
  7440. return 1;
  7441. }
  7442. }
  7443. return 1;
  7444. }
  7445. public SignPlantEight()
  7446. {
  7447. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7448. {
  7449. if(GetPVarInt(i, "BlowingSign") == 1)
  7450. {
  7451. SetCameraBehindPlayer(i);
  7452. TogglePlayerControllable(i, false);
  7453. SetPlayerPos(i,1378.010620, -805.799560, 85.020629 );
  7454. SetPlayerFacingAngle(i, 178.75);
  7455. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7456. SetTimer("SignPlantNine", 3000, 0);
  7457. return 1;
  7458. }
  7459. }
  7460. return 1;
  7461. }
  7462. public SignPlantNine()
  7463. {
  7464. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7465. {
  7466. if(GetPVarInt(i, "BlowingSign") == 1)
  7467. {
  7468. SetCameraBehindPlayer(i);
  7469. TogglePlayerControllable(i, false);
  7470. SetPlayerPos(i,1378.170043, -809.628662, 76.381591 );
  7471. SetPlayerFacingAngle(i,3.96);
  7472. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7473. SetTimer("SignPlantTen", 3000, 0);
  7474. return 1;
  7475. }
  7476. }
  7477. return 1;
  7478. }
  7479. public SignPlantTen()
  7480. {
  7481. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7482. {
  7483. if(GetPVarInt(i, "BlowingSign") == 1)
  7484. {
  7485. SetCameraBehindPlayer(i);
  7486. TogglePlayerControllable(i, false);
  7487. SetPlayerPos(i,1393.239379, -810.093688, 75.517684);
  7488. SetPlayerFacingAngle(i,356.44);
  7489. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7490. SetTimer("SignPlant11", 3000, 0);
  7491. return 1;
  7492. }
  7493. }
  7494. return 1;
  7495. }
  7496. public SignPlant11()
  7497. {
  7498. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7499. {
  7500. if(GetPVarInt(i, "BlowingSign") == 1)
  7501. {
  7502. SetCameraBehindPlayer(i);
  7503. TogglePlayerControllable(i, false);
  7504. SetPlayerPos(i,1408.747436, -810.150085, 75.205711);
  7505. SetPlayerFacingAngle(i,349.23);
  7506. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7507. SetTimer("SignPlant12", 3000, 0);
  7508. return 1;
  7509. }
  7510. }
  7511. return 1;
  7512. }
  7513. public SignPlant12()
  7514. {
  7515. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7516. {
  7517. if(GetPVarInt(i, "BlowingSign") == 1)
  7518. {
  7519. SetCameraBehindPlayer(i);
  7520. TogglePlayerControllable(i, false);
  7521. SetPlayerPos(i,1421.206787, -810.518371, 75.501228);
  7522. SetPlayerFacingAngle(i,350.17);
  7523. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7524. SetTimer("SignPlant13", 3000, 0);
  7525. return 1;
  7526. }
  7527. }
  7528. return 1;
  7529. }
  7530. public SignPlant13()
  7531. {
  7532. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7533. {
  7534. if(GetPVarInt(i, "BlowingSign") == 1)
  7535. {
  7536. SetCameraBehindPlayer(i);
  7537. TogglePlayerControllable(i, false);
  7538. SetPlayerPos(i,1432.677368, -809.366333, 76.692420);
  7539. SetPlayerFacingAngle(i,351.11);
  7540. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7541. SetTimer("SignPlant14", 3000, 0);
  7542. return 1;
  7543. }
  7544. }
  7545. return 1;
  7546. }
  7547. public SignPlant14()
  7548. {
  7549. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7550. {
  7551. if(GetPVarInt(i, "BlowingSign") == 1)
  7552. {
  7553. SetCameraBehindPlayer(i);
  7554. TogglePlayerControllable(i, false);
  7555. SetPlayerPos(i,1448.768798, -809.982849, 75.858039);
  7556. SetPlayerFacingAngle(i,347.98);
  7557. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7558. SetTimer("SignPlant15", 3000, 0);
  7559. return 1;
  7560. }
  7561. }
  7562. return 1;
  7563. }
  7564. public SignPlant15()
  7565. {
  7566. for(new i = 0; i<MAX_PLAYERS; i ++ )
  7567. {
  7568. if(GetPVarInt(i, "BlowingSign") == 1)
  7569. {
  7570. SetCameraBehindPlayer(i);
  7571. TogglePlayerControllable(i, true);
  7572. SetPlayerPos(i,1439.137939, -864.297241, 52.024658);
  7573. SetPlayerFacingAngle(i,13.96);
  7574. //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7575. SetTimer("SignBlowOne", 5000, 0);
  7576. GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~R~ IT WILL BLOW SOON", 5000, 3);
  7577. new string[120];
  7578. format(string, 120, "[TERRORISM] %s has blown up the Vinewood sign.", PlayerInfo(i));
  7579. SendClientMessageToAll(COLOR_RED, string);
  7580. CNR_PrintString(string);
  7581. format(string, 120, "[DISPATCH] Terrorist %s has blown up the Vinewood sign.", PlayerInfo(i));
  7582. SendCopMessage(string);
  7583. IncreaseScore(i, 5);
  7584. IncreaseWantedLevel(i, 6);
  7585. SetPVarInt(i, "BlowingSign", 0);
  7586. return 1;
  7587. }
  7588. }
  7589. return 1;
  7590. }
  7591. public SignBlowOne()
  7592. {
  7593. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7594. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7595. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7596. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7597. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7598. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7599. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7600. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7601. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7602. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7603. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7604. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7605. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7606. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7607. SetTimer("SignBlowTwo", 5000, 0);
  7608. return 1;
  7609. }
  7610. public SignBlowTwo()
  7611. {
  7612. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7613. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7614. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7615. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7616. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7617. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7618. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7619. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7620. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7621. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7622. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7623. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7624. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7625. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7626. SetTimer("SignBlowThree", 5000, 0);
  7627. return 1;
  7628. }
  7629. public SignBlowThree()
  7630. {
  7631. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7632. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7633. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7634. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7635. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7636. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7637. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7638. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7639. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7640. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7641. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7642. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7643. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7644. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7645. SetTimer("SignBlowFour", 5000, 0);
  7646. return 1;
  7647. }
  7648. public SignBlowFour()
  7649. {
  7650. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7651. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7652. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7653. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7654. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7655. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7656. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7657. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7658. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7659. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7660. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7661. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7662. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7663. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7664. SetTimer("SignBlowFive", 5000, 0);
  7665. return 1;
  7666. }
  7667. public SignBlowFive()
  7668. {
  7669. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7670. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7671. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7672. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7673. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7674. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7675. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7676. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7677. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7678. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7679. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7680. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7681. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7682. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7683. SetTimer("SignBlowSix", 5000, 0);
  7684. return 1;
  7685. }
  7686. public SignBlowSix()
  7687. {
  7688. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7689. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7690. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7691. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7692. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7693. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7694. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7695. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7696. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7697. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7698. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7699. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7700. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7701. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7702. SetTimer("SignBlowSeven", 5000, 0);
  7703. return 1;
  7704. }
  7705. public SignBlowSeven()
  7706. {
  7707. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  7708. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  7709. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  7710. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  7711. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  7712. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  7713. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  7714. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  7715. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  7716. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  7717. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  7718. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  7719. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  7720. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  7721. //SetTimer("SignBlowTwo", 5000, 0);
  7722. return 1;
  7723. }
  7724. //Bank Explode
  7725. forward BankPlantOne();
  7726. forward BankPlantTwo();
  7727. forward BankPlantThree();
  7728. forward BankPlantFour();
  7729. forward BankPlantFive();
  7730. forward BankPlantSix();
  7731. forward BankPlantSeven();
  7732. forward BankPlantEight();
  7733. forward BankPlantNine();
  7734.  
  7735. forward BankBlowOne();
  7736. forward BankBlowTwo();
  7737. forward BankBlowThree();
  7738. forward BankBlowFour();
  7739. forward BankBlowFive();
  7740.  
  7741. public BankPlantOne()
  7742. {
  7743. for(new i =0; i<MAX_PLAYERS;i++)
  7744. {
  7745. if(GetPVarInt(i, "BlowingBank") == 1)
  7746. {
  7747. SetPlayerPos(i,1524.293457, -1062.841064, 25.06250);
  7748. SetPlayerFacingAngle(i,93.88);
  7749. TogglePlayerControllable(i, false);
  7750. SetCameraBehindPlayer(i);
  7751. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7752. SetTimer("BankPlantTwo", 3000, 0);
  7753. return 1;
  7754. }
  7755. }
  7756. return 1;
  7757. }
  7758.  
  7759. public BankPlantTwo()
  7760. {
  7761. for(new i =0; i<MAX_PLAYERS;i++)
  7762. {
  7763. if(GetPVarInt(i, "BlowingBank") == 1)
  7764. {
  7765. SetPlayerPos(i,1520.098510, -1060.029174, 25.062500);
  7766. SetPlayerFacingAngle(i,177.23);
  7767. TogglePlayerControllable(i, false);
  7768. SetCameraBehindPlayer(i);
  7769. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7770. SetTimer("BankPlantThree", 3000, 0);
  7771. return 1;
  7772. }
  7773. }
  7774. return 1;
  7775. }
  7776.  
  7777. public BankPlantThree()
  7778. {
  7779. for(new i =0; i<MAX_PLAYERS;i++)
  7780. {
  7781. if(GetPVarInt(i, "BlowingBank") == 1)
  7782. {
  7783. SetPlayerPos(i,2315.360107, 0.327747, 26.742187);
  7784. SetPlayerFacingAngle(i,359.91);
  7785. TogglePlayerControllable(i, false);
  7786. SetCameraBehindPlayer(i);
  7787. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7788. SetTimer("BankPlantFour", 3000, 0);
  7789. return 1;
  7790. }
  7791. }
  7792. return 1;
  7793. }
  7794. public BankPlantFour()
  7795. {
  7796. for(new i =0; i<MAX_PLAYERS;i++)
  7797. {
  7798. if(GetPVarInt(i, "BlowingBank") == 1)
  7799. {
  7800. SetPlayerPos(i,2314.882568, -16.652763, 26.74956);
  7801. SetPlayerFacingAngle(i,181.93);
  7802. TogglePlayerControllable(i, false);
  7803. SetCameraBehindPlayer(i);
  7804. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7805. SetTimer("BankPlantFive", 3000, 0);
  7806. return 1;
  7807. }
  7808. }
  7809. return 1;
  7810. }
  7811. public BankPlantFive()
  7812. {
  7813. for(new i =0; i<MAX_PLAYERS;i++)
  7814. {
  7815. if(GetPVarInt(i, "BlowingBank") == 1)
  7816. {
  7817. SetPlayerPos(i,1500.250366, -1060.013427, 25.062500);
  7818. SetPlayerFacingAngle(i,177.23);
  7819. TogglePlayerControllable(i, false);
  7820. SetCameraBehindPlayer(i);
  7821. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7822. SetTimer("BankPlantSix", 3000, 0);
  7823. return 1;
  7824. }
  7825. }
  7826. return 1;
  7827. }
  7828. public BankPlantSix()
  7829. {
  7830. for(new i =0; i<MAX_PLAYERS;i++)
  7831. {
  7832. if(GetPVarInt(i, "BlowingBank") == 1)
  7833. {
  7834. SetPlayerPos(i,1496.901611, -1074.039550, 25.062500 );
  7835. SetPlayerFacingAngle(i,269.04);
  7836. TogglePlayerControllable(i, false);
  7837. SetCameraBehindPlayer(i);
  7838. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7839. SetTimer("BankPlantSeven", 3000, 0);
  7840. return 1;
  7841. }
  7842. }
  7843. return 1;
  7844. }
  7845. public BankPlantSeven()
  7846. {
  7847. for(new i =0; i<MAX_PLAYERS;i++)
  7848. {
  7849. if(GetPVarInt(i, "BlowingBank") == 1)
  7850. {
  7851. SetPlayerPos(i,1518.261230, -1102.591430, 25.060787);
  7852. SetPlayerFacingAngle(i,357.09);
  7853. TogglePlayerControllable(i, false);
  7854. SetCameraBehindPlayer(i);
  7855. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7856. SetTimer("BankPlantEight", 3000, 0);
  7857. return 1;
  7858. }
  7859. }
  7860. return 1;
  7861. }
  7862. public BankPlantEight()
  7863. {
  7864. for(new i =0; i<MAX_PLAYERS;i++)
  7865. {
  7866. if(GetPVarInt(i, "BlowingBank") == 1)
  7867. {
  7868. SetPlayerPos(i,1547.264160, -1087.768432, 25.055089 );
  7869. SetPlayerFacingAngle(i,91.09);
  7870. TogglePlayerControllable(i, false);
  7871. SetCameraBehindPlayer(i);
  7872. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7873. SetTimer("BankPlantNine", 3000, 0);
  7874. return 1;
  7875. }
  7876. }
  7877. return 1;
  7878. }
  7879. public BankPlantNine()
  7880. {
  7881. for(new i =0; i<MAX_PLAYERS;i++)
  7882. {
  7883. if(GetPVarInt(i, "BlowingBank") == 1)
  7884. {
  7885. new current_zone = player_zone[i];
  7886. SetPlayerPos(i,1561.317382, -1060.291381, 23.742670);
  7887. SetPlayerFacingAngle(i,137.12);
  7888. TogglePlayerControllable(i, true);
  7889. SetCameraBehindPlayer(i);
  7890. //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  7891. SetTimer("BankBlowOne", 5000, 0);
  7892. new string[120];
  7893. format(string, 120, "[TERRORISM] Terrorist %s has blown up the bank in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7894. SendClientMessageToAll(COLOR_RED, string);
  7895. CNR_PrintString(string);
  7896. format(string, 120, "[DISPATCH] Terrorist %s has blown up the Bank in %s. Go arrest him.", PlayerInfo(i), zones[current_zone][zone_name]);
  7897. SendCopMessage(string);
  7898. IncreaseWantedLevel(i, 6);
  7899. IncreaseScore(i, 3);
  7900. SetPVarInt(i, "BlowingBank", 0);
  7901. GameTextForPlayer(i, "~B~ STAND BACK ~N~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
  7902. return 1;
  7903. }
  7904. }
  7905. return 1;
  7906. }
  7907. public BankBlowOne()
  7908. {
  7909. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  7910. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  7911. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  7912. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  7913. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  7914. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  7915. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  7916. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  7917. SetTimer("BankBlowTwo", 5000, 0);
  7918. return 1;
  7919. }
  7920. public BankBlowTwo()
  7921. {
  7922. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  7923. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  7924. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  7925. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  7926. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  7927. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  7928. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  7929. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  7930. SetTimer("BankBlowThree", 5000, 0);
  7931. return 1;
  7932. }
  7933. public BankBlowThree()
  7934. {
  7935. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  7936. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  7937. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  7938. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  7939. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  7940. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  7941. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  7942. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  7943. SetTimer("BankBlowFour", 5000, 0);
  7944. return 1;
  7945. }
  7946. public BankBlowFour()
  7947. {
  7948. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  7949. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  7950. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  7951. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  7952. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  7953. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  7954. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  7955. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  7956. SetTimer("BankBlowFive", 5000, 0);
  7957. return 1;
  7958. }
  7959. public BankBlowFive()
  7960. {
  7961. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  7962. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  7963. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  7964. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  7965. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  7966. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  7967. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  7968. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  7969. //SetTimer("BankBlowThree", 5000, 0);
  7970. return 1;
  7971. }
  7972.  
  7973. forward ShowPlayerSpeedo(playerid);
  7974. public ShowPlayerSpeedo(playerid) {
  7975. SpeedoBox[playerid] = TextDrawCreate(0,435,"_");
  7976. TextDrawUseBox(SpeedoBox[playerid],1);
  7977. TextDrawTextSize(SpeedoBox[playerid],640,480);
  7978. TextDrawBoxColor(SpeedoBox[playerid], COLOR_GREEN);
  7979. TextDrawSetShadow(SpeedoBox[playerid],0);
  7980.  
  7981. TextDrawShowForPlayer(playerid,SpeedoBox[playerid]);
  7982.  
  7983. SpeedTDraw[playerid] = TextDrawCreate(3,433,"~l~Speed:");
  7984. TextDrawSetShadow(SpeedTDraw[playerid],0);
  7985. TextDrawShowForPlayer(playerid, SpeedTDraw[playerid]);
  7986.  
  7987. vSpeed[playerid] = TextDrawCreate(63,433,"_");
  7988. TextDrawSetShadow(vSpeed[playerid],0);
  7989. TextDrawShowForPlayer(playerid,vSpeed[playerid]);
  7990.  
  7991. DamageTDraw[playerid] = TextDrawCreate(303,433,"~l~Health:");
  7992. TextDrawSetShadow(DamageTDraw[playerid],0);
  7993. TextDrawShowForPlayer(playerid,DamageTDraw[playerid]);
  7994.  
  7995. vDamage[playerid] = TextDrawCreate(363,433,"_");
  7996. TextDrawSetShadow(vDamage[playerid],0);
  7997. TextDrawShowForPlayer(playerid,vDamage[playerid]);
  7998. }
  7999.  
  8000. forward RemovePlayerSpeedo(i);
  8001. public RemovePlayerSpeedo(i) {
  8002. TextDrawHideForPlayer(i, SpeedoBox[i]);
  8003. TextDrawHideForPlayer(i, SpeedTDraw[i]);
  8004. TextDrawHideForPlayer(i, DamageTDraw[i]);
  8005. TextDrawHideForPlayer(i, FuelTDraw[i]);
  8006. TextDrawHideForPlayer(i, vSpeed[i]);
  8007. TextDrawHideForPlayer(i, vDamage[i]);
  8008. return 1;
  8009. }
  8010. forward PutPlayerInSF(playerid);
  8011. forward PutPlayerInLS(playerid);
  8012. forward PutPlayerInLV(playerid);
  8013.  
  8014. public PutPlayerInSF(playerid) {
  8015. SetPlayerPos(playerid,-1413.557250, -300.654418, 14.141115);
  8016. SetPlayerInterior(playerid, 0);
  8017. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to San Fierro!");
  8018. return 1;
  8019. }
  8020. public PutPlayerInLS(playerid) {
  8021. SetPlayerPos(playerid,1631.639526, -2242.050048, 13.506203);
  8022. SetPlayerInterior(playerid, 0);
  8023. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Los Santos!");
  8024. return 1;
  8025. }
  8026. public PutPlayerInLV(playerid) {
  8027. SetPlayerPos(playerid, 1685.137939, 1448.447631, 10.770167);
  8028. SetPlayerInterior(playerid, 0);
  8029. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Las Venturas!");
  8030. return 1;
  8031. }
  8032. // 1.1 Editions
  8033. // From the KCNR include that I have made.
  8034. stock PlayerHasCash(playerid, cash)
  8035. {
  8036. if(GetPlayerMoney(playerid >= cash)) return 1;
  8037. else return 0;
  8038. }
  8039.  
  8040. stock PlayerCash(playerid, cash)
  8041. {
  8042. GivePlayerMoney(playerid, GetPlayerMoney(playerid) + cash);
  8043. return 1;
  8044. }
  8045.  
  8046. // Returns 1 if they can rob, 0 if not
  8047. stock PlayerCanRob(playerid)
  8048. {
  8049. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  8050. {
  8051. return 0;
  8052. }
  8053. else if(gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal ||
  8054. gTeam[playerid] == Prvtmed)
  8055. {
  8056. return 1;
  8057. }
  8058. } // if (!PlayerCanRob(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob this place.");
  8059.  
  8060. stock IsCop(playerid)
  8061. {
  8062. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  8063. {
  8064. return 1;
  8065. }
  8066. else
  8067. {
  8068. return 0;
  8069. }
  8070. }
  8071.  
  8072. stock IsArmyVehicle(id) {
  8073. for (new i = 0; i < sizeof ArmyVehicle; i++) {
  8074. if (id == ArmyVehicle[i])
  8075. return true;
  8076. }
  8077. return false;
  8078. }
  8079.  
  8080. stock IsLSPDVehicle(id) {
  8081. for (new i = 0; i < sizeof LSPD; i++) {
  8082. if (id == LSPD[i])
  8083. return true;
  8084. }
  8085. return false;
  8086. }
  8087.  
  8088. stock PlayerInfo(playerid) {
  8089. new pname[30], string[40];
  8090. GetPlayerName(playerid, pname, 30);
  8091. format(string, sizeof string, "%s (%d)", pname, playerid);
  8092. return string;
  8093. }
Add Comment
Please, Sign In to add comment