Guest User

Untitled

a guest
Aug 4th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 385.50 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4. #include <dudb>
  5. #include <gvar>
  6. #include <time>
  7. #include <dprops>
  8.  
  9. #pragma unused strtok
  10.  
  11. #undef MAX_PLAYERS
  12. #define MAX_PLAYERS (50)
  13. #define VERSION "0.3x"
  14.  
  15. #define PRESSED(%0) \
  16. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  17.  
  18.  
  19.  
  20. new PLAYERLIST_authed[MAX_PLAYERS];
  21. //Debug Addtions
  22. //Colors
  23. #define COLOR_GREY 0xAFAFAFAA
  24. #define COLOR_GREEN 0x33AA33AA
  25. #define COLOR_RED 0xFF0000AA
  26. #define COLOR_YELLOW 0xFFFF00AA
  27. #define COLOR_WHITE 0xFFFFFFAA
  28. #define COLOR_VIOLETBLUE 0x8A2BE2AA
  29. #define COLOR_DEADCONNECT 0x808080AA
  30. #define COLOR_BLUE 0x0000FFAA
  31. #define COLOR_FORESTGREEN 0x228B22AA
  32. #define COLOR_DODGERBLUE 0x1E90FFAA
  33. #define COLOR_DARKOLIVEGREEN 0x556B2FAA
  34. #define COLOR_ORANGE 0xFFA500AA
  35. #define COLOR_PURPLE 0x800080AA
  36. #define COLOR_ROYALBLUE 0x4169FFAA
  37. #define COLOR_ERROR 0xD2691EAA
  38. #define COLOR_PINK 0xFF0080FF
  39. #define COLOR_SEXYGREEN 0x00FF00FF
  40. #define COLOR_LIGHTBLUE 0x33CCFFAA
  41. #define COLOR_LIME 0x10F441AA
  42. #define COLOR_CYAN 0x40FFFFFF
  43. #define COLOR_ORANGERED 0xFF4500AA
  44. #define COLOR_BLACK 0x000000
  45. #define COLOR_ADMIN 0x33CCFFAA // Same as the light blue
  46. #define COLOR_HOUSE 0x45FF00
  47.  
  48. //Teams
  49. #define Team_Cop 1
  50. #define Team_Medic 2
  51. #define Team_Army 3
  52. #define Team_FBI 4
  53. #define Team_Civi 5
  54. #define Team_Rape 6
  55. #define Team_Terror 7
  56. #define Team_Steal 8
  57. #define Team_PrvtMed 9
  58. #define TEAM_HITMAN 10
  59.  
  60. new gTeam[MAX_PLAYERS];
  61.  
  62. //Forwards
  63. forward SetPlayerTeamFromClass(playerid, classid);
  64. forward SetPlayerToTeamColor(playerid);
  65. forward IncreaseWantedLevel(playerid, value);
  66. forward WantedLevelColor(playerid);
  67. forward SendAdminMessage(msg[]);
  68. forward SendCopMessage(msg[]);
  69. forward SendMedicMessage(msg[]);
  70. forward getCheckpointType(playerID);
  71. forward checkpointUpdate(playerid);
  72. forward isPlayerInArea(playerID, Float:data[4]);
  73. forward RemoveVariables(playerid);
  74. forward RapeAgain(playerid);
  75. forward STDTimer(playerid);
  76. forward IncreaseScore(playerid, value);
  77. forward DecreaseScore(playerid, value);
  78. forward WorldTime();
  79. forward Float:GetDistanceBetweenPlayers(p1,p2);
  80. forward ResetFondle(playerid);
  81. forward SixNineStoreRobAgain(playerid);
  82. forward SupaSaveMainRobAgain(playerid);
  83. forward BARMAINRobAgain(playerid);
  84. forward ResetGVars();
  85. forward Server();
  86. forward BanWeapon(playerid);
  87. forward SaveStats();
  88. forward ServerMessages();
  89. forward IsABike(carid);
  90. forward Weather(); // Weather :))))))
  91. forward SendEliteMessage(msg[]);
  92. forward GivePlayerTeamWeapons(playerid);
  93. forward Taxes();
  94. forward SetPlayerTeamFromNoTeam(playerid);
  95. forward CarBombs();
  96. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  97.  
  98. forward FlasherFunc();
  99.  
  100. new obj[MAX_VEHICLES] = { INVALID_OBJECT_ID, ... };
  101. new obj2[MAX_VEHICLES] = { INVALID_OBJECT_ID, ... };
  102. new LightPwr[MAX_VEHICLES];
  103. new Flasher[MAX_VEHICLES] = 0;
  104. new FlasherState[MAX_VEHICLES];
  105. new FlashTimer;
  106.  
  107. new ArmyVehicle[9];
  108.  
  109. new LSPD[21];
  110.  
  111. new AdminCar1;
  112. new AdminCar2;
  113. new House4Car1;
  114. new House4Car2;
  115. new House6Car1;
  116. new House7Car1;
  117.  
  118. new InAdminMode[MAX_PLAYERS];
  119. new HitMoney[MAX_PLAYERS];
  120. new HasHit[MAX_PLAYERS];
  121. new PlacedHitRecently[MAX_PLAYERS];
  122. new IsKidnapped[MAX_PLAYERS];
  123. new IsFrozen[MAX_PLAYERS];
  124. new AttemptedToRobRecently[MAX_PLAYERS];
  125. new HasRobbedRecently[MAX_PLAYERS];
  126. new IsSpawned[MAX_PLAYERS];
  127. new HasSecureWallet[MAX_PLAYERS];
  128. new HasBeer[MAX_PLAYERS];
  129. new RobbingSupaSave[MAX_PLAYERS];
  130. new RobbingBARMAIN[MAX_PLAYERS];
  131. /* Speedo */
  132.  
  133. new Text:FuelTDraw[MAX_PLAYERS];
  134. new Text:SpeedTDraw[MAX_PLAYERS];
  135. new Text:DamageTDraw[MAX_PLAYERS];
  136. new Text:SpeedoBox[MAX_PLAYERS];
  137. new Text:vSpeed[MAX_PLAYERS];
  138. new Text:vDamage[MAX_PLAYERS];
  139.  
  140.  
  141. //Dialogs
  142. #define DIALOG_REGISTER 1
  143. #define DIALOG_LOGIN 2
  144. #define DIALOG_SKILL 3
  145. #define DIALOG_STOREONE 4
  146. #define DIALOG_PACK 5
  147. #define DIALOG_TAKEOUT 6
  148. #define DIALOG_PUTIN 7
  149. #define DIALOG_BOMB 8
  150. #define DIALOG_ADMINCMDS 9
  151. #define DIALOG_SEXSHOP 10
  152. #define DIALOG_GASONE 11
  153. #define DIALOG_BUY 12
  154. #define DIALOG_HOSPITAL 13
  155. #define DIALOG_STOREROB 14
  156. #define DIALOG_DRUG 15
  157. #define DIALOG_PORT 16
  158. #define DIALOG_SupaSaveMain 17
  159. #define DIALOG_RULES 18
  160. #define DIALOG_RULES2 19
  161. #define DIALOG_BARMAIN 20
  162.  
  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 60
  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. #define CP_DrugP1 52
  296. #define CP_SupaSaveEnt 53
  297. #define CP_SupaSaveExit 54
  298. #define CP_SupaSaveMain 55
  299. #define CP_BARMAIN 56
  300. #define CP_DNTEnter 57
  301. #define CP_DNTExit 58
  302. #define CP_SupaSaveRob 59
  303.  
  304. new playerCheckpoint[MAX_PLAYERS];
  305. new Float:checkpoints[MAX_POINTS][4] = {
  306. {-28.100069,-89.627357,1003.5469,1.0}, //69 Cent STore
  307. {246.375991,109.245994,1003.218750, 3.0}, //SFPD Exit
  308. {1484.7555,-1771.3855,18.7958, 3.0}, //CP_PrisonEnter
  309. {1510.011352, -1060.139526, 25.062500, 3.0}, //CP bank Enter
  310. {2304.7012,-16.0591,26.7422, 3.0}, //CP BankExit
  311. {2311.645019, -4.784075, 26.742187, 3.0}, // Inside Bank
  312. {2174.755615, -2249.109130, 13.303812, 3.0}, //Explosives
  313. {977.451416, -769.852722, 112.202629, 3.0}, // Admin House Enter
  314. {2317.830322, -1026.757690, 1050.217773, 3.0}, //Admin House Exit
  315. {1940.014160, -2116.011474, 13.695312, 3.0}, //Sex Shop Enter
  316. {-100.511611, -23.429288, 1000.718750, 3.0}, // Sex Shop Exit
  317. {-105.566085, -10.617439, 1000.718750, 1.0}, // Sex Shop Counter
  318. {1928.582031, -1776.320434, 13.546875, 2.0}, // Gas Station Enter
  319. {-10.311285, -178.242904, 1003.546875, 1.0}, // Gas station checkpoint
  320. {-26.028060, -187.120574, 1003.546875, 1.0}, // Store one exit
  321. {476.096069, -15.185485, 1003.695312, 1.0}, // dance Rob
  322. {293.810852, -34.787994, 1001.515625, 2.0}, // Ammunation (Center LS) Robbery Spot
  323. {377.797363, -67.435653, 1001.507812, 1.0}, // Burger Shot Robbery Spot
  324. {1176.014282, -1323.302246, 14.000391, 3.0}, // Hospital
  325. {-201.742660, -23.566627, 1002.273437, 1.0}, // Tatoo Shop
  326. {2486.337646, -1644.873291, 14.077178, 3.0}, // House 1
  327. {235.373641, 1186.680053, 1080.257812, 3.0}, // House 1 Exit
  328. {1980.387695, -1719.006713, 17.030405, 3.0}, // House2Enter
  329. {228.089996, 1114.303955, 1080.992187, 3.0}, // House2 Exit
  330. {280.929382, -1767.145751, 4.546875, 3.0}, // House3enter
  331. {223.038757, 1288.227294, 1082.140625, 3.0}, // House3Exit
  332. {189.641677, -1308.114135, 70.249511, 3.0}, // House4Enter
  333. {24.116802, 1340.033691, 1084.375000, 3.0}, // House4Exit
  334. {352.405242, -1197.921020, 76.515625, 3.0}, // House5Enter
  335. {22.747611, 1404.215698, 1084.429687, 3.0}, // House5Exit inside
  336. {989.783447, -828.658874, 95.468574, 3.0}, // House 6 enter
  337. {447.005004, 1397.073608, 1084.304687, 3.0}, // House Exit to outside
  338. {1094.829467, -647.912902, 113.648437, 3.0}, // House 7 enter
  339. {234.166671, 1065.024414, 1084.210327, 3.0}, // House 7 Exit
  340. {2090.942626, -1277.854370, 26.179687, 3.0}, // House 8 enter loc
  341. {2259.523193, -1135.836303, 1050.632812, 3.0},// House 8 Exit Cp (THIS ONE)
  342. {2111.024902, -1244.397460, 25.851562, 3.0}, // House9Enter
  343. {2467.589111, -1698.400024, 1013.507812, 3.0}, // House 9 Exit CP
  344. {1214.997924, -13.298475, 1000.921875, 1.0}, // Pig Pen Robbery Spot
  345. {2034.464721, -1406.565551, 17.205287, 3.0}, // hospital
  346. {1440.501220, -2287.199462, 13.546875, 3.0},// Airpot blow cp
  347. {363.255249, -2009.069458, 7.835937, 3.0}, // park cp for blow
  348. {-31.306764, -28.996454, 1003.557250, 1.0}, // Gas Station Rob
  349. {1401.436889, -767.322265, 95.011589, 3.0}, // Vinewood sign blow cp
  350. {1526.515136, -1071.242065, 25.062500, 3.0}, // Blow bank CP
  351. {2147.707763, -1367.095458, 25.641782, 2.0}, // Drug house cp
  352. {203.934204, -40.282241, 1001.804687, 1.0}, // SubUrban robbery checkpoint
  353. {207.757797, -98.696815, 1005.257812, 1.0}, // Binco rob
  354. {376.704528, -118.806343, 1001.499511, 1.0}, // Pizza place robbery
  355. {1642.319335, -2237.777832, 13.498379, 3.0}, // Airport
  356. {-1422.704101, -286.657531, 14.148437, 3.0}, // SF Airport cp
  357. {1674.765625, 1447.695068, 10.789379, 3.0}, // LV Airport
  358. {-2779.9194,0.3026,10.0625,3.0}, //DrugHouseOceanFlats
  359. {-2442.7930,754.4579,35.1719,2.0}, //SupaSaveEnt
  360. {6.2157,-30.8714,1003.5494,1.0},//SupaSaveExit
  361. {1.6692,-28.4267,1003.5494,1.0}, //SupaSaveMain
  362. {500.6395,-75.6048,998.7578,1.0}, //BARMAIN
  363. {1038.3394,-1340.4349,13.7415,1.0}, //CP_DNTEnter
  364. {1033.7906,-1338.2256,13.7266,1.0},//CP_DNTEXIT
  365. {-7.0689,-30.8151,1003.5494,1.0}//SupaSaveRob
  366. };
  367.  
  368. new Float:checkCoords[MAX_POINTS][4] = {
  369. {-32.100069,-94.627357,-24.100069,-85.626357}, //69 Cent Store
  370. {242.375991, 103.245994, 250.375991, 113.245994},//SFPD Exit
  371. {1480.7555,-1777.3855 , 1485.7555, -1766.3855}, //CP_PrisonEnter
  372. {1506.011352, -1064.139526, 1514.011352, -1056.139526}, // bank
  373. {2300.7012, -24.0591, 2308.7012, -12.0591}, //CP BANK EXIT
  374. {2307.645019, -8.784074, 2315.645019, -0.784075}, // Inside Bank
  375. {2170.755615, -2253.109130, 2178.755615, -2245.109130}, //Explosives
  376. {973.451416, -773.852722, 981.451416, -765.852722}, // Admin House
  377. {2313.830322, -1030.757690, 2321.830322, -1022.757690}, //Admin House Exit
  378. {1926.014160, -2126.011474, 1950.014160, -2106.011474}, //Sex Shop enter
  379. {-114.511611, -33.429290, -90.511611, -13.429288}, // Sex Shop Exit
  380. {-119.566085, -20.617439, -95.566085, -0.617439}, // Sex Shop Counter
  381. {1914.582031, -1786.320434, 1938.582031, -1766.320434}, // Gas Station Enter
  382. {-24.311285, -188.242904, -0.311285, -168.242904}, // Gas station checkpoint
  383. {-40.028060, -197.120574, -16.028060, -177.120574}, // Store one exit
  384. {462.096069, -25.185485, 486.096069, -5.185485}, // dance Rob
  385. {279.810852, -44.787994, 303.810852, -24.787994}, // Ammunation (Center LS) Robbery Spot
  386. {363.797363, -77.435653, 387.797363, -57.435653}, // Burger Shot Robbery Spot
  387. {1166.014282, -1333.302246, 1186.014282, -1313.302246}, // Hospital
  388. {-211.742660, -33.566627, -191.742660, -13.566627}, // Tatoo Shop
  389. {2476.337646, -1654.873291, 2496.337646, -1634.873291}, // House 1
  390. {225.373641, 1176.680053, 245.373641, 1196.680053}, // House 1 Exit
  391. {1970.387695, -1729.006713, 1990.387695, -1709.006713}, // House2Enter
  392. {218.089996, 1104.303955, 238.089996, 1124.303955}, // House2 Exit
  393. {270.929382, -1777.145751, 290.929382, -1757.145751}, // House3enter
  394. {213.038757, 1278.227294, 233.038757, 1298.227294}, // House3Exit
  395. {179.641677, -1318.114135, 199.641677, -1298.114135}, // House4Enter
  396. {14.116802, 1330.033691, 34.116802, 1350.033691}, // House4Exit
  397. {342.405242, -1207.921020, 362.405242, -1187.921020}, // House5Enter
  398. {12.747611, 1394.215698, 32.747611, 1414.215698}, // House5Exit inside
  399. {979.783447, -838.658874, 999.783447, -818.658874}, // House 6 enter
  400. {437.005004, 1387.073608, 457.005004, 1407.073608}, // House Exit to outside
  401. {1084.829467, -657.912902, 1104.829467, -637.912902}, // House 7 enter
  402. {224.166671, 1055.024414, 244.166671, 1075.024414}, // House 7 Exit
  403. {2080.942626, -1287.854370, 2100.942626, -1267.854370}, // House 8 enter loc
  404. {2249.523193, -1145.836303, 2269.523193, -1125.836303}, // House 8 Exit Cp (THIS ONE)
  405. {2101.024902, -1254.397460, 2121.024902, -1234.397460}, // House9Enter
  406. {2457.589111, -1708.400024, 2477.589111, -1688.400024}, // House 9 Exit CP
  407. {1204.997924, -23.298475, 1224.997924, -3.298475}, // Pig Pen Robbery Spot
  408. {2024.464721, -1416.565551, 2044.464721, -1396.565551},// hospital
  409. {1430.501220, -2297.199462, 1450.501220, -2277.199462}, // Airpot blow cp
  410. {353.255249, -2019.069458, 373.255249, -1999.069458}, // park cp for blow
  411. {-41.306762, -38.996452, -21.306764, -18.996454}, // Gas Station Rob
  412. {1391.436889, -777.322265, 1411.436889, -757.322265}, // Vinewood sign blow cp
  413. {1516.515136, -1081.242065, 1536.515136, -1061.242065}, // Blow bank CP
  414. {2137.707763, -1377.095458, 2157.707763, -1357.095458}, // Drug house cp
  415. {193.934204, -50.282241, 213.934204, -30.282241}, // SubUrban robbery checkpoint
  416. {197.757797, -108.696815, 217.757797, -88.696815}, // Binco rob
  417. {366.704528, -128.806335, 386.704528, -108.806343}, // Pizza place robbery
  418. {1592.319335, -2287.777832, 1692.319335, -2187.777832}, // Airport
  419. {-1472.704101, -336.657531, -1372.704101, -236.657531}, // SF Airport cp
  420. {1624.765625, 1397.695068, 1724.765625, 1497.695068}, // LV Airport
  421. {-2800.3831,-17.7937,-2757.5454,36.4089}, //DrugHouseOceanFlats
  422. {-2486.7969,720.7235,-2399.2456,757.8288}, //SupaSaveEnt
  423. {4.5919,-30.8944,9.4711,-24.1830}, //SupaSaveExit
  424. {-8.3713,-31.1897,3.9439,-23.9503}, //SupaSaveMain
  425. {500.6395,-75.6048,998.7578,176.5533},//BARMAIN
  426. {1038.3394,-1340.4349,13.7415,178.1342},//dntenter
  427. {1033.7906,-1338.2256,13.7266,17.0794,},//dntexit
  428. {-7.0689,-30.8151,1003.5494,177.3483}//SupaSaveRob
  429. };
  430.  
  431. new checkpointType[MAX_POINTS] = {
  432. CP_StoreOne, //69 Cent Store
  433. CP_PrisonExit,
  434. CP_PrisonEnter,
  435. CP_BankEnter,
  436. CP_BankExit,
  437. CP_Bank,
  438. CP_BuyExp,
  439. CP_AdminHouse,
  440. CP_AdminHouseExit,
  441. CP_SexShopEnter,
  442. CP_SexShopExit,
  443. CP_SexShopCounter,
  444. CP_GasOneEnter,
  445. CP_GasOneCounter,
  446. CP_GasOneExit,
  447. CP_DanceCounter,
  448. CP_AmmoRob,
  449. CP_BurgerShotRob,
  450. CP_Hospital,
  451. CP_Tatoo,
  452. CP_HouseOneEnter,
  453. CP_HouseOneExit,
  454. CP_HouseTwoEnter,
  455. CP_HouseTwoExit,
  456. CP_HouseThreeEnter,
  457. CP_HouseThreeExit,
  458. CP_HouseFourEnter,
  459. CP_HouseFourExit,
  460. CP_HouseFiveEnter,
  461. CP_HouseFiveExit,
  462. CP_HouseSixEnter,
  463. CP_HouseSixExit,
  464. CP_HouseSevenEnter,
  465. CP_HouseSevenExit,
  466. CP_HouseEightEnter,
  467. CP_HouseEightExit,
  468. CP_HouseNineEnter,
  469. CP_HouseNineExit,
  470. CP_PigPenRob,
  471. CP_LSHospital,
  472. CP_LSAirportBlow,
  473. CP_ParkBlow,
  474. CP_RobStore1,
  475. CP_VinewoodBlow,
  476. CP_BankBlow,
  477. CP_DrugHouse,
  478. CP_Suburban,
  479. CP_Binco,
  480. CP_WellStacked,
  481. CP_Airport,
  482. CP_SFAirport,
  483. CP_LVAirport,
  484. CP_DrugP1,
  485. CP_SupaSaveEnt,
  486. CP_SupaSaveExit,
  487. CP_SupaSaveMain,
  488. CP_BARMAIN,
  489. CP_DNTEnter,
  490. CP_DNTExit,
  491. CP_SupaSaveRob
  492. };
  493.  
  494. //Home Owners
  495. #define HOUSE_ONE_OWNER ""
  496. #define House_Two_Owner ""
  497. #define House_Three_Owner ""
  498. #define House_Four_Owner ""
  499. #define House_Five_Owner ""
  500. #define House_Six_Owner ""
  501. #define House_Seven_Owner ""
  502. #define House_Eight_Owner ""
  503. #define House_Nine_Owner ""
  504. //House Names
  505. #define House_One_Name "This house is for sale. Contact a Server Admin if you wish to buy it"
  506. #define House_Two_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  507. #define House_Three_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  508. #define House_Four_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  509. #define House_Five_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  510. #define House_Six_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  511. #define House_Seven_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  512. #define House_Eight_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  513. #define House_Nine_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
  514.  
  515. //Biz owners
  516. #define Drug_House_Owner ""
  517.  
  518. //Spike Strips
  519.  
  520. #define MAX_SPIKES 20
  521. enum SpikeInfo
  522. {
  523. SpikeCreated,
  524. Float:SX,
  525. Float:SY,
  526. Float:SZ,
  527. sObject
  528. };
  529.  
  530. new SInfo[MAX_SPIKES][SpikeInfo];
  531.  
  532. enum Vinfo
  533. {
  534. bought,
  535. bomb
  536. }
  537.  
  538.  
  539. new VehicleInfo[MAX_VEHICLES][Vinfo];
  540. new aWeaponNames[][32] = {
  541. {"Unarmed (Fist)"}, // 0
  542. {"Brass Knuckles"}, // 1
  543. {"Golf Club"}, // 2
  544. {"Night Stick"}, // 3
  545. {"Knife"}, // 4
  546. {"Baseball Bat"}, // 5
  547. {"Shovel"}, // 6
  548. {"Pool Cue"}, // 7
  549. {"Katana"}, // 8
  550. {"Chainsaw"}, // 9
  551. {"Purple Dildo"}, // 10
  552. {"Big White Vibrator"}, // 11
  553. {"Medium White Vibrator"}, // 12
  554. {"Small White Vibrator"}, // 13
  555. {"Flowers"}, // 14
  556. {"Cane"}, // 15
  557. {"Grenade"}, // 16
  558. {"Teargas"}, // 17
  559. {"Molotov"}, // 18
  560. {" "}, // 19
  561. {" "}, // 20
  562. {" "}, // 21
  563. {"Colt 45"}, // 22
  564. {"Colt 45 (Silenced)"}, // 23
  565. {"Desert Eagle"}, // 24
  566. {"Normal Shotgun"}, // 25
  567. {"Sawnoff Shotgun"}, // 26
  568. {"Combat Shotgun"}, // 27
  569. {"Micro Uzi (Mac 10)"}, // 28
  570. {"MP5"}, // 29
  571. {"AK47"}, // 30
  572. {"M4"}, // 31
  573. {"Tec9"}, // 32
  574. {"Country Rifle"}, // 33
  575. {"Sniper Rifle"}, // 34
  576. {"Rocket Launcher"}, // 35
  577. {"Heat-Seeking Rocket Launcher"}, // 36
  578. {"Flamethrower"}, // 37
  579. {"Minigun"}, // 38
  580. {"Satchel Charge"}, // 39
  581. {"Detonator"}, // 40
  582. {"Spray Can"}, // 41
  583. {"Fire Extinguisher"}, // 42
  584. {"Camera"}, // 43
  585. {"Night Vision Goggles"}, // 44
  586. {"Infrared Vision Goggles"}, // 45
  587. {"Parachute"}, // 46
  588. {"Fake Pistol"}, // 47
  589. {"Unknown"}, //48
  590. {"Vehicle"}, //49
  591. {"Helicopter Blades"}, //50
  592. {"Explosion"}, //51
  593. {"Unknown"}, //52
  594. {"Drowned"}, //53
  595. {"Explosion"} //54
  596. };
  597. // ZONES
  598. enum zoneinfo {
  599. zone_name[27],
  600. Float:zone_minx,
  601. Float:zone_miny,
  602. Float:zone_minz,
  603. Float:zone_maxx,
  604. Float:zone_maxy,
  605. Float:zone_maxz
  606. }
  607. // Makabos zones script // ALWAYS ADD NEW ZONES TO THE END (YOULL MESS UP ALL ROBBERIES)
  608. new Float:zones[][zoneinfo] = {
  609. { "Store (Int)", -11.0048, -31.3442, 1003.5494, 8.3204, -2.7050, 50.00},
  610. { "Army Base", -1546.4114, 260.0058, 7.1797, -1222.0865, 521.8784, 50.00},
  611. { "Prison (Int)", 214.0158, 107.4454, 999.0156, 278.4889, 127.9651, 50.00},
  612. { "Police Department (Int)", 217.2494, 62.7068, 1001.0391, 270.0461, 92.4821, 50.00},
  613. { "Police Department", -1336.4915, 705.7386, 6.6299, -1182.2593, 823.7599, 200.00},
  614. { "Police Department (Int)", 188.1787, 138.6903, 1003.0234, 301.7826, 197.7743, 50.00},
  615. { "The Big Ear", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
  616. { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
  617. { "Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
  618. { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
  619. { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
  620. { "Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
  621. { "Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
  622. { "Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
  623. { "Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
  624. { "Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
  625. { "Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
  626. { "Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
  627. { "Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
  628. { "Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
  629. { "Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
  630. { "Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
  631. { "Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
  632. { "Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
  633. { "Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
  634. { "Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
  635. { "Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
  636. { "Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
  637. { "Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
  638. { "Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
  639. { "Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
  640. { "Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
  641. { "Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
  642. { "Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
  643. { "Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
  644. { "Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
  645. { "Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
  646. { "Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
  647. { "Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
  648. { "Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
  649. { "Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
  650. { "Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
  651. { "Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
  652. { "Class Selection", 942.5793, 0.2095, 1000.9295, 947.4127, 4.8616, 1000.9299},
  653. { "Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
  654. { "Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
  655. { "Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
  656. { "Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
  657. { "Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
  658. { "Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
  659. { "Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
  660. { "Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
  661. { "Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
  662. { "Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
  663. { "Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
  664. { "Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
  665. { "Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
  666. { "Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
  667. { "Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
  668. { "Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
  669. { "Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
  670. { "Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
  671. { "Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
  672. { "East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
  673. { "East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
  674. { "East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
  675. { "East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
  676. { "East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
  677. { "East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
  678. { "East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
  679. { "East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
  680. { "East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
  681. { "East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
  682. { "East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
  683. { "Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
  684. { "Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
  685. { "Easter Bay Airport", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
  686. { "Easter Bay Airport", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
  687. { "Easter Bay Airport", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
  688. { "Easter Bay Airport", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
  689. { "Easter Bay Airport", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
  690. { "Easter Bay Airport", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
  691. { "Easter Bay Airport", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
  692. { "Easter Bay Airport", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
  693. { "Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
  694. { "Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
  695. { "El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
  696. { "El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
  697. { "El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
  698. { "El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
  699. { "El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
  700. { "El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
  701. { "Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
  702. { "Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
  703. { "Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
  704. { "Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
  705. { "Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
  706. { "Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
  707. { "Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
  708. { "Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
  709. { "Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
  710. { "Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
  711. { "Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
  712. { "Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
  713. { "Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
  714. { "Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
  715. { "Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
  716. { "Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
  717. { "Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
  718. { "Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
  719. { "Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
  720. { "Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
  721. { "Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
  722. { "Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
  723. { "Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
  724. { "Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
  725. { "Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
  726. { "Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
  727. { "Garver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
  728. { "Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
  729. { "Glen Park", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
  730. { "Glen Park", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
  731. { "Glen Park", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
  732. { "Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
  733. { "Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
  734. { "Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
  735. { "Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
  736. { "Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
  737. { "Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
  738. { "Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
  739. { "Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
  740. { "Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
  741. { "Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
  742. { "Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
  743. { "Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
  744. { "Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
  745. { "Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
  746. { "Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
  747. { "Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
  748. { "Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
  749. { "Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
  750. { "Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
  751. { "Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
  752. { "Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
  753. { "Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
  754. { "Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
  755. { "Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
  756. { "Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
  757. { "Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
  758. { "Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
  759. { "Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
  760. { "Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
  761. { "Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
  762. { "Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
  763. { "Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
  764. { "Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
  765. { "Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
  766. { "Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
  767. { "Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
  768. { "Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
  769. { "Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
  770. { "Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
  771. { "K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
  772. { "Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
  773. { "Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
  774. { "Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
  775. { "King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
  776. { "King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
  777. { "King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
  778. { "LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
  779. { "LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
  780. { "LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
  781. { "LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
  782. { "LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
  783. { "Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
  784. { "Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
  785. { "Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
  786. { "Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
  787. { "Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
  788. { "Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
  789. { "Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
  790. { "Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
  791. { "Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
  792. { "Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
  793. { "Las Venturas Airport", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
  794. { "Las Venturas Airport", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
  795. { "Las Venturas Airport", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
  796. { "Las Venturas Airport", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
  797. { "Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
  798. { "Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
  799. { "Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
  800. { "Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
  801. { "Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
  802. { "Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
  803. { "Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
  804. { "Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
  805. { "Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
  806. { "Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
  807. { "Los Santos International", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
  808. { "Los Santos International", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
  809. { "Los Santos International", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
  810. { "Los Santos International", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
  811. { "Los Santos International", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
  812. { "Los Santos International", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
  813. { "Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
  814. { "Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
  815. { "Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
  816. { "Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
  817. { "Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
  818. { "Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
  819. { "Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
  820. { "Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
  821. { "Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
  822. { "Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
  823. { "Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
  824. { "Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
  825. { "Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
  826. { "Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
  827. { "Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
  828. { "Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
  829. { "Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
  830. { "Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
  831. { "Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
  832. { "Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
  833. { "Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
  834. { "Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
  835. { "Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
  836. { "Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
  837. { "Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
  838. { "Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
  839. { "Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
  840. { "Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
  841. { "North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
  842. { "Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
  843. { "Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
  844. { "Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
  845. { "Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
  846. { "Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
  847. { "Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
  848. { "Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
  849. { "Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
  850. { "Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
  851. { "Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
  852. { "Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
  853. { "Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
  854. { "Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
  855. { "Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
  856. { "Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
  857. { "Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
  858. { "Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
  859. { "Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
  860. { "Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
  861. { "Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
  862. { "Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
  863. { "Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
  864. { "Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
  865. { "Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
  866. { "Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
  867. { "Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
  868. { "Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
  869. { "Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
  870. { "Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
  871. { "Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
  872. { "Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
  873. { "Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
  874. { "Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
  875. { "Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
  876. { "Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
  877. { "Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
  878. { "Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
  879. { "Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
  880. { "Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
  881. { "Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
  882. { "Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
  883. { "Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
  884. { "Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
  885. { "Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
  886. { "Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
  887. { "Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
  888. { "Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
  889. { "Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
  890. { "Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
  891. { "Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
  892. { "Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
  893. { "Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
  894. { "Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
  895. { "Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
  896. { "Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
  897. { "Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
  898. { "Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
  899. { "Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
  900. { "Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
  901. { "Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
  902. { "Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
  903. { "Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
  904. { "Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
  905. { "Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
  906. { "San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
  907. { "Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
  908. { "Santa Maria Beach", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
  909. { "Santa Maria Beach", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
  910. { "Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
  911. { "Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
  912. { "Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
  913. { "Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
  914. { "Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
  915. { "Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
  916. { "Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
  917. { "Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
  918. { "Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
  919. { "Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
  920. { "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
  921. { "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
  922. { "The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
  923. { "The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
  924. { "The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
  925. { "The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
  926. { "The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
  927. { "Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
  928. { "Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
  929. { "Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
  930. { "Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
  931. { "Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
  932. { "Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
  933. { "Verona Beach", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
  934. { "Verona Beach", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
  935. { "Verona Beach", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
  936. { "Verona Beach", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
  937. { "Verona Beach", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
  938. { "Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
  939. { "Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
  940. { "Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
  941. { "Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
  942. { "Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
  943. { "Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
  944. { "Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
  945. { "Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
  946. { "Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
  947. { "Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
  948. { "Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
  949. { "Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
  950. { "Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
  951. { "Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
  952. { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
  953. { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
  954. { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
  955. { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
  956. { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
  957. { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
  958. };
  959.  
  960. #define MAX_PLAYERS_ 32
  961. new zoneupdates[MAX_PLAYERS_];
  962. new player_zone[MAX_PLAYERS_];
  963. new zoneupdate;
  964.  
  965.  
  966. forward update_zones();
  967. public update_zones()
  968. {
  969. new line1[10];
  970. new line2[10];
  971.  
  972. for(new i=0; i<MAX_PLAYERS_; i++)
  973. {
  974. if(IsPlayerConnected(i) && zoneupdates[i] == 1)
  975. {
  976. if(IsPlayerInZone(i,player_zone[i]))
  977. {
  978. }
  979. else {
  980. new player_zone_before;
  981. player_zone_before = player_zone[i];
  982. player_zone[i] = -1;
  983. for(new j=0; j<sizeof(zones);j++)
  984. {
  985. if(IsPlayerInZone(i,j) && player_zone[i] == -1)
  986. {
  987.  
  988. if(player_zone_before == -1)
  989. {
  990. new string[128];
  991. format(string,sizeof(string),"%s",zones[j][zone_name]);
  992. GameTextForPlayer(i, string, 2000, 1);
  993. }
  994. else
  995. {
  996. if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0)
  997. {
  998. new string[128];
  999. format(string,sizeof(string),"%s",zones[j][zone_name]);
  1000. GameTextForPlayer(i, string, 2000, 1);
  1001. }
  1002. }
  1003. player_zone[i] = j;
  1004. format(line1,10,"p%dzone",i);
  1005. format(line2,10,"%d",j);
  1006. PropertySet(line1,line2);
  1007. }
  1008. }
  1009. if(player_zone[i] == -1) player_zone[i] = player_zone_before;
  1010. }
  1011. }
  1012. }
  1013. }
  1014.  
  1015. IsPlayerInZone(playerid, zoneid)
  1016. {
  1017. if(zoneid == -1) return 0;
  1018. new Float:x, Float:y, Float:z;
  1019. GetPlayerPos(playerid,x,y,z);
  1020. if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx]
  1021. && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy]
  1022. && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz]
  1023. && z < 1200.0000) return 1;
  1024. return 0;
  1025. }
  1026.  
  1027.  
  1028. main()
  1029. {
  1030. print("\n ---------------------");
  1031. printf("Cops n Robbers %s by Pr_Kill3rz", VERSION);
  1032. print("------------------------\n");
  1033. }
  1034.  
  1035.  
  1036. public OnGameModeInit()
  1037. {
  1038. //House names
  1039. //AllowAdminTeleport(1); // Allows Rc0n admin waypoint teleport
  1040. SetWeather(10); //Sets the weather to 10 (Shiny, plan to make it different through the game month
  1041. //ManualVehicleEngineAndLights(); // Manual engines
  1042. SetWorldTime(12);
  1043. //Timers
  1044. //SetTimer("CarBombs", 1000, 1);
  1045. SetTimer("checkpointUpdate", 1100, 1); //Checkpoint system
  1046. //SetTimer("STDTimer", 1000*30, 1); //Checks for STD, used only once
  1047. SetTimer("WorldTime",60000,1); //World Time
  1048. SetTimer("Server", 1000, 1); //Server/Player Variables
  1049. SetTimer("SaveStats", 100, 1); //Saves the stats every 2 minutes (PVars can't do that on OnPlayerDisconnect)
  1050. //SetTimer("ServerMessages", 1000*60*5, 1); //Server Messages
  1051. //SetTimer("Weather", 1000*60*24, 1); //Weather - comment to take it out
  1052. SetTimer("Taxes", 1000*60*24, 1); //Does taxes: pay cops, give biz owners money, etc.............
  1053. if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
  1054.  
  1055. SetGameModeText("Cops n Robbers "); //Game Mode Text
  1056.  
  1057. for (new x=0; x<MAX_VEHICLES; x++)
  1058. {
  1059. LightPwr[x]=1;
  1060. Flasher[x]=0;
  1061. FlasherState[x]=0;
  1062. }
  1063.  
  1064. FlashTimer = SetTimer("FlasherFunc",200,1); // "200" is the speed from the flashing headlights
  1065. CreateObject(2004, 0.19922, -31.69922, 1003.20001, 0, 0, 175.995);
  1066. //Cops/Army
  1067. AddPlayerClass(265,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1068. AddPlayerClass(266,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1069. AddPlayerClass(281,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1070. AddPlayerClass(285,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1071. AddPlayerClass(288,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1072. AddPlayerClass(280,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1073. //Army
  1074. AddPlayerClass(287,1767.4132,-2435.5422,13.5547,178.6999,0,0,0,0,0,0); //
  1075. //FBI
  1076. AddPlayerClass(286,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
  1077. //Civi
  1078. AddPlayerClass(1,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1079. AddPlayerClass(2,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1080. AddPlayerClass(7,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1081. AddPlayerClass(9,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1082. AddPlayerClass(11,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1083. AddPlayerClass(13,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1084. AddPlayerClass(16,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1085. AddPlayerClass(23,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1086. AddPlayerClass(24,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1087. AddPlayerClass(26,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1088. AddPlayerClass(29,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1089. AddPlayerClass(47,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1090. AddPlayerClass(66,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1091. AddPlayerClass(103,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1092. AddPlayerClass(105,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1093. AddPlayerClass(107,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1094. AddPlayerClass(123,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1095. AddPlayerClass(174,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1096. AddPlayerClass(217,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1097. AddPlayerClass(270,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1098. AddPlayerClass(299,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1099. AddPlayerClass(298,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
  1100.  
  1101. //bike job
  1102. AddStaticVehicle(448,2110.0356,-1825.7537,13.2089,90.0273,36,1); // rbike
  1103. AddStaticVehicle(448,2125.4346,-1819.8640,13.2035,184.3572,36,1); // rbike
  1104. AddStaticVehicle(448,2125.0754,-1807.4474,13.2148,181.1935,36,1); // rbike
  1105. AddStaticVehicle(448,2125.5388,-1795.0427,13.2078,176.1936,36,1); // rbike
  1106. AddStaticVehicle(448,2132.7517,-1794.4075,13.1920,253.3942,36,1); // rbike
  1107. AddStaticVehicle(448,2132.5476,-1804.2004,13.1984,225.3898,36,1); // rbike
  1108.  
  1109. //cars on gas in grove and willow
  1110. AddStaticVehicle(500,1917.5305,-1795.5890,13.4949,274.7515,1,3); // geepppp car
  1111. AddStaticVehicle(509,1953.4379,-1828.6095,13.0518,184.3544,1,3); // bike1233
  1112. AddStaticVehicle(471,1834.4215,-1800.8187,13.0291,359.2151,1,3); // 4 wheeler!
  1113. AddStaticVehicle(479,1988.5773,-1817.3129,13.2526,269.8134,1,3); // little van
  1114. AddStaticVehicle(477,2049.7192,-1804.9540,14.6034,91.7844,1,3); // id 477
  1115. AddStaticVehicle(429,2139.7512,-1757.6434,13.1506,271.4433,1,3); // comet!
  1116. AddStaticVehicle(426,2042.6521,-1779.5369,13.2916,274.6389,1,3); // like a cop but for civil
  1117. AddStaticVehicle(418,2016.2207,-1707.5231,13.6395,90.0494,3,6); // red van
  1118. AddStaticVehicle(415,1975.5525,-1675.1720,15.7399,87.5661,3,2); // cheetah!
  1119. AddStaticVehicle(602,1975.4611,-1785.2090,13.3612,88.4321,3,2); // red car looks like sultan
  1120. AddStaticVehicle(603,2238.2954,-1630.7078,15.5722,160.8779,3,2); // red muscle car
  1121. AddStaticVehicle(603,2248.1245,-1656.8555,15.1252,279.4093,3,2); // red muscle car!!!!!!
  1122. AddStaticVehicle(605,2297.7117,-1645.8591,14.5738,270.3690,2,2); // broken car
  1123. AddStaticVehicle(604,2432.0217,-1678.6628,13.4924,284.3224,2,2); // broken car 2
  1124.  
  1125. //Army Base (LS)
  1126. ArmyVehicle[0] = AddStaticVehicleEx(520,1803.13793945,-2406.17114258,14.47426319,217.99993896,-1,-1,900); //Hydra
  1127. ArmyVehicle[1] = AddStaticVehicleEx(520,1838.41601562,-2406.30737305,14.47426319,142.00378418,-1,-1,900); //Hydra
  1128. ArmyVehicle[2] = AddStaticVehicleEx(520,1818.97277832,-2404.87744141,14.47426319,180.00000000,-1,-1,900); //Hydra
  1129. ArmyVehicle[3] = AddStaticVehicleEx(425,1740.16857910,-2420.96972656,14.40568733,179.99993896,-1,-1,900); //Hunter
  1130. ArmyVehicle[4] = AddStaticVehicleEx(425,1724.65991211,-2404.00146484,14.40568733,179.99450684,-1,-1,900); //Hunter
  1131. ArmyVehicle[5] = AddStaticVehicleEx(425,1710.71911621,-2422.50415039,14.40568733,179.99450684,-1,-1,900); //Hunter
  1132. ArmyVehicle[6] = AddStaticVehicleEx(470,1865.78295898,-2442.98876953,13.66469955,298.00000000,-1,-1,900); //Patriot
  1133. ArmyVehicle[7] = AddStaticVehicleEx(470,1865.26049805,-2438.05322266,13.66469955,297.99865723,-1,-1,900); //Patriot
  1134. ArmyVehicle[8] = AddStaticVehicleEx(470,1864.10070801,-2432.87500000,13.66469955,297.99865723,-1,-1,900); //Patriot
  1135. CreateObject(3491,1820.85437012,-2420.75170898,20.52900505,0.00000000,0.00000000,0.00000000); //object(vegass_hanger2) (1)
  1136. CreateObject(8253,1868.85485840,-2435.81982422,16.48247528,0.00000000,0.00000000,0.00000000); //object(pltschlhnger01_lvs) (1)
  1137.  
  1138. //LSPD
  1139. CreateObject(6976,1561.19323730,-1636.00317383,10.00000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt04) (1) (STAIRS)
  1140. CreateObject(6976,1578.89599609,-1642.44042969,18.60000038,0.00000000,0.00000000,270.00000000); //object(shamheliprt04) (2) (STAIRS)
  1141.  
  1142. AddStaticVehicle(451,827.1552,-1597.2867,13.1698,50.5390,125,125); // car spawn
  1143. AddStaticVehicle(411,2223.5405,-1708.9952,13.2474,352.2904,0,0); // carr
  1144.  
  1145. //LSPD Cars
  1146. LSPD[0] = AddStaticVehicle(596,1538.6554,-1645.4680,5.6120,179.5933,0,1); // LSPD
  1147. LSPD[1] = AddStaticVehicle(596,1530.4604,-1645.3107,5.6124,177.7601,0,1); // LSPD
  1148. LSPD[2] = AddStaticVehicle(523,1546.4139,-1654.8896,5.4586,270.2880,0,0); // HPV
  1149. LSPD[3] = AddStaticVehicle(596,1545.1909,-1680.1108,5.6098,268.8843,0,1); // LSPD
  1150. LSPD[4] = AddStaticVehicle(596,1529.0856,-1683.8678,5.6119,90.2738,0,1); // LSPD
  1151. LSPD[5] = AddStaticVehicle(411,1558.6659,-1710.4635,5.4839,180.4114,0,0); // undecover make black
  1152. LSPD[6] = AddStaticVehicle(427,1587.5168,-1709.7181,6.0220,359.9041,0,1); // Enforcer
  1153. LSPD[7] = AddStaticVehicle(490,1574.2781,-1709.8967,6.0200,0.7341,0,0); // FBI Rancher
  1154. LSPD[8] = AddStaticVehicle(490,1578.5839,-1709.9985,6.0172,358.9602,0,0); // FBI Rancher
  1155. LSPD[9] = AddStaticVehicle(596,1570.5350,-1710.4485,5.6105,179.5916,0,1); // LDPS
  1156. LSPD[10] = AddStaticVehicle(596,1566.5233,-1710.3140,5.6121,179.4903,0,1); // LSPD
  1157. LSPD[11] = AddStaticVehicle(596,1601.7191,-1704.3359,5.6108,268.6521,0,1); // LSPD
  1158. LSPD[12] = AddStaticVehicle(402,1601.2964,-1692.0686,5.7223,90.0956,13,13); // Undercover FBI Car
  1159. LSPD[13] = AddStaticVehicle(402,1601.1915,-1683.9227,5.7224,90.0514,22,22); // FBI Buffalo
  1160. LSPD[14] = AddStaticVehicle(405,1600.9851,-1687.9960,5.7656,90.2003,24,1); // FBI Sentinel
  1161. LSPD[15] = AddStaticVehicle(596,1544.2131,-1671.8967,5.6124,89.8306,0,1); // LSPD
  1162. LSPD[16] = AddStaticVehicle(411,1544.4808,-1663.0748,5.4839,90.6810,6,6); // A-R Unit
  1163. LSPD[17] = AddStaticVehicle(522,1543.5620,-1667.8304,5.4611,87.7870,3,8); // A-R Unit
  1164. LSPD[18] = AddStaticVehicle(415,1544.1481,-1659.2570,5.6624,89.9421,25,1); // Cheetah
  1165. LSPD[19] = AddStaticVehicle(497,1563.8291,-1647.2522,28.5786,87.9044,0,1); // LSPD Mav
  1166. LSPD[20] = AddStaticVehicle(596,1535.8528,-1668.1055,13.1040,359.9227,0,1); // LSPD
  1167.  
  1168. //Others
  1169. AddStaticVehicle(592,1442.0022,-2593.0347,14.7432,269.9402,1,1); // Andromada
  1170. AddStaticVehicle(577,1442.0778,-2493.6089,13.4701,270.2746,8,16); // AT-400
  1171. AddStaticVehicle(560,1362.9446,-1489.2616,13.2517,70.0243,9,39); // Street car
  1172. AddStaticVehicle(400,441.1136,-1296.9650,15.2771,33.7294,123,1); //
  1173. AddStaticVehicle(402,661.2392,-1263.4077,13.2974,180.4469,13,13); //
  1174. AddStaticVehicle(404,727.5649,-1198.1158,18.9327,332.0143,119,50); //
  1175. AddStaticVehicle(405,847.8672,-1153.2953,23.5313,270.5562,24,1); //
  1176. AddStaticVehicle(410,592.4474,-1298.6516,14.3986,195.8924,9,1); //
  1177. AddStaticVehicle(411,599.8068,-1296.5234,14.4330,198.7522,0,0); //
  1178. AddStaticVehicle(412,295.3885,-1419.2489,13.7880,292.8682,10,8); //
  1179. AddStaticVehicle(415,216.1153,-1431.7924,13.0211,134.5198,25,1); //
  1180. AddStaticVehicle(419,198.1319,-1438.1703,12.8807,318.4540,47,76); //
  1181. AddStaticVehicle(421,317.9250,-1809.6421,4.3541,180.2348,13,1); //
  1182. AddStaticVehicle(422,337.3482,-1809.7214,4.4771,358.7836,97,25); //
  1183. AddStaticVehicle(424,324.6066,-1788.1311,4.5653,0.6627,2,2); //
  1184. AddStaticVehicle(411,393.5659,-1890.3940,1.1139,274.5846,85,85); //
  1185. AddStaticVehicle(468,463.5244,-1823.6342,5.1035,268.1549,46,46); //
  1186. AddStaticVehicle(474,495.4467,-1767.6510,5.3166,269.9758,81,1); //
  1187. AddStaticVehicle(477,665.8559,-1886.1223,3.6893,266.2523,94,1); //
  1188. AddStaticVehicle(481,682.4985,-1852.5225,5.4641,2.4120,3,3); //
  1189. AddStaticVehicle(521,822.7520,-1699.5719,13.1165,359.5197,75,13); //
  1190. AddStaticVehicle(526,686.4927,-1568.9868,14.0089,356.7253,9,39); //
  1191. AddStaticVehicle(525,701.6587,-1571.7688,14.1193,180.8628,18,20); //
  1192. AddStaticVehicle(446,719.8644,-1636.4723,-0.4465,357.0965,1,5); //
  1193. AddStaticVehicle(448,783.1911,-1637.3964,12.9824,91.3249,3,6); //
  1194. AddStaticVehicle(455,782.2476,-1605.8896,13.8189,358.5023,84,58); //
  1195. AddStaticVehicle(457,838.4237,-1552.1782,13.0880,356.4117,2,1); //
  1196. AddStaticVehicle(458,872.1634,-1505.1324,12.9550,89.3787,101,1); //
  1197. AddStaticVehicle(461,815.1939,-1501.1245,12.6237,180.6368,37,1); //
  1198. AddStaticVehicle(467,810.4442,-1448.8104,12.8154,87.3158,58,8); //
  1199. AddStaticVehicle(560,869.7569,-1657.6364,13.2514,358.3217,17,1); //
  1200. AddStaticVehicle(562,888.2688,-1669.5073,13.2046,179.9898,35,1); //
  1201. AddStaticVehicle(565,874.4271,-1678.0381,13.1739,179.3548,42,42); //
  1202. AddStaticVehicle(400,2247.7559,-1924.4431,13.6392,179.6043,123,1); //
  1203. AddStaticVehicle(404,2283.6428,-1931.3055,12.7527,180.8797,119,50); //
  1204. AddStaticVehicle(408,2311.1282,-1994.4446,14.1198,357.9063,26,26); //
  1205. AddStaticVehicle(410,2495.6108,-1986.2244,13.0924,0.1197,9,1); //
  1206. AddStaticVehicle(412,2452.2275,-2021.9824,13.3828,178.2901,10,8); //
  1207. AddStaticVehicle(419,2395.0791,-2074.6975,13.3144,88.8546,47,76); //
  1208. AddStaticVehicle(422,2444.3772,-2114.7273,13.5293,358.7563,97,25); //
  1209. AddStaticVehicle(403,2488.6995,-2106.0339,14.1311,92.4613,30,1); //
  1210. AddStaticVehicle(403,2489.3936,-2114.3250,14.1531,91.9732,28,1); //
  1211. AddStaticVehicle(420,2504.0386,-1755.2026,13.1758,179.1026,6,1); //
  1212. AddStaticVehicle(600,2494.6516,-1755.5043,13.1951,181.4729,32,8); //
  1213. AddStaticVehicle(602,2498.2732,-1681.7469,13.1667,285.0013,69,1); //
  1214. AddStaticVehicle(604,2508.1958,-1666.0525,13.1416,10.7108,68,76); //
  1215. AddStaticVehicle(605,2484.1882,-1655.1521,13.1367,88.7774,32,8); //
  1216. AddStaticVehicle(405,2278.9871,-1683.5277,14.0112,178.6860,24,1); //
  1217. AddStaticVehicle(409,2063.2822,-1636.4720,13.3467,271.9295,1,1); //
  1218. AddStaticVehicle(410,2051.8411,-1694.6627,13.2074,91.0224,36,1); //
  1219. AddStaticVehicle(411,2122.1047,-1783.8508,12.9809,358.5475,0,0); //
  1220. AddStaticVehicle(413,2100.7090,-1782.8505,13.4707,174.5412,105,1); //
  1221. AddStaticVehicle(415,2062.4036,-1904.6412,13.3209,359.7023,40,1); //
  1222. AddStaticVehicle(418,2062.2371,-1919.5068,13.6401,179.3507,108,108); //
  1223. AddStaticVehicle(420,2339.9822,-2086.9375,13.3255,359.0136,6,1); //
  1224. AddStaticVehicle(421,2086.5957,-2090.7112,13.4292,177.0427,25,1); //
  1225. AddStaticVehicle(422,1773.1512,-2082.2983,13.5359,359.3152,111,31); //
  1226. AddStaticVehicle(424,1745.4312,-2127.2371,13.3277,358.4977,2,2); //
  1227. AddStaticVehicle(426,1699.6639,-2093.4856,13.2895,359.8446,42,42); //
  1228. AddStaticVehicle(429,1762.8582,-2117.9116,13.1451,269.7401,13,13); //
  1229. AddStaticVehicle(440,1261.2045,-1796.3574,13.5329,358.9323,32,32); //
  1230. AddStaticVehicle(444,1277.7642,-1795.6394,13.7704,357.0524,32,42); //
  1231. AddStaticVehicle(445,1135.2518,-1698.7494,13.6596,180.5404,35,35); //
  1232. AddStaticVehicle(451,1066.1433,-1357.3958,13.0897,0.4214,125,125); //
  1233. AddStaticVehicle(506,1219.2655,-1410.6830,12.9831,270.5204,6,6); //
  1234. AddStaticVehicle(416,1181.3505,-1338.5973,13.8270,268.4014,1,3); // Ambulance
  1235. AddStaticVehicle(420,1191.4980,-1325.6393,13.1773,179.8307,6,1); //
  1236. AddStaticVehicle(420,1191.6094,-1346.1454,13.1793,179.2798,6,1); //
  1237. AddStaticVehicle(428,1422.0940,-1344.5942,13.6948,1.6520,4,75); //
  1238. AddStaticVehicle(439,1286.0500,-1137.3101,23.5523,90.4965,8,17); //
  1239. AddStaticVehicle(444,1210.6799,-1100.1733,25.6637,183.2065,32,66); //
  1240.  
  1241. //Airport (LS)
  1242. AddStaticVehicleEx(519,1602.49316406,-2623.76196289,14.54694748,0.00000000,-1,-1,900); //Shamal
  1243. AddStaticVehicleEx(519,1628.05786133,-2624.20629883,14.54694748,0.00000000,-1,-1,900); //Shamal
  1244. AddStaticVehicleEx(519,1651.77563477,-2624.23461914,14.54694748,0.00000000,-1,-1,900); //Shamal
  1245. AddStaticVehicleEx(519,1675.72583008,-2624.73730469,14.54694748,0.00000000,-1,-1,900); //Shamal
  1246. AddStaticVehicleEx(519,1699.00317383,-2625.00097656,14.54694748,0.00000000,-1,-1,900); //Shamal
  1247. AddStaticVehicleEx(593,1741.92358398,-2632.72705078,14.09705734,0.00000000,-1,-1,900); //Dodo
  1248. AddStaticVehicleEx(593,1768.04223633,-2632.86157227,14.09705734,0.00000000,-1,-1,900); //Dodo
  1249. AddStaticVehicleEx(513,1808.86926270,-2632.50317383,14.33163166,0.00000000,-1,-1,900); //Stunt
  1250. AddStaticVehicleEx(513,1822.12475586,-2632.54833984,14.33163166,0.00000000,-1,-1,900); //Stunt
  1251. AddStaticVehicleEx(513,1836.28283691,-2632.23925781,14.33163166,0.00000000,-1,-1,900); //Stunt
  1252. AddStaticVehicleEx(417,1544.89050293,-2446.11743164,13.55468750,214.00000000,-1,-1,900); //Leviathan
  1253. AddStaticVehicleEx(417,1564.89416504,-2443.75463867,13.55468750,214.00000000,-1,-1,900); //Leviathan
  1254. AddStaticVehicleEx(487,1592.35961914,-2451.34326172,13.81968784,219.99993896,-1,-1,900); //Maverick
  1255. AddStaticVehicleEx(487,1610.40087891,-2449.77563477,13.81968784,219.99572754,-1,-1,900); //Maverick
  1256.  
  1257.  
  1258. AddStaticVehicle(560,1973.9471,-1728.3358,15.6740,268.8695,9,39); //
  1259. AddStaticVehicle(562,1975.8925,-1692.5078,15.6274,89.3488,35,1); //
  1260. AddStaticVehicle(565,2390.8472,-1493.9200,23.4575,90.1655,42,42); //
  1261. AddStaticVehicle(566,2468.6011,-1545.9546,23.7828,91.7723,30,8); //
  1262. AddStaticVehicle(571,2490.7092,-1558.2249,23.3647,274.2814,36,2); //
  1263. AddStaticVehicle(573,2505.7622,-1535.7524,24.2679,177.8382,115,43); //
  1264. AddStaticVehicle(600,2519.7258,-1537.2168,23.2535,356.8831,43,8); //
  1265. AddStaticVehicle(602,2708.7246,-1189.6343,69.1237,268.4034,75,77); //
  1266. AddStaticVehicle(603,2752.9653,-1110.0433,69.4163,0.2933,69,1); //
  1267. AddStaticVehicle(604,2717.6113,-1315.8680,50.8129,179.5339,78,76); //
  1268. AddStaticVehicle(605,2742.7874,-1460.3485,30.1806,358.7147,43,8); //
  1269. AddStaticVehicle(400,2811.1116,-1432.4337,16.3437,3.4675,113,1); //
  1270. AddStaticVehicle(521,2791.8081,-1429.3348,23.7543,87.3197,87,118); //
  1271. AddStaticVehicle(411,2792.7446,-1449.6279,39.6498,90.4645,6,6); //
  1272. AddStaticVehicle(411,2816.9929,-1446.2472,39.6563,269.7231,85,85); //
  1273. AddStaticVehicle(451,2792.7192,-1432.4875,39.7681,87.0277,125,125); //
  1274. AddStaticVehicle(522,2796.3882,-1549.6428,10.4898,90.1214,3,8); //
  1275. AddStaticVehicle(526,2770.5667,-1605.5872,10.6885,90.7724,9,39); //
  1276. AddStaticVehicle(527,2743.4241,-1614.7783,12.3851,357.6433,53,1); //
  1277. AddStaticVehicle(529,2706.7659,-1842.8486,9.1274,338.6997,42,42); //
  1278. AddStaticVehicle(533,2782.6765,-1875.7839,9.5195,178.4063,74,1); //
  1279. AddStaticVehicle(534,2810.4614,-1837.1199,9.6499,267.8372,42,42); //
  1280. AddStaticVehicle(568,2879.9138,-1859.3710,4.4213,325.5295,17,1); //
  1281. AddStaticVehicle(424,2891.4314,-1909.1479,4.1350,181.9928,2,2); //
  1282. AddStaticVehicle(468,2887.1760,-1994.7191,5.4558,178.6574,46,46); //
  1283. AddStaticVehicle(493,2929.1023,-2057.4500,0.2582,87.0258,36,13); //
  1284. AddStaticVehicle(452,2933.3682,-2045.4890,-0.5488,88.5820,1,5); //
  1285. AddStaticVehicle(446,2920.5764,-2057.6011,0.0120,270.6396,1,5); //
  1286. AddStaticVehicle(460,2952.2100,-2052.0940,2.1444,174.3388,1,9); //
  1287. AddStaticVehicle(462,2740.0894,-1942.7235,13.1451,92.7067,13,13); //
  1288. AddStaticVehicle(463,2749.6504,-2104.8103,11.5784,265.7299,84,84); //
  1289. AddStaticVehicle(560,1928.6273,-2141.2437,13.2678,0.2657,21,1); //
  1290. AddStaticVehicle(561,1946.8700,-2123.8020,13.3616,90.2954,8,17); //
  1291. AddStaticVehicle(567,1798.6418,-2050.0444,13.4370,270.9849,88,64); //
  1292. AddStaticVehicle(498,1751.4166,-2059.3850,13.7033,181.3239,13,120); //
  1293. AddStaticVehicle(578,1773.9139,-2023.2332,14.6891,272.4109,1,1); //
  1294. AddStaticVehicle(411,1479.6533,-1843.8639,13.1404,267.7712,56,56); //
  1295. AddStaticVehicle(414,1476.0985,-1498.8483,13.6429,89.7816,28,1); //
  1296. AddStaticVehicle(415,1479.3143,-1237.6947,13.8485,269.8049,20,1); //
  1297. AddStaticVehicle(418,1330.8606,-1061.7308,28.6767,88.7811,119,119); //
  1298. AddStaticVehicle(409,1276.3948,-1381.4437,13.0138,178.8206,1,1); //
  1299. AddStaticVehicle(410,1282.5106,-1295.3256,13.0236,357.6100,36,1); //
  1300. AddStaticVehicle(486,1242.0427,-1265.8451,13.6237,92.8921,1,1); //
  1301. AddStaticVehicle(406,1268.8685,-1252.3369,15.1707,107.3903,1,1); //
  1302. AddStaticVehicle(560,1059.4990,-1136.5386,23.4450,86.6929,56,29); //
  1303. AddStaticVehicle(411,1056.4602,-1032.3748,31.6340,89.9467,1,1); //
  1304. AddStaticVehicle(445,1028.3601,-1054.9408,31.5363,180.4680,37,37); //
  1305. AddStaticVehicle(448,952.6252,-912.5894,45.3611,2.9908,3,6); //
  1306. AddStaticVehicle(455,884.6342,-1137.4799,24.1322,90.4818,84,58); //
  1307. AddStaticVehicle(456,851.4206,-1302.4886,13.7775,181.9248,91,63); //
  1308. AddStaticVehicle(522,1050.4155,-1289.0911,13.0510,179.1246,39,106); //
  1309. AddStaticVehicle(527,1014.6523,-1369.4447,12.8260,271.7850,75,1); //
  1310. AddStaticVehicle(533,893.9490,-1360.1431,13.5758,269.0062,77,1); //
  1311. AddStaticVehicle(535,738.0388,-1436.0945,13.3012,271.7214,28,1); //
  1312. AddStaticVehicle(536,480.0226,-1516.8356,19.9839,184.6269,12,1); //
  1313. AddStaticVehicle(540,544.4927,-1508.8596,14.2423,359.3493,42,42); //
  1314. AddStaticVehicle(541,338.3979,-1607.2764,32.6801,0.8414,58,8); //
  1315. AddStaticVehicle(543,784.3918,-820.5186,68.7186,194.3683,32,8); //
  1316. AddStaticVehicle(545,812.9794,-768.5654,76.4932,104.2797,47,1); //
  1317. AddStaticVehicle(546,1007.1812,-663.4985,120.8698,213.7551,78,38); //
  1318. AddStaticVehicle(549,1361.4869,-620.4485,108.8300,104.8417,72,39); //
  1319. AddStaticVehicle(572,1475.3203,-702.3226,92.4138,269.4503,116,1); //
  1320. AddStaticVehicle(560,1530.3494,-812.9666,71.6773,270.7061,56,29); //
  1321. AddStaticVehicle(561,1464.1514,-902.0443,54.6498,179.2653,54,38); //
  1322. AddStaticVehicle(411,1172.2279,-881.3878,42.9081,97.9175,53,53); //
  1323. AddStaticVehicle(600,1114.9319,-926.8351,42.8933,89.4798,32,8); //
  1324. AddStaticVehicle(603,1095.8495,-869.3295,43.0182,89.3896,69,1); //
  1325. AddStaticVehicle(400,980.6792,-904.2131,42.5927,183.5705,123,1); //
  1326. AddStaticVehicle(404,834.5959,-925.2833,54.9829,60.9081,123,92); //
  1327. AddStaticVehicle(405,833.2117,-860.1843,69.7675,19.6952,36,1); //
  1328. AddStaticVehicle(410,796.7640,-843.6369,60.2915,11.2662,9,1); //
  1329. AddStaticVehicleEx(405,2404.10546875,-1397.28955078,24.05439949,0.00000000,-1,-1,900); //Sentinel
  1330. AddStaticVehicleEx(409,2357.95068359,-1363.88928223,23.94581604,0.00000000,-1,-1,900); //Stretch
  1331. AddStaticVehicleEx(540,2386.35742188,-1351.78100586,24.45530510,0.00000000,-1,-1,900); //Vincent
  1332. AddStaticVehicleEx(561,2376.14428711,-1320.61645508,23.92399979,0.00000000,-1,-1,900); //Stratum
  1333. AddStaticVehicleEx(463,2348.61474609,-1263.26757812,22.12603378,272.00000000,-1,-1,900); //Freeway
  1334. AddStaticVehicleEx(422,2347.32519531,-1252.51977539,22.57999992,270.00000000,-1,-1,900); //Bobcat
  1335. AddStaticVehicleEx(554,2346.17163086,-1221.64086914,22.69499969,0.00000000,-1,-1,900); //Yosemite
  1336. AddStaticVehicleEx(514,2411.67993164,-1228.56323242,24.99980736,0.00000000,-1,-1,900); //Tanker
  1337. AddStaticVehicleEx(411,2428.06982422,-1227.90234375,24.91224670,0.00000000,-1,-1,900); //Infernus
  1338. AddStaticVehicleEx(541,2471.79931641,-1251.54309082,26.46301270,89.99993896,-1,-1,900); //Bullet
  1339. AddStaticVehicleEx(555,2506.51904297,-1277.77490234,34.63193512,179.99993896,-1,-1,900); //Windsor
  1340. AddStaticVehicleEx(602,2516.76196289,-1297.55761719,34.75156403,0.00000000,-1,-1,900); //Alpha
  1341. AddStaticVehicleEx(401,2506.51733398,-1366.55187988,28.39906502,177.99993896,-1,-1,900); //Bravura
  1342. AddStaticVehicleEx(491,2517.00708008,-1393.34033203,28.43826675,0.00000000,-1,-1,900); //Virgo
  1343. AddStaticVehicleEx(527,2683.12133789,-1429.45336914,30.29467773,0.00000000,-1,-1,900); //Cadrona
  1344. AddStaticVehicleEx(533,2623.14672852,-1261.46813965,48.92050934,270.50000000,-1,-1,900); //Feltzer
  1345. AddStaticVehicleEx(545,2137.59619141,-1283.52319336,24.75648880,0.00000000,-1,-1,900); //Hustler
  1346. AddStaticVehicleEx(475,2196.45190430,-1286.17517090,24.09451103,0.00000000,-1,-1,900); //Sabre
  1347. AddStaticVehicleEx(412,2256.12939453,-1287.19006348,24.53050232,0.00000000,-1,-1,900); //Voodoo
  1348. AddStaticVehicleEx(518,2140.97241211,-1315.43017578,24.28842545,0.00000000,-1,-1,900); //Buccaneer
  1349. AddStaticVehicleEx(536,2148.44506836,-1199.37609863,23.72622490,270.00000000,-1,-1,900); //Blade
  1350. AddStaticVehicle(416,2037.1030,-1426.9613,17.0979,179.7931,1,3); // Ambulance
  1351. AddStaticVehicle(416,2026.4424,-1409.2092,17.0986,90.3309,1,3); // Ambulance
  1352. AddStaticVehicle(481,1944.9799,-1423.3868,9.8702,99.7650,3,3); // bmx
  1353. AddStaticVehicle(522,1889.6011,-1433.0640,9.9852,208.0781,36,105); // NRG
  1354. AddStaticVehicle(471,1908.2617,-1388.4788,9.8670,60.9329,103,111); // Quatd
  1355. AddStaticVehicle(560,1842.8820,-1309.2706,13.0958,179.4665,37,0); // Sultan
  1356. AddStaticVehicle(481,1907.0743,-1220.4691,17.3505,326.9318,6,6); // BMX
  1357. AddStaticVehicle(411,1910.5283,-1123.9529,24.9005,1.0823,1,1); // Infernus
  1358. AddStaticVehicle(506,1989.7363,-1119.2100,26.5294,88.4550,7,7); // Super GT
  1359. AddStaticVehicle(491,2086.0562,-1140.2959,24.7930,268.7915,64,72); // Virgo
  1360. AddStaticVehicle(492,2161.5000,-1177.9441,23.6004,270.3815,77,26); // Greenwood
  1361. AddStaticVehicle(496,2148.7170,-1148.0298,24.1607,88.0711,66,72); //
  1362. AddStaticVehicle(471,2309.2771,-1052.1664,49.9301,342.6730,74,91); //
  1363. AddStaticVehicle(600,2344.2231,-1059.2657,52.8345,289.9105,83,13); //
  1364. AddStaticVehicle(478,2385.0522,-1029.8955,53.6107,316.6493,66,1); //
  1365. AddStaticVehicle(479,2429.7053,-1019.3953,53.9940,193.6098,59,36); //
  1366. AddStaticVehicle(482,2452.3965,-1050.4058,59.7480,356.6701,48,48); //
  1367. AddStaticVehicle(483,2570.6553,-1030.9257,69.5739,357.5074,1,31); //
  1368. AddStaticVehicle(489,2597.9280,-1062.3071,69.7218,1.1586,14,123); //
  1369. AddStaticVehicle(491,1622.1725,-1094.0273,23.6663,90.7516,52,66); //
  1370. AddStaticVehicle(561,1632.4114,-1013.2068,23.7127,341.4184,65,79); //
  1371. AddStaticVehicle(562,1685.1648,-1035.7760,23.5654,179.1545,113,1); //
  1372. AddStaticVehicle(566,1692.5903,-1084.7720,23.6853,180.2076,83,1); //
  1373. AddStaticVehicle(515,1651.2184,-1886.2770,14.5733,268.2462,24,77); //
  1374. AddStaticVehicle(518,1838.0511,-1871.3605,13.0550,179.1560,9,39); //
  1375. AddStaticVehicle(521,1804.8612,-1930.3901,12.9552,178.1389,87,118); //
  1376. AddStaticVehicle(492,1780.0067,-1932.6024,13.1682,181.3466,28,56); //
  1377. AddStaticVehicle(496,1804.9237,-1694.1798,13.2584,5.0938,37,19); //
  1378. AddStaticVehicle(494,1782.0830,-1702.2521,13.4023,1.4439,42,33); //
  1379. AddStaticVehicle(499,1609.2104,-1669.8256,13.5386,0.9787,109,32); //
  1380.  
  1381.  
  1382. //Special Cars (House cars/Reg/Admins)
  1383. AdminCar1 = AddStaticVehicle(560,969.6414,-760.4233,111.0436,278.1985,41,29); // Admin Sultan
  1384. AdminCar2 = AddStaticVehicle(522,962.8135,-764.6016,109.7994,275.8972,3,8); // Admin NRG
  1385. House4Car1 = AddStaticVehicle(411,172.0054,-1340.0504,69.4026,356.1563,6,6); // House4car
  1386. House4Car2 = AddStaticVehicle(536,166.2974,-1340.4438,69.4719,358.9040,9,1); // House4Car
  1387. House6Car1 = AddStaticVehicle(560,979.3285,-830.7790,95.3591,207.9206,21,1); // house6 car
  1388. House7Car1 = AddStaticVehicle(445,1088.6074,-641.3738,113.0374,271.2308,39,39); // House 7 car
  1389.  
  1390.  
  1391. for(new v =0; v<MAX_VEHICLES; v ++)
  1392. {
  1393. //VehicleInfo[v][bought] = 999;
  1394. VehicleInfo[v][bomb] = 0;
  1395. }
  1396. return 1;
  1397. }
  1398.  
  1399. public OnGameModeExit()
  1400. {
  1401. KillTimer(FlashTimer);
  1402. for (new i = 0; i < MAX_VEHICLES; i++)
  1403. {
  1404. DestroyObject(obj[i]);
  1405. DestroyObject(obj2[i]);
  1406. }
  1407. ResetGVars();
  1408. return 1;
  1409. }
  1410.  
  1411. public OnPlayerRequestClass(playerid, classid)
  1412. {
  1413. SetPlayerInterior(playerid, 0);
  1414. SetPlayerPos(playerid,2025.0773,-1423.5450,16.9922);
  1415. SetPlayerCameraPos(playerid,2016.2635,-1432.2692,13.5458);
  1416. SetPlayerCameraLookAt(playerid,2025.0773,-1423.5450,16.9922);
  1417. SetPlayerFacingAngle(playerid, 135.4);
  1418. SetPlayerTeamFromClass(playerid, classid);
  1419. SetPlayerColor(playerid, COLOR_DEADCONNECT);
  1420. SetPVarInt(playerid, "Spawned", 0);
  1421.  
  1422. switch(classid)
  1423. {
  1424. case 0, 1, 2, 3, 4, 5:
  1425. {
  1426. GameTextForPlayer(playerid, "~b~Police officer", 3000, 5);
  1427. }
  1428. case 6:
  1429. {
  1430. GameTextForPlayer(playerid, "~p~Los Santos Army", 3000, 5);
  1431. }
  1432. case 7:
  1433. {
  1434. GameTextForPlayer(playerid, "~b~FBI official", 3000, 5);
  1435. }
  1436. case 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29:
  1437. {
  1438. GameTextForPlayer(playerid, "~w~Civilian ~n~ Choose your job when you spawn", 3000, 5);
  1439. }
  1440. }
  1441. return 1;
  1442. }
  1443.  
  1444. SetPlayerTeamFromClass(playerid, classid)
  1445. {
  1446. if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5)
  1447. {
  1448. gTeam[playerid] = Team_Cop;
  1449. }
  1450. else if(classid == 6)
  1451. {
  1452. gTeam[playerid] = Team_Army;
  1453. }
  1454. else if(classid == 7)
  1455. {
  1456. gTeam[playerid] = Team_FBI;
  1457. }
  1458. else if(classid >= 8)
  1459. {
  1460. gTeam[playerid] = Team_Civi;
  1461. }
  1462. }
  1463.  
  1464. forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
  1465. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  1466. {
  1467. new Float:HP;
  1468. GetPlayerHealth(playerid, HP);
  1469. if(weaponid == 24) SetPlayerHealth(playerid, HP-50);
  1470. if(weaponid == 22) SetPlayerHealth(playerid, HP-10);
  1471. if(weaponid == 32) SetPlayerHealth(playerid, HP-25);
  1472. if(weaponid == 28) SetPlayerHealth(playerid, HP-10);
  1473. if(weaponid == 23) SetPlayerHealth(playerid, HP-10);
  1474. if(weaponid == 31) SetPlayerHealth(playerid, HP-35);
  1475. if(weaponid == 30) SetPlayerHealth(playerid, HP-40);
  1476. if(weaponid == 29) SetPlayerHealth(playerid, HP-18);
  1477. if(weaponid == 34) SetPlayerHealth(playerid, HP-300);
  1478. if(weaponid == 33) SetPlayerHealth(playerid, HP-35);
  1479. if(weaponid == 25) SetPlayerHealth(playerid, HP-50);
  1480. if(weaponid == 27) SetPlayerHealth(playerid, HP-55);
  1481. return 1;
  1482. }
  1483.  
  1484. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  1485. {
  1486. if(IsPlayerConnected(playerid))
  1487. {
  1488. new Float:posx, Float:posy, Float:posz;
  1489. new Float:oldposx, Float:oldposy, Float:oldposz;
  1490. new Float:tempposx, Float:tempposy, Float:tempposz;
  1491. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  1492. for(new i = 0; i < MAX_PLAYERS; i++)
  1493. {
  1494. if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  1495. {
  1496. GetPlayerPos(i, posx, posy, posz);
  1497. tempposx = (oldposx -posx);
  1498. tempposy = (oldposy -posy);
  1499. tempposz = (oldposz -posz);
  1500. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  1501. {
  1502. SendClientMessage(i, col1, string);
  1503. }
  1504. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  1505. {
  1506. SendClientMessage(i, col2, string);
  1507. }
  1508. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  1509. {
  1510. SendClientMessage(i, col3, string);
  1511. }
  1512. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  1513. {
  1514. SendClientMessage(i, col4, string);
  1515. }
  1516. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  1517. {
  1518. SendClientMessage(i, col5, string);
  1519. }
  1520. }
  1521. else
  1522. {
  1523. SendClientMessage(i, col1, string);
  1524. }
  1525. }
  1526. }
  1527. return 1;
  1528. }
  1529. ///--------GetPlayerNameEx----------///
  1530. stock GetPlayerNameEx(playerid)
  1531. {
  1532. new pName[25];
  1533. GetPlayerName(playerid, pName, sizeof(pName));
  1534. return pName;
  1535. }
  1536.  
  1537. public SetPlayerToTeamColor(playerid)
  1538. {
  1539. if(gTeam[playerid] == Team_Cop)
  1540. {
  1541. SetPlayerColor(playerid, COLOR_BLUE);
  1542. }
  1543. if(gTeam[playerid] == Team_Army)
  1544. {
  1545. SetPlayerColor(playerid, COLOR_PURPLE);
  1546. }
  1547. if(gTeam[playerid] == Team_FBI)
  1548. {
  1549. SetPlayerColor(playerid, COLOR_BLUE);
  1550. }
  1551. if(gTeam[playerid] >= 5)
  1552. {
  1553. SetPlayerColor(playerid, COLOR_WHITE);
  1554. }
  1555. return 1;
  1556. }
  1557.  
  1558. public OnPlayerConnect(playerid)
  1559. {
  1560. //xObjects
  1561. for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
  1562.  
  1563. zoneupdates[playerid] =1;
  1564. GameTextForPlayer(playerid, "~b~COPS ~g~~h~and ~r~ROBBERS~n~SF~g~~h~ and~r~ LS", 3000, 5);
  1565. SendClientMessage(playerid, COLOR_BLUE, "Welcome to Los Santos Cops n Robbers RP version "VERSION"");
  1566. SendClientMessage(playerid, COLOR_RED, "Be sure to read /rules and /pc when you spawn.");
  1567. SendClientMessage(playerid, COLOR_ORANGE, "Login is required to play on this server.");
  1568. if(udb_Exists(PlayerName(playerid)))
  1569. {
  1570. SendClientMessage(playerid, COLOR_ERROR, "This player name is taken. Please login.");
  1571. LogPlayer(playerid);
  1572. }
  1573. else if (!udb_Exists(PlayerName(playerid)))
  1574. {
  1575. SendClientMessage(playerid, COLOR_ERROR, "This player name is not registered. Please do so before you spawn.");
  1576. RegisterPlayer(playerid);
  1577. }
  1578. new string[200], pIP[16];
  1579. GetPlayerIp(playerid, pIP, 16);
  1580. SetPVarInt(playerid, "Spawned", 0);
  1581. SetPlayerColor(playerid, COLOR_DEADCONNECT);
  1582. format(string, 200, "%s has joined the server.", PlayerInfo(playerid));
  1583. SendClientMessageToAll(COLOR_GREEN, string);
  1584.  
  1585. //Map Icons
  1586. SetPlayerMapIcon(playerid, 0, 2174.574951, -2249.029785, 13.303776,42, 0,1); // Bomb shop
  1587. SetPlayerMapIcon(playerid, 1, 2147.854003, -1367.340209, 25.641782, 24, 0,1); // Drug House
  1588. SetPlayerMapIcon(playerid, 2, 2036.381835, -1410.065917, 17.164062,22, 0,1); // LS Hospital
  1589. SetPlayerMapIcon(playerid, 3, 363.430023, -2008.615844, 7.835937, 25, 0,1); // Amusement Park Terrorism
  1590. SetPlayerMapIcon(playerid, 4,1416.219360, -767.366699, 95.786659,25,0,1); // Hollywood sign terrorism
  1591. SetPlayerMapIcon(playerid, 5,1510.626342, -1052.714355, 25.062500,52,0,1); // Bank
  1592. SetPlayerMapIcon(playerid, 6, 1440.395629, -2286.691894, 13.546875, 25, 0, 1); //LS Airport Terrorism
  1593. SetPlayerMapIcon(playerid, 7, -1413.557250, -300.654418, 14.141115, 5, 0, 1); // Airport location
  1594. SetPlayerMapIcon(playerid, 8, 1685.137939, 1448.447631, 10.770167, 5, 0, 1); // Airport Location
  1595. SetPlayerMapIcon(playerid, 9, 1642.319335, -2237.777832, 13.498379, 5, 0, 1); // Airport
  1596. /* Text Draw Stuff */
  1597.  
  1598.  
  1599.  
  1600. return 1;
  1601. }
  1602.  
  1603. public OnPlayerDisconnect(playerid, reason)
  1604. {
  1605. //xObject
  1606. for(new i = 0; i < sizeof(Objects); i++) ////Xobj
  1607. {
  1608. if(Player[playerid][view][i])
  1609. {
  1610. Player[playerid][view][i] = false;
  1611. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  1612. }
  1613. }
  1614.  
  1615. new string[200];
  1616. PLAYERLIST_authed[playerid]=false;
  1617. switch(reason)
  1618. {
  1619. case 0: format(string, 200, "%s has left the server. (Timeout)", PlayerInfo(playerid));
  1620. case 1: format(string, 200, "%s has left the server. (Left)", PlayerInfo(playerid));
  1621. case 2: format(string, 200, "%s has left the server. (Kicked)", PlayerInfo(playerid));
  1622. }
  1623. SendClientMessageToAll(COLOR_DEADCONNECT, string);
  1624. playerCheckpoint[playerid] =0;
  1625. RemoveVariables(playerid);
  1626. return 1;
  1627. }
  1628.  
  1629. public OnPlayerSpawn(playerid)
  1630. {
  1631. SetPlayerTime(playerid, gametime, 0);
  1632. new string[200];
  1633. format(string, 200, "[SPAWN] %s", PlayerInfo(playerid));
  1634. print(string);
  1635. SetPVarInt(playerid, "Spawned", 1);
  1636. GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
  1637. SetPlayerWantedLevel(playerid, GetPVarInt(playerid, "WantedLevel"));
  1638. GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
  1639. if(GetPVarInt(playerid, "Banned") == 1)
  1640. {
  1641. format(string, sizeof(string), "[AUTO BAN] %s banned player name: ban evade", PlayerInfo(playerid));
  1642. SendClientMessageToAll(COLOR_PURPLE, string);
  1643. print(string);
  1644. format(string, sizeof(string), "Player %s has been banned for ban evasion (Banned player name)", PlayerInfo(playerid));
  1645. print(string);
  1646. Ban(playerid);
  1647. return 1;
  1648. }
  1649. SetPlayerToTeamColor(playerid);
  1650. if(gTeam[playerid] == Team_Cop)
  1651. {
  1652. SendClientMessage(playerid, COLOR_DODGERBLUE, "**Police Officer**");
  1653. SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
  1654. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest wanted suspects in Los Santos and surrounding areas.");
  1655. SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
  1656. GivePlayerWeapon(playerid, 3, 1);
  1657. GivePlayerWeapon(playerid, 22, 100);
  1658. GivePlayerWeapon(playerid, 29, 500);
  1659. GivePlayerWeapon(playerid, 33, 10);
  1660. SetPlayerArmour(playerid, 100.0);
  1661. SetPVarInt(playerid, "CopRadio", 1);
  1662. SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
  1663. SetCameraBehindPlayer(playerid);
  1664. }
  1665. if(gTeam[playerid] == Team_FBI)
  1666. {
  1667. SendClientMessage(playerid, COLOR_DODGERBLUE, "**FBI Agent**");
  1668. SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
  1669. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest and catch criminals in Los Santos and nearby areas.");
  1670. SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
  1671. GivePlayerWeapon(playerid, 3, 1);
  1672. GivePlayerWeapon(playerid, 22, 100);
  1673. GivePlayerWeapon(playerid, 29, 500);
  1674. GivePlayerWeapon(playerid, 31, 100);
  1675. SetPlayerArmour(playerid, 100.0);
  1676. SetPVarInt(playerid, "CopRadio", 1);
  1677. SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
  1678. SetCameraBehindPlayer(playerid);
  1679. }
  1680. if(gTeam[playerid] == Team_Army)
  1681. {
  1682. SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
  1683. SendClientMessage(playerid, COLOR_PURPLE, "Type /commands for your commands");
  1684. SendClientMessage(playerid, COLOR_PURPLE, "Your job is to take down MOST WANTED criminals by any means necessary.");
  1685. SendClientMessage(playerid, COLOR_RED, "YOU CANNOT SHOOT AT OTHER ARMY, POLICE, OR NON MOST WANTED PLAYERS.");
  1686. SendClientMessage(playerid, COLOR_PURPLE, "Read /pc to find out the player colors.");
  1687. GivePlayerWeapon(playerid, 24, 50);
  1688. GivePlayerWeapon(playerid, 31, 500);
  1689. GivePlayerWeapon(playerid, 34, 20);
  1690. GivePlayerWeapon(playerid, 26, 25);
  1691. SetPlayerArmour(playerid, 100.0);
  1692. SetPVarInt(playerid, "CopRadio", 1);
  1693. SetPlayerPos(playerid,1767.4132,-2435.5422,13.5547);
  1694. SetCameraBehindPlayer(playerid);
  1695. }
  1696. if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal || gTeam[playerid] == TEAM_HITMAN)
  1697. {
  1698. SelectSkill(playerid);
  1699. new rnd = random(sizeof(SpawnPoints));
  1700. SetPlayerPos(playerid, SpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
  1701. SetPlayerFacingAngle(playerid, SpawnPoints[rnd][3]);
  1702. SetCameraBehindPlayer(playerid);
  1703. }
  1704. if(GetPVarInt(playerid, "JailTime") > 0)
  1705. {
  1706. new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  1707. SetPlayerInterior(playerid, 10);
  1708. format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
  1709. print(string);
  1710. SendClientMessageToAll(COLOR_RED, string);
  1711. SetPVarInt(playerid, "Jailed", 1);
  1712. }
  1713. SetTimer("SetPlayerTeamFromNoTeam", 1000*15, 0);
  1714. return 1;
  1715. }
  1716.  
  1717. public SetPlayerTeamFromNoTeam(playerid)
  1718. {
  1719. for(new i = 0; i<MAX_PLAYERS; i ++)
  1720. {
  1721. 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 && gTeam[i] != TEAM_HITMAN)
  1722. {
  1723. gTeam[i] = Team_Rape;
  1724. SendClientMessage(i, COLOR_RED, "Your team has been decided by default. You failed to choose a team.");
  1725. return 1;
  1726. }
  1727. return 1;
  1728. }
  1729. return 1;
  1730. }
  1731. public OnPlayerDeath(playerid, killerid, reason)
  1732. {
  1733. new pname[24];
  1734. new string[120];
  1735. new killername[24];
  1736. GivePlayerMoney(playerid, -2000);
  1737. SendClientMessage(playerid, COLOR_BLUE, "You have been charged $2,000 for medical services.");
  1738. SetPlayerWantedLevel(playerid, 0);
  1739. if(!IsPlayerConnected(killerid))
  1740. {
  1741. format(string, sizeof(string), "[DEATH] %s killed himself.", PlayerInfo(playerid));
  1742. print(string);
  1743. return 1;
  1744. }
  1745. format(string, sizeof(string), "%s has killed %s (%s)", PlayerInfo(killerid),PlayerInfo(playerid), aWeaponNames[reason]);
  1746. print(string);
  1747. if(gTeam[killerid] == Team_Cop || gTeam[killerid] == Team_Army || gTeam[killerid] == Team_FBI)
  1748. {
  1749. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  1750. {
  1751. format(string, 120, "[TEAM KILL] %s was killed by %s (%s)", PlayerInfo(playerid), PlayerInfo(killerid), aWeaponNames[reason]);
  1752. print(string);
  1753. DecreaseScore(killerid, 1);
  1754. return 1;
  1755. }
  1756. if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal || gTeam[playerid] == TEAM_HITMAN)
  1757. {
  1758. new pwl = GetPlayerWantedLevel(playerid);
  1759. if(pwl == 0)
  1760. {
  1761. format(string, sizeof(string), "Police Officer %s has taken down innocent civillian %s with deadly force.", PlayerInfo(killerid), PlayerInfo(playerid));
  1762. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1763. print(string);
  1764. DecreaseScore(killerid, 1);
  1765. return 1;
  1766. }
  1767. if(pwl == 1 || pwl == 2)
  1768. {
  1769. format(string, sizeof(string), "Police Officer %s has taken down least wanted player %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1770. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1771. print(string);
  1772. DecreaseScore(killerid, 1);
  1773. return 1;
  1774. }
  1775. if(pwl == 3 || pwl == 4 || pwl == 5)
  1776. {
  1777. format(string, sizeof(string), "Police officer %s has taken down wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1778. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1779. print(string);
  1780. IncreaseScore(killerid, 1);
  1781. GivePlayerMoney(killerid, 5000);
  1782. return 1;
  1783. }
  1784. if(pwl == 6)
  1785. {
  1786. format(string, sizeof(string), "Police Officer %s has taken down most wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
  1787. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1788. print(string);
  1789. IncreaseScore(killerid, 2);
  1790. GivePlayerMoney(killerid, 10000);
  1791. return 1;
  1792. }
  1793. if(InAdminMode[killerid] == 1)
  1794. {
  1795. format(string,sizeof(string),"[ADMIN KILL] Administrator %s(%d) has killed %s(%d) while in admin mode.",killername,killerid,pname,playerid);
  1796. SendClientMessageToAll(COLOR_ADMIN,string);
  1797. SetPlayerColor(playerid,COLOR_DEADCONNECT);
  1798. SetPlayerWantedLevel(playerid,0);
  1799. SendDeathMessage(killerid,playerid,reason);
  1800. return 1;
  1801. }
  1802. if(HasHit[playerid] >= 1)
  1803. {
  1804. GivePlayerMoney(killerid,HitMoney[playerid]);
  1805. IncreaseWantedLevel(killerid,6);
  1806.  
  1807. format(string, 128, "[[_Contract Kill_]] \nYou have killed %s(%d) for a hit contract and recieved $%d for the kill.",PlayerName(playerid),playerid,HitMoney[playerid]);
  1808. SendClientMessageToAll(COLOR_GREEN, string);
  1809. /*format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has murdered %s(%d) and has been caught on CCTV. Arrest the suspect ASAP.",killername,killerid,pname,playerid);
  1810. SendClientMessageToAllCops(string);*/
  1811.  
  1812. HasHit[playerid] =0;
  1813. HitMoney[playerid] =0;
  1814. SetPlayerWantedLevel(playerid,0);
  1815. SendDeathMessage(killerid,playerid,reason);
  1816. return 1;
  1817. }
  1818. }
  1819. }
  1820. SetPVarInt(playerid, "HasSTDs", 0);
  1821. SetPVarInt(playerid, "LastVehicle", 0);
  1822. SetPVarInt(playerid, "InEvent", 0);
  1823. SetPVarInt(playerid, "CalledForMedic", 0);
  1824. SetPVarInt(playerid, "IsSick", 0);
  1825. HasSecureWallet[playerid] =0;
  1826. playerCheckpoint[playerid] =0;
  1827. RobbingSupaSave[playerid] =0;
  1828. HasSecureWallet[playerid] =0;
  1829. IsSpawned[playerid] =0;
  1830. AttemptedToRobRecently[playerid] =0;
  1831. HasRobbedRecently[playerid] =0;
  1832. IsFrozen[playerid] =0;
  1833. IsKidnapped[playerid] =0;
  1834. InAdminMode[playerid] =0;
  1835. return 1;
  1836. }
  1837. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1838. {
  1839. if(PRESSED(262144))
  1840. {
  1841. /*SetPlayerHealth(playerid, 15);*/
  1842. return 1;
  1843. }
  1844.  
  1845. return 1;
  1846. }
  1847.  
  1848. public OnVehicleSpawn(vehicleid)
  1849. {
  1850. DestroyObject(obj[vehicleid]);
  1851. DestroyObject(obj2[vehicleid]);
  1852. Flasher[vehicleid] = 0;
  1853. if(vehicleid == AdminCar1)
  1854. {
  1855. ChangeVehiclePaintjob(AdminCar1, 1);
  1856. AddVehicleComponent(AdminCar1, 1026);
  1857. AddVehicleComponent(AdminCar1, 1027);
  1858. AddVehicleComponent(AdminCar1, 1028);
  1859. AddVehicleComponent(AdminCar1, 1032);
  1860. AddVehicleComponent(AdminCar1, 1141);
  1861. AddVehicleComponent(AdminCar1, 1169);
  1862. }
  1863. return 1;
  1864. }
  1865.  
  1866. public OnVehicleDeath(vehicleid, killerid)
  1867. {
  1868. DestroyObject(obj[vehicleid]);
  1869. DestroyObject(obj2[vehicleid]);
  1870. Flasher[vehicleid] = 0;
  1871. return 1;
  1872. }
  1873.  
  1874. public OnPlayerText(playerid, text[])
  1875. {
  1876. if(strfind(text, "rcon", true) != -1)
  1877. {
  1878. return 0;
  1879. }
  1880. if(strfind(text, "login",true) != -1)
  1881. {
  1882. return 0;
  1883. }
  1884. if(GetPVarInt(playerid, "Muted") == 1)
  1885. {
  1886. SendClientMessage(playerid, COLOR_ERROR, "You are muted. You cannot talk.");
  1887. return 0;
  1888. }
  1889. return 1;
  1890. }
  1891. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1892. {
  1893. return 1;
  1894. }
  1895.  
  1896. public OnPlayerExitVehicle(playerid, vehicleid)
  1897. {
  1898. new engine, lights, alarm, doors, bonnet, boot, objective;
  1899. new vid = GetPlayerVehicleID(playerid);
  1900. GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
  1901. if(doors == VEHICLE_PARAMS_ON)
  1902. {
  1903. SetVehicleParamsEx(vid, engine, lights, alarm, VEHICLE_PARAMS_OFF, bonnet, boot, objective);
  1904. SendClientMessage(playerid, COLOR_CYAN, "[VEHICLE] The doors have automatically unlocked.");
  1905. return 1;
  1906. }
  1907. return 1;
  1908. }
  1909.  
  1910. public OnPlayerStateChange(playerid, newstate, oldstate)
  1911. {
  1912. new oname[MAX_PLAYER_NAME];
  1913. GetPlayerName(playerid, oname, sizeof oname);
  1914. if(newstate == PLAYER_STATE_DRIVER)
  1915. {
  1916. if (IsArmyVehicle(GetPlayerVehicleID(playerid))) {
  1917. if(gTeam[playerid] !=Team_Army)
  1918. {
  1919. RemovePlayerFromVehicle(playerid);
  1920. SendClientMessage(playerid, COLOR_RED, "You are not an Army official. You cannot drive/fly an army vehicle.");
  1921. return 1;
  1922. }
  1923. }
  1924. if(GetPlayerVehicleID(playerid) == House4Car1 || GetPlayerVehicleID(playerid) == House4Car2)
  1925. {
  1926. if(!strcmp(House_Four_Owner, oname, true))
  1927. {
  1928. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1929. }
  1930. else {
  1931. RemovePlayerFromVehicle(playerid);
  1932. SendClientMessage(playerid, COLOR_RED, "This isn't your vehicle. You cannot drive it.");
  1933. return 1;
  1934. }
  1935. }
  1936. if(GetPlayerVehicleID(playerid) == House7Car1)
  1937. {
  1938. if(!strcmp(House_Seven_Owner, oname, true))
  1939. {
  1940. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1941. }
  1942. else {
  1943. RemovePlayerFromVehicle(playerid);
  1944. SendClientMessage(playerid, COLOR_RED, "This isn't your vehicle. You cannot drive it.");
  1945. return 1;
  1946. }
  1947. }
  1948.  
  1949. if(GetPlayerVehicleID(playerid) == House6Car1)
  1950. {
  1951. if(strcmp(House_Six_Owner, oname,true))
  1952. {
  1953. RemovePlayerFromVehicle(playerid);
  1954. SendClientMessage(playerid, COLOR_RED, "This isn't your vehicle. You cannot drive it.");
  1955. return 1;
  1956. }
  1957. SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
  1958. }
  1959. if (IsLSPDVehicle(GetPlayerVehicleID(playerid))) {
  1960. if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_FBI)
  1961. {
  1962. new string[120];
  1963. format(string, 120, "[CAR THEFT] %s has stolen a police vehicle.", PlayerInfo(playerid));
  1964. SendCopMessage(string);
  1965. format(string, 120, "Type /radiooff to turn off your police radio.");
  1966. SendCopMessage(string);
  1967. IncreaseWantedLevel(playerid, 2);
  1968. }
  1969. }
  1970. if(GetPlayerVehicleID(playerid) == AdminCar1 || GetPlayerVehicleID(playerid) == AdminCar2)
  1971. {
  1972. if(GetPVarInt(playerid, "AdminLevel") == 0)
  1973. {
  1974. SendClientMessage(playerid, COLOR_ADMIN, "You cannot drive the Admin Vehicle.");
  1975. RemovePlayerFromVehicle(playerid);
  1976. return 1;
  1977. }
  1978. SendClientMessage(playerid, COLOR_ADMIN, "Welcome to your Admin Only Vehicle!");
  1979. }
  1980. }
  1981. if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
  1982. ShowPlayerSpeedo(playerid);
  1983. SetPVarInt(playerid, "LastVehicle", GetPlayerVehicleID(playerid));
  1984. }
  1985. return 1;
  1986. }
  1987. public OnPlayerEnterCheckpoint(playerid)
  1988. {
  1989. if(getCheckpointType(playerid) == CP_StoreOne)
  1990. {
  1991. new string[200];
  1992. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet\nAttempt Robbery");
  1993. ShowPlayerDialog(playerid, DIALOG_STOREONE, DIALOG_STYLE_LIST,"69 Cent Store", string, "Okay", "Cancel");
  1994. return 1;
  1995. }
  1996. if(getCheckpointType(playerid) == CP_PrisonEnter)
  1997. {
  1998. SetPlayerInterior(playerid, 10);
  1999. SetPlayerPos(playerid, 242.2959,109.6138,1003.2188);
  2000. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  2001. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] Welcome to the Los Santos Prison. Don't try anything stupid.");
  2002. return 1;
  2003. }
  2004. if(getCheckpointType(playerid) == CP_PrisonExit)
  2005. {
  2006. SetPlayerInterior(playerid, 0);
  2007. SetPlayerPos(playerid, 1481.3938,-1763.8625,18.7958);
  2008. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  2009. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] We hope you enjoyed your stay in the Los Santos Prison.");
  2010. return 1;
  2011. }
  2012. if(getCheckpointType(playerid) == CP_BankEnter)
  2013. {
  2014. if(IsPlayerInAnyVehicle(playerid))
  2015. {
  2016. return SendClientMessage(playerid, COLOR_RED, "You Cannot enter while in a vehicle.");
  2017. }
  2018. SetPlayerInterior(playerid, 0);
  2019. SetPlayerPos(playerid, 2313.4858,-14.6773,26.7422);
  2020. SendClientMessage(playerid, COLOR_GREY,"**LOS SANTOS BANK**");
  2021. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[BANK] We hope you invest your money with us today!");
  2022. return 1;
  2023. }
  2024. if(getCheckpointType(playerid) == CP_BankExit)
  2025. {
  2026. SetPlayerInterior(playerid, 0);
  2027. SetPlayerPos(playerid,1516.7577,-1057.4893,25.0625);
  2028. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
  2029. SendClientMessage(playerid, COLOR_BLUE, "[BANK] We hope you enjoyed your stay!");
  2030. return 1;
  2031. }
  2032. if(getCheckpointType(playerid) == CP_Bank)
  2033. {
  2034. new string[120];
  2035. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
  2036. format(string, 120, "Welcome back, %s!", PlayerInfo(playerid));
  2037. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  2038. SendClientMessage(playerid, COLOR_LIME, "How may we help you today, sir?");
  2039. SendClientMessage(playerid, COLOR_CYAN, "Type /bankstate to find out your bankstate. Type /withdraw (AMOUNT) to take out money. Type /emptypack to deposit your pack.");
  2040. SendClientMessage(playerid, COLOR_CYAN, "Type /transfer (ID) (amount) to transfer a player money. Type /deposit (amount) to deposit money.");
  2041. SendClientMessage(playerid, COLOR_CYAN, "If that doesn't do for you, type /robbank to attempt robbery.");
  2042. return 1;
  2043. }
  2044. if(getCheckpointType(playerid) == CP_BuyExp)
  2045. {
  2046. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BOMB SHOP**");
  2047. if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_RED, "Sorry, we do not accept your kind.");
  2048. SendClientMessage(playerid, COLOR_BLUE, "If you're intereseted into buying some explosives, type /buyexp");
  2049. return 1;
  2050. }
  2051. if(getCheckpointType(playerid) == CP_AdminHouse)
  2052. {
  2053. SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
  2054. SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House.");
  2055. if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_RED, "You cannot enter the Admin House.");
  2056. SetPlayerPos(playerid, 2320.0864,-1020.3311,1050.2109);
  2057. SetPlayerInterior(playerid, 9);
  2058. SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House. Please enjoy your stay.");
  2059. return 1;
  2060. }
  2061. if(getCheckpointType(playerid) == CP_AdminHouseExit)
  2062. {
  2063. SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
  2064. SendClientMessage(playerid, COLOR_HOUSE, "Hope you enjoyed your stay at the Admin House.");
  2065. SetPlayerPos(playerid, 977.4326,-764.2095,112.2005);
  2066. SetPlayerInterior(playerid, 0);
  2067. return 1;
  2068. }
  2069. if(getCheckpointType(playerid) == CP_SexShopEnter)
  2070. {
  2071. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  2072. SendClientMessage(playerid, COLOR_PINK, "Welcome to the South Los Santos Sex Shop! Please go by the counter to statisfy your sexual needs");
  2073. SetPlayerPos(playerid, -100.2078,-20.4230,1000.7188);
  2074. SetPlayerInterior(playerid, 3);
  2075. return 1;
  2076. }
  2077. if(getCheckpointType(playerid) == CP_SexShopExit)
  2078. {
  2079. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  2080. SendClientMessage(playerid, COLOR_PINK, "We hope you enjoyed your time in the Los Santos Sex Shop. We sure did like you :)");
  2081. SetPlayerPos(playerid,1946.5485,-2119.4226,13.5480);
  2082. SetPlayerInterior(playerid, 0);
  2083. return 1;
  2084. }
  2085. if(getCheckpointType(playerid) == CP_SexShopCounter)
  2086. {
  2087. SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
  2088. SendClientMessage(playerid, COLOR_PINK, "Please choose something from the menu!");
  2089. 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");
  2090. return 1;
  2091. }
  2092. if(getCheckpointType(playerid) == CP_GasOneEnter)
  2093. {
  2094. SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
  2095. SendClientMessage(playerid, COLOR_GREY, "Welcome to the Gas Station! Please go by the counter to buy something.");
  2096. SetPlayerPos(playerid, -25.5497,-183.2443,1003.5469);
  2097. SetPlayerInterior(playerid, 17);
  2098. return 1;
  2099. }
  2100. if(getCheckpointType(playerid) == CP_GasOneCounter)
  2101. {
  2102. new string[200];
  2103. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet\nAttempt Robbery");
  2104. ShowPlayerDialog(playerid, DIALOG_GASONE, DIALOG_STYLE_LIST,"Gas Station Store", string, "Okay", "Cancel");
  2105. return 1;
  2106. }
  2107. if(getCheckpointType(playerid) == CP_GasOneExit)
  2108. {
  2109. SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
  2110. SendClientMessage(playerid, COLOR_GREY, "We hope you enjoyed your stay at out gas station!");
  2111. SetPlayerPos(playerid,1932.1599,-1785.1970,13.3828);
  2112. SetPlayerInterior(playerid, 0);
  2113. return 1;
  2114. }
  2115. if(getCheckpointType(playerid) == CP_DanceCounter)
  2116. {
  2117. SendClientMessage(playerid, COLOR_GREY, "**DANCE DANCE REVOLUTION**");
  2118. SendClientMessage(playerid, COLOR_GREEN, "Welcome to Dance Dance Revolution! Select an option on the menu!");
  2119. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /robstore to attempt robbery.");
  2120. return 1;
  2121. }
  2122. if(getCheckpointType(playerid) == CP_AmmoRob)
  2123. {
  2124. SendClientMessage(playerid, COLOR_GREY, "**CENTRAL LOS SANTOS AMMUNATION**");
  2125. SendClientMessage(playerid, COLOR_RED, "Type /robstore to attempt robbery.");
  2126. return 1;
  2127. }
  2128. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  2129. {
  2130. SendClientMessage(playerid, COLOR_RED, "[BURGER SHOT] Type /robstore to attempt robbery.");
  2131. return 1;
  2132. }
  2133. if(getCheckpointType(playerid) == CP_Hospital)
  2134. {
  2135. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
  2136. 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!");
  2137. Hospital(playerid);
  2138. return 1;
  2139. }
  2140. if(getCheckpointType(playerid) == CP_Tatoo)
  2141. {
  2142. SendClientMessage(playerid, COLOR_GREY, "**TATOO PARLOR**");
  2143. SendClientMessage(playerid, COLOR_GREY, "Welcome to the Tatoo Parlor. Type /robstore to attempt robbery.");
  2144. return 1;
  2145. }
  2146. if(getCheckpointType(playerid) == CP_LSHospital)
  2147. {
  2148. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
  2149. 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!");
  2150. Hospital(playerid);
  2151. return 1;
  2152. }
  2153. if(getCheckpointType(playerid) == CP_PigPenRob)
  2154. {
  2155. SendClientMessage(playerid, COLOR_PINK, "**PIG PEN CLUB**");
  2156. SendClientMessage(playerid, COLOR_GREY, "Type /robstore to attempt robbery.");
  2157. return 1;
  2158. }
  2159. if(getCheckpointType(playerid) == CP_LSAirportBlow)
  2160. {
  2161. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Airport up.");
  2162. return 1;
  2163. }
  2164. if(getCheckpointType(playerid) == CP_ParkBlow)
  2165. {
  2166. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Amusement park up.");
  2167. return 1;
  2168. }
  2169. if(getCheckpointType(playerid) == CP_RobStore1)
  2170. {
  2171. SendClientMessage(playerid, COLOR_GREY, "**24/7 Gas Station**");
  2172. SendClientMessage(playerid, COLOR_GREY, "Please select something from the menu.");
  2173. StoreRob(playerid);
  2174. return 1;
  2175. }
  2176. if(getCheckpointType(playerid) == CP_VinewoodBlow)
  2177. {
  2178. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Vinewood Sign.");
  2179. return 1;
  2180. }
  2181. if(getCheckpointType(playerid) == CP_BankBlow)
  2182. {
  2183. SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Bank.");
  2184. return 1;
  2185. }
  2186. if(getCheckpointType(playerid) == CP_DrugHouse)
  2187. {
  2188. SendClientMessage(playerid, COLOR_GREY, "**DRUG HOUSE**");
  2189. SendClientMessage(playerid, COLOR_GREY, "[DRUG HOUSE] Where your high is sooner than you think!");
  2190. if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Army && gTeam[playerid] != Team_FBI)
  2191. {
  2192. 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");
  2193. return 1;
  2194. }
  2195. SendClientMessage(playerid, COLOR_GREY, "Wait, did we say drug house? Umm..... we're not, that's next door.");
  2196. return 1;
  2197. }
  2198. if(getCheckpointType(playerid) == CP_Suburban)
  2199. {
  2200. SendClientMessage(playerid, COLOR_BLUE, "Type /robstore to attempt to rob Suburban.");
  2201. return 1;
  2202. }
  2203. if(getCheckpointType(playerid) == CP_Binco)
  2204. {
  2205. SendClientMessage(playerid, COLOR_BLUE, "Type /robstore to attempt to rob Binco.");
  2206. return 1;
  2207. }
  2208. if(getCheckpointType(playerid) == CP_WellStacked)
  2209. {
  2210. SendClientMessage(playerid, COLOR_BLUE, "Type /robstore to attempt to rob Well Stacked Pizza.");
  2211. return 1;
  2212. }
  2213. if(getCheckpointType(playerid) == CP_DrugP1)
  2214. {
  2215. SendClientMessage(playerid, COLOR_GREY, "**San Fiero Drug House**");
  2216. 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");
  2217. return 1;
  2218. }
  2219. if(getCheckpointType(playerid) == CP_SupaSaveEnt)
  2220. {
  2221. SendClientMessage(playerid, COLOR_LIGHTBLUE, "**SupaSave**");
  2222. if(IsPlayerInAnyVehicle(playerid))
  2223. {
  2224. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2225. return 1;
  2226. }
  2227. SetPlayerInterior(playerid,10);
  2228. SetPlayerPos(playerid,6.0945,-24.1830,1003.5494);
  2229. SetPlayerFacingAngle(playerid,358.1200);
  2230. SetCameraBehindPlayer(playerid);
  2231. return 1;
  2232. }
  2233. if(getCheckpointType(playerid) == CP_DNTEnter)
  2234. {
  2235. SendClientMessage(playerid, COLOR_LIGHTBLUE, "**Rusty browns donuts**");
  2236. if(IsPlayerInAnyVehicle(playerid))
  2237. {
  2238. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2239. return 1;
  2240. }
  2241. SetPlayerInterior(playerid,17);
  2242. SetPlayerPos(playerid,381.169189,-188.803024,1000.632812);
  2243. SetPlayerFacingAngle(playerid,358.1200);
  2244. SetCameraBehindPlayer(playerid);
  2245. return 1;
  2246. }
  2247. if(getCheckpointType(playerid) == CP_DNTExit)
  2248. {
  2249. if(IsPlayerInAnyVehicle(playerid))
  2250. {
  2251. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2252. return 1;
  2253. }
  2254. SendClientMessage(playerid,COLOR_ERROR,"Hope You Like Rusty browns donuts");
  2255. SetPlayerInterior(playerid,0);
  2256. SetPlayerPos(playerid,1033.7906,-1338.2256,13.7266);
  2257. SetPlayerFacingAngle(playerid,17.0794);
  2258. SetCameraBehindPlayer(playerid);
  2259. return 1;
  2260. }
  2261. if(getCheckpointType(playerid) == CP_SupaSaveExit)
  2262. {
  2263. if(IsPlayerInAnyVehicle(playerid))
  2264. {
  2265. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2266. return 1;
  2267. }
  2268. SetPlayerInterior(playerid,0);
  2269. SetPlayerPos(playerid,-2445.4060,749.0485,35.1719);
  2270. SetPlayerFacingAngle(playerid,181.7117);
  2271. SetCameraBehindPlayer(playerid);
  2272. return 1;
  2273. }
  2274. if(getCheckpointType(playerid) == CP_SupaSaveMain)
  2275. {
  2276. if(IsPlayerInAnyVehicle(playerid))
  2277. {
  2278. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2279. return 1;
  2280. }
  2281. new string[200];
  2282. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet");
  2283. ShowPlayerDialog(playerid, DIALOG_SupaSaveMain, DIALOG_STYLE_LIST,"SupaSave Store", string, "Okay", "Cancel");
  2284. return 1;
  2285. }
  2286. if(getCheckpointType(playerid) == CP_BARMAIN)
  2287. {
  2288. if(IsPlayerInAnyVehicle(playerid))
  2289. {
  2290. SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
  2291. return 1;
  2292. }
  2293. new string[200];
  2294. format(string, 200, "Beer\nAttempt Robbery");
  2295. ShowPlayerDialog(playerid, DIALOG_BARMAIN, DIALOG_STYLE_LIST,"Bar Counter", string, "Okay", "Cancel");
  2296. return 1;
  2297. }
  2298. if(getCheckpointType(playerid) == CP_Airport || getCheckpointType(playerid) == CP_SFAirport || getCheckpointType(playerid) == CP_LVAirport)
  2299. {
  2300. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to the Los Santos Air Port. If you wish to buy a ticket, please do so below.");
  2301. ShowPlayerDialog(playerid, DIALOG_PORT, DIALOG_STYLE_LIST, "Welcome to the Air Port. Select a Destination", "San Fierro\nLas Venturas\nLos Santos", "Okay", "Cancel");
  2302. return 1;
  2303. }
  2304. //Houses below (only)
  2305. new string[120];
  2306. new oname[MAX_PLAYER_NAME];
  2307. GetPlayerName(playerid, oname, sizeof oname);
  2308. if(getCheckpointType(playerid) == CP_HouseOneEnter)
  2309. {
  2310. format(string, 120, "[HOUSE] %s", House_One_Name);
  2311. SendClientMessage(playerid, COLOR_GREY, string);
  2312. if(!strcmp(HOUSE_ONE_OWNER, oname, true))
  2313. {
  2314. SetPlayerInterior(playerid, 3);
  2315. SetPlayerPos(playerid, 234.2559,1190.5710,1080.2578);
  2316. SendClientMessage(playerid, COLOR_GREY, "Welcome back!");
  2317. return 1;
  2318. }
  2319. return SendClientMessage(playerid, COLOR_RED, "You do not have the keys to this house.");
  2320. }
  2321. if(getCheckpointType(playerid) == CP_HouseOneExit)
  2322. {
  2323. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
  2324. SendClientMessage(playerid, COLOR_GREY, string);
  2325. SetPlayerPos(playerid, 2486.2502,-1650.7339,13.4805);
  2326. SetPlayerInterior(playerid, 0);
  2327. SetPlayerFacingAngle(playerid, 0.1821934);
  2328. SetCameraBehindPlayer(playerid);
  2329. return 1;
  2330. }
  2331. if(getCheckpointType(playerid) == CP_HouseTwoEnter)
  2332. {
  2333. format(string, 120, "[HOUSE] %s", House_Two_Name);
  2334. SendClientMessage(playerid, COLOR_GREY, string);
  2335. if(!strcmp(House_Two_Owner, oname, true))
  2336. {
  2337. SetPlayerInterior(playerid, 5);
  2338. SetPlayerPos(playerid, 233.0603,1114.2969,1080.9922);
  2339. SetCameraBehindPlayer(playerid);
  2340. SetPlayerFacingAngle(playerid, 0.2686274);
  2341. SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
  2342. return 1;
  2343. }
  2344. return SendClientMessage(playerid, COLOR_RED, "You do not have the permission to enter this house.");
  2345. }
  2346. if(getCheckpointType(playerid) == CP_HouseTwoExit)
  2347. {
  2348. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
  2349. SendClientMessage(playerid, COLOR_GREY, string);
  2350. SetPlayerPos(playerid, 1985.9744,-1718.7900,15.9696);
  2351. SetPlayerInterior(playerid, 0);
  2352. return 1;
  2353. }
  2354. if(getCheckpointType(playerid) == CP_HouseThreeEnter)
  2355. {
  2356. format(string,120, "[HOUSE] %s", House_Three_Name);
  2357. SendClientMessage(playerid, COLOR_GREY, string);
  2358. if(!strcmp(House_Three_Owner, oname, true))
  2359. {
  2360. SetPlayerInterior(playerid, 1);
  2361. SetPlayerPos(playerid, 223.1494,1291.0422,1082.1406);
  2362. SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
  2363. SetCameraBehindPlayer(playerid);
  2364. return 1;
  2365. }
  2366. return SendClientMessage(playerid, COLOR_RED, "You do not have permission to enter this house.");
  2367. }
  2368. if(getCheckpointType(playerid) == CP_HouseThreeExit)
  2369. {
  2370. format(string, 210, "[HOUSE] Hope you enjoyed your stay in %s", House_Three_Name);
  2371. SendClientMessage(playerid, COLOR_GREY, string);
  2372. SetPlayerPos(playerid,280.7995,-1772.5166,4.3760);
  2373. SetPlayerInterior(playerid, 0);
  2374. SetCameraBehindPlayer(playerid);
  2375. return 1;
  2376. }
  2377. if(getCheckpointType(playerid) == CP_HouseFourEnter)
  2378. {
  2379. format(string, 120, "[HOUSE] %s", House_Four_Name);
  2380. SendClientMessage(playerid, COLOR_GREY, string);
  2381. if(!strcmp(House_Four_Owner, oname, true))
  2382. {
  2383. SetPlayerInterior(playerid, 10);
  2384. SetPlayerPos(playerid, 27.9228,1341.7559,1084.3750);
  2385. SetCameraBehindPlayer(playerid);
  2386. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2387. return 1;
  2388. }
  2389. return SendClientMessage(playerid, COLOR_RED, "You do not ahve the permission to enter this house.");
  2390. }
  2391. if(getCheckpointType(playerid) == CP_HouseFourExit)
  2392. {
  2393. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Four_Name);
  2394. SendClientMessage(playerid, COLOR_GREY, string);
  2395. SetPlayerPos(playerid, 193.7315,-1307.1362,70.2484);
  2396. SetPlayerInterior(playerid, 0);
  2397. SetCameraBehindPlayer(playerid);
  2398. return 1;
  2399. }
  2400. if(getCheckpointType(playerid) == CP_HouseFiveEnter)
  2401. {
  2402. format(string, 120, "[HOUSE] %s", House_Five_Name);
  2403. SendClientMessage(playerid, COLOR_GREY, string);
  2404. if(!strcmp(House_Five_Owner,oname,true))
  2405. {
  2406. SetPlayerPos(playerid, 22.7003,1408.2192,1084.4297);
  2407. SetPlayerInterior(playerid, 5);
  2408. SetCameraBehindPlayer(playerid);
  2409. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2410. return 1;
  2411. }
  2412. return SendClientMessage(playerid, COLOR_RED, "You do not have the permission to enter this house.");
  2413. }
  2414. if(getCheckpointType(playerid) == CP_HouseFiveExit)
  2415. {
  2416. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Five_Name);
  2417. SendClientMessage(playerid, COLOR_GREY, string);
  2418. SetPlayerPos(playerid,348.2536,-1192.8020,76.5156);
  2419. SetPlayerInterior(playerid, 0);
  2420. SetCameraBehindPlayer(playerid);
  2421. return 1;
  2422. }
  2423. if(getCheckpointType(playerid) == CP_HouseSixEnter)
  2424. {
  2425. format(string, 120, "[HOUSE] %s", House_Six_Name);
  2426. SendClientMessage(playerid, COLOR_GREY, string);
  2427. if(!strcmp(House_Six_Owner, oname, true))
  2428. {
  2429. SetPlayerPos(playerid, 447.1404,1401.7974,1084.3120);
  2430. SetPlayerInterior(playerid, 2);
  2431. SetCameraBehindPlayer(playerid);
  2432. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2433. return 1;
  2434. }
  2435. return SendClientMessage(playerid, COLOR_RED, "You do not have the permission to enter this house.");
  2436. }
  2437. if(getCheckpointType(playerid) == CP_HouseSixExit)
  2438. {
  2439. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Six_Name);
  2440. SendClientMessage(playerid, COLOR_GREY, string);
  2441. SetPlayerPos(playerid, 984.8436,-830.5888,95.4686);
  2442. SetCameraBehindPlayer(playerid);
  2443. SetPlayerInterior(playerid, 0);
  2444. return 1;
  2445. }
  2446. if(getCheckpointType(playerid) == CP_HouseSevenEnter)
  2447. {
  2448. format(string, 120, "[HOUSE] %s", House_Seven_Name);
  2449. SendClientMessage(playerid, COLOR_GREY, string);
  2450. if(!strcmp(House_Seven_Owner, oname, true))
  2451. {
  2452. SetPlayerPos(playerid,234.5786,1068.7251,1084.2084);
  2453. SetPlayerInterior(playerid, 6);
  2454. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2455. SetCameraBehindPlayer(playerid);
  2456. return 1;
  2457. }
  2458. return SendClientMessage(playerid, COLOR_RED, "You do not have the permission to enter this house.");
  2459. }
  2460. if(getCheckpointType(playerid) == CP_HouseSevenExit)
  2461. {
  2462. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Seven_Name);
  2463. SendClientMessage(playerid, COLOR_GREY, string);
  2464. SetPlayerPos(playerid,1095.1383,-643.1854,113.0625);
  2465. SetPlayerInterior(playerid, 0);
  2466. SetCameraBehindPlayer(playerid);
  2467. return 1;
  2468. }
  2469. if(getCheckpointType(playerid) == CP_HouseEightEnter)
  2470. {
  2471. format(string, 120, "[HOUSE] %s", House_Eight_Name);
  2472. SendClientMessage(playerid, COLOR_GREY, string);
  2473. if(!strcmp(House_Eight_Owner, oname, true))
  2474. {
  2475. SetPlayerPos(playerid, 2263.3396,-1135.9362,1050.6328);
  2476. SetPlayerInterior(playerid, 10);
  2477. SetCameraBehindPlayer(playerid);
  2478. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2479. return 1;
  2480. }
  2481. return SendClientMessage(playerid, COLOR_RED, "You do not have permission to enter this house.");
  2482. }
  2483. if(getCheckpointType(playerid) == CP_HouseEightExit)
  2484. {
  2485. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Eight_Name);
  2486. SendClientMessage(playerid, COLOR_GREY, string);
  2487. SetPlayerPos(playerid, 2095.5596,-1278.4520,25.4941);
  2488. SetPlayerInterior(playerid, 0);
  2489. return 1;
  2490. }
  2491. if(getCheckpointType(playerid) == CP_HouseNineEnter)
  2492. {
  2493. format(string, 120, "[HOUSE] %s", House_Nine_Name);
  2494. SendClientMessage(playerid, COLOR_GREY, string);
  2495. if(!strcmp(House_Nine_Owner, oname, true))
  2496. {
  2497. SetPlayerPos(playerid, 2461.5542,-1698.4072,1013.5078);
  2498. SetPlayerInterior(playerid, 2);
  2499. SetCameraBehindPlayer(playerid);
  2500. SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
  2501. return 1;
  2502. }
  2503. return SendClientMessage(playerid, COLOR_RED, "You do not have permission to enter this home.");
  2504. }
  2505. if(getCheckpointType(playerid) == CP_HouseNineExit)
  2506. {
  2507. format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Nine_Name);
  2508. SendClientMessage(playerid, COLOR_GREY, string);
  2509. SetCameraBehindPlayer(playerid);
  2510. SetPlayerPos(playerid,2110.7129,-1238.3899,25.4785);
  2511. SetPlayerInterior(playerid, 0);
  2512. return 1;
  2513. }
  2514. if(getCheckpointType(playerid) == CP_SupaSaveRob)
  2515. {
  2516. SendClientMessage(playerid, COLOR_BLUE, "Type /robstore to attempt to rob SupaSave Store.");
  2517. return 1;
  2518. }
  2519. return 1;
  2520. }
  2521.  
  2522. public FlasherFunc() {
  2523. new panelsx,doorsx,lightsx,tiresx;
  2524. for (new p=0; p<MAX_VEHICLES; p++)
  2525. {
  2526. if (Flasher[p] == 1)
  2527. {
  2528. if (FlasherState[p] == 1)
  2529. {
  2530. GetVehicleDamageStatus(p,panelsx,doorsx,lightsx,tiresx);
  2531. UpdateVehicleDamageStatus(p, panelsx, doorsx, 4, tiresx);
  2532. FlasherState[p] = 0;
  2533. }
  2534. else
  2535. {
  2536. GetVehicleDamageStatus(p,panelsx,doorsx,lightsx,tiresx);
  2537. UpdateVehicleDamageStatus(p, panelsx, doorsx, 1, tiresx);
  2538. FlasherState[p] = 1;
  2539. }
  2540. }
  2541. }
  2542. return 1;
  2543. }
  2544.  
  2545. public OnPlayerLeaveCheckpoint(playerid)
  2546. {
  2547. if(getCheckpointType(playerid) == CP_StoreOne)
  2548. {
  2549. if(GetPVarInt(playerid, "Robbing69CentStore") == 1)
  2550. {
  2551. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You have left the checkpoint, you have failed the robbery.");
  2552. SetPVarInt(playerid, "Robbing69CentStore", 0);
  2553. SetGVarInt("69CentStoreBeingRobbed", 0);
  2554. return 1;
  2555. }
  2556. return 1;
  2557. }
  2558. if(getCheckpointType(playerid) == CP_SexShopCounter)
  2559. {
  2560. if(GetPVarInt(playerid, "RobbingSouthSex") >=1)
  2561. {
  2562. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2563. SetPVarInt(playerid, "RobbingSouthSex", 0);
  2564. return 1;
  2565. }
  2566. return 1;
  2567. }
  2568. if(getCheckpointType(playerid) == CP_GasOneCounter)
  2569. {
  2570. if(GetPVarInt(playerid, "RobbingGasOne") >= 1)
  2571. {
  2572. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2573. SetPVarInt(playerid, "RobbingGasOne", 0);
  2574. return 1;
  2575. }
  2576. return 1;
  2577. }
  2578. if(getCheckpointType(playerid) == CP_DanceCounter)
  2579. {
  2580. if(GetPVarInt(playerid, "RobbingDanceDance") >= 1)
  2581. {
  2582. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2583. SetPVarInt(playerid, "RobbingDanceDance", 0);
  2584. return 1;
  2585. }
  2586. return 1;
  2587. }
  2588. if(getCheckpointType(playerid) == CP_AmmoRob)
  2589. {
  2590. if(GetPVarInt(playerid, "RobbingAmmo") >=1)
  2591. {
  2592. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2593. SetPVarInt(playerid, "RobbingAmmo", -1);
  2594. return 1;
  2595. }
  2596. return 1;
  2597. }
  2598. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  2599. {
  2600. if(GetPVarInt(playerid, "RobbingBurgerShot") >=1)
  2601. {
  2602. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2603. SetPVarInt(playerid, "RobbingBurgerShot", -1);
  2604. return 1;
  2605. }
  2606. return 1;
  2607. }
  2608. if(getCheckpointType(playerid) == CP_Tatoo)
  2609. {
  2610. if(GetPVarInt(playerid, "RobbingTatooShop") >= 1)
  2611. {
  2612. SetPVarInt(playerid, "RobbingTatooShop", -1);
  2613. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2614. return 1;
  2615. }
  2616. return 1;
  2617. }
  2618. if(getCheckpointType(playerid) == CP_PigPenRob)
  2619. {
  2620. if(GetPVarInt(playerid, "RobbingPigPen") >=1)
  2621. {
  2622. SetPVarInt(playerid, "RobbingPigPen", -1);
  2623. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2624. return 1;
  2625. }
  2626. return 1;
  2627. }
  2628. if(getCheckpointType(playerid) == CP_RobStore1)
  2629. {
  2630. if(GetPVarInt(playerid, "RobbingGasStation") > 1)
  2631. {
  2632. SetPVarInt(playerid, "RobbingGasStation", -1);
  2633. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2634. return 1;
  2635. }
  2636. return 1;
  2637. }
  2638. if(getCheckpointType(playerid) == CP_DrugHouse)
  2639. {
  2640. if(GetPVarInt(playerid, "RobbingDrugHouse") > 1)
  2641. {
  2642. SetPVarInt(playerid, "RobbingDrugHouse", -1);
  2643. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2644. return 1;
  2645. }
  2646. }
  2647. if(getCheckpointType(playerid) == CP_Suburban)
  2648. {
  2649. if(GetPVarInt(playerid, "RobbingSuburban") > 1)
  2650. {
  2651. SetPVarInt(playerid, "RobbingSuburban", -1);
  2652. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoing.");
  2653. return 1;
  2654. }
  2655. return 1;
  2656. }
  2657. if(getCheckpointType(playerid) == CP_Binco)
  2658. {
  2659. if(GetPVarInt(playerid, "RobbingBinco") > 1)
  2660. {
  2661. SetPVarInt(playerid, "RobbingBinco", -1);
  2662. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2663. return 1;
  2664. }
  2665. return 1;
  2666. }
  2667. if(getCheckpointType(playerid) == CP_BARMAIN)
  2668. {
  2669. if(RobbingBARMAIN[playerid] >= 1)
  2670. {
  2671. SendClientMessage(playerid,COLOR_ERROR,"Bar robbery attempt failed. You left the checkpoint ..");
  2672. RobbingBARMAIN[playerid] =0;
  2673. return 1;
  2674. }
  2675. return 1;
  2676. }
  2677. if(getCheckpointType(playerid) == CP_WellStacked)
  2678. {
  2679. if(GetPVarInt(playerid, "RobbingPizza") > 1)
  2680. {
  2681. SetPVarInt(playerid, "RobbingPizza", -1);
  2682. SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
  2683. return 1;
  2684. }
  2685. return 1;
  2686. }
  2687. if(getCheckpointType(playerid) == CP_SupaSaveRob)
  2688. {
  2689. if(RobbingSupaSave[playerid] >= 1)
  2690. {
  2691. SendClientMessage(playerid,COLOR_ERROR,"Supa Save robbery attempt failed. You left the checkpoint ..");
  2692. RobbingSupaSave[playerid] =0;
  2693. return 1;
  2694. }
  2695. }
  2696. return 1;
  2697. }
  2698. public OnPlayerEnterRaceCheckpoint(playerid)
  2699. {
  2700. return 1;
  2701. }
  2702.  
  2703. public OnPlayerLeaveRaceCheckpoint(playerid)
  2704. {
  2705. return 1;
  2706. }
  2707.  
  2708. public OnRconCommand(cmd[])
  2709. {
  2710. return 1;
  2711. }
  2712.  
  2713. public OnPlayerRequestSpawn(playerid)
  2714. {
  2715. if(gTeam[playerid] == Team_Army && GetPVarInt(playerid, "ArmyPermission") == 0)
  2716. {
  2717. GameTextForPlayer(playerid, "~p~You cannot play as army.", 5000, 3);
  2718. return 0;
  2719. }
  2720. if(gTeam[playerid] == Team_FBI && GetPlayerScore(playerid) < 400)
  2721. {
  2722. GameTextForPlayer(playerid, "~b~You cannot play as FBI.", 5000, 3);
  2723. return 0;
  2724. }
  2725. if(gTeam[playerid] == Team_Cop && GetPlayerScore(playerid) < 20)
  2726. {
  2727. GameTextForPlayer(playerid, "~b~You must have 20 score to play as cop.", 5000, 3);
  2728. return 0;
  2729. }
  2730. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI )
  2731. {
  2732. if(GetPVarInt(playerid, "WantedLevel") != 0)
  2733. {
  2734. GameTextForPlayer(playerid, "~r~You had a wanted level at your last gameplay. ~n~ You cannot play as cop/army", 5000, 3);
  2735. return 0;
  2736. }
  2737. }
  2738. return 1;
  2739. }
  2740.  
  2741. public OnObjectMoved(objectid)
  2742. {
  2743. return 1;
  2744. }
  2745.  
  2746. public OnPlayerObjectMoved(playerid, objectid)
  2747. {
  2748. return 1;
  2749. }
  2750.  
  2751. public OnPlayerPickUpPickup(playerid, pickupid)
  2752. {
  2753. return 1;
  2754. }
  2755.  
  2756. public OnVehicleMod(playerid, vehicleid, componentid)
  2757. {
  2758. return 1;
  2759. }
  2760.  
  2761. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  2762. {
  2763. return 1;
  2764. }
  2765.  
  2766. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  2767. {
  2768. return 1;
  2769. }
  2770.  
  2771. public OnPlayerSelectedMenuRow(playerid, row)
  2772. {
  2773. return 1;
  2774. }
  2775.  
  2776. public OnPlayerExitedMenu(playerid)
  2777. {
  2778. return 1;
  2779. }
  2780.  
  2781. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  2782. {
  2783. return 1;
  2784. }
  2785.  
  2786. public OnRconLoginAttempt(ip[], password[], success)
  2787. {
  2788. return 1;
  2789. }
  2790.  
  2791. public OnPlayerUpdate(playerid)
  2792. {
  2793. WantedLevelColor(playerid);
  2794. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2795. {
  2796. for(new i = 0; i < sizeof(SInfo); i ++)
  2797. {
  2798. if(IsPlayerInRangeOfPoint(playerid, 4.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
  2799. {
  2800. if(SInfo[i][SpikeCreated] == 1)
  2801. {
  2802. new panels, doors, lights, tires;
  2803. new carid = GetPlayerVehicleID(playerid);
  2804. GetVehicleDamageStatus(carid, panels, doors, lights, tires);
  2805. tires = encode_tires(1, 1, 1, 1);
  2806. UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  2807. return 0;
  2808. }
  2809. }
  2810. }
  2811. }
  2812. return 1;
  2813. }
  2814.  
  2815. public OnPlayerStreamIn(playerid, forplayerid)
  2816. {
  2817. return 1;
  2818. }
  2819.  
  2820. public OnPlayerStreamOut(playerid, forplayerid)
  2821. {
  2822. return 1;
  2823. }
  2824.  
  2825. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2826. {
  2827. new string[200];
  2828. if(dialogid == DIALOG_REGISTER)
  2829. {
  2830. if(response == 0)
  2831. {
  2832. SendClientMessage(playerid, COLOR_RED, "You must register using a password first.");
  2833. RegisterPlayer(playerid);
  2834. return 1;
  2835. }
  2836. if(response == 1)
  2837. {
  2838. if(udb_Exists(PlayerName(playerid)))
  2839. {
  2840. SendClientMessage(playerid, COLOR_RED, "This player name is already registered. Please login.");
  2841. return 1;
  2842. }
  2843. if(strlen(inputtext) ==0)
  2844. {
  2845. SendClientMessage(playerid, COLOR_RED, "Please enter a password below.");
  2846. RegisterPlayer(playerid);
  2847. return 1;
  2848. }
  2849. if(udb_Create(PlayerName(playerid),inputtext))
  2850. {
  2851. SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have registerd. Your stats will save when you leave the game.");
  2852. LogPlayer(playerid);
  2853. PLAYERLIST_authed[playerid] = true;
  2854. dUserSetINT(PlayerName(playerid)).("Score", 0);
  2855. dUserSetINT(PlayerName(playerid)).("Cash", 1000);
  2856. dUserSetINT(PlayerName(playerid)).("BankCash", 5000);
  2857. dUserSetINT(PlayerName(playerid)).("AdminLevel", 0);
  2858. dUserSetINT(PlayerName(playerid)).("Banned", 0);
  2859. dUserSetINT(PlayerName(playerid)).("WantedLevel", 0);
  2860. dUserSetINT(PlayerName(playerid)).("Warnings", 0);
  2861. dUserSetINT(PlayerName(playerid)).("PackCash", 0);
  2862. dUserSetINT(PlayerName(playerid)).("ArmyPermission", 0);
  2863. dUserSetINT(PlayerName(playerid)).("PackPot", 0);
  2864. dUserSetINT(PlayerName(playerid)).("PackPipe", 0);
  2865. dUserSetINT(PlayerName(playerid)).("PackCondom", 0);
  2866. dUserSetINT(PlayerName(playerid)).("PackSnack", 0);
  2867. dUserSetINT(PlayerName(playerid)).("PackWallet", 0);
  2868. dUserSetINT(PlayerName(playerid)).("PackExp", 0);
  2869. dUserSetINT(PlayerName(playerid)).("HasPack", 0);
  2870. dUserSetINT(PlayerName(playerid)).("RobSkill", 0);
  2871. dUserSetINT(PlayerName(playerid)).("TerrorSkill", 0);
  2872. new pIP[16]; GetPlayerIp(playerid, pIP, 16);
  2873. dUserSet(PlayerName(playerid)).("IP", pIP);
  2874. }
  2875. return true;
  2876. }
  2877. return 1;
  2878. }//End of Register Dialog
  2879. if(dialogid == DIALOG_LOGIN)
  2880. {
  2881. if(response == 0)
  2882. {
  2883. SendClientMessage(playerid, COLOR_RED, "You must login below.");
  2884. LogPlayer(playerid);
  2885. return 1;
  2886. }
  2887. if(response == 1)
  2888. {
  2889. if(strlen(inputtext) == 0)
  2890. {
  2891. SendClientMessage(playerid, COLOR_RED, "Please enter your password below.");
  2892. LogPlayer(playerid);
  2893. }
  2894. if(udb_CheckLogin(PlayerName(playerid),inputtext))
  2895. {
  2896. SetPVarInt(playerid, "AdminLevel", dUserINT(PlayerName(playerid)).("AdminLevel"));
  2897. SetPVarInt(playerid, "Banned", dUserINT(PlayerName(playerid)).("Banned"));
  2898. SetPVarInt(playerid, "BankCash", dUserINT(PlayerName(playerid)).("BankCash"));
  2899. SetPVarInt(playerid, "Cash", dUserINT(PlayerName(playerid)).("Cash"));
  2900. SetPVarInt(playerid, "WantedLevel", dUserINT(PlayerName(playerid)).("WantedLevel"));
  2901. SetPVarInt(playerid, "HasPack", dUserINT(PlayerName(playerid)).("HasPack"));
  2902. SetPVarInt(playerid, "Warnings", dUserINT(PlayerName(playerid)).("Warnings"));
  2903. SetPVarInt(playerid, "PackCash", dUserINT(PlayerName(playerid)).("PackCash"));
  2904. SetPVarInt(playerid, "ArmyPermission", dUserINT(PlayerName(playerid)).("ArmyPermission"));
  2905. SetPVarInt(playerid, "PackPipe", dUserINT(PlayerName(playerid)).("PackPipe"));
  2906. SetPVarInt(playerid, "PackWallet", dUserINT(PlayerName(playerid)).("PackWallet"));
  2907. SetPVarInt(playerid, "PackCondom", dUserINT(PlayerName(playerid)).("PackCondom"));
  2908. SetPVarInt(playerid, "PackExp", dUserINT(PlayerName(playerid)).("PackExp"));
  2909. SetPVarInt(playerid, "PackSnack", dUserINT(PlayerName(playerid)).("PackSnack"));
  2910. SetPVarInt(playerid, "PackPot", dUserINT(PlayerName(playerid)).("PackPot"));
  2911. SetPVarInt(playerid, "JailTime", dUserINT(PlayerName(playerid)).("JailTime"));
  2912. SetPVarInt(playerid, "RobSkill", dUserINT(PlayerName(playerid)).("RobSkill"));
  2913. SetPVarInt(playerid, "Elite", dUserINT(PlayerName(playerid)).("Elite"));
  2914. SetPVarInt(playerid, "TerrorSkill", dUserINT(PlayerName(playerid)).("TerrorSkill"));
  2915. /*SetPVarInt(playerid, "HouseOnePerson", dUserINT(PlayerName(playerid)).("HouseOnePerson"));
  2916. SetPVarInt(palyerid, "HouseTwoPerson", dUserINT(PlayerName(playerid)).("HouseTwoPerson"));
  2917. SetPVarInt(playerid, "HouseThreePerson", dUserINT(PlayerName(playerid)).("HouseThreePerson"));
  2918. SetPVarInt(playerid, "HouseFourPerson", dUserINT(PlayerName(playerid)).("HouseFourPerson"));
  2919. SetPVarInt(playerid, "HouseFivePerson", dUserINT(PlayerName(playerid)).("HouseFivePerson"));
  2920. SetPVarInt(playerid, "HouseSixPerson", dUserINT(PlayerName(playerid))."HouseSixPerson"));*/
  2921. SetPlayerScore(playerid, dUserINT(PlayerName(playerid)).("Score"));
  2922. new pIP[16]; GetPlayerIp(playerid, pIP, 16);
  2923. dUserSet(PlayerName(playerid)).("IP", pIP);
  2924. PLAYERLIST_authed[playerid] = true;
  2925. return SendClientMessage(playerid, COLOR_BLUE, "You are now logged in. Your stats will save when you leave the server.");
  2926. }
  2927. LogPlayer(playerid);
  2928. }
  2929. return 1;
  2930. }//End of Dialog
  2931. if(dialogid == DIALOG_RULES && response)
  2932. {
  2933. if(dialogid == 18)
  2934. {
  2935. if(response)
  2936. {
  2937. SendClientMessage(playerid,0x008000FF, "Thank You For Taking time to read rules!!");
  2938. ShowPlayerDialog(playerid, DIALOG_RULES2, DIALOG_STYLE_MSGBOX, "{00FFEE}Rules Page 2:", "{00C0FF}[6]:{00FFEE}Respect Admins\n{F3FF02}*because the work hard for you\n{00C0FF}[7]:{00FFEE}No CarRam Hali-kill\n{00C0FF}[8]:{00FFEE}No Racism\n{00C0FF}[9]:{00FFEE}Use /report if any player dont follow rules!{00C0FF}\n[10]:{00FFEE}No Hacking/cheats/mod of any kind! ", "Accept", "Kick");
  2939. }
  2940. else
  2941. {
  2942. SendClientMessage(playerid, 0xFF0000FF, "You selected 'Kick', therefore you got kicked. Goodbye!");
  2943. Kick(playerid);
  2944. return 1;
  2945. }
  2946. return 0;
  2947. }
  2948. if(dialogid == DIALOG_RULES2 && response)
  2949. {
  2950. if(dialogid == 19)
  2951. {
  2952. if(response)
  2953. {
  2954. SendClientMessage(playerid,COLOR_LIGHTBLUE, "Thank You For Taking time to read rules!");
  2955. }
  2956. else
  2957. {
  2958. SendClientMessage(playerid, COLOR_RED, "You selected 'Kick', therefore you got kicked. Goodbye!");
  2959. Kick(playerid);
  2960. return 1;
  2961. }
  2962. return 0;
  2963. }
  2964. }
  2965. }//end dialog
  2966. if(dialogid == DIALOG_SKILL && response)
  2967. { //"Rapist\nTerrorist\nTheif\nPrivate Med");
  2968. if(listitem == 0)
  2969. {
  2970. gTeam[playerid] = Team_Rape;
  2971. SendClientMessage(playerid, COLOR_LIME, "**Rapist**");
  2972. GameTextForPlayer(playerid, "~w~Rapist", 5000, 3);
  2973. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your job is to rape people and infect them with STDs that can/will kill them.");
  2974. SendClientMessage(playerid, COLOR_YELLOW, "Type /commands for your commands.");
  2975. GivePlayerWeapon(playerid, 24, 150);
  2976. GivePlayerWeapon(playerid, 10, 1);
  2977. GivePlayerWeapon(playerid, 31, 150);
  2978. ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "{00FFEE}Rules:", "{00C0FF}[6]:{00FFEE}Respect Admins\n{F3FF02}*because the work hard for you\n{00C0FF}[7]:{00FFEE}No CarRam Hali-kill\n{00C0FF}[8]:{00FFEE}No Racism\n{00C0FF}[9]:{00FFEE}Use /report if any player dont follow rules!{00C0FF}\n[10]:{00FFEE}No Hacking/cheats/mod of any kind! ", "Accept", "Kick");
  2979. }
  2980. if(listitem == 1)
  2981. {
  2982. gTeam[playerid] = Team_Terror;
  2983. SendClientMessage(playerid, COLOR_LIME, "**Terrorist**");
  2984. GameTextForPlayer(playerid, "~w~Terrorist", 5000, 3);
  2985. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your job is to cause chaos in Los Santos by creating explosions.");
  2986. SendClientMessage(playerid, COLOR_RED, "REMEMBER: This is NOT a deathmatching server. Do not shoot/kill people randomly.");
  2987. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  2988. GivePlayerWeapon(playerid, 31, 100);
  2989. GivePlayerWeapon(playerid, 32, 250);
  2990. GivePlayerWeapon(playerid, 39, 5);
  2991. GivePlayerWeapon(playerid, 40, 1);
  2992. }
  2993. if(listitem == 2)
  2994. {
  2995. gTeam[playerid] = Team_Steal;
  2996. SendClientMessage(playerid, COLOR_LIME, "**Thief**");
  2997. GameTextForPlayer(playerid, "~w~Thief", 5000, 3);
  2998. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your job is to rob as much as possible.");
  2999. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  3000. GivePlayerWeapon(playerid, 5, 100);
  3001. GivePlayerWeapon(playerid, 22, 100);
  3002. GivePlayerWeapon(playerid, 32, 100);
  3003. }
  3004. if(listitem == 3)
  3005. {
  3006. gTeam[playerid] = Team_PrvtMed;
  3007. SendClientMessage(playerid, COLOR_LIME, "**Private Medic**");
  3008. GameTextForPlayer(playerid, "~p~Private Medic", 5000, 3);
  3009. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your job is to heal, cure, or infect players. Players who need you will call '/medic' and you will see in chat.");
  3010. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  3011. GivePlayerWeapon(playerid, 22, 100);
  3012. GivePlayerWeapon(playerid, 4, 1);
  3013. }
  3014. if(listitem == 4)
  3015. {
  3016. gTeam[playerid] = TEAM_HITMAN;
  3017. SendClientMessage(playerid, COLOR_LIME, "**HITMAN**");
  3018. GameTextForPlayer(playerid, "~w~HITMAN", 5000, 3);
  3019. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your job is to take out every player who has a contract on them do /hits for hit list.");
  3020. SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
  3021. GivePlayerWeapon(playerid, 4, 1);
  3022. GivePlayerWeapon(playerid, 23, 100);
  3023. GivePlayerWeapon(playerid, 29, 200);
  3024. }
  3025. if(listitem == 5)
  3026. {
  3027. ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
  3028. }
  3029. }//End of dialog
  3030. if(dialogid == DIALOG_STOREONE && response)
  3031. {
  3032. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet\nAttempt Robbery");
  3033. new pcash = GetPlayerMoney(playerid);
  3034. if(listitem == 0)
  3035. {
  3036. if(pcash < 999)
  3037. {
  3038. SendClientMessage(playerid, COLOR_RED, "You do not have the money to buy a condom.");
  3039. return 1;
  3040. }
  3041. if(GetPVarInt(playerid, "HasCondom") == 1)
  3042. {
  3043. SendClientMessage(playerid, COLOR_RED, "You all ready have a condom. Put it in your pack before buying another.");
  3044. return 1;
  3045. }
  3046. SetPVarInt(playerid, "HasCondom", 1);
  3047. GivePlayerMoney(playerid, -1000);
  3048. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Condom: $1000.");
  3049. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will protect you from a rape ONCE.");
  3050. return 1;
  3051. }
  3052. if(listitem == 1)
  3053. {
  3054. if(pcash < 499)
  3055. {
  3056. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a snack.");
  3057. return 1;
  3058. }
  3059. SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") +1);
  3060. GivePlayerMoney(playerid, -500);
  3061. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Snack: $500.");
  3062. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will restore your health by 10 by using /snack");
  3063. return 1;
  3064. }
  3065. if(listitem == 2)
  3066. {
  3067. if(GetPlayerMoney(playerid) == 0)
  3068. {
  3069. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy cigars.");
  3070. return 1;
  3071. }
  3072. if(GetPlayerMoney(playerid) == 499)
  3073. SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") +5);
  3074. GivePlayerMoney(playerid, -500);
  3075. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Cigars: $500.");
  3076. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will increase your health by 10 by using /smoke");
  3077. return 1;
  3078. }
  3079. if(listitem == 3)
  3080. {
  3081. if(pcash < 999)
  3082. {
  3083. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a pipe.");
  3084. return 1;
  3085. }
  3086. if(GetPVarInt(playerid, "HasPipe") == 1)
  3087. {
  3088. SendClientMessage(playerid, COLOR_RED, "You already have a pipe.");
  3089. return 1;
  3090. }
  3091. SetPVarInt(playerid, "HasPipe", 1);
  3092. GivePlayerMoney(playerid, -1000);
  3093. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Pipe: $1000.");
  3094. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will allow you to smoke pot. Get pot at the drug house.");
  3095. return 1;
  3096. }
  3097. if(listitem == 4)
  3098. {
  3099. if(pcash < 99999)
  3100. {
  3101. SendClientMessage(playerid, COLOR_RED, "You cannot afford the pack.");
  3102. return 1;
  3103. }
  3104. if(GetPVarInt(playerid, "HasPack") == 1)
  3105. {
  3106. SendClientMessage(playerid, COLOR_RED, "You already have a pack on you.");
  3107. return 1;
  3108. }
  3109. SetPVarInt(playerid, "HasPack", 1);
  3110. GivePlayerMoney(playerid, -100000);
  3111. SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Pack: $100,000.");
  3112. SendClientMessage(playerid, COLOR_BLUE, "This will allow you to save things like pot and money.");
  3113. return 1;
  3114. }
  3115. if(listitem == 5)
  3116. {
  3117. if(GetPlayerMoney(playerid) == 0)
  3118. {
  3119. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a SecureWallet.");
  3120. return 1;
  3121. }
  3122. if(GetPlayerMoney(playerid) == 5000)
  3123. SetPVarInt(playerid, "HasSecureWallet", GetPVarInt(playerid, "HasSecureWallet") +1);
  3124. GivePlayerMoney(playerid, -5000);
  3125. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] SecureWallet: $5,000.");
  3126. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will Save you from /rob they wont steal as much");
  3127. return 1;
  3128. }
  3129. if(listitem == 6)
  3130. {
  3131. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army)
  3132. {
  3133. SendClientMessage(playerid, COLOR_RED, "You cannot attempt robbery.");
  3134. return 1;
  3135. }
  3136. if(getCheckpointType(playerid) != CP_StoreOne)
  3137. {
  3138. SendClientMessage(playerid, COLOR_RED, "You must be in the 69 Cent store checkpoint to attempt robbery.");
  3139. return 1;
  3140. }
  3141. if(GetGVarInt("SixNineRobbed") == 1337)
  3142. {
  3143. SendClientMessage(playerid, COLOR_RED, "The 69 Cent store has been robbed recently.");
  3144. return 1;
  3145. }
  3146. new crand = random(100);
  3147. if(crand > 10)
  3148. {
  3149. new mrand = random(100000);
  3150. format(string, sizeof(string), "[ROBBERY] %s has robbed $%d from the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid), mrand);
  3151. GivePlayerMoney(playerid, mrand);
  3152. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3153. print(string);
  3154. SetGVarInt("SixNineRobbed", 1337);
  3155. SetTimer("SixNineStoreRobAgain", 1000*60*5, 0);
  3156. IncreaseWantedLevel(playerid, 2);
  3157. IncreaseScore(playerid, 1);
  3158. format(string, sizeof(string), "[ROBBERY] %s has robbed the 69 Cent Store. Go arrest him now.", PlayerInfo(playerid));
  3159. SendCopMessage(string);
  3160. return 1;
  3161. }
  3162. else
  3163. {
  3164. format(string, sizeof(string), "%s has failed a robbery at the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid));
  3165. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3166. print(string);
  3167. }
  3168. return 1;
  3169. }
  3170. return 1;
  3171. }//End of dialog
  3172. if(dialogid == DIALOG_BARMAIN && response)
  3173. {
  3174. format(string, 200, "Beer\nAttempt Robbery");
  3175. new pcash = GetPlayerMoney(playerid);
  3176. if(listitem == 0)
  3177. {
  3178. if(getCheckpointType(playerid) != CP_BARMAIN)
  3179. {
  3180. SendClientMessage(playerid, COLOR_RED, "You must be AT the Bar To buy a Beer.");
  3181. return 1;
  3182. }
  3183. if(pcash < 1000)
  3184. {
  3185. SendClientMessage(playerid, COLOR_RED, "You cannot afford a Beer.");
  3186. return 1;
  3187. }
  3188. if(HasBeer[playerid] >= 1) return SendClientMessage(playerid, COLOR_RED, "You Already Have A Beer.");
  3189. if(GetPlayerMoney(playerid) < 5000)
  3190. {
  3191. SendClientMessage(playerid,COLOR_ERROR,"You do not have $5000 to buy a Secure Wallet.");
  3192. return 1;
  3193. }
  3194. SetPVarInt(playerid, "HasBeer", 1);
  3195. GivePlayerMoney(playerid,-1000);
  3196. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Beer: $1,000.");
  3197. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Beer will get you drunk and give u you %50. of health");
  3198. format(string, 200, "Beer\nAttempt Robbery");
  3199. ShowPlayerDialog(playerid, DIALOG_BARMAIN, DIALOG_STYLE_LIST,"Bar Counter", string, "Okay", "Cancel");
  3200. return 1;
  3201. }
  3202. if(listitem == 1)
  3203. {
  3204. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army)
  3205. {
  3206. SendClientMessage(playerid, COLOR_RED, "You cannot attempt robbery.");
  3207. return 1;
  3208. }
  3209. if(getCheckpointType(playerid) != CP_BARMAIN)
  3210. {
  3211. SendClientMessage(playerid, COLOR_RED, "You must be in the Bar checkpoint to attempt robbery.");
  3212. return 1;
  3213. }
  3214. if(GetGVarInt("BARMAINRobbed") == 1337)
  3215. {
  3216. SendClientMessage(playerid, COLOR_RED, "The Bar At Near: Grove Street Binco has been robbed recently.");
  3217. return 1;
  3218. }
  3219. new crand = random(100);
  3220. if(crand > 10)
  3221. {
  3222. new mrand = random(100000);
  3223. format(string, sizeof(string), "[ROBBERY] %s has robbed $%d from the Bar At Near: Grove Street Binco", PlayerInfo(playerid), mrand);
  3224. GivePlayerMoney(playerid, mrand);
  3225. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3226. print(string);
  3227. SetGVarInt("BARMAINRobbed", 1337);
  3228. SetTimer("BARMAINRobAgain", 1000*60*5, 0);
  3229. IncreaseWantedLevel(playerid, 2);
  3230. IncreaseScore(playerid, 1);
  3231. format(string, sizeof(string), "[ROBBERY] %s has robbed the Bar At Near: Grove Street Binco. Go arrest him now.", PlayerInfo(playerid));
  3232. SendCopMessage(string);
  3233. return 1;
  3234. }
  3235. else
  3236. {
  3237. format(string, sizeof(string), "%s has failed a robbery at the Bar At Near: Grove Street Binco", PlayerInfo(playerid));
  3238. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3239. print(string);
  3240. }
  3241. return 1;
  3242. }
  3243. return 1;
  3244. }
  3245. if(dialogid == DIALOG_SupaSaveMain && response)
  3246. {
  3247. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet");
  3248. new pcash = GetPlayerMoney(playerid);
  3249. if(listitem == 0)
  3250. {
  3251. if(pcash < 999)
  3252. {
  3253. SendClientMessage(playerid, COLOR_RED, "You do not have the money to buy a condom.");
  3254. return 1;
  3255. }
  3256. if(GetPVarInt(playerid, "HasCondom") == 1)
  3257. {
  3258. SendClientMessage(playerid, COLOR_RED, "You all ready have a condom. Put it in your pack before buying another.");
  3259. return 1;
  3260. }
  3261. SetPVarInt(playerid, "HasCondom", 1);
  3262. GivePlayerMoney(playerid, -1000);
  3263. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Condom: $1000.");
  3264. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will protect you from a rape ONCE.");
  3265. return 1;
  3266. }
  3267. if(listitem == 1)
  3268. {
  3269. if(pcash < 499)
  3270. {
  3271. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a snack.");
  3272. return 1;
  3273. }
  3274. SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") +1);
  3275. GivePlayerMoney(playerid, -500);
  3276. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Snack: $500.");
  3277. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will restore your health by 10 by using /snack");
  3278. return 1;
  3279. }
  3280. if(listitem == 2)
  3281. {
  3282. if(GetPlayerMoney(playerid) == 0)
  3283. {
  3284. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy cigars.");
  3285. return 1;
  3286. }
  3287. if(GetPlayerMoney(playerid) == 499)
  3288. SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") +1);
  3289. GivePlayerMoney(playerid, -500);
  3290. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Cigars: $500.");
  3291. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will increase your health by 10 by using /smoke");
  3292. return 1;
  3293. }
  3294. if(listitem == 3)
  3295. {
  3296. if(pcash < 999)
  3297. {
  3298. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a pipe.");
  3299. return 1;
  3300. }
  3301. if(GetPVarInt(playerid, "HasPipe") == 1)
  3302. {
  3303. SendClientMessage(playerid, COLOR_RED, "You already have a pipe.");
  3304. return 1;
  3305. }
  3306. SetPVarInt(playerid, "HasPipe", 1);
  3307. GivePlayerMoney(playerid, -1000);
  3308. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Pipe: $1000.");
  3309. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will allow you to smoke pot. Get pot at the drug house.");
  3310. return 1;
  3311. }
  3312. if(listitem == 4)
  3313. {
  3314. if(pcash < 99999)
  3315. {
  3316. SendClientMessage(playerid, COLOR_RED, "You cannot afford the pack.");
  3317. return 1;
  3318. }
  3319. if(GetPVarInt(playerid, "HasPack") == 1)
  3320. {
  3321. SendClientMessage(playerid, COLOR_RED, "You already have a pack on you.");
  3322. return 1;
  3323. }
  3324. SetPVarInt(playerid, "HasPack", 1);
  3325. GivePlayerMoney(playerid, -100000);
  3326. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Pack: $100,000.");
  3327. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will allow you to save things like pot and money.");
  3328. return 1;
  3329. }
  3330. if(listitem == 5)
  3331. {
  3332. if(HasSecureWallet[playerid] >= 1) return SendClientMessage(playerid, COLOR_RED, "You Already Have A SecureWallet.");
  3333. if(GetPlayerMoney(playerid) < 5000)
  3334. {
  3335. SendClientMessage(playerid,COLOR_ERROR,"You do not have $5000 to buy a Secure Wallet.");
  3336. return 1;
  3337. }
  3338. SetPVarInt(playerid, "HasSecureWallet", 1);
  3339. GivePlayerMoney(playerid,-5000);
  3340. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] SecureWallet: $5,000.");
  3341. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will Help when player try to rob you they rob less or may they can fail.");
  3342. return 1;
  3343. }
  3344. return 1;
  3345. }
  3346. if(dialogid == DIALOG_PACK && response)
  3347. {
  3348. switch(listitem)
  3349. {
  3350. case 0:
  3351. return ShowPlayerDialog(playerid, DIALOG_TAKEOUT, DIALOG_STYLE_LIST, "What do you want to take out?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot\nSecureWallet", "Okay", "Cancel");
  3352. case 1:
  3353. return ShowPlayerDialog(playerid, DIALOG_PUTIN, DIALOG_STYLE_LIST, "What do you want to put in?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot\nSecureWallet", "Okay", "Cancel");
  3354. }
  3355. return 1;
  3356. }//End of Dialog
  3357. if(dialogid == DIALOG_TAKEOUT && response)
  3358. {
  3359. switch(listitem)
  3360. {
  3361. case 0:
  3362. {
  3363. if(GetPVarInt(playerid, "HasCondom") == 0)
  3364. {
  3365. if(GetPVarInt(playerid, "PackCondom") >= 1)
  3366. {
  3367. SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") -1);
  3368. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3369. format(string, sizeof(string), "You now have %d condoms left in your bag.", GetPVarInt(playerid, "PackCondom"));
  3370. SendClientMessage(playerid, COLOR_GREEN, string);
  3371. SetPVarInt(playerid, "HasCondom", 1);
  3372. return 1;
  3373. }
  3374. return SendClientMessage(playerid, COLOR_RED, "You do not have any condoms to take out.");
  3375. }
  3376. return SendClientMessage(playerid, COLOR_RED, "You already have a condom.");
  3377. }
  3378. case 1:
  3379. {
  3380. if(GetPVarInt(playerid, "HasSnacks") == 0)
  3381. {
  3382. if(GetPVarInt(playerid, "PackSnacks") >= 1)
  3383. {
  3384. SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") -1);
  3385. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3386. format(string, sizeof(string), "You now have %d snacks left in your bag.", GetPVarInt(playerid, "PackSnacks"));
  3387. SendClientMessage(playerid, COLOR_GREEN, string);
  3388. SetPVarInt(playerid, "HasSnacks", 1);
  3389. return 1;
  3390. }
  3391. return SendClientMessage(playerid, COLOR_RED, "You do not have any snacks in your bag to take out.");
  3392. }
  3393. return SendClientMessage(playerid, COLOR_RED, "You already have a snack.");
  3394. }
  3395. case 2: //Cigars
  3396. {
  3397. if(GetPVarInt(playerid, "HasCigars") == 0)
  3398. {
  3399. if(GetPVarInt(playerid, "PackCigars") >= 1)
  3400. {
  3401. SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") -1);
  3402. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3403. format(string, sizeof(string), "You now have %d cigars left in your bag.", GetPVarInt(playerid, "PackCigars"));
  3404. SendClientMessage(playerid, COLOR_GREEN, string);
  3405. SetPVarInt(playerid, "HasCigars", 5);
  3406. return 1;
  3407. }
  3408. return SendClientMessage(playerid, COLOR_RED, "You do not have any packed cigars");
  3409. }
  3410. return SendClientMessage(playerid, COLOR_RED, "You already have cigars.");
  3411. }
  3412. case 3: //Explosives
  3413. {
  3414. if(GetPVarInt(playerid, "HasExp") == 0)
  3415. {
  3416. if(GetPVarInt(playerid, "PackExp") >= 1)
  3417. {
  3418. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") -1);
  3419. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3420. format(string, sizeof(string), "You have %d sets of explosives left in your bag.", GetPVarInt(playerid, "PackExp"));
  3421. SendClientMessage(playerid, COLOR_GREEN, string);
  3422. SetPVarInt(playerid, "HasExp", 1);
  3423. return 1;
  3424. }
  3425. return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives in your pack.");
  3426. }
  3427. return SendClientMessage(playerid, COLOR_RED, "You already have explosives.");
  3428. }
  3429. case 4: //Money
  3430. {
  3431. if(GetPVarInt(playerid, "PackCash") > 0)
  3432. {
  3433. if(GetPVarInt(playerid, "PackCash") > 100000)
  3434. {
  3435. SetPVarInt(playerid, "PackCash", GetPVarInt(playerid, "PackCash") -100000);
  3436. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3437. format(string, sizeof(string), "You have taken out $100,000 from your pack. You now have $%d", GetPVarInt(playerid, "PackCash"));
  3438. SendClientMessage(playerid, COLOR_GREEN, string);
  3439. GivePlayerMoney(playerid, 100000);
  3440. return 1;
  3441. }
  3442. GivePlayerMoney(playerid, GetPVarInt(playerid, "PackCash"));
  3443. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3444. SendClientMessage(playerid, COLOR_GREEN, "You have taken out all the money in your pack. You have none left.");
  3445. SetPVarInt(playerid, "PackMoney", 0);
  3446. return 1;
  3447. }
  3448. return SendClientMessage(playerid, COLOR_RED, "You do not have any money in your pack to take out.");
  3449. }
  3450. case 5: //Pipe
  3451. {
  3452. if(GetPVarInt(playerid, "HasPipe") == 1)
  3453. {
  3454. if(GetPVarInt(playerid, "PackPipe") >= 1)
  3455. {
  3456. SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") -1);
  3457. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3458. format(string, sizeof(string), "You have taken out a pipe. You now have %d pipes left.", GetPVarInt(playerid, "PackPipe"));
  3459. SendClientMessage(playerid, COLOR_GREEN, string);
  3460. SetPVarInt(playerid, "HasPipe", 1);
  3461. return 1;
  3462. }
  3463. return SendClientMessage(playerid, COLOR_RED, "You do not have pipes in your pack.");
  3464. }
  3465. return SendClientMessage(playerid, COLOR_RED, "You already have a pipe.");
  3466. }
  3467. case 6: //Pot
  3468. {
  3469. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  3470. {
  3471. return SendClientMessage(playerid ,COLOR_RED, "Your team/class cannot have pot!");
  3472. }
  3473. if(GetPVarInt(playerid, "PackPot") >=1)
  3474. {
  3475. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "PackPot"));
  3476. SetPVarInt(playerid, "PackPot", 0);
  3477. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3478. SendClientMessage(playerid, COLOR_GREEN, "You have taken out all of your pot.");
  3479. return 1;
  3480. }
  3481. return SendClientMessage(playerid, COLOR_RED, "You do not have any pot in your pack.");
  3482. }
  3483. case 7: //HasSecureWallet
  3484. {
  3485. if(GetPVarInt(playerid, "HasSecureWallet") == 0)
  3486. {
  3487. if(GetPVarInt(playerid, "PackWallet") >= 1)
  3488. {
  3489. SetPVarInt(playerid, "PackWallet", GetPVarInt(playerid, "PackWallet") -1);
  3490. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3491. format(string, sizeof(string), "You now have %d SecureWallet left in your bag.", GetPVarInt(playerid, "PackWallet"));
  3492. SendClientMessage(playerid, COLOR_GREEN, string);
  3493. SetPVarInt(playerid, "HasWallet", 1);
  3494. return 1;
  3495. }
  3496. return SendClientMessage(playerid, COLOR_RED, "You do not have any SecureWallet to take out.");
  3497. }
  3498. return SendClientMessage(playerid, COLOR_RED, "You already have a SecureWallet.");
  3499. }
  3500. }
  3501. }
  3502. if(dialogid == DIALOG_PUTIN && response)
  3503. {
  3504. if(listitem == 0)
  3505. {
  3506. if(GetPVarInt(playerid, "HasCondom") == 1)
  3507. {
  3508. SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") +1);
  3509. SetPVarInt(playerid, "HasCondom", 0);
  3510. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3511. SendClientMessage(playerid, COLOR_GREEN, "You have put a condom into your backpack.");
  3512. return 1;
  3513. }
  3514. return SendClientMessage(playerid, COLOR_RED, "You do not have a condom to put into your pack.");
  3515. }
  3516. if(listitem == 1)
  3517. {
  3518. if(GetPVarInt(playerid, "HasSnacks") == 1)
  3519. {
  3520. SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") +1);
  3521. SetPVarInt(playerid, "HasSnacks", 0);
  3522. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3523. SendClientMessage(playerid, COLOR_GREEN, "You have put in snacks into your pack.");
  3524. return 1;
  3525. }
  3526. return SendClientMessage(playerid, COLOR_RED, "You do not have any snacks to put in.");
  3527. }
  3528. if(listitem == 2)
  3529. {
  3530. if(GetPVarInt(playerid, "HasCigars") >= 1)
  3531. {
  3532. SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") +1);
  3533. SetPVarInt(playerid, "HasCigars", 0);
  3534. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3535. SendClientMessage(playerid, COLOR_GREEN, "You have put cigars into your pack.");
  3536. return 1;
  3537. }
  3538. return SendClientMessage(playerid, COLOR_RED, "You do not have any cigars to put in.");
  3539. }
  3540. if(listitem == 3)
  3541. {
  3542. if(GetPVarInt(playerid, "HasExp") == 1)
  3543. {
  3544. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 1);
  3545. SetPVarInt(playerid, "HasExp", 0);
  3546. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3547. SendClientMessage(playerid, COLOR_GREEN, "You have put your explosives in your pack.");
  3548. return 1;
  3549. }
  3550. return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives to put in your pack.");
  3551. }
  3552. if(listitem == 4)
  3553. {
  3554. if(GetPlayerMoney(playerid) > 0)
  3555. {
  3556. if(GetPVarInt(playerid, "PackCash") >= 2000000) return SendClientMessage(playerid, COLOR_RED, "You already have $2,000,000 in your pack");
  3557. SetPVarInt(playerid, "PackCash", GetPlayerMoney(playerid));
  3558. ResetPlayerMoney(playerid);
  3559. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3560. SendClientMessage(playerid, COLOR_GREEN, "You have put your cash into your pack.");
  3561. return 1;
  3562. }
  3563. return SendClientMessage(playerid, COLOR_RED, "You do not have any cash to put in.");
  3564. }
  3565. if(listitem == 5)
  3566. {
  3567. if(GetPVarInt(playerid, "HasPipe") == 1)
  3568. {
  3569. SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") +1);
  3570. SetPVarInt(playerid, "HasPipe", 0);
  3571. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3572. SendClientMessage(playerid, COLOR_GREEN, "You have put your pipe into your pack.");
  3573. return 1;
  3574. }
  3575. return SendClientMessage(playerid, COLOR_RED, "You do not have any pipes to put in.");
  3576. }
  3577. if(listitem == 6)
  3578. {
  3579. if(GetPVarInt(playerid, "HasPot") >= 1)
  3580. {
  3581. SetPVarInt(playerid, "PackPot", GetPVarInt(playerid, "PackPot") + GetPVarInt(playerid, "HasPot"));
  3582. SetPVarInt(playerid, "HasPot", 0);
  3583. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3584. SendClientMessage(playerid, COLOR_GREEN, "You have put your pot into your pack.");
  3585. return 1;
  3586. }
  3587. return SendClientMessage(playerid, COLOR_RED, "You haven't pot to put in.");
  3588. }
  3589. if(listitem == 7)
  3590. {
  3591. if(GetPVarInt(playerid, "HasSecureWallet") == 1)
  3592. {
  3593. SetPVarInt(playerid, "PackWallet", GetPVarInt(playerid, "PackWallet") +1);
  3594. SetPVarInt(playerid, "HasSecureWallet", 0);
  3595. SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
  3596. SendClientMessage(playerid, COLOR_GREEN, "You have put your Secure Wallet into your backpack.");
  3597. return 1;
  3598. }
  3599. return SendClientMessage(playerid, COLOR_RED, "You do not have a SecureWallet to put into your pack.");
  3600. }
  3601. } //End of Dialog
  3602. if(dialogid == DIALOG_SEXSHOP && response)
  3603. { //"Buy a dildo\nBuy a porn magazine\nBuy some jelly\nAttempt Robbery"
  3604. if(listitem == 0) // Dildo
  3605. {
  3606. if(GetPlayerMoney(playerid) >= 1000)
  3607. {
  3608. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a dildo! Price: $1,000.");
  3609. GivePlayerWeapon(playerid,10, 1);
  3610. GivePlayerMoney(playerid, -1000);
  3611. return 1;
  3612. }
  3613. return SendClientMessage(playerid, COLOR_RED, "You do no have enough funds to buy a dildo.");
  3614. }
  3615. if(listitem == 1) // Porn
  3616. {
  3617. if(GetPlayerMoney(playerid) >= 1500)
  3618. {
  3619. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a porn magazine. Price: %1,500");
  3620. format(string, 120, "[SEX SHOP] %s bought a porn magazine. He's horny!", PlayerInfo(playerid));
  3621. SendClientMessageToAll(COLOR_PINK, string);
  3622. CNR_PrintString(string);
  3623. GivePlayerMoney(playerid, -1500);
  3624. SetPVarInt(playerid, "Horny", 500);
  3625. SendClientMessage(playerid, COLOR_GREY, "You will be horny for the next 8 or so minutes. Get sex while you can!");
  3626. return 1;
  3627. }
  3628. return SendClientMessage(playerid, COLOR_RED, "You do not have enough funds to buy a porn magazine.");
  3629. }
  3630. if(listitem == 2) //Jelly (Help with rapes)
  3631. {
  3632. if(GetPlayerMoney(playerid) >=2000)
  3633. {
  3634. SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought sex jelly! This will help you out with sex.");
  3635. GivePlayerMoney(playerid, -2000);
  3636. SetPVarInt(playerid, "Jelly", 1);
  3637. return 1;
  3638. }
  3639. return SendClientMessage(playerid, COLOR_RED, "You do not have the cash.");
  3640. }
  3641. if(listitem == 3)
  3642. {
  3643. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_RED, "You cannot attempt robbery.");
  3644. if(GetGVarInt("SexShopRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "This sex shop has been robbed recently. Please wait.");
  3645. new crand = random(100);
  3646. if(crand < 10) return SendClientMessage(playerid, COLOR_RED, "Your attempt to rob the Sex Shop has failed.");
  3647. SetPVarInt(playerid, "RobbingSouthSex", 10);
  3648. IncreaseWantedLevel(playerid, 1);
  3649. IncreaseScore(playerid, 1);
  3650. format(string, 120, "[ROBBERY] %s has started a robbery at the South Los Santos Sex shop.", PlayerInfo(playerid));
  3651. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3652. CNR_PrintString(string);
  3653. 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));
  3654. SendCopMessage(string);
  3655. format(string, 120, "Type /radioof to turn off your Police Radio and stop getting crime reports.");
  3656. SendCopMessage(string);
  3657. SetPVarInt(playerid, "RobbedSexShop", 120);
  3658. return 1;
  3659. }
  3660. }//End of Sex Shop Dialog (south)
  3661. if(dialogid == DIALOG_GASONE && response)
  3662. {
  3663. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nSecureWallet\nAttempt Robbery");
  3664. new pcash = GetPlayerMoney(playerid);
  3665. if(listitem == 0)
  3666. {
  3667. if(pcash < 999)
  3668. {
  3669. SendClientMessage(playerid, COLOR_RED, "You do not have the money to buy a condom.");
  3670. return 1;
  3671. }
  3672. if(GetPVarInt(playerid, "HasCondom") == 1)
  3673. {
  3674. SendClientMessage(playerid, COLOR_RED, "You all ready have a condom. Put it in your pack before buying another.");
  3675. return 1;
  3676. }
  3677. SetPVarInt(playerid, "HasCondom", 1);
  3678. GivePlayerMoney(playerid, -1000);
  3679. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Condom: $1000.");
  3680. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will protect you from a rape ONCE.");
  3681. return 1;
  3682. }
  3683. if(listitem == 1)
  3684. {
  3685. if(pcash < 499)
  3686. {
  3687. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a snack.");
  3688. return 1;
  3689. }
  3690. SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") +1);
  3691. GivePlayerMoney(playerid, -500);
  3692. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Snack: $500.");
  3693. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This item will restore your health by 10 by using /snack");
  3694. return 1;
  3695. }
  3696. if(listitem == 2)
  3697. {
  3698. if(GetPlayerMoney(playerid) == 0)
  3699. {
  3700. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy cigars.");
  3701. return 1;
  3702. }
  3703. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy cigars. ($500)");
  3704. if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_RED, "You already have 1 cigars. Put some in your pack first.");
  3705. SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 1 cigars. You have been chaged $500.");
  3706. GivePlayerMoney(playerid, -500);
  3707. return 1;
  3708. }
  3709. if(listitem == 3)
  3710. {
  3711. if(pcash < 999)
  3712. {
  3713. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a pipe.");
  3714. return 1;
  3715. }
  3716. if(GetPVarInt(playerid, "HasPipe") == 1)
  3717. {
  3718. SendClientMessage(playerid, COLOR_RED, "You already have a pipe.");
  3719. return 1;
  3720. }
  3721. SetPVarInt(playerid, "HasPipe", 1);
  3722. GivePlayerMoney(playerid, -1000);
  3723. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Pipe: $1000.");
  3724. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will allow you to smoke pot. Get pot at the drug house.");
  3725. return 1;
  3726. }
  3727.  
  3728. if(listitem == 4)
  3729. {
  3730. if(pcash < 99999)
  3731. {
  3732. SendClientMessage(playerid, COLOR_RED, "You cannot afford the pack.");
  3733. return 1;
  3734. }
  3735. if(GetPVarInt(playerid, "HasPack") == 1)
  3736. {
  3737. SendClientMessage(playerid, COLOR_RED, "You already have a pack on you.");
  3738. return 1;
  3739. }
  3740. SetPVarInt(playerid, "HasPack", 1);
  3741. GivePlayerMoney(playerid, -100000);
  3742. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] Pack: $100,000.");
  3743. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will allow you to save things like pot and money.");
  3744. return 1;
  3745. }
  3746. if(listitem == 5)
  3747. {
  3748. if(HasSecureWallet[playerid] >= 1) return SendClientMessage(playerid, COLOR_RED, "You Already Have A SecureWallet.");
  3749. if(GetPlayerMoney(playerid) < 5000)
  3750. {
  3751. SendClientMessage(playerid,COLOR_ERROR,"You do not have $5000 to buy a Secure Wallet.");
  3752. return 1;
  3753. }
  3754. SetPVarInt(playerid, "HasSecureWallet", 1);
  3755. GivePlayerMoney(playerid,-5000);
  3756. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] SecureWallet: $5,000.");
  3757. SendClientMessage(playerid, COLOR_LIGHTBLUE, "This will Help when player try to rob you they rob less or may they can fail.");
  3758. format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nAttempt Robbery");
  3759. ShowPlayerDialog(playerid, DIALOG_SupaSaveMain, DIALOG_STYLE_LIST,"SupaSave Store", string, "Okay", "Cancel");
  3760. return 1;
  3761. }
  3762. if(listitem == 6)
  3763. {
  3764. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army)
  3765. {
  3766. SendClientMessage(playerid, COLOR_RED, "You cannot attempt robbery.");
  3767. return 1;
  3768. }
  3769. if(getCheckpointType(playerid) != CP_GasOneCounter)
  3770. {
  3771. SendClientMessage(playerid, COLOR_RED, "You must be in the Gas Station store checkpoint to attempt robbery.");
  3772. return 1;
  3773. }
  3774. if(GetGVarInt("GasOneRobbed") == 1337)
  3775. {
  3776. SendClientMessage(playerid, COLOR_RED, "The Gas Station Store has been robbed recently.");
  3777. return 1;
  3778. }
  3779. new crand = random(100);
  3780. if(crand > 10)
  3781. {
  3782. new mrand = random(100000);
  3783. format(string, sizeof(string), "[ROBBERY] %s has robbed $%d from the Gas Station Store in Los Santos (Train Station)", PlayerInfo(playerid), mrand);
  3784. GivePlayerMoney(playerid, mrand);
  3785. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3786. print(string);
  3787. SetGVarInt("SixNineRobbed", 1337);
  3788. SetTimer("SixNineStoreRobAgain", 100*60*5, 0);
  3789. IncreaseWantedLevel(playerid, 2);
  3790. IncreaseScore(playerid, 1);
  3791. format(string, sizeof(string), "[ROBBERY] %s has robbed the Gas Station Store. Go arrest him now.", PlayerInfo(playerid));
  3792. SendCopMessage(string);
  3793. return 1;
  3794. }
  3795. else
  3796. {
  3797. format(string, sizeof(string), "%s has failed a robbery at the Gas Station Store in Los Santos (Train Station)", PlayerInfo(playerid));
  3798. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3799. print(string);
  3800. }
  3801. return 1;
  3802. }
  3803. return 1;
  3804. } //End of Dialog
  3805. if(dialogid == DIALOG_BUY && response)
  3806. { //"Condom\nCigars\nPack\nSnacks"
  3807. if(listitem == 0) // Condom (HasCondom) && (PackCondom)
  3808. {
  3809. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy a condom. ($1,000)");
  3810. if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have a condom. Put it in your pack first.");
  3811. SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
  3812. GivePlayerMoney(playerid, -1000);
  3813. return 1;
  3814. }
  3815. if(listitem == 1) // Cigars (HasCigars) && PackCigar
  3816. {
  3817. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy cigars. ($500)");
  3818. if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_RED, "You already have 1 cigars. Put it in your pack first.");
  3819. SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 1 cigars. You have been chaged $500.");
  3820. GivePlayerMoney(playerid, -500);
  3821. return 1;
  3822. }
  3823. if(listitem == 2) // Pack (HasPack)
  3824. {
  3825. if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy a pack. ($100,00)");
  3826. if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have a pack, no need for 2 of them.");
  3827. 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");
  3828. GivePlayerMoney(playerid, -100000);
  3829. return 1;
  3830. }
  3831. if(listitem == 3) // HasSnacks && PackSnacks
  3832. {
  3833. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy snacks. ($2,000)");
  3834. if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have snacks. No need for more!");
  3835. 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");
  3836. GivePlayerMoney(playerid, -2000);
  3837. return 1;
  3838. }
  3839. if(listitem == 4) // Cigars (HasCigars) && PackCigar
  3840. {
  3841. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy SecureWallet. ($1,000)");
  3842. if(GetPVarInt(playerid, "HasSecureWallet") > 5) return SendClientMessage(playerid, COLOR_RED, "You already have 1 SecureWallet. Put it in your pack first.");
  3843. SetPVarInt(playerid, "HasSecureWallet", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 1 SecureWallet. You have been chaged $1,000.");
  3844. GivePlayerMoney(playerid, -1000);
  3845. return 1;
  3846. }
  3847. if(listitem == 5) // HasSnacks && PackSnacks
  3848. {
  3849. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a SecureWallet. ($2,000)");
  3850. if(GetPVarInt(playerid, "HasSecureWallet") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have snacks. No need for more!");
  3851. SetPVarInt(playerid, "HasSecureWallet", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought SecureWallet. Help you to not get rob from player as much .You have been charged $2,000");
  3852. GivePlayerMoney(playerid, -2000);
  3853. return 1;
  3854. }
  3855. } // end of dialog
  3856. if(dialogid == DIALOG_HOSPITAL && response)
  3857. { //"Heal\nCure",
  3858. if(listitem == 0) // Heal
  3859. {
  3860. new wl = GetPlayerWantedLevel(playerid);
  3861. new Float:ph;
  3862. GetPlayerHealth(playerid, ph);
  3863. if(ph == 100) return SendClientMessage(playerid, COLOR_RED, "You are already healed 100 percent.");
  3864. if(wl == 0)
  3865. {
  3866. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford a heal. It's $10,000");
  3867. SetPlayerHealth(playerid, 100);
  3868. GivePlayerMoney(playerid, -10000);
  3869. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital.You have been charged $10,000.");
  3870. return 1;
  3871. }
  3872. if(wl >= 1)
  3873. {
  3874. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford a heal. It's $20,000");
  3875. SetPlayerHealth(playerid, 100);
  3876. GivePlayerMoney(playerid, -20000);
  3877. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital. You have been chaged $20,000");
  3878. return 1;
  3879. }
  3880. return 1;
  3881. }
  3882. if(listitem == 1) //Cure
  3883. {
  3884. new wl = GetPlayerWantedLevel(playerid);
  3885. if(wl == 0)
  3886. {
  3887. if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 0) return SendClientMessage(playerid, COLOR_RED, "You are not infected with any disease.");
  3888. if(GetPVarInt(playerid, "IsSick") == 1 && GetPVarInt(playerid, "HasSTDs") == 0)
  3889. {
  3890. if(wl == 0)
  3891. {
  3892. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford the medical care. ($10,000)");
  3893. SetPVarInt(playerid, "IsSick", 0);
  3894. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3895. GivePlayerMoney(playerid, -10000);
  3896. return 1;
  3897. }
  3898. if(wl >=0)
  3899. {
  3900. if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford the medical care. ($15,000");
  3901. SetPVarInt(playerid, "IsSick", 0);
  3902. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3903. GivePlayerMoney(playerid, -15000);
  3904. return 1;
  3905. }
  3906. return 1;
  3907. }
  3908. if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 1)
  3909. {
  3910. if(wl == 0)
  3911. {
  3912. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford the medical care. ($5,00)");
  3913. SetPVarInt(playerid, "HasSTDs", 0);
  3914. SendClientMessage(playerid, COLOR_BLUE, "[HOSPTAL] You have been cured of your sickness.");
  3915. GivePlayerMoney(playerid, -5000);
  3916. return 1;
  3917. }
  3918. if(wl >= 0)
  3919. {
  3920. if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "You cannot afford the medical care. ($8,000)");
  3921. SetPVarInt(playerid, "HasSTDs", 0);
  3922. SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
  3923. GivePlayerMoney(playerid,-8000);
  3924. return 1;
  3925. }
  3926. }
  3927. }
  3928. }
  3929. return 1;
  3930. } // End of Dialog lololol
  3931. if(dialogid == DIALOG_STOREROB && response)
  3932. { // Buy a condom\nBuy Cigars\nBuy a pack\nBuy Snacks\nAttempt Robbery"
  3933. if(listitem == 0) // Condom (HasCondom) && (PackCondom)
  3934. {
  3935. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy a condom. ($1,000)");
  3936. if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have a condom. Put it in your pack first.");
  3937. SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
  3938. GivePlayerMoney(playerid, -1000);
  3939. return 1;
  3940. }
  3941. if(listitem == 1) // Cigars (HasCigars) && PackCigar
  3942. {
  3943. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy cigars. ($500)");
  3944. if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_RED, "You already have 1 cigars. Put some in your pack first.");
  3945. SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 1 cigars. You have been chaged $500.");
  3946. GivePlayerMoney(playerid, -500);
  3947. return 1;
  3948. }
  3949. if(listitem == 2) // Pack (HasPack)
  3950. {
  3951. if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy a pack. ($100,00)");
  3952. if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have a pack, no need for 2 of them.");
  3953. 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");
  3954. GivePlayerMoney(playerid, -100000);
  3955. return 1;
  3956. }
  3957. if(listitem == 3) // HasSecureWallet && PackWallet
  3958. {
  3959. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy snacks. ($2,000)");
  3960. if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have snacks. No need for more!");
  3961. 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");
  3962. GivePlayerMoney(playerid, -2000);
  3963. return 1;
  3964. }
  3965. if(listitem == 4) // Robbery
  3966. {
  3967. new current_zone = player_zone[playerid];
  3968. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_RED, "You cannot rob anything.");
  3969. if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_RED, "You have robbed a store recently. Please Wait.");
  3970. if(GetGVarInt("GasStationRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Gas Stations have been robbed recently. Please wait.");
  3971. new crand = random(100);
  3972. if(crand < 10)
  3973. {
  3974. SetGVarInt("GasStationRobbed", 60);
  3975. SetPVarInt(playerid, "RobbedRecently", 60);
  3976. return SendClientMessage(playerid, COLOR_RED, "Robbery Failed.");
  3977. }
  3978. format(string, 120, "[ROBBERY] %s has started a robbery at the Gas Station in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  3979. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  3980. CNR_PrintString(string);
  3981. 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]);
  3982. SendCopMessage(string);
  3983. IncreaseScore(playerid, 1);
  3984. IncreaseWantedLevel(playerid, 1);
  3985. SetPVarInt(playerid, "RobbingGasStation", 15);
  3986. SetGVarInt("GasStationRobbed", 120);
  3987. SetPVarInt(playerid, "RobbedRecently", 120);
  3988. }
  3989. } // End of Dialog
  3990. if(dialogid == DIALOG_DRUG && response)
  3991. { // "Buy 10 grams of weed\nBuy 20 grams of weed\nBuy 30 grams of weed\nCollect my cash\nAttempt Robbery"
  3992. if(listitem == 0) // 10 grams of weed
  3993. {
  3994. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy 10 grams of weed. ($10,000)");
  3995. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 10);
  3996. format(string, 120, "[WEED BOUGHT] You have bought 10 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  3997. SendClientMessage(playerid, COLOR_GREY, string);
  3998. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 10000);
  3999. GivePlayerMoney(playerid, -10000);
  4000. return 1;
  4001. }
  4002. if(listitem == 1) // 20 grams of weed
  4003. {
  4004. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy 20 grams of weed. ($20,000)");
  4005. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 20);
  4006. format(string, 120, "[WEED BOUGHT] You have bought 20 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  4007. SendClientMessage(playerid, COLOR_GREY, string);
  4008. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 20000);
  4009. GivePlayerMoney(playerid, -20000);
  4010. return 1;
  4011. }
  4012. if(listitem == 2) // 30 grams of weed
  4013. {
  4014. if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_RED, "You do not have enough cash to buy 30 grams of weed. ($30,000)");
  4015. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 30);
  4016. format(string, 120, "[WEED BOUGHT] You have bought 30 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
  4017. SendClientMessage(playerid, COLOR_GREY, string);
  4018. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 30000);
  4019. GivePlayerMoney(playerid, -30000);
  4020. return 1;
  4021. }
  4022. if(listitem == 3) // Collect the Cash (OWNER)
  4023. {
  4024. new oname[MAX_PLAYER_NAME];
  4025. if(!strcmp(HOUSE_ONE_OWNER, oname, true))
  4026. {
  4027. if(GetGVarInt("DrugHouseCash") <= 0) return SendClientMessage(playerid, COLOR_RED, "There is no money in the drug house for you to collect.");
  4028. GivePlayerMoney(playerid, GetGVarInt("DrugHouseCash"));
  4029. format(string, 120, "[DRUG CASH] Drug house owner %s has collected $%d from the Drug House.", PlayerInfo(playerid), GetGVarInt("DrugHouseCash"));
  4030. CNR_PrintString(string);
  4031. format(string, 120, "[DRUG CASH] You have collected $%d from your Drug House.", GetGVarInt("DrugHouseCash"));
  4032. SendClientMessage(playerid, COLOR_GREY, string);
  4033. SetGVarInt("DrugHouseCash", 0);
  4034. return 1;
  4035. }
  4036. SendClientMessage(playerid, COLOR_RED, "You do not own the drug house.");
  4037. return 1;
  4038. }
  4039. if(listitem == 4) // Attempt Robbery
  4040. {
  4041. new current_zone = player_zone[playerid];
  4042. if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_RED, "You've robbed a place recently. Please wait.");
  4043. if(GetGVarInt("DrugHouseRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The drug house has been robbed recently. Please wait.");
  4044. if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_RED, "You do not know how to rob the Drug House.");
  4045. if(GetGVarInt("DrugHouseCash") == 0) return SendClientMessage(playerid, COLOR_RED, "There is nothing you can rob....");
  4046. new crand = random(100);
  4047. if(crand < 10)
  4048. {
  4049. SetPVarInt(playerid, "RobbedRecently", 60);
  4050. SetGVarInt("DrugHouseRobbed", 50);
  4051. return SendClientMessage(playerid, COLOR_RED, "Your attempt to rob the Drug House has failed.");
  4052. }
  4053. format(string, 120, "[ROBBERY] %s has started a robbery at the Drug House in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4054. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4055. CNR_PrintString(string);
  4056. 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]);
  4057. SendCopMessage(string);
  4058. IncreaseWantedLevel(playerid, 1);
  4059. IncreaseScore(playerid, 1);
  4060. format(string, 120, "Robbery Started. Stay in the checkpoint to complete the robbery.");
  4061. SendClientMessage(playerid, COLOR_RED, string);
  4062. SetPVarInt(playerid, "RobbingDrugHouse", 15);
  4063. return 1;
  4064. }
  4065. }// End of Dialog
  4066. if(dialogid == DIALOG_PORT && response)
  4067. {//""San Fierro\nLas Venturas", "Okay", "Cancel");
  4068. if(listitem == 0)
  4069. {
  4070. if(PlayerHasCash(playerid, 10000))
  4071. {
  4072. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to San Fierro. You have boarded your plane and will arrive later.");
  4073. SetPVarInt(playerid, "FlyToSF", 10);
  4074. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  4075. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750);
  4076. SetPlayerInterior(playerid, 1);
  4077. SetTimerEx("PutPlayerInSF", 1000*10, false, "i",playerid);
  4078. return 1;
  4079. }
  4080. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a plane ticket.");
  4081. return 1;
  4082. }
  4083. if(listitem == 1)
  4084. {
  4085. if(PlayerHasCash(playerid, 10000))
  4086. {
  4087. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Las Venturas. You have boarded your plane and will arrive soon.");
  4088. SetPVarInt(playerid, "FlyToLV", 10);
  4089. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  4090. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
  4091. SetPlayerInterior(playerid, 1);
  4092. SetTimerEx("PutPlayerInLV", 1000*10, false, "i",playerid);
  4093. return 1;
  4094. }
  4095. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a plane ticket to Las Venturas.");
  4096. return 1;
  4097. }
  4098. if(listitem == 2) {
  4099. if(PlayerHasCash(playerid, 10000)) {
  4100. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Los santos. You have boarded your plane and will arrive soon.");
  4101. SetPVarInt(playerid, "FlyToLS", 10);
  4102. SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
  4103. SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
  4104. SetPlayerInterior(playerid, 1);
  4105. SetTimerEx("PutPlayerInLS", 1000*10, false, "i",playerid);
  4106. return 1;
  4107. }
  4108. SendClientMessage(playerid, COLOR_RED, "You do not have enough money to buy a plane ticket to Los Santos.");
  4109. return 1;
  4110. }
  4111. }
  4112. return 1;
  4113. }
  4114.  
  4115. /*CMD:acc(playerid, params[])
  4116. {
  4117. if(udb_Exists(PlayerName(playerid)))
  4118. {
  4119. SendClientMessage(playerid, COLOR_ERROR, "This player name is taken. Please login.");
  4120. LogPlayer(playerid);
  4121. }
  4122. else if (!udb_Exists(PlayerName(playerid)))
  4123. {
  4124. SendClientMessage(playerid, COLOR_ERROR, "This player name is not registered. Please do so before you spawn.");
  4125. RegisterPlayer(playerid);
  4126. }
  4127. }*/
  4128. CMD:me(playerid, params[])
  4129. {
  4130. if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "SYNTAX: /me [action]");
  4131. new string[128];
  4132. format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
  4133. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4134. return 1;
  4135. }
  4136. ///----------/do command----------///
  4137. CMD:do(playerid, params[])
  4138. {
  4139. if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "SYNTAX: /do [action]");
  4140. new string[128];
  4141. format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
  4142. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4143. return 1;
  4144. }
  4145.  
  4146. cmd(fastt, playerid, params[])
  4147. {
  4148. SetPlayerPos(playerid, 1934.5961,-1790.5491,13.3828);
  4149. return 1;
  4150. }
  4151.  
  4152. cmd(credits, playerid, params[])
  4153. {
  4154. SendClientMessage(playerid, COLOR_BLUE, "Los Santos Cops N Robbers RP Version 0.3x by Pr_Kill3rz");
  4155. SendClientMessage(playerid, COLOR_BLUE, "This script was created by scratch by Pr_Kill3rz");
  4156. SendClientMessage(playerid, COLOR_BLUE, "Checkpoint Streamer: BMUK Object Streamer: xObjects Zones Script");
  4157. SendClientMessage(playerid, COLOR_BLUE, "Script is done 100 percent in ZCMD and what I call compressed code formating.");
  4158. SendClientMessage(playerid, COLOR_BLUE, "Please enjoy the script as much as you can, and updates are really possible!");
  4159. SendClientMessage(playerid, COLOR_BLUE, "Hope You Enjoy! This Server Worked really hard for this!");
  4160. return 1;
  4161. }
  4162.  
  4163. CMD:flash(playerid,params[])
  4164. {
  4165. if(!IsCop(playerid))
  4166. {
  4167. return SendClientMessage(playerid, COLOR_RED, "You are not a Law Enforcement officer.");
  4168. }
  4169. new vehicleid,panels,doors,lights,tires;
  4170. vehicleid = GetPlayerVehicleID(playerid);
  4171. if(!Flasher[vehicleid]) {
  4172. if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  4173. {
  4174. return SendClientMessage(playerid, COLOR_RED, "* You are not the driver!");
  4175. }
  4176. if (!GetVehicleModel(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "* You are not in a vehicle!");
  4177. if (IsValidObject(obj[vehicleid]) || IsValidObject(obj2[vehicleid]))
  4178. {
  4179. DestroyObject(obj[vehicleid]), DestroyObject(obj2[vehicleid]);
  4180. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4181. if(LightPwr[vehicleid] == 1)
  4182. UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
  4183. else
  4184. UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
  4185. Flasher[vehicleid] = 0;
  4186. }
  4187. switch (GetVehicleModel(vehicleid))
  4188. {
  4189. case 596:
  4190. {
  4191. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4192. obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4193. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
  4194. AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
  4195. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4196. Flasher[vehicleid] = 1;
  4197. }
  4198. case 597:
  4199. {
  4200. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4201. obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4202. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
  4203. AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
  4204.  
  4205. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4206. Flasher[vehicleid] = 1;
  4207. }
  4208. case 598:
  4209. {
  4210. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4211. obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4212. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
  4213. AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
  4214. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4215. Flasher[vehicleid] = 1;
  4216. }
  4217. case 599:
  4218. {
  4219. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4220. obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4221. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
  4222. AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
  4223. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4224. Flasher[vehicleid] = 1;
  4225. }
  4226. case 541://bullet
  4227. {
  4228. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4229. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.375000,0.524999,0.375000,0.000000,0.000000,0.000000);
  4230.  
  4231. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4232. Flasher[vehicleid] = 1;
  4233. }
  4234. case 426://premier
  4235. {
  4236. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4237. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999,0.749999,0.375000,0.000000,0.000000,0.000000);
  4238.  
  4239. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4240. Flasher[vehicleid] = 1;
  4241. }
  4242. case 427://enforcer
  4243. {
  4244. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4245. Flasher[vehicleid] = 1;
  4246. }
  4247. case 416://Ambulance
  4248. {
  4249. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4250. Flasher[vehicleid] = 1;
  4251. }
  4252. case 407://FireTruck
  4253. {
  4254. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4255. Flasher[vehicleid] = 1;
  4256. }
  4257. case 560://sultan
  4258. {
  4259. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4260. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.225000,0.750000,0.449999,0.000000,0.000000,0.000000);
  4261. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4262. Flasher[vehicleid] = 1;
  4263. }
  4264. case 490://FBI
  4265. {
  4266. obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  4267. AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.000000,1.125000,0.599999,0.000000,0.000000,0.000000);
  4268. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4269. Flasher[vehicleid] = 1;
  4270. }
  4271. default:
  4272. {
  4273. return SendClientMessage(playerid, -1, "You are not in a compatible police vehicle!");
  4274. }
  4275. }
  4276. return SendClientMessage(playerid, -1, "Flashed On ");
  4277. } else {
  4278. if (IsValidObject(obj[vehicleid]) || IsValidObject(obj2[vehicleid])) {
  4279. DestroyObject(obj[vehicleid]), DestroyObject(obj2[vehicleid]);
  4280. }
  4281. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  4282. if(LightPwr[vehicleid] == 1)
  4283. UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
  4284. else
  4285. UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
  4286. Flasher[vehicleid] = 0;
  4287. }
  4288. return 1;
  4289. }
  4290. cmd(hits, playerid, params[])
  4291. {
  4292. #pragma unused params
  4293. new string[138];
  4294. if(IsSpawned[playerid] != 0)
  4295. {
  4296. SendClientMessage(playerid,COLOR_RED,"You must be alive and spawned in order to be able to use this command.");
  4297. return 1;
  4298. }
  4299. if(IsFrozen[playerid] == 1)
  4300. {
  4301. SendClientMessage(playerid,COLOR_RED,"You have been frozen by a Server Administrator. You cannot use this command.");
  4302. return 1;
  4303. }
  4304. if(gTeam[playerid] != TEAM_HITMAN)
  4305. {
  4306. SendClientMessage(playerid,COLOR_RED,"Only Hitman can see the hit list.");
  4307. return 1;
  4308. }
  4309. SendClientMessage(playerid,COLOR_LIGHTBLUE,"[[_Hit List_]]");
  4310. for(new i=0; i<MAX_PLAYERS; i++)
  4311. {
  4312. if(HasHit[i] >= 1)
  4313. {
  4314. format(string,sizeof(string),"%s(%d) - $%d - %d seconds left.",PlayerName(i),i,HitMoney[i],HasHit[i]);
  4315. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  4316. }
  4317. }
  4318. return 1;
  4319. }
  4320. cmd(hit, playerid, params[])
  4321. {
  4322. new string[128];
  4323. new ID;
  4324. new number;
  4325. if(sscanf(params, "ui", ID, number))
  4326. {
  4327. SendClientMessage(playerid,COLOR_RED,"USAGE: /placehit (Player Name/ID) (Amount)");
  4328. return 1;
  4329. }
  4330. if(IsSpawned[playerid] != 0)
  4331. {
  4332. SendClientMessage(playerid,COLOR_RED,"You must be alive and spawned in order to be able to use this command.");
  4333. return 1;
  4334. }
  4335. if(playerid == ID)
  4336. {
  4337. SendClientMessage(playerid,COLOR_RED,"You cannot place hits on yourself.");
  4338. return 1;
  4339. }
  4340. if(number < 20000)
  4341. {
  4342. SendClientMessage(playerid,COLOR_RED,"Please enter an amount over $20000. Seriously -_-");
  4343. return 1;
  4344. }
  4345. if(gTeam[playerid] == TEAM_HITMAN)
  4346. {
  4347. SendClientMessage(playerid,COLOR_RED,"You cannot place hits while you are a hitman.. That would be paying yourself to kill someone.");
  4348. return 1;
  4349. }
  4350. if(!IsPlayerConnected(ID))
  4351. {
  4352. format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot Place a hit in them",ID);
  4353. SendClientMessage(playerid,COLOR_ERROR,string);
  4354. return 1;
  4355. }
  4356. if(InAdminMode[ID] == 1)
  4357. {
  4358. SendClientMessage(playerid,COLOR_RED,"You cannot use this command on this player because they are in Administrator mode.");
  4359. return 1;
  4360. }
  4361. if(PlacedHitRecently[playerid] >= 1)
  4362. {
  4363. SendClientMessage(playerid,COLOR_RED,"You have placed a hit recently. Please wait before placing anymore on people.");
  4364. return 1;
  4365. }
  4366. if(HasHit[ID] >= 1)
  4367. {
  4368. SendClientMessage(playerid,COLOR_RED,"That player already has a hit. You cannot place a second on him.");
  4369. return 1;
  4370. }
  4371. if(GetPlayerMoney(playerid) < number)
  4372. {
  4373. SendClientMessage(playerid,COLOR_RED,"You are not carrying that amount of money to place a hit on someone.");
  4374. return 1;
  4375. }
  4376. SendClientMessage(playerid,COLOR_DEADCONNECT,"[[_Hit Placed_]]");
  4377. format(string,sizeof(string),"You have placed a hit on %s(%d) for the sum of $%d. Your money has been takin from you for payment purposes.",PlayerName(ID),ID,number);
  4378. SendClientMessage(playerid,COLOR_RED,string);
  4379. PlacedHitRecently[playerid] =100;
  4380. GivePlayerMoney(playerid,-number);
  4381.  
  4382. SendClientMessage(ID,COLOR_DEADCONNECT,"[[_Hit Placed On You_]]");
  4383. format(string,sizeof(string),"You have had a hit placed on you by %s(%d) for the sum of $%d. If you think this is invalid, /report them.",PlayerName(playerid),playerid,number);
  4384. SendClientMessage(ID,COLOR_RED,string);
  4385. GameTextForPlayer(ID, "~g~Hit Placed!", 5000, 1);
  4386. HasHit[ID] =1800;
  4387. HitMoney[ID] =number;
  4388.  
  4389. format(string, 128, "[HIT PLACED] %s(%d) has placed a hit on %s(%d) for a sum of $%d.", PlayerName(playerid),playerid,PlayerName(ID),ID,number);
  4390. SendClientMessageToAll(COLOR_GREEN, string);
  4391.  
  4392. /*format(string,125(string),"[HIT PLACED] %s(%d) has placed a hit on %s(%d) for a sum of $%d.",PlayerName(playerid),playerid,PlayerName(ID),ID,number);
  4393. SendClientMessageToAll(string);*/
  4394. return 1;
  4395. }
  4396.  
  4397. cmd(robstore, playerid, params[])
  4398. {
  4399. new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
  4400. if(!IsPlayerInCheckpoint(playerid)) {
  4401. SendClientMessage(playerid, COLOR_RED, "You are not in the checkpoint!");
  4402. return 1;
  4403. }
  4404. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army )
  4405. return SendClientMessage(playerid, COLOR_RED, "You cannot rob anything.");
  4406. if(GetPVarInt(playerid, "RobbedRecently") > 1)
  4407. return SendClientMessage(playerid, COLOR_RED, "You have robbed a store recently. Please wait.");
  4408. new string[120];
  4409. new crand = random(100);
  4410. if(getCheckpointType(playerid) == CP_DanceCounter)
  4411. {
  4412. if(GetGVarInt("DanceDanceRobbed") > 1)
  4413. return SendClientMessage(playerid, COLOR_RED, "This store has been robbed recently.");
  4414. if(crand < 10) return SendClientMessage(playerid, COLOR_RED, "Robbery failed.");
  4415. format(string, 120, "[ROBBERY] %s has started a robbery at Dance Dance Revolution.", PlayerInfo(playerid));
  4416. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4417. CNR_PrintString(string);
  4418. format(string, 120, "[DISPATCH] %s has started a robbery at Dance Dance Revolution. Go arrest the suspect.", PlayerInfo(playerid));
  4419. SendCopMessage(string);
  4420. SetPVarInt(playerid, "RobbingDanceDance", 15);
  4421. IncreaseScore(playerid, 1);
  4422. IncreaseWantedLevel(playerid, 1);
  4423. SetPVarInt(playerid, "RobbedRecently", 120);
  4424. return 1;
  4425. }
  4426. if(getCheckpointType(playerid) == CP_AmmoRob)
  4427. {
  4428. if(GetGVarInt("AmmoRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "Ammunation has been robbed recently. Please wait.");
  4429. if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_RED, "You do not know how to rob a place like this. Get more experience.");
  4430. if(crand < 10) return SendClientMessage(playerid, COLOR_RED, "Robbery Failed.");
  4431. format(string, 120, "[ROBBERY] %s has started a robbery at the Central Los Santos Ammunation.", PlayerInfo(playerid));
  4432. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4433. CNR_PrintString(string);
  4434. format(string, 120, "[DISPATCH] %s has started a robber at the Central Los Santos Ammunation. Go arrest the suspect.", PlayerInfo(playerid));
  4435. SendCopMessage(string);
  4436. SetPVarInt(playerid, "RobbingAmmo", 15);
  4437. IncreaseScore(playerid, 1);
  4438. IncreaseWantedLevel(playerid, 2);
  4439. SetPVarInt(playerid, "RobbedRecently", 100);
  4440. return 1;
  4441. }
  4442. if(getCheckpointType(playerid) == CP_BurgerShotRob)
  4443. {
  4444. if(crand < 10) return SendClientMessage(playerid, COLOR_RED, "Robbery Failed.");
  4445. if(GetGVarInt("BurgerShotRobbed") >1) return SendClientMessage(playerid, COLOR_RED, "Burger Shot has been robbed recently.");
  4446. format(string, 120, "[ROBBERY] %s has began a robbery at the Burger Shot in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4447. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4448. CNR_PrintString(string);
  4449. format(string, 120, "[DISPATCH] %s has began a robbery at the Burger Shot. Go arrest the suspect.", PlayerInfo(playerid));
  4450. SendCopMessage(string);
  4451. SetPVarInt(playerid, "RobbingBurgerShot", 10);
  4452. IncreaseScore(playerid, 1);
  4453. IncreaseWantedLevel(playerid,1);
  4454. SetPVarInt(playerid, "RobbedRecently", 65);
  4455. return 1;
  4456. }
  4457. if(getCheckpointType(playerid) == CP_Tatoo)
  4458. {
  4459. if(crand < 10)
  4460. {
  4461. SetPVarInt(playerid, "RobbedRecently", 65);
  4462. SetGVarInt("TatooRobbed", 60);
  4463. return SendClientMessage(playerid, COLOR_RED, "Robbery Failed.");
  4464. }
  4465. if(GetGVarInt("TatooRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Tatoo parlor has been robbed recently.");
  4466. format(string, 120, "[ROBBERY] %s has began a robbery at the Tatoo Parlor.", PlayerInfo(playerid));
  4467. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4468. CNR_PrintString(string);
  4469. format(string, 120, "[DISPATCH] %s has began a robbery at the Tatoo Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4470. SendCopMessage(string);
  4471. SetPVarInt(playerid, "RobbingTattoShop", 10);
  4472. IncreaseScore(playerid, 10);
  4473. IncreaseWantedLevel(playerid, 1);
  4474. SetPVarInt(playerid, "TatooRobbed", 100);
  4475. SetPVarInt(playerid, "RobbedRecently", 60);
  4476. return 1;
  4477. }
  4478. if(getCheckpointType(playerid) == CP_PigPenRob)
  4479. {
  4480. if(crand < 10)
  4481. {
  4482. SetPVarInt(playerid, "RobbedRecently", 65);
  4483. SetGVarInt("PigPenRobbed", 60);
  4484. return SendClientMessage(playerid, COLOR_RED, "Robbery faild.");
  4485. }
  4486. if(GetGVarInt("PigPenRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Pig Pen has been robbed recently.");
  4487. format(string, 120, "[ROBBERY] %s has started a robbery at the Pig Pen Dance Club.", PlayerInfo(playerid));
  4488. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4489. CNR_PrintString(string);
  4490. format(string, 120, "[DISPATCH] %s has began a robbery at the Pig Pen Dance Club. Location: %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4491. SendCopMessage(string);
  4492. SetPVarInt(playerid, "RobbingPigPen", 18);
  4493. SetPVarInt(playerid, "RobbedRecently", 60);
  4494. IncreaseWantedLevel(playerid, 1);
  4495. return 1;
  4496. }
  4497. if(getCheckpointType(playerid) == CP_Suburban)
  4498. {
  4499. if(crand < 10)
  4500. {
  4501. SetPVarInt(playerid, "RobbedRecently", 65);
  4502. SetGVarInt("SuburbanRobbed", 60);
  4503. return SendClientMessage(playerid, COLOR_RED, "Robbery Failed.");
  4504. }
  4505. if(GetGVarInt("SuburbanRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Suburban has been robbed recently.");
  4506. format(string, 120, "[ROBBERY] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4507. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4508. CNR_PrintString(string);
  4509. format(string, 120, "[DISPATCH] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4510. SendCopMessage(string);
  4511. SetPVarInt(playerid, "RobbingSuburban", 15);
  4512. SetPVarInt(playerid, "RobbedRecently", 120);
  4513. SetGVarInt("SuburbanRobbed", 120);
  4514. IncreaseWantedLevel(playerid, 1);
  4515. return 1;
  4516. }
  4517. if(getCheckpointType(playerid) == CP_Binco)
  4518. {
  4519. if(crand < 10)
  4520. {
  4521. SetPVarInt(playerid, "RobbedRecently", 65);
  4522. SetGVarInt("BincoRobbed", 60);
  4523. return SendClientMessage(playerid, COLOR_RED, "Robbery failed.");
  4524. }
  4525. if(GetGVarInt("BincoRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Binco has been robbed recently. Please wait.");
  4526. format(string, 120, "[ROBBERY] %s has started a robbery at the Binco in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4527. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4528. CNR_PrintString(string);
  4529. format(string, 120, "[DISPATCH] %s has started a robbery at the Binco in %s.",PlayerInfo(playerid), zones[current_zone][zone_name]);
  4530. SendCopMessage(string);
  4531. SetPVarInt(playerid, "RobbingBinco", 15);
  4532. SetPVarInt(playerid, "RobbedRecently", 120);
  4533. SetGVarInt("BincoRobbed", 120);
  4534. IncreaseWantedLevel(playerid, 1);
  4535. return 1;
  4536. }
  4537. if(getCheckpointType(playerid) == CP_WellStacked)
  4538. {
  4539. if(crand < 10)
  4540. {
  4541. SetPVarInt(playerid, "RobbedRecently", 65);
  4542. SetGVarInt("PizzaRobbed", 60);
  4543. return SendClientMessage(playerid, COLOR_RED, "Robbery failed.");
  4544. }
  4545. if(GetGVarInt("PizzaRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The Well Stacked Pizza parlor has been robbed recently.");
  4546. format(string, 120, "[ROBBERY] %s has started a robbery at the Well Stacked Pizza Parlor in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
  4547. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4548. CNR_PrintString(string);
  4549. format(string, 120, "[DISPATCH] %s has started a robbery at the Well Stacked Pizza Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4550. SendCopMessage(string);
  4551. SetPVarInt(playerid, "RobbingPizza", 15);
  4552. SetPVarInt(playerid, "RobbedRecently", 120);
  4553. SetGVarInt("PizzaRobbed", 120);
  4554. IncreaseWantedLevel(playerid, 1);
  4555. return 1;
  4556. }
  4557. if(getCheckpointType(playerid) == CP_SupaSaveRob)
  4558. {
  4559. if(crand < 10)
  4560. {
  4561. SetPVarInt(playerid, "RobbedRecently", 65);
  4562. SetGVarInt("SupaSaveMainRobbed", 60);
  4563. return SendClientMessage(playerid, COLOR_RED, "Robbery failed.");
  4564. }
  4565. if(GetGVarInt("PizzaRobbed") > 1) return SendClientMessage(playerid, COLOR_RED, "The SupaSave Store has been robbed recently.");
  4566. format(string, 120, "[ROBBERY] %s has started a robbery at the SupaSave Store in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
  4567. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  4568. CNR_PrintString(string);
  4569. format(string, 120, "[DISPATCH] %s has started a robbery at the SupaSave Store in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4570. SendCopMessage(string);
  4571. SetPVarInt(playerid, "RobbingSupaSave", 15);
  4572. SetPVarInt(playerid, "RobbedRecently", 120);
  4573. SetGVarInt("SupaSaveMainRobbed", 120);
  4574. IncreaseWantedLevel(playerid, 1);
  4575. return 1;
  4576. }
  4577. return 1;
  4578. }
  4579.  
  4580. cmd(rules, playerid ,params[])
  4581. {
  4582. ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "{00FFEE}Rules:", "{00C0FF}[1]:{00FFEE}Dont Spam\n{00C0FF}[2]:{00FFEE}No DeathMatch!\n{00C0FF}[3]:{00FFEE}Dont Use /q to avoid death\n{00C0FF}[4]:{00FFEE}Dont Use /q to avoid anything!\n{F3FF02}*Your wanted will always save!\n{00C0FF}[5]:{00FFEE}Respect Other players", "Next", "Kick");
  4583. return 1;
  4584. }
  4585.  
  4586. command(pack, playerid, params[])
  4587. {
  4588. if(GetPVarInt(playerid, "HasPack") !=1)
  4589. {
  4590. return SendClientMessage(playerid, COLOR_RED, "Sorry, you must have a pack before using this command.");
  4591. }
  4592. if(GetPVarInt(playerid, "Jailed") == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in jail.");
  4593. if(GetPVarInt(playerid, "Cuffed") == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while cuffed.");
  4594. ShowPlayerDialog(playerid, DIALOG_PACK, DIALOG_STYLE_LIST, "What do you want to do?", "Take something out\nPut something in", "Okay", "Cancel");
  4595. return 1;
  4596. }
  4597.  
  4598. cmd(location, playerid, params[])
  4599. {
  4600. new current_zone = player_zone[playerid];
  4601. new string[120];
  4602. format(string, 120, "[LOCATION] %s", zones[current_zone][zone_name]);
  4603. SendClientMessage(playerid, COLOR_RED, string);
  4604. return 1;
  4605. }
  4606. command(commands, playerid, params[])
  4607. {
  4608. if(gTeam[playerid] == Team_Army)
  4609. {
  4610. SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
  4611. SendClientMessage(playerid, COLOR_PURPLE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID) ");
  4612. }
  4613. if(gTeam[playerid] == Team_Cop)
  4614. {
  4615. SendClientMessage(playerid, COLOR_DODGERBLUE, "**Los Santos Police Department**");
  4616. SendClientMessage(playerid, COLOR_DODGERBLUE, "Your commands are: /cuff (ID) /ar (ID)/search (ID) /spike /remspike /fine (ID) ");
  4617. }
  4618. if(gTeam[playerid] == Team_Rape)
  4619. {
  4620. SendClientMessage(playerid, COLOR_WHITE, "**Rapist**");
  4621. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rape (ID) /fondle (ID)");
  4622. }
  4623. if(gTeam[playerid] == Team_FBI)
  4624. {
  4625. SendClientMessage(playerid, COLOR_BLUE, "**FBI Agent**");
  4626. SendClientMessage(playerid, COLOR_BLUE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID)");
  4627. }
  4628. if(gTeam[playerid] == Team_Terror)
  4629. {
  4630. SendClientMessage(playerid, COLOR_WHITE, "**Terrorist**");
  4631. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /bomb /blow");
  4632. }
  4633. if(gTeam[playerid] == Team_Steal)
  4634. {
  4635. SendClientMessage(playerid, COLOR_WHITE, "**Theif**");
  4636. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rob (ID)");
  4637. }
  4638. if(gTeam[playerid] == Team_PrvtMed)
  4639. {
  4640. SendClientMessage(playerid, COLOR_WHITE, "**Private Medic**");
  4641. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /infect (ID) /healme /heal (ID) /cure (ID)");
  4642. }
  4643. if(gTeam[playerid] == TEAM_HITMAN)
  4644. {
  4645. SendClientMessage(playerid, COLOR_WHITE, "**HITMAN**");
  4646. SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /hits and look for them and kill for money!");
  4647. }
  4648. return 1;
  4649. }
  4650. cmd(healme, playerid, params[])
  4651. {
  4652. if(gTeam[playerid] != Team_PrvtMed) return SendClientMessage(playerid, COLOR_RED, "Only Private Medics can use this command.");
  4653. if(GetPlayerWantedLevel(playerid) >= 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while wanted.");
  4654. if(GetPVarInt(playerid, "UsedHealme") > 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command right now, you just used it!");
  4655. SetPlayerHealth(playerid, 100);
  4656. SendClientMessage(playerid, COLOR_GREEN, "[MEDIC] You have healed yourself.");
  4657. SetPVarInt(playerid, "UsedHealme", 120);
  4658. return 1;
  4659. }
  4660.  
  4661. cmd(blow, playerid, params[])
  4662. {
  4663. if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_RED, "Only Terrorists can use this command.");
  4664. if(!IsPlayerInCheckpoint(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in a checkpoint that you can blow.");
  4665. if(getCheckpointType(playerid) == CP_LSAirportBlow)
  4666. {
  4667. if(GetPVarInt(playerid, "TerrorSkill") < 20)
  4668. {
  4669. return SendClientMessage(playerid, COLOR_RED, "Your terrorist skill isn't high enough to blow the airport.");
  4670. }
  4671. if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives.");
  4672. if(GetGVarInt("AirportBlown") > 1) return SendClientMessage(playerid, COLOR_RED, "The airport has been blown up recently.");
  4673. SetPVarInt(playerid, "HasExp", 0);
  4674. new string[120];
  4675. new current_zone = player_zone[playerid];
  4676. 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]);
  4677. SendCopMessage(string);
  4678. format(string, 120, "[DISPATCH] Go arrest him now.");
  4679. SendCopMessage(string);
  4680. 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]);
  4681. SendClientMessageToAll(COLOR_RED, string);
  4682. CNR_PrintString(string);
  4683. IncreaseWantedLevel(playerid, 6);
  4684. IncreaseScore(playerid, 3);
  4685. SetTimer("APPlantOne",5000,0);
  4686. SetGVarInt("AirportBlown", 400);
  4687. SetPVarInt(playerid, "BlowingAirport", 1);
  4688. if(GetPVarInt(playerid, "TerrorSkill") > 20 && GetPVarInt(playerid, "TerrorSkill") < 30)
  4689. {
  4690. SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") +1);
  4691. format(string, 120, "[SKILL UPGRADE] Your terrorist skill has increased to %s!", GetPVarInt(playerid, "TerrorSkill"));
  4692. SendClientMessage(playerid, COLOR_RED, string);
  4693. }
  4694. return 1;
  4695. }
  4696. if(getCheckpointType(playerid) == CP_ParkBlow)
  4697. {
  4698. if(GetPVarInt(playerid, "TerrorSkill") != 30)
  4699. {
  4700. return SendClientMessage(playerid, COLOR_RED, "You must be a master terrorist to do this job.");
  4701. }
  4702. if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives.");
  4703. if(GetGVarInt("ParkBlown") > 1) return SendClientMessage(playerid, COLOR_RED, "The park has been blown up recently.");
  4704. SetPVarInt(playerid, "HasExp", 0);
  4705. new string[120];
  4706. new current_zone = player_zone[playerid];
  4707. 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]);
  4708. SendCopMessage(string);
  4709. 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]);
  4710. SendClientMessageToAll(COLOR_RED, string);
  4711. CNR_PrintString(string);
  4712. IncreaseWantedLevel(playerid, 6);
  4713. IncreaseScore(playerid, 5);
  4714. SetTimer("ParkPlantOne", 3000,0);
  4715. SetGVarInt("AmuseParkBlown", 500);
  4716. SetPVarInt(playerid, "BlowingPark", 1);
  4717. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  4718. return 1;
  4719. }
  4720. if(getCheckpointType(playerid) == CP_VinewoodBlow)
  4721. {
  4722. if(GetPVarInt(playerid, "TerrorSkill") < 15)
  4723. {
  4724. return SendClientMessage(playerid, COLOR_RED, "You must have a terrorist skill of 15 or higher to do this job.");
  4725. }
  4726. if(GetPVarInt(playerid, "HasExp") == 0)
  4727. return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives.");
  4728. if(GetPVarInt(playerid, "SignBlown") > 1)
  4729. return SendClientMessage(playerid, COLOR_RED, "The sign has been blown recently. Please wait.");
  4730. new string[120];
  4731. new current_zone = player_zone[playerid];
  4732. 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]);
  4733. SendCopMessage(string);
  4734. format(string, 120, "[TERRORISM] Terrorist %s has started to plant explosives at the Vinewood Sign in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4735. SendClientMessageToAll(COLOR_RED, string);
  4736. CNR_PrintString(string);
  4737. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  4738. SetTimer("SignPlantOne", 2000, 0);
  4739. SetGVarInt("SignBlown", 400);
  4740. SetPVarInt(playerid, "BlowingSign", 1);
  4741. SetPVarInt(playerid, "HasExp", 0);
  4742. return 1;
  4743. }
  4744. if(getCheckpointType(playerid) == CP_BankBlow)
  4745. {
  4746. if(GetPVarInt(playerid, "TerrorSkill") < 10)
  4747. return SendClientMessage(playerid, COLOR_RED, "You do not have enough skill to blow up the bank.");
  4748. if(GetPVarInt(playerid, "HasExp") == 0)
  4749. return SendClientMessage(playerid, COLOR_RED, "You do not have explosives.");
  4750. if(GetGVarInt("BankBlown") > 1)
  4751. return SendClientMessage(playerid, COLOR_RED, "The bank has been blown up recently");
  4752. new string[120];
  4753. new current_zone = player_zone[playerid];
  4754. 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]);
  4755. SendCopMessage(string);
  4756. format(string, 120, "[TERRORISM] %s has started to plant explosives at the Los Santos Bank in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
  4757. SendClientMessageToAll(COLOR_RED, string);
  4758. CNR_PrintString(string);
  4759. SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
  4760. SetTimer("BankPlantOne", 3000, 0);
  4761. SetPVarInt(playerid, "HasExp", 0);
  4762. SetGVarInt("BankBlown", 300);
  4763. SetPVarInt(playerid, "BlowingBank", 1);
  4764. if(GetPVarInt(playerid, "TerrorSkill") > 10 && GetPVarInt(playerid, "TerrorSkill") < 20)
  4765. {
  4766. SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") + 1);
  4767. SendClientMessage(playerid, COLOR_RED, "[SKILL UPGRADE] You terrorist skill has gone up!");
  4768. return 1;
  4769. }
  4770. return 1;
  4771. }
  4772. return 1;
  4773. }
  4774. cmd(fine, playerid, params[])
  4775. {
  4776. if(!IsCop(playerid))
  4777. return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command.");
  4778. new string[120], ID;
  4779. if(sscanf(params, "u", ID))
  4780. return SendClientMessage(playerid, COLOR_RED, "Usage: /fine (ID)");
  4781. if(!IsPlayerConnected(ID))
  4782. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  4783. new pwl = GetPlayerWantedLevel(playerid);
  4784. if(pwl != 1)
  4785. return SendClientMessage(playerid, COLOR_RED, "Only persons with a wanted level of 1 can be fined.");
  4786. format(string, 120, "[COP ACTION] You have been fined by officer %s. You have been charged $5,000", PlayerInfo(playerid));
  4787. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  4788. format(string, 120, "[COP ACTION] You have fined %s. You have recieved a collection prize.", PlayerInfo(ID));
  4789. SendClientMessage(playerid, COLOR_DODGERBLUE, string);
  4790. format(string, 120, "[DISPATCH] Officer %s has fined %s. He is no longer wanted.", PlayerInfo(playerid), PlayerInfo(ID));
  4791. SendCopMessage(string);
  4792. SetPlayerWantedLevel(ID, 0);
  4793. IncreaseScore(playerid, 1);
  4794. GivePlayerMoney(playerid, 2500);
  4795. GivePlayerMoney(ID, -5000);
  4796. return 1;
  4797.  
  4798. }
  4799. cmd(cure, playerid, params[])
  4800. {
  4801. new string[120];
  4802. if(gTeam[playerid] != Team_PrvtMed)
  4803. return SendClientMessage(playerid, COLOR_RED, "Only Private Medics can use this command.");
  4804. if(GetPVarInt(playerid, "Cuffed") == 1)
  4805. return SendClientMessage(playerid, COLOR_RED, "You are cuffed, you cannot use this command.");
  4806. if(GetPVarInt(playerid, "Jailed") == 1)
  4807. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in prison.");
  4808. if(GetPVarInt(playerid, "Spawned") == 0)
  4809. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command at this time.");
  4810. new ID;
  4811. if(sscanf(params, "u", ID))
  4812. return SendClientMessage(playerid, COLOR_RED, "Usage: /heal (ID)");
  4813. if(!IsPlayerConnected(ID))
  4814. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  4815. if(GetPVarInt(ID, "CalledForMedic") == 0)
  4816. return SendClientMessage(playerid, COLOR_RED, "That player hasn't called for a medic.");
  4817. if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 0)
  4818. return SendClientMessage(playerid, COLOR_RED, "That player isn't infected with a disease.");
  4819. if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 0)
  4820. {
  4821. format(string, 120, "[MEDIC] Medic %s has healed you of your infection. You are no longer sick.", PlayerInfo(playerid));
  4822. SendClientMessage(ID, COLOR_GREEN, string);
  4823. format(string, 120, "[MEDIC] You have cured %s of his infection.", PlayerInfo(ID));
  4824. SendClientMessage(playerid, COLOR_GREEN, string);
  4825. SetPVarInt(ID, "IsSick", 0);
  4826. IncreaseScore(playerid, 1);
  4827. GivePlayerMoney(playerid, 5000);
  4828. GivePlayerMoney(ID, -5000);
  4829. return 1;
  4830. }
  4831. if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 1)
  4832. {
  4833. format(string, 120, "[MEDIC] Medic %s has healed you of your STDs.", PlayerInfo(playerid));
  4834. SendClientMessage(ID, COLOR_GREEN, string);
  4835. format(string, 120, "[MEDIC] You have cured %s of his STD.", PlayerInfo(ID));
  4836. SendClientMessage(playerid, COLOR_GREEN, string);
  4837. SetPVarInt(ID, "HasSTDs", 0);
  4838. IncreaseScore(playerid, 1);
  4839. GivePlayerMoney(playerid, 5000);
  4840. GivePlayerMoney(ID, -5000);
  4841. return 1;
  4842. }
  4843. if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 1)
  4844. {
  4845. format(string, 120, "[MEDIC] Medic %s has healed you of your STDs and infections.", PlayerInfo(playerid));
  4846. SendClientMessage(ID, COLOR_GREEN, string);
  4847. format(string, 120, "[MEDIC] You have healed %s of their infection and STDs.", PlayerInfo(ID));
  4848. SendClientMessage(playerid, COLOR_GREEN, string);
  4849. SetPVarInt(ID, "HasSTDs", 0);
  4850. SetPVarInt(ID, "IsSick", 0);
  4851. GivePlayerMoney(playerid, 10000);
  4852. GivePlayerMoney(ID, -10000);
  4853. IncreaseScore(playerid, 2);
  4854. return 1;
  4855. }
  4856. return 1;
  4857. }
  4858. cmd(bomb, playerid, params[])
  4859. {
  4860. new string[120];
  4861. new current_zone = player_zone[playerid];
  4862. if(gTeam[playerid] != Team_Terror)
  4863. return SendClientMessage(playerid, COLOR_RED, "Only terrorists can use this command.");
  4864. if(GetPVarInt(playerid, "Jailed") == 1)
  4865. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in jail.");
  4866. if(GetPVarInt(playerid, "Cuffed") == 1)
  4867. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while cuffed.");
  4868. if(!IsPlayerInAnyVehicle(playerid))
  4869. return SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle to use this command.");
  4870. if(GetPVarInt(playerid, "HasExp") == 0)
  4871. return SendClientMessage(playerid, COLOR_RED, "You do not have any explosives. Go buy some at the bomb shop.");
  4872. if(GetPVarInt(playerid, "HasBlownCar") >= 1)
  4873. return SendClientMessage(playerid, COLOR_RED, "You have blown up a car recently. Please wait.");
  4874. new veh = GetPlayerVehicleID(playerid);
  4875. VehicleInfo[veh][bomb] = 15;
  4876. format(string, 120, "[TERRORISM] %s has planted a bomb in his car. It will soon explode.", PlayerInfo(playerid));
  4877. SendClientMessageToAll(COLOR_RED, string);
  4878. CNR_PrintString(string);
  4879. 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]);
  4880. SendCopMessage(string);
  4881. IncreaseScore(playerid, 1);
  4882. IncreaseWantedLevel(playerid, 3);
  4883. SetPVarInt(playerid, "HasBlownCar", 120);
  4884. SetPVarInt(playerid, "HasExp", 0);
  4885. SendClientMessage(playerid, COLOR_RED, "[TERRORISM] You have planted a bomb in your car. Get out now!");
  4886. return 1;
  4887. }
  4888. cmd(medic, playerid, params[])
  4889. {
  4890. new current_zone = player_zone[playerid];
  4891. new string[120];
  4892. if(GetPVarInt(playerid, "Cuffed") == 1)
  4893. return SendClientMessage(playerid, COLOR_RED, "You are cuffed. You cannot use this command.");
  4894. if(GetPVarInt(playerid, "Jailed") == 1)
  4895. return SendClientMessage(playerid, COLOR_RED, "You are in jail. You cannot use this command.");
  4896. if(GetPVarInt(playerid, "Spawned") == 0)
  4897. return SendClientMessage(playerid, COLOR_RED, "You must be spawned to use this command.");
  4898. if(gTeam[playerid] == Team_PrvtMed)
  4899. return SendClientMessage(playerid, COLOR_RED, "You are a medic!");
  4900. format(string, 120, "[ALERT] %s has called for a medic. Go assist that person now. (%s)",PlayerInfo(playerid), zones[current_zone][zone_name]);
  4901. SendMedicMessage(string);
  4902. SetPVarInt(playerid, "CalledForMedic", 1);
  4903. return 1;
  4904. }
  4905. cmd(heal, playerid, params[])
  4906. {
  4907. new string[120];
  4908. if(gTeam[playerid] != Team_PrvtMed)
  4909. return SendClientMessage(playerid, COLOR_RED, "Only Private Medics can use this command.");
  4910. if(GetPVarInt(playerid, "Cuffed") == 1)
  4911. return SendClientMessage(playerid, COLOR_RED, "You are cuffed, you cannot use this command.");
  4912. if(GetPVarInt(playerid, "Jailed") == 1)
  4913. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in prison.");
  4914. if(GetPVarInt(playerid, "Spawned") == 0)
  4915. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command at this time.");
  4916. new ID;
  4917. if(sscanf(params, "u", ID))
  4918. return SendClientMessage(playerid, COLOR_RED, "Usage: /heal (ID)");
  4919. if(!IsPlayerConnected(ID))
  4920. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  4921. if(GetPVarInt(ID, "CalledForMedic") == 0)
  4922. return SendClientMessage(playerid, COLOR_RED, "That player hasn't called for a medic.");
  4923. SetPlayerHealth(ID, 100);
  4924. IncreaseScore(playerid, 1);
  4925. SetPVarInt(ID, "CalledForMedic", 0);
  4926. format(string, 120, "[MEDIC] Private Medic %s has healed %s.",PlayerInfo(playerid), PlayerInfo(ID));
  4927. CNR_PrintString(string);
  4928. format(string, 120, "[MEDIC] %s has healed you.", PlayerInfo(playerid));
  4929. SendClientMessage(ID,COLOR_GREEN, string);
  4930. format(string, 120, "[MEDIC] You have healed %s.", PlayerInfo(ID));
  4931. SendClientMessage(playerid, COLOR_GREEN, string);
  4932. GivePlayerMoney(playerid, 5000);
  4933. GivePlayerMoney(ID, -5000);
  4934. return 1;
  4935. }
  4936. command(rape, playerid, params[])
  4937. {
  4938. new ID, string[200];
  4939. if(IsCop(playerid))
  4940. {
  4941. return SendClientMessage(playerid, COLOR_RED, "Cops/Army cannot rape people.");
  4942. }
  4943. if(!IsCop(playerid))
  4944. {
  4945. if(GetPVarInt(playerid, "RapeRecently") == 1)
  4946. {
  4947. return SendClientMessage(playerid, COLOR_RED, "Command used recently. Please wait.");
  4948. }
  4949. if(GetPVarInt(playerid, "Spawned") == 0)
  4950. {
  4951. return SendClientMessage(playerid, COLOR_RED, "You must be alive to use that command.");
  4952. }
  4953. if(GetPVarInt(playerid, "Cuffed") == 1)
  4954. {
  4955. return SendClientMessage(playerid, COLOR_RED, "You are cuffed. You cannot use this command.");
  4956. }
  4957. if(GetPVarInt(playerid, "Jailed") == 1)
  4958. {
  4959. return SendClientMessage(playerid, COLOR_RED, "You are in jail. You cannot use this command.");
  4960. }
  4961. if(IsPlayerInAnyVehicle(playerid))
  4962. {
  4963. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in a vehicle.");
  4964. }
  4965. if(sscanf(params, "u", ID))
  4966. {
  4967. return SendClientMessage(playerid, COLOR_RED, "Usage: /rape (ID)");
  4968. }
  4969. if(ID == playerid)
  4970. {
  4971. return SendClientMessage(playerid, COLOR_RED, "You cannot rape yourself.");
  4972. }
  4973. if(!IsPlayerConnected(ID))
  4974. {
  4975. return SendClientMessage(playerid, COLOR_RED, "Invalid Player ID.");
  4976. }
  4977. if(GetPVarInt(ID, "Jailed") == 1)
  4978. {
  4979. return SendClientMessage(playerid, COLOR_RED, "You cannot rape a prisoner.");
  4980. }
  4981. if(GetPVarInt(ID, "Cuffed") == 1)
  4982. {
  4983. return SendClientMessage(playerid, COLOR_RED, "You cannot rape that player. He/She is cuffed.");
  4984. }
  4985. if(IsPlayerInAnyVehicle(ID))
  4986. {
  4987. return SendClientMessage(playerid, COLOR_RED, "You cannot rape a player in a vehicle.");
  4988. }
  4989. if(GetDistanceBetweenPlayers(playerid, ID) > 4)
  4990. {
  4991. return SendClientMessage(playerid, COLOR_RED, "Your dick is not big enough! Get closer!");
  4992. }
  4993. if(GetPVarInt(ID, "HasCondom") == 1)
  4994. {
  4995. SendClientMessage(playerid, COLOR_RED, "That player had a condom. You failed to rape them.");
  4996. SendClientMessage(ID, COLOR_RED, "Your condom has protected you from a rape. You have lost your condom.");
  4997. SetPVarInt(ID, "HasCondom", 0);
  4998. }
  4999. format(string, sizeof(string), "**RAPE COMPLETE**");
  5000. SendClientMessage(playerid, COLOR_GREY, string);
  5001. format(string, sizeof(string), "You have raped %s.", PlayerInfo(ID));
  5002. SendClientMessage(playerid, COLOR_GREEN, string);
  5003. if(gTeam[playerid] == Team_Rape)
  5004. {
  5005. format(string, sizeof(string), "%s has been infected with STDs.", PlayerInfo(ID));
  5006. SendClientMessageToAll(COLOR_RED, string);
  5007. CNR_PrintString(string);
  5008. SetPVarInt(ID, "HasSTDs", 1);
  5009. }
  5010. if(IsCop(ID))
  5011. {
  5012. IncreaseWantedLevel(playerid, 2);
  5013. }
  5014. if(gTeam[ID] == Team_Rape || gTeam[ID] == Team_Terror || gTeam[ID] == Team_Steal || gTeam[ID] == Team_PrvtMed)
  5015. {
  5016. IncreaseWantedLevel(playerid, 1);
  5017. }
  5018. new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
  5019. format(string, sizeof(string), "**RAPE VICTIM**");
  5020. SendClientMessage(ID, COLOR_GREY, string);
  5021. format(string, sizeof(string), "You have been raped by %s. You might have STDs.", PlayerInfo(playerid));
  5022. SendClientMessage(ID, COLOR_GREEN, string);
  5023. format(string, sizeof(string), "%s has raped %s", PlayerInfo(playerid), PlayerInfo(ID));
  5024. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  5025. CNR_PrintString(string);
  5026. SetPVarInt(playerid, "RapeRecently", 1);
  5027. SetTimer("RapeAgain", 1000*6*2, 0);
  5028. format(string, 120, "[DISPATCH] %s has raped %s Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
  5029. SendCopMessage(string);
  5030. return 1;
  5031. }
  5032. return 1;
  5033. }
  5034.  
  5035. command(fondle, playerid, params[])
  5036. {
  5037. new ID, string[200];
  5038. if(IsCop(playerid))
  5039. {
  5040. SendClientMessage(playerid, COLOR_RED, "Cops/Army cannot fondle other people.");
  5041. return 1;
  5042. }
  5043. if(gTeam[playerid] != Team_Rape)
  5044. {
  5045. SendClientMessage(playerid, COLOR_RED, "Only Rapists can fondle players.");
  5046. return 1;
  5047. }
  5048. if(GetPVarInt(playerid, "Spawned") == 0)
  5049. {
  5050. return SendClientMessage(playerid, COLOR_RED, "You must be spawned and alive to use this command.");
  5051. }
  5052. if(GetPVarInt(playerid, "Cuffed") == 1)
  5053. {
  5054. return SendClientMessage(playerid, COLOR_RED, "You are cuffed. You cannot use this command.");
  5055. }
  5056. if(GetPVarInt(playerid, "Jailed") == 1)
  5057. {
  5058. return SendClientMessage(playerid, COLOR_RED, "You cannot fondle someone. You are in jail.");
  5059. }
  5060. if(IsPlayerInAnyVehicle(playerid))
  5061. {
  5062. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in a vehicle.");
  5063. }
  5064. if(sscanf(params, "u", ID))
  5065. {
  5066. return SendClientMessage(playerid, COLOR_RED, "Usage: /fondle (ID)");
  5067. }
  5068. if(ID == playerid)
  5069. {
  5070. return SendClientMessage(playerid, COLOR_RED, "You cannot fondle yourself.");
  5071. }
  5072. if(!IsPlayerConnected(ID))
  5073. {
  5074. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5075. }
  5076. if(IsPlayerInAnyVehicle(ID))
  5077. {
  5078. return SendClientMessage(playerid, COLOR_RED, "You cannot fondle someone in a vehicle.");
  5079. }
  5080. if(GetDistanceBetweenPlayers(playerid, ID) > 5)
  5081. {
  5082. return SendClientMessage(playerid, COLOR_RED, "That player is too far away to fondle.");
  5083. }
  5084. if(GetPVarInt(ID, "Cuffed") == 1)
  5085. {
  5086. return SendClientMessage(playerid, COLOR_RED, "That player is cuffed, you cannot fondle him.");
  5087. }
  5088. if(GetPVarInt(ID, "Jailed") == 1)
  5089. {
  5090. return SendClientMessage(playerid, COLOR_RED, "That player is in jail, you cannot fondle him.");
  5091. }
  5092. if(GetPVarInt(playerid, "FondleRecent") == 1)
  5093. {
  5094. return SendClientMessage(playerid, COLOR_RED, "Please wait before using this command again.");
  5095. }
  5096. if(IsCop(ID))
  5097. {
  5098. IncreaseWantedLevel(playerid, 2);
  5099. }
  5100. if(!IsCop(ID))
  5101. {
  5102. IncreaseWantedLevel(playerid, 1);
  5103. }
  5104. new current_zone = player_zone[playerid];
  5105. format(string, 200, "%s has fondled %s!", PlayerInfo(playerid), PlayerInfo(ID));
  5106. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  5107. CNR_PrintString(string);
  5108. format(string, 200, "**FONDLE COMPLETE**");
  5109. SendClientMessage(playerid, COLOR_GREY, string);
  5110. format(string, 200, "You have fondled %s", PlayerInfo(ID));
  5111. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  5112. format(string, 200, "%s has fondled you.", PlayerInfo(playerid));
  5113. SendClientMessage(ID, COLOR_LIGHTBLUE, string);
  5114. IncreaseScore(playerid, 1);
  5115. SetPVarInt(playerid, "FondleRecent", 1);
  5116. SetTimer("ResetFondle", 1000*60*3, 0);
  5117. format(string, 120, "[DISPATCH] %s has fondled %s. Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
  5118. SendCopMessage(string);
  5119. return 1;
  5120. }
  5121.  
  5122. command(ar, playerid, params[])
  5123. {
  5124. new ID, string[200];
  5125. if(!IsCop(playerid))
  5126. {
  5127. return SendClientMessage(playerid, COLOR_RED, "You are not a Law Enforcement officer.");
  5128. }
  5129. if(IsPlayerInAnyVehicle(playerid))
  5130. {
  5131. return SendClientMessage(playerid, COLOR_RED, "You cannot be in a vehicle to use this command.");
  5132. }
  5133. if(sscanf(params, "u", ID))
  5134. {
  5135. return SendClientMessage(playerid, COLOR_RED, "Usage: /ar (ID)");
  5136. }
  5137. if(!IsPlayerConnected(ID))
  5138. {
  5139. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5140. }
  5141. if(ID == playerid)
  5142. {
  5143. return SendClientMessage(playerid, COLOR_RED, "You cannot arrest yourself.");
  5144. }
  5145. if(IsPlayerInAnyVehicle(ID))
  5146. {
  5147. return SendClientMessage(playerid, COLOR_RED, "You cannot arrest a player inside a vehicle.");
  5148. }
  5149. if(GetPVarInt(ID, "Jailed") == 1)
  5150. {
  5151. return SendClientMessage(playerid, COLOR_RED, "You cannot arrest a jailed person.");
  5152. }
  5153. if(GetPVarInt(ID, "Cuffed") ==0)
  5154. {
  5155. return SendClientMessage(playerid, COLOR_RED, "You must cuff the player before arresting.");
  5156. }
  5157. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  5158. {
  5159. return SendClientMessage(playerid, COLOR_RED, "That player is too far away to arrest.");
  5160. }
  5161. if(GetPlayerWantedLevel(ID) <= 1)
  5162. {
  5163. return SendClientMessage(playerid, COLOR_RED, "The player must have a warrant before you arrest.");
  5164. }
  5165. new pwl = GetPlayerWantedLevel(ID);
  5166. if(pwl == 3)
  5167. {
  5168. format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s",PlayerInfo(playerid), PlayerInfo(ID));
  5169. SendClientMessageToAll(COLOR_BLUE, string);
  5170. CNR_PrintString(string);
  5171. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  5172. SendCopMessage(string);
  5173. GivePlayerMoney(playerid, 3000);
  5174. IncreaseScore(playerid, 1);
  5175. SetPVarInt(ID, "JailTime", 45);
  5176. SetPlayerInterior(ID, 10);
  5177. new rnd = random(sizeof(PrisonSpawn));
  5178. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  5179. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  5180. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  5181. TogglePlayerControllable(ID, 1);
  5182. SetPlayerWantedLevel(ID, 0);
  5183. return 1;
  5184. }
  5185. if(pwl == 4)
  5186. {
  5187. format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  5188. SendClientMessageToAll(COLOR_BLUE, string);
  5189. CNR_PrintString(string);
  5190. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  5191. SendCopMessage(string);
  5192. GivePlayerMoney(playerid, 4000);
  5193. IncreaseScore(playerid, 1);
  5194. SetPVarInt(ID, "JailTime", 70);
  5195. SetPlayerInterior(ID, 10);
  5196. new rnd = random(sizeof(PrisonSpawn));
  5197. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  5198. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  5199. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  5200. TogglePlayerControllable(ID, 1);
  5201. SetPlayerWantedLevel(ID, 0);
  5202. return 1;
  5203. }
  5204. if(pwl == 5)
  5205. {
  5206. format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  5207. SendClientMessageToAll(COLOR_BLUE, string);
  5208. CNR_PrintString(string);
  5209. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  5210. SendCopMessage(string);
  5211. GivePlayerMoney(playerid, 10000);
  5212. IncreaseScore(playerid, 2);
  5213. SetPVarInt(ID, "JailTime", 80);
  5214. SetPlayerInterior(ID, 10);
  5215. new rnd = random(sizeof(PrisonSpawn));
  5216. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  5217. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  5218. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  5219. TogglePlayerControllable(ID, 1);
  5220. SetPlayerWantedLevel(ID, 0);
  5221. return 1;
  5222. }
  5223. if(pwl == 6)
  5224. {
  5225. format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
  5226. SendClientMessageToAll(COLOR_BLUE, string);
  5227. CNR_PrintString(string);
  5228. format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
  5229. SendCopMessage(string);
  5230. GivePlayerMoney(playerid, 10000);
  5231. IncreaseScore(playerid, 2);
  5232. SetPVarInt(ID, "JailTime", 100);
  5233. SetPlayerInterior(ID, 10);
  5234. new rnd = random(sizeof(PrisonSpawn));
  5235. SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  5236. SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
  5237. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
  5238. TogglePlayerControllable(ID, 1);
  5239. SetPlayerWantedLevel(ID, 0);
  5240. return 1;
  5241. }
  5242. return 1;
  5243. }
  5244.  
  5245. command(cuff, playerid, params[])
  5246. {
  5247. new ID; new string[200];
  5248. if(!IsCop(playerid))
  5249. return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command");
  5250. if(GetPVarInt(playerid, "Spawned") == 0)
  5251. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command.");
  5252. if(IsPlayerInAnyVehicle(playerid))
  5253. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in a vehicle.");
  5254. if(sscanf(params, "u", ID))
  5255. return SendClientMessage(playerid, COLOR_RED, "Usage: /cuff (ID)");
  5256. if(!IsPlayerConnected(ID))
  5257. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5258. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  5259. return SendClientMessage(playerid, COLOR_RED, "That player is too far away to hand cuff.");
  5260. if(GetPVarInt(ID, "Cuffed") == 1)
  5261. return SendClientMessage(playerid, COLOR_RED, "That player is already cuffed.");
  5262. if(GetPVarInt(ID, "Jailed") == 1)
  5263. return SendClientMessage(playerid, COLOR_RED, "You cannot cuff a prisoner.");
  5264. if(IsPlayerInAnyVehicle(ID))
  5265. return SendClientMessage(playerid, COLOR_RED, "That player is in a vehicle. You cannot cuff him.");
  5266. if(IsCop(ID))
  5267. return SendClientMessage(playerid, COLOR_RED, "You cannot cuff other Police Officers.");
  5268. TogglePlayerControllable(ID, 0);
  5269. GameTextForPlayer(ID, "~b~HANDCUFFED!", 5000, 1);
  5270. format(string, sizeof(string), "[POLICE] Officer %s has put hand cuffs on you. You cannot move.", PlayerInfo(playerid));
  5271. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  5272. format(string, 200, "[DISPATCH] Officer %s has cuffed player %s", PlayerInfo(playerid), PlayerInfo(ID));
  5273. SendCopMessage(string);
  5274. SetPVarInt(ID, "Cuffed", 1);
  5275. SetPVarInt(ID, "CuffTimer", 30);
  5276. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
  5277. SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
  5278. SendClientMessage(playerid, COLOR_DODGERBLUE, "[POLICE] You have cuffed a suspect. You have 30 seconds before they are let loose.");
  5279. return 1;
  5280. }
  5281. cmd(uncuff, playerid, params[])
  5282. {
  5283. new ID; new string[200];
  5284. if(!IsCop(playerid))
  5285. return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command.");
  5286. if(GetPVarInt(playerid, "Spawned") == 0)
  5287. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command.");
  5288. if(IsPlayerInAnyVehicle(playerid))
  5289. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in a vehicle.");
  5290. if(sscanf(params, "u", ID))
  5291. return SendClientMessage(playerid, COLOR_RED, "Usage: /uncuff (ID)");
  5292. if(!IsPlayerConnected(ID))
  5293. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5294. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  5295. return SendClientMessage(playerid, COLOR_RED, "That player is too far away to uncuff.");
  5296. if(GetPVarInt(ID, "Cuffed") == 0)
  5297. return SendClientMessage(playerid, COLOR_RED, "That player ID isn't cuffed.");
  5298. if(IsPlayerInAnyVehicle(ID))
  5299. return SendClientMessage(playerid, COLOR_RED, "That person is in a vehicle, you cannot uncuff them.");
  5300. TogglePlayerControllable(ID, 1);
  5301. format(string, 200, "[POLICE] %s has uncuffed you.", PlayerInfo(playerid));
  5302. SendClientMessage(ID, COLOR_DODGERBLUE, string);
  5303. format(string, 200, "[DISPATCH] %s has uncuffed %s", PlayerInfo(playerid), PlayerInfo(ID));
  5304. SendCopMessage(string);
  5305. SetPVarInt(ID, "Cuffed", 0); SetPVarInt(ID, "CuffTimer", 0);
  5306. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  5307. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  5308. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  5309. return 1;
  5310. }
  5311.  
  5312. cmd(search, playerid, params[])
  5313. {
  5314. new ID, string[200];
  5315. if(!IsCop(playerid))
  5316. return SendClientMessage(playerid, COLOR_RED, "Only cops/army can use this command.");
  5317. if(GetPVarInt(playerid, "Spawned") == 0)
  5318. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command at this time.");
  5319. if(IsPlayerInAnyVehicle(playerid))
  5320. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in a car/plane/helicopter.");
  5321. if(sscanf(params, "u", ID))
  5322. return SendClientMessage(playerid, COLOR_RED, "Usage: /search (ID)");
  5323. if(!IsPlayerConnected(ID))
  5324. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5325. if(GetDistanceBetweenPlayers(playerid, ID) > 3)
  5326. return SendClientMessage(playerid, COLOR_RED, "That player is too far away to search.");
  5327. if(IsPlayerInAnyVehicle(ID))
  5328. return SendClientMessage(playerid, COLOR_RED, "That player is in a car. You cannot search them.");
  5329. if(GetPVarInt(ID, "Cuffed") == 0)
  5330. return SendClientMessage(playerid, COLOR_RED, "That player isn't cuffed. ");
  5331. if(GetPVarInt(ID, "Jailed") == 1)
  5332. return SendClientMessage(playerid, COLOR_RED, "That player is in jail. You cannot search a prisoner.");
  5333. if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") > 0)
  5334. {
  5335. 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"));
  5336. SendCopMessage(string);
  5337. 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"));
  5338. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  5339. CNR_PrintString(string);
  5340. IncreaseWantedLevel(ID, 2);
  5341. IncreaseScore(playerid, 2);
  5342. 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"));
  5343. SendClientMessage(ID, COLOR_RED, string);
  5344. SetPVarInt(ID, "HasPot", 0); SetPVarInt(ID, "HasExp", 0);
  5345. return 1;
  5346. }
  5347. if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") > 0)
  5348. {
  5349. format(string, 200, "[DISPATCH] %s has searched %s(%d) and has found %d sticks of explosives.",PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
  5350. SendCopMessage(string);
  5351. format(string, 200, "[POLICE] Officer %s has searched %s and has found %d sticks of explosives.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
  5352. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  5353. CNR_PrintString(string);
  5354. IncreaseWantedLevel(ID, 1);
  5355. format(string, 200, "[POLICE ACTION] Officer %s has found %d sticks of explosives on you.", PlayerInfo(playerid), GetPVarInt(ID, "HasExp"));
  5356. SendClientMessage(ID, COLOR_RED, string);
  5357. IncreaseScore(playerid, 1);
  5358. SetPVarInt(ID, "HasExp", 0);
  5359. return 1;
  5360. }
  5361. if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") == 0)
  5362. {
  5363. format(string, 200, "[DISPATCH] %s has searched %s and has found %d grams of pot.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"));
  5364. SendCopMessage(string);
  5365. 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"));
  5366. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  5367. CNR_PrintString(string);
  5368. format(string, 200, "[POLICE ACTION] Officer %s(%d) has searched you and found %d grams of pot.", PlayerInfo(playerid), GetPVarInt(ID, "HasPot"));
  5369. SendClientMessage(ID, COLOR_RED, string);
  5370. IncreaseWantedLevel(ID, 1);
  5371. IncreaseScore(playerid, 1);
  5372. SetPVarInt(ID, "HasPot", 0);
  5373. return 1;
  5374. }
  5375. if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") == 0)
  5376. {
  5377. format(string, 200, "[DISPATCH] %s has searched %s and found nothing.", PlayerInfo(playerid),PlayerInfo(ID));
  5378. SendCopMessage(string);
  5379. format(string, 200, "[POLICE] Officer %s has searched %s and found nothing.", PlayerInfo(playerid), PlayerInfo(ID));
  5380. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  5381. CNR_PrintString(string);
  5382. return 1;
  5383. }
  5384. return 1;
  5385. }
  5386. cmd(jail, playerid, params[])
  5387. {
  5388. new ID, string[200], reason;
  5389. if(GetPVarInt(playerid, "AdminLevel") == 0)
  5390. return SendClientMessage(playerid, COLOR_RED, "Invalid command.");
  5391. if(sscanf(params, "uZ", ID, reason))
  5392. return SendClientMessage(playerid, COLOR_RED, "Usage: /jail (ID) (reason)");
  5393. if(!IsPlayerConnected(ID))
  5394. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5395. if(GetPVarInt(ID, "Jailed") == 1)
  5396. return SendClientMessage(playerid, COLOR_RED, "That player is already in jail.");
  5397. format(string, 200, "[ADMIN JAIL] %s %s", PlayerInfo(ID), reason);
  5398. SendClientMessageToAll(COLOR_RED, string);
  5399. CNR_PrintString(string);
  5400. new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
  5401. SetPlayerInterior(ID, 10);
  5402. SetPVarInt(ID, "Jailed", 1); SetPVarInt(ID, "JailTime", 300);
  5403. return 1;
  5404. }
  5405.  
  5406. cmd(unjail, playerid, params[])
  5407. {
  5408. new ID, string[200], reason;
  5409. if(GetPVarInt(playerid, "AdminLevel") == 0)
  5410. return SendClientMessage(playerid, COLOR_RED, "Invalid Command.");
  5411. if(sscanf(params, "uz", ID, reason))
  5412. return SendClientMessage(playerid, COLOR_RED, "Usage: /unjail (ID) (reason)");
  5413. if(!IsPlayerConnected(ID))
  5414. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5415. if(GetPVarInt(ID, "Jailed") == 0)
  5416. return SendClientMessage(playerid, COLOR_RED, "That player isnt' in jail.");
  5417. format(string, 200, "[ADMIN UNJAIL] %s %s", PlayerInfo(ID), reason);
  5418. SendClientMessageToAll(COLOR_RED, string);
  5419. CNR_PrintString(string);
  5420. SetPlayerPos(ID, 237.110794, 111.975547, 1003.218750);
  5421. SetPlayerInterior(ID, 10);
  5422. SetPVarInt(ID, "Jailed", 0);
  5423. SetPVarInt(ID, "JailTIme", 0);
  5424. return 1;
  5425. }
  5426.  
  5427. cmd(spike, playerid, params[])
  5428. {
  5429. new string[200];
  5430. if(!IsCop(playerid)) return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command.");
  5431. if(GetPVarInt(playerid, "Jailed") == 1)
  5432. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in jail.");
  5433. if(GetPVarInt(playerid, "Spawned") == 0)
  5434. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command.");
  5435. if(IsPlayerInAnyVehicle(playerid))
  5436. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in a car.");
  5437. new Float:x, Float:y, Float:z, Float:a;
  5438. GetPlayerPos(playerid, x, y, z);
  5439. GetPlayerFacingAngle(playerid, a);
  5440. CreateStrip(x, y, z, a);
  5441. format(string, 200, "[DISPATCH] Officer %s has laid spike strips. Take caution.", PlayerInfo(playerid));
  5442. SendCopMessage(string);
  5443. return 1;
  5444. }
  5445.  
  5446. cmd(remspike, playerid, params[])
  5447. {
  5448. new string[200];
  5449. if(!IsCop(playerid))
  5450. return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command.");
  5451. if(GetPVarInt(playerid, "Spawned") == 0)
  5452. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command");
  5453. if(IsPlayerInAnyVehicle(playerid))
  5454. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car.");
  5455. RemoveClosestSpike(playerid);
  5456. format(string, 200, "[DISPATCH] %s has removed spike strips in his location.", PlayerInfo(playerid));
  5457. SendCopMessage(string);
  5458. return 1;
  5459. }
  5460. cmd(remallspike, playerid, params[])
  5461. {
  5462. new string[200];
  5463. if(GetPVarInt(playerid, "AdminLevel") == 0)
  5464. return SendClientMessage(playerid, COLOR_RED, "Invalid Command.");
  5465. RemoveAllSpikes();
  5466. format(string, 200, "[ADMIN ACTION] %s has used the command: /remallspike.", PlayerInfo(playerid));
  5467. SendAdminMessage(string);
  5468. print(string);
  5469. return 1;
  5470. }
  5471. cmd(detain, playerid, params[])
  5472. {
  5473. new ID; new string[200];
  5474. if(!IsCop(playerid))
  5475. return SendClientMessage(playerid, COLOR_RED, "Only Cops/Army can use this command.");
  5476. if(GetPVarInt(playerid, "Spawned") == 1)
  5477. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command at this time.");
  5478. if(sscanf(params, "u", ID))
  5479. return SendClientMessage(playerid, COLOR_RED, "Usage: /detain (ID)");
  5480. if(!IsPlayerConnected(ID))
  5481. return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
  5482. if(GetPVarInt(playerid, "Cuffed") == 0)
  5483. return SendClientMessage(playerid, COLOR_RED, "The player must be cuffed in order for you to use this command.");
  5484. if(GetPVarInt(playerid, "Jailed") == 0)
  5485. return SendClientMessage(playerid, COLOR_RED, "You cannot detain a prisoner.");
  5486. if(IsPlayerInAnyVehicle(playerid))
  5487. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in a vehicle.");
  5488. if(IsPlayerInAnyVehicle(ID))
  5489. return SendClientMessage(playerid, COLOR_RED, "You cannot detain that player. He/She is in a vehicle.");
  5490. if(playerid == ID)
  5491. return SendClientMessage(playerid, COLOR_RED, "You cannot detain yourself.");
  5492. if(GetPVarInt(playerid, "LastVehicle") == 0)
  5493. return SendClientMessage(playerid, COLOR_RED, "You must enter a vehicle first.");
  5494. if(GetDistanceBetweenPlayers(playerid, ID) > 4)
  5495. return SendClientMessage(playerid, COLOR_RED, "That playeris too far away.");
  5496. if(GetPlayerWantedLevel(ID) <= 1)
  5497. return SendClientMessage(playerid, COLOR_RED, "You cannot detain this player.");
  5498. format(string, 200, "[DISPATCH] Officer %s has taken %s and detained them.",PlayerInfo(playerid), PlayerInfo(ID));
  5499. SendCopMessage(string);
  5500. format(string, 200, "[POLICE] Officer %s has detained %s.", PlayerInfo(playerid), PlayerInfo(ID));
  5501. SendClientMessageToAll(COLOR_DODGERBLUE, string);
  5502. CNR_PrintString(string);
  5503. SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS POLICE**");
  5504. SendClientMessage(playerid, COLOR_GREY, "You have been detained. You will be taken to jail shortly.");
  5505. SetPVarInt(playerid, "CuffTimer", 200); SetPVarInt(playerid, "Cuffed", 0);
  5506. PutPlayerInVehicle(ID, GetPVarInt(playerid, "LastVehicle"), 1);
  5507. SetPlayerScore(playerid, 1);
  5508. GivePlayerMoney(playerid, 10000);
  5509. return 1;
  5510. }
  5511. cmd(buyexp, playerid, params[])
  5512. {
  5513. new number;
  5514. if(getCheckpointType(playerid) != CP_BuyExp)
  5515. return SendClientMessage(playerid, COLOR_RED, "You must be in the bombshop checkpoint.");
  5516. if(gTeam[playerid] != Team_Terror)
  5517. return SendClientMessage(playerid, COLOR_RED, "Sorry, you are not a terrorist.");
  5518. if(sscanf(params, "i", number))
  5519. return SendClientMessage(playerid, COLOR_GREEN, "Type /buyexp (amount) to buy explosives. Amounts: Between 1 and 5");
  5520. if(number == 1)
  5521. {
  5522. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You must have $10,000 to buy one stick of explosives.");
  5523. if(GetPVarInt(playerid, "HasExp") == 1) return SendClientMessage(playerid, COLOR_RED, "You already have explosives on you. You must put them away before buying more.");
  5524. SetPVarInt(playerid, "HasExp", 1); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought one stick of explosives for $10,000.");
  5525. GivePlayerMoney(playerid, -10000);
  5526. return 1;
  5527. }
  5528. if(number == 2)
  5529. {
  5530. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_RED, "You must have $20,000 to buy two sticks of explosives.");
  5531. 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.");
  5532. GivePlayerMoney(playerid, -20000);
  5533. return 1;
  5534. }
  5535. if(number == 3)
  5536. {
  5537. if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_RED, "You do no have $30,000.");
  5538. SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 3); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 3 sticks of explosives.");
  5539. GivePlayerMoney(playerid, -30000);
  5540. return 1;
  5541. }
  5542. if(number == 4)
  5543. {
  5544. if(GetPlayerMoney(playerid) < 40000) return SendClientMessage(playerid, COLOR_RED, "You do not have $40,000 for explosives.");
  5545. 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.");
  5546. return GivePlayerMoney(playerid, -40000);
  5547. }
  5548. if(number == 5)
  5549. {
  5550. if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, COLOR_RED, "You do not have $45,000 to spend on explosives.");
  5551. 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.");
  5552. return GivePlayerMoney(playerid, -45000);
  5553. }
  5554. else
  5555. return SendClientMessage(playerid, COLOR_RED, "Usage: /buyexp (1-5)");
  5556. }
  5557. cmd(bankstate, playerid, params[])
  5558. {
  5559. new string[120];
  5560. if(!IsPlayerInCheckpoint(playerid))
  5561. return SendClientMessage(playerid, COLOR_RED, "Youu are not in any checkpoint.");
  5562. if(getCheckpointType(playerid) != CP_Bank)
  5563. return SendClientMessage(playerid, COLOR_RED, "You must be in the bank checkpoint to use this command.");
  5564. format(string, sizeof(string), "Your current bank balance is: $%d", GetPVarInt(playerid, "BankCash"));
  5565. SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS BANK**");
  5566. SendClientMessage(playerid, COLOR_GREY, "Thank you for choosing us today!");
  5567. SendClientMessage(playerid, COLOR_GREY, string);
  5568. return 1;
  5569. }
  5570. cmd(emptypack, playerid, params[])
  5571. {
  5572. new string[120];
  5573. if(!IsPlayerInCheckpoint(playerid))
  5574. return SendClientMessage(playerid, COLOR_RED, "Youu are not in any checkpoint.");
  5575. if(getCheckpointType(playerid) != CP_Bank)
  5576. return SendClientMessage(playerid, COLOR_RED, "You must be in the bank checkpoint to use this command.");
  5577. if(GetPVarInt(playerid, "PackCash") == 0)
  5578. return SendClientMessage(playerid, COLOR_RED, "You don't have any money in your pack to put in the bank.");
  5579. format(string, 120, "[BANK] You have put $%d into your bank account.", GetPVarInt(playerid, "PackCash"));
  5580. SendClientMessage(playerid, COLOR_GREY, string);
  5581. SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") + GetPVarInt(playerid, "PackCash"));
  5582. SetPVarInt(playerid, "PackCash", 0);
  5583. return 1;
  5584. }
  5585.  
  5586. cmd(deposit, playerid, params[])
  5587. {
  5588. new string[120]; new amount;
  5589. if(!IsPlayerInCheckpoint(playerid))
  5590. return SendClientMessage(playerid, COLOR_RED, "Youu are not in any checkpoint.");
  5591. if(getCheckpointType(playerid) != CP_Bank)
  5592. return SendClientMessage(playerid, COLOR_RED, "You must be in the bank checkpoint to use this command.");
  5593. if(sscanf(params, "i", amount))
  5594. return SendClientMessage(playerid, COLOR_RED, "Usage: /deposit (AMOUNT)");
  5595. if(GetPlayerMoney(playerid) == 0)
  5596. return SendClientMessage(playerid, COLOR_RED, "You do not have any cash to deposit.");
  5597. if(GetPlayerMoney(playerid) < amount)
  5598. return SendClientMessage(playerid, COLOR_RED, "You do not have that much to deposit.");
  5599. if(amount > 1000000)
  5600. return SendClientMessage(playerid, COLOR_RED, "Please choose an amount below $1,000,000");
  5601. GivePlayerMoney(playerid, -amount);
  5602. SetPVarInt(playerid, "BankCash", amount);
  5603. format(string, 120, "[BANK] You have deposited $%d into your bank account.", amount);
  5604. SendClientMessage(playerid, COLOR_GREY, string);
  5605. return 1;
  5606. }
  5607.  
  5608. cmd(withdraw, playerid, params[])
  5609. {
  5610. new string[120]; new amount;
  5611. if(!IsPlayerInCheckpoint(playerid))
  5612. return SendClientMessage(playerid, COLOR_RED, "Youu are not in any checkpoint.");
  5613. if(getCheckpointType(playerid) != CP_Bank)
  5614. return SendClientMessage(playerid, COLOR_RED, "You are not in the bank checkpoint.");
  5615. if(sscanf(params, "i", amount))
  5616. return SendClientMessage(playerid, COLOR_RED, "Usage: /withdraw (amount)");
  5617. if(amount > 100000)
  5618. return SendClientMessage(playerid, COLOR_RED, "Invalid amount. Please be below $100,000");
  5619. if(amount < 0)
  5620. return SendClientMessage(playerid, COLOR_RED, "Invalid amount. Please choose above $0.");
  5621. if(amount > GetPVarInt(playerid, "BankCash"))
  5622. return SendClientMessage(playerid, COLOR_RED, "You do not have that much to take out.");
  5623. SetPVarInt(playerid, "BankCash", -amount);
  5624. format(string, 120, "[BANK] You have taken out $%d from your bank account.", amount);
  5625. SendClientMessage(playerid, COLOR_GREY, string);
  5626. return 1;
  5627. }
  5628. cmd(transfer, playerid, params[])
  5629. {
  5630. new string[120]; new amount, ID;
  5631. if(!IsPlayerInCheckpoint(playerid))
  5632. return SendClientMessage(playerid, COLOR_RED, "You are not in any checkpoint.");
  5633. if(getCheckpointType(playerid) != CP_Bank)
  5634. return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
  5635. if(sscanf(params, "ui", ID, amount))
  5636. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /transfer (ID) (amount)");
  5637. if(!IsPlayerConnected(ID))
  5638. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5639. if(GetPVarInt(playerid, "BankCash") < amount)
  5640. return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to transfer.");
  5641. if(amount < 0)
  5642. return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount greater than $0");
  5643. if(amount > 1000000)
  5644. return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount less than $1,000,000");
  5645. SetPVarInt(ID, "BankCash", GetPVarInt(ID, "BankCash") + amount);
  5646. format(string, 120, "[BANK] You have setn $%d to %s's bank account.", amount, PlayerInfo(ID));
  5647. SendClientMessage(playerid, COLOR_GREY, string);
  5648. format(string, 120, "[BANK] %s has transfered $%d to your bank account.", PlayerInfo(playerid), amount);
  5649. SendClientMessage(playerid, COLOR_GREY, string);
  5650. SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") -amount);
  5651. format(string, 120, "[BANK TRANSACTION] %s(%d) has sent %s(%d) $%d VIA Bank transfer.", PlayerInfo(playerid), PlayerInfo(ID), amount);
  5652. CNR_PrintString(string);
  5653. return 1;
  5654. }
  5655. cmd(robbank, playerid, params[])
  5656. {
  5657. new string[120];
  5658. if(IsCop(playerid))
  5659. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank.");
  5660. if(!IsPlayerInCheckpoint(playerid))
  5661. return SendClientMessage(playerid, COLOR_ERROR, "You are not in a checkpoint.");
  5662. if(getCheckpointType(playerid) != CP_Bank)
  5663. return SendClientMessage(playerid, COLOR_ERROR, "You are not in the bank checkpoint.");
  5664. if(GetGVarInt("BankRobbedRecently") >= 1)
  5665. return SendClientMessage(playerid, COLOR_ERROR, "The bank has been robbed recently, please wait.");
  5666. if(GetPlayerWantedLevel(playerid) >= 1)
  5667. return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank with a wanted level.");
  5668. if(GetPVarInt(playerid, "RobSkill") != 10)
  5669. return SendClientMessage(playerid, COLOR_ERROR, "You are not a master of bank robberies, you cannot rob the bank.");
  5670. new crand = random(100);
  5671. if(crand < 10)
  5672. return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the bank has failed.");
  5673. SetPVarInt(playerid, "RobbingBank", 30);
  5674. SetGVarInt("BankRobbedRecently", 50);
  5675. format(string, 120, "[BANK ROBBERY] %s has started a robbery at Los Santos Bank.", PlayerInfo(playerid));
  5676. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  5677. CNR_PrintString(string);
  5678. format(string, 120, "[DISPATCH] %s has started a robbery at the L.S Bank.", PlayerInfo(playerid));
  5679. SendCopMessage(string);
  5680. return 1;
  5681. }
  5682.  
  5683. cmd(molly, playerid, params[])
  5684. {
  5685. new string[120];
  5686. if(GetPVarInt(playerid, "Spawned") == 0)
  5687. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  5688. if(GetPVarInt(playerid, "Jailed") == 1)
  5689. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  5690. if(GetPVarInt(playerid, "Cuffed") == 1)
  5691. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5692. if(GetPVarInt(playerid, "HasSTDs") == 1)
  5693. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command with STDs.");
  5694. if(GetPlayerWantedLevel(playerid) >= 1)
  5695. return SendClientMessage(playerid, COLOR_RED, "You are wanted, you cannot kill yourself!");
  5696. SetPlayerHealth(playerid, -1);
  5697. format(string, 120, "%s(%d) has commited suicide using /molly. That why dont pop a molly! D: ", PlayerInfo(playerid));
  5698. SendClientMessageToAll(COLOR_GREEN, string);
  5699. return 1;
  5700. }
  5701.  
  5702. cmd(fastt2, playerid, params[])
  5703. {
  5704. SetPlayerPos(playerid, -2448.4016,737.6202,35.0156);
  5705. return 1;
  5706. }
  5707.  
  5708. cmd(die, playerid, params[])
  5709. {
  5710. new string[120];
  5711. if(GetPVarInt(playerid, "Spawned") == 0)
  5712. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  5713. if(GetPVarInt(playerid, "Jailed") == 1)
  5714. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  5715. if(GetPVarInt(playerid, "Cuffed") == 1)
  5716. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5717. if(GetPVarInt(playerid, "HasSTDs") == 1)
  5718. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command with STDs.");
  5719. if(GetPlayerWantedLevel(playerid) >= 1)
  5720. return SendClientMessage(playerid, COLOR_RED, "You are wanted, you cannot kill yourself!");
  5721. SetPlayerHealth(playerid, -1);
  5722. format(string, 120, "%s(%d) has commited suicide using /die. Emo D: ", PlayerInfo(playerid));
  5723. SendClientMessageToAll(COLOR_GREEN, string);
  5724. return 1;
  5725. }
  5726. cmd(givewallet, playerid, params[])
  5727. {
  5728. new number;
  5729. new ID;
  5730. new amount;
  5731. new string[120];
  5732. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5733. if(sscanf(params, "ui", ID, number))
  5734. {
  5735. SendClientMessage(playerid,COLOR_RED,"USAGE: /givewallet (Player Name/ID) (Amount)");
  5736. return 1;
  5737. }
  5738. format(string, sizeof(string), "%s Got 3 SecureWallet from admin. %s", PlayerInfo(ID),amount);
  5739. SendClientMessageToAll(COLOR_ADMIN, string);
  5740. format(string, sizeof(string), "[ADMIN]a Admin has give you 3 SecureWallet", amount);
  5741. SendClientMessageToAll(COLOR_ADMIN, string);
  5742. SetPVarInt(ID, "HasSecureWallet", 1);
  5743. return 1;
  5744. }
  5745. cmd(rob, playerid, params[])
  5746. {
  5747. new ID; new string[120];
  5748. if(gTeam[playerid] != Team_Steal && gTeam[playerid] != Team_Terror && gTeam[playerid] != Team_Rape && gTeam[playerid] != Team_Civi && gTeam[playerid] != TEAM_HITMAN)
  5749. return SendClientMessage(playerid, COLOR_RED, "You Must be a Civil to use this command.");
  5750. if(GetPVarInt(ID, "HasSecureWallet") == 1)
  5751. {
  5752. SendClientMessage(playerid, COLOR_RED, "That player had a SecureWallet. You failed to rob them.");
  5753. SendClientMessage(ID, COLOR_RED, "Your SecureWallet has protected you from a A robbery. You Have lost lost a Securewallet");
  5754. return 1;
  5755. }
  5756. if(GetPVarInt(playerid, "Jailed") == 1)
  5757. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command in jail.");
  5758. if(GetPVarInt(playerid, "Cuffed") == 1)
  5759. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while cuffed.");
  5760. if(sscanf(params, "u", ID))
  5761. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /rob (ID)");
  5762. if(!IsPlayerConnected(ID))
  5763. return SendClientMessage(playerid, COLOR_RED, "Invalid Player ID.");
  5764. if(GetDistanceBetweenPlayers(playerid, ID) > 5)
  5765. return SendClientMessage(playerid, COLOR_RED, "That player is too far away.");
  5766. if(IsPlayerInAnyVehicle(playerid))
  5767. return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in a vehicle.");
  5768. if(IsPlayerInAnyVehicle(ID))
  5769. return SendClientMessage(playerid, COLOR_RED, "You cannot rob them when they are in a vehicle.");
  5770. if(GetPVarInt(playerid, "RobbedPlayerRecent") >= 1)
  5771. return SendClientMessage(playerid, COLOR_RED, "You must wait before robbing a player again.");
  5772. new chance = random(10);
  5773. if(chance == 1)
  5774. return SendClientMessage(playerid, COLOR_RED, "You failed the robbery.");
  5775. new mrand = random(GetPlayerMoney(ID));
  5776. if(GetPlayerMoney(ID) <=0)
  5777. return SendClientMessage(playerid, COLOR_RED, "That player doesn't have any money.");
  5778. new current_zone = player_zone[playerid];
  5779. if(IsCop(ID))
  5780. {
  5781. format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
  5782. SendClientMessage(ID, COLOR_RED, string);
  5783. format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
  5784. SendClientMessage(playerid, COLOR_RED, string);
  5785. format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
  5786. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  5787. CNR_PrintString(string);
  5788. format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
  5789. SendCopMessage(string);
  5790. format(string, 120, "Type /radioof to turn off the Police Radio.");
  5791. SendCopMessage(string);
  5792. IncreaseWantedLevel(playerid, 2);
  5793. IncreaseScore(playerid, 2);
  5794. if(GetPVarInt(playerid, "RobSkill") <= 3)
  5795. {
  5796. SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
  5797. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
  5798. SendClientMessage(playerid, COLOR_GREY, string);
  5799. }
  5800. return 1;
  5801. }
  5802. if(AttemptedToRobRecently[playerid] >= 1)
  5803. {
  5804. SendClientMessage(playerid,COLOR_ERROR,"You are too tired from your last rob attempt. Please wait before robbing again.");
  5805. return 1;
  5806. }
  5807. if(HasRobbedRecently[playerid] >= 1)
  5808. {
  5809. SendClientMessage(playerid,COLOR_ERROR,"You are too tired from the last person you robbed. Please wait before robbing again.");
  5810. return 1;
  5811. }
  5812. if(GetPlayerMoney(ID) <= 0)
  5813. {
  5814. SendClientMessage(playerid,COLOR_ERROR,"That player has no money in their pockets. What would be the point in robbing them?");
  5815. return 1;
  5816. }
  5817. format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
  5818. SendClientMessage(ID, COLOR_RED, string);
  5819. format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
  5820. SendClientMessage(playerid, COLOR_RED, string);
  5821. format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
  5822. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  5823. CNR_PrintString(string);
  5824. format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
  5825. SendCopMessage(string);
  5826. format(string, 120, "Type /radioof to turn off the Police Radio.");
  5827. SendCopMessage(string);
  5828. IncreaseWantedLevel(playerid, 1);
  5829. IncreaseScore(playerid, 1);
  5830. if(GetPVarInt(playerid, "RobSkill") <= 3)
  5831. {
  5832. SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
  5833. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
  5834. SendClientMessage(playerid, COLOR_GREY, string);
  5835. }
  5836. return 1;
  5837. }
  5838. cmd(radiooff, playerid, params[])
  5839. {
  5840. if(IsCop(playerid))
  5841. {
  5842. if(GetPVarInt(playerid, "CopRadio") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Your radio is already off. Type /radioon to turn it back on.");
  5843. SetPVarInt(playerid, "CopRadio", 0);
  5844. SendClientMessage(playerid, COLOR_DODGERBLUE, "You have turned your cop radio off. Type /radioon to turn it back on.");
  5845. return 1;
  5846. }
  5847. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  5848. }
  5849. cmd(radioon, playerid, params[])
  5850. {
  5851. if(IsCop(playerid))
  5852. {
  5853. if(GetPVarInt(playerid, "CopRadio") == 1) return SendClientMessage(playerid, COLOR_ERROR, "Your cop radio is already off. Type /radioof to turn it off.");
  5854. SetPVarInt(playerid, "CopRadio", 1);
  5855. SendClientMessage(playerid, COLOR_ERROR, "You have turned your radio on. Type /radiooff to turn it off.");
  5856. return 1;
  5857. }
  5858. return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
  5859. }
  5860. cmd(startevent, playerid, params[])
  5861. {
  5862. new string[120];
  5863. if(GetPVarInt(playerid, "AdminLevel") == 0)
  5864. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands.");
  5865. if(GetPVarInt(playerid, "Jailed") == 1)
  5866. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
  5867. if(GetPVarInt(playerid, "Cuffed") == 1)
  5868. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5869. new Float:x, Float:y, Float:z;
  5870. GetPlayerPos(playerid, x, y, z);
  5871. SetGVarFloat("EventX", x);
  5872. SetGVarFloat("EventY", y);
  5873. SetGVarFloat("EventZ", z);
  5874. SetGVarInt("EventI", GetPlayerInterior(playerid));
  5875. SetGVarInt("EventStarted", 1);
  5876. format(string, 120, "[ADMIN EVENT] Server Admin %s has started an event. Type /event to join.", PlayerInfo(playerid));
  5877. SendClientMessageToAll(COLOR_ADMIN, string);
  5878. CNR_PrintString(string);
  5879. SendClientMessage(playerid, COLOR_GREEN, "You have started an event. Type /endevent to end it.");
  5880. return 1;
  5881. }
  5882. cmd(event, playerid, params[])
  5883. {
  5884. if(GetGVarInt("EventStarted") == 0)
  5885. return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
  5886. if(GetPVarInt(playerid, "Cuffed") == 1)
  5887. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
  5888. if(GetPVarInt(playerid, "Jailed") == 1)
  5889. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  5890. SendClientMessage(playerid, COLOR_GREEN, "You have joined the Admin Event.");
  5891. SetPlayerPos(playerid, GetGVarFloat("EventX"), GetGVarFloat("EventY"), GetGVarFloat("EventZ"));
  5892. SetPlayerInterior(playerid, GetGVarInt("EventI"));
  5893. SetPVarInt(playerid, "InEvent", 1);
  5894. return 1;
  5895. }
  5896. cmd(endevent, playerid, params[])
  5897. {
  5898. new string[120];
  5899. if(GetPVarInt(playerid, "AdminLevel") == 0)
  5900. return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands");
  5901. if(GetGVarInt("EventStarted") == 0)
  5902. return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
  5903. SetGVarInt("EventStarted", 0);
  5904. format(string, 120, "[ADMIN EVENT] Admin %s has ended the current event. You can no longer join.",PlayerInfo(playerid));
  5905. SendClientMessage(playerid, COLOR_ADMIN, string);
  5906. CNR_PrintString(string);
  5907. return 1;
  5908. }
  5909. cmd(eventweapon, playerid, params[])
  5910. {
  5911. new weapon; new ammo;
  5912. if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
  5913. if(sscanf(params, "ii", weapon, ammo)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /eventweapon (WeaponID) (Ammo)");
  5914. for(new i = 0; i<MAX_PLAYERS; i ++)
  5915. {
  5916. if(GetPVarInt(i, "InEvent") == 1)
  5917. {
  5918. GivePlayerWeapon(i, weapon, ammo);
  5919. SendClientMessage(i, COLOR_ADMIN, "You have been given an event weapon.");
  5920. SendClientMessage(playerid, COLOR_ADMIN, "You have given everyone at the event an event weapon.");
  5921. }
  5922. }
  5923. return 1;
  5924. }
  5925.  
  5926. cmd(adcmds, playerid, params[])
  5927. {
  5928. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5929. new str[1200];
  5930. strcat(str, "Admin Commands are: /startevent - Starts an Admin Event /endevent - Ends an Admin event /eventweapon (WeaponID) (Ammo) - Gives an Event Weapon\n");
  5931. strcat(str, "/jail (ID) (reason) - Admin Jails a Player /unjail (ID) (reason) - Unjails a Player /adban (ID) (reason) - Admin Bans a Player\n");
  5932. strcat(str, "/adkick (ID) (reason) - Admin Kicks a player /freeze (ID) (reason) - Freezes a player /unfreeze (ID) (reason) - Unfreezes a player\n");
  5933. strcat(str, "/teleports - Shows a list of teleports /lock - Locks your car /spec (ID) - Spectates a Player /specoff - Turns off Spectate\n");
  5934. 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");
  5935. 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");
  5936. strcat(str, "/army (ID) - Makes a Player Army /unarmy (ID) - Takes Army Status /mute (ID) - Mutes a player /unmute (ID) - Unmutes a player\n");
  5937. 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");
  5938. strcat(str, "/adheal (ID) - Heals and Cures a player /adarmour (ID) - Gives a player Armour\n");
  5939. ShowPlayerDialog(playerid, DIALOG_ADMINCMDS, DIALOG_STYLE_MSGBOX, "Admin Commands", str, "Okay", "");
  5940. return 1;
  5941. }
  5942. cmd(adheal, playerid, params[])
  5943. {
  5944. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5945. new ID;
  5946. if(sscanf(params, "u", ID))
  5947. {
  5948. SetPlayerHealth(playerid, 100);
  5949. SetPVarInt(playerid, "IsSick", 0);
  5950. SetPVarInt(playerid, "HasSTDs", 0);
  5951. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed yourself.");
  5952. return 1;
  5953. }
  5954. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5955. SetPlayerHealth(ID, 100);
  5956. SetPVarInt(playerid, "IsSick", 0);
  5957. SetPVarInt(playerid, "HaSTDs", 0);
  5958. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed that player.");
  5959. return 1;
  5960. }
  5961. cmd(adarmour, playerid, params[])
  5962. {
  5963. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5964. new ID;
  5965. if(sscanf(params, "u", ID))
  5966. {
  5967. SetPlayerArmour(playerid, 100);
  5968. SetPVarInt(playerid, "IsSick", 0);
  5969. SetPVarInt(playerid, "HasSTDs", 0);
  5970. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given yourself armour.");
  5971. return 1;
  5972. }
  5973. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5974. SetPlayerArmour(ID, 100);
  5975. SetPVarInt(playerid, "IsSick", 0);
  5976. SetPVarInt(playerid, "HaSTDs", 0);
  5977. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given that player armour");
  5978. return 1;
  5979. }
  5980. cmd(repaircar, playerid, params[])
  5981. {
  5982. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  5983. new ID;
  5984. if(sscanf(params, "u", ID))
  5985. {
  5986. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
  5987. RepairVehicle(GetPlayerVehicleID(playerid));
  5988. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Vehicle repaired.");
  5989. return 1;
  5990. }
  5991. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  5992. if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
  5993. RepairVehicle(GetPlayerVehicleID(ID));
  5994. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Your car has been repaired by an Admin.");
  5995. return 1;
  5996. }
  5997. cmd(nos, playerid, params[])
  5998. {
  5999. if(GetPVarInt(playerid, "AdminLevel") ==0) return 0;
  6000. new ID;
  6001. if(sscanf(params,"u", ID))
  6002. {
  6003. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
  6004. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  6005. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to your car.");
  6006. return 1;
  6007. }
  6008. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6009. if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
  6010. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  6011. SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to that person's car.");
  6012. return 1;
  6013. }
  6014. cmd(admode, playerid, params[])
  6015. {
  6016. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6017. if(GetPVarInt(playerid, "AdminMode") == 1)
  6018. {
  6019. SetPlayerHealth(playerid, 100);
  6020. SetPlayerArmour(playerid, 100);
  6021. ResetPlayerWeapons(playerid);
  6022. GivePlayerTeamWeapons(playerid);
  6023. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have turned Admin Mode off.");
  6024. SetPVarInt(playerid, "AdminMode", 0);
  6025. return 1;
  6026. }
  6027. ResetPlayerWeapons(playerid);
  6028. GivePlayerWeapon(playerid, 38, 10000);
  6029. SetPlayerHealth(playerid, 1000);
  6030. SetPlayerArmour(playerid, 10000);
  6031. SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have gone into Admin Mode.");
  6032. SetPVarInt(playerid, "AdminMode", 1);
  6033. return 1;
  6034. }
  6035. cmd(adgc, playerid, params[])
  6036. {
  6037. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6038. new ID, amount, string[120];
  6039. if(sscanf(params, "ui", ID, amount))
  6040. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adgc (ID) (amount)");
  6041. if(!IsPlayerConnected(ID))
  6042. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6043. if(amount > 100000)
  6044. return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount lower than $100,000");
  6045. if(amount < 0)
  6046. return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount over $0.");
  6047. GivePlayerMoney(ID, amount);
  6048. format(string, 120, "[ADMIN CASH] You have recieved $%d from Server Admin %s", amount, PlayerInfo(playerid));
  6049. SendClientMessage(ID, COLOR_ADMIN, string);
  6050. format(string, 120, "[ADMIN CASH] You have given %s $%d of Admin Cash.", PlayerInfo(ID), amount);
  6051. SendClientMessage(playerid, COLOR_ADMIN, string);
  6052. format(string, 120, "[ADMIN CASH] Server Admin %s has given %s $%d", PlayerInfo(playerid), PlayerInfo(ID), amount);
  6053. CNR_PrintString(string);
  6054. return 1;
  6055. }
  6056.  
  6057. cmd(mute, playerid, params[])
  6058. {
  6059. new ID; new reason; new string[200];
  6060. if(GetPVarInt(playerid, "AdminLevel") == 1337)
  6061. {
  6062. if(sscanf(params, "iz", ID, reason))
  6063. {
  6064. SendClientMessage(playerid, COLOR_ERROR, "Usage: /mute <ID> <reason>");
  6065. return 1;
  6066. }
  6067. if(!IsPlayerConnected(ID))
  6068. {
  6069. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  6070. return 1;
  6071. }
  6072. format(string, 200, "[ADMIN MUTE] %s %s", PlayerInfo(ID), reason);
  6073. CNR_PrintString(string);
  6074. SendClientMessageToAll(COLOR_ADMIN, string);
  6075. SetPVarInt(ID, "Muted", 1);
  6076. }
  6077. return 1;
  6078. }
  6079. cmd(unmute, playerid, params[])
  6080. {
  6081. new ID; new reason; new string[200];
  6082. if(GetPVarInt(playerid, "AdminLevel") != 0)
  6083. {
  6084. if(sscanf(params, "iz", ID, reason))
  6085. {
  6086. SendClientMessage(playerid, COLOR_ERROR, "Usage: /unmute <ID> <reason>");
  6087. return 1;
  6088. }
  6089. if(!IsPlayerConnected(ID))
  6090. {
  6091. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  6092. return 1;
  6093. }
  6094. format(string, 200, "[ADMIN UMUTE] %s %s", PlayerInfo(ID), reason);
  6095. CNR_PrintString(string);
  6096. SendClientMessageToAll(COLOR_ADMIN, string);
  6097. SetPVarInt(ID, "Muted", 0);
  6098. }
  6099. return 1;
  6100. }
  6101. cmd(elite, playerid, params[])
  6102. {
  6103. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6104. new ID; new string[120];
  6105. if(sscanf(params, "u", ID))
  6106. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /elite (ID)");
  6107. if(!IsPlayerConnected(ID))
  6108. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6109. if(GetPVarInt(ID, "Elite") == 1337)
  6110. return SendClientMessage(playerid, COLOR_ERROR, "That player is already an Elite Player.");
  6111. format(string, 120, "[ELITE PLAYER] Server Admin %s has made player %s an elite player!", PlayerInfo(playerid), PlayerInfo(ID));
  6112. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  6113. CNR_PrintString(string);
  6114. GameTextForPlayer(ID, "~B~ELITE PLAYER STATUS", 5000, 3);
  6115. SendClientMessage(playerid, COLOR_ROYALBLUE, "You have been crowned 'Elite' by a Server Admin. You can now use Elite commands.");
  6116. SetPVarInt(ID, "Elite", 1337);
  6117. return 1;
  6118. }
  6119. cmd(unelite, playerid, params[])
  6120. {
  6121. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6122. new ID; new string[120];
  6123. if(sscanf(params, "u", ID))
  6124. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unelite (ID)");
  6125. if(!IsPlayerConnected(ID))
  6126. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6127. if(GetPVarInt(ID, "Elite") == 0)
  6128. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't an Elite Player.");
  6129. format(string, 120, "[ELITE PLAYER] Server Admin %s has taken your Elite Player Status.", PlayerInfo(playerid));
  6130. SendClientMessage(ID, COLOR_ROYALBLUE, string);
  6131. SendClientMessage(playerid, COLOR_ROYALBLUE, "Contact that Admin if you think this is wrong.");
  6132. format(string, 120, "[ADMIN ACTION] Server Admin %s has taken %s's Elite Player Status.", PlayerInfo(playerid), PlayerInfo(ID));
  6133. SendAdminMessage(string);
  6134. SetPVarInt(ID, "Elite", 0);
  6135. return 1;
  6136. }
  6137. cmd(army, playerid, params[])
  6138. {
  6139. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6140. new ID; new string[120];
  6141. if(sscanf(params, "u", ID))
  6142. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  6143. if(!IsPlayerConnected(ID))
  6144. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  6145. if(GetPVarInt(ID, "ArmyPermission") == 1337)
  6146. return SendClientMessage(playerid, COLOR_ERROR, "That player is already army.");
  6147. format(string, 120, "[ARMY STATUS] Server Admin %s has made %s a member of the Army!", PlayerInfo(playerid), PlayerInfo(ID));
  6148. SendClientMessageToAll(COLOR_PURPLE, string);
  6149. SendAdminMessage(string);
  6150. CNR_PrintString(string);
  6151. SendClientMessage(playerid, COLOR_PURPLE, "You are now able to play as Los Santos Army. Be sure to stick with /rules.");
  6152. SetPVarInt(ID, "ArmyPermission", 1337);
  6153. return 1;
  6154. }
  6155. cmd(unarmy, playerid, params[])
  6156. {
  6157. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6158. new ID; new string[120];
  6159. if(sscanf(params, "u", ID))
  6160. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unarmy (ID)");
  6161. if(!IsPlayerConnected(ID))
  6162. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
  6163. format(string, 120, "[ARMY STATUS] Server Admin %s has taken %s's Army Status!", PlayerInfo(playerid), PlayerInfo(ID));
  6164. //SendClientMessageToAll(COLOR_PURPLE, string);
  6165. SendAdminMessage(string);
  6166. //CNR_PrintString(string);
  6167. SendClientMessage(ID, COLOR_PURPLE, string);
  6168. SendClientMessage(playerid, COLOR_PURPLE, "You are no longer able to be Army. If you think this is wrong, contact the admin.");
  6169. SetPVarInt(ID, "ArmyPermission", 0);
  6170. return 1;
  6171. }
  6172. cmd(ec, playerid, params[])
  6173. {
  6174. if(GetPVarInt(playerid, "Elite") == 0)
  6175. return SendClientMessage(playerid, COLOR_ERROR, "Only Elite Players can use this command.");
  6176. if(isnull(params))
  6177. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ec (message)");
  6178. new string[120];
  6179. format(string, 120, "[ELITE CHAT] %s: %s", PlayerInfo(playerid), params);
  6180. SendEliteMessage(string);
  6181. CNR_PrintString(string);
  6182. return 1;
  6183. }
  6184. cmd(afk, playerid, params[])
  6185. {
  6186. if(GetPVarInt(playerid, "Elite") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Only Elite players can use this command.");
  6187. new string[120];
  6188. if(GetPVarInt(playerid, "IsAFK") == 1)
  6189. {
  6190. SetPVarInt(playerid, "IsAFK", 0);
  6191. format(string, 120, "[AFK] Elite Player %s is no longer AFK.", PlayerInfo(playerid));
  6192. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  6193. TogglePlayerControllable(playerid, true);
  6194. CNR_PrintString(string);
  6195. return 1;
  6196. }
  6197. SetPVarInt(playerid, "IsAFK", 1);
  6198. format(string, 120, "[AFK] Elite Player %s is now AFK.", PlayerInfo(playerid));
  6199. SendClientMessageToAll(COLOR_ROYALBLUE, string);
  6200. CNR_PrintString(string);
  6201. TogglePlayerControllable(playerid, false);
  6202. return 1;
  6203. }
  6204. cmd(jetpack, playerid, params[])
  6205. {
  6206. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6207. SetPlayerSpecialAction(playerid, 2);
  6208. return 1;
  6209. }
  6210. cmd(warn, playerid, params[])
  6211. {
  6212. new ID; new reason; new string[200];
  6213. if(GetPVarInt(playerid, "AdminLevel") == 1337)
  6214. {
  6215. if(sscanf(params, "iz", ID, reason))
  6216. {
  6217. SendClientMessage(playerid, COLOR_ERROR, "Usage: /warn <ID> <reason>");
  6218. return 1;
  6219. }
  6220. if(!IsPlayerConnected(ID))
  6221. {
  6222. SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
  6223. return 1;
  6224. }
  6225. format(string, sizeof(string), "[ADMIN WARN] %s has been warned by a Server Admin. %s", PlayerInfo(ID), reason);
  6226. SendClientMessageToAll(COLOR_ADMIN, string);
  6227. CNR_PrintString(string);
  6228. SendClientMessage(ID, COLOR_RED, "[ADMIN WARN] You have been warned by a Server Admin to follow the rules.");
  6229. SendClientMessage(ID, COLOR_RED, "Please follow the rules and read /rules and /pc");
  6230. if(GetPVarInt(ID, "Warnings") == 3)
  6231. {
  6232. format(string, sizeof(string), "[AUTO KICK] %s Too many Admin Warnings", PlayerInfo(ID));
  6233. SendClientMessageToAll(COLOR_RED, string);
  6234. CNR_PrintString(string);
  6235. Kick(ID);
  6236. return 1;
  6237. }
  6238. if(GetPVarInt(ID, "Warnings") <= 2)
  6239. {
  6240. SendClientMessage(ID, COLOR_RED, "Repeated warnings will result in a kick.");
  6241. SetPVarInt(ID, "Warnings", GetPVarInt(ID, "Warnings") +1);
  6242. return 1;
  6243. }
  6244. }
  6245. return 1;
  6246. }
  6247.  
  6248. cmd(adkick, playerid, params[])
  6249. {
  6250. new ID; new string[120]; new reason;
  6251. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6252. if(sscanf(params, "uz", ID, reason))
  6253. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adkick (ID) (reason)");
  6254. if(!IsPlayerConnected(ID))
  6255. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6256. format(string, 120, "[ADMIN KICK] %s %s", PlayerInfo(playerid), reason);
  6257. SendClientMessageToAll(COLOR_ADMIN, string);
  6258. CNR_PrintString(string);
  6259. format(string, 120, "[ADMIN ACTION] Admin %s has kicked %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  6260. SendAdminMessage(string);
  6261. Kick(ID);
  6262. return 1;
  6263. }
  6264. cmd(adban, playerid, params[])
  6265. {
  6266. new ID;new string[120]; new reason;
  6267. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6268. if(sscanf(params, "uz", ID, reason))
  6269. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adban (ID) (reason)");
  6270. if(!IsPlayerConnected(ID))
  6271. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6272. format(string, 120, "[ADMIN BAN] %s %s", PlayerInfo(ID), reason);
  6273. SendClientMessageToAll(COLOR_ADMIN, string);
  6274. CNR_PrintString(string);
  6275. format(string, 120, "[ADMIN ACTION] Admin %s has banned %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  6276. SendAdminMessage(string);
  6277. SendClientMessage(ID, COLOR_RED, "You have been Admin Banned. If you wish to appeal this ban, go to our website.");
  6278. SendClientMessage(ID, COLOR_RED, "Please note that Hackers do not get unbanned.");
  6279. format(string, 120, "Banned by %s for the reason of: %s", PlayerInfo(playerid), reason);
  6280. BanEx(ID, string);
  6281. return 1;
  6282. }
  6283. cmd(bring, playerid, params[])
  6284. {
  6285. new ID; new string[120];
  6286. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6287. if(sscanf(params, "u", ID))
  6288. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /bring (ID)");
  6289. if(!IsPlayerConnected(ID))
  6290. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6291. format(string, 120, "[ADMIN ACTION] You have brought %s to you using /bring", PlayerInfo(ID));
  6292. SendClientMessage(playerid, COLOR_ADMIN, string);
  6293. format(string, 120, "[ADMIN] Admin %s has teleported you to him/her.", PlayerInfo(playerid));
  6294. SendClientMessage(ID, COLOR_ADMIN, string);
  6295. new Float:x, Float:y, Float:z;
  6296. GetPlayerPos(playerid, x, y, z);
  6297. SetPlayerPos(ID, x, y, z);
  6298. SetPlayerInterior(ID, GetPlayerInterior(playerid));
  6299. return 1;
  6300. }
  6301. cmd(goto, playerid, params[])
  6302. {
  6303. new ID; new string[120];
  6304. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6305. if(sscanf(params, "u", ID))
  6306. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /goto (ID)");
  6307. if(!IsPlayerConnected(ID))
  6308. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6309. format(string, 120, "[ADMIN ACTION] You have teleported to %s", PlayerInfo(playerid));
  6310. SendClientMessage(playerid, COLOR_ADMIN, string);
  6311. new Float:x, Float:y, Float:z;
  6312. GetPlayerPos(ID, x, y, z);
  6313. SetPlayerPos(playerid, x, y, z);
  6314. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  6315. return 1;
  6316. }
  6317. cmd(freeze, playerid, params[])
  6318. {
  6319. new ID; new string[120]; new reason;
  6320. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6321. if(sscanf(params, "uz", ID, reason))
  6322. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /freeze (ID) (reason)");
  6323. if(!IsPlayerConnected(ID))
  6324. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6325. format(string, 120, "[ADMIN FREEZE] %s %s", PlayerInfo(ID), reason);
  6326. SendClientMessageToAll(COLOR_ADMIN, string);
  6327. CNR_PrintString(string);
  6328. TogglePlayerControllable(ID, 0);
  6329. format(string, 120, "[ADMIN ACTION] Admin %s has frozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
  6330. SendAdminMessage(string);
  6331. return 1;
  6332. }
  6333. cmd(unfreeze, playerid, params[])
  6334. {
  6335. new ID; new string[120]; new reason;
  6336. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6337. if(sscanf(params, "uz", ID, reason))
  6338. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unfreeze (ID) (reason)");
  6339. if(!IsPlayerConnected(ID))
  6340. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6341. format(string, 120, "[ADMIN UNFREEZE] %s %s", PlayerInfo(ID), reason);
  6342. SendClientMessageToAll(COLOR_ADMIN, string);
  6343. CNR_PrintString(string);
  6344. TogglePlayerControllable(ID, 1);
  6345. format(string, 120, "[ADMIN ACTION] Admin %s has unfrozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
  6346. SendAdminMessage(string);
  6347. return 1;
  6348. }
  6349. cmd(spec, playerid, params[])
  6350. {
  6351. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6352. new ID;
  6353. if(sscanf(params, "u", ID))
  6354. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /spec (ID)");
  6355. if(!IsPlayerConnected(ID))
  6356. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6357. if(GetPVarInt(ID, "Spawned") == 0)
  6358. return SendClientMessage(playerid, COLOR_ERROR, "That player isn't spawned.");
  6359. if(playerid == ID)
  6360. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command on yourself.");
  6361. if(GetPVarInt(playerid, "Spawned") == 0)
  6362. return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
  6363. if(IsPlayerInAnyVehicle(ID))
  6364. {
  6365. new vid = GetPlayerVehicleID(ID);
  6366. TogglePlayerSpectating(playerid, 1);
  6367. PlayerSpectateVehicle(playerid, vid);
  6368. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  6369. SetPVarInt(playerid, "Spectating", 1);
  6370. return 1;
  6371. }
  6372. TogglePlayerSpectating(playerid, 1);
  6373. PlayerSpectatePlayer(playerid, ID);
  6374. SetPlayerInterior(playerid, GetPlayerInterior(ID));
  6375. SetPVarInt(playerid, "Spectating", 1);
  6376. return 1;
  6377. }
  6378. cmd(specoff, playerid, params[])
  6379. {
  6380. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6381. if(GetPVarInt(playerid, "Spectating") == 0)
  6382. return SendClientMessage(playerid, COLOR_ERROR, "You are not spectating.");
  6383. TogglePlayerSpectating(playerid, 0);
  6384. SetPVarInt(playerid, "Spectating", 0);
  6385. return 1;
  6386. }
  6387. cmd(ad, playerid, params[])
  6388. {
  6389. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6390. if(isnull(params))
  6391. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ad (message)");
  6392. new string[120];
  6393. format(string, 120, "[ADMIN MESSAGE] %s: %s", PlayerInfo(playerid), params);
  6394. SendAdminMessage(string);
  6395. return 1;
  6396. }
  6397. cmd(admin, playerid, params[])
  6398. {
  6399. if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
  6400. if(isnull(params))
  6401. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /admin (message)");
  6402. new string[120];
  6403. format(string, 120, "*Admin: %s", params);
  6404. SendClientMessageToAll(COLOR_ADMIN, string);
  6405. CNR_PrintString(string);
  6406. format(string, 120, "[ADMIN ACTION] %s has used '/admin' to say: %s", PlayerInfo(playerid), params);
  6407. SendAdminMessage(string);
  6408. CNR_PrintString(string);
  6409. return 1;
  6410. }
  6411. cmd(havesex, playerid, params[])
  6412. {
  6413. new string[120];
  6414. if(GetPVarInt(playerid, "Horny") <= 0)
  6415. return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot have sex.");
  6416. new ID;
  6417. if(sscanf(params, "u", ID))
  6418. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /havesex (ID)");
  6419. if(!IsPlayerConnected(ID))
  6420. return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
  6421. if(GetDistanceBetweenPlayers(playerid, ID) > 8)
  6422. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
  6423. if(GetPVarInt(ID, "Partner") != playerid)
  6424. return SendClientMessage(playerid, COLOR_ERROR, "You must first /offersex before having sex.");
  6425. if(GetPVarInt(ID, "Horny") <=0)
  6426. return SendClientMessage(playerid, COLOR_ERROR, "That player is not horny enough to have sex.");
  6427. if(GetPVarInt(playerid, "Jelly") == 0)
  6428. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any jelly to have sex. Get some first!");
  6429. format(string, 120, "[PUBLIC SEX] %s and %s has had public sex. Shame on them!", PlayerInfo(playerid), PlayerInfo(ID));
  6430. SendClientMessageToAll(COLOR_GREY, string);
  6431. CNR_PrintString(string);
  6432. IncreaseWantedLevel(ID, 1);
  6433. IncreaseWantedLevel(playerid, 1);
  6434. IncreaseScore(ID, 1);
  6435. IncreaseScore(playerid, 1);
  6436. format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(ID));
  6437. SendClientMessage(playerid, COLOR_GREY, string);
  6438. format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(playerid));
  6439. SendClientMessage(ID, COLOR_GREY, string);
  6440. SetPVarInt(ID, "Horny", 0);
  6441. SetPVarInt(playerid, "Jelly", 0);
  6442. SetPVarInt(playerid, "Horny", 0);
  6443. SetPVarInt(playerid, "Partner", -1); SetPVarInt(ID, "Partner", -1);
  6444. new current_zone = player_zone[playerid];
  6445. 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]);
  6446. SendCopMessage(string);
  6447. SetPVarInt(ID, "HadSex", 400);
  6448. SetPVarInt(playerid, "HadSex", 400);
  6449. return 1;
  6450. }
  6451. cmd(offersex, playerid, params[])
  6452. {
  6453. new string[120]; new ID;
  6454. if(GetPVarInt(playerid, "Horny") <=0)
  6455. return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot offer sex.");
  6456. if(sscanf(params, "u", ID))
  6457. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /offersex (ID)");
  6458. if(!IsPlayerConnected(ID))
  6459. return SendClientMessage(playerid, COLOR_ERROR, "Invaid ID.");
  6460. if(GetDistanceBetweenPlayers(playerid, ID) > 8)
  6461. return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
  6462. SetPVarInt(ID, "Partner", playerid);
  6463. SetPVarInt(playerid, "Partner", ID);
  6464. format(string, 120, "[SEX OFFERED] You have been offered sex by %s. Type /havesex %d to have sex with them.", PlayerInfo(playerid), playerid);
  6465. SendClientMessage(ID, COLOR_GREY, string);
  6466. format(string, 120, "[SEX OFFERED] You have offered sex to %s. You must wait for them to agree.", PlayerInfo(ID));
  6467. SendClientMessage(playerid, COLOR_GREY, string);
  6468. return 1;
  6469. }
  6470.  
  6471. cmd(snack, playerid, params[])
  6472. {
  6473. if(GetPVarInt(playerid, "Cuffed") == 1)
  6474. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  6475. if(GetPVarInt(playerid, "HasSnacks") == 0)
  6476. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks. Take them out your pack or buy them from the store.");
  6477. if(GetPVarInt(playerid, "EatenSnacks") > 1)
  6478. return SendClientMessage(playerid, COLOR_ERROR, "You have eaten snacks recently. Please wait.");
  6479. new Float:ph;
  6480. GetPlayerHealth(playerid, ph);
  6481. if(ph > 90)
  6482. return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a snack.");
  6483. SetPlayerHealth(playerid, ph + 10);
  6484. SetPVarInt(playerid, "HasSnacks", 0);
  6485. SetPVarInt(playerid, "EatenSnacks", 30);
  6486. SendClientMessage(playerid, COLOR_GREY, "[SNACKS] You have eaten your snack. You have been healed by 10 percent.");
  6487. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
  6488. return 1;
  6489. }
  6490.  
  6491. cmd(beer, playerid, params[])
  6492. {
  6493. SendClientMessage(playerid, COLOR_LIGHTBLUE, "drink to much control it!");
  6494. if(GetPVarInt(playerid, "Cuffed") == 1)
  6495. return SendClientMessage(playerid, COLOR_ERROR, "You cannot Drink while cuffed.");
  6496. if(GetPVarInt(playerid, "HasBeer") == 0)
  6497. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any Beer on you.");
  6498. if(GetPVarInt(playerid, "HasDrink") > 1)
  6499. return SendClientMessage(playerid, COLOR_ERROR, "Drinked recently. Please wait.");
  6500. new Float:ph;
  6501. if(ph > 90) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a Beer.");
  6502. SetPlayerHealth(playerid, ph + 50);
  6503. SetPVarInt(playerid, "HasBeer", 0);
  6504. SetPVarInt(playerid, "HasDrink", 45);
  6505. SendClientMessage(playerid, COLOR_CYAN, "[DRINK] You have had a Beer. Your health has risen.");
  6506. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  6507. SetTimer("SetPlayerDrunkLevel", 10000, 1);
  6508. SetPlayerDrunkLevel (playerid, 50);
  6509. GetPlayerHealth(playerid, ph);
  6510.  
  6511. return 1;
  6512. }
  6513.  
  6514. cmd(smoke, playerid, params[])
  6515. {
  6516. if(GetPVarInt(playerid, "Cuffed") == 1)
  6517. return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
  6518. if(GetPVarInt(playerid, "HasCigars") == 0)
  6519. return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cigars on you.");
  6520. if(GetPVarInt(playerid, "HasSmoked") > 1)
  6521. return SendClientMessage(playerid, COLOR_ERROR, "You have smoked a cigar recently. Please wait.");
  6522. new Float:ph;
  6523. GetPlayerHealth(playerid, ph);
  6524. if(ph > 90) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a smoke.");
  6525. SetPlayerHealth(playerid, ph + 10);
  6526. SetPVarInt(playerid, "HasCigars", 0);
  6527. SetPVarInt(playerid, "HasSmoked", 45);
  6528. SendClientMessage(playerid, COLOR_GREY, "[SMOKES] You have had a smoke. Your health has risen.");
  6529. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
  6530. return 1;
  6531. }
  6532. cmd(pot, playerid, params[])
  6533. {
  6534. new string[120];
  6535. if(IsCop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot use this command.");
  6536. if(GetPVarInt(playerid, "Cuffed") == 1)
  6537. return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
  6538. if(GetPVarInt(playerid, "Jailed") == 1)
  6539. return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
  6540. if(GetPVarInt(playerid, "HasPot") <= 0)
  6541. return SendClientMessage(playerid, COLOR_ERROR, "You don't have any pot, you cannot smoke it!");
  6542. if(GetPVarInt(playerid, "HasPipe") == 0)
  6543. return SendClientMessage(playerid, COLOR_ERROR, "You do not have a pipe to smoke your pot!");
  6544. new Float:ph;
  6545. GetPlayerHealth(playerid, ph);
  6546. if(ph > 70) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a joint.");
  6547. SetPlayerHealth(playerid, ph + 30);
  6548. format(string, 120, "[WEED] %s has smoked a joint. His health has increased.", PlayerInfo(playerid));
  6549. CNR_PrintString(string);
  6550. SetPVarInt(playerid, "UsedPot",120);
  6551. SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") -1);
  6552. ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01", 4.0, 0, 0, 0, 0, 0);
  6553. return 1;
  6554. }
  6555. cmd(report, playerid, params[])
  6556. {
  6557. new ID; new reason; new string[120];
  6558. if(sscanf(params, "us[100]", ID, reason))
  6559. return SendClientMessage(playerid, COLOR_ERROR, "Usage: /report (ID) (Reason)");
  6560. if (!IsPlayerConnected(ID)) {
  6561. SendClientMessage(playerid, COLOR_ERROR, "That ID is not connected.");
  6562. return 1;
  6563. }
  6564. format(string, 120, "[REPORT SENT] Report sent on %s for the reason of: %s", PlayerInfo(ID), reason);
  6565. SendClientMessage(playerid, COLOR_ADMIN, string);
  6566. format(string, 120, "[REPORTED PLAYER] Player %s has reported %s for %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
  6567. CNR_PrintString(string);
  6568. SendAdminMessage(string);
  6569. return 1;
  6570. }
  6571. cmd(pm, playerid, params[])
  6572. {
  6573. new ID; new message; new string[120];
  6574. if(sscanf(params, "us[100]", ID, message)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /pm (ID) (Message)");
  6575. if (!IsPlayerConnected(ID)) {
  6576. SendClientMessage(playerid, COLOR_ERROR, "Error. That ID is not connected.");
  6577. return 1;
  6578. }
  6579. format(string, 120, "[PRIVATE MESSAGE] From: %s to %s: %s", PlayerInfo(playerid), PlayerInfo(ID), message);
  6580. CNR_PrintString(string);
  6581. format(string, 120, "[PM] From: %s: %s", PlayerInfo(playerid), message);
  6582. SendClientMessage(ID, COLOR_YELLOW, string);
  6583. format(string, 120, "[PM] Sent to %s: %s", PlayerInfo(ID), message);
  6584. SendClientMessage(playerid, COLOR_YELLOW, string);
  6585. return 1;
  6586. }
  6587.  
  6588. stock PlayerName(playerid) {
  6589. new name[255];
  6590. GetPlayerName(playerid, name, 255);
  6591. return name;
  6592. }
  6593.  
  6594. stock Hospital(playerid)
  6595. {
  6596. ShowPlayerDialog(playerid, DIALOG_HOSPITAL, DIALOG_STYLE_LIST, "Welcome to Los Santos Medical Center!", "Heal\nCure", "Okay", "Cancel");
  6597. }
  6598. stock SellItems(playerid)
  6599. {
  6600. ShowPlayerDialog(playerid,DIALOG_BUY, DIALOG_STYLE_LIST, "What would you like to buy?", "Condom\nCigars\nPack\nSnacks\nSecureWallet", "Okay", "Cancel");
  6601. }
  6602. stock StoreRob(playerid)
  6603. {
  6604. ShowPlayerDialog(playerid, DIALOG_STOREROB, DIALOG_STYLE_LIST, "Welcome to the Gas Station!", "Buy a condom\nBuy Cigars\nBuy a pack\nBuy SecureWallet\nAttempt Robbery", "Okay", "Cancel");
  6605. }
  6606. stock LogPlayer(playerid)
  6607. {
  6608. new string[100];
  6609. format(string, 100, "{00FF00}Welcome to the server,{00FFFF} %s\n{00FF00}Please login before you spawn", PlayerName(playerid));
  6610. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FFFF00}Please Login", string, "Login", "Cancel");
  6611. }
  6612. stock RegisterPlayer(playerid)
  6613. {
  6614. new string[100];
  6615. format(string, 100, "{00FF00}Welcome to the server,{00FFFF} %s\n{00FF00}Please register", PlayerName(playerid));
  6616. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FFFF00}Please Register", string, "Register", "Cancel");
  6617. }
  6618. stock SelectSkill(playerid)
  6619. {
  6620. new string[200];
  6621. format(string, 200, "Rapist\nTerrorist\nThief\nPrivate Med\nHitman");
  6622. ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
  6623. }
  6624.  
  6625. public IncreaseWantedLevel(playerid, value)
  6626. {
  6627. new string[200]; new pwl; pwl = GetPlayerWantedLevel(playerid);
  6628. new pcol; pcol = GetPlayerColor(playerid);
  6629. pwl +=value;
  6630. SetPlayerWantedLevel(playerid, pwl);
  6631. if(pwl > 6)
  6632. {
  6633. SetPlayerWantedLevel(playerid, 6);
  6634. SendClientMessage(playerid, pcol, "[WANTED LEVEL] Your wanted level is now at 6 stars.");
  6635. WantedLevelColor(playerid);
  6636. }
  6637. else
  6638. {
  6639. format(string, 200, "[WANTED LEVEL UPDATE] Your new wanted level is now %d", GetPlayerWantedLevel(playerid));
  6640. SendClientMessage(playerid, pcol, string);
  6641. }
  6642. return 1;
  6643. }
  6644.  
  6645. public WantedLevelColor(playerid)
  6646. {
  6647. new pwl = GetPlayerWantedLevel(playerid);
  6648. if(pwl == 6)
  6649. {
  6650. SetPlayerColor(playerid, COLOR_RED);
  6651. }
  6652. if(pwl == 5)
  6653. {
  6654. SetPlayerColor(playerid, COLOR_ORANGE);
  6655. }
  6656. if(pwl == 4)
  6657. {
  6658. SetPlayerColor(playerid, COLOR_ORANGE);
  6659. }
  6660. if(pwl == 3)
  6661. {
  6662. SetPlayerColor(playerid, COLOR_ORANGE);
  6663. }
  6664. if(pwl == 2)
  6665. {
  6666. SetPlayerColor(playerid, COLOR_YELLOW);
  6667. }
  6668. if(pwl == 1)
  6669. {
  6670. SetPlayerColor(playerid, COLOR_YELLOW);
  6671. }
  6672. if(pwl == 0)
  6673. {
  6674. SetPlayerToTeamColor(playerid);
  6675. }
  6676. return 1;
  6677. }
  6678.  
  6679. public SendAdminMessage(msg[])
  6680. {
  6681. for(new i=0; i<MAX_PLAYERS; i++)
  6682. {
  6683. if(IsPlayerConnected(i))
  6684. {
  6685. if(GetPVarInt(i, "AdminLevel") == 1337)
  6686. {
  6687. SendClientMessage(i, COLOR_ADMIN, msg);
  6688. }
  6689. }
  6690. }
  6691. }
  6692. public SendCopMessage(msg[])
  6693. {
  6694. for(new i=0; i<MAX_PLAYERS; i++)
  6695. {
  6696. if(IsPlayerConnected(i))
  6697. {
  6698. if(GetPVarInt(i, "CopRadio") == 1)
  6699. {
  6700. SendClientMessage(i, COLOR_BLUE, msg);
  6701. }
  6702. }
  6703. }
  6704. }
  6705. public SendEliteMessage(msg[])
  6706. {
  6707. for(new i=0; i<MAX_PLAYERS; i++)
  6708. {
  6709. if(IsPlayerConnected(i))
  6710. {
  6711. if(GetPVarInt(i, "Elite") == 1337)
  6712. {
  6713. SendClientMessage(i, COLOR_ROYALBLUE, msg);
  6714. }
  6715. }
  6716. }
  6717. }
  6718. public SendMedicMessage(msg[])
  6719. {
  6720. for(new i = 0; i<MAX_PLAYERS; i++)
  6721. {
  6722. if(IsPlayerConnected(i))
  6723. {
  6724. if(gTeam[i] == Team_PrvtMed)
  6725. {
  6726. SendClientMessage(i, COLOR_FORESTGREEN, msg);
  6727. }
  6728. }
  6729. }
  6730. }
  6731. public getCheckpointType(playerID)
  6732. {
  6733. return checkpointType[playerCheckpoint[playerID]];
  6734. }
  6735.  
  6736. public checkpointUpdate()
  6737. {
  6738. for(new i=0; i<MAX_PLAYERS; i++)
  6739. {
  6740. if(IsPlayerConnected(i))
  6741. {
  6742. for(new j=0; j < MAX_POINTS; j++)
  6743. {
  6744. if(isPlayerInArea(i, checkCoords[j]))
  6745. {
  6746. if(playerCheckpoint[i]!=j)
  6747. {
  6748. DisablePlayerCheckpoint(i);
  6749. SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
  6750. playerCheckpoint[i] = j;
  6751. }
  6752. }
  6753. else
  6754. {
  6755. if(playerCheckpoint[i]==j)
  6756. {
  6757. DisablePlayerCheckpoint(i);
  6758. playerCheckpoint[i] = 999;
  6759. }
  6760. }
  6761. }
  6762. }
  6763. }
  6764. }
  6765. public isPlayerInArea(playerID, Float:data[4])
  6766. {
  6767. new Float:X, Float:Y, Float:Z;
  6768. GetPlayerPos(playerID, X, Y, Z);
  6769. if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
  6770. {
  6771. return 1;
  6772. }
  6773. return 0;
  6774. }
  6775.  
  6776. public RemoveVariables(playerid)
  6777. {
  6778. DeletePVar(playerid, "AdminLevel");
  6779. DeletePVar(playerid, "Banned");
  6780. DeletePVar(playerid, "BankCash");
  6781. DeletePVar(playerid, "Cash");
  6782. DeletePVar(playerid, "WantedLevel");
  6783. DeletePVar(playerid, "HasPack");
  6784. DeletePVar(playerid, "Warnings");
  6785. DeletePVar(playerid, "PackCash");
  6786. DeletePVar(playerid, "ArmyPermission");
  6787. DeletePVar(playerid, "HasSTDs");
  6788. DeletePVar(playerid, "PackSnack");
  6789. DeletePVar(playerid, "HasSnacks");
  6790. DeletePVar(playerid, "HasPipe");
  6791. DeletePVar(playerid, "PackPipe");
  6792. DeletePVar(playerid, "PackWallet");
  6793. DeletePVar(playerid, "HasPot");
  6794. DeletePVar(playerid, "PackPot");
  6795. DeletePVar(playerid, "PackCondom");
  6796. DeletePVar(playerid, "HasCondom");
  6797. DeletePVar(playerid, "HasExp");
  6798. DeletePVar(playerid, "PackExp");
  6799. DeletePVar(playerid, "HasSecureWallet");
  6800. DeletePVar(playerid, "HasBeer");
  6801. DeletePVar(playerid, "Cuffed");
  6802. DeletePVar(playerid, "Jailed");
  6803. DeletePVar(playerid, "CuffTimer");
  6804. DeletePVar(playerid, "JailTime");
  6805. DeletePVar(playerid, "RobbingBank");
  6806. DeletePVar(playerid, "RobSkill");
  6807. DeletePVar(playerid, "BlowingAirport");
  6808. DeletePVar(playerid, "BlowingPark");
  6809. DeletePVar(playerid, "BlowingSign");
  6810. DeletePVar(playerid, "BlowingBank");
  6811. DeletePVar(playerid, "RobbingDrugHouse");
  6812. DeletePVar(playerid, "RobbingSuburban");
  6813. DeletePVar(playerid, "RobbingBinco");
  6814. DeletePVar(playerid, "RobbingPizza");
  6815. DeletePVar(playerid, "RobbingGasOne");
  6816. DeletePVar(playerid, "RobbingSupaSave");
  6817. DeletePVar(playerid, "RobbingBARMAIN");
  6818. return 1;
  6819. }
  6820.  
  6821. public RapeAgain(playerid)
  6822. {
  6823. if(GetPVarInt(playerid, "RapeRecently") == 1)
  6824. {
  6825. SetPVarInt(playerid, "RapeRecently", 0);
  6826. return 1;
  6827. }
  6828. return 1;
  6829. }
  6830.  
  6831. public IncreaseScore(playerid, value)
  6832. {
  6833. new pscore = GetPlayerScore(playerid);
  6834. pscore +=value;
  6835. SetPlayerScore(playerid, pscore);
  6836. return 1;
  6837. }
  6838. public DecreaseScore(playerid, value)
  6839. {
  6840. new pscore = GetPlayerScore(playerid);
  6841. pscore -=value;
  6842. SetPlayerScore(playerid, pscore);
  6843. return 1;
  6844. }
  6845.  
  6846. public WorldTime()
  6847. {
  6848. if(gametime == 0 && gameday == 7 && gameweek == 4)
  6849. {
  6850. SendClientMessageToAll(COLOR_GREEN, "The server has had it's montly Game Mode Restart.");
  6851. SendRconCommand("gmx");
  6852. }
  6853. gametime++;
  6854. if(gametime >=24)
  6855. {
  6856. gametime =0;
  6857. }
  6858. if(gametime == 0)
  6859. {
  6860. gameday ++;
  6861. }
  6862. for(new i=0; i<MAX_PLAYERS; i++)
  6863. {
  6864. if(IsPlayerConnected(i))
  6865. {
  6866. SetPlayerTime(i, gametime, 0);
  6867. }
  6868. }
  6869. new string[30];
  6870. SetWorldTime(gametime);
  6871. format(string, sizeof(string), "[TIME] %d:00", gametime);
  6872. SendClientMessageToAll(COLOR_GREY, string);
  6873. if(gametime == 0 && gameday == 1)
  6874. {
  6875. SendClientMessageToAll(COLOR_WHITE,"[DATE] Monday");
  6876. }
  6877. if(gametime == 0 && gameday == 2)
  6878. {
  6879. SendClientMessageToAll(COLOR_WHITE,"[DATE] Tuesday");
  6880. }
  6881. if(gametime == 0 && gameday == 3)
  6882. {
  6883. SendClientMessageToAll(COLOR_WHITE,"[DATE] Wednesday");
  6884. }
  6885. if(gametime == 0 && gameday == 4)
  6886. {
  6887. SendClientMessageToAll(COLOR_WHITE,"[DATE] Thursday");
  6888. }
  6889. if(gametime == 0 && gameday == 5)
  6890. {
  6891. SendClientMessageToAll(COLOR_WHITE,"[DATE] Friday");
  6892. }
  6893. if(gametime == 0 && gameday == 6)
  6894. {
  6895. SendClientMessageToAll(COLOR_WHITE,"[DATE] Saturday");
  6896. }
  6897. if(gametime == 0 && gameday == 7)
  6898. {
  6899. SendClientMessageToAll(COLOR_WHITE,"[DATE] Sunday");
  6900. }
  6901. if(gametime == 23 && gameday == 7)
  6902. {
  6903. gameweek ++;
  6904. gameday =1;
  6905. if(gameweek == 1)
  6906. {
  6907. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 1");
  6908. }
  6909. if(gameweek == 2)
  6910. {
  6911. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 2");
  6912. }
  6913. if(gameweek == 3)
  6914. {
  6915. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 3");
  6916. }
  6917. if(gameweek == 4)
  6918. {
  6919. SendClientMessageToAll(COLOR_WHITE,"[WEEK] 4");
  6920. }
  6921. }
  6922. if(gametime == 23 && gameday == 7 && gameweek == 4)
  6923. {
  6924. SendClientMessageToAll(COLOR_BLUE,"[AUTO ADMIN] The server will restart in one game hour.");
  6925. }
  6926. }
  6927.  
  6928. public ResetFondle(playerid)
  6929. {
  6930. SetPVarInt(playerid, "FondleRecent", 0);
  6931. return 1;
  6932. }
  6933.  
  6934. public SixNineStoreRobAgain(playerid)
  6935. {
  6936. SetGVarInt("SixNineCentStoreRobbed", 0);
  6937. return 1;
  6938. }
  6939.  
  6940. public SupaSaveMainRobAgain(playerid)
  6941. {
  6942. SetGVarInt("SupaSaveMainRobbed", 0);
  6943. return 1;
  6944. }
  6945.  
  6946. public Float:GetDistanceBetweenPlayers(p1,p2){
  6947. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  6948. if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
  6949. return -1.00;
  6950. }
  6951. GetPlayerPos(p1,x1,y1,z1);
  6952. GetPlayerPos(p2,x2,y2,z2);
  6953. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  6954.  
  6955. }
  6956.  
  6957.  
  6958. public ResetGVars()
  6959. {
  6960. DeleteGVar("SixNineRobbed");
  6961. DeleteGVar("RobbedGasOne");
  6962. DeleteGVar("SexShopRobbed");
  6963. DeleteGVar("DanceDanceRobbed");
  6964. DeleteGVar("AmmoRobbed");
  6965. DeleteGVar("AirportBlown");
  6966. DeleteGVar("ParkBlown");
  6967. DeleteGVar("GasStationRobbed");
  6968. DeleteGVar("SignBlown");
  6969. DeleteGVar("BankBlown");
  6970. DeleteGVar("DrugHouseCash");
  6971. DeleteGVar("DrugHouseRobbed");
  6972. DeleteGVar("HasSecureWallet");
  6973. DeleteGVar("PackWallet");
  6974. DeleteGVar("SuburbanRobbed");
  6975. DeleteGVar("BincoRobbed");
  6976. DeleteGVar("PizzaRobbed");
  6977. DeleteGVar("SupaSaveMainRobbed");
  6978. DeleteGVar("BARMAINRobbed");
  6979. return 1;
  6980. }
  6981. /*
  6982. public CarBombs()
  6983. {
  6984. //Terrorism Car Bombs
  6985. for(new v=0; v<MAX_VEHICLES; v++)
  6986. {
  6987. if(VehicleInfo[v][bomb] > 1)
  6988. {
  6989. VehicleInfo[v][bomb] --;
  6990. }
  6991. if(VehicleInfo[v][bomb] == 1)
  6992. {
  6993. new Float:x, Float:y, Float:z;
  6994. GetVehiclePos(v, x, y, z);
  6995. CreateExplosion(x, y, z, 10, 10.0);
  6996. SetVehicleToRespawn(v);
  6997. VehicleInfo[v][bomb] = 0;
  6998. }
  6999. }
  7000. return 1;
  7001. }
  7002. */
  7003.  
  7004. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
  7005. if(IsPlayerAdmin(playerid) || GetPVarInt(playerid, "AdminLevel") == 1337) {
  7006. SetPlayerPosFindZ(playerid, fX,fY,fZ);
  7007. }
  7008. return 1;
  7009. }
  7010. public Server()
  7011. {
  7012. //printf("Tick Count: %d",GetTickCount());
  7013.  
  7014. for(new v=0; v<MAX_VEHICLES; v++)
  7015. {
  7016. if(VehicleInfo[v][bomb] > 1)
  7017. {
  7018. VehicleInfo[v][bomb] --;
  7019. }
  7020. if(VehicleInfo[v][bomb] == 1)
  7021. {
  7022. new Float:x, Float:y, Float:z;
  7023. GetVehiclePos(v, x, y, z);
  7024. CreateExplosion(x, y, z, 10, 10.0);
  7025. SetVehicleToRespawn(v);
  7026. VehicleInfo[v][bomb] = 0;
  7027. }
  7028. }
  7029. if(GetGVarInt("ServerMsg") != 0) {
  7030. SetGVarInt("ServerMsg", GetGVarInt("ServerMsg") -1);
  7031. }
  7032. if(GetGVarInt("ServerMsg") == 0) {
  7033. new ran = random(4);
  7034. SetGVarInt("ServerMsg",1000*60*5);
  7035. if(ran == 1)
  7036. {
  7037. SendClientMessageToAll(COLOR_GREEN, " Bug reports please post on the SA-MP Forums.");
  7038. SendClientMessageToAll(COLOR_GREEN, "If you find any bug or glitch do not mess with them simply report it to an admin Thank You!");
  7039. SendClientMessageToAll(COLOR_GREEN, " If you abuse a glitch you will be Temp ban kick or forever");
  7040. }
  7041. if(ran == 2)
  7042. {
  7043. SendClientMessageToAll(COLOR_BLUE, "Please remember that this is NOT a deathmatching server. You cannot kill people randomly. ");
  7044. SendClientMessageToAll(COLOR_BLUE, "If you see a rule breaker, use '/report (ID) (reason)' to report the player to the admins.");
  7045. SendClientMessageToAll(COLOR_BLUE, "Failure to do so can result in you being banned.");
  7046. }
  7047. if(ran == 3)
  7048. {
  7049. SendClientMessageToAll(COLOR_RED, "If you need help, type /commands. Also, feel free to ask the other players. ");
  7050. }
  7051. if(ran == 4)
  7052. {
  7053. SendClientMessageToAll(COLOR_LIGHTBLUE, "Remember to abide by all rules and guidelines! Have a great day!");
  7054. }
  7055. }
  7056. for(new i=0; i<MAX_PLAYERS; i++)
  7057. {
  7058. if(IsPlayerConnected(i))
  7059. {
  7060. if(IsPlayerInAnyVehicle(i)) {
  7061. TextDrawShowForPlayer(i,SpeedoBox[i]);
  7062.  
  7063. TextDrawShowForPlayer(i, SpeedTDraw[i]);
  7064.  
  7065. new string[110], Float:x, Float:y, Float:z;
  7066. GetVehicleVelocity(GetPlayerVehicleID(i),x,y,z);
  7067. format(string, 110, "%d mph", floatround(floatsqroot(((x*x)+(y*y))+(z*z))*156.666667));
  7068. TextDrawSetString(vSpeed[i],string);
  7069. TextDrawShowForPlayer(i,vSpeed[i]);
  7070.  
  7071. TextDrawShowForPlayer(i,DamageTDraw[i]);
  7072.  
  7073. new Float:hp;
  7074. GetVehicleHealth(GetPlayerVehicleID(i),hp);
  7075. format(string, 110, "%d", floatround(hp));
  7076. TextDrawSetString(vDamage[i],string);
  7077. TextDrawShowForPlayer(i,vDamage[i]);
  7078. }
  7079. if(!IsPlayerInAnyVehicle(i)) {
  7080. RemovePlayerSpeedo(i);
  7081. }
  7082. new Float:health;
  7083. GetPlayerHealth(i, health);
  7084. if(GetPVarInt(i,"HealthDown") != 0) {
  7085. SetPVarInt(i, "HealthDown", GetPVarInt(i, "HealthDown") -1);
  7086. }
  7087. if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health > 5 && IsPlayerConnected(i) && GetPVarInt(i, "HealthDown") == 0)
  7088. {
  7089. SetPlayerHealth(i, health-5);
  7090. SetPVarInt(i, "HealthDown",30);
  7091. }
  7092. if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health <=5 && IsPlayerConnected(i))
  7093. {
  7094. new string[200];
  7095. format(string, 200, "%s has died from STDs.", PlayerInfo(i));
  7096. SendClientMessageToAll(COLOR_GREY, string);
  7097. CNR_PrintString(string);
  7098. SetPlayerHealth(i, -1);
  7099. DeletePVar(i, "HasSTDs");
  7100. DeletePVar(i, "HealthDown");
  7101. }
  7102. new current_zone = player_zone[i];
  7103. /*if(GetPlayerMoney(i) > GetPVarInt(i, "OldCash"))
  7104. {
  7105. new string[200];
  7106. if(GetPlayerMoney(i) > 2000000 && GetPVarInt(i, "AdminLevel") !=1337)
  7107. {
  7108. ResetPlayerMoney(i);
  7109. format(string, 200, "[AUTO BAN] %s (CASH HACKS)", PlayerInfo(i));
  7110. SendClientMessageToAll(COLOR_RED, string);
  7111. CNR_PrintString(string);
  7112. format(string, 200, "Banned for spawning $%d", GetPlayerMoney(i));
  7113. SendClientMessage(i, COLOR_RED, "You have been detected as a cash hacker.");
  7114. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  7115. SetPVarInt(i, "Banned", 1);
  7116. BanEx(i, string);
  7117. }*/
  7118. /*new pAction = GetPlayerSpecialAction(i);
  7119. if(pAction == SPECIAL_ACTION_USEJETPACK)
  7120. {
  7121. if(GetPVarInt(i, "AdminLevel") == 0)
  7122. {
  7123. new string[200];
  7124. format(string, sizeof(string), "[AUTO BAN] %s (JETPACK)", PlayerInfo(i));
  7125. SendClientMessageToAll(COLOR_RED, string);
  7126. CNR_PrintString(string);
  7127. format(string, 200, "Banned for spawning a jetpack.");
  7128. SendClientMessage(i, COLOR_RED, "You have been banned for spawning a Jetpack.");
  7129. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal on our website.");
  7130. SetPVarInt(i, "Banned", 1);
  7131. BanEx(i, string);
  7132. }
  7133. }
  7134. if(BanWeapon(i))
  7135. {
  7136. if(GetPVarInt(i, "AdminLevel") == 0)
  7137. {
  7138. if(GetPVarInt(i, "InEvent") == 0)
  7139. {
  7140. new string[200];
  7141. format(string, 200, "[AUTO BAN] %s (WEAPON SPAWN)", PlayerInfo(i));
  7142. SendClientMessageToAll(COLOR_RED, string);
  7143. CNR_PrintString(string);
  7144. SendClientMessage(i, COLOR_RED, "You have been banned for spawning an illegal weapon.");
  7145. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  7146. SetPVarInt(i, "Banned", 1);
  7147. BanEx(i, "AUTO BAN: Weapon Spawn");
  7148. }
  7149. }
  7150. }*/
  7151. if(GetPVarInt(i, "Jailed") == 1)
  7152. {
  7153. new string[200];
  7154. SetPVarInt(i, "JailTime", GetPVarInt(i, "JailTime") -1);
  7155. format(string, 200, "~b~Jail Time ~n~ ~r~%d", GetPVarInt(i, "JailTime"));
  7156. GameTextForPlayer(i, string, 1000, 3);
  7157. ResetPlayerWeapons(i);
  7158. }
  7159. if(GetPVarInt(i, "Cuffed") == 1)
  7160. {
  7161. SetPVarInt(i, "CuffTimer", GetPVarInt(i, "CuffedTimer") -1);
  7162. }
  7163. if(GetPVarInt(i, "Cuffed") == 1 && GetPVarInt(i, "CuffTimer") == 0)
  7164. {
  7165. TogglePlayerControllable(i, 1);
  7166. new string[200];
  7167. format(string, 200, "[ANTI ABUSE] %s has been auto uncuffed to prevent abuse.", PlayerInfo(i));
  7168. SendClientMessageToAll(COLOR_BLUE, string);
  7169. CNR_PrintString(string);
  7170. SetPVarInt(i, "Cuffed", 0);
  7171. SetPVarInt(i, "CuffTimer", 0);
  7172. }
  7173. if(GetPVarInt(i, "Jailed") == 1 && GetPVarInt(i, "JailTime") < 0)
  7174. {
  7175. SetPlayerPos(i, 237.110794, 111.975547, 1003.218750);
  7176. SetPlayerInterior(i, 10);
  7177. new string[120];
  7178. format(string, 120, "[PRISON] %s has been auto released from prison.", PlayerInfo(i));
  7179. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7180. CNR_PrintString(string);
  7181. SetPVarInt(i, "Jailed", 0);
  7182. SetPVarInt(i, "JailTime", 0);
  7183. }
  7184. new Float:phealth;
  7185. /*GetPlayerHealth(i, phealth);
  7186. if(phealth >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
  7187. {
  7188. new string[200]; GetPlayerHealth(i, phealth);
  7189. format(string, 200, "[AUTO BAN] %s [HEALTH HACKS]", PlayerInfo(i));
  7190. SendClientMessageToAll(COLOR_RED, string);
  7191. CNR_PrintString(string);
  7192. SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
  7193. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  7194. format(string, 200, "[AUTO BAN - HEALTH HACKS AT %d]", phealth);
  7195. BanEx(i, string);
  7196. SetPVarInt(i, "Banned", 1);
  7197. }*/
  7198. /*new Float:pArmour;
  7199. GetPlayerArmour(i, pArmour);
  7200. if(pArmour >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
  7201. {
  7202. new string[200]; GetPlayerArmour(i, pArmour);
  7203. format(string, 200, "[AUTO BAN] %s [ARMOUR HACKS]", PlayerInfo(i));
  7204. SendClientMessageToAll(COLOR_RED, string);
  7205. CNR_PrintString(string);
  7206. SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
  7207. SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
  7208. format(string, 200, "[AUTO BAN - ARMOUR HACKS AT %d]", pArmour);
  7209. BanEx(i, string);
  7210. SetPVarInt(i, "Banned", 1);
  7211. }*/
  7212. if(GetPVarInt(i, "IsSick") == 1)
  7213. {
  7214. SetPlayerHealth(i, phealth -2);
  7215. }
  7216. if(GetPVarInt(i, "RobbingBank") > 1)
  7217. {
  7218. new string[45];
  7219. format(string, 45, "~b~BANK ROBBERY ~n~ %d seconds left", GetPVarInt(i, "RobbingBank"));
  7220. GameTextForPlayer(i, string, 1000, 3);
  7221. }
  7222. if(GetPVarInt(i, "RobbingBank") == 1)
  7223. {
  7224. new string[120];
  7225. new rand = random(500000);
  7226. format(string, 120, "[BANK ROBBERY] %s has robbed $%d from the Los Santos bank.", PlayerInfo(i), rand);
  7227. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7228. CNR_PrintString(string);
  7229. GivePlayerMoney(i, rand);
  7230. IncreaseWantedLevel(i, 6);
  7231. IncreaseScore(i, 3);
  7232. format(string, 120, "[DISPATCH] %s has robbed the Los Santos Bank. Respond now.", PlayerInfo(i));
  7233. SendCopMessage(string);
  7234. format(string, 120, "Type /radiooff to turn your radio off and stop recieving alerts.");
  7235. SendCopMessage(string);
  7236. SetPVarInt(i, "RobbingBank", 0);
  7237. }
  7238. if(GetGVarInt("BankRobbedRecently") > 1)
  7239. {
  7240. SetGVarInt("BankRobbedRecently", GetGVarInt("BankRobbedRecently") -1);
  7241. }
  7242. if(GetPVarInt(i, "HasBlownCar") > 1)
  7243. {
  7244. SetPVarInt(i, "HasBlownCar", GetPVarInt(i, "HasBlownCar") -1);
  7245. }
  7246. if(GetPVarInt(i, "HasBlownCar") < 0)
  7247. {
  7248. SetPVarInt(i, "HasBlownCar", 0);
  7249. }
  7250. if(GetPVarInt(i, "Horny") > 0)
  7251. {
  7252. SetPVarInt(i, "Horny", GetPVarInt(i, "Horny") -1);
  7253. }
  7254. if(GetPVarInt(i, "HadSex") > 0)
  7255. {
  7256. SetPVarInt(i, "HadSex", GetPVarInt(i, "HadSex") -1);
  7257. }
  7258. if(GetPVarInt(i, "RobbingSouthSex") > 1)
  7259. {
  7260. SetPVarInt(i, "RobbingSouthSex", GetPVarInt(i, "RobbingSouthSex") -1);
  7261. new string[120];
  7262. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSouthSex"));
  7263. GameTextForPlayer(i, string, 1000, 3);
  7264. }
  7265. if(GetPVarInt(i, "RobbingSouthSex") == 1)
  7266. {
  7267. new mrand = random(100000); new string[120];
  7268. format(string, 120, "[ROBBERY] %s has robbed $%d from the South L.S Sex Shop!", PlayerInfo(i), mrand);
  7269. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7270. CNR_PrintString(string);
  7271. format(string, 120, "[DISPATCH] %s has robbed the South Los Santos Sex Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7272. IncreaseScore(i, 1);
  7273. IncreaseWantedLevel(i, 1);
  7274. GivePlayerMoney(i, mrand);
  7275. if(GetPVarInt(i, "RobSkill") < 5)
  7276. {
  7277. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7278. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. It is now %d", GetPVarInt(i, "RobSkill"));
  7279. SendClientMessage(i, COLOR_GREY, string);
  7280. }
  7281. SetPVarInt(i, "RobbingSouthSex", -1);
  7282. SetGVarInt("SexShopRobbed", 300);
  7283. }
  7284. if(GetPVarInt(i, "RobbedSexShop") > 1)
  7285. {
  7286. SetPVarInt(i, "RobbedSexShop", GetPVarInt(i, "RobbedSexShop") -1);
  7287. }
  7288. if(GetGVarInt("SexShopRobbed") > 1)
  7289. {
  7290. SetGVarInt("SexShopRobbed", GetGVarInt("SexShopRobbed") -1);
  7291. }
  7292. if(GetPVarInt(i, "RobbingGasOne") > 1)
  7293. {
  7294. SetPVarInt(i, "RobbingGasOne", GetPVarInt(i, "RobbingGasOne") -1);
  7295. new string[120];
  7296. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasOne"));
  7297. GameTextForPlayer(i, string, 1000, 3);
  7298. }
  7299. new string[120];
  7300. if(GetPVarInt(i, "RobbingGasOne") == 1)
  7301. {
  7302. new mrand = random(75000);
  7303. format(string, 120, "[ROBBERY] %s has robbed $%d from the Gas Station in south L.S.", PlayerInfo(i), mrand);
  7304. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7305. CNR_PrintString(string);
  7306. format(string, 120, "[DISPATCH] %s has robbed the Gas Station in South L.S. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7307. SendCopMessage(string);
  7308. format(string, 120, "Type /radiooff to turn off your Cop Radio and stop getting crime calls.");
  7309. SendCopMessage(string);
  7310. GivePlayerMoney(i, mrand);
  7311. IncreaseScore(i, 1);
  7312. IncreaseWantedLevel(i, 2);
  7313. if(GetPVarInt(i, "RobSkill") < 5)
  7314. {
  7315. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7316. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  7317. SendClientMessage(i, COLOR_GREY, string);
  7318. }
  7319. SetPVarInt(i, "RobbingGasOne", -1);
  7320. SetGVarInt("GasOneRobbed", 300);
  7321. }
  7322. if(GetGVarInt("GasOneRobbed") > 1)
  7323. {
  7324. SetGVarInt("GasOneRobbed", GetGVarInt("GasOneRobbed") -1);
  7325. }
  7326. if(GetPVarInt(i, "RobbingDanceDance") > 1)
  7327. {
  7328. SetPVarInt(i, "RobbingDanceDance", GetPVarInt(i, "RobbingDanceDance") -1);
  7329. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDanceDance"));
  7330. GameTextForPlayer(i, string, 1000, 3);
  7331. }
  7332. if(GetPVarInt(i, "RobbingDanceDance") == 1)
  7333. {
  7334. new mrand = random(65000);
  7335. format(string, 120, "[ROBBERY] %s has robbed $%d from Dance Dance Revolution.",PlayerInfo(i), mrand);
  7336. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7337. CNR_PrintString(string);
  7338. format(string, 120, "[DISPATCH] %s has robbed the Dance Dance Revolution. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7339. SendCopMessage(string);
  7340. format(string, 120, "Type /radioof to turn off your Cop Radio.");
  7341. SendCopMessage(string);
  7342. IncreaseScore(i, 1);
  7343. IncreaseWantedLevel(i, 1);
  7344. GivePlayerMoney(i, mrand);
  7345. if(GetPVarInt(i, "RobSkill") < 5)
  7346. {
  7347. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7348. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  7349. SendClientMessage(i, COLOR_GREY, string);
  7350. }
  7351. SetPVarInt(i, "RobbingDancedance", -1);
  7352. SetGVarInt("DanceDanceRobbed", 300);
  7353. }
  7354. if(GetGVarInt("DanceDancRobbed") > 1)
  7355. {
  7356. SetGVarInt("DanceDanceRobbed", GetGVarInt("DanceDanceRobbed") -1);
  7357. }
  7358. if(GetPVarInt(i, "RobbedRecently") > 1)
  7359. {
  7360. SetPVarInt(i, "RobbedRecently", GetPVarInt(i,"RobbedRecently") -1);
  7361. }
  7362. if(GetPVarInt(i, "RobbingAmmo") > 1)
  7363. {
  7364. SetPVarInt(i, "RobbingAmmo", GetPVarInt(i, "RobbingAmmo") -1);
  7365. }
  7366. if(GetPVarInt(i, "RobbingAmmo") > 1)
  7367. {
  7368. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingAmmo"));
  7369. GameTextForPlayer(i, string, 1010, 3);
  7370. }
  7371. if(GetPVarInt(i, "RobbingAmmo") == 1)
  7372. {
  7373. format(string, 120, "[ROBBERY] %s has robbed weapons from the Central Los Santos Ammunation.", PlayerInfo(i));
  7374. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7375. CNR_PrintString(string);
  7376. format(string, 120, "[DISPATCH] %s has robbed weapons from Ammunation. He's armed and dangerous. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7377. SendCopMessage(string);
  7378. new arand = random(100);
  7379. GivePlayerWeapon(i, 31, arand);
  7380. new aranda = random(100);
  7381. GivePlayerWeapon(i, 26, aranda);
  7382. new arandb = random(120);
  7383. GivePlayerWeapon(i, 22, arandb);
  7384. new arandc = random(100);
  7385. SetPlayerArmour(i, arandc);
  7386. SendClientMessage(i, COLOR_RED, "You have robbed weapons from the Ammunation.");
  7387. IncreaseWantedLevel(i, 2);
  7388. IncreaseScore(i, 1);
  7389. SetPVarInt(i, "RobbingAmmo", -1);
  7390. SetGVarInt("AmmoRobbed", 400);
  7391. if(GetPVarInt(i, "RobSkill") > 5 && GetPVarInt(i, "RobSkill") < 10)
  7392. {
  7393. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7394. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
  7395. SendClientMessage(i,COLOR_RED, string);
  7396. }
  7397. }
  7398. if(GetPVarInt(i, "RobbingBurgerShot") > 1)
  7399. {
  7400. SetPVarInt(i, "RobbingBurgerShot", GetPVarInt(i, "RobbingBurgerShot") -1);
  7401. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingBurgerShot"));
  7402. GameTextForPlayer(i, string, 1010, 3);
  7403. }
  7404. if(GetPVarInt(i, "RobbingBurgerShot") == 1)
  7405. {
  7406. new mrand = random(50000);
  7407. format(string, 120, "[ROBBERY] %s has robbed $%d from the Northern L.S Burger Shot.", PlayerInfo(i), mrand);
  7408. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7409. CNR_PrintString(string);
  7410. format(string, 120, "[DISPATCH] %s has robbed the Northern Burger Shot. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7411. SendCopMessage(string);
  7412. GivePlayerMoney(i, mrand);
  7413. IncreaseScore(i, 1);
  7414. IncreaseWantedLevel(i, 1);
  7415. if(GetPVarInt(i, "RobSkill") < 5)
  7416. {
  7417. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") +1);
  7418. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
  7419. SendClientMessage(i, COLOR_RED, string);
  7420. }
  7421. SetGVarInt("BurgerShotRobbed", 120);
  7422. SetPVarInt(i, "RobbingBurgerShot", -1);
  7423. }
  7424. if(GetGVarInt("BurgerShotRobbed") > 1)
  7425. {
  7426. SetGVarInt("BurgerShotRobbed", GetGVarInt("BurgerShotRobbed") -1);
  7427. }
  7428. if(GetPVarInt(i,"RobbingTatooShop") > 1)
  7429. {
  7430. SetPVarInt(i, "RobbingTatooShop", GetPVarInt(i, "RobbingTatooShop") -1);
  7431. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingTatooShop"));
  7432. GameTextForPlayer(i, string, 1010, 3);
  7433. }
  7434. if(GetPVarInt(i, "RobbingTatooShop") == 1)
  7435. {
  7436. new mrand = random(30000);
  7437. format(string, 120, "[ROBBERY] %s has robbed $d from the Tatoo Shop.", PlayerInfo(i), mrand);
  7438. CNR_PrintString(string);
  7439. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7440. format(string, 120, "[DISPATCH] %s has robbed the Tatoo Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7441. SendCopMessage(string);
  7442. GivePlayerMoney(i, mrand);
  7443. IncreaseScore(i, 1);
  7444. IncreaseWantedLevel(i, 1);
  7445. SetPVarInt(i, "RobbingTatooShop", -1);
  7446. SetGVarInt("TatooRobbed", 120);
  7447. if(GetPVarInt(i, "RobSkill") < 3)
  7448. {
  7449. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7450. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  7451. SendClientMessage(i, COLOR_RED, string);
  7452. }
  7453. }
  7454. if(GetGVarInt("TatooRobbed") < 1)
  7455. {
  7456. SetGVarInt("TatooRobbed", GetGVarInt("TatooRobbed") -1);
  7457. }
  7458. if(GetPVarInt(i, "RobbingPigPen") > 1)
  7459. {
  7460. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingPigPen"));
  7461. GameTextForPlayer(i, string, 1010, 3);
  7462. }
  7463. if(GetPVarInt(i, "RobbingPigPen") == 1)
  7464. {
  7465. new mrand = random(45000);
  7466. format(string, 120, "[ROBBERY] %s has robbed %d from the the Pig Pen.", PlayerInfo(i), mrand);
  7467. CNR_PrintString(string);
  7468. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7469. 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]);
  7470. SendCopMessage(string);
  7471. SetPVarInt(i, "RobbingPigPen", -1);
  7472. SetGVarInt("PigPenRobbed", 300);
  7473. IncreaseScore(i, 1);
  7474. IncreaseWantedLevel(i, 2);
  7475. if(GetPVarInt(i, "RobSkill") < 5)
  7476. {
  7477. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7478. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
  7479. SendClientMessage(i, COLOR_RED, string);
  7480. }
  7481. }
  7482. if(GetGVarInt("PigPenRobbed") > 1)
  7483. {
  7484. SetGVarInt("PigPenRobbed", GetGVarInt("PigPenRobbed") -1);
  7485. }
  7486. if(GetGVarInt("AirportBlown") > 1)
  7487. {
  7488. SetGVarInt("AirportBlown", GetGVarInt("AirportBlown") -1);
  7489. }
  7490. if(GetGVarInt("ParkBlown") > 1)
  7491. {
  7492. SetGVarInt("ParkBlown", GetGVarInt("ParkBlown") -1);
  7493. }
  7494. if(GetPVarInt(i, "RobbingGasStation") > 1)
  7495. {
  7496. format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasStation"));
  7497. GameTextForPlayer(i, string, 1010, 3);
  7498. }
  7499. if(GetPVarInt(i, "RobbingGasStation") > 1)
  7500. {
  7501. SetPVarInt(i, "RobbingGasStation", GetPVarInt(i, "RobbingGasStation") -1);
  7502. }
  7503. if(GetPVarInt(i, "RobbingGasStation") == 1)
  7504. {
  7505. new mrand = random(65000);
  7506. format(string, 120, "[ROBBERY] %s has robbed $%d from the gas station in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  7507. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7508. CNR_PrintString(string);
  7509. format(string, 120, "[DISPATCH] %s has robbed the Gas Station in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  7510. SendCopMessage(string);
  7511. IncreaseScore(i, 1);
  7512. IncreaseWantedLevel(i, 1);
  7513. GivePlayerMoney(i, mrand);
  7514. if(GetPVarInt(i, "RobSkill") < 5)
  7515. {
  7516. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7517. format(string, 120, "[SKILL UPGRADE] Your rob skill has increased to %s!", GetPVarInt(i, "RobSkill"));
  7518. SendClientMessage(i, COLOR_RED, string);
  7519. }
  7520. SetPVarInt(i, "RobbingGasStation", -1);
  7521. }
  7522. if(GetGVarInt("SignBlown") > 1)
  7523. {
  7524. SetGVarInt("SignBlown", GetGVarInt("SignBlown") -1);
  7525. }
  7526. if(GetGVarInt("BankBlown") > 1)
  7527. {
  7528. SetGVarInt("BankBlown", GetGVarInt("BankBlown") -1);
  7529. }
  7530. if(GetPVarInt(i, "EatenSnacks") > 1)
  7531. {
  7532. SetPVarInt(i, "EatenSnacks", GetPVarInt(i, "EatenSnacks") -1);
  7533. }
  7534. if(GetPVarInt(i, "HasSmoked") > 1)
  7535. {
  7536. SetPVarInt(i, "HasSmoked", GetPVarInt(i, "HasSmoked") -1);
  7537. }
  7538. if(GetPVarInt(i, "HasDrink") > 1)
  7539. {
  7540. SetPVarInt(i, "HasDrink", GetPVarInt(i, "HasDrink") -1);
  7541. }
  7542. if(GetPVarInt(i, "UsedPot") > 1)
  7543. {
  7544. SetPVarInt(i, "UsedPot", GetPVarInt(i, "UsedPot") -1);
  7545. }
  7546. if(GetGVarInt("DrugHouseRobbed") > 1)
  7547. {
  7548. SetGVarInt("DrugHouseRobbed", GetGVarInt("DrugHouseRobbed") -1);
  7549. }
  7550. if(GetPVarInt(i, "RobbingDrugHouse") > 1)
  7551. {
  7552. format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDrugHouse"));
  7553. GameTextForPlayer(i, string, 1050, 3);
  7554. SetPVarInt(i, "RobbingDrugHouse", GetPVarInt(i, "RobbingDrugHouse") -1);
  7555. }
  7556. if(GetPVarInt(i, "RobbingDrugHouse") == 1)
  7557. {
  7558. new mrand = random(GetGVarInt("DrugHouseCash"));
  7559. format(string, 120, "[ROBBERY] %s has robbed $%d from the Drug House in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  7560. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7561. CNR_PrintString(string);
  7562. format(string, 120, "[DISPATCH] %s has robbed the Drug House in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  7563. SendCopMessage(string);
  7564. GivePlayerMoney(i, mrand);
  7565. SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") -mrand);
  7566. IncreaseScore(i, 1);
  7567. IncreaseWantedLevel(i, 1);
  7568. SetPVarInt(i, "RobbingDrugHouse", -1);
  7569. SetGVarInt("DrugHouseRobbed", 200);
  7570. if(GetPVarInt(i, "RobSkill") < 10)
  7571. {
  7572. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7573. format(string, 120, "[SKILL UPGRADE] Your robbing skill is now %d!", GetPVarInt(i, "RobSkill"));
  7574. SendClientMessage(i, COLOR_RED, string);
  7575. return 1;
  7576. }
  7577. }
  7578. if(GetGVarInt("SuburbanRobbed") > 1)
  7579. {
  7580. SetGVarInt("SuburbanRobbed", GetGVarInt("SuburbanRobbed") -1);
  7581. }
  7582. if(GetPVarInt(i, "RobbingSuburban") > 1)
  7583. {
  7584. SetPVarInt(i, "RobbingSuburban", GetPVarInt(i, "RobbingSuburban") -1);
  7585. format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~b~ STAY IN THE CHECKPOINT ~n~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSuburban"));
  7586. GameTextForPlayer(i, string, 1100, 3);
  7587. }
  7588. if(GetPVarInt(i, "RobbingSuburban") == 1)
  7589. {
  7590. new mrand = random(35000);
  7591. format(string, 120, "[ROBBERY] %s has robbed $%d from the Suburban in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  7592. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7593. CNR_PrintString(string);
  7594. format(string, 120, "[DISPATCH] %s has robbed the Suburban in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
  7595. SendCopMessage(string);
  7596. IncreaseScore(i, 1);
  7597. IncreaseWantedLevel(i, 1);
  7598. SetPVarInt(i, "RobbingSuburban", -1);
  7599. GivePlayerMoney(i, mrand);
  7600. if(GetPVarInt(i, "RobSkill") < 5)
  7601. {
  7602. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7603. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d!", GetPVarInt(i, "RobSkill"));
  7604. SendClientMessage(i, COLOR_RED, string);
  7605. return 1;
  7606. }
  7607. }
  7608. if(GetPVarInt(i, "RobbingBinco") > 1)
  7609. {
  7610. SetPVarInt(i, "RobbingBinco", GetPVarInt(i, "RobbingBinco") -1);
  7611. format(string, 120, "~R~ ROBBERY IN PROGRESS ~n~ ~b~ STAY IN THE CHECKPOINT ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingBinco"));
  7612. GameTextForPlayer(i, string, 1100, 3);
  7613. }
  7614. if(GetPVarInt(i, "RobbingBinco") == 1)
  7615. {
  7616. new mrand = random(45000);
  7617. format(string, 120, "[ROBBERY] %s has robbed $%d from the Binco in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  7618. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7619. CNR_PrintString(string);
  7620. format(string, 120, "[DISPATCH] %s has robbed the Binco in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7621. SendCopMessage(string);
  7622. IncreaseScore(i, 1);
  7623. IncreaseWantedLevel(i, 1);
  7624. SetPVarInt(i, "RobbingBinco", -1);
  7625. GivePlayerMoney(i, mrand);
  7626. if(GetPVarInt(i, "RobSkill") < 5)
  7627. {
  7628. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7629. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
  7630. SendClientMessage(i, COLOR_RED, string);
  7631. return 1;
  7632. }
  7633. }
  7634. if(GetGVarInt("BincoRobbed") > 1)
  7635. {
  7636. SetGVarInt("BincoRobbed", GetGVarInt("BincoRobbed") -1);
  7637. }
  7638. if(GetPVarInt(i, "RobbingPizza") > 1)
  7639. {
  7640. SetPVarInt(i, "RobbingPizza", GetPVarInt(i, "RobbingPizza") -1);
  7641. format(string, 120, "~r~ STAY IN THE CHECKPOINT ~N~ ~b~ ROBBERY IN PROGRESS ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingPizza"));
  7642. GameTextForPlayer(i, string, 1100, 3);
  7643. }
  7644. if(GetGVarInt("PizzaRobbed") > 1)
  7645. {
  7646. SetGVarInt("PizzaRobbed", GetGVarInt("PizzaRobbed") -1);
  7647. }
  7648. if(GetPVarInt(i, "RobbingPizza") == 1)
  7649. {
  7650. new mrand = random(25000);
  7651. format(string, 120, "[ROBBERY] %s has robbed $%d from the Well Stacked Pizza Parlor in %s",PlayerInfo(i), mrand, zones[current_zone][zone_name]);
  7652. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  7653. CNR_PrintString(string);
  7654. format(string, 120, "[DISPATCH] %s has robbed the Pizza Parlor in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  7655. SendCopMessage(string);
  7656. GivePlayerMoney(i, mrand);
  7657. SetPVarInt(i, "RobbingPizza", -1);
  7658. IncreaseScore(i, 1);
  7659. IncreaseWantedLevel(i, 1);
  7660. if(GetPVarInt(i, "RobSkill") < 5)
  7661. {
  7662. SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
  7663. format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
  7664. return 1;
  7665. }
  7666. }
  7667. }
  7668. }
  7669. //printf("Tick Count: %d", GetTickCount());
  7670. return 1;
  7671. }
  7672.  
  7673. public BanWeapon(playerid)
  7674. {
  7675. if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
  7676. GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
  7677. GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
  7678. {
  7679. return 1;
  7680. }
  7681. return 0;
  7682. }
  7683.  
  7684. public SaveStats()
  7685. {
  7686. for(new i = 0; i<MAX_PLAYERS; i++)
  7687. {
  7688. if(IsPlayerConnected(i)) {
  7689. if(PLAYERLIST_authed[i])
  7690. {
  7691. dUserSetINT(PlayerName(i)).("Score", GetPlayerScore(i));
  7692. dUserSetINT(PlayerName(i)).("AdminLevel", GetPVarInt(i, "AdminLevel"));
  7693. dUserSetINT(PlayerName(i)).("Cash", GetPlayerMoney(i));
  7694. dUserSetINT(PlayerName(i)).("BankCash", GetPVarInt(i, "BankCash"));
  7695. dUserSetINT(PlayerName(i)).("Banned", GetPVarInt(i, "Banned"));
  7696. dUserSetINT(PlayerName(i)).("WantedLevel", GetPlayerWantedLevel(i));
  7697. dUserSetINT(PlayerName(i)).("Warnings", GetPVarInt(i, "Warnings"));
  7698. dUserSetINT(PlayerName(i)).("HasPack", GetPVarInt(i, "HasPack"));
  7699. dUserSetINT(PlayerName(i)).("ArmyPermission", GetPVarInt(i, "ArmyPermission"));
  7700. dUserSetINT(PlayerName(i)).("PackCash", GetPVarInt(i, "PackCash"));
  7701. dUserSetINT(PlayerName(i)).("PackSnack", GetPVarInt(i, "PackSnack"));
  7702. dUserSetINT(PlayerName(i)).("PackPipe", GetPVarInt(i, "PackPipe"));
  7703. dUserSetINT(PlayerName(i)).("PackPot", GetPVarInt(i, "PackPot"));
  7704. dUserSetINT(PlayerName(i)).("PackCigars", GetPVarInt(i, "PackCigars"));
  7705. dUserSetINT(PlayerName(i)).("PackCondom", GetPVarInt(i, "PackCondom"));
  7706. dUserSetINT(PlayerName(i)).("PackWallet", GetPVarInt(i, "PackWallet"));
  7707. dUserSetINT(PlayerName(i)).("JailTime", GetPVarInt(i, "JailTime"));
  7708. dUserSetINT(PlayerName(i)).("RobSkill", GetPVarInt(i, "RobSkill"));
  7709. dUserSetINT(PlayerName(i)).("Elite", GetPVarInt(i, "Elite"));
  7710. dUserSetINT(PlayerName(i)).("PackExp", GetPVarInt(i, "PackExp"));
  7711. dUserSetINT(PlayerName(i)).("TerrorSkill", GetPVarInt(i, "TerrorSkill"));
  7712. }
  7713. }
  7714. }
  7715. return 1;
  7716. }
  7717.  
  7718. encode_tires(tires1, tires2, tires3, tires4) {
  7719.  
  7720. return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
  7721.  
  7722. }
  7723.  
  7724.  
  7725. stock CreateStrip(Float:x, Float:y, Float:z, Float:Angle)
  7726. {
  7727. for(new i = 0; i < sizeof(SInfo); i ++)
  7728. {
  7729. if(SInfo[i][SpikeCreated] == 0)
  7730. {
  7731. SInfo[i][SpikeCreated] = 1;
  7732. SInfo[i][SX] = x;
  7733. SInfo[i][SY] = y;
  7734. SInfo[i][SZ] = z-0.7;
  7735. SInfo[i][sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90);
  7736. return 1;
  7737. }
  7738. }
  7739. return 0;
  7740. }
  7741.  
  7742. stock RemoveClosestSpike(playerid)
  7743. {
  7744. for(new i = 0; i < sizeof(SInfo); i++)
  7745. {
  7746. if(IsPlayerInRangeOfPoint(playerid, 2.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
  7747. {
  7748. if(SInfo[i][SpikeCreated] == 1)
  7749. {
  7750. SInfo[i][SpikeCreated]=0;
  7751. SInfo[i][SX]=0.0;
  7752. SInfo[i][SY]=0.0;
  7753. SInfo[i][SZ]=0.0;
  7754. DestroyObject(SInfo[i][sObject]);
  7755. return 1;
  7756. }
  7757. }
  7758. }
  7759. return 0;
  7760. }
  7761. stock RemoveAllSpikes()
  7762. {
  7763. for(new i = 0; i < sizeof(SInfo); i++)
  7764. {
  7765. if(SInfo[i][SpikeCreated] == 1)
  7766. {
  7767. SInfo[i][SpikeCreated]=0;
  7768. SInfo[i][SX]=0.0;
  7769. SInfo[i][SY]=0.0;
  7770. SInfo[i][SZ]=0.0;
  7771. DestroyObject(SInfo[i][sObject]);
  7772. }
  7773. }
  7774. return 0;
  7775. }
  7776. public IsABike(carid)
  7777. {
  7778. if(GetVehicleModel(carid) == 509 || GetVehicleModel(carid) == 481 || GetVehicleModel(carid) == 510)
  7779. {
  7780. return 1;
  7781. }
  7782. return 0;
  7783. }
  7784.  
  7785. public Weather()
  7786. {
  7787. new wrand = random(6);
  7788. if(wrand == 1)
  7789. {
  7790. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The weather has taken a turn for the worse. It seems if a storm is rolling in.");
  7791. SetWeather(16);
  7792. return 1;
  7793. }
  7794. if(wrand == 2)
  7795. {
  7796. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The dust storm from Las Venturas is rolling in yet again. Expect low sight distance.");
  7797. SetWeather(42);
  7798. return 1;
  7799. }
  7800. if(wrand == 3)
  7801. {
  7802. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Clouds are moving in from the coast, and will bring a chance of rain.");
  7803. SetWeather(12);
  7804. return 1;
  7805. }
  7806. if(wrand == 4)
  7807. {
  7808. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The rain is coming in. Expect foggy conditions.");
  7809. SetWeather(9);
  7810. return 1;
  7811. }
  7812. if(wrand == 5)
  7813. {
  7814. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] It's gonna be a normal day, folks. Sunny skies all day.");
  7815. SetWeather(10);
  7816. return 1;
  7817. }
  7818. if(wrand == 6)
  7819. {
  7820. SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Seems as though the sun is in an odd position today. Expect odd colored skies.");
  7821. SetWeather(2009);
  7822. return 1;
  7823. }
  7824. return 1;
  7825. }
  7826.  
  7827. /**
  7828. * It is much easier to actually make this print than to replace all of it in the script.
  7829. * Same goes for public IRCAdmin
  7830. */
  7831. stock CNR_PrintString(msg[]) {
  7832. print(msg);
  7833. }
  7834.  
  7835. public GivePlayerTeamWeapons(playerid)
  7836. {
  7837. if(gTeam[playerid] == Team_Cop)
  7838. {
  7839. GivePlayerWeapon(playerid, 3, 1);
  7840. GivePlayerWeapon(playerid, 22, 100);
  7841. GivePlayerWeapon(playerid, 29, 500);
  7842. GivePlayerWeapon(playerid, 33, 10);
  7843. SetPlayerArmour(playerid, 100.0);
  7844. return 1;
  7845. }
  7846. if(gTeam[playerid] == Team_FBI)
  7847. {
  7848. GivePlayerWeapon(playerid, 3, 1);
  7849. GivePlayerWeapon(playerid, 22, 100);
  7850. GivePlayerWeapon(playerid, 29, 500);
  7851. GivePlayerWeapon(playerid, 31, 100);
  7852. SetPlayerArmour(playerid, 100.0);
  7853. return 1;
  7854. }
  7855. if(gTeam[playerid] == Team_Army)
  7856. {
  7857. GivePlayerWeapon(playerid, 24, 50);
  7858. GivePlayerWeapon(playerid, 31, 500);
  7859. GivePlayerWeapon(playerid, 34, 20);
  7860. GivePlayerWeapon(playerid, 26, 25);
  7861. SetPlayerArmour(playerid, 100.0);
  7862. return 1;
  7863. }
  7864. if(gTeam[playerid] == Team_Rape)
  7865. {
  7866. GivePlayerWeapon(playerid, 24, 150);
  7867. GivePlayerWeapon(playerid, 10, 1);
  7868. GivePlayerWeapon(playerid, 31, 150);
  7869. return 1;
  7870. }
  7871. if(gTeam[playerid] == Team_Terror)
  7872. {
  7873. GivePlayerWeapon(playerid, 31, 100);
  7874. GivePlayerWeapon(playerid, 32, 250);
  7875. GivePlayerWeapon(playerid, 39, 5);
  7876. GivePlayerWeapon(playerid, 40, 1);
  7877. return 1;
  7878. }
  7879. if(gTeam[playerid] == Team_Steal)
  7880. {
  7881. GivePlayerWeapon(playerid, 5, 100);
  7882. GivePlayerWeapon(playerid, 22, 100);
  7883. GivePlayerWeapon(playerid, 32, 100);
  7884. return 1;
  7885. }
  7886. if(gTeam[playerid] == Team_PrvtMed)
  7887. {
  7888. GivePlayerWeapon(playerid, 22, 100);
  7889. GivePlayerWeapon(playerid, 4, 1);
  7890. return 1;
  7891. }
  7892. if(gTeam[playerid] == TEAM_HITMAN)
  7893. {
  7894. GivePlayerWeapon(playerid, 4, 1);
  7895. GivePlayerWeapon(playerid, 23, 100);
  7896. GivePlayerWeapon(playerid, 29, 200);
  7897. return 1;
  7898. }
  7899. return 1;
  7900. }
  7901.  
  7902. public Taxes()
  7903. {
  7904. new string[120];
  7905. for(new i = 0; i<MAX_PLAYERS; i++)
  7906. {
  7907. if(gTeam[i] == Team_Cop || gTeam[i] == Team_FBI || gTeam[i] == Team_Army)
  7908. {
  7909. format(string, 120, "[DAILY CHECK] You have gotten your daily check of $15,000. Keep up the good work!");
  7910. SendCopMessage(string);
  7911. format(string, 120, "[DAILY PAY] The Cops have recieved their daily pay of $15,000");
  7912. CNR_PrintString(string);
  7913. GivePlayerMoney(i, 15000);
  7914. }
  7915. }
  7916. return 1;
  7917. }
  7918. //xObjects
  7919. public Timer()
  7920. {
  7921. for(new i = 0; i < MAX_PLAYERS; i++)
  7922. if(IsPlayerConnected(i))
  7923. PlayerObjectUpdate(i);
  7924. }
  7925.  
  7926. PlayerObjectUpdate(playerid)
  7927. {
  7928. new Float:pos[3];
  7929. GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
  7930. for(new i = 0; i < sizeof(Objects); i++)
  7931. {
  7932. if(!Player[playerid][view][i])
  7933. {
  7934. if(IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  7935. {
  7936. Player[playerid][view][i] = true;
  7937. 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);
  7938. }
  7939. } else if(!IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  7940. {
  7941. Player[playerid][view][i] = false;
  7942. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  7943. }
  7944. }
  7945. }
  7946. forward SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z);
  7947. public SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z)
  7948. {
  7949. for(new i = 0; i < sizeof(Objects); i++)
  7950. {
  7951. if(!Player[playerid][view][i])
  7952. {
  7953. if(IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  7954. {
  7955. Player[playerid][view][i] = true;
  7956. 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);
  7957. }
  7958. } else if(!IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
  7959. {
  7960. Player[playerid][view][i] = false;
  7961. DestroyPlayerObject(playerid,Player[playerid][objid][i]);
  7962. }
  7963. }
  7964. SetPlayerPos(playerid,Float:x,Float:y,Float:z);
  7965. }
  7966.  
  7967. /////////
  7968. //Los Santos Airpot explosions
  7969. forward APPlantOne();
  7970. forward APPlantTwo();
  7971. forward APPlantThree();
  7972. forward APPlantFour();
  7973. forward APPlantFive();
  7974. forward APPlantSix();
  7975. forward APPlantSeven();
  7976. forward APPlantEight();
  7977. forward AirportExplode();
  7978. forward AirportExplode2();
  7979. forward AirportExplode3();
  7980. forward AirportExplode4();
  7981. //Bomb Objects
  7982. new APBomb1;
  7983. new APBomb2;
  7984. new APBomb3;
  7985. new APBomb4;
  7986. new APBomb5;
  7987. new APBomb6;
  7988. new APBomb7;
  7989. public APPlantOne()
  7990. {
  7991. for(new i = 0; i < MAX_PLAYERS; i ++ )
  7992. {
  7993. if(GetPVarInt(i, "BlowingAirport") == 1)
  7994. {
  7995. SetPlayerFacingAngle(i,227.48);
  7996. TogglePlayerControllable(i, false);
  7997. SetPlayerPos(i,1446.511230, -2259.595703, 13.546875);
  7998. SetCameraBehindPlayer(i);
  7999. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0,0);
  8000. APBomb1 = CreateObject(1252, 1446.511230, -2259.595703, 13.546875 , 0, 0, 0);
  8001. SetTimer("APPlantTwo", 5000, 0);
  8002. }
  8003. }
  8004. return 1;
  8005. }
  8006.  
  8007. public APPlantTwo()
  8008. {
  8009. for(new i = 0; i<MAX_PLAYERS;i++)
  8010. {
  8011. if(GetPVarInt(i, "BlowingAirport") == 1)
  8012. {
  8013. SetPlayerFacingAngle(i,181.73);
  8014. TogglePlayerControllable(i, false);
  8015. SetPlayerPos(i, 1474.257080, -2247.815917, 13.546875);
  8016. SetCameraBehindPlayer(i);
  8017. APBomb2 = CreateObject(1252, 1474.257080, -2247.815917, 13.546875, 0, 0,0);
  8018. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8019. SetTimer("APPlantThree", 1000*5, 0);
  8020. }
  8021. }
  8022. return 1;
  8023. }
  8024. public APPlantThree()
  8025. {
  8026. for(new i = 0; i<MAX_PLAYERS;i++)
  8027. {
  8028. if(GetPVarInt(i, "BlowingAirport") == 1)
  8029. {
  8030. SetPlayerFacingAngle(i,137.86);
  8031. TogglePlayerControllable(i, false);
  8032. SetPlayerPos(i, 1501.784790, -2258.842773, 13.546875);
  8033. SetCameraBehindPlayer(i);
  8034. APBomb3 = CreateObject(1252, 1501.784790, -2258.842773, 13.546875, 0, 0,0);
  8035. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8036. SetTimer("APPlantFour", 1000*5,0);
  8037. }
  8038. }
  8039. return 1;
  8040. }
  8041. public APPlantFour()
  8042. {
  8043. for(new i = 0; i<MAX_PLAYERS;i++)
  8044. {
  8045. if(GetPVarInt(i, "BlowingAirport") == 1)
  8046. {
  8047. SetPlayerFacingAngle(i,45.74);
  8048. TogglePlayerControllable(i, false);
  8049. SetPlayerPos(i, 1502.540283, -2313.813232, 13.546875);
  8050. SetCameraBehindPlayer(i);
  8051. APBomb4 = CreateObject(1252, 1502.540283, -2313.813232, 13.546875, 0, 0,0);
  8052. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8053. SetTimer("APPlantFive", 100,0);
  8054. }
  8055. }
  8056. return 1;
  8057. }
  8058. public APPlantFive()
  8059. {
  8060. for(new i = 0; i<MAX_PLAYERS;i++)
  8061. {
  8062. if(GetPVarInt(i, "BlowingAirport") == 1)
  8063. {
  8064. SetPlayerFacingAngle(i,3.13);
  8065. TogglePlayerControllable(i, false);
  8066. SetPlayerPos(i, 1475.110595, -2325.812011, 13.546875);
  8067. SetCameraBehindPlayer(i);
  8068. APBomb5 = CreateObject(1252, 1475.110595, -2325.812011, 13.546875, 0, 0,0);
  8069. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8070. SetTimer("APPlantSix", 5000, 0);
  8071. }
  8072. }
  8073. return 1;
  8074. }
  8075. public APPlantSix()
  8076. {
  8077. for(new i = 0; i<MAX_PLAYERS;i++)
  8078. {
  8079. if(GetPVarInt(i, "BlowingAirport") == 1)
  8080. {
  8081. SetPlayerFacingAngle(i,311.43);
  8082. TogglePlayerControllable(i, false);
  8083. SetPlayerPos(i, 1446.560058, -2314.601074, 13.546875);
  8084. SetCameraBehindPlayer(i);
  8085. APBomb6 = CreateObject(1252, 1446.560058, -2314.601074, 13.546875, 0, 0,0);
  8086. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8087. SetTimer("APPlantSeven", 5000, 0);
  8088. }
  8089. }
  8090. return 1;
  8091. }
  8092. public APPlantSeven()
  8093. {
  8094. for(new i = 0; i<MAX_PLAYERS;i++)
  8095. {
  8096. if(GetPVarInt(i, "BlowingAirport") == 1)
  8097. {
  8098. SetPlayerFacingAngle(i,88.36);
  8099. TogglePlayerControllable(i, false);
  8100. SetPlayerPos(i, 1474.212158, -2287.304687, 42.420486);
  8101. SetCameraBehindPlayer(i);
  8102. APBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8103. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8104. SetTimer("APPlantEight", 5000, 0);
  8105. }
  8106. }
  8107. return 1;
  8108. }
  8109. public APPlantEight()
  8110. {
  8111. for(new i = 0; i<MAX_PLAYERS;i++)
  8112. {
  8113. if(GetPVarInt(i, "BlowingAirport") == 1)
  8114. {
  8115. TogglePlayerControllable(i, true);
  8116. SetPlayerPos(i, 1418.392700, -2276.415771, 13.541189);
  8117. SetCameraBehindPlayer(i);
  8118. GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~r~ IT WILL EXPLODE SOON", 3000, 3);
  8119. SendClientMessage(i, COLOR_RED, "[TERRORISM] You have blown up the Airport. Run for your life!");
  8120. SetTimer("AirportExplode", 1000*5, 0);
  8121. SetPVarInt(i, "BlowingAirport", 0);
  8122. SetPlayerFacingAngle(i, 264.50);
  8123. }
  8124. }
  8125. return 1;
  8126. }
  8127. public AirportExplode()
  8128. {
  8129. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  8130. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  8131. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  8132. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  8133. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  8134. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  8135. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  8136. DestroyObject(APBomb1);
  8137. DestroyObject(APBomb2);
  8138. DestroyObject(APBomb3);
  8139. DestroyObject(APBomb4);
  8140. DestroyObject(APBomb5);
  8141. DestroyObject(APBomb6);
  8142. DestroyObject(APBomb7);
  8143. SetTimer("AirportExplode2", 1000*5, 0);
  8144. return 1;
  8145. }
  8146. public AirportExplode2()
  8147. {
  8148. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  8149. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  8150. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  8151. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  8152. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  8153. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  8154. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  8155. SetTimer("AirportExplode3", 1000*6, 0);
  8156. return 1;
  8157. }
  8158. public AirportExplode3()
  8159. {
  8160. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  8161. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  8162. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  8163. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  8164. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  8165. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  8166. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  8167. SetTimer("AirportExplode4", 1000*7, 0);
  8168. return 1;
  8169. }
  8170. public AirportExplode4()
  8171. {
  8172. CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
  8173. CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
  8174. CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
  8175. CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
  8176. CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
  8177. CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
  8178. CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
  8179. return 1;
  8180. }
  8181.  
  8182. //
  8183. //Amusement park Blowing (PVar - BlowingPark) Public : ParkPlantOne and on
  8184. forward ParkPlantOne();
  8185. forward ParkPlantTwo();
  8186. forward ParkPlantThree();
  8187. forward ParkPlantFour();
  8188. forward ParkPlantFive();
  8189. forward ParkPlantSix();
  8190. forward ParkPlantSeven();
  8191. forward ParkPlantEight();
  8192. forward ParkPlantNine();
  8193. forward ParkPlantTen();
  8194. forward ParkBlowOne();
  8195. forward ParkBlowTwo();
  8196. forward ParkBlowThree();
  8197. forward ParkBlowFour();
  8198. new ParkBomb1;
  8199. new ParkBomb2;
  8200. new ParkBomb3;
  8201. new ParkBomb4;
  8202. new ParkBomb5;
  8203. new ParkBomb6;
  8204. new ParkBomb7;
  8205. new ParkBomb8;
  8206. new ParkBomb9;
  8207. public ParkPlantOne()
  8208. {
  8209. for(new i = 0; i < MAX_PLAYERS; i ++)
  8210. {
  8211. if(GetPVarInt(i, "BlowingPark") == 1)
  8212. {
  8213. TogglePlayerControllable(i, false);
  8214. SetPlayerPos(i, 386.390991, -2016.805053, 7.835937);
  8215. SetPlayerFacingAngle(i,271.95);
  8216. SetCameraBehindPlayer(i);
  8217. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8218. ParkBomb1 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8219. SetTimer("ParkPlantTwo", 4000, false);
  8220. }
  8221. }
  8222. return 1;
  8223. }
  8224. public ParkPlantTwo()
  8225. {
  8226. for(new i = 0; i < MAX_PLAYERS; i ++)
  8227. {
  8228. if(GetPVarInt(i, "BlowingPark") == 1)
  8229. {
  8230. TogglePlayerControllable(i, false);
  8231. SetPlayerPos(i, 393.594512, -2016.958374, 7.835937);
  8232. SetPlayerFacingAngle(i,89.59);
  8233. SetCameraBehindPlayer(i);
  8234. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8235. ParkBomb2 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8236. SetTimer("ParkPlantThree", 4000, false);
  8237. }
  8238. }
  8239. return 1;
  8240. }
  8241. public ParkPlantThree()
  8242. {
  8243. for(new i = 0; i < MAX_PLAYERS; i ++)
  8244. {
  8245. if(GetPVarInt(i, "BlowingPark") == 1)
  8246. {
  8247. TogglePlayerControllable(i, false);
  8248. SetPlayerPos(i, 393.441101, -2040.196533, 7.835937);
  8249. SetPlayerFacingAngle(i,93.03);
  8250. SetCameraBehindPlayer(i);
  8251. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8252. ParkBomb3 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8253. SetTimer("ParkPlantFour", 4000, false);
  8254. }
  8255. }
  8256. return 1;
  8257. }
  8258. public ParkPlantFour()
  8259. {
  8260. for(new i = 0; i < MAX_PLAYERS; i ++)
  8261. {
  8262. if(GetPVarInt(i, "BlowingPark") == 1)
  8263. {
  8264. TogglePlayerControllable(i, false);
  8265. SetPlayerPos(i, 386.078521, -2040.287109, 7.835937 );
  8266. SetPlayerFacingAngle(i,269.10);
  8267. SetCameraBehindPlayer(i);
  8268. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8269. ParkBomb4 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8270. SetTimer("ParkPlantFive", 4000, false);
  8271. }
  8272. }
  8273. return 1;
  8274. }
  8275. public ParkPlantFive()
  8276. {
  8277. for(new i = 0; i < MAX_PLAYERS; i ++)
  8278. {
  8279. if(GetPVarInt(i, "BlowingPark") == 1)
  8280. {
  8281. TogglePlayerControllable(i, false);
  8282. SetPlayerPos(i,399.358306, -2053.864013, 7.835937);
  8283. SetPlayerFacingAngle(i,90.50);
  8284. SetCameraBehindPlayer(i);
  8285. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8286. ParkBomb5 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8287. SetTimer("ParkPlantSix", 4000, false);
  8288. }
  8289. }
  8290. return 1;
  8291. }
  8292. public ParkPlantSix()
  8293. {
  8294. for(new i = 0; i < MAX_PLAYERS; i ++)
  8295. {
  8296. if(GetPVarInt(i, "BlowingPark") == 1)
  8297. {
  8298. TogglePlayerControllable(i, false);
  8299. SetPlayerPos(i,399.360260, -2067.079345, 10.746990);
  8300. SetPlayerFacingAngle(i,90.50);
  8301. SetCameraBehindPlayer(i);
  8302. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8303. ParkBomb6 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8304. SetTimer("ParkPlantSeven", 4000, false);
  8305. }
  8306. }
  8307. return 1;
  8308. }
  8309. public ParkPlantSeven()
  8310. {
  8311. for(new i = 0; i < MAX_PLAYERS; i ++)
  8312. {
  8313. if(GetPVarInt(i, "BlowingPark") == 1)
  8314. {
  8315. TogglePlayerControllable(i, false);
  8316. SetPlayerPos(i,359.417694, -2071.052001, 10.695312);
  8317. SetPlayerFacingAngle(i,359.32);
  8318. SetCameraBehindPlayer(i);
  8319. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8320. ParkBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8321. SetTimer("ParkPlantEight", 4000, false);
  8322. }
  8323. }
  8324. return 1;
  8325. }
  8326. public ParkPlantEight()
  8327. {
  8328. for(new i = 0; i < MAX_PLAYERS; i ++)
  8329. {
  8330. if(GetPVarInt(i, "BlowingPark") == 1)
  8331. {
  8332. TogglePlayerControllable(i, false);
  8333. SetPlayerPos(i,382.292480, -2058.703857, 10.719718);
  8334. SetPlayerFacingAngle(i,270.02);
  8335. SetCameraBehindPlayer(i);
  8336. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8337. ParkBomb8 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8338. SetTimer("ParkPlantNine", 4000, false);
  8339. }
  8340. }
  8341. return 1;
  8342. }
  8343. public ParkPlantNine()
  8344. {
  8345. for(new i = 0; i < MAX_PLAYERS; i ++)
  8346. {
  8347. if(GetPVarInt(i, "BlowingPark") == 1)
  8348. {
  8349. TogglePlayerControllable(i, false);
  8350. SetPlayerPos(i,359.547882, -2052.848388, 8.015625 );
  8351. SetPlayerFacingAngle(i,271.92);
  8352. SetCameraBehindPlayer(i);
  8353. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8354. ParkBomb9 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
  8355. SetTimer("ParkPlantTen", 4000, false);
  8356. }
  8357. }
  8358. return 1;
  8359. }
  8360. public ParkPlantTen()
  8361. {
  8362. for(new i = 0; i < MAX_PLAYERS; i ++)
  8363. {
  8364. if(GetPVarInt(i, "BlowingPark") == 1)
  8365. {
  8366. SetPlayerPos(i,368.264892, -2011.568969, 7.671875 );
  8367. SetPlayerFacingAngle(i,180.0);
  8368. SetCameraBehindPlayer(i);
  8369. TogglePlayerControllable(i, true);
  8370. GameTextForPlayer(i, "~b~ STAND BACK ~n~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
  8371. SetTimer("ParkBlowOne", 5000, false);
  8372. SetPVarInt(i, "BlowingPark", 0);
  8373. }
  8374. }
  8375. return 1;
  8376. }
  8377. public ParkBlowOne()
  8378. {
  8379. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  8380. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  8381. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  8382. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  8383. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  8384. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  8385. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  8386. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  8387. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  8388. new string[120];
  8389. format(string, 120, "[TERRORISM] The Amusement Park has been blown up by a terrorist.");
  8390. SendClientMessageToAll(COLOR_RED, string);
  8391. CNR_PrintString(string);
  8392. SetTimer("ParkBlowTwo", 5000, false);
  8393. DestroyObject(ParkBomb1);
  8394. DestroyObject(ParkBomb2);
  8395. DestroyObject(ParkBomb3);
  8396. DestroyObject(ParkBomb4);
  8397. DestroyObject(ParkBomb5);
  8398. DestroyObject(ParkBomb6);
  8399. DestroyObject(ParkBomb7);
  8400. DestroyObject(ParkBomb8);
  8401. DestroyObject(ParkBomb9);
  8402. return 1;
  8403. }
  8404. public ParkBlowTwo()
  8405. {
  8406. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  8407. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  8408. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  8409. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  8410. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  8411. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  8412. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  8413. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  8414. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  8415. SetTimer("ParkBlowThree", 5000, false);
  8416. return 1;
  8417. }
  8418. public ParkBlowThree()
  8419. {
  8420. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  8421. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  8422. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  8423. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  8424. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  8425. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  8426. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  8427. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  8428. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  8429. SetTimer("ParkBlowFour", 5000, false);
  8430. return 1;
  8431. }
  8432. public ParkBlowFour()
  8433. {
  8434. CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
  8435. CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
  8436. CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
  8437. CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
  8438. CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
  8439. CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
  8440. CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
  8441. CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
  8442. CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
  8443. return 1;
  8444. }
  8445.  
  8446. // Vinewood sign
  8447. forward SignPlantOne();
  8448. forward SignPlantTwo();
  8449. forward SignPlantThree();
  8450. forward SignPlantFour();
  8451. forward SignPlantFive();
  8452. forward SignPlantSix();
  8453. forward SignPlantSeven();
  8454. forward SignPlantEight();
  8455. forward SignPlantNine();
  8456. forward SignPlantTen();
  8457. forward SignPlant11();
  8458. forward SignPlant12();
  8459. forward SignPlant13();
  8460. forward SignPlant14();
  8461. forward SignPlant15();
  8462.  
  8463. forward SignBlowOne();
  8464. forward SignBlowTwo();
  8465. forward SignBlowThree();
  8466. forward SignBlowFour();
  8467. forward SignBlowFive();
  8468. forward SignBlowSix();
  8469. forward SignBlowSeven();
  8470. public SignPlantOne()
  8471. {
  8472. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8473. {
  8474. if(GetPVarInt(i, "BlowingSign") == 1)
  8475. {
  8476. SetCameraBehindPlayer(i);
  8477. TogglePlayerControllable(i, false);
  8478. SetPlayerPos(i,1449.423461, -806.295959, 84.260368);
  8479. SetPlayerFacingAngle(i,181.91);
  8480. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8481. SetTimer("SignPlantTwo", 3000, 0);
  8482. return 1;
  8483. }
  8484. }
  8485. return 1;
  8486. }
  8487. public SignPlantTwo()
  8488. {
  8489. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8490. {
  8491. if(GetPVarInt(i, "BlowingSign") == 1)
  8492. {
  8493. SetCameraBehindPlayer(i);
  8494. TogglePlayerControllable(i, false);
  8495. SetPlayerPos(i,1438.864135, -806.372375, 86.463600);
  8496. SetPlayerFacingAngle(i,178.15);
  8497. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8498. SetTimer("SignPlantThree", 3000, 0);
  8499. return 1;
  8500. }
  8501. }
  8502. return 1;
  8503. }
  8504. public SignPlantThree()
  8505. {
  8506. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8507. {
  8508. if(GetPVarInt(i, "BlowingSign") == 1)
  8509. {
  8510. SetCameraBehindPlayer(i);
  8511. TogglePlayerControllable(i, false);
  8512. SetPlayerPos(i,1427.885253, -806.273071, 86.457664);
  8513. SetPlayerFacingAngle(i,183.16);
  8514. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8515. SetTimer("SignPlantFour", 3000, 0);
  8516. return 1;
  8517. }
  8518. }
  8519. return 1;
  8520. }
  8521. public SignPlantFour()
  8522. {
  8523. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8524. {
  8525. if(GetPVarInt(i, "BlowingSign") == 1)
  8526. {
  8527. SetCameraBehindPlayer(i);
  8528. TogglePlayerControllable(i, false);
  8529. SetPlayerPos(i,1415.526611, -806.473693, 85.039077);
  8530. SetPlayerFacingAngle(i,178.78);
  8531. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8532. SetTimer("SignPlantFive", 3000, 0);
  8533. return 1;
  8534. }
  8535. }
  8536. return 1;
  8537. }
  8538. public SignPlantFive()
  8539. {
  8540. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8541. {
  8542. if(GetPVarInt(i, "BlowingSign") == 1)
  8543. {
  8544. SetCameraBehindPlayer(i);
  8545. TogglePlayerControllable(i, false);
  8546. SetPlayerPos(i,1404.023315, -806.558349, 85.036766);
  8547. SetPlayerFacingAngle(i,180.95);
  8548. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8549. SetTimer("SignPlantSix", 3000, 0);
  8550. return 1;
  8551. }
  8552. }
  8553. return 1;
  8554. }
  8555. public SignPlantSix()
  8556. {
  8557. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8558. {
  8559. if(GetPVarInt(i, "BlowingSign") == 1)
  8560. {
  8561. SetCameraBehindPlayer(i);
  8562. TogglePlayerControllable(i, false);
  8563. SetPlayerPos(i,1394.168090, -805.948608, 85.030563);
  8564. SetPlayerFacingAngle(i, 180.00);
  8565. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8566. SetTimer("SignPlantSeven", 3000, 0);
  8567. return 1;
  8568. }
  8569. }
  8570. return 1;
  8571. }
  8572. public SignPlantSeven()
  8573. {
  8574. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8575. {
  8576. if(GetPVarInt(i, "BlowingSign") == 1)
  8577. {
  8578. SetCameraBehindPlayer(i);
  8579. TogglePlayerControllable(i, false);
  8580. SetPlayerPos(i,1385.198120, -806.237854, 86.335533);
  8581. SetPlayerFacingAngle(i, 180.32);
  8582. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8583. SetTimer("SignPlantEight", 3000, 0);
  8584. return 1;
  8585. }
  8586. }
  8587. return 1;
  8588. }
  8589. public SignPlantEight()
  8590. {
  8591. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8592. {
  8593. if(GetPVarInt(i, "BlowingSign") == 1)
  8594. {
  8595. SetCameraBehindPlayer(i);
  8596. TogglePlayerControllable(i, false);
  8597. SetPlayerPos(i,1378.010620, -805.799560, 85.020629 );
  8598. SetPlayerFacingAngle(i, 178.75);
  8599. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8600. SetTimer("SignPlantNine", 3000, 0);
  8601. return 1;
  8602. }
  8603. }
  8604. return 1;
  8605. }
  8606. public SignPlantNine()
  8607. {
  8608. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8609. {
  8610. if(GetPVarInt(i, "BlowingSign") == 1)
  8611. {
  8612. SetCameraBehindPlayer(i);
  8613. TogglePlayerControllable(i, false);
  8614. SetPlayerPos(i,1378.170043, -809.628662, 76.381591 );
  8615. SetPlayerFacingAngle(i,3.96);
  8616. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8617. SetTimer("SignPlantTen", 3000, 0);
  8618. return 1;
  8619. }
  8620. }
  8621. return 1;
  8622. }
  8623. public SignPlantTen()
  8624. {
  8625. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8626. {
  8627. if(GetPVarInt(i, "BlowingSign") == 1)
  8628. {
  8629. SetCameraBehindPlayer(i);
  8630. TogglePlayerControllable(i, false);
  8631. SetPlayerPos(i,1393.239379, -810.093688, 75.517684);
  8632. SetPlayerFacingAngle(i,356.44);
  8633. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8634. SetTimer("SignPlant11", 3000, 0);
  8635. return 1;
  8636. }
  8637. }
  8638. return 1;
  8639. }
  8640. public SignPlant11()
  8641. {
  8642. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8643. {
  8644. if(GetPVarInt(i, "BlowingSign") == 1)
  8645. {
  8646. SetCameraBehindPlayer(i);
  8647. TogglePlayerControllable(i, false);
  8648. SetPlayerPos(i,1408.747436, -810.150085, 75.205711);
  8649. SetPlayerFacingAngle(i,349.23);
  8650. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8651. SetTimer("SignPlant12", 3000, 0);
  8652. return 1;
  8653. }
  8654. }
  8655. return 1;
  8656. }
  8657. public SignPlant12()
  8658. {
  8659. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8660. {
  8661. if(GetPVarInt(i, "BlowingSign") == 1)
  8662. {
  8663. SetCameraBehindPlayer(i);
  8664. TogglePlayerControllable(i, false);
  8665. SetPlayerPos(i,1421.206787, -810.518371, 75.501228);
  8666. SetPlayerFacingAngle(i,350.17);
  8667. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8668. SetTimer("SignPlant13", 3000, 0);
  8669. return 1;
  8670. }
  8671. }
  8672. return 1;
  8673. }
  8674. public SignPlant13()
  8675. {
  8676. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8677. {
  8678. if(GetPVarInt(i, "BlowingSign") == 1)
  8679. {
  8680. SetCameraBehindPlayer(i);
  8681. TogglePlayerControllable(i, false);
  8682. SetPlayerPos(i,1432.677368, -809.366333, 76.692420);
  8683. SetPlayerFacingAngle(i,351.11);
  8684. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8685. SetTimer("SignPlant14", 3000, 0);
  8686. return 1;
  8687. }
  8688. }
  8689. return 1;
  8690. }
  8691. public SignPlant14()
  8692. {
  8693. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8694. {
  8695. if(GetPVarInt(i, "BlowingSign") == 1)
  8696. {
  8697. SetCameraBehindPlayer(i);
  8698. TogglePlayerControllable(i, false);
  8699. SetPlayerPos(i,1448.768798, -809.982849, 75.858039);
  8700. SetPlayerFacingAngle(i,347.98);
  8701. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8702. SetTimer("SignPlant15", 3000, 0);
  8703. return 1;
  8704. }
  8705. }
  8706. return 1;
  8707. }
  8708. public SignPlant15()
  8709. {
  8710. for(new i = 0; i<MAX_PLAYERS; i ++ )
  8711. {
  8712. if(GetPVarInt(i, "BlowingSign") == 1)
  8713. {
  8714. SetCameraBehindPlayer(i);
  8715. TogglePlayerControllable(i, true);
  8716. SetPlayerPos(i,1439.137939, -864.297241, 52.024658);
  8717. SetPlayerFacingAngle(i,13.96);
  8718. //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8719. SetTimer("SignBlowOne", 5000, 0);
  8720. GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~R~ IT WILL BLOW SOON", 5000, 3);
  8721. new string[120];
  8722. format(string, 120, "[TERRORISM] %s has blown up the Vinewood sign.", PlayerInfo(i));
  8723. SendClientMessageToAll(COLOR_RED, string);
  8724. CNR_PrintString(string);
  8725. format(string, 120, "[DISPATCH] Terrorist %s has blown up the Vinewood sign.", PlayerInfo(i));
  8726. SendCopMessage(string);
  8727. IncreaseScore(i, 5);
  8728. IncreaseWantedLevel(i, 6);
  8729. SetPVarInt(i, "BlowingSign", 0);
  8730. return 1;
  8731. }
  8732. }
  8733. return 1;
  8734. }
  8735. public SignBlowOne()
  8736. {
  8737. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8738. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8739. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8740. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8741. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8742. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8743. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8744. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8745. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8746. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8747. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8748. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8749. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8750. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8751. SetTimer("SignBlowTwo", 5000, 0);
  8752. return 1;
  8753. }
  8754. public SignBlowTwo()
  8755. {
  8756. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8757. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8758. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8759. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8760. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8761. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8762. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8763. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8764. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8765. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8766. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8767. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8768. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8769. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8770. SetTimer("SignBlowThree", 5000, 0);
  8771. return 1;
  8772. }
  8773. public SignBlowThree()
  8774. {
  8775. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8776. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8777. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8778. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8779. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8780. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8781. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8782. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8783. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8784. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8785. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8786. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8787. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8788. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8789. SetTimer("SignBlowFour", 5000, 0);
  8790. return 1;
  8791. }
  8792. public SignBlowFour()
  8793. {
  8794. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8795. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8796. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8797. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8798. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8799. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8800. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8801. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8802. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8803. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8804. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8805. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8806. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8807. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8808. SetTimer("SignBlowFive", 5000, 0);
  8809. return 1;
  8810. }
  8811. public SignBlowFive()
  8812. {
  8813. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8814. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8815. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8816. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8817. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8818. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8819. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8820. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8821. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8822. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8823. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8824. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8825. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8826. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8827. SetTimer("SignBlowSix", 5000, 0);
  8828. return 1;
  8829. }
  8830. public SignBlowSix()
  8831. {
  8832. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8833. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8834. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8835. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8836. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8837. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8838. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8839. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8840. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8841. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8842. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8843. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8844. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8845. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8846. SetTimer("SignBlowSeven", 5000, 0);
  8847. return 1;
  8848. }
  8849. public SignBlowSeven()
  8850. {
  8851. CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
  8852. CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
  8853. CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
  8854. CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
  8855. CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
  8856. CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
  8857. CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
  8858. CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
  8859. CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
  8860. CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
  8861. CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
  8862. CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
  8863. CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
  8864. CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
  8865. //SetTimer("SignBlowTwo", 5000, 0);
  8866. return 1;
  8867. }
  8868. //Bank Explode
  8869. forward BankPlantOne();
  8870. forward BankPlantTwo();
  8871. forward BankPlantThree();
  8872. forward BankPlantFour();
  8873. forward BankPlantFive();
  8874. forward BankPlantSix();
  8875. forward BankPlantSeven();
  8876. forward BankPlantEight();
  8877. forward BankPlantNine();
  8878.  
  8879. forward BankBlowOne();
  8880. forward BankBlowTwo();
  8881. forward BankBlowThree();
  8882. forward BankBlowFour();
  8883. forward BankBlowFive();
  8884.  
  8885. public BankPlantOne()
  8886. {
  8887. for(new i =0; i<MAX_PLAYERS;i++)
  8888. {
  8889. if(GetPVarInt(i, "BlowingBank") == 1)
  8890. {
  8891. SetPlayerPos(i,1524.293457, -1062.841064, 25.06250);
  8892. SetPlayerFacingAngle(i,93.88);
  8893. TogglePlayerControllable(i, false);
  8894. SetCameraBehindPlayer(i);
  8895. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8896. SetTimer("BankPlantTwo", 3000, 0);
  8897. return 1;
  8898. }
  8899. }
  8900. return 1;
  8901. }
  8902.  
  8903. public BankPlantTwo()
  8904. {
  8905. for(new i =0; i<MAX_PLAYERS;i++)
  8906. {
  8907. if(GetPVarInt(i, "BlowingBank") == 1)
  8908. {
  8909. SetPlayerPos(i,1520.098510, -1060.029174, 25.062500);
  8910. SetPlayerFacingAngle(i,177.23);
  8911. TogglePlayerControllable(i, false);
  8912. SetCameraBehindPlayer(i);
  8913. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8914. SetTimer("BankPlantThree", 3000, 0);
  8915. return 1;
  8916. }
  8917. }
  8918. return 1;
  8919. }
  8920.  
  8921. public BankPlantThree()
  8922. {
  8923. for(new i =0; i<MAX_PLAYERS;i++)
  8924. {
  8925. if(GetPVarInt(i, "BlowingBank") == 1)
  8926. {
  8927. SetPlayerPos(i,2315.360107, 0.327747, 26.742187);
  8928. SetPlayerFacingAngle(i,359.91);
  8929. TogglePlayerControllable(i, false);
  8930. SetCameraBehindPlayer(i);
  8931. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8932. SetTimer("BankPlantFour", 3000, 0);
  8933. return 1;
  8934. }
  8935. }
  8936. return 1;
  8937. }
  8938. public BankPlantFour()
  8939. {
  8940. for(new i =0; i<MAX_PLAYERS;i++)
  8941. {
  8942. if(GetPVarInt(i, "BlowingBank") == 1)
  8943. {
  8944. SetPlayerPos(i,2314.882568, -16.652763, 26.74956);
  8945. SetPlayerFacingAngle(i,181.93);
  8946. TogglePlayerControllable(i, false);
  8947. SetCameraBehindPlayer(i);
  8948. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8949. SetTimer("BankPlantFive", 3000, 0);
  8950. return 1;
  8951. }
  8952. }
  8953. return 1;
  8954. }
  8955. public BankPlantFive()
  8956. {
  8957. for(new i =0; i<MAX_PLAYERS;i++)
  8958. {
  8959. if(GetPVarInt(i, "BlowingBank") == 1)
  8960. {
  8961. SetPlayerPos(i,1500.250366, -1060.013427, 25.062500);
  8962. SetPlayerFacingAngle(i,177.23);
  8963. TogglePlayerControllable(i, false);
  8964. SetCameraBehindPlayer(i);
  8965. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8966. SetTimer("BankPlantSix", 3000, 0);
  8967. return 1;
  8968. }
  8969. }
  8970. return 1;
  8971. }
  8972. public BankPlantSix()
  8973. {
  8974. for(new i =0; i<MAX_PLAYERS;i++)
  8975. {
  8976. if(GetPVarInt(i, "BlowingBank") == 1)
  8977. {
  8978. SetPlayerPos(i,1496.901611, -1074.039550, 25.062500 );
  8979. SetPlayerFacingAngle(i,269.04);
  8980. TogglePlayerControllable(i, false);
  8981. SetCameraBehindPlayer(i);
  8982. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  8983. SetTimer("BankPlantSeven", 3000, 0);
  8984. return 1;
  8985. }
  8986. }
  8987. return 1;
  8988. }
  8989. public BankPlantSeven()
  8990. {
  8991. for(new i =0; i<MAX_PLAYERS;i++)
  8992. {
  8993. if(GetPVarInt(i, "BlowingBank") == 1)
  8994. {
  8995. SetPlayerPos(i,1518.261230, -1102.591430, 25.060787);
  8996. SetPlayerFacingAngle(i,357.09);
  8997. TogglePlayerControllable(i, false);
  8998. SetCameraBehindPlayer(i);
  8999. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  9000. SetTimer("BankPlantEight", 3000, 0);
  9001. return 1;
  9002. }
  9003. }
  9004. return 1;
  9005. }
  9006. public BankPlantEight()
  9007. {
  9008. for(new i =0; i<MAX_PLAYERS;i++)
  9009. {
  9010. if(GetPVarInt(i, "BlowingBank") == 1)
  9011. {
  9012. SetPlayerPos(i,1547.264160, -1087.768432, 25.055089 );
  9013. SetPlayerFacingAngle(i,91.09);
  9014. TogglePlayerControllable(i, false);
  9015. SetCameraBehindPlayer(i);
  9016. ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  9017. SetTimer("BankPlantNine", 3000, 0);
  9018. return 1;
  9019. }
  9020. }
  9021. return 1;
  9022. }
  9023. public BankPlantNine()
  9024. {
  9025. for(new i =0; i<MAX_PLAYERS;i++)
  9026. {
  9027. if(GetPVarInt(i, "BlowingBank") == 1)
  9028. {
  9029. new current_zone = player_zone[i];
  9030. SetPlayerPos(i,1561.317382, -1060.291381, 23.742670);
  9031. SetPlayerFacingAngle(i,137.12);
  9032. TogglePlayerControllable(i, true);
  9033. SetCameraBehindPlayer(i);
  9034. //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  9035. SetTimer("BankBlowOne", 5000, 0);
  9036. new string[120];
  9037. format(string, 120, "[TERRORISM] Terrorist %s has blown up the bank in %s", PlayerInfo(i), zones[current_zone][zone_name]);
  9038. SendClientMessageToAll(COLOR_RED, string);
  9039. CNR_PrintString(string);
  9040. format(string, 120, "[DISPATCH] Terrorist %s has blown up the Bank in %s. Go arrest him.", PlayerInfo(i), zones[current_zone][zone_name]);
  9041. SendCopMessage(string);
  9042. IncreaseWantedLevel(i, 6);
  9043. IncreaseScore(i, 3);
  9044. SetPVarInt(i, "BlowingBank", 0);
  9045. GameTextForPlayer(i, "~B~ STAND BACK ~N~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
  9046. return 1;
  9047. }
  9048. }
  9049. return 1;
  9050. }
  9051. public BankBlowOne()
  9052. {
  9053. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  9054. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  9055. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  9056. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  9057. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  9058. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  9059. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  9060. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  9061. SetTimer("BankBlowTwo", 5000, 0);
  9062. return 1;
  9063. }
  9064. public BankBlowTwo()
  9065. {
  9066. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  9067. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  9068. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  9069. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  9070. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  9071. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  9072. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  9073. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  9074. SetTimer("BankBlowThree", 5000, 0);
  9075. return 1;
  9076. }
  9077. public BankBlowThree()
  9078. {
  9079. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  9080. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  9081. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  9082. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  9083. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  9084. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  9085. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  9086. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  9087. SetTimer("BankBlowFour", 5000, 0);
  9088. return 1;
  9089. }
  9090. public BankBlowFour()
  9091. {
  9092. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  9093. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  9094. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  9095. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  9096. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  9097. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  9098. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  9099. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  9100. SetTimer("BankBlowFive", 5000, 0);
  9101. return 1;
  9102. }
  9103. public BankBlowFive()
  9104. {
  9105. CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
  9106. CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
  9107. CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
  9108. CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
  9109. CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
  9110. CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
  9111. CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
  9112. CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
  9113. //SetTimer("BankBlowThree", 5000, 0);
  9114. return 1;
  9115. }
  9116.  
  9117. forward ShowPlayerSpeedo(playerid);
  9118. public ShowPlayerSpeedo(playerid) {
  9119.  
  9120. TextDrawShowForPlayer(playerid,SpeedoBox[playerid]);
  9121.  
  9122. SpeedTDraw[playerid] = TextDrawCreate(512.000000,422.000000,"Speed:");
  9123. TextDrawSetShadow(SpeedTDraw[playerid],0);
  9124. TextDrawColor(SpeedTDraw[playerid], 16777215);
  9125. TextDrawSetOutline(SpeedTDraw[playerid], 1);
  9126. TextDrawShowForPlayer(playerid, SpeedTDraw[playerid]);
  9127.  
  9128. vSpeed[playerid] = TextDrawCreate(572.000000,423.000000,"_");
  9129. TextDrawColor(vSpeed[playerid], 16777215);
  9130. TextDrawSetOutline(vSpeed[playerid], 1);
  9131. TextDrawSetShadow(vSpeed[playerid],0);
  9132. TextDrawShowForPlayer(playerid,vSpeed[playerid]);
  9133.  
  9134. DamageTDraw[playerid] = TextDrawCreate(512.000000,433.000000,"Health:");
  9135. TextDrawColor(DamageTDraw[playerid], 16777215);
  9136. TextDrawSetOutline(DamageTDraw[playerid], 1);
  9137. TextDrawSetShadow(DamageTDraw[playerid],0);
  9138. TextDrawShowForPlayer(playerid,DamageTDraw[playerid]);
  9139.  
  9140. vDamage[playerid] = TextDrawCreate(572.000000,434.000000,"_");
  9141. TextDrawColor(vDamage[playerid], -65281);
  9142. TextDrawSetOutline(vDamage[playerid], 1);
  9143. TextDrawSetShadow(vDamage[playerid],0);
  9144. TextDrawShowForPlayer(playerid,vDamage[playerid]);
  9145. }
  9146.  
  9147. forward RemovePlayerSpeedo(i);
  9148. public RemovePlayerSpeedo(i) {
  9149. TextDrawHideForPlayer(i, SpeedoBox[i]);
  9150. TextDrawHideForPlayer(i, SpeedTDraw[i]);
  9151. TextDrawHideForPlayer(i, DamageTDraw[i]);
  9152. TextDrawHideForPlayer(i, FuelTDraw[i]);
  9153. TextDrawHideForPlayer(i, vSpeed[i]);
  9154. TextDrawHideForPlayer(i, vDamage[i]);
  9155. return 1;
  9156. }
  9157. forward PutPlayerInSF(playerid);
  9158. forward PutPlayerInLS(playerid);
  9159. forward PutPlayerInLV(playerid);
  9160.  
  9161. public PutPlayerInSF(playerid) {
  9162. SetPlayerPos(playerid,-1413.557250, -300.654418, 14.141115);
  9163. SetPlayerInterior(playerid, 0);
  9164. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to San Fierro!");
  9165. return 1;
  9166. }
  9167. public PutPlayerInLS(playerid) {
  9168. SetPlayerPos(playerid,1631.639526, -2242.050048, 13.506203);
  9169. SetPlayerInterior(playerid, 0);
  9170. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Los Santos!");
  9171. return 1;
  9172. }
  9173. public PutPlayerInLV(playerid) {
  9174. SetPlayerPos(playerid, 1685.137939, 1448.447631, 10.770167);
  9175. SetPlayerInterior(playerid, 0);
  9176. SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Las Venturas!");
  9177. return 1;
  9178. }
  9179. // 1.1 Editions
  9180. // From the KCNR include that I have made.
  9181. stock PlayerHasCash(playerid, cash)
  9182. {
  9183. if(GetPlayerMoney(playerid >= cash)) return 1;
  9184. else return 0;
  9185. }
  9186.  
  9187. stock PlayerCash(playerid, cash)
  9188. {
  9189. GivePlayerMoney(playerid, GetPlayerMoney(playerid) + cash);
  9190. return 1;
  9191. }
  9192.  
  9193. // Returns 1 if they can rob, 0 if not
  9194. stock PlayerCanRob(playerid)
  9195. {
  9196. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  9197. {
  9198. return 0;
  9199. }
  9200. else if(gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal ||
  9201. gTeam[playerid] == Prvtmed)
  9202. {
  9203. return 1;
  9204. }
  9205. } // if (!PlayerCanRob(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob this place.");
  9206.  
  9207. stock IsCop(playerid)
  9208. {
  9209. if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
  9210. {
  9211. return 1;
  9212. }
  9213. else
  9214. {
  9215. return 0;
  9216. }
  9217. }
  9218.  
  9219. stock IsArmyVehicle(id) {
  9220. for (new i = 0; i < sizeof ArmyVehicle; i++) {
  9221. if (id == ArmyVehicle[i])
  9222. return true;
  9223. }
  9224. return false;
  9225. }
  9226.  
  9227. stock IsLSPDVehicle(id) {
  9228. for (new i = 0; i < sizeof LSPD; i++) {
  9229. if (id == LSPD[i])
  9230. return true;
  9231. }
  9232. return false;
  9233. }
  9234.  
  9235. stock PlayerInfo(playerid) {
  9236. new pname[30], string[40];
  9237. GetPlayerName(playerid, pname, 30);
  9238. format(string, sizeof string, "%s (%d)", pname, playerid);
  9239. return string;
  9240. }
Add Comment
Please, Sign In to add comment