BeastGamers55

RG:RP Pawno

Oct 29th, 2017
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 MB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. //© copyright 2012-07-20 15:02:53 Logan Stone - All Rights Reserved
  3. // Using this Gamemode without permission is an offence.
  4. //
  5. //#include "../include/gmx.inc"
  6. #include <a_samp>
  7. #include <a_http>
  8. //#include <core>
  9. //#include <float>
  10. #include <time>
  11. //#include <file>
  12. //#include <dutils>
  13. #include <dini>
  14. #include <utils>
  15. #include "../include/djson.inc"
  16. //#include <zcmd>
  17. #include <yom_buttons>
  18. #include <streamer>
  19. #include <Load>
  20. #include <SII>
  21. #include <fire>
  22. //////////////////////////////////////
  23. // Fix all loose indentation warnings
  24. /////////////////////////////////////
  25. #pragma tabsize 0
  26. ////////////////////////////////////
  27. /*----------------------------------------------------------------------------*-
  28. Function:
  29. sscanf
  30. Params:
  31. string[] - String to extract parameters from.
  32. format[] - Parameter types to get.
  33. {Float,_}:... - Data return variables.
  34. Return:
  35. 0 - Successful, not 0 - fail.
  36. Notes:
  37. A fail is either insufficient variables to store the data or insufficient
  38. data for the format string - excess data is disgarded.
  39.  
  40. A string in the middle of the input data is extracted as a single word, a
  41. string at the end of the data collects all remaining text.
  42.  
  43. The format codes are:
  44.  
  45. c - A character.
  46. d, i - An integer.
  47. h, x - A hex number (e.g. a colour).
  48. f - A float.
  49. s - A string.
  50. z - An optional string.
  51. pX - An additional delimiter where X is another character.
  52. '' - Encloses a litteral string to locate.
  53. u - User, takes a name, part of a name or an id and returns the id if they're connected.
  54.  
  55. Now has IsNumeric integrated into the code.
  56.  
  57. Added additional delimiters in the form of all whitespace and an
  58. optioanlly specified one in the format string.
  59. -*----------------------------------------------------------------------------*/
  60.  
  61. stock sscanf(string[], format[], {Float,_}:...)
  62. {
  63. #if defined isnull
  64. if (isnull(string))
  65. #else
  66. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  67. #endif
  68. {
  69. return format[0];
  70. }
  71. #pragma tabsize 4
  72. new
  73. formatPos = 0,
  74. stringPos = 0,
  75. paramPos = 2,
  76. paramCount = numargs(),
  77. delim = ' ';
  78. while (string[stringPos] && string[stringPos] <= ' ')
  79. {
  80. stringPos++;
  81. }
  82. while (paramPos < paramCount && string[stringPos])
  83. {
  84. switch (format[formatPos++])
  85. {
  86. case '\0':
  87. {
  88. return 0;
  89. }
  90. case 'i', 'd':
  91. {
  92. new
  93. neg = 1,
  94. num = 0,
  95. ch = string[stringPos];
  96. if (ch == '-')
  97. {
  98. neg = -1;
  99. ch = string[++stringPos];
  100. }
  101. do
  102. {
  103. stringPos++;
  104. if ('0' <= ch <= '9')
  105. {
  106. num = (num * 10) + (ch - '0');
  107. }
  108. else
  109. {
  110. return -1;
  111. }
  112. }
  113. while ((ch = string[stringPos]) > ' ' && ch != delim);
  114. setarg(paramPos, 0, num * neg);
  115. }
  116. case 'h', 'x':
  117. {
  118. new
  119. num = 0,
  120. ch = string[stringPos];
  121. do
  122. {
  123. stringPos++;
  124. switch (ch)
  125. {
  126. case 'x', 'X':
  127. {
  128. num = 0;
  129. continue;
  130. }
  131. case '0' .. '9':
  132. {
  133. num = (num << 4) | (ch - '0');
  134. }
  135. case 'a' .. 'f':
  136. {
  137. num = (num << 4) | (ch - ('a' - 10));
  138. }
  139. case 'A' .. 'F':
  140. {
  141. num = (num << 4) | (ch - ('A' - 10));
  142. }
  143. default:
  144. {
  145. return -1;
  146. }
  147. }
  148. }
  149. while ((ch = string[stringPos]) > ' ' && ch != delim);
  150. setarg(paramPos, 0, num);
  151. }
  152. case 'c':
  153. {
  154. setarg(paramPos, 0, string[stringPos++]);
  155. }
  156. case 'f':
  157. {
  158.  
  159. new changestr[16], changepos = 0, strpos = stringPos;
  160. while(changepos < 16 && string[strpos] && string[strpos] != delim)
  161. {
  162. changestr[changepos++] = string[strpos++];
  163. }
  164. changestr[changepos] = '\0';
  165. setarg(paramPos,0,_:floatstr(changestr));
  166. }
  167. case 'p':
  168. {
  169. delim = format[formatPos++];
  170. continue;
  171. }
  172. case '\'':
  173. {
  174. new
  175. end = formatPos - 1,
  176. ch;
  177. while ((ch = format[++end]) && ch != '\'') {}
  178. if (!ch)
  179. {
  180. return -1;
  181. }
  182. format[end] = '\0';
  183. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  184. {
  185. if (format[end + 1])
  186. {
  187. return -1;
  188. }
  189. return 0;
  190. }
  191. format[end] = '\'';
  192. stringPos = ch + (end - formatPos);
  193. formatPos = end + 1;
  194. }
  195. case 'u':
  196. {
  197. new
  198. end = stringPos - 1,
  199. id = 0,
  200. bool:num = true,
  201. ch;
  202. while ((ch = string[++end]) && ch != delim)
  203. {
  204. if (num)
  205. {
  206. if ('0' <= ch <= '9')
  207. {
  208. id = (id * 10) + (ch - '0');
  209. }
  210. else
  211. {
  212. num = false;
  213. }
  214. }
  215. }
  216. if (num && IsPlayerConnected(id))
  217. {
  218. setarg(paramPos, 0, id);
  219. }
  220. else
  221. {
  222. #if !defined foreach
  223. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  224. #define __SSCANF_FOREACH__
  225. #endif
  226. string[end] = '\0';
  227. num = false;
  228. new
  229. name[MAX_PLAYER_NAME];
  230. id = end - stringPos;
  231. foreach (Player, playerid)
  232. {
  233. GetPlayerName(playerid, name, sizeof (name));
  234. if (!strcmp(name, string[stringPos], true, id))
  235. {
  236. setarg(paramPos, 0, playerid);
  237. num = true;
  238. break;
  239. }
  240. }
  241. if (!num)
  242. {
  243. setarg(paramPos, 0, INVALID_PLAYER_ID);
  244. }
  245. string[end] = ch;
  246. #if defined __SSCANF_FOREACH__
  247. #undef foreach
  248. #undef __SSCANF_FOREACH__
  249. #endif
  250. }
  251. stringPos = end;
  252. }
  253. case 's', 'z':
  254. {
  255. new
  256. i = 0,
  257. ch;
  258. if (format[formatPos])
  259. {
  260. while ((ch = string[stringPos++]) && ch != delim)
  261. {
  262. setarg(paramPos, i++, ch);
  263. }
  264. if (!i)
  265. {
  266. return -1;
  267. }
  268. }
  269. else
  270. {
  271. while ((ch = string[stringPos++]))
  272. {
  273. setarg(paramPos, i++, ch);
  274. }
  275. }
  276. stringPos--;
  277. setarg(paramPos, i, '\0');
  278. }
  279. default:
  280. {
  281. continue;
  282. }
  283. }
  284. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  285. {
  286. stringPos++;
  287. }
  288. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  289. {
  290. stringPos++;
  291. }
  292. paramPos++;
  293. }
  294. do
  295. {
  296. if ((delim = format[formatPos++]) > ' ')
  297. {
  298. if (delim == '\'')
  299. {
  300. while ((delim = format[formatPos++]) && delim != '\'') {}
  301. }
  302. else if (delim != 'z')
  303. {
  304. return delim;
  305. }
  306. }
  307. }
  308. while (delim > ' ');
  309. return 0;
  310. }
  311.  
  312. stock InvaildCar(vehicleid)
  313. {
  314. switch(GetVehicleModel(vehicleid))
  315. {
  316. case 403,406,407,408,409,414,416,417,423,425,427,428,430,431,432,433,437,441,443,444,446,447,448,449,452,453,454,455,456,457,460,461,462,463,464,465,468,469,471,472,473,476,481,484,485,486,487,488,493,497,498,499,501,509,510,511,512,513,514,515,519,520,521,522,523,524,528,530,531,532,537,538,539,544,548,553,556,557,563,564,568,571,572,573,574,577,578,581,583,586,592,593,595,601:
  317. return 1;
  318. }
  319. return 0;
  320. }
  321.  
  322. stock GetPlayerNameEx(playerid,name[],len=sizeof(name))
  323. {
  324. GetPlayerName(playerid,name,len);
  325. for(new cell;cell<strlen(name);cell++)if(name[cell]=='_')name[cell]=' ';
  326. }
  327. stock GetPlayerRPName( playerid, name[ ], len=sizeof(name) )
  328. {
  329. GetPlayerName( playerid, name, len );
  330. for(new i = 0; i < len; i++ )
  331. {
  332. if ( name[ i ] == '_' )
  333. name[ i ] = ' ';
  334. }
  335. }
  336.  
  337. #define SPECIAL_ACTION_PISSING 68
  338. #define MAX_SPIKESTRIPS 200
  339. #undef MAX_VEHICLES
  340. #define MAX_VEHICLES 600
  341. #define MAX_ZONE_NAME 28
  342. #define MAX_STRING 255
  343. #define CW "{FFFFFF}"
  344. #define CB "{2E9AFE}"
  345. #define CAR_AMOUNT 700 //Change to Your Vehicle Amount
  346. #define COLOR_BITEM 0xE1B0B0FF
  347. #define COLOR_GRAD1 0xB4B5B7FF
  348. #define COLOR_GRAD2 0xBFC0C2FF
  349. #define COLOR_GRAD3 0xCBCCCEFF
  350. #define COLOR_GRAD4 0xD8D8D8FF
  351. #define COLOR_GRAD5 0xE3E3E3FF
  352. #define TEAM_HIT_COLOR 0xFFFFFF00
  353. #define COLOR_GRAD6 0xF0F0F0FF
  354. #define COLOR_ADMIN 0xB2EBE0AA
  355. #define COLOR_GREY 0xAFAFAFAA
  356. #define COLOR_GREEN 0x33AA33AA
  357. #define COLOR_RED 0xAA3333AA
  358. #define COLOR_LIGHTRED 0xFF6347AA
  359. #define COLOR_LIGHTBLUE 0x33CCFFAA
  360. #define COLOR_LIGHTGREEN 0x9ACD32AA
  361. #define COLOR_YELLOW 0xFFFF00AA
  362. #define COLOR_LIGHTYELLOW 0xFFFF91FF
  363. #define COLOR_YELLOW2 0xF5DEB3AA
  364. #define COLOR_TAN 0xD2B48CFF
  365. #define COLOR_WHITE 0xFFFFFFAA
  366. #define COLOR_FADE1 0xE6E6E6E6
  367. #define COLOR_FADE2 0xC8C8C8C8
  368. #define COLOR_FADE3 0xAAAAAAAA
  369. #define COLOR_FADE4 0x8C8C8C8C
  370. #define COLOR_FADE5 0x6E6E6E6E
  371. #define COLOR_PURPLE 0xC2A2DAAA
  372. #define COLOR_DBLUE 0x2641FEAA
  373. #define COLOR_DOC 0xFF8282AA
  374. #define COLOR_DCHAT 0xF0CC00FF
  375. #define COLOR_NEWS 0xFFA500AA
  376. #define COLOR_OOC 0xE0FFFFAA
  377. #define COLOR_ORANGE 0xFF9900AA
  378. #define COLOR_FAKEBAN 0xA9C4E4AA
  379. #define TEAM_BLUE_COLOR 0x8D8DFF00
  380. #define TEAM_GROVE_COLOR 0x00AA00FF
  381. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  382. #define COLOR_STEELBLUE 0x4682B4FF
  383. #define NEWBIE_COLOR 0x7DAEFFFF
  384. #define COLOR_HOUSETEXT 0x5174AEFF
  385.  
  386. //Speedo
  387. #define GREEN 0x21DD00FF
  388. #define RED 0xE60000FF
  389. #define YELLOW 0xFFFF00FF
  390. #define ORANGE 0xF97804FF
  391. #define LIGHTRED 0xFF8080FF
  392. #define LIGHTBLUE 0x00C2ECFF
  393. #define PURPLE 0xB360FDFF
  394. #define BLUE 0x1229FAFF
  395. #define LIGHTGREEN 0x38FF06FF
  396. #define DARKPINK 0xE100E1FF
  397. #define DARKGREEN 0x008040FF
  398. #define ANNOUNCEMENT 0x6AF7E1FF
  399. #define GREY 0xCECECEFF
  400. #define PINK 0xD52DFFFF
  401. #define DARKGREY 0x626262FF
  402. #define AQUAGREEN 0x03D687FF
  403. #define WHITE 0xFFFFFFFF
  404.  
  405. #define PLAYERS 200
  406.  
  407. #define L_VEHICLE 200
  408.  
  409. #define VehLockTime 10 //Define the MAX Time for Car Locked! (In Minutes!)
  410. #define VehicleMaxSpeed 50 //Define the Speed Limit! (KPH)
  411. #define SpeedoLogoText "MSRP Speedometer" //Define Speedo Logo (Text in Speedo Top)
  412. #define UpdateConfig 500 //Update Speedo functions in ... (Miliseconds)
  413.  
  414.  
  415. //::::::::::::::::::::::::::::::::::::
  416. // -> Speedo TextDraw Config <-
  417. //::::::::::::::::::::::::::::::::::::
  418. #define TextBox true //Enable/Disable Speedo Box
  419. #define TextTopLines true //Enable/Disable Speedo Top Lines
  420. #define TextSideLines true //Enable/Disable Speedo Side Lines
  421. #define LogoName true //Enable/Disable Speedo LogoName
  422.  
  423. //Enable = true || Disable = false
  424.  
  425.  
  426. //::::::::::::::::::::::::::::::::::::
  427. // -> Speedo Colors Config <-
  428. //::::::::::::::::::::::::::::::::::::
  429. #define BoxColor 0xffffffff //Color of Speedo Box
  430. #define LogoColor 0xffffffff //Color of Seedo Logo (Define logo in "SpeedoLogoText" (Line 57)
  431. #define SideLinesColor 0xffffffff //Color of Speedo Side Lines
  432. #define TopLinesColor 0xffffffff //Color of Speedo Top lines
  433. #define CategoriesColor "~b~" //Color of (Vehicle,Health,Altitude,Gps)
  434. #define MPH_KPH_Color "~g~" //Color of (MPH,KPH)
  435.  
  436. //
  437.  
  438. #define bankbag 4
  439. #define HATSLOT 1
  440. #define BANDANASLOT 2
  441. #define GLASSSLOT 3
  442. #define PARROT 5
  443. #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
  444. #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  445. #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  446.  
  447. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  448.  
  449.  
  450. //Roadblock
  451. #define MAX_ROADBLOCKS 85 // Can be anything you want, but don't go over the top.
  452.  
  453.  
  454. // MENUS
  455. #define DIALOG_SEXCHANGE 1321
  456. #define DIALOG_NAMECHANGE 1320
  457. #define DIALOG_SERVICES 1319
  458. #define SKINMENU 1318
  459. #define SIUMENU4 1317
  460. #define SIUMENU3 1316
  461. #define SIUMENU2 1315
  462. #define SIUMENU1 1314
  463. #define UPGRADEMENU6 1313
  464. #define UPGRADEMENU5 1312
  465. #define UPGRADEMENU4 1311
  466. #define UPGRADEMENU3 1310
  467. #define UM2 1309
  468. #define UPGRADEMENU1 1308
  469. #define FBI2 1307
  470. #define FBI1 1306
  471. #define VEHMENU3 1305
  472. #define VEHMENU2 1304
  473. #define VEHMENU1 1303
  474. #define CARMENU 1302
  475. #define CARMENU2 1301
  476. #define CARMENU3 1300
  477. #define CARMENU4 1299
  478. #define CARMENU5 1298
  479. #define CARMENU6 1297
  480. #define CARMENU7 1296
  481. #define CARMENU8 1295
  482. #define CARMENU9 1294
  483. #define CARMENU10 1293
  484. #define CARMENU11 1292
  485. #define CARMENU12 1291
  486. #define CARMENU13 1290
  487. #define CARMENU14 1289
  488. #define PAINTBALLDIALOG 1288
  489. #define GUNSHOPDIALOG 1287
  490. #define GLASSMENU 1286
  491. #define CRACKTHEVAULT 1285
  492. #define LOADTHECASH 7286
  493. #define BINCODIALOG 1284
  494. #define HATMENU 1283
  495. #define MASKMENU 1282
  496. #define HELMETMENU 1281
  497. #define BANDANAMENU 1280
  498. #define TRUNKDIALOG 1279
  499. #define TRUNKPUTGUN 1278
  500. #define TRUNKTAKEGUN 1277
  501. #define TRUNKPUTVEST 1276
  502. #define TRUNKTAKEVEST 1275
  503. #define TRUNKPUTMAN 1274
  504. #define TRUNKTAKEMAN 1273
  505. #define TRUNKCHECK 1272
  506. #define TRUNKPUTCRACK 1271
  507. #define TRUNKTAKECRACK 1270
  508. #define TRUNKPUTSTUFF 1269
  509. #define TRUNKTAKESTUFF 1268
  510. #define TRUNKPUTPOT 1267
  511. #define TRUNKTAKEPOT 1266
  512. #define CARDIALOG 1265
  513. #define BUYCARDIALOG 1264
  514. #define OWNCARUPGRADE 1263
  515. #define OWNCARUPGRADE2 1262
  516. #define OWNCARUPGRADE3 1323
  517. #define CARTRACK 1261
  518. #define AMMUNATIONDIALOG 1260
  519. #define BUYGLASSES 1259
  520. #define BUYGLASSES2 1258
  521. #define BUYGLASSES3 1257
  522. #define BUYBANDANA 1256
  523. #define BUYHELMET 1255
  524. #define BUYMASK 1254
  525. #define BUYHAT 1253
  526. #define BUYHAT2 1252
  527. #define BUYHAT3 1251
  528. #define DEALERSHIPDIALOG 1250
  529. #define BUYLP 1249
  530. #define BUYLP2 1248
  531. #define BUYLP3 1322
  532. #define TOWCAR 6247
  533. #define VEHINFO 6246
  534. #define GIVEKEYS 6245
  535. #define LOTTODIALOG 1247
  536. #define suitcasediag 1246
  537. #define suitcasediag2 1245
  538. #define suitcasediag3 1244
  539. #define donutshopdiag1 1243
  540. #define donutshopdiag2 1242
  541. #define FAQ 1241
  542. #define FAQ2 1240
  543.  
  544. //TEAM COLORS
  545. #define TCOLOR_VIP 0xECFF0000
  546. #define TCOLOR_WHITE 0xFFFFFF00
  547. #define TCOLOR_LIGHTGREEN 0x9ACD3200
  548. #define TCOLOR_NAVYBLUE 0x8D8DFF00
  549. #define TCOLOR_BEIGE 0xA5937000
  550. #define TCOLOR_GREY 0xBFC0C200
  551. #define TCOLOR_DARKGREY 0x52545900
  552. #define TCOLOR_BLUE 0x2641FE00
  553. #define TCOLOR_LIGHTBLUE 0x2B77A100
  554. #define TCOLOR_YELLOW 0xFFFF0000
  555. #define TCOLOR_HELP 0x00D700FF
  556. #define TCOLOR_FIND 0x9B0000AA
  557. #define TCOLOR_WANTED 0xFF0000AA
  558. #define TCOLOR_PRISON 0xF4A41900 // COMMENTED
  559. #define TCOLOR_HOSPITAL 0xAFAFAF00
  560. #define TCOLOR_PARAMEDIC 0xFF828200
  561.  
  562. //SPEC
  563. #define ADMIN_SPEC_TYPE_NONE 0
  564. #define ADMIN_SPEC_TYPE_PLAYER 1
  565. #define ADMIN_SPEC_TYPE_VEHICLE 2
  566.  
  567. //Keys
  568. #define KEY_CTRL 1
  569.  
  570. //RAMP
  571. #define RAMP 1632 //Ramp ID
  572. #define DISTANCE 12.0 //Distance infront
  573. #define TIME 2000 //duration of ramp in ms
  574. #define PRESSED(%0) \
  575. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  576.  
  577. forward WeedTimer();
  578. forward WeedPickup(playerid);
  579. forward CheckHacks2(playerid);
  580. forward DoneCheckHacks2(playerid,hacker);
  581. forward Disg(playerid);
  582. forward Random(min, max);
  583. forward StartEngine(playerid, vehicleid);
  584. forward StopEngine(playerid, vehicleid);
  585. forward lock1(playerid, vehicleid);
  586. forward lock2(vehicleid);
  587.  
  588. forward Lockpick(playerid);
  589. forward Lockpickmove(playerid);
  590. forward Lockpickmove2(playerid);
  591. forward Lockpicked(playerid);
  592. forward Startalarm(playerid);
  593.  
  594. forward TowVehicle(vehicle);
  595.  
  596. forward Breakin(playerid);
  597. forward Breakinmove(playerid);
  598. forward Breakinmove2(playerid);
  599. forward Breakin2(playerid);
  600.  
  601. forward RobHouse1(playerid);
  602. forward RobInHouse(playerid);
  603. forward RobInHouse2(playerid);
  604. forward RobbedHouse(playerid);
  605.  
  606. forward BroadCast(color,const string[]);
  607.  
  608. forward SaveVehicleComponents(vehicleid);
  609. forward ClearVehicleComponents(vehicleid);
  610. forward SetVehicleModifications(vehicleid);
  611. forward OnPlayerPressButton(playerid, buttonid);
  612. forward LoadStuff();
  613. forward SaveStuff();
  614. forward LoadFamilies();
  615. forward SaveFamilies();
  616. forward ClosePDDoor();
  617. forward LoadIRC();
  618. forward SaveIRC();
  619. forward RemovePlayerWeapon(playerid, weaponid);
  620. forward SafeGivePlayerWeapon(plyid, weaponid, ammo);
  621. forward SafeResetPlayerWeapons(plyid);
  622. forward LoadCar();
  623. forward SaveCar();
  624. forward SaveHouse();
  625. forward LoadHouse();
  626. forward LoadBiz();
  627. forward SaveBiz();
  628. forward LoadBoxer();
  629. forward LoadLSPDPass();
  630. forward SendHelperMessage(color, string[]);
  631. forward SaveBoxer();
  632. forward TazerTimer(playerid);
  633. forward BizFreeze(playerid);
  634. forward ReportReset(playerid);
  635. forward OnPropUpdate();
  636. forward JoinChannel(playerid, number, line[]);
  637. forward JoinChannelNr(playerid, number);
  638. forward OnPlayerChangeWeapon(playerid, oldweapon, newweapon);
  639. forward IsAtClothShop(playerid);
  640. forward IsAtDealership(playerid);
  641. forward IsAtGasStation(playerid);
  642. forward BackupClear(playerid, calledbytimer);
  643. forward IsAtFishPlace(playerid);
  644. forward IsAtBar(playerid);
  645. forward IsAtATM(playerid);
  646. forward SearchingHits(playerid);
  647. forward DollahScoreUpdate();
  648. forward SetPlayerSpawn(playerid);
  649. forward SetPlayerInHospital(playerid);
  650. forward Spawn(playerid);
  651. forward ABroadCast(color,const string[],level);
  652. forward SetPlayerUnjail();
  653. forward OtherTimer();
  654. forward BanLog(string[]);
  655. forward AdLog(string[]);
  656. forward TrunkLog(string[]);
  657. forward BLLog(string[]);
  658. forward KickLog(string[]);
  659. forward PayLog(string[]);
  660. forward StatLog(string[]);
  661. forward IsACop(playerid);
  662. forward IsANG(playerid);
  663. forward IsAAgent(playerid);
  664. forward DisplayGuns(playerid);
  665. forward DisplaySafeGuns(playerid);
  666. forward Encrypt(string[]);
  667. forward AutoKick();
  668. forward PaintballEnded();
  669. forward StartPaintball();
  670. forward PreparePaintball();
  671. forward Float:GetDistanceBetweenPlayers(p1,p2);
  672. forward GameModeExitFunc();
  673. forward SetAllCopCheckpoint(playerid);
  674. forward SetAllParaCheckpoint(playerid);
  675. forward SetAllFiremanCheckpoint(playerid);
  676. forward GivePlayerWeaponAll(weaponid,ammo);
  677. forward SetPlayerCriminal(playerid,declare,reason[]);
  678. forward SetPlayerFree(playerid,declare,reason[]);
  679. forward SetPlayerWeapons(playerid);
  680. forward ShowStats(playerid,targetid);
  681. forward ShowProfile(playerid,targetid);
  682. forward SetPlayerToTeamColor(playerid);
  683. forward GameModeInitExitFunc();
  684. forward UseBM(playerid);
  685. forward split(const strsrc[], strdest[][], delimiter);
  686. forward OnPlayerLogin(playerid,password[],password2[]);
  687. forward OnPlayerSave(playerid);
  688. forward OnPlayerRegister(playerid, password[]);
  689. forward OOCOff(color,const string[]);
  690. forward OOCNewbie(color,const string[]);
  691. forward OOCNews(color,const string[]);
  692. forward SendJobMessage(job, color, string[]);
  693. forward SendFamilyMessage(family, color, string[]);
  694. forward SendCopMessage(color, string[]);
  695. forward SendParaMessage(color, string[]);
  696. forward SendNewFamilyMessage(family, color, string[]);
  697. forward SendIRCMessage(channel, color, string[]);
  698. forward SendRadioMessage(member, color, string[]);
  699. forward SendDepartmentMessage(color, string[]);
  700. forward SendAdminMessage(color, string[]);
  701. forward SendAdminMessage2(color, string[]);
  702. forward SendVIPMessage(color, string[]);//
  703. forward SendWTMessage(channel, color, string[]);
  704. forward ProxDetectorS(Float:radi, playerid, targetid);
  705. forward ClearFamily(family);
  706. forward ClearMarriage(playerid);
  707. forward ClearAccent(playerid);
  708. forward ClearContract(playerid);
  709. forward ClearIP(playerid);
  710. forward ClearCrime(playerid);
  711. forward FishCost(playerid, fish);
  712. forward ClearFishes(playerid);
  713. forward ClearGuns(playerid);
  714. forward ClearFishID(playerid, fish);
  715. forward Lotto(number);
  716. forward CarCheck();
  717. forward LockCar(carid);
  718. forward UnLockCar(carid);
  719. forward InitLockDoors(playerid);
  720. forward CheckGas();
  721. forward Fillup();
  722. forward StoppedVehicle();
  723. forward SyncTime();
  724. forward SyncUp();
  725. forward SaveChars();
  726. forward Production();
  727. forward UpdateScripts();
  728. forward PayDay();
  729. forward PointCheck();
  730. forward PDDoorCheck();
  731. forward CountDownCheck();
  732. forward CountDownCheck2();
  733. forward CountDownCheck3();
  734. forward CountDownCheckGo();
  735. forward PrisonGateCheck(); // COMMENTED
  736. forward PrisonCellCheck(); // COMMENTED
  737. forward ini_GetKey( line[] );
  738. forward ini_GetValue( line[] );
  739. forward PlayerFixRadio(playerid);
  740. forward PlayerFixRadio2();
  741. forward CustomPickups();
  742. forward FixHour(hour);
  743. forward AddsOn();
  744. forward PickLock(playerid);
  745. forward FixCar(playerid);
  746. forward SellCar(playerid);
  747. forward ChangePass(playerid);
  748. forward StopAni(playerid);
  749. forward UseDrugs(playerid);
  750. forward SellGun(playerid);
  751. forward UseTazer(playerid);
  752. forward UseDrink(playerid);
  753. forward UseNewbie(playerid);
  754. forward UseAdmCmd(playerid);
  755. forward UseAccept(playerid);
  756. forward DisplayDialogForPlayer(playerid, dialogid);
  757. forward StartLotto(biz);
  758. forward ApplyNPCAnims();
  759. forward KillCar(vehicleid);
  760. forward Hide(target);
  761. //RAMP
  762. forward Delete(objectid);
  763. forward DeleteGun(objectid);
  764. //headshot
  765. forward AntiSpam(playerid);
  766.  
  767. //Speedo
  768. new Text:LBox[MAX_PLAYERS];
  769. new Text:LLine1[MAX_PLAYERS];
  770. new Text:LLine2[MAX_PLAYERS];
  771. new Text:LLine3[MAX_PLAYERS];
  772. new Text:LLine4[MAX_PLAYERS];
  773. new Text:LCredits[MAX_PLAYERS];
  774. new Text:Lmph[MAX_PLAYERS];
  775. new Text:LFunc[MAX_PLAYERS];
  776. new LuX_SpeedoMeter[MAX_PLAYERS];
  777. //new VehicleStatus[MAX_VEHICLES];
  778.  
  779. //Neon
  780. new ObjectSelect[MAX_VEHICLES][4];
  781.  
  782. new lstring[256];
  783. new lstr[256];
  784.  
  785. enum MainZone{
  786. Zone_Name[28], Float:Zone_Area[6] };
  787.  
  788. static const SanAndreasZones[][MainZone] = {
  789.  
  790. {"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
  791. {"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
  792. {"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
  793. {"Arco del Oeste", {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
  794. {"Avispa Country Club", {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
  795. {"Avispa Country Club", {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
  796. {"Avispa Country Club", {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
  797. {"Avispa Country Club", {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
  798. {"Avispa Country Club", {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
  799. {"Avispa Country Club", {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
  800. {"Back o Beyond", {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
  801. {"Battery Point", {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
  802. {"Bayside", {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
  803. {"Bayside Marina", {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
  804. {"Beacon Hill", {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
  805. {"Blackfield", {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
  806. {"Blackfield", {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
  807. {"Blackfield Chapel", {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
  808. {"Blackfield Chapel", {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
  809. {"Blackfield Intersection", {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
  810. {"Blackfield Intersection", {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
  811. {"Blackfield Intersection", {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
  812. {"Blackfield Intersection", {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
  813. {"Blueberry", {104.50,-220.10,2.30,349.60,152.20,200.00}},
  814. {"Blueberry", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
  815. {"Blueberry Acres", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
  816. {"Caligula's Palace", {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
  817. {"Caligula's Palace", {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
  818. {"Calton Heights", {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
  819. {"Chinatown", {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
  820. {"City Hall", {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
  821. {"Come-A-Lot", {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
  822. {"Commerce", {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
  823. {"Commerce", {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
  824. {"Commerce", {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
  825. {"Commerce", {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
  826. {"Commerce", {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
  827. {"Commerce", {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
  828. {"Conference Center", {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
  829. {"Conference Center", {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
  830. {"Cranberry Station", {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
  831. {"Creek", {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
  832. {"Dillimore", {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
  833. {"Doherty", {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
  834. {"Doherty", {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
  835. {"Downtown", {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
  836. {"Downtown", {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
  837. {"Downtown", {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
  838. {"Downtown", {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
  839. {"Downtown", {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
  840. {"Downtown", {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
  841. {"Downtown Los Santos", {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
  842. {"Downtown Los Santos", {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
  843. {"Downtown Los Santos", {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
  844. {"Downtown Los Santos", {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
  845. {"Downtown Los Santos", {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
  846. {"Downtown Los Santos", {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
  847. {"Downtown Los Santos", {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
  848. {"Downtown Los Santos", {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
  849. {"Downtown Los Santos", {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
  850. {"East Beach", {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
  851. {"East Beach", {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
  852. {"East Beach", {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
  853. {"East Beach", {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
  854. {"East Los Santos", {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
  855. {"East Los Santos", {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
  856. {"East Los Santos", {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
  857. {"East Los Santos", {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
  858. {"East Los Santos", {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
  859. {"East Los Santos", {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
  860. {"East Los Santos", {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
  861. {"Easter Basin", {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
  862. {"Easter Basin", {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
  863. {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
  864. {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
  865. {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
  866. {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
  867. {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
  868. {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
  869. {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
  870. {"Easter Bay Airport", {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
  871. {"Easter Bay Chemicals", {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
  872. {"Easter Bay Chemicals", {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
  873. {"El Castillo del Diablo", {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
  874. {"El Castillo del Diablo", {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
  875. {"El Castillo del Diablo", {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
  876. {"El Corona", {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
  877. {"El Corona", {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
  878. {"El Quebrados", {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
  879. {"Esplanade East", {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
  880. {"Esplanade East", {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
  881. {"Esplanade East", {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
  882. {"Esplanade North", {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
  883. {"Esplanade North", {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
  884. {"Esplanade North", {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
  885. {"Fallen Tree", {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
  886. {"Fallow Bridge", {434.30,366.50,0.00,603.00,555.60,200.00}},
  887. {"Fern Ridge", {508.10,-139.20,0.00,1306.60,119.50,200.00}},
  888. {"Financial", {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
  889. {"Fisher's Lagoon", {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
  890. {"Flint Intersection", {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
  891. {"Flint Range", {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
  892. {"Fort Carson", {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
  893. {"Foster Valley", {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
  894. {"Foster Valley", {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
  895. {"Foster Valley", {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
  896. {"Foster Valley", {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
  897. {"Frederick Bridge", {2759.20,296.50,0.00,2774.20,594.70,200.00}},
  898. {"Gant Bridge", {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
  899. {"Gant Bridge", {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
  900. {"Ganton", {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
  901. {"Ganton", {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
  902. {"Garcia", {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
  903. {"Garcia", {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
  904. {"Garver Bridge", {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
  905. {"Garver Bridge", {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
  906. {"Garver Bridge", {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
  907. {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
  908. {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
  909. {"Glen Park", {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
  910. {"Green Palms", {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
  911. {"Greenglass College", {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
  912. {"Greenglass College", {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
  913. {"Hampton Barns", {603.00,264.30,0.00,761.90,366.50,200.00}},
  914. {"Hankypanky Point", {2576.90,62.10,0.00,2759.20,385.50,200.00}},
  915. {"Harry Gold Parkway", {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
  916. {"Hashbury", {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
  917. {"Hilltop Farm", {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
  918. {"Hunter Quarry", {337.20,710.80,-115.20,860.50,1031.70,203.70}},
  919. {"Idlewood", {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
  920. {"Idlewood", {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
  921. {"Idlewood", {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
  922. {"Idlewood", {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
  923. {"Idlewood", {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
  924. {"Idlewood", {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
  925. {"Jefferson", {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
  926. {"Jefferson", {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
  927. {"Jefferson", {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
  928. {"Jefferson", {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
  929. {"Jefferson", {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
  930. {"Jefferson", {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
  931. {"Julius Thruway East", {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
  932. {"Julius Thruway East", {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
  933. {"Julius Thruway East", {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
  934. {"Julius Thruway East", {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
  935. {"Julius Thruway North", {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
  936. {"Julius Thruway North", {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
  937. {"Julius Thruway North", {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
  938. {"Julius Thruway North", {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
  939. {"Julius Thruway North", {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
  940. {"Julius Thruway North", {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
  941. {"Julius Thruway North", {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
  942. {"Julius Thruway North", {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
  943. {"Julius Thruway South", {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
  944. {"Julius Thruway South", {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
  945. {"Julius Thruway West", {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
  946. {"Julius Thruway West", {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
  947. {"Juniper Hill", {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
  948. {"Juniper Hollow", {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
  949. {"K.A.C.C. Military Fuels", {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
  950. {"Kincaid Bridge", {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
  951. {"Kincaid Bridge", {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
  952. {"Kincaid Bridge", {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
  953. {"King's", {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
  954. {"King's", {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
  955. {"King's", {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
  956. {"LVA Freight Depot", {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
  957. {"LVA Freight Depot", {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
  958. {"LVA Freight Depot", {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
  959. {"LVA Freight Depot", {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
  960. {"LVA Freight Depot", {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
  961. {"Las Barrancas", {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
  962. {"Las Brujas", {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
  963. {"Las Colinas", {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
  964. {"Las Colinas", {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
  965. {"Las Colinas", {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
  966. {"Las Colinas", {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
  967. {"Las Colinas", {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
  968. {"Las Colinas", {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
  969. {"Las Colinas", {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
  970. {"Las Payasadas", {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
  971. {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
  972. {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
  973. {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
  974. {"Las Venturas Airport", {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
  975. {"Last Dime Motel", {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
  976. {"Leafy Hollow", {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
  977. {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
  978. {"Lil' Probe Inn", {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
  979. {"Linden Side", {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
  980. {"Linden Station", {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
  981. {"Linden Station", {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
  982. {"Little Mexico", {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
  983. {"Little Mexico", {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
  984. {"Los Flores", {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
  985. {"Los Flores", {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
  986. {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
  987. {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
  988. {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
  989. {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
  990. {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
  991. {"Los Santos International", {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
  992. {"Marina", {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
  993. {"Marina", {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
  994. {"Marina", {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
  995. {"Market", {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
  996. {"Market", {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
  997. {"Market", {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
  998. {"Market", {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
  999. {"Market Station", {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
  1000. {"Martin Bridge", {-222.10,293.30,0.00,-122.10,476.40,200.00}},
  1001. {"Missionary Hill", {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
  1002. {"Montgomery", {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
  1003. {"Montgomery", {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
  1004. {"Montgomery Intersection", {1546.60,208.10,0.00,1745.80,347.40,200.00}},
  1005. {"Montgomery Intersection", {1582.40,347.40,0.00,1664.60,401.70,200.00}},
  1006. {"Mulholland", {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
  1007. {"Mulholland", {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
  1008. {"Mulholland", {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
  1009. {"Mulholland", {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
  1010. {"Mulholland", {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
  1011. {"Mulholland", {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
  1012. {"Mulholland", {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
  1013. {"Mulholland", {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
  1014. {"Mulholland", {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
  1015. {"Mulholland", {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
  1016. {"Mulholland", {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
  1017. {"Mulholland", {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
  1018. {"Mulholland", {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
  1019. {"Mulholland Intersection", {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
  1020. {"North Rock", {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
  1021. {"Ocean Docks", {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
  1022. {"Ocean Docks", {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
  1023. {"Ocean Docks", {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
  1024. {"Ocean Docks", {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
  1025. {"Ocean Docks", {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
  1026. {"Ocean Docks", {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
  1027. {"Ocean Docks", {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
  1028. {"Ocean Flats", {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
  1029. {"Ocean Flats", {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
  1030. {"Ocean Flats", {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
  1031. {"Octane Springs", {338.60,1228.50,0.00,664.30,1655.00,200.00}},
  1032. {"Old Venturas Strip", {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
  1033. {"Palisades", {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
  1034. {"Palomino Creek", {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
  1035. {"Paradiso", {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
  1036. {"Pershing Square", {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
  1037. {"Pilgrim", {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
  1038. {"Pilgrim", {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
  1039. {"Pilson Intersection", {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
  1040. {"Pirates in Men's Pants", {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
  1041. {"Playa del Seville", {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
  1042. {"Prickle Pine", {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
  1043. {"Prickle Pine", {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
  1044. {"Prickle Pine", {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
  1045. {"Prickle Pine", {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
  1046. {"Queens", {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
  1047. {"Queens", {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
  1048. {"Queens", {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
  1049. {"Randolph Industrial", {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
  1050. {"Redsands East", {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
  1051. {"Redsands East", {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
  1052. {"Redsands East", {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
  1053. {"Redsands West", {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
  1054. {"Redsands West", {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
  1055. {"Redsands West", {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
  1056. {"Redsands West", {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
  1057. {"Regular Tom", {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
  1058. {"Richman", {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
  1059. {"Richman", {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
  1060. {"Richman", {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
  1061. {"Richman", {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
  1062. {"Richman", {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
  1063. {"Richman", {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
  1064. {"Richman", {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
  1065. {"Richman", {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
  1066. {"Richman", {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
  1067. {"Richman", {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
  1068. {"Robada Intersection", {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
  1069. {"Roca Escalante", {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
  1070. {"Roca Escalante", {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
  1071. {"Rockshore East", {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
  1072. {"Rockshore West", {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
  1073. {"Rockshore West", {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
  1074. {"Rodeo", {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
  1075. {"Rodeo", {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
  1076. {"Rodeo", {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
  1077. {"Rodeo", {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
  1078. {"Rodeo", {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
  1079. {"Rodeo", {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
  1080. {"Rodeo", {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
  1081. {"Rodeo", {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
  1082. {"Rodeo", {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
  1083. {"Rodeo", {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
  1084. {"Rodeo", {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
  1085. {"Rodeo", {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
  1086. {"Royal Casino", {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
  1087. {"San Andreas Sound", {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
  1088. {"Santa Flora", {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
  1089. {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
  1090. {"Santa Maria Beach", {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
  1091. {"Shady Cabin", {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
  1092. {"Shady Creeks", {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
  1093. {"Shady Creeks", {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
  1094. {"Sobell Rail Yards", {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
  1095. {"Spinybed", {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
  1096. {"Starfish Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
  1097. {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
  1098. {"Starfish Casino", {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
  1099. {"Temple", {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
  1100. {"Temple", {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
  1101. {"Temple", {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
  1102. {"Temple", {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
  1103. {"Temple", {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
  1104. {"Temple", {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
  1105. {"The Camel's Toe", {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
  1106. {"The Clown's Pocket", {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
  1107. {"The Emerald Isle", {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
  1108. {"The Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
  1109. {"Four Dragons Casino", {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
  1110. {"The High Roller", {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
  1111. {"The Mako Span", {1664.60,401.70,0.00,1785.10,567.20,200.00}},
  1112. {"The Panopticon", {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
  1113. {"The Pink Swan", {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
  1114. {"The Sherman Dam", {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
  1115. {"The Strip", {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
  1116. {"The Strip", {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
  1117. {"The Strip", {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
  1118. {"The Strip", {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
  1119. {"The Visage", {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
  1120. {"The Visage", {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
  1121. {"Unity Station", {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
  1122. {"Valle Ocultado", {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
  1123. {"Verdant Bluffs", {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
  1124. {"Verdant Bluffs", {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
  1125. {"Verdant Bluffs", {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
  1126. {"Verdant Meadows", {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
  1127. {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
  1128. {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
  1129. {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
  1130. {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
  1131. {"Verona Beach", {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
  1132. {"Vinewood", {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
  1133. {"Vinewood", {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
  1134. {"Vinewood", {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
  1135. {"Vinewood", {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
  1136. {"Whitewood Estates", {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
  1137. {"Whitewood Estates", {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
  1138. {"Willowfield", {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
  1139. {"Willowfield", {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
  1140. {"Willowfield", {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
  1141. {"Willowfield", {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
  1142. {"Willowfield", {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
  1143. {"Willowfield", {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
  1144. {"Willowfield", {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
  1145. {"Yellow Bell Station", {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
  1146. // Citys Zones
  1147. {"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
  1148. {"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
  1149. {"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
  1150. {"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
  1151. {"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
  1152. {"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
  1153. {"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
  1154. {"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
  1155. {"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
  1156. };
  1157.  
  1158. enum ReadPositions{Float:ReadX,Float:ReadY,Float:ReadZ
  1159. }
  1160. new LuX_ReadPlayerPosition[PLAYERS][ReadPositions];
  1161. new Float:VehPosX[MAX_VEHICLES], Float:VehPosY[MAX_VEHICLES], Float:VehPosZ[MAX_VEHICLES];
  1162.  
  1163. stock LuX_DistanceToPoint(vehicleid)
  1164. {
  1165. new Float:LPlayerX, Float:LPlayerY, Float:LPlayerZ, Float:LReadPos;
  1166. GetVehiclePos(vehicleid, LPlayerX, LPlayerY, LPlayerZ);
  1167. LReadPos = floatsqroot(floatpower(floatabs(floatsub(LPlayerX, VehPosX[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerY, VehPosY[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerZ, VehPosZ[vehicleid])), 2));
  1168. return floatround(LReadPos);
  1169. }
  1170.  
  1171. stock LuX_ReadPosition(vehicleid)
  1172. {
  1173. new Float:LReadX, Float:LReadY, Float:LReadZ;
  1174. GetVehiclePos(vehicleid, LReadX, LReadY, LReadZ);
  1175. VehPosX[vehicleid]=LReadX; VehPosY[vehicleid]=LReadY; VehPosZ[vehicleid]=LReadZ;
  1176. }
  1177.  
  1178. stock PlayerZone(playerid, zone[])
  1179. {
  1180. new ReadTmpZone[MAX_ZONE_NAME];
  1181. GetPlayer3DZone(playerid, ReadTmpZone, sizeof(ReadTmpZone)); for(new i = 0; i != sizeof(SanAndreasZones); i++){
  1182. if(strfind(ReadTmpZone, zone, true) != -1)
  1183. return 1;
  1184. }
  1185. return 0;
  1186. }
  1187.  
  1188. forward LAutoUnlock(vehicleid);
  1189.  
  1190. new LVehiclesName[][] =
  1191. {
  1192. "Landstalker",
  1193. "Bravura",
  1194. "Buffalo",
  1195. "Linerunner",
  1196. "Pereniel",
  1197. "Sentinel",
  1198. "Dumper",
  1199. "Firetruck",
  1200. "Trashmaster",
  1201. "Stretch",
  1202. "Manana",
  1203. "Infernus",
  1204. "Voodoo",
  1205. "Pony",
  1206. "Mule",
  1207. "Cheetah",
  1208. "Ambulance",
  1209. "Leviathan",
  1210. "Moonbeam",
  1211. "Esperanto",
  1212. "Taxi",
  1213. "Washington",
  1214. "Bobcat",
  1215. "Mr Whoopee",
  1216. "BF Injection",
  1217. "Hunter",
  1218. "Premier",
  1219. "Enforcer",
  1220. "Securicar",
  1221. "Banshee",
  1222. "Predator",
  1223. "Bus",
  1224. "Rhino",
  1225. "Barracks",
  1226. "Hotknife",
  1227. "Trailer",
  1228. "Previon",
  1229. "Coach",
  1230. "Cabbie",
  1231. "Stallion",
  1232. "Rumpo",
  1233. "RC Bandit",
  1234. "Romero",
  1235. "Packer",
  1236. "Monster Truck",
  1237. "Admiral",
  1238. "Squalo",
  1239. "Seasparrow",
  1240. "Pizzaboy",
  1241. "Tram",
  1242. "Trailer",
  1243. "Turismo",
  1244. "Speeder",
  1245. "Reefer",
  1246. "Tropic",
  1247. "Flatbed",
  1248. "Yankee",
  1249. "Caddy",
  1250. "Solair",
  1251. "Berkley's RC Van",
  1252. "Skimmer",
  1253. "PCJ-600",
  1254. "Faggio",
  1255. "Freeway",
  1256. "RC Baron",
  1257. "RC Raider",
  1258. "Glendale",
  1259. "Oceanic",
  1260. "Sanchez",
  1261. "Sparrow",
  1262. "Patriot",
  1263. "Quad",
  1264. "Coastguard",
  1265. "Dinghy",
  1266. "Hermes",
  1267. "Sabre",
  1268. "Rustler",
  1269. "ZR-350",
  1270. "Walton",
  1271. "Regina",
  1272. "Comet",
  1273. "BMX",
  1274. "Burrito",
  1275. "Camper",
  1276. "Marquis",
  1277. "Baggage",
  1278. "Dozer",
  1279. "Maverick",
  1280. "News Chopper",
  1281. "Rancher",
  1282. "FBI Rancher",
  1283. "Virgo",
  1284. "Greenwood",
  1285. "Jetmax",
  1286. "Hotring",
  1287. "Sandking",
  1288. "Blista Compact",
  1289. "Police Maverick",
  1290. "Boxville",
  1291. "Benson",
  1292. "Mesa",
  1293. "RC Goblin",
  1294. "Hotring Racer",
  1295. "Hotring Racer",
  1296. "Bloodring Banger",
  1297. "Rancher",
  1298. "Super GT",
  1299. "Elegant",
  1300. "Journey",
  1301. "Bike",
  1302. "Mountain Bike",
  1303. "Beagle",
  1304. "Cropdust",
  1305. "Stunt",
  1306. "Tanker",
  1307. "RoadTrain",
  1308. "Nebula",
  1309. "Majestic",
  1310. "Buccaneer",
  1311. "Shamal",
  1312. "Hydra",
  1313. "FCR-900",
  1314. "NRG-500",
  1315. "HPV1000",
  1316. "Cement Truck",
  1317. "Tow Truck",
  1318. "Fortune",
  1319. "Cadrona",
  1320. "FBI Truck",
  1321. "Willard",
  1322. "Forklift",
  1323. "Tractor",
  1324. "Combine",
  1325. "Feltzer",
  1326. "Remington",
  1327. "Slamvan",
  1328. "Blade",
  1329. "Freight",
  1330. "Streak",
  1331. "Vortex",
  1332. "Vincent",
  1333. "Bullet",
  1334. "Clover",
  1335. "Sadler",
  1336. "Firetruck",
  1337. "Hustler",
  1338. "Intruder",
  1339. "Primo",
  1340. "Cargobob",
  1341. "Tampa",
  1342. "Sunrise",
  1343. "Merit",
  1344. "Utility",
  1345. "Nevada",
  1346. "Yosemite",
  1347. "Windsor",
  1348. "Monster Truck",
  1349. "Monster Truck",
  1350. "Uranus",
  1351. "Jester",
  1352. "Sultan",
  1353. "Stratum",
  1354. "Elegy",
  1355. "Raindance",
  1356. "RC Tiger",
  1357. "Flash",
  1358. "Tahoma",
  1359. "Savanna",
  1360. "Bandito",
  1361. "Freight",
  1362. "Trailer",
  1363. "Kart",
  1364. "Mower",
  1365. "Duneride",
  1366. "Sweeper",
  1367. "Broadway",
  1368. "Tornado",
  1369. "AT-400",
  1370. "DFT-30",
  1371. "Huntley",
  1372. "Stafford",
  1373. "BF-400",
  1374. "Newsvan",
  1375. "Tug",
  1376. "Trailer",
  1377. "Emperor",
  1378. "Wayfarer",
  1379. "Euros",
  1380. "Hotdog",
  1381. "Club",
  1382. "Trailer",
  1383. "Trailer",
  1384. "Andromada",
  1385. "Dodo",
  1386. "RC Cam",
  1387. "Launch",
  1388. "Police Car (LS)",
  1389. "Police Car (SF)",
  1390. "Police Car (LV)",
  1391. "Police Ranger",
  1392. "Picador",
  1393. "S.W.A.T. Van",
  1394. "Alpha",
  1395. "Phoenix",
  1396. "Glendale",
  1397. "Sadler",
  1398. "Luggage Trailer",
  1399. "Luggage Trailer",
  1400. "Stair Trailer",
  1401. "Boxville",
  1402. "Farm Plow",
  1403. "Utility Trailer"
  1404. };
  1405.  
  1406.  
  1407. forward LuX_SpeedoMeterUp();
  1408. //
  1409.  
  1410. new Security = 0;
  1411. new gmx = 0;
  1412. new CreatedCars[MAX_VEHICLES] = {INVALID_VEHICLE_ID, ...};
  1413. //new SpawnedVehicle[MAX_VEHICLES], Vehicles;
  1414. /*new RC1;
  1415. new RC2;
  1416. new RC3;
  1417. new RC4;
  1418. new RC5;
  1419. new RC6;*/
  1420.  
  1421.  
  1422. new bariera;
  1423. new Bariera2 = 0;
  1424. // Weed System
  1425. new Weed[MAX_PLAYERS];
  1426. new Float: Weed_x[MAX_PLAYERS], Float: Weed_y[MAX_PLAYERS], Float: Weed_z[MAX_PLAYERS];
  1427. new HasPlantWeed[MAX_PLAYERS];
  1428. new WeedGrams[MAX_PLAYERS];
  1429. new WeedForPlayer[MAX_PLAYERS];
  1430. new WeedTime[MAX_PLAYERS];
  1431. new WeedMin[MAX_PLAYERS];
  1432. new WeedIsPicked[MAX_PLAYERS];
  1433. new Float:WeedStopPos[MAX_PLAYERS][3];
  1434.  
  1435. //
  1436. new CIAGate;
  1437.  
  1438. new vipgate1 = 0;
  1439. new vipgate2 = 0;
  1440. new vipgateob1; //vipgate
  1441. new vipgateob2; //vipgate2
  1442. new wugate1 = 0;
  1443. new wugate2 = 0;
  1444. new wugate3 = 0;
  1445. new gDestroyVehicle[MAX_VEHICLES];
  1446. new aGun[MAX_PLAYERS][13];
  1447. new Tax = 0;
  1448. new TaxValue = 0;
  1449. new Jackpot = 0;
  1450. new StartingPaintballRound = 0;
  1451. new AnnouncedPaintballRound = 0;
  1452. new PaintballPlayers = 0;
  1453. new PaintballRound = 0;
  1454. new PaintballWinner = 999;
  1455. new PaintballWinnerKills = 0;
  1456. new InRing = 0;
  1457. new RoundStarted = 0;
  1458. new BoxDelay = 0;
  1459. new Boxer1 = 255;
  1460. new Boxer2 = 255;
  1461. new TBoxer = 255;
  1462. new PlayerBoxing[MAX_PLAYERS];
  1463. new Medics = 0;
  1464. new MedicCall = 999;
  1465. new MedicCallTime[MAX_PLAYERS];
  1466. new Lawyers = 0;
  1467. new LawyerCall = 999;
  1468. new LawyerCallTime[MAX_PLAYERS];
  1469. new Mechanics = 0;
  1470. new MechanicCall = 999;
  1471. new MechanicCallTime[MAX_PLAYERS];
  1472. new TaxiDrivers = 0;
  1473. new TaxiCall = 999;
  1474. new TaxiCallTime[MAX_PLAYERS];
  1475. new TaxiAccepted[MAX_PLAYERS];
  1476. new BusDrivers = 0;
  1477. new BusCall = 999;
  1478. new BusCallTime[MAX_PLAYERS];
  1479. new BusAccepted[MAX_PLAYERS];
  1480. new TransportDuty[MAX_PLAYERS];
  1481. new TransportValue[MAX_PLAYERS];
  1482. new TransportMoney[MAX_PLAYERS];
  1483. new TransportTime[MAX_PLAYERS];
  1484. new TransportCost[MAX_PLAYERS];
  1485. new TransportDriver[MAX_PLAYERS];
  1486. new JobDuty[MAX_PLAYERS];
  1487. new RegistrationStep[MAX_PLAYERS];
  1488. new PlayerPaintballing[MAX_PLAYERS];
  1489. new PlayerPaintballKills[MAX_PLAYERS];
  1490. new UsedFind[MAX_PLAYERS];
  1491. new GotMats[MAX_PLAYERS];
  1492. new FReloadTime[MAX_PLAYERS];
  1493. new PlayerHadDeagle[MAX_PLAYERS];
  1494. new JustReported[MAX_PLAYERS];
  1495. new TazerTime[MAX_PLAYERS];
  1496. new PlayerHasTazer[MAX_PLAYERS];
  1497. new Warnings[20][256];
  1498. new Accent[MAX_PLAYERS][16];
  1499. new iCurrentWeapon[MAX_PLAYERS];
  1500. new Float:StoreArmour[MAX_PLAYERS];
  1501. new gPlayerUsingLoopingAnim[MAX_PLAYERS];
  1502. new PlayersChannel[MAX_PLAYERS];
  1503. new HasBoughtMask[MAX_PLAYERS];
  1504. new UsingSate[MAX_PLAYERS];
  1505. new ZOOM[MAX_PLAYERS];
  1506. new Float:oldsposx[MAX_PLAYERS], Float:oldsposy[MAX_PLAYERS], Float:oldsposz[MAX_PLAYERS];
  1507. new Float:newsposx[MAX_PLAYERS], Float:newsposy[MAX_PLAYERS], Float:newsposz[MAX_PLAYERS];
  1508. new NoFuel[MAX_PLAYERS];
  1509. new DivorceOffer[MAX_PLAYERS];
  1510. new FriskOffer[MAX_PLAYERS];
  1511. new MarriageCeremoney[MAX_PLAYERS];
  1512. new ProposeOffer[MAX_PLAYERS];
  1513. new ProposedTo[MAX_PLAYERS];
  1514. new GotProposedBy[MAX_PLAYERS];
  1515. new MarryWitness[MAX_PLAYERS];
  1516. new MarryWitnessOffer[MAX_PLAYERS];
  1517. new TicketOffer[MAX_PLAYERS];
  1518. new TicketMoney[MAX_PLAYERS];
  1519. new HandshakeOffer[MAX_PLAYERS];
  1520. new HandshakeType[MAX_PLAYERS];
  1521. new ContractOffer[MAX_PLAYERS];
  1522. new ContractID[MAX_PLAYERS];
  1523. new PlayerStoned[MAX_PLAYERS];
  1524. new FishCount[MAX_PLAYERS];
  1525. new TutTime[MAX_PLAYERS];
  1526. new Reqhelp[MAX_PLAYERS];
  1527. new NoTP[MAX_PLAYERS];
  1528. new NoSpec[MAX_PLAYERS];
  1529. new PlayerTazeTime[MAX_PLAYERS];
  1530. new FindTimePoints[MAX_PLAYERS];
  1531. new FindTime[MAX_PLAYERS];
  1532. new FindingID[MAX_PLAYERS];
  1533. new BoxWaitTime[MAX_PLAYERS];
  1534. new BoxOffer[MAX_PLAYERS];
  1535. new GoChase[MAX_PLAYERS];
  1536. new LSPDClearing[MAX_PLAYERS];
  1537. new HospitalTime[MAX_PLAYERS];
  1538. new NoHospital[MAX_PLAYERS];
  1539. new HospitalSpawn[MAX_PLAYERS];
  1540. new PlayerTied[MAX_PLAYERS];
  1541. new PlayerBlinded[MAX_PLAYERS];
  1542. new PlayerHurt[MAX_PLAYERS];
  1543. new PlayerCuffed[MAX_PLAYERS];
  1544. new PlayerFrozen[MAX_PLAYERS];
  1545. new PlayerCuffedTime[MAX_PLAYERS];
  1546. new LiveOffer[MAX_PLAYERS];
  1547. new TalkingLive[MAX_PLAYERS];
  1548. new SelectChar[MAX_PLAYERS];
  1549. new SelectCharID[MAX_PLAYERS];
  1550. new SelectCharPlace[MAX_PLAYERS];
  1551. new ChosenSkin[MAX_PLAYERS];
  1552. new Parrot[MAX_PLAYERS];
  1553. new WithGlasses[MAX_PLAYERS];
  1554. new WithHat[MAX_PLAYERS];
  1555. new WithMask[MAX_PLAYERS];
  1556. new WithBandana[MAX_PLAYERS];
  1557. new WithHelmet[MAX_PLAYERS];
  1558.  
  1559. new wrench[MAX_PLAYERS];
  1560. new hammer[MAX_PLAYERS];
  1561. new crowbar[MAX_PLAYERS];
  1562. new chainsawdildo[MAX_PLAYERS];
  1563. new flashlight[MAX_PLAYERS];
  1564. new screwdriver[MAX_PLAYERS];
  1565. new rake[MAX_PLAYERS];
  1566.  
  1567. new AShield[MAX_PLAYERS];
  1568. new BShield[MAX_PLAYERS];
  1569.  
  1570. new Float:ObjCoords[100][3];
  1571. new object[100];
  1572. new ObjectID[100][2];
  1573.  
  1574. new Float:ObjCoords2[100][3];
  1575. new object2[100];
  1576.  
  1577. new GettingJob[MAX_PLAYERS];
  1578. new GuardOffer[MAX_PLAYERS];
  1579. new GuardPrice[MAX_PLAYERS];
  1580. new DefenseOffer[MAX_PLAYERS];
  1581. new DefensePrice[MAX_PLAYERS];
  1582. new FamilyOffer[MAX_PLAYERS];
  1583.  
  1584. //Bank robbery
  1585. new VPass;
  1586. new BankRobberyTime;
  1587. new BankRobbery = 0;
  1588. new LoadingCash;
  1589. new LoadingCashType[MAX_PLAYERS];
  1590. new LoadingCashTime[MAX_PLAYERS];
  1591. new LoadedCash[MAX_PLAYERS];
  1592. new bankvaultdoor;
  1593.  
  1594.  
  1595. forward AnnounceRobbery();
  1596. forward CashLoadCheck();
  1597. forward CloseTheVault();
  1598. forward RobBank(playerid);
  1599. forward CheckRobberSafe(playerid);
  1600. forward RobBankMove(playerid);
  1601. forward RobBankMove2(playerid);
  1602. new UserSprunk[MAX_PLAYERS];
  1603. new VehicleOffer[MAX_PLAYERS];
  1604. new VehiclePrice[MAX_PLAYERS];
  1605. new VehicleSellID[MAX_PLAYERS];
  1606.  
  1607. new TempKey[MAX_PLAYERS];
  1608. new KeysOffer[MAX_PLAYERS];
  1609. new KeysOfferTo[MAX_PLAYERS];
  1610. new KeysID[1000];
  1611.  
  1612. new HouseOffer[MAX_PLAYERS];
  1613. new HousePrice[MAX_PLAYERS];
  1614. new HouseSellID[MAX_PLAYERS];
  1615. new BizOffer[MAX_PLAYERS];
  1616. new BizPrice[MAX_PLAYERS];
  1617. new BizSellID[MAX_PLAYERS];
  1618. new HouseEditID[MAX_PLAYERS];
  1619. new BizEditID[MAX_PLAYERS];
  1620. new RentOffer[MAX_PLAYERS];
  1621. new RentPrice[MAX_PLAYERS];
  1622. new RentHouseID[MAX_PLAYERS];
  1623. new FactionOffer[MAX_PLAYERS];
  1624. new CallLawyer[MAX_PLAYERS];
  1625. new WantLawyer[MAX_PLAYERS];
  1626. new KickPlayer[MAX_PLAYERS];
  1627. new CP[MAX_PLAYERS];
  1628. new MoneyMessage[MAX_PLAYERS];
  1629. new Condom[MAX_PLAYERS];
  1630. new STDPlayer[MAX_PLAYERS];
  1631. new SexOffer[MAX_PLAYERS];
  1632. new SexPrice[MAX_PLAYERS];
  1633. new RepairOffer[MAX_PLAYERS];
  1634. new RepairPrice[MAX_PLAYERS];
  1635. new RefillOffer[MAX_PLAYERS];
  1636. new RefillPrice[MAX_PLAYERS];
  1637. new RepairCar[MAX_PLAYERS];
  1638. new PotOffer[MAX_PLAYERS];
  1639. new PotPrice[MAX_PLAYERS];
  1640. new PotGram[MAX_PLAYERS];
  1641. new ProdOffer[MAX_PLAYERS];
  1642. new ProdPrice[MAX_PLAYERS];
  1643. new ProdAmount[MAX_PLAYERS];
  1644. new Packages[MAX_PLAYERS];
  1645. new Crates[MAX_PLAYERS];
  1646. new CrackOffer[MAX_PLAYERS];
  1647. new CrackPrice[MAX_PLAYERS];
  1648. new CrackGram[MAX_PLAYERS];
  1649. new JailPrice[MAX_PLAYERS];
  1650. new gPlayerLogged[MAX_PLAYERS];
  1651. new gActivePlayers[MAX_PLAYERS];
  1652. new gLastCar[MAX_PLAYERS];
  1653. new gCarLock[MAX_VEHICLES];
  1654. new gOoc[MAX_PLAYERS];
  1655. new gNewbie[MAX_PLAYERS];
  1656. new gNews[MAX_PLAYERS];
  1657. new gFam[MAX_PLAYERS];
  1658. new dealership[91];
  1659. new lspd[65];
  1660. new wu[6];
  1661. new objecttt[40];
  1662. new BigEar[MAX_PLAYERS];
  1663. new CellTime[MAX_PLAYERS];
  1664. new HidePM[MAX_PLAYERS];
  1665. new PhoneOnline[MAX_PLAYERS];
  1666. new AlarmOnline[MAX_PLAYERS];
  1667. new WTOnline[MAX_PLAYERS];
  1668. new gGas[MAX_PLAYERS];
  1669. new gSpeedo[MAX_PLAYERS];
  1670. new gVehicleLock[MAX_PLAYERS];
  1671. new Fixr[MAX_PLAYERS];
  1672. new Locator[MAX_PLAYERS];
  1673. new Mobile[MAX_PLAYERS];
  1674. new SelectDrug[MAX_PLAYERS];
  1675. new CallCost[MAX_PLAYERS];
  1676. new gPlayerAccount[MAX_PLAYERS];
  1677. new Float:rx, Float:ry, Float:rz;
  1678. new motd[128];
  1679. new door;
  1680. new DoorOpened;
  1681. new Text:txtAnimHelper;
  1682. new anumber;
  1683. new chiefdoortimer;
  1684. new ghour = 0;
  1685. new gminute = 0;
  1686. new gsecond = 0;
  1687. new numplayers = 0;
  1688. new realtime = 1;
  1689. new wtime = 15;
  1690. new dollah = 5000; //amount player recieves on spawn
  1691. new levelcost = 25000; //level cost
  1692. new deathcost = 300; //death cost
  1693. new callcost = 20; //divided by 10 seconds
  1694. new matprice = 500; //getmats cost
  1695. new matprice2 = 1000; //getmats cost
  1696. new matpayout = 250; //materials payout amount
  1697. new matpayout2 = 500; //materials payout amount
  1698. new dmatpayout = 350; //materials payout amount
  1699. new dmatpayout2 = 450; //materials payout amount
  1700. new potgprice = 100; //price per gram
  1701. new crackgprice = 500; //price per gram
  1702. new Carparts;
  1703. new dhstock = 0; //drughouse supply
  1704. new dhlimit = 1000; //drughouse limit
  1705. new chstock = 0; //crackhouse supply
  1706. new chlimit = 500; //crackhouse limit
  1707. new levelexp = 4; //levelexp
  1708. new nonewbie = 0; //newbie chat enabled
  1709. new noreport = 0;
  1710. new adds = 1; //ads enabled
  1711. new noooc = 1; //noooc enabled
  1712. new realchat = 1;
  1713. new timeshift = -1;
  1714. new shifthour;
  1715. new othtimer;
  1716. new synctimer;
  1717. new savechartimer;
  1718. new unjailtimer;
  1719. new pickuptimer;
  1720. new autokicktimer;
  1721. new productiontimer;
  1722. new checkgastimer;
  1723. new stoppedvehtimer;
  1724. new botanimtimer;
  1725. new claimedtimer;
  1726. new cartimer;
  1727. new pointtimer;
  1728. new addtimer = 60000;
  1729. new ciagateopen = 0;
  1730. new pdgategar = 0;
  1731. new pdgatebar = 0;
  1732. new pdbarriergateobj; //pdgate barrier object
  1733. new pdgaragegateobj; //pdgate garage object
  1734. new VIPSkins[] = { 294, 293, 295, 296, 291, 290, 298, 165, 147, 2 };
  1735. new STD1[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3};
  1736. new STD2[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3};
  1737. new STD3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3};
  1738. new STD4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3};
  1739. new SELLCAR1[] = { 1000, 1124, 1245, 1349, 1475, 1574, 1636, 1762, 1895, 1946, 2000 };
  1740. new SELLCAR2[] = { 2099, 2135, 2255, 2378, 2457, 2563, 2614, 2721, 2878, 2988, 3000 };
  1741. new SELLCAR3[] = { 3058, 3175, 3212, 3377, 3454, 3555, 3678, 3751, 3865, 3964, 4000 };
  1742. new SELLCAR4[] = { 4077, 4123, 4275, 4378, 4422, 4565, 4613, 4752, 4897, 4911, 5000 };
  1743. //new Float:PlayerPos[MAX_PLAYERS][6];
  1744. new Float:TeleportDest[MAX_PLAYERS][3];
  1745. new ChangeUniform[MAX_PLAYERS];
  1746. new FixCarTimer[MAX_PLAYERS];
  1747. new PickLockTimer[MAX_PLAYERS];
  1748. new LockPicking[MAX_PLAYERS];
  1749. new SellCarTimer[MAX_PLAYERS];
  1750. new ChangePassTimer[MAX_PLAYERS];
  1751. new StopAniTimer[MAX_PLAYERS];
  1752. new UseDrugsTimer[MAX_PLAYERS];
  1753. new UseBMTimer[MAX_PLAYERS];
  1754. new BMPurchased[MAX_PLAYERS];
  1755. new SellGunTimer[MAX_PLAYERS];
  1756. new UseTazerTimer[MAX_PLAYERS];
  1757. new UseDrinkTimer[MAX_PLAYERS];
  1758. new UseNewbieTimer[MAX_PLAYERS];
  1759. new UseAdmCmdTimer[MAX_PLAYERS];
  1760. new UseAcceptTimer[MAX_PLAYERS];
  1761. new Called911[MAX_PLAYERS];
  1762. new SpectatedID[MAX_PLAYERS];
  1763. new SpectateType[MAX_PLAYERS];
  1764. new CanTalk[MAX_PLAYERS];
  1765. new PrisonCell[MAX_PLAYERS];
  1766. new BombID[MAX_PLAYERS];
  1767. new BombInCar[MAX_PLAYERS];
  1768. new HoldingDetonator[MAX_PLAYERS];
  1769. new Suitcaseaction[MAX_PLAYERS];
  1770. //new HoldingSuitcase[MAX_PLAYERS];
  1771. new gPlayerAnimLibsPreloaded[MAX_PLAYERS];
  1772. new Gas[MAX_VEHICLES];
  1773. new Refueling[MAX_PLAYERS];
  1774. new gPlayerSpawned[MAX_PLAYERS];
  1775. new CallDescription[MAX_PLAYERS][256];
  1776. new Float:OldHealth[MAX_PLAYERS],Float:OldArmour[MAX_PLAYERS];
  1777. //events
  1778. new Float: EventX, Float: EventY, Float: EventZ, EventInt, EventWorld;
  1779. new EventHP = 100, EventArmour = 0, ActiveEvent = 0, EventJoinText = 0, EventLocked = 0;
  1780. new EventWeapon1, EventWeapon2, EventWeapon3, EventWeapon4, EventWeapon5;
  1781. new EventText[128];
  1782. new IsAtEvent[MAX_PLAYERS];
  1783. new RefundingNumber[MAX_PLAYERS];
  1784. new RefundingID[MAX_PLAYERS];
  1785. new Params[4][8]; //ipinfo
  1786. new FileData[7][128]; //ipinfo
  1787.  
  1788. //RAMP
  1789. new RampToggle[MAX_PLAYERS];
  1790. new ramp;
  1791. //headshot
  1792. new RecentlyShot[MAX_PLAYERS];
  1793. //namechanges
  1794. // Doors
  1795. //new IsLSPDDoorOpen = 0;
  1796.  
  1797. //LSPD District 2
  1798. new PDGate, PDOpen;
  1799.  
  1800. enum SAZONE_MAIN
  1801. {
  1802. SAZONE_NAME[28],
  1803. Float:SAZONE_AREA[6]
  1804. };
  1805.  
  1806. //==============================================================================
  1807. static const gSAZones[][SAZONE_MAIN] = {
  1808.  
  1809. {"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
  1810. {"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
  1811. {"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
  1812. {"Arco del Oeste", {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
  1813. {"Avispa Country Club", {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
  1814. {"Avispa Country Club", {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
  1815. {"Avispa Country Club", {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
  1816. {"Avispa Country Club", {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
  1817. {"Avispa Country Club", {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
  1818. {"Avispa Country Club", {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
  1819. {"Back o Beyond", {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
  1820. {"Battery Point", {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
  1821. {"Bayside", {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
  1822. {"Bayside Marina", {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
  1823. {"Beacon Hill", {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
  1824. {"Blackfield", {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
  1825. {"Blackfield", {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
  1826. {"Blackfield Chapel", {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
  1827. {"Blackfield Chapel", {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
  1828. {"Blackfield Intersection", {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
  1829. {"Blackfield Intersection", {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
  1830. {"Blackfield Intersection", {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
  1831. {"Blackfield Intersection", {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
  1832. {"Blueberry", {104.50,-220.10,2.30,349.60,152.20,200.00}},
  1833. {"Blueberry", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
  1834. {"Blueberry Acres", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
  1835. {"Caligula's Palace", {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
  1836. {"Caligula's Palace", {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
  1837. {"Calton Heights", {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
  1838. {"Chinatown", {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
  1839. {"City Hall", {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
  1840. {"Come-A-Lot", {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
  1841. {"Commerce", {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
  1842. {"Commerce", {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
  1843. {"Commerce", {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
  1844. {"Commerce", {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
  1845. {"Commerce", {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
  1846. {"Commerce", {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
  1847. {"Conference Center", {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
  1848. {"Conference Center", {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
  1849. {"Cranberry Station", {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
  1850. {"Creek", {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
  1851. {"Dillimore", {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
  1852. {"Doherty", {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
  1853. {"Doherty", {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
  1854. {"Downtown", {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
  1855. {"Downtown", {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
  1856. {"Downtown", {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
  1857. {"Downtown", {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
  1858. {"Downtown", {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
  1859. {"Downtown", {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
  1860. {"Downtown Los Santos", {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
  1861. {"Downtown Los Santos", {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
  1862. {"Downtown Los Santos", {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
  1863. {"Downtown Los Santos", {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
  1864. {"Downtown Los Santos", {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
  1865. {"Downtown Los Santos", {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
  1866. {"Downtown Los Santos", {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
  1867. {"Downtown Los Santos", {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
  1868. {"Downtown Los Santos", {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
  1869. {"East Beach", {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
  1870. {"East Beach", {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
  1871. {"East Beach", {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
  1872. {"East Beach", {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
  1873. {"East Los Santos", {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
  1874. {"East Los Santos", {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
  1875. {"East Los Santos", {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
  1876. {"East Los Santos", {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
  1877. {"East Los Santos", {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
  1878. {"East Los Santos", {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
  1879. {"East Los Santos", {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
  1880. {"Easter Basin", {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
  1881. {"Easter Basin", {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
  1882. {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
  1883. {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
  1884. {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
  1885. {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
  1886. {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
  1887. {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
  1888. {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
  1889. {"Easter Bay Airport", {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
  1890. {"Easter Bay Chemicals", {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
  1891. {"Easter Bay Chemicals", {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
  1892. {"El Castillo del Diablo", {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
  1893. {"El Castillo del Diablo", {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
  1894. {"El Castillo del Diablo", {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
  1895. {"El Corona", {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
  1896. {"El Corona", {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
  1897. {"El Quebrados", {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
  1898. {"Esplanade East", {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
  1899. {"Esplanade East", {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
  1900. {"Esplanade East", {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
  1901. {"Esplanade North", {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
  1902. {"Esplanade North", {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
  1903. {"Esplanade North", {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
  1904. {"Fallen Tree", {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
  1905. {"Fallow Bridge", {434.30,366.50,0.00,603.00,555.60,200.00}},
  1906. {"Fern Ridge", {508.10,-139.20,0.00,1306.60,119.50,200.00}},
  1907. {"Financial", {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
  1908. {"Fisher's Lagoon", {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
  1909. {"Flint Intersection", {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
  1910. {"Flint Range", {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
  1911. {"Fort Carson", {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
  1912. {"Foster Valley", {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
  1913. {"Foster Valley", {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
  1914. {"Foster Valley", {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
  1915. {"Foster Valley", {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
  1916. {"Frederick Bridge", {2759.20,296.50,0.00,2774.20,594.70,200.00}},
  1917. {"Gant Bridge", {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
  1918. {"Gant Bridge", {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
  1919. {"Ganton", {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
  1920. {"Ganton", {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
  1921. {"Garcia", {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
  1922. {"Garcia", {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
  1923. {"Garver Bridge", {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
  1924. {"Garver Bridge", {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
  1925. {"Garver Bridge", {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
  1926. {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
  1927. {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
  1928. {"Glen Park", {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
  1929. {"Green Palms", {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
  1930. {"Greenglass College", {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
  1931. {"Greenglass College", {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
  1932. {"Hampton Barns", {603.00,264.30,0.00,761.90,366.50,200.00}},
  1933. {"Hankypanky Point", {2576.90,62.10,0.00,2759.20,385.50,200.00}},
  1934. {"Harry Gold Parkway", {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
  1935. {"Hashbury", {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
  1936. {"Hilltop Farm", {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
  1937. {"Hunter Quarry", {337.20,710.80,-115.20,860.50,1031.70,203.70}},
  1938. {"Idlewood", {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
  1939. {"Idlewood", {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
  1940. {"Idlewood", {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
  1941. {"Idlewood", {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
  1942. {"Idlewood", {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
  1943. {"Idlewood", {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
  1944. {"Jefferson", {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
  1945. {"Jefferson", {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
  1946. {"Jefferson", {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
  1947. {"Jefferson", {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
  1948. {"Jefferson", {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
  1949. {"Jefferson", {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
  1950. {"Julius Thruway East", {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
  1951. {"Julius Thruway East", {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
  1952. {"Julius Thruway East", {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
  1953. {"Julius Thruway East", {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
  1954. {"Julius Thruway North", {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
  1955. {"Julius Thruway North", {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
  1956. {"Julius Thruway North", {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
  1957. {"Julius Thruway North", {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
  1958. {"Julius Thruway North", {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
  1959. {"Julius Thruway North", {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
  1960. {"Julius Thruway North", {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
  1961. {"Julius Thruway North", {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
  1962. {"Julius Thruway South", {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
  1963. {"Julius Thruway South", {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
  1964. {"Julius Thruway West", {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
  1965. {"Julius Thruway West", {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
  1966. {"Juniper Hill", {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
  1967. {"Juniper Hollow", {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
  1968. {"K.A.C.C. Military Fuels", {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
  1969. {"Kincaid Bridge", {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
  1970. {"Kincaid Bridge", {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
  1971. {"Kincaid Bridge", {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
  1972. {"King's", {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
  1973. {"King's", {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
  1974. {"King's", {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
  1975. {"LVA Freight Depot", {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
  1976. {"LVA Freight Depot", {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
  1977. {"LVA Freight Depot", {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
  1978. {"LVA Freight Depot", {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
  1979. {"LVA Freight Depot", {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
  1980. {"Las Barrancas", {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
  1981. {"Las Brujas", {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
  1982. {"Las Colinas", {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
  1983. {"Las Colinas", {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
  1984. {"Las Colinas", {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
  1985. {"Las Colinas", {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
  1986. {"Las Colinas", {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
  1987. {"Las Colinas", {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
  1988. {"Las Colinas", {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
  1989. {"Las Payasadas", {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
  1990. {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
  1991. {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
  1992. {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
  1993. {"Las Venturas Airport", {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
  1994. {"Last Dime Motel", {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
  1995. {"Leafy Hollow", {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
  1996. {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
  1997. {"Lil' Probe Inn", {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
  1998. {"Linden Side", {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
  1999. {"Linden Station", {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
  2000. {"Linden Station", {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
  2001. {"Little Mexico", {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
  2002. {"Little Mexico", {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
  2003. {"Los Flores", {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
  2004. {"Los Flores", {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
  2005. {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
  2006. {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
  2007. {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
  2008. {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
  2009. {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
  2010. {"Los Santos International", {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
  2011. {"Marina", {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
  2012. {"Marina", {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
  2013. {"Marina", {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
  2014. {"Market", {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
  2015. {"Market", {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
  2016. {"Market", {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
  2017. {"Market", {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
  2018. {"Market Station", {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
  2019. {"Martin Bridge", {-222.10,293.30,0.00,-122.10,476.40,200.00}},
  2020. {"Missionary Hill", {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
  2021. {"Montgomery", {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
  2022. {"Montgomery", {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
  2023. {"Montgomery Intersection", {1546.60,208.10,0.00,1745.80,347.40,200.00}},
  2024. {"Montgomery Intersection", {1582.40,347.40,0.00,1664.60,401.70,200.00}},
  2025. {"Mulholland", {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
  2026. {"Mulholland", {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
  2027. {"Mulholland", {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
  2028. {"Mulholland", {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
  2029. {"Mulholland", {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
  2030. {"Mulholland", {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
  2031. {"Mulholland", {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
  2032. {"Mulholland", {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
  2033. {"Mulholland", {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
  2034. {"Mulholland", {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
  2035. {"Mulholland", {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
  2036. {"Mulholland", {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
  2037. {"Mulholland", {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
  2038. {"Mulholland Intersection", {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
  2039. {"North Rock", {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
  2040. {"Ocean Docks", {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
  2041. {"Ocean Docks", {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
  2042. {"Ocean Docks", {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
  2043. {"Ocean Docks", {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
  2044. {"Ocean Docks", {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
  2045. {"Ocean Docks", {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
  2046. {"Ocean Docks", {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
  2047. {"Ocean Flats", {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
  2048. {"Ocean Flats", {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
  2049. {"Ocean Flats", {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
  2050. {"Octane Springs", {338.60,1228.50,0.00,664.30,1655.00,200.00}},
  2051. {"Old Venturas Strip", {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
  2052. {"Palisades", {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
  2053. {"Palomino Creek", {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
  2054. {"Paradiso", {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
  2055. {"Pershing Square", {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
  2056. {"Pilgrim", {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
  2057. {"Pilgrim", {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
  2058. {"Pilson Intersection", {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
  2059. {"Pirates in Men's Pants", {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
  2060. {"Playa del Seville", {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
  2061. {"Prickle Pine", {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
  2062. {"Prickle Pine", {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
  2063. {"Prickle Pine", {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
  2064. {"Prickle Pine", {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
  2065. {"Queens", {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
  2066. {"Queens", {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
  2067. {"Queens", {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
  2068. {"Randolph Industrial Estate", {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
  2069. {"Redsands East", {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
  2070. {"Redsands East", {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
  2071. {"Redsands East", {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
  2072. {"Redsands West", {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
  2073. {"Redsands West", {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
  2074. {"Redsands West", {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
  2075. {"Redsands West", {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
  2076. {"Regular Tom", {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
  2077. {"Richman", {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
  2078. {"Richman", {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
  2079. {"Richman", {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
  2080. {"Richman", {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
  2081. {"Richman", {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
  2082. {"Richman", {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
  2083. {"Richman", {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
  2084. {"Richman", {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
  2085. {"Richman", {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
  2086. {"Richman", {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
  2087. {"Robada Intersection", {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
  2088. {"Roca Escalante", {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
  2089. {"Roca Escalante", {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
  2090. {"Rockshore East", {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
  2091. {"Rockshore West", {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
  2092. {"Rockshore West", {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
  2093. {"Rodeo", {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
  2094. {"Rodeo", {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
  2095. {"Rodeo", {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
  2096. {"Rodeo", {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
  2097. {"Rodeo", {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
  2098. {"Rodeo", {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
  2099. {"Rodeo", {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
  2100. {"Rodeo", {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
  2101. {"Rodeo", {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
  2102. {"Rodeo", {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
  2103. {"Rodeo", {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
  2104. {"Rodeo", {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
  2105. {"Royal Casino", {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
  2106. {"San Andreas Sound", {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
  2107. {"Santa Flora", {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
  2108. {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
  2109. {"Santa Maria Beach", {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
  2110. {"Shady Cabin", {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
  2111. {"Shady Creeks", {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
  2112. {"Shady Creeks", {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
  2113. {"Sobell Rail Yards", {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
  2114. {"Spinybed", {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
  2115. {"Starfish Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
  2116. {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
  2117. {"Starfish Casino", {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
  2118. {"Temple", {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
  2119. {"Temple", {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
  2120. {"Temple", {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
  2121. {"Temple", {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
  2122. {"Temple", {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
  2123. {"Temple", {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
  2124. {"The Camel's Toe", {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
  2125. {"The Clown's Pocket", {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
  2126. {"The Emerald Isle", {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
  2127. {"The Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
  2128. {"The Four Dragons Casino", {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
  2129. {"The High Roller", {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
  2130. {"The Mako Span", {1664.60,401.70,0.00,1785.10,567.20,200.00}},
  2131. {"The Panopticon", {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
  2132. {"The Pink Swan", {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
  2133. {"The Sherman Dam", {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
  2134. {"The Strip", {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
  2135. {"The Strip", {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
  2136. {"The Strip", {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
  2137. {"The Strip", {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
  2138. {"The Visage", {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
  2139. {"The Visage", {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
  2140. {"Unity Station", {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
  2141. {"Valle Ocultado", {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
  2142. {"Verdant Bluffs", {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
  2143. {"Verdant Bluffs", {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
  2144. {"Verdant Bluffs", {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
  2145. {"Verdant Meadows", {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
  2146. {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
  2147. {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
  2148. {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
  2149. {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
  2150. {"Verona Beach", {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
  2151. {"Vinewood", {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
  2152. {"Vinewood", {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
  2153. {"Vinewood", {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
  2154. {"Vinewood", {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
  2155. {"Whitewood Estates", {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
  2156. {"Whitewood Estates", {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
  2157. {"Willowfield", {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
  2158. {"Willowfield", {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
  2159. {"Willowfield", {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
  2160. {"Willowfield", {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
  2161. {"Willowfield", {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
  2162. {"Willowfield", {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
  2163. {"Willowfield", {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
  2164. {"Yellow Bell Station", {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
  2165. {"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
  2166. {"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
  2167. {"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
  2168. {"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
  2169. {"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
  2170. {"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
  2171. {"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
  2172. {"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
  2173. {"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
  2174. };
  2175.  
  2176. new TazerHolster[MAX_PLAYERS];
  2177.  
  2178. //PICKUPS
  2179. new iVIPLounge1;
  2180. new iVIPSpas12;
  2181. new iVIPM4;
  2182. new iVIPAK47;
  2183. new iVIPHP;
  2184. new iVIPARMOR;
  2185. new iVIPCRACK;
  2186. new iVIPKNIFE;
  2187. new iHeal1;
  2188. new iHeal2;
  2189. new iDrughouse;
  2190. new iCracklab;
  2191. new iMget1;
  2192. new iMget2;
  2193. new iMget3;
  2194. new iCrateGet;
  2195. new iClothes;
  2196. new iArrest1;
  2197. new iArrest2;
  2198. new iArrest3;
  2199. new iArrest4;
  2200. new iDeliver;
  2201. new iSprunk;
  2202. new iFBI;
  2203. new ipaintball;
  2204. new iVault;
  2205. new Text3D:VehicleLabel[MAX_VEHICLES];
  2206. new iDetective;
  2207. new iProd;
  2208. new iProd2;
  2209. new iLawyer;
  2210. new iDealer;
  2211. new iMechanic;
  2212. new iBodyguard;
  2213. new iArms;
  2214. new iTaxi;
  2215. new iSmuggler;
  2216. new iTraining;
  2217. //new iTrashman; // Trashman
  2218. //new iTrashUniform;
  2219.  
  2220. new para;
  2221. new dildo;
  2222. new poolcue;
  2223. //dion
  2224.  
  2225. new PlayerCell; // COMMENTED
  2226. new iOrder;
  2227. new iOrder2;
  2228. new iPoint1;
  2229. new iPoint2;
  2230. new iPoint3;
  2231. new iPoint4;
  2232.  
  2233. new CheckNumber[MAX_PLAYERS];
  2234.  
  2235.  
  2236. new vehName[][] = // array for vehicle names to be displayed
  2237. {
  2238. "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster",
  2239. "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
  2240. "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer",
  2241. "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach",
  2242. "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow",
  2243. "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
  2244. "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic",
  2245. "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton",
  2246. "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher",
  2247. "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick",
  2248. "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher",
  2249. "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain",
  2250. "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck",
  2251. "Fortune", "Cadrona", "SWAT Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan",
  2252. "Blade", "Streak", "Freight", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder",
  2253. "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster",
  2254. "Uranus", "Jester", "Sultan", "Stratium", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
  2255. "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30",
  2256. "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
  2257. "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Car", "SFPD Car", "LVPD Car",
  2258. "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs",
  2259. "Boxville", "Tiller", "Utility Trailer"
  2260. };
  2261.  
  2262. new VehicleFriendlyNames[212][] = {
  2263. {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},
  2264. {"Dumper"},{"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},
  2265. {"Pony"},{"Mule"},{"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},
  2266. {"Washington"},{"Bobcat"},{"Mr. Whoopee"},{"BF. Injection"},{"Hunter"},{"Premier"},{"Enforcer"},
  2267. {"Securicar"},{"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Article Trailer"},
  2268. {"Previon"},{"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
  2269. {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Article Trailer 2"},{"Turismo"},{"Speeder"},
  2270. {"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},{"Skimmer"},
  2271. {"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},{"Sanchez"},
  2272. {"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"},
  2273. {"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},
  2274. {"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},{"Jetmax"},{"Hotring"},
  2275. {"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},{"Mesa"},{"RC Goblin"},
  2276. {"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},{"Super GT"},{"Elegant"},
  2277. {"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},{"Tanker"},{"Roadtrain"},
  2278. {"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},
  2279. {"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},
  2280. {"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},{"Freight"},{"Streak"},
  2281. {"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},
  2282. {"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},
  2283. {"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},
  2284. {"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},{"Freight Flat"},{"Streak Carriage"},
  2285. {"Kart"},{"Mower"},{"Dunerider"},{"Sweeper"},{"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},
  2286. {"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Article Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Mobile Hotdog"},
  2287. {"Club"},{"Freight Carriage"},{"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},
  2288. {"Police Car (SFPD)"},{"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T Van"},{"Alpha"},
  2289. {"Phoenix"},{"Glendale"},{"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},
  2290. {"Boxville"},{"Farm Plow"},{"Utility Trailer"}
  2291. };
  2292.  
  2293. stock GetVehicleFriendlyName(vehicleid)
  2294. {
  2295. new GVFNstring[56];
  2296. format(GVFNstring, sizeof(GVFNstring), VehicleFriendlyNames[GetVehicleModel(vehicleid)-400]);
  2297. return GVFNstring;
  2298. }
  2299.  
  2300. static invalidskins[] = {1,2,3,4,5,7,12,15,17,18,21,23,26,27,30,32,33,34,40,41,50,51,60,64,73,76,85,98,103,106,114,118,136,142,148,152,154,157,160,166,172,197,204,207,214,241,245,248,252,254,259,268,269,272,276,277,278,282,283,284,286,287,288,292};
  2301.  
  2302. static Float: SkinOffSet2[299][6] = {
  2303. {0.135928, 0.002891, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 0
  2304. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 1
  2305. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 2
  2306. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 3
  2307. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 4
  2308. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 5
  2309. {0.155785, 0.005998, -0.014326, 0.000000, 0.000000, 347.188201},//Skin - 6
  2310. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 7
  2311. {0.131067, -0.013737, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 8
  2312. {0.118922, -0.015322, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 9
  2313. {0.125779, -0.001459, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 10
  2314. {0.129249, -0.014101, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 11
  2315. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 12
  2316. {0.161076, -0.015624, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 13
  2317. {0.112204, -0.023196, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 14
  2318. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 15
  2319. {0.150166, -0.008718, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 16
  2320. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 17
  2321. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 18
  2322. {0.153609, -0.003207, -0.007717, 0.000000, 0.000000, 357.608825},//Skin - 19
  2323. {0.143831, 0.001813, -0.010588, 0.000000, 0.000000, 357.608825}, //Skin - 20
  2324. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 21
  2325. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 22
  2326. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 23
  2327. {0.127352, 0.009877, -0.006845, 0.726156, 359.666778, 348.825012},//Skin - 24
  2328. {0.124666, -0.029373, -0.006845, 0.726156, 359.666778, 329.940704},//Skin - 25
  2329. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 26
  2330. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 27
  2331. {0.128768, 0.041474, -0.007667, 0.726156, 359.666778, 355.429199}, //Skin - 28
  2332. {0.166457, -0.006228, -0.012669, 0.726156, 359.666778, 354.612152},//Skin - 29
  2333. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 30
  2334. {0.096077, -0.023233, -0.009101, 0.726156, 359.666778, 343.094055},//Skin - 31
  2335. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 32
  2336. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 33
  2337. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 34
  2338. {0.155565, 0.014400, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 35
  2339. {0.156485, 0.013641, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 36
  2340. {0.144815, 0.013641, -0.009374, 0.726156, 359.666778, 350.562103}, //Skin - 37
  2341. {0.113347, -0.006682, -0.009374, 0.726156, 359.666778, 350.562103},//Skin - 38
  2342. {0.147231, -0.014448, -0.004786, 0.726156, 359.666778, 357.303253},//Skin - 39
  2343. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 40
  2344. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 41
  2345. {0.082446, 0.004202, -0.004786, 0.726156, 359.666778, 357.303253}, //Skin - 42
  2346. {0.104901, 0.004013, -0.004786, 0.726156, 359.666778, 342.983184}, //Skin - 43
  2347. {0.116172, -0.001954, -0.004786, 0.726156, 359.666778, 357.100677},//Skin - 44
  2348. {0.153321, 0.025744, -0.008666, 0.726156, 359.666778, 10.704365}, //Skin - 45
  2349. {0.160556, 0.007781, -0.010438, 0.726156, 359.666778, 0.991972}, //Skin - 46
  2350. {0.179010, -0.035613, -0.010438, 0.726156, 359.666778, 347.956573},//Skin - 47
  2351. {0.123363, 0.008694, -0.010438, 0.726156, 359.666778, 347.956573}, //Skin - 48
  2352. {0.167061, -0.037899, -0.010438, 0.726156, 359.666778, 347.775817},//Skin - 49
  2353. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 50
  2354. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 51
  2355. {0.129040, 0.016069, -0.010438, 0.726156, 359.666778, 347.775817}, //Skin - 52
  2356. {0.129040, 0.016069, -0.006084, 0.726156, 359.666778, 347.775817}, //Skin - 53
  2357. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 54
  2358. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 55
  2359. {0.174539, -0.000662, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 56
  2360. {0.109382, -0.002955, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 57
  2361. {0.152276, -0.029331, -0.008357, 0.726156, 359.666778, 332.070648},//Skin - 58
  2362. {0.129599, -0.019172, -0.012204, 0.726156, 359.666778, 332.070648},//Skin - 59
  2363. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 60
  2364. {0.130350, 0.000897, -0.000747, 0.726156, 359.666778, 332.070648}, //Skin - 61
  2365. {0.150659, -0.035485, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 62
  2366. {0.119340, -0.006483, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 63
  2367. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 64
  2368. {0.133055, -0.000092, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 65
  2369. {0.129061, -0.006499, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 66
  2370. {0.127292, 0.010318, -0.006299, 0.726156, 359.666778, 341.617431}, //Skin - 67
  2371. {0.138791, -0.025311, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 68
  2372. {0.148132, 0.003970, -0.002304, 0.726156, 359.666778, 340.120025}, //Skin - 69
  2373. {0.129753, 0.006469, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 70
  2374. {0.125663, 0.015428, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 71
  2375. {0.125663, 0.015428, -0.009030, 0.726156, 359.666778, 354.029815}, //Skin - 72
  2376. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 73
  2377. {0.135729, -0.018656, -0.013554, 0.000000, 0.000000, 337.893737}, //Skin - 74
  2378. {0.141888, -0.042810, -0.006206, 0.000000, 0.000000, 337.893737}, //Skin - 75
  2379. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 76
  2380. {0.124348, -0.017813, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 77
  2381. {0.124348, 0.000583, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 78
  2382. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 79
  2383. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 81
  2384. {0.167928, 0.031601, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 82
  2385. {0.159998, 0.023540, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 83
  2386. {0.169630, 0.019315, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 84
  2387. {0.163052, -0.039735, -0.006206, 0.000000, 0.000000, 341.169891}, //Skin - 85
  2388. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 86
  2389. {0.144811, -0.007521, -0.014207, 0.000000, 0.000000, 341.169891}, //Skin - 87
  2390. {0.129932, -0.007521, -0.007289, 0.000000, 0.000000, 341.169891}, //Skin - 88
  2391. {0.151147, -0.038608, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 89
  2392. {0.147416, -0.031632, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 90
  2393. {0.157728, -0.009677, -0.009597, 0.000000, 0.000000, 0.934848}, //Skin - 91
  2394. {0.136577, -0.015592, -0.009597, 0.000000, 0.000000, 341.013824}, //Skin - 92
  2395. {0.143821, 0.000631, -0.008385, 0.000000, 0.000000, 358.808868}, //Skin - 93
  2396. {0.100521, 0.003151, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 94
  2397. {0.122833, -0.006031, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 95
  2398. {0.145296, 0.003959, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 96
  2399. {0.141658, 0.016474, -0.007624, 0.000000, 0.000000, 9.683902}, //Skin - 97
  2400. {0.145276, -0.002846, -0.007624, 0.000000, 0.000000, 340.239593}, //Skin - 98
  2401. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 99
  2402. {0.161745, -0.010244, -0.007624, 0.000000, 0.000000, 351.499267}, //Skin - 100
  2403. {0.151006, -0.030994, -0.005366, 0.000000, 0.000000, 340.428894}, //Skin - 101
  2404. {0.147111, 0.003794, -0.012433, 0.000000, 0.000000, 358.069244}, //Skin - 102
  2405. {0.154213, -0.052348, -0.003511, 356.299316, 0.000000, 336.751647},//Skin - 103
  2406. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 104
  2407. {0.153814, -0.039614, -0.006756, 356.299316, 0.000000, 336.930084},//Skin - 105
  2408. {0.153638, -0.039614, -0.013630, 356.299316, 0.000000, 336.930084},//Skin - 106
  2409. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 107
  2410. {0.140473, -0.026201, -0.000469, 0.390689, 355.405181, 335.554260},//Skin - 108
  2411. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 109
  2412. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 110
  2413. {0.134860, 0.001485, -0.010145, 0.390689, 358.632415, 347.730010},//Skin - 111
  2414. {0.124823, 0.001485, -0.009402, 0.390689, 358.632415, 347.730010},//Skin - 112
  2415. {0.157999, -0.012039, -0.006082, 0.390689, 358.632415, 347.730010},//Skin - 113
  2416. {0.144906, -0.005139, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 114
  2417. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 116
  2418. {0.152829, -0.009735, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 117
  2419. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 118
  2420. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 119
  2421. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin -120
  2422. {0.154275, -0.037484, -0.009654, 0.390689, 358.632415, 337.676666},//Skin - 121
  2423. {0.155674, -0.015613, -0.004339, 0.390689, 358.632415, 350.571228},//Skin - 122
  2424. {0.136433, -0.019181, -0.004339, 0.390689, 358.632415, 340.261840},//Skin - 123
  2425. {0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840},//Skin - 124
  2426. {0.153242, -0.029651, -0.002434, 0.390689, 358.632415, 333.367614},//Skin - 125
  2427. {0.127978, -0.001961, -0.008867, 0.390689, 358.632415, 347.279052},//Skin - 126
  2428. {0.160856, -0.025356, -0.004428, 0.390689, 358.632415, 347.279052},//Skin - 127
  2429. {0.150266, -0.009032, -0.006781, 0.390689, 358.632415, 347.223754},//Skin - 128
  2430. {0.158060, 0.022907, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 129
  2431. {0.111739, 0.012673, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 130
  2432. {0.091638, -0.011600, -0.008686, 0.390689, 358.632415, 336.674468},//Skin - 131
  2433. {0.125788, 0.000635, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 132
  2434. {0.031324, -0.014154, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 133
  2435. {0.142321, 0.015417, -0.005915, 0.243191, 358.632415, 350.329559},//Skin - 133
  2436. {0.128780, -0.030750, 0.006687, 173.184967, 358.632415, 27.422966},//Skin - 134
  2437. {0.115882, -0.004931, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 135
  2438. {0.127531, -0.008916, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 136
  2439. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 137
  2440. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 138
  2441. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 139
  2442. {0.147315, 0.001708, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 140
  2443. {0.144315, -0.013571, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 141
  2444. {0.144315, -0.002729, -0.010357, 358.837646, 358.632415, 354.390045},//Skin - 142
  2445. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 143
  2446. {0.177516, -0.070868, -0.009114, 358.837646, 358.632415, 331.679321},//Skin - 144
  2447. {0.139578, -0.008750, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 145
  2448. {0.139578, -0.014406, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 146
  2449. {0.115592, -0.010754, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 147
  2450. {0.150735, -0.000459, -0.004405, 358.837646, 358.632415, 9.362450},//Skin - 148
  2451. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 149
  2452. {0.149485, -0.008709, -0.006168, 358.837646, 358.632415, 2.276566},//Skin - 150
  2453. {0.168162, -0.009708, -0.012160, 359.504821, 4.442328, 355.348114},//Skin - 151
  2454. {0.156369, -0.024521, -0.012160, 359.504821, 0.415596, 355.348114},//Skin - 152
  2455. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 153
  2456. {0.119297, -0.016080, -0.010776, 359.504821, 0.415596, 341.522827},//Skin - 154
  2457. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 155
  2458. {0.172295, -0.065549, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 156
  2459. {0.126340, -0.030764, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 157
  2460. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 158
  2461. {0.154280, 0.002166, -0.010436, 359.504821, 0.415596, 357.792144},//Skin - 159
  2462. {0.121469, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 160
  2463. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 161
  2464. {0.139495, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 162
  2465. {0.113212, -0.005302, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 163
  2466. {0.120208, 0.003533, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 164
  2467. {0.135111, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 165
  2468. {0.122118, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 166
  2469. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 167
  2470. {0.125229, 0.005091, -0.013084, 359.504821, 0.415596, 352.954559},//Skin - 168
  2471. {0.153451, -0.018119, -0.013276, 359.504821, 0.415596, 358.219451},//Skin - 169
  2472. {0.141395, -0.009131, -0.013276, 359.504821, 0.415596, 347.866027},//Skin - 170
  2473. {0.157631, -0.028753, -0.006450, 359.504821, 0.415596, 339.935516},//Skin - 171
  2474. {0.152687, -0.027057, -0.007731, 359.504821, 0.415596, 344.054809},//Skin - 172
  2475. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 173
  2476. {0.165146, 0.015393, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 174
  2477. {0.162788, -0.019696, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 175
  2478. {0.157728, -0.027188, -0.012891, 359.504821, 0.415596, 345.804748},//Skin - 176
  2479. {0.187507, 0.010472, -0.012891, 359.504821, 0.415596, 12.315887},//Skin - 177
  2480. {0.153901, -0.027720, -0.007884, 359.504821, 0.415596, 344.553527},//Skin - 178
  2481. {0.137445, -0.009757, -0.012987, 359.504821, 0.415596, 344.553527},//Skin - 179
  2482. {0.173041, -0.006323, -0.012987, 359.504821, 0.415596, 3.267552},//Skin - 180
  2483. {0.143467, 0.016897, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 181
  2484. {0.114480, 0.006202, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 182
  2485. {0.114480, 0.008813, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 183
  2486. {0.128122, -0.012152, -0.013144, 359.504821, 0.415596, 336.326538},//Skin - 184
  2487. {0.156171, 0.007268, -0.013144, 359.504821, 0.415596, 10.805211},//Skin - 185
  2488. {0.156409, -0.034861, -0.007927, 359.504821, 0.415596, 336.978668},//Skin - 186
  2489. {0.118034, -0.024105, -0.002947, 359.504821, 0.415596, 336.978668},//Skin - 187
  2490. {0.128686, -0.029632, -0.002947, 358.201873, 0.415596, 329.325042},//Skin - 188
  2491. {0.172639, -0.026749, -0.012705, 358.201873, 0.415596, 349.092590},//Skin - 189
  2492. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 190
  2493. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 191
  2494. {0.178725, -0.010278, -0.007224, 358.201873, 0.415596, 354.053405},//Skin - 192
  2495. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 193
  2496. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 194
  2497. {0.176089, -0.032526, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 195
  2498. {0.118042, 0.007002, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 196
  2499. {0.143840, -0.042712, -0.007556, 358.201873, 0.415596, 341.814422},//Skin - 197
  2500. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 198
  2501. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 199
  2502. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 200
  2503. {0.140799, 0.025145, -0.009754, 358.201873, 0.415596, 5.040688},//Skin - 201
  2504. {0.140799, 0.015851, -0.009754, 358.201873, 0.415596, 349.796478},//Skin - 202
  2505. {0.140799, -0.004372, -0.013685, 358.201873, 0.415596, 349.796478},//Skin - 203
  2506. {0.154274, 0.006245, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 204
  2507. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 205
  2508. {0.154274, 0.016669, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 206
  2509. {0.106604, 0.004805, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 207
  2510. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 208
  2511. {0.148378, -0.003807, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 209
  2512. {0.113854, 0.001969, -0.011840, 358.201873, 0.415596, 343.826263},//Skin - 210
  2513. {0.149539, -0.028623, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 211
  2514. {0.104024, -0.014549, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 212
  2515. {0.145820, -0.029160, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 213
  2516. {0.148646, -0.008515, -0.009621, 358.201873, 0.415596, 1.360260},//Skin - 214
  2517. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 215
  2518. {0.148646, -0.005935, -0.004058, 358.201873, 0.415596, 1.360260},//Skin - 216
  2519. {0.148646, -0.015611, -0.004058, 358.201873, 0.415596, 340.374938},//Skin - 217
  2520. {0.133952, -0.030138, -0.009880, 358.201873, 0.415596, 340.374938},//Skin - 218
  2521. {0.140503, -0.033425, -0.005693, 358.201873, 0.415596, 340.374938},//Skin - 219
  2522. {0.114608, 0.009020, -0.009135, 358.201873, 0.415596, 352.932006},//Skin - 220
  2523. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 221
  2524. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 222
  2525. {0.179908, -0.010779, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 223
  2526. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 224
  2527. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 225
  2528. {0.134990, -0.034685, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 226
  2529. {0.151760, 0.002680, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 227
  2530. {0.167410, -0.028664, -0.009135, 358.201873, 0.415596, 340.250427},//Skin - 228
  2531. {0.127699, -0.015571, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 229
  2532. {0.100555, -0.007753, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 230
  2533. {0.126940, 0.016886, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 231
  2534. {0.132949, -0.017515, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 232
  2535. {0.146124, -0.008425, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 233
  2536. {0.125714, -0.021018, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 234
  2537. {0.084982, -0.009809, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 235
  2538. {0.114669, -0.005190, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 236
  2539. {0.123264, -0.014946, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 237
  2540. {0.146656, -0.023925, -0.006749, 358.201873, 0.415596, 334.356781},//Skin - 238
  2541. {0.133769, -0.007373, -0.006749, 358.201873, 0.415596, 343.105895},//Skin - 239
  2542. {0.165378, -0.020173, -0.005869, 358.201873, 0.415596, 348.352233},//Skin - 240
  2543. {0.143331, -0.133577, -0.011472, 358.201873, 0.415596, 312.328857},//Skin - 241
  2544. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 242
  2545. {0.098602, 0.002084, -0.011472, 358.201873, 0.415596, 348.195495},//Skin - 243
  2546. {0.124240, -0.011682, -0.006423, 358.201873, 0.415596, 341.555999},//Skin - 244
  2547. {0.158155, -0.044311, -0.005439, 358.201873, 0.415596, 336.024902},//Skin - 245
  2548. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 246
  2549. {0.164307, -0.040974, -0.006797, 358.201873, 0.415596, 337.067047},//Skin - 247
  2550. {0.191578, -0.040435, -0.010605, 358.201873, 0.415596, 340.908203},//Skin - 248
  2551. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 249
  2552. {0.135208, -0.015243, -0.011916, 358.201873, 0.415596, 340.908203},//Skin - 250
  2553. {0.134272, -0.027377, -0.006035, 358.201873, 0.415596, 333.416168},//Skin - 251
  2554. {0.158813, -0.038977, -0.006035, 358.201873, 0.415596, 336.013519},//Skin - 252
  2555. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 253
  2556. {0.165106, -0.048880, -0.009719, 358.201873, 0.415596, 331.050933},//Skin - 254
  2557. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 255
  2558. {0.142586, 0.020829, -0.008549, 358.201873, 0.415596, 2.765411},//Skin - 256
  2559. {0.134018, -0.024462, -0.008549, 358.201873, 0.415596, 339.642486},//Skin - 257
  2560. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 258
  2561. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 259
  2562. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 260
  2563. {0.134710, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 261
  2564. {0.111691, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 262
  2565. {0.146077, -0.005195, -0.008114, 358.188964, 0.415596, 3.866970},//Skin - 263
  2566. {0.135858, -0.157842, -0.008114, 358.188964, 0.415596, 314.852203},//Skin - 264
  2567. {0.127964, 0.000132, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 265
  2568. {0.127964, -0.002646, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 266
  2569. {0.132329, -0.014261, -0.007384, 1.504234, 0.415596, 352.699432},//Skin - 267
  2570. {0.145951, -0.043442, -0.010053, 1.504234, 0.415596, 320.469390},//Skin - 268
  2571. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 269
  2572. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 270
  2573. {0.141851, -0.034538, -0.010580, 1.504234, 0.415596, 340.349456},//Skin - 271
  2574. {0.136473, -0.057088, -0.008204, 1.504234, 0.415596, 318.134399},//Skin - 272
  2575. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 273
  2576. {0.124270, 0.003252, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 274
  2577. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 275
  2578. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 276
  2579. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 277
  2580. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 278
  2581. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 279
  2582. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 280
  2583. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 281
  2584. {0.140515, 0.009018, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 282
  2585. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 283
  2586. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 284
  2587. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 285
  2588. {0.140515, 0.001933, -0.008204, 1.504234, 0.415596, 346.744995}, //Skin - 286
  2589. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 287
  2590. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 288
  2591. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 289
  2592. {0.128789, -0.014062, -0.007850, 1.504234, 0.415596, 340.341094},//Skin - 290
  2593. {0.158929, -0.027358, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 291
  2594. {0.113309, -0.012434, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 292
  2595. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 293
  2596. {0.158438, -0.023891, -0.007217, 1.504234, 0.415596, 337.298858},//Skin - 294
  2597. {0.145000, -0.032054, -0.007217, 1.504234, 0.415596, 336.385589},//Skin - 295
  2598. {0.139293, -0.069554, -0.010619, 1.504234, 0.415596, 320.746429},//Skin - 296
  2599. {0.148252, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 297
  2600. {0.126423, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 298
  2601. {0.144949, -0.040691, -0.008599, 1.504234, 0.415596, 320.729705}//Skin - 299
  2602. };
  2603.  
  2604.  
  2605. new Float:SkinOffSet[300][7] = {
  2606. {0.098771, 0.030772, -0.000335, 85.342658, 84.122947, 4.236968 }, // - 0
  2607. {0.100766, 0.028630, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 1
  2608. {0.083712, 0.033132, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 2
  2609. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 3
  2610. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 4
  2611. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 5
  2612. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 6
  2613. {0.090066, 0.043458, -0.006523, 87.936676, 82.110870, 4.236968 }, // - 7
  2614. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 8
  2615. {0.070977, 0.028663, 0.000147, 81.164970, 92.128402, 4.236968 }, // - 9
  2616. {0.072317, 0.032179, -0.002934, 86.843269, 84.196006, 4.236968 }, // - 10
  2617. {0.072317, 0.035465, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 11
  2618. {0.072317, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 12
  2619. {0.076569, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 13
  2620. {0.091310, 0.049169, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 14
  2621. {0.073734, 0.006292, -0.002755, 86.843269, 84.196006, 4.236968 }, // - 15
  2622. {0.092845, 0.040331, 0.000183, 86.843269, 82.864280, 4.236968 }, // - 16
  2623. {0.088241, 0.030184, -0.000157, 86.843269, 82.864280, 4.236968 }, // - 17
  2624. {0.061677, 0.029596, -0.007398, 86.843269, 82.864280, 4.236968 }, // - 18
  2625. {0.079911, 0.029596, -0.002934, 86.843269, 82.864280, 4.236968 }, // - 19
  2626. {0.095079, 0.029596, -0.001718, 85.261871, 86.296562, 4.236968 }, // - 20
  2627. {0.093728, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 21
  2628. {0.079585, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 22
  2629. {0.090786, 0.041737, -0.005263, 85.261871, 81.636192, 4.236968 }, // - 23
  2630. {0.085247, 0.026941, -0.000317, 85.261871, 81.636192, 4.236968 }, // - 24
  2631. {0.081646, 0.031448, -0.001113, 89.393653, 81.665985, 4.236968 }, // - 25
  2632. {0.083700, 0.033814, -0.001960, 86.436462, 81.665985, 4.236968 }, // - 26
  2633. {0.092498, 0.037321, -0.001960, 86.436462, 85.568023, 4.236968 }, // - 27
  2634. {0.097068, 0.041360, -0.007881, 86.771400, 85.568023, 4.236968 }, // - 28
  2635. {0.083456, 0.050595, 0.001011, 86.771400, 77.201461, 4.236968 }, // - 29
  2636. {0.076983, 0.047168, -0.006161, 86.771400, 74.329719, 4.236968 }, // - 30
  2637. {0.083798, 0.042184, -0.001869, 86.771400, 83.181861, 4.236968 }, // - 31
  2638. {0.053021, -0.000587, -0.001869, 86.771400, 66.859710, 4.236968 },// - 32
  2639. {0.034386, 0.013324, -0.001869, 86.771400, 80.314460, 4.236968 }, // - 33
  2640. {0.104669, 0.037365, -0.001403, 86.771400, 87.178382, 4.236968 }, // - 34
  2641. {0.102659, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 35
  2642. {0.107638, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 36
  2643. {0.107638, 0.035879, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 37
  2644. {0.107638, 0.041106, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 38
  2645. {0.080326, 0.035634, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 39
  2646. {0.080326, 0.027371, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 40
  2647. {0.084617, 0.039613, -0.001620, 86.771400, 93.020492, 4.236968 }, // - 41
  2648. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 42
  2649. {0.040075, 0.025445, -0.000974, 86.771400, 92.964149, 4.236968 }, // - 43
  2650. {0.077369, 0.028469, -0.000974, 86.771400, 78.435791, 4.236968 }, // - 44
  2651. {0.064145, 0.028684, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 45
  2652. {0.091993, 0.056559, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 46
  2653. {0.084582, 0.051277, -0.005034, 86.771400, 84.762802, 4.236968 }, // - 47
  2654. {0.092182, 0.042095, -0.003533, 86.771400, 84.762802, 4.236968 }, // - 48
  2655. {0.086866, 0.032203, -0.001021, 86.771400, 84.762802, 4.236968 }, // - 49
  2656. {0.099350, 0.009422, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 50
  2657. {0.099350, 0.030598, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 51
  2658. {0.099350, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 52
  2659. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 53
  2660. {0.079123, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 54
  2661. {0.063159, 0.029641, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 55
  2662. {0.070293, 0.029641, -0.000570, 86.771400, 84.762802, 4.236968 }, // - 56
  2663. {0.111305, 0.045368, -0.000570, 86.771400, 84.458084, 4.236968 }, // - 57
  2664. {0.084901, 0.020965, -0.000570, 86.771400, 79.542411, 4.236968 }, // - 58
  2665. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 59
  2666. {0.090164, 0.044163, -0.004754, 86.771400, 79.542411, 4.236968 }, // - 60
  2667. {0.087151, 0.041447, -0.000885, 90.928329, 89.598678, 0.000000 }, // - 61
  2668. {0.094350, 0.041447, 0.005717, 90.928329, 89.598678, 0.000000 }, // - 62
  2669. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 63
  2670. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 64
  2671. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 65
  2672. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 66
  2673. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 67
  2674. {0.087317, 0.039646, -0.004032, 90.928329, 89.598678, 0.000000 }, // - 68
  2675. {0.074873, 0.039646, -0.003072, 90.928329, 89.598678, 0.000000 }, // - 69
  2676. {0.090391, 0.042364, 0.005494, 90.928329, 89.598678, 0.000000 }, // - 70
  2677. {0.090391, 0.022298, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 71
  2678. {0.090391, 0.039580, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 72
  2679. {0.090391, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 73
  2680. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 74
  2681. {0.083113, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 75
  2682. {0.072957, 0.028956, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 76
  2683. {0.069398, 0.039981, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 77
  2684. {0.105738, 0.010001, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 78
  2685. {0.078264, 0.019668, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 79
  2686. {0.087377, 0.022096, -0.001993, 90.928329, 79.030494, 0.000000 }, // - 80
  2687. {0.087377, 0.022096, -0.001635, 90.928329, 79.030494, 0.000000 }, // - 81
  2688. {0.100623, 0.043063, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 82
  2689. {0.092528, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 83
  2690. {0.102086, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 84
  2691. {0.081954, 0.041672, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 85
  2692. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 86
  2693. {0.077010, 0.046925, -0.003438, 90.928329, 91.590301, 0.000000 }, // - 87
  2694. {0.069952, 0.042635, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 88
  2695. {0.093827, 0.019258, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 89
  2696. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 90
  2697. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 91
  2698. {0.066464, 0.038135, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 92
  2699. {0.066464, 0.038135, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 93
  2700. {0.048124, 0.010598, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 94
  2701. {0.084997, 0.006773, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 95
  2702. {0.100076, 0.026633, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 96
  2703. {0.061686, 0.027537, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 97
  2704. {0.098318, 0.053993, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 98
  2705. {0.098318, 0.033702, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 99
  2706. {0.086149, 0.042526, -0.001690, 90.928329, 77.587478, 0.000000 }, // - 100
  2707. {0.081864, 0.030555, -0.001690, 90.928329, 78.145759, 0.000000 }, // - 101
  2708. {0.081864, 0.047914, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 102
  2709. {0.089607, 0.036717, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 103
  2710. {0.079655, 0.042021, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 104
  2711. {0.091779, 0.037620, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 105
  2712. {0.084179, 0.035251, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 106
  2713. {0.089387, 0.040297, -0.006006, 90.928329, 78.145759, 0.000000 }, // - 107
  2714. {0.081930, 0.030756, 0.001523, 90.928329, 78.145759, 0.000000 }, // - 108
  2715. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 109
  2716. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 110
  2717. {0.106601, 0.028021, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 111
  2718. {0.096335, 0.015873, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 112
  2719. {0.105827, 0.046620, -0.001395, 90.928329, 90.217376, 0.000000 }, // - 113
  2720. {0.097520, 0.044296, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 114
  2721. {0.097408, 0.043470, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 115
  2722. {0.092588, 0.049832, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 116
  2723. {0.081444, 0.037602, -0.003125, 90.928329, 90.217376, 0.000000 }, // - 117
  2724. {0.078678, 0.037602, -0.001816, 90.928329, 90.217376, 0.000000 }, // - 118
  2725. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 119
  2726. {0.089214, 0.029291, -0.000784, 90.928329, 84.624763, 0.000000 }, // - 120
  2727. {0.086825, 0.033424, -0.000784, 90.928329, 77.233818, 0.000000 }, // - 121
  2728. {0.082869, 0.030783, -0.000950, 90.928329, 77.233818, 0.000000 }, // - 122
  2729. {0.096117, 0.048957, -0.006245, 90.928329, 87.579650, 0.000000 }, // - 123
  2730. {0.103663, 0.040022, 0.000449, 90.928329, 87.579650, 0.000000 }, // - 124
  2731. {0.099326, 0.031202, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 125
  2732. {0.099326, 0.031132, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 126
  2733. {0.099326, 0.039279, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 127
  2734. {0.099326, 0.047422, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 128
  2735. {0.088817, 0.021210, 0.000730, 90.928329, 87.579650, 0.000000 }, // - 129
  2736. {0.025784, 0.028323, 0.000730, 90.928329, 59.394767, 0.000000 }, // - 130
  2737. {0.068455, 0.031841, -0.004470, 90.928329, 79.979003, 0.000000 }, // - 131
  2738. {0.012930, 0.008392, -0.004470, 90.928329, 72.129173, 0.000000 }, // - 132
  2739. {0.102457, 0.032260, -0.003338, 90.928329, 84.534217, 0.000000 }, // - 133
  2740. {0.085976, 0.014956, -0.003338, 90.928329, 80.308830, 0.000000 }, // - 134
  2741. {0.071574, 0.028186, -0.001588, 90.928329, 80.308830, 0.000000 }, // - 135
  2742. {0.085219, 0.016666, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 136
  2743. {0.065114, 0.009318, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 137
  2744. {0.066890, 0.040024, -0.000738, 90.928329, 87.341934, 0.000000 }, // - 138
  2745. {0.072037, 0.036141, -0.000702, 90.928329, 87.341934, 0.000000 }, // - 139
  2746. {0.069108, 0.042194, -0.000436, 90.928329, 87.341934, 0.000000 }, // - 140
  2747. {0.058717, 0.043547, -0.000436, 90.928329, 87.209770, 0.000000 }, // - 141
  2748. {0.104196, 0.039601, -0.005481, 90.928329, 87.209770, 0.000000 }, // - 142
  2749. {0.090929, 0.045881, -0.012780, 90.928329, 87.209770, 0.000000 }, // - 143
  2750. {0.098291, 0.042464, -0.006952, 90.928329, 83.081665, 0.000000 }, // - 144
  2751. {0.080087, 0.030122, 0.000606, 90.928329, 83.081665, 0.000000 }, // - 145
  2752. {0.093500, 0.030690, -0.001545, 90.928329, 83.081665, 0.000000 }, // - 146
  2753. {0.079566, 0.020138, 0.004838, 90.928329, 73.715591, 0.000000 }, // - 147
  2754. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 148
  2755. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 149
  2756. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 150
  2757. {0.083426, 0.032359, -0.005717, 90.928329, 88.295433, 0.000000 }, // - 151
  2758. {0.072349, 0.019623, -0.000747, 90.928329, 82.624351, 0.000000 }, // - 152
  2759. {0.075065, 0.015351, 0.006545, 90.928329, 71.041442, 0.000000 }, // - 153
  2760. {0.062227, 0.029731, -0.004938, 90.928329, 84.602760, 0.000000 }, // - 154
  2761. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 155
  2762. {0.079936, 0.049000, -0.000304, 90.928329, 82.926010, 0.000000 }, // - 156
  2763. {0.067550, 0.035686, -0.000017, 90.928329, 82.926010, 0.000000 }, // - 157
  2764. {0.090676, 0.039383, -0.001726, 90.928329, 88.667900, 0.000000 }, // - 158
  2765. {0.090676, 0.039383, -0.003532, 90.928329, 88.667900, 0.000000 }, // - 159
  2766. {0.098662, 0.017441, -0.001589, 90.928329, 88.667900, 0.000000 }, // - 160
  2767. {0.105388, 0.038409, 0.003155, 90.928329, 88.667900, 0.000000 }, // - 161
  2768. {0.097415, 0.036904, -0.000525, 90.928329, 88.667900, 0.000000 }, // - 162
  2769. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 163
  2770. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 164
  2771. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 165
  2772. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 166
  2773. {0.095996, 0.038787, 0.000484, 90.928329, 84.315711, 0.000000 }, // - 167
  2774. {0.089094, 0.034001, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 168
  2775. {0.075700, 0.028082, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 169
  2776. {0.093751, 0.041968, -0.005545, 90.928329, 84.315711, 0.000000 }, // - 170
  2777. {0.090124, 0.031055, -0.000505, 90.928329, 84.315711, 0.000000 }, // - 171
  2778. {0.066033, 0.032915, -0.002713, 90.928329, 84.315711, 0.000000 }, // - 172
  2779. {0.088287, 0.045350, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 173
  2780. {0.087750, 0.042129, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 174
  2781. {0.092384, 0.039294, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 175
  2782. {0.097661, 0.039065, -0.006344, 90.928329, 80.736480, 0.000000 }, // - 176
  2783. {0.097114, 0.039641, -0.006692, 90.928329, 80.736480, 0.000000 }, // - 177
  2784. {0.069354, 0.039641, -0.000474, 90.928329, 80.736480, 0.000000 }, // - 178
  2785. {0.091414, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 179
  2786. {0.094914, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 180
  2787. {0.117232, 0.033217, -0.001099, 90.928329, 82.396362, 0.000000 }, // - 181
  2788. {0.082569, 0.032748, -0.003248, 90.928329, 87.394371, 0.000000 }, // - 182
  2789. {0.095527, 0.027237, -0.001960, 90.928329, 86.443649, 0.000000 }, // - 183
  2790. {0.095527, 0.040994, -0.006878, 90.928329, 86.443649, 0.000000 }, // - 184
  2791. {0.085663, 0.030601, -0.002345, 90.928329, 81.496513, 0.000000 }, // - 185
  2792. {0.085663, 0.030601, -0.001015, 90.928329, 81.496513, 0.000000 }, // - 186
  2793. {0.076527, 0.027211, 0.008500, 90.928329, 74.401092, 0.000000 }, // - 187
  2794. {0.096669, 0.032578, 0.001662, 90.928329, 83.502502, 0.000000 }, // - 188
  2795. {0.098753, 0.032129, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 189
  2796. {0.092821, 0.035572, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 190
  2797. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 191
  2798. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 192
  2799. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 193
  2800. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 194
  2801. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 195
  2802. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 196
  2803. {0.100630, 0.020568, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 197
  2804. {0.077905, 0.028523, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 198
  2805. {0.099095, 0.022463, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 199
  2806. {0.103182, 0.031106, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 200
  2807. {0.078426, 0.038546, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 201
  2808. {0.101092, 0.035797, -0.002997, 89.675476, 82.081153, 0.000000 }, // - 202
  2809. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 203
  2810. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 204
  2811. {0.092969, 0.027782, -0.002959, 89.675476, 84.463294, 0.000000 }, // - 205
  2812. {0.105109, 0.036128, -0.000471, 89.675476, 84.463294, 0.000000 }, // - 206
  2813. {0.066892, 0.024410, -0.002792, 89.675476, 84.463294, 0.000000 }, // - 207
  2814. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 208
  2815. {0.084046, 0.013608, -0.002792, 89.675476, 81.667831, 0.000000 }, // - 209
  2816. {0.084046, 0.013608, -0.001034, 89.675476, 81.667831, 0.000000 }, // - 210
  2817. {0.067610, 0.033777, -0.001034, 89.675476, 85.214485, 0.000000 }, // - 211
  2818. {0.094159, 0.020717, 0.000715, 89.675476, 85.214485, 0.000000 }, // - 212
  2819. {0.098744, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 213
  2820. {0.068755, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 214
  2821. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 215
  2822. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 216
  2823. {0.095765, 0.030034, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 217
  2824. {0.085486, 0.039427, -0.003311, 89.675476, 85.214485, 0.000000 }, // - 218
  2825. {0.068874, 0.027850, -0.001021, 89.675476, 85.214485, 0.000000 }, // - 219
  2826. {0.052931, 0.050390, -0.002062, 89.675476, 88.113647, 0.000000 }, // - 220
  2827. {0.094479, 0.034432, 0.000875, 89.675476, 83.572830, 0.000000 }, // - 221
  2828. {0.094479, 0.034432, -0.000596, 89.675476, 83.572830, 0.000000 }, // - 222
  2829. {0.094479, 0.062073, -0.003098, 89.675476, 83.572830, 0.000000 }, // - 223
  2830. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 224
  2831. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 225
  2832. {0.072095, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 226
  2833. {0.110619, 0.043037, -0.001466, 89.675476, 86.927627, 0.000000 }, // - 227
  2834. {0.099446, 0.050772, -0.001466, 89.675476, 85.103805, 0.000000 }, // - 228
  2835. {0.078635, 0.023680, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 229
  2836. {0.043357, 0.028726, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 230
  2837. {0.092488, 0.049972, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 231
  2838. {0.092488, 0.016739, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 232
  2839. {0.071677, 0.037055, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 233
  2840. {0.082745, 0.004209, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 234
  2841. {0.057909, 0.021331, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 235
  2842. {0.079016, 0.021331, -0.000419, 89.675476, 77.678733, 0.000000 }, // - 236
  2843. {0.074572, 0.021331, -0.000419, 89.675476, 84.527442, 0.000000 }, // - 237
  2844. {0.074572, 0.038346, -0.001500, 89.675476, 84.527442, 0.000000 }, // - 238
  2845. {0.111645, 0.011549, 0.006237, 89.675476, 84.527442, 0.000000 }, // - 239
  2846. {0.090766, 0.044221, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 240
  2847. {0.069491, 0.049021, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 241
  2848. {0.059706, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 242
  2849. {0.065242, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 243
  2850. {0.065242, 0.051077, -0.001103, 89.675476, 89.461883, 0.000000 }, // - 244
  2851. {0.082393, 0.038233, 0.000410, 89.675476, 89.461883, 0.000000 }, // - 245
  2852. {0.079338, 0.044859, -0.002535, 89.675476, 89.461883, 0.000000 }, // - 246
  2853. {0.101566, 0.037019, 0.000750, 89.675476, 83.514060, 0.000000 }, // - 247
  2854. {0.091887, 0.047776, -0.000040, 89.675476, 83.514060, 0.000000 }, // - 248
  2855. {0.089745, 0.044044, 0.004071, 89.675476, 83.514060, 0.000000 }, // - 249
  2856. {0.094214, 0.044044, -0.007274, 89.675476, 83.514060, 0.000000 }, // - 250
  2857. {0.072282, 0.044044, -0.001468, 89.675476, 90.444763, 0.000000 }, // - 251
  2858. {0.095764, 0.034224, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 252
  2859. {0.087454, 0.026208, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 253
  2860. {0.099198, 0.037362, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 254
  2861. {0.070845, 0.019943, 0.003505, 89.675476, 73.529716, 0.000000 }, // - 255
  2862. {0.065373, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 256
  2863. {0.070077, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 257
  2864. {0.089536, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 258
  2865. {0.084822, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 259
  2866. {0.093009, 0.031491, -0.001568, 89.675476, 83.002151, 0.000000 }, // - 260
  2867. {0.093009, 0.015023, -0.001477, 89.675476, 83.002151, 0.000000 }, // - 261
  2868. {0.076580, 0.039782, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 262
  2869. {0.076580, 0.028967, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 263
  2870. {0.075424, 0.043059, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 264
  2871. {0.089655, 0.021726, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 265
  2872. {0.096792, 0.014114, -0.003062, 89.675476, 85.166038, 0.000000 }, // - 266
  2873. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 267
  2874. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 268
  2875. {0.102252, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 269
  2876. {0.102252, 0.024989, 0.000529, 89.675476, 85.166038, 0.000000 }, // - 270
  2877. {0.096134, 0.025462, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 271
  2878. {0.099226, 0.032663, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 272
  2879. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 273
  2880. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 274
  2881. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 275
  2882. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 276
  2883. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 277
  2884. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 278
  2885. {0.087652, 0.059379, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 279
  2886. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 280
  2887. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 281
  2888. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 282
  2889. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 283
  2890. {0.090877, 0.053674, 0.009879, 89.675476, 88.636062, 0.000000 }, // - 284
  2891. {0.104320, 0.041487, 0.008021, 89.675476, 88.636062, 0.000000 }, // - 285
  2892. {0.087062, 0.021779, -0.003307, 89.675476, 88.636062, 0.000000 }, // - 286
  2893. {0.073173, 0.048856, 0.005337, 89.675476, 92.561180, 0.000000 }, // - 287
  2894. {0.090294, 0.027592, -0.003497, 89.675476, 92.561180, 0.000000 }, // - 288
  2895. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 289
  2896. {0.086562, 0.042698, -0.000612, 89.675476, 92.561180, 0.000000 }, // - 290
  2897. {0.096768, 0.039233, -0.000612, 89.675476, 83.550270, 0.000000 }, // - 291
  2898. {0.079939, 0.020731, -0.005162, 89.675476, 83.550270, 0.000000 }, // - 292
  2899. {0.097107, 0.027826, -0.005162, 89.675476, 88.505996, 0.000000 }, // - 293
  2900. {0.097107, 0.037636, 0.000618, 89.675476, 88.505996, 0.000000 }, // - 294
  2901. {0.079985, 0.035006, -0.000826, 89.675476, 87.533462, 0.000000 }, // - 295
  2902. {0.088445, 0.024209, -0.002076, 89.675476, 73.285072, 0.000000 }, // - 296
  2903. {0.094039, 0.035411, 0.000490, 89.675476, 84.277572, 0.000000 }, // - 297
  2904. {0.099553, 0.024683, -0.002919, 89.675476, 84.277572, 0.000000 }, // - 298
  2905. {0.099553, 0.044356, -0.000285, 89.675476, 84.277572, 0.000000 } // - 299
  2906. };
  2907.  
  2908.  
  2909. new Float:SkinOffSet3[300][7] = {
  2910. {0.098771, 0.030772, -0.000335, 85.342658, 84.122947, 4.236968 }, // - 0
  2911. {0.100766, 0.028630, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 1
  2912. {0.083712, 0.033132, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 2
  2913. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 3
  2914. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 4
  2915. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 5
  2916. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 6
  2917. {0.090066, 0.043458, -0.006523, 87.936676, 82.110870, 4.236968 }, // - 7
  2918. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 8
  2919. {0.070977, 0.028663, 0.000147, 81.164970, 92.128402, 4.236968 }, // - 9
  2920. {0.072317, 0.032179, -0.002934, 86.843269, 84.196006, 4.236968 }, // - 10
  2921. {0.072317, 0.035465, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 11
  2922. {0.072317, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 12
  2923. {0.076569, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 13
  2924. {0.091310, 0.049169, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 14
  2925. {0.073734, 0.006292, -0.002755, 86.843269, 84.196006, 4.236968 }, // - 15
  2926. {0.092845, 0.040331, 0.000183, 86.843269, 82.864280, 4.236968 }, // - 16
  2927. {0.088241, 0.030184, -0.000157, 86.843269, 82.864280, 4.236968 }, // - 17
  2928. {0.061677, 0.029596, -0.007398, 86.843269, 82.864280, 4.236968 }, // - 18
  2929. {0.079911, 0.029596, -0.002934, 86.843269, 82.864280, 4.236968 }, // - 19
  2930. {0.095079, 0.029596, -0.001718, 85.261871, 86.296562, 4.236968 }, // - 20
  2931. {0.093728, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 21
  2932. {0.079585, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 22
  2933. {0.090786, 0.041737, -0.005263, 85.261871, 81.636192, 4.236968 }, // - 23
  2934. {0.085247, 0.026941, -0.000317, 85.261871, 81.636192, 4.236968 }, // - 24
  2935. {0.081646, 0.031448, -0.001113, 89.393653, 81.665985, 4.236968 }, // - 25
  2936. {0.083700, 0.033814, -0.001960, 86.436462, 81.665985, 4.236968 }, // - 26
  2937. {0.092498, 0.037321, -0.001960, 86.436462, 85.568023, 4.236968 }, // - 27
  2938. {0.097068, 0.041360, -0.007881, 86.771400, 85.568023, 4.236968 }, // - 28
  2939. {0.083456, 0.050595, 0.001011, 86.771400, 77.201461, 4.236968 }, // - 29
  2940. {0.076983, 0.047168, -0.006161, 86.771400, 74.329719, 4.236968 }, // - 30
  2941. {0.083798, 0.042184, -0.001869, 86.771400, 83.181861, 4.236968 }, // - 31
  2942. {0.053021, -0.000587, -0.001869, 86.771400, 66.859710, 4.236968 },// - 32
  2943. {0.034386, 0.013324, -0.001869, 86.771400, 80.314460, 4.236968 }, // - 33
  2944. {0.104669, 0.037365, -0.001403, 86.771400, 87.178382, 4.236968 }, // - 34
  2945. {0.102659, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 35
  2946. {0.107638, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 36
  2947. {0.107638, 0.035879, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 37
  2948. {0.107638, 0.041106, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 38
  2949. {0.080326, 0.035634, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 39
  2950. {0.080326, 0.027371, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 40
  2951. {0.084617, 0.039613, -0.001620, 86.771400, 93.020492, 4.236968 }, // - 41
  2952. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 42
  2953. {0.040075, 0.025445, -0.000974, 86.771400, 92.964149, 4.236968 }, // - 43
  2954. {0.077369, 0.028469, -0.000974, 86.771400, 78.435791, 4.236968 }, // - 44
  2955. {0.064145, 0.028684, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 45
  2956. {0.091993, 0.056559, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 46
  2957. {0.084582, 0.051277, -0.005034, 86.771400, 84.762802, 4.236968 }, // - 47
  2958. {0.092182, 0.042095, -0.003533, 86.771400, 84.762802, 4.236968 }, // - 48
  2959. {0.086866, 0.032203, -0.001021, 86.771400, 84.762802, 4.236968 }, // - 49
  2960. {0.099350, 0.009422, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 50
  2961. {0.099350, 0.030598, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 51
  2962. {0.099350, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 52
  2963. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 53
  2964. {0.079123, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 54
  2965. {0.063159, 0.029641, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 55
  2966. {0.070293, 0.029641, -0.000570, 86.771400, 84.762802, 4.236968 }, // - 56
  2967. {0.111305, 0.045368, -0.000570, 86.771400, 84.458084, 4.236968 }, // - 57
  2968. {0.084901, 0.020965, -0.000570, 86.771400, 79.542411, 4.236968 }, // - 58
  2969. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 59
  2970. {0.090164, 0.044163, -0.004754, 86.771400, 79.542411, 4.236968 }, // - 60
  2971. {0.087151, 0.041447, -0.000885, 90.928329, 89.598678, 0.000000 }, // - 61
  2972. {0.094350, 0.041447, 0.005717, 90.928329, 89.598678, 0.000000 }, // - 62
  2973. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 63
  2974. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 64
  2975. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 65
  2976. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 66
  2977. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 67
  2978. {0.087317, 0.039646, -0.004032, 90.928329, 89.598678, 0.000000 }, // - 68
  2979. {0.074873, 0.039646, -0.003072, 90.928329, 89.598678, 0.000000 }, // - 69
  2980. {0.090391, 0.042364, 0.005494, 90.928329, 89.598678, 0.000000 }, // - 70
  2981. {0.090391, 0.022298, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 71
  2982. {0.090391, 0.039580, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 72
  2983. {0.090391, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 73
  2984. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 74
  2985. {0.083113, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 75
  2986. {0.072957, 0.028956, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 76
  2987. {0.069398, 0.039981, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 77
  2988. {0.105738, 0.010001, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 78
  2989. {0.078264, 0.019668, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 79
  2990. {0.087377, 0.022096, -0.001993, 90.928329, 79.030494, 0.000000 }, // - 80
  2991. {0.087377, 0.022096, -0.001635, 90.928329, 79.030494, 0.000000 }, // - 81
  2992. {0.100623, 0.043063, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 82
  2993. {0.092528, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 83
  2994. {0.102086, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 84
  2995. {0.081954, 0.041672, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 85
  2996. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 86
  2997. {0.077010, 0.046925, -0.003438, 90.928329, 91.590301, 0.000000 }, // - 87
  2998. {0.069952, 0.042635, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 88
  2999. {0.093827, 0.019258, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 89
  3000. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 90
  3001. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 91
  3002. {0.066464, 0.038135, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 92
  3003. {0.066464, 0.038135, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 93
  3004. {0.048124, 0.010598, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 94
  3005. {0.084997, 0.006773, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 95
  3006. {0.100076, 0.026633, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 96
  3007. {0.061686, 0.027537, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 97
  3008. {0.098318, 0.053993, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 98
  3009. {0.098318, 0.033702, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 99
  3010. {0.086149, 0.042526, -0.001690, 90.928329, 77.587478, 0.000000 }, // - 100
  3011. {0.081864, 0.030555, -0.001690, 90.928329, 78.145759, 0.000000 }, // - 101
  3012. {0.081864, 0.047914, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 102
  3013. {0.089607, 0.036717, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 103
  3014. {0.079655, 0.042021, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 104
  3015. {0.091779, 0.037620, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 105
  3016. {0.084179, 0.035251, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 106
  3017. {0.089387, 0.040297, -0.006006, 90.928329, 78.145759, 0.000000 }, // - 107
  3018. {0.081930, 0.030756, 0.001523, 90.928329, 78.145759, 0.000000 }, // - 108
  3019. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 109
  3020. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 110
  3021. {0.106601, 0.028021, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 111
  3022. {0.096335, 0.015873, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 112
  3023. {0.105827, 0.046620, -0.001395, 90.928329, 90.217376, 0.000000 }, // - 113
  3024. {0.097520, 0.044296, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 114
  3025. {0.097408, 0.043470, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 115
  3026. {0.092588, 0.049832, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 116
  3027. {0.081444, 0.037602, -0.003125, 90.928329, 90.217376, 0.000000 }, // - 117
  3028. {0.078678, 0.037602, -0.001816, 90.928329, 90.217376, 0.000000 }, // - 118
  3029. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 119
  3030. {0.089214, 0.029291, -0.000784, 90.928329, 84.624763, 0.000000 }, // - 120
  3031. {0.086825, 0.033424, -0.000784, 90.928329, 77.233818, 0.000000 }, // - 121
  3032. {0.082869, 0.030783, -0.000950, 90.928329, 77.233818, 0.000000 }, // - 122
  3033. {0.096117, 0.048957, -0.006245, 90.928329, 87.579650, 0.000000 }, // - 123
  3034. {0.103663, 0.040022, 0.000449, 90.928329, 87.579650, 0.000000 }, // - 124
  3035. {0.099326, 0.031202, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 125
  3036. {0.099326, 0.031132, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 126
  3037. {0.099326, 0.039279, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 127
  3038. {0.099326, 0.047422, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 128
  3039. {0.088817, 0.021210, 0.000730, 90.928329, 87.579650, 0.000000 }, // - 129
  3040. {0.025784, 0.028323, 0.000730, 90.928329, 59.394767, 0.000000 }, // - 130
  3041. {0.068455, 0.031841, -0.004470, 90.928329, 79.979003, 0.000000 }, // - 131
  3042. {0.012930, 0.008392, -0.004470, 90.928329, 72.129173, 0.000000 }, // - 132
  3043. {0.102457, 0.032260, -0.003338, 90.928329, 84.534217, 0.000000 }, // - 133
  3044. {0.085976, 0.014956, -0.003338, 90.928329, 80.308830, 0.000000 }, // - 134
  3045. {0.071574, 0.028186, -0.001588, 90.928329, 80.308830, 0.000000 }, // - 135
  3046. {0.085219, 0.016666, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 136
  3047. {0.065114, 0.009318, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 137
  3048. {0.066890, 0.040024, -0.000738, 90.928329, 87.341934, 0.000000 }, // - 138
  3049. {0.072037, 0.036141, -0.000702, 90.928329, 87.341934, 0.000000 }, // - 139
  3050. {0.069108, 0.042194, -0.000436, 90.928329, 87.341934, 0.000000 }, // - 140
  3051. {0.058717, 0.043547, -0.000436, 90.928329, 87.209770, 0.000000 }, // - 141
  3052. {0.104196, 0.039601, -0.005481, 90.928329, 87.209770, 0.000000 }, // - 142
  3053. {0.090929, 0.045881, -0.012780, 90.928329, 87.209770, 0.000000 }, // - 143
  3054. {0.098291, 0.042464, -0.006952, 90.928329, 83.081665, 0.000000 }, // - 144
  3055. {0.080087, 0.030122, 0.000606, 90.928329, 83.081665, 0.000000 }, // - 145
  3056. {0.093500, 0.030690, -0.001545, 90.928329, 83.081665, 0.000000 }, // - 146
  3057. {0.079566, 0.020138, 0.004838, 90.928329, 73.715591, 0.000000 }, // - 147
  3058. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 148
  3059. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 149
  3060. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 150
  3061. {0.083426, 0.032359, -0.005717, 90.928329, 88.295433, 0.000000 }, // - 151
  3062. {0.072349, 0.019623, -0.000747, 90.928329, 82.624351, 0.000000 }, // - 152
  3063. {0.075065, 0.015351, 0.006545, 90.928329, 71.041442, 0.000000 }, // - 153
  3064. {0.062227, 0.029731, -0.004938, 90.928329, 84.602760, 0.000000 }, // - 154
  3065. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 155
  3066. {0.079936, 0.049000, -0.000304, 90.928329, 82.926010, 0.000000 }, // - 156
  3067. {0.067550, 0.035686, -0.000017, 90.928329, 82.926010, 0.000000 }, // - 157
  3068. {0.090676, 0.039383, -0.001726, 90.928329, 88.667900, 0.000000 }, // - 158
  3069. {0.090676, 0.039383, -0.003532, 90.928329, 88.667900, 0.000000 }, // - 159
  3070. {0.098662, 0.017441, -0.001589, 90.928329, 88.667900, 0.000000 }, // - 160
  3071. {0.105388, 0.038409, 0.003155, 90.928329, 88.667900, 0.000000 }, // - 161
  3072. {0.097415, 0.036904, -0.000525, 90.928329, 88.667900, 0.000000 }, // - 162
  3073. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 163
  3074. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 164
  3075. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 165
  3076. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 166
  3077. {0.095996, 0.038787, 0.000484, 90.928329, 84.315711, 0.000000 }, // - 167
  3078. {0.089094, 0.034001, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 168
  3079. {0.075700, 0.028082, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 169
  3080. {0.093751, 0.041968, -0.005545, 90.928329, 84.315711, 0.000000 }, // - 170
  3081. {0.090124, 0.031055, -0.000505, 90.928329, 84.315711, 0.000000 }, // - 171
  3082. {0.066033, 0.032915, -0.002713, 90.928329, 84.315711, 0.000000 }, // - 172
  3083. {0.088287, 0.045350, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 173
  3084. {0.087750, 0.042129, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 174
  3085. {0.092384, 0.039294, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 175
  3086. {0.097661, 0.039065, -0.006344, 90.928329, 80.736480, 0.000000 }, // - 176
  3087. {0.097114, 0.039641, -0.006692, 90.928329, 80.736480, 0.000000 }, // - 177
  3088. {0.069354, 0.039641, -0.000474, 90.928329, 80.736480, 0.000000 }, // - 178
  3089. {0.091414, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 179
  3090. {0.094914, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 180
  3091. {0.117232, 0.033217, -0.001099, 90.928329, 82.396362, 0.000000 }, // - 181
  3092. {0.082569, 0.032748, -0.003248, 90.928329, 87.394371, 0.000000 }, // - 182
  3093. {0.095527, 0.027237, -0.001960, 90.928329, 86.443649, 0.000000 }, // - 183
  3094. {0.095527, 0.040994, -0.006878, 90.928329, 86.443649, 0.000000 }, // - 184
  3095. {0.085663, 0.030601, -0.002345, 90.928329, 81.496513, 0.000000 }, // - 185
  3096. {0.085663, 0.030601, -0.001015, 90.928329, 81.496513, 0.000000 }, // - 186
  3097. {0.076527, 0.027211, 0.008500, 90.928329, 74.401092, 0.000000 }, // - 187
  3098. {0.096669, 0.032578, 0.001662, 90.928329, 83.502502, 0.000000 }, // - 188
  3099. {0.098753, 0.032129, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 189
  3100. {0.092821, 0.035572, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 190
  3101. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 191
  3102. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 192
  3103. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 193
  3104. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 194
  3105. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 195
  3106. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 196
  3107. {0.100630, 0.020568, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 197
  3108. {0.077905, 0.028523, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 198
  3109. {0.099095, 0.022463, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 199
  3110. {0.103182, 0.031106, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 200
  3111. {0.078426, 0.038546, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 201
  3112. {0.101092, 0.035797, -0.002997, 89.675476, 82.081153, 0.000000 }, // - 202
  3113. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 203
  3114. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 204
  3115. {0.092969, 0.027782, -0.002959, 89.675476, 84.463294, 0.000000 }, // - 205
  3116. {0.105109, 0.036128, -0.000471, 89.675476, 84.463294, 0.000000 }, // - 206
  3117. {0.066892, 0.024410, -0.002792, 89.675476, 84.463294, 0.000000 }, // - 207
  3118. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 208
  3119. {0.084046, 0.013608, -0.002792, 89.675476, 81.667831, 0.000000 }, // - 209
  3120. {0.084046, 0.013608, -0.001034, 89.675476, 81.667831, 0.000000 }, // - 210
  3121. {0.067610, 0.033777, -0.001034, 89.675476, 85.214485, 0.000000 }, // - 211
  3122. {0.094159, 0.020717, 0.000715, 89.675476, 85.214485, 0.000000 }, // - 212
  3123. {0.098744, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 213
  3124. {0.068755, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 214
  3125. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 215
  3126. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 216
  3127. {0.095765, 0.030034, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 217
  3128. {0.085486, 0.039427, -0.003311, 89.675476, 85.214485, 0.000000 }, // - 218
  3129. {0.068874, 0.027850, -0.001021, 89.675476, 85.214485, 0.000000 }, // - 219
  3130. {0.052931, 0.050390, -0.002062, 89.675476, 88.113647, 0.000000 }, // - 220
  3131. {0.094479, 0.034432, 0.000875, 89.675476, 83.572830, 0.000000 }, // - 221
  3132. {0.094479, 0.034432, -0.000596, 89.675476, 83.572830, 0.000000 }, // - 222
  3133. {0.094479, 0.062073, -0.003098, 89.675476, 83.572830, 0.000000 }, // - 223
  3134. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 224
  3135. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 225
  3136. {0.072095, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 226
  3137. {0.110619, 0.043037, -0.001466, 89.675476, 86.927627, 0.000000 }, // - 227
  3138. {0.099446, 0.050772, -0.001466, 89.675476, 85.103805, 0.000000 }, // - 228
  3139. {0.078635, 0.023680, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 229
  3140. {0.043357, 0.028726, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 230
  3141. {0.092488, 0.049972, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 231
  3142. {0.092488, 0.016739, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 232
  3143. {0.071677, 0.037055, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 233
  3144. {0.082745, 0.004209, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 234
  3145. {0.057909, 0.021331, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 235
  3146. {0.079016, 0.021331, -0.000419, 89.675476, 77.678733, 0.000000 }, // - 236
  3147. {0.074572, 0.021331, -0.000419, 89.675476, 84.527442, 0.000000 }, // - 237
  3148. {0.074572, 0.038346, -0.001500, 89.675476, 84.527442, 0.000000 }, // - 238
  3149. {0.111645, 0.011549, 0.006237, 89.675476, 84.527442, 0.000000 }, // - 239
  3150. {0.090766, 0.044221, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 240
  3151. {0.069491, 0.049021, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 241
  3152. {0.059706, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 242
  3153. {0.065242, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 243
  3154. {0.065242, 0.051077, -0.001103, 89.675476, 89.461883, 0.000000 }, // - 244
  3155. {0.082393, 0.038233, 0.000410, 89.675476, 89.461883, 0.000000 }, // - 245
  3156. {0.079338, 0.044859, -0.002535, 89.675476, 89.461883, 0.000000 }, // - 246
  3157. {0.101566, 0.037019, 0.000750, 89.675476, 83.514060, 0.000000 }, // - 247
  3158. {0.091887, 0.047776, -0.000040, 89.675476, 83.514060, 0.000000 }, // - 248
  3159. {0.089745, 0.044044, 0.004071, 89.675476, 83.514060, 0.000000 }, // - 249
  3160. {0.094214, 0.044044, -0.007274, 89.675476, 83.514060, 0.000000 }, // - 250
  3161. {0.072282, 0.044044, -0.001468, 89.675476, 90.444763, 0.000000 }, // - 251
  3162. {0.095764, 0.034224, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 252
  3163. {0.087454, 0.026208, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 253
  3164. {0.099198, 0.037362, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 254
  3165. {0.070845, 0.019943, 0.003505, 89.675476, 73.529716, 0.000000 }, // - 255
  3166. {0.065373, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 256
  3167. {0.070077, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 257
  3168. {0.089536, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 258
  3169. {0.084822, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 259
  3170. {0.093009, 0.031491, -0.001568, 89.675476, 83.002151, 0.000000 }, // - 260
  3171. {0.093009, 0.015023, -0.001477, 89.675476, 83.002151, 0.000000 }, // - 261
  3172. {0.076580, 0.039782, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 262
  3173. {0.076580, 0.028967, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 263
  3174. {0.075424, 0.043059, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 264
  3175. {0.089655, 0.021726, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 265
  3176. {0.096792, 0.014114, -0.003062, 89.675476, 85.166038, 0.000000 }, // - 266
  3177. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 267
  3178. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 268
  3179. {0.102252, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 269
  3180. {0.102252, 0.024989, 0.000529, 89.675476, 85.166038, 0.000000 }, // - 270
  3181. {0.096134, 0.025462, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 271
  3182. {0.099226, 0.032663, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 272
  3183. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 273
  3184. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 274
  3185. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 275
  3186. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 276
  3187. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 277
  3188. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 278
  3189. {0.087652, 0.059379, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 279
  3190. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 280
  3191. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 281
  3192. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 282
  3193. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 283
  3194. {0.090877, 0.053674, 0.009879, 89.675476, 88.636062, 0.000000 }, // - 284
  3195. {0.104320, 0.041487, 0.008021, 89.675476, 88.636062, 0.000000 }, // - 285
  3196. {0.087062, 0.021779, -0.003307, 89.675476, 88.636062, 0.000000 }, // - 286
  3197. {0.073173, 0.048856, 0.005337, 89.675476, 92.561180, 0.000000 }, // - 287
  3198. {0.090294, 0.027592, -0.003497, 89.675476, 92.561180, 0.000000 }, // - 288
  3199. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 289
  3200. {0.086562, 0.042698, -0.000612, 89.675476, 92.561180, 0.000000 }, // - 290
  3201. {0.096768, 0.039233, -0.000612, 89.675476, 83.550270, 0.000000 }, // - 291
  3202. {0.079939, 0.020731, -0.005162, 89.675476, 83.550270, 0.000000 }, // - 292
  3203. {0.097107, 0.027826, -0.005162, 89.675476, 88.505996, 0.000000 }, // - 293
  3204. {0.097107, 0.037636, 0.000618, 89.675476, 88.505996, 0.000000 }, // - 294
  3205. {0.079985, 0.035006, -0.000826, 89.675476, 87.533462, 0.000000 }, // - 295
  3206. {0.088445, 0.024209, -0.002076, 89.675476, 73.285072, 0.000000 }, // - 296
  3207. {0.094039, 0.035411, 0.000490, 89.675476, 84.277572, 0.000000 }, // - 297
  3208. {0.099553, 0.024683, -0.002919, 89.675476, 84.277572, 0.000000 }, // - 298
  3209. {0.099553, 0.044356, -0.000285, 89.675476, 84.277572, 0.000000 } // - 299
  3210. };
  3211.  
  3212. new GunObjects[47][0] = { // (c) gimini
  3213. {0},// Emty
  3214. {331},// Brass Knuckles
  3215. {333},// Golf Club
  3216. {334},// Nitestick
  3217. {335},// Knife
  3218. {336},// Baseball Bat
  3219. {337},// Showel
  3220. {338},// Pool Cue
  3221. {339},// Katana
  3222. {341},// Chainsaw
  3223. {321},// Purple Dildo
  3224. {322},// Small White Dildo
  3225. {323},// Long White Dildo
  3226. {324},// Vibrator
  3227. {325},// Flowers
  3228. {326},// Cane
  3229. {342},// Grenade
  3230. {343},// Tear Gas
  3231. {344},// Molotov
  3232. {0},
  3233. {0},
  3234. {0},
  3235. {346},// Glock
  3236. {347},// Silenced Colt
  3237. {348},// Desert Eagle
  3238. {349},// Shotgun
  3239. {350},// Sawn Off
  3240. {351},// Combat Shotgun
  3241. {352},// Micro UZI
  3242. {353},// MP5
  3243. {355},// AK47
  3244. {356},// M4
  3245. {372},// Tec9
  3246. {357},// Rifle
  3247. {358},// Sniper Rifle
  3248. {359},// Rocket Launcher
  3249. {360},// HS Rocket Launcher
  3250. {361},// Flamethrower
  3251. {362},// Minigun
  3252. {363},// Detonator
  3253. {364},// Detonator Button
  3254. {365},// Spraycan
  3255. {366},// Fire Extinguisher
  3256. {367},// Camera
  3257. {368},// Nightvision
  3258. {368},// Infrared Vision
  3259. {371}// Parachute
  3260. };
  3261.  
  3262. enum SavePlayerPosEnum
  3263. {
  3264. Float:LastX,
  3265. Float:LastY,
  3266. Float:LastZ
  3267. };
  3268. new SavePlayerPos[MAX_PLAYERS][SavePlayerPosEnum];
  3269.  
  3270. enum StopAniPos
  3271. {
  3272. Float:PosX,
  3273. Float:PosY,
  3274. Float:PosZ
  3275. };
  3276. new PlayerPosition[MAX_PLAYERS][StopAniPos];
  3277.  
  3278.  
  3279. new UpdateSeconds = 1;
  3280.  
  3281. enum Prison_Buttons_Info // COMMENTED
  3282. {
  3283. ButtonID3, // Button Gate
  3284. ButtonID4, // Button Cells
  3285. PrisonGate, // Gate
  3286. PrisonCells1, // Bars
  3287. PrisonCells2, // Bars
  3288. GateTimerID,
  3289. CellTimerID,
  3290. CellOpened,
  3291. GateOpened
  3292. };
  3293. new Prison_Buttons[Prison_Buttons_Info]; // COMMENTED
  3294.  
  3295. enum LSPD_Door_Info
  3296. {
  3297. ObjectID1,
  3298. ObjectID2,
  3299. ObjectID3,
  3300. ObjectID4,
  3301. ButtonID1, // Into
  3302. ButtonID2, // Out
  3303. TimerID,
  3304. Opened
  3305. };
  3306. new LSPD_Door[LSPD_Door_Info];
  3307.  
  3308. public Float:GetDistanceBetweenPlayers(p1,p2)
  3309. {
  3310. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  3311. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
  3312. {
  3313. return -1.00;
  3314. }
  3315. GetPlayerPos(p1,x1,y1,z1);
  3316. GetPlayerPos(p2,x2,y2,z2);
  3317. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  3318. }
  3319.  
  3320. stock GetColorCode2(clr[])
  3321. {
  3322. new color = -1;
  3323. if (IsNumeric(clr))
  3324. {
  3325. color = strval(clr);
  3326. return color;
  3327. }
  3328. if (strcmp(clr, "black", true)==0) color=0x000000FF;
  3329. if (strcmp(clr, "white", true)==0) color=0xFFFFFF00;
  3330. if (strcmp(clr, "blue", true)==0) color=0x2641FEAA;
  3331. if (strcmp(clr, "red", true)==0) color=0xEA0000FF;
  3332. if (strcmp(clr, "green", true)==0) color=0x33AA33AA;
  3333. if (strcmp(clr, "purple", true)==0) color=0xC2A2DAAA;
  3334. if (strcmp(clr, "yellow", true)==0) color=0xFFFF00AA;
  3335. if (strcmp(clr, "lightblue", true)==0) color=0x33CCFFAA;
  3336. if (strcmp(clr, "lightgreen", true)==0) color=0x9ACD32AA;
  3337. if (strcmp(clr, "brown", true)==0) color=0x876330FF;
  3338. if (strcmp(clr, "pink", true)==0) color=0xFF8282AA;
  3339. if (strcmp(clr, "orange", true)==0) color=0xF4A41900;
  3340. if (strcmp(clr, "beige", true)==0) color=0xF0CC0000;
  3341. if (strcmp(clr, "turquise", true)==0) color=0x2B77A100;
  3342. return color;
  3343. }
  3344.  
  3345. new Music[MAX_PLAYERS];
  3346. new Songs[7][1] = {
  3347. {1187},
  3348. {1185},
  3349. {1183},
  3350. {1097},
  3351. {1076},
  3352. {1068},
  3353. {1062}
  3354. };
  3355.  
  3356. new FishNamesNumber = 22;
  3357. new FishNames[22][20] = {
  3358. {"Jacket"},
  3359. {"Amberjack"},
  3360. {"Grouper"},
  3361. {"Red Snapper"},
  3362. {"Pants"},
  3363. {"Trout"},
  3364. {"Blue Marlin"},
  3365. {"Can"},
  3366. {"Mackeral"},
  3367. {"Sea Bass"},
  3368. {"Shoes"},
  3369. {"Pike"},
  3370. {"Sail Fish"},
  3371. {"Garbage"},
  3372. {"Tuna"},
  3373. {"Eel"},
  3374. {"Dolphin"},
  3375. {"Shark"},
  3376. {"Turtle"},
  3377. {"Catfish"},
  3378. {"Money Bag"},
  3379. {"Swordfish"}
  3380. };
  3381.  
  3382. /*new StoleObjectNamesNumber = 9;
  3383. new StoleObjectNames[9][20] = {
  3384. {"LCD TV"},
  3385. {"DVD Player"},
  3386. {"Laptop"},
  3387. {"iPhone"},
  3388. {"Video camera"},
  3389. {"Rolex watch"},
  3390. {"Toy car"},
  3391. {"Teddy bear"},
  3392. {"MP3 player"},
  3393. };*/
  3394.  
  3395. new Float:PaintballSpawns[7][3] = {
  3396. {-1136.5530,1078.7391,1345.8062},
  3397. {-1097.9240,1039.3434,1343.1390},
  3398. {-1026.2610,1051.7496,1342.3792},
  3399. {-1044.7739,1096.0839,1346.1598},
  3400. {-1008.6546,1022.7844,1341.0078},
  3401. {-975.2208,1089.7521,1348.4375},
  3402. {-978.1649,1035.5266,1345.0063}
  3403. };
  3404.  
  3405. new Float:HospitalSpawns[2][4] = {
  3406. {1176.6326,-1325.5374,14.0309,270.0000},
  3407. {2034.1111,-1404.4347,17.5000,180.0000}
  3408. };
  3409.  
  3410. // COMMENTED
  3411. new Float:PrisonSpawns[12][4] = {
  3412. {1772.8984,-1581.8361,1636.9736,0.0000},
  3413. {1779.1259,-1581.6355,1636.9736,0.0000},
  3414. {1784.5406,-1581.5651,1636.9736,0.0000},
  3415. {1790.4741,-1581.5254,1636.9736,0.0000},
  3416. {1795.7205,-1581.5287,1636.9736,0.0000},
  3417. {1800.6487,-1581.1351,1636.9736,0.0000},
  3418. {1800.5258,-1557.4760,1636.9736,180.0000},
  3419. {1796.1321,-1557.8774,1636.9736,180.0000},
  3420. {1790.5198,-1558.0527,1636.9736,180.0000},
  3421. {1784.5649,-1557.9910,1636.9736,180.0000},
  3422. {1779.5862,-1557.9115,1636.9736,180.0000},
  3423. {1773.6440,-1557.8591,1636.9736,180.0000}
  3424. };
  3425.  
  3426. // COMMENTED
  3427. new Float:CIASpawns[12][4] = {
  3428. {1772.8984,-1581.8361,1636.9736,0.0000},
  3429. {1779.1259,-1581.6355,1636.9736,0.0000},
  3430. {1784.5406,-1581.5651,1636.9736,0.0000},
  3431. {1790.4741,-1581.5254,1636.9736,0.0000},
  3432. {1795.7205,-1581.5287,1636.9736,0.0000},
  3433. {1800.6487,-1581.1351,1636.9736,0.0000},
  3434. {1800.5258,-1557.4760,1636.9736,180.0000},
  3435. {1796.1321,-1557.8774,1636.9736,180.0000},
  3436. {1790.5198,-1558.0527,1636.9736,180.0000},
  3437. {1784.5649,-1557.9910,1636.9736,180.0000},
  3438. {1779.5862,-1557.9115,1636.9736,180.0000},
  3439. {1773.6440,-1557.8591,1636.9736,180.0000}
  3440. };
  3441.  
  3442. enum pBoxingStats
  3443. {
  3444. TitelName[128],
  3445. TitelWins,
  3446. TitelLoses,
  3447. };
  3448. new Titel[pBoxingStats];
  3449.  
  3450. enum pLSPDPass
  3451. {
  3452. LSPD
  3453. }
  3454. new Pass[pLSPDPass];
  3455.  
  3456. enum sInfo
  3457. {
  3458. sCreated,
  3459. Float:sX,
  3460. Float:sY,
  3461. Float:sZ,
  3462. sObject,
  3463. };
  3464. new SpikeInfo[MAX_SPIKESTRIPS][sInfo];
  3465.  
  3466. enum fInfo
  3467. {
  3468. FamilyTaken,
  3469. FamilyName[24],
  3470. FamilyMOTD[64],
  3471. FamilyLeader[MAX_PLAYER_NAME],
  3472. FamilyBank,
  3473. FamilyCash,
  3474. FamilySafe,
  3475. Float:FamilySafePos[3],
  3476. FamilyPot,
  3477. FamilyCrack,
  3478. FamilyMats,
  3479. FamilyMembers,
  3480. FamilySkins,
  3481. FamilySkin1,
  3482. FamilySkin2,
  3483. FamilySkin3,
  3484. FamilySkin4,
  3485. FamilySkin5,
  3486. FamilySkin6,
  3487. FamilySkin7,
  3488. FamilySkin8,
  3489. PickupID,
  3490. FStrikes,
  3491. Colt45,
  3492. Shotgun,
  3493. MP5,
  3494. AK47,
  3495. M4,
  3496. SPAS12,
  3497. Rifle,
  3498. Sniper
  3499. };
  3500. new FamilyInfo[10][fInfo];
  3501. new FamilyRank[10][6][24];
  3502.  
  3503.  
  3504. enum tInfo
  3505. {
  3506. tModel,
  3507. Float:tLocationx,
  3508. Float:tLocationy,
  3509. Float:tLocationz,
  3510. Float:tAngle,
  3511. tColorOne,
  3512. tColorTwo,
  3513. tOwner[MAX_PLAYER_NAME],
  3514. tOwned,
  3515. tLock,
  3516. tEngine,
  3517. tPaintjob,
  3518. tOwnable,
  3519. tFaction,
  3520. tVIP,
  3521. tAlarm,
  3522. tAlarmStarted,
  3523. tTrunkOpened,
  3524. tInsured,
  3525. tGun1,
  3526. tGun2,
  3527. Float:tArmor,
  3528. tCrack,
  3529. tPot,
  3530. tNOS,
  3531. tHoodOpened,
  3532. tPrice,
  3533. tLicensePlate[9],
  3534. tDisabled,
  3535. tGang,
  3536. tPlateColor,
  3537. tVehRemote,
  3538. tGPS,
  3539. tNeon,
  3540. tNeonON,
  3541. tComponent0,
  3542. tComponent1,
  3543. tComponent2,
  3544. tComponent3,
  3545. tComponent4,
  3546. tComponent5,
  3547. tComponent6,
  3548. tComponent7,
  3549. tComponent8,
  3550. tComponent9,
  3551. tComponent10,
  3552. tComponent11,
  3553. tComponent12,
  3554. tComponent13,
  3555. tDuplicateKeys,
  3556. tTowServices,
  3557. tImp,
  3558. tImpPrice,
  3559. tRentable,
  3560. Neon,
  3561. NeonObject,
  3562. };
  3563. new CarInfo[2000][tInfo];
  3564. new CarSys[sizeof(CarInfo)];
  3565.  
  3566. enum hInfo
  3567. {
  3568. Float:hLocation_x,
  3569. Float:hLocation_y,
  3570. Float:hLocation_z,
  3571. Float:hExitAngle,
  3572. Float:hIntLocationx,
  3573. Float:hIntLocationy,
  3574. Float:hIntLocationz,
  3575. Float:hEnterAngle,
  3576. hVirtualWorld,
  3577. hInterior,
  3578. hOwner[MAX_PLAYER_NAME],
  3579. hOwned,
  3580. hLocked,
  3581. hAlarm,
  3582. hAlarmON,
  3583. hGun1,
  3584. hGun2,
  3585. hGun3,
  3586. hGun4,
  3587. hCrack,
  3588. hPot,
  3589. hPrice,
  3590. hLevel,
  3591. hSafe,
  3592. hSafeCode,
  3593. hCameras,
  3594. hCash,
  3595. hMaterials,
  3596. hVulnerable,
  3597. Float:hSafex,
  3598. Float:hSafey,
  3599. Float:hSafez,
  3600. hRenters,
  3601. hName[25],
  3602. hRentable,
  3603. hRent,
  3604. hSafeOpen,
  3605. };
  3606. new HouseInfo[600][hInfo];
  3607. //new HouseIcon[sizeof(HouseInfo)];
  3608. new HousePickup[sizeof(HouseInfo)];
  3609. new HouseSafe[sizeof(HouseInfo)];
  3610. new Text3D:HouseLabel[600];
  3611.  
  3612.  
  3613. enum bInfo
  3614. {
  3615. Float:bLocation_x,
  3616. Float:bLocation_y,
  3617. Float:bLocation_z,
  3618. Float:bExitAngle,
  3619. Float:bIntLocationx,
  3620. Float:bIntLocationy,
  3621. Float:bIntLocationz,
  3622. Float:bEnterAngle,
  3623. bVirtualWorld,
  3624. bInterior,
  3625. bOwner[MAX_PLAYER_NAME],
  3626. bOwned,
  3627. bLocked,
  3628. bPrice,
  3629. bType,
  3630. bCameras,
  3631. bTill,
  3632. bProducts,
  3633. bName[25],
  3634. bFee,
  3635. bPInt,
  3636. bPVW,
  3637. bLottoTime,
  3638. bLottoJackpot,
  3639. bNewLottoJackpot,
  3640. };
  3641. new BizInfo[600][bInfo];
  3642. new BizPickup[sizeof(BizInfo)];
  3643. new BizIcon[sizeof(BizInfo)];
  3644. new Text3D:BizLabel[600];
  3645.  
  3646.  
  3647. enum pFishing
  3648. {
  3649. pFish1[20],
  3650. pFish2[20],
  3651. pFish3[20],
  3652. pFish4[20],
  3653. pFish5[20],
  3654. pWeight1,
  3655. pWeight2,
  3656. pWeight3,
  3657. pWeight4,
  3658. pWeight5,
  3659. pFid1,
  3660. pFid2,
  3661. pFid3,
  3662. pFid4,
  3663. pFid5,
  3664. pLastFish,
  3665. pFishID,
  3666. pLastWeight,
  3667. };
  3668. new Fishes[MAX_PLAYERS][pFishing];
  3669.  
  3670. /*enum pRobbingHouse
  3671. {
  3672. pStolenObject1[20],
  3673. pStolenObject2[20],
  3674. pStolenObject3[20],
  3675. pStolenObject4[20],
  3676. pStolenObject5[20],
  3677. pSOValue1,
  3678. pSOValue2,
  3679. pSOValue3,
  3680. pSOValue4,
  3681. pSOValue5,
  3682. };
  3683. new StolenObjects[MAX_PLAYERS][pRobbingHouse];*/
  3684.  
  3685. enum eCars
  3686. {
  3687. Float:pos_x,
  3688. Float:pos_y,
  3689. Float:pos_z,
  3690. Float:z_angle,
  3691. };
  3692.  
  3693. enum pInfo
  3694. {
  3695. pKey[128],
  3696. pLevel,
  3697. pAdmin,
  3698. pBand,
  3699. pPermBand,
  3700. pPrisonReason[56],
  3701. pPrisonedBy[32],
  3702. pAdminJailed,
  3703. pWarns,
  3704. pAWarns,
  3705. pDisabled,
  3706. pDonateRank,
  3707. pVIPJoinDate[32],
  3708. pVIPExpDate[32],
  3709. pLastLogin[32],
  3710. pFactionMod,
  3711. pBanAppealer,
  3712. pGangMod,
  3713. gPupgrade,
  3714. pConnectTime,
  3715. pReg,
  3716. pSex,
  3717. pAge,
  3718. pOrigin,
  3719. pMuted,
  3720. pExp,
  3721. pCash,
  3722. pAccount,
  3723. pCrimes,
  3724. pCrime[6],
  3725. pCrimeReporter0[MAX_PLAYER_NAME],
  3726. pCrimeReporter1[MAX_PLAYER_NAME],
  3727. pCrimeReporter2[MAX_PLAYER_NAME],
  3728. pCrimeReporter3[MAX_PLAYER_NAME],
  3729. pCrimeReporter4[MAX_PLAYER_NAME],
  3730. pCrimeReporter5[MAX_PLAYER_NAME],
  3731. pCrimeDate0[32],
  3732. pCrimeDate1[32],
  3733. pCrimeDate2[32],
  3734. pCrimeDate3[32],
  3735. pCrimeDate4[32],
  3736. pCrimeDate5[32],
  3737. pKills,
  3738. pDeaths,
  3739. pCHits,
  3740. pFHits,
  3741. pArrested,
  3742. pPhoneBook,
  3743. pWatch,
  3744. pSuitcase,
  3745. pSuitcasecash,
  3746. pSuitcasecrack,
  3747. pSuitcasepot,
  3748. pSuitcasemats,
  3749. pToolbox,
  3750. pLotto,
  3751. pLottoNr,
  3752. pLottoNr2,
  3753. pLottoNr3,
  3754. pLottoNr4,
  3755. pLottoNr5,
  3756. pLottoNr6,
  3757. pPlayLotto,
  3758. pWinLotto,
  3759. pWinLotto2,
  3760. pFishes,
  3761. pBiggestFish,
  3762. pJob,
  3763. pPayCheck,
  3764. pHeadValue,
  3765. pJailed,
  3766. pJailTime,
  3767. pMats,
  3768. pCarParts,
  3769. pPot,
  3770. pCrack,
  3771. pLeader,
  3772. pMember,
  3773. pSFMember, // Sub-faction Member ( 0 = none, 1 = SWAT[LSPD], 2 = IA[LSPD], 3 = SIU[LSPD], 4 = ACU[FBI], 5 = GHOST[SS] )
  3774. pSFLeader, // Sub-faction leader ( 0 = none, 1 = SWAT[LSPD], 2 = IA[LSPD], 3 = SIU[LSPD], 4 = ACU[FBI], 5 = GHOST[SS] )
  3775. pFMember,
  3776. pGang,
  3777. pRank,
  3778. pFRank,
  3779. pChangeRank,
  3780. pDetSkill,
  3781. pSexSkill,
  3782. pBoxSkill,
  3783. pLawSkill,
  3784. pMechSkill,
  3785. pJackSkill,
  3786. pCarSkill,
  3787. pNewsSkill,
  3788. pDrugsSkill,
  3789. pArmsSkill,
  3790. // pTrashSkill, // Trashman
  3791. pSmugglerSkill,
  3792. pFishSkill,
  3793. pFightingStyle,
  3794. Float:pHealth,
  3795. Float:pArmor,
  3796. pHungry,
  3797. pThirsty,
  3798. pSHealth,
  3799. pInt,
  3800. pLocal,
  3801. pVirtualWorld,
  3802. pModel,
  3803. pGlasses,
  3804. pBandana,
  3805. pHelmet,
  3806. pCMask,
  3807. pHat,
  3808. pClothes,
  3809. pPnumber,
  3810. pPbiskey,
  3811. pPaptkey,
  3812. pCarLic,
  3813. pFlyLic,
  3814. pBoatLic,
  3815. pFishLic,
  3816. pGunLic,
  3817. pGun0,
  3818. pGun1,
  3819. pGun2,
  3820. pGun3,
  3821. pGun4,
  3822. pGun5,
  3823. pGun6,
  3824. pGun7,
  3825. pGun8,
  3826. pGun9,
  3827. pGun10,
  3828. pGun11,
  3829. pGun12,
  3830. hCash,
  3831. hPot,
  3832. hCrack,
  3833. hValue,
  3834. pCarTime,
  3835. pDrugsTime,
  3836. pLawyerTime,
  3837. pLawyerFreeTime,
  3838. pMechTime,
  3839. pSexTime,
  3840. pPayDay,
  3841. pPayDayHad,
  3842. pCDPlayer,
  3843. pDice,
  3844. pSpraycan,
  3845. pScrew,
  3846. pCrowbar,
  3847. pHammer,
  3848. pFlash,
  3849. pRake,
  3850. pWrench,
  3851. pRope,
  3852. pCigars,
  3853. pSprunk,
  3854. pCredits,
  3855. pDonuts,
  3856. pCookies,
  3857. pWT,
  3858. pWTc,
  3859. pBombs,
  3860. pScope,
  3861. pMask,
  3862. pWins,
  3863. pLoses,
  3864. pTut,
  3865. pOnDuty,
  3866. pHospital,
  3867. pAdjustable,
  3868. pMarried,
  3869. pMarriedTo[128],
  3870. pContractBy[128],
  3871. pIP[16],
  3872. pWantedLevel,
  3873. pNewbieMuted,
  3874. pReportMuted,
  3875. pAdMuted,
  3876. pSafeSpawn,
  3877. Float:pSPos_x,
  3878. Float:pSPos_y,
  3879. Float:pSPos_z,
  3880. Float:pSPos_r,
  3881. pHelper,
  3882. pRequestingBackup,
  3883. pVipColor,
  3884. pBlindfolds,
  3885. pSpeakPhone,
  3886. pSeeds,
  3887. pStealth,
  3888. pFakeIP,
  3889. pPaintballGun1,
  3890. pPaintballGun2,
  3891. pCarKey1,
  3892. pCarKey2,
  3893. pCarKey3,
  3894. pRentKey,
  3895. pHouseKey,
  3896. pBizKey,
  3897. pInHouse,
  3898. pInBiz,
  3899. pInCar,
  3900. pProducts,
  3901. pRenthouse,
  3902. pHSafeattempt,
  3903. Lockpicking,
  3904. CLockpick,
  3905. HLockpick,
  3906. RobHouse,
  3907. RobHouseTime,
  3908. RobHouseID,
  3909. };
  3910. new PlayerInfo[MAX_PLAYERS][pInfo];
  3911.  
  3912.  
  3913. enum iInfo
  3914. {
  3915. iAdmin[128],
  3916. iMOTD[128],
  3917. iPassword[128],
  3918. iNeedPass,
  3919. iLock,
  3920. iPlayers,
  3921. };
  3922. new IRCInfo[10][iInfo];
  3923.  
  3924.  
  3925. //FACTION SKINS
  3926. new FactSkins1[11][1] = { //police
  3927. {71}, //cadet
  3928. {280},
  3929. {281},
  3930. {282},
  3931. {283},
  3932. {284},
  3933. {288},
  3934. {265}, //tenpenny
  3935. {266}, //pulaski
  3936. {267}, //hernandez
  3937. {141} //chick skin
  3938. };
  3939.  
  3940. new FactSkins2[3][1] = { //FBI
  3941. {165},
  3942. {166},
  3943. {286}
  3944. };
  3945.  
  3946. new FactSkins3[6][1] = { //SASP
  3947. {283},
  3948. {282},
  3949. {288},
  3950. {281},
  3951. {265},
  3952. {34}
  3953. };
  3954.  
  3955. new FactSkins4[6][1] = { //fire/ambulance
  3956. {274},
  3957. {275},
  3958. {276},
  3959. {277},
  3960. {278},
  3961. {279}
  3962. };
  3963.  
  3964. new FactSkins5[1][1] = { //National Guards
  3965. {287}
  3966. };
  3967.  
  3968. new FactSkins6[8][1] = { //Senate
  3969. {147},
  3970. {148},
  3971. {150},
  3972. {187},
  3973. {227},
  3974. {228},
  3975. {76},
  3976. {9}
  3977. };
  3978.  
  3979. new FactSkins7[3][1] = { //SS
  3980. {163},
  3981. {164},
  3982. {165}
  3983. };
  3984.  
  3985. new FactSkins8[25][1] = { //hitman agency
  3986. {101},
  3987. {89},
  3988. {218},
  3989. {46},
  3990. {94}, //5
  3991. {51},
  3992. {81},
  3993. {99},
  3994. {75},
  3995. {134}, //10
  3996. {213},
  3997. {230},
  3998. {252},
  3999. {82},
  4000. {167}, //15
  4001. {68},
  4002. {171},
  4003. {189},
  4004. {129},
  4005. {130}, //20
  4006. {70},
  4007. {160},
  4008. {33},
  4009. {32},
  4010. {78} //25
  4011. };
  4012.  
  4013. new FactSkins9[4][1] = { //news faction
  4014. {188},
  4015. {187},
  4016. {227},
  4017. {150}
  4018. };
  4019.  
  4020. new FactSkins10[3][1] = { //taxi faction
  4021. {255},
  4022. {253},
  4023. {61}
  4024. };
  4025.  
  4026. new PedSkins[176][1] = {
  4027. {299}, //default skin
  4028. {10},
  4029. {101},
  4030. {12},
  4031. {13},
  4032. //{136},
  4033. {14},
  4034. //{142},
  4035. //{143},
  4036. {15}, //10
  4037. {151},
  4038. {156},
  4039. {168},
  4040. {170},
  4041. //{180},
  4042. {182},
  4043. {54},
  4044. {183},
  4045. {184},
  4046. {75}, //20
  4047. //{185},
  4048. {19},
  4049. {216},
  4050. {20},
  4051. {206},
  4052. //{21},
  4053. //{22},
  4054. {210},
  4055. {214},
  4056. {215}, //30
  4057. //{220},
  4058. {221},
  4059. {225},
  4060. {226},
  4061. //{222},
  4062. {223},
  4063. {231},
  4064. {228},
  4065. {234},
  4066. {76}, //40
  4067. {235},
  4068. {236},
  4069. {89},
  4070. {88},
  4071. //{24},
  4072. {218},
  4073. {240},
  4074. //{25},
  4075. {250},
  4076. {261}, //50
  4077. //{28},
  4078. {40},
  4079. {41},
  4080. {35},
  4081. {37},
  4082. {38},
  4083. {36},
  4084. {44},
  4085. //{69},
  4086. {43}, //60
  4087. {46},
  4088. {9},
  4089. {93},
  4090. {39},
  4091. {48},
  4092. {47},
  4093. {262},
  4094. {229},
  4095. {58},
  4096. {59}, //70
  4097. {60},
  4098. {232},
  4099. {233},
  4100. {67},
  4101. {7},
  4102. {72},
  4103. {55},
  4104. {94},
  4105. {95},
  4106. {98}, //80
  4107. {56},
  4108. {128},
  4109. {129},
  4110. {130},
  4111. {131},
  4112. {132},
  4113. {133},
  4114. {157},
  4115. {158},
  4116. {159}, //90
  4117. {160},
  4118. {196},
  4119. {197},
  4120. {198},
  4121. {199},
  4122. {161},
  4123. {162},
  4124. {200},
  4125. {201},
  4126. {202}, //100
  4127. {31},
  4128. {32},
  4129. {33},
  4130. {34},
  4131. {138},
  4132. {139},
  4133. {140},
  4134. {145},
  4135. {146},
  4136. {154}, //110
  4137. {251},
  4138. {92},
  4139. {97},
  4140. {45},
  4141. {18},
  4142. {258},
  4143. {259},
  4144. {26},
  4145. {51},
  4146. {52}, //120
  4147. {80},
  4148. {81},
  4149. {23},
  4150. {96},
  4151. {99},
  4152. {11},
  4153. // {141},
  4154. {148},
  4155. // {150},
  4156. {153}, //130
  4157. {167},
  4158. {68},
  4159. {171},
  4160. //{176},
  4161. //{177},
  4162. {172},
  4163. {179},
  4164. {189},
  4165. //{203},
  4166. //{204}, //140
  4167. {155},
  4168. {205},
  4169. {209},
  4170. {217},
  4171. {211},
  4172. {219},
  4173. {260},
  4174. {16},
  4175. {27},
  4176. {264}, //150
  4177. {70},
  4178. {152},
  4179. {178},
  4180. {237},
  4181. {238},
  4182. {243},
  4183. {244},
  4184. {207},
  4185. {245},
  4186. {246}, //160
  4187. {85},
  4188. {256},
  4189. {257},
  4190. {64},
  4191. {63},
  4192. {87},
  4193. {90},
  4194. //{195},
  4195. //{190},
  4196. {191}, //170
  4197. {192},
  4198. {193},
  4199. {194},
  4200. {134},
  4201. {135},
  4202. {137},
  4203. {181},
  4204. {213},
  4205. {212},
  4206. {230}, //180
  4207. {239},
  4208. {249},
  4209. {241},
  4210. {242},
  4211. // {252},
  4212. {29},
  4213. //{30},
  4214. {49},
  4215. {50},
  4216. {57}, //190
  4217. {62},
  4218. {66},
  4219. {73},
  4220. {77},
  4221. {78},
  4222. {79},
  4223. {82},
  4224. {83},
  4225. {84}
  4226. };
  4227.  
  4228.  
  4229. main()
  4230. {
  4231. print("------------- ");
  4232. print(":) ");
  4233. print("Reality Gaming Roleplay");
  4234. print("RG:RP: Owned by Logan");
  4235. print("RG:RP: Script brought by Logan Stone");
  4236. print("RG:RP: Mass Edited by Logan");
  4237. print(" ");
  4238. }
  4239.  
  4240. public SearchingHits(playerid)
  4241. {
  4242. new hits;
  4243. new string[128];
  4244. new giveplayer[MAX_PLAYER_NAME];
  4245. SendClientMessage(playerid, COLOR_WHITE, "** Available Contracts:");
  4246. //foreach(Player, i);
  4247. for(new i = 0; i < MAX_PLAYERS; i++)
  4248. {
  4249. if(IsPlayerConnected(i))
  4250. {
  4251. if(PlayerInfo[i][pHeadValue] > 0)
  4252. {
  4253. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  4254. if(IsACop(i))
  4255. {
  4256. format(string, sizeof(string), "Name: %s || ID: %d || Price: $%d || Contracted By: %s", giveplayer, i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy]);
  4257. SendClientMessage(playerid, COLOR_DBLUE, string);
  4258. }
  4259. else
  4260. {
  4261. format(string, sizeof(string), "Name: %s || ID: %d || Price: $%d || Contracted By: %s", giveplayer, i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy]);
  4262. SendClientMessage(playerid, COLOR_YELLOW, string);
  4263. }
  4264. hits++;
  4265. if(hits == 8) return SendClientMessage(playerid, COLOR_YELLOW, "Type /givehit to assign a Contract to one of the hitmen.");
  4266. }
  4267. }
  4268. }
  4269. SendClientMessage(playerid, COLOR_YELLOW, "Type /givehit to assign a Contract to one of the hitmen.");
  4270. return 1;
  4271. }
  4272. LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  4273. {
  4274. gPlayerUsingLoopingAnim[playerid] = 1;
  4275. ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  4276. TextDrawShowForPlayer(playerid,txtAnimHelper);
  4277. }
  4278.  
  4279. PreloadAnimLib(playerid, animlib[])
  4280. {
  4281. ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
  4282. }
  4283. stock IsKeyJustDown(key, newkeys, oldkeys)
  4284. {
  4285. if((newkeys & key) && !(oldkeys & key)) return 1;
  4286. return 0;
  4287. }
  4288. StopLoopingAnim(playerid)
  4289. {
  4290. gPlayerUsingLoopingAnim[playerid] = 0;
  4291. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  4292. }
  4293. OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  4294. {
  4295. ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  4296. }
  4297.  
  4298. stock IsAValidVehicle(vehicleid)
  4299. {
  4300. new x=GetVehicleModel(vehicleid);
  4301. if(x>=400 && x!=509 && x!=481 && x!=510 && x!=548 && x!=425 && x!=417 && x!=487 && x!=488 && x!=497 && x!=563 && x!=447 && x!=469 && x!=592 && x!=577 && x!=511 && x!=512 && x!=593 && x!=520 && x!=553 && x!=476 && x!= 519 &&
  4302. x!=460 && x!=513 && x!=472 && x!=473 && x!=493 && x!=595 && x!=484 && x!=430 && x!=453 && x!=452 && x!=446 && x!=454 && x!=449 && x!=537 && x!=538)
  4303. return 1;
  4304. else return 0;
  4305. }
  4306.  
  4307. public OnRconLoginAttempt(ip[], password[], success)
  4308. {
  4309. if(success)
  4310. {
  4311. new pip[16];
  4312. ////foreach(Player,i)
  4313. for(new i; i<MAX_PLAYERS; i++)
  4314. {
  4315. GetPlayerIp(i, pip, sizeof(pip));
  4316. if(!strcmp(ip, pip, true))
  4317. if(PlayerInfo[i][pAdmin] < 3) Ban(i);
  4318. }
  4319. }
  4320. }
  4321.  
  4322. public ReportReset(playerid)
  4323. {
  4324. if(IsPlayerConnected(playerid))
  4325. {
  4326. if(JustReported[playerid] == 1)
  4327. {
  4328. JustReported[playerid] = 0;
  4329. }
  4330. }
  4331. }
  4332. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  4333. {
  4334. new clicked[MAX_PLAYER_NAME];
  4335. GetPlayerName(clickedplayerid, clicked, sizeof(clicked));
  4336. if(PlayerInfo[playerid][pAdmin] > 0 && NoSpec[clickedplayerid] == 0)
  4337. {
  4338. if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
  4339. {
  4340. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  4341. GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  4342. GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  4343. GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
  4344. GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
  4345. }
  4346. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(clickedplayerid));
  4347. SetPlayerInterior(playerid, GetPlayerInterior(clickedplayerid));
  4348. TogglePlayerSpectating(playerid, 1);
  4349. SpectatedID[playerid] = clickedplayerid;
  4350. HidePM[playerid] = 1;
  4351. PhoneOnline[playerid] = 1;
  4352. if(IsPlayerInAnyVehicle(clickedplayerid))
  4353. {
  4354. PlayerSpectateVehicle(playerid, GetPlayerVehicleID(clickedplayerid));
  4355. SpectateType[playerid] = ADMIN_SPEC_TYPE_VEHICLE;
  4356. }
  4357. else
  4358. {
  4359. PlayerSpectatePlayer(playerid, clickedplayerid);
  4360. SpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
  4361. }
  4362. }
  4363. return 1;
  4364. }
  4365.  
  4366.  
  4367. public BackupClear(playerid, calledbytimer)
  4368. {
  4369. if(IsPlayerConnected(playerid))
  4370. {
  4371. if(IsACop(playerid))
  4372. {
  4373. if (PlayerInfo[playerid][pRequestingBackup] == 1)
  4374. {
  4375. for(new i; i<MAX_PLAYERS; i++)
  4376. {
  4377. if(IsPlayerConnected(i))
  4378. {
  4379. if(IsACop(i))
  4380. {
  4381. SetPlayerMarkerForPlayer(i, playerid, TCOLOR_WHITE);
  4382. SetPlayerToTeamColor(playerid);
  4383. }
  4384. }
  4385. }
  4386. if (calledbytimer != 1)
  4387. {
  4388. SendClientMessage(playerid, TEAM_BLUE_COLOR, "Your backup request has been cleared.");
  4389. }
  4390. else
  4391. {
  4392. SendClientMessage(playerid, TEAM_BLUE_COLOR, "Your backup request has been cleared automatically.");
  4393. }
  4394. PlayerInfo[playerid][pRequestingBackup] = 0;
  4395. }
  4396. else
  4397. {
  4398. if (calledbytimer != 1)
  4399. {
  4400. SendClientMessage(playerid, COLOR_RED, "You don't have an active backup request.");
  4401. }
  4402. }
  4403. }
  4404. else
  4405. {
  4406. if (calledbytimer != 1)
  4407. {
  4408. SendClientMessage(playerid, COLOR_RED, "You are not a Cop / FBI / SAST.");
  4409. }
  4410. }
  4411. }
  4412. return 1;
  4413. }
  4414.  
  4415. public SendHelperMessage(color, string[])
  4416. {
  4417. for(new i; i<MAX_PLAYERS; i++)
  4418. {
  4419. if(IsPlayerConnected(i))
  4420. {
  4421. if(PlayerInfo[i][pHelper] >= 1)
  4422. {
  4423. SendClientMessage(i, color, string);
  4424. }
  4425. }
  4426. }
  4427. }
  4428. public KillCar(vehicleid)
  4429. {
  4430. DestroyVehicle(vehicleid); // destroy vehicle
  4431. gDestroyVehicle[vehicleid] = 0;
  4432. return 1;
  4433. }
  4434.  
  4435. public OnPlayerPressButton(playerid, buttonid)
  4436. {
  4437. if(buttonid == 1)
  4438. {
  4439. if(LSPD_Door[Opened] == 0)
  4440. {
  4441. new lspdstring[256];
  4442. format(lspdstring,sizeof(lspdstring),"Please enter the password:");
  4443. ShowPlayerDialog(playerid,69,DIALOG_STYLE_INPUT,"Los Santos Police Department",lspdstring,"Accept","Cancel");
  4444. }
  4445. else
  4446. {
  4447. MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
  4448. MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
  4449. MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
  4450. MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
  4451. LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
  4452. }
  4453. }
  4454. else if(buttonid == 2)
  4455. {
  4456. if(LSPD_Door[Opened] == 0)
  4457. {
  4458. MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
  4459. MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
  4460. MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
  4461. MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
  4462. LSPD_Door[Opened] = 1; LSPD_Door[TimerID]= SetTimer("PDDoorCheck", 3000, 0);
  4463. }
  4464. else
  4465. {
  4466. MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
  4467. MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
  4468. MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
  4469. MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
  4470. LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
  4471. }
  4472. }
  4473. if(buttonid == 3)
  4474. {
  4475. if(IsPlayerConnected(playerid))
  4476. {
  4477. if(Prison_Buttons[CellOpened] == 0)
  4478. {
  4479. MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1633.197510, 1.50);
  4480. MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1633.197510, 1.50);
  4481. Prison_Buttons[CellOpened] = 1;
  4482. Prison_Buttons[CellTimerID]= SetTimer("PrisonCellCheck", 30000, 0);
  4483. return 1;
  4484. }
  4485. else if(Prison_Buttons[CellOpened] == 1)
  4486. {
  4487. MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1637.197510, 1.50);
  4488. MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1637.217896, 1.50);
  4489. Prison_Buttons[CellOpened] = 0;
  4490. KillTimer(Prison_Buttons[CellTimerID]);
  4491. return 1;
  4492. }
  4493. }
  4494. }
  4495. if(buttonid == 4)
  4496. {
  4497. if(IsPlayerConnected(playerid))
  4498. {
  4499. if(PlayerInfo[playerid][pLeader] == 1)
  4500. {
  4501. if(DoorOpened==0)
  4502. {
  4503. MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
  4504. chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
  4505. DoorOpened = 1;
  4506. }
  4507. else if(DoorOpened==1)
  4508. {
  4509. MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
  4510. KillTimer(chiefdoortimer);
  4511. DoorOpened = 0;
  4512. }
  4513. }
  4514. else
  4515. {
  4516. return SendClientMessage(playerid,COLOR_GREY,"You are not the Chief of LSPD.");
  4517. }
  4518. }
  4519. }
  4520. if(buttonid == 5)
  4521. {
  4522. if(IsPlayerConnected(playerid))
  4523. {
  4524. if(PlayerInfo[playerid][pLeader] == 1)
  4525. {
  4526. if(DoorOpened==0)
  4527. {
  4528. MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
  4529. chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
  4530. DoorOpened = 1;
  4531. }
  4532. else if(DoorOpened==1)
  4533. {
  4534. MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
  4535. KillTimer(chiefdoortimer);
  4536. DoorOpened = 0;
  4537. }
  4538. }
  4539. else
  4540. {
  4541. return SendClientMessage(playerid,COLOR_GREY,"You are not the Chief of LSPD.");
  4542. }
  4543. }
  4544. }
  4545. return 1;
  4546. }
  4547.  
  4548.  
  4549. public PreparePaintball()
  4550. {
  4551. ////foreach(Player, i)
  4552. for(new i; i<MAX_PLAYERS; i++)
  4553. {
  4554. if(IsPlayerConnected(i))
  4555. {
  4556. if(PlayerPaintballing[i] != 0)
  4557. {
  4558. SendClientMessage(i, COLOR_YELLOW, "Paintball Match will start in 20 seconds.");
  4559. }
  4560. }
  4561. }
  4562. SetTimer("StartPaintball", 20000, 0);
  4563. return 1;
  4564. }
  4565.  
  4566. public StartPaintball()
  4567. {
  4568. PaintballRound = 1;
  4569. StartingPaintballRound = 0;
  4570. PaintballWinner = 999;
  4571. PaintballWinnerKills = 0;
  4572. ////foreach(Player, i)
  4573. for(new i; i<MAX_PLAYERS; i++)
  4574. {
  4575. if(IsPlayerConnected(i))
  4576. {
  4577. if(PlayerPaintballing[i] != 0)
  4578. {
  4579. ResetPlayerWeapons(i);
  4580. ClearGuns(i);
  4581. ResetPlayerAdminWeaponsEx(i);
  4582. new gun1 = PlayerInfo[i][pPaintballGun1];
  4583. new gun2 = PlayerInfo[i][pPaintballGun2];
  4584. GivePlayerAdminGun(i, gun1);
  4585. GivePlayerAdminGun(i, gun2);
  4586. TogglePlayerControllable(i, 1);
  4587. SendClientMessage(i, COLOR_YELLOW, "Paintball Match started, 4 minutes left.");
  4588. PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
  4589. }
  4590. }
  4591. }
  4592. SetTimer("PaintballEnded", 240000, 0);
  4593. return 1;
  4594. }
  4595.  
  4596. public PaintballEnded()
  4597. {
  4598. new string[128];
  4599. new name[MAX_PLAYER_NAME];
  4600. ////foreach(Player, i)
  4601. for(new i; i<MAX_PLAYERS; i++)
  4602. {
  4603. if(IsPlayerConnected(i))
  4604. {
  4605. if(PlayerPaintballing[i] != 0)
  4606. {
  4607. if(IsPlayerConnected(PaintballWinner))
  4608. {
  4609. GetPlayerName(PaintballWinner, name, sizeof(name));
  4610. format(string,sizeof(string), "** %s won the Paintball Match with %d kills **",name,PaintballWinnerKills);
  4611. SendClientMessage(i, COLOR_WHITE, string);
  4612. }
  4613. ResetPlayerWeapons(i);
  4614. ClearGuns(i);
  4615. ResetPlayerAdminWeaponsEx(i);
  4616. SetPlayerWeapons(i);
  4617. PlayerPaintballing[i] = 0;
  4618. PlayerPaintballKills[i] = 0;
  4619. SetPlayerPos(i,1310.2244,-1368.6892,13.5526);
  4620. SetPlayerInterior(i, 0);
  4621. SetPlayerVirtualWorld(i, 0);
  4622. TogglePlayerControllable(i, 1);
  4623. }
  4624. }
  4625. }
  4626. AnnouncedPaintballRound = 0;
  4627. PaintballRound = 0;
  4628. return 1;
  4629. }
  4630.  
  4631. public DollahScoreUpdate()
  4632. {
  4633. new LevScore;
  4634. ////foreach(Player, i)
  4635. for(new i; i<MAX_PLAYERS; i++)
  4636. {
  4637. if(IsPlayerConnected(i))
  4638. {
  4639. LevScore = PlayerInfo[i][pLevel];
  4640. SetPlayerScore(i, LevScore);
  4641. }
  4642. }
  4643. return 1;
  4644. }
  4645.  
  4646. public Encrypt(string[])
  4647. {
  4648. for(new x=0; x < strlen(string); x++)
  4649. {
  4650. string[x] += (3^x) * (x % 15);
  4651. if(string[x] > (0xff))
  4652. {
  4653. string[x] -= 256;
  4654. }
  4655. }
  4656. return 1;
  4657. }
  4658.  
  4659. public OnPlayerChangeWeapon(playerid, oldweapon, newweapon)
  4660. {
  4661. if(PlayerHasTazer[playerid] == 1) SetPlayerArmedWeapon(playerid,1);
  4662. if(newweapon == PlayerInfo[playerid][pGun12])
  4663. {
  4664. if(BombID[playerid] != 0)
  4665. {
  4666. if(PlayerInfo[playerid][pMember] == 8) HoldingDetonator[playerid] = 1;
  4667. }
  4668. }
  4669. else
  4670. {
  4671. HoldingDetonator[playerid] = 0;
  4672. }
  4673. if(!(PlayerInfo[playerid][pAdmin] >= 4))
  4674. {
  4675. new WeaponName[65];
  4676. if(newweapon > 0)
  4677. {
  4678. if(
  4679. (newweapon == 4 && PlayerInfo[playerid][pMember] != 8) || //knife
  4680. newweapon == 16 || //grenades
  4681. newweapon == 18 || //molotovs
  4682. (newweapon == 17 && !IsACop(playerid)) || //teargas
  4683. newweapon == 26 || //sawn off
  4684. newweapon == 36 || //heat seeker
  4685. newweapon == 37 || //flame thrower
  4686. newweapon == 38 || //minigun
  4687. newweapon == 39 || //satchels
  4688. (newweapon == 40 && PlayerInfo[playerid][pMember] != 8) || //detonators
  4689. newweapon == 44 || //nv gogles
  4690. newweapon == 45) //hs goggles
  4691. {
  4692. if(HaveWeapon(playerid,newweapon) != newweapon && HaveAdminWeapon(playerid,newweapon) != newweapon)
  4693. {
  4694. if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
  4695. {
  4696. new string[128];
  4697. GetWeaponName(newweapon,WeaponName,64);
  4698. format(string, sizeof(string), "Hack: %s (%d) has a desynced %s.",PlayerName(playerid),playerid,WeaponName);
  4699. UpdateWarnings(string);
  4700. TakeWeapon(playerid,newweapon);
  4701. RemovePlayerWeapon(playerid, newweapon);
  4702. return 1;
  4703. }
  4704. }
  4705. }
  4706. }
  4707. if(newweapon > 0 && newweapon != 46)
  4708. {
  4709. if(HaveWeapon(playerid,newweapon) != newweapon && HaveAdminWeapon(playerid,newweapon) != newweapon)
  4710. {
  4711. if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
  4712. {
  4713. new string[128];
  4714. GetWeaponName(newweapon,WeaponName,64);
  4715. format(string, sizeof(string), "Hack: %s (%d) has a desynced %s.",PlayerName(playerid),playerid,WeaponName);
  4716. UpdateWarnings(string);
  4717. }
  4718. }
  4719. }
  4720. }
  4721. return 1;
  4722. }
  4723.  
  4724. stock HeadshotCheck(playerid, &Float:x, &Float:y, &Float:z)
  4725. {
  4726. new Float:fx,Float:fy,Float:fz;
  4727. GetPlayerCameraFrontVector(playerid, fx, fy, fz);
  4728. new Float:cx,Float:cy,Float:cz;
  4729. GetPlayerCameraPos(playerid, cx, cy, cz);
  4730. for(new Float:f = 0.0; f < 100; f = f + 0.5)
  4731. {
  4732. x = fx * f + cx;
  4733. y = fy * f + cy;
  4734. z = fz * f + cz;
  4735. for(new i = 0; i < MAX_PLAYERS; i ++)
  4736. {
  4737. if(i != playerid)
  4738. {
  4739. if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_DUCK)
  4740. {
  4741. if(IsPlayerInRangeOfPoint(i, 0.4, x, y, z))
  4742. {
  4743. if(PlayerInfo[i][pHeadValue] > 0)
  4744. {
  4745. if(GoChase[playerid] == i)
  4746. {
  4747. new string[256];
  4748. new killer = playerid;
  4749. new price = PlayerInfo[i][pHeadValue];
  4750. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-price/2;
  4751. GivePlayerMoney(i, -price/2);
  4752. PlayerInfo[killer][pCash] = PlayerInfo[killer][pCash]+price/2;
  4753. GivePlayerMoney(killer, price/2);
  4754. format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",PlayerName(killer),PlayerName(i),price/2);
  4755. SendFamilyMessage(8, COLOR_YELLOW, string);
  4756. format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
  4757. SendClientMessage(i, COLOR_YELLOW, string);
  4758. PlayerPlaySound(killer, 1052, 0.0, 0.0, 0.0);
  4759. ClearContract(i);
  4760. GoChase[killer] = 999;
  4761. PlayerInfo[killer][pCHits]++;
  4762. }
  4763. }
  4764. SetPlayerHealth(i, 0.0);
  4765. }
  4766. }
  4767. else
  4768. {
  4769. if(IsPlayerInRangeOfPoint(i, 0.4, x, y, z - 0.7))
  4770. {
  4771. if(PlayerInfo[i][pHeadValue] > 0)
  4772. {
  4773. if(GoChase[playerid] == i)
  4774. {
  4775. new string[256];
  4776. new killer = playerid;
  4777. new price = PlayerInfo[i][pHeadValue];
  4778. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-price/2;
  4779. GivePlayerMoney(i, -price/2);
  4780. PlayerInfo[killer][pCash] = PlayerInfo[killer][pCash]+price/2;
  4781. GivePlayerMoney(killer, price/2);
  4782. format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",PlayerName(killer),PlayerName(i),price/2);
  4783. SendFamilyMessage(8, COLOR_YELLOW, string);
  4784. format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
  4785. SendClientMessage(i, COLOR_YELLOW, string);
  4786. PlayerPlaySound(killer, 1052, 0.0, 0.0, 0.0);
  4787. ClearContract(i);
  4788. GoChase[killer] = 999;
  4789. PlayerInfo[killer][pCHits]++;
  4790. }
  4791. }
  4792. SetPlayerHealth(i, 0.0);
  4793. }
  4794. }
  4795. }
  4796. }
  4797. }
  4798. return 1;
  4799. }
  4800.  
  4801. stock Float:GetPointAngleToPoint(Float:x2, Float:y2, Float:X, Float:Y)
  4802. {
  4803. new Float:DX, Float:DY;
  4804. new Float:angle;
  4805. DX = floatabs(floatsub(x2,X));
  4806. DY = floatabs(floatsub(y2,Y));
  4807. if (DY == 0.0 || DX == 0.0)
  4808. {
  4809. if(DY == 0 && DX > 0) angle = 0.0;
  4810. else if(DY == 0 && DX < 0) angle = 180.0;
  4811. else if(DY > 0 && DX == 0) angle = 90.0;
  4812. else if(DY < 0 && DX == 0) angle = 270.0;
  4813. else if(DY == 0 && DX == 0) angle = 0.0;
  4814. }
  4815. else
  4816. {
  4817. angle = atan(DX/DY);
  4818. if(X > x2 && Y <= y2) angle += 90.0;
  4819. else if(X <= x2 && Y < y2) angle = floatsub(90.0, angle);
  4820. else if(X < x2 && Y >= y2) angle -= 90.0;
  4821. else if(X >= x2 && Y > y2) angle = floatsub(270.0, angle);
  4822. }
  4823. return floatadd(angle, 90.0);
  4824. }
  4825. stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, &Float:a)
  4826. {
  4827. GetPlayerPos(playerid, x, y, z);
  4828. GetPlayerFacingAngle(playerid, a);
  4829. if (GetPlayerVehicleID(playerid))
  4830. {
  4831. GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  4832. }
  4833. x += (DISTANCE * floatsin(-a, degrees));
  4834. y += (DISTANCE * floatcos(-a, degrees));
  4835. }
  4836. stock GetXYInFrontOfPoint(&Float:x, &Float:y, Float:angle, Float:distance)
  4837. {
  4838. x += (distance * floatsin(-angle, degrees));
  4839. y += (distance * floatcos(-angle, degrees));
  4840. }
  4841. stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
  4842. {
  4843. new Float:camera_x,Float:camera_y,Float:camera_z,Float:vector_x,Float:vector_y,Float:vector_z;
  4844. GetPlayerCameraPos(playerid, camera_x, camera_y, camera_z);
  4845. GetPlayerCameraFrontVector(playerid, vector_x, vector_y, vector_z);
  4846. new Float:vertical, Float:horizontal;
  4847. switch (GetPlayerWeapon(playerid))
  4848. {
  4849. case 34, 35, 36:
  4850. {
  4851. if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, vector_x, vector_y, vector_z) < radius) return true;
  4852. return false;
  4853. }
  4854. case 30, 31: { vertical = 4.0; horizontal = -1.6; }
  4855. case 33: { vertical = 2.7; horizontal = -1.0; }
  4856. default: { vertical = 6.0; horizontal = -2.2; }
  4857. }
  4858. new Float:angle = GetPointAngleToPoint(0, 0, floatsqroot(vector_x*vector_x+vector_y*vector_y), vector_z) - 270.0;
  4859. new Float:resize_x, Float:resize_y, Float:resize_z = floatsin(angle+vertical, degrees);
  4860. GetXYInFrontOfPoint(resize_x, resize_y, GetPointAngleToPoint(0, 0, vector_x, vector_y)+horizontal, floatcos(angle+vertical, degrees));
  4861. if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, resize_x, resize_y, resize_z) < radius) return true;
  4862. return false;
  4863. }
  4864. stock IsPlayerAimingAtPlayer(playerid, targetid)
  4865. {
  4866. new Float:x, Float:y, Float:z;
  4867. GetPlayerPos(targetid, x, y, z);
  4868. if (IsPlayerAimingAt(playerid, x, y, z-0.75, 0.25)) return true;
  4869. if (IsPlayerAimingAt(playerid, x, y, z-0.25, 0.25)) return true;
  4870. if (IsPlayerAimingAt(playerid, x, y, z+0.25, 0.25)) return true;
  4871. if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
  4872. return false;
  4873. }
  4874. stock UpdateWarnings(warning[])
  4875. {
  4876. for(new i = 0;i < sizeof(Warnings) - 1;i++)
  4877. {
  4878. Warnings[i] = Warnings[i+1];
  4879. }
  4880. new hour, minute, second;
  4881. gettime(hour,minute,second);
  4882. hour = FixHour(hour);
  4883. format(Warnings[19],256,"[%d:%d:%d] %s",hour,minute,second,warning);
  4884. AWarncast(warning);
  4885. return 1;
  4886. }
  4887. stock AWarncast(const string[])
  4888. {
  4889. for(new i; i<MAX_PLAYERS; i++)
  4890. {
  4891. if(IsPlayerConnected(i) && gPlayerLogged[i])
  4892. {
  4893. if(PlayerInfo[i][pAdmin] >= 1)
  4894. {
  4895. SendClientMessage(i, COLOR_YELLOW, string);
  4896. }
  4897. }
  4898. }
  4899. printf("%s", string);
  4900. return 1;
  4901. }
  4902. stock HaveWeapon(playerid, weaponid)
  4903. {
  4904. if(IsPlayerConnected(playerid))
  4905. {
  4906. switch (weaponid)
  4907. {
  4908. case 1: return PlayerInfo[playerid][pGun0];
  4909. case 2..9: return PlayerInfo[playerid][pGun1];
  4910. case 10..15: return PlayerInfo[playerid][pGun10];
  4911. case 16..18: return PlayerInfo[playerid][pGun8];
  4912. case 22..24: return PlayerInfo[playerid][pGun2];
  4913. case 25..27: return PlayerInfo[playerid][pGun3];
  4914. case 28..29: return PlayerInfo[playerid][pGun4];
  4915. case 30..31: return PlayerInfo[playerid][pGun5];
  4916. case 32: return PlayerInfo[playerid][pGun4];
  4917. case 33..34: return PlayerInfo[playerid][pGun6];
  4918. case 35..38: return PlayerInfo[playerid][pGun7];
  4919. case 39: return PlayerInfo[playerid][pGun8];
  4920. case 41..43: return PlayerInfo[playerid][pGun9];
  4921. case 44..46: return PlayerInfo[playerid][pGun11];
  4922. case 40: return PlayerInfo[playerid][pGun12];
  4923. }
  4924. }
  4925. return 1;
  4926. }
  4927. stock GivePlayerGun(playerid, weaponid)
  4928. {
  4929. switch (weaponid)
  4930. {
  4931. case 1: { PlayerInfo[playerid][pGun0] = 1; GivePlayerWeapon(playerid, 1, 1); }
  4932. case 2..9: { PlayerInfo[playerid][pGun1] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
  4933. case 10..15: { PlayerInfo[playerid][pGun10] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
  4934. case 16..18, 39: { PlayerInfo[playerid][pGun8] = weaponid; GivePlayerWeapon(playerid, weaponid, 2); }
  4935. case 21: { PlayerInfo[playerid][pGun12] = 21; SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); }
  4936. case 22..24: { PlayerInfo[playerid][pGun2] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4937. case 25..27: { PlayerInfo[playerid][pGun3] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4938. case 28..29, 32: { PlayerInfo[playerid][pGun4] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4939. case 30, 31: { PlayerInfo[playerid][pGun5] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4940. case 33, 34: { PlayerInfo[playerid][pGun6] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4941. case 35..38: { PlayerInfo[playerid][pGun7] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4942. case 40: { PlayerInfo[playerid][pGun12] = 40; GivePlayerWeapon(playerid, 40, 1); }
  4943. case 41..43: { PlayerInfo[playerid][pGun9] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4944. case 44..46: { PlayerInfo[playerid][pGun11] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4945. }
  4946. return 1;
  4947. }
  4948. stock HaveAdminWeapon(playerid, weaponid)
  4949. {
  4950. if(IsPlayerConnected(playerid))
  4951. {
  4952. switch (weaponid)
  4953. {
  4954. case 1: return aGun[playerid][0];
  4955. case 2..9: return aGun[playerid][1];
  4956. case 10..15: return aGun[playerid][10];
  4957. case 16..18: return aGun[playerid][8];
  4958. case 22..24: return aGun[playerid][2];
  4959. case 25..27: return aGun[playerid][3];
  4960. case 28..29: return aGun[playerid][4];
  4961. case 30..31: return aGun[playerid][5];
  4962. case 32: return aGun[playerid][4];
  4963. case 33..34: return aGun[playerid][6];
  4964. case 35..38: return aGun[playerid][7];
  4965. case 39: return aGun[playerid][8];
  4966. case 41..43: return aGun[playerid][9];
  4967. case 44..46: return aGun[playerid][11];
  4968. case 40: return aGun[playerid][12];
  4969. }
  4970. }
  4971. return 1;
  4972. }
  4973. stock GivePlayerAdminGun(playerid, weaponid)
  4974. {
  4975. switch (weaponid)
  4976. {
  4977. case 1: { aGun[playerid][0] = 1; GivePlayerWeapon(playerid, 1, 1); }
  4978. case 2..9: { aGun[playerid][1] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
  4979. case 10..15: { aGun[playerid][10] = weaponid; GivePlayerWeapon(playerid, weaponid, 1); }
  4980. case 16..18, 39: { aGun[playerid][8] = weaponid; GivePlayerWeapon(playerid, weaponid, 2); }
  4981. case 21: { aGun[playerid][12] = 21; SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); }
  4982. case 22..24: { aGun[playerid][2] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4983. case 25..27: { aGun[playerid][3] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4984. case 28..29, 32: { aGun[playerid][4] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4985. case 30, 31: { aGun[playerid][5] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4986. case 33, 34: { aGun[playerid][6] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4987. case 35..38: { aGun[playerid][7] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4988. case 40: { aGun[playerid][12] = 40; GivePlayerWeapon(playerid, 40, 1); }
  4989. case 41..43: { aGun[playerid][9] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4990. case 44..46: { aGun[playerid][11] = weaponid; GivePlayerWeapon(playerid, weaponid, 99999); }
  4991. }
  4992. return 1;
  4993. }
  4994. stock ResetPlayerAdminWeaponsEx(playerid)
  4995. {
  4996. ResetPlayerWeapons(playerid);
  4997. aGun[playerid][0] = 0;
  4998. aGun[playerid][1] = 0;
  4999. aGun[playerid][2] = 0;
  5000. aGun[playerid][3] = 0;
  5001. aGun[playerid][4] = 0;
  5002. aGun[playerid][5] = 0;
  5003. aGun[playerid][6] = 0;
  5004. aGun[playerid][7] = 0;
  5005. aGun[playerid][8] = 0;
  5006. aGun[playerid][9] = 0;
  5007. aGun[playerid][10] = 0;
  5008. aGun[playerid][11] = 0;
  5009. aGun[playerid][12] = 0;
  5010. return 1;
  5011. }
  5012. stock Teleport(playerid, Float:x, Float:y, Float:z, Float:a, interiorid, virtualid, getvehicle)
  5013. {
  5014. if (getvehicle && (getvehicle = GetPlayerVehicleID(playerid)))
  5015. {
  5016. SetVehiclePos(getvehicle, x, y, z);
  5017. SetVehicleZAngle(getvehicle, a);
  5018. LinkVehicleToInterior(getvehicle, interiorid);
  5019. SetVehicleVirtualWorld(getvehicle, virtualid);
  5020. new
  5021. trailerid = GetVehicleTrailer(getvehicle),
  5022. bike = IsABike(getvehicle);
  5023. if (trailerid)
  5024. {
  5025. DetachTrailerFromVehicle(getvehicle);
  5026. SetVehiclePos(trailerid, x, y, z);
  5027. LinkVehicleToInterior(trailerid, interiorid);
  5028. SetVehicleVirtualWorld(trailerid, virtualid);
  5029. SetVehicleZAngle(trailerid, a);
  5030. AttachTrailerToVehicle(trailerid, getvehicle);
  5031. }
  5032. ////foreach(Player,i)
  5033. for(new i; i<MAX_PLAYERS; i++)
  5034. {
  5035. if (IsPlayerConnected(i))
  5036. {
  5037. if (IsPlayerInVehicle(i, getvehicle))
  5038. {
  5039. SetPlayerInterior(i, interiorid);
  5040. SetPlayerVirtualWorld(i, virtualid);
  5041. if (bike)
  5042. {
  5043. SetPlayerPos(i, x, y, z + 1.0);
  5044. if(GetPlayerState(i) == PLAYER_STATE_DRIVER) PutPlayerInVehicle(i, getvehicle, 0);
  5045. else PutPlayerInVehicle(i, getvehicle, 1);
  5046. }
  5047. }
  5048. else if (trailerid && IsPlayerInVehicle(i, trailerid))
  5049. {
  5050. SetPlayerInterior(i, interiorid);
  5051. SetPlayerVirtualWorld(i, virtualid);
  5052. SetCameraBehindPlayer(i);
  5053. }
  5054. }
  5055. }
  5056. }
  5057. else
  5058. {
  5059. SetPlayerPos(playerid, x, y, z);
  5060. SetPlayerInterior(playerid, interiorid);
  5061. SetPlayerFacingAngle(playerid, a);
  5062. SetPlayerVirtualWorld(playerid, virtualid);
  5063. SetCameraBehindPlayer(playerid);
  5064. }
  5065. }
  5066. stock GetPlayerFamilyName(playerid)
  5067. {
  5068. new ttext[64];
  5069. // if player is in a family, format family name
  5070. if(PlayerInfo[playerid][pFMember] != 255)
  5071. format(ttext,sizeof(ttext),"%s",FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
  5072. return ttext;
  5073. }
  5074. stock GetPlayerFactionName(playerid)
  5075. {
  5076. new ttext[64];
  5077. switch(PlayerInfo[playerid][pMember])
  5078. {
  5079. case 1: ttext = "LSPD";
  5080. case 2: ttext = "FBI";
  5081. case 3: ttext = "SAST";
  5082. case 4: ttext = "LSFMD";
  5083. case 5: ttext = "NG";
  5084. case 6: ttext = "Senate";
  5085. case 7: ttext = "CIA";
  5086. case 8: ttext = "Hitmen";
  5087. case 9: ttext = "News";
  5088. case 10: ttext = "Taxi";
  5089. default: ttext = "None";
  5090. }
  5091. return ttext;
  5092. }
  5093. stock ReturnVehicleModelID(string[])
  5094. {
  5095.  
  5096. if(IsNumeric(string))
  5097. {
  5098. new id = strval(string);
  5099.  
  5100. if(id >= 400 && id <= 611)
  5101. {
  5102. return id;
  5103. }
  5104. }
  5105.  
  5106. for(new i = 0;i < sizeof(vehName);i++)
  5107. {
  5108. if(strfind(vehName[i],string,true) != -1)
  5109. {
  5110. return i + 400;
  5111. }
  5112. }
  5113.  
  5114. return 0;
  5115. }
  5116. stock GetPlayerFRank(playerid)
  5117. {
  5118. new string[64];
  5119. format(string, sizeof(string), "%s", "None");
  5120. // if player is in a family, format family rank
  5121. if(PlayerInfo[playerid][pFMember] != 255)
  5122. {
  5123. new fam = PlayerInfo[playerid][pFMember];
  5124. new rank = PlayerInfo[playerid][pFRank];
  5125. if(rank >= 1 && rank <= 6)
  5126. {
  5127. format(string, sizeof(string), "%s", FamilyRank[fam][rank-1]);
  5128. }
  5129. else
  5130. {
  5131. format(string, sizeof(string), "%s", FamilyRank[fam][0]);
  5132. }
  5133. }
  5134. return string;
  5135. }
  5136.  
  5137. stock GetPlayerRank(playerid)
  5138. {
  5139. new string[64];
  5140. string = "None";
  5141. if(PlayerInfo[playerid][pMember] >= 1)
  5142. {
  5143. // format string according to rank title and broadcast
  5144. switch(PlayerInfo[playerid][pMember])
  5145. {
  5146. case 1: // police
  5147. {
  5148. switch(PlayerInfo[playerid][pRank])
  5149. {
  5150. case 6: string = "Chief";
  5151. case 5: string = "Deputy Chief";
  5152. case 4: string = "Captain";
  5153. case 3: string = "Sergeant";
  5154. case 2: string = "Senior Officer";
  5155. case 1: string = "Officer";
  5156. default: string = "Cadet";
  5157. }
  5158. }
  5159. case 2: // fbi
  5160. {
  5161. switch(PlayerInfo[playerid][pRank])
  5162. {
  5163. case 6: string = "Director";
  5164. case 5: string = "Assistant Director";
  5165. case 4: string = "Veteran Agent";
  5166. case 3: string = "Special Agent in Charge";
  5167. case 2: string = "Special Agent";
  5168. case 1: string = "Special Agent Trainee";
  5169. default: string = "Intern";
  5170. }
  5171. }
  5172. case 3: // SAST
  5173. {
  5174. switch(PlayerInfo[playerid][pRank])
  5175. {
  5176. case 6: string = "Commodore";
  5177. case 5: string = "Superintendent";
  5178. case 4: string = "Deputy";
  5179. case 3: string = "Lieutenant";
  5180. case 2: string = "Trooper first class";
  5181. case 1: string = "Trooper";
  5182. default: string = "Cadet";
  5183. }
  5184. }
  5185. case 4: // firemen
  5186. {
  5187. switch(PlayerInfo[playerid][pRank])
  5188. {
  5189. case 6: string = "Chief";
  5190. case 5: string = "Captain";
  5191. case 4: string = "Lieutenant";
  5192. case 3: string = "Firefighter";
  5193. case 2: string = "Paramedic";
  5194. default: string = "Nurse";
  5195. }
  5196. }
  5197. case 5: // national guard
  5198. {
  5199. switch(PlayerInfo[playerid][pRank])
  5200. {
  5201. case 6: string = "General";
  5202. case 5: string = "Lt.General";
  5203. case 4: string = "Colonel";
  5204. case 3: string = "Major";
  5205. case 2: string = "Captain";
  5206. case 1: string = "Sergeant";
  5207. default: string = "Private";
  5208. }
  5209. }
  5210. case 6: // senate
  5211. {
  5212. switch(PlayerInfo[playerid][pRank])
  5213. {
  5214. case 6: string = "Governor";
  5215. case 5: string = "Vice-Governor";
  5216. case 4: string = "Senator";
  5217. case 3: string = "Prime Minister";
  5218. case 2: string = "Minister";
  5219. default: string = "Counsellor";
  5220. }
  5221. }
  5222. case 7: // cia
  5223. {
  5224. switch(PlayerInfo[playerid][pRank])
  5225. {
  5226. case 6: string = "Director";
  5227. case 5: string = "Vice Director";
  5228. case 4: string = "Special Agent";
  5229. case 3: string = "Agent";
  5230. case 2: string = "Inspector";
  5231. default: string = "Contractor";
  5232. }
  5233. }
  5234. case 8: // hitmen
  5235. {
  5236. switch(PlayerInfo[playerid][pRank])
  5237. {
  5238. case 6: string = "Director";
  5239. case 5: string = "Vice-Director";
  5240. case 4: string = "Elite Agent";
  5241. case 3: string = "Agent";
  5242. case 2: string = "Recruit";
  5243. default: string = "Freelancer";
  5244. }
  5245. }
  5246. case 9: // news
  5247. {
  5248. switch(PlayerInfo[playerid][pRank])
  5249. {
  5250. case 8: string = "Network Executive";
  5251. case 7: string = "Senior Editor";
  5252. case 6: string = "Editor";
  5253. case 5: string = "Junior Editor";
  5254. case 4: string = "Anchor";
  5255. case 3: string = "Correspondent";
  5256. case 2: string = "Reporter";
  5257. case 1: string = "Junior Reporter";
  5258. default: string = "Intern";
  5259. }
  5260. }
  5261. case 10: // taxi
  5262. {
  5263. switch(PlayerInfo[playerid][pRank])
  5264. {
  5265. case 6: string = "Commissioner";
  5266. case 5: string = "Supervisor";
  5267. case 4: string = "Veteran Driver";
  5268. case 3: string = "Cabbie";
  5269. default: string = "Driver";
  5270. }
  5271. }
  5272. default: string = "None";
  5273. }
  5274. }
  5275. return string;
  5276. }
  5277. stock PlayerName(playerid)
  5278. {
  5279. new name[MAX_PLAYER_NAME];
  5280. GetPlayerName(playerid, name, sizeof(name));
  5281. return name;
  5282. }
  5283. stock right(source[], len)
  5284. {
  5285. new retval[MAX_STRING], srclen;
  5286. srclen = strlen(source);
  5287. strmid(retval, source, srclen - len, srclen, MAX_STRING);
  5288. return retval;
  5289. }
  5290.  
  5291. stock InvalidChar(str[])
  5292. {
  5293. if(strfind(str, "|", true) == -1) return 0;
  5294. else return 1;
  5295. }
  5296.  
  5297. stock strvalEx( str[ ] )
  5298. {
  5299. if( strlen( str ) >= 50 ) return -1;
  5300. return strval( str );
  5301. }
  5302.  
  5303. stock IsValidNosVehicle(vehicleid)
  5304. {
  5305. if(IsAPlane(vehicleid)) return 0;
  5306. else if(IsAHelicopter(vehicleid)) return 0;
  5307. switch(GetVehicleModel(vehicleid))
  5308. {
  5309. case 581,523,462,521,463,522,461,448,468,586,
  5310. 509,481,510,472,473,493,595,484,430,453,
  5311. 452,446,454,590,569,537,538,570,449: return 0;
  5312. }
  5313. return 1;
  5314. }
  5315.  
  5316. stock IsInvalidSkin(skinid)
  5317. {
  5318. switch(skinid)
  5319. {
  5320. case 3,4,5,6,7,8,42,65,74,86,
  5321. 119,149,208,268,273,289: return 1;
  5322. }
  5323. return 0;
  5324. }
  5325.  
  5326. stock InvSkin(skinid)
  5327. {
  5328. switch(skinid)
  5329. {
  5330. case 265, 266, 267, 274, 275, 276, 277, 278, 279, 280,
  5331. 281, 282, 283, 284, 285, 286, 287, 288: return 1;
  5332. }
  5333. return 0;
  5334. }
  5335.  
  5336. stock IsInvalidDetainSeat(vehicleid)
  5337. {
  5338. switch(GetVehicleModel(vehicleid))
  5339. {
  5340. case 528,601,599: return 1;
  5341. }
  5342. return 0;
  5343. }
  5344.  
  5345. stock IsInvalidDetainVehicle(vehicleid)
  5346. {
  5347. switch(GetVehicleModel(vehicleid))
  5348. {
  5349. case 509,481,462,510,448,471: return 1;
  5350. }
  5351. return 0;
  5352. }
  5353.  
  5354. stock IsNonFuelVehicle(vehicleid)
  5355. {
  5356. switch(GetVehicleModel(vehicleid))
  5357. {
  5358. case 592,577,511,512,593,520,553,476,519,460,513,548,425,
  5359. 417,487,488,497,563,447,469,509,481,510,472,473,493,595,
  5360. 484,430,453,452,446,454: return 1;
  5361. }
  5362. return 0;
  5363. }
  5364.  
  5365. stock IsABike(vehicleid)
  5366. {
  5367. switch(GetVehicleModel(vehicleid))
  5368. {
  5369. case 448,461,462,463,468,521,522,523,581,586,481,409,510: return 1;
  5370. }
  5371. return 0;
  5372. }
  5373.  
  5374. stock IsABoat(vehicleid)
  5375. {
  5376. switch(GetVehicleModel(vehicleid))
  5377. {
  5378. case 430,446,452,453,454,472,473,484,493,595: return 1;
  5379. }
  5380. return 0;
  5381. }
  5382.  
  5383. stock IsAPlane(vehicleid)
  5384. {
  5385. switch(GetVehicleModel(vehicleid))
  5386. {
  5387. case 460,464,476,511,512,513,519,520,553,577,592,593: return 1;
  5388. }
  5389. return 0;
  5390. }
  5391.  
  5392. stock IsAHelicopter(vehicleid)
  5393. {
  5394. switch(GetVehicleModel(vehicleid))
  5395. {
  5396. case 417,425,447,465,469,487,488,497,501,548,563: return 1;
  5397. }
  5398. return 0;
  5399. }
  5400.  
  5401. stock IsATrain(vehicleid)
  5402. {
  5403. switch(GetVehicleModel(vehicleid))
  5404. {
  5405. case 449,537,538,569,570,590: return 1;
  5406. }
  5407. return 0;
  5408. }
  5409.  
  5410. stock IsAFireman(playerid)
  5411. {
  5412. if(IsPlayerConnected(playerid))
  5413. {
  5414. new leader = PlayerInfo[playerid][pLeader];
  5415. new member = PlayerInfo[playerid][pMember];
  5416. if(member==4) return 1;
  5417. else if(leader==4) return 1;
  5418. }
  5419. return 0;
  5420. }
  5421.  
  5422. stock IsACopCar(vehicleid)
  5423. {
  5424. switch(GetVehicleModel(vehicleid))
  5425. {
  5426. case 523,427,528,596,598,597,599,601,497,425,430: return 1;
  5427. }
  5428. return 0;
  5429. }
  5430.  
  5431. stock IsANGCar(vehicleid)
  5432. {
  5433. switch(GetVehicleModel(vehicleid))
  5434. {
  5435. case 470,548,520,433,432: return 1;
  5436. }
  5437. return 0;
  5438. }
  5439. stock IsAFBICar(vehicleid)
  5440. {
  5441. switch(GetVehicleModel(vehicleid))
  5442. {
  5443. case 415,490,482: return 1;
  5444. }
  5445. return 0;
  5446. }
  5447.  
  5448. stock IsAnAmbulance(vehicleid)
  5449. {
  5450. switch(GetVehicleModel(vehicleid))
  5451. {
  5452. case 416,407,563,505: return 1;
  5453. }
  5454. return 0;
  5455. }
  5456.  
  5457. stock IsATaxiCar(vehicleid)
  5458. {
  5459. switch(GetVehicleModel(vehicleid))
  5460. {
  5461. case 420,438: return 1;
  5462. }
  5463. return 0;
  5464. }
  5465.  
  5466. stock IsANewsCar(vehicleid)
  5467. {
  5468. switch(GetVehicleModel(vehicleid))
  5469. {
  5470. case 582,488: return 1;
  5471. }
  5472. return 0;
  5473. }
  5474.  
  5475. stock IsABus(vehicleid)
  5476. {
  5477. switch(GetVehicleModel(vehicleid))
  5478. {
  5479. case 431,437: return 1;
  5480. }
  5481. return 0;
  5482. }
  5483.  
  5484. stock TakeWeapon(playerid, pgun)
  5485. {
  5486. if(IsPlayerConnected(playerid))
  5487. {
  5488. if(PlayerInfo[playerid][pGun1] == pgun)
  5489. {
  5490. PlayerInfo[playerid][pGun1] = 0;
  5491. }
  5492. if(PlayerInfo[playerid][pGun2] == pgun)
  5493. {
  5494. PlayerInfo[playerid][pGun2] = 0;
  5495. }
  5496. if(PlayerInfo[playerid][pGun3] == pgun)
  5497. {
  5498. PlayerInfo[playerid][pGun3] = 0;
  5499. }
  5500. if(PlayerInfo[playerid][pGun4] == pgun)
  5501. {
  5502. PlayerInfo[playerid][pGun4] = 0;
  5503. }
  5504. if(PlayerInfo[playerid][pGun5] == pgun)
  5505. {
  5506. PlayerInfo[playerid][pGun5] = 0;
  5507. }
  5508. if(PlayerInfo[playerid][pGun6] == pgun)
  5509. {
  5510. PlayerInfo[playerid][pGun6] = 0;
  5511. }
  5512. if(PlayerInfo[playerid][pGun7] == pgun)
  5513. {
  5514. PlayerInfo[playerid][pGun7] = 0;
  5515. }
  5516. if(PlayerInfo[playerid][pGun8] == pgun)
  5517. {
  5518. PlayerInfo[playerid][pGun8] = 0;
  5519. }
  5520. if(PlayerInfo[playerid][pGun9] == pgun)
  5521. {
  5522. PlayerInfo[playerid][pGun9] = 0;
  5523. }
  5524. if(PlayerInfo[playerid][pGun10] == pgun)
  5525. {
  5526. PlayerInfo[playerid][pGun10] = 0;
  5527. }
  5528. if(PlayerInfo[playerid][pGun11] == pgun)
  5529. {
  5530. PlayerInfo[playerid][pGun11] = 0;
  5531. }
  5532. if(PlayerInfo[playerid][pGun12] == pgun)
  5533. {
  5534. PlayerInfo[playerid][pGun12] = 0;
  5535. }
  5536. SetPlayerWeapons(playerid);
  5537. }
  5538. return 1;
  5539. }
  5540.  
  5541. stock SetPlayerFacingPlayer(playerid, giveplayerid)
  5542. {
  5543. new Float:angle;
  5544. new Float:misc = 5.0;
  5545. new Float:x, Float:y, Float:z;
  5546. new Float:ix, Float:iy, Float:iz;
  5547. GetPlayerPos(giveplayerid, x, y, z);
  5548. GetPlayerPos(playerid, ix, iy, iz);
  5549. angle = 180.0-atan2(ix-x,iy-y);
  5550. angle += misc;
  5551. misc *= -1;
  5552. SetPlayerFacingAngle(playerid, angle+misc);
  5553. }
  5554.  
  5555. stock SetPlayerFacingObject(playerid, objectid)
  5556. {
  5557. new Float:angle;
  5558. new Float:misc = 5.0;
  5559. new Float:X, Float:Y, Float:Z;
  5560. new Float:plX, Float:plY, Float:plZ;
  5561. GetObjectPos(objectid, X, Y, Z);
  5562. GetPlayerPos(playerid, plX, plY, plZ);
  5563. angle = 180.0-atan2(plX-X,plY-Y);
  5564. angle += misc;
  5565. misc *= -1;
  5566. SetPlayerFacingAngle(playerid, angle+misc);
  5567. }
  5568.  
  5569. stock GetPlayerSpeed(playerid,bool:kmh)
  5570. {
  5571. new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  5572. if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  5573. rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  5574. return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
  5575. }
  5576.  
  5577. stock GetClosestPlayer(playerid)
  5578. {
  5579. new Float:cdist, targetid = -1;
  5580. ////foreach(Player, i)
  5581. for(new i; i<MAX_PLAYERS; i++)
  5582. {
  5583. if (IsPlayerConnected(i) && playerid != i && (targetid < 0 || cdist > GetDistanceBetweenPlayers(playerid, i)))
  5584. {
  5585. targetid = i;
  5586. cdist = GetDistanceBetweenPlayers(playerid, i);
  5587. }
  5588. }
  5589. return targetid;
  5590. }
  5591.  
  5592. stock Rangeban(playerid)
  5593. {
  5594. if(!IsPlayerConnected(playerid)) return 0;
  5595. new string[128];
  5596. new total[16],ip[16];
  5597. GetPlayerIp(playerid, ip, sizeof(ip));
  5598. new cnt;
  5599. for(new i=0;i<strlen(ip);i++)
  5600. {
  5601. if(ip[i] == '.') cnt++;
  5602. if(cnt == 2)
  5603. {
  5604. i++;
  5605. strdel(ip, i, strlen(ip));
  5606. format(total,sizeof(total),"%s*.*",ip);
  5607. }
  5608. }
  5609. format(string, sizeof(string),"banip %s",total);
  5610. SendRconCommand(string);
  5611. return 1;
  5612. }
  5613. //ipinfo
  5614. GetParams(Source[]){
  5615. new Destination[256];
  5616. new SLen=strlen(Source);
  5617. new at,pos=0,tp=0;
  5618. new tempo[256];
  5619.  
  5620. ////////////// Clearing DATA ///////////////// FOR LOOP WAS NOT WORKING FOR THIS PURPOSE
  5621. format(Params[0],sizeof(Params),"");
  5622. format(Params[1],sizeof(Params),"");
  5623. format(Params[2],sizeof(Params),"");
  5624. format(Params[3],sizeof(Params),"");
  5625.  
  5626. /////////////////////////////////////////////
  5627.  
  5628. for(at=pos;at<=SLen;at++){
  5629. strmid(tempo,Source,at,at+1,sizeof(tempo));
  5630. if(!strcmp(tempo,".",true)){
  5631. if(tp<=10){
  5632. strmid(Destination,Source,pos,at,sizeof(Destination));
  5633. format(Params[tp][0],256,"%s",Destination);
  5634. tp=tp+1;
  5635. }
  5636. pos=at+1;
  5637. }
  5638. }
  5639. return 1;
  5640. }
  5641. //ipinfo
  5642. GetFileData(Source[]){
  5643. new Destination[256];
  5644. new SLen=strlen(Source);
  5645. new at,pos=0,tp=0;
  5646. new tempo[256];
  5647.  
  5648. ////////////// Clearing DATA ///////////////// FOR LOOP WAS NOT WORKING FOR THIS PURPOSE
  5649. format(FileData[0],sizeof(FileData),"");
  5650. format(FileData[1],sizeof(FileData),"");
  5651. format(FileData[2],sizeof(FileData),"");
  5652. format(FileData[3],sizeof(FileData),"");
  5653. format(FileData[4],sizeof(FileData),"");
  5654. format(FileData[5],sizeof(FileData),"");
  5655. format(FileData[6],sizeof(FileData),"");
  5656. /////////////////////////////////////////////
  5657.  
  5658. for(at=pos;at<=SLen;at++){
  5659. strmid(tempo,Source,at,at+1,sizeof(tempo));
  5660. if(!strcmp(tempo,",",true)){
  5661. if(tp<=10){
  5662. strmid(Destination,Source,pos,at,sizeof(Destination));
  5663. format(FileData[tp][0],256,"%s",Destination);
  5664. tp=tp+1;
  5665. }
  5666. pos=at+1;
  5667. }
  5668. }
  5669. return 1;
  5670. }
  5671.  
  5672. GetPlayerCountry(playerid,Country[256]){
  5673. new IPAddress[256];
  5674. new a,b,c,d,ipf;
  5675. new File:IPFile;
  5676. new Text[256],start,end;
  5677. GetPlayerIp(playerid,IPAddress,sizeof(IPAddress));
  5678. GetParams(IPAddress);
  5679. a=strval(Params[0]);
  5680. b=strval(Params[1]);
  5681. c=strval(Params[2]);
  5682. d=strval(Params[3]);
  5683. if(a==127 && b==0 && c==0 && d==1){
  5684. format(Country,sizeof(Country),"Localhost");
  5685. return 1;
  5686. }
  5687. ipf = (16777216*a) + (65536*b) + (256*c) + d;
  5688. if(!fexist("CountriesIPs/IPLIST.csv")) return SendClientMessage(playerid,0xFF0000FF,"Country file not found.");
  5689. IPFile=fopen("CountriesIPs/IPLIST.csv",io_read);
  5690. fread(IPFile,Text,sizeof(Text),false);
  5691. while(strlen(Text)>0){
  5692. GetFileData(Text);
  5693. start=strval(FileData[0]);
  5694. end=strval(FileData[1]);
  5695. if(ipf>=start && ipf<=end){
  5696. format(Country,sizeof(Country),"%s(%s)",FileData[6],FileData[5]);
  5697. fclose(IPFile);
  5698. return 1;
  5699. }
  5700. fread(IPFile,Text,sizeof(Text),false);
  5701. }
  5702. fclose(IPFile);
  5703. return 1;
  5704. }
  5705.  
  5706. bool:ipmatch(text[],ip[15])
  5707. {
  5708. new
  5709. len = strlen(text),
  5710. found = 0,
  5711. cmatch,
  5712. cnum = 0;
  5713.  
  5714. for(new i = 0; i < len; i++)
  5715. {
  5716. switch(text[i])
  5717. {
  5718. case '0'..'9':
  5719. {
  5720. if(cmatch >= 3)
  5721. {
  5722. found = 0;
  5723. cmatch = 0;
  5724. cnum = 0;
  5725. }
  5726. else if(cmatch == 1 && text[i - 1] == '0')
  5727. {
  5728. cnum = text[i] - '0';
  5729. continue;
  5730. }
  5731. else
  5732. {
  5733. cnum *= 10;
  5734. cnum += (text[i] - '0');
  5735. cmatch++;
  5736. }
  5737. }
  5738. default:
  5739. {
  5740. if(cmatch != 0)
  5741. {
  5742. if(cnum > 255)
  5743. {
  5744. found = 0;
  5745. cmatch = 0;
  5746. cnum = 0;
  5747. continue;
  5748. }
  5749.  
  5750. ip[found] = cnum;
  5751. found++;
  5752. if(found >= 4) return true;
  5753. cmatch = 0;
  5754. cnum = 0;
  5755. }
  5756. }
  5757. }
  5758. }
  5759. if(cmatch != 0)
  5760. {
  5761. if(cnum > 255)
  5762. {
  5763. found = 0;
  5764. cmatch = 0;
  5765. cnum = 0;
  5766. return false;
  5767. }
  5768.  
  5769. ip[found] = cnum;
  5770. found++;
  5771. if(found >= 4) return true;
  5772. cmatch = 0;
  5773. cnum = 0;
  5774. }
  5775. return false;
  5776. }
  5777.  
  5778. public AutoKick()
  5779. {
  5780. for(new i; i<MAX_PLAYERS; i++)
  5781. ////foreach(Player, i)
  5782. {
  5783. if(IsPlayerConnected(i))
  5784. {
  5785. if(KickPlayer[i] == 1) { Kick(i); }
  5786. else if(KickPlayer[i] == 2) { Ban(i); }
  5787. }
  5788. }
  5789. }
  5790.  
  5791. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  5792. {
  5793. new Model = GetVehicleModel(vehicleid);
  5794. if(Model == 427 && !ispassenger)
  5795. {
  5796. GetPlayerArmour(playerid, StoreArmour[playerid]);
  5797. }
  5798. if(PlayerTied[playerid] != 0) { ClearAnimations(playerid); }
  5799. if(PlayerCuffed[playerid] != 0) { ClearAnimations(playerid); }
  5800. return 1;
  5801. }
  5802.  
  5803. public IsANG(playerid)
  5804. {
  5805. if(IsPlayerConnected(playerid))
  5806. {
  5807. new leader = PlayerInfo[playerid][pLeader];
  5808. new member = PlayerInfo[playerid][pMember];
  5809. if(member==5)
  5810. {
  5811. return 1;
  5812. }
  5813. else if(leader==5)
  5814. {
  5815. return 1;
  5816. }
  5817. }
  5818. return 0;
  5819. }
  5820. public IsACop(playerid)
  5821. {
  5822. if(IsPlayerConnected(playerid))
  5823. {
  5824. new leader = PlayerInfo[playerid][pLeader];
  5825. new member = PlayerInfo[playerid][pMember];
  5826. if(member==1 || member==2 || member==3)
  5827. {
  5828. return 1;
  5829. }
  5830. else if(leader==1 || leader==2 || leader==3)
  5831. {
  5832. return 1;
  5833. }
  5834. }
  5835. return 0;
  5836. }
  5837.  
  5838. public IsAAgent(playerid)
  5839. {
  5840. if(IsPlayerConnected(playerid))
  5841. {
  5842. new leader = PlayerInfo[playerid][pLeader];
  5843. new member = PlayerInfo[playerid][pMember];
  5844. if(member==7)
  5845. {
  5846. return 1;
  5847. }
  5848. else if(leader==7)
  5849. {
  5850. return 1;
  5851. }
  5852. }
  5853. return 0;
  5854. }
  5855.  
  5856.  
  5857.  
  5858. public DisplayGuns(playerid)
  5859. {
  5860. if(IsPlayerConnected(playerid))
  5861. {
  5862. new string[128];
  5863. new WeaponName[65];
  5864. if(PlayerInfo[playerid][pGun0] != 0) { GetWeaponName(PlayerInfo[playerid][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5865. if(PlayerInfo[playerid][pGun1] != 0) { GetWeaponName(PlayerInfo[playerid][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5866. if(PlayerInfo[playerid][pGun2] != 0) { GetWeaponName(PlayerInfo[playerid][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5867. if(PlayerInfo[playerid][pGun3] != 0) { GetWeaponName(PlayerInfo[playerid][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5868. if(PlayerInfo[playerid][pGun4] != 0) { GetWeaponName(PlayerInfo[playerid][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5869. if(PlayerInfo[playerid][pGun5] != 0) { GetWeaponName(PlayerInfo[playerid][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5870. if(PlayerInfo[playerid][pGun6] != 0) { GetWeaponName(PlayerInfo[playerid][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5871. if(PlayerInfo[playerid][pGun7] != 0) { GetWeaponName(PlayerInfo[playerid][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5872. if(PlayerInfo[playerid][pGun8] != 0) { GetWeaponName(PlayerInfo[playerid][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5873. if(PlayerInfo[playerid][pGun9] != 0) { GetWeaponName(PlayerInfo[playerid][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5874. if(PlayerInfo[playerid][pGun10] != 0) { GetWeaponName(PlayerInfo[playerid][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5875. if(PlayerInfo[playerid][pGun11] != 0) { GetWeaponName(PlayerInfo[playerid][pGun11], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5876. if(PlayerInfo[playerid][pGun12] != 0) { GetWeaponName(PlayerInfo[playerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  5877. }
  5878. return 0;
  5879. }
  5880.  
  5881. public IsAtClothShop(playerid)
  5882. {
  5883. if(IsPlayerConnected(playerid))
  5884. {
  5885. if(IsPlayerInRangeOfPoint(playerid,25.0,207.5627,-103.7291,1005.2578) || IsPlayerInRangeOfPoint(playerid,25.0,203.9068,-41.0728,1001.8047))
  5886. {//Binco & Suburban
  5887. return 1;
  5888. }
  5889. else if(IsPlayerInRangeOfPoint(playerid,30.0,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(playerid,50.0,161.3765,-83.8416,1001.8047))
  5890. {//Zip & Victim
  5891. return 1;
  5892. }
  5893. }
  5894. return 0;
  5895. }
  5896.  
  5897. public IsAtDealership(playerid)
  5898. {
  5899. if(IsPlayerConnected(playerid))
  5900. {
  5901. if(IsPlayerInRangeOfPoint(playerid,25.0,2127.5000,-1132.6759,25.5434) || IsPlayerInRangeOfPoint(playerid,25.0,2908.0735,-1947.3708,1.7212))
  5902. {
  5903. return 1;
  5904. }
  5905. else if(IsPlayerInRangeOfPoint(playerid,25.0,2511.2219,-1522.7043,23.8508) || IsPlayerInRangeOfPoint(playerid,25.0,459.4515,-1785.1748,5.5469))
  5906. {
  5907. return 1;
  5908. }
  5909. else if(IsPlayerInRangeOfPoint(playerid,25.0,1993.3129,-2615.2002,13.5469) || IsPlayerInRangeOfPoint(playerid,25.0,1791.1173,-1917.5496,13.3938))
  5910. {
  5911. return 1;
  5912. }
  5913. else if(IsPlayerInRangeOfPoint(playerid,25.0,1658.8696,-1708.0525,20.4844))
  5914. {
  5915. return 1;
  5916. }
  5917. }
  5918. return 0;
  5919. }
  5920.  
  5921. public IsAtGasStation(playerid)
  5922. {
  5923. if(IsPlayerConnected(playerid))
  5924. {
  5925. if(IsPlayerInRangeOfPoint(playerid,6.0,1004.0070,-939.3102,42.1797) || IsPlayerInRangeOfPoint(playerid,6.0,1944.3260,-1772.9254,13.3906))
  5926. {//LS
  5927. return 1;
  5928. }
  5929. else if(IsPlayerInRangeOfPoint(playerid,6.0,-90.5515,-1169.4578,2.4079) || IsPlayerInRangeOfPoint(playerid,6.0,-1609.7958,-2718.2048,48.5391))
  5930. {//LS
  5931. return 1;
  5932. }
  5933. else if(IsPlayerInRangeOfPoint(playerid,6.0,-2029.4968,156.4366,28.9498) || IsPlayerInRangeOfPoint(playerid,8.0,-2408.7590,976.0934,45.4175))
  5934. {//SF
  5935. return 1;
  5936. }
  5937. else if(IsPlayerInRangeOfPoint(playerid,5.0,-2243.9629,-2560.6477,31.8841) || IsPlayerInRangeOfPoint(playerid,8.0,-1676.6323,414.0262,6.9484))
  5938. {//Between LS and SF
  5939. return 1;
  5940. }
  5941. else if(IsPlayerInRangeOfPoint(playerid,6.0,2202.2349,2474.3494,10.5258) || IsPlayerInRangeOfPoint(playerid,10.0,614.9333,1689.7418,6.6968))
  5942. {//LV
  5943. return 1;
  5944. }
  5945. else if(IsPlayerInRangeOfPoint(playerid,8.0,-1328.8250,2677.2173,49.7665) || IsPlayerInRangeOfPoint(playerid,6.0,70.3882,1218.6783,18.5165))
  5946. {//LV
  5947. return 1;
  5948. }
  5949. else if(IsPlayerInRangeOfPoint(playerid,5.0,654.9641,-559.7485,16.5015) || IsPlayerInRangeOfPoint(playerid,5.0,654.9617,-570.4176,16.5015))
  5950. {//Dillimore
  5951. return 1;
  5952. }
  5953. else if(IsPlayerInRangeOfPoint(playerid,5.0,1382.9899,461.9903,20.1245) || IsPlayerInRangeOfPoint(playerid,5.0,1380.9395,457.2494,19.9260))
  5954. {//Montgomery
  5955. return 1;
  5956. }
  5957. }
  5958. return 0;
  5959. }
  5960.  
  5961. public IsAtFishPlace(playerid)
  5962. {
  5963. if(IsPlayerConnected(playerid))
  5964. {
  5965. if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
  5966. {
  5967. return 1;
  5968. }
  5969. else if(IsPlayerInRangeOfPoint(playerid,1.0,396.2197,-2088.6692,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,391.1094,-2088.7976,7.8359))
  5970. {
  5971. return 1;
  5972. }
  5973. else if(IsPlayerInRangeOfPoint(playerid,1.0,383.4157,-2088.7849,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,374.9598,-2088.7979,7.8359))
  5974. {
  5975. return 1;
  5976. }
  5977. else if(IsPlayerInRangeOfPoint(playerid,1.0,369.8107,-2088.7927,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,367.3637,-2088.7925,7.8359))
  5978. {
  5979. return 1;
  5980. }
  5981. else if(IsPlayerInRangeOfPoint(playerid,1.0,362.2244,-2088.7981,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,354.5382,-2088.7979,7.8359))
  5982. {
  5983. return 1;
  5984. }
  5985. }
  5986. return 0;
  5987. }
  5988.  
  5989. public IsAtBar(playerid)
  5990. {
  5991. if(IsPlayerConnected(playerid))
  5992. {
  5993. if(IsPlayerInRangeOfPoint(playerid,4.0,495.7801,-76.0305,998.7578) || IsPlayerInRangeOfPoint(playerid,4.0,499.9654,-20.2515,1000.6797))
  5994. {//10GB
  5995. return 1;
  5996. }
  5997. if(IsPlayerInRangeOfPoint(playerid,4.0,681.4642,-455.4616,-25.6099) || IsPlayerInRangeOfPoint(playerid,4.0,2496.7192,-943.5505,39.9100))
  5998. {//Welcome pump / Comando Vermelho HQ
  5999. return 1;
  6000. }
  6001. if(IsPlayerInRangeOfPoint(playerid,4.0,-787.3099,498.3217,1371.7422) || IsPlayerInRangeOfPoint(playerid,4.0,-784.7496,498.3208,1371.7422))
  6002. {//Mafia
  6003. return 1;
  6004. }
  6005. else if(IsPlayerInRangeOfPoint(playerid,4.0,1215.9480,-13.3519,1000.9219) || IsPlayerInRangeOfPoint(playerid,10.0,-2658.9749,1407.4136,906.2734))
  6006. {//Pigpen
  6007. return 1;
  6008. }
  6009. else if(IsPlayerInRangeOfPoint(playerid,6.0,1144.7220,-4.0717,1000.6719) || IsPlayerInRangeOfPoint(playerid,4.0,968.8607,-46.3676,1001.1172))
  6010. {//Casino & Tigerskin Brothel
  6011. return 1;
  6012. }
  6013. else if(IsPlayerInRangeOfPoint(playerid,6.0,1258.2196,-794.0273,1084.2344) || IsPlayerInRangeOfPoint(playerid,6.0,1557.1156,-1896.4205,869.0624))
  6014. {// Madd Doggs Mansion & Triads Club
  6015. return 1;
  6016. }
  6017. else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1950.8726, 1017.5034, 992.4745) || IsPlayerInRangeOfPoint(playerid,6.0, 2537.5300,-1285.6221,1054.6406))
  6018. { // ??? & Big Smoke House
  6019. return 1;
  6020. }
  6021. }
  6022. return 0;
  6023. }
  6024.  
  6025. public IsAtATM(playerid)
  6026. {
  6027. if(IsPlayerConnected(playerid))
  6028. {
  6029. if(IsPlayerInRangeOfPoint(playerid,2.0,1008.0930,-929.5586,42.3281) || IsPlayerInRangeOfPoint(playerid,2.0,2227.61,-1710.96,13.59) || IsPlayerInRangeOfPoint(playerid,2.0,1929.5021,-1783.4802,13.5469) || IsPlayerInRangeOfPoint(playerid,4.0,1464.8420,-988.7259,1402.7000))
  6030. {//vinwood station & other in gym
  6031. return 1;
  6032. }
  6033. }
  6034. return 0;
  6035. }
  6036.  
  6037. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  6038. {
  6039. if(IsPlayerNPC(playerid))
  6040. {
  6041. printf("OnDialogResponse: BotKick: %d", playerid);
  6042. return 1;
  6043. }
  6044. if(dialogid == 9974 && response)
  6045. {
  6046. new bizid = BizEditID[playerid];
  6047. new Interior;
  6048. new Float:X, Float:Y, Float:Z;
  6049. switch(listitem)
  6050. {
  6051. case 0:
  6052. {
  6053. X = 1456.27;
  6054. Y = -1000.79;
  6055. Z = 1402.70;
  6056. Interior = 1;
  6057. }
  6058. case 1:
  6059. {
  6060. X = 386.27;
  6061. Y = 173.65;
  6062. Z = 1008.38;
  6063. Interior = 3;
  6064. }
  6065. case 2:
  6066. {
  6067. X = 246.82;
  6068. Y = 62.32;
  6069. Z = 1003.64;
  6070. Interior = 6;
  6071. }
  6072. case 3:
  6073. {
  6074. X = 1241.31;
  6075. Y = -773.69;
  6076. Z = 1084.01;
  6077. Interior = 5;
  6078. }
  6079. case 4:
  6080. {
  6081. X = 318.57;
  6082. Y = 1114.48;
  6083. Z = 1083.88;
  6084. Interior = 5;
  6085. }
  6086. case 5:
  6087. {
  6088. X = 2352.94;
  6089. Y = -1180.93;
  6090. Z = 1027.98;
  6091. Interior = 5;
  6092. }
  6093. case 6:
  6094. {
  6095. X = -25.94;
  6096. Y = -141.56;
  6097. Z = 1003.55;
  6098. Interior = 16;
  6099. }
  6100. case 7:
  6101. {
  6102. X = 285.47;
  6103. Y = -41.80;
  6104. Z = 1001.52;
  6105. Interior = 1;
  6106. }
  6107. case 8:
  6108. {
  6109. X = 285.85;
  6110. Y = -86.78;
  6111. Z = 1001.52;
  6112. Interior = 4;
  6113. }
  6114. case 9:
  6115. {
  6116. X = 296.86;
  6117. Y = -112.07;
  6118. Z = 1001.52;
  6119. Interior = 6;
  6120. }
  6121. case 10:
  6122. {
  6123. X = 315.78;
  6124. Y = -143.66;
  6125. Z = 999.60;
  6126. Interior = 7;
  6127. }
  6128. case 11:
  6129. {
  6130. X = 316.37;
  6131. Y = -170.30;
  6132. Z = 999.59;
  6133. Interior = 6;
  6134. }
  6135. case 12:
  6136. {
  6137. X = 207.66;
  6138. Y = -111.26;
  6139. Z = 1005.13;
  6140. Interior = 15;
  6141. }
  6142. case 13:
  6143. {
  6144. X = 204.22;
  6145. Y = -168.86;
  6146. Z = 1000.52;
  6147. Interior = 14;
  6148. }
  6149. case 14:
  6150. {
  6151. X = 206.99;
  6152. Y = -140.38;
  6153. Z = 1003.51;
  6154. Interior = 3;
  6155. }
  6156. case 15:
  6157. {
  6158. X = 203.77;
  6159. Y = -50.66;
  6160. Z = 1001.80;
  6161. Interior = 1;
  6162. }
  6163. case 16:
  6164. {
  6165. X = 227.56;
  6166. Y = -8.10;
  6167. Z = 1002.21;
  6168. Interior = 5;
  6169. }
  6170. case 17:
  6171. {
  6172. X = 161.40;
  6173. Y = -97.11;
  6174. Z = 1001.80;
  6175. Interior = 18;
  6176. }
  6177. case 18:
  6178. {
  6179. X = 493.40;
  6180. Y = -24.88;
  6181. Z = 1000.68;
  6182. Interior = 17;
  6183. }
  6184. case 19:
  6185. {
  6186. X = 501.93;
  6187. Y = -67.56;
  6188. Z = 998.76;
  6189. Interior = 11;
  6190. }
  6191. case 20:
  6192. {
  6193. X = 460.56;
  6194. Y = -88.67;
  6195. Z = 999.55;
  6196. Interior = 4;
  6197. }
  6198. case 21:
  6199. {
  6200. X = -2240.468505;
  6201. Y = 137.060440;
  6202. Z = 1035.414062;
  6203. Interior = 6;
  6204. }
  6205. case 22:
  6206. {
  6207. X = -2158.64;
  6208. Y = 643.14;
  6209. Z = 1052.38;
  6210. Interior = 1;
  6211. }
  6212. case 23:
  6213. {
  6214. X = 2496.049804;
  6215. Y = -1695.238159;
  6216. Z = 1014.742187;
  6217. Interior = 3;
  6218. }
  6219. case 24:
  6220. {
  6221. X = 513.882507;
  6222. Y = -11.269994;
  6223. Z = 1001.565307;
  6224. Interior = 3;
  6225. }
  6226. }
  6227. new vw = 1000 + random(199999999999999999);
  6228. BizInfo[bizid][bIntLocationx] = X;
  6229. BizInfo[bizid][bIntLocationy] = Y;
  6230. BizInfo[bizid][bIntLocationz] = Z;
  6231. BizInfo[bizid][bInterior] = Interior;
  6232. BizInfo[bizid][bVirtualWorld] = vw;
  6233. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business interior.");
  6234. }
  6235. if(dialogid == 9973 && response)
  6236. {
  6237. new houseid = HouseEditID[playerid];
  6238. new interior;
  6239. new Float:X, Float:Y, Float:Z;
  6240. switch(listitem)
  6241. {
  6242. case 0:
  6243. {
  6244. X = -2170.30;
  6245. Y = 639.41;
  6246. Z = 1052.38;
  6247. interior = 1;
  6248. }
  6249. case 1:
  6250. {
  6251. X = 2495.98;
  6252. Y = -1692.08;
  6253. Z = 1014.74;
  6254. interior = 3;
  6255. }
  6256. case 2:
  6257. {
  6258. X = 1260.65;
  6259. Y = -785.40;
  6260. Z = 1091.91;
  6261. interior = 5;
  6262. }
  6263. case 3:
  6264. {
  6265. X = 2548.80;
  6266. Y = -1294.69;
  6267. Z = 1060.98;
  6268. interior = 2;
  6269. }
  6270. case 4:
  6271. {
  6272. X = 2468.84;
  6273. Y = -1698.32;
  6274. Z = 1013.51;
  6275. interior = 2;
  6276. }
  6277. case 5:
  6278. {
  6279. X = 2807.61;
  6280. Y = -1174.76;
  6281. Z = 1025.57;
  6282. interior = 8;
  6283. }
  6284. case 6:
  6285. {
  6286. X = 235.26;
  6287. Y = 1186.68;
  6288. Z = 1080.26;
  6289. interior = 3;
  6290. }
  6291. case 7:
  6292. {
  6293. X = 226.79;
  6294. Y = 1239.96;
  6295. Z = 1082.14;
  6296. interior = 2;
  6297. }
  6298. case 8:
  6299. {
  6300. X = 223.05;
  6301. Y = 1287.08;
  6302. Z = 1082.14;
  6303. interior = 1;
  6304. }case 9:
  6305. {
  6306. X = 250.83;
  6307. Y = 1034.96;
  6308. Z = 1084.73;
  6309. interior = 7;
  6310. }
  6311. case 10:
  6312. {
  6313. X = 295.08;
  6314. Y = 1472.26;
  6315. Z = 1080.26;
  6316. interior = 15;
  6317. }
  6318. case 11:
  6319. {
  6320. X = 327.91;
  6321. Y = 1477.72;
  6322. Z = 1084.44;
  6323. interior = 15;
  6324. }
  6325. case 12:
  6326. {
  6327. X = 387.23;
  6328. Y = 1471.74;
  6329. Z = 1080.19;
  6330. interior = 7;
  6331. }
  6332. case 13:
  6333. {
  6334. X = 2262.83;
  6335. Y = -1210.46;
  6336. Z = 1049.03;
  6337. interior = 10;
  6338. }
  6339. case 14:
  6340. {
  6341. X = 2259.38;
  6342. Y = -1135.92;
  6343. Z = 1050.64;
  6344. interior = 10;
  6345. }
  6346. case 15:
  6347. {
  6348. X = 2365.24;
  6349. Y = -1135.60;
  6350. Z = 1050.88;
  6351. interior = 8;
  6352. }
  6353. }
  6354. new vw = 1000 + random(199999999999999999);
  6355. HouseInfo[houseid][hIntLocationx] = X;
  6356. HouseInfo[houseid][hIntLocationy] = Y;
  6357. HouseInfo[houseid][hIntLocationz] = Z;
  6358. HouseInfo[houseid][hInterior] = interior;
  6359. HouseInfo[houseid][hVirtualWorld] = vw;
  6360. SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have changed this house interior.");
  6361. }
  6362. if(dialogid == 9012 && response)
  6363. {
  6364. new carid = GetPlayerVehicleID(playerid);
  6365. if(IsValidObject(ObjectSelect[carid][0]) || IsValidObject(ObjectSelect[carid][1]))
  6366. {
  6367. DestroyObject(ObjectSelect[carid][0]);
  6368. DestroyObject(ObjectSelect[carid][1]);
  6369. }
  6370. switch(listitem)
  6371. {
  6372. case 0:CarInfo[carid][NeonObject]=18648;
  6373. case 1:CarInfo[carid][NeonObject]=18647;
  6374. case 2:CarInfo[carid][NeonObject]=18649;
  6375. case 3:CarInfo[carid][NeonObject]=18652;
  6376. case 4:CarInfo[carid][NeonObject]=18651;
  6377. case 5:CarInfo[carid][NeonObject]=18650;
  6378. case 6:
  6379. {
  6380. if(!IsPlayerInVehicle(playerid, GetPlayerVehicleID(playerid)))
  6381. return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle.");
  6382.  
  6383. if(CarInfo[carid][Neon] == 1)
  6384. {
  6385. DestroyObject(ObjectSelect[carid][0]);
  6386. DestroyObject(ObjectSelect[carid][1]);
  6387. CarInfo[carid][Neon] = 0;
  6388. SendClientMessage(playerid, COLOR_WHITE, "You removed neon from this vehicle.");
  6389. return 1;
  6390. }
  6391. else
  6392. return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle with neon.");
  6393. }
  6394. }
  6395. ObjectSelect[carid][0] = CreateDynamicObject(CarInfo[carid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  6396. ObjectSelect[carid][1] = CreateDynamicObject(CarInfo[carid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  6397. AttachObjectToVehicle(ObjectSelect[carid][0], carid, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  6398. AttachObjectToVehicle(ObjectSelect[carid][1], carid, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  6399. CarInfo[carid][Neon] = 1;
  6400. PlayerPlaySound(playerid, 1133, 0, 0, 0);
  6401. PlayerInfo[playerid][pCash] -= 2500;
  6402. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]-2500);
  6403. SendClientMessage(playerid, COLOR_WHITE, "Neons has been successfully installed on the vehicle!.");
  6404. }
  6405. if(dialogid == SIUMENU1)
  6406. {
  6407. if(listitem == 0) // Civilian Clothing
  6408. {
  6409. ShowPlayerDialog(playerid, SIUMENU2, DIALOG_STYLE_LIST, "Civilian Clothing","Slicker\nOld Man\nHobo\nSkater\nBaseball Player\nTexan\nIndian", "Dress", "Cancel");
  6410. }
  6411. if(listitem == 1) // Mafia Clothing
  6412. {
  6413. ShowPlayerDialog(playerid, SIUMENU3, DIALOG_STYLE_LIST, "Mafia Clothing", "Boss\nContracter\nHitman\nSmuggler\nImporter", "Dress", "Cancel");
  6414. }
  6415. if(listitem == 2) // Gang Clothing
  6416. {
  6417. ShowPlayerDialog(playerid, SIUMENU4, DIALOG_STYLE_LIST, "Gang Clothing", "Grove\nBalla\nBiker\nVato\nYakuza\nBlood\n1NATION", "Dress", "Cancel");
  6418. }
  6419. }
  6420. if(dialogid == SIUMENU2)
  6421. {
  6422. if(listitem == 0)
  6423. {
  6424. SetPlayerSkin(playerid, 7);
  6425. PlayerInfo[playerid][pModel] = 7;
  6426. TogglePlayerControllable(playerid, 1);
  6427. }
  6428. if(listitem == 1)
  6429. {
  6430. SetPlayerSkin(playerid, 15);
  6431. PlayerInfo[playerid][pModel] = 15;
  6432. TogglePlayerControllable(playerid, 1);
  6433. }
  6434. if(listitem == 2)
  6435. {
  6436. SetPlayerSkin(playerid, 137);
  6437. PlayerInfo[playerid][pModel] = 137;
  6438. TogglePlayerControllable(playerid, 1);
  6439. }
  6440. if(listitem == 3)
  6441. {
  6442. SetPlayerSkin(playerid, 23);
  6443. PlayerInfo[playerid][pModel] = 23;
  6444. TogglePlayerControllable(playerid, 1);
  6445. }
  6446. if(listitem == 4)
  6447. {
  6448. SetPlayerSkin(playerid, 24);
  6449. PlayerInfo[playerid][pModel] = 24;
  6450. TogglePlayerControllable(playerid, 1);
  6451. }
  6452. if(listitem == 5)
  6453. {
  6454. SetPlayerSkin(playerid, 34);
  6455. PlayerInfo[playerid][pModel] = 34;
  6456. TogglePlayerControllable(playerid, 1);
  6457. }
  6458. if(listitem == 6)
  6459. {
  6460. SetPlayerSkin(playerid, 128);
  6461. PlayerInfo[playerid][pModel] = 128;
  6462. TogglePlayerControllable(playerid, 1);
  6463. }
  6464. }
  6465. if(dialogid == SIUMENU3)
  6466. {
  6467. if(listitem == 0)
  6468. {
  6469. SetPlayerSkin(playerid, 113);
  6470. PlayerInfo[playerid][pModel] = 113;
  6471. TogglePlayerControllable(playerid, 1);
  6472. }
  6473. if(listitem == 1)
  6474. {
  6475. SetPlayerSkin(playerid, 127);
  6476. PlayerInfo[playerid][pModel] = 127;
  6477. TogglePlayerControllable(playerid, 1);
  6478. }
  6479. if(listitem == 2)
  6480. {
  6481. SetPlayerSkin(playerid, 125);
  6482. PlayerInfo[playerid][pModel] = 125;
  6483. TogglePlayerControllable(playerid, 1);
  6484. }
  6485. if(listitem == 3)
  6486. {
  6487. SetPlayerSkin(playerid, 112);
  6488. PlayerInfo[playerid][pModel] = 112;
  6489. TogglePlayerControllable(playerid, 1);
  6490. }
  6491. if(listitem == 4)
  6492. {
  6493. SetPlayerSkin(playerid, 111);
  6494. PlayerInfo[playerid][pModel] = 111;
  6495. TogglePlayerControllable(playerid, 1);
  6496. }
  6497. }
  6498. if(dialogid == SIUMENU4)
  6499. {
  6500. if(listitem == 0)
  6501. {
  6502. SetPlayerSkin(playerid, 107);
  6503. PlayerInfo[playerid][pModel] = 107;
  6504. TogglePlayerControllable(playerid, 1);
  6505. }
  6506. if(listitem == 1)
  6507. {
  6508. SetPlayerSkin(playerid, 104);
  6509. PlayerInfo[playerid][pModel] = 104;
  6510. TogglePlayerControllable(playerid, 1);
  6511. }
  6512. if(listitem == 2)
  6513. {
  6514. SetPlayerSkin(playerid, 100);
  6515. PlayerInfo[playerid][pModel] = 100;
  6516. TogglePlayerControllable(playerid, 1);
  6517. }
  6518. if(listitem == 3)
  6519. {
  6520. SetPlayerSkin(playerid, 108);
  6521. PlayerInfo[playerid][pModel] = 108;
  6522. TogglePlayerControllable(playerid, 1);
  6523. }
  6524. if(listitem == 4)
  6525. {
  6526. SetPlayerSkin(playerid, 123);
  6527. PlayerInfo[playerid][pModel] = 123;
  6528. TogglePlayerControllable(playerid, 1);
  6529. }
  6530. if(listitem == 5)
  6531. {
  6532. SetPlayerSkin(playerid, 19);
  6533. PlayerInfo[playerid][pModel] = 19;
  6534. TogglePlayerControllable(playerid, 1);
  6535. }
  6536. if(listitem == 6)
  6537. {
  6538. SetPlayerSkin(playerid, 21);
  6539. PlayerInfo[playerid][pModel] = 21;
  6540. TogglePlayerControllable(playerid, 1);
  6541. }
  6542. }
  6543. if(dialogid == BUYCARDIALOG)
  6544. {
  6545. if(response)
  6546. {
  6547. new vehicle = GetPlayerVehicleID(playerid);
  6548. if(PlayerInfo[playerid][pLevel] < 2)
  6549. {
  6550. SendClientMessage(playerid, COLOR_RED, "* You have to be level 2 or higher to buy a vehicle.");
  6551. RemovePlayerFromVehicle(playerid);
  6552. return 1;
  6553. }
  6554. if(PlayerInfo[playerid][pCash] < CarInfo[vehicle][tPrice])
  6555. {
  6556. SendClientMessage(playerid, COLOR_RED, "* You don't have enought money to buy this vehicle.");
  6557. RemovePlayerFromVehicle(playerid);
  6558. return 1;
  6559. }
  6560. if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0)
  6561. {
  6562. SendClientMessage(playerid, COLOR_RED, "* You already own 2 vehicles.");
  6563. RemovePlayerFromVehicle(playerid);
  6564. return 1;
  6565. }
  6566. new sendername[MAX_PLAYER_NAME];
  6567. new price = CarInfo[vehicle][tPrice];
  6568. GetPlayerName(playerid, sendername, sizeof(sendername));
  6569. PlayerInfo[playerid][pCash] -= price;
  6570. GivePlayerMoney(playerid,-price);
  6571. if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
  6572. {
  6573. PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
  6574. }
  6575. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
  6576. {
  6577. PlayerInfo[playerid][pCarKey2] = GetPlayerVehicleID(playerid);
  6578. }
  6579. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
  6580. {
  6581. PlayerInfo[playerid][pCarKey3] = GetPlayerVehicleID(playerid);
  6582. }
  6583. else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] != 0)
  6584. {
  6585. PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
  6586. }
  6587. else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
  6588. {
  6589. PlayerInfo[playerid][pCarKey1] = GetPlayerVehicleID(playerid);
  6590. }
  6591. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
  6592. {
  6593. PlayerInfo[playerid][pCarKey2] = GetPlayerVehicleID(playerid);
  6594. }
  6595. CarInfo[vehicle][tOwned] = 1;
  6596. strmid(CarInfo[vehicle][tOwner], sendername, 0, strlen(sendername), 255);
  6597. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  6598. SendClientMessage(playerid,COLOR_YELLOW, "You have bought this car !");
  6599. SendClientMessage(playerid,COLOR_YELLOW, "Use /carhelp to see the commands.");
  6600. return 1;
  6601. }
  6602. else
  6603. {
  6604. RemovePlayerFromVehicle(playerid);
  6605. return 1;
  6606. }
  6607. }
  6608. if(dialogid == 5353)
  6609. {
  6610. if(response)
  6611. {
  6612. new vehicle = GetPlayerVehicleID(playerid);
  6613. if(PlayerInfo[playerid][pCash] < CarInfo[vehicle][tPrice])
  6614. {
  6615. SendClientMessage(playerid, COLOR_RED, "* You don't have enought money to buy this car.");
  6616. RemovePlayerFromVehicle(playerid);
  6617. return 1;
  6618. }
  6619. if(PlayerInfo[playerid][pCarKey1] != 0 || PlayerInfo[playerid][pCarKey2] != 0 || PlayerInfo[playerid][pCarKey3] != 0)
  6620. {
  6621. SendClientMessage(playerid, COLOR_RED, "* Can't rent while owning a vehicle.");
  6622. RemovePlayerFromVehicle(playerid);
  6623. return 1;
  6624. }
  6625. if(PlayerInfo[playerid][pRentKey] != 0)
  6626. {
  6627. SendClientMessage(playerid, COLOR_RED, "* You already rent a car.");
  6628. RemovePlayerFromVehicle(playerid);
  6629. return 1;
  6630. }
  6631. new sendername[MAX_PLAYER_NAME], string[128];
  6632. new price = CarInfo[vehicle][tPrice];
  6633. GetPlayerName(playerid, sendername, sizeof(sendername));
  6634. PlayerInfo[playerid][pCash] -= price;
  6635. GivePlayerMoney(playerid,-price);
  6636. CarInfo[vehicle][tOwned] = 1;
  6637. PlayerInfo[playerid][pRentKey] = vehicle;
  6638. strmid(CarInfo[vehicle][tOwner], sendername, 0, strlen(sendername), 255);
  6639. format(string, sizeof(string), "LS-%d", Random(1000, 9999));
  6640. strmid(CarInfo[vehicle][tLicensePlate], string, 0, strlen(string), 255);
  6641. SetVehicleNumberPlate(vehicle, string);
  6642. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  6643. SendClientMessage(playerid,COLOR_YELLOW, "You've rented this car");
  6644. SendClientMessage(playerid,COLOR_YELLOW, "Use /carrenthelp to see the commands.");
  6645. return 1;
  6646. }
  6647. else
  6648. {
  6649. RemovePlayerFromVehicle(playerid);
  6650. return 1;
  6651. }
  6652. }
  6653. if(dialogid == SKINMENU)
  6654. {
  6655. if(response)
  6656. {
  6657. new biz = PlayerInfo[playerid][pInBiz];
  6658. if(!IsNumeric(inputtext))
  6659. {
  6660. SendClientMessage(playerid, COLOR_GREY, "You must enter a number for the skin ID.");
  6661. return 1;
  6662. }
  6663. if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, COLOR_GREY, " Skin can't be below 0 or above 299.");
  6664. if(!(strval(inputtext) >= 265 && strval(inputtext) <= 298))
  6665. {
  6666. if(PlayerInfo[playerid][pCash] > 499)
  6667. {
  6668. SetPlayerSkin(playerid, strval(inputtext));
  6669. PlayerInfo[playerid][pModel] = strval(inputtext);
  6670. SendClientMessage(playerid, COLOR_YELLOW, "* You're new clothes have been purchased for $2,500.");
  6671. PlayerInfo[playerid][pCash] -= 500;
  6672. GivePlayerMoney(playerid, -500);
  6673. if(BizInfo[biz][bOwned] == 1)
  6674. {
  6675. BizInfo[biz][bTill] += 500;
  6676. BizInfo[biz][bProducts]--;
  6677. }
  6678. }
  6679. else
  6680. {
  6681. SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
  6682. return 1;
  6683. }
  6684. }
  6685. else
  6686. {
  6687. SendClientMessage(playerid, COLOR_LIGHTRED, "** Restricted Skin!");
  6688. return 1;
  6689. }
  6690. }
  6691. }
  6692. if(dialogid == 9387)
  6693. {
  6694. if(response == 1)
  6695. {
  6696. switch(listitem)
  6697. {
  6698. case 0:
  6699. {
  6700. if(GetPlayerMoney(playerid) < 800) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6701. {
  6702. GivePlayerWeapon(playerid, 4, 99999);
  6703. GivePlayerMoney(playerid, -800);
  6704. }
  6705. }
  6706. case 1:
  6707. {
  6708. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6709. {
  6710. GivePlayerWeapon(playerid, 23, 99999);
  6711. GivePlayerMoney(playerid, -1000);
  6712. }
  6713. }
  6714. case 2:
  6715. {
  6716. if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6717. {
  6718. GivePlayerWeapon(playerid, 25, 99999);
  6719. GivePlayerMoney(playerid, -1500);
  6720. }
  6721. }
  6722. case 3:
  6723. {
  6724. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6725. {
  6726. GivePlayerWeapon(playerid, 24, 99999);
  6727. GivePlayerMoney(playerid, -5000);
  6728. }
  6729. }
  6730. case 4:
  6731. {
  6732. if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6733. {
  6734. GivePlayerWeapon(playerid, 29, 99999);
  6735. GivePlayerMoney(playerid, -2500);
  6736. }
  6737. }
  6738. case 5:
  6739. {
  6740. if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6741. {
  6742. if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6743. {
  6744. GivePlayerWeapon(playerid, 33, 99999);
  6745. GivePlayerMoney(playerid, -3000);
  6746. }
  6747. }
  6748. }
  6749. case 6:
  6750. {
  6751. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6752. {
  6753. if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6754. {
  6755. GivePlayerWeapon(playerid, 30, 99999);
  6756. GivePlayerMoney(playerid, -10000);
  6757. }
  6758. }
  6759. }
  6760. case 7:
  6761. {
  6762. if(GetPlayerMoney(playerid) < 12000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6763. {
  6764. if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6765. {
  6766. GivePlayerWeapon(playerid, 31, 99999);
  6767. GivePlayerMoney(playerid, -12000);
  6768. }
  6769. }
  6770. }
  6771. case 8:
  6772. {
  6773. if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6774. {
  6775. if(PlayerInfo[playerid][pRank] < 2) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6776. {
  6777. SetPlayerArmour(playerid, 100);
  6778. GivePlayerMoney(playerid, -3000);
  6779. }
  6780. }
  6781. }
  6782. case 9:
  6783. {
  6784. if(GetPlayerMoney(playerid) < 35000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6785. {
  6786. if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6787. {
  6788. GivePlayerWeapon(playerid, 27, 99999);
  6789. GivePlayerMoney(playerid, -35000);
  6790. }
  6791. }
  6792. }
  6793. case 10:
  6794. {
  6795. if(GetPlayerMoney(playerid) < 35000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6796. {
  6797. if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6798. {
  6799. GivePlayerWeapon(playerid, 34, 99999);
  6800. GivePlayerMoney(playerid, -35000);
  6801. }
  6802. }
  6803. }
  6804. case 11:
  6805. {
  6806. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6807. {
  6808. if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6809. {
  6810. GivePlayerWeapon(playerid, 44, 99999);
  6811. GivePlayerMoney(playerid, -2000);
  6812. }
  6813. }
  6814. }
  6815. case 12:
  6816. {
  6817. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6818. {
  6819. if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 2 to purchase this!");
  6820. {
  6821. GivePlayerWeapon(playerid, 45, 99999);
  6822. GivePlayerMoney(playerid, -2000);
  6823. }
  6824. }
  6825. }
  6826. case 13:
  6827. {
  6828. if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money!");
  6829. {
  6830. if(PlayerInfo[playerid][pRank] < 4) return SendClientMessage(playerid, COLOR_GRAD1, "You must be rank 4 to purchase this!");
  6831. {
  6832. PlayerInfo[playerid][pBombs] += 1;
  6833. GivePlayerMoney(playerid, -2000);
  6834. }
  6835. }
  6836. }
  6837. }
  6838. if(PlayerInfo[playerid][pBlindfolds] > 3)
  6839. {
  6840. PlayerInfo[playerid][pBlindfolds] = 3;
  6841. }
  6842. if(PlayerInfo[playerid][pBombs] > 3)
  6843. {
  6844. PlayerInfo[playerid][pBombs] = 3;
  6845. }
  6846. }
  6847. }
  6848. if(dialogid == 1) //LOGIN
  6849. {
  6850. if(gPlayerLogged[playerid] == 1)
  6851. {
  6852. SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
  6853. return 1;
  6854. }
  6855. if(response)
  6856. {
  6857. if(!strlen(inputtext))
  6858. {
  6859. DisplayDialogForPlayer(playerid, 1); //login
  6860. SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
  6861. return 1;
  6862. }
  6863. if(strlen(inputtext) >= 50)
  6864. {
  6865. DisplayDialogForPlayer(playerid, 1); //login
  6866. SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
  6867. return 0;
  6868. }
  6869. new tmppass[64];
  6870. new playername[MAX_PLAYER_NAME];
  6871. strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  6872. GetPlayerName(playerid, playername, sizeof(playername));
  6873. if(strlen(playername) == 3)
  6874. {
  6875. if(strcmp(playername, "Smo", true) == 0)
  6876. {
  6877. return 0;
  6878. }
  6879. else
  6880. {
  6881. SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it.");
  6882. Kick(playerid);
  6883. return 1;
  6884. }
  6885. }
  6886. Encrypt(tmppass);
  6887. OnPlayerLogin(playerid,tmppass,inputtext);
  6888. }
  6889. else
  6890. {
  6891. SendClientMessage(playerid, COLOR_RED, "You chose to leave the server.");
  6892. Kick(playerid);
  6893. }
  6894. }
  6895. if(dialogid == 2) //REGISTER
  6896. {
  6897. if(gPlayerLogged[playerid] == 1)
  6898. {
  6899. SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
  6900. return 1;
  6901. }
  6902. if(response)
  6903. {
  6904. if(strlen(inputtext) >= 50)
  6905. {
  6906. DisplayDialogForPlayer(playerid, 2); //register
  6907. SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long.");
  6908. return 0;
  6909. }
  6910. new sendername[MAX_PLAYER_NAME];
  6911. GetPlayerName(playerid, sendername, sizeof(sendername));
  6912. new namestring = strfind(sendername, "_", true);
  6913. if(namestring == -1)
  6914. {
  6915. SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format.");
  6916. Kick(playerid);
  6917. return 1;
  6918. }
  6919. else
  6920. {
  6921. if(!strlen(inputtext))
  6922. {
  6923. DisplayDialogForPlayer(playerid, 2); //register
  6924. SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
  6925. return 1;
  6926. }
  6927. new string[128];
  6928. format(string, sizeof(string), "%s.ini", sendername);
  6929. // if(dini_Exists(string))
  6930. if(fexist(string))
  6931. {
  6932. SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one.");
  6933. return 1;
  6934. }
  6935. new tmppass[64];
  6936. strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  6937. Encrypt(tmppass);
  6938. OnPlayerRegister(playerid,tmppass);
  6939. OnPlayerLogin(playerid,tmppass,inputtext);
  6940. gPlayerAccount[playerid] = 1;
  6941. gPlayerSpawned[playerid] = 1;
  6942. SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically.");
  6943. SendClientMessage(playerid, COLOR_YELLOW, "You have been automaticly refunded, thank you.");
  6944. }
  6945. }
  6946. else
  6947. {
  6948. DisplayDialogForPlayer(playerid, 2); //register
  6949. }
  6950. }
  6951. if(dialogid == 99)
  6952. {
  6953. if(response)
  6954. {
  6955. SetTimerEx("UseBM", 180*1000, 0,"i",playerid);
  6956. SendClientMessage(playerid, COLOR_GREY, "You must wait 3 minutes before purchasing another weapon.");
  6957. UseBMTimer[playerid] = 1;
  6958. if(listitem == 0) // Deagle
  6959. {
  6960. if(PlayerInfo[playerid][pCash] < 15000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  6961. else
  6962. {
  6963. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
  6964. GivePlayerMoney(playerid,-15000);
  6965. GivePlayerWeapon(playerid, 24, 999999);
  6966. PlayerInfo[playerid][pGun2] = 24;
  6967. TogglePlayerControllable(playerid,1);
  6968. }
  6969. }
  6970. if(listitem == 1) // M4
  6971. {
  6972. if(PlayerInfo[playerid][pCash] < 30000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  6973. else
  6974. {
  6975. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-30000;
  6976. GivePlayerMoney(playerid,-30000);
  6977. GivePlayerWeapon(playerid, 31, 999999);
  6978. PlayerInfo[playerid][pGun5] = 31;
  6979. TogglePlayerControllable(playerid,1);
  6980. }
  6981. }
  6982. if(listitem == 2) // Spas12
  6983. {
  6984. if(PlayerInfo[playerid][pCash] < 90000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  6985. else
  6986. {
  6987. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-90000;
  6988. GivePlayerMoney(playerid,-90000);
  6989. GivePlayerWeapon(playerid, 27, 999999);
  6990. PlayerInfo[playerid][pGun3] = 27;
  6991. TogglePlayerControllable(playerid,1);
  6992. }
  6993. }
  6994. }
  6995. }
  6996. if(dialogid == 100)
  6997. {
  6998. if(response)
  6999. {
  7000. BMPurchased[playerid] += 1;
  7001. if(BMPurchased[playerid] == 2) { SetTimerEx("UseBM", 180*1000, 0,"i",playerid); UseBMTimer[playerid] = 1; SendClientMessage(playerid, COLOR_GREY, "You must wait 3 minutes before purchasing another weapon."); }
  7002. if(listitem == 0) // Deagle
  7003. {
  7004. if(PlayerInfo[playerid][pCash] < 12000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  7005. else
  7006. {
  7007. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-12000;
  7008. GivePlayerMoney(playerid,-12000);
  7009. GivePlayerWeapon(playerid, 24, 999999);
  7010. PlayerInfo[playerid][pGun2] = 24;
  7011. TogglePlayerControllable(playerid,1);
  7012. }
  7013. }
  7014. if(listitem == 1) // M4
  7015. {
  7016. if(PlayerInfo[playerid][pCash] < 20000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  7017. else
  7018. {
  7019. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20000;
  7020. GivePlayerMoney(playerid,-20000);
  7021. GivePlayerWeapon(playerid, 31, 999999);
  7022. PlayerInfo[playerid][pGun5] = 31;
  7023. TogglePlayerControllable(playerid,1);
  7024. }
  7025. }
  7026. if(listitem == 2) // Spas12
  7027. {
  7028. if(PlayerInfo[playerid][pCash] < 70000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  7029. else
  7030. {
  7031. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70000;
  7032. GivePlayerMoney(playerid,-70000);
  7033. GivePlayerWeapon(playerid, 27, 999999);
  7034. PlayerInfo[playerid][pGun3] = 27;
  7035. TogglePlayerControllable(playerid,1);
  7036. }
  7037. }
  7038. if(listitem == 3) // Sniper
  7039. {
  7040. if(PlayerInfo[playerid][pCash] < 65000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  7041. else
  7042. {
  7043. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-65000;
  7044. GivePlayerMoney(playerid,-65000);
  7045. GivePlayerWeapon(playerid, 34, 999999);
  7046. PlayerInfo[playerid][pGun6] = 34;
  7047. TogglePlayerControllable(playerid,1);
  7048. }
  7049. }
  7050. if(listitem == 4) // Knife
  7051. {
  7052. if(PlayerInfo[playerid][pCash] < 500000) { TogglePlayerControllable(playerid,1); return SendClientMessage(playerid, COLOR_GREY, "You cant afford that."); }
  7053. else
  7054. {
  7055. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500000;
  7056. GivePlayerMoney(playerid,-500000);
  7057. GivePlayerWeapon(playerid, 4, 999999);
  7058. PlayerInfo[playerid][pGun1] = 4;
  7059. TogglePlayerControllable(playerid,1);
  7060. }
  7061. }
  7062. }
  7063. }
  7064. if(dialogid == BINCODIALOG) //Binco
  7065. {
  7066. if(response)
  7067. {
  7068. if(listitem == 0) //Skin
  7069. {
  7070. ShowPlayerDialog(playerid, SKINMENU, DIALOG_STYLE_INPUT, "Clothing Select","Note: Buying a new skin will cost you $2,500\nPlease, enter the skin id you want to purchase:", "Buy", "Cancel");
  7071. return 1;
  7072. }
  7073. if(listitem == 1) //Glasses
  7074. {
  7075. ShowPlayerDialog(playerid,BUYGLASSES,DIALOG_STYLE_LIST,"Glasses menu","Common Red ($200)\nCommon Orange ($200)\nCommon Green ($200)\nCommon Blue ($200)\nCommon Purple ($200)\nCommon Espiral ($200)\nCommon Black ($200)\nCommon Eyes ($200)\nCommon Xadrex ($200)\nCommon Transparent ($200)\nCommon XRayVision ($200)\nNext","Buy","Cancel"); //Glasses 1
  7076. return 1;
  7077. }
  7078.  
  7079. if(listitem == 2) //Hats
  7080. {
  7081. ShowPlayerDialog(playerid,BUYHAT,DIALOG_STYLE_LIST,"Hats menu","Berret 1 ($500\nBerret 2 ($500)\nBerret 3 ($500)\nBerret 4 ($500)\nBerret 5 ($500)\nHat 1 ($500)\nHat 2 ($500)\nHat 3 ($500)\nHat 4 ($500)\nHat 5 ($500)\nHat 6 ($500)\nHat 7 ($500)\nNext","Buy","Cancel"); //Hats1
  7082. return 1;
  7083. }
  7084.  
  7085. if(listitem == 3) //Bandana
  7086. {
  7087. ShowPlayerDialog(playerid,BUYBANDANA,DIALOG_STYLE_LIST,"Bandanas menu","Skull Bandana ($500)\nBlack & White Bandana ($250)\nGreen Bandana ($250)\nArmy Bandana ($300)\nPink Bandana ($250)\nTriangle Bandana ($250)\nBlack & Blue Bandana ($500)\nSpiral Bandana ($250)\nYellow Bandana ($250)\nTriangle Bandana 2 ($250)\n","Buy","Cancel"); //Bandanas
  7088. return 1;
  7089. }
  7090.  
  7091. if(listitem == 4) //Mask
  7092. {
  7093. ShowPlayerDialog(playerid,BUYMASK,DIALOG_STYLE_LIST,"Mask menu","Zorro Mask ($1000)\nWhite Mask ($1000)\nRed Mask ($1000)\nGreen Mask ($1000)","Buy","Cancel"); //Mask
  7094. return 1;
  7095. }
  7096.  
  7097. if(listitem == 5) //Helmet
  7098. {
  7099. ShowPlayerDialog(playerid,BUYHELMET,DIALOG_STYLE_LIST,"Helmet menu","Red & White Helmet ($1000)\nBlue & White Helmet ($850)\nRed Helmet ($700)\nBlue Helmet ($700)\nGreen Helmet ($700)","Buy","Cancel"); //Helmets
  7100. return 1;
  7101. }
  7102. }
  7103. }
  7104.  
  7105. if(dialogid == BUYHAT) //Hats
  7106. {
  7107. if(response)
  7108. {
  7109. new biz = PlayerInfo[playerid][pInBiz];
  7110. if(listitem == 0) //Hat
  7111. {
  7112. if(PlayerInfo[playerid][pCash] > 499)
  7113. {
  7114. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7115. GivePlayerMoney(playerid,-500);
  7116. PlayerInfo[playerid][pHat] = 18921;
  7117. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7118. SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
  7119. if(BizInfo[biz][bOwned] == 1)
  7120. {
  7121. BizInfo[biz][bTill] += 500;
  7122. BizInfo[biz][bProducts]--;
  7123. }
  7124. return 1;
  7125. }
  7126. else
  7127. {
  7128. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  7129. }
  7130. }
  7131. if(listitem == 1) //Hat
  7132. {
  7133. if(PlayerInfo[playerid][pCash] > 499)
  7134. {
  7135. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7136. GivePlayerMoney(playerid,-500);
  7137. PlayerInfo[playerid][pHat] = 18922;
  7138. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7139. SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
  7140. if(BizInfo[biz][bOwned] == 1)
  7141. {
  7142. BizInfo[biz][bTill] += 500;
  7143. BizInfo[biz][bProducts]--;
  7144. }
  7145. return 1;
  7146. }
  7147. else
  7148. {
  7149. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  7150. }
  7151. }
  7152. if(listitem == 2) //Hat
  7153. {
  7154. if(PlayerInfo[playerid][pCash] > 499)
  7155. {
  7156. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7157. GivePlayerMoney(playerid,-500);
  7158. PlayerInfo[playerid][pHat] = 18923;
  7159. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7160. SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
  7161. if(BizInfo[biz][bOwned] == 1)
  7162. {
  7163. BizInfo[biz][bTill] += 500;
  7164. BizInfo[biz][bProducts]--;
  7165. }
  7166. return 1;
  7167. }
  7168. else
  7169. {
  7170. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  7171. }
  7172. }
  7173. if(listitem == 3) //Hat
  7174. {
  7175. if(PlayerInfo[playerid][pCash] > 499)
  7176. {
  7177. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7178. GivePlayerMoney(playerid,-500);
  7179. PlayerInfo[playerid][pHat] = 18924;
  7180. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7181. SendClientMessage(playerid, COLOR_YELLOW, "* Your new hat has been purchased for $500. Use /hat to put it on.");
  7182. if(BizInfo[biz][bOwned] == 1)
  7183. {
  7184. BizInfo[biz][bTill] += 500;
  7185. BizInfo[biz][bProducts]--;
  7186. }
  7187. return 1;
  7188. }
  7189. else
  7190. {
  7191. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  7192. }
  7193. }
  7194. if(listitem == 4) //Hat
  7195. {
  7196. if(PlayerInfo[playerid][pCash] > 499)
  7197. {
  7198. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7199. GivePlayerMoney(playerid,-500);
  7200. PlayerInfo[playerid][pHat] = 18925;
  7201. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7202. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7203. if(BizInfo[biz][bOwned] == 1)
  7204. {
  7205. BizInfo[biz][bTill] += 500;
  7206. BizInfo[biz][bProducts]--;
  7207. }
  7208. return 1;
  7209. }
  7210. else
  7211. {
  7212. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7213. }
  7214. }
  7215. if(listitem == 5) //Hat
  7216. {
  7217. if(PlayerInfo[playerid][pCash] > 499)
  7218. {
  7219. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7220. GivePlayerMoney(playerid,-500);
  7221. PlayerInfo[playerid][pHat] = 18926;
  7222. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7223. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7224. if(BizInfo[biz][bOwned] == 1)
  7225. {
  7226. BizInfo[biz][bTill] += 500;
  7227. BizInfo[biz][bProducts]--;
  7228. }
  7229. return 1;
  7230. }
  7231. else
  7232. {
  7233. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7234. }
  7235. }
  7236. if(listitem == 6) //Hat
  7237. {
  7238. if(PlayerInfo[playerid][pCash] > 499)
  7239. {
  7240. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7241. GivePlayerMoney(playerid,-500);
  7242. PlayerInfo[playerid][pHat] = 18927;
  7243. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7244. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7245. if(BizInfo[biz][bOwned] == 1)
  7246. {
  7247. BizInfo[biz][bTill] += 500;
  7248. BizInfo[biz][bProducts]--;
  7249. }
  7250. return 1;
  7251. }
  7252. else
  7253. {
  7254. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7255. }
  7256. }
  7257. if(listitem == 7) //Hat
  7258. {
  7259. if(PlayerInfo[playerid][pCash] > 499)
  7260. {
  7261. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7262. GivePlayerMoney(playerid,-500);
  7263. PlayerInfo[playerid][pHat] = 18928;
  7264. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7265. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7266. if(BizInfo[biz][bOwned] == 1)
  7267. {
  7268. BizInfo[biz][bTill] += 500;
  7269. BizInfo[biz][bProducts]--;
  7270. }
  7271. return 1;
  7272. }
  7273. else
  7274. {
  7275. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7276. }
  7277. }
  7278. if(listitem == 8) //Hat
  7279. {
  7280. if(PlayerInfo[playerid][pCash] > 499)
  7281. {
  7282. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7283. GivePlayerMoney(playerid,-500);
  7284. PlayerInfo[playerid][pHat] = 18929;
  7285. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7286. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7287. if(BizInfo[biz][bOwned] == 1)
  7288. {
  7289. BizInfo[biz][bTill] += 500;
  7290. BizInfo[biz][bProducts]--;
  7291. }
  7292. return 1;
  7293. }
  7294. else
  7295. {
  7296. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7297. }
  7298. }
  7299. if(listitem == 9) //Hat
  7300. {
  7301. if(PlayerInfo[playerid][pCash] > 499)
  7302. {
  7303. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7304. GivePlayerMoney(playerid,-500);
  7305. PlayerInfo[playerid][pHat] = 18930;
  7306. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7307. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7308. if(BizInfo[biz][bOwned] == 1)
  7309. {
  7310. BizInfo[biz][bTill] += 500;
  7311. BizInfo[biz][bProducts]--;
  7312. }
  7313. return 1;
  7314. }
  7315. else
  7316. {
  7317. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7318. }
  7319. }
  7320. if(listitem == 10) //Hat
  7321. {
  7322. if(PlayerInfo[playerid][pCash] > 499)
  7323. {
  7324. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7325. GivePlayerMoney(playerid,-500);
  7326. PlayerInfo[playerid][pHat] = 18931;
  7327. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7328. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7329. if(BizInfo[biz][bOwned] == 1)
  7330. {
  7331. BizInfo[biz][bTill] += 500;
  7332. BizInfo[biz][bProducts]--;
  7333. }
  7334. return 1;
  7335. }
  7336. else
  7337. {
  7338. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7339. }
  7340. }
  7341. if(listitem == 11) //Hat
  7342. {
  7343. if(PlayerInfo[playerid][pCash] > 499)
  7344. {
  7345. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7346. GivePlayerMoney(playerid,-500);
  7347. PlayerInfo[playerid][pHat] = 18932;
  7348. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7349. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7350. if(BizInfo[biz][bOwned] == 1)
  7351. {
  7352. BizInfo[biz][bTill] += 500;
  7353. BizInfo[biz][bProducts]--;
  7354. }
  7355. return 1;
  7356. }
  7357. else
  7358. {
  7359. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7360. }
  7361. }
  7362. if(listitem == 12) //Next
  7363. {
  7364. ShowPlayerDialog(playerid,BUYHAT2,DIALOG_STYLE_LIST,"Hats menu","Hat 8 ($500)\nHat 9 ($500)\nHat 10 ($500)\nCap Back 1 ($500)\nCap Back 2 ($500)\nCap Back 3 ($500)\nCap Back 4 ($500)\nCap Back 5 ($500)\nHat Boater 1 ($500)\nHat Boater 2 ($500)\nHat Boater 3 ($500)\nHat Bowler 1 ($500)\nNext","Buy","Cancel"); //Hats2
  7365. return 1;
  7366. }
  7367. }
  7368. else // Back
  7369. {
  7370. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  7371. return 1;
  7372. }
  7373. }
  7374.  
  7375. if(dialogid == BUYHAT2) //Hats
  7376. {
  7377. if(response)
  7378. {
  7379. new biz = PlayerInfo[playerid][pInBiz];
  7380. if(listitem == 0) //Hat
  7381. {
  7382. if(PlayerInfo[playerid][pCash] > 499)
  7383. {
  7384. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7385. GivePlayerMoney(playerid,-500);
  7386. PlayerInfo[playerid][pHat] = 18933;
  7387. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7388. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7389. if(BizInfo[biz][bOwned] == 1)
  7390. {
  7391. BizInfo[biz][bTill] += 500;
  7392. BizInfo[biz][bProducts]--;
  7393. }
  7394. return 1;
  7395. }
  7396. else
  7397. {
  7398. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7399. }
  7400. }
  7401. if(listitem == 1) //Hat
  7402. {
  7403. if(PlayerInfo[playerid][pCash] > 499)
  7404. {
  7405. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7406. GivePlayerMoney(playerid,-500);
  7407. PlayerInfo[playerid][pHat] = 18934;
  7408. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7409. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7410. if(BizInfo[biz][bOwned] == 1)
  7411. {
  7412. BizInfo[biz][bTill] += 500;
  7413. BizInfo[biz][bProducts]--;
  7414. }
  7415. return 1;
  7416. }
  7417. else
  7418. {
  7419. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7420. }
  7421. }
  7422. if(listitem == 2) //Hat
  7423. {
  7424. if(PlayerInfo[playerid][pCash] > 499)
  7425. {
  7426. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7427. GivePlayerMoney(playerid,-500);
  7428. PlayerInfo[playerid][pHat] = 18935;
  7429. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7430. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7431. if(BizInfo[biz][bOwned] == 1)
  7432. {
  7433. BizInfo[biz][bTill] += 500;
  7434. BizInfo[biz][bProducts]--;
  7435. }
  7436. return 1;
  7437. }
  7438. else
  7439. {
  7440. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7441. }
  7442. }
  7443. if(listitem == 3) //Hat
  7444. {
  7445. if(PlayerInfo[playerid][pCash] > 499)
  7446. {
  7447. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7448. GivePlayerMoney(playerid,-500);
  7449. PlayerInfo[playerid][pHat] = 18939;
  7450. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7451. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7452. if(BizInfo[biz][bOwned] == 1)
  7453. {
  7454. BizInfo[biz][bTill] += 500;
  7455. BizInfo[biz][bProducts]--;
  7456. }
  7457. return 1;
  7458. }
  7459. else
  7460. {
  7461. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7462. }
  7463. }
  7464. if(listitem == 4) //Hat
  7465. {
  7466. if(PlayerInfo[playerid][pCash] > 499)
  7467. {
  7468. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7469. GivePlayerMoney(playerid,-500);
  7470. PlayerInfo[playerid][pHat] = 18940;
  7471. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7472. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7473. if(BizInfo[biz][bOwned] == 1)
  7474. {
  7475. BizInfo[biz][bTill] += 500;
  7476. BizInfo[biz][bProducts]--;
  7477. }
  7478. return 1;
  7479. }
  7480. else
  7481. {
  7482. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7483. }
  7484. }
  7485. if(listitem == 5) //Hat
  7486. {
  7487. if(PlayerInfo[playerid][pCash] > 499)
  7488. {
  7489. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7490. GivePlayerMoney(playerid,-500);
  7491. PlayerInfo[playerid][pHat] = 18941;
  7492. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7493. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7494. if(BizInfo[biz][bOwned] == 1)
  7495. {
  7496. BizInfo[biz][bTill] += 500;
  7497. BizInfo[biz][bProducts]--;
  7498. }
  7499. return 1;
  7500. }
  7501. else
  7502. {
  7503. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7504. }
  7505. }
  7506. if(listitem == 6) //Hat
  7507. {
  7508. if(PlayerInfo[playerid][pCash] > 499)
  7509. {
  7510. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7511. GivePlayerMoney(playerid,-500);
  7512. PlayerInfo[playerid][pHat] = 18942;
  7513. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7514. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7515. if(BizInfo[biz][bOwned] == 1)
  7516. {
  7517. BizInfo[biz][bTill] += 500;
  7518. BizInfo[biz][bProducts]--;
  7519. }
  7520. return 1;
  7521. }
  7522. else
  7523. {
  7524. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7525. }
  7526. }
  7527. if(listitem == 7) //Hat
  7528. {
  7529. if(PlayerInfo[playerid][pCash] > 499)
  7530. {
  7531. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7532. GivePlayerMoney(playerid,-500);
  7533. PlayerInfo[playerid][pHat] = 18943;
  7534. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7535. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7536. if(BizInfo[biz][bOwned] == 1)
  7537. {
  7538. BizInfo[biz][bTill] += 500;
  7539. BizInfo[biz][bProducts]--;
  7540. }
  7541. return 1;
  7542. }
  7543. else
  7544. {
  7545. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7546. }
  7547. }
  7548. if(listitem == 8) //Hat
  7549. {
  7550. if(PlayerInfo[playerid][pCash] > 499)
  7551. {
  7552. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7553. GivePlayerMoney(playerid,-500);
  7554. PlayerInfo[playerid][pHat] = 18944;
  7555. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7556. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7557. if(BizInfo[biz][bOwned] == 1)
  7558. {
  7559. BizInfo[biz][bTill] += 500;
  7560. BizInfo[biz][bProducts]--;
  7561. }
  7562. return 1;
  7563. }
  7564. else
  7565. {
  7566. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7567. }
  7568. }
  7569. if(listitem == 9) //Hat
  7570. {
  7571. if(PlayerInfo[playerid][pCash] > 499)
  7572. {
  7573. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7574. GivePlayerMoney(playerid,-500);
  7575. PlayerInfo[playerid][pHat] = 18945;
  7576. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7577. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7578. if(BizInfo[biz][bOwned] == 1)
  7579. {
  7580. BizInfo[biz][bTill] += 500;
  7581. BizInfo[biz][bProducts]--;
  7582. }
  7583. return 1;
  7584. }
  7585. else
  7586. {
  7587. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7588. }
  7589. }
  7590. if(listitem == 10) //Hat
  7591. {
  7592. if(PlayerInfo[playerid][pCash] > 499)
  7593. {
  7594. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7595. GivePlayerMoney(playerid,-500);
  7596. PlayerInfo[playerid][pHat] = 18946;
  7597. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7598. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7599. if(BizInfo[biz][bOwned] == 1)
  7600. {
  7601. BizInfo[biz][bTill] += 500;
  7602. BizInfo[biz][bProducts]--;
  7603. }
  7604. return 1;
  7605. }
  7606. else
  7607. {
  7608. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7609. }
  7610. }
  7611. if(listitem == 11) //Hat
  7612. {
  7613. if(PlayerInfo[playerid][pCash] > 499)
  7614. {
  7615. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7616. GivePlayerMoney(playerid,-500);
  7617. PlayerInfo[playerid][pHat] = 18947;
  7618. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7619. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7620. if(BizInfo[biz][bOwned] == 1)
  7621. {
  7622. BizInfo[biz][bTill] += 500;
  7623. BizInfo[biz][bProducts]--;
  7624. }
  7625. return 1;
  7626. }
  7627. else
  7628. {
  7629. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7630. }
  7631. }
  7632. if(listitem == 12) //Next
  7633. {
  7634. ShowPlayerDialog(playerid,BUYHAT3,DIALOG_STYLE_LIST,"Hats menu","Hat Bowler 2 ($500)\nHat Bowler 3 ($500)\nHat Bowler 4 ($500)\nHat Bowler 5 ($500)\nBoxing Helmet ($500)\nBurgerShot Hat ($500)\nCowboy Hat ($500)\nCowboy Hat 2 ($500)\nCowboy Hat 3 ($500)\nCowboy Hat 4 ($500)\nCowboy Hat 5 ($500)","Buy","Cancel"); //Hats3
  7635. return 1;
  7636. }
  7637. }
  7638. else // Back
  7639. {
  7640. ShowPlayerDialog(playerid,BUYHAT,DIALOG_STYLE_LIST,"Hats menu","Berret 1 ($500\nBerret 2 ($500)\nBerret 3 ($500)\nBerret 4 ($500)\nBerret 5 ($500)\nHat 1 ($500)\nHat 2 ($500)\nHat 3 ($500)\nHat 4 ($500)\nHat 5 ($500)\nHat 6 ($500)\nHat 7 ($500)\nNext","Buy","Back"); //Hats1
  7641. return 1;
  7642. }
  7643. }
  7644.  
  7645. if(dialogid == BUYHAT3) //Hats
  7646. {
  7647. if(response)
  7648. {
  7649. new biz = PlayerInfo[playerid][pInBiz];
  7650. if(listitem == 0) //Hat
  7651. {
  7652. if(PlayerInfo[playerid][pCash] > 499)
  7653. {
  7654. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7655. GivePlayerMoney(playerid,-500);
  7656. PlayerInfo[playerid][pHat] = 18948;
  7657. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7658. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7659. if(BizInfo[biz][bOwned] == 1)
  7660. {
  7661. BizInfo[biz][bTill] += 500;
  7662. BizInfo[biz][bProducts]--;
  7663. }
  7664. return 1;
  7665. }
  7666. else
  7667. {
  7668. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7669. }
  7670. }
  7671. if(listitem == 1) //Hat
  7672. {
  7673. if(PlayerInfo[playerid][pCash] > 499)
  7674. {
  7675. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7676. GivePlayerMoney(playerid,-500);
  7677. PlayerInfo[playerid][pHat] = 18949;
  7678. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7679. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7680. if(BizInfo[biz][bOwned] == 1)
  7681. {
  7682. BizInfo[biz][bTill] += 500;
  7683. BizInfo[biz][bProducts]--;
  7684. }
  7685. return 1;
  7686. }
  7687. else
  7688. {
  7689. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7690. }
  7691. }
  7692. if(listitem == 2) //Hat
  7693. {
  7694. if(PlayerInfo[playerid][pCash] > 499)
  7695. {
  7696. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7697. GivePlayerMoney(playerid,-500);
  7698. PlayerInfo[playerid][pHat] = 18950;
  7699. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7700. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7701. if(BizInfo[biz][bOwned] == 1)
  7702. {
  7703. BizInfo[biz][bTill] += 500;
  7704. BizInfo[biz][bProducts]--;
  7705. }
  7706. return 1;
  7707. }
  7708. else
  7709. {
  7710. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7711. }
  7712. }
  7713. if(listitem == 3) //Hat
  7714. {
  7715. if(PlayerInfo[playerid][pCash] > 499)
  7716. {
  7717. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7718. GivePlayerMoney(playerid,-500);
  7719. PlayerInfo[playerid][pHat] = 18951;
  7720. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7721. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7722. if(BizInfo[biz][bOwned] == 1)
  7723. {
  7724. BizInfo[biz][bTill] += 500;
  7725. BizInfo[biz][bProducts]--;
  7726. }
  7727. return 1;
  7728. }
  7729. else
  7730. {
  7731. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7732. }
  7733. }
  7734. if(listitem == 4) //Hat
  7735. {
  7736. if(PlayerInfo[playerid][pCash] > 499)
  7737. {
  7738. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7739. GivePlayerMoney(playerid,-500);
  7740. PlayerInfo[playerid][pHat] = 18952;
  7741. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7742. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7743. if(BizInfo[biz][bOwned] == 1)
  7744. {
  7745. BizInfo[biz][bTill] += 500;
  7746. BizInfo[biz][bProducts]--;
  7747. }
  7748. return 1;
  7749. }
  7750. else
  7751. {
  7752. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7753. }
  7754. }
  7755. if(listitem == 5) //Hat
  7756. {
  7757. if(PlayerInfo[playerid][pCash] > 499)
  7758. {
  7759. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7760. GivePlayerMoney(playerid,-500);
  7761. PlayerInfo[playerid][pHat] = 19094;
  7762. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7763. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7764. if(BizInfo[biz][bOwned] == 1)
  7765. {
  7766. BizInfo[biz][bTill] += 500;
  7767. BizInfo[biz][bProducts]--;
  7768. }
  7769. return 1;
  7770. }
  7771. else
  7772. {
  7773. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7774. }
  7775. }
  7776. if(listitem == 6) //Hat
  7777. {
  7778. if(PlayerInfo[playerid][pCash] > 499)
  7779. {
  7780. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7781. GivePlayerMoney(playerid,-500);
  7782. PlayerInfo[playerid][pHat] = 19095;
  7783. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7784. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7785. if(BizInfo[biz][bOwned] == 1)
  7786. {
  7787. BizInfo[biz][bTill] += 500;
  7788. BizInfo[biz][bProducts]--;
  7789. }
  7790. return 1;
  7791. }
  7792. else
  7793. {
  7794. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7795. }
  7796. }
  7797. if(listitem == 7) //Hat
  7798. {
  7799. if(PlayerInfo[playerid][pCash] > 499)
  7800. {
  7801. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7802. GivePlayerMoney(playerid,-500);
  7803. PlayerInfo[playerid][pHat] = 19096;
  7804. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7805. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7806. if(BizInfo[biz][bOwned] == 1)
  7807. {
  7808. BizInfo[biz][bTill] += 500;
  7809. BizInfo[biz][bProducts]--;
  7810. }
  7811. return 1;
  7812. }
  7813. else
  7814. {
  7815. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7816. }
  7817. }
  7818. if(listitem == 8) //Hat
  7819. {
  7820. if(PlayerInfo[playerid][pCash] > 499)
  7821. {
  7822. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7823. GivePlayerMoney(playerid,-500);
  7824. PlayerInfo[playerid][pHat] = 19097;
  7825. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7826. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7827. if(BizInfo[biz][bOwned] == 1)
  7828. {
  7829. BizInfo[biz][bTill] += 500;
  7830. BizInfo[biz][bProducts]--;
  7831. }
  7832. return 1;
  7833. }
  7834. else
  7835. {
  7836. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7837. }
  7838. }
  7839. if(listitem == 9) //Hat
  7840. {
  7841. if(PlayerInfo[playerid][pCash] > 499)
  7842. {
  7843. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7844. GivePlayerMoney(playerid,-500);
  7845. PlayerInfo[playerid][pHat] = 19098;
  7846. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7847. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7848. if(BizInfo[biz][bOwned] == 1)
  7849. {
  7850. BizInfo[biz][bTill] += 500;
  7851. BizInfo[biz][bProducts]--;
  7852. }
  7853. return 1;
  7854. }
  7855. else
  7856. {
  7857. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7858. }
  7859. }
  7860. if(listitem == 10) //Hat
  7861. {
  7862. if(PlayerInfo[playerid][pCash] > 499)
  7863. {
  7864. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  7865. GivePlayerMoney(playerid,-500);
  7866. PlayerInfo[playerid][pHat] = 18962;
  7867. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7868. SendClientMessage(playerid, COLOR_YELLOW, "** Your new hat has been purchased for $500. Use /hat to put it on");
  7869. if(BizInfo[biz][bOwned] == 1)
  7870. {
  7871. BizInfo[biz][bTill] += 500;
  7872. BizInfo[biz][bProducts]--;
  7873. }
  7874. return 1;
  7875. }
  7876. else
  7877. {
  7878. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7879. }
  7880. }
  7881. }
  7882. else // Back
  7883. {
  7884. ShowPlayerDialog(playerid,BUYHAT2,DIALOG_STYLE_LIST,"Hats menu","Hat 8 ($500)\nHat 9 ($500)\nHat 10 ($500)\nCap Back 1 ($500)\nCap Back 2 ($500)\nCap Back 3 ($500)\nCap Back 4 ($500)\nCap Back 5 ($500)\nHat Boater 1 ($500)\nHat Boater 2 ($500)\nHat Boater 3 ($500)\nHat Bowler 1 ($500)\nNext","Buy","Cancel"); //Hats2
  7885. return 1;
  7886. }
  7887. }
  7888.  
  7889. if(dialogid == BUYGLASSES) //Glasses
  7890. {
  7891. if(response)
  7892. {
  7893. new biz = PlayerInfo[playerid][pInBiz];
  7894. if(listitem == 0) //Glass 1
  7895. {
  7896. if(PlayerInfo[playerid][pCash] > 199)
  7897. {
  7898. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  7899. GivePlayerMoney(playerid,-200);
  7900. PlayerInfo[playerid][pGlasses] = 19006;
  7901. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7902. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  7903. if(BizInfo[biz][bOwned] == 1)
  7904. {
  7905. BizInfo[biz][bTill] += 200;
  7906. BizInfo[biz][bProducts]--;
  7907. }
  7908. return 1;
  7909. }
  7910. else
  7911. {
  7912. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7913. }
  7914. }
  7915. if(listitem == 1) //Glasses2
  7916. {
  7917. if(PlayerInfo[playerid][pCash] > 199)
  7918. {
  7919. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  7920. GivePlayerMoney(playerid,-200);
  7921. PlayerInfo[playerid][pGlasses] = 19007;
  7922. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7923. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  7924. if(BizInfo[biz][bOwned] == 1)
  7925. {
  7926. BizInfo[biz][bTill] += 200;
  7927. BizInfo[biz][bProducts]--;
  7928. }
  7929. return 1;
  7930. }
  7931. else
  7932. {
  7933. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7934. }
  7935. }
  7936. if(listitem == 2) //Glasses3
  7937. {
  7938. if(PlayerInfo[playerid][pCash] > 199)
  7939. {
  7940. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  7941. GivePlayerMoney(playerid,-200);
  7942. PlayerInfo[playerid][pGlasses] = 19008;
  7943. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7944. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  7945. if(BizInfo[biz][bOwned] == 1)
  7946. {
  7947. BizInfo[biz][bTill] += 200;
  7948. BizInfo[biz][bProducts]--;
  7949. }
  7950. return 1;
  7951. }
  7952. else
  7953. {
  7954. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7955. }
  7956. }
  7957. if(listitem == 3) //Glasses4
  7958. {
  7959. if(PlayerInfo[playerid][pCash] > 199)
  7960. {
  7961. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  7962. GivePlayerMoney(playerid,-200);
  7963. PlayerInfo[playerid][pGlasses] = 19009;
  7964. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7965. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  7966. if(BizInfo[biz][bOwned] == 1)
  7967. {
  7968. BizInfo[biz][bTill] += 200;
  7969. BizInfo[biz][bProducts]--;
  7970. }
  7971. return 1;
  7972. }
  7973. else
  7974. {
  7975. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7976. }
  7977. }
  7978. if(listitem == 4) //Glasses5
  7979. {
  7980. if(PlayerInfo[playerid][pCash] > 199)
  7981. {
  7982. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  7983. GivePlayerMoney(playerid,-200);
  7984. PlayerInfo[playerid][pGlasses] = 19010;
  7985. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  7986. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  7987. if(BizInfo[biz][bOwned] == 1)
  7988. {
  7989. BizInfo[biz][bTill] += 200;
  7990. BizInfo[biz][bProducts]--;
  7991. }
  7992. return 1;
  7993. }
  7994. else
  7995. {
  7996. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  7997. }
  7998. }
  7999. if(listitem == 5) //Glasses6
  8000. {
  8001. if(PlayerInfo[playerid][pCash] > 199)
  8002. {
  8003. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8004. GivePlayerMoney(playerid,-200);
  8005. PlayerInfo[playerid][pGlasses] = 19011;
  8006. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8007. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8008. if(BizInfo[biz][bOwned] == 1)
  8009. {
  8010. BizInfo[biz][bTill] += 200;
  8011. BizInfo[biz][bProducts]--;
  8012. }
  8013. return 1;
  8014. }
  8015. else
  8016. {
  8017. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8018. }
  8019. }
  8020. if(listitem == 6) //Glasses7
  8021. {
  8022. if(PlayerInfo[playerid][pCash] > 199)
  8023. {
  8024. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8025. GivePlayerMoney(playerid,-200);
  8026. PlayerInfo[playerid][pGlasses] = 19012;
  8027. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8028. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8029. if(BizInfo[biz][bOwned] == 1)
  8030. {
  8031. BizInfo[biz][bTill] += 200;
  8032. BizInfo[biz][bProducts]--;
  8033. }
  8034. return 1;
  8035. }
  8036. else
  8037. {
  8038. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8039. }
  8040. }
  8041. if(listitem == 7) //Glasses8
  8042. {
  8043. if(PlayerInfo[playerid][pCash] > 199)
  8044. {
  8045. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8046. GivePlayerMoney(playerid,-200);
  8047. PlayerInfo[playerid][pGlasses] = 19013;
  8048. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8049. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8050. if(BizInfo[biz][bOwned] == 1)
  8051. {
  8052. BizInfo[biz][bTill] += 200;
  8053. BizInfo[biz][bProducts]--;
  8054. }
  8055. return 1;
  8056. }
  8057. else
  8058. {
  8059. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8060. }
  8061. }
  8062. if(listitem == 8) //Glasses9
  8063. {
  8064. if(PlayerInfo[playerid][pCash] > 199)
  8065. {
  8066. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8067. GivePlayerMoney(playerid,-200);
  8068. PlayerInfo[playerid][pGlasses] = 19014;
  8069. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8070. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8071. if(BizInfo[biz][bOwned] == 1)
  8072. {
  8073. BizInfo[biz][bTill] += 200;
  8074. BizInfo[biz][bProducts]--;
  8075. }
  8076. return 1;
  8077. }
  8078. else
  8079. {
  8080. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8081. }
  8082. }
  8083. if(listitem == 9) //Glasses10
  8084. {
  8085. if(PlayerInfo[playerid][pCash] > 199)
  8086. {
  8087. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8088. GivePlayerMoney(playerid,-200);
  8089. PlayerInfo[playerid][pGlasses] = 19015;
  8090. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8091. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8092. if(BizInfo[biz][bOwned] == 1)
  8093. {
  8094. BizInfo[biz][bTill] += 200;
  8095. BizInfo[biz][bProducts]--;
  8096. }
  8097. return 1;
  8098. }
  8099. else
  8100. {
  8101. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8102. }
  8103. }
  8104. if(listitem == 10) //Glasses11
  8105. {
  8106. if(PlayerInfo[playerid][pCash] > 199)
  8107. {
  8108. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8109. GivePlayerMoney(playerid,-200);
  8110. PlayerInfo[playerid][pGlasses] = 19016;
  8111. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8112. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8113. if(BizInfo[biz][bOwned] == 1)
  8114. {
  8115. BizInfo[biz][bTill] += 200;
  8116. BizInfo[biz][bProducts]--;
  8117. }
  8118. return 1;
  8119. }
  8120. else
  8121. {
  8122. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8123. }
  8124. }
  8125. if(listitem == 11) //Next
  8126. {
  8127. ShowPlayerDialog(playerid,BUYGLASSES2,DIALOG_STYLE_LIST,"Glasses menu","Square Yellow ($200)\nSquare Orange ($200)\nSquare Red ($200)\nSquare Blue ($200)\nSquare Green ($200)\nRayBan Gray ($300)\nRayBan Blue ($300)\nRayBan Purple ($300)\nRayBan Pink ($300)\nRayBan Red ($300)\nRayBan Orange ($300)\nNext","Buy","Back"); //Glasses 2
  8128. return 1;
  8129. }
  8130. }
  8131. else
  8132. {
  8133. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  8134. return 1;
  8135. }
  8136. }
  8137.  
  8138. if(dialogid == BUYGLASSES2) //Glasses
  8139. {
  8140. if(response)
  8141. {
  8142. new biz = PlayerInfo[playerid][pInBiz];
  8143. if(listitem == 0) //Glasses12
  8144. {
  8145. if(PlayerInfo[playerid][pCash] > 199)
  8146. {
  8147. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8148. GivePlayerMoney(playerid,-200);
  8149. PlayerInfo[playerid][pGlasses] = 19017;
  8150. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8151. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8152. if(BizInfo[biz][bOwned] == 1)
  8153. {
  8154. BizInfo[biz][bTill] += 200;
  8155. BizInfo[biz][bProducts]--;
  8156. }
  8157. return 1;
  8158. }
  8159. else
  8160. {
  8161. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8162. }
  8163. }
  8164. if(listitem == 1) //Glasses13
  8165. {
  8166. if(PlayerInfo[playerid][pCash] > 199)
  8167. {
  8168. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8169. GivePlayerMoney(playerid,-200);
  8170. PlayerInfo[playerid][pGlasses] = 19018;
  8171. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8172. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8173. if(BizInfo[biz][bOwned] == 1)
  8174. {
  8175. BizInfo[biz][bTill] += 200;
  8176. BizInfo[biz][bProducts]--;
  8177. }
  8178. return 1;
  8179. }
  8180. else
  8181. {
  8182. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8183. }
  8184. }
  8185. if(listitem == 2) //Glasses14
  8186. {
  8187. if(PlayerInfo[playerid][pCash] > 199)
  8188. {
  8189. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8190. GivePlayerMoney(playerid,-200);
  8191. PlayerInfo[playerid][pGlasses] = 19019;
  8192. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8193. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8194. if(BizInfo[biz][bOwned] == 1)
  8195. {
  8196. BizInfo[biz][bTill] += 200;
  8197. BizInfo[biz][bProducts]--;
  8198. }
  8199. return 1;
  8200. }
  8201. else
  8202. {
  8203. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8204. }
  8205. }
  8206. if(listitem == 3) //Glasses15
  8207. {
  8208. if(PlayerInfo[playerid][pCash] > 199)
  8209. {
  8210. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8211. GivePlayerMoney(playerid,-200);
  8212. PlayerInfo[playerid][pGlasses] = 19020;
  8213. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8214. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8215. if(BizInfo[biz][bOwned] == 1)
  8216. {
  8217. BizInfo[biz][bTill] += 200;
  8218. BizInfo[biz][bProducts]--;
  8219. }
  8220. return 1;
  8221. }
  8222. else
  8223. {
  8224. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8225. }
  8226. }
  8227. if(listitem == 4) //Glasses16
  8228. {
  8229. if(PlayerInfo[playerid][pCash] > 199)
  8230. {
  8231. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8232. GivePlayerMoney(playerid,-200);
  8233. PlayerInfo[playerid][pGlasses] = 19021;
  8234. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8235. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8236. if(BizInfo[biz][bOwned] == 1)
  8237. {
  8238. BizInfo[biz][bTill] += 200;
  8239. BizInfo[biz][bProducts]--;
  8240. }
  8241. return 1;
  8242. }
  8243. else
  8244. {
  8245. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8246. }
  8247. }
  8248. if(listitem == 5) //Glasses17
  8249. {
  8250. if(PlayerInfo[playerid][pCash] > 299)
  8251. {
  8252. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8253. GivePlayerMoney(playerid,-300);
  8254. PlayerInfo[playerid][pGlasses] = 19022;
  8255. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8256. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8257. if(BizInfo[biz][bOwned] == 1)
  8258. {
  8259. BizInfo[biz][bTill] += 300;
  8260. BizInfo[biz][bProducts]--;
  8261. }
  8262. return 1;
  8263. }
  8264. else
  8265. {
  8266. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8267. }
  8268. }
  8269. if(listitem == 6) //Glasses18
  8270. {
  8271. if(PlayerInfo[playerid][pCash] > 299)
  8272. {
  8273. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8274. GivePlayerMoney(playerid,-300);
  8275. PlayerInfo[playerid][pGlasses] = 19023;
  8276. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8277. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8278. if(BizInfo[biz][bOwned] == 1)
  8279. {
  8280. BizInfo[biz][bTill] += 300;
  8281. BizInfo[biz][bProducts]--;
  8282. }
  8283. return 1;
  8284. }
  8285. else
  8286. {
  8287. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8288. }
  8289. }
  8290. if(listitem == 7) //Glasses19
  8291. {
  8292. if(PlayerInfo[playerid][pCash] > 299)
  8293. {
  8294. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8295. GivePlayerMoney(playerid,-300);
  8296. PlayerInfo[playerid][pGlasses] = 19024;
  8297. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8298. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8299. if(BizInfo[biz][bOwned] == 1)
  8300. {
  8301. BizInfo[biz][bTill] += 300;
  8302. BizInfo[biz][bProducts]--;
  8303. }
  8304. return 1;
  8305. }
  8306. else
  8307. {
  8308. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8309. }
  8310. }
  8311. if(listitem == 8) //Glasses20
  8312. {
  8313. if(PlayerInfo[playerid][pCash] > 299)
  8314. {
  8315. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8316. GivePlayerMoney(playerid,-300);
  8317. PlayerInfo[playerid][pGlasses] = 19025;
  8318. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8319. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8320. if(BizInfo[biz][bOwned] == 1)
  8321. {
  8322. BizInfo[biz][bTill] += 300;
  8323. BizInfo[biz][bProducts]--;
  8324. }
  8325. return 1;
  8326. }
  8327. else
  8328. {
  8329. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8330. }
  8331. }
  8332. if(listitem == 9) //Glasses21
  8333. {
  8334. if(PlayerInfo[playerid][pCash] > 299)
  8335. {
  8336. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8337. GivePlayerMoney(playerid,-300);
  8338. PlayerInfo[playerid][pGlasses] = 19026;
  8339. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8340. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8341. if(BizInfo[biz][bOwned] == 1)
  8342. {
  8343. BizInfo[biz][bTill] += 300;
  8344. BizInfo[biz][bProducts]--;
  8345. }
  8346. return 1;
  8347. }
  8348. else
  8349. {
  8350. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8351. }
  8352. }
  8353. if(listitem == 10) //Glasses22
  8354. {
  8355. if(PlayerInfo[playerid][pCash] > 299)
  8356. {
  8357. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8358. GivePlayerMoney(playerid,-300);
  8359. PlayerInfo[playerid][pGlasses] = 19027;
  8360. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8361. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8362. if(BizInfo[biz][bOwned] == 1)
  8363. {
  8364. BizInfo[biz][bTill] += 300;
  8365. BizInfo[biz][bProducts]--;
  8366. }
  8367. return 1;
  8368. }
  8369. else
  8370. {
  8371. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8372. }
  8373. }
  8374. if(listitem == 11) //Next
  8375. {
  8376. ShowPlayerDialog(playerid,BUYGLASSES3,DIALOG_STYLE_LIST,"Glasses menu","RayBan Yellow ($300)\nRayBan Green ($300)\nCircular Normal ($200)\nCircular Yellow ($200)\nCircular Red ($200)\nCircular Black ($200)\nCircular Xadrex ($200)\nCircular Thunders ($200)\nBlack Cop glasses ($500)\nRed Cop glasses ($500)\nBlue Cop glasses ($500)","Buy","Back"); //Glasses 3
  8377. return 1;
  8378. }
  8379. }
  8380. else
  8381. {
  8382. ShowPlayerDialog(playerid,BUYGLASSES,DIALOG_STYLE_LIST,"Glasses menu","Common Red ($200)\nCommon Orange ($200)\nCommon Green ($200)\nCommon Blue ($200)\nCommon Purple ($200)\nCommon Espiral ($200)\nCommon Black ($200)\nCommon Eyes ($200)\nCommon Xadrex ($200)\nCommon Transparent ($200)\nCommon XRayVision ($200)\nNext","Buy","Cancel"); //Glasses 1
  8383. return 1;
  8384. }
  8385. }
  8386.  
  8387. if(dialogid == BUYGLASSES3) //Glasses
  8388. {
  8389. if(response)
  8390. {
  8391. new biz = PlayerInfo[playerid][pInBiz];
  8392. if(listitem == 0) //Glasses23
  8393. {
  8394. if(PlayerInfo[playerid][pCash] > 299)
  8395. {
  8396. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8397. GivePlayerMoney(playerid,-300);
  8398. PlayerInfo[playerid][pGlasses] = 19028;
  8399. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8400. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8401. if(BizInfo[biz][bOwned] == 1)
  8402. {
  8403. BizInfo[biz][bTill] += 300;
  8404. BizInfo[biz][bProducts]--;
  8405. }
  8406. return 1;
  8407. }
  8408. else
  8409. {
  8410. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8411. }
  8412. }
  8413. if(listitem == 1) //Glasses24
  8414. {
  8415. if(PlayerInfo[playerid][pCash] > 299)
  8416. {
  8417. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8418. GivePlayerMoney(playerid,-300);
  8419. PlayerInfo[playerid][pGlasses] = 19029;
  8420. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8421. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $300. Use /glasses to put them on");
  8422. if(BizInfo[biz][bOwned] == 1)
  8423. {
  8424. BizInfo[biz][bTill] += 300;
  8425. BizInfo[biz][bProducts]--;
  8426. }
  8427. return 1;
  8428. }
  8429. else
  8430. {
  8431. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8432. }
  8433. }
  8434. if(listitem == 2) //Glasses25
  8435. {
  8436. if(PlayerInfo[playerid][pCash] > 199)
  8437. {
  8438. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8439. GivePlayerMoney(playerid,-200);
  8440. PlayerInfo[playerid][pGlasses] = 19030;
  8441. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8442. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8443. if(BizInfo[biz][bOwned] == 1)
  8444. {
  8445. BizInfo[biz][bTill] += 200;
  8446. BizInfo[biz][bProducts]--;
  8447. }
  8448. return 1;
  8449. }
  8450. else
  8451. {
  8452. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8453. }
  8454. }
  8455. if(listitem == 3) //Glasses26
  8456. {
  8457. if(PlayerInfo[playerid][pCash] > 199)
  8458. {
  8459. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8460. GivePlayerMoney(playerid,-200);
  8461. PlayerInfo[playerid][pGlasses] = 19031;
  8462. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8463. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8464. if(BizInfo[biz][bOwned] == 1)
  8465. {
  8466. BizInfo[biz][bTill] += 200;
  8467. BizInfo[biz][bProducts]--;
  8468. }
  8469. return 1;
  8470. }
  8471. else
  8472. {
  8473. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8474. }
  8475. }
  8476. if(listitem == 4) //Glasses27
  8477. {
  8478. if(PlayerInfo[playerid][pCash] > 199)
  8479. {
  8480. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8481. GivePlayerMoney(playerid,-200);
  8482. PlayerInfo[playerid][pGlasses] = 19032;
  8483. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8484. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8485. if(BizInfo[biz][bOwned] == 1)
  8486. {
  8487. BizInfo[biz][bTill] += 200;
  8488. BizInfo[biz][bProducts]--;
  8489. }
  8490. return 1;
  8491. }
  8492. else
  8493. {
  8494. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8495. }
  8496. }
  8497. if(listitem == 5) //Glasses28
  8498. {
  8499. if(PlayerInfo[playerid][pCash] > 199)
  8500. {
  8501. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8502. GivePlayerMoney(playerid,-200);
  8503. PlayerInfo[playerid][pGlasses] = 19033;
  8504. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8505. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8506. if(BizInfo[biz][bOwned] == 1)
  8507. {
  8508. BizInfo[biz][bTill] += 200;
  8509. BizInfo[biz][bProducts]--;
  8510. }
  8511. return 1;
  8512. }
  8513. else
  8514. {
  8515. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8516. }
  8517. }
  8518. if(listitem == 6) //Glasses29
  8519. {
  8520. if(PlayerInfo[playerid][pCash] > 199)
  8521. {
  8522. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8523. GivePlayerMoney(playerid,-200);
  8524. PlayerInfo[playerid][pGlasses] = 19034;
  8525. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8526. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8527. if(BizInfo[biz][bOwned] == 1)
  8528. {
  8529. BizInfo[biz][bTill] += 200;
  8530. BizInfo[biz][bProducts]--;
  8531. }
  8532. return 1;
  8533. }
  8534. else
  8535. {
  8536. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8537. }
  8538. }
  8539. if(listitem == 7) //Glasses30
  8540. {
  8541. if(PlayerInfo[playerid][pCash] > 199)
  8542. {
  8543. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  8544. GivePlayerMoney(playerid,-200);
  8545. PlayerInfo[playerid][pGlasses] = 19035;
  8546. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8547. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $200. Use /glasses to put them on");
  8548. if(BizInfo[biz][bOwned] == 1)
  8549. {
  8550. BizInfo[biz][bTill] += 200;
  8551. BizInfo[biz][bProducts]--;
  8552. }
  8553. return 1;
  8554. }
  8555. else
  8556. {
  8557. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8558. }
  8559. }
  8560. if(listitem == 8) //Glasses31
  8561. {
  8562. if(PlayerInfo[playerid][pCash] > 499)
  8563. {
  8564. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  8565. GivePlayerMoney(playerid,-500);
  8566. PlayerInfo[playerid][pGlasses] = 19138;
  8567. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8568. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
  8569. if(BizInfo[biz][bOwned] == 1)
  8570. {
  8571. BizInfo[biz][bTill] += 500;
  8572. BizInfo[biz][bProducts]--;
  8573. }
  8574. return 1;
  8575. }
  8576. else
  8577. {
  8578. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8579. }
  8580. }
  8581. if(listitem == 9) //Glasses32
  8582. {
  8583. if(PlayerInfo[playerid][pCash] > 499)
  8584. {
  8585. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  8586. GivePlayerMoney(playerid,-500);
  8587. PlayerInfo[playerid][pGlasses] = 19139;
  8588. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8589. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
  8590. if(BizInfo[biz][bOwned] == 1)
  8591. {
  8592. BizInfo[biz][bTill] += 500;
  8593. BizInfo[biz][bProducts]--;
  8594. }
  8595. return 1;
  8596. }
  8597. else
  8598. {
  8599. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8600. }
  8601. }
  8602. if(listitem == 10) //Glasses33
  8603. {
  8604. if(PlayerInfo[playerid][pCash] > 499)
  8605. {
  8606. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  8607. GivePlayerMoney(playerid,-500);
  8608. PlayerInfo[playerid][pGlasses] = 19140;
  8609. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8610. SendClientMessage(playerid, COLOR_YELLOW, "** Your new sunglasses have been purchased for $500. Use /glasses to put them on");
  8611. if(BizInfo[biz][bOwned] == 1)
  8612. {
  8613. BizInfo[biz][bTill] += 500;
  8614. BizInfo[biz][bProducts]--;
  8615. }
  8616. return 1;
  8617. }
  8618. else
  8619. {
  8620. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8621. }
  8622. }
  8623. }
  8624. else
  8625. {
  8626. ShowPlayerDialog(playerid,BUYGLASSES2,DIALOG_STYLE_LIST,"Glasses menu","Square Yellow ($200)\nSquare Orange ($200)\nSquare Red ($200)\nSquare Blue ($200)\nSquare Green ($200)\nRayBan Gray ($300)\nRayBan Blue ($300)\nRayBan Purple ($300)\nRayBan Pink ($300)\nRayBan Red ($300)\nRayBan Orange ($300)\nNext","Buy","Back"); //Glasses 2
  8627. return 1;
  8628. }
  8629. }
  8630.  
  8631. if(dialogid == BUYBANDANA) //Bandana
  8632. {
  8633. if(response)
  8634. {
  8635. new biz = PlayerInfo[playerid][pInBiz];
  8636. if(listitem == 0) //Bandana
  8637. {
  8638. if(PlayerInfo[playerid][pCash] > 499)
  8639. {
  8640. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  8641. GivePlayerMoney(playerid,-500);
  8642. PlayerInfo[playerid][pBandana] = 18911;
  8643. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8644. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $500. Use /bandana to put it on");
  8645. if(BizInfo[biz][bOwned] == 1)
  8646. {
  8647. BizInfo[biz][bTill] += 500;
  8648. BizInfo[biz][bProducts]--;
  8649. }
  8650. return 1;
  8651. }
  8652. else
  8653. {
  8654. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8655. }
  8656. }
  8657. if(listitem == 1) //Bandana
  8658. {
  8659. if(PlayerInfo[playerid][pCash] > 249)
  8660. {
  8661. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8662. GivePlayerMoney(playerid,-250);
  8663. PlayerInfo[playerid][pBandana] = 18912;
  8664. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8665. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8666. if(BizInfo[biz][bOwned] == 1)
  8667. {
  8668. BizInfo[biz][bTill] += 250;
  8669. BizInfo[biz][bProducts]--;
  8670. }
  8671. return 1;
  8672. }
  8673. else
  8674. {
  8675. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8676. }
  8677. }
  8678. if(listitem == 2) //Bandana
  8679. {
  8680. if(PlayerInfo[playerid][pCash] > 249)
  8681. {
  8682. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8683. GivePlayerMoney(playerid,-250);
  8684. PlayerInfo[playerid][pBandana] = 18913;
  8685. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8686. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8687. if(BizInfo[biz][bOwned] == 1)
  8688. {
  8689. BizInfo[biz][bTill] += 250;
  8690. BizInfo[biz][bProducts]--;
  8691. }
  8692. return 1;
  8693. }
  8694. else
  8695. {
  8696. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8697. }
  8698. }
  8699. if(listitem == 3) //Bandana
  8700. {
  8701. if(PlayerInfo[playerid][pCash] > 299)
  8702. {
  8703. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  8704. GivePlayerMoney(playerid,-300);
  8705. PlayerInfo[playerid][pBandana] = 18914;
  8706. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8707. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $300. Use /bandana to put it on");
  8708. if(BizInfo[biz][bOwned] == 1)
  8709. {
  8710. BizInfo[biz][bTill] += 300;
  8711. BizInfo[biz][bProducts]--;
  8712. }
  8713. return 1;
  8714. }
  8715. else
  8716. {
  8717. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8718. }
  8719. }
  8720. if(listitem == 4) //Bandana
  8721. {
  8722. if(PlayerInfo[playerid][pCash] > 249)
  8723. {
  8724. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8725. GivePlayerMoney(playerid,-250);
  8726. PlayerInfo[playerid][pBandana] = 18915;
  8727. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8728. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8729. if(BizInfo[biz][bOwned] == 1)
  8730. {
  8731. BizInfo[biz][bTill] += 250;
  8732. BizInfo[biz][bProducts]--;
  8733. }
  8734. return 1;
  8735. }
  8736. else
  8737. {
  8738. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8739. }
  8740. }
  8741. if(listitem == 5) //Bandana
  8742. {
  8743. if(PlayerInfo[playerid][pCash] > 249)
  8744. {
  8745. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8746. GivePlayerMoney(playerid,-250);
  8747. PlayerInfo[playerid][pBandana] = 18916;
  8748. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8749. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8750. if(BizInfo[biz][bOwned] == 1)
  8751. {
  8752. BizInfo[biz][bTill] += 250;
  8753. BizInfo[biz][bProducts]--;
  8754. }
  8755. return 1;
  8756. }
  8757. else
  8758. {
  8759. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8760. }
  8761. }
  8762. if(listitem == 6) //Bandana
  8763. {
  8764. if(PlayerInfo[playerid][pCash] > 499)
  8765. {
  8766. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  8767. GivePlayerMoney(playerid,-500);
  8768. PlayerInfo[playerid][pBandana] = 18917;
  8769. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8770. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $500. Use /bandana to put it on");
  8771. if(BizInfo[biz][bOwned] == 1)
  8772. {
  8773. BizInfo[biz][bTill] += 500;
  8774. BizInfo[biz][bProducts]--;
  8775. }
  8776. return 1;
  8777. }
  8778. else
  8779. {
  8780. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8781. }
  8782. }
  8783. if(listitem == 7) //Bandana
  8784. {
  8785. if(PlayerInfo[playerid][pCash] > 249)
  8786. {
  8787. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8788. GivePlayerMoney(playerid,-250);
  8789. PlayerInfo[playerid][pBandana] = 18918;
  8790. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8791. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8792. if(BizInfo[biz][bOwned] == 1)
  8793. {
  8794. BizInfo[biz][bTill] += 250;
  8795. BizInfo[biz][bProducts]--;
  8796. }
  8797. return 1;
  8798. }
  8799. else
  8800. {
  8801. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8802. }
  8803. }
  8804. if(listitem == 8) //Bandana
  8805. {
  8806. if(PlayerInfo[playerid][pCash] > 249)
  8807. {
  8808. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8809. GivePlayerMoney(playerid,-250);
  8810. PlayerInfo[playerid][pBandana] = 18919;
  8811. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8812. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8813. if(BizInfo[biz][bOwned] == 1)
  8814. {
  8815. BizInfo[biz][bTill] += 250;
  8816. BizInfo[biz][bProducts]--;
  8817. }
  8818. return 1;
  8819. }
  8820. else
  8821. {
  8822. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8823. }
  8824. }
  8825. if(listitem == 9) //Bandana
  8826. {
  8827. if(PlayerInfo[playerid][pCash] > 249)
  8828. {
  8829. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-250;
  8830. GivePlayerMoney(playerid,-250);
  8831. PlayerInfo[playerid][pBandana] = 18920;
  8832. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8833. SendClientMessage(playerid, COLOR_YELLOW, "** Your new bandana has been purchased for $250. Use /bandana to put it on");
  8834. if(BizInfo[biz][bOwned] == 1)
  8835. {
  8836. BizInfo[biz][bTill] += 250;
  8837. BizInfo[biz][bProducts]--;
  8838. }
  8839. return 1;
  8840. }
  8841. else
  8842. {
  8843. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8844. }
  8845. }
  8846. }
  8847. else
  8848. {
  8849. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  8850. return 1;
  8851. }
  8852. }
  8853.  
  8854. if(dialogid == BUYHELMET) //Helmet
  8855. {
  8856. if(response)
  8857. {
  8858. new biz = PlayerInfo[playerid][pInBiz];
  8859. if(listitem == 0) //Helmet
  8860. {
  8861. if(PlayerInfo[playerid][pCash] > 999)
  8862. {
  8863. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  8864. GivePlayerMoney(playerid,-1000);
  8865. PlayerInfo[playerid][pHelmet] = 18645;
  8866. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8867. SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $1000. Use /helmet to put it on");
  8868. if(BizInfo[biz][bOwned] == 1)
  8869. {
  8870. BizInfo[biz][bTill] += 1000;
  8871. BizInfo[biz][bProducts]--;
  8872. }
  8873. return 1;
  8874. }
  8875. else
  8876. {
  8877. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8878. }
  8879. }
  8880. if(listitem == 1) //Helmet
  8881. {
  8882. if(PlayerInfo[playerid][pCash] > 849)
  8883. {
  8884. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-850;
  8885. GivePlayerMoney(playerid,-850);
  8886. PlayerInfo[playerid][pHelmet] = 18976;
  8887. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8888. SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $750. Use /helmet to put it on");
  8889. if(BizInfo[biz][bOwned] == 1)
  8890. {
  8891. BizInfo[biz][bTill] += 850;
  8892. BizInfo[biz][bProducts]--;
  8893. }
  8894. return 1;
  8895. }
  8896. else
  8897. {
  8898. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8899. }
  8900. }
  8901. if(listitem == 2) //Helmet
  8902. {
  8903. if(PlayerInfo[playerid][pCash] > 699)
  8904. {
  8905. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
  8906. GivePlayerMoney(playerid,-700);
  8907. PlayerInfo[playerid][pHelmet] = 18977;
  8908. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8909. SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
  8910. if(BizInfo[biz][bOwned] == 1)
  8911. {
  8912. BizInfo[biz][bTill] += 700;
  8913. BizInfo[biz][bProducts]--;
  8914. }
  8915. return 1;
  8916. }
  8917. else
  8918. {
  8919. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8920. }
  8921. }
  8922. if(listitem == 3) //Helmet
  8923. {
  8924. if(PlayerInfo[playerid][pCash] > 699)
  8925. {
  8926. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
  8927. GivePlayerMoney(playerid,-700);
  8928. PlayerInfo[playerid][pHelmet] = 18978;
  8929. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8930. SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
  8931. if(BizInfo[biz][bOwned] == 1)
  8932. {
  8933. BizInfo[biz][bTill] += 700;
  8934. BizInfo[biz][bProducts]--;
  8935. }
  8936. return 1;
  8937. }
  8938. else
  8939. {
  8940. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8941. }
  8942. }
  8943. if(listitem == 4) //Helmet
  8944. {
  8945. if(PlayerInfo[playerid][pCash] > 699)
  8946. {
  8947. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
  8948. GivePlayerMoney(playerid,-700);
  8949. PlayerInfo[playerid][pHelmet] = 18979;
  8950. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8951. SendClientMessage(playerid, COLOR_YELLOW, "** Your new helmet has been purchased for $700. Use /helmet to put it on");
  8952. if(BizInfo[biz][bOwned] == 1)
  8953. {
  8954. BizInfo[biz][bTill] += 700;
  8955. BizInfo[biz][bProducts]--;
  8956. }
  8957. return 1;
  8958. }
  8959. else
  8960. {
  8961. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8962. }
  8963. }
  8964. }
  8965. else
  8966. {
  8967. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  8968. return 1;
  8969. }
  8970. }
  8971.  
  8972. if(dialogid == BUYMASK) //Mask
  8973. {
  8974. if(response)
  8975. {
  8976. new biz = PlayerInfo[playerid][pInBiz];
  8977. if(listitem == 0) //Mask
  8978. {
  8979. if(PlayerInfo[playerid][pCash] > 999)
  8980. {
  8981. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  8982. GivePlayerMoney(playerid,-1000);
  8983. PlayerInfo[playerid][pCMask] = 18974;
  8984. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  8985. SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
  8986. if(BizInfo[biz][bOwned] == 1)
  8987. {
  8988. BizInfo[biz][bTill] += 1000;
  8989. BizInfo[biz][bProducts]--;
  8990. }
  8991. return 1;
  8992. }
  8993. else
  8994. {
  8995. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  8996. }
  8997. }
  8998. if(listitem == 1) //Mask
  8999. {
  9000. if(PlayerInfo[playerid][pCash] > 999)
  9001. {
  9002. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  9003. GivePlayerMoney(playerid,-1000);
  9004. PlayerInfo[playerid][pCMask] = 19036;
  9005. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  9006. SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
  9007. if(BizInfo[biz][bOwned] == 1)
  9008. {
  9009. BizInfo[biz][bTill] += 1000;
  9010. BizInfo[biz][bProducts]--;
  9011. }
  9012. return 1;
  9013. }
  9014. else
  9015. {
  9016. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  9017. }
  9018. }
  9019. if(listitem == 2) //Mask
  9020. {
  9021. if(PlayerInfo[playerid][pCash] > 999)
  9022. {
  9023. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  9024. GivePlayerMoney(playerid,-1000);
  9025. PlayerInfo[playerid][pCMask] = 19037;
  9026. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  9027. SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
  9028. if(BizInfo[biz][bOwned] == 1)
  9029. {
  9030. BizInfo[biz][bTill] += 1000;
  9031. BizInfo[biz][bProducts]--;
  9032. }
  9033. return 1;
  9034. }
  9035. else
  9036. {
  9037. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  9038. }
  9039. }
  9040. if(listitem == 3) //Mask
  9041. {
  9042. if(PlayerInfo[playerid][pCash] > 999)
  9043. {
  9044. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  9045. GivePlayerMoney(playerid,-1000);
  9046. PlayerInfo[playerid][pCMask] = 19038;
  9047. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  9048. SendClientMessage(playerid, COLOR_YELLOW, "** Your new mask has been purchased for $1000. Use /fmask to put it on");
  9049. if(BizInfo[biz][bOwned] == 1)
  9050. {
  9051. BizInfo[biz][bTill] += 1000;
  9052. BizInfo[biz][bProducts]--;
  9053. }
  9054. return 1;
  9055. }
  9056. else
  9057. {
  9058. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  9059. }
  9060. }
  9061. }
  9062. else
  9063. {
  9064. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  9065. return 1;
  9066. }
  9067. }
  9068.  
  9069. if(dialogid == TRUNKPUTSTUFF) //Trunk put stuff
  9070. {
  9071. if(response)
  9072. {
  9073. if(listitem == 0) //Put gun
  9074. {
  9075. ShowPlayerDialog(playerid,TRUNKPUTGUN,DIALOG_STYLE_LIST,"Put a gun in this trunk","Slot 1\nSlot 2","Put","Cancel"); //Trunk put gun
  9076. return 1;
  9077. }
  9078.  
  9079. if(listitem == 1) //Put armor
  9080. {
  9081. new counter = 0;
  9082. new result;
  9083. new plyName[MAX_PLAYER_NAME];
  9084. new string[128];
  9085. new sendername[MAX_PLAYER_NAME];
  9086. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9087. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9088. for(new i; i != MAX_VEHICLES; i++)
  9089. {
  9090. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9091. if(dist)
  9092. {
  9093. result = i;
  9094. counter++;
  9095. }
  9096. }
  9097. switch(counter)
  9098. {
  9099. case 0:
  9100. {
  9101. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9102. return 1;
  9103. }
  9104.  
  9105. case 1:
  9106. {
  9107. if(IsPlayerInAnyVehicle(playerid))
  9108. {
  9109. SendClientMessage(playerid, COLOR_GREY, "You can't open the trunk while you're in the car.");
  9110. return 1;
  9111. }
  9112. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9113. {
  9114. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a trunk.");
  9115. return 1;
  9116. }
  9117. if(CarInfo[result][tTrunkOpened] != 1)
  9118. {
  9119. SendClientMessage(playerid, COLOR_RED, "You need to open the trunk first.");
  9120. return 1;
  9121. }
  9122.  
  9123. GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  9124.  
  9125. if(PlayerInfo[playerid][pArmor] != 0)
  9126. {
  9127. CarInfo[result][tArmor] = PlayerInfo[playerid][pArmor];
  9128. SetPlayerArmour(playerid, 0);
  9129. PlayerInfo[playerid][pArmor] = 0;
  9130. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9131. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9132. format(string, sizeof(string), "* %s puts a vest in the trunk.", sendername);
  9133. new ip[16];
  9134. GetPlayerIp(playerid, ip, sizeof(ip));
  9135. new logstring[256];
  9136. new year, month, day;
  9137. getdate(year, month, day);
  9138. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a vest in vehicle %d.", ip, day, month, year,PlayerName(playerid), result);
  9139. TrunkLog(logstring);
  9140. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9141. return 1;
  9142. }
  9143. else
  9144. {
  9145. SendClientMessage(playerid, COLOR_GREY, "You haven't got any armour.");
  9146. return 1;
  9147. }
  9148. }
  9149.  
  9150. default:
  9151. {
  9152. SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
  9153. return 1;
  9154. }
  9155. }
  9156. return 1;
  9157. }
  9158.  
  9159. if(listitem == 2) //Put crack
  9160. {
  9161. ShowPlayerDialog(playerid,TRUNKPUTCRACK,DIALOG_STYLE_INPUT,"Put crack","How many grams of crack do you want to put ?","Put","Cancel"); //Trunk put crack
  9162. }
  9163.  
  9164. if(listitem == 3) //Put pot
  9165. {
  9166. ShowPlayerDialog(playerid,TRUNKPUTPOT,DIALOG_STYLE_INPUT,"Put pot","How many grams of pot do you want to put ?","Put","Cancel"); //Trunk put pot
  9167. }
  9168.  
  9169. }
  9170. }
  9171.  
  9172. if(dialogid == TRUNKPUTGUN) //Trunk put gun
  9173. {
  9174. if(response)
  9175. {
  9176. if(listitem == 0) //Put gun 1
  9177. {
  9178. new counter = 0;
  9179. new result;
  9180. new string[128];
  9181. new sendername[MAX_PLAYER_NAME];
  9182. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9183. new plyName[MAX_PLAYER_NAME];
  9184.  
  9185. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9186. for(new i; i != MAX_VEHICLES; i++)
  9187. {
  9188. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9189. if(dist)
  9190. {
  9191. result = i;
  9192. counter++;
  9193. }
  9194. }
  9195. switch(counter)
  9196. {
  9197. case 0:
  9198. {
  9199. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9200. }
  9201.  
  9202. case 1:
  9203. {
  9204. if(CarInfo[result][tGun1] == 0)
  9205. {
  9206. if(IsPlayerInAnyVehicle(playerid))
  9207. {
  9208. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9209. return 1;
  9210. }
  9211. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9212. {
  9213. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9214. return 1;
  9215. }
  9216. if(CarInfo[result][tTrunkOpened] != 1)
  9217. {
  9218. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9219. return 1;
  9220. }
  9221. new buffer[512];
  9222. new gunname[100];
  9223. new gunID = GetPlayerWeapon(playerid);
  9224.  
  9225. if(gunID != 0)
  9226. {
  9227. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  9228. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  9229. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  9230. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  9231. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  9232. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  9233. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  9234. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  9235. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  9236. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  9237. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  9238. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  9239. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  9240. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  9241. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  9242. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  9243. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  9244. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  9245. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  9246. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  9247. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  9248. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  9249. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  9250. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  9251. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  9252. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  9253. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  9254. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  9255. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  9256. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  9257. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  9258. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  9259. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  9260. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  9261. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  9262. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  9263. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  9264. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  9265. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  9266. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  9267. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  9268. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  9269. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  9270. GetWeaponName(gunID, gunname, sizeof(gunname));
  9271. CarInfo[result][tGun1] = gunID;
  9272. format(buffer, sizeof(buffer), "You have put your %s in the car's trunk.", gunname);
  9273. SendClientMessage(playerid, COLOR_WHITE, buffer);
  9274. RemovePlayerWeapon(playerid, gunID);
  9275. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9276. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9277. format(string, sizeof(string), "* %s puts a %s in the trunk.", sendername, gunname);
  9278. new ip[16];
  9279. GetPlayerIp(playerid, ip, sizeof(ip));
  9280. new logstring[256];
  9281. new year, month, day;
  9282. getdate(year, month, day);
  9283. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a %s in vehicle %d.", ip, day, month, year,PlayerName(playerid), gunname, result);
  9284. TrunkLog(logstring);
  9285. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9286. return 1;
  9287. }
  9288. }
  9289. else
  9290. {
  9291. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  9292. return 1;
  9293. }
  9294. }
  9295.  
  9296. default:
  9297. {
  9298. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9299. return 1;
  9300. }
  9301. }
  9302. return 1;
  9303. }
  9304.  
  9305. if(listitem == 1) //Put gun 2
  9306. {
  9307. new counter = 0;
  9308. new result;
  9309. new string[128];
  9310. new sendername[MAX_PLAYER_NAME];
  9311. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9312. new plyName[MAX_PLAYER_NAME];
  9313.  
  9314. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9315. for(new i; i != MAX_VEHICLES; i++)
  9316. {
  9317. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9318. if(dist)
  9319. {
  9320. result = i;
  9321. counter++;
  9322. }
  9323. }
  9324. switch(counter)
  9325. {
  9326. case 0:
  9327. {
  9328. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9329. }
  9330.  
  9331. case 1:
  9332. {
  9333. if(CarInfo[result][tGun2] == 0)
  9334. {
  9335. if(IsPlayerInAnyVehicle(playerid))
  9336. {
  9337. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9338. return 1;
  9339. }
  9340. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9341. {
  9342. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9343. return 1;
  9344. }
  9345. if(CarInfo[result][tTrunkOpened] != 1)
  9346. {
  9347. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9348. return 1;
  9349. }
  9350. new buffer[512];
  9351. new gunname[100];
  9352. new gunID = GetPlayerWeapon(playerid);
  9353.  
  9354. if(gunID != 0)
  9355. {
  9356. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  9357. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  9358. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  9359. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  9360. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  9361. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  9362. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  9363. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  9364. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  9365. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  9366. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  9367. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  9368. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  9369. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  9370. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  9371. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  9372. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  9373. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  9374. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  9375. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  9376. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  9377. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  9378. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  9379. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  9380. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  9381. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  9382. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  9383. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  9384. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  9385. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  9386. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  9387. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  9388. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  9389. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  9390. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  9391. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  9392. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  9393. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  9394. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  9395. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  9396. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  9397. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  9398. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  9399. GetWeaponName(gunID, gunname, sizeof(gunname));
  9400. CarInfo[result][tGun2] = gunID;
  9401. format(buffer, sizeof(buffer), "You have put your %s in the car's trunk.", gunname);
  9402. SendClientMessage(playerid, COLOR_WHITE, buffer);
  9403. RemovePlayerWeapon(playerid, gunID);
  9404. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9405. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9406. format(string, sizeof(string), "* %s puts a %s in the trunk.", sendername, gunname);
  9407. new ip[16];
  9408. GetPlayerIp(playerid, ip, sizeof(ip));
  9409. new logstring[256];
  9410. new year, month, day;
  9411. getdate(year, month, day);
  9412. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts a %s in vehicle %d.", ip, day, month, year,PlayerName(playerid), gunname, result);
  9413. TrunkLog(logstring);
  9414. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9415. return 1;
  9416. }
  9417. }
  9418. else
  9419. {
  9420. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  9421. return 1;
  9422. }
  9423. }
  9424.  
  9425. default:
  9426. {
  9427. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9428. return 1;
  9429. }
  9430. }
  9431. return 1;
  9432. }
  9433. }
  9434. }
  9435.  
  9436. if(dialogid == TRUNKTAKEGUN) //Trunk take gun
  9437. {
  9438. if(response)
  9439. {
  9440. if(listitem == 0) //Take gun 1
  9441. {
  9442. new counter = 0;
  9443. new result;
  9444. new string[128];
  9445. new sendername[MAX_PLAYER_NAME];
  9446. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9447. new plyName[MAX_PLAYER_NAME];
  9448.  
  9449. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9450. for(new i; i != MAX_VEHICLES; i++)
  9451. {
  9452. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9453. if(dist)
  9454. {
  9455. result = i;
  9456. counter++;
  9457. }
  9458. }
  9459.  
  9460. switch(counter)
  9461. {
  9462. case 0:
  9463. {
  9464. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9465. return 1;
  9466. }
  9467.  
  9468. case 1:
  9469. {
  9470. if(IsPlayerInAnyVehicle(playerid))
  9471. {
  9472. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9473. return 1;
  9474. }
  9475. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9476. {
  9477. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9478. return 1;
  9479. }
  9480. if(CarInfo[result][tTrunkOpened] != 1)
  9481. {
  9482. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9483. return 1;
  9484. }
  9485. if(CarInfo[result][tGun1] != 0)
  9486. {
  9487. new buffer[512];
  9488. new gunName[100];
  9489.  
  9490. GivePlayerGun(playerid, CarInfo[result][tGun1]);
  9491. GetWeaponName(CarInfo[result][tGun1], gunName, sizeof(gunName));
  9492. format(buffer, sizeof(buffer), "You've taken a %s from the vehicle.", gunName);
  9493. SendClientMessage(playerid, COLOR_WHITE, buffer);
  9494. CarInfo[result][tGun1] = 0;
  9495. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9496. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9497. format(string, sizeof(string), "* %s takes a %s from the trunk.", sendername, gunName);
  9498. new ip[16];
  9499. GetPlayerIp(playerid, ip, sizeof(ip));
  9500. new logstring[256];
  9501. new year, month, day;
  9502. getdate(year, month, day);
  9503. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a %s from vehicle %d.", ip, day, month, year,PlayerName(playerid), gunName, result);
  9504. TrunkLog(logstring);
  9505. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9506. return 1;
  9507. }
  9508. else
  9509. {
  9510. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  9511. return 1;
  9512. }
  9513. }
  9514.  
  9515. default:
  9516. {
  9517. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9518. return 1;
  9519. }
  9520. }
  9521. return 1;
  9522. }
  9523.  
  9524. if(listitem == 1) //Take gun 2
  9525. {
  9526. new counter = 0;
  9527. new result;
  9528. new string[128];
  9529. new sendername[MAX_PLAYER_NAME];
  9530. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9531. new plyName[MAX_PLAYER_NAME];
  9532.  
  9533. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9534. for(new i; i != MAX_VEHICLES; i++)
  9535. {
  9536. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9537. if(dist)
  9538. {
  9539. result = i;
  9540. counter++;
  9541. }
  9542. }
  9543.  
  9544. switch(counter)
  9545. {
  9546. case 0:
  9547. {
  9548. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9549. return 1;
  9550. }
  9551.  
  9552. case 1:
  9553. {
  9554. if(IsPlayerInAnyVehicle(playerid))
  9555. {
  9556. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9557. return 1;
  9558. }
  9559. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9560. {
  9561. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9562. return 1;
  9563. }
  9564. if(CarInfo[result][tTrunkOpened] != 1)
  9565. {
  9566. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9567. return 1;
  9568. }
  9569. if(CarInfo[result][tGun2] != 0)
  9570. {
  9571. new buffer[512];
  9572. new gunName[100];
  9573.  
  9574. GivePlayerGun(playerid, CarInfo[result][tGun2]);
  9575. GetWeaponName(CarInfo[result][tGun2], gunName, sizeof(gunName));
  9576. format(buffer, sizeof(buffer), "You've taken a %s from the vehicle.", gunName);
  9577. SendClientMessage(playerid, COLOR_WHITE, buffer);
  9578. CarInfo[result][tGun2] = 0;
  9579. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9580. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9581. format(string, sizeof(string), "* %s takes a %s from the trunk.", sendername, gunName);
  9582. new ip[16];
  9583. GetPlayerIp(playerid, ip, sizeof(ip));
  9584. new logstring[256];
  9585. new year, month, day;
  9586. getdate(year, month, day);
  9587. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a %s from vehicle %d.", ip, day, month, year,PlayerName(playerid), gunName, result);
  9588. TrunkLog(logstring);
  9589. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9590. return 1;
  9591. }
  9592. else
  9593. {
  9594. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  9595. return 1;
  9596. }
  9597. }
  9598.  
  9599. default:
  9600. {
  9601. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9602. return 1;
  9603. }
  9604. }
  9605. return 1;
  9606. }
  9607. }
  9608. }
  9609.  
  9610.  
  9611. if(dialogid == TRUNKTAKESTUFF) //Trunk take stuff
  9612. {
  9613. if(response)
  9614. {
  9615. if(listitem == 0) //Take gun
  9616. {
  9617. ShowPlayerDialog(playerid,TRUNKTAKEGUN,DIALOG_STYLE_LIST,"Take a gun from this trunk","Slot 1\nSlot 2","Take","Cancel"); //Trunk put gun
  9618. return 1;
  9619. }
  9620.  
  9621. if(listitem == 1) //Take armor
  9622. {
  9623. new counter = 0;
  9624. new result;
  9625. new string[128];
  9626. new sendername[MAX_PLAYER_NAME];
  9627. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9628. new plyName[MAX_PLAYER_NAME];
  9629.  
  9630. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9631. for(new i; i != MAX_VEHICLES; i++)
  9632. {
  9633. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9634. if(dist)
  9635. {
  9636. result = i;
  9637. counter++;
  9638. }
  9639. }
  9640. switch(counter)
  9641. {
  9642. case 0:
  9643. {
  9644. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9645. return 1;
  9646. }
  9647.  
  9648. case 1:
  9649. {
  9650. if(IsPlayerInAnyVehicle(playerid))
  9651. {
  9652. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9653. return 1;
  9654. }
  9655. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9656. {
  9657. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9658. return 1;
  9659. }
  9660. if(CarInfo[result][tTrunkOpened] != 1)
  9661. {
  9662. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9663. return 1;
  9664. }
  9665.  
  9666. if(CarInfo[result][tArmor] != 0)
  9667. {
  9668. SetPlayerArmour(playerid, CarInfo[result][tArmor]);
  9669. PlayerInfo[playerid][pArmor] = CarInfo[result][tArmor];
  9670. CarInfo[result][tArmor] = 0;
  9671. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9672. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9673. format(string, sizeof(string), "* %s takes a vest from the trunk.", sendername);
  9674. new ip[16];
  9675. GetPlayerIp(playerid, ip, sizeof(ip));
  9676. new logstring[256];
  9677. new year, month, day;
  9678. getdate(year, month, day);
  9679. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes a vest from vehicle %d.", ip, day, month, year,PlayerName(playerid), result);
  9680. TrunkLog(logstring);
  9681. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9682. return 1;
  9683. }
  9684. else
  9685. {
  9686. SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any vest inside ");
  9687. return 1;
  9688. }
  9689. }
  9690.  
  9691. default:
  9692. {
  9693. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9694. return 1;
  9695. }
  9696. }
  9697. return 1;
  9698. }
  9699.  
  9700. if(listitem == 2) //Take crack
  9701. {
  9702. ShowPlayerDialog(playerid,TRUNKTAKECRACK,DIALOG_STYLE_INPUT,"Take crack","How many grams of crack do you want to take ?","Take","Cancel"); //Trunk take crack
  9703. }
  9704.  
  9705. if(listitem == 3) //Take pot
  9706. {
  9707. ShowPlayerDialog(playerid,TRUNKTAKEPOT,DIALOG_STYLE_INPUT,"Take pot","How many grams of pot do you want to take ?","Take","Cancel"); //Trunk take pot
  9708. }
  9709.  
  9710. }
  9711. }
  9712. if(dialogid == TRUNKTAKECRACK) //Take Crack
  9713. {
  9714. if(response)
  9715. {
  9716. new counter = 0;
  9717. new result;
  9718. new string[128];
  9719. new sendername[MAX_PLAYER_NAME];
  9720. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9721. new crack = strval(inputtext);
  9722. new plyName[MAX_PLAYER_NAME];
  9723.  
  9724. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9725. for(new i; i != MAX_VEHICLES; i++)
  9726. {
  9727. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9728. if(dist)
  9729. {
  9730. result = i;
  9731. counter++;
  9732. }
  9733. }
  9734. switch(counter)
  9735. {
  9736. case 0:
  9737. {
  9738. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9739. return 1;
  9740. }
  9741.  
  9742. case 1:
  9743. {
  9744. if(IsPlayerInAnyVehicle(playerid))
  9745. {
  9746. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9747. return 1;
  9748. }
  9749. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9750. {
  9751. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9752. return 1;
  9753. }
  9754. if(CarInfo[result][tTrunkOpened] != 1)
  9755. {
  9756. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9757. return 1;
  9758. }
  9759. new pcrack = PlayerInfo[playerid][pCrack];
  9760. new calc = crack+pcrack;
  9761. if(calc > 25)
  9762. {
  9763. SendClientMessage(playerid, COLOR_GREY, " You can't have that much crack on you");
  9764. return 1;
  9765. }
  9766. if(crack > CarInfo[result][tCrack])
  9767. {
  9768. SendClientMessage(playerid, COLOR_GREY, " You don't have that much in the trunk");
  9769. return 1;
  9770. }
  9771. if(CarInfo[result][tCrack] != 0)
  9772. {
  9773. PlayerInfo[playerid][pCrack] += crack;
  9774. CarInfo[result][tCrack] -= crack;
  9775. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9776. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9777. format(string, sizeof(string), "* %s takes some crack from the trunk.", sendername);
  9778. new ip[16];
  9779. GetPlayerIp(playerid, ip, sizeof(ip));
  9780. new logstring[256];
  9781. new year, month, day;
  9782. getdate(year, month, day);
  9783. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes %d crack from vehicle %d.", ip, day, month, year,PlayerName(playerid), crack, result);
  9784. TrunkLog(logstring);
  9785. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9786. return 1;
  9787. }
  9788. else
  9789. {
  9790. SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any crack inside ");
  9791. return 1;
  9792. }
  9793. }
  9794.  
  9795. default:
  9796. {
  9797. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  9798. return 1;
  9799. }
  9800. }
  9801. return 1;
  9802. }
  9803. return 1;
  9804. }
  9805. if(dialogid == TRUNKPUTPOT) //Put Pot
  9806. {
  9807. if(response)
  9808. {
  9809. new counter = 0;
  9810. new result;
  9811. new string[128];
  9812. new sendername[MAX_PLAYER_NAME];
  9813. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9814. new pot = strval(inputtext);
  9815. new plyName[MAX_PLAYER_NAME];
  9816.  
  9817. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9818. for(new i; i != MAX_VEHICLES; i++)
  9819. {
  9820. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9821. if(dist)
  9822. {
  9823. result = i;
  9824. counter++;
  9825. }
  9826. }
  9827. switch(counter)
  9828. {
  9829. case 0:
  9830. {
  9831. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9832. return 1;
  9833. }
  9834.  
  9835. case 1:
  9836. {
  9837. if(IsPlayerInAnyVehicle(playerid))
  9838. {
  9839. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9840. return 1;
  9841. }
  9842. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9843. {
  9844. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9845. return 1;
  9846. }
  9847. if(CarInfo[result][tTrunkOpened] != 1)
  9848. {
  9849. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9850. return 1;
  9851. }
  9852. new tpot = CarInfo[result][tPot];
  9853. new calc = pot+tpot;
  9854. if(calc > 500)
  9855. {
  9856. SendClientMessage(playerid, COLOR_GREY, " You can't have that much pot in your trunk");
  9857. return 1;
  9858. }
  9859. if(pot > PlayerInfo[playerid][pPot])
  9860. {
  9861. SendClientMessage(playerid, COLOR_GREY, " You don't have that much on you");
  9862. return 1;
  9863. }
  9864. if(PlayerInfo[playerid][pPot] != 0)
  9865. {
  9866. PlayerInfo[playerid][pPot] -= pot;
  9867. CarInfo[result][tPot] += pot;
  9868. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9869. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9870. format(string, sizeof(string), "* %s puts some pot in the trunk.", sendername);
  9871. new ip[16];
  9872. GetPlayerIp(playerid, ip, sizeof(ip));
  9873. new logstring[256];
  9874. new year, month, day;
  9875. getdate(year, month, day);
  9876. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s puts %d pot in vehicle %d.", ip, day, month, year,PlayerName(playerid), pot, result);
  9877. TrunkLog(logstring);
  9878. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9879. return 1;
  9880. }
  9881. else
  9882. {
  9883. SendClientMessage(playerid, COLOR_GREY, "You don't have any pot on you.");
  9884. return 1;
  9885. }
  9886. }
  9887.  
  9888. default:
  9889. {
  9890. SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
  9891. return 1;
  9892. }
  9893. }
  9894. return 1;
  9895. }
  9896. return 1;
  9897. }
  9898.  
  9899. if(dialogid == TRUNKPUTCRACK) //Put Crack
  9900. {
  9901. if(response)
  9902. {
  9903. new counter = 0;
  9904. new result;
  9905. new string[128];
  9906. new sendername[MAX_PLAYER_NAME];
  9907. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9908. new crack = strval(inputtext);
  9909. new plyName[MAX_PLAYER_NAME];
  9910.  
  9911. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  9912. for(new i; i != MAX_VEHICLES; i++)
  9913. {
  9914. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  9915. if(dist)
  9916. {
  9917. result = i;
  9918. counter++;
  9919. }
  9920. }
  9921. switch(counter)
  9922. {
  9923. case 0:
  9924. {
  9925. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  9926. return 1;
  9927. }
  9928.  
  9929. case 1:
  9930. {
  9931. if(IsPlayerInAnyVehicle(playerid))
  9932. {
  9933. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  9934. return 1;
  9935. }
  9936. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  9937. {
  9938. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  9939. return 1;
  9940. }
  9941. if(CarInfo[result][tTrunkOpened] != 1)
  9942. {
  9943. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  9944. return 1;
  9945. }
  9946. new tcrack = CarInfo[result][tCrack];
  9947. new calc = crack+tcrack;
  9948. if(calc > 500)
  9949. {
  9950. SendClientMessage(playerid, COLOR_GREY, " You can't have that much crack in your trunk");
  9951. return 1;
  9952. }
  9953. if(crack > PlayerInfo[playerid][pCrack])
  9954. {
  9955. SendClientMessage(playerid, COLOR_GREY, " You don't have that much on you");
  9956. return 1;
  9957. }
  9958. if(PlayerInfo[playerid][pCrack] != 0)
  9959. {
  9960. PlayerInfo[playerid][pCrack] -= crack;
  9961. CarInfo[result][tCrack] += crack;
  9962. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  9963. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  9964. format(string, sizeof(string), "* %s puts some crack in the trunk.", sendername);
  9965. new ip[16];
  9966. GetPlayerIp(playerid, ip, sizeof(ip));
  9967. new logstring[256];
  9968. new year, month, day;
  9969. getdate(year, month, day);
  9970. format(logstring, sizeof(logstring), "* %s [%d/%d/%d] %s puts %d crack in vehicle %d.", ip, day, month, year,PlayerName(playerid), crack, result);
  9971. TrunkLog(logstring);
  9972. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  9973. return 1;
  9974. }
  9975. else
  9976. {
  9977. SendClientMessage(playerid, COLOR_GREY, "You don't have any crack on you.");
  9978. return 1;
  9979. }
  9980. }
  9981.  
  9982. default:
  9983. {
  9984. SendClientMessage(playerid, COLOR_GREY, "Found more then one car in range.");
  9985. return 1;
  9986. }
  9987. }
  9988. return 1;
  9989. }
  9990. return 1;
  9991. }
  9992.  
  9993.  
  9994. if(dialogid == TRUNKTAKEPOT) //Take pot
  9995. {
  9996. if(response)
  9997. {
  9998. new counter = 0;
  9999. new result;
  10000. new string[128];
  10001. new sendername[MAX_PLAYER_NAME];
  10002. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10003. new pot = strval(inputtext);
  10004. new plyName[MAX_PLAYER_NAME];
  10005.  
  10006. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  10007. for(new i; i != MAX_VEHICLES; i++)
  10008. {
  10009. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  10010. if(dist)
  10011. {
  10012. result = i;
  10013. counter++;
  10014. }
  10015. }
  10016. switch(counter)
  10017. {
  10018. case 0:
  10019. {
  10020. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  10021. return 1;
  10022. }
  10023.  
  10024. case 1:
  10025. {
  10026. if(IsPlayerInAnyVehicle(playerid))
  10027. {
  10028. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  10029. return 1;
  10030. }
  10031. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  10032. {
  10033. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  10034. return 1;
  10035. }
  10036. if(CarInfo[result][tTrunkOpened] != 1)
  10037. {
  10038. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  10039. return 1;
  10040. }
  10041. new ppot = PlayerInfo[playerid][pPot];
  10042. new calc = pot+ppot;
  10043. if(calc > 50)
  10044. {
  10045. SendClientMessage(playerid, COLOR_GREY, " You can't have that much pot on you");
  10046. return 1;
  10047. }
  10048. if(pot > CarInfo[result][tPot])
  10049. {
  10050. SendClientMessage(playerid, COLOR_GREY, " You don't have that much in the trunk");
  10051. return 1;
  10052. }
  10053. if(CarInfo[result][tPot] != 0)
  10054. {
  10055. PlayerInfo[playerid][pPot] += pot;
  10056. CarInfo[result][tPot] -= pot;
  10057. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10058. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  10059. format(string, sizeof(string), "* %s takes some pot from the trunk.", sendername);
  10060. new ip[16];
  10061. GetPlayerIp(playerid, ip, sizeof(ip));
  10062. new logstring[256];
  10063. new year, month, day;
  10064. getdate(year, month, day);
  10065. format(logstring, sizeof(logstring), "%s [%d/%d/%d] %s takes %d pot from vehicle %d.", ip, day, month, year,PlayerName(playerid), pot, result);
  10066. TrunkLog(logstring);
  10067. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  10068. return 1;
  10069. }
  10070. else
  10071. {
  10072. SendClientMessage(playerid, COLOR_GREY, " This trunk haven't got any pot inside ");
  10073. return 1;
  10074. }
  10075. }
  10076.  
  10077. default:
  10078. {
  10079. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  10080. return 1;
  10081. }
  10082. }
  10083. return 1;
  10084. }
  10085. return 1;
  10086. }
  10087.  
  10088. if(dialogid == TRUNKDIALOG) //Trunk
  10089. {
  10090. if(response)
  10091. {
  10092. if(listitem == 0) //Open / Close
  10093. {
  10094. new counter = 0;
  10095. new result;
  10096. new string[128];
  10097. new sendername[MAX_PLAYER_NAME];
  10098. new engine,lights,alarm,doors,bonnet,boot,objective;
  10099. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10100. new plyName[MAX_PLAYER_NAME];
  10101.  
  10102. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  10103. for(new i; i != MAX_VEHICLES; i++)
  10104. {
  10105. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  10106. if(dist)
  10107. {
  10108. result = i;
  10109. counter++;
  10110. }
  10111. }
  10112. switch(counter)
  10113. {
  10114. case 0:
  10115. {
  10116. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  10117. }
  10118.  
  10119. case 1:
  10120. {
  10121. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != 2)
  10122. {
  10123. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk from a passenger seat");
  10124. return 1;
  10125. }
  10126. if(GetPlayerState(playerid) == 2 && CarInfo[result][tVehRemote] == 0)
  10127. {
  10128. SendClientMessage(playerid, COLOR_GREY, " This car doesn't have a remote for the trunk");
  10129. return 1;
  10130. }
  10131. if(CarInfo[result][tLock] == 1)
  10132. {
  10133. SendClientMessage(playerid, COLOR_RED, "This trunk is locked");
  10134. return 1;
  10135. }
  10136. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  10137. {
  10138. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  10139. return 1;
  10140. }
  10141.  
  10142. if(CarInfo[result][tTrunkOpened] == 0)
  10143. {
  10144. GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
  10145. SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
  10146. CarInfo[result][tTrunkOpened] = 1;
  10147. SendClientMessage(playerid, COLOR_WHITE, "Trunk {2F991A}open!");
  10148. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10149. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  10150. format(string, sizeof(string), "* %s has opened the trunk.", sendername);
  10151. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  10152. return 1;
  10153. }
  10154. else if(CarInfo[result][tTrunkOpened] == 1)
  10155. {
  10156. GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
  10157. SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
  10158. CarInfo[result][tTrunkOpened] = 0;
  10159. SendClientMessage(playerid, COLOR_WHITE, "Trunk {E31919}closed!");
  10160. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10161. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  10162. format(string, sizeof(string), "* %s has closed the trunk.", sendername);
  10163. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  10164. return 1;
  10165. }
  10166. }
  10167. default:
  10168. {
  10169. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  10170. return 1;
  10171. }
  10172. }
  10173. return 1;
  10174. }
  10175.  
  10176. if(listitem == 1) //Check
  10177. {
  10178. new counter = 0;
  10179. new result;
  10180. new string[128];
  10181. new sendername[MAX_PLAYER_NAME];
  10182. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10183. new plyName[MAX_PLAYER_NAME];
  10184.  
  10185. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  10186. for(new i; i != MAX_VEHICLES; i++)
  10187. {
  10188. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  10189. if(dist)
  10190. {
  10191. result = i;
  10192. counter++;
  10193. }
  10194. }
  10195. switch(counter)
  10196. {
  10197. case 0:
  10198. {
  10199. SendClientMessage(playerid, COLOR_GREY, " No cars with trunk near you");
  10200. }
  10201.  
  10202. case 1:
  10203. {
  10204. if(IsPlayerInAnyVehicle(playerid))
  10205. {
  10206. SendClientMessage(playerid, COLOR_GREY, " You can't open the trunk while you're in the car");
  10207. return 1;
  10208. }
  10209. if(CarInfo[result][tTrunkOpened] != 1)
  10210. {
  10211. SendClientMessage(playerid, COLOR_RED, "You need to open the turnk first");
  10212. return 1;
  10213. }
  10214. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  10215. {
  10216. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a trunk !");
  10217. return 1;
  10218. }
  10219. new gunname1[64];
  10220. if(CarInfo[result][tGun1] != 0)
  10221. {
  10222. GetWeaponName(CarInfo[result][tGun1], gunname1, sizeof(gunname1));
  10223. }
  10224. else { gunname1 = "Empty"; }
  10225. new gunname2[64];
  10226. if(CarInfo[result][tGun2] != 0)
  10227. {
  10228. GetWeaponName(CarInfo[result][tGun2], gunname2, sizeof(gunname2));
  10229. }
  10230. else { gunname2 = "Empty"; }
  10231. new coordsstring[128];
  10232. SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
  10233. format(coordsstring, sizeof(coordsstring),"Gun Slot 1: %s",gunname1);
  10234. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  10235. format(coordsstring, sizeof(coordsstring),"Gun Slot 2: %s",gunname2);
  10236. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  10237. format(coordsstring, sizeof(coordsstring),"Armor: %f",CarInfo[result][tArmor]);
  10238. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  10239. format(coordsstring, sizeof(coordsstring),"Crack: %d",CarInfo[result][tCrack]);
  10240. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  10241. format(coordsstring, sizeof(coordsstring),"Pot: %d",CarInfo[result][tPot]);
  10242. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  10243. SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
  10244. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  10245. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  10246. format(string, sizeof(string), "* %s looks inside the trunk and checks it.", sendername);
  10247. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  10248. return 1;
  10249. }
  10250.  
  10251. default:
  10252. {
  10253. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  10254. return 1;
  10255. }
  10256. }
  10257. return 1;
  10258. }
  10259.  
  10260. if(listitem == 2) //Put stuff
  10261. {
  10262. ShowPlayerDialog(playerid,TRUNKPUTSTUFF,DIALOG_STYLE_LIST,"Put a gun in this trunk","Put gun\nPut vest\nPut crack\nPut pot","Put","Cancel"); //Trunk put stuff
  10263. }
  10264.  
  10265. if(listitem == 3) //Take stuff
  10266. {
  10267. ShowPlayerDialog(playerid,TRUNKTAKESTUFF,DIALOG_STYLE_LIST,"Take a gun from this trunk","Take gun\nTake vest\nTake crack\nTake pot","Take","Cancel"); //Trunk take stuff
  10268. }
  10269. }
  10270. }
  10271.  
  10272. if(dialogid == CARTRACK) //Car menu
  10273. {
  10274. if(response)
  10275. {
  10276. if(listitem == 0) //Car1
  10277. {
  10278. if(PlayerInfo[playerid][pCarKey1] == 0)
  10279. {
  10280. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot.");
  10281. return 1;
  10282. }
  10283. else
  10284. {
  10285. new car = PlayerInfo[playerid][pCarKey1];
  10286. new Float:cX, Float:cY, Float:cZ;
  10287. GetVehiclePos(car, cX, cY, cZ);
  10288. if(CarInfo[car][tGPS] == 0)
  10289. {
  10290. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS.");
  10291. return 1;
  10292. }
  10293. SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
  10294. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  10295. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
  10296. return 1;
  10297. }
  10298. }
  10299.  
  10300. if(listitem == 1) //Car2
  10301. {
  10302. if(PlayerInfo[playerid][pCarKey2] == 0)
  10303. {
  10304. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot.");
  10305. return 1;
  10306. }
  10307. else
  10308. {
  10309. new car = PlayerInfo[playerid][pCarKey2];
  10310. new Float:cX, Float:cY, Float:cZ;
  10311. GetVehiclePos(car, cX, cY, cZ);
  10312. if(CarInfo[car][tGPS] == 0)
  10313. {
  10314. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS");
  10315. return 1;
  10316. }
  10317. SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
  10318. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  10319. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
  10320. return 1;
  10321. }
  10322. }
  10323. if(listitem == 2) //Car3
  10324. {
  10325. if(PlayerInfo[playerid][pCarKey3] == 0)
  10326. {
  10327. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10328. return 1;
  10329. }
  10330. else
  10331. {
  10332. new car = PlayerInfo[playerid][pCarKey3];
  10333. new Float:cX, Float:cY, Float:cZ;
  10334. GetVehiclePos(car, cX, cY, cZ);
  10335. if(CarInfo[car][tGPS] == 0)
  10336. {
  10337. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have a GPS");
  10338. return 1;
  10339. }
  10340. SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
  10341. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  10342. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
  10343. return 1;
  10344. }
  10345. }
  10346. if(listitem == 3) //RentCar
  10347. {
  10348. if(PlayerInfo[playerid][pRentKey] == 0)
  10349. {
  10350. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10351. return 1;
  10352. }
  10353. else
  10354. {
  10355. new car = PlayerInfo[playerid][pRentKey];
  10356. new Float:cX, Float:cY, Float:cZ;
  10357. GetVehiclePos(car, cX, cY, cZ);
  10358. SetPlayerCheckpoint(playerid, cX, cY, cZ, 3.0);
  10359. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  10360. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle last position was marked on your GPS");
  10361. return 1;
  10362. }
  10363. }
  10364. }
  10365. }
  10366.  
  10367.  
  10368. if(dialogid == DEALERSHIPDIALOG) //Dealerships
  10369. {
  10370. if(response)
  10371. {
  10372. if(listitem == 0) //Sport
  10373. {
  10374. SetPlayerCheckpoint(playerid, 2127.5000,-1132.6759,25.5434, 4.0);
  10375. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10376. return 1;
  10377. }
  10378.  
  10379. if(listitem == 1) //Boats
  10380. {
  10381. SetPlayerCheckpoint(playerid, 2908.0735,-1947.3708,1.7212, 4.0);
  10382. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10383. return 1;
  10384. }
  10385. if(listitem == 2) //4x4
  10386. {
  10387. SetPlayerCheckpoint(playerid, 2511.2219,-1522.7043,23.8508, 4.0);
  10388. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10389. return 1;
  10390. }
  10391. if(listitem == 3) //Faggio
  10392. {
  10393. SetPlayerCheckpoint(playerid, 459.4515,-1785.1748,5.5469, 4.0);
  10394. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10395. return 1;
  10396. }
  10397. if(listitem == 4) //Planes
  10398. {
  10399. SetPlayerCheckpoint(playerid, 1993.3129,-2615.2002,13.5469, 4.0);
  10400. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10401. return 1;
  10402. }
  10403. if(listitem == 5) //Lowriders
  10404. {
  10405. SetPlayerCheckpoint(playerid, 1791.1173,-1917.5496,13.3938, 4.0);
  10406. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10407. return 1;
  10408. }
  10409. if(listitem == 6) //Low class
  10410. {
  10411. SetPlayerCheckpoint(playerid, 1658.8696,-1708.0525,20.4844, 4.0);
  10412. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10413. return 1;
  10414. }
  10415. if(listitem == 7) //Car rental
  10416. {
  10417. SetPlayerCheckpoint(playerid, 899.27, -1664.34, 13.55, 4.0);
  10418. SendClientMessage(playerid, COLOR_YELLOW, "The dealership location has been marked on your map");
  10419. return 1;
  10420. }
  10421. }
  10422. }
  10423.  
  10424. if(dialogid == CARDIALOG) //Car menu
  10425. {
  10426. if(response)
  10427. {
  10428. new vehicle = PlayerInfo[playerid][pCarKey1];
  10429. new vehicle2 = PlayerInfo[playerid][pCarKey2];
  10430. new vehicle3 = PlayerInfo[playerid][pCarKey3];
  10431. new price = CarInfo[vehicle][tPrice];
  10432. new price2 = CarInfo[vehicle2][tPrice];
  10433. new price3 = CarInfo[vehicle2][tPrice];
  10434. new alarm = price / 100 * 10;
  10435. new alarm2 = price2 / 100 * 10;
  10436. new alarm3 = price2 / 100 * 10;
  10437. new gps = price / 100 * 15;
  10438. new gps2 = price2 / 100 * 15;
  10439. new gps3 = price3 / 100 * 15;
  10440. new insurance;
  10441. new insurance2;
  10442. new insurance3;
  10443. new remote;
  10444. new remote2;
  10445. new remote3;
  10446. new licenseplate = price / 100 * 15;
  10447. new licenseplate2 = price2 / 100 * 15;
  10448. new licenseplate3 = price3 / 100 * 15;
  10449. new towcar = price / 100 * 20; // 20 percent from the vehicle price
  10450. new towcar2 = price2 / 100 * 20; // 20 percent from the vehicle price
  10451. new towcar3 = price3 / 100 * 20; // 20 percent from the vehicle price
  10452. new dkeys = price / 100; // 1 percent from the vehicle price
  10453. new dkeys2 = price2 / 100; // 1 percent from the vehicle price
  10454. new dkeys3 = price3 / 100; // 1 percent from the vehicle price
  10455. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
  10456. else { insurance = price / 100 * 25; }
  10457. if(IsAPlane(vehicle2) || IsABike(vehicle2) || IsAHelicopter(vehicle2) || IsATrain(vehicle2) || IsABoat(vehicle2) || IsABus(vehicle2)) { insurance2 = 0; }
  10458. else { insurance2 = price / 100 * 25; }
  10459. if(IsAPlane(vehicle3) || IsABike(vehicle3) || IsAHelicopter(vehicle3) || IsATrain(vehicle3) || IsABoat(vehicle3) || IsABus(vehicle3)) { insurance3 = 0; }
  10460. else { insurance3 = price / 100 * 25; }
  10461. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
  10462. else { remote = price / 100 * 2; }
  10463. if(IsAPlane(vehicle2) || IsABike(vehicle2) || IsAHelicopter(vehicle2) || IsATrain(vehicle2) || IsABoat(vehicle2) || IsABus(vehicle2)) { remote2 = 0; }
  10464. else { remote2 = price / 100 * 2; }
  10465. if(IsAPlane(vehicle3) || IsABike(vehicle3) || IsAHelicopter(vehicle3) || IsATrain(vehicle3) || IsABoat(vehicle3) || IsABus(vehicle3)) { remote3 = 0; }
  10466. else { remote3 = price / 100 * 2; }
  10467. if(listitem == 0) //Car1
  10468. {
  10469. if(PlayerInfo[playerid][pCarKey1] == 0)
  10470. {
  10471. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10472. return 1;
  10473. }
  10474. else
  10475. {
  10476. new carlock = PlayerInfo[playerid][pCarKey1];
  10477. new Float:cX, Float:cY, Float:cZ;
  10478. GetVehiclePos(carlock, cX, cY, cZ);
  10479. if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
  10480. {
  10481. new carupgrade[256];
  10482. format(carupgrade,sizeof(carupgrade),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm,insurance,licenseplate,remote,gps,towcar,dkeys);
  10483. ShowPlayerDialog(playerid,OWNCARUPGRADE,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade,"Upgrade","Cancel"); //
  10484. }
  10485. else
  10486. {
  10487. SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
  10488. return 1;
  10489. }
  10490. }
  10491. }
  10492.  
  10493. if(listitem == 1) //Car2
  10494. {
  10495. if(PlayerInfo[playerid][pCarKey2] == 0)
  10496. {
  10497. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10498. return 1;
  10499. }
  10500. else
  10501. {
  10502. new carlock2 = PlayerInfo[playerid][pCarKey2];
  10503. new Float:cX2, Float:cY2, Float:cZ2;
  10504. GetVehiclePos(carlock2, cX2, cY2, cZ2);
  10505. if(IsPlayerInRangeOfPoint(playerid, 10, cX2, cY2, cZ2))
  10506. {
  10507. new carupgrade2[256];
  10508. format(carupgrade2,sizeof(carupgrade2),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm2,insurance2,licenseplate2,remote2,gps2,towcar2,dkeys2);
  10509. ShowPlayerDialog(playerid,OWNCARUPGRADE2,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade2,"Upgrade","Cancel"); //
  10510. }
  10511. else
  10512. {
  10513. SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
  10514. return 1;
  10515. }
  10516. }
  10517. }
  10518. if(listitem == 2) //Car3
  10519. {
  10520. if(PlayerInfo[playerid][pCarKey3] == 0)
  10521. {
  10522. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10523. return 1;
  10524. }
  10525. else
  10526. {
  10527. new carlock3 = PlayerInfo[playerid][pCarKey3];
  10528. new Float:cX3, Float:cY3, Float:cZ3;
  10529. GetVehiclePos(carlock3, cX3, cY3, cZ3);
  10530. if(IsPlayerInRangeOfPoint(playerid, 10, cX3, cY3, cZ3))
  10531. {
  10532. new carupgrade3[256];
  10533. format(carupgrade3,sizeof(carupgrade3),"Alarm ($%d)\nInsurance ($%d)\nCustom license plate ($%d)\nVehicle remote ($%d)\nGPS ($%d)\nTow services ($%d)\nDuplicate keys ($%d)",alarm3,insurance3,licenseplate3,remote3,gps3,towcar3,dkeys3);
  10534. ShowPlayerDialog(playerid,OWNCARUPGRADE3,DIALOG_STYLE_LIST,"Upgrade your vehicle",carupgrade3,"Upgrade","Cancel"); //
  10535. }
  10536. else
  10537. {
  10538. SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
  10539. return 1;
  10540. }
  10541. }
  10542. }
  10543. }
  10544. }
  10545.  
  10546. if(dialogid == GIVEKEYS) //Give Keys
  10547. {
  10548. if(response)
  10549. {
  10550. new string[128];
  10551. if(listitem == 0) //Car1
  10552. {
  10553. if(PlayerInfo[playerid][pCarKey1] == 0)
  10554. {
  10555. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10556. return 1;
  10557. }
  10558. else
  10559. {
  10560. new car = PlayerInfo[playerid][pCarKey1];
  10561. if(CarInfo[car][tDuplicateKeys] == 0)
  10562. {
  10563. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
  10564. return 1;
  10565. }
  10566. KeysID[playerid] = car;
  10567. format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
  10568. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  10569. format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
  10570. SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
  10571. return 1;
  10572. }
  10573. }
  10574.  
  10575. if(listitem == 1) //Car2
  10576. {
  10577. if(PlayerInfo[playerid][pCarKey2] == 0)
  10578. {
  10579. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10580. return 1;
  10581. }
  10582. else
  10583. {
  10584. new car = PlayerInfo[playerid][pCarKey2];
  10585. if(CarInfo[car][tDuplicateKeys] == 0)
  10586. {
  10587. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
  10588. return 1;
  10589. }
  10590. KeysID[playerid] = car;
  10591. format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
  10592. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  10593. format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
  10594. SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
  10595. return 1;
  10596. }
  10597. }
  10598. if(listitem == 2) //Car3
  10599. {
  10600. if(PlayerInfo[playerid][pCarKey3] == 0)
  10601. {
  10602. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10603. return 1;
  10604. }
  10605. else
  10606. {
  10607. new car = PlayerInfo[playerid][pCarKey3];
  10608. if(CarInfo[car][tDuplicateKeys] == 0)
  10609. {
  10610. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have duplicate keys");
  10611. return 1;
  10612. }
  10613. KeysID[playerid] = car;
  10614. format(string, sizeof(string), "* You offered %s the keys of your %s.", PlayerName(KeysOfferTo[playerid]), GetVehicleFriendlyName(car));
  10615. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  10616. format(string, sizeof(string), "* %s has offered you the keys of his %s, (type /accept keys) to accept.", PlayerName(playerid), GetVehicleFriendlyName(car));
  10617. SendClientMessage(KeysOfferTo[playerid], COLOR_LIGHTBLUE, string);
  10618. return 1;
  10619. }
  10620. }
  10621. }
  10622. }
  10623.  
  10624. if(dialogid == TOWCAR) //Tow car
  10625. {
  10626. if(response)
  10627. {
  10628. if(listitem == 0) //Car1
  10629. {
  10630. if(PlayerInfo[playerid][pCarKey1] == 0)
  10631. {
  10632. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10633. return 1;
  10634. }
  10635. else
  10636. {
  10637. new car = PlayerInfo[playerid][pCarKey1];
  10638. if(CarInfo[car][tTowServices] == 0)
  10639. {
  10640. SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
  10641. return 1;
  10642. }
  10643. for(new i = 0; i < MAX_PLAYERS; i++)
  10644. {
  10645. if(IsPlayerConnected(i))
  10646. {
  10647. if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
  10648. {
  10649. SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
  10650. return 1;
  10651. }
  10652. }
  10653. }
  10654. SetTimerEx("TowVehicle", 150000, 0, "d", car);
  10655. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
  10656. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
  10657. return 1;
  10658. }
  10659. }
  10660.  
  10661. if(listitem == 1) //Car2
  10662. {
  10663. if(PlayerInfo[playerid][pCarKey2] == 0)
  10664. {
  10665. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10666. return 1;
  10667. }
  10668. else
  10669. {
  10670. new car = PlayerInfo[playerid][pCarKey2];
  10671. if(CarInfo[car][tTowServices] == 0)
  10672. {
  10673. SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
  10674. return 1;
  10675. }
  10676. for(new i = 0; i < MAX_PLAYERS; i++)
  10677. {
  10678. if(IsPlayerConnected(i))
  10679. {
  10680. if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
  10681. {
  10682. SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
  10683. return 1;
  10684. }
  10685. }
  10686. }
  10687. SetTimerEx("TowVehicle", 150000, 0, "d", car);
  10688. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
  10689. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
  10690. return 1;
  10691. }
  10692. }
  10693. if(listitem == 2) //Car3
  10694. {
  10695. if(PlayerInfo[playerid][pCarKey3] == 0)
  10696. {
  10697. SendClientMessage(playerid, COLOR_GREY, "You don't have a vehicle in this slot");
  10698. return 1;
  10699. }
  10700. else
  10701. {
  10702. new car = PlayerInfo[playerid][pCarKey3];
  10703. if(CarInfo[car][tTowServices] == 0)
  10704. {
  10705. SendClientMessage(playerid, COLOR_GREY, "The tow services are not enabled for this vehicle");
  10706. return 1;
  10707. }
  10708. for(new i = 0; i < MAX_PLAYERS; i++)
  10709. {
  10710. if(IsPlayerConnected(i))
  10711. {
  10712. if (IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == car)
  10713. {
  10714. SendClientMessage(playerid, COLOR_GREY, "This vehicle is currently in use");
  10715. return 1;
  10716. }
  10717. }
  10718. }
  10719. SetTimerEx("TowVehicle", 150000, 0, "d", car);
  10720. SendClientMessage(playerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
  10721. SendClientMessage(playerid, COLOR_WHITE, ""CB"Message:"CW" Your vehicle is being towed where it was last parked, it will be there soon");
  10722. return 1;
  10723. }
  10724. }
  10725. }
  10726. }
  10727.  
  10728. if(dialogid == VEHINFO) // Veh info
  10729. {
  10730. if(response)
  10731. {
  10732. SendClientMessage(playerid, COLOR_WHITE,"Vehicle HELP: Type a command for more infomation");
  10733. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /trunk /park /lockpick /carupgrade /sellcartomarket /sellcar /hood");
  10734. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /trackcar /towcar /givekeys /clearmods /dealerships /engine /lights");
  10735. return 1;
  10736. }
  10737. }
  10738.  
  10739.  
  10740.  
  10741. if(dialogid == BUYLP) //LP
  10742. {
  10743. if(response)
  10744. {
  10745. for(new h = 1; h < sizeof(CarInfo); h++)
  10746. {
  10747. if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
  10748. {
  10749. SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
  10750. return 1;
  10751. }
  10752. }
  10753. if(strlen(inputtext) >= 9)
  10754. {
  10755. SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
  10756. return 0;
  10757. }
  10758. new vehicle = PlayerInfo[playerid][pCarKey1];
  10759. new price = CarInfo[vehicle][tPrice];
  10760. new licenseplate = price / 100 * 15;
  10761. new lp[9];
  10762. strmid(lp, inputtext, 0, strlen(inputtext), 255);
  10763. PlayerInfo[playerid][pCash] -= licenseplate;
  10764. GivePlayerMoney(playerid,-licenseplate);
  10765. strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
  10766. SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
  10767. }
  10768. return 1;
  10769. }
  10770.  
  10771. if(dialogid == BUYLP2) //LP2
  10772. {
  10773. if(response)
  10774. {
  10775. for(new h = 1; h < sizeof(CarInfo); h++)
  10776. {
  10777. if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
  10778. {
  10779. SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
  10780. return 1;
  10781. }
  10782. }
  10783. if(strlen(inputtext) >= 9)
  10784. {
  10785. SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
  10786. return 0;
  10787. }
  10788. new vehicle = PlayerInfo[playerid][pCarKey2];
  10789. new price = CarInfo[vehicle][tPrice];
  10790. new licenseplate = price / 100 * 15;
  10791. new lp[9];
  10792. strmid(lp, inputtext, 0, strlen(inputtext), 255);
  10793. PlayerInfo[playerid][pCash] -= licenseplate;
  10794. GivePlayerMoney(playerid,-licenseplate);
  10795. strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
  10796. SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
  10797. }
  10798. return 1;
  10799. }
  10800. if(dialogid == BUYLP3) //LP2
  10801. {
  10802. if(response)
  10803. {
  10804. for(new h = 1; h < sizeof(CarInfo); h++)
  10805. {
  10806. if(strcmp(inputtext, CarInfo[h][tLicensePlate], true) == 0)
  10807. {
  10808. SendClientMessage(playerid, COLOR_GREY, "This license plate is already registered");
  10809. return 1;
  10810. }
  10811. }
  10812. if(strlen(inputtext) >= 9)
  10813. {
  10814. SendClientMessage(playerid, COLOR_WHITE, "The plate number is too long.");
  10815. return 0;
  10816. }
  10817. new vehicle = PlayerInfo[playerid][pCarKey3];
  10818. new price = CarInfo[vehicle][tPrice];
  10819. new licenseplate = price / 100 * 15;
  10820. new lp[9];
  10821. strmid(lp, inputtext, 0, strlen(inputtext), 255);
  10822. PlayerInfo[playerid][pCash] -= licenseplate;
  10823. GivePlayerMoney(playerid,-licenseplate);
  10824. strmid(CarInfo[vehicle][tLicensePlate], lp, 0, strlen(lp), 9);
  10825. SendClientMessage(playerid, COLOR_YELLOW, "You have ordered a new license plate for your vehicle");
  10826. }
  10827. return 1;
  10828. }
  10829.  
  10830. if(dialogid == OWNCARUPGRADE) //Car menu
  10831. {
  10832. if(response)
  10833. {
  10834. new vehicle = PlayerInfo[playerid][pCarKey1];
  10835. new price = CarInfo[vehicle][tPrice];
  10836. new alarm = price / 100 * 10;
  10837. new insurance;
  10838. new remote;
  10839. new gps = price / 100 * 15;
  10840. new licenseplate = price / 100 * 15;
  10841. new towcar = price / 100 * 20;
  10842. new dkeys = price / 100;
  10843. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
  10844. else { insurance = price / 100 * 25; }
  10845. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
  10846. else { remote = price / 100 * 2; }
  10847. if(listitem == 0) //Alarm
  10848. {
  10849. if(PlayerInfo[playerid][pCash] < alarm)
  10850. {
  10851. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  10852. return 1;
  10853. }
  10854. if(CarInfo[vehicle][tAlarm] == 1)
  10855. {
  10856. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  10857. return 1;
  10858. }
  10859. PlayerInfo[playerid][pCash] -= alarm;
  10860. GivePlayerMoney(playerid,-alarm);
  10861. CarInfo[vehicle][tAlarm] = 1;
  10862. SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
  10863. return 1;
  10864. }
  10865.  
  10866. if(listitem == 1) //Insurance
  10867. {
  10868. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  10869. {
  10870. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  10871. return 1;
  10872. }
  10873. if(CarInfo[vehicle][tInsured] == 1)
  10874. {
  10875. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  10876. return 1;
  10877. }
  10878. if(PlayerInfo[playerid][pCash] < insurance)
  10879. {
  10880. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  10881. return 1;
  10882. }
  10883. PlayerInfo[playerid][pCash] -= insurance;
  10884. GivePlayerMoney(playerid,-insurance);
  10885. CarInfo[vehicle][tInsured] = 1;
  10886. SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
  10887. return 1;
  10888. }
  10889. if(listitem == 2) //Plate
  10890. {
  10891. if(PlayerInfo[playerid][pCash] < licenseplate)
  10892. {
  10893. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  10894. return 1;
  10895. }
  10896. ShowPlayerDialog(playerid, BUYLP, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
  10897. return 1;
  10898. }
  10899.  
  10900. if(listitem == 3) //Remote
  10901. {
  10902. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  10903. {
  10904. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  10905. return 1;
  10906. }
  10907. if(CarInfo[vehicle][tVehRemote] == 1)
  10908. {
  10909. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  10910. return 1;
  10911. }
  10912. if(PlayerInfo[playerid][pCash] < remote)
  10913. {
  10914. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  10915. return 1;
  10916. }
  10917. PlayerInfo[playerid][pCash] -= remote;
  10918. GivePlayerMoney(playerid,-remote);
  10919. CarInfo[vehicle][tVehRemote] = 1;
  10920. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
  10921. return 1;
  10922. }
  10923. if(listitem == 4) //GPS
  10924. {
  10925. if(CarInfo[vehicle][tGPS] == 1)
  10926. {
  10927. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this.");
  10928. return 1;
  10929. }
  10930. if(PlayerInfo[playerid][pCash] < gps)
  10931. {
  10932. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade.");
  10933. return 1;
  10934. }
  10935. PlayerInfo[playerid][pCash] -= gps;
  10936. GivePlayerMoney(playerid,-gps);
  10937. CarInfo[vehicle][tGPS] = 1;
  10938. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /trackcar )");
  10939. return 1;
  10940. }
  10941. if(listitem == 5) //Tow
  10942. {
  10943. if(CarInfo[vehicle][tTowServices] == 1)
  10944. {
  10945. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this.");
  10946. return 1;
  10947. }
  10948. if(PlayerInfo[playerid][pCash] < towcar)
  10949. {
  10950. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade.");
  10951. return 1;
  10952. }
  10953. PlayerInfo[playerid][pCash] -= towcar;
  10954. GivePlayerMoney(playerid,-towcar);
  10955. CarInfo[vehicle][tTowServices] = 1;
  10956. SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
  10957. return 1;
  10958. }
  10959. if(listitem == 6) //Duplicate keys
  10960. {
  10961. if(CarInfo[vehicle][tDuplicateKeys] == 1)
  10962. {
  10963. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  10964. return 1;
  10965. }
  10966. if(PlayerInfo[playerid][pCash] < dkeys)
  10967. {
  10968. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  10969. return 1;
  10970. }
  10971. PlayerInfo[playerid][pCash] -= dkeys;
  10972. GivePlayerMoney(playerid,-dkeys);
  10973. CarInfo[vehicle][tDuplicateKeys] = 1;
  10974. SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
  10975. return 1;
  10976. }
  10977. }
  10978. }
  10979.  
  10980. if(dialogid == OWNCARUPGRADE2) //Car menu
  10981. {
  10982. if(response)
  10983. {
  10984. new vehicle = PlayerInfo[playerid][pCarKey2];
  10985. new price = CarInfo[vehicle][tPrice];
  10986. new alarm = price / 100 * 10;
  10987. new insurance;
  10988. new remote;
  10989. new gps = price / 100 * 15;
  10990. new licenseplate = price / 100 * 15;
  10991. new towcar = price / 100 * 20;
  10992. new dkeys = price / 100;
  10993. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
  10994. else { insurance = price / 100 * 25; }
  10995. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
  10996. else { remote = price / 100 * 2; }
  10997. if(listitem == 0) //Alarm
  10998. {
  10999. if(PlayerInfo[playerid][pCash] < alarm)
  11000. {
  11001. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11002. return 1;
  11003. }
  11004. if(CarInfo[vehicle][tAlarm] == 1)
  11005. {
  11006. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11007. return 1;
  11008. }
  11009. PlayerInfo[playerid][pCash] -= alarm;
  11010. GivePlayerMoney(playerid,-alarm);
  11011. CarInfo[vehicle][tAlarm] = 1;
  11012. SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
  11013. return 1;
  11014. }
  11015.  
  11016. if(listitem == 1) //Insurance
  11017. {
  11018. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  11019. {
  11020. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  11021. return 1;
  11022. }
  11023. if(CarInfo[vehicle][tInsured] == 1)
  11024. {
  11025. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11026. return 1;
  11027. }
  11028. if(PlayerInfo[playerid][pCash] < insurance)
  11029. {
  11030. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11031. return 1;
  11032. }
  11033. PlayerInfo[playerid][pCash] -= insurance;
  11034. GivePlayerMoney(playerid,-insurance);
  11035. CarInfo[vehicle][tInsured] = 1;
  11036. SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
  11037. return 1;
  11038. }
  11039. if(listitem == 2) //Plate
  11040. {
  11041. if(PlayerInfo[playerid][pCash] < licenseplate)
  11042. {
  11043. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11044. return 1;
  11045. }
  11046. ShowPlayerDialog(playerid, BUYLP2, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
  11047. return 1;
  11048. }
  11049.  
  11050. if(listitem == 3) //Remote
  11051. {
  11052. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  11053. {
  11054. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  11055. return 1;
  11056. }
  11057. if(CarInfo[vehicle][tVehRemote] == 1)
  11058. {
  11059. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11060. return 1;
  11061. }
  11062. if(PlayerInfo[playerid][pCash] < remote)
  11063. {
  11064. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11065. return 1;
  11066. }
  11067. PlayerInfo[playerid][pCash] -= remote;
  11068. GivePlayerMoney(playerid,-remote);
  11069. CarInfo[vehicle][tVehRemote] = 1;
  11070. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
  11071. return 1;
  11072. }
  11073. if(listitem == 4) //GPS
  11074. {
  11075. if(CarInfo[vehicle][tGPS] == 1)
  11076. {
  11077. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11078. return 1;
  11079. }
  11080. if(PlayerInfo[playerid][pCash] < gps)
  11081. {
  11082. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11083. return 1;
  11084. }
  11085. PlayerInfo[playerid][pCash] -= gps;
  11086. GivePlayerMoney(playerid,-gps);
  11087. CarInfo[vehicle][tGPS] = 1;
  11088. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /cartrack )");
  11089. return 1;
  11090. }
  11091. if(listitem == 5) //Tow
  11092. {
  11093. if(CarInfo[vehicle][tTowServices] == 1)
  11094. {
  11095. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11096. return 1;
  11097. }
  11098. if(PlayerInfo[playerid][pCash] < towcar)
  11099. {
  11100. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11101. return 1;
  11102. }
  11103. PlayerInfo[playerid][pCash] -= towcar;
  11104. GivePlayerMoney(playerid,-towcar);
  11105. CarInfo[vehicle][tTowServices] = 1;
  11106. SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
  11107. return 1;
  11108. }
  11109. if(listitem == 6) //Duplicate keys
  11110. {
  11111. if(CarInfo[vehicle][tDuplicateKeys] == 1)
  11112. {
  11113. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11114. return 1;
  11115. }
  11116. if(PlayerInfo[playerid][pCash] < dkeys)
  11117. {
  11118. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11119. return 1;
  11120. }
  11121. PlayerInfo[playerid][pCash] -= dkeys;
  11122. GivePlayerMoney(playerid,-dkeys);
  11123. CarInfo[vehicle][tDuplicateKeys] = 1;
  11124. SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
  11125. return 1;
  11126. }
  11127. }
  11128. }
  11129. if(dialogid == OWNCARUPGRADE3) //Car menu
  11130. {
  11131. if(response)
  11132. {
  11133. new vehicle = PlayerInfo[playerid][pCarKey3];
  11134. new price = CarInfo[vehicle][tPrice];
  11135. new alarm = price / 100 * 10;
  11136. new insurance;
  11137. new remote;
  11138. new gps = price / 100 * 15;
  11139. new licenseplate = price / 100 * 15;
  11140. new towcar = price / 100 * 20;
  11141. new dkeys = price / 100;
  11142. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { insurance = 0; }
  11143. else { insurance = price / 100 * 25; }
  11144. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle)) { remote = 0; }
  11145. else { remote = price / 100 * 2; }
  11146. if(listitem == 0) //Alarm
  11147. {
  11148. if(PlayerInfo[playerid][pCash] < alarm)
  11149. {
  11150. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11151. return 1;
  11152. }
  11153. if(CarInfo[vehicle][tAlarm] == 1)
  11154. {
  11155. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11156. return 1;
  11157. }
  11158. PlayerInfo[playerid][pCash] -= alarm;
  11159. GivePlayerMoney(playerid,-alarm);
  11160. CarInfo[vehicle][tAlarm] = 1;
  11161. SendClientMessage(playerid, COLOR_YELLOW, "You have bought an alarm for your vehicle. This will let you know if someone is trying to jack your car");
  11162. return 1;
  11163. }
  11164.  
  11165. if(listitem == 1) //Insurance
  11166. {
  11167. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  11168. {
  11169. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  11170. return 1;
  11171. }
  11172. if(CarInfo[vehicle][tInsured] == 1)
  11173. {
  11174. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11175. return 1;
  11176. }
  11177. if(PlayerInfo[playerid][pCash] < insurance)
  11178. {
  11179. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11180. return 1;
  11181. }
  11182. PlayerInfo[playerid][pCash] -= insurance;
  11183. GivePlayerMoney(playerid,-insurance);
  11184. CarInfo[vehicle][tInsured] = 1;
  11185. SendClientMessage(playerid, COLOR_YELLOW, "You have upgraded your vehicle insurance. Now all your stuff from the trunk will save when your car explodes");
  11186. return 1;
  11187. }
  11188. if(listitem == 2) //Plate
  11189. {
  11190. if(PlayerInfo[playerid][pCash] < licenseplate)
  11191. {
  11192. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11193. return 1;
  11194. }
  11195. ShowPlayerDialog(playerid, BUYLP3, DIALOG_STYLE_INPUT, "License Plate","Note: Your custom license plate can have maximum 8 characters\nPlease use only capital leters and numbers else an admin will edit it", "Buy", "Cancel");
  11196. return 1;
  11197. }
  11198.  
  11199. if(listitem == 3) //Remote
  11200. {
  11201. if(IsAPlane(vehicle) || IsABike(vehicle) || IsAHelicopter(vehicle) || IsATrain(vehicle) || IsABoat(vehicle) || IsABus(vehicle))
  11202. {
  11203. SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need this");
  11204. return 1;
  11205. }
  11206. if(CarInfo[vehicle][tVehRemote] == 1)
  11207. {
  11208. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11209. return 1;
  11210. }
  11211. if(PlayerInfo[playerid][pCash] < remote)
  11212. {
  11213. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11214. return 1;
  11215. }
  11216. PlayerInfo[playerid][pCash] -= remote;
  11217. GivePlayerMoney(playerid,-remote);
  11218. CarInfo[vehicle][tVehRemote] = 1;
  11219. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a remote for your vehicle. Now you can open the trunk or hood while you're inside the car");
  11220. return 1;
  11221. }
  11222. if(listitem == 4) //GPS
  11223. {
  11224. if(CarInfo[vehicle][tGPS] == 1)
  11225. {
  11226. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11227. return 1;
  11228. }
  11229. if(PlayerInfo[playerid][pCash] < gps)
  11230. {
  11231. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11232. return 1;
  11233. }
  11234. PlayerInfo[playerid][pCash] -= gps;
  11235. GivePlayerMoney(playerid,-gps);
  11236. CarInfo[vehicle][tGPS] = 1;
  11237. SendClientMessage(playerid, COLOR_YELLOW, "You have bought a GPS for your vehicle. Now you can track your car anywhere ( /cartrack )");
  11238. return 1;
  11239. }
  11240. if(listitem == 5) //Tow
  11241. {
  11242. if(CarInfo[vehicle][tTowServices] == 1)
  11243. {
  11244. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11245. return 1;
  11246. }
  11247. if(PlayerInfo[playerid][pCash] < towcar)
  11248. {
  11249. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11250. return 1;
  11251. }
  11252. PlayerInfo[playerid][pCash] -= towcar;
  11253. GivePlayerMoney(playerid,-towcar);
  11254. CarInfo[vehicle][tTowServices] = 1;
  11255. SendClientMessage(playerid, COLOR_YELLOW, "You have enabled the Tow Services for your vehicle. Now you can ask them to tow your vehicle anytime ( /towcar )");
  11256. return 1;
  11257. }
  11258. if(listitem == 6) //Duplicate keys
  11259. {
  11260. if(CarInfo[vehicle][tDuplicateKeys] == 1)
  11261. {
  11262. SendClientMessage(playerid, COLOR_GREY, "Your vehicle already got this");
  11263. return 1;
  11264. }
  11265. if(PlayerInfo[playerid][pCash] < dkeys)
  11266. {
  11267. SendClientMessage(playerid, COLOR_GREY, "You don't have enought cash for this upgrade");
  11268. return 1;
  11269. }
  11270. PlayerInfo[playerid][pCash] -= dkeys;
  11271. GivePlayerMoney(playerid,-dkeys);
  11272. CarInfo[vehicle][tDuplicateKeys] = 1;
  11273. SendClientMessage(playerid, COLOR_YELLOW, "You have purchased duplicate keys for your vehicle. Now you hand them to anyone ( /givekeys )");
  11274. return 1;
  11275. }
  11276. }
  11277. }
  11278. if(dialogid == LOTTODIALOG) //Lotto
  11279. {
  11280. if(response)
  11281. {
  11282. new string[128];
  11283. new biz = PlayerInfo[playerid][pInBiz];
  11284. if(listitem == 0) //1 chance
  11285. {
  11286. if(PlayerInfo[playerid][pCash] > 4999)
  11287. {
  11288. new randlotto = random(15);
  11289. new randlotto2 = random(15);
  11290. new randlotto3 = random(15);
  11291. while(randlotto == 0) randlotto = random(15);
  11292. while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
  11293. while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
  11294. PlayerInfo[playerid][pCash] -= 5000;
  11295. GivePlayerMoney(playerid, -5000);
  11296. PlayerInfo[playerid][pLottoNr] = randlotto;
  11297. PlayerInfo[playerid][pLottoNr2] = randlotto2;
  11298. PlayerInfo[playerid][pLottoNr3] = randlotto3;
  11299. PlayerInfo[playerid][pPlayLotto] = biz;
  11300. format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto, randlotto2, randlotto3);
  11301. SendClientMessage(playerid, COLOR_GREEN, string);
  11302. if(BizInfo[biz][bOwned] == 1)
  11303. {
  11304. BizInfo[biz][bTill] += 1250;
  11305. BizInfo[biz][bNewLottoJackpot] += 3750;
  11306. BizInfo[biz][bProducts]--;
  11307. }
  11308. return 1;
  11309. }
  11310. else
  11311. {
  11312. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  11313. }
  11314. }
  11315.  
  11316. if(listitem == 1) //2 chances
  11317. {
  11318. if(PlayerInfo[playerid][pCash] > 14999)
  11319. {
  11320. new randlotto = random(15);
  11321. new randlotto2 = random(15);
  11322. new randlotto3 = random(15);
  11323. while(randlotto == 0) randlotto = random(15);
  11324. while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
  11325. while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
  11326. new randlotto4 = random(15);
  11327. new randlotto5 = random(15);
  11328. new randlotto6 = random(15);
  11329. while(randlotto4 == 0) randlotto4 = random(15);
  11330. while(randlotto5 == 0 || randlotto5 == randlotto4) randlotto5 = random(15);
  11331. while(randlotto6 == 0 || randlotto6 == randlotto5 || randlotto6 == randlotto4) randlotto6 = random(15);
  11332. PlayerInfo[playerid][pCash] -= 15000;
  11333. GivePlayerMoney(playerid, -15000);
  11334. PlayerInfo[playerid][pLottoNr] = randlotto;
  11335. PlayerInfo[playerid][pLottoNr2] = randlotto2;
  11336. PlayerInfo[playerid][pLottoNr3] = randlotto3;
  11337. PlayerInfo[playerid][pLottoNr4] = randlotto4;
  11338. PlayerInfo[playerid][pLottoNr5] = randlotto5;
  11339. PlayerInfo[playerid][pLottoNr6] = randlotto6;
  11340. PlayerInfo[playerid][pPlayLotto] = biz;
  11341. format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto, randlotto2, randlotto3);
  11342. SendClientMessage(playerid, COLOR_GREEN, string);
  11343. format(string, sizeof(string), "Ticket purchased. Your numbers are %d, %d and %d", randlotto4, randlotto5, randlotto6);
  11344. SendClientMessage(playerid, COLOR_GREEN, string);
  11345. if(BizInfo[biz][bOwned] == 1)
  11346. {
  11347. BizInfo[biz][bTill] += 3750;
  11348. BizInfo[biz][bNewLottoJackpot] += 11250;
  11349. BizInfo[biz][bProducts]--;
  11350. }
  11351. return 1;
  11352. }
  11353. else
  11354. {
  11355. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  11356. }
  11357. }
  11358. }
  11359. }
  11360. if(dialogid == suitcasediag) //Suitcase
  11361. {
  11362. if(response)
  11363. {
  11364. if(listitem == 0) // Check suitcase
  11365. {
  11366. new suitcash, suitcrack, suitpot, suitmats, string[512];
  11367. suitcash = PlayerInfo[playerid][pSuitcasecash];
  11368. suitcrack = PlayerInfo[playerid][pSuitcasecrack];
  11369. suitpot = PlayerInfo[playerid][pSuitcasepot];
  11370. suitmats = PlayerInfo[playerid][pSuitcasemats];
  11371. format(string, sizeof(string), " {1DC7D3}Money: {FFFC00}$%d\n {1DC7D3}Crack: {FFFC00}%dg\n {1DC7D3}Pot: {FFFC00}%dg\n {1DC7D3}Materials: {FFFC00}%d", suitcash, suitcrack, suitpot, suitmats);
  11372. ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,"Suitcase information", string, "Close", "");
  11373. }
  11374. if(listitem == 1) // Take
  11375. {
  11376. ShowPlayerDialog(playerid,suitcasediag2,DIALOG_STYLE_LIST,"Suitcase","Money\nCrack\nPot\nMaterials","Select","Cancel"); //Suitcase
  11377. Suitcaseaction[playerid] = 1; // Selected option is TAKE
  11378. }
  11379. if(listitem == 2) // Put
  11380. {
  11381. ShowPlayerDialog(playerid,suitcasediag2,DIALOG_STYLE_LIST,"Suitcase","Money\nCrack\nPot\nMaterials","Select","Cancel"); //Suitcase
  11382. Suitcaseaction[playerid] = 2; // Selected option is PUT
  11383. }
  11384. if(listitem == 3) // Change password (Disabled)
  11385. {
  11386. return 1;
  11387. }
  11388. if(listitem == 4) // Lock (Disabled)
  11389. {
  11390. return 1;
  11391. }
  11392. return 1;
  11393. }
  11394. }
  11395.  
  11396. if(dialogid == suitcasediag2) //Suitcase
  11397. {
  11398. if(response)
  11399. {
  11400. new suitcash, suitcrack, suitpot, suitmats, string[512];
  11401. suitcash = PlayerInfo[playerid][pSuitcasecash];
  11402. suitcrack = PlayerInfo[playerid][pSuitcasecrack];
  11403. suitpot = PlayerInfo[playerid][pSuitcasepot];
  11404. suitmats = PlayerInfo[playerid][pSuitcasemats];
  11405. if(listitem == 0) // Money
  11406. {
  11407. if(Suitcaseaction[playerid] == 1) // If the Suitcaseaction is 1, will take money
  11408. {
  11409. Suitcaseaction[playerid] = 11;
  11410. format(string, sizeof(string), "You have a total of $%d in your suitcase\nType below the amount of money you want to take", suitcash);
  11411. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Money",string,"Take","Cancel");
  11412. }
  11413. if(Suitcaseaction[playerid] == 2) // Will put money
  11414. {
  11415. Suitcaseaction[playerid] = 21;
  11416. format(string, sizeof(string), "You have a total of $%d in your suitcase\nType below the amount of money you want to put", suitcash);
  11417. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Money",string,"Put","Cancel");
  11418. }
  11419. }
  11420. if(listitem == 1) // Crack
  11421. {
  11422. if(Suitcaseaction[playerid] == 1)
  11423. {
  11424. Suitcaseaction[playerid] = 12;
  11425. format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of crack you want to take", suitcrack);
  11426. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Crack",string,"Take","Cancel");
  11427. }
  11428. if(Suitcaseaction[playerid] == 2)
  11429. {
  11430. Suitcaseaction[playerid] = 22;
  11431. format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of crack you want to put", suitcrack);
  11432. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Crack",string,"Put","Cancel");
  11433. }
  11434. }
  11435. if(listitem == 2) // Pot
  11436. {
  11437. if(Suitcaseaction[playerid] == 1)
  11438. {
  11439. Suitcaseaction[playerid] = 13;
  11440. format(string, sizeof(string), "You have a total of %dg of pot in your suitcase\nType below the amount of pot you want to take", suitpot);
  11441. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Pot",string,"Take","Cancel");
  11442. }
  11443. if(Suitcaseaction[playerid] == 2)
  11444. {
  11445. Suitcaseaction[playerid] = 23;
  11446. format(string, sizeof(string), "You have a total of %dg of crack in your suitcase\nType below the amount of pot you want to put", suitpot);
  11447. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Pot",string,"Put","Cancel");
  11448. }
  11449. }
  11450. if(listitem == 3) // Materials
  11451. {
  11452. if(Suitcaseaction[playerid] == 1)
  11453. {
  11454. Suitcaseaction[playerid] = 14;
  11455. format(string, sizeof(string), "You have a total of %d materials in your suitcase\nType below the amount of materials you want to take", suitmats);
  11456. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Take - Materials",string,"Take","Cancel");
  11457. }
  11458. if(Suitcaseaction[playerid] == 2)
  11459. {
  11460. Suitcaseaction[playerid] = 24;
  11461. format(string, sizeof(string), "You have a total of %d materials in your suitcase\nType below the amount of materials you want to put", suitmats);
  11462. ShowPlayerDialog(playerid,suitcasediag3,DIALOG_STYLE_INPUT,"Suitcase - Put - Materials",string,"Put","Cancel");
  11463. }
  11464. }
  11465.  
  11466. }
  11467. }
  11468.  
  11469. if(dialogid == suitcasediag3)
  11470. {
  11471. if(response)
  11472. {
  11473. if(strlen(inputtext))
  11474. {
  11475. new string[256];
  11476. new amount = strval(inputtext);
  11477. if(amount < 1)
  11478. {
  11479. if(Suitcaseaction[playerid] == 11 || Suitcaseaction[playerid] == 12 || Suitcaseaction[playerid] == 13 || Suitcaseaction[playerid] == 14)
  11480. {
  11481. SendClientMessage(playerid, COLOR_GREY, " You can't take negative amounts !");
  11482. return 1;
  11483. }
  11484. if(Suitcaseaction[playerid] == 21 || Suitcaseaction[playerid] == 22 || Suitcaseaction[playerid] == 23 || Suitcaseaction[playerid] == 24)
  11485. {
  11486. SendClientMessage(playerid, COLOR_GREY, " You can't put negative amounts !");
  11487. return 1;
  11488. }
  11489. }
  11490. if(Suitcaseaction[playerid] == 11)
  11491. {
  11492. if(amount > PlayerInfo[playerid][pSuitcasecash])
  11493. {
  11494. format(string, sizeof(string), "Error: The amount of money you want to take is more than what is in your suitcase.");
  11495. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11496. return 1;
  11497. }
  11498. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + amount;
  11499. GivePlayerMoney(playerid,amount);
  11500. PlayerInfo[playerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash] - amount;
  11501. format(string, sizeof(string), "* %s takes some cash out of the suitcase and puts it in their wallet.", PlayerName(playerid));
  11502. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11503.  
  11504. }
  11505. if(Suitcaseaction[playerid] == 12)
  11506. {
  11507. if(amount > PlayerInfo[playerid][pSuitcasecrack])
  11508. {
  11509. format(string, sizeof(string), "Error: The amount of crack you want to take is more than what is in your suitcase.");
  11510. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11511. return 1;
  11512. }
  11513. PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] + amount;
  11514. PlayerInfo[playerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack] - amount;
  11515. format(string, sizeof(string), "* %s takes some crack out of the suitcase and puts it in their pocket.", PlayerName(playerid));
  11516. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11517.  
  11518. }
  11519. if(Suitcaseaction[playerid] == 13)
  11520. {
  11521. if(amount > PlayerInfo[playerid][pSuitcasepot])
  11522. {
  11523. format(string, sizeof(string), "Error: The amount of pot you want to take is more than what is in your suitcase.");
  11524. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11525. return 1;
  11526. }
  11527. PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] + amount;
  11528. PlayerInfo[playerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot] - amount;
  11529. format(string, sizeof(string), "* %s takes some pot out of the suitcase and puts it in their pocket.", PlayerName(playerid));
  11530. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11531.  
  11532. }
  11533. if(Suitcaseaction[playerid] == 14)
  11534. {
  11535. if(amount > PlayerInfo[playerid][pSuitcasemats])
  11536. {
  11537. format(string, sizeof(string), "Error: The amount of materials you want to take is more than what is in your suitcase.");
  11538. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11539. return 1;
  11540. }
  11541. PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] + amount;
  11542. PlayerInfo[playerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats] - amount;
  11543. format(string, sizeof(string), "* %s takes some materials out of the suitcase and puts it in their pocket.", PlayerName(playerid));
  11544. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11545.  
  11546. }
  11547. if(Suitcaseaction[playerid] == 21)
  11548. {
  11549. new calcvalue = PlayerInfo[playerid][pSuitcasecash] + amount;
  11550. if(calcvalue > 1000000)
  11551. {
  11552. format(string, sizeof(string), "Error: The maximum amount of money you can store is $1.000.000, you have already $%d in your suitcase", PlayerInfo[playerid][pSuitcasecash]);
  11553. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11554. return 1;
  11555. }
  11556. if(PlayerInfo[playerid][pCash] < amount)
  11557. {
  11558. format(string, sizeof(string), "Error: The amount of money you want to put is more than what you have.");
  11559. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11560. return 1;
  11561. }
  11562. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] - amount;
  11563. GivePlayerMoney(playerid,-amount);
  11564. PlayerInfo[playerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash] + amount;
  11565. format(string, sizeof(string), "* %s takes some cash out of their wallet and puts it in their suitcase", PlayerName(playerid));
  11566. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11567.  
  11568. }
  11569. if(Suitcaseaction[playerid] == 22)
  11570. {
  11571. new calcvalue = PlayerInfo[playerid][pSuitcasecrack] + amount;
  11572. if(calcvalue > 50)
  11573. {
  11574. format(string, sizeof(string), "Error: The maximum amount of crack you can store is 50g, you have already %dg in your suitcase", PlayerInfo[playerid][pSuitcasecrack]);
  11575. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11576. return 1;
  11577. }
  11578. if(PlayerInfo[playerid][pCrack] < amount)
  11579. {
  11580. format(string, sizeof(string), "Error: The amount of crack you want to put is more than what you have.");
  11581. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11582. return 1;
  11583. }
  11584. PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] - amount;
  11585. PlayerInfo[playerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack] + amount;
  11586. format(string, sizeof(string), "* %s takes some crack out of their pocket and puts it in their suitcase", PlayerName(playerid));
  11587. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11588.  
  11589. }
  11590. if(Suitcaseaction[playerid] == 23)
  11591. {
  11592. new calcvalue = PlayerInfo[playerid][pSuitcasepot] + amount;
  11593. if(calcvalue > 50)
  11594. {
  11595. format(string, sizeof(string), "Error: The maximum amount of pot you can store is 50g, you have already %dg in your suitcase", PlayerInfo[playerid][pSuitcasepot]);
  11596. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11597. return 1;
  11598. }
  11599. if(PlayerInfo[playerid][pPot] < amount)
  11600. {
  11601. format(string, sizeof(string), "Error: The amount of pot you want to put is more than what you have.");
  11602. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11603. return 1;
  11604. }
  11605. PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] - amount;
  11606. PlayerInfo[playerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot] + amount;
  11607. format(string, sizeof(string), "* %s takes some pot out of their pocket and puts it in their suitcase", PlayerName(playerid));
  11608. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11609.  
  11610. }
  11611. if(Suitcaseaction[playerid] == 24)
  11612. {
  11613. new calcvalue = PlayerInfo[playerid][pSuitcasemats] + amount;
  11614. if(calcvalue > 20000)
  11615. {
  11616. format(string, sizeof(string), "Error: The maximum amount of materials you can store is 20.000, you have already %d in your suitcase", PlayerInfo[playerid][pSuitcasemats]);
  11617. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11618. return 1;
  11619. }
  11620. if(PlayerInfo[playerid][pMats] < amount)
  11621. {
  11622. format(string, sizeof(string), "Error: The amount of materials you want to put is more than what you have.");
  11623. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Suitcase", string, "Done", "Cancel");
  11624. return 1;
  11625. }
  11626. PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] - amount;
  11627. PlayerInfo[playerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats] + amount;
  11628. format(string, sizeof(string), "* %s takes some materials out of their pocket and puts it in their suitcase", PlayerName(playerid));
  11629. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11630.  
  11631. }
  11632.  
  11633.  
  11634. return 1;
  11635. }
  11636. }
  11637. return 1;
  11638. }
  11639.  
  11640.  
  11641. if(dialogid == donutshopdiag1) //Donuts shop
  11642. {
  11643. new string[256];
  11644. if(response)
  11645. {
  11646. if(listitem == 0) //Full HP
  11647. {
  11648. if(PlayerInfo[playerid][pDonuts] >= 3)
  11649. {
  11650. format(string, sizeof(string), "You have exchanged 3 donuts for an aspirin !");
  11651. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11652. SetPlayerHealth(playerid, 100.0);
  11653. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 3;
  11654. }
  11655. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11656. }
  11657. if(listitem == 1) //Full Armor
  11658. {
  11659. if(PlayerInfo[playerid][pDonuts] >= 3)
  11660. {
  11661. format(string, sizeof(string), "You have exchanged 3 donuts for an Kevlar vest !");
  11662. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11663. SetPlayerArmour(playerid, 100.0);
  11664. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 3;
  11665. }
  11666. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11667. }
  11668. if(listitem == 2) //25g crack
  11669. {
  11670. if(PlayerInfo[playerid][pDonuts] >= 3)
  11671. {
  11672. format(string, sizeof(string), "You have exchanged 4 donuts for 25g of crack !");
  11673. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11674. PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack] + 25;
  11675. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 4;
  11676. }
  11677. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11678. }
  11679. if(listitem == 3) //25g pot
  11680. {
  11681. if(PlayerInfo[playerid][pDonuts] >= 3)
  11682. {
  11683. format(string, sizeof(string), "You have exchanged 4 donuts for 25g of pot !");
  11684. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11685. PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot] + 25;
  11686. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 4;
  11687. }
  11688. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11689. }
  11690. if(listitem == 4) //Weapon - Deagle
  11691. {
  11692. if(PlayerInfo[playerid][pDonuts] >= 5)
  11693. {
  11694. format(string, sizeof(string), "You have exchanged 5 donuts for a Deagle !");
  11695. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11696. GivePlayerWeapon(playerid, 24, 999999);
  11697. PlayerInfo[playerid][pGun2] = 24;
  11698. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 5;
  11699. }
  11700. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11701. }
  11702. if(listitem == 5) //Weapon - MP5
  11703. {
  11704. if(PlayerInfo[playerid][pDonuts] >= 6)
  11705. {
  11706. format(string, sizeof(string), "You have exchanged 6 donuts for a MP5 !");
  11707. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11708. GivePlayerWeapon(playerid, 29, 999999);
  11709. PlayerInfo[playerid][pGun4] = 29;
  11710. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 6;
  11711. }
  11712. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11713. }
  11714. if(listitem == 6) //Weapon - M4
  11715. {
  11716. if(PlayerInfo[playerid][pDonuts] >= 7)
  11717. {
  11718. format(string, sizeof(string), "You have exchanged 6 donuts for a M4 !");
  11719. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11720. GivePlayerWeapon(playerid, 31, 999999);
  11721. PlayerInfo[playerid][pGun5] = 31;
  11722. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 7;
  11723. }
  11724. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11725. }
  11726. if(listitem == 7) //Weapon - AK47
  11727. {
  11728. if(PlayerInfo[playerid][pDonuts] >= 7)
  11729. {
  11730. format(string, sizeof(string), "You have exchanged 7 donuts for a AK47 !");
  11731. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11732. GivePlayerWeapon(playerid, 30, 999999);
  11733. PlayerInfo[playerid][pGun5] = 30;
  11734. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 7;
  11735. }
  11736. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11737. }
  11738. if(listitem == 8) //Weapon - Spas12
  11739. {
  11740. if(PlayerInfo[playerid][pDonuts] >= 10)
  11741. {
  11742. format(string, sizeof(string), "You have exchanged 10 donuts for a SPAS12 !");
  11743. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11744. GivePlayerWeapon(playerid, 27, 999999);
  11745. PlayerInfo[playerid][pGun3] = 27;
  11746. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 10;
  11747. }
  11748. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11749. }
  11750. if(listitem == 9) //Weapon - Sniper
  11751. {
  11752. if(PlayerInfo[playerid][pDonuts] >= 10)
  11753. {
  11754. format(string, sizeof(string), "You have exchanged 10 donuts for a Sniper !");
  11755. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11756. GivePlayerWeapon(playerid, 34, 999999);
  11757. PlayerInfo[playerid][pGun6] = 34;
  11758. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 10;
  11759. }
  11760. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11761. }
  11762. if(listitem == 10) //More...
  11763. {
  11764. ShowPlayerDialog(playerid,donutshopdiag2,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Free house move [20 Donuts]\nFree name change [20 Donuts]\n10.000 materials [20 Donuts]\n$100.000 [25 Donuts]\nSpecial - Camera [25 Donuts]\nSpecial - Vault Code [25 Donuts]\nSpecial - TEC9 [50 Donuts]\nSpecial - Minigun [100 Donuts\nSpecial - RPG [100 Donuts]\nBronze VIP (1 month) [250 Donuts]\nSilver VIP (1 month) [1000 Donuts]","Exchange","Cancel"); //Donuts shop
  11765. }
  11766.  
  11767. }
  11768. return 1;
  11769. }
  11770. if(dialogid == donutshopdiag2) //Donuts shop 2
  11771. {
  11772. new string[256];
  11773. if(response)
  11774. {
  11775. if(listitem == 0) //
  11776. {
  11777. format(string, sizeof(string), "Disabled option !");
  11778. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11779. return 1;
  11780. }
  11781. if(listitem == 1) //
  11782. {
  11783. format(string, sizeof(string), "Disabled option !");
  11784. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11785. }
  11786. if(listitem == 2) //10k mats
  11787. {
  11788. if(PlayerInfo[playerid][pDonuts] >= 20)
  11789. {
  11790. format(string, sizeof(string), "You have exchanged 20 donuts for 10.000 materials !");
  11791. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11792. PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] + 10000;
  11793. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 20;
  11794. }
  11795. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11796. }
  11797. if(listitem == 3) //$100k
  11798. {
  11799. if(PlayerInfo[playerid][pDonuts] >= 25)
  11800. {
  11801. format(string, sizeof(string), "You have exchanged 25 donuts for $100.000 !");
  11802. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11803. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 100000;
  11804. GivePlayerMoney(playerid, 100000);
  11805. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
  11806. }
  11807. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11808. }
  11809. if(listitem == 4) //Camera
  11810. {
  11811. if(PlayerInfo[playerid][pDonuts] >= 25)
  11812. {
  11813. format(string, sizeof(string), "You have exchanged 25 donuts for a Camera !");
  11814. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11815. GivePlayerWeapon(playerid, 43, 999999);
  11816. PlayerInfo[playerid][pGun9] = 43;
  11817. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
  11818. }
  11819. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11820. }
  11821.  
  11822. if(listitem == 5) //Vault
  11823. {
  11824. if(PlayerInfo[playerid][pDonuts] >= 25)
  11825. {
  11826. format(string, sizeof(string), "You have exchanged 25 donuts for the bank vault code !");
  11827. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11828. new showpass = VPass;
  11829. format(string, sizeof(string), "The code is: %d.", showpass);
  11830. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  11831. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 25;
  11832. }
  11833. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11834. }
  11835.  
  11836. if(listitem == 6) //TEC9
  11837. {
  11838. if(PlayerInfo[playerid][pDonuts] >= 50)
  11839. {
  11840. format(string, sizeof(string), "You have exchanged 50 donuts for a TEC9 !");
  11841. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11842. GivePlayerWeapon(playerid, 32, 999999);
  11843. PlayerInfo[playerid][pGun4] = 32;
  11844. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 50;
  11845. }
  11846. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11847. }
  11848. if(listitem == 7) //Minigun
  11849. {
  11850. if(PlayerInfo[playerid][pDonuts] >= 100)
  11851. {
  11852. SendClientMessage(playerid, COLOR_LIGHTGREEN, "Disabled option !");
  11853. return 1;
  11854. /*format(string, sizeof(string), "You have exchanged 100 donuts for a Minigun !");
  11855. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11856. GivePlayerWeapon(playerid, 38, 999999);
  11857. PlayerInfo[playerid][pGun7] = 38;
  11858. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 100;*/
  11859. }
  11860. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11861. }
  11862. if(listitem == 8) //RPG
  11863. {
  11864. if(PlayerInfo[playerid][pDonuts] >= 100)
  11865. {
  11866. SendClientMessage(playerid, COLOR_LIGHTGREEN, "Disabled option !");
  11867. return 1;
  11868. /*format(string, sizeof(string), "You have exchanged 100 donuts for a Rocket Launcher !");
  11869. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11870. GivePlayerWeapon(playerid, 35, 999999);
  11871. PlayerInfo[playerid][pGun7] = 35;
  11872. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 100;*/
  11873. }
  11874. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11875. }
  11876. if(listitem == 9) //VIP
  11877. {
  11878. if(PlayerInfo[playerid][pDonuts] >= 250)
  11879. {
  11880. if (PlayerInfo[playerid][pDonateRank] > 0)
  11881. {
  11882. SendClientMessage(playerid, COLOR_GRAD2, "You are already VIP");
  11883. return 1;
  11884. }
  11885. new Year, Month, Day;
  11886. getdate(Year, Month, Day);
  11887. format(string, sizeof(string), "You have exchanged 250 donuts for a month of Bronze VIP !");
  11888. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11889. format(string, 32, "%02d/%02d/%d", Month, Day, Year);
  11890. strmid(PlayerInfo[playerid][pVIPJoinDate], string, 0, strlen(string), 255);
  11891. format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
  11892. strmid(PlayerInfo[playerid][pVIPExpDate], string, 0, strlen(string), 255);
  11893. if(Month == 12) { format(PlayerInfo[playerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
  11894. format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
  11895. SendClientMessage(playerid, COLOR_GRAD2, string);
  11896. PlayerInfo[playerid][pDonateRank] = 1;
  11897. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 250;
  11898. }
  11899. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11900. }
  11901. if(listitem == 10) //VIP
  11902. {
  11903. if(PlayerInfo[playerid][pDonuts] >= 1000)
  11904. {
  11905. if (PlayerInfo[playerid][pDonateRank] > 1)
  11906. {
  11907. SendClientMessage(playerid, COLOR_GRAD2, "You are already VIP");
  11908. return 1;
  11909. }
  11910. new Year, Month, Day;
  11911. getdate(Year, Month, Day);
  11912. format(string, sizeof(string), "You have exchanged 1000 donuts for a month of Silver VIP !");
  11913. SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  11914. format(string, 32, "%02d/%02d/%d", Month, Day, Year);
  11915. strmid(PlayerInfo[playerid][pVIPJoinDate], string, 0, strlen(string), 255);
  11916. format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
  11917. strmid(PlayerInfo[playerid][pVIPExpDate], string, 0, strlen(string), 255);
  11918. if(Month == 12) { format(PlayerInfo[playerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
  11919. format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
  11920. SendClientMessage(playerid, COLOR_GRAD2, string);
  11921. PlayerInfo[playerid][pDonateRank] = 2;
  11922. PlayerInfo[playerid][pDonuts] = PlayerInfo[playerid][pDonuts] - 1000;
  11923. }
  11924. else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "You don't have enoght donuts for that !"); return 1; }
  11925. }
  11926.  
  11927. }
  11928. return 1;
  11929. }
  11930. if(dialogid == AMMUNATIONDIALOG) //Ammu
  11931. {
  11932. if(response)
  11933. {
  11934. new biz = PlayerInfo[playerid][pInBiz];
  11935. if(listitem == 0) //Vest
  11936. {
  11937. if(PlayerInfo[playerid][pCash] > 1499)
  11938. {
  11939. new Float:playerArmor;
  11940. GetPlayerArmour(playerid, playerArmor);
  11941. PlayerInfo[playerid][pCash] -= 1500;
  11942. GivePlayerMoney(playerid, -1500);
  11943. if(playerArmor > 49) { SendClientMessage(playerid, COLOR_GREY, " You already have a vest !"); return 1; }
  11944. else { SetPlayerArmour(playerid, 50.0); }
  11945. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vest purchased.");
  11946. if(BizInfo[biz][bOwned] == 1)
  11947. {
  11948. BizInfo[biz][bTill] += 1500;
  11949. BizInfo[biz][bProducts]--;
  11950. }
  11951. return 1;
  11952. }
  11953. else
  11954. {
  11955. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  11956. }
  11957. }
  11958. if(listitem == 1) //mp5
  11959. {
  11960. if(PlayerInfo[playerid][pCash] > 2499)
  11961. {
  11962. PlayerInfo[playerid][pCash] -= 2500;
  11963. GivePlayerMoney(playerid, -2500);
  11964. GivePlayerGun(playerid, 29);
  11965. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
  11966. if(BizInfo[biz][bOwned] == 1)
  11967. {
  11968. BizInfo[biz][bTill] += 2500;
  11969. BizInfo[biz][bProducts]--;
  11970. }
  11971. return 1;
  11972. }
  11973. else
  11974. {
  11975. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  11976. }
  11977. }
  11978.  
  11979. if(listitem == 2) //Shotgun
  11980. {
  11981. if(PlayerInfo[playerid][pCash] > 1999)
  11982. {
  11983. PlayerInfo[playerid][pCash] -= 2000;
  11984. GivePlayerMoney(playerid, -2000);
  11985. GivePlayerGun(playerid, 25);
  11986. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
  11987. if(BizInfo[biz][bOwned] == 1)
  11988. {
  11989. BizInfo[biz][bTill] += 2000;
  11990. BizInfo[biz][bProducts]--;
  11991. }
  11992. return 1;
  11993. }
  11994. else
  11995. {
  11996. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  11997. }
  11998. }
  11999. if(listitem == 3) //Colt45
  12000. {
  12001. if(PlayerInfo[playerid][pCash] > 399)
  12002. {
  12003. PlayerInfo[playerid][pCash] -= 500;
  12004. GivePlayerMoney(playerid, -500);
  12005. GivePlayerGun(playerid, 22);
  12006. SetPlayerSkillLevel(playerid, 0, 1);
  12007. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Weapon purchased.");
  12008. if(BizInfo[biz][bOwned] == 1)
  12009. {
  12010. BizInfo[biz][bTill] += 500;
  12011. BizInfo[biz][bProducts]--;
  12012. }
  12013. return 1;
  12014. }
  12015. else
  12016. {
  12017. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12018. }
  12019. }
  12020. }
  12021. }
  12022.  
  12023.  
  12024. if(dialogid == FAQ) //FAQ
  12025. {
  12026. if(response)
  12027. {
  12028. new mstring[1500], titlestring[128], line1[512], line2[512], line3[512];
  12029. if(listitem == 0) //Level Up
  12030. {
  12031. format(titlestring, sizeof(titlestring), "{CC0000}How to level up");
  12032. format(line1, sizeof(line1), "{AAC4E5}First of all you will need to gain respect points ( /stats ) to see how many you got.\nOnce the respect is full you can /levelup.");
  12033. format(line2, sizeof(line2), "{FFFF00}\nHow to gain respect points:\n{AAC4E5}You get 1 respect point every time you /signcheck.\nYou /signcheck every hour, at paycheck time (:00).");
  12034. format(line3, sizeof(line3), "\n{AAC4E5}As higher your level is, as higher the required respect points and price for the next level will be.\nBeing a high level brings you higher paychecks and more respect around.");
  12035. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12036. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12037. }
  12038. if(listitem == 1) //Buy car
  12039. {
  12040. format(titlestring, sizeof(titlestring), "{CC0000}How to buy a car");
  12041. format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a car. You can type /dealerships to see the dealership locations.\nOnce you're there you will see cars having a price on them.");
  12042. format(line2, sizeof(line2), "\n{AAC4E5}If a car doesn't have a price on it means it's not for sale.\nIf there are no cars at the dealership means they all have been bought.");
  12043. format(line3, sizeof(line3), "\n{AAC4E5}To buy the car just get inside it. You can also buy a car from another player.");
  12044. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12045. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12046. }
  12047. if(listitem == 2) //Buy house
  12048. {
  12049. format(titlestring, sizeof(titlestring), "{CC0000}How to buy a house");
  12050. format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a house.\nThe available houses will have a red \"Property for sale\" text on their icons.");
  12051. format(line2, sizeof(line2), "\n{AAC4E5}To buy the house, go in front of the house icon and type /buyhouse.");
  12052. format(line3, sizeof(line3), "\n{AAC4E5}You can also buy a house from another player.");
  12053. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12054. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12055. }
  12056. if(listitem == 3) //Buy biz
  12057. {
  12058. format(titlestring, sizeof(titlestring), "{CC0000}How to buy a business");
  12059. format(line1, sizeof(line1), "{AAC4E5}First of all, you need level 2 to buy a business.\nThe available businesses will have a message shown on their icon \"Business for sale\".");
  12060. format(line2, sizeof(line2), "\n{AAC4E5}To buy the business, go in front of the icon and type /buybiz.");
  12061. format(line3, sizeof(line3), "\n{AAC4E5}You can also buy a business from another player. Note that they're pretty expensive");
  12062. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12063. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12064. }
  12065. if(listitem == 4) //Join faction
  12066. {
  12067. format(titlestring, sizeof(titlestring), "{CC0000}How to join a faction");
  12068. format(line1, sizeof(line1), "{AAC4E5}Most of the factions requires you to post an application on our forums (www.ms-roleplay.tk) in order to join them.\nHowever, if you're lucky enought there can be live recruitments.");
  12069. format(line2, sizeof(line2), "\n{AAC4E5}For most of the factions you're required to have at least level 3,\nstill if you show a good roleplay you might be allowed in.");
  12070. format(line3, sizeof(line3), "\n{AAC4E5}Hitman Agency can't be joined by applying on forums, you can only get handpicked by it's leader.Heavy roleplay is required.\n\nYou can now be in a faction and a gang in the same time.");
  12071. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12072. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12073. }
  12074. if(listitem == 5) //Join gang
  12075. {
  12076. format(titlestring, sizeof(titlestring), "{CC0000}How to join a gang");
  12077. format(line1, sizeof(line1), "{AAC4E5}In order to join a gang you need to find their leaders IC'ly and roleplay with them.");
  12078. format(line2, sizeof(line2), "\n{AAC4E5}Most of the time they're using the advertisments to recruit people (Example: Hiring staff).\nYou can also use it, saying that you're looking for a job, or you can just find them in their hangout place");
  12079. format(line3, sizeof(line3), "\n{AAC4E5}Most of the families don't require you to have a high level, still you need some roleplay skills.\nYou can use /families for a list with our existing gangs.\n\nYou can now be in a faction and a gang in the same time.");
  12080. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12081. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12082. }
  12083. if(listitem == 6) //Vip
  12084. {
  12085. format(titlestring, sizeof(titlestring), "{CC0000}How to become a vip");
  12086. format(line1, sizeof(line1), "{FFFF00}There are 2 ways to become a VIP:\n\n{AAC4E5}1. Donate real money to the server, $3 for bronze VIP, $7 for silver or $12 for gold.");
  12087. format(line2, sizeof(line2), "{AAC4E5}2. You can buy VIP in game using your donuts (/exchange inside the donut store located behind All Saints).\nYou need 250 donuts for a bronze VIP and 1000 donuts for silver VIP.");
  12088. format(line3, sizeof(line3), "\n{AAC4E5}The VIP lasts for 1 month, and can be renewed in the same ways.\nFor a list of VIP features check our forums (www.ms-roleplay.tk).");
  12089. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12090. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12091. }
  12092. if(listitem == 7) //Donuts
  12093. {
  12094. format(titlestring, sizeof(titlestring), "{CC0000}What's the use of donuts and how to get them");
  12095. format(line1, sizeof(line1), "{FFFF00}There are several ways to get donuts:\n\n{AAC4E5}1. Show a good roleplay skills and an admin might reward you with some donuts.\n2. Donut hunt events, you can /pickdonut from the ground if you find any.");
  12096. format(line2, sizeof(line2), "{AAC4E5}3. Win events, donuts are one of the rewards for winning any kind of event (DM, TDM and so on).\n4. Buy donuts from other players.");
  12097. format(line3, sizeof(line3), "\n{AAC4E5}You can have as many donuts as you want, they can pe exchanged for cool stuff (such as money, drugs, guns, VIP)\ninside the donut store located behind All Saints.");
  12098. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12099. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12100. }
  12101.  
  12102. if(listitem == 8) //Staff
  12103. {
  12104. format(titlestring, sizeof(titlestring), "{CC0000}How to become a staff member");
  12105. format(line1, sizeof(line1), "{CC0000}First of all never ask for it.\n{AAC4E5}If we think that you deserve a position in our staff you'll be announced");
  12106. format(line2, sizeof(line2), "{AAC4E5}Second, we have enought professional admins, scritpers, mappers right now.");
  12107. format(line3, sizeof(line3), "\n{AAC4E5}So basically there is no way to become an admin or scripter or mapper right now. Just wait your chance patiently.");
  12108. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12109. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12110. }
  12111.  
  12112. if(listitem == 9) //Bank
  12113. {
  12114. format(titlestring, sizeof(titlestring), "{CC0000}How to rob the bank");
  12115. format(line1, sizeof(line1), "{AAC4E5}First of all, the vault is protected by a 6 digit code.\nTo get the code you need to /exchange 25 donuts in the donut store.");
  12116. format(line2, sizeof(line2), "{AAC4E5}Once you got the code, go in front of the vault and type /robbank, then insert the given code.\nOnce you did it and opened the vault you have 30 seconds to start loading the cash (/loadcash).\nAfter you selected one of the given options and the loading time is over, a random location will be marked on your map.\nGo there and you will keep the money.");
  12117. format(line3, sizeof(line3), "\n{AAC4E5}The vault code will always reset after every robbery attempt.\nThe reload time between robberies is 2 hours.");
  12118. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12119. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12120. }
  12121.  
  12122. if(listitem == 10) //Refund
  12123. {
  12124. format(titlestring, sizeof(titlestring), "{CC0000}How to get a refund");
  12125. format(line1, sizeof(line1), "{AAC4E5}Basically a refund means transfering your stats here from another server.");
  12126. format(line2, sizeof(line2), "{AAC4E5}In order to get a refund you will need a screenshot of your stats from the server you played or you're still playing.");
  12127. format(line3, sizeof(line3), "\n{AAC4E5}Once you have the screenshot go to (www.ms-roleplay.tk) and post a game related request.\nOnce you posted it wait patiently for an admin to check it and refund you.");
  12128. format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
  12129. ShowPlayerDialog(playerid, FAQ2, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Back", "Cancel");
  12130. }
  12131. if(listitem == 11) //Help
  12132. {
  12133. DisplayDialogForPlayer(playerid, 79);
  12134. }
  12135. return 1;
  12136. }
  12137. }
  12138.  
  12139. if(dialogid == FAQ2) //FAQ2
  12140. {
  12141. if(response)
  12142. {
  12143. ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
  12144. return 1;
  12145. }
  12146. }
  12147.  
  12148. if(dialogid == 3) //247
  12149. {
  12150. if(response)
  12151. {
  12152. new string[128];
  12153. new biz = PlayerInfo[playerid][pInBiz];
  12154. if(listitem == 0) //dice
  12155. {
  12156. if(PlayerInfo[playerid][pCash] > 499)
  12157. {
  12158. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  12159. GivePlayerMoney(playerid,-500);
  12160. PlayerInfo[playerid][pDice] = 1;
  12161. format(string, sizeof(string), "~r~-$%d", 500);
  12162. GameTextForPlayer(playerid, string, 5000, 1);
  12163. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12164. SendClientMessage(playerid, COLOR_GRAD4, "Dice purchased.");
  12165. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /dice to use.");
  12166. if(BizInfo[biz][bOwned] == 1)
  12167. {
  12168. BizInfo[biz][bTill] += 500;
  12169. BizInfo[biz][bProducts]--;
  12170. }
  12171. return 1;
  12172. }
  12173. else
  12174. {
  12175. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12176. }
  12177. }
  12178. if(listitem == 1)
  12179. {
  12180. if(PlayerInfo[playerid][pCash] > 4999)
  12181. {
  12182. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-5000;
  12183. GivePlayerMoney(playerid,-5000);
  12184. gSpeedo[playerid] = 1;
  12185. format(string, sizeof(string), "~r~-$%d", 5000);
  12186. GameTextForPlayer(playerid, string, 5000, 1);
  12187. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12188. SendClientMessage(playerid, COLOR_GRAD4, "Speedometer purchased.");
  12189. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /speedo to use.");
  12190. if(BizInfo[biz][bOwned] == 1)
  12191. {
  12192. BizInfo[biz][bTill] += 5000;
  12193. BizInfo[biz][bProducts]--;
  12194. }
  12195. return 1;
  12196. }
  12197. else
  12198. {
  12199. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12200. }
  12201. }
  12202. if(listitem == 2)
  12203. {
  12204. if(PlayerInfo[playerid][pCash] > 49)
  12205. {
  12206. if(Condom[playerid] <= 6)
  12207. {
  12208. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  12209. GivePlayerMoney(playerid,-50);
  12210. Condom[playerid] ++;
  12211. format(string, sizeof(string), "~r~-$%d", 50);
  12212. GameTextForPlayer(playerid, string, 5000, 1);
  12213. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12214. SendClientMessage(playerid, COLOR_GRAD4, "Condom purchased.");
  12215. if(BizInfo[biz][bOwned] == 1)
  12216. {
  12217. BizInfo[biz][bTill] += 50;
  12218. BizInfo[biz][bProducts]--;
  12219. }
  12220. return 1;
  12221. }
  12222. else
  12223. {
  12224. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12225. }
  12226. }
  12227. else
  12228. {
  12229. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12230. }
  12231. }
  12232. if(listitem == 3)
  12233. {
  12234. if(PlayerInfo[playerid][pCash] > 2499)
  12235. {
  12236. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2500;
  12237. GivePlayerMoney(playerid, - 2500);
  12238. PlayerInfo[playerid][pCDPlayer] = 1;
  12239. format(string, sizeof(string), "~r~-$%d", 2500);
  12240. GameTextForPlayer(playerid, string, 5000, 1);
  12241. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12242. SendClientMessage(playerid, COLOR_GRAD4, "CD-Player purchased.");
  12243. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /music to use.");
  12244. if(BizInfo[biz][bOwned] == 1)
  12245. {
  12246. BizInfo[biz][bTill] += 2500;
  12247. BizInfo[biz][bProducts]--;
  12248. }
  12249. return 1;
  12250. }
  12251. else
  12252. {
  12253. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12254. }
  12255. }
  12256. if(listitem == 4)
  12257. {
  12258. if(PlayerInfo[playerid][pCash] > 199)
  12259. {
  12260. if(PlayerInfo[playerid][pSpraycan] <= 10)
  12261. {
  12262. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  12263. GivePlayerMoney(playerid, -200);
  12264. PlayerInfo[playerid][pSpraycan] += 10;
  12265. format(string, sizeof(string), "~r~-$%d", 200);
  12266. GameTextForPlayer(playerid, string, 5000, 1);
  12267. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12268. SendClientMessage(playerid, COLOR_GRAD4, "10 Spraycans purchased.");
  12269. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /colorcar or /paintcar while inside a vehicle.");
  12270. if(BizInfo[biz][bOwned] == 1)
  12271. {
  12272. BizInfo[biz][bTill] += 200;
  12273. BizInfo[biz][bProducts]--;
  12274. }
  12275. return 1;
  12276. }
  12277. else
  12278. {
  12279. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12280. }
  12281. }
  12282. else
  12283. {
  12284. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12285. }
  12286. }
  12287. if(listitem == 5)
  12288. {
  12289. if(PlayerInfo[playerid][pCash] > 399)
  12290. {
  12291. if(PlayerInfo[playerid][pRope] <= 3)
  12292. {
  12293. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
  12294. GivePlayerMoney(playerid, -400);
  12295. PlayerInfo[playerid][pRope] += 3;
  12296. format(string, sizeof(string), "~r~-$%d", 400);
  12297. GameTextForPlayer(playerid, string, 5000, 1);
  12298. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12299. SendClientMessage(playerid, COLOR_GRAD4, "3 Ropes purchased.");
  12300. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /tie while driving a car to tie someone.");
  12301. if(BizInfo[biz][bOwned] == 1)
  12302. {
  12303. BizInfo[biz][bTill] += 400;
  12304. BizInfo[biz][bProducts]--;
  12305. }
  12306. return 1;
  12307. }
  12308. else
  12309. {
  12310. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12311. }
  12312. }
  12313. else
  12314. {
  12315. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12316. }
  12317. }
  12318. if(listitem == 6)
  12319. {
  12320. if(PlayerInfo[playerid][pCash] > 69)
  12321. {
  12322. if(PlayerInfo[playerid][pCigars] <= 10)
  12323. {
  12324. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70;
  12325. GivePlayerMoney(playerid, -70);
  12326. PlayerInfo[playerid][pCigars] += 10;
  12327. format(string, sizeof(string), "~r~-$%d", 70);
  12328. GameTextForPlayer(playerid, string, 5000, 1);
  12329. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12330. SendClientMessage(playerid, COLOR_GRAD4, "10 Cigars purchased.");
  12331. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usecigar to use your cigars, once used press left mouse button to smoke, F to throw away.");
  12332. if(BizInfo[biz][bOwned] == 1)
  12333. {
  12334. BizInfo[biz][bTill] += 70;
  12335. BizInfo[biz][bProducts]--;
  12336. }
  12337. return 1;
  12338. }
  12339. else
  12340. {
  12341. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12342. }
  12343. }
  12344. else
  12345. {
  12346. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12347. }
  12348. }
  12349. if(listitem == 7)
  12350. {
  12351. if(PlayerInfo[playerid][pCash] > 9)
  12352. {
  12353. if(PlayerInfo[playerid][pSprunk] <= 3)
  12354. {
  12355. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10;
  12356. GivePlayerMoney(playerid, -10);
  12357. PlayerInfo[playerid][pSprunk] += 1;
  12358. format(string, sizeof(string), "~r~-$%d", 10);
  12359. GameTextForPlayer(playerid, string, 5000, 1);
  12360. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12361. SendClientMessage(playerid, COLOR_GRAD4, "Sprunk purchased.");
  12362. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usesprunk to use your sprunk, once used press left mouse button to drink, F to throw away.");
  12363. if(BizInfo[biz][bOwned] == 1)
  12364. {
  12365. BizInfo[biz][bTill] += 10;
  12366. BizInfo[biz][bProducts]--;
  12367. }
  12368. }
  12369. else
  12370. {
  12371. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12372. }
  12373. }
  12374. else
  12375. {
  12376. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12377. }
  12378. }
  12379. if(listitem == 8)
  12380. {
  12381. if(PlayerInfo[playerid][pCash] > 199)
  12382. {
  12383. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  12384. GivePlayerMoney(playerid, -200);
  12385. PlayerInfo[playerid][pWT] = 1;
  12386. format(string, sizeof(string), "~r~-$%d", 200);
  12387. GameTextForPlayer(playerid, string, 5000, 1);
  12388. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12389. SendClientMessage(playerid, COLOR_GRAD4, "Walkie Talkie purchased.");
  12390. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /WT to talk in your walkie talkie, type /channel to adjust the channel number.");
  12391. if(BizInfo[biz][bOwned] == 1)
  12392. {
  12393. BizInfo[biz][bTill] += 200;
  12394. BizInfo[biz][bProducts]--;
  12395. }
  12396. return 1;
  12397. }
  12398. else
  12399. {
  12400. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12401. }
  12402. }
  12403. if(listitem == 9)
  12404. {
  12405. if(PlayerInfo[playerid][pCash] > 299)
  12406. {
  12407. if(PlayerInfo[playerid][pScrew] <= 5)
  12408. {
  12409. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-300;
  12410. GivePlayerMoney(playerid, -300);
  12411. PlayerInfo[playerid][pScrew] += 5;
  12412. format(string, sizeof(string), "~r~-$%d", 300);
  12413. GameTextForPlayer(playerid, string, 5000, 1);
  12414. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12415. SendClientMessage(playerid, COLOR_GRAD4, "5 Screw Drivers purchased.");
  12416. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lockpick to pick the locks on people's vehicles. /screwdriver to pull it out.");
  12417. if(BizInfo[biz][bOwned] == 1)
  12418. {
  12419. BizInfo[biz][bTill] += 300;
  12420. BizInfo[biz][bProducts]--;
  12421. }
  12422. return 1;
  12423. }
  12424. else
  12425. {
  12426. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12427. }
  12428. }
  12429. else
  12430. {
  12431. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12432. }
  12433. }
  12434. if(listitem == 10)
  12435. {
  12436. if(PlayerInfo[playerid][pCash] >= 599)
  12437. {
  12438. if(PlayerInfo[playerid][pBlindfolds] <= 2)
  12439. {
  12440. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-600;
  12441. GivePlayerMoney(playerid, -600);
  12442. PlayerInfo[playerid][pBlindfolds] += 2;
  12443. format(string, sizeof(string), "~r~-$%d", 600);
  12444. GameTextForPlayer(playerid, string, 5000, 1);
  12445. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12446. SendClientMessage(playerid, COLOR_GRAD4, "2 Blindfolds purchased.");
  12447. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /blindfold to blindfold a tied player.");
  12448. if(BizInfo[biz][bOwned] == 1)
  12449. {
  12450. BizInfo[biz][bTill] += 600;
  12451. BizInfo[biz][bProducts]--;
  12452. }
  12453. return 1;
  12454. }
  12455. else
  12456. {
  12457. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12458. }
  12459. }
  12460. else
  12461. {
  12462. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12463. }
  12464. }
  12465. if(listitem == 11)
  12466. {
  12467. if(PlayerInfo[playerid][pCash] > 699)
  12468. {
  12469. if(PlayerInfo[playerid][pCrowbar] == 0)
  12470. {
  12471. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
  12472. GivePlayerMoney(playerid, -700);
  12473. PlayerInfo[playerid][pCrowbar] = 1;
  12474. format(string, sizeof(string), "~r~-$%d", 700);
  12475. GameTextForPlayer(playerid, string, 5000, 1);
  12476. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12477. SendClientMessage(playerid, COLOR_GRAD4, "1 Crowbar purchased.");
  12478. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /breakin to break into a house. /crowbar to pull it out.");
  12479. if(BizInfo[biz][bOwned] == 1)
  12480. {
  12481. BizInfo[biz][bTill] += 700;
  12482. BizInfo[biz][bProducts]--;
  12483. }
  12484. return 1;
  12485. }
  12486. else
  12487. {
  12488. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12489. }
  12490. }
  12491. else
  12492. {
  12493. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12494. }
  12495. }
  12496. if(listitem == 12)
  12497. {
  12498. if(PlayerInfo[playerid][pCash] > 99)
  12499. {
  12500. if(PlayerInfo[playerid][pWatch] == 0)
  12501. {
  12502. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
  12503. GivePlayerMoney(playerid, -100);
  12504. PlayerInfo[playerid][pWatch] = 1;
  12505. format(string, sizeof(string), "~r~-$%d", 100);
  12506. GameTextForPlayer(playerid, string, 5000, 1);
  12507. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12508. SendClientMessage(playerid, COLOR_GRAD4, "Watch purchased.");
  12509. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /time to check the time on your watch. /watch to put it on.");
  12510. if(BizInfo[biz][bOwned] == 1)
  12511. {
  12512. BizInfo[biz][bTill] += 100;
  12513. BizInfo[biz][bProducts]--;
  12514. }
  12515. return 1;
  12516. }
  12517. else
  12518. {
  12519. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12520. }
  12521. }
  12522. else
  12523. {
  12524. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12525. }
  12526. }
  12527. if(listitem == 13)
  12528. {
  12529. if(PlayerInfo[playerid][pCash] > 1499)
  12530. {
  12531. if(PlayerInfo[playerid][pSuitcase] == 0)
  12532. {
  12533. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1500;
  12534. GivePlayerMoney(playerid, -1500);
  12535. PlayerInfo[playerid][pSuitcase] = 1;
  12536. format(string, sizeof(string), "~r~-$%d", 1500);
  12537. GameTextForPlayer(playerid, string, 5000, 1);
  12538. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12539. SendClientMessage(playerid, COLOR_GRAD4, "Suitcase purchased.");
  12540. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /suitcase to check available options.");
  12541. //SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 );
  12542. //HoldingSuitcase[playerid] = 1;
  12543. if(BizInfo[biz][bOwned] == 1)
  12544. {
  12545. BizInfo[biz][bTill] += 1500;
  12546. BizInfo[biz][bProducts]--;
  12547. }
  12548. return 1;
  12549. }
  12550. else
  12551. {
  12552. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12553. }
  12554. }
  12555. else
  12556. {
  12557. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12558. }
  12559. }
  12560. if(listitem == 14)
  12561. {
  12562. if(PlayerInfo[playerid][pCash] > 499)
  12563. {
  12564. if(PlayerInfo[playerid][pWrench] < 5)
  12565. {
  12566. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  12567. GivePlayerMoney(playerid, -500);
  12568. PlayerInfo[playerid][pWrench] += 1;
  12569. format(string, sizeof(string), "~r~-$%d", 500);
  12570. GameTextForPlayer(playerid, string, 5000, 1);
  12571. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12572. SendClientMessage(playerid, COLOR_GRAD4, "Wrench purchased.");
  12573. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /fix to repair a vehicle. /wrench to pull it out");
  12574. if(BizInfo[biz][bOwned] == 1)
  12575. {
  12576. BizInfo[biz][bTill] += 500;
  12577. BizInfo[biz][bProducts]--;
  12578. }
  12579. return 1;
  12580. }
  12581. else
  12582. {
  12583. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12584. }
  12585. }
  12586. else
  12587. {
  12588. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12589. }
  12590. }
  12591.  
  12592. if(listitem == 15)
  12593. {
  12594. if(PlayerInfo[playerid][pCash] > 699)
  12595. {
  12596. if(PlayerInfo[playerid][pHammer] < 1)
  12597. {
  12598. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-700;
  12599. GivePlayerMoney(playerid, -700);
  12600. PlayerInfo[playerid][pHammer] = 1;
  12601. format(string, sizeof(string), "~r~-$%d", 700);
  12602. GameTextForPlayer(playerid, string, 5000, 1);
  12603. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12604. SendClientMessage(playerid, COLOR_GRAD4, "Hammer purchased.");
  12605. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /hammer to pull it out");
  12606. if(BizInfo[biz][bOwned] == 1)
  12607. {
  12608. BizInfo[biz][bTill] += 700;
  12609. BizInfo[biz][bProducts]--;
  12610. }
  12611. return 1;
  12612. }
  12613. else
  12614. {
  12615. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12616. }
  12617. }
  12618. else
  12619. {
  12620. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12621. }
  12622. }
  12623.  
  12624. if(listitem == 16)
  12625. {
  12626. if(PlayerInfo[playerid][pCash] > 999)
  12627. {
  12628. if(PlayerInfo[playerid][pRake] < 1)
  12629. {
  12630. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  12631. GivePlayerMoney(playerid, -1000);
  12632. PlayerInfo[playerid][pRake] = 1;
  12633. format(string, sizeof(string), "~r~-$%d", 500);
  12634. GameTextForPlayer(playerid, string, 5000, 1);
  12635. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12636. SendClientMessage(playerid, COLOR_GRAD4, "Rake purchased.");
  12637. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /rake to pull it out");
  12638. if(BizInfo[biz][bOwned] == 1)
  12639. {
  12640. BizInfo[biz][bTill] += 1000;
  12641. BizInfo[biz][bProducts]--;
  12642. }
  12643. return 1;
  12644. }
  12645. else
  12646. {
  12647. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12648. }
  12649. }
  12650. else
  12651. {
  12652. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12653. }
  12654. }
  12655.  
  12656. if(listitem == 17)
  12657. {
  12658. if(PlayerInfo[playerid][pCash] > 999)
  12659. {
  12660. if(PlayerInfo[playerid][pFlash] < 1)
  12661. {
  12662. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  12663. GivePlayerMoney(playerid, -1000);
  12664. PlayerInfo[playerid][pFlash] = 1;
  12665. format(string, sizeof(string), "~r~-$%d", 500);
  12666. GameTextForPlayer(playerid, string, 5000, 1);
  12667. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12668. SendClientMessage(playerid, COLOR_GRAD4, "Flashlight purchased.");
  12669. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /flashlight to pull it out");
  12670. if(BizInfo[biz][bOwned] == 1)
  12671. {
  12672. BizInfo[biz][bTill] += 1000;
  12673. BizInfo[biz][bProducts]--;
  12674. }
  12675. return 1;
  12676. }
  12677. else
  12678. {
  12679. SendClientMessage(playerid, COLOR_GREY, " You can't hold anymore of those !");
  12680. }
  12681. }
  12682. else
  12683. {
  12684. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12685. }
  12686. }
  12687. }
  12688. }
  12689. if(dialogid == 4) //bar
  12690. {
  12691. if(response)
  12692. {
  12693. new string[128];
  12694. new biz = PlayerInfo[playerid][pInBiz];
  12695. if(listitem == 0) //beer
  12696. {
  12697. if(PlayerInfo[playerid][pCash] > 59)
  12698. {
  12699. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-60;
  12700. GivePlayerMoney(playerid, -60);
  12701. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  12702. format(string, sizeof(string), "~r~-$%d", 60);
  12703. GameTextForPlayer(playerid, string, 5000, 1);
  12704. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12705. SendClientMessage(playerid, COLOR_GRAD4, "Beer purchased.");
  12706. if(BizInfo[biz][bOwned] == 1)
  12707. {
  12708. BizInfo[biz][bTill] += 60;
  12709. BizInfo[biz][bProducts]--;
  12710. }
  12711. UserSprunk[playerid] = 0;
  12712. return 1;
  12713. }
  12714. else
  12715. {
  12716. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12717. }
  12718. }
  12719. if(listitem == 1) //vodka
  12720. {
  12721. if(PlayerInfo[playerid][pCash] > 99)
  12722. {
  12723. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
  12724. GivePlayerMoney(playerid, -100);
  12725. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  12726. format(string, sizeof(string), "~r~-$%d", 100);
  12727. GameTextForPlayer(playerid, string, 5000, 1);
  12728. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12729. SendClientMessage(playerid, COLOR_GRAD4, "Vodka purchased.");
  12730. if(BizInfo[biz][bOwned] == 1)
  12731. {
  12732. BizInfo[biz][bTill] += 100;
  12733. BizInfo[biz][bProducts]--;
  12734. }
  12735. UserSprunk[playerid] = 0;
  12736. return 1;
  12737. }
  12738. else
  12739. {
  12740. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12741. }
  12742. }
  12743. if(listitem == 2) //whiskey
  12744. {
  12745. if(PlayerInfo[playerid][pCash] > 99)
  12746. {
  12747. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
  12748. GivePlayerMoney(playerid, -100);
  12749. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  12750. format(string, sizeof(string), "~r~-$%d", 100);
  12751. GameTextForPlayer(playerid, string, 5000, 1);
  12752. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12753. SendClientMessage(playerid, COLOR_GRAD4, "Whiskey purchased.");
  12754. if(BizInfo[biz][bOwned] == 1)
  12755. {
  12756. BizInfo[biz][bTill] += 100;
  12757. BizInfo[biz][bProducts]--;
  12758. }
  12759. UserSprunk[playerid] = 0;
  12760. return 1;
  12761. }
  12762. else
  12763. {
  12764. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12765. }
  12766. }
  12767. if(listitem == 3) //wine
  12768. {
  12769. if(PlayerInfo[playerid][pCash] > 99)
  12770. {
  12771. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
  12772. GivePlayerMoney(playerid, -100);
  12773. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  12774. format(string, sizeof(string), "~r~-$%d", 100);
  12775. GameTextForPlayer(playerid, string, 5000, 1);
  12776. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12777. SendClientMessage(playerid, COLOR_GRAD4, "Wine purchased.");
  12778. if(BizInfo[biz][bOwned] == 1)
  12779. {
  12780. BizInfo[biz][bTill] += 100;
  12781. BizInfo[biz][bProducts]--;
  12782. }
  12783. UserSprunk[playerid] = 0;
  12784. return 1;
  12785. }
  12786. else
  12787. {
  12788. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12789. }
  12790. }
  12791. if(listitem == 4) //soda
  12792. {
  12793. if(PlayerInfo[playerid][pCash] > 49)
  12794. {
  12795. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  12796. GivePlayerMoney(playerid, -50);
  12797. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  12798. format(string, sizeof(string), "~r~-$%d", 50);
  12799. GameTextForPlayer(playerid, string, 5000, 1);
  12800. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12801. SendClientMessage(playerid, COLOR_GRAD4, "Soda purchased.");
  12802. if(BizInfo[biz][bOwned] == 1)
  12803. {
  12804. BizInfo[biz][bTill] += 50;
  12805. BizInfo[biz][bProducts]--;
  12806. }
  12807. return 1;
  12808. }
  12809. else
  12810. {
  12811. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12812. }
  12813. }
  12814. if(listitem == 5) //cigar
  12815. {
  12816. if(PlayerInfo[playerid][pCash] > 99)
  12817. {
  12818. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100;
  12819. GivePlayerMoney(playerid, -100);
  12820. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  12821. format(string, sizeof(string), "~r~-$%d", 100);
  12822. GameTextForPlayer(playerid, string, 5000, 1);
  12823. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  12824. SendClientMessage(playerid, COLOR_GRAD4, "Cigar purchased.");
  12825. if(BizInfo[biz][bOwned] == 1)
  12826. {
  12827. BizInfo[biz][bTill] += 100;
  12828. BizInfo[biz][bProducts]--;
  12829. }
  12830. return 1;
  12831. }
  12832. else
  12833. {
  12834. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  12835. }
  12836. }
  12837. }
  12838. }
  12839.  
  12840. if(dialogid == PAINTBALLDIALOG) //PB
  12841. {
  12842. if(response)
  12843. {
  12844. if(listitem == 0) //Deagle+Spas
  12845. {
  12846. //foreach(Player, i)
  12847.  
  12848. for(new i; i<MAX_PLAYERS; i++)
  12849. PlayerInfo[playerid][pPaintballGun1] = 24;
  12850. PlayerInfo[playerid][pPaintballGun2] = 27;
  12851. PaintballPlayers ++;
  12852. PlayerPaintballing[playerid] = 1;
  12853. new rand = random(sizeof(PaintballSpawns));
  12854. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  12855. SetCameraBehindPlayer(playerid);
  12856. SetPlayerInterior(playerid, 10);
  12857. SetPlayerVirtualWorld(playerid, 2);
  12858. TogglePlayerControllable(playerid, 1);
  12859. ResetPlayerWeapons(playerid);
  12860. ClearGuns(playerid);
  12861. ResetPlayerAdminWeaponsEx(playerid);
  12862. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  12863. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  12864. GivePlayerAdminGun(playerid, gun1);
  12865. GivePlayerAdminGun(playerid, gun2);
  12866. new string[128];
  12867. new sendername[MAX_PLAYER_NAME];
  12868. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  12869. for(new i; i<MAX_PLAYERS; i++)
  12870. {
  12871. if(IsPlayerConnected(i))
  12872. {
  12873. if(PlayerPaintballing[i] != 0)
  12874. {
  12875. format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
  12876. SendClientMessage(i, COLOR_GREEN, string);
  12877. }
  12878. }
  12879. }
  12880. }
  12881.  
  12882.  
  12883. if(listitem == 1) //Spas+M4
  12884. {
  12885. //foreach(Player, i)
  12886. for(new i; i<MAX_PLAYERS; i++)
  12887. PlayerInfo[playerid][pPaintballGun1] = 31;
  12888. PlayerInfo[playerid][pPaintballGun2] = 27;
  12889. PaintballPlayers ++;
  12890. PlayerPaintballing[playerid] = 1;
  12891. new rand = random(sizeof(PaintballSpawns));
  12892. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  12893. SetCameraBehindPlayer(playerid);
  12894. SetPlayerInterior(playerid, 10);
  12895. SetPlayerVirtualWorld(playerid, 2);
  12896. TogglePlayerControllable(playerid, 1);
  12897. ResetPlayerWeapons(playerid);
  12898. ClearGuns(playerid);
  12899. ResetPlayerAdminWeaponsEx(playerid);
  12900. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  12901. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  12902. GivePlayerAdminGun(playerid, gun1);
  12903. GivePlayerAdminGun(playerid, gun2);
  12904. new string[128];
  12905. new sendername[MAX_PLAYER_NAME];
  12906. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  12907. for(new i; i<MAX_PLAYERS; i++)
  12908. {
  12909. if(IsPlayerConnected(i))
  12910. {
  12911. if(PlayerPaintballing[i] != 0)
  12912. {
  12913. format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
  12914. SendClientMessage(i, COLOR_GREEN, string);
  12915. }
  12916. }
  12917. }
  12918. }
  12919.  
  12920.  
  12921. if(listitem == 2) //Deagle+MP5
  12922. {
  12923. //foreach(Player, i)
  12924. for(new i; i<MAX_PLAYERS; i++)
  12925. PlayerInfo[playerid][pPaintballGun1] = 24;
  12926. PlayerInfo[playerid][pPaintballGun2] = 29;
  12927. PaintballPlayers ++;
  12928. PlayerPaintballing[playerid] = 1;
  12929. new rand = random(sizeof(PaintballSpawns));
  12930. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  12931. SetCameraBehindPlayer(playerid);
  12932. SetPlayerInterior(playerid, 10);
  12933. SetPlayerVirtualWorld(playerid, 2);
  12934. TogglePlayerControllable(playerid, 1);
  12935. ResetPlayerWeapons(playerid);
  12936. ClearGuns(playerid);
  12937. ResetPlayerAdminWeaponsEx(playerid);
  12938. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  12939. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  12940. GivePlayerAdminGun(playerid, gun1);
  12941. GivePlayerAdminGun(playerid, gun2);
  12942. new string[128];
  12943. new sendername[MAX_PLAYER_NAME];
  12944. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  12945. for(new i; i<MAX_PLAYERS; i++)
  12946. {
  12947. if(IsPlayerConnected(i))
  12948. {
  12949. if(PlayerPaintballing[i] != 0)
  12950. {
  12951. format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
  12952. SendClientMessage(i, COLOR_GREEN, string);
  12953. }
  12954. }
  12955. }
  12956. }
  12957.  
  12958. if(listitem == 3) //Shawnoff+Sniper
  12959. {
  12960. //foreach(Player, i)
  12961. for(new i; i<MAX_PLAYERS; i++)
  12962. PlayerInfo[playerid][pPaintballGun1] = 26;
  12963. PlayerInfo[playerid][pPaintballGun2] = 34;
  12964. PaintballPlayers ++;
  12965. PlayerPaintballing[playerid] = 1;
  12966. new rand = random(sizeof(PaintballSpawns));
  12967. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  12968. SetCameraBehindPlayer(playerid);
  12969. SetPlayerInterior(playerid, 10);
  12970. SetPlayerVirtualWorld(playerid, 2);
  12971. TogglePlayerControllable(playerid, 1);
  12972. ResetPlayerWeapons(playerid);
  12973. ClearGuns(playerid);
  12974. ResetPlayerAdminWeaponsEx(playerid);
  12975. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  12976. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  12977. GivePlayerAdminGun(playerid, gun1);
  12978. GivePlayerAdminGun(playerid, gun2);
  12979. new string[128];
  12980. new sendername[MAX_PLAYER_NAME];
  12981. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  12982. for(new i; i<MAX_PLAYERS; i++)
  12983. {
  12984. if(IsPlayerConnected(i))
  12985. {
  12986. if(PlayerPaintballing[i] != 0)
  12987. {
  12988. format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
  12989. SendClientMessage(i, COLOR_GREEN, string);
  12990. }
  12991. }
  12992. }
  12993. }
  12994.  
  12995. if(listitem == 4) //Deagle+Tec9
  12996. {
  12997. //foreach(Player, i)
  12998. for(new i; i<MAX_PLAYERS; i++)
  12999. PlayerInfo[playerid][pPaintballGun1] = 24;
  13000. PlayerInfo[playerid][pPaintballGun2] = 32;
  13001. PaintballPlayers ++;
  13002. PlayerPaintballing[playerid] = 1;
  13003. new rand = random(sizeof(PaintballSpawns));
  13004. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  13005. SetCameraBehindPlayer(playerid);
  13006. SetPlayerInterior(playerid, 10);
  13007. SetPlayerVirtualWorld(playerid, 2);
  13008. TogglePlayerControllable(playerid, 1);
  13009. ResetPlayerWeapons(playerid);
  13010. ClearGuns(playerid);
  13011. ResetPlayerAdminWeaponsEx(playerid);
  13012. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  13013. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  13014. GivePlayerAdminGun(playerid, gun1);
  13015. GivePlayerAdminGun(playerid, gun2);
  13016. new string[128];
  13017. new sendername[MAX_PLAYER_NAME];
  13018. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  13019. for(new i; i<MAX_PLAYERS; i++)
  13020. {
  13021. if(IsPlayerConnected(i))
  13022. {
  13023. if(PlayerPaintballing[i] != 0)
  13024. {
  13025. format(string, sizeof(string), "* %s has joined the Paintball.",sendername);
  13026. SendClientMessage(i, COLOR_GREEN, string);
  13027. }
  13028. }
  13029. }
  13030. }
  13031.  
  13032. }
  13033. }
  13034.  
  13035.  
  13036. if(dialogid == 5) //gym
  13037. {
  13038. if(response)
  13039. {
  13040. if(listitem == 0) //normal
  13041. {
  13042. if(PlayerInfo[playerid][pCash] > 49999)
  13043. {
  13044. PlayerInfo[playerid][pFightingStyle] = 4;
  13045. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13046. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13047. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13048. }
  13049. else
  13050. {
  13051. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13052. }
  13053. }
  13054. if(listitem == 1) //boxing
  13055. {
  13056. if(PlayerInfo[playerid][pCash] > 49999)
  13057. {
  13058. PlayerInfo[playerid][pFightingStyle] = 5;
  13059. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13060. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  13061. GivePlayerMoney(playerid, -50000);
  13062. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13063. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13064. }
  13065. else
  13066. {
  13067. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13068. }
  13069. }
  13070. if(listitem == 2) //kung fu
  13071. {
  13072. if(PlayerInfo[playerid][pCash] > 49999)
  13073. {
  13074. PlayerInfo[playerid][pFightingStyle] = 6;
  13075. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13076. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  13077. GivePlayerMoney(playerid, -50000);
  13078. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13079. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13080. }
  13081. else
  13082. {
  13083. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13084. }
  13085. }
  13086. if(listitem == 3) //kneehead
  13087. {
  13088. if(PlayerInfo[playerid][pCash] > 49999)
  13089. {
  13090. PlayerInfo[playerid][pFightingStyle] = 7;
  13091. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13092. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  13093. GivePlayerMoney(playerid, -50000);
  13094. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13095. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13096. }
  13097. else
  13098. {
  13099. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13100. }
  13101. }
  13102. if(listitem == 4) //grabkick
  13103. {
  13104. if(PlayerInfo[playerid][pCash] > 49999)
  13105. {
  13106. PlayerInfo[playerid][pFightingStyle] = 15;
  13107. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13108. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  13109. GivePlayerMoney(playerid, -50000);
  13110. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13111. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13112. }
  13113. else
  13114. {
  13115. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13116. }
  13117. }
  13118. if(listitem == 5) //elbow
  13119. {
  13120. if(PlayerInfo[playerid][pCash] > 49999)
  13121. {
  13122. PlayerInfo[playerid][pFightingStyle] = 26;
  13123. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  13124. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  13125. GivePlayerMoney(playerid, -50000);
  13126. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13127. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have learnt a new fighting style.");
  13128. }
  13129. else
  13130. {
  13131. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13132. }
  13133. }
  13134. }
  13135. }
  13136. if(dialogid == 7) //Cafeteria // COMMENTED
  13137. {
  13138. if(response)
  13139. {
  13140. new Float:playerHP;
  13141. GetPlayerHealth(playerid, playerHP);
  13142. new biz = PlayerInfo[playerid][pInBiz];
  13143. if(listitem == 0) //Bread
  13144. {
  13145. if(PlayerInfo[playerid][pCash] > 20)
  13146. {
  13147. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  13148. GivePlayerMoney(playerid, -20);
  13149. if(playerHP > 98) { SetPlayerHealth(playerid, 100.0); }
  13150. else { SetPlayerHealth(playerid, playerHP + 2.0); }
  13151. SendClientMessage(playerid, COLOR_GRAD4, "Bread purchased.");
  13152. if(BizInfo[biz][bOwned] == 1)
  13153. {
  13154. BizInfo[biz][bTill] += 20;
  13155. BizInfo[biz][bProducts]--;
  13156. }
  13157. }
  13158. else
  13159. {
  13160. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13161. return 1;
  13162. }
  13163. }
  13164. if(listitem == 1) //Apple
  13165. {
  13166. if(PlayerInfo[playerid][pCash] > 30)
  13167. {
  13168. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-30;
  13169. GivePlayerMoney(playerid, -3);
  13170. if(playerHP > 97) { SetPlayerHealth(playerid, 100.0); }
  13171. else { SetPlayerHealth(playerid, playerHP + 3.0); }
  13172. SendClientMessage(playerid, COLOR_GRAD4, "Apple purchased.");
  13173. if(BizInfo[biz][bOwned] == 1)
  13174. {
  13175. BizInfo[biz][bTill] += 30;
  13176. BizInfo[biz][bProducts]--;
  13177. }
  13178. }
  13179. else
  13180. {
  13181. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13182. return 1;
  13183. }
  13184. }
  13185. if(listitem == 2) //Cok O Pops
  13186. {
  13187. if(PlayerInfo[playerid][pCash] > 50)
  13188. {
  13189. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  13190. GivePlayerMoney(playerid, -50);
  13191. if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
  13192. else { SetPlayerHealth(playerid, playerHP + 5.0); }
  13193. SendClientMessage(playerid, COLOR_GRAD4, "Cok O Pops purchased.");
  13194. if(BizInfo[biz][bOwned] == 1)
  13195. {
  13196. BizInfo[biz][bTill] += 50;
  13197. BizInfo[biz][bProducts]--;
  13198. }
  13199. }
  13200. else
  13201. {
  13202. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13203. return 1;
  13204. }
  13205. }
  13206. if(listitem == 3) //Mashed Potatoes
  13207. {
  13208. if(PlayerInfo[playerid][pCash] > 50)
  13209. {
  13210. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  13211. GivePlayerMoney(playerid, -50);
  13212. if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
  13213. else { SetPlayerHealth(playerid, playerHP + 5.0); }
  13214. SendClientMessage(playerid, COLOR_GRAD4, "Mashed Potatoes purchased.");
  13215. if(BizInfo[biz][bOwned] == 1)
  13216. {
  13217. BizInfo[biz][bTill] += 50;
  13218. BizInfo[biz][bProducts]--;
  13219. }
  13220. }
  13221. else
  13222. {
  13223. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13224. return 1;
  13225. }
  13226. }
  13227. if(listitem == 4) //Carrot
  13228. {
  13229. if(PlayerInfo[playerid][pCash] > 10)
  13230. {
  13231. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10;
  13232. GivePlayerMoney(playerid, -10);
  13233. if(playerHP > 99) { SetPlayerHealth(playerid, 100.0); }
  13234. else { SetPlayerHealth(playerid, playerHP + 1.0); }
  13235. SendClientMessage(playerid, COLOR_GRAD4, "Carrot purchased.");
  13236. if(BizInfo[biz][bOwned] == 1)
  13237. {
  13238. BizInfo[biz][bTill] += 10;
  13239. BizInfo[biz][bProducts]--;
  13240. }
  13241. }
  13242. else
  13243. {
  13244. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13245. return 1;
  13246. }
  13247. }
  13248. if(listitem == 5) //Green Beans
  13249. {
  13250. if(PlayerInfo[playerid][pCash] > 40)
  13251. {
  13252. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-40;
  13253. GivePlayerMoney(playerid, -40);
  13254. if(playerHP > 96) { SetPlayerHealth(playerid, 100.0); }
  13255. else { SetPlayerHealth(playerid, playerHP + 4.0); }
  13256. SendClientMessage(playerid, COLOR_GRAD4, "Green Beans purchased.");
  13257. if(BizInfo[biz][bOwned] == 1)
  13258. {
  13259. BizInfo[biz][bTill] += 40;
  13260. BizInfo[biz][bProducts]--;
  13261. }
  13262. }
  13263. else
  13264. {
  13265. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13266. return 1;
  13267. }
  13268. }
  13269. if(listitem == 6) //Pork Roll
  13270. {
  13271. if(PlayerInfo[playerid][pCash] > 50)
  13272. {
  13273. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  13274. GivePlayerMoney(playerid, -50);
  13275. if(playerHP > 95) { SetPlayerHealth(playerid, 100.0); }
  13276. else { SetPlayerHealth(playerid, playerHP + 5.0); }
  13277. SendClientMessage(playerid, COLOR_GRAD4, "Pork Roll purchased.");
  13278. if(BizInfo[biz][bOwned] == 1)
  13279. {
  13280. BizInfo[biz][bTill] += 50;
  13281. BizInfo[biz][bProducts]--;
  13282. }
  13283. }
  13284. else
  13285. {
  13286. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13287. return 1;
  13288. }
  13289. }
  13290. if(listitem == 7) //Sausage
  13291. {
  13292. if(PlayerInfo[playerid][pCash] > 70)
  13293. {
  13294. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70;
  13295. GivePlayerMoney(playerid, -70);
  13296. if(playerHP > 93) { SetPlayerHealth(playerid, 100.0); }
  13297. else { SetPlayerHealth(playerid, playerHP + 7.0); }
  13298. SendClientMessage(playerid, COLOR_GRAD4, "Sausage purchased.");
  13299. if(BizInfo[biz][bOwned] == 1)
  13300. {
  13301. BizInfo[biz][bTill] += 70;
  13302. BizInfo[biz][bProducts]--;
  13303. }
  13304. }
  13305. else
  13306. {
  13307. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13308. return 1;
  13309. }
  13310. }
  13311. if(listitem == 8) //Chicken
  13312. {
  13313. if(PlayerInfo[playerid][pCash] > 150)
  13314. {
  13315. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-150;
  13316. GivePlayerMoney(playerid, -150);
  13317. if(playerHP > 80) { SetPlayerHealth(playerid, 100.0); }
  13318. else { SetPlayerHealth(playerid, playerHP + 20.0); }
  13319. SendClientMessage(playerid, COLOR_GRAD4, "Chicken purchased.");
  13320. if(BizInfo[biz][bOwned] == 1)
  13321. {
  13322. BizInfo[biz][bTill] += 150;
  13323. BizInfo[biz][bProducts]--;
  13324. }
  13325. }
  13326. else
  13327. {
  13328. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  13329. return 1;
  13330. }
  13331. }
  13332. ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,1,1);
  13333. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  13334. }
  13335. }
  13336. if(dialogid == 8) //Locker Room
  13337. {
  13338. if(response)
  13339. {
  13340. if(listitem == 0) //Duty
  13341. {
  13342. new string[128];
  13343. new sendername[MAX_PLAYER_NAME];
  13344. if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
  13345. {
  13346. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  13347. format(string, sizeof(string), "* Soldier %s takes their Uniform and Guns from their locker.", sendername);
  13348. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13349. if(IsANG(playerid)) { SetPlayerColor(playerid, TCOLOR_LIGHTGREEN); }
  13350. GivePlayerWeapon(playerid, 27, 999999); PlayerInfo[playerid][pGun3] = 27; //Spas12
  13351. GivePlayerWeapon(playerid, 31, 999999); PlayerInfo[playerid][pGun5] = 31; //M4
  13352. GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //Nitestick
  13353. SetPlayerArmour(playerid, 100.0);
  13354. SetPlayerSkin(playerid, 287);
  13355. PlayerInfo[playerid][pOnDuty] = 1;
  13356. }
  13357. else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
  13358. {
  13359. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  13360. format(string, sizeof(string), "* Soldier %s places their Uniform and Guns in their locker.", sendername);
  13361. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13362. SetPlayerColor(playerid, TCOLOR_WHITE);
  13363. PlayerInfo[playerid][pGun3] = 0;
  13364. PlayerInfo[playerid][pGun5] = 0;
  13365. PlayerInfo[playerid][pGun1] = 0;
  13366. ResetPlayerWeapons(playerid);
  13367. SetPlayerArmour(playerid, 0.0);
  13368. SetPlayerSkin(playerid, 46);
  13369. PlayerInfo[playerid][pOnDuty] = 0;
  13370. }
  13371. }
  13372. if(listitem == 1) //Armory
  13373. {
  13374. DisplayDialogForPlayer(playerid, 9); //Weapons
  13375. }
  13376. if(listitem == 2) //Clearing
  13377. {
  13378. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
  13379. LSPDClearing[playerid] = 1;
  13380. }
  13381. if(listitem == 3) //Release Suspect
  13382. {
  13383. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
  13384. LSPDClearing[playerid] = 2;
  13385. }
  13386. }
  13387. }
  13388. if(dialogid == 9) //Weapons
  13389. {
  13390. if(response)
  13391. {
  13392. if(listitem == 0) // Mace
  13393. {
  13394. if(PlayerInfo[playerid][pCash] < 20)
  13395. {
  13396. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13397. TogglePlayerControllable(playerid,1);
  13398. return 1;
  13399. }
  13400. else
  13401. {
  13402. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  13403. GivePlayerMoney(playerid,-20);
  13404. GivePlayerWeapon(playerid, 41, 999999);
  13405. PlayerInfo[playerid][pGun9] = 41;
  13406. TogglePlayerControllable(playerid,1);
  13407. }
  13408. }
  13409. if(listitem == 1) // Night Stick
  13410. {
  13411. if(PlayerInfo[playerid][pCash] < 20)
  13412. {
  13413. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13414. TogglePlayerControllable(playerid,1);
  13415. return 1;
  13416. }
  13417. else
  13418. {
  13419. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  13420. GivePlayerMoney(playerid,-20);
  13421. GivePlayerWeapon(playerid, 3, 1);
  13422. PlayerInfo[playerid][pGun1] = 3;
  13423. TogglePlayerControllable(playerid,1);
  13424. }
  13425. }
  13426. if(listitem == 2) // Deagle
  13427. {
  13428. if(PlayerInfo[playerid][pCash] < 500)
  13429. {
  13430. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13431. TogglePlayerControllable(playerid,1);
  13432. return 1;
  13433. }
  13434. else
  13435. {
  13436. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  13437. GivePlayerMoney(playerid,-500);
  13438. GivePlayerWeapon(playerid, 24, 999999);
  13439. PlayerInfo[playerid][pGun2] = 24;
  13440. TogglePlayerControllable(playerid,1);
  13441. }
  13442. }
  13443. if(listitem == 3) //Shotgun
  13444. {
  13445. if(PlayerInfo[playerid][pCash] < 200)
  13446. {
  13447. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13448. TogglePlayerControllable(playerid,1);
  13449. return 1;
  13450. }
  13451. else
  13452. {
  13453. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  13454. GivePlayerMoney(playerid,-200);
  13455. GivePlayerWeapon(playerid, 25, 999999);
  13456. PlayerInfo[playerid][pGun3] = 25;
  13457. TogglePlayerControllable(playerid,1);
  13458. }
  13459. }
  13460. if(listitem == 4) //MP5
  13461. {
  13462. if(PlayerInfo[playerid][pCash] < 400)
  13463. {
  13464. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13465. TogglePlayerControllable(playerid,1);
  13466. return 1;
  13467. }
  13468. else
  13469. {
  13470. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
  13471. GivePlayerMoney(playerid,-400);
  13472. GivePlayerWeapon(playerid, 29, 999999);
  13473. PlayerInfo[playerid][pGun4] = 29;
  13474. TogglePlayerControllable(playerid,1);
  13475. }
  13476. }
  13477. if(listitem == 5) //Rifle
  13478. {
  13479. if(PlayerInfo[playerid][pCash] < 1000)
  13480. {
  13481. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13482. TogglePlayerControllable(playerid,1);
  13483. return 1;
  13484. }
  13485. else
  13486. {
  13487. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  13488. GivePlayerMoney(playerid,-1000);
  13489. GivePlayerWeapon(playerid, 33, 999999);
  13490. PlayerInfo[playerid][pGun6] = 33;
  13491. TogglePlayerControllable(playerid,1);
  13492. }
  13493. }
  13494. if(listitem == 6) //M4
  13495. {
  13496. if(PlayerInfo[playerid][pCash] < 4000)
  13497. {
  13498. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13499. TogglePlayerControllable(playerid,1);
  13500. return 1;
  13501. }
  13502. else
  13503. {
  13504. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
  13505. GivePlayerMoney(playerid,-4000);
  13506. GivePlayerWeapon(playerid, 31, 999999);
  13507. PlayerInfo[playerid][pGun5] = 31;
  13508. TogglePlayerControllable(playerid,1);
  13509. }
  13510. }
  13511. if(listitem == 7) //Spas12
  13512. {
  13513. if(PlayerInfo[playerid][pCash] < 10000)
  13514. {
  13515. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13516. TogglePlayerControllable(playerid,1);
  13517. return 1;
  13518. }
  13519. else
  13520. {
  13521. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
  13522. GivePlayerMoney(playerid,-10000);
  13523. GivePlayerWeapon(playerid, 27, 999999);
  13524. PlayerInfo[playerid][pGun3] = 27;
  13525. TogglePlayerControllable(playerid,1);
  13526. }
  13527. }
  13528. if(listitem == 8)
  13529. {
  13530. if(PlayerInfo[playerid][pCash] < 10000)
  13531. {
  13532. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13533. TogglePlayerControllable(playerid,1);
  13534. return 1;
  13535. }
  13536. else
  13537. {
  13538. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
  13539. GivePlayerMoney(playerid,-10000);
  13540. GivePlayerWeapon(playerid, 34, 999999); PlayerInfo[playerid][pGun6] = 34; //sniper
  13541. TogglePlayerControllable(playerid,1);
  13542. }
  13543. }
  13544. if(listitem == 9) //Grenades
  13545. {
  13546. if(PlayerInfo[playerid][pCash] < 800)
  13547. {
  13548. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13549. TogglePlayerControllable(playerid,1);
  13550. return 1;
  13551. }
  13552. else
  13553. {
  13554. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-800;
  13555. GivePlayerMoney(playerid,-800);
  13556. GivePlayerWeapon(playerid, 16, 2);
  13557. PlayerInfo[playerid][pGun8] = 16;
  13558. TogglePlayerControllable(playerid,1);
  13559. }
  13560. }
  13561. if(listitem == 10)
  13562. {
  13563. if(PlayerInfo[playerid][pCash] < 2000)
  13564. {
  13565. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13566. TogglePlayerControllable(playerid,1);
  13567. return 1;
  13568. }
  13569. else
  13570. {
  13571. TogglePlayerControllable(playerid,1);
  13572. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
  13573. GivePlayerMoney(playerid,-2000);
  13574. SetPlayerArmour(playerid, 100);
  13575. }
  13576. }
  13577. }
  13578. }
  13579. if(dialogid == 10) //LSPD
  13580. {
  13581. if(response)
  13582. {
  13583. if(listitem == 0)
  13584. {
  13585. new string[128];
  13586. new sendername[MAX_PLAYER_NAME];
  13587. if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
  13588. {
  13589. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  13590. format(string, sizeof(string), "* Officer %s takes a Badge and Gun from their locker.", sendername);
  13591. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13592. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { SetPlayerColor(playerid, TCOLOR_BLUE); }
  13593. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
  13594. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { SetPlayerColor(playerid, TCOLOR_BEIGE); }
  13595. GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
  13596. GivePlayerWeapon(playerid, 41, 999999); PlayerInfo[playerid][pGun9] = 41; //spray
  13597. GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //nitestick
  13598. SetPlayerArmour(playerid, 100.0);
  13599. PlayerInfo[playerid][pOnDuty] = 1;
  13600. TogglePlayerControllable(playerid,1);
  13601. }
  13602. else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
  13603. {
  13604. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  13605. format(string, sizeof(string), "* Officer %s places a Badge and Gun in their locker.", sendername);
  13606. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13607. SetPlayerColor(playerid, TCOLOR_WHITE);
  13608. PlayerInfo[playerid][pGun2] = 0;
  13609. PlayerInfo[playerid][pGun9] = 0;
  13610. PlayerInfo[playerid][pGun1] = 0;
  13611. ResetPlayerWeapons(playerid);
  13612. SetPlayerArmour(playerid, 0.0);
  13613. PlayerInfo[playerid][pOnDuty] = 0;
  13614. SetPlayerSkin( playerid, 46 );
  13615. PlayerInfo[playerid][pModel] = 46;
  13616. TogglePlayerControllable(playerid,1);
  13617. }
  13618. }
  13619. if(listitem == 1)
  13620. {
  13621. if(PlayerInfo[playerid][pSFMember] != 3 && PlayerInfo[playerid][pRank] <= 3)
  13622. {
  13623. SendClientMessage(playerid, COLOR_GREY, "** [Error]: You're not a member of S.I.U / High Command");
  13624. TogglePlayerControllable(playerid,1);
  13625. return 1;
  13626. }
  13627. ShowPlayerDialog(playerid, SIUMENU1, DIALOG_STYLE_LIST, "SIU Menu", "Civilian Clothing\nMafia Clothing\nGang Clothing", "Accept", "Cancel");
  13628. }
  13629. if(listitem == 2)
  13630. {
  13631. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
  13632. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  13633. TogglePlayerControllable(playerid, 0);
  13634. SelectChar[playerid] = 255;
  13635. SelectCharPlace[playerid] = 1;
  13636. if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  13637. else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  13638. else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  13639. else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  13640. else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  13641. else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  13642. else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  13643. else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  13644. else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  13645. else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  13646. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  13647. ChangeUniform[playerid] = 1;
  13648. }
  13649. if(listitem == 3)
  13650. {
  13651. DisplayDialogForPlayer(playerid, 11); //Armory
  13652. }
  13653. if(listitem == 4)
  13654. {
  13655. if(PlayerInfo[playerid][pSFMember] != 1 && PlayerInfo[playerid][pRank] <= 3)
  13656. {
  13657. SendClientMessage(playerid, COLOR_GREY, "** [Error]: You're not a member of S.W.A.T / High Command");
  13658. TogglePlayerControllable(playerid,1);
  13659. return 1;
  13660. }
  13661. SetPlayerSkin( playerid, 285 );
  13662. DisplayDialogForPlayer(playerid, 12); //Swat Menu
  13663. }
  13664. if(listitem == 5)
  13665. {
  13666. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
  13667. LSPDClearing[playerid] = 1;
  13668. }
  13669. if(listitem == 6)
  13670. {
  13671. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
  13672. LSPDClearing[playerid] = 2;
  13673. }
  13674. }
  13675. }
  13676. if(dialogid == 11)
  13677. {
  13678. if(response)
  13679. {
  13680. if(listitem == 0) // Mace
  13681. {
  13682. if(PlayerInfo[playerid][pCash] < 20)
  13683. {
  13684. SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
  13685. TogglePlayerControllable(playerid,1);
  13686. return 1;
  13687. }
  13688. else
  13689. {
  13690. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  13691. GivePlayerMoney(playerid,-20);
  13692. GivePlayerWeapon(playerid, 41, 999999);
  13693. PlayerInfo[playerid][pGun9] = 41;
  13694. TogglePlayerControllable(playerid,1);
  13695. }
  13696. }
  13697. if(listitem == 1) // Night Stick
  13698. {
  13699. if(PlayerInfo[playerid][pCash] < 20)
  13700. {
  13701. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13702. TogglePlayerControllable(playerid,1);
  13703. return 1;
  13704. }
  13705. else
  13706. {
  13707. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  13708. GivePlayerMoney(playerid,-20);
  13709. GivePlayerWeapon(playerid, 3, 1);
  13710. PlayerInfo[playerid][pGun1] = 3;
  13711. TogglePlayerControllable(playerid,1);
  13712. }
  13713. }
  13714. if(listitem == 2) // Deagle
  13715. {
  13716. if(PlayerInfo[playerid][pCash] < 500)
  13717. {
  13718. SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
  13719. TogglePlayerControllable(playerid,1);
  13720. return 1;
  13721. }
  13722. else
  13723. {
  13724. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  13725. GivePlayerMoney(playerid,-500);
  13726. GivePlayerWeapon(playerid, 24, 999999);
  13727. PlayerInfo[playerid][pGun2] = 24;
  13728. TogglePlayerControllable(playerid,1);
  13729. }
  13730. }
  13731. if(listitem == 3) //Shotgun
  13732. {
  13733. if(PlayerInfo[playerid][pCash] < 200)
  13734. {
  13735. SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
  13736. TogglePlayerControllable(playerid,1);
  13737. return 1;
  13738. }
  13739. else
  13740. {
  13741. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  13742. GivePlayerMoney(playerid,-200);
  13743. GivePlayerWeapon(playerid, 25, 999999);
  13744. PlayerInfo[playerid][pGun3] = 25;
  13745. TogglePlayerControllable(playerid,1);
  13746. }
  13747. }
  13748. if(listitem == 4) //MP5
  13749. {
  13750. if(PlayerInfo[playerid][pCash] < 400)
  13751. {
  13752. SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
  13753. TogglePlayerControllable(playerid,1);
  13754. return 1;
  13755. }
  13756. else
  13757. {
  13758. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
  13759. GivePlayerMoney(playerid,-400);
  13760. GivePlayerWeapon(playerid, 29, 999999);
  13761. PlayerInfo[playerid][pGun4] = 29;
  13762. TogglePlayerControllable(playerid,1);
  13763. }
  13764. }
  13765. if(listitem == 5) //Rifle
  13766. {
  13767. if(PlayerInfo[playerid][pCash] < 1000)
  13768. {
  13769. SendClientMessage(playerid, COLOR_GREY, "You cant afford that.");
  13770. TogglePlayerControllable(playerid,1);
  13771. return 1;
  13772. }
  13773. else
  13774. {
  13775. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  13776. GivePlayerMoney(playerid,-1000);
  13777. GivePlayerWeapon(playerid, 33, 999999);
  13778. PlayerInfo[playerid][pGun6] = 33;
  13779. TogglePlayerControllable(playerid,1);
  13780. }
  13781. }
  13782. if(listitem == 6) //M4
  13783. {
  13784. if(PlayerInfo[playerid][pCash] < 4000)
  13785. {
  13786. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  13787. TogglePlayerControllable(playerid,1);
  13788. return 1;
  13789. }
  13790. else
  13791. {
  13792. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
  13793. GivePlayerMoney(playerid,-4000);
  13794. GivePlayerWeapon(playerid, 31, 999999);
  13795. PlayerInfo[playerid][pGun5] = 31;
  13796. TogglePlayerControllable(playerid,1);
  13797. }
  13798. }
  13799. }
  13800. }
  13801. if(dialogid == 12) // SWAT MENU
  13802. {
  13803. if(response)
  13804. {
  13805. if(listitem == 0) //WEAPONS
  13806. {
  13807. DisplayDialogForPlayer(playerid, 13);
  13808. }
  13809. if(listitem == 1) //ACCESSORIES
  13810. {
  13811. DisplayDialogForPlayer(playerid, 14);
  13812. }
  13813. }
  13814. }
  13815. if(dialogid == 13) //WEAPONS
  13816. {
  13817. if(response)
  13818. {
  13819. new playercash = PlayerInfo[playerid][pCash];
  13820. if(listitem == 0)
  13821. {
  13822. if(playercash < 500) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13823. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  13824. GivePlayerMoney(playerid,-500);
  13825. GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
  13826. TogglePlayerControllable(playerid,1);
  13827. }
  13828. if(listitem == 1)
  13829. {
  13830. if(playercash < 200) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13831. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  13832. GivePlayerMoney(playerid,-200);
  13833. GivePlayerWeapon(playerid, 25, 999999); PlayerInfo[playerid][pGun3] = 25; //shotgun
  13834. TogglePlayerControllable(playerid,1);
  13835. }
  13836. if(listitem == 2)
  13837. {
  13838. if(playercash < 400) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13839. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
  13840. GivePlayerMoney(playerid,-400);
  13841. GivePlayerWeapon(playerid, 29, 999999); PlayerInfo[playerid][pGun4] = 29; //mp5
  13842. TogglePlayerControllable(playerid,1);
  13843. }
  13844. if(listitem == 3)
  13845. {
  13846. if(playercash < 1000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13847. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  13848. GivePlayerMoney(playerid,-1000);
  13849. GivePlayerWeapon(playerid, 33, 999999); PlayerInfo[playerid][pGun6] = 33; //rifle
  13850. TogglePlayerControllable(playerid,1);
  13851. }
  13852. if(listitem == 4)
  13853. {
  13854. if(playercash < 4000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13855. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
  13856. GivePlayerMoney(playerid,-4000);
  13857. GivePlayerWeapon(playerid, 31, 999999); PlayerInfo[playerid][pGun5] = 31; //m4
  13858. TogglePlayerControllable(playerid,1);
  13859. }
  13860. if(listitem == 5)
  13861. {
  13862. if(playercash < 10000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13863. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
  13864. GivePlayerMoney(playerid,-10000);
  13865. GivePlayerWeapon(playerid, 34, 999999); PlayerInfo[playerid][pGun6] = 34; //sniper
  13866. TogglePlayerControllable(playerid,1);
  13867. }
  13868. if(listitem == 6)
  13869. {
  13870. if(playercash < 10000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13871. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-10000;
  13872. GivePlayerMoney(playerid,-10000);
  13873. GivePlayerWeapon(playerid, 27, 999999); PlayerInfo[playerid][pGun3] = 27; //spas12
  13874. TogglePlayerControllable(playerid,1);
  13875. }
  13876. }
  13877. }
  13878. if(dialogid == 14) //ACCESSORIES
  13879. {
  13880. if(response)
  13881. {
  13882. new playercash = PlayerInfo[playerid][pCash];
  13883. if(listitem == 0)
  13884. {
  13885. if(playercash < 800) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13886. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-800;
  13887. GivePlayerMoney(playerid,-800);
  13888. GivePlayerWeapon(playerid, 17, 2); PlayerInfo[playerid][pGun8] = 17; //teargas
  13889. TogglePlayerControllable(playerid,1);
  13890. }
  13891. if(listitem == 1)
  13892. {
  13893. if(playercash < 1000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13894. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  13895. GivePlayerMoney(playerid,-1000);
  13896. GivePlayerWeapon(playerid, 16, 2); PlayerInfo[playerid][pGun8] = 16; //grenades
  13897. if(GetPlayerAmmo(playerid) >= 2) //ammo fix
  13898. {
  13899. GivePlayerWeapon(playerid, 16, -2);
  13900. }
  13901. TogglePlayerControllable(playerid,1);
  13902. }
  13903. if(listitem == 2)
  13904. {
  13905. if(playercash < 2000) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; }
  13906. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
  13907. GivePlayerMoney(playerid,-2000);
  13908. SetPlayerArmour(playerid, 100.0);
  13909. TogglePlayerControllable(playerid,1);
  13910. }
  13911. }
  13912. }
  13913. if(dialogid == 15)
  13914. {
  13915. if(response)
  13916. {
  13917. if(listitem == 0)
  13918. {
  13919. SetPlayerColor(playerid, 0x80008000);
  13920. }
  13921. if(listitem == 1)
  13922. {
  13923. SetPlayerColor(playerid, 0xFFFF0000);
  13924. }
  13925. if(listitem == 2)
  13926. {
  13927. SetPlayerColor(playerid, 0xff000000);
  13928. }
  13929. if(listitem == 3)
  13930. {
  13931. SetPlayerColor(playerid, 0x33CCFF00);
  13932. }
  13933. if(listitem == 4)
  13934. {
  13935. SetPlayerColor(playerid, 0xFF990000);
  13936. }
  13937. if(listitem == 5)
  13938. {
  13939. SetPlayerColor(playerid, 0x33AA3300);
  13940. }
  13941. if(listitem == 6)
  13942. {
  13943. SetPlayerColor(playerid, 0x4B00B000);
  13944. }
  13945. if(listitem == 7)
  13946. {
  13947. SetPlayerColor(playerid, 0xFF66FF00);
  13948. }
  13949. if(listitem == 8)
  13950. {
  13951. SetPlayerColor(playerid, 0x00000000);
  13952. }
  13953. }
  13954. return 1;
  13955. }
  13956. if(dialogid == 16)
  13957. {
  13958. if(response)
  13959. {
  13960. if(listitem == 0) //Detective
  13961. {
  13962. DisplayDialogForPlayer(playerid, 17);
  13963. return 1;
  13964. }
  13965. if(listitem == 1) //Lawyer
  13966. {
  13967. DisplayDialogForPlayer(playerid, 20);
  13968. return 1;
  13969. }
  13970. if(listitem == 2) //Product Dealer
  13971. {
  13972. DisplayDialogForPlayer(playerid, 23);
  13973. return 1;
  13974. }
  13975. if(listitem == 3) //Drug Dealer
  13976. {
  13977. DisplayDialogForPlayer(playerid, 26);
  13978. return 1;
  13979. }
  13980. if(listitem == 4) //Mechanic
  13981. {
  13982. DisplayDialogForPlayer(playerid, 29);
  13983. return 1;
  13984. }
  13985. if(listitem == 5) //Bodyguard
  13986. {
  13987. DisplayDialogForPlayer(playerid, 32);
  13988. return 1;
  13989. }
  13990. if(listitem == 6) //Arms Dealer
  13991. {
  13992. DisplayDialogForPlayer(playerid, 35);
  13993. return 1;
  13994. }
  13995. if(listitem == 7) //Boxer
  13996. {
  13997. DisplayDialogForPlayer(playerid, 38);
  13998. return 1;
  13999. }
  14000. if(listitem == 8) //Taxi Driver
  14001. {
  14002. DisplayDialogForPlayer(playerid, 41);
  14003. return 1;
  14004. }
  14005. if(listitem == 9) //Drug Smuggler
  14006. {
  14007. DisplayDialogForPlayer(playerid, 44);
  14008. return 1;
  14009. }
  14010. }
  14011. }
  14012. if(dialogid == 17) //Detective
  14013. {
  14014. if(response)
  14015. {
  14016. DisplayDialogForPlayer(playerid, 18);
  14017. return 1;
  14018. }
  14019. }
  14020. if(dialogid == 18) //Detective
  14021. {
  14022. if(response)
  14023. {
  14024. DisplayDialogForPlayer(playerid, 19);
  14025. return 1;
  14026. }
  14027. }
  14028. if(dialogid == 19) // Detective
  14029. {
  14030. return 1;
  14031. }
  14032. if(dialogid == 20) // Lawyer
  14033. {
  14034. if(response)
  14035. {
  14036. DisplayDialogForPlayer(playerid, 21);
  14037. return 1;
  14038. }
  14039. }
  14040. if(dialogid == 21) // Lawyer
  14041. {
  14042. if(response)
  14043. {
  14044. DisplayDialogForPlayer(playerid, 22);
  14045. return 1;
  14046. }
  14047. }
  14048. if(dialogid == 22) // Lawyer
  14049. {
  14050. return 1;
  14051. }
  14052. if(dialogid == 23) // Product Dealer
  14053. {
  14054. if(response)
  14055. {
  14056. DisplayDialogForPlayer(playerid, 24);
  14057. return 1;
  14058. }
  14059. }
  14060. if(dialogid == 24) // Product Dealer
  14061. {
  14062. if(response)
  14063. {
  14064. DisplayDialogForPlayer(playerid, 25);
  14065. return 1;
  14066. }
  14067. }
  14068. if(dialogid == 25) // Product Dealer
  14069. {
  14070. return 1;
  14071. }
  14072. if(dialogid == 26) // Drug Dealer
  14073. {
  14074. if(response)
  14075. {
  14076. DisplayDialogForPlayer(playerid, 27);
  14077. return 1;
  14078. }
  14079. }
  14080. if(dialogid == 27) // Drug Dealer
  14081. {
  14082. if(response)
  14083. {
  14084. DisplayDialogForPlayer(playerid, 28);
  14085. return 1;
  14086. }
  14087. }
  14088. if(dialogid == 28) // Drug Dealer
  14089. {
  14090. return 1;
  14091. }
  14092. if(dialogid == 29) // Mechanic
  14093. {
  14094. if(response)
  14095. {
  14096. DisplayDialogForPlayer(playerid, 30);
  14097. return 1;
  14098. }
  14099. }
  14100. if(dialogid == 30) // Mechanic
  14101. {
  14102. if(response)
  14103. {
  14104. DisplayDialogForPlayer(playerid, 31);
  14105. return 1;
  14106. }
  14107. }
  14108. if(dialogid == 31) // Mechanic
  14109. {
  14110. return 1;
  14111. }
  14112. if(dialogid == 32) // Bodyguard
  14113. {
  14114. if(response)
  14115. {
  14116. DisplayDialogForPlayer(playerid, 33);
  14117. return 1;
  14118. }
  14119. }
  14120. if(dialogid == 33) // Bodyguard
  14121. {
  14122. if(response)
  14123. {
  14124. DisplayDialogForPlayer(playerid, 34);
  14125. return 1;
  14126. }
  14127. }
  14128. if(dialogid == 34) // Bodyguard
  14129. {
  14130. return 1;
  14131. }
  14132. if(dialogid == 35) // Arms Dealer
  14133. {
  14134. if(response)
  14135. {
  14136. DisplayDialogForPlayer(playerid, 36);
  14137. return 1;
  14138. }
  14139. }
  14140. if(dialogid == 36) // Arms Dealer
  14141. {
  14142. if(response)
  14143. {
  14144. DisplayDialogForPlayer(playerid, 37);
  14145. return 1;
  14146. }
  14147. }
  14148. if(dialogid == 37) // Arms Dealer
  14149. {
  14150. return 1;
  14151. }
  14152. if(dialogid == 38) // Boxer
  14153. {
  14154. if(response)
  14155. {
  14156. DisplayDialogForPlayer(playerid, 39);
  14157. return 1;
  14158. }
  14159. }
  14160. if(dialogid == 39) // Boxer
  14161. {
  14162. if(response)
  14163. {
  14164. DisplayDialogForPlayer(playerid, 40);
  14165. return 1;
  14166. }
  14167. }
  14168. if(dialogid == 40) // Boxer
  14169. {
  14170. return 1;
  14171. }
  14172. if(dialogid == 41) // Taxi Driver
  14173. {
  14174. if(response)
  14175. {
  14176. DisplayDialogForPlayer(playerid, 42);
  14177. return 1;
  14178. }
  14179. }
  14180. if(dialogid == 42) // Taxi Driver
  14181. {
  14182. if(response)
  14183. {
  14184. DisplayDialogForPlayer(playerid, 43);
  14185. return 1;
  14186. }
  14187. }
  14188. if(dialogid == 43) // Taxi Driver
  14189. {
  14190. return 1;
  14191. }
  14192. if(dialogid == 44) // Drug Smuggler
  14193. {
  14194. if(response)
  14195. {
  14196. DisplayDialogForPlayer(playerid, 45);
  14197. return 1;
  14198. }
  14199. }
  14200. if(dialogid == 45) // Drug Smuggler
  14201. {
  14202. if(response)
  14203. {
  14204. DisplayDialogForPlayer(playerid, 46);
  14205. return 1;
  14206. }
  14207. }
  14208. if(dialogid == 46) // Drug Smuggler
  14209. {
  14210. return 1;
  14211. }
  14212. if(dialogid == 48) //refund
  14213. {
  14214. if(!IsPlayerConnected(RefundingID[playerid]) || RefundingID[playerid] == INVALID_PLAYER_ID)
  14215. {
  14216. RefundingID[playerid] = 999; RefundingNumber[playerid] = 999;
  14217. SendClientMessage(playerid, COLOR_GREY, " That player is Offline / Invalid ID !");
  14218. return 1;
  14219. }
  14220. if(!response) //cancel
  14221. {
  14222. RefundingNumber[playerid] = 999;
  14223. DisplayDialogForPlayer(playerid, 47); //refund
  14224. }
  14225. if(response)
  14226. {
  14227. if(!strlen(inputtext)) //no text inputted
  14228. {
  14229. RefundingNumber[playerid] = 999;
  14230. DisplayDialogForPlayer(playerid, 47); //refund
  14231. return 1;
  14232. }
  14233. new sendername[MAX_PLAYER_NAME];
  14234. new giveplayer[MAX_PLAYER_NAME];
  14235. new amount;
  14236. amount = strval(inputtext);
  14237. new string[128];
  14238. new year, month, day;
  14239. getdate(year, month, day);
  14240. new stat = RefundingNumber[playerid];
  14241. new giveplayerid = RefundingID[playerid];
  14242. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  14243. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  14244. switch(stat)
  14245. {
  14246. case 0: //Level
  14247. {
  14248. RefundingNumber[playerid] = 999;
  14249. PlayerInfo[giveplayerid][pLevel] = amount; //edit
  14250. format(string, sizeof(string), "* You have set %s's Level to %d.", giveplayer, amount); //edit
  14251. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14252. format(string, sizeof(string), "* An Admin has set your Level to %d.", amount); //edit
  14253. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14254. DisplayDialogForPlayer(playerid, 47); //refund
  14255. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14256. StatLog(string);
  14257. }
  14258. case 1: //Cash
  14259. {
  14260. RefundingNumber[playerid] = 999;
  14261. PlayerInfo[giveplayerid][pCash] = amount; //edit
  14262. format(string, sizeof(string), "* You have set %s's Cash to $%d.", giveplayer, amount); //edit
  14263. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14264. format(string, sizeof(string), "* An Admin has set your Cash to $%d.", amount); //edit
  14265. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14266. DisplayDialogForPlayer(playerid, 47); //refund
  14267. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Cash to $%d", day, month, year, sendername, giveplayer, amount); //edit
  14268. StatLog(string);
  14269. }
  14270. case 2: //Bank
  14271. {
  14272. RefundingNumber[playerid] = 999;
  14273. PlayerInfo[giveplayerid][pAccount] = amount; //edit
  14274. format(string, sizeof(string), "* You have set %s's Bank Account to $%d.", giveplayer, amount); //edit
  14275. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14276. format(string, sizeof(string), "* An Admin has set your Bank Account to $%d.", amount); //edit
  14277. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14278. DisplayDialogForPlayer(playerid, 47); //refund
  14279. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Bank Account to $%d", day, month, year, sendername, giveplayer, amount); //edit
  14280. StatLog(string);
  14281. }
  14282. case 3: //Materials
  14283. {
  14284. RefundingNumber[playerid] = 999;
  14285. PlayerInfo[giveplayerid][pMats] = amount; //edit
  14286. format(string, sizeof(string), "* You have set %s's Materials to %d.", giveplayer, amount); //edit
  14287. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14288. format(string, sizeof(string), "* An Admin has set your Materials to %d.", amount); //edit
  14289. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14290. DisplayDialogForPlayer(playerid, 47); //refund
  14291. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Materials to %d", day, month, year, sendername, giveplayer, amount); //edit
  14292. StatLog(string);
  14293. }
  14294. case 4: //Crack
  14295. {
  14296. RefundingNumber[playerid] = 999;
  14297. PlayerInfo[giveplayerid][pCrack] = amount; //edit
  14298. format(string, sizeof(string), "* You have set %s's Crack to %d.", giveplayer, amount); //edit
  14299. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14300. format(string, sizeof(string), "* An Admin has set your Crack to %d.", amount); //edit
  14301. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14302. DisplayDialogForPlayer(playerid, 47); //refund
  14303. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Crack to %d", day, month, year, sendername, giveplayer, amount); //edit
  14304. StatLog(string);
  14305. }
  14306. case 5: //Pot
  14307. {
  14308. RefundingNumber[playerid] = 999;
  14309. PlayerInfo[giveplayerid][pPot] = amount; //edit
  14310. format(string, sizeof(string), "* You have set %s's Pot to %d.", giveplayer, amount); //edit
  14311. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14312. format(string, sizeof(string), "* An Admin has set your Pot to %d.", amount); //edit
  14313. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14314. DisplayDialogForPlayer(playerid, 47); //refund
  14315. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Pot to %d", day, month, year, sendername, giveplayer, amount); //edit
  14316. StatLog(string);
  14317. }
  14318. case 6: //Arms Dealer
  14319. {
  14320. RefundingNumber[playerid] = 999;
  14321. //
  14322. new lvl;
  14323. if(amount == 1) { lvl = 0;}
  14324. else if(amount == 2) { lvl = 50; }
  14325. else if(amount == 3) { lvl = 100; }
  14326. else if(amount == 4) { lvl = 200; }
  14327. else if(amount == 5) { lvl = 400; }
  14328. else if(amount == 6) { lvl = 600; }
  14329. else if(amount == 7) { lvl = 900; }
  14330. else if(amount == 8) { lvl = 1300; }
  14331. else if(amount == 9) { lvl = 2000; }
  14332. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14333. PlayerInfo[giveplayerid][pArmsSkill] = lvl; //edit
  14334. //
  14335. format(string, sizeof(string), "* You have set %s's Arms Dealer Level to %d.", giveplayer, amount); //edit
  14336. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14337. format(string, sizeof(string), "* An Admin has set your Arms Dealer Level to %d.", amount); //edit
  14338. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14339. DisplayDialogForPlayer(playerid, 47); //refund
  14340. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Arms Dealer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14341. StatLog(string);
  14342. }
  14343. case 7: //Carjacker
  14344. {
  14345. RefundingNumber[playerid] = 999;
  14346. //
  14347. new lvl;
  14348. if(amount == 1) { lvl = 0;}
  14349. else if(amount == 2) { lvl = 50; }
  14350. else if(amount == 3) { lvl = 100; }
  14351. else if(amount == 4) { lvl = 200; }
  14352. else if(amount == 5) { lvl = 400; }
  14353. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14354. PlayerInfo[giveplayerid][pJackSkill] = lvl; //edit
  14355. //
  14356. format(string, sizeof(string), "* You have set %s's Car Jacker Level to %d.", giveplayer, amount); //edit
  14357. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14358. format(string, sizeof(string), "* An Admin has set your Car Jacker Level to %d.", amount); //edit
  14359. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14360. DisplayDialogForPlayer(playerid, 47); //refund
  14361. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Car Jacker Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14362. StatLog(string);
  14363. }
  14364. case 8: //Detective
  14365. {
  14366. RefundingNumber[playerid] = 999;
  14367. //
  14368. new lvl;
  14369. if(amount == 1) { lvl = 0;}
  14370. else if(amount == 2) { lvl = 50; }
  14371. else if(amount == 3) { lvl = 100; }
  14372. else if(amount == 4) { lvl = 200; }
  14373. else if(amount == 5) { lvl = 400; }
  14374. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14375. PlayerInfo[giveplayerid][pDetSkill] = lvl; //edit
  14376. //
  14377. format(string, sizeof(string), "* You have set %s's Detective Level to %d.", giveplayer, amount); //edit
  14378. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14379. format(string, sizeof(string), "* An Admin has set your Detective Level to %d.", amount); //edit
  14380. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14381. DisplayDialogForPlayer(playerid, 47); //refund
  14382. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Detective Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14383. StatLog(string);
  14384. }
  14385. case 9: //Lawyer
  14386. {
  14387. RefundingNumber[playerid] = 999;
  14388. //
  14389. new lvl;
  14390. if(amount == 1) { lvl = 0;}
  14391. else if(amount == 2) { lvl = 50; }
  14392. else if(amount == 3) { lvl = 100; }
  14393. else if(amount == 4) { lvl = 200; }
  14394. else if(amount == 5) { lvl = 400; }
  14395. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14396. PlayerInfo[giveplayerid][pLawSkill] = lvl; //edit
  14397. //
  14398. format(string, sizeof(string), "* You have set %s's Lawyer Level to %d.", giveplayer, amount); //edit
  14399. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14400. format(string, sizeof(string), "* An Admin has set your Lawyer Level to %d.", amount); //edit
  14401. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14402. DisplayDialogForPlayer(playerid, 47); //refund
  14403. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Lawyer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14404. StatLog(string);
  14405. }
  14406. case 10: //Mechanic
  14407. {
  14408. RefundingNumber[playerid] = 999;
  14409. //
  14410. new lvl;
  14411. if(amount == 1) { lvl = 0;}
  14412. else if(amount == 2) { lvl = 50; }
  14413. else if(amount == 3) { lvl = 100; }
  14414. else if(amount == 4) { lvl = 200; }
  14415. else if(amount == 5) { lvl = 400; }
  14416. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14417. PlayerInfo[giveplayerid][pMechSkill] = lvl; //edit
  14418. //
  14419. format(string, sizeof(string), "* You have set %s's Mechanic Level to %d.", giveplayer, amount); //edit
  14420. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14421. format(string, sizeof(string), "* An Admin has set your Mechanic Level to %d.", amount); //edit
  14422. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14423. DisplayDialogForPlayer(playerid, 47); //refund
  14424. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Mechanic Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14425. StatLog(string);
  14426. }
  14427. case 11: //Drug Dealer
  14428. {
  14429. RefundingNumber[playerid] = 999;
  14430. //
  14431. new lvl;
  14432. if(amount == 1) { lvl = 0;}
  14433. else if(amount == 2) { lvl = 50; }
  14434. else if(amount == 3) { lvl = 100; }
  14435. else if(amount == 4) { lvl = 200; }
  14436. else if(amount == 5) { lvl = 400; }
  14437. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14438. PlayerInfo[giveplayerid][pDrugsSkill] = lvl; //edit
  14439. //
  14440. PlayerInfo[giveplayerid][pDrugsSkill] = amount; //edit
  14441. format(string, sizeof(string), "* You have set %s's Drug Dealer Level to %d.", giveplayer, amount); //edit
  14442. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14443. format(string, sizeof(string), "* An Admin has set your Drug Dealer Level to %d.", amount); //edit
  14444. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14445. DisplayDialogForPlayer(playerid, 47); //refund
  14446. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Drug Dealer Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14447. StatLog(string);
  14448. }
  14449. case 12: //Sex
  14450. {
  14451. RefundingNumber[playerid] = 999;
  14452. //
  14453. new lvl;
  14454. if(amount == 1) { lvl = 0;}
  14455. else if(amount == 2) { lvl = 50; }
  14456. else if(amount == 3) { lvl = 100; }
  14457. else if(amount == 4) { lvl = 200; }
  14458. else if(amount == 5) { lvl = 400; }
  14459. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14460. PlayerInfo[giveplayerid][pSexSkill] = lvl; //edit
  14461. //
  14462. PlayerInfo[giveplayerid][pSexSkill] = amount; //edit
  14463. format(string, sizeof(string), "* You have set %s's Sex Level to %d.", giveplayer, amount); //edit
  14464. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14465. format(string, sizeof(string), "* An Admin has set your Sex Level to %d.", amount); //edit
  14466. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14467. DisplayDialogForPlayer(playerid, 47); //refund
  14468. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Sex Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14469. StatLog(string);
  14470. }
  14471. case 13: //Boxing
  14472. {
  14473. RefundingNumber[playerid] = 999;
  14474. //
  14475. new lvl;
  14476. if(amount == 1) { lvl = 0;}
  14477. else if(amount == 2) { lvl = 50; }
  14478. else if(amount == 3) { lvl = 100; }
  14479. else if(amount == 4) { lvl = 200; }
  14480. else if(amount == 5) { lvl = 400; }
  14481. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14482. PlayerInfo[giveplayerid][pBoxSkill] = lvl; //edit
  14483. //
  14484. format(string, sizeof(string), "* You have set %s's Boxing Level to %d.", giveplayer, amount); //edit
  14485. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14486. format(string, sizeof(string), "* An Admin has set your Boxing Level to %d.", amount); //edit
  14487. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14488. DisplayDialogForPlayer(playerid, 47); //refund
  14489. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Boxing Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14490. StatLog(string);
  14491. }
  14492. case 14: //Fishing
  14493. {
  14494. RefundingNumber[playerid] = 999;
  14495. //
  14496. new lvl;
  14497. if(amount == 1) { lvl = 0;}
  14498. else if(amount == 2) { lvl = 50; }
  14499. else if(amount == 3) { lvl = 100; }
  14500. else if(amount == 4) { lvl = 200; }
  14501. else if(amount == 5) { lvl = 400; }
  14502. else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); DisplayDialogForPlayer(playerid, 47); return 1; } //edit
  14503. PlayerInfo[giveplayerid][pFishSkill] = lvl; //edit
  14504. //
  14505. format(string, sizeof(string), "* You have set %s's Fishing Level to %d.", giveplayer, amount); //edit
  14506. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  14507. format(string, sizeof(string), "* An Admin has set your Fishing Level to %d.", amount); //edit
  14508. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  14509. DisplayDialogForPlayer(playerid, 47); //refund
  14510. format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Fishing Level to %d", day, month, year, sendername, giveplayer, amount); //edit
  14511. StatLog(string);
  14512. }
  14513. default:
  14514. {
  14515. DisplayDialogForPlayer(playerid, 47); //refund
  14516. SendClientMessage(giveplayerid, COLOR_GREY, " Invalid stat code !");
  14517. return 1;
  14518. }
  14519. }
  14520. }
  14521. }
  14522. if(dialogid == 47) //refund
  14523. {
  14524. if(!response)
  14525. {
  14526. RefundingID[playerid] = 999;
  14527. }
  14528. if(response)
  14529. {
  14530. new string[128];
  14531. new statname[32];
  14532. new giveplayer[MAX_PLAYER_NAME];
  14533. GetPlayerName(RefundingID[playerid], giveplayer, sizeof(giveplayer));
  14534. switch(listitem)
  14535. {
  14536. case 0:
  14537. {
  14538. RefundingNumber[playerid] = 0;
  14539. statname = "Level";
  14540. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14541. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14542. }
  14543. case 1:
  14544. {
  14545. RefundingNumber[playerid] = 1;
  14546. statname = "Cash";
  14547. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14548. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14549. }
  14550. case 2:
  14551. {
  14552. RefundingNumber[playerid] = 2;
  14553. statname = "Bank";
  14554. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14555. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14556. return 1;
  14557. }
  14558. case 3:
  14559. {
  14560. RefundingNumber[playerid] = 3;
  14561. statname = "Materials";
  14562. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14563. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14564. }
  14565. case 4:
  14566. {
  14567. RefundingNumber[playerid] = 4;
  14568. statname = "Crack";
  14569. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14570. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14571. }
  14572. case 5:
  14573. {
  14574. RefundingNumber[playerid] = 5;
  14575. statname = "Pot";
  14576. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14577. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14578. }
  14579. case 6:
  14580. {
  14581. RefundingNumber[playerid] = 6;
  14582. statname = "Arms Dealer Skill";
  14583. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14584. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14585. }
  14586. case 7:
  14587. {
  14588. RefundingNumber[playerid] = 7;
  14589. statname = "Carjacker Skill";
  14590. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14591. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14592. }
  14593. case 8:
  14594. {
  14595. RefundingNumber[playerid] = 8;
  14596. statname = "Detective Skill";
  14597. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14598. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14599. }
  14600. case 9:
  14601. {
  14602. RefundingNumber[playerid] = 9;
  14603. statname = "Lawyer Skill";
  14604. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14605. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14606. }
  14607. case 10:
  14608. {
  14609. RefundingNumber[playerid] = 10;
  14610. statname = "Mechanic Skill";
  14611. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14612. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14613. }
  14614. case 11:
  14615. {
  14616. RefundingNumber[playerid] = 11;
  14617. statname = "Drug Dealer Skill";
  14618. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14619. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14620. }
  14621. case 12:
  14622. {
  14623. RefundingNumber[playerid] = 12;
  14624. statname = "Sex Skill";
  14625. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14626. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14627. }
  14628. case 13:
  14629. {
  14630. RefundingNumber[playerid] = 13;
  14631. statname = "Boxing Skill";
  14632. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14633. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14634. }
  14635. case 14:
  14636. {
  14637. RefundingNumber[playerid] = 14;
  14638. statname = "Fishing Skill";
  14639. format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
  14640. ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
  14641. }
  14642. }
  14643. return 1;
  14644. }
  14645. }
  14646. if(dialogid == 59)
  14647. {
  14648. if(response)
  14649. {
  14650. if(strlen(inputtext))
  14651. {
  14652. new string[256];
  14653. new amount = strval(inputtext);
  14654. if(amount < 1)
  14655. {
  14656. SendClientMessage(playerid, COLOR_GREY, " You can't withdraw negative amounts !");
  14657. return 1;
  14658. }
  14659. if(PlayerInfo[playerid][pAccount] < amount)
  14660. {
  14661. format(string, sizeof(string), "Information:\n\nLos Santos Bank has denied your card.\nThe amount of money ($%d), you want to withdraw, is over your bank till ($%d).", amount, PlayerInfo[playerid][pAccount]);
  14662. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_MSGBOX, "Los Santos ATM", string, "Done", "Cancel");
  14663. return 1;
  14664. }
  14665. PlayerInfo[playerid][pAccount] -= amount;
  14666. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+amount;
  14667. GivePlayerMoney(playerid,amount);
  14668. format(string, sizeof(string), "Information:\n\nLos Santos Bank has replied.\nYou have withdrawn $%d from your bank acount.\nNew balance: $%d", amount, PlayerInfo[playerid][pAccount]);
  14669. ShowPlayerDialog(playerid, 61, DIALOG_STYLE_MSGBOX, "Los Santos ATM", string, "Done", "Cancel");
  14670. format(string, sizeof(string), "* %s takes their cash out of the machine and puts their card in their pocket.", PlayerName(playerid));
  14671. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  14672. return 1;
  14673. }
  14674. }
  14675. return 1;
  14676. }
  14677. if(dialogid == 60 || dialogid == 61)
  14678. {
  14679. if(response) { }
  14680. return 1;
  14681. }
  14682. if(dialogid == 62)
  14683. {
  14684. if(response)
  14685. {
  14686. if(listitem == 0)
  14687. {
  14688. if(PlayerInfo[playerid][pDonateRank] >= 1)
  14689. {
  14690. if(PlayerInfo[playerid][pVipColor] == 0)
  14691. {
  14692. PlayerInfo[playerid][pVipColor] = 1;
  14693. SendClientMessage(playerid, 0x80008000, " Your name is now colored!");
  14694. SetPlayerToTeamColor(playerid);
  14695. }
  14696. else if(PlayerInfo[playerid][pVipColor] == 1)
  14697. {
  14698. PlayerInfo[playerid][pVipColor] = 0;
  14699. SendClientMessage(playerid, COLOR_GRAD2, " Your name is no longer colored.");
  14700. SetPlayerToTeamColor(playerid);
  14701. }
  14702. }
  14703. }
  14704. if(listitem == 1) // car tune
  14705. {
  14706. new tempid = GetPlayerVehicleID(playerid);
  14707. if(!IsPlayerInAnyVehicle(playerid))
  14708. {
  14709. SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
  14710. return 1;
  14711. }
  14712. if(IsAPlane(tempid) || IsAHelicopter(tempid) || IsABike(tempid) || IsATrain(tempid) || IsABoat(tempid))
  14713. {
  14714. SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
  14715. return 1;
  14716. }
  14717. ShowPlayerDialog(playerid, 63, DIALOG_STYLE_LIST, "Tune Menu","Colors\nPaintjobs\nWheels\nHydraulics", "Select", "Cancel");
  14718. }
  14719. if(listitem == 2) // skin
  14720. {
  14721. SetPlayerSkin(playerid, VIPSkins[random(sizeof(VIPSkins))]);
  14722. }
  14723. }
  14724. return 1;
  14725. }
  14726. if(dialogid == 63)
  14727. {
  14728. if(response)
  14729. {
  14730. if(listitem == 0) // Colors
  14731. {
  14732. ShowPlayerDialog(playerid, 64, DIALOG_STYLE_LIST, "Vehicle Color","Black\nWhite\nDark Blue\nLight Blue\nGreen\nYellow\nPink\nRed", "Change", "Cancel");
  14733. }
  14734. if(listitem == 1) // Paintjobs
  14735. {
  14736. ShowPlayerDialog(playerid, 65, DIALOG_STYLE_LIST, "Paint Jobs","Style1\nStyle2\nStyle3", "Change", "Cancel");
  14737. }
  14738. if(listitem == 2) // Wheels
  14739. {
  14740. ShowPlayerDialog(playerid, 66, DIALOG_STYLE_LIST, "Wheels","Style 1 \nStyle 2 \nStyle 3 \nStyle 4 \nStyle 5 \nStyle 6", "Change", "Cancel");
  14741. }
  14742. if(listitem == 3) // Hydraulics
  14743. {
  14744. new vipcar = GetPlayerVehicleID(playerid);
  14745. if(!IsPlayerInAnyVehicle(playerid))
  14746. {
  14747. SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
  14748. return 1;
  14749. }
  14750. if(IsAPlane(vipcar) || IsAHelicopter(vipcar) || IsABike(vipcar) || IsATrain(vipcar) || IsABoat(vipcar))
  14751. {
  14752. SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
  14753. return 1;
  14754. }
  14755. AddVehicleComponent(vipcar, 1087);
  14756. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14757. }
  14758. }
  14759. return 1;
  14760. }
  14761. if(dialogid == 64)
  14762. {
  14763. if(response)
  14764. {
  14765. new vipcar = GetPlayerVehicleID(playerid);
  14766. if(listitem == 0) // black
  14767. {
  14768. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14769. ChangeVehicleColor(vipcar,0,0);
  14770. CarInfo[vipcar][tColorOne] = 0;
  14771. CarInfo[vipcar][tColorTwo] = 0;
  14772. }
  14773. if(listitem == 1) //White
  14774. {
  14775. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14776. ChangeVehicleColor(vipcar,1,1);
  14777. CarInfo[vipcar][tColorOne] = 1;
  14778. CarInfo[vipcar][tColorTwo] = 1;
  14779. }
  14780. if(listitem == 2) //Dark Blue
  14781. {
  14782. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14783. ChangeVehicleColor(vipcar,425,425);
  14784. CarInfo[vipcar][tColorOne] = 425;
  14785. CarInfo[vipcar][tColorTwo] = 425;
  14786. }
  14787. if(listitem == 3) // Light Blue
  14788. {
  14789. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14790. ChangeVehicleColor(vipcar,2,2);
  14791. CarInfo[vipcar][tColorOne] = 2;
  14792. CarInfo[vipcar][tColorTwo] = 2;
  14793. }
  14794. if(listitem == 4) //Green
  14795. {
  14796. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14797. ChangeVehicleColor(vipcar,16,16);
  14798. CarInfo[vipcar][tColorOne] = 16;
  14799. CarInfo[vipcar][tColorTwo] = 16;
  14800. }
  14801. if(listitem == 5) //Yellow
  14802. {
  14803. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14804. ChangeVehicleColor(vipcar,6,6);
  14805. CarInfo[vipcar][tColorOne] = 6;
  14806. CarInfo[vipcar][tColorTwo] = 6;
  14807. }
  14808. if(listitem == 6) //Pink
  14809. {
  14810. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14811. ChangeVehicleColor(vipcar,146,146);
  14812. CarInfo[vipcar][tColorOne] = 146;
  14813. CarInfo[vipcar][tColorTwo] = 146;
  14814. }
  14815. if(listitem == 7) // Red
  14816. {
  14817. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14818. ChangeVehicleColor(vipcar,3,3);
  14819. CarInfo[vipcar][tColorOne] = 3;
  14820. CarInfo[vipcar][tColorTwo] = 3;
  14821. }
  14822. }
  14823. return 1;
  14824. }
  14825. if(dialogid == 65)
  14826. {
  14827. if(response)
  14828. {
  14829. new vipcar = GetPlayerVehicleID(playerid);
  14830. if(listitem == 0) // style 1
  14831. {
  14832. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14833. ChangeVehiclePaintjob(vipcar,0);
  14834. CarInfo[vipcar][tPaintjob] = 0;
  14835. }
  14836. if(listitem == 1) //Style 2
  14837. {
  14838. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14839. ChangeVehiclePaintjob(vipcar,1);
  14840. CarInfo[vipcar][tPaintjob] = 1;
  14841. }
  14842. if(listitem == 2) //style 3
  14843. {
  14844. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  14845. ChangeVehiclePaintjob(vipcar,2);
  14846. CarInfo[vipcar][tPaintjob] = 2;
  14847. }
  14848. }
  14849. return 1;
  14850. }
  14851. if(dialogid == 66)
  14852. {
  14853. if(response)
  14854. {
  14855. new vipcar = GetPlayerVehicleID(playerid);
  14856. if(!IsPlayerInAnyVehicle(playerid))
  14857. {
  14858. SendClientMessage(playerid,COLOR_GREY," You are not in a vehicle!");
  14859. return 1;
  14860. }
  14861. if(IsAPlane(vipcar) || IsAHelicopter(vipcar) || IsABike(vipcar) || IsATrain(vipcar) || IsABoat(vipcar))
  14862. { //in case they somehow bypass the /vip check
  14863. SendClientMessage(playerid,COLOR_GREY," You can't mod this!");
  14864. return 1;
  14865. }
  14866.  
  14867. if(listitem == 0) // style 1
  14868. {
  14869. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14870. AddVehicleComponent(vipcar,1084);
  14871. }
  14872. if(listitem == 1) //Style 2
  14873. {
  14874. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14875. AddVehicleComponent(vipcar,1073);
  14876. }
  14877. if(listitem == 2) //Style 3
  14878. {
  14879. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14880. AddVehicleComponent(vipcar,1075);
  14881. }
  14882. if(listitem == 3) //Style 4
  14883. {
  14884. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14885. AddVehicleComponent(vipcar,1077);
  14886. }
  14887. if(listitem == 4) //Style 5
  14888. {
  14889. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14890. AddVehicleComponent(vipcar,1079);
  14891. }
  14892. if(listitem == 5) //Style 6
  14893. {
  14894. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  14895. AddVehicleComponent(vipcar,1080);
  14896. }
  14897. }
  14898. return 1;
  14899. }
  14900. if(dialogid == 67) //LSFMD
  14901. {
  14902. if(response)
  14903. {
  14904. if(listitem == 0)
  14905. {
  14906. if(JobDuty[playerid] == 1)
  14907. {
  14908. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Medic Job and will not receive calls anymore.");
  14909. JobDuty[playerid] = 0;
  14910. SetPlayerColor(playerid, TCOLOR_WHITE);
  14911. Medics -= 1;
  14912. }
  14913. else
  14914. {
  14915. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Medic Job and will receive calls from people in need.");
  14916. JobDuty[playerid] = 1;
  14917. SetPlayerColor(playerid, TCOLOR_PARAMEDIC);
  14918. Medics += 1;
  14919. }
  14920. }
  14921. if(listitem == 1)
  14922. {
  14923. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
  14924. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  14925. TogglePlayerControllable(playerid, 0);
  14926. SelectChar[playerid] = 255;
  14927. SelectCharPlace[playerid] = 1;
  14928. if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  14929. else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  14930. else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  14931. else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  14932. else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  14933. else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  14934. else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  14935. else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  14936. else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  14937. else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  14938. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  14939. ChangeUniform[playerid] = 1;
  14940. }
  14941. if(listitem == 2)
  14942. {
  14943. ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Gear","Fire Extinguisher $50\nDeagle $1000\nKevlar $2000\n","Purchase","Cancel"); //Gear
  14944. }
  14945. }
  14946. }
  14947. if(dialogid == 68)
  14948. {
  14949. if(response)
  14950. {
  14951. if(listitem == 0) // Fire Extinguisher
  14952. {
  14953. if(PlayerInfo[playerid][pCash] < 50)
  14954. {
  14955. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  14956. TogglePlayerControllable(playerid,1);
  14957. return 1;
  14958. }
  14959. else
  14960. {
  14961. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50;
  14962. GivePlayerMoney(playerid,-50);
  14963. GivePlayerGun(playerid, 42);
  14964. TogglePlayerControllable(playerid,1);
  14965. }
  14966. }
  14967. if(listitem == 1) // Deagle
  14968. {
  14969. if(PlayerInfo[playerid][pCash] < 1000)
  14970. {
  14971. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  14972. TogglePlayerControllable(playerid,1);
  14973. return 1;
  14974. }
  14975. else
  14976. {
  14977. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  14978. GivePlayerMoney(playerid,-1000);
  14979. GivePlayerWeapon(playerid, 24, 999999);
  14980. PlayerInfo[playerid][pGun2] = 24;
  14981. TogglePlayerControllable(playerid,1);
  14982. }
  14983. }
  14984. if(listitem == 2) //Kevlar
  14985. {
  14986. if(PlayerInfo[playerid][pCash] < 2000)
  14987. {
  14988. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  14989. TogglePlayerControllable(playerid,1);
  14990. return 1;
  14991. }
  14992. else
  14993. {
  14994. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-2000;
  14995. GivePlayerMoney(playerid,-2000);
  14996. SetPlayerArmour(playerid,100);
  14997. TogglePlayerControllable(playerid,1);
  14998. }
  14999. }
  15000. }
  15001. }
  15002.  
  15003.  
  15004. if(dialogid == 79) // Help
  15005. {
  15006. if(response)
  15007. {
  15008. if(listitem == 0) DisplayDialogForPlayer(playerid, 80); // Account Help
  15009. if(listitem == 1) DisplayDialogForPlayer(playerid, 81); // General Help
  15010. if(listitem == 2) DisplayDialogForPlayer(playerid, 82); // Chat Help
  15011. if(listitem == 3) DisplayDialogForPlayer(playerid, 83); // Toggle Help
  15012. if(listitem == 4) DisplayDialogForPlayer(playerid, 84); // Bank Help
  15013. if(listitem == 5) DisplayDialogForPlayer(playerid, 16); // Job Help
  15014. if(listitem == 6) // Faction
  15015. {
  15016. if(PlayerInfo[playerid][pMember] == 0) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of a faction."); }
  15017. DisplayDialogForPlayer(playerid, 85); // Faction Help
  15018. return 1;
  15019. }
  15020. if(listitem == 7) // Family
  15021. {
  15022. if(PlayerInfo[playerid][pFMember] == 255) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of a family."); }
  15023. DisplayDialogForPlayer(playerid, 86); // Family Help
  15024. return 1;
  15025. }
  15026. if(listitem == 8) // Admin
  15027. {
  15028. if(PlayerInfo[playerid][pAdmin] < 1) { return SendClientMessage(playerid,COLOR_GRAD1,"You are not authorized to use this help box."); }
  15029. DisplayDialogForPlayer(playerid, 87); // Admin Help
  15030. return 1;
  15031. }
  15032. if(listitem == 9) DisplayDialogForPlayer(playerid, 88); // Other Help
  15033. if(listitem == 10) DisplayDialogForPlayer(playerid, 89); // Business Help
  15034. if(listitem == 11) ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
  15035. }
  15036. }
  15037. if(dialogid == 80)
  15038. {
  15039. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Account: /stats, /skill, /levelup, /upgrade, /resetupgrades, /changepass, /signcheck.");
  15040. }
  15041. if(dialogid == 81)
  15042. {
  15043. if(response)
  15044. {
  15045. SendClientMessage(playerid, COLOR_GRAD1, "General: /pay, /give, /time, /buy, /drink, /(show)licenses, /setalarm, /buyhouse, /(join/quit)event, /animlist /sellmats.");
  15046. SendClientMessage(playerid, COLOR_GRAD1, "General: /stopani, /tie, /untie, /frisk, /drop, /report, /cancel, /id, /flipcoin, /breakin, /(un)blindfold /helpme.");
  15047. SendClientMessage(playerid, COLOR_GRAD1, "General: /eject, /usepot, /usecrack, /kill, /contract, /fill, /service, /families, /sellcar, /pickweed, /checkweed.");
  15048. }
  15049. }
  15050. if(dialogid == 82)
  15051. {
  15052. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Chat: (/w)hisper, (/o)oc, (/s)hout, (/b)localooc, (/ad)vertise, /me, /do, /low, (/int)ercom, /speakon.");
  15053. }
  15054. if(dialogid == 83) //
  15055. {
  15056. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Toggles: /togooc, /tognewbie, /tognews, /togfam, /togwhisper, /togphone, /togwt, /togfuel, /togalarm");
  15057. }
  15058. if(dialogid == 84) //
  15059. {
  15060. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Bank: /withdraw, /deposit, /atm, /wiretransfer");
  15061. }
  15062. if(dialogid == 85) //
  15063. {
  15064. if(response)
  15065. {
  15066. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // LSPD
  15067. {
  15068. SendClientMessage(playerid, COLOR_GRAD1, " LSPD: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
  15069. SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
  15070. SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
  15071. }
  15072. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
  15073. {
  15074. SendClientMessage(playerid, COLOR_GRAD1, " FBI: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
  15075. SendClientMessage(playerid, COLOR_GRAD1, " FBI: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
  15076. SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
  15077. }
  15078. if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) // SAST
  15079. {
  15080. SendClientMessage(playerid, COLOR_GRAD1, " SAST: (/r)adio (/d)epartments (/m)egaphone (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
  15081. SendClientMessage(playerid, COLOR_GRAD1, " SAST: /take /ticket (/gov)ernment /deliver /clothes /(un)invite /ouninvite /giverank /deployspikes /deletespike(s)");
  15082. SendClientMessage(playerid, COLOR_GRAD1, " LSPD: /crb /rrb /rrball /armshield /backshield");
  15083. }
  15084. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // LSFMD
  15085. {
  15086. SendClientMessage(playerid, COLOR_GRAD1, " LSFMD: (/r)adio (/d)epartments (/m)egaphone /heal /duty /clothes /(un)invite /ouninvite /giverank");
  15087. }
  15088. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //Prison Guards
  15089. {
  15090. SendClientMessage(playerid, COLOR_GRAD1, " Prison Guards: (/r)adio (/d)epartments (/m)egaphone (/su)spect /ng /mdc /detain /wanted /cuff /giverank /tazer");
  15091. SendClientMessage(playerid, COLOR_GRAD1, " Prison Guards: /take /ticket (/gov)ernment /deliver /(un)invite /ouninvite /deployspikes /deletespike(s)");
  15092. }
  15093. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
  15094. {
  15095. SendClientMessage(playerid, COLOR_GRAD1, " Senate: (/r)adio /clothes /settax /taxwithdraw /(un)invite /ouninvite /giverank /senate");
  15096. }
  15097. if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) // Sector 9
  15098. {
  15099. SendClientMessage(playerid, COLOR_GRAD1, " Sector 9: (/r)adio (/d)epartments (/su)spect /lspd /mdc /detain /arrest /wanted /cuff /tazer");
  15100. SendClientMessage(playerid, COLOR_GRAD1, " Sector 9: /take /ticket /deliver /clothes /(un)invite /ouninvite /giverank /changeclothes /showbadge");
  15101. }
  15102. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) // Hitman Agency
  15103. {
  15104. SendClientMessage(playerid, COLOR_GRAD1, " Hitman Agency: (/f)amily /contracts /givehit /order /ranks /profile /disguise /plantbomb /pickupbomb /clothes /(un)invite /ouninvite /giverank");
  15105. }
  15106. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) // News Agency
  15107. {
  15108. SendClientMessage(playerid, COLOR_GRAD1, " News Reporter: /live /news [text] /clothes /(un)invite /ouninvite /giverank");
  15109. }
  15110. if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) // Taxi Cab Company
  15111. {
  15112. SendClientMessage(playerid, COLOR_GRAD1, " Taxi Company: /fare /clothes /(un)invite /ouninvite /giverank");
  15113. }
  15114. }
  15115. }
  15116. if(dialogid == 86) //
  15117. {
  15118. if(response) SendClientMessage(playerid, COLOR_GRAD1, " Family: (/f)amily, /adjust, /fwithdraw, /fdeposit, /fsafe, /fstats, /clothes");
  15119. }
  15120. if(dialogid == 87) //
  15121. {
  15122. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Admin: (/a)dmin, (/ah)elp, /ahousehelp, /abizhelp, /acarhelp");
  15123. }
  15124. if(dialogid == 88) //
  15125. {
  15126. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Other: /cellphonehelp, /househelp, /fishhelp, /irchelp");
  15127. }
  15128. if(dialogid == 89) //
  15129. {
  15130. if(response) SendClientMessage(playerid, COLOR_GRAD1, "Business: /sellbiz, /sellbiztomarket, /biz, /buybiz");
  15131. }
  15132.  
  15133. if(dialogid == 8711)
  15134. {
  15135. if(response == 1)
  15136. {
  15137. new string[128];
  15138. new biz = PlayerInfo[playerid][pInBiz];
  15139. switch(listitem)
  15140. {
  15141. case 0:
  15142. {
  15143. if(!(PlayerInfo[playerid][pPnumber] == 0))
  15144. {
  15145. SendClientMessage(playerid, COLOR_GRAD2, " You already have a cell phone !");
  15146. return 1;
  15147. }
  15148. if(PlayerInfo[playerid][pCash] > 499)
  15149. {
  15150. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  15151. GivePlayerMoney(playerid,-500);
  15152. new randphone = 1000 + random(8999);//minimum 1000 max 9999
  15153. PlayerInfo[playerid][pPnumber] = randphone;
  15154. format(string, sizeof(string), "~r~-$%d", 500);
  15155. GameTextForPlayer(playerid, string, 5000, 1);
  15156. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  15157. format(string, sizeof(string), "Mobile phone purchased, your new phone number is %d.", randphone);
  15158. SendClientMessage(playerid, COLOR_GRAD4, string);
  15159. SendClientMessage(playerid, COLOR_GRAD5, "You can check this anytime by typing /stats.");
  15160. SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /help to see your cell phone commands.");
  15161. if(BizInfo[biz][bOwned] == 1)
  15162. {
  15163. BizInfo[biz][bTill] += 500;
  15164. BizInfo[biz][bProducts]--;
  15165. }
  15166. return 1;
  15167. }
  15168. else
  15169. {
  15170. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  15171. }
  15172. }
  15173. case 1:
  15174. {
  15175. if(PlayerInfo[playerid][pCash] > 349)
  15176. {
  15177. if(PlayerInfo[playerid][pPhoneBook] == 1)
  15178. return SendClientMessage(playerid, COLOR_GREY, "You already have a phonebook!");
  15179.  
  15180. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-350;
  15181. GivePlayerMoney(playerid,-350);
  15182. PlayerInfo[playerid][pPhoneBook] = 1;
  15183. format(string, sizeof(string), "~r~-$%d", 350);
  15184. GameTextForPlayer(playerid, string, 5000, 1);
  15185. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  15186. SendClientMessage(playerid, COLOR_GRAD4, "Phonebook purchased, you can now look up other players numbers.");
  15187. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name> or /address <id/name>");
  15188. if(BizInfo[biz][bOwned] == 1)
  15189. {
  15190. BizInfo[biz][bTill] += 350;
  15191. BizInfo[biz][bProducts]--;
  15192. }
  15193. return 1;
  15194. }
  15195. else
  15196. {
  15197. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  15198. }
  15199. }
  15200. case 2:
  15201. {
  15202. ShowPlayerDialog(playerid, 8712, DIALOG_STYLE_LIST, "Buy Phone Credit", "25 $150\n50 $500\n250 $1,000", "Select", "Cancel");
  15203. }
  15204. case 3:
  15205. {
  15206. ShowPlayerDialog(playerid, 8713, DIALOG_STYLE_INPUT, "Number Information", "Enter the phone number you would like to lookup.", "Lookup", "Cancel");
  15207. }
  15208. }
  15209. }
  15210. }
  15211. if(dialogid == 8712)
  15212. {
  15213. if(response == 1)
  15214. {
  15215. new string[128];
  15216. new biz = PlayerInfo[playerid][pInBiz];
  15217. switch(listitem)
  15218. {
  15219. case 0:
  15220. {
  15221. if(PlayerInfo[playerid][pCredits] > 2975)
  15222. {
  15223. SendClientMessage(playerid, COLOR_GREY, "Your phone doesn't support more than 3000 credits.");
  15224. return 1;
  15225. }
  15226. if(PlayerInfo[playerid][pCash] > 149)
  15227. {
  15228. PlayerInfo[playerid][pCredits] += 25;
  15229. SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 25 credits.");
  15230. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-150;
  15231. GivePlayerMoney(playerid,-150);
  15232. format(string, sizeof(string), "~r~-$%d", 150);
  15233. GameTextForPlayer(playerid, string, 5000, 1);
  15234. if(BizInfo[biz][bOwned] == 1)
  15235. {
  15236. BizInfo[biz][bTill] += 150;
  15237. BizInfo[biz][bProducts]--;
  15238. }
  15239. return 1;
  15240. }
  15241. else
  15242. {
  15243. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  15244. return 1;
  15245. }
  15246. }
  15247. case 1:
  15248. {
  15249. if(PlayerInfo[playerid][pCredits] > 2975)
  15250. {
  15251. SendClientMessage(playerid, COLOR_GREY, "Your phone doesn't support more than 3000 credits.");
  15252. return 1;
  15253. }
  15254. if(PlayerInfo[playerid][pCash] > 499)
  15255. {
  15256. PlayerInfo[playerid][pCredits] += 100;
  15257. SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 100 credits.");
  15258. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  15259. GivePlayerMoney(playerid,-500);
  15260. format(string, sizeof(string), "~r~-$%d", 500);
  15261. GameTextForPlayer(playerid, string, 5000, 1);
  15262. if(BizInfo[biz][bOwned] == 1)
  15263. {
  15264. BizInfo[biz][bTill] += 500;
  15265. BizInfo[biz][bProducts]--;
  15266. }
  15267. return 1;
  15268. }
  15269. else
  15270. {
  15271. SendClientMessage(playerid, COLOR_GREY, " You don't have the cash for that !");
  15272. return 1;
  15273. }
  15274. }
  15275. case 2:
  15276. {
  15277. if(PlayerInfo[playerid][pCredits] > 2975)
  15278. {
  15279. SendClientMessage(playerid, COLOR_GREY, " Your phone doesn't support more than 3000 credits !");
  15280. return 1;
  15281. }
  15282. if(PlayerInfo[playerid][pCash] > 990)
  15283. {
  15284. PlayerInfo[playerid][pCredits] += 250;
  15285. SendClientMessage(playerid, COLOR_GRAD4, "You have topped up your phone with 250 credits.");
  15286. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  15287. GivePlayerMoney(playerid,-1000);
  15288. format(string, sizeof(string), "~r~-$%d", 1000);
  15289. GameTextForPlayer(playerid, string, 5000, 1);
  15290. if(BizInfo[biz][bOwned] == 1)
  15291. {
  15292. BizInfo[biz][bTill] += 1000;
  15293. BizInfo[biz][bProducts]--;
  15294. }
  15295. return 1;
  15296. }
  15297. else
  15298. {
  15299. SendClientMessage(playerid, COLOR_GREY, "You don't have the cash for that.");
  15300. return 1;
  15301. }
  15302. }
  15303. }
  15304. }
  15305. }
  15306. if(dialogid == 8713)
  15307. {
  15308. if(response == 1)
  15309. {
  15310. new string[128], string2[128], string3[128];
  15311. for(new i = 0; i < MAX_PLAYERS; i++)
  15312. {
  15313. new number = strval(inputtext);
  15314. if(PlayerInfo[i][pPnumber] == number)
  15315. {
  15316. new sex[64];
  15317. if(PlayerInfo[i][pSex] == 1)
  15318. sex = "Male";
  15319. else if(PlayerInfo[i][pSex] == 2)
  15320. sex = "Female";
  15321.  
  15322. format(string, sizeof(string), "Name: %s", PlayerName(i));
  15323. format(string2, sizeof(string2), "Age: %d", PlayerInfo[i][pAge]);
  15324. format(string3, sizeof(string3), "Sex: %s", sex);
  15325. SendClientMessage(playerid, COLOR_WHITE, string);
  15326. SendClientMessage(playerid, COLOR_WHITE, string2);
  15327. SendClientMessage(playerid, COLOR_WHITE, string3);
  15328. return 1;
  15329. }
  15330. }
  15331. SendClientMessage(playerid, COLOR_GREY, "Unknown Phone Number!");
  15332. }
  15333. }
  15334. if(dialogid == LOADTHECASH) // /loadcash
  15335. {
  15336. if(response)
  15337. {
  15338. if(listitem == 0) //Opt 1 - 50k-500k - 6 min of loading
  15339. {
  15340. LoadingCash = 1;
  15341. LoadingCashType[playerid] = 1;
  15342. LoadingCashTime[playerid] = 6;
  15343. }
  15344. if(listitem == 1) //Opt 2 - 50k-1m - 15 min of loading
  15345. {
  15346. LoadingCash = 1;
  15347. LoadingCashType[playerid] = 2;
  15348. LoadingCashTime[playerid] = 10;
  15349. }
  15350. if(listitem == 2) //Opt 3 - 100k-1.5m - 15 min of loading
  15351. {
  15352. LoadingCash = 1;
  15353. LoadingCashType[playerid] = 3;
  15354. LoadingCashTime[playerid] = 15;
  15355. }
  15356. new str[128];
  15357. format(str, sizeof(str), "** %s begins loading the bag with cash.", PlayerName(playerid));
  15358. ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  15359. OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  15360. SetTimerEx("RobBank", 1, false, "d", playerid);
  15361. SetTimerEx("RobBankMove", 1, false, "d", playerid);
  15362. return 1;
  15363. }
  15364. }
  15365.  
  15366. if(dialogid == CRACKTHEVAULT) //Bank robbery
  15367. {
  15368. if(response)
  15369. {
  15370. new points = PlayerInfo[playerid][pWantedLevel];
  15371. new pass = strval(inputtext);
  15372. if (pass == VPass)
  15373. {
  15374. SendClientMessage(playerid, COLOR_YELLOW, " You are now wanted, the LSPD will be informed soon !");
  15375. SendClientMessage(playerid, COLOR_GREEN, " You successfully unlocked the vault. It must be opened (( /openvault )) and the cash must be loaded (( /loadcash )) in the next 30 seconds!");
  15376. PlayerInfo[playerid][pWantedLevel] =5;
  15377. SetPlayerWantedLevel(playerid, 5);
  15378. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  15379. SetTimer("CashLoadCheck", 30000, 0);
  15380. BankRobbery = 1;
  15381. return 1;
  15382. }
  15383. else
  15384. {
  15385. SendClientMessage(playerid, COLOR_YELLOW, " You are now wanted for attempting to rob the bank !");
  15386. SendClientMessage(playerid, COLOR_RED, " Wrong password!");
  15387. PlayerInfo[playerid][pWantedLevel] = points+1;
  15388. SetPlayerWantedLevel(playerid, points+1);
  15389. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  15390. }
  15391. return 1;
  15392. }
  15393. return 1;
  15394. }
  15395.  
  15396. if(dialogid == 69) //LSPD Password
  15397. {
  15398. if(response)
  15399. {
  15400. new pass = strval(inputtext);
  15401. if (pass == Pass[LSPD])
  15402. {
  15403. MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
  15404. MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
  15405. MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
  15406. MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
  15407. LSPD_Door[Opened] = 1; LSPD_Door[TimerID]= SetTimer("PDDoorCheck", 3000, 0);
  15408. return 1;
  15409. }
  15410. else
  15411. {
  15412. new lspdstring[256];
  15413. format(lspdstring,sizeof(lspdstring),"\n {FF0000} Wrong Password\n\n Access denied");
  15414. ShowPlayerDialog(playerid,61,DIALOG_STYLE_MSGBOX ,"{0101DF}Los Santos Police Department",lspdstring, "Exit", "");
  15415. }
  15416. return 1;
  15417. }
  15418. return 1;
  15419. }
  15420.  
  15421. if(dialogid == FBI1) //FBI
  15422. {
  15423. if(response)
  15424. {
  15425. if(listitem == 0)
  15426. {
  15427. new string[128];
  15428. new sendername[MAX_PLAYER_NAME];
  15429. if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
  15430. {
  15431. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  15432. format(string, sizeof(string), "* Agent %s takes a Badge and Gun from their locker.", sendername);
  15433. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  15434. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
  15435. GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
  15436. GivePlayerWeapon(playerid, 41, 999999); PlayerInfo[playerid][pGun9] = 41; //spray
  15437. GivePlayerWeapon(playerid, 3, 1); PlayerInfo[playerid][pGun1] = 3; //nitestick
  15438. SetPlayerArmour(playerid, 100.0);
  15439. PlayerInfo[playerid][pOnDuty] = 1;
  15440. TogglePlayerControllable(playerid,1);
  15441. }
  15442. else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
  15443. {
  15444. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  15445. format(string, sizeof(string), "* Agent %s places a Badge and Gun in their locker.", sendername);
  15446. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  15447. SetPlayerColor(playerid, TCOLOR_WHITE);
  15448. PlayerInfo[playerid][pGun2] = 0;
  15449. PlayerInfo[playerid][pGun9] = 0;
  15450. PlayerInfo[playerid][pGun1] = 0;
  15451. ResetPlayerWeapons(playerid);
  15452. SetPlayerArmour(playerid, 0.0);
  15453. PlayerInfo[playerid][pOnDuty] = 0;
  15454. TogglePlayerControllable(playerid,1);
  15455. }
  15456. }
  15457. if(listitem == 1)
  15458. {
  15459. new undercoverskins[5];
  15460. undercoverskins[0] = 17;
  15461. undercoverskins[1] = 185;
  15462. undercoverskins[2] = 46;
  15463. undercoverskins[3] = 73;
  15464. undercoverskins[4] = 72;
  15465. new randomnumber = random(sizeof(undercoverskins));
  15466. SetPlayerSkin(playerid, undercoverskins[randomnumber]);
  15467. PlayerInfo[playerid][pModel] = undercoverskins[randomnumber];
  15468. TogglePlayerControllable(playerid,1);
  15469. }
  15470. if(listitem == 2)
  15471. {
  15472. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
  15473. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  15474. TogglePlayerControllable(playerid, 0);
  15475. SelectChar[playerid] = 255;
  15476. SelectCharPlace[playerid] = 1;
  15477. if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  15478. else if(PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  15479. else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  15480. else if(PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  15481. else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  15482. else if(PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 288; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  15483. else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  15484. else if(PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  15485. else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pMember]; }
  15486. else if(PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 165; SelectCharID[playerid] = PlayerInfo[playerid][pLeader]; }
  15487. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  15488. ChangeUniform[playerid] = 1;
  15489. }
  15490. if(listitem == 3)
  15491. {
  15492. ShowPlayerDialog(playerid, FBI2, DIALOG_STYLE_LIST, "FBI", "Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nMask $15,000","Purchase","Cancel");
  15493. }
  15494. if(listitem == 4)
  15495. {
  15496. if(PlayerInfo[playerid][pRank] < 2)
  15497. {
  15498. SendClientMessage(playerid, COLOR_GREY, " Only TACTICAL Officers are able to use this !");
  15499. TogglePlayerControllable(playerid,1);
  15500. return 1;
  15501. }
  15502. SetPlayerSkin( playerid, 285 );
  15503. DisplayDialogForPlayer(playerid, 12); //Swat Menu
  15504. }
  15505. if(listitem == 5)
  15506. {
  15507. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to clear.");
  15508. LSPDClearing[playerid] = 1;
  15509. }
  15510. if(listitem == 6)
  15511. {
  15512. SendClientMessage(playerid, COLOR_YELLOW,"Please type the name of the player you want to release.");
  15513. LSPDClearing[playerid] = 2;
  15514. }
  15515. }
  15516. }
  15517. if(dialogid == FBI2)
  15518. {
  15519. if(response)
  15520. {
  15521. if(listitem == 0) // Mace
  15522. {
  15523. if(PlayerInfo[playerid][pCash] < 20)
  15524. {
  15525. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15526. TogglePlayerControllable(playerid,1);
  15527. return 1;
  15528. }
  15529. else
  15530. {
  15531. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  15532. GivePlayerMoney(playerid,-20);
  15533. GivePlayerWeapon(playerid, 41, 999999);
  15534. PlayerInfo[playerid][pGun9] = 41;
  15535. TogglePlayerControllable(playerid,1);
  15536. }
  15537. }
  15538. if(listitem == 1) // Night Stick
  15539. {
  15540. if(PlayerInfo[playerid][pCash] < 20)
  15541. {
  15542. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15543. TogglePlayerControllable(playerid,1);
  15544. return 1;
  15545. }
  15546. else
  15547. {
  15548. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-20;
  15549. GivePlayerMoney(playerid,-20);
  15550. GivePlayerWeapon(playerid, 3, 1);
  15551. PlayerInfo[playerid][pGun1] = 3;
  15552. TogglePlayerControllable(playerid,1);
  15553. }
  15554. }
  15555. if(listitem == 2) // Deagle
  15556. {
  15557. if(PlayerInfo[playerid][pCash] < 500)
  15558. {
  15559. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15560. TogglePlayerControllable(playerid,1);
  15561. return 1;
  15562. }
  15563. else
  15564. {
  15565. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  15566. GivePlayerMoney(playerid,-500);
  15567. GivePlayerWeapon(playerid, 24, 999999);
  15568. PlayerInfo[playerid][pGun2] = 24;
  15569. TogglePlayerControllable(playerid,1);
  15570. }
  15571. }
  15572. if(listitem == 3) //Shotgun
  15573. {
  15574. if(PlayerInfo[playerid][pCash] < 200)
  15575. {
  15576. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15577. TogglePlayerControllable(playerid,1);
  15578. return 1;
  15579. }
  15580. else
  15581. {
  15582. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  15583. GivePlayerMoney(playerid,-200);
  15584. GivePlayerWeapon(playerid, 25, 999999);
  15585. PlayerInfo[playerid][pGun3] = 25;
  15586. TogglePlayerControllable(playerid,1);
  15587. }
  15588. }
  15589. if(listitem == 4) //MP5
  15590. {
  15591. if(PlayerInfo[playerid][pCash] < 400)
  15592. {
  15593. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15594. TogglePlayerControllable(playerid,1);
  15595. return 1;
  15596. }
  15597. else
  15598. {
  15599. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-400;
  15600. GivePlayerMoney(playerid,-400);
  15601. GivePlayerWeapon(playerid, 29, 999999);
  15602. PlayerInfo[playerid][pGun4] = 29;
  15603. TogglePlayerControllable(playerid,1);
  15604. }
  15605. }
  15606. if(listitem == 5) //Rifle
  15607. {
  15608. if(PlayerInfo[playerid][pCash] < 1000)
  15609. {
  15610. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15611. TogglePlayerControllable(playerid,1);
  15612. return 1;
  15613. }
  15614. else
  15615. {
  15616. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  15617. GivePlayerMoney(playerid,-1000);
  15618. GivePlayerWeapon(playerid, 33, 999999);
  15619. PlayerInfo[playerid][pGun6] = 33;
  15620. TogglePlayerControllable(playerid,1);
  15621. }
  15622. }
  15623. if(listitem == 6) //M4
  15624. {
  15625. if(PlayerInfo[playerid][pCash] < 4000)
  15626. {
  15627. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15628. TogglePlayerControllable(playerid,1);
  15629. return 1;
  15630. }
  15631. else
  15632. {
  15633. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-4000;
  15634. GivePlayerMoney(playerid,-4000);
  15635. GivePlayerWeapon(playerid, 31, 999999);
  15636. PlayerInfo[playerid][pGun5] = 31;
  15637. TogglePlayerControllable(playerid,1);
  15638. }
  15639. }
  15640. if(listitem == 7) //Mask
  15641. {
  15642. if(PlayerInfo[playerid][pCash] < 15000)
  15643. {
  15644. SendClientMessage(playerid, COLOR_GREY, " You cant afford that !");
  15645. TogglePlayerControllable(playerid,1);
  15646. return 1;
  15647. }
  15648. else
  15649. {
  15650. if(PlayerInfo[playerid][pRank] > 3)
  15651. {
  15652. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
  15653. GivePlayerMoney(playerid,-15000);
  15654. HasBoughtMask[playerid] = 1;
  15655. TogglePlayerControllable(playerid,1);
  15656. }
  15657. else
  15658. {
  15659. SendClientMessage(playerid, COLOR_GREY, " You're not R4+ !");
  15660. TogglePlayerControllable(playerid,1);
  15661. return 1;
  15662. }
  15663. }
  15664. }
  15665. }
  15666. }
  15667.  
  15668. if(dialogid == VEHMENU1)
  15669. {
  15670. if(response)
  15671. {
  15672. if(listitem == 0) //
  15673. {
  15674. ShowPlayerDialog(playerid, VEHMENU2, DIALOG_STYLE_LIST, "Color List", "Red\nBlue\nPink\nBlack\nWhite\nYellow", "Color", "Cancel");
  15675. }
  15676. if(listitem == 1) //
  15677. {
  15678. ShowPlayerDialog(playerid, VEHMENU3, DIALOG_STYLE_LIST, "Modifications", "Nos\nHydralics\nRepair", "Accept", "Cancel");
  15679.  
  15680. }
  15681. }
  15682. }
  15683. if(dialogid == VEHMENU2)
  15684. {
  15685. if(response)
  15686. {
  15687. new vehicle;
  15688. vehicle = GetPlayerVehicleID(playerid);
  15689. if(listitem == 0) //
  15690. {
  15691. ChangeVehicleColor(vehicle, 3, 3);
  15692. PlayerPlaySound(playerid,1134,0,0,0);
  15693. }
  15694. if(listitem == 1) //
  15695. {
  15696. ChangeVehicleColor(vehicle, 2, 2);
  15697. PlayerPlaySound(playerid,1134,0,0,0);
  15698. }
  15699. if(listitem == 2) //
  15700. {
  15701. ChangeVehicleColor(vehicle, 126, 126);
  15702. PlayerPlaySound(playerid,1134,0,0,0);
  15703. }
  15704. if(listitem == 3) //
  15705. {
  15706. ChangeVehicleColor(vehicle, 0, 0);
  15707. PlayerPlaySound(playerid,1134,0,0,0);
  15708. }
  15709. if(listitem == 4) //
  15710. {
  15711. ChangeVehicleColor(vehicle, 1, 1);
  15712. PlayerPlaySound(playerid,1134,0,0,0);
  15713. }
  15714. if(listitem == 5) //
  15715. {
  15716. ChangeVehicleColor(vehicle, 6, 6);
  15717. PlayerPlaySound(playerid,1134,0,0,0);
  15718. }
  15719. }
  15720. }
  15721. if(dialogid == VEHMENU3)
  15722. {
  15723. if(response)
  15724. {
  15725. new vehicle;
  15726. vehicle = GetPlayerVehicleID(playerid);
  15727. if(listitem == 0) //
  15728. {
  15729. AddVehicleComponent(vehicle, 1010);
  15730. PlayerPlaySound(playerid,1133,0,0,0);
  15731. }
  15732. if(listitem == 1) //
  15733. {
  15734. AddVehicleComponent(vehicle, 1087);
  15735. PlayerPlaySound(playerid,1133,0,0,0);
  15736. }
  15737. if(listitem == 2) //
  15738. {
  15739. RepairVehicle(vehicle);
  15740. PlayerPlaySound(playerid,1133,0,0,0);
  15741. }
  15742. }
  15743. }
  15744. return 0;
  15745. }
  15746.  
  15747. public OnPlayerConnect(playerid)
  15748. {
  15749. if(IsPlayerNPC(playerid))
  15750. {
  15751. gPlayerLogged[playerid] = 1;
  15752. }
  15753. if(Security != 0)
  15754. {
  15755. SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
  15756. Kick(playerid);
  15757. return 1;
  15758. }
  15759. gPlayerAnimLibsPreloaded[playerid] = 0;
  15760. gActivePlayers[playerid]++;
  15761. numplayers++;
  15762. new plname[MAX_PLAYER_NAME];
  15763. new string[MAX_PLAYER_NAME];
  15764. GetPlayerName(playerid, plname, sizeof(plname));
  15765. SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; WTOnline[playerid] = 0; AlarmOnline[playerid] = 0;
  15766. SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; OldHealth[playerid] = 0.0; OldArmour[playerid] = 0.0;
  15767. GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; VehiclePrice[playerid] = 0; VehicleSellID[playerid] = 0;
  15768. TempKey[playerid] = 0; KeysOffer[playerid] = 999; KeysID[playerid] = 0; KeysOfferTo[playerid] = 999;
  15769. DefenseOffer[playerid] = 999; DefensePrice[playerid] = 0; FamilyOffer[playerid] = 999; FactionOffer[playerid] = 999; UserSprunk[playerid] = 0; VehicleOffer[playerid] = 999;
  15770. HousePrice[playerid] = 0; HouseSellID[playerid] = 0; HouseOffer[playerid] = 999; RentOffer[playerid] = 999; RentPrice[playerid] = 999; RentHouseID[playerid] = 999;
  15771. BizPrice[playerid] = 0; BizSellID[playerid] = 0; BizOffer[playerid] = 999; HoldingDetonator[playerid] = 0; Suitcaseaction[playerid] = 0;//HoldingSuitcase[playerid] = 0;
  15772. WithGlasses[playerid] = 0; Parrot[playerid] = 0; WithMask[playerid] = 0; WithHat[playerid] = 0; WithBandana[playerid] = 0; WithHelmet[playerid] = 0;
  15773. CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; KickPlayer[playerid] = 0; CP[playerid] = 0; HouseEditID[playerid] = 999; BizEditID[playerid] = 999;
  15774. UsedFind[playerid] = 0; FReloadTime[playerid] = 0; GotMats[playerid] = 0; TazerTime[playerid] = 0; LoadingCashType[playerid] = 0; LoadingCashTime[playerid] = 0; LoadedCash[playerid] = 0;
  15775. MoneyMessage[playerid] = 0; Condom[playerid] = 0; HasBoughtMask[playerid] = 0; PrisonCell[playerid] = 0; UsingSate[playerid] = 0; ZOOM[playerid] = 0;
  15776. oldsposx[playerid] = 0.0; oldsposy[playerid] = 0.0; oldsposz[playerid] = 0.0; newsposx[playerid] = 0.0; newsposy[playerid] = 0.0; newsposz[playerid] = 0.0;
  15777. STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerHadDeagle[playerid] = 0; PlayerHasTazer[playerid] = 0;
  15778. RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; AShield[playerid] = 0; BShield[playerid] = 0;
  15779. wrench[playerid] = 0; hammer[playerid] = 0; crowbar[playerid] = 0; chainsawdildo[playerid] = 0; flashlight[playerid] = 0; screwdriver[playerid] = 0; rake[playerid] = 0;
  15780. TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; RefillOffer[playerid] = 999; RefillPrice[playerid] = 0;
  15781. PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; Packages[playerid] = 0; Crates[playerid] = 0; PlayerCuffed[playerid] = 0;
  15782. ProdOffer[playerid] = 999; ProdPrice[playerid] = 0; ProdAmount[playerid] = 0; BMPurchased[playerid] = 0;
  15783. PlayerCuffedTime[playerid] = 0; RegistrationStep[playerid] = 0; JustReported[playerid] = 0;
  15784. SpectatedID[playerid] = 0; LSPDClearing[playerid] = 0; SelectDrug[playerid] = 0; HospitalTime[playerid] = 0; NoHospital[playerid] = 0;
  15785. HospitalSpawn[playerid] = 0; JailPrice[playerid] = 0; GoChase[playerid] = 999; PlayerHurt[playerid] = 0;
  15786. BoxWaitTime[playerid] = 0; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; PlayerBlinded[playerid] = 0;
  15787. BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; LawyerCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
  15788. FindTimePoints[playerid] = 0; FindTime[playerid] = 0; FindingID[playerid] = 0; JobDuty[playerid] = 0;
  15789. Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0; gLastCar[playerid] = 0; FishCount[playerid] = 0;
  15790. gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gFam[playerid] = 0;
  15791. gSpeedo[playerid] = 0; gVehicleLock[playerid] = 0; gGas[playerid] = 1; UseBMTimer[playerid] = 0;
  15792. gPlayerLogged[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerInfo[playerid][pVipColor] = 0;
  15793. PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; Called911[playerid] = 0;
  15794. TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
  15795. HandshakeOffer[playerid] = 999; HandshakeType[playerid] = 0; ContractOffer[playerid] = 999; ContractID[playerid] = 999; TutTime[playerid] = 0;
  15796. TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; Reqhelp[playerid] = 0; NoTP[playerid] = 0; NoSpec[playerid] = 0;
  15797. PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
  15798. CanTalk[playerid] = 0; PlayersChannel[playerid] = 999; BombInCar[playerid] = 0;
  15799. gPlayerSpawned[playerid] = 0;
  15800. TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
  15801. Locator[playerid] = 0; PlayerPaintballing[playerid] = 0; LockPicking[playerid] = 999; RecentlyShot[playerid] = 0;
  15802. PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; Fishes[playerid][pLastWeight] = 0;
  15803. ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; RefundingNumber[playerid] = 999; RefundingID[playerid] = 999; RampToggle[playerid] = 0;
  15804. FixCarTimer[playerid] = 0; PickLockTimer[playerid] = 0; SellCarTimer[playerid] = 0; StopAniTimer[playerid] = 0; UseDrugsTimer[playerid] = 0; UseAcceptTimer[playerid] = 0; SellGunTimer[playerid] = 0; UseTazerTimer[playerid] = 0; UseDrinkTimer[playerid] = 0; UseNewbieTimer[playerid] = 0; UseAdmCmdTimer[playerid] = 0; BombID[playerid] = 0; ChangePassTimer[playerid] = 0;
  15805. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  15806. aGun[playerid][0] = 0;
  15807. aGun[playerid][1] = 0;
  15808. aGun[playerid][2] = 0;
  15809. aGun[playerid][3] = 0;
  15810. aGun[playerid][4] = 0;
  15811. aGun[playerid][5] = 0;
  15812. aGun[playerid][6] = 0;
  15813. aGun[playerid][7] = 0;
  15814. aGun[playerid][8] = 0;
  15815. aGun[playerid][9] = 0;
  15816. aGun[playerid][10] = 0;
  15817. aGun[playerid][11] = 0;
  15818. aGun[playerid][12] = 0;
  15819. PlayerInfo[playerid][pLevel] = 0;
  15820. PlayerInfo[playerid][pAdmin] = 0;
  15821. PlayerInfo[playerid][pSpeakPhone] = 0;
  15822. PlayerInfo[playerid][pBand] = 0;
  15823. PlayerInfo[playerid][pPermBand] = 0;
  15824. PlayerInfo[playerid][pWarns] = 0;
  15825. PlayerInfo[playerid][pAWarns] = 0;
  15826. PlayerInfo[playerid][pDisabled] = 0;
  15827. PlayerInfo[playerid][pDonateRank] = 0;
  15828. PlayerInfo[playerid][pBanAppealer] = 0;
  15829. PlayerInfo[playerid][pGangMod] = 0;
  15830. PlayerInfo[playerid][pRequestingBackup] = 0;
  15831. PlayerInfo[playerid][gPupgrade] = 0;
  15832. PlayerInfo[playerid][pConnectTime] = 0;
  15833. PlayerInfo[playerid][pReg] = 0;
  15834. PlayerInfo[playerid][pSex] = 0;
  15835. PlayerInfo[playerid][pPrisonedBy] = 0;
  15836. PlayerInfo[playerid][pAdminJailed] = 0;
  15837. PlayerInfo[playerid][pAge] = 0;
  15838. PlayerInfo[playerid][pOrigin] = 0;
  15839. PlayerInfo[playerid][pExp] = 0;
  15840. PlayerInfo[playerid][pAccount] = 0;
  15841. PlayerInfo[playerid][pCrimes] = 0;
  15842. PlayerInfo[playerid][pKills] = 0;
  15843. PlayerInfo[playerid][pDeaths] = 0;
  15844. PlayerInfo[playerid][pCHits] = 0;
  15845. PlayerInfo[playerid][pHelper] = 0;
  15846. PlayerInfo[playerid][pFHits] = 0;
  15847. PlayerInfo[playerid][pArrested] = 0;
  15848. PlayerInfo[playerid][pPhoneBook] = 0;
  15849. PlayerInfo[playerid][pWatch] = 0;
  15850. PlayerInfo[playerid][pSuitcase] = 0;
  15851. PlayerInfo[playerid][pSuitcasecrack] = 0;
  15852. PlayerInfo[playerid][pSuitcasepot] = 0;
  15853. PlayerInfo[playerid][pSuitcasemats] = 0;
  15854. PlayerInfo[playerid][pToolbox] = 0;
  15855. PlayerInfo[playerid][pLotto] = 0;
  15856. PlayerInfo[playerid][pLottoNr] = 0;
  15857. PlayerInfo[playerid][pLottoNr2] = 0;
  15858. PlayerInfo[playerid][pLottoNr3] = 0;
  15859. PlayerInfo[playerid][pLottoNr4] = 0;
  15860. PlayerInfo[playerid][pLottoNr5] = 0;
  15861. PlayerInfo[playerid][pLottoNr6] = 0;
  15862. PlayerInfo[playerid][pPlayLotto] = 999;
  15863. PlayerInfo[playerid][pWinLotto] = 0;
  15864. PlayerInfo[playerid][pWinLotto2] = 0;
  15865. PlayerInfo[playerid][pFishes] = 0;
  15866. PlayerInfo[playerid][pBiggestFish] = 0;
  15867. PlayerInfo[playerid][pStealth] = 0;
  15868. PlayerInfo[playerid][pFakeIP] = 0;
  15869. PlayerInfo[playerid][pJob] = 0;
  15870. PlayerInfo[playerid][pPayCheck] = 0;
  15871. PlayerInfo[playerid][pJailed] = 0;
  15872. PlayerInfo[playerid][pJailTime] = 0;
  15873. PlayerInfo[playerid][pMats] = 0;
  15874. PlayerInfo[playerid][pCarParts] = 0;
  15875. PlayerInfo[playerid][pPot] = 0;
  15876. PlayerInfo[playerid][pCrack] = 0;
  15877. PlayerInfo[playerid][pLeader] = 0;
  15878. PlayerInfo[playerid][pMember] = 0;
  15879. PlayerInfo[playerid][pSFMember] = 0;
  15880. PlayerInfo[playerid][pSFLeader] = 0;
  15881. PlayerInfo[playerid][pFMember] = 255;
  15882. PlayerInfo[playerid][pGang] = 0;
  15883. PlayerInfo[playerid][pRank] = 0;
  15884. PlayerInfo[playerid][pFRank] = 0;
  15885. PlayerInfo[playerid][pChangeRank] = 0;
  15886. PlayerInfo[playerid][pDetSkill] = 0;
  15887. PlayerInfo[playerid][pSexSkill] = 0;
  15888. PlayerInfo[playerid][pBoxSkill] = 0;
  15889. PlayerInfo[playerid][pLawSkill] = 0;
  15890. PlayerInfo[playerid][pMechSkill] = 0;
  15891. PlayerInfo[playerid][pJackSkill] = 0;
  15892. PlayerInfo[playerid][pCarSkill] = 0;
  15893. PlayerInfo[playerid][pNewsSkill] = 0;
  15894. PlayerInfo[playerid][pDrugsSkill] = 0;
  15895. PlayerInfo[playerid][pArmsSkill] = 0;
  15896. // PlayerInfo[playerid][pTrashSkill] = 0; // Trashman
  15897. PlayerInfo[playerid][pSmugglerSkill] = 0;
  15898. PlayerInfo[playerid][pFishSkill] = 0;
  15899. PlayerInfo[playerid][pFightingStyle] = 4;
  15900. PlayerInfo[playerid][pArmor] = 0.0;
  15901. PlayerInfo[playerid][pHungry] = 0;
  15902. PlayerInfo[playerid][pThirsty] = 0;
  15903. PlayerInfo[playerid][pSHealth] = 0;
  15904. PlayerInfo[playerid][pInt] = 15;
  15905. PlayerInfo[playerid][pLocal] = 999;
  15906. PlayerInfo[playerid][pVirtualWorld] = 0;
  15907. PlayerInfo[playerid][pModel] = 299;
  15908. PlayerInfo[playerid][pClothes] = 0;
  15909. PlayerInfo[playerid][pPnumber] = 0;
  15910. PlayerInfo[playerid][pPbiskey] = 255;
  15911. PlayerInfo[playerid][pPaptkey] = 255;
  15912. PlayerInfo[playerid][pCarLic] = 1;
  15913. PlayerInfo[playerid][pMask] = 0;
  15914. PlayerInfo[playerid][pBlindfolds] = 0;
  15915. PlayerInfo[playerid][pFlyLic] = 1;
  15916. PlayerInfo[playerid][pBoatLic] = 1;
  15917. PlayerInfo[playerid][pFishLic] = 1;
  15918. PlayerInfo[playerid][pGunLic] = 1;
  15919. PlayerInfo[playerid][pCarTime] = 0;
  15920. PlayerInfo[playerid][pDrugsTime] = 0;
  15921. PlayerInfo[playerid][pLawyerTime] = 0;
  15922. PlayerInfo[playerid][pLawyerFreeTime] = 0;
  15923. PlayerInfo[playerid][pMechTime] = 0;
  15924. PlayerInfo[playerid][pSexTime] = 0;
  15925. PlayerInfo[playerid][pPayDay] = 0;
  15926. PlayerInfo[playerid][pPayDayHad] = 0;
  15927. PlayerInfo[playerid][pCDPlayer] = 0;
  15928. PlayerInfo[playerid][pDice] = 0;
  15929. PlayerInfo[playerid][pSpraycan] = 0;
  15930. PlayerInfo[playerid][pScrew] = 0;
  15931. PlayerInfo[playerid][pCrowbar] = 0;
  15932. PlayerInfo[playerid][pHammer] = 0;
  15933. PlayerInfo[playerid][pFlash] = 0;
  15934. PlayerInfo[playerid][pRake] = 0;
  15935. PlayerInfo[playerid][pWrench] = 0;
  15936. PlayerInfo[playerid][pRope] = 0;
  15937. PlayerInfo[playerid][pCigars] = 0;
  15938. PlayerInfo[playerid][pSprunk] = 0;
  15939. PlayerInfo[playerid][pCredits] = 0;
  15940. PlayerInfo[playerid][pDonuts] = 0;
  15941. PlayerInfo[playerid][pCookies] = 0;
  15942. PlayerInfo[playerid][pWT] = 0;
  15943. PlayerInfo[playerid][pWTc] = 0;
  15944. PlayerInfo[playerid][pBombs] = 0;
  15945. PlayerInfo[playerid][pScope] = 0;
  15946. PlayerInfo[playerid][pWins] = 0;
  15947. PlayerInfo[playerid][pLoses] = 0;
  15948. PlayerInfo[playerid][pTut] = 0;
  15949. PlayerInfo[playerid][pOnDuty] = 0;
  15950. PlayerInfo[playerid][pHospital] = 0;
  15951. PlayerInfo[playerid][pAdjustable] = 0;
  15952. PlayerInfo[playerid][pWantedLevel] = 0;
  15953. PlayerInfo[playerid][pNewbieMuted] = 0;
  15954. PlayerInfo[playerid][pReportMuted] = 0;
  15955. PlayerInfo[playerid][pAdMuted] = 0;
  15956. PlayerInfo[playerid][pSafeSpawn] = 0;
  15957. PlayerInfo[playerid][pSPos_x] = 0.0;
  15958. PlayerInfo[playerid][pSPos_y] = 0.0;
  15959. PlayerInfo[playerid][pSPos_z] = 0.0;
  15960. PlayerInfo[playerid][pSPos_r] = 0.0;
  15961. PlayerInfo[playerid][Lockpicking] = 0;
  15962. PlayerInfo[playerid][CLockpick] = 0;
  15963. PlayerInfo[playerid][HLockpick] = 999;
  15964. PlayerInfo[playerid][pCarKey1] = 0;
  15965. PlayerInfo[playerid][pCarKey2] = 0;
  15966. PlayerInfo[playerid][pCarKey3] = 0;
  15967. PlayerInfo[playerid][pRentKey] = 0;
  15968. PlayerInfo[playerid][pHouseKey] = 999;
  15969. PlayerInfo[playerid][pBizKey] = 999;
  15970. PlayerInfo[playerid][pInHouse] = 999;
  15971. PlayerInfo[playerid][pInBiz] = 999;
  15972. PlayerInfo[playerid][pInCar] = 0;
  15973. PlayerInfo[playerid][pRenthouse] = 999;
  15974. PlayerInfo[playerid][pProducts] = 0;
  15975. WeedIsPicked[playerid] = 0;
  15976. WeedTime[playerid] = 0;
  15977. WeedMin[playerid] = 0;
  15978. WeedTime[playerid] = 0;
  15979. WeedGrams[playerid] = 0;
  15980. WeedForPlayer[playerid] = 999;
  15981. WeedIsPicked[playerid] = 0;
  15982. HasPlantWeed[playerid] = 0;
  15983. //PlayerInfo[playerid][pSeeds] = 0;
  15984. TazerHolster[playerid] = 1;
  15985. ClearCrime(playerid);
  15986. ClearFishes(playerid);
  15987. ClearGuns(playerid);
  15988. ClearMarriage(playerid);
  15989. ClearAccent(playerid);
  15990. ClearIP(playerid);
  15991. ClearContract(playerid);
  15992. SetPlayerColor(playerid,TCOLOR_GREY);
  15993.  
  15994. // LSPD AND CITY HALL
  15995. CreateVehicle(525, 1585.5396, -1671.8325, 5.9000, -90.0000, -1, -1, 100);
  15996. CreateVehicle(523, 1558.4196, -1693.7843, 5.5000, 207.0000, -1, -1, 100);
  15997. CreateVehicle(523, 1559.9614, -1693.7628, 5.5000, 207.0000, -1, -1, 100);
  15998. CreateVehicle(523, 1561.7050, -1693.7235, 5.5000, 207.0000, -1, -1, 100);
  15999. CreateVehicle(525, 1585.3743, -1667.5565, 5.9000, -90.0000, -1, -1, 100);
  16000. CreateVehicle(528, 1601.1544, -1684.0786, 5.9000, -270.0000, -1, -1, 100);
  16001. CreateVehicle(528, 1601.5382, -1687.9204, 5.9000, -270.0000, -1, -1, 100);
  16002. CreateVehicle(528, 1601.7278, -1692.1237, 5.9000, -270.0000, -1, -1, 100);
  16003. CreateVehicle(528, 1601.8298, -1696.2258, 5.9000, -270.0000, -1, -1, 100);
  16004. CreateVehicle(528, 1602.1791, -1700.2231, 5.9000, -270.0000, -1, -1, 100);
  16005. CreateVehicle(528, 1602.5720, -1704.4551, 5.9000, -270.0000, -1, -1, 100);
  16006. CreateVehicle(601, 1530.4312, -1645.2939, 5.9000, -180.0000, -1, -1, 100);
  16007. CreateVehicle(601, 1534.6387, -1645.1539, 5.9000, 180.0000, -1, -1, 100);
  16008. CreateVehicle(601, 1538.4253, -1645.2725, 5.9000, 180.0000, -1, -1, 100);
  16009. CreateVehicle(490, 1544.9969, -1651.2014, 6.3000, 90.0000, -1, -1, 100);
  16010. CreateVehicle(490, 1544.9001, -1655.2278, 6.3000, 90.0000, -1, -1, 100);
  16011. CreateVehicle(490, 1544.7266, -1658.8112, 6.3000, 90.0000, -1, -1, 100);
  16012. CreateVehicle(596, 1544.3008, -1668.2274, 6.3000, 90.0000, -1, -1, 100);
  16013. CreateVehicle(596, 1544.1748, -1672.4298, 6.3000, 90.0000, -1, -1, 100);
  16014. CreateVehicle(598, 1544.3123, -1676.3267, 6.3000, 90.0000, -1, -1, 100);
  16015. CreateVehicle(598, 1544.2797, -1680.2941, 6.3000, 90.0000, -1, -1, 100);
  16016. CreateVehicle(598, 1544.5476, -1683.9263, 6.3000, 90.0000, -1, -1, 100);
  16017. CreateVehicle(598, 1529.6075, -1688.1121, 6.3000, 270.0000, -1, -1, 100);
  16018. CreateVehicle(598, 1529.6447, -1683.9005, 6.3000, 270.0000, -1, -1, 100);
  16019. CreateVehicle(596, 1558.4116, -1709.7119, 6.3000, 360.0000, -1, -1, 100);
  16020. CreateVehicle(599, 1564.6244, -1709.2957, 6.3000, 360.0000, -1, -1, 100);
  16021. CreateVehicle(596, 1569.9237, -1708.8081, 6.3000, 360.0000, -1, -1, 100);
  16022. CreateVehicle(599, 1574.1758, -1709.2635, 6.3000, 360.0000, -1, -1, 100);
  16023. CreateVehicle(599, 1579.0237, -1709.4092, 6.3000, 360.0000, -1, -1, 100);
  16024. CreateVehicle(599, 1583.4922, -1709.4017, 6.3000, 360.0000, -1, -1, 100);
  16025. CreateVehicle(596, 1587.5687, -1709.3534, 6.3000, 360.0000, -1, -1, 100);
  16026. CreateVehicle(596, 1591.4481, -1709.4288, 6.3000, 360.0000, -1, -1, 100);
  16027. CreateVehicle(596, 1595.4592, -1710.0826, 6.3000, 360.0000, -1, -1, 100);
  16028. CreateVehicle(596, 1561.6891, -1605.6901, 14.4375, 0.0000, -1, -1, 100);
  16029. CreateVehicle(596, 1564.9484, -1605.8159, 14.4375, 0.0000, -1, -1, 100);
  16030. CreateVehicle(596, 1567.7776, -1605.8296, 14.4375, 0.0000, -1, -1, 100);
  16031. CreateVehicle(599, 1576.3418, -1605.8481, 14.4375, 180.0000, -1, -1, 100);
  16032. CreateVehicle(599, 1580.0601, -1605.7533, 14.4375, 180.0000, -1, -1, 100);
  16033. CreateVehicle(596, 1604.6956, -1610.0343, 14.4375, 90.0000, -1, -1, 100);
  16034. CreateVehicle(596, 1604.8864, -1613.2399, 14.4375, 90.0000, -1, -1, 100);
  16035. CreateVehicle(596, 1604.8221, -1616.4774, 14.4375, 90.0000, -1, -1, 100);
  16036.  
  16037. // LSPD FENCES
  16038. CreateDynamicObject(970, 1538.92, -1680.06, 13.00, 0.00, 0.00, 270.00);
  16039. CreateDynamicObject(970, 1538.92, -1675.92, 13.00, 0.00, 0.00, 270.00);
  16040. CreateDynamicObject(970, 1538.90, -1669.76, 13.00, 0.00, 0.00, 270.00);
  16041. CreateDynamicObject(970, 1538.91, -1665.65, 13.00, 0.00, 0.00, 270.00);
  16042. CreateDynamicObject(970, 1536.84, -1663.68, 13.00, 0.00, 0.00, 360.00);
  16043. CreateDynamicObject(970, 1536.84, -1682.11, 13.00, 0.00, 0.00, 360.00);
  16044. CreateDynamicObject(970, 1536.07, -1696.08, 13.00, 0.00, 0.00, 309.00);
  16045. CreateDynamicObject(970, 1536.28, -1649.98, 13.00, 0.00, 0.00, 222.00);
  16046. CreateDynamicObject(970, 1534.77, -1684.18, 13.00, 0.00, 0.00, 270.00);
  16047. CreateDynamicObject(970, 1534.76, -1688.30, 13.00, 0.00, 0.00, 270.00);
  16048. CreateDynamicObject(970, 1534.77, -1692.41, 13.00, 0.00, 0.00, 270.00);
  16049. CreateDynamicObject(970, 1534.74, -1661.59, 13.00, 0.00, 0.00, 270.00);
  16050. CreateDynamicObject(970, 1534.73, -1657.48, 13.00, 0.00, 0.00, 270.00);
  16051. CreateDynamicObject(970, 1534.74, -1653.37, 13.00, 0.00, 0.00, 270.00);
  16052.  
  16053. // CITY HALL FENCES
  16054. CreateDynamicObject(982, 1536.34, -1739.94, 13.24, 0.00, 0.00, 270.00);
  16055. CreateDynamicObject(983, 1551.53, -1742.05, 13.24, 0.00, 0.00, 229.00);
  16056. CreateDynamicObject(982, 1510.73, -1739.94, 13.24, 0.00, 0.00, 270.00);
  16057. CreateDynamicObject(997, 1496.00, -1740.47, 12.94, 0.00, 0.00, 360.00);
  16058. CreateDynamicObject(983, 1495.70, -1742.24, 13.24, 0.00, 0.00, 316.00);
  16059. CreateDynamicObject(997, 1492.68, -1740.47, 12.94, 0.00, 0.00, 360.00);
  16060. CreateDynamicObject(997, 1489.40, -1740.48, 12.94, 0.00, 0.00, 360.00);
  16061. CreateDynamicObject(997, 1486.12, -1740.50, 12.94, 0.00, 0.00, 360.00);
  16062. CreateDynamicObject(997, 1482.83, -1740.49, 12.94, 0.00, 0.00, 360.00);
  16063. CreateDynamicObject(997, 1477.53, -1740.53, 12.94, 0.00, 0.00, 360.00);
  16064. CreateDynamicObject(997, 1474.21, -1740.55, 12.94, 0.00, 0.00, 360.00);
  16065. CreateDynamicObject(997, 1470.90, -1740.55, 12.94, 0.00, 0.00, 360.00);
  16066. CreateDynamicObject(997, 1467.62, -1740.56, 12.94, 0.00, 0.00, 360.00);
  16067. CreateDynamicObject(983, 1468.21, -1742.41, 13.24, 0.00, 0.00, -316.00);
  16068. CreateDynamicObject(982, 1453.22, -1740.11, 13.24, 0.00, 0.00, 270.00);
  16069. CreateDynamicObject(982, 1427.62, -1740.10, 13.24, 0.00, 0.00, 270.00);
  16070. CreateDynamicObject(983, 1412.30, -1742.06, 13.24, 0.00, 0.00, 308.00);
  16071. CreateDynamicMapIcon(1564.5457, -1675.3245, 61.8977, 30, 0); //lspd
  16072. CreateDynamicMapIcon(1461.8095, -1010.9515, 61.1702, 52, 0); //bank
  16073. CreateDynamicMapIcon(2143.5302, -2259.8565, 26.5776, 51, 0); //matfactory 01
  16074. CreateDynamicMapIcon(2287.9749, -1105.7727, 37.9766, 51, 0); //matfactory 02
  16075. CreateDynamicMapIcon(2166.3771, -1675.383, 15.0859, 24, 0); //drughouse
  16076. CreateDynamicMapIcon(2337.8855, -1185.4025, 35.5452, 16, 0); //crackhouse
  16077. CreateDynamicMapIcon(411.8294, -2050.2601, -0.4745, 9, 0); //pier
  16078. CreateDynamicMapIcon(545.6451,-1293.9248,17.2422, 56, 0); //job product dealer
  16079. CreateDynamicMapIcon(2329.4089, -2316.0997, 13.5468, 56, 0); //job mechanic
  16080. CreateDynamicMapIcon(2226.1716, -1718.1792, 13.5165, 56, 0); //job bodyguard
  16081. CreateDynamicMapIcon(1741.7062, -1863.6664, 13.5748, 56, 0); //job taxi
  16082. CreateDynamicMapIcon(1381.0413, -1088.8511, 27.3906, 56, 0); //job lawyer
  16083. CreateDynamicMapIcon(2048.4106, -1409.1826, 75.0372, 22, 0); //hospital 01
  16084. CreateDynamicMapIcon(1147.9742, -1344.0618, 49.2668, 22, 0); //hospital 02
  16085. CreateDynamicMapIcon(1498.4185, -2182.5278, 14.1682, 20, 0); //fire department
  16086. CreateDynamicMapIcon(63.9923, -305.5689, 1.5781, 11, 0); //drug factory
  16087. CreateDynamicMapIcon(612.8910, -564.9972, 26.1432, 30, 0); //PD
  16088. CreateDynamicMapIcon(1310.2244,-1368.6892,13.5526, 23, 0); //paintball skull
  16089. CreateDynamicMapIcon(-500.5291,-528.6747,25.5234, 51, 0); //matfactory 03
  16090.  
  16091. CreateDynamicMapIcon(2127.5000,-1132.6759,25.5434, 55, 0); //dealership
  16092. CreateDynamicMapIcon(2908.0735,-1947.3708,1.7212, 55, 0); //dealership
  16093. CreateDynamicMapIcon(2511.2219,-1522.7043,23.8508, 55, 0); //dealership
  16094. CreateDynamicMapIcon(1993.3129,-2615.2002,13.5469, 55, 0); //dealership
  16095. CreateDynamicMapIcon(1658.8696,-1708.0525,20.4844, 55, 0); //dealership
  16096. CreateDynamicMapIcon(459.4515,-1785.1748,5.5469, 55, 0); //dealership
  16097. CreateDynamicMapIcon(1791.1173,-1917.5496,13.3938, 55, 0); //dealership
  16098. CreateDynamicMapIcon(2270.0977,-2340.3416,13.5469, 27, 0); //mechanic garage
  16099.  
  16100.  
  16101. //LSPD+GYM_end
  16102. //House
  16103. CreateDynamicObject(19126, 1310.64, -630.77, 108.64, 0.00, 0.00, 0.00);
  16104. CreateDynamicObject(19126, 1356.42, -625.72, 110.20, 0.00, 0.00, 0.00);
  16105. CreateDynamicObject(19126, 1347.22, -604.20, 109.57, 0.00, 0.00, 0.00);
  16106. CreateDynamicObject(19126, 1332.58, -600.23, 108.56, 0.00, 0.00, 0.00);
  16107. CreateDynamicObject(19126, 1341.13, -600.01, 108.89, 0.00, 0.00, 0.00);
  16108. CreateDynamicObject(19126, 1324.03, -603.85, 108.32, 0.00, 0.00, 0.00);
  16109. CreateDynamicObject(19126, 1315.47, -609.24, 108.04, 0.00, 0.00, 0.00);
  16110. CreateDynamicObject(19126, 1302.77, -615.38, 107.20, 0.00, 0.00, 0.00);
  16111. CreateDynamicObject(19126, 1295.93, -617.46, 106.16, 0.00, 0.00, 0.00);
  16112. CreateDynamicObject(19126, 1290.09, -617.29, 105.28, 0.00, 0.00, 0.00);
  16113. CreateDynamicObject(19126, 1286.34, -624.88, 105.28, 0.00, 0.00, 0.00);
  16114. CreateDynamicObject(19126, 1293.85, -625.76, 105.29, 0.00, 0.00, 0.00);
  16115. CreateDynamicObject(19127, 1276.79, -616.88, 102.65, 0.00, 0.00, 0.00);
  16116. CreateDynamicObject(19127, 1285.78, -612.56, 102.29, 0.00, 0.00, 0.00);
  16117. CreateDynamicObject(19127, 1318.27, -653.11, 113.02, 0.00, 0.00, 0.00);
  16118. CreateDynamicObject(19127, 1313.86, -640.35, 113.02, 0.00, 0.00, 0.00);
  16119. CreateDynamicObject(19127, 1348.98, -628.35, 112.94, 0.00, 0.00, 0.00);
  16120. CreateDynamicObject(19127, 1360.85, -663.47, 112.90, 0.00, 0.00, 0.00);
  16121. CreateDynamicObject(19127, 1350.10, -667.15, 112.90, 0.00, 0.00, 0.00);
  16122. CreateDynamicObject(19127, 1342.24, -644.89, 112.90, 0.00, 0.00, 0.00);
  16123. CreateDynamicObject(4206, 1336.45, -650.74, 107.97, 0.00, 0.00, 0.00);
  16124. CreateDynamicObject(19121, 1321.77, -647.84, 108.63, 0.00, 0.00, 0.00);
  16125. CreateDynamicObject(19121, 1323.66, -647.21, 108.63, 0.00, 0.00, 0.00);
  16126. CreateDynamicObject(19121, 1328.59, -666.54, 108.63, 0.00, 0.00, 0.00);
  16127. CreateDynamicObject(19121, 1349.81, -666.60, 108.63, 0.00, 0.00, 0.00);
  16128. CreateDynamicObject(19121, 1360.48, -662.87, 108.63, 0.00, 0.00, 0.00);
  16129. CreateDynamicObject(19126, 1364.17, -607.44, 110.18, 0.00, 0.00, 0.00);
  16130. CreateDynamicObject(19126, 1368.11, -622.18, 110.18, 0.00, 0.00, 0.00);
  16131. CreateDynamicObject(19125, 1284.87, -597.08, 100.13, 0.00, 0.00, 0.00);
  16132. CreateDynamicObject(19125, 1291.73, -607.50, 100.38, 0.00, 0.00, 0.00);
  16133. CreateDynamicObject(19125, 1263.83, -619.67, 103.12, 0.00, 0.00, 0.00);
  16134. CreateDynamicObject(19125, 1255.42, -611.80, 103.12, 0.00, 0.00, 0.00);
  16135. CreateDynamicObject(19425, 1252.51, -614.15, 102.74, 0.00, 0.00, 100.00);
  16136. CreateDynamicObject(19425, 1253.08, -617.41, 102.74, 0.00, 0.00, 100.00);
  16137. CreateDynamicObject(19425, 1253.66, -620.66, 102.74, 0.00, 0.00, 100.00);
  16138. CreateDynamicObject(16151, 1334.22, -644.73, 108.44, 0.00, 0.00, 110.00);
  16139. CreateDynamicObject(19121, 1345.64, -649.75, 108.61, 0.00, 0.00, 0.00);
  16140. CreateDynamicObject(19121, 1342.49, -641.28, 108.61, 0.00, 0.00, 0.00);
  16141. CreateDynamicObject(19121, 1339.35, -645.87, 108.34, 0.00, 0.00, 0.00);
  16142. CreateDynamicObject(19121, 1329.55, -649.26, 108.35, 0.00, 0.00, 0.00);
  16143. CreateDynamicObject(19121, 1334.73, -643.69, 108.34, 0.00, 0.00, 0.00);
  16144. CreateDynamicObject(2209, 1330.09, -665.35, 108.05, 0.00, 0.00, 146.00);
  16145. CreateDynamicObject(1752, 1329.22, -665.11, 108.83, 0.00, 0.00, 150.00);
  16146. CreateDynamicObject(1795, 1317.57, -649.22, 108.12, 0.00, 0.00, 18.00);
  16147. CreateDynamicObject(1795, 1315.73, -643.75, 108.12, 0.00, 0.00, 18.00);
  16148. CreateDynamicObject(19121, 1313.84, -639.91, 108.63, 0.00, 0.00, 0.00);
  16149. CreateDynamicObject(19121, 1315.29, -644.70, 108.38, 0.00, 0.00, 0.00);
  16150. CreateDynamicObject(19126, 1305.97, -621.33, 105.79, 0.00, 0.00, 0.00);
  16151. CreateDynamicObject(19121, 1325.06, -656.47, 108.52, 0.00, 0.00, 0.00);
  16152. CreateDynamicObject(19121, 1338.15, -663.34, 108.63, 0.00, 0.00, 0.00);
  16153. CreateDynamicObject(19121, 1347.51, -660.08, 108.63, 0.00, 0.00, 0.00);
  16154. CreateDynamicObject(19121, 1320.41, -637.89, 108.63, 0.00, 0.00, 0.00);
  16155. CreateDynamicObject(966, 1283.77, -613.76, 102.05, 0.00, 0.00, 36.00);
  16156. CreateDynamicObject(967, 1285.36, -613.97, 101.84, 0.00, 0.00, 126.00);
  16157. CreateDynamicObject(968, 1283.75, -613.79, 102.93, 0.00, 0.00, 36.00);
  16158. //End house
  16159. //FBI HQ
  16160. CreateDynamicObject(19425, 1761.28, -1693.23, 12.42, 0.00, 0.00, 90.00);
  16161. CreateDynamicObject(19425, 1761.28, -1689.92, 12.42, 0.00, 0.00, 90.00);
  16162. CreateDynamicObject(19425, 1761.23, -1698.84, 12.42, 0.00, 0.00, 90.00);
  16163. CreateDynamicObject(19425, 1761.23, -1702.14, 12.42, 0.00, 0.00, 90.00);
  16164. CreateDynamicObject(996, 1803.25, -1721.93, 13.08, 0.00, 0.00, -2.00);
  16165. CreateDynamicObject(967, 1762.63, -1688.00, 12.38, 0.00, 0.00, 272.00);
  16166. CreateDynamicObject(966, 1762.03, -1695.91, 12.43, 0.00, 0.00, -90.00);
  16167. CreateDynamicObject(966, 1762.05, -1696.44, 12.43, 0.00, 0.00, 90.00);
  16168. CreateDynamicObject(967, 1762.61, -1704.63, 12.38, 0.00, 0.00, -91.00);
  16169. CreateDynamicObject(19126, 1761.96, -1697.09, 12.93, 0.00, 0.00, 0.00);
  16170. CreateDynamicObject(19126, 1762.01, -1695.20, 12.93, 0.00, 0.00, 0.00);
  16171. CreateDynamicObject(968, 1762.05, -1695.89, 13.09, 0.00, 0.00, 90.00);
  16172. CreateDynamicObject(968, 1762.05, -1696.49, 13.09, 0.00, 0.00, 90.00);
  16173. CreateDynamicObject(19126, 1754.97, -1688.16, 12.93, 0.00, 0.00, 0.00);
  16174. CreateDynamicObject(19126, 1755.17, -1704.46, 12.93, 0.00, 0.00, 0.00);
  16175. //FBI HQ END
  16176. //AMY MAPPING END
  16177.  
  16178. //dion
  16179. CreateDynamicMapIcon(1359.6918, 312.5298, 24.5555, 18, 0);
  16180. CreateDynamicMapIcon(1257.5867, 204.4746, 19.7174, 17, 0);
  16181. CreateDynamicMapIcon(1295.9426, 232.6621, 23.7565, 50, 0);
  16182. GetPlayerName(playerid, plname, sizeof(plname));
  16183. format(string, sizeof(string), "%s.ini", plname);
  16184. if(fexist(string))
  16185. {
  16186. gPlayerAccount[playerid] = 1;
  16187. SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That name is registered, please wait to login.");
  16188. SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now login by typing your password below.");
  16189. DisplayDialogForPlayer(playerid, 1); //login
  16190. return 1;
  16191. }
  16192. else
  16193. {
  16194. gPlayerAccount[playerid] = 0;
  16195. SendClientMessage(playerid,COLOR_YELLOW,"You dont have an account. Please register your account to proceed.");
  16196. DisplayDialogForPlayer(playerid, 2); //register
  16197. return 1;
  16198. }
  16199. }
  16200.  
  16201. public JoinChannel(playerid, number, line[])
  16202. {
  16203. if(IsPlayerConnected(playerid))
  16204. {
  16205. if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
  16206. {
  16207. JoinChannelNr(playerid, number);
  16208. }
  16209. else
  16210. {
  16211. SendClientMessage(playerid, COLOR_GREY, " Wrong Channel Password !");
  16212. }
  16213. }
  16214. return 1;
  16215. }
  16216.  
  16217. public JoinChannelNr(playerid, number)
  16218. {
  16219. if(IsPlayerConnected(playerid))
  16220. {
  16221. new string[128];
  16222. new sendername[MAX_PLAYER_NAME];
  16223. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  16224. if(PlayersChannel[playerid] < 999)
  16225. {
  16226. format(string, sizeof(string), "* %s has left the Channel.", sendername);
  16227. SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
  16228. IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
  16229. }
  16230. new channel; channel = number; channel += 1;
  16231. PlayersChannel[playerid] = number;
  16232. IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
  16233. new wstring[128];
  16234. format(string, sizeof(string), "%s", sendername);
  16235. strmid(wstring, string, 0, strlen(string), 255);
  16236. if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
  16237. {
  16238. format(string, sizeof(string), "* You have joined IRC Channel %d as the Administrator.", channel);
  16239. SendClientMessage(playerid, COLOR_YELLOW, string);
  16240. }
  16241. else
  16242. {
  16243. format(string, sizeof(string), "* You have joined IRC Channel %d, Admin: %s.", channel, IRCInfo[number][iAdmin]);
  16244. SendClientMessage(playerid, COLOR_YELLOW, string);
  16245. }
  16246. format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
  16247. SendClientMessage(playerid, COLOR_YELLOW, string);
  16248. format(string, sizeof(string), "* %s has joined the Channel.", sendername);
  16249. SendIRCMessage(number, COLOR_GREEN, string);
  16250. }
  16251. return 1;
  16252. }
  16253.  
  16254. public ClearAccent(playerid)
  16255. {
  16256. if(IsPlayerConnected(playerid))
  16257. {
  16258. new string[MAX_PLAYER_NAME];
  16259. format(string, sizeof(string), "none");
  16260. strmid(Accent[playerid], string, 0, strlen(string), 255);
  16261. }
  16262. return 1;
  16263. }
  16264.  
  16265. public ClearMarriage(playerid)
  16266. {
  16267. if(IsPlayerConnected(playerid))
  16268. {
  16269. new string[MAX_PLAYER_NAME];
  16270. format(string, sizeof(string), "Nobody");
  16271. strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
  16272. PlayerInfo[playerid][pMarried] = 0;
  16273. }
  16274. return 1;
  16275. }
  16276.  
  16277. public ClearContract(playerid)
  16278. {
  16279. if(IsPlayerConnected(playerid))
  16280. {
  16281. new string[MAX_PLAYER_NAME];
  16282. format(string, sizeof(string), "Nobody");
  16283. strmid(PlayerInfo[playerid][pContractBy], string, 0, strlen(string), 255);
  16284. PlayerInfo[playerid][pHeadValue] = 0;
  16285. }
  16286. return 1;
  16287. }
  16288.  
  16289. public ClearIP(playerid)
  16290. {
  16291. if(IsPlayerConnected(playerid))
  16292. {
  16293. new string[16];
  16294. format(string, sizeof(string), "None");
  16295. strmid(PlayerInfo[playerid][pIP], string, 0, strlen(string), 255);
  16296. }
  16297. return 1;
  16298. }
  16299.  
  16300. public ClearFamily(family)
  16301. {
  16302. ////foreach(Player, i)
  16303. for(new i; i<MAX_PLAYERS; i++)
  16304. {
  16305. if(IsPlayerConnected(i))
  16306. {
  16307. if(PlayerInfo[i][pFMember] == family)
  16308. {
  16309. SendClientMessage(i, COLOR_LIGHTBLUE, "* The Family you are in got deleted by an Admin, you were kicked.");
  16310. PlayerInfo[i][pFMember] = 255;
  16311. PlayerInfo[i][pFRank] = 0;
  16312. PlayerInfo[i][pModel] = 299;
  16313. SetPlayerSkin(i, 299);
  16314. }
  16315. }
  16316. }
  16317. new string[MAX_PLAYER_NAME];
  16318. format(string, sizeof(string), "None");
  16319. FamilyInfo[family][FamilyTaken] = 0;
  16320. strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
  16321. strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
  16322. strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
  16323. FamilyInfo[family][FamilyBank] = 0;
  16324. FamilyInfo[family][FamilyCash] = 0;
  16325. FamilyInfo[family][FamilySafe] = 0;
  16326. FamilyInfo[family][FamilySafePos][0] = 0.0;
  16327. FamilyInfo[family][FamilySafePos][1] = 0.0;
  16328. FamilyInfo[family][FamilySafePos][2] = 0.0;
  16329. FamilyInfo[family][FamilyPot] = 0;
  16330. FamilyInfo[family][FamilyCrack] = 0;
  16331. FamilyInfo[family][FamilyMats] = 0;
  16332. format(string, sizeof(string), "Outsider");
  16333. strmid(FamilyRank[family][0], string, 0, strlen(string), 255);
  16334. format(string, sizeof(string), "Associate");
  16335. strmid(FamilyRank[family][1], string, 0, strlen(string), 255);
  16336. format(string, sizeof(string), "Soldier");
  16337. strmid(FamilyRank[family][2], string, 0, strlen(string), 255);
  16338. format(string, sizeof(string), "Capo");
  16339. strmid(FamilyRank[family][3], string, 0, strlen(string), 255);
  16340. format(string, sizeof(string), "Underboss");
  16341. strmid(FamilyRank[family][4], string, 0, strlen(string), 255);
  16342. format(string, sizeof(string), "Godfather");
  16343. strmid(FamilyRank[family][5], string, 0, strlen(string), 255);
  16344. FamilyInfo[family][FamilyMembers] = 0;
  16345. DestroyDynamicPickup(FamilyInfo[family][PickupID]);
  16346. printf("DestroyPickup %d",FamilyInfo[family][PickupID]);
  16347. FamilyInfo[family][PickupID] = CreateDynamicPickup(1239, 23, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1], FamilyInfo[family][FamilySafePos][2]);
  16348. FamilyInfo[family][FStrikes] = 0;
  16349. SaveFamilies();
  16350. return 1;
  16351. }
  16352.  
  16353. public ClearCrime(playerid)
  16354. {
  16355. if(IsPlayerConnected(playerid))
  16356. {
  16357. PlayerInfo[playerid][pCrime][0] = 0;
  16358. PlayerInfo[playerid][pCrime][1] = 0;
  16359. PlayerInfo[playerid][pCrime][2] = 0;
  16360. PlayerInfo[playerid][pCrime][3] = 0;
  16361. PlayerInfo[playerid][pCrime][4] = 0;
  16362. PlayerInfo[playerid][pCrime][5] = 0;
  16363. strmid(PlayerInfo[playerid][pCrimeReporter0], "None", 0, strlen("None"), 255);
  16364. strmid(PlayerInfo[playerid][pCrimeReporter1], "None", 0, strlen("None"), 255);
  16365. strmid(PlayerInfo[playerid][pCrimeReporter2], "None", 0, strlen("None"), 255);
  16366. strmid(PlayerInfo[playerid][pCrimeReporter3], "None", 0, strlen("None"), 255);
  16367. strmid(PlayerInfo[playerid][pCrimeReporter4], "None", 0, strlen("None"), 255);
  16368. strmid(PlayerInfo[playerid][pCrimeReporter5], "None", 0, strlen("None"), 255);
  16369. strmid(PlayerInfo[playerid][pCrimeDate0], "0/0/0", 0, strlen("0/0/0"), 255);
  16370. strmid(PlayerInfo[playerid][pCrimeDate1], "0/0/0", 0, strlen("0/0/0"), 255);
  16371. strmid(PlayerInfo[playerid][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
  16372. strmid(PlayerInfo[playerid][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
  16373. strmid(PlayerInfo[playerid][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
  16374. strmid(PlayerInfo[playerid][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  16375. }
  16376. return 1;
  16377. }
  16378.  
  16379. stock ClearVIP(playerid)
  16380. {
  16381. if(IsPlayerConnected(playerid))
  16382. {
  16383. PlayerInfo[playerid][pDonateRank] = 0;
  16384. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your VIP has expired, if you wish to renew it, contact an Executive Admin.");
  16385. strmid(PlayerInfo[playerid][pVIPJoinDate], "0/0/0", 0, strlen("0/0/0"), 255);
  16386. strmid(PlayerInfo[playerid][pVIPExpDate], "0/0/0", 0, strlen("0/0/0"), 255);
  16387. }
  16388. }
  16389.  
  16390. public FishCost(playerid, fish)
  16391. {
  16392. if(IsPlayerConnected(playerid))
  16393. {
  16394. new cost = 0;
  16395. switch (fish)
  16396. {
  16397. case 1:
  16398. {
  16399. cost = 1;
  16400. }
  16401. case 2:
  16402. {
  16403. cost = 3;
  16404. }
  16405. case 3:
  16406. {
  16407. cost = 3;
  16408. }
  16409. case 5:
  16410. {
  16411. cost = 5;
  16412. }
  16413. case 6:
  16414. {
  16415. cost = 2;
  16416. }
  16417. case 8:
  16418. {
  16419. cost = 8;
  16420. }
  16421. case 9:
  16422. {
  16423. cost = 12;
  16424. }
  16425. case 11:
  16426. {
  16427. cost = 9;
  16428. }
  16429. case 12:
  16430. {
  16431. cost = 7;
  16432. }
  16433. case 14:
  16434. {
  16435. cost = 12;
  16436. }
  16437. case 15:
  16438. {
  16439. cost = 9;
  16440. }
  16441. case 16:
  16442. {
  16443. cost = 7;
  16444. }
  16445. case 17:
  16446. {
  16447. cost = 7;
  16448. }
  16449. case 18:
  16450. {
  16451. cost = 10;
  16452. }
  16453. case 19:
  16454. {
  16455. cost = 4;
  16456. }
  16457. case 21:
  16458. {
  16459. cost = 3;
  16460. }
  16461. }
  16462. return cost;
  16463. }
  16464. return 0;
  16465. }
  16466.  
  16467. public ClearFishes(playerid)
  16468. {
  16469. if(IsPlayerConnected(playerid))
  16470. {
  16471. new string[MAX_PLAYER_NAME];
  16472. Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
  16473. Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
  16474. Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
  16475. Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
  16476. format(string, sizeof(string), "None");
  16477. strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
  16478. strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
  16479. strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
  16480. strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
  16481. strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
  16482. }
  16483. return 1;
  16484. }
  16485.  
  16486. public ClearGuns(playerid)
  16487. {
  16488. if(IsPlayerConnected(playerid))
  16489. {
  16490. ResetPlayerWeapons(playerid);
  16491. PlayerInfo[playerid][pGun0] = 0;
  16492. PlayerInfo[playerid][pGun1] = 0;
  16493. PlayerInfo[playerid][pGun2] = 0;
  16494. PlayerInfo[playerid][pGun3] = 0;
  16495. PlayerInfo[playerid][pGun4] = 0;
  16496. PlayerInfo[playerid][pGun5] = 0;
  16497. PlayerInfo[playerid][pGun6] = 0;
  16498. PlayerInfo[playerid][pGun7] = 0;
  16499. PlayerInfo[playerid][pGun8] = 0;
  16500. PlayerInfo[playerid][pGun9] = 0;
  16501. PlayerInfo[playerid][pGun10] = 0;
  16502. PlayerInfo[playerid][pGun11] = 0;
  16503. PlayerInfo[playerid][pGun12] = 0;
  16504. PlayerInfo[playerid][pBombs] = 0;
  16505. PlayerInfo[playerid][pScope] = 0;
  16506. }
  16507. return 1;
  16508. }
  16509.  
  16510. public ClearFishID(playerid, fish)
  16511. {
  16512. if(IsPlayerConnected(playerid))
  16513. {
  16514. new string[MAX_PLAYER_NAME];
  16515. format(string, sizeof(string), "None");
  16516. switch (fish)
  16517. {
  16518. case 1:
  16519. {
  16520. strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
  16521. Fishes[playerid][pWeight1] = 0;
  16522. Fishes[playerid][pFid1] = 0;
  16523. }
  16524. case 2:
  16525. {
  16526. strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
  16527. Fishes[playerid][pWeight2] = 0;
  16528. Fishes[playerid][pFid2] = 0;
  16529. }
  16530. case 3:
  16531. {
  16532. strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
  16533. Fishes[playerid][pWeight3] = 0;
  16534. Fishes[playerid][pFid3] = 0;
  16535. }
  16536. case 4:
  16537. {
  16538. strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
  16539. Fishes[playerid][pWeight4] = 0;
  16540. Fishes[playerid][pFid4] = 0;
  16541. }
  16542. case 5:
  16543. {
  16544. strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
  16545. Fishes[playerid][pWeight5] = 0;
  16546. Fishes[playerid][pFid5] = 0;
  16547. }
  16548. }
  16549. }
  16550. return 1;
  16551. }
  16552.  
  16553. public Lotto(number)
  16554. {
  16555. new JackpotFallen = 0;
  16556. new string[128];
  16557. new winner[MAX_PLAYER_NAME];
  16558. format(string, sizeof(string), "Lottery News: Today the Winning Number has fallen on: %d.", number);
  16559. OOCOff(COLOR_WHITE, string);
  16560. ////foreach(Player, i)
  16561. for(new i; i<MAX_PLAYERS; i++)
  16562. {
  16563. if(IsPlayerConnected(i))
  16564. {
  16565. if(PlayerInfo[i][pLottoNr] > 0)
  16566. {
  16567. if(PlayerInfo[i][pLottoNr] == number)
  16568. {
  16569. JackpotFallen = 1;
  16570. GetPlayerNameEx(i, winner, sizeof(winner));
  16571. format(string, sizeof(string), "Lottery News: %s has won the Jackpot of $%d with their Lottery Ticket.", winner, Jackpot);
  16572. OOCOff(COLOR_WHITE, string);
  16573. format(string, sizeof(string), "* You have Won $%d with your Lottery Ticket.", Jackpot);
  16574. SendClientMessage(i, COLOR_YELLOW, string);
  16575. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]+Jackpot;
  16576. GivePlayerMoney(i, Jackpot);
  16577. }
  16578. else
  16579. {
  16580. SendClientMessage(i, COLOR_LIGHTBLUE, "* You haven't won with your Lottery Ticket this time.");
  16581. }
  16582. }
  16583. PlayerInfo[i][pLottoNr] = 0;
  16584. }
  16585. }
  16586. if(JackpotFallen)
  16587. {
  16588. new rand = random(125000); rand += 15789;
  16589. Jackpot = rand;
  16590. SaveStuff();
  16591. format(string, sizeof(string), "Lottery News: The new Jackpot has been started with $%d.", Jackpot);
  16592. OOCOff(COLOR_WHITE, string);
  16593. }
  16594. else
  16595. {
  16596. new rand = random(15000); rand += 2158;
  16597. Jackpot += rand;
  16598. SaveStuff();
  16599. format(string, sizeof(string), "Lottery News: The Jackpot has been raised to $%d.", Jackpot);
  16600. OOCOff(COLOR_WHITE, string);
  16601. }
  16602. return 1;
  16603. }
  16604.  
  16605. public OnPlayerDisconnect(playerid, reason)
  16606. {
  16607. new string[128];
  16608. new sendername[MAX_PLAYER_NAME];
  16609. new caller = Mobile[playerid];
  16610. gActivePlayers[playerid]--;
  16611. numplayers--;
  16612. PlayerInfo[playerid][pAdjustable] = 1;
  16613. if(LoadingCashType[playerid] != 0)
  16614. {
  16615. LoadingCashType[playerid] = 0;
  16616. LoadingCashTime[playerid] = 0;
  16617. LoadedCash[playerid] = 0;
  16618. BankRobbery = 0;
  16619. LoadingCash = 0;
  16620. DisablePlayerCheckpoint(playerid);
  16621. RemovePlayerAttachedObject(playerid,bankbag);
  16622. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  16623. SetTimer("CloseTheVault", 30000, 0);
  16624. VPass = 100000 + random(899999);
  16625. BankRobberyTime = 2;
  16626. SaveStuff();
  16627. return 1;
  16628. }
  16629. if(PlayerInfo[playerid][Lockpicking] != 0)
  16630. {
  16631. PlayerInfo[playerid][Lockpicking] = 0;
  16632. PlayerInfo[playerid][CLockpick] = 0;
  16633. PlayerInfo[playerid][HLockpick] = 999;
  16634. }
  16635.  
  16636. if(HasPlantWeed[playerid] != 0) DestroyObject(Weed[playerid]);
  16637. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  16638. switch(reason)
  16639. {
  16640. case 0: format(string, sizeof(string), "* %s has left the server. (Timeout)", sendername);
  16641. case 1: format(string, sizeof(string), "* %s has left the server. (Leaving)", sendername);
  16642. case 2: format(string, sizeof(string), "* %s has left the server. (Kicked)", sendername);
  16643. }
  16644. if(PlayerInfo[playerid][pAdmin] < 2)
  16645. {
  16646. ProxDetector(30.0, playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW);
  16647. }
  16648. if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 && PlayerInfo[playerid][pJailed] == 0)
  16649. {
  16650. PlayerInfo[playerid][pJailed] = 1; PlayerInfo[playerid][pJailTime] = 800;
  16651. }
  16652. new Year, Month, Day;
  16653. getdate(Year, Month, Day);
  16654. format(string, 32, "%02d/%02d/%d", Month, Day, Year);
  16655. strmid(PlayerInfo[playerid][pLastLogin], string, 0, strlen(string), 255);
  16656. OnPlayerSave(playerid);
  16657. new x = 0;
  16658. while(x != MAX_PLAYERS)
  16659. {
  16660. if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
  16661. {
  16662. SetPlayerHealth(x, PlayerInfo[x][pHealth]);
  16663. SetPlayerArmour(x, PlayerInfo[x][pArmor]);
  16664. SetPlayerVirtualWorld(x, PlayerInfo[x][pVirtualWorld]);
  16665. SetPlayerInterior(x, PlayerInfo[x][pInt]);
  16666. SetPlayerPos(x, PlayerInfo[x][pSPos_x], PlayerInfo[x][pSPos_y], PlayerInfo[x][pSPos_z]);
  16667. SetPlayerFacingAngle(x, PlayerInfo[x][pSPos_r]);
  16668. SendClientMessage(x, COLOR_WHITE, "You are no longer spectating.");
  16669. TogglePlayerSpectating(x, 0);
  16670. SpectatedID[x] = INVALID_PLAYER_ID;
  16671. SpectateType[x] = ADMIN_SPEC_TYPE_NONE;
  16672. HidePM[x] = 0;
  16673. PhoneOnline[x] = 0;
  16674. ResetPlayerAdminWeaponsEx(x);
  16675. }
  16676. x++;
  16677. }
  16678. ////foreach(Player, i)
  16679. for(new i; i<MAX_PLAYERS; i++)
  16680. {
  16681. if(IsPlayerConnected(i))
  16682. {
  16683. if(TaxiAccepted[i] < 999)
  16684. {
  16685. if(TaxiAccepted[i] == playerid)
  16686. {
  16687. TaxiAccepted[i] = 999;
  16688. GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);
  16689. TaxiCallTime[i] = 0;
  16690. DisablePlayerCheckpoint(i);
  16691. }
  16692. }
  16693. else if(BusAccepted[i] < 999)
  16694. {
  16695. if(BusAccepted[i] == playerid)
  16696. {
  16697. BusAccepted[i] = 999;
  16698. GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
  16699. BusCallTime[i] = 0;
  16700. DisablePlayerCheckpoint(i);
  16701. }
  16702. }
  16703. if(GoChase[i] < 999)
  16704. {
  16705. if(GoChase[i] == playerid)
  16706. {
  16707. SendClientMessage(i, COLOR_YELLOW, "The target has left the server.");
  16708. GoChase[i] = 999;
  16709. }
  16710. }
  16711. }
  16712. }
  16713. if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
  16714. {
  16715. if(IsPlayerConnected(TransportDriver[playerid]))
  16716. {
  16717. TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
  16718. TransportTime[TransportDriver[playerid]] = 0;
  16719. TransportCost[TransportDriver[playerid]] = 0;
  16720. format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
  16721. GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
  16722. }
  16723. }
  16724. if(BombID[playerid] != 0)
  16725. {
  16726. DestroyDynamicObject(BombID[playerid]);
  16727. }
  16728. if(PlayerPaintballing[playerid] != 0)
  16729. {
  16730. PaintballPlayers --;
  16731. }
  16732. if(caller != 255)
  16733. {
  16734. SendClientMessage(caller, COLOR_GRAD2, " The line has been disconnected....");
  16735. CellTime[caller] = 0;
  16736. Mobile[caller] = 255;
  16737. SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE);
  16738. RemovePlayerAttachedObject(caller, 5);
  16739. }
  16740. if(PlayersChannel[playerid] < 999)
  16741. {
  16742. IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
  16743. }
  16744. if(PlayerBoxing[playerid] > 0)
  16745. {
  16746. if(Boxer1 == playerid)
  16747. {
  16748. if(IsPlayerConnected(Boxer2))
  16749. {
  16750. PlayerBoxing[Boxer2] = 0;
  16751. SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
  16752. SetPlayerInterior(Boxer2, 5);
  16753. GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);
  16754. }
  16755. }
  16756. else if(Boxer2 == playerid)
  16757. {
  16758. if(IsPlayerConnected(Boxer1))
  16759. {
  16760. PlayerBoxing[Boxer1] = 0;
  16761. SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
  16762. SetPlayerInterior(Boxer1, 5);
  16763. GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1);
  16764. }
  16765. }
  16766. InRing = 0;
  16767. RoundStarted = 0;
  16768. Boxer1 = 255;
  16769. Boxer2 = 255;
  16770. TBoxer = 255;
  16771. }
  16772. if(TransportDuty[playerid] == 1)
  16773. {
  16774. TaxiDrivers -= 1;
  16775. }
  16776. else if(TransportDuty[playerid] == 2)
  16777. {
  16778. BusDrivers -= 1;
  16779. }
  16780. if(PlayerHadDeagle[playerid] == 1) PlayerInfo[playerid][pGun2] = 24;
  16781. if(PlayerInfo[playerid][pJob] == 2)
  16782. {
  16783. if(JobDuty[playerid] == 1) { Lawyers -= 1; }
  16784. }
  16785. if(PlayerInfo[playerid][pJob] == 11)
  16786. {
  16787. if(JobDuty[playerid] == 1) { Medics -= 1; }
  16788. }
  16789. else if(PlayerInfo[playerid][pJob] == 7)
  16790. {
  16791. if(JobDuty[playerid] == 1) { Mechanics -= 1; }
  16792. }
  16793. return 1;
  16794. }
  16795.  
  16796. public SetPlayerSpawn(playerid)
  16797. {
  16798. if(IsPlayerConnected(playerid))
  16799. {
  16800. //TUTORIAL
  16801. if(PlayerInfo[playerid][pTut] == 0)
  16802. {
  16803. gOoc[playerid] = 1; gNewbie[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; RegistrationStep[playerid] = 1; CanTalk[playerid] = 1;
  16804. SetPlayerPos(playerid, 2202.0386,-1745.6115,-2.6969);
  16805. TogglePlayerControllable(playerid, 0);
  16806. SetPlayerCameraPos(playerid, 2210.0461,-1742.2411,23.4574);
  16807. SetPlayerCameraLookAt(playerid, 2228.4255,-1722.7775,20.2341);
  16808. SendClientMessage(playerid, COLOR_LIGHTRED, "Hi there. Welcome to RG:RP. We need about your biodata. You MUST answer the question below !");
  16809. SendClientMessage(playerid, COLOR_LIGHTRED, "Answer the question. Are you a Male or Female? (Type in what you are).");
  16810. return 1;
  16811. }
  16812. //PAINTBALL
  16813. if(PlayerPaintballing[playerid] > 0)
  16814. {
  16815. PlayerInfo[playerid][pHospital] = 0;
  16816. ResetPlayerWeapons(playerid);
  16817.  
  16818. new gun1 = PlayerInfo[playerid][pPaintballGun1];
  16819. new gun2 = PlayerInfo[playerid][pPaintballGun2];
  16820. GivePlayerAdminGun(playerid, gun1);
  16821. GivePlayerAdminGun(playerid, gun2);
  16822. new rand = random(sizeof(PaintballSpawns));
  16823. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  16824. SetPlayerToTeamColor(playerid);
  16825. SetPlayerInterior(playerid, 10);
  16826. SetPlayerVirtualWorld(playerid, 2);
  16827. SetCameraBehindPlayer(playerid);
  16828. return 1;
  16829. }
  16830. //JAIL
  16831. if(PlayerInfo[playerid][pJailed] == 1)
  16832. {
  16833. SetPlayerInterior(playerid, 6);
  16834. SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
  16835. SetCameraBehindPlayer(playerid);
  16836. SetPlayerFacingAngle( playerid, -90);
  16837. SetPlayerToTeamColor(playerid);
  16838. CanTalk[playerid] = 1;
  16839. return 1;
  16840. }
  16841. if(PlayerInfo[playerid][pJailed] == 4)
  16842. {
  16843. SetPlayerInterior(playerid, 5);
  16844. SetPlayerPos(playerid,319.1102,317.0026,999.1484);
  16845. SetCameraBehindPlayer(playerid);
  16846. SetPlayerFacingAngle( playerid, -90);
  16847. SetPlayerToTeamColor(playerid);
  16848. CanTalk[playerid] = 1;
  16849. return 1;
  16850. }
  16851. if(PlayerInfo[playerid][pJailed] == 10)
  16852. {
  16853. SetPlayerInterior(playerid, 0);
  16854. SetPlayerPos(playerid,154.4657,-1951.9379,47.8750);
  16855. SetCameraBehindPlayer(playerid);
  16856. CanTalk[playerid] = 1;
  16857. return 1;
  16858. }
  16859. if(PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3)
  16860. {
  16861. SetPlayerInterior(playerid, 0);
  16862. SetPlayerSkin(playerid, 50);
  16863. SetPlayerColor(playerid, TCOLOR_PRISON);
  16864. SetCameraBehindPlayer(playerid);
  16865. CanTalk[playerid] = 1;
  16866. TogglePlayerControllable(playerid, 1);
  16867. new rand = random(sizeof(PrisonSpawns));
  16868. PlayerCell = rand;
  16869. SetPlayerPos(playerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
  16870. SetPlayerFacingAngle(playerid, PrisonSpawns[rand][3]);
  16871. return 1;
  16872. }//Tree
  16873. /* if(PlayerInfo[playerid][pJailed] == 3)
  16874. {
  16875. CanTalk[playerid] = 1;
  16876. SetPlayerPos(playerid, -1070.8547,-2038.5858,49.1448);
  16877. SetCameraBehindPlayer(playerid);
  16878. SetPlayerWorldBounds(playerid, -1069, -1073.4076, -2036.4987, -2040.6022);
  16879. SetPlayerInterior(playerid, 0);
  16880. PlayerInfo[playerid][pInt] = 0;
  16881. TogglePlayerControllable(playerid, 1);
  16882. }*/
  16883. //HOSPITAL
  16884. if(PlayerInfo[playerid][pHospital] == 1)
  16885. {
  16886. SetPlayerInHospital(playerid);
  16887. TogglePlayerControllable(playerid, 0);
  16888. CanTalk[playerid] = 1;
  16889. WithGlasses[playerid] = 0;
  16890. Parrot[playerid] = 0;
  16891. WithMask[playerid] = 0;
  16892. WithHat[playerid] = 0;
  16893. WithBandana[playerid] = 0;
  16894. WithHelmet[playerid] = 0;
  16895. wrench[playerid] = 0;
  16896. hammer[playerid] = 0;
  16897. crowbar[playerid] = 0;
  16898. chainsawdildo[playerid] = 0;
  16899. flashlight[playerid] = 0;
  16900. screwdriver[playerid] = 0;
  16901. AShield[playerid] = 0;
  16902. BShield[playerid] = 0;
  16903. rake[playerid] = 0;
  16904. PlayerInfo[playerid][pInHouse] = 999;
  16905. PlayerInfo[playerid][pInBiz] = 999;
  16906. PlayerInfo[playerid][pInCar] = 0;
  16907. return 1;
  16908. }
  16909. if(PlayerInfo[playerid][pTut] == 1)
  16910. {
  16911. if(PlayerInfo[playerid][pSafeSpawn] == 1)
  16912. {//FINISHED TUTORIAL
  16913. SetPlayerInterior(playerid,0);
  16914. SetPlayerVirtualWorld(playerid, 0);
  16915. SetPlayerPos(playerid,982.1890,-1624.2583,14.9526);
  16916. SetPlayerFacingAngle(playerid, 90);
  16917. SetCameraBehindPlayer(playerid);
  16918. PlayerInfo[playerid][pSafeSpawn] = 0;
  16919. }
  16920. else
  16921. {//RELOGGING
  16922. SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  16923. SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  16924. SetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
  16925. SetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
  16926. SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
  16927. SetCameraBehindPlayer(playerid);
  16928. }
  16929. CanTalk[playerid] = 1;
  16930. SetPlayerToTeamColor(playerid);
  16931. }
  16932. }
  16933. return 1;
  16934. }
  16935.  
  16936. public SetPlayerInHospital(playerid)
  16937. {
  16938. if(IsPlayerConnected(playerid))
  16939. {
  16940. new string[128];
  16941. new sendername[MAX_PLAYER_NAME];
  16942. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  16943. new rand = random(sizeof(HospitalSpawns));
  16944. if(rand == 0)
  16945. {
  16946. SetPlayerPos(playerid, 1192.256836, -1304.637939, 7.0000);
  16947. SetPlayerCameraPos(playerid, 1192.256836, -1304.637939, 20.699181);
  16948. SetPlayerCameraLookAt(playerid, 1171.727905, -1328.805542, 14.894935);
  16949. if(PlayerInfo[playerid][pWantedLevel] > 0)
  16950. {
  16951. SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location.");
  16952. SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: All Saints Hospital Staff");
  16953. format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername);
  16954. SendCopMessage(TEAM_BLUE_COLOR, string);
  16955. }
  16956. }
  16957. else
  16958. {
  16959. SetPlayerPos(playerid, 2012.323608, -1436.354370, 5.0000);
  16960. SetPlayerCameraPos(playerid, 2012.323608, -1436.354370, 18.774065);
  16961. SetPlayerCameraLookAt(playerid, 2035.060791, -1401.319824, 19.045776);
  16962. if(PlayerInfo[playerid][pWantedLevel] > 0)
  16963. {
  16964. SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location.");
  16965. SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: County General Hospital Staff");
  16966. format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername);
  16967. SendCopMessage(TEAM_BLUE_COLOR, string);
  16968.  
  16969. }
  16970. }
  16971. HasBoughtMask[playerid] = 0;
  16972. WithGlasses[playerid] = 0;
  16973. Parrot[playerid] = 0;
  16974. WithMask[playerid] = 0;
  16975. WithHat[playerid] = 0;
  16976. WithBandana[playerid] = 0;
  16977. WithHelmet[playerid] = 0;
  16978. wrench[playerid] = 0;
  16979. hammer[playerid] = 0;
  16980. crowbar[playerid] = 0;
  16981. chainsawdildo[playerid] = 0;
  16982. flashlight[playerid] = 0;
  16983. screwdriver[playerid] = 0;
  16984. rake[playerid] = 0;
  16985. AShield[playerid] = 0;
  16986. BShield[playerid] = 0;
  16987. PlayerInfo[playerid][pInHouse] = 999;
  16988. PlayerInfo[playerid][pInBiz] = 999;
  16989. if(PlayerBlinded[playerid] > 0)
  16990. {
  16991. PlayerBlinded[playerid] = 0;
  16992. }
  16993. if(PlayerHurt[playerid] > 0)
  16994. {
  16995. PlayerHurt[playerid] = 0;
  16996. }
  16997. if(PlayerInfo[playerid][pMask] == 1)
  16998. {
  16999. PlayerInfo[playerid][pMask] = 0;
  17000. for(new i; i<MAX_PLAYERS; i++)
  17001. {
  17002. if(IsPlayerConnected(i))
  17003. {
  17004. ShowPlayerNameTagForPlayer(i, playerid, 1);
  17005. }
  17006. }
  17007. }
  17008. SendClientMessage(playerid,COLOR_DOC,"You must spend some time in Hospital to recover.");
  17009. SendClientMessage(playerid,COLOR_DOC,"Before you are discharged, hospital staff will confiscate your weapons and bill you for the healthcare you recieved.");
  17010. SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0;
  17011. if(!NoHospital[playerid])
  17012. {
  17013. HospitalTime[playerid] = 1;
  17014. }
  17015. else
  17016. {
  17017.  
  17018. HospitalTime[playerid] = 49;
  17019. }
  17020. HospitalSpawn[playerid] = rand;
  17021. }
  17022. return 1;
  17023. }
  17024.  
  17025. public OnPlayerDeath(playerid, killerid, reason)
  17026. {
  17027. // printf("OnPlayerDeath: playerid: %d, killerid: %d, reason: %s", playerid, killerid, reason); //debug
  17028. if (PlayerInfo[playerid][pHungry] == 1 || PlayerInfo[playerid][pThirsty] == 1)
  17029. {
  17030. PlayerInfo[playerid][pHungry] = 360;
  17031. PlayerInfo[playerid][pThirsty] = 300;
  17032. }
  17033. ClearGuns(playerid);
  17034. SetPlayerColor(playerid, TCOLOR_HOSPITAL);
  17035. GameTextForPlayer(playerid,"~w~Wasted",4000,2);
  17036. SetPlayerVirtualWorld(playerid, 0);
  17037. PlayerInfo[playerid][pOnDuty] = 0;
  17038. PlayerInfo[playerid][pBombs] = 0;
  17039. PlayerInfo[playerid][pScope] = 0;
  17040. PlayerInfo[playerid][pLocal] = 999;
  17041. PlayerInfo[playerid][pVirtualWorld] = 0;
  17042. PlayerInfo[killerid][pKills] += 1;
  17043. WithGlasses[playerid] = 0;
  17044. Parrot[playerid] = 0;
  17045. WithMask[playerid] = 0;
  17046. WithHat[playerid] = 0;
  17047. WithBandana[playerid] = 0;
  17048. WithHelmet[playerid] = 0;
  17049. wrench[playerid] = 0;
  17050. hammer[playerid] = 0;
  17051. crowbar[playerid] = 0;
  17052. chainsawdildo[playerid] = 0;
  17053. flashlight[playerid] = 0;
  17054. screwdriver[playerid] = 0;
  17055. rake[playerid] = 0;
  17056. AShield[playerid] = 0;
  17057. BShield[playerid] = 0;
  17058. PlayerInfo[playerid][pInHouse] = 999;
  17059. PlayerInfo[playerid][pInBiz] = 999;
  17060. if(PlayerInfo[playerid][Lockpicking] > 0)
  17061. {
  17062. PlayerInfo[playerid][Lockpicking] = 0;
  17063. PlayerInfo[playerid][CLockpick] = 0;
  17064. PlayerInfo[playerid][HLockpick] = 999;
  17065. }
  17066. STDPlayer[playerid] = 0;
  17067. IsAtEvent[playerid] = 0;
  17068. new name[MAX_PLAYER_NAME];
  17069. new killa[MAX_PLAYER_NAME];
  17070. new string[128];
  17071. new caller = Mobile[playerid];
  17072. GetPlayerName(playerid, name, sizeof(name));
  17073. GetPlayerName(killerid, killa, sizeof(killa));
  17074. if(LoadingCashType[playerid] != 0)
  17075. {
  17076. format(string,sizeof(string),"** You died, robbery failed.");
  17077. SendClientMessage(playerid, COLOR_WHITE, string);
  17078. LoadingCashType[playerid] = 0;
  17079. LoadingCashTime[playerid] = 0;
  17080. LoadedCash[playerid] = 0;
  17081. BankRobbery = 0;
  17082. LoadingCash = 0;
  17083. SetPlayerFree(playerid,999,"eliminated");
  17084. PlayerInfo[playerid][pWantedLevel] = 0;
  17085. SetPlayerVirtualWorld(playerid, 0);
  17086. PlayerInfo[playerid][pVirtualWorld] = 0;
  17087. SetPlayerWantedLevel(playerid, 0);
  17088. PlayerInfo[playerid][pJailed] = 2;
  17089. PlayerInfo[playerid][pJailTime] = 3600;
  17090. new tmphour;
  17091. new tmpminute;
  17092. new tmpsecond;
  17093. gettime(tmphour, tmpminute, tmpsecond);
  17094. FixHour(tmphour);
  17095. tmphour = shifthour;
  17096. SetWorldTime(tmphour);
  17097. DisablePlayerCheckpoint(playerid);
  17098. RemovePlayerAttachedObject(playerid,bankbag);
  17099. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  17100. SetTimer("CloseTheVault", 30000, 0);
  17101. VPass = 100000 + random(899999);
  17102. BankRobberyTime = 2;
  17103. SaveStuff();
  17104. return 1;
  17105. }
  17106. if(gPlayerUsingLoopingAnim[playerid])
  17107. {
  17108. gPlayerUsingLoopingAnim[playerid] = 0;
  17109. TextDrawHideForPlayer(playerid,txtAnimHelper);
  17110. }
  17111. if(GetPlayerState(killerid) == 2)
  17112. {
  17113. new vehicleid = GetPlayerVehicleID(killerid);
  17114. if(IsAHelicopter(vehicleid))
  17115. {
  17116. format(string, sizeof(string), "AdmWarning: %s has killed %s, Bladekilling.",killa,name);
  17117. UpdateWarnings(string);
  17118. }
  17119. if(GetPlayerWeapon(killerid) == 29)
  17120. {
  17121. format(string, sizeof(string), "AdmWarning: %s has killed %s, Drivershooting.",killa,name);
  17122. UpdateWarnings(string);
  17123. }
  17124. }
  17125. if(caller != 255) //ON PHONE
  17126. {
  17127. SendClientMessage(caller, COLOR_GRAD2, " The line just went dead....");
  17128. CellTime[caller] = 0;
  17129. Mobile[caller] = 255;
  17130. Mobile[playerid] = 255;
  17131. CellTime[playerid] = 0;
  17132. }
  17133. if(PlayerPaintballing[playerid] != 0) //PAINTBALLING
  17134. {
  17135. PlayerPaintballKills[killerid] ++;
  17136. if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
  17137. {
  17138. new killer[MAX_PLAYER_NAME];
  17139. new victim[MAX_PLAYER_NAME];
  17140. new weap=GetPlayerWeapon(killerid);
  17141. new WeaponName[65];
  17142. GetWeaponName(weap,WeaponName,64);
  17143. PaintballWinner = killerid;
  17144. PaintballWinnerKills = PlayerPaintballKills[killerid];
  17145. GetPlayerName(killerid, killer, sizeof(killer));
  17146. GetPlayerName(playerid, victim, sizeof(victim));
  17147. ////foreach(Player, i)
  17148. for(new i; i<MAX_PLAYERS; i++)
  17149. {
  17150. if(IsPlayerConnected(i))
  17151. {
  17152. if(PlayerPaintballing[i] != 0)
  17153. {
  17154. format(string, sizeof(string), "* %s is in the lead with %d Kills.",killer,PaintballWinnerKills);
  17155. SendClientMessage(i, COLOR_WHITE, string);
  17156. }
  17157. }
  17158. }
  17159. }
  17160. if(PlayerPaintballing[playerid] != 0)
  17161. {
  17162. new weap=GetPlayerWeapon(killerid);
  17163. new WeaponName[65];
  17164. GetWeaponName(weap,WeaponName,64);
  17165. new victim[MAX_PLAYER_NAME];
  17166. GetPlayerName(playerid, victim, sizeof(victim));
  17167. for(new i; i<MAX_PLAYERS; i++)
  17168. {
  17169. if(IsPlayerConnected(i))
  17170. {
  17171. if(PlayerPaintballing[i] != 0)
  17172. {
  17173. format(string, sizeof(string), "[PAINTBALL] %s has killed %s, (%s).",killa,victim,WeaponName);
  17174. SendClientMessage(i, COLOR_RED, string);
  17175. }
  17176. }
  17177. }
  17178. }
  17179. return 1;
  17180. }
  17181. if(PlayerInfo[playerid][pHeadValue] > 0) //CONTRACT
  17182. {
  17183. if(GoChase[killerid] == playerid)
  17184. {
  17185. new price = PlayerInfo[playerid][pHeadValue];
  17186. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price/2;
  17187. GivePlayerMoney(playerid, -price/2);
  17188. PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]+price/2;
  17189. GivePlayerMoney(killerid, price/2);
  17190. format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",killa,name,price/2);
  17191. SendFamilyMessage(8, COLOR_YELLOW, string);
  17192. format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
  17193. SendClientMessage(playerid, COLOR_YELLOW, string);
  17194. PlayerPlaySound(killerid, 1052, 0.0, 0.0, 0.0);
  17195. ClearContract(playerid);
  17196. GoChase[killerid] = 999;
  17197. PlayerInfo[killerid][pCHits]++;
  17198. }
  17199. }
  17200. if(GoChase[playerid] == killerid)
  17201. {
  17202. if(PlayerInfo[killerid][pHeadValue] > 0)
  17203. {
  17204. new price = PlayerInfo[killerid][pHeadValue];
  17205. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price/2;
  17206. GivePlayerMoney(playerid, -price/2);
  17207. PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]+price/2;
  17208. GivePlayerMoney(killerid, price/2);
  17209. format(string, sizeof(string),"Hitman %s has failed the contract on %s and lost $%d.",name,killa,price/2);
  17210. SendFamilyMessage(8, COLOR_YELLOW, string);
  17211. format(string, sizeof(string),"You have killed a hitman and gained $%d, the contract on your head has been removed.",price/2);
  17212. SendClientMessage(killerid, COLOR_YELLOW, string);
  17213. PlayerPlaySound(killerid, 1052, 0.0, 0.0, 0.0);
  17214. ClearContract(killerid);
  17215. GoChase[playerid] = 999;
  17216. PlayerInfo[playerid][pFHits]++;
  17217. }
  17218. }
  17219. if(BombID[playerid] != 0)
  17220. {
  17221. DestroyDynamicObject(BombID[playerid]);
  17222. BombID[playerid] = 0;
  17223. }
  17224. killerid = INVALID_PLAYER_ID;
  17225. return 1;
  17226. }
  17227.  
  17228. public OnPlayerStreamIn(playerid, forplayerid)
  17229. {
  17230. if(PlayerInfo[playerid][pMask] == 1) ShowPlayerNameTagForPlayer(forplayerid, playerid, false);
  17231. if(PlayerInfo[playerid][pWantedLevel] == 6) SetPlayerMarkerForPlayer(forplayerid, playerid, TCOLOR_WANTED);
  17232. return 1;
  17233. }
  17234.  
  17235. public OnPlayerSpawn(playerid)
  17236. {
  17237. if(IsPlayerNPC(playerid))
  17238. {
  17239. //SpawnPlayer(playerid);
  17240. new sendername[MAX_PLAYER_NAME];
  17241. GetPlayerName(playerid, sendername, sizeof(sendername));
  17242. if(!strcmp(sendername, "Security_Guard", true))
  17243. {
  17244. gPlayerLogged[playerid] = 1;
  17245. SetPlayerPos(playerid, 1544.1339, -1631.9484, 13.3828);
  17246. SetPlayerSkin(playerid, 71); //cadet
  17247. }
  17248. else if(!strcmp(sendername, "Banker", true))
  17249. {
  17250. SetPlayerPos(playerid, 2311.0154, -11.0131, 26.7422);
  17251. SetPlayerFacingAngle(playerid, 180);
  17252. gPlayerLogged[playerid] = 1;
  17253. new gender = random(2);
  17254. if(gender == 0)
  17255. {
  17256. SetPlayerSkin(playerid, 150); //female
  17257. }
  17258. else
  17259. {
  17260. SetPlayerSkin(playerid, 187); //male
  17261. }
  17262. }
  17263. else if(!strcmp(sendername, "Bus", true))
  17264. {
  17265. AddStaticVehicle(431,1976.3766,-1954.1646,13.2701,266.3449,0,0); //
  17266. PutPlayerInVehicle(playerid, 220, 0);
  17267. gPlayerLogged[playerid] = 1;
  17268. }
  17269. else if(!strcmp(sendername, "Bot_24", true))
  17270. {
  17271. SetPlayerPos(playerid, -29.3284, -57.2872, 1003.5469);
  17272. SetPlayerFacingAngle(playerid, 0);
  17273. SetPlayerSkin(playerid, 220); //rasta
  17274. gPlayerLogged[playerid] = 1;
  17275. }
  17276. else if(!strcmp(sendername, "Bot_24_1", true))
  17277. {
  17278. SetPlayerPos(playerid, -27.2159, -91.6840, 1003.5469);
  17279. SetPlayerFacingAngle(playerid, 0);
  17280. SetPlayerSkin(playerid, 229); //asian
  17281. gPlayerLogged[playerid] = 1;
  17282. }
  17283. else if(!strcmp(sendername, "Bot_24_2", true))
  17284. {
  17285. SetPlayerPos(playerid, -29.7490, -30.7393, 1003.5573);
  17286. SetPlayerFacingAngle(playerid, 0);
  17287. SetPlayerSkin(playerid, 236); //oldman
  17288. gPlayerLogged[playerid] = 1;
  17289. }
  17290. else if(!strcmp(sendername, "Bot_24_3", true))
  17291. {
  17292. SetPlayerPos(playerid, -28.2693, -186.8315, 1003.5469);
  17293. SetPlayerFacingAngle(playerid, 0);
  17294. gPlayerLogged[playerid] = 1;
  17295. new gender = random(2);
  17296. if(gender == 0)
  17297. {
  17298. SetPlayerSkin(playerid, 197); //country female
  17299. }
  17300. else
  17301. {
  17302. SetPlayerSkin(playerid, 159); //country male
  17303. }
  17304. }
  17305. else if(!strcmp(sendername, "bot_10gb", true))
  17306. {
  17307. SetPlayerPos(playerid, 499.1612, -77.4632, 998.7651);
  17308. SetPlayerFacingAngle(playerid, 0);
  17309. gPlayerLogged[playerid] = 1;
  17310. new clothes = random(2);
  17311. if(clothes == 0)
  17312. {
  17313. SetPlayerSkin(playerid, 248); //biker 1
  17314. }
  17315. else
  17316. {
  17317. SetPlayerSkin(playerid, 254); //biker 2
  17318. }
  17319. }
  17320. else if(!strcmp(sendername, "bot_pigpen", true))
  17321. {
  17322. SetPlayerPos(playerid, 1215.1786, -15.2606, 1000.9219);
  17323. SetPlayerFacingAngle(playerid, 0);
  17324. SetPlayerSkin(playerid, 171); //tux
  17325. gPlayerLogged[playerid] = 1;
  17326. }
  17327. else if(!strcmp(sendername, "bot_stripper1", true))
  17328. {
  17329. SetPlayerPos(playerid, 1214.0563, -4.2679, 1001.3281);
  17330. SetPlayerFacingAngle(playerid, 44.4938);
  17331. gPlayerLogged[playerid] = 1;
  17332. new clothes = random(2);
  17333. if(clothes == 0)
  17334. {
  17335.  
  17336. SetPlayerSkin(playerid, 244); //stripper 1
  17337. }
  17338. else
  17339. {
  17340. SetPlayerSkin(playerid, 246); //stripper 2
  17341. }
  17342. }
  17343. else if(!strcmp(sendername, "bot_stripper2", true))
  17344. {
  17345. SetPlayerPos(playerid, 1221.2170, 8.4467, 1001.3356);
  17346. SetPlayerFacingAngle(playerid, 132.6630);
  17347. gPlayerLogged[playerid] = 1;
  17348. new clothes = random(2);
  17349. if(clothes == 0)
  17350. {
  17351. SetPlayerSkin(playerid, 237); //stripper 1
  17352. }
  17353. else
  17354. {
  17355. SetPlayerSkin(playerid, 256); //stripper 2
  17356.  
  17357. }
  17358. }
  17359. else if(!strcmp(sendername, "Boxer", true))
  17360. {
  17361. SetPlayerPos(playerid, 1241.2424, -760.8990, 1084.0134);
  17362. SetPlayerFacingAngle(playerid, 5.887);
  17363. SetPlayerSkin(playerid, 80); //fighter 1
  17364. gPlayerLogged[playerid] = 1;
  17365. }
  17366. else if(!strcmp(sendername, "bot_donut", true))
  17367. {
  17368. SetPlayerPos(playerid, 1512.1212, -1705.1373, 14.0469);
  17369. SetPlayerFacingAngle(playerid, 180.0);
  17370. SetPlayerSkin(playerid, 168);
  17371. gPlayerLogged[playerid] = 1;
  17372. }
  17373. else if(!strcmp(sendername, "Barman", true))
  17374. {
  17375. SetPlayerPos(playerid, 501.8481, -21.0422, 1000.6797);
  17376. SetPlayerFacingAngle(playerid, 90.0);
  17377. gPlayerLogged[playerid] = 1;
  17378. new gender = random(2);
  17379. if(gender == 0)
  17380. {
  17381. SetPlayerSkin(playerid, 171); //male
  17382. }
  17383. else
  17384. {
  17385. SetPlayerSkin(playerid, 172); //female
  17386.  
  17387. }
  17388. }
  17389. else if(!strcmp(sendername, "Janet", true))
  17390. {
  17391. SetPlayerPos(playerid, 491.6074,-4.3903,1002.0781);
  17392. SetPlayerFacingAngle(playerid, 180.0);
  17393. gPlayerLogged[playerid] = 1;
  17394. SetPlayerSkin(playerid, 63); //dancer 1
  17395. }
  17396. else if(!strcmp(sendername, "Denise", true))
  17397. {
  17398. SetPlayerPos(playerid, 483.4890,-4.3903,1002.0781);
  17399. SetPlayerFacingAngle(playerid, 180.0);
  17400. gPlayerLogged[playerid] = 1;
  17401. SetPlayerSkin(playerid, 85); //dancer 2
  17402. }
  17403. return 1;
  17404. }
  17405. if(gPlayerLogged[playerid] == 0)
  17406. {
  17407. SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires you to Login BEFORE spawn (Kicked) **");
  17408. // printf("OnPlayerSpawn Kick: %d",playerid);
  17409. KickPlayer[playerid] = 1;
  17410. return 1;
  17411. }
  17412. if(PlayerInfo[playerid][pClothes] != 0)
  17413. {
  17414. SetPlayerSkin(playerid, PlayerInfo[playerid][pClothes]);
  17415. }
  17416. else
  17417. {
  17418. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  17419. }
  17420. if(!gPlayerAnimLibsPreloaded[playerid])
  17421. {
  17422. PreloadAnimLib(playerid,"BOMBER");
  17423. PreloadAnimLib(playerid,"RAPPING");
  17424. PreloadAnimLib(playerid,"SHOP");
  17425. PreloadAnimLib(playerid,"BEACH");
  17426. PreloadAnimLib(playerid,"SMOKING");
  17427. PreloadAnimLib(playerid,"FOOD");
  17428. PreloadAnimLib(playerid,"ON_LOOKERS");
  17429. PreloadAnimLib(playerid,"DEALER");
  17430. PreloadAnimLib(playerid,"CRACK");
  17431. PreloadAnimLib(playerid,"CARRY");
  17432. PreloadAnimLib(playerid,"COP_AMBIENT");
  17433. PreloadAnimLib(playerid,"PARK");
  17434. PreloadAnimLib(playerid,"INT_HOUSE");
  17435. PreloadAnimLib(playerid,"FOOD");
  17436. PreloadAnimLib(playerid,"PED");
  17437. PreloadAnimLib(playerid,"GANGS");
  17438. gPlayerAnimLibsPreloaded[playerid] = 1;
  17439. }
  17440. SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
  17441. SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
  17442. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
  17443. SetPlayerWeapons(playerid);
  17444. SetPlayerSpawn(playerid);
  17445. PlayerFixRadio(playerid);
  17446. gPlayerSpawned[playerid] = 1;
  17447. return 1;
  17448. }
  17449.  
  17450. public PayLog(string[])
  17451. {
  17452. new entry[256];
  17453. format(entry, sizeof(entry), "%s\n",string);
  17454. new File:hFile;
  17455. hFile = fopen("Logs/pay.log", io_append);
  17456. fwrite(hFile, entry);
  17457. fclose(hFile);
  17458. }
  17459.  
  17460. public StatLog(string[])
  17461. {
  17462. new entry[256];
  17463. format(entry, sizeof(entry), "%s\n",string);
  17464. new File:hFile;
  17465. hFile = fopen("Logs/stat.log", io_append);
  17466. fwrite(hFile, entry);
  17467. fclose(hFile);
  17468. }
  17469.  
  17470. public KickLog(string[])
  17471. {
  17472. new entry[256];
  17473. format(entry, sizeof(entry), "%s\n",string);
  17474. new File:hFile;
  17475. hFile = fopen("Logs/kick.log", io_append);
  17476. fwrite(hFile, entry);
  17477. fclose(hFile);
  17478. }
  17479.  
  17480. public BanLog(string[])
  17481. {
  17482. new entry[256];
  17483. format(entry, sizeof(entry), "%s\n",string);
  17484. new File:hFile;
  17485. hFile = fopen("Logs/ban.log", io_append);
  17486. fwrite(hFile, entry);
  17487. fclose(hFile);
  17488. }
  17489.  
  17490. public AdLog(string[])
  17491. {
  17492. new entry[256];
  17493. format(entry, sizeof(entry), "%s\n",string);
  17494. new File:hFile;
  17495. hFile = fopen("Logs/ad.log", io_append);
  17496. fwrite(hFile, entry);
  17497. fclose(hFile);
  17498. }
  17499.  
  17500. public TrunkLog(string[])
  17501. {
  17502. new entry[256];
  17503. format(entry, sizeof(entry), "%s\n",string);
  17504. new File:hFile;
  17505. hFile = fopen("Logs/trunk.log", io_append);
  17506. fwrite(hFile, entry);
  17507. fclose(hFile);
  17508. }
  17509.  
  17510. public BLLog(string[])
  17511. {
  17512. new entry[256];
  17513. format(entry, sizeof(entry), "%s\n",string);
  17514. new File:hFile;
  17515. hFile = fopen("Logs/badlogin.log", io_append);
  17516. fwrite(hFile, entry);
  17517. fclose(hFile);
  17518. }
  17519. public OnPlayerEnterCheckpoint(playerid)
  17520. {
  17521. new string[128];
  17522. if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,-1479.1213,2625.8848,58.7813))
  17523. {
  17524. format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
  17525. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  17526. format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
  17527. SendClientMessage(playerid, COLOR_YELLOW, string);
  17528. GivePlayerMoney(playerid, LoadedCash[playerid]);
  17529. PlayerInfo[playerid][pCash] += LoadedCash[playerid];
  17530. LoadingCashType[playerid] = 0;
  17531. LoadingCashTime[playerid] = 0;
  17532. LoadedCash[playerid] = 0;
  17533. BankRobbery = 0;
  17534. LoadingCash = 0;
  17535. DisablePlayerCheckpoint(playerid);
  17536. RemovePlayerAttachedObject(playerid,bankbag);
  17537. SetTimer("CloseTheVault", 30000, 0);
  17538. VPass = 100000 + random(899999);
  17539. BankRobberyTime = 2;
  17540. SaveStuff();
  17541. }
  17542.  
  17543. if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,2927.0076,2099.7256,17.8955))
  17544. {
  17545. format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
  17546. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  17547. format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
  17548. SendClientMessage(playerid, COLOR_YELLOW, string);
  17549. GivePlayerMoney(playerid, LoadedCash[playerid]);
  17550. PlayerInfo[playerid][pCash] += LoadedCash[playerid];
  17551. LoadingCashType[playerid] = 0;
  17552. LoadingCashTime[playerid] = 0;
  17553. LoadedCash[playerid] = 0;
  17554. BankRobbery = 0;
  17555. LoadingCash = 0;
  17556. DisablePlayerCheckpoint(playerid);
  17557. RemovePlayerAttachedObject(playerid,bankbag);
  17558. SetTimer("CloseTheVault", 30000, 0);
  17559. VPass = 100000 + random(899999);
  17560. BankRobberyTime = 2;
  17561. SaveStuff();
  17562. }
  17563.  
  17564. if(LoadedCash[playerid] != 0 && IsPlayerInRangeOfPoint(playerid,4.0,-1632.2328,-2239.1941,31.4766))
  17565. {
  17566. format(string,sizeof(string),"City Alert: The Bank has been successfully robbed. %s ran away with $%d",PlayerName(playerid),LoadedCash[playerid]);
  17567. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  17568. format(string,sizeof(string),"** You've reached the safe point and kept your bag filled with $%d",LoadedCash[playerid]);
  17569. SendClientMessage(playerid, COLOR_YELLOW, string);
  17570. GivePlayerMoney(playerid, LoadedCash[playerid]);
  17571. PlayerInfo[playerid][pCash] += LoadedCash[playerid];
  17572. LoadingCashType[playerid] = 0;
  17573. LoadingCashTime[playerid] = 0;
  17574. LoadedCash[playerid] = 0;
  17575. BankRobbery = 0;
  17576. LoadingCash = 0;
  17577. DisablePlayerCheckpoint(playerid);
  17578. RemovePlayerAttachedObject(playerid,bankbag);
  17579. SetTimer("CloseTheVault", 30000, 0);
  17580. VPass = 100000 + random(899999);
  17581. BankRobberyTime = 2;
  17582. SaveStuff();
  17583. }
  17584. if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
  17585. {
  17586. TaxiAccepted[playerid] = 999;
  17587. GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
  17588. TaxiCallTime[playerid] = 0;
  17589. DisablePlayerCheckpoint(playerid);
  17590. }
  17591. else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
  17592. {
  17593. BusAccepted[playerid] = 999;
  17594. GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
  17595. BusCallTime[playerid] = 0;
  17596. DisablePlayerCheckpoint(playerid);
  17597. }
  17598. else if(CP[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,10.0,2696.0520,-2225.8101,13.2554)) //isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17599. {
  17600. if(IsPlayerInAnyVehicle(playerid))
  17601. {
  17602. PlayerInfo[playerid][pJackSkill] ++;
  17603. if(PlayerInfo[playerid][pJackSkill] == 50)
  17604. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 2, you will now earn more Money and have a quicker Reload Time."); }
  17605. else if(PlayerInfo[playerid][pJackSkill] == 100)
  17606. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 3, you will now earn more Money and have a quicker Reload Time."); }
  17607. else if(PlayerInfo[playerid][pJackSkill] == 200)
  17608. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 4, you will now earn more Money and have a quicker Reload Time."); }
  17609. else if(PlayerInfo[playerid][pJackSkill] == 400)
  17610. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 5, you will now earn more Money and have a quicker Reload Time."); }
  17611. new level = PlayerInfo[playerid][pJackSkill];
  17612. if(level >= 0 && level <= 49)
  17613. {
  17614. new rand = random(sizeof(SELLCAR1));
  17615. format(string, sizeof(string), "* You sold a car for $%d, your reload time is 20 minutes.", SELLCAR1[rand]);
  17616. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17617. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR1[rand];
  17618. GivePlayerMoney(playerid, SELLCAR1[rand]);
  17619. PlayerInfo[playerid][pCarTime] = 1200;
  17620. }
  17621. else if(level >= 50 && level <= 99)
  17622. {
  17623. new rand = random(sizeof(SELLCAR2));
  17624. format(string, sizeof(string), "* You sold a car for $%d, your reload time is 18 minutes.", SELLCAR2[rand]);
  17625. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17626. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR2[rand];
  17627. GivePlayerMoney(playerid, SELLCAR2[rand]);
  17628. PlayerInfo[playerid][pCarTime] = 1080;
  17629. }
  17630. else if(level >= 100 && level <= 199)
  17631. {
  17632. new rand = random(sizeof(SELLCAR3));
  17633. format(string, sizeof(string), "* You sold a car for $%d, your reload time is 16 minutes.", SELLCAR3[rand]);
  17634. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17635. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR3[rand];
  17636. GivePlayerMoney(playerid, SELLCAR3[rand]);
  17637. PlayerInfo[playerid][pCarTime] = 960;
  17638. }
  17639. else if(level >= 200 && level <= 399)
  17640. {
  17641. new rand = random(sizeof(SELLCAR4));
  17642. format(string, sizeof(string), "* You sold a car for $%d, your reload time is 14 minutes.", SELLCAR4[rand]);
  17643. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17644. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+SELLCAR4[rand];
  17645. GivePlayerMoney(playerid, SELLCAR4[rand]);
  17646. PlayerInfo[playerid][pCarTime] = 840;
  17647. }
  17648. else if(level >= 400)
  17649. {
  17650. new money = 6000;
  17651. format(string, sizeof(string), "* You sold a car for $%d, your reload time is 12 minutes.", money);
  17652. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17653. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+money;
  17654. GivePlayerMoney(playerid, money);
  17655. PlayerInfo[playerid][pCarTime] = 720;
  17656. }
  17657. GameTextForPlayer(playerid, "~y~Sold the car", 2500, 1);
  17658. CP[playerid] = 0;
  17659. DisablePlayerCheckpoint(playerid);
  17660. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  17661. }
  17662. else
  17663. {
  17664. GameTextForPlayer(playerid, "Not in a car", 5000, 1);
  17665. }
  17666. }
  17667. else if(CP[playerid] == 2 && IsPlayerInRangeOfPoint(playerid,5.0,2172.1880,-2263.9683,13.3363)) //materials factory 1 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17668. {
  17669. if(Packages[playerid] > 0)
  17670. {
  17671. if(GotMats[playerid] >= 1)
  17672. {
  17673. new sendername[MAX_PLAYER_NAME];
  17674. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  17675. format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
  17676. UpdateWarnings(string);
  17677. }
  17678. if(Packages[playerid] == 14)
  17679. {
  17680. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 350 Materials for your 14 Materials Packages.");
  17681. PlayerInfo[playerid][pMats] += dmatpayout;
  17682. Packages[playerid] = 0;
  17683. CP[playerid] = 0;
  17684. GotMats[playerid] = 0;
  17685. DisablePlayerCheckpoint(playerid);
  17686. return 1;
  17687. }
  17688. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 250 Materials for your 10 Materials Packages.");
  17689. PlayerInfo[playerid][pMats] += matpayout;
  17690. Packages[playerid] = 0;
  17691. CP[playerid] = 0;
  17692. GotMats[playerid] = 0;
  17693. DisablePlayerCheckpoint(playerid);
  17694. }
  17695. else
  17696. {
  17697. SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
  17698. }
  17699. }
  17700. else if(CP[playerid] == 10 && IsPlayerInRangeOfPoint(playerid,5.0,-500.5291,-528.6747,25.5234)) //materials factory 3 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17701. {
  17702. if(Packages[playerid] > 0)
  17703. {
  17704. if(GotMats[playerid] >= 1)
  17705. {
  17706. new sendername[MAX_PLAYER_NAME];
  17707. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  17708. format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
  17709. UpdateWarnings(string);
  17710. }
  17711. if(Packages[playerid] == 14)
  17712. {
  17713. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 450 Materials for your 14 Materials Packages.");
  17714. PlayerInfo[playerid][pMats] += dmatpayout2;
  17715. Packages[playerid] = 0;
  17716. CP[playerid] = 0;
  17717. GotMats[playerid] = 0;
  17718. DisablePlayerCheckpoint(playerid);
  17719. return 1;
  17720. }
  17721. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 500 Materials for your 20 Materials Packages.");
  17722. PlayerInfo[playerid][pMats] += matpayout2;
  17723. Packages[playerid] = 0;
  17724. CP[playerid] = 0;
  17725. GotMats[playerid] = 0;
  17726. DisablePlayerCheckpoint(playerid);
  17727. }
  17728. else
  17729. {
  17730. SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
  17731. }
  17732. }
  17733. else if(CP[playerid] == 3 && IsPlayerInRangeOfPoint(playerid,5.0,2288.0730,-1105.4535,37.9766)) //materials factory 2 isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17734. {
  17735. if(Packages[playerid] > 0)
  17736. {
  17737. if(GotMats[playerid] >= 1)
  17738. {
  17739. new sendername[MAX_PLAYER_NAME];
  17740. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  17741. format(string, sizeof(string), "Teleport: [%d]%s is potentially Teleport Matrunning.", playerid, sendername);
  17742. UpdateWarnings(string);
  17743. }
  17744. if(Packages[playerid] == 14)
  17745. {
  17746. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 350 Materials for your 14 Materials Packages.");
  17747. PlayerInfo[playerid][pMats] += dmatpayout;
  17748. Packages[playerid] = 0;
  17749. CP[playerid] = 0;
  17750. GotMats[playerid] = 0;
  17751. DisablePlayerCheckpoint(playerid);
  17752. return 1;
  17753. }
  17754. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The Factory gave you 250 Materials for your 10 Materials Packages.");
  17755. PlayerInfo[playerid][pMats] += matpayout;
  17756. Packages[playerid] = 0;
  17757. CP[playerid] = 0;
  17758. GotMats[playerid] = 0;
  17759. DisablePlayerCheckpoint(playerid);
  17760. }
  17761. else
  17762. {
  17763. SendClientMessage(playerid, COLOR_GREY," You are not carrying any Materials Packages !");
  17764. }
  17765. }
  17766. else if(CP[playerid] == 5 && IsPlayerInRangeOfPoint(playerid,5.0,2354.2703,-1169.3293,28.0083)) //crack smuggling to crack lab isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17767. {
  17768. if(Crates[playerid] > 0)
  17769. {
  17770. if(chstock < chlimit)
  17771. {
  17772. new level = PlayerInfo[playerid][pSmugglerSkill];
  17773. new crackpayout;
  17774. if(level >= 0 && level <= 19)
  17775. { crackpayout = 1250; }
  17776. else if(level >= 20 && level <= 39)
  17777. { crackpayout = 1500; }
  17778. else if(level >= 40 && level <= 59)
  17779. { crackpayout = 1750; }
  17780. else if(level >= 60 && level <= 79)
  17781. { crackpayout = 1800; }
  17782. else if(level >= 80)
  17783. { crackpayout = 2000; }
  17784. format(string, sizeof(string), "* You recieved $%d for delivering the Drug Crates.", crackpayout);
  17785. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17786. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+crackpayout;
  17787. GivePlayerMoney(playerid, crackpayout);
  17788. Crates[playerid] = 0;
  17789. CP[playerid] = 0;
  17790. chstock = chstock+10;
  17791. DisablePlayerCheckpoint(playerid);
  17792. PlayerInfo[playerid][pSmugglerSkill] ++;
  17793. if(PlayerInfo[playerid][pSmugglerSkill] == 20)
  17794. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 2, you will now earn more Money smuggling Drugs."); }
  17795. else if(PlayerInfo[playerid][pSmugglerSkill] == 40)
  17796. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 3, you will now earn more Money smuggling Drugs."); }
  17797. else if(PlayerInfo[playerid][pSmugglerSkill] == 60)
  17798. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 4, you will now earn more Money smuggling Drugs."); }
  17799. else if(PlayerInfo[playerid][pSmugglerSkill] == 80)
  17800. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 5, you will now earn more Money smuggling Drugs."); }
  17801. }
  17802. else
  17803. {
  17804. SendClientMessage(playerid, COLOR_GREY," The Crack Lab is at its limit, come back later !");
  17805. }
  17806. }
  17807. else
  17808. {
  17809. SendClientMessage(playerid, COLOR_GREY," You are not carrying any Drug Crates !");
  17810. }
  17811. }
  17812. else if(CP[playerid] == 6 && IsPlayerInRangeOfPoint(playerid,5.0,2166.3772,-1675.3829,15.0859)) //seed smuggling to drug house //isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010
  17813. {
  17814. if(Crates[playerid] > 0)
  17815. {
  17816. if(dhstock < dhlimit)
  17817. {
  17818. new level = PlayerInfo[playerid][pSmugglerSkill];
  17819. new potpayout;
  17820. if(level >= 0 && level <= 19)
  17821. { potpayout = 1250; }
  17822. else if(level >= 20 && level <= 39)
  17823. { potpayout = 1500; }
  17824. else if(level >= 40 && level <= 59)
  17825. { potpayout = 1750; }
  17826. else if(level >= 60 && level <= 79)
  17827. { potpayout = 1800; }
  17828. else if(level >= 80)
  17829. { potpayout = 2000; }
  17830. format(string, sizeof(string), "* You recieved $%d for delivering the Drug Crates.", potpayout);
  17831. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  17832. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+potpayout;
  17833. GivePlayerMoney(playerid, potpayout);
  17834. Crates[playerid] = 0;
  17835. CP[playerid] = 0;
  17836. dhstock = dhstock+10;
  17837. DisablePlayerCheckpoint(playerid);
  17838. PlayerInfo[playerid][pSmugglerSkill] ++;
  17839. if(PlayerInfo[playerid][pSmugglerSkill] == 20)
  17840. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 2, you will now earn more Money smuggling Drugs."); }
  17841. else if(PlayerInfo[playerid][pSmugglerSkill] == 40)
  17842. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 3, you will now earn more Money smuggling Drugs."); }
  17843. else if(PlayerInfo[playerid][pSmugglerSkill] == 60)
  17844. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 4, you will now earn more Money smuggling Drugs."); }
  17845. else if(PlayerInfo[playerid][pSmugglerSkill] == 80)
  17846. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Drug Smuggler Skill is now Level 5, you will now earn more Money smuggling Drugs."); }
  17847. }
  17848. else
  17849. {
  17850. SendClientMessage(playerid, COLOR_GREY,"The Drug House is at its limit, come back later.");
  17851. }
  17852. }
  17853. else
  17854. {
  17855. SendClientMessage(playerid, COLOR_GREY,"You are not carrying any Drug Crates.");
  17856. }
  17857. }
  17858. else if(CP[playerid] == 7) //drug factory
  17859. {
  17860. CP[playerid] = 0;
  17861. DisablePlayerCheckpoint(playerid);
  17862. }
  17863. else
  17864. {
  17865. CP[playerid] = 0;
  17866. DisablePlayerCheckpoint(playerid);
  17867. }
  17868. return 1;
  17869. }
  17870.  
  17871. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  17872. {
  17873. if(PRESSED(KEY_FIRE))
  17874. {
  17875. if(UsingSate[playerid] == 1)
  17876. {
  17877. if(ZOOM[playerid] == 1)
  17878. {
  17879. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  17880. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475);
  17881. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
  17882. ZOOM[playerid] = 2;
  17883. return 1;
  17884. }
  17885. if(ZOOM[playerid] == 2)
  17886. {
  17887. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  17888. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450);
  17889. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
  17890. ZOOM[playerid] = 3;
  17891. return 1;
  17892. }
  17893. if(ZOOM[playerid] == 3)
  17894. {
  17895. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  17896. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-425);
  17897. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
  17898. ZOOM[playerid] = 4;
  17899. return 1;
  17900. }
  17901. if(ZOOM[playerid] == 4)
  17902. {
  17903. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  17904. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400);
  17905. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
  17906. ZOOM[playerid] = 5;
  17907. return 1;
  17908. }
  17909. if(ZOOM[playerid] == 5)
  17910. {
  17911. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  17912. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250);
  17913. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]-500);
  17914. ZOOM[playerid] = 1;
  17915. return 1;
  17916. }
  17917. }
  17918. if(RampToggle[playerid] == 1)
  17919. { // admin ramp
  17920. if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER))
  17921. {
  17922. new Float: X, Float: Y, Float: Z, Float: A;
  17923. GetXYInFrontOfPlayer(playerid, X, Y, Z, A);
  17924. ramp = CreateDynamicObject(RAMP, X, Y, Z, 0.0, 0.0, A, 0, -1, -1, 100.0);
  17925. SetTimerEx("Delete", TIME, 0, "d", ramp);
  17926. }
  17927. }
  17928. if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK)
  17929. {
  17930. if(UseDrinkTimer[playerid]) return 1;
  17931. if(UserSprunk[playerid] < 4)
  17932. {
  17933. if(PlayerInfo[playerid][pThirsty] > 6000)
  17934. {
  17935. PlayerInfo[playerid][pThirsty] = 1+random(500);
  17936. }
  17937. else
  17938. {
  17939. SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
  17940. }
  17941. UseDrinkTimer[playerid] = true;
  17942. SetTimerEx("UseDrink",2*1000,0,"i",playerid);
  17943. return 1;
  17944. }
  17945. else
  17946. {
  17947. SendClientMessage(playerid, COLOR_GRAD2, "This can of sprunk is over.");
  17948. return 1;
  17949. }
  17950. }
  17951.  
  17952. if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_BEER)
  17953. {
  17954. if(UseDrinkTimer[playerid]) return 1;
  17955. if(UserSprunk[playerid] < 5)
  17956. {
  17957. if(PlayerInfo[playerid][pThirsty] > 6000)
  17958. {
  17959. PlayerInfo[playerid][pThirsty] = 1+random(500);
  17960. }
  17961. else
  17962. {
  17963. SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
  17964. }
  17965. UseDrinkTimer[playerid] = true;
  17966. SetTimerEx("UseDrink",2*1000,0,"i",playerid);
  17967. return 1;
  17968. }
  17969. else
  17970. {
  17971. SendClientMessage(playerid, COLOR_GRAD2, "This bottle is over.");
  17972. return 1;
  17973. }
  17974. }
  17975.  
  17976. if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_WINE)
  17977. {
  17978. if(UseDrinkTimer[playerid]) return 1;
  17979. if(UserSprunk[playerid] < 5)
  17980. {
  17981. if(PlayerInfo[playerid][pThirsty] > 6000)
  17982. {
  17983. PlayerInfo[playerid][pThirsty] = 1+random(250);
  17984. }
  17985. else
  17986. {
  17987. SendClientMessage(playerid, COLOR_GRAD2, "You have already drink too much.");
  17988. }
  17989. UseDrinkTimer[playerid] = true;
  17990. SetTimerEx("UseDrink",2*1000,0,"i",playerid);
  17991. return 1;
  17992. }
  17993. else
  17994. {
  17995. SendClientMessage(playerid, COLOR_GRAD2, "This bottle is over.");
  17996. return 1;
  17997. }
  17998. }
  17999. if(BombID[playerid] != 0)
  18000. {
  18001. if(HoldingDetonator[playerid])
  18002. {
  18003. new Float:X,Float:Y,Float:Z;
  18004. if(BombInCar[playerid] == 1)
  18005. {
  18006. GetVehiclePos(BombID[playerid], X, Y, Z);
  18007. SetVehicleHealth(BombID[playerid], 0);
  18008. }
  18009. else
  18010. {
  18011. ClearAnimations(playerid);
  18012. ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0,0);
  18013. GetObjectPos(BombID[playerid],X,Y,Z);
  18014. DestroyDynamicObject(BombID[playerid]);
  18015. }
  18016. CreateExplosion(X,Y,Z, 2, 0.0);
  18017. GameTextForPlayer(playerid, "~w~DETONATED", 3000, 3);
  18018. BombID[playerid] = -1;
  18019. TakeWeapon(playerid,40);
  18020. SetPlayerWeapons(playerid);
  18021. new killerid = GoChase[playerid];
  18022. if(IsPlayerInRangeOfPoint(killerid,3,X,Y,Z))
  18023. {
  18024. if(GoChase[playerid] == killerid)
  18025. {
  18026. if(PlayerInfo[killerid][pHeadValue] > 0)
  18027. {
  18028. new string[128];
  18029. new price = PlayerInfo[killerid][pHeadValue];
  18030. new name[MAX_PLAYER_NAME];
  18031. new killa[MAX_PLAYER_NAME];
  18032. GetPlayerName(playerid, name, sizeof(name));
  18033. GetPlayerName(killerid, killa, sizeof(killa));
  18034. PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]-price/2;
  18035. GivePlayerMoney(killerid, -price/2);
  18036. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price/2;
  18037. GivePlayerMoney(playerid, price/2);
  18038. new witness;
  18039. GetPlayerPos(playerid, X, Y, Z);
  18040. for(new i = 0; i < MAX_PLAYERS; i++)
  18041. {
  18042. if(IsPlayerInRangeOfPoint(i, 10.0, X, Y, Z))
  18043. {
  18044. if(i != playerid && i != killerid) witness ++;
  18045. }
  18046. }
  18047. format(string,128,"Hitman %s has successfully assassinated %s with a C4 and collected $%d, %d withesses.",name,killa,price/2,witness);
  18048. SendFamilyMessage(8, COLOR_YELLOW, string);
  18049. format(string,128,"You have been critically injured by a hitman and lost $%d.",price/2);
  18050. SendClientMessage(killerid, COLOR_YELLOW, string);
  18051. SetPlayerHealth(killerid, 0);
  18052. ClearContract(killerid);
  18053. GoChase[playerid] = 999;
  18054. PlayerInfo[playerid][pCHits]++;
  18055. }
  18056. }
  18057. }
  18058. }
  18059. }
  18060. }
  18061.  
  18062. if(PRESSED(KEY_CTRL))
  18063. {
  18064. new engine,lights,alarm,doors,bonnet,boot,objective;
  18065. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  18066. {
  18067. GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  18068. if(lights==1)
  18069. {
  18070. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
  18071. return 1;
  18072. }
  18073. else
  18074. {
  18075. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
  18076. return 1;
  18077. }
  18078. }
  18079. }
  18080. if(PRESSED(KEY_SUBMISSION))
  18081. {
  18082. new engine,lights,alarm,doors,bonnet,boot,objective;
  18083. new vehid = GetPlayerVehicleID(playerid);
  18084. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  18085. {
  18086. if(vehid == 481 || vehid == 509 || vehid == 510)
  18087. return 1;
  18088. GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
  18089. if(engine<=0)
  18090. {
  18091. GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
  18092. SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
  18093. }
  18094. else
  18095. {
  18096. GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
  18097. SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
  18098. }
  18099. }
  18100. }
  18101. /*
  18102. new engine,lights,alarm,doors,bonnet,boot,objective;
  18103. GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  18104. if(lights==1)
  18105. {
  18106. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
  18107. }
  18108. else
  18109. {
  18110. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
  18111. }
  18112. */
  18113. if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
  18114. {
  18115. if(GetPlayerWeapon(playerid) == 34 && PlayerInfo[playerid][pScope] == 1)
  18116. {
  18117. if(RecentlyShot[playerid] == 0)
  18118. {
  18119. RecentlyShot[playerid] = 1;
  18120. SetTimerEx("AntiSpam", 1000, false, "d", playerid);
  18121. {
  18122. new Float:blahx, Float:blahy, Float:blahz;
  18123. HeadshotCheck(playerid, blahx, blahy, blahz);
  18124. }
  18125. }
  18126. }
  18127. }
  18128. if(PRESSED(KEY_CROUCH))
  18129. {
  18130. if(IsPlayerInAnyVehicle(playerid))
  18131. {
  18132. new isdriver = GetPlayerVehicleSeat(playerid);
  18133. if(isdriver == 0)
  18134. {
  18135. if(IsPlayerInRangeOfPoint(playerid,9,1588.3058,-1637.9652,13.4227))
  18136. { //POLICE GATE
  18137. if(!IsACop(playerid)) return 1;
  18138. if(pdgategar==0)
  18139. {
  18140. pdgategar = 1;
  18141. MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 7.710285, 1.50);
  18142. }
  18143. else if(pdgategar==1)
  18144. {
  18145. pdgategar = 0;
  18146. MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 15.260185, 1.50);
  18147. }
  18148. }
  18149. else if(IsPlayerInRangeOfPoint(playerid,9,1544.4913,-1627.2817,13.3828))
  18150. { //POLICE BAR
  18151. if(!IsACop(playerid)) return 1;
  18152. if(pdgatebar==0)
  18153. {
  18154. pdgatebar = 1;
  18155. SetDynamicObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
  18156. SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.953003, 13.079567 );
  18157. }
  18158. else if(pdgatebar==1)
  18159. {
  18160. pdgatebar = 0;
  18161. SetDynamicObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
  18162. SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );
  18163. }
  18164. }
  18165. }
  18166. }
  18167. }
  18168.  
  18169. if(!gPlayerUsingLoopingAnim[playerid]) { return 1; }
  18170. if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys))
  18171. {
  18172. PlayerHurt[playerid] = 0;
  18173. StopLoopingAnim(playerid);
  18174. TextDrawHideForPlayer(playerid,txtAnimHelper);
  18175. }
  18176. if(PRESSED(newkeys, KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
  18177. {
  18178. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
  18179. {
  18180. new Float:ppX,Float:ppY,Float:ppZ;
  18181. GetPlayerPos(playerid,ppX,ppY,ppZ);
  18182. new Float:vvX,Float:vvY,Float:vvZ;
  18183. new Found=0;
  18184. new vid=0;
  18185. while((vid<MAX_VEHICLES)&&(!Found))
  18186. {
  18187. vid++;
  18188. GetVehiclePos(vid,vvX,vvY,vvZ);
  18189. if ((floatabs(ppX-vvX)<7.0)&&(floatabs(ppY-vvY)<7.0)&&(floatabs(ppZ-vvZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
  18190. {
  18191. Found=1;
  18192. if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
  18193. {
  18194. DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
  18195. }
  18196. else
  18197. {
  18198. AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
  18199. }
  18200. }
  18201. }
  18202. if (!Found)
  18203. {
  18204. SendClientMessage(playerid,COLOR_GREY," There is no car in range !");
  18205. }
  18206. }
  18207. }
  18208. return 1;
  18209. }
  18210. public OnPlayerLeaveCheckpoint(playerid)
  18211. {
  18212. return 1;
  18213. }
  18214.  
  18215. public OnPlayerEnterRaceCheckpoint(playerid)
  18216. {
  18217. return 1;
  18218. }
  18219.  
  18220. public OnPlayerLeaveRaceCheckpoint(playerid)
  18221. {
  18222. return 1;
  18223. }
  18224.  
  18225. public OnRconCommand(cmd[])
  18226. {
  18227. return 1;
  18228. }
  18229.  
  18230. public OnPlayerObjectMoved(playerid, objectid)
  18231. {
  18232. return 1;
  18233. }
  18234.  
  18235. public OnPlayerPickUpPickup(playerid, pickupid)
  18236. {
  18237. if(pickupid == para)
  18238. {
  18239. return 1;
  18240. }
  18241. if(pickupid == dildo)
  18242. {
  18243. GivePlayerWeapon(playerid, 10, 999999);
  18244. PlayerInfo[playerid][pGun10] = 10;
  18245. return 1;
  18246. }
  18247. if(pickupid == poolcue)
  18248. {
  18249. GivePlayerWeapon(playerid, 7, 999999);
  18250. PlayerInfo[playerid][pGun1] = 7;
  18251. return 1;
  18252. }
  18253. if(pickupid == iDrughouse)
  18254. {
  18255. new string[128];
  18256. format(string, sizeof(string), "~w~Type /getseeds to purchase some ~n~~r~Seeds~n~~y~Available:~w~ %d/%d",dhstock,dhlimit);
  18257. GameTextForPlayer(playerid, string, 5000, 3);
  18258. return 1;
  18259. }
  18260. if(pickupid == iSprunk)
  18261. {
  18262. GameTextForPlayer(playerid, "~w~Sprunk Factory", 5000, 3);
  18263. return 1;
  18264. }
  18265. if(pickupid == iCracklab)
  18266. {
  18267. new string[128];
  18268. format(string, sizeof(string), "~w~Type /getcrack to purchase some ~n~~r~Crack~n~~y~Available:~w~ %d/%d",chstock,chlimit);
  18269. GameTextForPlayer(playerid, string, 5000, 3);
  18270. return 1;
  18271. }
  18272.  
  18273. if(pickupid == iPoint2)
  18274. {
  18275. new string[128];
  18276. format(string, sizeof(string), "~w~Type /getparts to purchase some ~n~~r~Carparts~n~~y~Available:~w~ %d/100000",Carparts);
  18277. GameTextForPlayer(playerid, string, 5000, 3);
  18278. return 1;
  18279. }
  18280.  
  18281. if(pickupid == iMget1)
  18282. {
  18283. if(Packages[playerid] == 0)
  18284. {
  18285. GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
  18286. }
  18287. return 1;
  18288. }
  18289. if(pickupid == iMget2)
  18290. {
  18291. if(Packages[playerid] == 0)
  18292. {
  18293. GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
  18294. }
  18295. return 1;
  18296. }
  18297. if(pickupid == iMget3)
  18298. {
  18299. if(Packages[playerid] == 0)
  18300. {
  18301. GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~Materials Package", 5000, 3);
  18302. }
  18303. return 1;
  18304. }
  18305. if(pickupid == iCrateGet)
  18306. {
  18307. if(Crates[playerid] == 0)
  18308. {
  18309. GameTextForPlayer(playerid, "~w~Type /getcrate to purchase a ~n~~r~Drug Crate", 5000, 3);
  18310. }
  18311. return 1;
  18312. }
  18313. if(pickupid == iProd2)
  18314. {
  18315. GameTextForPlayer(playerid, "~w~Type /getproducts to purchase some ~n~~r~Products", 5000, 3);
  18316. return 1;
  18317. }
  18318. if(pickupid == iClothes)
  18319. {
  18320. if(PlayerInfo[playerid][pClothes] != 0)
  18321. {
  18322. GameTextForPlayer(playerid, "~w~Type /change to change back into ~n~~r~Clothes", 5000, 3);
  18323. }
  18324. else
  18325. {
  18326. GameTextForPlayer(playerid, "~w~Type /change to change into a ~n~~r~Karate Uniform", 5000, 3);
  18327. }
  18328. return 1;
  18329. }
  18330.  
  18331. if(pickupid == iTraining)
  18332. {
  18333. GameTextForPlayer(playerid, "~w~Type /train to learn ~n~~r~Martial Arts", 5000, 3);
  18334. return 1;
  18335. }
  18336.  
  18337. if(pickupid == ipaintball)
  18338. {
  18339. GameTextForPlayer(playerid, "~w~Type ~r~/paintball~w~ to go inside paintball", 5000, 5);
  18340. return 1;
  18341. }
  18342. if(pickupid == iVault)
  18343. {
  18344. GameTextForPlayer(playerid, "~w~Type ~r~/crackthevault~w~ to crack this", 5000, 5);
  18345. return 1;
  18346. }
  18347. if(pickupid == iFBI)
  18348. {
  18349. GameTextForPlayer(playerid, "~b~/fbi", 5000, 5);
  18350. return 1;
  18351. }
  18352.  
  18353. // Vip weapons, Andy
  18354. // Spas12
  18355. if(pickupid == iVIPSpas12)
  18356. {
  18357. new string[100];
  18358. if(PlayerInfo[playerid][pDonateRank] == 1)
  18359. {
  18360. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$80,000");
  18361. GameTextForPlayer(playerid, string, 3000, 5);
  18362. return 1;
  18363. }
  18364. if(PlayerInfo[playerid][pDonateRank] == 2)
  18365. {
  18366. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$40,000");
  18367. GameTextForPlayer(playerid, string, 3000, 5);
  18368. return 1;
  18369. }
  18370. if(PlayerInfo[playerid][pDonateRank] == 3)
  18371. {
  18372. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Spas12 ~w~for ~b~$25,000");
  18373. GameTextForPlayer(playerid, string, 3000, 5);
  18374. return 1;
  18375. }
  18376. return 1;
  18377. }
  18378.  
  18379. // Knife
  18380. if(pickupid == iVIPKNIFE)
  18381. {
  18382. new string[100];
  18383. if(PlayerInfo[playerid][pDonateRank] == 1)
  18384. {
  18385. format(string, sizeof(string), "~w~Gold VIP only");
  18386. GameTextForPlayer(playerid, string, 3000, 5);
  18387. return 1;
  18388. }
  18389. if(PlayerInfo[playerid][pDonateRank] == 2)
  18390. {
  18391. format(string, sizeof(string), "~w~Gold VIP only");
  18392. GameTextForPlayer(playerid, string, 3000, 5);
  18393. return 1;
  18394. }
  18395. if(PlayerInfo[playerid][pDonateRank] == 3)
  18396. {
  18397. format(string, sizeof(string), "~w~Type ~r~~w~ to buy this ~n~~y~Knife ~w~for ~b~$100,000");
  18398. GameTextForPlayer(playerid, string, 3000, 5);
  18399. return 1;
  18400. }
  18401. return 1;
  18402. }
  18403.  
  18404. // Vest
  18405. if(pickupid == iVIPARMOR)
  18406. {
  18407. new string[100];
  18408. if(PlayerInfo[playerid][pDonateRank] == 1)
  18409. {
  18410. format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$10,000");
  18411. GameTextForPlayer(playerid, string, 3000, 5);
  18412. return 1;
  18413. }
  18414. if(PlayerInfo[playerid][pDonateRank] == 2)
  18415. {
  18416. format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$5,000");
  18417. GameTextForPlayer(playerid, string, 3000, 5);
  18418. return 1;
  18419. }
  18420. if(PlayerInfo[playerid][pDonateRank] == 3)
  18421. {
  18422. format(string, sizeof(string), "~w~Type ~r~/buyvest~w~ to buy this ~n~~y~Vest ~w~for ~b~$2,500");
  18423. GameTextForPlayer(playerid, string, 3000, 5);
  18424. return 1;
  18425. }
  18426. return 1;
  18427. }
  18428.  
  18429. // HP
  18430. if(pickupid == iVIPHP)
  18431. {
  18432. new string[100];
  18433. if(PlayerInfo[playerid][pDonateRank] == 1)
  18434. {
  18435. format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 60 points");
  18436. GameTextForPlayer(playerid, string, 3000, 5);
  18437. return 1;
  18438. }
  18439. if(PlayerInfo[playerid][pDonateRank] == 2)
  18440. {
  18441. format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 80 points");
  18442. GameTextForPlayer(playerid, string, 3000, 5);
  18443. return 1;
  18444. }
  18445. if(PlayerInfo[playerid][pDonateRank] == 3)
  18446. {
  18447. format(string, sizeof(string), "~w~Type ~r~/gethp~w~ to fill your ~n~~y~health ~w~to 100 points");
  18448. GameTextForPlayer(playerid, string, 3000, 5);
  18449. return 1;
  18450. }
  18451. return 1;
  18452. }
  18453.  
  18454. // Crack
  18455. if(pickupid == iVIPCRACK)
  18456. {
  18457. new string[100];
  18458. if(PlayerInfo[playerid][pDonateRank] == 1)
  18459. {
  18460. format(string, sizeof(string), "~w~Silver VIP only");
  18461. GameTextForPlayer(playerid, string, 3000, 5);
  18462. return 1;
  18463. }
  18464. if(PlayerInfo[playerid][pDonateRank] == 2)
  18465. {
  18466. format(string, sizeof(string), "~w~Type ~r~/buycrack~w~ to buy 10 grams of ~n~~y~Crack ~w~for ~b~$15,000");
  18467. GameTextForPlayer(playerid, string, 3000, 5);
  18468. return 1;
  18469. }
  18470. if(PlayerInfo[playerid][pDonateRank] == 3)
  18471. {
  18472. format(string, sizeof(string), "~w~Type ~r~/buycrack~w~ to buy 10 grams of ~n~~y~Crack ~w~for ~b~$10,000");
  18473. GameTextForPlayer(playerid, string, 3000, 5);
  18474. return 1;
  18475. }
  18476. return 1;
  18477. }
  18478.  
  18479. // M4
  18480. if(pickupid == iVIPM4)
  18481. {
  18482. new string[100];
  18483. if(PlayerInfo[playerid][pDonateRank] == 1)
  18484. {
  18485. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$30,000");
  18486. GameTextForPlayer(playerid, string, 3000, 5);
  18487. return 1;
  18488. }
  18489. if(PlayerInfo[playerid][pDonateRank] == 2)
  18490. {
  18491. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$15,000");
  18492. GameTextForPlayer(playerid, string, 3000, 5);
  18493. return 1;
  18494. }
  18495. if(PlayerInfo[playerid][pDonateRank] == 3)
  18496. {
  18497. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~M4 ~w~for ~b~$10,000");
  18498. GameTextForPlayer(playerid, string, 3000, 5);
  18499. return 1;
  18500. }
  18501. return 1;
  18502. }
  18503. // AK47
  18504. if(pickupid == iVIPAK47)
  18505. {
  18506. new string[100];
  18507. if(PlayerInfo[playerid][pDonateRank] == 1)
  18508. {
  18509. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$25,000");
  18510. GameTextForPlayer(playerid, string, 3000, 5);
  18511. return 1;
  18512. }
  18513. if(PlayerInfo[playerid][pDonateRank] == 2)
  18514. {
  18515. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$12,000");
  18516. GameTextForPlayer(playerid, string, 3000, 5);
  18517. return 1;
  18518. }
  18519. if(PlayerInfo[playerid][pDonateRank] == 3)
  18520. {
  18521. format(string, sizeof(string), "~w~Type ~r~/buygun~w~ to buy this ~n~~y~Ak47 ~w~for ~b~$7,000");
  18522. GameTextForPlayer(playerid, string, 3000, 5);
  18523. return 1;
  18524. }
  18525. return 1;
  18526. }
  18527.  
  18528. if(pickupid == iOrder)
  18529. {
  18530. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  18531. {
  18532. GameTextForPlayer(playerid, "~w~Type /order to purchase~n~~r~equipment", 5000, 5);
  18533. }
  18534. return 1;
  18535. }
  18536. if(pickupid == iOrder2)
  18537. {
  18538. if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
  18539. {
  18540. GameTextForPlayer(playerid, "~w~Type /order to purchase~n~~r~equipment", 5000, 5);
  18541. }
  18542. return 1;
  18543. }
  18544. if(pickupid == iDetective)
  18545. {
  18546. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Detective~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18547. return 1;
  18548. }
  18549. if(pickupid == iProd)
  18550. {
  18551. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Product Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18552. return 1;
  18553. }
  18554. if(pickupid == iLawyer)
  18555. {
  18556. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18557. return 1;
  18558. }
  18559. if(pickupid == iDealer)
  18560. {
  18561. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drug Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18562. return 1;
  18563. }
  18564. if(pickupid == iMechanic)
  18565. {
  18566. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Mechanic~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18567. return 1;
  18568. }
  18569. if(pickupid == iBodyguard)
  18570. {
  18571. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Bodyguard~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18572. return 1;
  18573. }
  18574. if(pickupid == iArms)
  18575. {
  18576. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Arms Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18577. return 1;
  18578. }
  18579. if(pickupid == iTaxi)
  18580. {
  18581. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Taxi Driver~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18582. return 1;
  18583. }
  18584. if(pickupid == iSmuggler)
  18585. {
  18586. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drug Smuggler~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18587. return 1;
  18588. }
  18589. /* if(pickupid == iTrashman) // Trashman
  18590. {
  18591. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Trashman~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  18592. return 1;
  18593. }
  18594. if(pickupid == iTrashUniform)
  18595. {
  18596. if(PlayerInfo[playerid][pClothes] != 0)
  18597. {
  18598. GameTextForPlayer(playerid, "~w~Type /change to change back into your~n~~r~Clothes", 5000, 3);
  18599. }
  18600. else
  18601. {
  18602. GameTextForPlayer(playerid, "~w~Type /change to change into a ~n~~r~Trashman Uniform", 5000, 3);
  18603. }
  18604. return 1;
  18605. }*/
  18606. if(pickupid == iArrest1 || pickupid == iArrest2)
  18607. {
  18608. if(IsACop(playerid))
  18609. {
  18610. GameTextForPlayer(playerid, "~w~Type /arrest to jail the ~n~~r~suspect", 5000, 3);
  18611. }
  18612. return 1;
  18613. }
  18614. if(pickupid == iArrest3)
  18615. {
  18616. if(IsACop(playerid))
  18617. {
  18618. GameTextForPlayer(playerid, "~w~Type /sarrest to jail the ~n~~r~suspect", 5000, 3);
  18619. }
  18620. return 1;
  18621. }
  18622. if(pickupid == iDeliver)
  18623. {
  18624. if(IsACop(playerid))
  18625. {
  18626. GameTextForPlayer(playerid, "~w~Type /deliver to send the suspect to ~n~~r~fort demorgan", 5000, 3);
  18627. }
  18628. return 1;
  18629. }
  18630. if(pickupid == iArrest4)
  18631. {
  18632. if(IsAAgent(playerid))
  18633. {
  18634. GameTextForPlayer(playerid, "~w~Type /cdeliver to send the suspect to ~n~~b~CIA Detention", 5000, 3);
  18635. }
  18636. return 1;
  18637. }
  18638. if(pickupid == iVIPLounge1)//PaNoULiS
  18639. {
  18640. GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to get inside", 5000, 5);
  18641. return 1;
  18642. }
  18643. if(pickupid == iHeal1 || pickupid == iHeal2)
  18644. {
  18645. GameTextForPlayer(playerid, "~w~Type /healme to ~n~~r~cure yourself", 5000, 5);
  18646. return 1;
  18647. }
  18648. if(pickupid == iPoint1 || pickupid == iPoint3 || pickupid == iPoint4)
  18649. {
  18650. return 1;
  18651. }
  18652. return 1;
  18653. }
  18654.  
  18655. public SaveVehicleComponents(vehicleid)
  18656. {
  18657. new slot[14];
  18658. slot[0] = GetVehicleComponentInSlot(vehicleid, 0);
  18659. slot[1] = GetVehicleComponentInSlot(vehicleid, 1);
  18660. slot[2] = GetVehicleComponentInSlot(vehicleid, 2);
  18661. slot[3] = GetVehicleComponentInSlot(vehicleid, 3);
  18662. slot[4] = GetVehicleComponentInSlot(vehicleid, 4);
  18663. slot[5] = GetVehicleComponentInSlot(vehicleid, 5);
  18664. slot[6] = GetVehicleComponentInSlot(vehicleid, 6);
  18665. slot[7] = GetVehicleComponentInSlot(vehicleid, 7);
  18666. slot[8] = GetVehicleComponentInSlot(vehicleid, 8);
  18667. slot[9] = GetVehicleComponentInSlot(vehicleid, 9);
  18668. slot[10] = GetVehicleComponentInSlot(vehicleid, 10);
  18669. slot[11] = GetVehicleComponentInSlot(vehicleid, 11);
  18670. slot[12] = GetVehicleComponentInSlot(vehicleid, 12);
  18671. slot[13] = GetVehicleComponentInSlot(vehicleid, 13);
  18672. if(slot[0] != 0)
  18673. {
  18674. CarInfo[vehicleid][tComponent0] = slot[0];
  18675. }
  18676. if(slot[1] != 0)
  18677. {
  18678. CarInfo[vehicleid][tComponent1] = slot[1];
  18679. }
  18680. if(slot[2] != 0)
  18681. {
  18682. CarInfo[vehicleid][tComponent2] = slot[2];
  18683. }
  18684. if(slot[3] != 0)
  18685. {
  18686. CarInfo[vehicleid][tComponent3] = slot[3];
  18687. }
  18688. if(slot[4] != 0)
  18689. {
  18690. CarInfo[vehicleid][tComponent4] = slot[4];
  18691. }
  18692. if(slot[5] != 0)
  18693. {
  18694. CarInfo[vehicleid][tComponent5] = slot[5];
  18695. }
  18696. if(slot[6] != 0)
  18697. {
  18698. CarInfo[vehicleid][tComponent6] = slot[6];
  18699. }
  18700. if(slot[7] != 0)
  18701. {
  18702. CarInfo[vehicleid][tComponent7] = slot[7];
  18703. }
  18704. if(slot[8] != 0)
  18705. {
  18706. CarInfo[vehicleid][tComponent8] = slot[8];
  18707. }
  18708. if(slot[9] != 0)
  18709. {
  18710. CarInfo[vehicleid][tComponent9] = slot[9];
  18711. }
  18712. if(slot[10] != 0)
  18713. {
  18714. CarInfo[vehicleid][tComponent10] = slot[10];
  18715. }
  18716. if(slot[11] != 0)
  18717. {
  18718. CarInfo[vehicleid][tComponent11] = slot[11];
  18719. }
  18720. if(slot[12] != 0)
  18721. {
  18722. CarInfo[vehicleid][tComponent12] = slot[12];
  18723. }
  18724. if(slot[13] != 0)
  18725. {
  18726. CarInfo[vehicleid][tComponent13] = slot[13];
  18727. }
  18728. }
  18729.  
  18730. public ClearVehicleComponents(vehicleid)
  18731. {
  18732. CarInfo[vehicleid][tComponent0] = 0;
  18733. CarInfo[vehicleid][tComponent1] = 0;
  18734. CarInfo[vehicleid][tComponent2] = 0;
  18735. CarInfo[vehicleid][tComponent3] = 0;
  18736. CarInfo[vehicleid][tComponent4] = 0;
  18737. CarInfo[vehicleid][tComponent5] = 0;
  18738. CarInfo[vehicleid][tComponent6] = 0;
  18739. CarInfo[vehicleid][tComponent7] = 0;
  18740. CarInfo[vehicleid][tComponent8] = 0;
  18741. CarInfo[vehicleid][tComponent9] = 0;
  18742. CarInfo[vehicleid][tComponent10] = 0;
  18743. CarInfo[vehicleid][tComponent11] = 0;
  18744. CarInfo[vehicleid][tComponent12] = 0;
  18745. CarInfo[vehicleid][tComponent13] = 0;
  18746. }
  18747.  
  18748. public SetVehicleModifications(vehicleid)
  18749. {
  18750. if(CarInfo[vehicleid][tComponent0] >= 0)
  18751. {
  18752. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent0]);
  18753. }
  18754. if(CarInfo[vehicleid][tComponent1] >= 0)
  18755. {
  18756. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent1]);
  18757. }
  18758. if(CarInfo[vehicleid][tComponent2] >= 0)
  18759. {
  18760. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent2]);
  18761. }
  18762. if(CarInfo[vehicleid][tComponent3] >= 0)
  18763. {
  18764. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent3]);
  18765. }
  18766. if(CarInfo[vehicleid][tComponent4] >= 0)
  18767. {
  18768. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent4]);
  18769. }
  18770. if(CarInfo[vehicleid][tComponent5] >= 0)
  18771. {
  18772. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent5]);
  18773. }
  18774. if(CarInfo[vehicleid][tComponent6] >= 0)
  18775. {
  18776. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent6]);
  18777. }
  18778. if(CarInfo[vehicleid][tComponent7] >= 0)
  18779. {
  18780. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent7]);
  18781. }
  18782. if(CarInfo[vehicleid][tComponent8] >= 0)
  18783. {
  18784. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent8]);
  18785. }
  18786. if(CarInfo[vehicleid][tComponent9] >= 0)
  18787. {
  18788. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent9]);
  18789. }
  18790. if(CarInfo[vehicleid][tComponent10] >= 0)
  18791. {
  18792. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent10]);
  18793. }
  18794. if(CarInfo[vehicleid][tComponent11] >= 0)
  18795. {
  18796. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent11]);
  18797. }
  18798. if(CarInfo[vehicleid][tComponent12] >= 0)
  18799. {
  18800. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent12]);
  18801. }
  18802. if(CarInfo[vehicleid][tComponent13] >= 0)
  18803. {
  18804. AddVehicleComponent(vehicleid, CarInfo[vehicleid][tComponent13]);
  18805. }
  18806. }
  18807.  
  18808. public OnVehicleSpawn(vehicleid)
  18809. {
  18810. if(gDestroyVehicle[vehicleid]) // if vehicle id is marked for deletion
  18811. {
  18812. ////foreach(Player, i) // for all players
  18813. for(new i; i<MAX_PLAYERS; i++)
  18814. {
  18815. if(IsPlayerConnected(i) && IsPlayerInVehicle(i,vehicleid)) // if connected and in vehicleid
  18816. {
  18817. RemovePlayerFromVehicle(i); // remove from vehicle
  18818. }
  18819. }
  18820. SetVehicleVirtualWorld(vehicleid,255); // set vehicle to unused vw to prevent players from using it
  18821. SetTimerEx("KillCar",10000,0,"d",vehicleid);
  18822. for(new i = 0; i < sizeof(CreatedCars); i++)
  18823. {
  18824. if(CreatedCars[i] == vehicleid)
  18825. {
  18826. CreatedCars[i] = INVALID_VEHICLE_ID;
  18827. break;
  18828. }
  18829. }
  18830. }
  18831. DestroyVehicle(vehicleid);
  18832. CarSys[vehicleid] = CreateVehicle(CarInfo[vehicleid][tModel],CarInfo[vehicleid][tLocationx],CarInfo[vehicleid][tLocationy],CarInfo[vehicleid][tLocationz],CarInfo[vehicleid][tAngle],CarInfo[vehicleid][tColorOne],CarInfo[vehicleid][tColorTwo],60000);
  18833. new engine,lights,alarm,doors,bonnet,boot,objective;
  18834. if(CarInfo[vehicleid][tLock] == 1)
  18835. {
  18836. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18837. SetVehicleParamsEx(vehicleid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  18838. }
  18839. if(CarInfo[vehicleid][tTrunkOpened] == 1)
  18840. {
  18841. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18842. SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
  18843. }
  18844. if(CarInfo[vehicleid][tHoodOpened] == 1)
  18845. {
  18846. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18847. SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
  18848. }
  18849. CarInfo[vehicleid][tEngine] = 0;
  18850. ChangeVehiclePaintjob(vehicleid, CarInfo[vehicleid][tPaintjob]);
  18851. SetVehicleModifications(vehicleid);
  18852. ChangeVehicleColor(vehicleid, CarInfo[vehicleid][tColorOne], CarInfo[vehicleid][tColorTwo]);
  18853. new plate[10];
  18854. strmid(plate, CarInfo[vehicleid][tLicensePlate], 0, strlen(CarInfo[vehicleid][tLicensePlate]), 255);
  18855. SetVehicleNumberPlate(vehicleid, plate);
  18856.  
  18857. //Speedo
  18858. LuX_ReadPosition(vehicleid);
  18859. //
  18860.  
  18861.  
  18862. if(CarInfo[vehicleid][Neon] == 1)
  18863. {
  18864. ObjectSelect[vehicleid][0] = CreateDynamicObject(CarInfo[vehicleid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  18865. ObjectSelect[vehicleid][1] = CreateDynamicObject(CarInfo[vehicleid][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  18866. AttachObjectToVehicle(ObjectSelect[vehicleid][0], vehicleid, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  18867. AttachObjectToVehicle(ObjectSelect[vehicleid][1], vehicleid, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  18868. }
  18869. return 1;
  18870.  
  18871. }
  18872.  
  18873.  
  18874.  
  18875. public OnVehicleStreamIn(vehicleid, forplayerid)
  18876. {
  18877. new plate[10];
  18878. strmid(plate, CarInfo[vehicleid][tLicensePlate], 0, strlen(CarInfo[vehicleid][tLicensePlate]), 255);
  18879. SetVehicleNumberPlate(vehicleid, plate);
  18880. new engine,lights,alarm,doors,bonnet,boot,objective;
  18881. if(CarInfo[vehicleid][tLock] == 1)
  18882. {
  18883. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18884. SetVehicleParamsEx(vehicleid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  18885. }
  18886. if(CarInfo[vehicleid][tTrunkOpened] == 1)
  18887. {
  18888. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18889. SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
  18890. }
  18891. if(CarInfo[vehicleid][tHoodOpened] == 1)
  18892. {
  18893. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18894. SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
  18895. }
  18896. if(CarInfo[vehicleid][tEngine] == 1)
  18897. {
  18898. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  18899. SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
  18900. }
  18901. ChangeVehiclePaintjob(vehicleid, CarInfo[vehicleid][tPaintjob]);
  18902. //SetVehicleModifications(vehicleid);
  18903. return 1;
  18904. }
  18905.  
  18906. public OnVehicleDeath(vehicleid)
  18907. {
  18908. if(vehicleid == 152)
  18909. {
  18910. ////foreach(Player,i)
  18911. for(new i; i<MAX_PLAYERS; i++)
  18912. {
  18913. if(GetPlayerVirtualWorld(i) == 1337)
  18914. {
  18915. new Float:px,Float:py,Float:pz;
  18916. GetPlayerPos(i,px,py,pz);
  18917. SendClientMessage(i,COLOR_RED," The plane has exploded !");
  18918. CreateExplosion(px,py,pz,6,10.0);
  18919. SetPlayerHealth(i,0);
  18920. }
  18921. }
  18922. }
  18923. else if(vehicleid == 153)
  18924. {
  18925. ////foreach(Player,i)
  18926. for(new i; i<MAX_PLAYERS; i++)
  18927. {
  18928. if(GetPlayerVirtualWorld(i) == 1338)
  18929. {
  18930. new Float:px,Float:py,Float:pz;
  18931. GetPlayerPos(i,px,py,pz);
  18932. SendClientMessage(i,COLOR_RED," The plane has exploded !");
  18933. CreateExplosion(px,py,pz,6,10.0);
  18934. SetPlayerHealth(i,0);
  18935. }
  18936. }
  18937. }
  18938. else if(vehicleid == 154)
  18939. {
  18940. ////foreach(Player,i)
  18941. for(new i; i<MAX_PLAYERS; i++)
  18942. {
  18943. if(GetPlayerVirtualWorld(i) == 1339)
  18944. {
  18945. new Float:px,Float:py,Float:pz;
  18946. GetPlayerPos(i,px,py,pz);
  18947. SendClientMessage(i,COLOR_RED," The plane has exploded !");
  18948. CreateExplosion(px,py,pz,6,10.0);
  18949. SetPlayerHealth(i,0);
  18950. }
  18951. }
  18952. }
  18953.  
  18954. else if(CarInfo[vehicleid][tInsured] == 0)
  18955. {
  18956. CarInfo[vehicleid][tTrunkOpened] = 0;
  18957. CarInfo[vehicleid][tGun1] = 0;
  18958. CarInfo[vehicleid][tGun2] = 0;
  18959. CarInfo[vehicleid][tArmor] = 0;
  18960. CarInfo[vehicleid][tPot] = 0;
  18961. CarInfo[vehicleid][tCrack] = 0;
  18962. CarInfo[vehicleid][tHoodOpened] = 0;
  18963. }
  18964. else if(CarInfo[vehicleid][tInsured] == 1)
  18965. {
  18966. CarInfo[vehicleid][tTrunkOpened] = 0;
  18967. CarInfo[vehicleid][tHoodOpened] = 0;
  18968. }
  18969. if(CarInfo[vehicleid][Neon] == 1)
  18970. {
  18971. DestroyObject(ObjectSelect[vehicleid][0]);
  18972. DestroyObject(ObjectSelect[vehicleid][1]);
  18973. }
  18974. }
  18975.  
  18976. public DisplayDialogForPlayer(playerid, dialogid)
  18977. {
  18978. switch(dialogid)
  18979. {
  18980. case 1:
  18981. {
  18982. ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Login","Welcome to Reality Gaming Roleplay.\n\nThat name is registered. please enter your password below.","Login","Cancel");
  18983. }
  18984. case 2:
  18985. {
  18986. ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Register","Welcome to Reality Gaming Roleplay.\n\nPlease register your account by typing the password below.","Register","Cancel");
  18987. }
  18988. case 3:
  18989. {
  18990. ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"24-7","Dice $500\nSpeedometer $5000\nCondom $50\nCD Player $50\nSpraycan $200\nRope $400\nCigars $70\nSprunk $10\nWalkie Talkie $200\nScrew Driver $300\nBlindfold $600\nCrowbar ($700)\nWatch ($100)\nSuitcase ($1500)\nWrench ($500)\nHammer ($700)\nRake ($1000)\nFlashlight ($1000)","Buy","Cancel");
  18991. }
  18992. case 4:
  18993. {
  18994. ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Bar","Beer $60\nVodka $100\nWhiskey $100\nWine $100\nSprunk $50\nCigar $100","Buy","Cancel");
  18995. }
  18996. case 5:
  18997. {
  18998. ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Gym","Normal $0\nBoxing $50,000\nKung Fu $50,000\nKneehead $50,000\nGrabkick $50,000\nElbow $50,000","Learn","Cancel");
  18999. }
  19000. case 7:
  19001. {
  19002. ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Meals","Bread $20\nApple $30\nCok O Pops $50\nMashed Potatoes $50\nCarrot $10\nGreen Beans $40\nPork Roll $50\nSausage $70\nChicken $150","Purchase","Cancel");
  19003. }
  19004. case 8:
  19005. {
  19006. ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Locker Room","Duty\nArmory\nClear Suspect\nRelease Suspect","Select","Cancel");
  19007. }
  19008. case 9:
  19009. {
  19010. ShowPlayerDialog(playerid,9,DIALOG_STYLE_LIST,"Weapons","Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nSpas12 $10,000\nSniper $10,000\nGrenades $800\nKevlar $2000","Purchase","Cancel");
  19011. }
  19012. case 10:
  19013. {
  19014. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"LSPD","Duty\nUndercover\nChange Uniform\nArmory\nSWAT\nClear Suspect\nRelease Suspect","Select","Cancel");
  19015. }
  19016. case 11:
  19017. {
  19018. ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"Armory","Mace $20\nNight Stick $20\nDeagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000","Purchase","Cancel");
  19019. }
  19020. case 12:
  19021. {
  19022. ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"SWAT","Weapons\nAccessories","Select","Cancel");
  19023. }
  19024. case 13:
  19025. {
  19026. ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Weapons","Deagle $500\nShotgun $200\nMP5 $400\nRifle $1,000\nM4 $4,000\nSniper Rifle $10,000\nSpas12 $10,000","Purchase","Cancel");
  19027. }
  19028. case 14:
  19029. {
  19030. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"Accessories","Tear Gas $800\nGrenades $800\nKevlar $2000","Purchase","Cancel");
  19031. }
  19032. case 15:
  19033. {
  19034. ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Color Changer", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel");
  19035. }
  19036. case 16:
  19037. {
  19038. ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "Which job do you need help with?", "Detective\nLawyer\nProduct dealer\nDrug Dealer\nMechanic\nBodyguard\nArms Dealer\nBoxer\nTaxi Driver\nDrug Smuggler", "Select", "Cancel");
  19039. }
  19040. case 17:
  19041. {
  19042. ShowPlayerDialog(playerid, 17, DIALOG_STYLE_MSGBOX, "Detective", "Information:\n\nThis job can be used to locate people anywhere around San Andreas.\nThis is helpful for the Government factions, and can be used to find criminals, it is a legal job and you cannot get busted for doing it.\n It will tell you the last known Location(area) they were found in and give you a beacon.", "Next", "Cancel");
  19043. }
  19044. case 18:
  19045. {
  19046. ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "Detective", "Skills:\n\nLevel 1: You can find someone for 3 seconds, the reload time is 2 minutes.\nLevel 2: You can find someone for 5 seconds, the reload time is 1 minute, 20 seconds.\nLevel 3: You can find someone for 7 seconds, the reload time is 1 minute.\nLevel 4: You can find someone for 9 seconds, the reload time is 30 seconds.\nLevel 5: You can find someone for 11 seconds, the reload time is 20 seconds.", "Next", "Cancel");
  19047. }
  19048. case 19:
  19049. {
  19050. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_MSGBOX, "Detective", "Commands:\n\n/find\n/find is a command that can locate a player's position.\n\nLocation Of Job:\nThis job can be obtained inside the Los Santos Police Department.", "Done", "Cancel");
  19051. }
  19052. case 20:
  19053. {
  19054. ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Lawyer", "Information:\n\nThis job can be used to remove wanted stars, reduce jail time, and list all Criminals.\nThis is helpful for criminals and crooks, it is a legal job and you cannot get busted for doing it.\nIt will come in handy for your friends and families who got trouble with the cops.", "Next", "Cancel");
  19055. }
  19056. case 21:
  19057. {
  19058. ShowPlayerDialog(playerid, 21, DIALOG_STYLE_MSGBOX, "Lawyer", "Notes: The reload time is always 2 minutes no matter what level.\n\nSkills:\n\nLevel 1: You can reduce inmates sentences by 1 minute.\nLevel 2: You can reduce inmates sentences by 2 minutes.\nLevel 3: You can reduce inmates sentences by 3 minutes.\nLevel 4: You can reduce inmates sentences by 4 minutes.\nLevel 5: You can reduce inmates sentences by 5 minutes.", "Next", "Cancel");
  19059. }
  19060. case 22:
  19061. {
  19062. ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "Lawyer", "Commands:\n\n/free, /wanted, /duty.\n\nLocation of Job: This job can be located at the job icon(yellow circle) near the bank.", "Done", "Cancel");
  19063. }
  19064. case 23:
  19065. {
  19066. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "Product dealer", "Information:\n\nThis job can be used to sell products to business owners.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
  19067. }
  19068. case 24:
  19069. {
  19070. ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, "Product dealer", "Notes: There is no reload time for this job,\nbut there is a maximum number of 500 products which each person can hold.\nBusiness owners can't get this job", "Next", "Cancel");
  19071. }
  19072. case 25:
  19073. {
  19074. ShowPlayerDialog(playerid, 25, DIALOG_STYLE_MSGBOX, "Product dealer", "Commands:\n\n/getproducts, /sellproducts\nUse /getproducts to buy them and /sellproducts to sell them to other players.\n\nLocation Of Job:\nThis job is located in Rodeo, at the job icon(yellow circle).", "Done", "Cancel");
  19075. }
  19076. case 26:
  19077. {
  19078. ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Information:\n\nThis job can be used to sell pot and crack to any customers you might find.\nIt often comes in handy when you're a higher level at it.\nThe higher the level, the more drugs you can hold.\nThis is an illegal job and you can get busted for doing it.", "Next", "Cancel");
  19079. }
  19080. case 27:
  19081. {
  19082. ShowPlayerDialog(playerid, 27, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Notes: The reload time is always 1 minute no matter what level.\n\nSkills:\n\nLevel 1: You can hold 10 pot and 5 crack.\nLevel 2: You can hold 20 pot and 10 crack.\nLevel 3: You can hold 30 pot and 15 crack.\nLevel 4: You can hold 40 pot and 20 crack.\nLevel 5: You can hold 50 pot and 25 crack.", "Next", "Cancel");
  19083. }
  19084. case 28:
  19085. {
  19086. ShowPlayerDialog(playerid, 28, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Commands\n\n/sellpot, /getseeds, /sellcrack, /getcrack.\n\nLocation of Job: This job can be located outside the Drug Den opposite the Ganton Gym at the D icon.", "Done", "Cancel");
  19087. }
  19088. case 29:
  19089. {
  19090. ShowPlayerDialog(playerid, 29, DIALOG_STYLE_MSGBOX, "Mechanic", "Information:\n\nThis job can be used to repair, add nos, and add hydraulics to vehicles.\nThis job can sometimes be rewarding but often people do not require assistance.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
  19091. }
  19092. case 30:
  19093. {
  19094. ShowPlayerDialog(playerid, 30, DIALOG_STYLE_MSGBOX, "Mechanic", "Notes: The reload time is always 1 minute.\n\nSkills:\n\nLevel 1: You can refill a vehicle with 15% fuel.\nLevel 2: You can refill a vehicle with 40% fuel.\nLevel 3: You can refill a vehicle with 60% fuel.\nLevel 4: You can refill a vehicle with 80% fuel.\nLevel 5: You can refill a vehicle with 100% fuel.", "Next", "Cancel");
  19095. }
  19096. case 31:
  19097. {
  19098. ShowPlayerDialog(playerid, 31, DIALOG_STYLE_MSGBOX, "Mechanic", "Commands:\n\n/fix, /repair, /hyd, /nos, /refill, /tow, /duty.\n\nLocation of Job: This job can be obtained near /dropcar, at the job icon(yellow circle).", "Done", "Cancel");
  19099. }
  19100. case 32:
  19101. {
  19102. ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX, "Bodyguard", "Information:\n\nThis job can be used to give people half armor.\nThis job is very profitable and the common spot for purchasing off bodyguards is the gym.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
  19103. }
  19104. case 33:
  19105. {
  19106. ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "Bodyguard", "Notes: The reload time is always 1 minute, there are no job levels for this job, in other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
  19107. }
  19108. case 34:
  19109. {
  19110. ShowPlayerDialog(playerid, 34, DIALOG_STYLE_MSGBOX, "Bodyguard", "Commands:\n\n/sellvest [playerid/name] [price 2000-10000]\n\nLocation of Job: This job can be obtained outside the Ganton Gym, at the job icon(yellow circle).", "Done", "Cancel");
  19111. }
  19112. case 35:
  19113. {
  19114. ShowPlayerDialog(playerid, 35, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Information:\n\nThis job can be used to sell people weapons.\nThis job is very profitable and can earn you big cash at later levels.\nThis is an illegal job and you can be busted for doing it.", "Next", "Cancel");
  19115. }
  19116. case 36:
  19117. {
  19118. ShowPlayerDialog(playerid, 36, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Skills:\n\nLevel 1 Weapons: flowers, knuckles(knuckle busters), sdpistol and shotgun.\nLevel 2 Weapons: baseballbat, cane, MP5 and Rifles.\nLevel 3 Weapons: shovel, nightvision and deagle.\nLevel 4 Weapons: poolcue, golfclub, AK47, Mac10.\nLevel 5 Weapons: katana, dildo, M4, Tec9\nLevel 6 Weapons: Spas12, Sniper.\nLevel 7 Weapons: Chainsaw, Jetpack\nLevel 8 Weapons: RPG\nLevel 9 Weapons: Minigun", "Next", "Cancel");
  19119. }
  19120. case 37:
  19121. {
  19122. ShowPlayerDialog(playerid, 37, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Commands:\n/getmats, /sellgun.\n\nLocation of Job: This job can be obtained outside the large Los Santos Ammunation, at the Gun icon.", "Done", "Cancel");
  19123. }
  19124. case 38:
  19125. {
  19126. ShowPlayerDialog(playerid, 38, DIALOG_STYLE_MSGBOX, "Boxer", "Information:\n\nThis job can be used to box people inside the Ganton Gym\nThis job is not very money-making but you can become the boxing Champion.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
  19127. }
  19128. case 39:
  19129. {
  19130. ShowPlayerDialog(playerid, 39, DIALOG_STYLE_MSGBOX, "Boxer", "Notes: There is no reload time for boxing, you do not need to level it up to box people inside the gym, there are 3 levels for this job.\n\nLevel 1: Beginner Boxer.\nLevel 2: Amateur Boxer.\nLevel 3: Professional Boxer.", "Next", "Cancel");
  19131. }
  19132. case 40:
  19133. {
  19134. ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "Boxer", "Commands:\n\n/fight [playerid/name], /boxstats\n\nLocation of Job: This job can be obtained inside the Ganton Gym, at the job icon(yellow circle).", "Done", "Cancel");
  19135. }
  19136. case 41:
  19137. {
  19138. ShowPlayerDialog(playerid, 41, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Information:\nThis job can be used to take passengers around the city for any price you desire($1-$500 per 16 seconds)\nThis job is not very profitable as people do not usually call taxis, and they sometimes try steal your taxi off you.\nThis is a legal job and you cannot be busted for doing it.", "Next", "Cancel");
  19139. }
  19140. case 42:
  19141. {
  19142. ShowPlayerDialog(playerid, 42, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Notes: There is no reload time for taxi fares, there are no job levels for this job, in other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
  19143. }
  19144. case 43:
  19145. {
  19146. ShowPlayerDialog(playerid, 43, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Commands:\n\n/fare [$1-$500]\n\nLocation of Job: This job can be obtained infront of Unity Station, at the job icon(yellow circle).", "Done", "Cancel");
  19147. }
  19148. case 44:
  19149. {
  19150. ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Information:\n\nThis job can be used to smuggle pot or crack into Los Santos.\nThis job can be very profitable at later levels but still can earn money at level 1.\nThis is an illegal job and you can be busted for doing it.", "Next", "Cancel");
  19151. }
  19152. case 45:
  19153. {
  19154. ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Notes: There is no reload time for Drug Smuggling, it always costs $1000 for a drug crate.\n\nSkills:\n\nLevel 1: You earn $1200 when you deliver a crate.\nLevel 2: You earn $1400 when you deliver a crate.\nLevel 3: You earn $1600 when you deliver a crate.\nLevel 4: You earn $1800 when you deliver a crate.\nLevel 5: You earn $2000 when you deliver a crate.", "Next", "Cancel");
  19155. }
  19156. case 46:
  19157. {
  19158. ShowPlayerDialog(playerid, 46, DIALOG_STYLE_MSGBOX, "Drug Smuggler", "Commands:\n\n/getcrate (then type which drug you want to smuggle)\n\nLocation of Job: This job can be obtained outside the Crack Lab, at the C- icon.", "Done", "Cancel");
  19159. }
  19160. case 47:
  19161. {
  19162. ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill", "Proceed", "Cancel");
  19163. }
  19164. case 79:
  19165. {
  19166. ShowPlayerDialog(playerid,79,DIALOG_STYLE_LIST,"Help","Account\nGeneral\nChat\nToggle\nBank\nJob\nFaction\nFamily\nAdmin\nOther\nBusiness\nFrequently asked questions","Done","Cancel");
  19167. }
  19168. case 80:
  19169. {
  19170. ShowPlayerDialog(playerid,80,DIALOG_STYLE_MSGBOX,"Account","Account Help:\n\n/stats, /skill, /levelup, /upgrade, /resetupgrades, /changepass, /signcheck","Print","Cancel");
  19171. }
  19172. case 81:
  19173. {
  19174. ShowPlayerDialog(playerid,81,DIALOG_STYLE_MSGBOX,"General","General Help:\n\n/pay, /give, /time, /buy, /drink, /(show)licenses, /setalarm, /buyhouse, /(join/quit)event, /animlist, /sellmats\n/stopani, /tie, /untie, /frisk, /drop, /report, /cancel, /id, /flipcoin, /breakin, /(un)blindfold\n/eject, /usepot, /usecrack, /kill, /contract, /fill, /service, /families, /sellcar, /pickweed, /checkweed, /helpme","Print","Cancel");
  19175. }
  19176. case 82:
  19177. {
  19178. ShowPlayerDialog(playerid,82,DIALOG_STYLE_MSGBOX,"Chat","Chat Help:\n\n(/w)hisper, (/o)oc, (/s)hout, (/b)localooc, (/ad)vertise, /me, /do, /low, (/int)ercom, /speakon","Print","Cancel");
  19179. }
  19180. case 83:
  19181. {
  19182. ShowPlayerDialog(playerid,83,DIALOG_STYLE_MSGBOX,"Toggle","Toggle Help:\n\n/togooc, /tognewbie, /tognews, /togfam, /togwhisper, /togphone, /togwt, /togfuel, /togalarm","Print","Cancel");
  19183. }
  19184. case 84:
  19185. {
  19186. ShowPlayerDialog(playerid,84,DIALOG_STYLE_MSGBOX,"Bank","Bank Help:\n\n/withdraw, /deposit, /atm, /wiretransfer","Print","Cancel");
  19187. }
  19188. case 85:
  19189. {
  19190. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) // LSPD, FBI, SAST
  19191. {
  19192. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, (/su)spect, /lspd, /mdc, /detain, /arrest, /wanted, /cuff, /tazer, /showbadge\n/take, /ticket, (/gov)ernment, /deliver, /clothes, /(un)invite, /ouninvite, /giverank, /deployspikes, /deletespike(s)\n/crb /rrb /rrball /armshield /backshield /tow /impound","Print","Cancel");
  19193. }
  19194. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // LSFMD
  19195. {
  19196. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, /heal, /duty, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
  19197. }
  19198. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //Prison Guards
  19199. {
  19200. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/m)egaphone, /suspect, /ng, /mdc, /detain, /wanted, /cuff, /giverank\n/take, /ticket, (/gov)ernment, /deliver, /(un)invite, /ouninvite, /deployspikes, /deletespike(s)","Print","Cancel");
  19201. }
  19202. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
  19203. {
  19204. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, /clothes, /settax, /taxwithdraw, /(un)invite, /ouninvite, /giverank /senate","Print","Cancel");
  19205. }
  19206. if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) //SS
  19207. {
  19208. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/r)adio, (/d)epartments, (/su)spect, /lspd, /mdc, /detain, /arrest, /wanted, /cuff, /tazer\n/take, /ticket, /deliver, /clothes, /(un)invite, /ouninvite, /giverank, /changeclothes, /showbadge","Print","Cancel");
  19209. }
  19210. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman Agency
  19211. {
  19212. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n(/f)amily, /contracts, /givehit, /order, /ranks, /profile, /disguise, /plantbomb, /pickupbomb, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
  19213. }
  19214. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News Agency
  19215. {
  19216. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n/live, /news [text], /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
  19217. }
  19218. if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company
  19219. {
  19220. ShowPlayerDialog(playerid,85,DIALOG_STYLE_MSGBOX,"Faction","Faction Help:\n\n/fare, /clothes, /(un)invite, /ouninvite, /giverank","Print","Cancel");
  19221. }
  19222. }
  19223. case 86: ShowPlayerDialog(playerid,86,DIALOG_STYLE_MSGBOX,"Family","Family Help:\n\n(/f)amily, /adjust, /fwithdraw, /fdeposit, /fsafe, /fstats, /clothes","Print","Cancel");
  19224. case 87: ShowPlayerDialog(playerid,87,DIALOG_STYLE_MSGBOX,"Admin","Admin Help:\n\n(/a)dmin, (/ah)elp, /ahousehelp","Print","Cancel");
  19225. case 88: ShowPlayerDialog(playerid,88,DIALOG_STYLE_MSGBOX,"Other","Other Help:\n\n/cellphonehelp, /househelp, /fishhelp, /irchelp","Print","Cancel");
  19226. case 89: ShowPlayerDialog(playerid,89,DIALOG_STYLE_MSGBOX,"Business","Business Help:\n\n/sellbiz, /sellbiztomarket, /biz, /buybiz","Print","Cancel");
  19227. case 99:
  19228. {
  19229. ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"Silver Blackmarket","Deagle $15,000\nM4A1 $30,000\nSpas12 $90,000\n","Purchase","Cancel");
  19230. }
  19231. case 100:
  19232. {
  19233. ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Gold Blackmarket","Deagle $12,000\nM4A1 $20,000\nSpas12 $70,000\nSniper $65,000\nKnife $500,000","Purchase","Cancel");
  19234. }
  19235. }
  19236. return 1;
  19237. }
  19238.  
  19239. public OnPlayerUpdate(playerid)
  19240. {
  19241. new weaponid = GetPlayerWeapon(playerid);
  19242. if(!IsPlayerInAnyVehicle(playerid) && weaponid == 44 || weaponid == 45) //desynced nv,infared
  19243. {
  19244. new Keys, ud, lr;
  19245. GetPlayerKeys(playerid, Keys, ud, lr);
  19246. if(Keys & KEY_FIRE) return 0;
  19247. }
  19248. if(UsingSate[playerid] == 1)
  19249. {
  19250. new Keys, ud, lr;
  19251. GetPlayerKeys(playerid, Keys, ud, lr);
  19252. if(ud < 0) // up
  19253. {
  19254. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19255. if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]+4, newsposz[playerid]); }
  19256. if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]); }
  19257. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19258. if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19259. else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19260. else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19261. else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19262. else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19263. }
  19264. if(ud > 0) // down
  19265. {
  19266. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19267. if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]-4, newsposz[playerid]); }
  19268. if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid], newsposy[playerid]-8, newsposz[playerid]); }
  19269. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19270. if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19271. else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19272. else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19273. else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19274. else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19275. }
  19276. if(lr < 0) // left
  19277. {
  19278. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19279. if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid]-4, newsposy[playerid], newsposz[playerid]); }
  19280. if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid]-8, newsposy[playerid], newsposz[playerid]); }
  19281. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19282. if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19283. else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19284. else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19285. else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19286. else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19287. }
  19288. if(lr > 0) // right
  19289. {
  19290. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19291. if(ZOOM[playerid] != 1) { SetPlayerPos(playerid, newsposx[playerid]+4, newsposy[playerid], newsposz[playerid]); }
  19292. if(ZOOM[playerid] == 1) { SetPlayerPos(playerid, newsposx[playerid]+8, newsposy[playerid], newsposz[playerid]); }
  19293. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  19294. if(ZOOM[playerid] == 2) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-475); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19295. else if(ZOOM[playerid] == 3) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-450); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19296. else if(ZOOM[playerid] == 4) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-420); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19297. else if(ZOOM[playerid] == 5) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-400); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19298. else if(ZOOM[playerid] == 1) { SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]-250); SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+8, newsposz[playerid]-500); }
  19299.  
  19300. }
  19301. }
  19302. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  19303. {
  19304. for(new i = 0; i < sizeof(SpikeInfo); i++)
  19305. {
  19306. if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
  19307. {
  19308. if(SpikeInfo[i][sCreated] == 1)
  19309. {
  19310. new panels, doors, lights, tires;
  19311. new carid = GetPlayerVehicleID(playerid);
  19312. GetVehicleDamageStatus(carid, panels, doors, lights, tires);
  19313. tires = encode_tires(1, 1, 1, 1);
  19314. UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  19315. return 0;
  19316. }
  19317. }
  19318. }
  19319. }
  19320. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  19321. {
  19322. for(new i = 0; i < sizeof(SpikeInfo); i++)
  19323. {
  19324. if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
  19325. {
  19326. if(SpikeInfo[i][sCreated] == 1)
  19327. {
  19328. new panels, doors, lights, tires;
  19329. new carid = GetPlayerVehicleID(playerid);
  19330. GetVehicleDamageStatus(carid, panels, doors, lights, tires);
  19331. tires = encode_tires(1, 1, 1, 1);
  19332. UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  19333. GameTextForPlayer(playerid,"~r~Spiked",4000,3);
  19334. return 0;
  19335. }
  19336. }
  19337. }
  19338. }
  19339.  
  19340. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  19341. {
  19342. new veh = GetPlayerVehicleID(playerid);
  19343. new Float:h;
  19344. GetVehicleHealth(veh, h);
  19345. if(h <= 300)
  19346. {
  19347. if(CarInfo[veh][tEngine] == 1)
  19348. {
  19349. new engine, lights, alarm, doors, bonnet, boot, objective;
  19350. GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
  19351. SetVehicleParamsEx(veh, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
  19352. SendClientMessage(playerid, COLOR_LIGHTRED, "Your engine is broken. Call for a mechanic.");
  19353. CarInfo[veh][tEngine] = 0;
  19354. }
  19355. }
  19356. }
  19357. new Keys, ud, lr;
  19358. GetPlayerKeys(playerid, Keys, ud, lr);
  19359. if(Keys & KEY_FIRE)
  19360. {
  19361. if(GetPlayerWeapon(playerid) == 23 && PlayerHasTazer[playerid] == 1)
  19362. {
  19363. for(new i; i<MAX_PLAYERS; i++)
  19364. {
  19365. if(IsPlayerAimingAtPlayer(playerid, i))
  19366. {
  19367. if(i == playerid) return 1;
  19368. if(GetDistanceBetweenPlayers(playerid, i) < 8)
  19369. {
  19370. if(PlayerCuffed[i]) return 1;
  19371. if(IsACop(i)) return SendClientMessage(playerid, COLOR_GREY, " Cannot Tazer Cops / FBI / SASD !");
  19372. if(IsPlayerInAnyVehicle(i)) return SendClientMessage(playerid, COLOR_GREY, " Get the suspect out of the vehicle !");
  19373. if(TazerTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, " Please wait while your tazer recharges!");
  19374. new string[128];
  19375. TogglePlayerControllable(i, 0);
  19376. format(string, sizeof(string), "* You were Tazed by %s for 8 seconds.", PlayerName(playerid));
  19377. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  19378. if(PlayerInfo[i][pMask] == 1)
  19379. {
  19380. format(string, sizeof(string), "* You Tazed A Stranger for 8 seconds.");
  19381. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19382. format(string, sizeof(string), "* %s shoots with his Tazer at A Stranger, and tazed him.", PlayerName(playerid));
  19383. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  19384. }
  19385. else
  19386. {
  19387. format(string, sizeof(string), "* You Tazed %s for 8 seconds.",PlayerName(i));
  19388. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19389. format(string, sizeof(string), "* %s shoots with his Tazer at %s, and tazed him.", PlayerName(playerid),PlayerName(i));
  19390. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  19391. }
  19392. SetTimerEx("TazerTimer", 8000, false, "i", playerid);
  19393. TazerTime[playerid] = 1;
  19394. GameTextForPlayer(i, "~r~Tazed", 2500, 3);
  19395. PlayerCuffed[i] = 1;
  19396. PlayerCuffedTime[i] = 8;
  19397. ApplyAnimation(i, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
  19398. }
  19399. else
  19400. {
  19401. SendClientMessage(playerid, COLOR_GREY, " You are too far away from the suspect !");
  19402. return 1;
  19403. }
  19404. }
  19405. }
  19406. }
  19407. return 1;
  19408. }
  19409. if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey3] != 0)
  19410. {
  19411. new VString[128];
  19412. new carid = PlayerInfo[playerid][pCarKey3];
  19413. new percent = CarInfo[carid][tPrice] / 100 * 80;
  19414. new engine,lights,alarm,doors,bonnet,boot,objective;
  19415.  
  19416. CarInfo[carid][tOwned] = 0;
  19417. CarInfo[carid][tInsured] = 0;
  19418. CarInfo[carid][tAlarm] = 0;
  19419. CarInfo[carid][tVehRemote] = 0;
  19420. CarInfo[carid][tLock] = 0;
  19421. CarInfo[carid][tEngine] = 0;
  19422. GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
  19423. SetVehicleParamsEx(carid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  19424. strmid(CarInfo[carid][tOwner], "The State", 0, strlen("The State"), 255);
  19425. strmid(CarInfo[carid][tLicensePlate], "RG:RP", 0, strlen("RG:RP"), 255);
  19426. DestroyDynamic3DTextLabel(VehicleLabel[carid]);
  19427. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", CarInfo[carid][tPrice]);
  19428. VehicleLabel[carid] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[carid][tLocationx],CarInfo[carid][tLocationy],CarInfo[carid][tLocationz], 20, INVALID_PLAYER_ID, carid, 0, -1, -1, -1, 100.0);
  19429.  
  19430. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
  19431. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]+percent);
  19432. PlayerInfo[playerid][pCarKey3] = 0;
  19433. SendClientMessage(playerid, COLOR_YELLOW, "Your third vehicle was sold. Your not Silver/Gold VIP anymore!");
  19434. }
  19435. if( IsPlayerInAnyVehicle(playerid) && (GetPlayerWeapon(playerid) == 24 || GetPlayerWeapon(playerid) == 27)) SetPlayerArmedWeapon(playerid, 0);
  19436. new iCurWeap = GetPlayerWeapon(playerid); // Return the player's current weapon
  19437. if(iCurWeap != iCurrentWeapon[playerid]) // If he changed weapons since the last update
  19438. {
  19439. OnPlayerChangeWeapon(playerid, iCurrentWeapon[playerid], iCurWeap);
  19440. iCurrentWeapon[playerid] = iCurWeap; //Update the weapon variable
  19441. }
  19442. f_OnPlayerUpdate(playerid);
  19443. return 1;
  19444. }
  19445.  
  19446.  
  19447. public OnPlayerExitedMenu(playerid)
  19448. {
  19449. TogglePlayerControllable(playerid, 1);
  19450. return 1;
  19451. }
  19452.  
  19453. public SetAllCopCheckpoint(playerid)
  19454. {
  19455. //foreach(Player, i)
  19456. for(new i; i<MAX_PLAYERS; i++)
  19457. {
  19458. if(IsPlayerConnected(i))
  19459. {
  19460. if(IsACop(i))
  19461. {
  19462. SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
  19463. }
  19464. }
  19465. }
  19466. }
  19467.  
  19468. public SetAllFiremanCheckpoint(playerid)
  19469. {
  19470. for(new i = 0; i < MAX_PLAYERS; i++)
  19471. {
  19472. if(IsPlayerConnected(i))
  19473. {
  19474. if(IsAFireman(i))
  19475. {
  19476. SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
  19477. }
  19478. }
  19479. }
  19480. }
  19481.  
  19482. public SetAllParaCheckpoint(playerid)
  19483. {
  19484. //foreach(Player, i)
  19485. for(new i; i<MAX_PLAYERS; i++)
  19486. {
  19487. if(IsPlayerConnected(i))
  19488. {
  19489. if(PlayerInfo[i][pMember] == 4)
  19490. {
  19491. SetPlayerMarkerForPlayer(i,playerid,TCOLOR_HELP);
  19492. }
  19493. }
  19494. }
  19495. }
  19496.  
  19497. public GivePlayerWeaponAll(weaponid,ammo)
  19498. {
  19499. ////foreach(Player, i)
  19500. for(new i; i<MAX_PLAYERS; i++)
  19501. {
  19502. if(IsPlayerConnected(i))
  19503. {
  19504. GivePlayerAdminGun(i, weaponid);
  19505. }
  19506. }
  19507. }
  19508.  
  19509. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  19510. {
  19511. new x = 0;
  19512. while(x != MAX_PLAYERS) //new spectate code
  19513. {
  19514. if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
  19515. {
  19516. PlayerSpectatePlayer(x,playerid);
  19517. SetPlayerVirtualWorld(x, newinteriorid);
  19518. SetPlayerInterior(x, newinteriorid);
  19519. }
  19520. x++;
  19521. }
  19522. }
  19523.  
  19524. public OnPlayerStateChange(playerid, newstate, oldstate)
  19525. {
  19526. new string[128];
  19527. if(newstate == PLAYER_STATE_DRIVER)
  19528. {
  19529. new vehid = GetPlayerVehicleID(playerid);
  19530. if(vehid == 481 || vehid == 509 || vehid == 510)
  19531. {
  19532. new engine,lights,alarm,doors,bonnet,boot,objective;
  19533. GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
  19534. SetVehicleParamsEx(vehid,1,lights,alarm,doors,bonnet,boot,objective);
  19535. }
  19536. }
  19537. if(oldstate == PLAYER_STATE_DRIVER)
  19538. {
  19539. new model = GetVehicleModel(gLastCar[playerid]);
  19540. if(IsACopCar(gLastCar[playerid]) || model == 457)
  19541. {
  19542. SetPlayerWeapons(playerid);
  19543. }
  19544. }
  19545. if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  19546. {
  19547. GivePlayerGun(playerid, 0);
  19548. }
  19549. if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  19550. {
  19551. new newcar = GetPlayerVehicleID(playerid);
  19552. new x = 0;
  19553. while(x != MAX_PLAYERS)
  19554. {
  19555. if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
  19556. {
  19557. PlayerSpectateVehicle(x,newcar);
  19558. }
  19559. x++;
  19560. }
  19561. }
  19562. if(newstate == PLAYER_STATE_ONFOOT)
  19563. {
  19564. new x = 0;
  19565. while(x != MAX_PLAYERS)
  19566. {
  19567. if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && SpectatedID[x] == playerid)
  19568. {
  19569. PlayerSpectatePlayer(x,playerid);
  19570. }
  19571. x++;
  19572. }
  19573. if(TransportDuty[playerid] > 0)
  19574. {
  19575. if(TransportDuty[playerid] == 1)
  19576. {
  19577. TaxiDrivers -= 1;
  19578. }
  19579. else if(TransportDuty[playerid] == 2)
  19580. {
  19581. BusDrivers -= 1;
  19582. }
  19583. TransportDuty[playerid] = 0;
  19584. format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
  19585. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19586. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+TransportMoney[playerid];
  19587. GivePlayerMoney(playerid, TransportMoney[playerid]);
  19588. TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
  19589. SetPlayerColor(playerid, TCOLOR_WHITE);
  19590. PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
  19591. }
  19592. if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
  19593. {
  19594. if(IsPlayerConnected(TransportDriver[playerid]))
  19595. {
  19596. TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
  19597. TransportTime[TransportDriver[playerid]] = 0;
  19598. TransportCost[TransportDriver[playerid]] = 0;
  19599. format(string, sizeof(string), "~w~The ride cost~n~~r~$%d",TransportCost[playerid]);
  19600. GameTextForPlayer(playerid, string, 5000, 1);
  19601. format(string, sizeof(string), "~w~Passenger left the taxi~n~~g~Earned $%d",TransportCost[playerid]);
  19602. GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
  19603. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TransportCost[playerid];
  19604. GivePlayerMoney(playerid, -TransportCost[playerid]);
  19605. TransportCost[playerid] = 0;
  19606. TransportTime[playerid] = 0;
  19607. TransportDriver[playerid] = 999;
  19608. PlayerPlaySound(playerid,1083,0.0,0.0,0.0);
  19609. }
  19610. }
  19611. }
  19612. if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES
  19613. {
  19614. new name[MAX_PLAYER_NAME];
  19615. GetPlayerName(playerid, name, sizeof(name));
  19616. new vehicleid = GetPlayerVehicleID(playerid);
  19617. ////foreach(Player, i)
  19618. for(new i; i<MAX_PLAYERS; i++)
  19619. {
  19620. if(IsPlayerConnected(i))
  19621. {
  19622. if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0)
  19623. {
  19624. if(PlayerInfo[playerid][pCash] < TransportValue[i])
  19625. {
  19626. format(string, sizeof(string), "* You need $%d to enter.", TransportValue[i]);
  19627. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19628. RemovePlayerFromVehicle(playerid);
  19629. }
  19630. else
  19631. {
  19632. if(TransportDuty[i] == 1)
  19633. {
  19634. format(string, sizeof(string), "* You paid $%d to the Taxi Driver.", TransportValue[i]);
  19635. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19636. if(PlayerInfo[i][pMask] == 1)
  19637. {
  19638. format(string, sizeof(string), "* Stanger has entered your taxi.");
  19639. }
  19640. else
  19641. {
  19642. format(string, sizeof(string), "* %s has entered your taxi.", name);
  19643. }
  19644. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  19645. TransportTime[i] = 1;
  19646. TransportTime[playerid] = 1;
  19647. TransportCost[playerid] = TransportValue[i];
  19648. TransportCost[i] = TransportValue[i];
  19649. TransportDriver[playerid] = i;
  19650. }
  19651. else if(TransportDuty[i] == 2)
  19652. {
  19653. format(string, sizeof(string), "* You paid $%d to the Bus Driver.", TransportValue[i]);
  19654. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  19655. if(PlayerInfo[i][pMask] == 1)
  19656. {
  19657. format(string, sizeof(string), "* Stanger has entered your bus.");
  19658. }
  19659. else
  19660. {
  19661. format(string, sizeof(string), "* %s has entered your bus.", name);
  19662. }
  19663. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  19664. }
  19665. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TransportValue[i];
  19666. GivePlayerMoney(playerid, - TransportValue[i]);
  19667. TransportMoney[i] += TransportValue[i];
  19668. }
  19669. }
  19670. }
  19671. }
  19672. }
  19673. if(newstate == PLAYER_STATE_WASTED) //PLAYER DIES
  19674. {
  19675. if(PlayerInfo[playerid][pJailed] == 0)
  19676. {
  19677. PlayerInfo[playerid][pHospital] = 1;
  19678. }
  19679. }
  19680. if(newstate == PLAYER_STATE_DRIVER)
  19681. {
  19682. new newcar = GetPlayerVehicleID(playerid);
  19683. new Model = GetVehicleModel(newcar);
  19684. if(GetPlayerWeapon(playerid) == 29 || GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 32) { SetPlayerArmedWeapon(playerid, 0); }
  19685. if(IsABoat(newcar))
  19686. {
  19687. if(PlayerInfo[playerid][pBoatLic] < 1)
  19688. {
  19689. SendClientMessage(playerid, COLOR_GREY, " You don't know how to Sail yet, so you left the Boat !");
  19690. RemovePlayerFromVehicle(playerid);
  19691. }
  19692. }
  19693. else
  19694. {
  19695. if(PlayerInfo[playerid][pCarLic] < 1)
  19696. {
  19697. SendClientMessage(playerid, COLOR_GREY, " You don't know how to Drive yet, so you left the Car !");
  19698. RemovePlayerFromVehicle(playerid);
  19699. }
  19700. }
  19701. /*if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
  19702. {
  19703. GameTextForPlayer(playerid, "~w~press ~r~~k~~TOGGLE_SUBMISSIONS~~w~ to tow a car.", 3000, 4);
  19704. }*/
  19705. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
  19706. {
  19707. GameTextForPlayer(playerid, "~w~use ~r~(/int)ercom~w~ to speak with your passengers.", 3000, 4);
  19708. }
  19709. if(CarInfo[newcar][tFaction] == 1 || CarInfo[newcar][tFaction] == 3)
  19710. {
  19711. if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3)
  19712. {
  19713. SendClientMessage(playerid,COLOR_GREY,"You're not a Cop / SAST.");
  19714. RemovePlayerFromVehicle(playerid);
  19715. }
  19716. }
  19717. else if(CarInfo[newcar][tFaction] == 5)
  19718. {
  19719. if(!(PlayerInfo[playerid][pMember] == 5))
  19720. {
  19721. SendClientMessage(playerid,COLOR_GREY,"You're not in the National Guard.");
  19722. RemovePlayerFromVehicle(playerid);
  19723. }
  19724. }
  19725. else if(CarInfo[newcar][tDisabled] == 1)
  19726. {
  19727. if(PlayerInfo[playerid][pAdmin] < 5)
  19728. {
  19729. SendClientMessage(playerid,COLOR_GREY,"This vehicled was disabled by an admin.");
  19730. RemovePlayerFromVehicle(playerid);
  19731. }
  19732. }
  19733. else if(CarInfo[newcar][tGang] != 0)
  19734. {
  19735. new gang = CarInfo[newcar][tGang];
  19736. if(!(PlayerInfo[playerid][pFMember] == gang))
  19737. {
  19738. SendClientMessage(playerid,COLOR_GREY,"This is a gang car, you can't drive it if you are not in that gang.");
  19739. RemovePlayerFromVehicle(playerid);
  19740. }
  19741. }
  19742. else if(CarInfo[newcar][tOwnable] != 0 && CarInfo[newcar][tOwned] != 1)
  19743. {
  19744. new buycarstring[256];
  19745. format(buycarstring,sizeof(buycarstring),"\n {FF0000}Do you want to buy this car for {2F991A}$%d ?",CarInfo[newcar][tPrice]);
  19746. ShowPlayerDialog(playerid,BUYCARDIALOG,DIALOG_STYLE_MSGBOX ,"{FFFFFF}Car for sale",buycarstring, "Buy", "Cancel");
  19747. }
  19748. else if(CarInfo[newcar][tRentable] != 0 && CarInfo[newcar][tOwned] != 1)
  19749. {
  19750. new buycarstring[256];
  19751. format(buycarstring,sizeof(buycarstring),"\n {FF0000} Do you want to rent this car for {2F991A}$%d ?",CarInfo[newcar][tPrice]);
  19752. ShowPlayerDialog(playerid,5353,DIALOG_STYLE_MSGBOX ,"{FFFFFF}Car is rentable",buycarstring, "Rent", "Cancel");
  19753. }
  19754. else if(CarInfo[newcar][tImp] == 1)
  19755. {
  19756. RemovePlayerFromVehicle(playerid);
  19757. SendClientMessage(playerid, COLOR_RED, "This vehicle is impounded!");
  19758. return 1;
  19759. }
  19760. else if(CarInfo[newcar][tFaction] == 2)
  19761. {
  19762. if(!(PlayerInfo[playerid][pMember] == 2))
  19763. {
  19764. SendClientMessage(playerid,COLOR_GREY," You're not in the FBI !");
  19765. RemovePlayerFromVehicle(playerid);
  19766. }
  19767. }
  19768. else if(CarInfo[newcar][tVIP] == 1)
  19769. {
  19770. if(!(PlayerInfo[playerid][pDonateRank] >= 1))
  19771. {
  19772. SendClientMessage(playerid,COLOR_GREY," You're not a Bronze VIP !");
  19773. RemovePlayerFromVehicle(playerid);
  19774. }
  19775. }
  19776. else if(CarInfo[newcar][tVIP] == 2)
  19777. {
  19778. if(!(PlayerInfo[playerid][pDonateRank] >= 2))
  19779. {
  19780. SendClientMessage(playerid,COLOR_GREY," You're not a Silver VIP !");
  19781. RemovePlayerFromVehicle(playerid);
  19782. }
  19783. }
  19784. else if(CarInfo[newcar][tVIP] == 3)
  19785. {
  19786. if(!(PlayerInfo[playerid][pDonateRank] == 3))
  19787. {
  19788. SendClientMessage(playerid,COLOR_GREY," You're not a Gold VIP !");
  19789. RemovePlayerFromVehicle(playerid);
  19790. }
  19791. }
  19792. else if(CarInfo[newcar][tFaction] == 10)
  19793. {
  19794. if(PlayerInfo[playerid][pMember] != 10 && PlayerInfo[playerid][pLeader] != 10 && PlayerInfo[playerid][pJob] != 14)
  19795. {
  19796. SendClientMessage(playerid,COLOR_GREY," You're not a taxi / bus driver !");
  19797. RemovePlayerFromVehicle(playerid);
  19798. }
  19799. }
  19800. else if(CarInfo[newcar][tFaction] == 9)
  19801. {
  19802. if(PlayerInfo[playerid][pMember] != 9 && PlayerInfo[playerid][pLeader] != 9)
  19803. {
  19804. SendClientMessage(playerid,COLOR_GREY," You're not a news reporter !");
  19805. RemovePlayerFromVehicle(playerid);
  19806. }
  19807. }
  19808. else if(CarInfo[newcar][tFaction] == 4)
  19809. {
  19810. if(PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4)
  19811. {
  19812. SendClientMessage(playerid,COLOR_GREY," You're not a paramedic / fireman !");
  19813. RemovePlayerFromVehicle(playerid);
  19814. }
  19815. }
  19816. else if(CarInfo[newcar][tFaction] == 7)
  19817. {
  19818. if(!(PlayerInfo[playerid][pMember] == 7))
  19819. {
  19820. RemovePlayerFromVehicle(playerid);
  19821. }
  19822. }
  19823. if(Model == 427 && !IsACop(playerid)) // enforcer armor exploit fix
  19824. {
  19825. SetPlayerArmour(playerid, StoreArmour[playerid]);
  19826. }
  19827. gLastCar[playerid] = newcar;
  19828. }
  19829. if(newstate == PLAYER_STATE_SPAWNED)
  19830. {
  19831. if(PlayerInfo[playerid][pWantedLevel] > 0)
  19832. {
  19833. new points = PlayerInfo[playerid][pWantedLevel];
  19834. new wlevel;
  19835. if(points == 1) { wlevel = 1; }
  19836. else if(points == 2) { wlevel = 2; }
  19837. else if(points == 3) { wlevel = 3; }
  19838. else if(points == 4) { wlevel = 4; }
  19839. else if(points == 5) { wlevel = 5; }
  19840. else if(points == 6) { wlevel = 6; SetPlayerColor(playerid, TCOLOR_WANTED); }
  19841. SetPlayerWantedLevel(playerid, wlevel);
  19842. }
  19843. }
  19844. return 1;
  19845. }
  19846.  
  19847. public CarCheck()
  19848. {
  19849. new string[128];
  19850. //foreach(Player, j)
  19851. for(new j = 0; j < MAX_PLAYERS; j++)
  19852. {
  19853. if(IsPlayerConnected(j))
  19854. {
  19855. new Float:health;
  19856. if(STDPlayer[j]==1)
  19857. {
  19858. GetPlayerHealth(j, health);
  19859. SetPlayerHealth(j, health - 5.0);
  19860. SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 4 health due to a STD[Sexually Transmitted Disease].");
  19861. SendClientMessage(j, COLOR_LIGHTBLUE, "* Hint: You can go heal at hospital. Type /heal at the yellow i.");
  19862. if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
  19863. }
  19864. else if(STDPlayer[j]==2)
  19865. {
  19866. GetPlayerHealth(j, health);
  19867. SetPlayerHealth(j, health - 12.0);
  19868. SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 8 health due to a STD.");
  19869. if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
  19870. }
  19871. else if(STDPlayer[j]==3)
  19872. {
  19873. GetPlayerHealth(j, health);
  19874. SetPlayerHealth(j, health - 20.0);
  19875. SendClientMessage(j, COLOR_LIGHTBLUE, "* You Lost 12 health due to a STD.");
  19876. if(!IsPlayerInAnyVehicle(j)) { ApplyAnimation(j,"FOOD","EAT_Vomit_P",4.0,0,0,0,0,0); }
  19877. }
  19878. if(PlayerInfo[j][pCash] < 0)
  19879. {
  19880. if(MoneyMessage[j]==0)
  19881. {
  19882. format(string, sizeof(string), "You are in debt, you have till next Pay Check to get: $%d or you go to jail.", PlayerInfo[j][pCash]);
  19883. SendClientMessage(j, COLOR_LIGHTRED, string);
  19884. MoneyMessage[j] = 1;
  19885. }
  19886. }
  19887. else
  19888. {
  19889. MoneyMessage[j] = 0;
  19890. }
  19891. }
  19892. }
  19893. return 1;
  19894. }
  19895.  
  19896. public LockCar(carid)
  19897. {
  19898. //foreach(Player, i)
  19899. for(new i; i<MAX_PLAYERS; i++)
  19900. {
  19901. if(IsPlayerConnected(i))
  19902. {
  19903. SetVehicleParamsForPlayer(carid,i,0,1);
  19904. gCarLock[carid] = 1;
  19905. }
  19906. }
  19907. }
  19908.  
  19909. public UnLockCar(carid)
  19910. {
  19911. //foreach(Player, i)
  19912. for(new i; i<MAX_PLAYERS; i++)
  19913. {
  19914. if(IsPlayerConnected(i))
  19915. {
  19916. SetVehicleParamsForPlayer(carid,i,0,0);
  19917. gCarLock[carid] = 0;
  19918. }
  19919. }
  19920. }
  19921.  
  19922. public InitLockDoors(playerid)
  19923. {
  19924. if(IsPlayerConnected(playerid))
  19925. {
  19926. for(new i = 0; i < MAX_VEHICLES; i++)
  19927. {
  19928. if(gCarLock[i] == 1)
  19929. {
  19930. SetVehicleParamsForPlayer(i,playerid,0,1);
  19931. }
  19932. }
  19933. }
  19934. return 1;
  19935. }
  19936.  
  19937. public OnPlayerExitVehicle(playerid, vehicleid)
  19938. {
  19939. if(gGas[playerid] == 1)
  19940. {
  19941. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
  19942. }
  19943. return 1;
  19944. }
  19945.  
  19946. public OnPlayerRequestClass(playerid, classid)
  19947. {
  19948. if(IsPlayerNPC(playerid))
  19949. {
  19950. SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
  19951. SpawnPlayer(playerid);
  19952. }
  19953. SetTimerEx("Spawn", 10, false, "i", playerid);
  19954. return 1;
  19955. }
  19956.  
  19957. public Spawn(playerid)
  19958. {
  19959. SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
  19960. SpawnPlayer(playerid);
  19961. }
  19962.  
  19963. public SetPlayerCriminal(playerid,declare,reason[])
  19964. {
  19965. if(IsPlayerConnected(playerid))
  19966. {
  19967. new points = PlayerInfo[playerid][pWantedLevel];
  19968. new turned[MAX_PLAYER_NAME];
  19969. new turner[MAX_PLAYER_NAME];
  19970. new string[128];
  19971. new Year, Month, Day;
  19972. getdate(Year, Month, Day);
  19973. GetPlayerName(playerid, turned, sizeof(turned));
  19974. if(declare == 999) format(turner, sizeof(turner), "Unknown");
  19975. else
  19976. {
  19977. if(IsPlayerConnected(declare))
  19978. {
  19979. GetPlayerName(declare, turner, sizeof(turner));
  19980. }
  19981. }
  19982. format(string, sizeof(string), "You've commited a crime ( %s ). Reporter: %s.",reason,turner);
  19983. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  19984. if(points >= 6) SetPlayerColor(playerid, TCOLOR_WANTED);
  19985. SetPlayerWantedLevel(playerid, points);
  19986. if(PlayerInfo[playerid][pCrime][0] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter0], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][0] = 1; format(PlayerInfo[playerid][pCrimeDate0],32,"%02d/%02d/%d", Month, Day, Year); }
  19987. else if(PlayerInfo[playerid][pCrime][1] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter1], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][1] = 1; format(PlayerInfo[playerid][pCrimeDate1],32,"%02d/%02d/%d", Month, Day, Year); }
  19988. else if(PlayerInfo[playerid][pCrime][2] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter2], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][2] = 1; format(PlayerInfo[playerid][pCrimeDate2],32,"%02d/%02d/%d", Month, Day, Year); }
  19989. else if(PlayerInfo[playerid][pCrime][3] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter3], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][3] = 1; format(PlayerInfo[playerid][pCrimeDate3],32,"%02d/%02d/%d", Month, Day, Year); }
  19990. else if(PlayerInfo[playerid][pCrime][4] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter4], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][4] = 1; format(PlayerInfo[playerid][pCrimeDate4],32,"%02d/%02d/%d", Month, Day, Year); }
  19991. else if(PlayerInfo[playerid][pCrime][5] == 0) { strmid(PlayerInfo[playerid][pCrimeReporter5], turner, 0, strlen(turner), 255); PlayerInfo[playerid][pCrime][5] = 1; format(PlayerInfo[playerid][pCrimeDate5],32,"%02d/%02d/%d", Month, Day, Year); }
  19992. PlayerInfo[playerid][pCrimes] += 1;
  19993. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  19994. format(string, sizeof(string), "Current Wanted Level: %d", points);
  19995. SendClientMessage(playerid, COLOR_YELLOW, string);
  19996. for(new i = 0; i < MAX_PLAYERS; i++)
  19997. {
  19998. if(IsPlayerConnected(i))
  19999. {
  20000. if(IsACop(i) || IsAAgent(i) || IsANG(i) || PlayerInfo[i][pMember] == 5)
  20001. {
  20002. format(string,sizeof(string),"Warrant Placed - Reporter: %s",turner);
  20003. SendClientMessage(i,TEAM_BLUE_COLOR,string);
  20004. format(string,sizeof(string),"Crime: %s, Suspect: %s",reason,turned);
  20005. SendClientMessage(i,TEAM_BLUE_COLOR,string);
  20006. }
  20007. }
  20008. }
  20009. }
  20010. }
  20011.  
  20012. public SetPlayerFree(playerid,declare,reason[])
  20013. {
  20014. if(IsPlayerConnected(playerid))
  20015. {
  20016. ClearCrime(playerid);
  20017. new turned[MAX_PLAYER_NAME];
  20018. new turner[MAX_PLAYER_NAME];
  20019. new crbjstore[128];
  20020. if(declare == 255)
  20021. {
  20022. format(turner, sizeof(turner), "911");
  20023. }
  20024. else
  20025. {
  20026. if(IsPlayerConnected(declare))
  20027. {
  20028. GetPlayerName(declare, turner, sizeof(turner));
  20029. }
  20030. }
  20031. GetPlayerName(playerid, turned, sizeof(turned));
  20032. //foreach(Player, i)
  20033. for(new i; i<MAX_PLAYERS; i++)
  20034. {
  20035. if(IsPlayerConnected(i))
  20036. {
  20037. if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
  20038. {
  20039. format(crbjstore, sizeof(crbjstore), "HQ: All Units Officer %s Has Completed Assignment",turner);
  20040. SendClientMessage(i, COLOR_DBLUE, crbjstore);
  20041. format(crbjstore, sizeof(crbjstore), "HQ: %s Has Been Processed, %s",turned,reason);
  20042. SendClientMessage(i, COLOR_DBLUE, crbjstore);
  20043. }
  20044. }
  20045. }
  20046. }
  20047. }
  20048.  
  20049. public OtherTimer()
  20050. {
  20051. new string[128];
  20052. //foreach(Player, i)
  20053. for(new i; i<MAX_PLAYERS; i++)
  20054. {
  20055. if(IsPlayerConnected(i))
  20056. {
  20057. new currentspeed = GetPlayerSpeed(i,false);
  20058. if(gSpeedo[i] == 2)
  20059. {
  20060. if(GetPlayerState(i) == 2)
  20061. {
  20062. format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~g~mph : ~w~%d", currentspeed);
  20063. GameTextForPlayer(i, string, 2000, 5);
  20064. }
  20065. }
  20066. if(currentspeed > 175 && PlayerInfo[i][pAdmin] < 4)
  20067. {
  20068. new tmpcar = GetPlayerVehicleID(i);
  20069. if(!IsAPlane(tmpcar) && !(GetPlayerState(i) == PLAYER_STATE_PASSENGER))
  20070. {
  20071. new sendername[MAX_PLAYER_NAME];
  20072. GetPlayerNameEx(i, sendername, sizeof(sendername));
  20073. format(string, sizeof(string), "Possible speedhack: [%d]%s %d mph.",i,sendername,currentspeed);
  20074. ABroadCast(COLOR_YELLOW,string,1);
  20075. }
  20076. }
  20077. if(CellTime[i] > 0)
  20078. {
  20079. if(CellTime[i] == 60)
  20080. {
  20081. CellTime[i] = 1;
  20082. if(Mobile[Mobile[i]] == i)
  20083. {
  20084. CallCost[i] = CallCost[i]+callcost;
  20085. }
  20086. }
  20087. CellTime[i] = CellTime[i] +1;
  20088. if(Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
  20089. {
  20090. if(IsPlayerConnected(Mobile[i]))
  20091. {
  20092. new called[MAX_PLAYER_NAME];
  20093. GetPlayerNameEx(Mobile[i], called, sizeof(called));
  20094. if(PlayerInfo[Mobile[i]][pMask] == 1)
  20095. {
  20096. format(string, sizeof(string), "* Stanger's phone rings.");
  20097. }
  20098. else
  20099. {
  20100. format(string, sizeof(string), "* %s's phone rings.", called);
  20101. }
  20102. ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  20103. }
  20104. }
  20105. }
  20106. if(CellTime[i] == 0 && CallCost[i] > 0)
  20107. {
  20108. format(string, sizeof(string), "~w~The call cost~n~~r~%d credits",CallCost[i]);
  20109. PlayerInfo[i][pCredits] = PlayerInfo[i][pCredits]-CallCost[i];
  20110. GameTextForPlayer(i, string, 2500, 1);
  20111. CallCost[i] = 0;
  20112. }
  20113. if(TransportTime[i] > 0)
  20114. {//Taxi driver and passenger only
  20115. if(TransportTime[i] >= 16)
  20116. {
  20117. TransportTime[i] = 1;
  20118. if(TransportDriver[i] < 999)
  20119. {
  20120. if(IsPlayerConnected(TransportDriver[i]))
  20121. {
  20122. TransportCost[i] += TransportValue[TransportDriver[i]];
  20123. TransportCost[TransportDriver[i]] = TransportCost[i];
  20124. }
  20125. }
  20126. }
  20127. TransportTime[i] += 1;
  20128. format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
  20129. GameTextForPlayer(i, string, 15000, 6);
  20130. }
  20131.  
  20132. }
  20133. }
  20134. return 1;
  20135. }
  20136.  
  20137. public SetPlayerUnjail()
  20138. {
  20139. new string[128];
  20140. if(PaintballPlayers >= 2 && PaintballRound != 1 && StartingPaintballRound != 1)
  20141. {
  20142. StartingPaintballRound = 1;
  20143. SetTimer("PreparePaintball", 15000, 0);
  20144. }
  20145. //foreach(Player, i)
  20146. for(new i; i<MAX_PLAYERS; i++)
  20147. {
  20148. }
  20149. for(new i; i<MAX_PLAYERS; i++)
  20150. {
  20151. if(IsPlayerConnected(i))
  20152. {
  20153. new level = PlayerInfo[i][pLevel];
  20154. if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 1; }
  20155. else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 2; }
  20156. else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 3; }
  20157. else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 4; }
  20158. else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 5; }
  20159. else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 6; }
  20160. else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 7; }
  20161. else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 8; }
  20162. else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 9; }
  20163. else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 10; }
  20164. else if(level >= 21) { PlayerInfo[i][pPayCheck] += 11; }
  20165. if(PlayerInfo[i][pJailed] > 0)
  20166. {
  20167. if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
  20168. {
  20169. PlayerInfo[i][pJailTime]--;
  20170. }
  20171. if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0)
  20172. {
  20173. PlayerInfo[i][pJailTime] = 0;
  20174. if(PlayerInfo[i][pJailed] == 1)
  20175. {
  20176. SetPlayerInterior(i, 0);
  20177. SetPlayerPos(i,1551.4275,-1675.0511,15.8413); //puts player in the jail
  20178. SetPlayerFacingAngle(i,90.0000);
  20179. SetCameraBehindPlayer(i);
  20180. }
  20181. if(PlayerInfo[i][pJailed] == 4)
  20182. {
  20183. SetPlayerInterior(i, 0);
  20184. SetPlayerPos(i,628.5070,-572.0012,17.1874); //puts player in the jail
  20185. SetPlayerFacingAngle(i,90.0000);
  20186. SetCameraBehindPlayer(i);
  20187. }
  20188. if(PlayerInfo[i][pJailed] == 10)
  20189. {
  20190. SetPlayerInterior(i, 0);
  20191. SetPlayerPos(i,1512.1212,-1705.1373,14.0469); //puts player in the jail
  20192. SetCameraBehindPlayer(i);
  20193. }
  20194. else if(PlayerInfo[i][pJailed] == 2 || PlayerInfo[i][pJailed] == 3)
  20195. {
  20196. if(PlayerCell == 0) // COMMENTED
  20197. {
  20198. SetPlayerPos(i, 1773.7007,-1577.5149,1636.9736);
  20199. SetPlayerFacingAngle( i, 0.0);
  20200. }
  20201. if(PlayerCell == 1)
  20202. {
  20203. SetPlayerPos(i, 1779.1671,-1577.4548,1636.9736);
  20204. SetPlayerFacingAngle( i, 0.0);
  20205. }
  20206. if(PlayerCell == 2)
  20207. {
  20208. SetPlayerPos(i, 1784.6586,-1577.4518,1636.9736);
  20209. SetPlayerFacingAngle( i, 0.0);
  20210. }
  20211. if(PlayerCell == 3)
  20212. {
  20213. SetPlayerPos(i, 1790.3481,-1577.4486,1636.9736);
  20214. SetPlayerFacingAngle( i, 0.0);
  20215. }
  20216. if(PlayerCell == 4)
  20217. {
  20218. SetPlayerPos(i, 1795.4546,-1577.1248,1636.9736);
  20219. SetPlayerFacingAngle( i, 0.0);
  20220. }
  20221. if(PlayerCell == 5)
  20222. {
  20223. SetPlayerPos(i, 1800.7770,-1577.1569,1636.9736);
  20224. SetPlayerFacingAngle( i, 0.0);
  20225. }
  20226. if(PlayerCell == 6)
  20227. {
  20228. SetPlayerPos(i, 1800.7118,-1561.2797,1636.9736);
  20229. SetPlayerFacingAngle( i, 180.0);
  20230. }
  20231. if(PlayerCell == 7)
  20232. {
  20233. SetPlayerPos(i, 1795.8535,-1561.3806,1636.9736);
  20234. SetPlayerFacingAngle( i, 180.0);
  20235. }
  20236. if(PlayerCell == 8)
  20237. {
  20238. SetPlayerPos(i, 1790.4093,-1561.7704,1636.9736);
  20239. SetPlayerFacingAngle( i, 180.0);
  20240. }
  20241. if(PlayerCell == 9)
  20242. {
  20243. SetPlayerPos(i, 1784.9886,-1561.7207,1636.9736);
  20244. SetPlayerFacingAngle( i, 180.0);
  20245. }
  20246. if(PlayerCell == 10)
  20247. {
  20248. SetPlayerPos(i, 1779.1306,-1561.7352,1636.9736);
  20249. SetPlayerFacingAngle( i, 180.0);
  20250. }
  20251. if(PlayerCell == 11)
  20252. {
  20253. SetPlayerPos(i, 1773.3928,-1561.7976,1636.9736);
  20254. SetPlayerFacingAngle( i, 180.0);
  20255. }
  20256. }
  20257. PlayerInfo[i][pJailed] = 0;
  20258. SendClientMessage(i, COLOR_GRAD1," You have paid your debt to society.");
  20259. format(string, sizeof(string), "~g~Freedom~n~~w~Try to be a better citizen");
  20260. GameTextForPlayer(i, string, 5000, 1);
  20261. SetCameraBehindPlayer(i);
  20262. TogglePlayerControllable(i, 1);
  20263. ClearCrime(i);
  20264. SetPlayerToTeamColor(i);
  20265. format(PlayerInfo[i][pPrisonReason], 128, "None.");
  20266. format(PlayerInfo[i][pPrisonedBy], 32, "No-one");
  20267. PlayerInfo[i][pAdminJailed] = 0;
  20268. }
  20269. }
  20270. //moneycheat
  20271. if(GetPlayerMoney(i) != PlayerInfo[i][pCash])
  20272. {
  20273. ResetPlayerMoney(i);
  20274. GivePlayerMoney(i,PlayerInfo[i][pCash]);
  20275. }
  20276. if(UsedFind[i] >= 1)
  20277. {
  20278. UsedFind[i] += 1;
  20279. if(UsedFind[i] >= FReloadTime[i])
  20280. {
  20281. UsedFind[i] = 0;
  20282. }
  20283. }
  20284. if(GotMats[i] >= 1)
  20285. {
  20286. GotMats[i] += 1;
  20287. if(GotMats[i] >= 10)
  20288. {
  20289. GotMats[i] = 0;
  20290. }
  20291. }
  20292. /* new Float:health;
  20293. GetPlayerHealth(i, health);
  20294. if (PlayerInfo[i][pHungry] > 91) { PlayerInfo[i][pHungry]-=1+random(2); }
  20295. if (PlayerInfo[i][pHungry] == 300) { SendClientMessage(i, COLOR_RED, "{FF0000}You're hungry, you need to eat soon. You can buy food from a restaurant."); }
  20296. if (PlayerInfo[i][pHungry] == 90) { SendClientMessage(i, COLOR_RED, "{FF0000}You're hungry, you need to eat soon. You can buy food from a restaurant."); }
  20297. if (PlayerInfo[i][pHungry] > 2 && PlayerInfo[i][pHungry] < 91) { PlayerInfo[i][pHungry]-=1; SetPlayerHealth(i, health - 1.0); }
  20298. if (PlayerInfo[i][pHungry] == 1) { SetPlayerHealth(i, 0); SendClientMessage(i, COLOR_RED, "{FF0000}You didn't eat in time so you fell inconcious and sent to a hospital."); }
  20299. if (PlayerInfo[i][pThirsty] > 91) { PlayerInfo[i][pThirsty]-=1+random(2); }
  20300. if (PlayerInfo[i][pThirsty] == 300) { SendClientMessage(i, COLOR_RED, "{FF0000}You're thirsty, you need to drink soon. You can buy drinks from a restaurant/bar/club/24-7."); }
  20301. if (PlayerInfo[i][pThirsty] == 90) { SendClientMessage(i, COLOR_RED, "{FF0000}You're thirsty, you need to drink soon. You can buy drinks from a restaurant/bar/club/24-7."); }
  20302. if (PlayerInfo[i][pThirsty] > 2 && PlayerInfo[i][pThirsty] < 91) { PlayerInfo[i][pThirsty]-=1; SetPlayerHealth(i, health - 1.0); }
  20303. if (PlayerInfo[i][pThirsty] == 1) { SetPlayerHealth(i, 0); SendClientMessage(i, COLOR_RED, "{FF0000}You didn't drink in time so you fell inconcious and sent to a hospital."); }
  20304. */
  20305. if(HospitalTime[i] >= 1)
  20306. {
  20307. if(HospitalTime[i] >= 49)
  20308. {
  20309. new cut = deathcost;
  20310. if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) //medics
  20311. {
  20312. cut = deathcost/2;
  20313. }
  20314. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-cut;
  20315. GivePlayerMoney(i, PlayerInfo[i][pCash]);
  20316. format(string, sizeof(string), "DOC: Your Medical Bill comes to $%d, have a nice day.", cut);
  20317. SendClientMessage(i, COLOR_LIGHTRED, string);
  20318. SetPlayerHealth(i, 45);
  20319. SetPlayerArmour(i, PlayerInfo[i][pSHealth]);
  20320. SetPlayerPos(i, HospitalSpawns[HospitalSpawn[i]][0], HospitalSpawns[HospitalSpawn[i]][1], HospitalSpawns[HospitalSpawn[i]][2]);
  20321. SetPlayerFacingAngle(i, HospitalSpawns[HospitalSpawn[i]][3]);
  20322. HospitalTime[i] = 0; HospitalSpawn[i] = 0; PlayerInfo[i][pHospital] = 0; PlayerInfo[i][pDeaths] += 1;
  20323. TogglePlayerControllable(i, 1);
  20324. SetCameraBehindPlayer(i);
  20325. SetPlayerToTeamColor(i);
  20326. }
  20327. else
  20328. {
  20329. if(HospitalTime[i] < 5)
  20330. {
  20331. SetPlayerHealth(i, 1);
  20332. }
  20333. else
  20334. {
  20335. new Float:health;
  20336. GetPlayerHealth(i, health);
  20337. SetPlayerHealth(i, health += 1);
  20338. }
  20339. HospitalTime[i] += 1;
  20340. }
  20341. }
  20342.  
  20343. if(TutTime[i] >= 1)
  20344. {
  20345. if(TutTime[i] == 1)
  20346. {
  20347. SendClientMessage(i, COLOR_GREEN, "Do you need a helper assistance ? (Type yes or no)");
  20348. }
  20349. TutTime[i] ++;
  20350. if(TutTime[i] == 8)
  20351. {
  20352. SendClientMessage(i, COLOR_GREEN, "Do you need a helper assistance ? (Type yes or no)");
  20353. }
  20354. if(TutTime[i] == 15)
  20355. {
  20356. SendClientMessage(i, COLOR_LIGHTRED, "There is no helper available to you anymore.");
  20357. TutTime[i] = 0;
  20358. }
  20359. }
  20360.  
  20361. if(WantLawyer[i] >= 1)
  20362. {
  20363. CallLawyer[i] = 111;
  20364. if(WantLawyer[i] == 1)
  20365. {
  20366. SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
  20367. }
  20368. WantLawyer[i] ++;
  20369. if(WantLawyer[i] == 8)
  20370. {
  20371. SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
  20372. }
  20373. if(WantLawyer[i] == 15)
  20374. {
  20375. SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
  20376. }
  20377. if(WantLawyer[i] == 20)
  20378. {
  20379. SendClientMessage(i, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
  20380. WantLawyer[i] = 0;
  20381. CallLawyer[i] = 0;
  20382. }
  20383. }if(PlayerTazeTime[i] >= 1)
  20384. {
  20385. PlayerTazeTime[i] += 1;
  20386. if(PlayerTazeTime[i] == 15)
  20387. {
  20388. PlayerTazeTime[i] = 0;
  20389. }
  20390. else
  20391. {
  20392. new Float:angle;
  20393. GetPlayerFacingAngle(i, angle);
  20394. SetPlayerFacingAngle(i, angle + 90);
  20395. }
  20396. }
  20397. if(PlayerStoned[i] >= 6)
  20398. {
  20399. PlayerStoned[i] += 1;
  20400. /*if(IsPlayerInAnyVehicle(i))
  20401. {
  20402. if(GetPlayerState(i) == 2)
  20403. {
  20404. if(PlayerStoned[i] == 10 || PlayerStoned[i]==20 || PlayerStoned[i]==30 || PlayerStoned[i]==40 || PlayerStoned[i]==50)
  20405. {
  20406. new Float:angle;
  20407. GetPlayerFacingAngle(i, angle);
  20408. SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
  20409. }
  20410. }
  20411. }*/
  20412. if(PlayerStoned[i] == 60)
  20413. {
  20414. PlayerStoned[i] = 0;
  20415. SendClientMessage(i,COLOR_GREY," You are no longer stoned !");
  20416. SetPlayerDrunkLevel(i, 0);
  20417. }
  20418. }
  20419. if(Called911[i] > 0)
  20420. {
  20421. Called911[i] += 1;
  20422. if(Called911[i] == 120)
  20423. {
  20424. SetPlayerToTeamColor(i);
  20425. Called911[i] = 0;
  20426. }
  20427. }
  20428. if(PlayerInfo[i][pCarTime] > 0)
  20429. {
  20430. if(PlayerInfo[i][pCarTime] <= 0)
  20431. {
  20432. PlayerInfo[i][pCarTime] = 0;
  20433. }
  20434. else
  20435. {
  20436. PlayerInfo[i][pCarTime] -= 1;
  20437. }
  20438. }
  20439. if(PlayerInfo[i][pDrugsTime] > 0)
  20440. {
  20441. if(PlayerInfo[i][pDrugsTime] <= 0)
  20442. {
  20443. PlayerInfo[i][pDrugsTime] = 0;
  20444. }
  20445. else
  20446. {
  20447. PlayerInfo[i][pDrugsTime] -= 1;
  20448. }
  20449. }
  20450. if(PlayerInfo[i][pLawyerTime] > 0)
  20451. {
  20452. if(PlayerInfo[i][pLawyerTime] <= 0)
  20453. {
  20454. PlayerInfo[i][pLawyerTime] = 0;
  20455. }
  20456. else
  20457. {
  20458. PlayerInfo[i][pLawyerTime] -= 1;
  20459. }
  20460. }
  20461. if(PlayerInfo[i][pLawyerFreeTime] > 0)
  20462. {
  20463. if(PlayerInfo[i][pLawyerFreeTime] <= 0)
  20464. {
  20465. PlayerInfo[i][pLawyerFreeTime] = 0;
  20466. }
  20467. else
  20468. {
  20469. PlayerInfo[i][pLawyerFreeTime] -= 1;
  20470. }
  20471. }
  20472. if(PlayerInfo[i][pMechTime] > 0)
  20473. {
  20474. if(PlayerInfo[i][pMechTime] <= 0)
  20475. {
  20476. PlayerInfo[i][pMechTime] = 0;
  20477. }
  20478. else
  20479. {
  20480. PlayerInfo[i][pMechTime] -= 1;
  20481. }
  20482. }
  20483. if(PlayerInfo[i][pSexTime] > 0)
  20484. {
  20485. if(PlayerInfo[i][pSexTime] <= 0)
  20486. {
  20487. PlayerInfo[i][pSexTime] = 0;
  20488. }
  20489. else
  20490. {
  20491. PlayerInfo[i][pSexTime] -= 1;
  20492. }
  20493. }
  20494. if(BoxWaitTime[i] > 0)
  20495. {
  20496. if(BoxWaitTime[i] >= BoxDelay)
  20497. {
  20498. BoxDelay = 0;
  20499. BoxWaitTime[i] = 0;
  20500. PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
  20501. GameTextForPlayer(i, "~g~Match Started", 5000, 1);
  20502. TogglePlayerControllable(i, 1);
  20503. RoundStarted = 1;
  20504. }
  20505. else
  20506. {
  20507. format(string, sizeof(string), "%d", BoxDelay - BoxWaitTime[i]);
  20508. GameTextForPlayer(i, string, 1500, 6);
  20509. BoxWaitTime[i] += 1;
  20510. }
  20511. }
  20512. if(RoundStarted > 0)
  20513. {
  20514. if(PlayerBoxing[i] > 0)
  20515. {
  20516. new trigger = 0;
  20517. new Lost = 0;
  20518. new Float:angle;
  20519. new Float:health;
  20520. GetPlayerHealth(i, health);
  20521. if(health < 12)
  20522. {
  20523. if(i == Boxer1) { Lost = 1; trigger = 1; }
  20524. else if(i == Boxer2) { Lost = 2; trigger = 1; }
  20525. }
  20526. if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
  20527. if(trigger)
  20528. {
  20529. new winner[MAX_PLAYER_NAME];
  20530. new loser[MAX_PLAYER_NAME];
  20531. new titel[MAX_PLAYER_NAME];
  20532. if(Lost == 1)
  20533. {
  20534. if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
  20535. {
  20536. SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
  20537. SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
  20538. GetPlayerName(Boxer1, loser, sizeof(loser));
  20539. GetPlayerName(Boxer2, winner, sizeof(winner));
  20540. if(PlayerInfo[Boxer1][pJob] == 12) { PlayerInfo[Boxer1][pLoses] += 1; }
  20541. if(PlayerInfo[Boxer2][pJob] == 12) { PlayerInfo[Boxer2][pWins] += 1; }
  20542. if(TBoxer < 255)
  20543. {
  20544. if(IsPlayerConnected(TBoxer))
  20545. {
  20546. if(TBoxer != Boxer2)
  20547. {
  20548. if(PlayerInfo[Boxer2][pJob] == 10)
  20549. {
  20550. TBoxer = Boxer2;
  20551. GetPlayerName(TBoxer, titel, sizeof(titel));
  20552. new nstring[MAX_PLAYER_NAME];
  20553. format(nstring, sizeof(nstring), "%s", titel);
  20554. strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
  20555. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  20556. Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
  20557. SaveBoxer();
  20558. format(string, sizeof(string), "Boxing News: %s has Won the fight against Champion %s and is now the new Boxing Champion.", titel, loser);
  20559. OOCOff(COLOR_WHITE,string);
  20560. }
  20561. else
  20562. {
  20563. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You would have been the Champion if you had the Boxer Job !");
  20564. }
  20565. }
  20566. else
  20567. {
  20568. GetPlayerName(TBoxer, titel, sizeof(titel));
  20569. format(string, sizeof(string), "Boxing News: Boxing Champion %s has Won the fight against %s.", titel, loser);
  20570. OOCOff(COLOR_WHITE,string);
  20571. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  20572. Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
  20573. SaveBoxer();
  20574. }
  20575. }
  20576. }//TBoxer
  20577. format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
  20578. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
  20579. GameTextForPlayer(Boxer1, "~r~You lost", 3500, 1);
  20580. format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
  20581. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
  20582. GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
  20583. if(GetPlayerHealth(Boxer1, health) < 20)
  20584. {
  20585. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
  20586. SetPlayerHealth(Boxer1, 30.0);
  20587. }
  20588. else
  20589. {
  20590. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
  20591. SetPlayerHealth(Boxer1, 50.0);
  20592. }
  20593. if(GetPlayerHealth(Boxer2, health) < 20)
  20594. {
  20595. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
  20596. SetPlayerHealth(Boxer2, 30.0);
  20597. }
  20598. else
  20599. {
  20600. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
  20601. SetPlayerHealth(Boxer2, 50.0);
  20602. }
  20603. GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
  20604. if(PlayerInfo[Boxer2][pJob] == 10) { PlayerInfo[Boxer2][pBoxSkill] += 1; }
  20605. PlayerBoxing[Boxer1] = 0;
  20606. PlayerBoxing[Boxer2] = 0;
  20607. }
  20608. }
  20609. else if(Lost == 2)
  20610. {
  20611. if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
  20612. {
  20613. SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
  20614. SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
  20615. GetPlayerName(Boxer1, winner, sizeof(winner));
  20616. GetPlayerName(Boxer2, loser, sizeof(loser));
  20617. if(PlayerInfo[Boxer2][pJob] == 10) { PlayerInfo[Boxer2][pLoses] += 1; }
  20618. if(PlayerInfo[Boxer1][pJob] == 10) { PlayerInfo[Boxer1][pWins] += 1; }
  20619. if(TBoxer < 255)
  20620. {
  20621. if(IsPlayerConnected(TBoxer))
  20622. {
  20623. if(TBoxer != Boxer1)
  20624. {
  20625. if(PlayerInfo[Boxer1][pJob] == 10)
  20626. {
  20627. TBoxer = Boxer1;
  20628. GetPlayerName(TBoxer, titel, sizeof(titel));
  20629. new nstring[MAX_PLAYER_NAME];
  20630. format(nstring, sizeof(nstring), "%s", titel);
  20631. strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
  20632. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  20633. Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
  20634. SaveBoxer();
  20635. format(string, sizeof(string), "Boxing News: %s has Won the fight against Champion %s and is now the new Boxing Champion.", titel, loser);
  20636. OOCOff(COLOR_WHITE,string);
  20637. }
  20638. else
  20639. {
  20640. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You would have been the Champion if you had the Boxer Job !");
  20641. }
  20642. }
  20643. else
  20644. {
  20645. GetPlayerName(TBoxer, titel, sizeof(titel));
  20646. format(string, sizeof(string), "Boxing News: Boxing Champion %s has Won the fight against %s.", titel, loser);
  20647. OOCOff(COLOR_WHITE,string);
  20648. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  20649. Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
  20650. SaveBoxer();
  20651. }
  20652. }
  20653. }//TBoxer
  20654. format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
  20655. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
  20656. GameTextForPlayer(Boxer2, "~r~You lost", 3500, 1);
  20657. format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
  20658. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
  20659. GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
  20660. if(GetPlayerHealth(Boxer1, health) < 20)
  20661. {
  20662. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
  20663. SetPlayerHealth(Boxer1, 30.0);
  20664. }
  20665. else
  20666. {
  20667. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
  20668. SetPlayerHealth(Boxer1, 50.0);
  20669. }
  20670. if(GetPlayerHealth(Boxer2, health) < 20)
  20671. {
  20672. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
  20673. SetPlayerHealth(Boxer2, 30.0);
  20674. }
  20675. else
  20676. {
  20677. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
  20678. SetPlayerHealth(Boxer2, 50.0);
  20679. }
  20680. GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
  20681. if(PlayerInfo[Boxer1][pJob] == 10) { PlayerInfo[Boxer1][pBoxSkill] += 1; }
  20682. PlayerBoxing[Boxer1] = 0;
  20683. PlayerBoxing[Boxer2] = 0;
  20684. }
  20685. }
  20686. InRing = 0;
  20687. RoundStarted = 0;
  20688. Boxer1 = 255;
  20689. Boxer2 = 255;
  20690. TBoxer = 255;
  20691. trigger = 0;
  20692. }
  20693. }
  20694. }
  20695. if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0)
  20696. {
  20697. AnnouncedPaintballRound = 1;
  20698. if(PlayerPaintballing[i] != 0)
  20699. {
  20700. SendClientMessage(i, COLOR_YELLOW, "Paintball Match will be announced in 15 seconds.");
  20701. }
  20702. }
  20703. if(FindTime[i] > 0)
  20704. {
  20705. if(FindTime[i] == FindTimePoints[i])
  20706. {
  20707. PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
  20708. GameTextForPlayer(i, "~r~Redmarker gone", 2500, 1);
  20709. FindTime[i] = 0;
  20710. FindTimePoints[i] = 0;
  20711. new target = FindingID[i];
  20712. if(Called911[target] != 0)
  20713. {
  20714. SetAllCopCheckpoint(target);
  20715. }
  20716. else
  20717. {
  20718. SetPlayerToTeamColor(target);
  20719. }
  20720. FindingID[i] = 0;
  20721. }
  20722. else
  20723. {
  20724. format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
  20725. GameTextForPlayer(i, string, 1500, 5);
  20726. FindTime[i] += 1;
  20727. }
  20728. }
  20729. if(TaxiCallTime[i] > 0)
  20730. {
  20731. if(TaxiAccepted[i] < 999)
  20732. {
  20733. if(IsPlayerConnected(TaxiAccepted[i]))
  20734. {
  20735. new Float:X,Float:Y,Float:Z;
  20736. GetPlayerPos(TaxiAccepted[i], X, Y, Z);
  20737. SetPlayerCheckpoint(i, X, Y, Z, 5);
  20738. }
  20739. }
  20740. }
  20741. if(BusCallTime[i] > 0)
  20742. {
  20743. if(BusAccepted[i] < 999)
  20744. {
  20745. if(IsPlayerConnected(BusAccepted[i]))
  20746. {
  20747. new Float:X,Float:Y,Float:Z;
  20748. GetPlayerPos(BusAccepted[i], X, Y, Z);
  20749. SetPlayerCheckpoint(i, X, Y, Z, 5);
  20750. }
  20751. }
  20752. }
  20753. if(MedicCallTime[i] > 0)
  20754. {
  20755. if(MedicCallTime[i] == 30) { MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  20756. else
  20757. {
  20758. format(string, sizeof(string), "%d", 30 - MedicCallTime[i]);
  20759. GameTextForPlayer(i, string, 1500, 6);
  20760. MedicCallTime[i] += 1;
  20761. }
  20762. }
  20763. if(LawyerCallTime[i] > 0)
  20764. {
  20765. if(LawyerCallTime[i] == 30) { LawyerCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  20766. else
  20767. {
  20768. format(string, sizeof(string), "%d", 30 - LawyerCallTime[i]);
  20769. GameTextForPlayer(i, string, 1500, 6);
  20770. LawyerCallTime[i] += 1;
  20771. }
  20772. }
  20773. if(MechanicCallTime[i] > 0)
  20774. {
  20775. if(MechanicCallTime[i] == 30) { MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  20776. else
  20777. {
  20778. format(string, sizeof(string), "%d", 30 - MechanicCallTime[i]);
  20779. GameTextForPlayer(i, string, 1500, 6);
  20780. MechanicCallTime[i] += 1;
  20781. }
  20782. }
  20783. if(PlayerCuffed[i] == 1)
  20784. {
  20785. if(PlayerCuffedTime[i] <= 0)
  20786. {
  20787. ClearAnimations(i);
  20788. TogglePlayerControllable(i, 1);
  20789. PlayerCuffed[i] = 0;
  20790. PlayerCuffedTime[i] = 0;
  20791. PlayerTazeTime[i] = 0;
  20792. }
  20793. else
  20794. {
  20795. PlayerCuffedTime[i] -= 1;
  20796. }
  20797. }
  20798. if(PlayerCuffed[i] == 2)
  20799. {
  20800. if(PlayerCuffedTime[i] <= 0)
  20801. {
  20802. GameTextForPlayer(i, "~r~You broke the Cuffs, you are free!", 2500, 3);
  20803. TogglePlayerControllable(i, 1);
  20804. PlayerCuffed[i] = 0;
  20805. PlayerCuffedTime[i] = 0;
  20806. }
  20807. else
  20808. {
  20809. PlayerCuffedTime[i] -= 1;
  20810. }
  20811. }
  20812. if(PlayerTied[i] == 1)
  20813. {
  20814. if(PlayerCuffedTime[i] <= 0)
  20815. {
  20816. GameTextForPlayer(i, "~r~You broke free of the Ropes, you are free!", 2500, 3);
  20817. SetCameraBehindPlayer(i);
  20818. PlayerBlinded[i] = 0;
  20819. TogglePlayerControllable(i, 1);
  20820. PlayerTied[i] = 0;
  20821. PlayerCuffedTime[i] = 0;
  20822. }
  20823. else
  20824. {
  20825. PlayerCuffedTime[i] -= 1;
  20826. }
  20827. }
  20828. }
  20829. }
  20830. }
  20831.  
  20832. public CheckGas()
  20833. {
  20834. for(new i = 1; i<2000; i++)
  20835. {
  20836. if (CarInfo[i][tEngine] == 1 && !IsNonFuelVehicle(i))
  20837. {
  20838. if(Gas[i] >= 1)
  20839. {
  20840. Gas[i]--;
  20841. }
  20842. else {
  20843. new engine,lights,alarm,doors,bonnet,boot,objective;
  20844. GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
  20845. SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
  20846. CarInfo[i][tEngine] = 0;
  20847. }
  20848. }
  20849. }
  20850. /*for(new i; i<MAX_PLAYERS; i++)
  20851. {
  20852. new string[128];
  20853. if(IsPlayerConnected(i))
  20854. {
  20855. if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
  20856. {
  20857. new vehicle = GetPlayerVehicleID(i);
  20858. if(IsNonFuelVehicle(vehicle)) { return 1; }
  20859. if(Gas[vehicle] >= 1)
  20860. {
  20861. if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
  20862. if(gGas[i] == 1) {
  20863. format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Fuel:~w~ %d%",Gas[vehicle]);
  20864. GameTextForPlayer(i,string,15500,3); }
  20865. }
  20866. else
  20867. {
  20868. NoFuel[i] = 1;
  20869. GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~No fuel in Vehicle~n~",1500,3);
  20870. }
  20871. }
  20872. }
  20873. }*/
  20874. return 1;
  20875. }
  20876.  
  20877. public TazerTimer(playerid)
  20878. {
  20879. if(IsPlayerConnected(playerid))
  20880. {
  20881. if(TazerTime[playerid] == 1)
  20882. {
  20883. TazerTime[playerid] = 0;
  20884. }
  20885. }
  20886. }
  20887.  
  20888. public BizFreeze(playerid)
  20889. {
  20890. if(IsPlayerConnected(playerid))
  20891. {
  20892. TogglePlayerControllable(playerid, 1);
  20893. }
  20894. }
  20895.  
  20896. public Fillup()
  20897. {
  20898. //foreach(Player, i)
  20899. for(new i; i<MAX_PLAYERS; i++)
  20900. {
  20901. if(IsPlayerConnected(i))
  20902. {
  20903. new VID;
  20904. new FillUp;
  20905. new string[128];
  20906. VID = GetPlayerVehicleID(i);
  20907. FillUp = 100 - Gas[VID];
  20908. if(Refueling[i] == 1)
  20909. {
  20910. if(PlayerInfo[i][pCash] >= FillUp+4)
  20911. {
  20912. Gas[VID] += FillUp;
  20913. FillUp = FillUp * 8;
  20914. format(string,sizeof(string),"* You filled your Vehicle up for: $%d.",FillUp);
  20915. SendClientMessage(i,COLOR_LIGHTBLUE,string);
  20916. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-FillUp;
  20917. GivePlayerMoney(i, - FillUp);
  20918. Refueling[i] = 0;
  20919. }
  20920. else
  20921. {
  20922. SendClientMessage(i,COLOR_GREY," You can't afford that !");
  20923. }
  20924. }
  20925. }
  20926. }
  20927. return 1;
  20928. }
  20929.  
  20930. public StoppedVehicle()
  20931. {
  20932. new Float:x,Float:y,Float:z;
  20933. new Float:distance,value;
  20934. //foreach(Player, i)
  20935. for(new i; i<MAX_PLAYERS; i++)
  20936. {
  20937. if(IsPlayerConnected(i))
  20938. {
  20939. if(IsPlayerInAnyVehicle(i))
  20940. {
  20941. new VID;
  20942. VID = GetPlayerVehicleID(i);
  20943. GetPlayerPos(i, x, y, z);
  20944. distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
  20945. value = floatround(distance * 3600);
  20946. if(UpdateSeconds > 1)
  20947. {
  20948. value = floatround(value / UpdateSeconds);
  20949. }
  20950. if(value == 0)
  20951. {
  20952. Gas[VID]++;
  20953. }
  20954. SavePlayerPos[i][LastX] = x;
  20955. SavePlayerPos[i][LastY] = y;
  20956. SavePlayerPos[i][LastZ] = z;
  20957. }
  20958. }
  20959. }
  20960. return 1;
  20961. }
  20962.  
  20963. public SetPlayerWeapons(playerid)
  20964. {
  20965. if(IsPlayerConnected(playerid))
  20966. {
  20967. ResetPlayerWeapons(playerid);
  20968. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { GivePlayerGun(playerid, 42); }
  20969. if (PlayerInfo[playerid][pGun12] > 0)
  20970. {
  20971. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun12], 65000);
  20972. }
  20973. if (PlayerInfo[playerid][pGun11] > 0)
  20974. {
  20975. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun11], 65000);
  20976. }
  20977. if (PlayerInfo[playerid][pGun10] > 0)
  20978. {
  20979. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun10], 65000);
  20980. }
  20981. if (PlayerInfo[playerid][pGun9] > 0)
  20982. {
  20983. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun9], 65000);
  20984. }
  20985. if (PlayerInfo[playerid][pGun8] > 0)
  20986. {
  20987. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun8], 2);
  20988. }
  20989. if (PlayerInfo[playerid][pGun7] > 0)
  20990. {
  20991. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun7], 65000);
  20992. }
  20993. if (PlayerInfo[playerid][pGun6] > 0)
  20994. {
  20995. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun6], 65000);
  20996. }
  20997. if (PlayerInfo[playerid][pGun5] > 0)
  20998. {
  20999. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun5], 65000);
  21000. }
  21001. if (PlayerInfo[playerid][pGun4] > 0)
  21002. {
  21003. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun4], 65000);
  21004. }
  21005. if (PlayerInfo[playerid][pGun3] > 0)
  21006. {
  21007. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], 65000);
  21008. }
  21009. if (PlayerInfo[playerid][pGun2] > 0)
  21010. {
  21011. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], 65000);
  21012. }
  21013. if (PlayerInfo[playerid][pGun1] > 0)
  21014. {
  21015. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], 65000);
  21016. }
  21017. if (PlayerInfo[playerid][pGun0] > 0)
  21018. {
  21019. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun0], 65000);
  21020. }
  21021. }
  21022. return 1;
  21023. }
  21024.  
  21025.  
  21026. public ShowProfile(playerid,targetid)
  21027. {
  21028. if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  21029. {
  21030. new pmember = PlayerInfo[targetid][pMember];
  21031. new pleader = PlayerInfo[targetid][pLeader];
  21032. new fmember = PlayerInfo[targetid][pFMember];
  21033. new name[MAX_PLAYER_NAME];
  21034. GetPlayerName(targetid, name, sizeof(name));
  21035. new age = PlayerInfo[targetid][pAge];
  21036. new hvalue = PlayerInfo[targetid][pHeadValue];
  21037. new cont[20];
  21038. strmid(cont, PlayerInfo[targetid][pContractBy], 0, strlen(PlayerInfo[targetid][pContractBy]), 255);
  21039. new ftext[20];
  21040. if(pmember == 1 || pleader == 1)
  21041. { ftext = "LSPD"; }
  21042. else if(pmember == 2 || pleader == 2)
  21043. { ftext = "FBI"; }
  21044. else if(pmember == 3 || pleader == 3)
  21045. { ftext = "SAST"; }
  21046. else if(pmember == 4 || pleader == 4)
  21047. { ftext = "Firemen/Paramedic"; }
  21048. else if(pmember == 5 || pleader == 5)
  21049. { ftext = "National Guards"; }
  21050. else if(pmember == 6 || pleader == 6)
  21051. { ftext = "Senate"; }
  21052. else if(pmember == 7 || pleader == 7)
  21053. { ftext = "CIA"; }
  21054. else if(pmember == 8 || pleader == 8)
  21055. { ftext = "Hitman Agency"; }
  21056. else if(pmember == 9 || pleader == 9)
  21057. { ftext = "News Agency"; }
  21058. else if(pmember == 10 || pleader == 10)
  21059. { ftext = "Taxi Company"; }
  21060. else
  21061. { ftext = "None"; }
  21062. new famtext[24];
  21063. if(fmember < 255)
  21064. { strmid(famtext, FamilyInfo[fmember][FamilyName], 0, strlen(FamilyInfo[fmember][FamilyName]), 255); }
  21065. else { famtext = "None"; }
  21066. new info[128];
  21067. SendClientMessage(playerid, COLOR_WHITE, "Profile Information:");
  21068. format(info, sizeof(info),"Name: %s",name);
  21069. SendClientMessage(playerid, COLOR_GREY,info);
  21070. format(info, sizeof(info),"Age: %d",age);
  21071. SendClientMessage(playerid, COLOR_GREY,info);
  21072. format(info, sizeof(info),"Organisation: %s",ftext);
  21073. SendClientMessage(playerid, COLOR_GREY,info);
  21074. format(info, sizeof(info),"Family: %s",famtext);
  21075. SendClientMessage(playerid, COLOR_GREY,info);
  21076. format(info, sizeof(info),"Contracted By: %s",cont);
  21077. SendClientMessage(playerid, COLOR_GREY,info);
  21078. format(info, sizeof(info),"Bounty: $%d",hvalue);
  21079. SendClientMessage(playerid, COLOR_GREY,info);
  21080. }
  21081. }
  21082.  
  21083. //Speedo
  21084. public LuX_SpeedoMeterUp()
  21085. {
  21086. new Float:LPosX;
  21087. new Float:LPosY;
  21088. new Float:LPosZ;
  21089. new Float:PlayerSpeedDistance;
  21090. new value;
  21091. new Float:L_VehHealth;
  21092. new LVehicleStatus[15];
  21093.  
  21094. for(new i=0; i<PLAYERS; i++)
  21095. {
  21096. if(CarInfo[GetPlayerVehicleID(i)][tLock] == 1)
  21097. {
  21098. LVehicleStatus = "~r~Locked";
  21099. }
  21100. else
  21101. {
  21102. LVehicleStatus = "~g~Unlocked";
  21103. }
  21104. if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
  21105. {
  21106. GetPlayerPos(i, LPosX, LPosY, LPosZ);
  21107. GetPlayerVehicleID(i);
  21108. GetVehicleHealth(GetPlayerVehicleID(i), L_VehHealth);
  21109. PlayerSpeedDistance = floatsqroot(floatpower(floatabs(floatsub(LPosX,LuX_ReadPlayerPosition[i][ReadX])),2)+floatpower(floatabs(floatsub(LPosY,LuX_ReadPlayerPosition[i][ReadY])),2)+floatpower(floatabs(floatsub(LPosZ,LuX_ReadPlayerPosition[i][ReadZ])),2));
  21110. value = floatround(PlayerSpeedDistance * 5000);
  21111. new LuxZone[MAX_ZONE_NAME];
  21112. GetPlayer2DZone(i, LuxZone, MAX_ZONE_NAME);
  21113. if(LuX_SpeedoMeter[i] == 0){
  21114. TextDrawShowForPlayer(i, LBox[i]);
  21115. TextDrawShowForPlayer(i, LLine1[i]);
  21116. TextDrawShowForPlayer(i, LLine2[i]);
  21117. TextDrawShowForPlayer(i, LLine3[i]);
  21118. TextDrawShowForPlayer(i, LLine4[i]);
  21119. TextDrawShowForPlayer(i, LCredits[i]);
  21120. TextDrawShowForPlayer(i, Lmph[i]);
  21121. TextDrawShowForPlayer(i, LFunc[i]);
  21122. LuX_SpeedoMeter[i] = 1; }
  21123. new LMPH = floatround(value/1600);
  21124. new LKPH = floatround(value/1000);
  21125.  
  21126. if(CarInfo[GetPlayerVehicleID(i)][tGPS] == 0)
  21127. {
  21128. format(lstring,sizeof(lstring),"~b~Vehicle: ~w~%s~n~~b~Health: ~w~%.2f~n~~b~Fuel: ~w~%d%~n~~b~Gps: ~r~No GPS~n~~b~Status: %s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,Gas[GetPlayerVehicleID(i)],LVehicleStatus);
  21129. TextDrawSetString(LFunc[i], lstring);
  21130. }
  21131. else if(CarInfo[GetPlayerVehicleID(i)][tGPS] >= 1)
  21132. {
  21133. format(lstring,sizeof(lstring),"~b~Vehicle: ~w~%s~n~~b~Health: ~w~%.2f~n~~b~Fuel: ~w~%d%~n~~b~Gps: ~w~%s~n~~b~Status: %s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,Gas[GetPlayerVehicleID(i)],LuxZone,LVehicleStatus);
  21134. TextDrawSetString(LFunc[i], lstring);
  21135. }
  21136.  
  21137. format(lstr,sizeof(lstr),"%sMPH: ~w~%d %sKM/H: ~w~%d",MPH_KPH_Color,LMPH,MPH_KPH_Color,LKPH);
  21138. TextDrawSetString(Lmph[i], lstr);
  21139.  
  21140. if(L_VehHealth <= 500)
  21141. {
  21142. if(CarInfo[GetPlayerVehicleID(i)][tGPS] == 0)
  21143. {
  21144. format(lstring,sizeof(lstring),"%sVehicle: ~w~%s~n~%sHealth: ~w~~r~%.2f~n~%sFuel: ~w~%d%~n~%sGps: ~r~No GPS",CategoriesColor,LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],CategoriesColor,L_VehHealth,CategoriesColor,Gas[GetPlayerVehicleID(i)],CategoriesColor);
  21145. TextDrawSetString(LFunc[i], lstring);
  21146. }
  21147. else if(CarInfo[GetPlayerVehicleID(i)][tGPS] >= 1)
  21148. {
  21149. format(lstring,sizeof(lstring),"%sVehicle: ~w~%s~n~%sHealth: ~w~~r~%.2f~n~%sFuel: ~w~%d%~n~%sGps: ~w~%s",CategoriesColor,LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],CategoriesColor,L_VehHealth,CategoriesColor,Gas[GetPlayerVehicleID(i)],CategoriesColor,LuxZone);
  21150. TextDrawSetString(LFunc[i], lstring);
  21151. }
  21152. }
  21153. if(LKPH >= VehicleMaxSpeed)
  21154. {
  21155. format(lstr,sizeof(lstr),"~g~MPH: ~w~%d ~g~KM/H: ~r~%d",LMPH,LKPH);
  21156. TextDrawSetString(Lmph[i], lstr);
  21157. }
  21158. }
  21159. LuX_ReadPlayerPosition[i][ReadX] = LPosX, LuX_ReadPlayerPosition[i][ReadY] = LPosY, LuX_ReadPlayerPosition[i][ReadZ] = LPosZ;}
  21160. for(new i=0; i<PLAYERS; i++){
  21161. if(!IsPlayerInAnyVehicle(i)){
  21162. TextDrawHideForPlayer(i, LBox[i]);
  21163. TextDrawHideForPlayer(i, LLine1[i]);
  21164. TextDrawHideForPlayer(i, LLine2[i]);
  21165. TextDrawHideForPlayer(i, LLine3[i]);
  21166. TextDrawHideForPlayer(i, LLine4[i]);
  21167. TextDrawHideForPlayer(i, LCredits[i]);
  21168. TextDrawHideForPlayer(i, Lmph[i]);
  21169. TextDrawHideForPlayer(i, LFunc[i]);
  21170. LuX_SpeedoMeter[i] = 0;
  21171. }
  21172. }
  21173. return 1;
  21174. }
  21175. //
  21176. public ShowStats(playerid,targetid)
  21177. {
  21178. if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  21179. {
  21180. new cash = PlayerInfo[targetid][pCash];
  21181. new atext[20];
  21182. if(PlayerInfo[targetid][pSex] == 1) { atext = "Male"; }
  21183. else if(PlayerInfo[targetid][pSex] == 2) { atext = "Female"; }
  21184. new dtext[20];
  21185. if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
  21186. else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
  21187. else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
  21188. else { dtext = "None"; }
  21189.  
  21190. // get player's faction
  21191. new ftext[32];
  21192. format(ftext,sizeof(ftext),"%s",GetPlayerFactionName(targetid));
  21193. new ftext2[32];
  21194. format(ftext2,sizeof(ftext2),"%s",GetPlayerFamilyName(targetid));
  21195. // get player's rank
  21196. new rtext[64];
  21197. format(rtext,sizeof(rtext),"%s",GetPlayerRank(targetid));
  21198. new rtext2[64];
  21199. format(rtext2,sizeof(rtext2),"%s",GetPlayerFRank(targetid));
  21200.  
  21201. new jtext[20];
  21202. new jlevel;
  21203. if(PlayerInfo[targetid][pJob] == 1)
  21204. {
  21205. jtext = "Detective";
  21206. new level = PlayerInfo[targetid][pDetSkill];
  21207. if(level >= 0 && level <= 49) { jlevel = 1; }
  21208. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21209. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21210. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21211. else if(level >= 400) { jlevel = 5; }
  21212. }
  21213. else if(PlayerInfo[targetid][pJob] == 2)
  21214. {
  21215. jtext = "Lawyer";
  21216. new level = PlayerInfo[targetid][pLawSkill];
  21217. if(level >= 0 && level <= 49) { jlevel = 1; }
  21218. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21219. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21220. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21221. else if(level >= 400) { jlevel = 5; }
  21222. }
  21223. else if(PlayerInfo[targetid][pJob] == 3)
  21224. {
  21225. jtext = "Product Dealer" ;jlevel = 0;
  21226. }
  21227. else if(PlayerInfo[targetid][pJob] == 4)
  21228. {
  21229. jtext = "Drug Dealer";
  21230. new level = PlayerInfo[targetid][pDrugsSkill];
  21231. if(level >= 0 && level <= 49) { jlevel = 1; }
  21232. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21233. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21234. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21235. else if(level >= 400) { jlevel = 5; }
  21236. }
  21237. else if(PlayerInfo[targetid][pJob] == 5)
  21238. {
  21239. jtext = "Car Jacker";
  21240. new level = PlayerInfo[targetid][pJackSkill];
  21241. if(level >= 0 && level <= 49) { jlevel = 1; }
  21242. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21243. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21244. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21245. else if(level >= 400) { jlevel = 5; }
  21246. }
  21247. else if(PlayerInfo[targetid][pJob] == 6)
  21248. {
  21249. jtext = "News Reporter";
  21250. new level = PlayerInfo[targetid][pNewsSkill];
  21251. if(level >= 0 && level <= 49) { jlevel = 1; }
  21252. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21253. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21254. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21255. else if(level >= 400) { jlevel = 5; }
  21256. }
  21257. else if(PlayerInfo[targetid][pJob] == 7)
  21258. {
  21259. jtext = "Mechanic";
  21260. new level = PlayerInfo[targetid][pJackSkill];
  21261. if(level >= 0 && level <= 49) { jlevel = 1; }
  21262. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21263. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21264. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21265. else if(level >= 400) { jlevel = 5; }
  21266. }
  21267. else if(PlayerInfo[targetid][pJob] == 8)
  21268. {
  21269. jtext = "Bodyguard";
  21270. new level = PlayerInfo[targetid][pNewsSkill];
  21271. if(level >= 0 && level <= 49) { jlevel = 1; }
  21272. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21273. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21274. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21275. else if(level >= 400) { jlevel = 5; }
  21276. }
  21277. else if(PlayerInfo[targetid][pJob] == 9)
  21278. {
  21279. jtext = "Arms Dealer";
  21280. new level = PlayerInfo[targetid][pArmsSkill];
  21281. if(level >= 0 && level <= 49) { jlevel = 1; }
  21282. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21283. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21284. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21285. else if(level >= 400) { jlevel = 5; }
  21286. }
  21287. else if(PlayerInfo[targetid][pJob] == 10)
  21288. {
  21289. jtext = "None"; jlevel = 0;
  21290. }
  21291. /* if(PlayerInfo[targetid][pJob] == 11) // Trashman
  21292. {
  21293. jtext = "Trashman";
  21294. new level = PlayerInfo[targetid][pTrashSkill];
  21295. if(level >= 0 && level <= 49) { jlevel = 1; }
  21296. else if(level >= 50 && level <= 99) { jlevel = 2; }
  21297. else if(level >= 100 && level <= 199) { jlevel = 3; }
  21298. else if(level >= 200 && level <= 399) { jlevel = 4; }
  21299. else if(level >= 400) { jlevel = 5; }
  21300. }*/
  21301. else if(PlayerInfo[targetid][pJob] == 12)
  21302. {
  21303. jtext = "Boxer"; jlevel = 0;
  21304. }
  21305. else if(PlayerInfo[targetid][pJob] == 14)
  21306. {
  21307. jtext = "Taxi Driver"; jlevel = 0;
  21308. }
  21309. else if(PlayerInfo[targetid][pJob] == 17)
  21310. {
  21311. jtext = "Drug Smuggler";
  21312. new level = PlayerInfo[targetid][pSmugglerSkill];
  21313. if(level >= 0 && level <= 19) { jlevel = 1; }
  21314. else if(level >= 20 && level <= 39) { jlevel = 2; }
  21315. else if(level >= 40 && level <= 59) { jlevel = 3; }
  21316. else if(level >= 60 && level <= 79) { jlevel = 4; }
  21317. else if(level >= 80) { jlevel = 5; }
  21318. }
  21319. else
  21320. {
  21321. jtext = "None"; jlevel = 0;
  21322. }
  21323. new married[20];
  21324. strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
  21325. new age = PlayerInfo[targetid][pAge];
  21326. new ptime = PlayerInfo[targetid][pConnectTime];
  21327. new deaths = PlayerInfo[targetid][pDeaths];
  21328. new bigfish = PlayerInfo[targetid][pBiggestFish];
  21329. new crimes = PlayerInfo[targetid][pCrimes];
  21330. new arrests = PlayerInfo[targetid][pArrested];
  21331. new pot = PlayerInfo[targetid][pPot];
  21332. new crack = PlayerInfo[targetid][pCrack];
  21333. new seeds = PlayerInfo[targetid][pSeeds];
  21334. new packages = Packages[playerid];
  21335. new crates = Crates[playerid];
  21336. new mats = PlayerInfo[targetid][pMats];
  21337. new parts = PlayerInfo[targetid][pCarParts];
  21338. new rope = PlayerInfo[targetid][pRope];
  21339. new cigars = PlayerInfo[targetid][pCigars];
  21340. new sprunk = PlayerInfo[targetid][pSprunk];
  21341. new blindfolds = PlayerInfo[targetid][pBlindfolds];
  21342. new donuts = PlayerInfo[targetid][pDonuts];
  21343. new spray = PlayerInfo[targetid][pSpraycan];
  21344. new wanted = PlayerInfo[targetid][pWantedLevel];
  21345. new level = PlayerInfo[targetid][pLevel];
  21346. new exp = PlayerInfo[targetid][pExp];
  21347. new kills = PlayerInfo[targetid][pKills];
  21348. new pnumber = PlayerInfo[targetid][pPnumber];
  21349. new account = PlayerInfo[targetid][pAccount];
  21350. new nxtlevel = PlayerInfo[targetid][pLevel]+1;
  21351. new expamount = nxtlevel*levelexp;
  21352. new costlevel = nxtlevel*levelcost; //10k for testing purposes
  21353. new intir = GetPlayerInterior(playerid);
  21354. new vw = PlayerInfo[targetid][pVirtualWorld];
  21355. new warns = PlayerInfo[targetid][pWarns];
  21356. new points = PlayerInfo[targetid][gPupgrade];
  21357. new jtime = PlayerInfo[targetid][pJailTime];
  21358. new scope = PlayerInfo[targetid][pScope];
  21359. new wtc = PlayerInfo[targetid][pWTc];
  21360. new sub[15];
  21361. if(PlayerInfo[playerid][pSFMember] == 0) { sub = "Default"; }
  21362. if(PlayerInfo[playerid][pSFMember] == 1) { sub = "SWAT"; }
  21363. if(PlayerInfo[playerid][pSFMember] == 2) { sub = "IA"; }
  21364. if(PlayerInfo[playerid][pSFMember] == 3) { sub = "SIU"; }
  21365. if(PlayerInfo[playerid][pSFMember] == 4) { sub = "ACU"; }
  21366. if(PlayerInfo[playerid][pSFMember] == 5) { sub = "GHOST"; }
  21367. new carname[255];
  21368. new carname2[255];
  21369. new carname3[255];
  21370. new carname4[255];
  21371. new upcarid = PlayerInfo[targetid][pCarKey1];
  21372. new upcarid2 = PlayerInfo[targetid][pCarKey2];
  21373. new upcarid3 = PlayerInfo[targetid][pCarKey3];
  21374. new upcarid4 = PlayerInfo[targetid][pRentKey];
  21375. new lp[9], lp2[9], lp3[9], lp4[9];
  21376. strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
  21377. strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
  21378. strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
  21379. strmid(lp4, CarInfo[upcarid4][tLicensePlate], 0, strlen(CarInfo[upcarid4][tLicensePlate]), 9);
  21380. if(PlayerInfo[targetid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
  21381. else { carname = "None";}
  21382. if(PlayerInfo[targetid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
  21383. else { carname2 = "None";}
  21384. if(PlayerInfo[targetid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
  21385. else { carname3 = "None";}
  21386. if(PlayerInfo[targetid][pRentKey] != 0) { carname4 = GetVehicleFriendlyName(upcarid4); }
  21387. else { carname4 = "None";}
  21388. new biz = PlayerInfo[targetid][pBizKey];
  21389. new bizname[255];
  21390. if(PlayerInfo[targetid][pBizKey] != 999) { strmid(bizname, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255); }
  21391. else { bizname = "None";}
  21392. new house = PlayerInfo[targetid][pHouseKey];
  21393. new products = PlayerInfo[targetid][pProducts];
  21394. new housetype[255];
  21395. if(PlayerInfo[targetid][pHouseKey] != 999) { housetype = "Owned";}
  21396. else if(PlayerInfo[targetid][pRenthouse] != 999) { housetype = "Rented";}
  21397. else { housetype = "None";}
  21398. new screw;
  21399. if(PlayerInfo[targetid][pScrew] > 0)
  21400. {
  21401. screw = 1;
  21402. }
  21403. // new routetext[20];
  21404. // if(PlayerInfo[playerid][pRouter] == 0) { format(routetext,sizeof(routetext), "None"); } else { format(routetext,sizeof(routetext), "%s", PlayerInfo[playerid][pRouter]); }
  21405. new Float:health;
  21406. new Float:armor;
  21407. GetPlayerHealth(targetid,health);
  21408. GetPlayerArmour(targetid,armor);
  21409. new shealth = PlayerInfo[targetid][pSHealth];
  21410. new name[MAX_PLAYER_NAME];
  21411. GetPlayerName(targetid, name, sizeof(name));
  21412. new statsname[80];
  21413. format(statsname, sizeof(statsname), "{00FFFF}%s's stats - Reality Gaming RolePlay", name);
  21414. new statstotal[2000];
  21415. new stats1[512]; new stats2[512]; new stats3[512]; new stats4[512]; new stats5[512]; new stats6[512]; new stats7[512]; new stats8[512]; new statsadm[512];
  21416. format(stats1, sizeof(stats1), "{088A08}[Account] {5858FA}Level:{FA5858}[%d] {5858FA}Sex:{FA5858}[%s] {5858FA}Age:{FA5858}[%d] {5858FA}Cash:{FA5858}[$%d] {5858FA}Bank:{FA5858}[$%d] {5858FA}Ph:{FA5858}[%d] {5858FA}Health:{FA5858}[%.1f] {5858FA}Armor:{FA5858}[%.1f]",level,atext,age,cash,account,pnumber,health,armor);
  21417. format(stats2, sizeof(stats2), "{088A08}[Record] {5858FA}UpgradePoints:{FA5858}[%d] {5858FA}ArmorUpgrade:{FA5858}[%d] {5858FA}Respect:{FA5858}[%d/%d] {5858FA}NextLevel:{FA5858}[$%d] {5858FA}PlayingHours:{FA5858}[%d]",points,shealth,exp,expamount,costlevel,ptime);
  21418. format(stats3, sizeof(stats3), "{088A08}[Information] {5858FA}Job:{FA5858}[%s] {5858FA}JobLevel:{FA5858}[%d] {5858FA}CrimesCommited:{FA5858}[%d] {5858FA}TimesArrested:{FA5858}[%d] {5858FA}Kills:{FA5858}[%d] {5858FA}Deaths:{FA5858}[%d] {5858FA}Disease:{FA5858}[%s]",jtext,jlevel,crimes,arrests,kills,deaths,dtext);
  21419. format(stats4, sizeof(stats4), "{088A08}[Information] {5858FA}MarriedTo:{FA5858}[%s] {5858FA}BiggestFish:{FA5858}[%d] {5858FA}WantedLevel:{FA5858}[%d] {5858FA}Router IP:{FA5858}[None]",married,bigfish,wanted);
  21420. format(stats5, sizeof(stats5), "{088A08}[Inventory] {5858FA}Materials:{FA5858}[%d] {5858FA}Rope:{FA5858}[%d] {5858FA}Blindfolds:{FA5858}[%d] {5858FA}Cigars:{FA5858}[%d] {5858FA}Sprunk:{FA5858}[%d] {5858FA}Spray:{FA5858}[%d] {5858FA}Products:{FA5858}[%d] {5858FA}Pot:{FA5858}[%d]",mats,rope,blindfolds,cigars,sprunk,spray,products,pot);
  21421. format(stats6, sizeof(stats6), "{088A08}[Inventory] {5858FA}ScrewDriver:{FA5858}[%d] {5858FA}Scope:{FA5858}[%d] {5858FA}C4:{FA5858}[%d] {5858FA}Crowbar:{FA5858}[%d] {5858FA}Crack:{FA5858}[%d] {5858FA}Seeds:{FA5858}[%d] {5858FA}Packages:{FA5858}[%d] {5858FA}Crates:{FA5858}[%d] {5858FA}Carparts:{FA5858}[%d]",screw,scope,PlayerInfo[playerid][pBombs],PlayerInfo[playerid][pCrowbar],crack,seeds,packages,crates,parts);
  21422. format(stats7, sizeof(stats7), "{088A08}[Ownership] {5858FA}Vehicle 1:{FA5858}[%s(%s)] {5858FA}Vehicle 2:{FA5858}[%s(%s)] {5858FA}Vehicle 3{FA5858}[VIP ONLY]{5858FA}:{FA5858}[%s(%s)] {5858FA}Car Rental:{FA5858}[%s(%s)] {5858FA}House Key:{FA5858}[%s (%d)] {5858FA}Business: {FA5858}[%s (%d)]",carname,lp,carname2,lp2,carname3,lp3,carname4,lp4,housetype,house,bizname,biz);
  21423. format(stats8, sizeof(stats8), "{088A08}[Others] {5858FA}WTc:{FA5858}[%d] {5858FA}Faction:{FA5858}[%s] {5858FA}Rank:{FA5858}[%s] {5858FA}Sub-Faction {FA5858}[%s] {5858FA}Family:{FA5858}[%s] {5858FA}Rank:{FA5858}[%s]",wtc,ftext,rtext,sub,ftext2,rtext2);
  21424. format(statsadm, sizeof(statsadm), "{00FFFF}[Admin] Donuts:[%d] Int:[%d] VW:[%d] Warnings:[%d] JailTime:[%d] Vehicle 1:[%d] Vehicle 2:[%d]",donuts,intir,vw,warns,jtime,upcarid,upcarid2);
  21425. if(PlayerInfo[playerid][pAdmin] >= 1)
  21426. {
  21427. format(statstotal, sizeof(statstotal), "\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s", stats1, stats2, stats3, stats4, stats5, stats6,stats7, stats8, statsadm);
  21428. ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,statsname, statstotal, "Close", "");
  21429. }
  21430. else
  21431. {
  21432. format(statstotal, sizeof(statstotal), "\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s", stats1, stats2, stats3, stats4, stats5, stats6,stats7, stats8);
  21433. ShowPlayerDialog(playerid,60,DIALOG_STYLE_MSGBOX ,statsname, statstotal, "Close", "");
  21434. }
  21435. }
  21436. }
  21437.  
  21438. public SetPlayerToTeamColor(playerid)
  21439. {
  21440. if(IsPlayerConnected(playerid))
  21441. {
  21442. if(PlayerInfo[playerid][pWantedLevel] != 6)
  21443. {
  21444. if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21445. else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
  21446. {
  21447. if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_BLUE); }
  21448. else { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21449. }
  21450. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  21451. {
  21452. if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); }
  21453. else { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21454. }
  21455. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
  21456. {
  21457. if(PlayerInfo[playerid][pOnDuty] == 1) { SetPlayerColor(playerid, TCOLOR_BEIGE); }
  21458. else { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21459. }
  21460. else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
  21461. {
  21462. if(PlayerInfo[playerid][pOnDuty] == 1)
  21463. {
  21464. SetPlayerColor(playerid, TCOLOR_LIGHTGREEN);
  21465. }
  21466. else {SetPlayerColor(playerid, TCOLOR_WHITE); }
  21467. }
  21468. else if(PlayerInfo[playerid][pJailed] == 2)
  21469. {
  21470. SetPlayerColor(playerid, TCOLOR_PRISON);
  21471. }
  21472. else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21473. else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21474. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21475. else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21476. else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { SetPlayerColor(playerid, TCOLOR_LIGHTBLUE); }
  21477. else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { SetPlayerColor(playerid, TCOLOR_WHITE); }
  21478. }
  21479. else
  21480. {
  21481. SetPlayerColor(playerid, TCOLOR_WANTED);
  21482. }
  21483. if(PlayerInfo[playerid][pVipColor] == 1) { SetPlayerColor(playerid, 0x80008000); }
  21484. }
  21485. return 1;
  21486. }
  21487.  
  21488. public GameModeInitExitFunc()
  21489. {
  21490. gmx = 1;
  21491. new string[128];
  21492. format(string, sizeof(string), "Restarting! Please Wait");
  21493. //foreach(Player, i)
  21494. for(new i; i<MAX_PLAYERS; i++)
  21495. {
  21496. if(IsPlayerConnected(i))
  21497. {
  21498. OnPlayerSave(i);
  21499. DisablePlayerCheckpoint(i);
  21500. GameTextForPlayer(i, string, 4000, 5);
  21501. SetPlayerInterior(i, 0);
  21502. SetPlayerVirtualWorld(i, 0);
  21503. SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
  21504. SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
  21505. gPlayerLogged[i] = 0;
  21506. }
  21507. }
  21508. SaveFamilies();
  21509. SaveCar();
  21510. SaveHouse();
  21511. SaveBiz();
  21512. //Speedo
  21513. for(new i=0; i<PLAYERS; i++)
  21514. {
  21515. TextDrawHideForPlayer(i, LBox[i]);
  21516. TextDrawHideForPlayer(i, LLine1[i]);
  21517. TextDrawHideForPlayer(i, LLine2[i]);
  21518. TextDrawHideForPlayer(i, LLine3[i]);
  21519. TextDrawHideForPlayer(i, LLine4[i]);
  21520. TextDrawHideForPlayer(i, LCredits[i]);
  21521. TextDrawHideForPlayer(i, Lmph[i]);
  21522. TextDrawHideForPlayer(i, LFunc[i]);
  21523. }
  21524. for(new n = 0; n < MAX_VEHICLES; n++)
  21525. {
  21526. if(CarInfo[n][Neon] == 1)
  21527. {
  21528. DestroyObject(ObjectSelect[n][0]);
  21529. DestroyObject(ObjectSelect[n][1]);
  21530. }
  21531. }
  21532. //
  21533. SetTimer("GameModeExitFunc", 4000, 0);
  21534. return 1;
  21535. }
  21536.  
  21537. public GameModeExitFunc()
  21538. {
  21539. KillTimer(synctimer);
  21540. KillTimer(savechartimer);
  21541. KillTimer(unjailtimer);
  21542. KillTimer(othtimer);
  21543. KillTimer(cartimer);
  21544. KillTimer(checkgastimer);
  21545. KillTimer(pickuptimer);
  21546. KillTimer(productiontimer);
  21547. KillTimer(autokicktimer);
  21548. KillTimer(pointtimer);
  21549. KillTimer(stoppedvehtimer);
  21550. KillTimer(LSPD_Door[TimerID]);
  21551. KillTimer(Prison_Buttons[GateTimerID]); // COMMENTED
  21552. KillTimer(Prison_Buttons[CellTimerID]);
  21553. KillTimer(claimedtimer);
  21554. KillTimer(botanimtimer);
  21555. GameModeExit();
  21556. }
  21557.  
  21558. public LoadLSPDPass()
  21559. {
  21560. new strFromFile2[256];
  21561. new File: file = fopen("Other/passwords.ini", io_read);
  21562. if(file)
  21563. {
  21564. fread(file, strFromFile2);
  21565. fclose(file);
  21566. Pass[LSPD] = strvalEx(strFromFile2[0]);
  21567. }
  21568. return 1;
  21569. }
  21570.  
  21571.  
  21572. public LoadBoxer()
  21573. {
  21574. new arrCoords[3][64];
  21575. new strFromFile2[256];
  21576. new File: file = fopen("Other/boxer.ini", io_read);
  21577. if(file)
  21578. {
  21579. fread(file, strFromFile2);
  21580. split(strFromFile2, arrCoords, ',');
  21581. Titel[TitelWins] = strvalEx(arrCoords[0]);
  21582. strmid(Titel[TitelName], arrCoords[1], 0, strlen(arrCoords[1]), 255);
  21583. Titel[TitelLoses] = strvalEx(arrCoords[2]);
  21584. fclose(file);
  21585. }
  21586. return 1;
  21587. }
  21588.  
  21589. public SaveBoxer()
  21590. {
  21591. new coordsstring[256];
  21592. format(coordsstring, sizeof(coordsstring), "%d,%s,%d", Titel[TitelWins],Titel[TitelName],Titel[TitelLoses]);
  21593. new File: file2 = fopen("Other/boxer.ini", io_write);
  21594. fwrite(file2, coordsstring);
  21595. fclose(file2);
  21596. return 1;
  21597. }
  21598.  
  21599. public LoadStuff()
  21600. {
  21601. new arrCoords[7][64];
  21602. new strFromFile2[256];
  21603. new File: file = fopen("Other/stuff.ini", io_read);
  21604. if(file)
  21605. {
  21606. fread(file, strFromFile2);
  21607. split(strFromFile2, arrCoords, ',');
  21608. Jackpot = strvalEx(arrCoords[0]);
  21609. Tax = strvalEx(arrCoords[1]);
  21610. TaxValue = strvalEx(arrCoords[2]);
  21611. Security = strvalEx(arrCoords[3]);
  21612. VPass = strvalEx(arrCoords[4]);
  21613. BankRobberyTime = strvalEx(arrCoords[5]);
  21614. Carparts = strvalEx(arrCoords[6]);
  21615. fclose(file);
  21616. if(Security == 0 || Security == 1)
  21617. {
  21618. }
  21619. else
  21620. {
  21621. GameModeExit();
  21622. }
  21623. }
  21624. else
  21625. {
  21626. GameModeExit();
  21627. }
  21628. return 1;
  21629. }
  21630.  
  21631. public SaveStuff()
  21632. {
  21633. new coordsstring[256];
  21634. format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security,VPass,BankRobberyTime,Carparts);
  21635. new File: file2 = fopen("Other/stuff.ini", io_write);
  21636. fwrite(file2, coordsstring);
  21637. fclose(file2);
  21638. return 1;
  21639. }
  21640.  
  21641. public RemovePlayerWeapon(playerid, weaponid)
  21642. {
  21643. new plyWeapons[12] = 0;
  21644. new plyAmmo[12] = 0;
  21645. for(new slot = 0; slot != 12; slot++)
  21646. {
  21647. new wep, ammo;
  21648. GetPlayerWeaponData(playerid, slot, wep, ammo);
  21649.  
  21650. if(wep != weaponid && ammo != 0)
  21651. {
  21652. GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
  21653. }
  21654. }
  21655.  
  21656. SafeResetPlayerWeapons(playerid);
  21657. for(new slot = 0; slot != 12; slot++)
  21658. {
  21659. if(plyAmmo[slot] != 0)
  21660. {
  21661. SafeGivePlayerWeapon(playerid, plyWeapons[slot], 999999);
  21662. }
  21663. }
  21664. return 1;
  21665. }
  21666.  
  21667. public SafeGivePlayerWeapon(plyid, weaponid, ammo)
  21668. {
  21669. /* new curHour, curMinute, curSecond;
  21670. gettime(curHour, curMinute, curSecond);
  21671. ScriptWeaponsUpdated[plyid] = curSecond;*/
  21672. GivePlayerWeapon(plyid, weaponid, ammo);
  21673. //UpdateWeaponSlots(plyid);
  21674. return 1;
  21675. }
  21676.  
  21677. public SafeResetPlayerWeapons(plyid)
  21678. {
  21679. /* new curHour, curMinute, curSecond;
  21680. gettime(curHour, curMinute, curSecond);
  21681. ScriptWeaponsUpdated[plyid] = curSecond;*/
  21682. ResetPlayerWeapons(plyid);
  21683. //UpdateWeaponSlots(plyid);
  21684. return 1;
  21685. }
  21686.  
  21687. stock Get2DZone(zone[], len, Float:x, Float:y, Float:z)
  21688. {
  21689. #pragma unused z
  21690. for(new i = 0; i != sizeof(gSAZones); i++)
  21691. {
  21692. if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
  21693. {
  21694. return format(zone, len, gSAZones[i][SAZONE_NAME]);
  21695. }
  21696. }
  21697. return format(zone, len, "Los Santos");
  21698. }
  21699.  
  21700. stock CheckPlayerDistanceToVehicle(Float:radi, playerid, vehicleid)
  21701. {
  21702. if(IsPlayerConnected(playerid))
  21703. {
  21704. new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z;
  21705. GetPlayerPos(playerid,PX,PY,PZ);
  21706. GetVehiclePos(vehicleid, X,Y,Z);
  21707. new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);
  21708. if(Distance <= radi*radi)
  21709. {
  21710. return 1;
  21711. }
  21712. }
  21713. return 0;
  21714. }
  21715.  
  21716. public LoadCar()
  21717. {
  21718. new arrCoords[55][64];
  21719. new strFromFile2[256];
  21720. new File: file = fopen("Ownership/Veh.ini", io_read);
  21721. if(file)
  21722. {
  21723. new idx;
  21724. while (idx < sizeof(CarInfo))
  21725. {
  21726. fread(file, strFromFile2);
  21727. split(strFromFile2, arrCoords, '|');
  21728. CarInfo[idx][tModel] = strvalEx(arrCoords[0]);
  21729. CarInfo[idx][tLocationx] = floatstr(arrCoords[1]);
  21730. CarInfo[idx][tLocationy] = floatstr(arrCoords[2]);
  21731. CarInfo[idx][tLocationz] = floatstr(arrCoords[3]);
  21732. CarInfo[idx][tAngle] = floatstr(arrCoords[4]);
  21733. CarInfo[idx][tColorOne] = strvalEx(arrCoords[5]);
  21734. CarInfo[idx][tColorTwo] = strvalEx(arrCoords[6]);
  21735. strmid(CarInfo[idx][tOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
  21736. CarInfo[idx][tOwned] = strvalEx(arrCoords[8]);
  21737. CarInfo[idx][tLock] = strvalEx(arrCoords[9]);
  21738. CarInfo[idx][tEngine] = strvalEx(arrCoords[10]);
  21739. CarInfo[idx][tPaintjob] = strvalEx(arrCoords[11]);
  21740. CarInfo[idx][tOwnable] = strvalEx(arrCoords[12]);
  21741. CarInfo[idx][tFaction] = strvalEx(arrCoords[13]);
  21742. CarInfo[idx][tVIP] = strvalEx(arrCoords[14]);
  21743. CarInfo[idx][tAlarm] = strvalEx(arrCoords[15]);
  21744. CarInfo[idx][tAlarmStarted] = strvalEx(arrCoords[16]);
  21745. CarInfo[idx][tTrunkOpened] = strvalEx(arrCoords[17]);
  21746. CarInfo[idx][tInsured] = strvalEx(arrCoords[18]);
  21747. CarInfo[idx][tGun1] = strvalEx(arrCoords[19]);
  21748. CarInfo[idx][tGun2] = strvalEx(arrCoords[20]);
  21749. CarInfo[idx][tArmor] = floatstr(arrCoords[21]);
  21750. CarInfo[idx][tCrack] = strvalEx(arrCoords[22]);
  21751. CarInfo[idx][tPot] = strvalEx(arrCoords[23]);
  21752. CarInfo[idx][tNOS] = strvalEx(arrCoords[24]);
  21753. CarInfo[idx][tHoodOpened] = strvalEx(arrCoords[25]);
  21754. CarInfo[idx][tPrice] = strvalEx(arrCoords[26]);
  21755. strmid(CarInfo[idx][tLicensePlate], arrCoords[27], 0, strlen(arrCoords[27]), 255);
  21756. CarInfo[idx][tDisabled] = strvalEx(arrCoords[28]);
  21757. CarInfo[idx][tGang] = strvalEx(arrCoords[29]);
  21758. CarInfo[idx][tVehRemote] = strvalEx(arrCoords[30]);
  21759. CarInfo[idx][tGPS] = strvalEx(arrCoords[31]);
  21760. CarInfo[idx][tNeon] = strvalEx(arrCoords[32]);
  21761. CarInfo[idx][tNeonON] = strvalEx(arrCoords[33]);
  21762. CarInfo[idx][tComponent0] = strvalEx(arrCoords[34]);
  21763. CarInfo[idx][tComponent1] = strvalEx(arrCoords[35]);
  21764. CarInfo[idx][tComponent2] = strvalEx(arrCoords[36]);
  21765. CarInfo[idx][tComponent3] = strvalEx(arrCoords[37]);
  21766. CarInfo[idx][tComponent4] = strvalEx(arrCoords[38]);
  21767. CarInfo[idx][tComponent5] = strvalEx(arrCoords[39]);
  21768. CarInfo[idx][tComponent6] = strvalEx(arrCoords[40]);
  21769. CarInfo[idx][tComponent7] = strvalEx(arrCoords[41]);
  21770. CarInfo[idx][tComponent8] = strvalEx(arrCoords[42]);
  21771. CarInfo[idx][tComponent9] = strvalEx(arrCoords[43]);
  21772. CarInfo[idx][tComponent10] = strvalEx(arrCoords[44]);
  21773. CarInfo[idx][tComponent11] = strvalEx(arrCoords[45]);
  21774. CarInfo[idx][tComponent12] = strvalEx(arrCoords[46]);
  21775. CarInfo[idx][tComponent13] = strvalEx(arrCoords[47]);
  21776. CarInfo[idx][tDuplicateKeys] = strvalEx(arrCoords[48]);
  21777. CarInfo[idx][tTowServices] = strvalEx(arrCoords[49]);
  21778. CarInfo[idx][tImp] = strvalEx(arrCoords[50]);
  21779. CarInfo[idx][tImpPrice] = strvalEx(arrCoords[51]);
  21780. CarInfo[idx][tRentable] = strvalEx(arrCoords[52]);
  21781. CarInfo[idx][Neon] = strvalEx(arrCoords[53]);
  21782. CarInfo[idx][NeonObject] = strvalEx(arrCoords[54]);
  21783. idx++;
  21784. }
  21785. fclose(file);
  21786. }
  21787. return 1;
  21788. }
  21789.  
  21790. public SaveCar()
  21791. {
  21792.  
  21793. new File: file2;
  21794. new idx;
  21795. while (idx < sizeof(CarInfo))
  21796. {
  21797. new coordsstring[256];
  21798. format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%d|%d|%d|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
  21799. CarInfo[idx][tModel],
  21800. CarInfo[idx][tLocationx],
  21801. CarInfo[idx][tLocationy],
  21802. CarInfo[idx][tLocationz],
  21803. CarInfo[idx][tAngle],
  21804. CarInfo[idx][tColorOne],
  21805. CarInfo[idx][tColorTwo],
  21806. CarInfo[idx][tOwner],
  21807. CarInfo[idx][tOwned],
  21808. CarInfo[idx][tLock],
  21809. CarInfo[idx][tEngine],
  21810. CarInfo[idx][tPaintjob],
  21811. CarInfo[idx][tOwnable],
  21812. CarInfo[idx][tFaction],
  21813. CarInfo[idx][tVIP],
  21814. CarInfo[idx][tAlarm],
  21815. CarInfo[idx][tAlarmStarted],
  21816. CarInfo[idx][tTrunkOpened],
  21817. CarInfo[idx][tInsured],
  21818. CarInfo[idx][tGun1],
  21819. CarInfo[idx][tGun2],
  21820. CarInfo[idx][tArmor],
  21821. CarInfo[idx][tCrack],
  21822. CarInfo[idx][tPot],
  21823. CarInfo[idx][tNOS],
  21824. CarInfo[idx][tHoodOpened],
  21825. CarInfo[idx][tPrice],
  21826. CarInfo[idx][tLicensePlate],
  21827. CarInfo[idx][tDisabled],
  21828. CarInfo[idx][tGang],
  21829. CarInfo[idx][tVehRemote],
  21830. CarInfo[idx][tGPS],
  21831. CarInfo[idx][tNeon],
  21832. CarInfo[idx][tNeonON],
  21833. CarInfo[idx][tComponent0],
  21834. CarInfo[idx][tComponent1],
  21835. CarInfo[idx][tComponent2],
  21836. CarInfo[idx][tComponent3],
  21837. CarInfo[idx][tComponent4],
  21838. CarInfo[idx][tComponent5],
  21839. CarInfo[idx][tComponent6],
  21840. CarInfo[idx][tComponent7],
  21841. CarInfo[idx][tComponent8],
  21842. CarInfo[idx][tComponent9],
  21843. CarInfo[idx][tComponent10],
  21844. CarInfo[idx][tComponent11],
  21845. CarInfo[idx][tComponent12],
  21846. CarInfo[idx][tComponent13],
  21847. CarInfo[idx][tDuplicateKeys],
  21848. CarInfo[idx][tTowServices],
  21849. CarInfo[idx][tImp],
  21850. CarInfo[idx][tImpPrice],
  21851. CarInfo[idx][tRentable],
  21852. CarInfo[idx][Neon],
  21853. CarInfo[idx][NeonObject]);
  21854. if(idx == 0)
  21855. {
  21856. file2 = fopen("Ownership/Veh.ini", io_write);
  21857. }
  21858. else
  21859. {
  21860. file2 = fopen("Ownership/Veh.ini", io_append);
  21861. }
  21862. fwrite(file2, coordsstring);
  21863. idx++;
  21864. fclose(file2);
  21865. }
  21866. return 1;
  21867. }
  21868.  
  21869.  
  21870.  
  21871. public LoadHouse()
  21872. {
  21873. new arrCoords[37][64];
  21874. new strFromFile2[256];
  21875. new File: file = fopen("Ownership/Houses.ini", io_read);
  21876. if(file)
  21877. {
  21878. new idx;
  21879. while (idx < sizeof(HouseInfo))
  21880. {
  21881. fread(file, strFromFile2);
  21882. split(strFromFile2, arrCoords, '|');
  21883. HouseInfo[idx][hLocation_x] = floatstr(arrCoords[0]);
  21884. HouseInfo[idx][hLocation_y] = floatstr(arrCoords[1]);
  21885. HouseInfo[idx][hLocation_z] = floatstr(arrCoords[2]);
  21886. HouseInfo[idx][hExitAngle] = floatstr(arrCoords[3]);
  21887. HouseInfo[idx][hIntLocationx] = floatstr(arrCoords[4]);
  21888. HouseInfo[idx][hIntLocationy] = floatstr(arrCoords[5]);
  21889. HouseInfo[idx][hIntLocationz] = floatstr(arrCoords[6]);
  21890. HouseInfo[idx][hEnterAngle] = floatstr(arrCoords[7]);
  21891. HouseInfo[idx][hVirtualWorld] = strvalEx(arrCoords[8]);
  21892. HouseInfo[idx][hInterior] = strvalEx(arrCoords[9]);
  21893. strmid(HouseInfo[idx][hOwner], arrCoords[10], 0, strlen(arrCoords[10]), 255);
  21894. HouseInfo[idx][hOwned] = strvalEx(arrCoords[11]);
  21895. HouseInfo[idx][hLocked] = strvalEx(arrCoords[12]);
  21896. HouseInfo[idx][hAlarm] = strvalEx(arrCoords[13]);
  21897. HouseInfo[idx][hAlarmON] = strvalEx(arrCoords[14]);
  21898. HouseInfo[idx][hGun1] = strvalEx(arrCoords[15]);
  21899. HouseInfo[idx][hGun2] = strvalEx(arrCoords[16]);
  21900. HouseInfo[idx][hGun3] = strvalEx(arrCoords[17]);
  21901. HouseInfo[idx][hGun4] = strvalEx(arrCoords[18]);
  21902. HouseInfo[idx][hCrack] = strvalEx(arrCoords[19]);
  21903. HouseInfo[idx][hPot] = strvalEx(arrCoords[20]);
  21904. HouseInfo[idx][hPrice] = strvalEx(arrCoords[21]);
  21905. HouseInfo[idx][hLevel] = strvalEx(arrCoords[22]);
  21906. HouseInfo[idx][hSafe] = strvalEx(arrCoords[23]);
  21907. HouseInfo[idx][hSafeCode] = strvalEx(arrCoords[24]);
  21908. HouseInfo[idx][hCameras] = strvalEx(arrCoords[25]);
  21909. HouseInfo[idx][hCash] = strvalEx(arrCoords[26]);
  21910. HouseInfo[idx][hMaterials] = strvalEx(arrCoords[27]);
  21911. HouseInfo[idx][hVulnerable] = strvalEx(arrCoords[28]);
  21912. HouseInfo[idx][hSafex] = floatstr(arrCoords[29]);
  21913. HouseInfo[idx][hSafey] = floatstr(arrCoords[30]);
  21914. HouseInfo[idx][hSafez] = floatstr(arrCoords[31]);
  21915. HouseInfo[idx][hRenters] = strvalEx(arrCoords[32]);
  21916. strmid(HouseInfo[idx][hName], arrCoords[33], 0, strlen(arrCoords[33]), 255);
  21917. HouseInfo[idx][hRentable] = strvalEx(arrCoords[34]);
  21918. HouseInfo[idx][hRent] = strvalEx(arrCoords[35]);
  21919. HouseInfo[idx][hSafeOpen] = strvalEx(arrCoords[36]);
  21920. idx++;
  21921. }
  21922. fclose(file);
  21923. }
  21924. return 1;
  21925. }
  21926.  
  21927. public SaveHouse()
  21928. {
  21929. new File: file2;
  21930. new idx;
  21931. while (idx < sizeof(HouseInfo))
  21932. {
  21933. new coordsstring[256];
  21934. format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%d|%s|%d|%d|%d\n",
  21935. HouseInfo[idx][hLocation_x],
  21936. HouseInfo[idx][hLocation_y],
  21937. HouseInfo[idx][hLocation_z],
  21938. HouseInfo[idx][hExitAngle],
  21939. HouseInfo[idx][hIntLocationx],
  21940. HouseInfo[idx][hIntLocationy],
  21941. HouseInfo[idx][hIntLocationz],
  21942. HouseInfo[idx][hEnterAngle],
  21943. HouseInfo[idx][hVirtualWorld],
  21944. HouseInfo[idx][hInterior],
  21945. HouseInfo[idx][hOwner],
  21946. HouseInfo[idx][hOwned],
  21947. HouseInfo[idx][hLocked],
  21948. HouseInfo[idx][hAlarm],
  21949. HouseInfo[idx][hAlarmON],
  21950. HouseInfo[idx][hGun1],
  21951. HouseInfo[idx][hGun2],
  21952. HouseInfo[idx][hGun3],
  21953. HouseInfo[idx][hGun4],
  21954. HouseInfo[idx][hCrack],
  21955. HouseInfo[idx][hPot],
  21956. HouseInfo[idx][hPrice],
  21957. HouseInfo[idx][hLevel],
  21958. HouseInfo[idx][hSafe],
  21959. HouseInfo[idx][hSafeCode],
  21960. HouseInfo[idx][hCameras],
  21961. HouseInfo[idx][hCash],
  21962. HouseInfo[idx][hMaterials],
  21963. HouseInfo[idx][hVulnerable],
  21964. HouseInfo[idx][hSafex],
  21965. HouseInfo[idx][hSafey],
  21966. HouseInfo[idx][hSafez],
  21967. HouseInfo[idx][hRenters],
  21968. HouseInfo[idx][hName],
  21969. HouseInfo[idx][hRentable],
  21970. HouseInfo[idx][hRent],
  21971. HouseInfo[idx][hSafeOpen]);
  21972. if(idx == 0)
  21973. {
  21974. file2 = fopen("Ownership/Houses.ini", io_write);
  21975. }
  21976. else
  21977. {
  21978. file2 = fopen("Ownership/Houses.ini", io_append);
  21979. }
  21980. fwrite(file2, coordsstring);
  21981. idx++;
  21982. fclose(file2);
  21983. }
  21984. return 1;
  21985. }
  21986.  
  21987.  
  21988. public LoadBiz()
  21989. {
  21990. new arrCoords[25][64];
  21991. new strFromFile2[256];
  21992. new File: file = fopen("Ownership/Biz.ini", io_read);
  21993. if(file)
  21994. {
  21995. new idx;
  21996. while (idx < sizeof(BizInfo))
  21997. {
  21998. fread(file, strFromFile2);
  21999. split(strFromFile2, arrCoords, '|');
  22000. BizInfo[idx][bLocation_x] = floatstr(arrCoords[0]);
  22001. BizInfo[idx][bLocation_y] = floatstr(arrCoords[1]);
  22002. BizInfo[idx][bLocation_z] = floatstr(arrCoords[2]);
  22003. BizInfo[idx][bExitAngle] = floatstr(arrCoords[3]);
  22004. BizInfo[idx][bIntLocationx] = floatstr(arrCoords[4]);
  22005. BizInfo[idx][bIntLocationy] = floatstr(arrCoords[5]);
  22006. BizInfo[idx][bIntLocationz] = floatstr(arrCoords[6]);
  22007. BizInfo[idx][bEnterAngle] = floatstr(arrCoords[7]);
  22008. BizInfo[idx][bVirtualWorld] = strvalEx(arrCoords[8]);
  22009. BizInfo[idx][bInterior] = strvalEx(arrCoords[9]);
  22010. strmid(BizInfo[idx][bOwner], arrCoords[10], 0, strlen(arrCoords[10]), 255);
  22011. BizInfo[idx][bOwned] = strvalEx(arrCoords[11]);
  22012. BizInfo[idx][bLocked] = strvalEx(arrCoords[12]);
  22013. BizInfo[idx][bPrice] = strvalEx(arrCoords[13]);
  22014. BizInfo[idx][bType] = strvalEx(arrCoords[14]);
  22015. BizInfo[idx][bCameras] = strvalEx(arrCoords[15]);
  22016. BizInfo[idx][bTill] = strvalEx(arrCoords[16]);
  22017. strmid(BizInfo[idx][bName], arrCoords[17], 0, strlen(arrCoords[17]), 255);
  22018. BizInfo[idx][bFee] = strvalEx(arrCoords[18]);
  22019. BizInfo[idx][bPInt] = strvalEx(arrCoords[19]);
  22020. BizInfo[idx][bPVW] = strvalEx(arrCoords[20]);
  22021. BizInfo[idx][bProducts] = strvalEx(arrCoords[21]);
  22022. BizInfo[idx][bLottoTime] = strvalEx(arrCoords[22]);
  22023. BizInfo[idx][bLottoJackpot] = strvalEx(arrCoords[23]);
  22024. BizInfo[idx][bNewLottoJackpot] = strvalEx(arrCoords[24]);
  22025. idx++;
  22026. }
  22027. fclose(file);
  22028. }
  22029. return 1;
  22030. }
  22031.  
  22032. public SaveBiz()
  22033. {
  22034. new File: file2;
  22035. new idx;
  22036. while (idx < sizeof(BizInfo))
  22037. {
  22038. new coordsstring[256];
  22039. format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d\n",
  22040. BizInfo[idx][bLocation_x],
  22041. BizInfo[idx][bLocation_y],
  22042. BizInfo[idx][bLocation_z],
  22043. BizInfo[idx][bExitAngle],
  22044. BizInfo[idx][bIntLocationx],
  22045. BizInfo[idx][bIntLocationy],
  22046. BizInfo[idx][bIntLocationz],
  22047. BizInfo[idx][bEnterAngle],
  22048. BizInfo[idx][bVirtualWorld],
  22049. BizInfo[idx][bInterior],
  22050. BizInfo[idx][bOwner],
  22051. BizInfo[idx][bOwned],
  22052. BizInfo[idx][bLocked],
  22053. BizInfo[idx][bPrice],
  22054. BizInfo[idx][bType],
  22055. BizInfo[idx][bCameras],
  22056. BizInfo[idx][bTill],
  22057. BizInfo[idx][bName],
  22058. BizInfo[idx][bFee],
  22059. BizInfo[idx][bPInt],
  22060. BizInfo[idx][bPVW],
  22061. BizInfo[idx][bProducts],
  22062. BizInfo[idx][bLottoTime],
  22063. BizInfo[idx][bLottoJackpot],
  22064. BizInfo[idx][bNewLottoJackpot]);
  22065. if(idx == 0)
  22066. {
  22067. file2 = fopen("Ownership/Biz.ini", io_write);
  22068. }
  22069. else
  22070. {
  22071. file2 = fopen("Ownership/Biz.ini", io_append);
  22072. }
  22073. fwrite(file2, coordsstring);
  22074. idx++;
  22075. fclose(file2);
  22076. }
  22077. return 1;
  22078. }
  22079.  
  22080. public LoadIRC()
  22081. {
  22082. new arrCoords[5][64];
  22083. new strFromFile2[256];
  22084. new File: file = fopen("IRC/channels.cfg", io_read);
  22085. if(file)
  22086. {
  22087. new idx;
  22088. while (idx < sizeof(IRCInfo))
  22089. {
  22090. fread(file, strFromFile2);
  22091. split(strFromFile2, arrCoords, '|');
  22092. strmid(IRCInfo[idx][iAdmin], arrCoords[0], 0, strlen(arrCoords[0]), 255);
  22093. strmid(IRCInfo[idx][iMOTD], arrCoords[1], 0, strlen(arrCoords[1]), 255);
  22094. strmid(IRCInfo[idx][iPassword], arrCoords[2], 0, strlen(arrCoords[2]), 255);
  22095. IRCInfo[idx][iNeedPass] = strvalEx(arrCoords[3]);
  22096. IRCInfo[idx][iLock] = strvalEx(arrCoords[4]);
  22097. // printf("IRC:%d Admin:%s MOTD:%s Password:%s NeedPass:%d Lock:%d",idx,IRCInfo[idx][iAdmin],IRCInfo[idx][iMOTD],IRCInfo[idx][iPassword],IRCInfo[idx][iNeedPass],IRCInfo[idx][iLock]);
  22098. idx++;
  22099. }
  22100. fclose(file);
  22101. }
  22102. return 1;
  22103. }
  22104.  
  22105. public SaveIRC()
  22106. {
  22107. new idx;
  22108. new File: file2;
  22109. while (idx < sizeof(IRCInfo))
  22110. {
  22111. new coordsstring[256];
  22112. format(coordsstring, sizeof(coordsstring), "%s|%s|%s|%d|%d\n",
  22113. IRCInfo[idx][iAdmin],
  22114. IRCInfo[idx][iMOTD],
  22115. IRCInfo[idx][iPassword],
  22116. IRCInfo[idx][iNeedPass],
  22117. IRCInfo[idx][iLock]);
  22118. if(idx == 0)
  22119. {
  22120. file2 = fopen("IRC/channels.cfg", io_write);
  22121. }
  22122. else
  22123. {
  22124. file2 = fopen("IRC/channels.cfg", io_append);
  22125. }
  22126. fwrite(file2, coordsstring);
  22127. idx++;
  22128. fclose(file2);
  22129. }
  22130. return 1;
  22131. }
  22132.  
  22133. public LoadFamilies()
  22134. {
  22135. new arrCoords[38][64];
  22136. new strFromFile2[512];
  22137. new File: file = fopen("Families/families.cfg", io_read);
  22138. if(file)
  22139. {
  22140. new idx;
  22141. while (idx < sizeof(FamilyInfo))
  22142. {
  22143. fread(file, strFromFile2);
  22144. split(strFromFile2, arrCoords, '|');
  22145. FamilyInfo[idx][FamilyTaken] = strvalEx(arrCoords[0]);
  22146. strmid(FamilyInfo[idx][FamilyName], arrCoords[1], 0, strlen(arrCoords[1]), 255);
  22147. strmid(FamilyInfo[idx][FamilyMOTD], arrCoords[2], 0, strlen(arrCoords[2]), 255);
  22148. strmid(FamilyInfo[idx][FamilyLeader], arrCoords[3], 0, strlen(arrCoords[3]), 255);
  22149. FamilyInfo[idx][FamilyBank] = strvalEx(arrCoords[4]);
  22150. FamilyInfo[idx][FamilyCash] = strvalEx(arrCoords[5]);
  22151. FamilyInfo[idx][FamilySafe] = strvalEx(arrCoords[6]);
  22152. FamilyInfo[idx][FamilySafePos][0] = floatstr(arrCoords[7]);
  22153. FamilyInfo[idx][FamilySafePos][1] = floatstr(arrCoords[8]);
  22154. FamilyInfo[idx][FamilySafePos][2] = floatstr(arrCoords[9]);
  22155. FamilyInfo[idx][FamilyPot] = strvalEx(arrCoords[10]);
  22156. FamilyInfo[idx][FamilyCrack] = strvalEx(arrCoords[11]);
  22157. FamilyInfo[idx][FamilyMats] = strvalEx(arrCoords[12]);
  22158. strmid(FamilyRank[idx][0], arrCoords[13], 0, strlen(arrCoords[13]), 255);
  22159. strmid(FamilyRank[idx][1], arrCoords[14], 0, strlen(arrCoords[14]), 255);
  22160. strmid(FamilyRank[idx][2], arrCoords[15], 0, strlen(arrCoords[15]), 255);
  22161. strmid(FamilyRank[idx][3], arrCoords[16], 0, strlen(arrCoords[16]), 255);
  22162. strmid(FamilyRank[idx][4], arrCoords[17], 0, strlen(arrCoords[17]), 255);
  22163. strmid(FamilyRank[idx][5], arrCoords[18], 0, strlen(arrCoords[18]), 255);
  22164. FamilyInfo[idx][FamilyMembers] = strvalEx(arrCoords[19]);
  22165. FamilyInfo[idx][FamilySkins] = strvalEx(arrCoords[20]);
  22166. FamilyInfo[idx][FamilySkin1] = strvalEx(arrCoords[21]);
  22167. FamilyInfo[idx][FamilySkin2] = strvalEx(arrCoords[22]);
  22168. FamilyInfo[idx][FamilySkin3] = strvalEx(arrCoords[23]);
  22169. FamilyInfo[idx][FamilySkin4] = strvalEx(arrCoords[24]);
  22170. FamilyInfo[idx][FamilySkin5] = strvalEx(arrCoords[25]);
  22171. FamilyInfo[idx][FamilySkin6] = strvalEx(arrCoords[26]);
  22172. FamilyInfo[idx][FamilySkin7] = strvalEx(arrCoords[27]);
  22173. FamilyInfo[idx][FamilySkin8] = strvalEx(arrCoords[28]);
  22174. FamilyInfo[idx][FStrikes] = strvalEx(arrCoords[29]);
  22175. FamilyInfo[idx][Colt45] = strvalEx(arrCoords[30]);
  22176. FamilyInfo[idx][Shotgun] = strvalEx(arrCoords[31]);
  22177. FamilyInfo[idx][MP5] = strvalEx(arrCoords[32]);
  22178. FamilyInfo[idx][AK47] = strvalEx(arrCoords[33]);
  22179. FamilyInfo[idx][M4] = strvalEx(arrCoords[34]);
  22180. FamilyInfo[idx][SPAS12] = strvalEx(arrCoords[35]);
  22181. FamilyInfo[idx][Rifle] = strvalEx(arrCoords[36]);
  22182. FamilyInfo[idx][Sniper] = strvalEx(arrCoords[37]);
  22183. idx++;
  22184. }
  22185. fclose(file);
  22186. }
  22187. return 1;
  22188. }
  22189. //==============================================================================
  22190. public SaveFamilies()
  22191. {
  22192. new idx;
  22193. new File: file2;
  22194. while (idx < sizeof(FamilyInfo))
  22195. {
  22196. new coordsstring[512];
  22197. format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%d|%d|%d|%f|%f|%f|%d|%d|%d|%s|%s|%s|%s|%s|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
  22198. FamilyInfo[idx][FamilyTaken],
  22199. FamilyInfo[idx][FamilyName],
  22200. FamilyInfo[idx][FamilyMOTD],
  22201. FamilyInfo[idx][FamilyLeader],
  22202. FamilyInfo[idx][FamilyBank],
  22203. FamilyInfo[idx][FamilyCash],
  22204. FamilyInfo[idx][FamilySafe],
  22205. FamilyInfo[idx][FamilySafePos][0],
  22206. FamilyInfo[idx][FamilySafePos][1],
  22207. FamilyInfo[idx][FamilySafePos][2],
  22208. FamilyInfo[idx][FamilyPot],
  22209. FamilyInfo[idx][FamilyCrack],
  22210. FamilyInfo[idx][FamilyMats],
  22211. FamilyRank[idx][0],
  22212. FamilyRank[idx][1],
  22213. FamilyRank[idx][2],
  22214. FamilyRank[idx][3],
  22215. FamilyRank[idx][4],
  22216. FamilyRank[idx][5],
  22217. FamilyInfo[idx][FamilyMembers],
  22218. FamilyInfo[idx][FamilySkins],
  22219. FamilyInfo[idx][FamilySkin1],
  22220. FamilyInfo[idx][FamilySkin2],
  22221. FamilyInfo[idx][FamilySkin3],
  22222. FamilyInfo[idx][FamilySkin4],
  22223. FamilyInfo[idx][FamilySkin5],
  22224. FamilyInfo[idx][FamilySkin6],
  22225. FamilyInfo[idx][FamilySkin7],
  22226. FamilyInfo[idx][FamilySkin8],
  22227. FamilyInfo[idx][FStrikes],
  22228. FamilyInfo[idx][Colt45],
  22229. FamilyInfo[idx][Shotgun],
  22230. FamilyInfo[idx][MP5],
  22231. FamilyInfo[idx][AK47],
  22232. FamilyInfo[idx][M4],
  22233. FamilyInfo[idx][SPAS12],
  22234. FamilyInfo[idx][Rifle],
  22235. FamilyInfo[idx][Sniper]);
  22236. if(idx == 0)
  22237. {
  22238. file2 = fopen("Families/families.cfg", io_write);
  22239. }
  22240. else
  22241. {
  22242. file2 = fopen("Families/families.cfg", io_append);
  22243. }
  22244. fwrite(file2, coordsstring);
  22245. idx++;
  22246. fclose(file2);
  22247. }
  22248. return 1;
  22249. }
  22250.  
  22251.  
  22252. public OnGameModeExit()
  22253. {
  22254. SaveBiz();
  22255. SaveHouse();
  22256. SaveCar();
  22257. djson_GameModeExit();
  22258. return 1;
  22259. }
  22260.  
  22261. public OnGameModeInit()
  22262. {
  22263. ManualVehicleEngineAndLights();
  22264. DisableInteriorEnterExits();
  22265. /* ConnectNPC("Security_Guard","npcidle");
  22266. ConnectNPC("Banker","npcidle");
  22267. ConnectNPC("Bot_24","npcidle");
  22268. ConnectNPC("Bot_24_1","npcidle");
  22269. ConnectNPC("Bot_24_2","npcidle");
  22270. ConnectNPC("Bot_24_3","npcidle");
  22271. ConnectNPC("bot_10gb","npcdle");
  22272. ConnectNPC("bot_pigpen","npcidle");
  22273. ConnectNPC("bot_stripper1","npcidle");
  22274. ConnectNPC("bot_stripper2","npcidle");
  22275. ConnectNPC("Boxer","npcidle");
  22276. ConnectNPC("bot_donut","train_ls");
  22277. ConnectNPC("Bus","Bus");
  22278. ConnectNPC("Barman","npcidle");
  22279. ConnectNPC("Janet","npcidle");
  22280. ConnectNPC("Denise","npcidle");*/
  22281. print("Stage 1");
  22282. SetNameTagDrawDistance(30.0);
  22283. SendRconCommand("loadfs gates");
  22284. EnableStuntBonusForAll(0);
  22285.  
  22286. for(new i = 0; i < MAX_VEHICLES; i++)
  22287. {
  22288. Gas[i] = 100;
  22289. }
  22290. print("Stage 2");
  22291. LoadBoxer();
  22292. LoadLSPDPass();
  22293. print("Stage 3");
  22294. LoadStuff();
  22295. print("Stage 4");
  22296. LoadIRC();
  22297. print("Stage 5");
  22298. LoadFamilies();
  22299. print("Stage 6");
  22300. djson_GameModeInit();
  22301. print("Stage 7");
  22302. IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
  22303. IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
  22304. IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
  22305. IRCInfo[9][iPlayers] = 0;
  22306. SetGameModeText("RG:RP v2.4");
  22307. format(motd, sizeof(motd), "{7DAEFF}SERVER: If you think someone knows your password use (/changepass) to change it.{7DAEFF}");
  22308. gettime(ghour, gminute, gsecond);
  22309. FixHour(ghour);
  22310. ghour = shifthour;
  22311. if(!realtime)
  22312. {
  22313. SetWorldTime(wtime);
  22314. }
  22315. AllowInteriorWeapons(1);
  22316. UsePlayerPedAnims();
  22317. // Player Class's
  22318. for(new i = 0; i <= sizeof(PedSkins)-1; i++)
  22319. {
  22320. AddPlayerClass(PedSkins[i][0],982.1890,-1624.2583,14.952,90,-1,-1,-1,-1,-1,-1);
  22321. }
  22322.  
  22323. //BUTTONS
  22324. CreateButton(244.92, 72.29, 1004.27, 0.0); // LSPD DOOR ENTER
  22325. CreateButton(244.91, 73.81, 1004.27, 90.0); // LSPD DOOR EXIT
  22326. CreateButton(1765.9000, -1574.0979, 1641.7, 270.0); // PRISON CELL OPEN
  22327. CreateButton(222.41, 71.29, 1005.66, 90.0); // CHIEF DOOR OUTSIDE
  22328. CreateButton(221.87, 68.34, 1005.66, 270.0); // CHIEF DOOR INSIDE
  22329. //VIP Gates
  22330. vipgateob1 = CreateDynamicObject(971,364.95495605,-1469.17004395,31.39999962,0.00000000,0.00000000,36.00000000); //object(subwaygate) (1)
  22331. vipgateob2 = CreateDynamicObject(971,310.11669922,-1556.11083984,31.39999962,0.00000000,0.00000000,143.99996948); //object(subwaygate) (2)
  22332.  
  22333. //Object and 3dtext for /train at le new gym
  22334. CreateDynamicObject(1239,31,1226.8239,-773.0059,1084.0048,0.00000000,0.00000000,31.00000000);
  22335.  
  22336. //CITY PARK LSPD!
  22337. //- Mapped by: Logan Stone
  22338. //- Mapped for: RG:RP ( Reality Gaming Roleplay )
  22339. //(C) 2012 All rights reserved to the author ( Logan ).
  22340. CreateObject(852,1851.50000000,-1966.59997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(cj_urb_rub_4) (1)
  22341. CreateObject(970,1516.19995117,-1690.90002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (1)
  22342. CreateObject(970,1516.19995117,-1695.00000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (2)
  22343. CreateObject(970,1516.19995117,-1699.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (3)
  22344. CreateObject(970,1516.19995117,-1703.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (4)
  22345. CreateObject(970,1516.19995117,-1707.29992676,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (5)
  22346. CreateObject(970,1516.19995117,-1711.39990234,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (6)
  22347. CreateObject(970,1516.19921875,-1715.49902344,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (7)
  22348. CreateObject(970,1516.19995117,-1716.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (8)
  22349. CreateObject(970,1514.09997559,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (9)
  22350. CreateObject(970,1510.00000000,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (10)
  22351. CreateObject(970,1505.90002441,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (11)
  22352. CreateObject(970,1501.80004883,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (12)
  22353. CreateObject(970,1497.70007324,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (13)
  22354. CreateObject(970,1493.60009766,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (14)
  22355. CreateObject(970,1489.50012207,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (15)
  22356. CreateObject(970,1485.40014648,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (16)
  22357. CreateObject(970,1469.00024414,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (20)
  22358. CreateObject(970,1464.90026855,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (21)
  22359. CreateObject(970,1460.80029297,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (22)
  22360. CreateObject(970,1456.70031738,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (23)
  22361. CreateObject(970,1452.60034180,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (24)
  22362. CreateObject(970,1448.50000000,-1718.89941406,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (25)
  22363. CreateObject(970,1445.00000000,-1718.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (26)
  22364. CreateObject(970,1442.90002441,-1716.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (27)
  22365. CreateObject(970,1442.90002441,-1712.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (28)
  22366. CreateObject(970,1442.90002441,-1708.59985352,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (29)
  22367. CreateObject(970,1442.90002441,-1704.49975586,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (30)
  22368. CreateObject(970,1442.90002441,-1700.39965820,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (31)
  22369. CreateObject(970,1442.90002441,-1696.29956055,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (32)
  22370. CreateObject(970,1442.90002441,-1692.19946289,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (33)
  22371. CreateObject(970,1442.90002441,-1688.09936523,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (34)
  22372. CreateObject(970,1442.90002441,-1684.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (35)
  22373. CreateObject(970,1442.90002441,-1633.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (37)
  22374. CreateObject(970,1442.90002441,-1629.59997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (38)
  22375. CreateObject(970,1442.90002441,-1625.50000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (39)
  22376. CreateObject(970,1442.90002441,-1621.40002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (40)
  22377. CreateObject(970,1442.90002441,-1617.30004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (41)
  22378. CreateObject(970,1442.90002441,-1613.20007324,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (42)
  22379. CreateObject(970,1442.90002441,-1609.10009766,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (43)
  22380. CreateObject(970,1442.90002441,-1607.69995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (44)
  22381. CreateObject(970,1445.00000000,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (46)
  22382. CreateObject(970,1449.09997559,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (47)
  22383. CreateObject(970,1453.19995117,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (48)
  22384. CreateObject(970,1457.29992676,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (49)
  22385. CreateObject(970,1461.39990234,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (50)
  22386. CreateObject(970,1465.49987793,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (51)
  22387. CreateObject(970,1469.59985352,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (52)
  22388. CreateObject(970,1490.09973145,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (57)
  22389. CreateObject(970,1494.19970703,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (58)
  22390. CreateObject(970,1498.29968262,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (59)
  22391. CreateObject(970,1502.39965820,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (60)
  22392. CreateObject(970,1506.49963379,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (61)
  22393. CreateObject(970,1510.59960938,-1605.69921875,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (62)
  22394. CreateObject(970,1514.09997559,-1605.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (64)
  22395. CreateObject(970,1516.09997559,-1607.80004883,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (65)
  22396. CreateObject(970,1516.09997559,-1611.90002441,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (67)
  22397. CreateObject(970,1516.09997559,-1616.00000000,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (68)
  22398. CreateObject(970,1516.09997559,-1620.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (69)
  22399. CreateObject(970,1516.09997559,-1624.19995117,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (70)
  22400. CreateObject(970,1516.09997559,-1628.29992676,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (71)
  22401. CreateObject(970,1516.09997559,-1632.39990234,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (72)
  22402. CreateObject(970,1516.09997559,-1636.49987793,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (73)
  22403. CreateObject(970,1516.09997559,-1640.09997559,13.60000038,0.00000000,0.00000000,90.00000000); //object(fencesmallb) (74)
  22404. CreateObject(621,1515.59997559,-1641.69995117,12.80000019,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (1)
  22405. CreateObject(621,1515.90002441,-1622.50000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (2)
  22406. CreateObject(621,1515.50000000,-1606.09997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (3)
  22407. CreateObject(621,1498.30004883,-1606.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (4)
  22408. CreateObject(3749,1480.80004883,-1606.00000000,18.20000076,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (1)
  22409. CreateObject(621,1488.40002441,-1602.50000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (9)
  22410. CreateObject(621,1472.19995117,-1602.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (10)
  22411. CreateObject(621,1459.19995117,-1606.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (11)
  22412. CreateObject(621,1442.80004883,-1606.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (12)
  22413. CreateObject(621,1442.90002441,-1621.59997559,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (13)
  22414. CreateObject(621,1442.90002441,-1635.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (14)
  22415. CreateObject(621,1443.09997559,-1683.00000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (15)
  22416. CreateObject(621,1442.69995117,-1698.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (16)
  22417. CreateObject(621,1442.90002441,-1710.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (17)
  22418. CreateObject(621,1443.09997559,-1719.19995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (18)
  22419. CreateObject(621,1453.40002441,-1718.90002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (19)
  22420. CreateObject(621,1462.69995117,-1718.80004883,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (20)
  22421. CreateObject(3749,1477.19995117,-1718.69995117,18.39999962,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (2)
  22422. CreateObject(621,1491.30004883,-1718.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (21)
  22423. CreateObject(621,1501.90002441,-1718.69995117,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (22)
  22424. CreateObject(621,1503.50000000,-1718.80004883,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (23)
  22425. CreateObject(621,1515.90002441,-1719.00000000,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (25)
  22426. CreateObject(621,1515.50000000,-1703.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (26)
  22427. CreateObject(621,1515.59997559,-1689.40002441,12.60000038,0.00000000,0.00000000,0.00000000); //object(veg_palm02) (27)
  22428. CreateObject(16151,1479.50000000,-1672.79980469,13.50000000,0.00000000,0.00000000,89.76928711); //object(ufo_bar) (2)
  22429. CreateObject(712,1476.19995117,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (1)
  22430. CreateObject(712,1477.69995117,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (2)
  22431. CreateObject(712,1479.00000000,-1671.00000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (3)
  22432. CreateObject(712,1480.19995117,-1670.69995117,23.00000000,0.00000000,0.00000000,0.00000000); //object(vgs_palm03) (4)
  22433. CreateObject(1432,1482.00000000,-1678.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
  22434. CreateObject(1432,1484.19921875,-1681.69921875,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (2)
  22435. CreateObject(1432,1480.89941406,-1684.19921875,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (3)
  22436. CreateObject(1432,1475.09960938,-1679.09960938,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (4)
  22437. CreateObject(1432,1476.39941406,-1683.39941406,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (5)
  22438. CreateObject(1432,1472.59960938,-1683.00000000,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (6)
  22439. CreateObject(1432,1484.39941406,-1686.09960938,13.00000000,0.00000000,0.00000000,355.91308594); //object(dyn_table_2) (7)
  22440. CreateObject(1432,1478.30004883,-1687.19995117,13.00000000,0.00000000,0.00000000,8.15734863); //object(dyn_table_2) (8)
  22441. CreateObject(1775,1469.30004883,-1678.00000000,14.10000038,0.00000000,0.00000000,80.25173950); //object(cj_sprunk1) (1)
  22442. CreateObject(1776,1470.59997559,-1676.09997559,14.10000038,0.00000000,0.00000000,31.28457642); //object(cj_candyvendor) (1)
  22443. CreateObject(1302,1472.90002441,-1675.69995117,13.00000000,0.00000000,0.00000000,345.03778076); //object(vendmachfd) (1)
  22444. CreateObject(3117,1489.00000000,-1676.50000000,13.19999981,0.00000000,0.00000000,300.15039062); //object(a51_ventcoverb) (1)
  22445. CreateObject(3117,1489.00000000,-1676.50000000,13.39999962,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (2)
  22446. CreateObject(3117,1489.00000000,-1676.50000000,13.60000038,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (3)
  22447. CreateObject(3117,1489.00000000,-1676.50000000,13.80000019,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (4)
  22448. CreateObject(3117,1489.00000000,-1676.50000000,14.00000000,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (5)
  22449. CreateObject(3117,1489.00000000,-1676.50000000,14.19999981,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (6)
  22450. CreateObject(3117,1489.00000000,-1676.50000000,14.39999962,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (7)
  22451. CreateObject(3117,1489.00000000,-1676.50000000,14.60000038,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (8)
  22452. CreateObject(3117,1489.00000000,-1676.50000000,14.80000019,0.00000000,0.00000000,300.14648438); //object(a51_ventcoverb) (9)
  22453. CreateObject(2637,1488.30004883,-1676.80004883,15.10000038,0.00000000,0.00000000,300.15039062); //object(cj_pizza_table2) (2)
  22454. CreateObject(14820,1488.30004883,-1676.80004883,15.60000038,0.00000000,0.00000000,300.15063477); //object(dj_stuff) (1)
  22455. CreateObject(1714,1489.09997559,-1675.50000000,14.89999962,0.00000000,0.00000000,350.47857666); //object(kb_swivelchair1) (1)
  22456. CreateObject(3472,1485.30004883,-1674.50000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (1)
  22457. CreateObject(3472,1491.09997559,-1685.30004883,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (2)
  22458. CreateObject(3472,1486.09997559,-1696.19995117,13.00000000,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (3)
  22459. CreateObject(3472,1473.69995117,-1693.19995117,13.00000000,0.00000000,0.00000000,346.39794922); //object(circuslampost03) (4)
  22460. CreateObject(3472,1466.09997559,-1682.80004883,13.00000000,0.00000000,0.00000000,330.07092285); //object(circuslampost03) (5)
  22461. CreateObject(3472,1467.80004883,-1673.80004883,13.00000000,0.00000000,0.00000000,338.22888184); //object(circuslampost03) (6)
  22462. CreateObject(2670,1477.19995117,-1680.80004883,13.30000019,0.00000000,0.00000000,23.12338257); //object(proc_rubbish_1) (1)
  22463. CreateObject(2670,1478.90002441,-1680.09997559,13.30000019,0.00000000,0.00000000,349.11560059); //object(proc_rubbish_1) (2)
  22464. CreateObject(2670,1481.90002441,-1683.50000000,13.30000019,0.00000000,0.00000000,350.47283936); //object(proc_rubbish_1) (3)
  22465. CreateObject(2670,1478.40002441,-1685.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_1) (4)
  22466. CreateObject(2670,1474.09997559,-1686.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_1) (5)
  22467. CreateObject(2670,1471.50000000,-1681.00000000,13.30000019,0.00000000,0.00000000,14.95306396); //object(proc_rubbish_1) (6)
  22468. CreateObject(2670,1478.59997559,-1677.00000000,13.30000019,0.00000000,0.00000000,359.99020386); //object(proc_rubbish_1) (7)
  22469. CreateObject(2671,1468.09997559,-1688.19995117,13.00000000,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_3) (1)
  22470. CreateObject(2671,1478.59997559,-1680.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_3) (2)
  22471. CreateObject(2671,1481.19995117,-1687.40002441,13.19999981,0.00000000,0.00000000,357.27960205); //object(proc_rubbish_3) (3)
  22472. CreateObject(2671,1485.50000000,-1689.59997559,13.19999981,0.00000000,0.00000000,19.03866577); //object(proc_rubbish_3) (4)
  22473. CreateObject(2671,1484.30004883,-1683.80004883,13.19999981,0.00000000,0.00000000,21.75421143); //object(proc_rubbish_3) (5)
  22474. CreateObject(2671,1481.09997559,-1681.30004883,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (6)
  22475. CreateObject(2671,1479.80004883,-1679.09997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (7)
  22476. CreateObject(2671,1475.30004883,-1682.59997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (8)
  22477. CreateObject(2671,1473.90002441,-1689.40002441,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (9)
  22478. CreateObject(2671,1471.09997559,-1687.80004883,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (10)
  22479. CreateObject(2671,1470.80004883,-1684.09997559,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (11)
  22480. CreateObject(2671,1470.69995117,-1679.19995117,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (12)
  22481. CreateObject(2671,1473.30004883,-1676.69995117,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (13)
  22482. CreateObject(2671,1473.40002441,-1681.50000000,13.19999981,0.00000000,0.00000000,21.75292969); //object(proc_rubbish_3) (14)
  22483. CreateObject(2672,1478.69995117,-1683.69995117,13.30000019,0.00000000,0.00000000,4.08059692); //object(proc_rubbish_4) (1)
  22484. CreateObject(2672,1476.00000000,-1685.30004883,13.30000019,0.00000000,0.00000000,350.47387695); //object(proc_rubbish_4) (2)
  22485. CreateObject(2672,1472.40002441,-1685.19995117,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (3)
  22486. CreateObject(2672,1476.30004883,-1687.50000000,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (4)
  22487. CreateObject(2672,1481.09997559,-1688.80004883,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (5)
  22488. CreateObject(2672,1487.59997559,-1680.09997559,13.30000019,0.00000000,0.00000000,350.46936035); //object(proc_rubbish_4) (6)
  22489. CreateObject(2672,1486.50000000,-1678.69995117,13.30000019,0.00000000,0.00000000,359.99084473); //object(proc_rubbish_4) (7)
  22490. CreateObject(2673,1476.50000000,-1689.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (1)
  22491. CreateObject(2673,1478.80004883,-1690.00000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (2)
  22492. CreateObject(2673,1480.09997559,-1686.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (3)
  22493. CreateObject(2673,1478.30004883,-1684.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (4)
  22494. CreateObject(2673,1474.69995117,-1682.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (5)
  22495. CreateObject(2673,1472.19995117,-1680.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (6)
  22496. CreateObject(2673,1473.69995117,-1677.30004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (7)
  22497. CreateObject(2673,1472.80004883,-1674.80004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (8)
  22498. CreateObject(2673,1474.30004883,-1674.69995117,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (9)
  22499. CreateObject(2673,1477.19995117,-1676.40002441,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (10)
  22500. CreateObject(2673,1479.90002441,-1675.50000000,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (11)
  22501. CreateObject(2673,1482.59997559,-1676.30004883,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (12)
  22502. CreateObject(2673,1482.59960938,-1676.29980469,13.30000019,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_5) (13)
  22503. CreateObject(2676,1484.19995117,-1675.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (1)
  22504. CreateObject(2676,1487.50000000,-1681.19995117,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (2)
  22505. CreateObject(2676,1478.30004883,-1681.40002441,13.19999981,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_8) (3)
  22506. CreateObject(2232,1489.40002441,-1679.19995117,13.60000038,0.00000000,0.00000000,300.15039062); //object(med_speaker_4) (1)
  22507. CreateObject(2232,1489.40002441,-1679.19995117,14.69999981,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (3)
  22508. CreateObject(2232,1489.40002441,-1679.19995117,15.80000019,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (4)
  22509. CreateObject(2232,1489.80004883,-1679.69995117,13.60000038,0.00000000,0.00000000,301.50671387); //object(med_speaker_4) (5)
  22510. CreateObject(2232,1489.80004883,-1679.69995117,14.69999981,0.00000000,0.00000000,301.50329590); //object(med_speaker_4) (6)
  22511. CreateObject(2232,1489.80004883,-1679.69995117,15.80000019,0.00000000,0.00000000,301.50329590); //object(med_speaker_4) (7)
  22512. CreateObject(2232,1488.09997559,-1678.80004883,13.50000000,0.00000000,0.00000000,309.66796875); //object(med_speaker_4) (8)
  22513. CreateObject(2232,1487.40002441,-1677.59997559,13.50000000,0.00000000,0.00000000,300.14648438); //object(med_speaker_4) (9)
  22514. CreateObject(2232,1486.59997559,-1676.40002441,13.50000000,0.00000000,0.00000000,287.90441895); //object(med_speaker_4) (10)
  22515. CreateObject(2232,1487.09997559,-1674.69995117,13.50000000,0.00000000,0.00000000,305.58740234); //object(med_speaker_4) (11)
  22516. CreateObject(2232,1487.09997559,-1674.69995117,14.60000038,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (12)
  22517. CreateObject(2232,1487.09997559,-1674.69995117,15.69999981,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (13)
  22518. CreateObject(2232,1486.69995117,-1674.19995117,13.50000000,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (14)
  22519. CreateObject(2232,1486.69995117,-1674.19995117,14.60000038,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (15)
  22520. CreateObject(2232,1486.69995117,-1674.19995117,15.69999981,0.00000000,0.00000000,305.58471680); //object(med_speaker_4) (16)
  22521. CreateObject(1544,1476.09997559,-1672.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (1)
  22522. CreateObject(1544,1476.30004883,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (2)
  22523. CreateObject(1544,1476.69995117,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (3)
  22524. CreateObject(1544,1477.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (4)
  22525. CreateObject(1544,1476.90002441,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (5)
  22526. CreateObject(1544,1478.30004883,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (6)
  22527. CreateObject(1544,1478.59997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (7)
  22528. CreateObject(1544,1478.90002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (8)
  22529. CreateObject(1544,1479.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (9)
  22530. CreateObject(1544,1480.09997559,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (10)
  22531. CreateObject(1544,1479.80004883,-1674.00000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (11)
  22532. CreateObject(1544,1479.90002441,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (12)
  22533. CreateObject(1544,1481.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (13)
  22534. CreateObject(1544,1481.00000000,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (14)
  22535. CreateObject(1544,1480.80004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (15)
  22536. CreateObject(1544,1481.40002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (16)
  22537. CreateObject(1544,1482.69995117,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (17)
  22538. CreateObject(1544,1482.30004883,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (18)
  22539. CreateObject(1544,1482.30004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (19)
  22540. CreateObject(1544,1482.09997559,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (20)
  22541. CreateObject(1544,1482.00000000,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (21)
  22542. CreateObject(1543,1476.30004883,-1672.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (1)
  22543. CreateObject(1543,1476.19995117,-1673.19995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (2)
  22544. CreateObject(1543,1476.00000000,-1673.19995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (3)
  22545. CreateObject(1543,1476.40002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (4)
  22546. CreateObject(1543,1476.50000000,-1673.50000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (5)
  22547. CreateObject(1543,1477.09997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (6)
  22548. CreateObject(1543,1477.40002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (7)
  22549. CreateObject(1543,1477.19995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (8)
  22550. CreateObject(1543,1477.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (9)
  22551. CreateObject(1543,1478.00000000,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (10)
  22552. CreateObject(1543,1478.09997559,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (11)
  22553. CreateObject(1543,1478.69995117,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (12)
  22554. CreateObject(1543,1479.09997559,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (13)
  22555. CreateObject(1543,1479.19995117,-1674.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (14)
  22556. CreateObject(1543,1479.30004883,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (15)
  22557. CreateObject(1543,1479.90002441,-1674.00000000,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (16)
  22558. CreateObject(1543,1480.50000000,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (17)
  22559. CreateObject(1543,1480.30004883,-1673.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (18)
  22560. CreateObject(1543,1480.40002441,-1673.90002441,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (19)
  22561. CreateObject(1543,1481.30004883,-1673.59997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (20)
  22562. CreateObject(1543,1481.90002441,-1673.80004883,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (21)
  22563. CreateObject(1543,1482.59997559,-1673.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (22)
  22564. CreateObject(1543,1482.80004883,-1673.09997559,14.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (23)
  22565. CreateObject(1517,1476.30004883,-1672.19995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (1)
  22566. CreateObject(1517,1477.59997559,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (2)
  22567. CreateObject(1517,1477.50000000,-1673.59997559,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (3)
  22568. CreateObject(1517,1478.30004883,-1673.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (4)
  22569. CreateObject(1517,1478.59997559,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (6)
  22570. CreateObject(1517,1479.40002441,-1674.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (7)
  22571. CreateObject(1517,1480.59997559,-1673.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (8)
  22572. CreateObject(1517,1481.69995117,-1673.90002441,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (9)
  22573. CreateObject(1337,1477.19628906,-1672.38281250,14.40130043,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
  22574. CreateObject(1520,162.80000305,140.30000305,534.79998779,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (1)
  22575. CreateObject(1543,1474.90002441,-1678.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (24)
  22576. CreateObject(1543,1475.19995117,-1678.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (25)
  22577. CreateObject(1544,1475.00000000,-1679.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (22)
  22578. CreateObject(1544,1475.30004883,-1679.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (23)
  22579. CreateObject(1544,1475.09997559,-1679.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (24)
  22580. CreateObject(1544,1474.69995117,-1679.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (25)
  22581. CreateObject(1520,1475.09997559,-1678.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (2)
  22582. CreateObject(1520,1475.09997559,-1679.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (3)
  22583. CreateObject(1520,1474.80004883,-1679.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (4)
  22584. CreateObject(1520,1473.09997559,-1681.09997559,13.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (5)
  22585. CreateObject(1512,1475.50000000,-1679.09997559,13.80000019,0.00000000,0.00000000,8.16119385); //object(dyn_wine_03) (1)
  22586. CreateObject(1512,1481.90002441,-1678.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_03) (2)
  22587. CreateObject(1486,1481.80004883,-1677.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (1)
  22588. CreateObject(1486,1481.90002441,-1677.69995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (2)
  22589. CreateObject(1486,1481.69995117,-1677.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (3)
  22590. CreateObject(1486,1482.19995117,-1678.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (4)
  22591. CreateObject(1486,1482.00000000,-1678.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (5)
  22592. CreateObject(1486,1482.09997559,-1678.40002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (6)
  22593. CreateObject(1486,1481.59997559,-1678.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (7)
  22594. CreateObject(1486,1481.69995117,-1678.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (8)
  22595. CreateObject(1486,1481.59997559,-1678.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (9)
  22596. CreateObject(1486,1481.19995117,-1677.09997559,13.19999981,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (10)
  22597. CreateObject(1544,1481.90002441,-1677.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (26)
  22598. CreateObject(1544,1482.09997559,-1677.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (27)
  22599. CreateObject(1544,1482.30004883,-1678.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (28)
  22600. CreateObject(1544,1482.09997559,-1678.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (29)
  22601. CreateObject(1544,1482.09997559,-1678.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (30)
  22602. CreateObject(1544,1482.00000000,-1678.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (31)
  22603. CreateObject(1544,1481.50000000,-1677.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (32)
  22604. CreateObject(1544,1481.80004883,-1678.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (33)
  22605. CreateObject(1544,1484.40002441,-1681.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (34)
  22606. CreateObject(1544,1484.50000000,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (35)
  22607. CreateObject(1544,1484.30004883,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (36)
  22608. CreateObject(1544,1484.40002441,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (37)
  22609. CreateObject(1543,1484.09997559,-1681.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (26)
  22610. CreateObject(1543,1484.19995117,-1681.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (27)
  22611. CreateObject(1543,1484.00000000,-1681.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (28)
  22612. CreateObject(1543,1484.19995117,-1681.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (29)
  22613. CreateObject(1543,1484.59997559,-1681.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (30)
  22614. CreateObject(1543,1484.40002441,-1682.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (31)
  22615. CreateObject(1543,1484.19995117,-1682.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (32)
  22616. CreateObject(1543,1482.30004883,-1682.40002441,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (33)
  22617. CreateObject(1544,1483.90002441,-1681.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (38)
  22618. CreateObject(1544,1483.69995117,-1681.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (39)
  22619. CreateObject(1544,1483.80004883,-1681.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (40)
  22620. CreateObject(1544,1484.00000000,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (41)
  22621. CreateObject(1544,1483.80004883,-1681.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (42)
  22622. CreateObject(1544,1484.00000000,-1682.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (43)
  22623. CreateObject(1544,1484.40002441,-1681.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (44)
  22624. CreateObject(1543,1472.50000000,-1682.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (34)
  22625. CreateObject(1543,1472.69995117,-1682.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (35)
  22626. CreateObject(1543,1472.59997559,-1683.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (36)
  22627. CreateObject(1544,1472.40002441,-1683.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (45)
  22628. CreateObject(1544,1472.30004883,-1683.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (46)
  22629. CreateObject(1544,1472.50000000,-1683.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (47)
  22630. CreateObject(1544,1472.90002441,-1683.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (48)
  22631. CreateObject(1544,1473.09997559,-1682.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (49)
  22632. CreateObject(1510,162.00000000,138.10000610,533.40002441,0.00000000,0.00000000,0.00000000); //object(dyn_ashtry) (1)
  22633. CreateObject(1486,1476.09997559,-1683.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (11)
  22634. CreateObject(1486,1476.19995117,-1683.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (12)
  22635. CreateObject(1486,1476.69995117,-1683.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (13)
  22636. CreateObject(1486,1476.69921875,-1683.19921875,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_beer_1) (14)
  22637. CreateObject(1517,1476.00000000,-1683.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (5)
  22638. CreateObject(1517,1476.30004883,-1683.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (10)
  22639. CreateObject(1517,1476.40002441,-1683.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (11)
  22640. CreateObject(1517,1476.80004883,-1683.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (12)
  22641. CreateObject(1517,1476.59997559,-1683.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (13)
  22642. CreateObject(1517,1476.19995117,-1683.69995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (14)
  22643. CreateObject(1512,1476.50000000,-1683.50000000,13.80000019,0.00000000,0.00000000,21.76318359); //object(dyn_wine_03) (3)
  22644. CreateObject(1520,1480.90002441,-1684.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(dyn_wine_bounce) (6)
  22645. CreateObject(1544,1480.50000000,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (50)
  22646. CreateObject(1544,1480.69995117,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (51)
  22647. CreateObject(1544,1480.69995117,-1684.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (52)
  22648. CreateObject(1544,1481.40002441,-1684.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (53)
  22649. CreateObject(1544,1481.30004883,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (54)
  22650. CreateObject(1544,1481.19995117,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (55)
  22651. CreateObject(1544,1480.90002441,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (56)
  22652. CreateObject(1544,1481.00000000,-1684.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (57)
  22653. CreateObject(1544,1477.09997559,-1686.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (58)
  22654. CreateObject(1543,1480.40002441,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (37)
  22655. CreateObject(1543,1480.59997559,-1683.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (38)
  22656. CreateObject(1543,1480.69995117,-1684.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (39)
  22657. CreateObject(1543,1481.40002441,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (40)
  22658. CreateObject(1543,1481.19995117,-1684.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (41)
  22659. CreateObject(1543,1481.19995117,-1684.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (42)
  22660. CreateObject(1543,1481.40002441,-1684.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (43)
  22661. CreateObject(1543,1481.00000000,-1683.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (44)
  22662. CreateObject(1543,1481.09997559,-1684.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (45)
  22663. CreateObject(1543,1480.80004883,-1683.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (46)
  22664. CreateObject(1543,1481.00000000,-1684.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (47)
  22665. CreateObject(1543,1480.80004883,-1684.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (48)
  22666. CreateObject(1543,1484.40002441,-1685.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (49)
  22667. CreateObject(1543,1484.80004883,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (50)
  22668. CreateObject(1543,1484.59997559,-1685.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (51)
  22669. CreateObject(1543,1484.40002441,-1685.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (52)
  22670. CreateObject(1544,1484.00000000,-1685.90002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (59)
  22671. CreateObject(1544,1484.40002441,-1686.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (60)
  22672. CreateObject(1544,1484.09997559,-1686.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (61)
  22673. CreateObject(1544,1484.19995117,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (62)
  22674. CreateObject(1544,1484.80004883,-1686.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (63)
  22675. CreateObject(1544,1484.80004883,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (64)
  22676. CreateObject(1544,1484.40002441,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (65)
  22677. CreateObject(1544,1484.59997559,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (66)
  22678. CreateObject(1544,1484.59997559,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (67)
  22679. CreateObject(1544,1484.19995117,-1686.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (68)
  22680. CreateObject(1544,1483.90002441,-1686.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (69)
  22681. CreateObject(1544,1484.30004883,-1686.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (70)
  22682. CreateObject(1544,1484.59997559,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (71)
  22683. CreateObject(1544,1484.09997559,-1685.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (72)
  22684. CreateObject(1544,1483.90002441,-1686.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (73)
  22685. CreateObject(1664,1478.40002441,-1687.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (1)
  22686. CreateObject(1664,1478.00000000,-1687.40002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (2)
  22687. CreateObject(1664,1478.30004883,-1686.90002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (3)
  22688. CreateObject(1664,1478.69995117,-1687.00000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (4)
  22689. CreateObject(1664,1476.90002441,-1690.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(propwinebotl2) (5)
  22690. CreateObject(1517,1478.59997559,-1687.50000000,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (15)
  22691. CreateObject(1517,1478.30004883,-1687.59997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (16)
  22692. CreateObject(1517,1478.09997559,-1687.19995117,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (17)
  22693. CreateObject(1517,1478.50000000,-1687.09997559,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (18)
  22694. CreateObject(1517,1478.50000000,-1686.80004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (19)
  22695. CreateObject(1517,1478.00000000,-1686.90002441,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (20)
  22696. CreateObject(1517,1478.69995117,-1687.30004883,13.80000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_break) (21)
  22697. CreateObject(1512,1478.40002441,-1687.30004883,14.19999981,0.00000000,0.00000000,0.00000000); //object(dyn_wine_03) (4)
  22698. CreateObject(1544,1478.50000000,-1687.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (75)
  22699. CreateObject(1544,1478.30004883,-1687.40002441,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (76)
  22700. CreateObject(1544,1478.09997559,-1687.59997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (77)
  22701. CreateObject(1544,1477.90002441,-1687.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (78)
  22702. CreateObject(1544,1477.80004883,-1687.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (79)
  22703. CreateObject(1544,1477.90002441,-1687.00000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (80)
  22704. CreateObject(1544,1478.30004883,-1686.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (81)
  22705. CreateObject(1544,1478.09997559,-1686.69995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (82)
  22706. CreateObject(1544,1478.80004883,-1687.19995117,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (83)
  22707. CreateObject(1544,1478.80004883,-1687.50000000,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (84)
  22708. CreateObject(1544,1478.50000000,-1687.30004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (85)
  22709. CreateObject(1544,1478.59997559,-1687.09997559,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (86)
  22710. CreateObject(1544,1478.69995117,-1686.80004883,13.60000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_1) (87)
  22711. CreateObject(638,1536.09997559,-1663.40002441,13.19999981,0.00000000,0.00000000,270.22546387); //object(kb_planter_bush) (1)
  22712. CreateObject(638,1538.00000000,-1665.59997559,13.19999981,0.00000000,0.00000000,179.09118652); //object(kb_planter_bush) (2)
  22713. CreateObject(1361,1538.09997559,-1663.59997559,13.30000019,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (5)
  22714. CreateObject(1361,1538.19995117,-1667.90002441,13.30000019,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (6)
  22715. CreateObject(638,1538.00000000,-1670.00000000,13.19999981,0.00000000,0.00000000,180.44836426); //object(kb_planter_bush) (3)
  22716. CreateObject(1361,1538.19995117,-1672.30004883,13.30000019,0.00000000,0.00000000,0.89538574); //object(cj_bush_prop2) (7)
  22717. CreateObject(638,1538.00000000,-1674.59997559,13.19999981,0.00000000,0.00000000,179.98010254); //object(kb_planter_bush) (4)
  22718. CreateObject(1361,1538.19995117,-1676.90002441,13.19999981,0.00000000,0.00000000,1.79077148); //object(cj_bush_prop2) (8)
  22719. CreateObject(638,1538.00000000,-1679.00000000,13.19999981,0.00000000,0.00000000,179.97802734); //object(kb_planter_bush) (5)
  22720. CreateObject(1361,1538.09997559,-1681.40002441,13.19999981,0.00000000,0.00000000,1.79077148); //object(cj_bush_prop2) (9)
  22721. CreateObject(638,1536.00000000,-1682.00000000,13.19999981,0.00000000,0.00000000,88.84454346); //object(kb_planter_bush) (6)
  22722. CreateObject(1232,1489.00000000,-1678.09997559,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
  22723. CreateObject(1232,1490.50000000,-1677.30004883,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
  22724. CreateObject(1232,1489.00000000,-1674.69995117,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
  22725. CreateObject(1232,1487.69995117,-1675.50000000,12.39999962,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
  22726. //Logan Mapping - End
  22727. // ===========================================
  22728. for(new v=0; v<MAX_VEHICLES; v++){
  22729. LuX_ReadPosition(v);}
  22730. for(new i=0; i<PLAYERS; i++){
  22731.  
  22732.  
  22733.  
  22734. //---------------------------------------------------------->
  22735. #if TextBox
  22736. LBox[i] = TextDrawCreate(612.000000,338.000000,"C");
  22737. TextDrawUseBox(LBox[i],1);
  22738. TextDrawBoxColor(LBox[i],0x00000033);
  22739. TextDrawTextSize(LBox[i],454.000000,9.000000);
  22740. TextDrawAlignment(LBox[i],0);
  22741. TextDrawBackgroundColor(LBox[i],0x000000ff);
  22742. TextDrawFont(LBox[i],3);
  22743. TextDrawLetterSize(LBox[i],-0.000000,8.700001);
  22744. TextDrawColor(LBox[i],BoxColor);
  22745. TextDrawSetOutline(LBox[i],1);
  22746. TextDrawSetProportional(LBox[i],1);
  22747. TextDrawSetShadow(LBox[i],1);
  22748. #endif
  22749.  
  22750. //---------------------------------------------------------->
  22751.  
  22752. #if TextTopLines
  22753. LLine1[i] = TextDrawCreate(609.000000,341.000000,"L");
  22754. TextDrawUseBox(LLine1[i],1);
  22755. TextDrawBoxColor(LLine1[i],0xffffff33);
  22756. TextDrawTextSize(LLine1[i],457.000000,-1.000000);
  22757. TextDrawAlignment(LLine1[i],0);
  22758. TextDrawBackgroundColor(LLine1[i],0x000000ff);
  22759. TextDrawFont(LLine1[i],3);
  22760. TextDrawLetterSize(LLine1[i],-0.000000,-0.400000);
  22761. TextDrawColor(LLine1[i],TopLinesColor);
  22762. TextDrawSetOutline(LLine1[i],1);
  22763. TextDrawSetProportional(LLine1[i],1);
  22764. TextDrawSetShadow(LLine1[i],1);
  22765. //---------------------------------------------------------->
  22766. LLine2[i] = TextDrawCreate(609.000000,416.000000,"L");
  22767. TextDrawUseBox(LLine2[i],1);
  22768. TextDrawBoxColor(LLine2[i],0xffffff33);
  22769. TextDrawTextSize(LLine2[i],457.000000,-9.000000);
  22770. TextDrawBackgroundColor(LLine2[i],0x000000ff);
  22771. TextDrawFont(LLine2[i],3);
  22772. TextDrawLetterSize(LLine2[i],-0.000000,-0.400000);
  22773. TextDrawColor(LLine2[i],TopLinesColor);
  22774. TextDrawSetOutline(LLine2[i],1);
  22775. TextDrawSetProportional(LLine2[i],1);
  22776. TextDrawSetShadow(LLine2[i],1);
  22777. #endif
  22778. //---------------------------------------------------------->
  22779. #if LogoName
  22780. LCredits[i] = TextDrawCreate(487.000000,320.000000,SpeedoLogoText);
  22781. TextDrawAlignment(LCredits[i],0);
  22782. TextDrawBackgroundColor(LCredits[i],0x000000ff);
  22783. TextDrawFont(LCredits[i],0);
  22784. TextDrawLetterSize(LCredits[i],0.399999,1.400000);
  22785. TextDrawColor(LCredits[i],LogoColor);
  22786. TextDrawSetOutline(LCredits[i],1);
  22787. TextDrawSetProportional(LCredits[i],1);
  22788. TextDrawSetShadow(LCredits[i],1);
  22789. #endif
  22790. //---------------------------------------------------------->
  22791.  
  22792. #if TextSideLines
  22793. LLine3[i] = TextDrawCreate(466.000000,343.000000,"T");
  22794. TextDrawUseBox(LLine3[i],1);
  22795. TextDrawBoxColor(LLine3[i],0xffffff33);
  22796. TextDrawTextSize(LLine3[i],457.000000,0.000000);
  22797. TextDrawAlignment(LLine3[i],0);
  22798. TextDrawBackgroundColor(LLine3[i],0x000000ff);
  22799. TextDrawFont(LLine3[i],3);
  22800. TextDrawLetterSize(LLine3[i],-0.000000,7.499998);
  22801. TextDrawColor(LLine3[i],SideLinesColor);
  22802. TextDrawSetOutline(LLine3[i],1);
  22803. TextDrawSetProportional(LLine3[i],1);
  22804. TextDrawSetShadow(LLine3[i],1);
  22805.  
  22806. //---------------------------------------------------------->
  22807. LLine4[i] = TextDrawCreate(607.000000,343.000000,"T");
  22808. TextDrawUseBox(LLine4[i],1);
  22809. TextDrawBoxColor(LLine4[i],0xffffff33);
  22810. TextDrawTextSize(LLine4[i],603.000000,-6.000000);
  22811. TextDrawAlignment(LLine4[i],0);
  22812. TextDrawBackgroundColor(LLine4[i],0x000000ff);
  22813. TextDrawFont(LLine4[i],3);
  22814. TextDrawLetterSize(LLine4[i],-0.000000,7.499999);
  22815. TextDrawColor(LLine4[i],SideLinesColor);
  22816. TextDrawSetOutline(LLine4[i],1);
  22817. TextDrawSetProportional(LLine4[i],1);
  22818. TextDrawSetShadow(LLine4[i],1);
  22819. #endif
  22820.  
  22821. //---------------------------------------------------------->
  22822. format(lstring, sizeof(lstring), "Inicializing...");
  22823. LFunc[i] = TextDrawCreate(466.000000,343.000000,lstring);
  22824. TextDrawAlignment(LFunc[i],0);
  22825. TextDrawBackgroundColor(LFunc[i],0x000000ff);
  22826. TextDrawFont(LFunc[i],1);
  22827. TextDrawLetterSize(LFunc[i],0.299999,1.200000);
  22828. TextDrawColor(LFunc[i],0xffffffff);
  22829. TextDrawSetOutline(LFunc[i],1);
  22830. TextDrawSetProportional(LFunc[i],1);
  22831. TextDrawSetShadow(LFunc[i],1);
  22832.  
  22833. //---------------------------------------------------------->
  22834. format(lstr, sizeof(lstr), "Inicializing...");
  22835. Lmph[i] = TextDrawCreate(466.000000,400.000000,lstr);
  22836. TextDrawAlignment(Lmph[i],0);
  22837. TextDrawBackgroundColor(Lmph[i],0x000000ff);
  22838. TextDrawFont(Lmph[i],1);
  22839. TextDrawLetterSize(Lmph[i],0.299999,1.000000);
  22840. TextDrawColor(Lmph[i],0xffffffff);
  22841. TextDrawSetOutline(Lmph[i],1);
  22842. TextDrawSetProportional(Lmph[i],1);
  22843. TextDrawSetShadow(Lmph[i],1);
  22844. }
  22845. //
  22846.  
  22847. CreateDynamicObject(11387, 2291.3000488281, -2350.1999511719, 15.699999809265, 0, 0, 45.75);
  22848. CreateDynamicObject(11389, 2273.1999511719, -2345.6000976563, 15.5, 0, 0, 44.75);
  22849. CreateDynamicObject(11388, 2273.1000976563, -2345.6000976563, 19.10000038147, 0, 0, 44.75);
  22850. CreateDynamicObject(8324, 2262.6999511719, -2334.6999511719, 13.800000190735, 0, 0, 45);
  22851. CreateDynamicObject(8324, 2262, -2335.3999023438, 13.800000190735, 0, 0, 44.994506835938);
  22852. CreateDynamicObject(10575, 2277.3000488281, -2336.6000976563, 14.5, 0, 0, 226.75);
  22853. CreateDynamicObject(10575, 2281.3000488281, -2360.1999511719, 14.89999961853, 0, 0, 135.24682617188);
  22854. CreateDynamicObject(10575, 2281.3000488281, -2360.1999511719, 10.89999961853, 0, 0, 135.24169921875);
  22855. CreateDynamicObject(3594, 2276, -2357.8000488281, 13.199999809265, 0, 0, 46.5);
  22856. CreateDynamicObject(1327, 2281, -2341.8000488281, 13.300000190735, 0, 0, 223.99996948242);
  22857. CreateDynamicObject(1348, 2271.6000976563, -2355.3999023438, 13.199999809265, 0, 0, 134.25006103516);
  22858. CreateDynamicObject(1348, 2270.3994140625, -2354.099609375, 13.199999809265, 0, 0, 134.24743652344);
  22859. CreateDynamicObject(2567, 2281.1999511719, -2341.8000488281, 14.5, 0, 0, 313.99996948242);
  22860. CreateDynamicObject(14878, 2273.6999511719, -2344.6000976563, 13, 0, 0, 46);
  22861. CreateDynamicObject(14879, 2269.6999511719, -2349.8999023438, 12.800000190735, 0, 0, 224.24993896484);
  22862. CreateDynamicObject(2309, 2284.8999023438, -2353.3000488281, 12.5, 0, 0, 226.5);
  22863. CreateDynamicObject(2605, 2285.8000488281, -2354.1999511719, 12.89999961853, 0, 0, 227);
  22864. CreateDynamicObject(10281, 2263.3000488281, -2346.8999023438, 16.10000038147, 0, 346, 136.25006103516);
  22865. CreateDynamicObject(14532, 2285.3000488281, -2346.6000976563, 13.5, 0, 0, 110.75003051758);
  22866. CreateDynamicObject(1768, 2280.1999511719, -2347.8000488281, 12.5, 0, 0, 46.5);
  22867. CreateDynamicObject(1980, 2281, -2346, 14.199999809265, 0, 0, 315);
  22868. CreateDynamicObject(1980, 2282.3999023438, -2353.1999511719, 14.199999809265, 0, 0, 45.244506835938);
  22869. CreateDynamicObject(1492, 2278.8000488281, -2349.5, 12.5, 0, 0, 313.25);
  22870. CreateDynamicObject(10282, 2263.3000488281, -2342.1999511719, 13.60000038147, 0, 0, 44.5);
  22871. CreateDynamicObject(3813, 2288.1999511719, -2352, 14.39999961853, 0, 0, 132);
  22872. CreateDynamicObject(2161, 2287.8000488281, -2352, 12.5, 0, 0, 44.500030517578);
  22873. CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 12.699999809265, 0, 95.250091552734, 44);
  22874. CreateDynamicObject(1575, 2262.8999023438, -2347.1999511719, 12.800000190735, 0, 95.245971679688, 43.994750976563);
  22875. CreateDynamicObject(1575, 2262.8999023438, -2347.1999511719, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22876. CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22877. CreateDynamicObject(1575, 2263.1000976563, -2346.8999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22878. CreateDynamicObject(1575, 2263.3000488281, -2347.1000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22879. CreateDynamicObject(1575, 2263.3999023438, -2347.1999511719, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22880. CreateDynamicObject(1575, 2263.6000976563, -2347.3999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22881. CreateDynamicObject(1575, 2263.8000488281, -2347.6000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22882. CreateDynamicObject(1575, 2264, -2347.8000488281, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22883. CreateDynamicObject(1575, 2264.1999511719, -2348, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22884. CreateDynamicObject(1575, 2264.3000488281, -2348.1000976563, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22885. CreateDynamicObject(1575, 2264.1999511719, -2348.3000488281, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22886. CreateDynamicObject(1575, 2264.1000976563, -2348.3999023438, 13.199999809265, 0, 95.245971679688, 43.994750976563);
  22887. CreateDynamicObject(1575, 2264.3000488281, -2348.1000976563, 12.699999809265, 0, 95.245971679688, 43.994750976563);
  22888. CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 12.699999809265, 0, 90, 2.2499694824219);
  22889. CreateDynamicObject(1575, 2261.1000976563, -2344.8000488281, 12.699999809265, 0, 90, 2.2467041015625);
  22890. CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 12.699999809265, 0, 90, 88.246215820313);
  22891. CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 13.10000038147, 0, 90, 88.2421875);
  22892. CreateDynamicObject(1575, 2261.1000976563, -2344.6999511719, 13.5, 0, 90, 88.2421875);
  22893. CreateDynamicObject(1575, 2261.1999511719, -2344.6000976563, 13.39999961853, 0, 90, 76.241943359375);
  22894. CreateDynamicObject(1575, 2261, -2344.6000976563, 13.300000190735, 0, 268, 346);
  22895. CreateDynamicObject(1327, 2275.3000488281, -2346.3000488281, 12.5, 0, 88, 0);
  22896. CreateDynamicObject(1579, 2275.8999023438, -2346.1000976563, 12.699999809265, 0, 101.99996948242, 26);
  22897. CreateDynamicObject(1579, 2275.8999023438, -2346.3999023438, 12.89999961853, 0, 101.9970703125, 339.99914550781);
  22898. CreateDynamicObject(1579, 2275.8000488281, -2346.6999511719, 12.89999961853, 0, 101.99710083008, 331.99389648438);
  22899. CreateDynamicObject(1579, 2275.5, -2346.8999023438, 12.89999961853, 0, 101.9970703125, 293.9912109375);
  22900. CreateDynamicObject(1579, 2275.1999511719, -2346.8999023438, 12.800000190735, 0, 101.9970703125, 259.98870849609);
  22901. CreateDynamicObject(1579, 2274.8999023438, -2346.6999511719, 12.800000190735, 0, 101.9970703125, 231.98596191406);
  22902. CreateDynamicObject(1579, 2274.6999511719, -2346.3999023438, 12.800000190735, 0, 101.9970703125, 201.98175048828);
  22903. CreateDynamicObject(1579, 2274.6000976563, -2346.1999511719, 12.800000190735, 0, 101.9970703125, 163.97814941406);
  22904. CreateDynamicObject(1579, 2274.6999511719, -2346, 12.800000190735, 0, 101.9970703125, 155.97644042969);
  22905. CreateDynamicObject(1579, 2274.8000488281, -2345.8000488281, 12.800000190735, 0, 101.9970703125, 155.97290039063);
  22906. CreateDynamicObject(1579, 2274.8999023438, -2345.8000488281, 12.800000190735, 0, 101.9970703125, 115.9729309082);
  22907. CreateDynamicObject(1579, 2275.1000976563, -2345.6999511719, 12.800000190735, 0, 101.9970703125, 111.9716796875);
  22908. CreateDynamicObject(1579, 2275.3000488281, -2345.6000976563, 12.800000190735, 0, 101.9970703125, 111.96716308594);
  22909. CreateDynamicObject(1579, 2275.3999023438, -2345.6999511719, 12.89999961853, 0, 101.9970703125, 73.967193603516);
  22910. CreateDynamicObject(1579, 2275.6999511719, -2345.8000488281, 12.89999961853, 0, 101.9970703125, 73.965454101563);
  22911. CreateDynamicObject(1579, 2275.8000488281, -2345.8999023438, 12.89999961853, 0, 101.9970703125, 35.965423583984);
  22912. CreateDynamicObject(1579, 2275.8999023438, -2346.1000976563, 12.89999961853, 0, 101.9970703125, 17.963745117188);
  22913. CreateDynamicObject(1579, 2275.8999023438, -2346.3000488281, 12.89999961853, 0, 101.9970703125, 17.962646484375);
  22914. CreateDynamicObject(1579, 2275.3999023438, -2345.8999023438, 12.89999961853, 0, 0, 0);
  22915. CreateDynamicObject(1579, 2275.1999511719, -2346.3000488281, 12.89999961853, 0, 0, 0);
  22916. CreateDynamicObject(1579, 2275.6999511719, -2346.6000976563, 12.89999961853, 0, 0, 0);
  22917. CreateDynamicObject(1579, 2275.1000976563, -2346.6999511719, 12.89999961853, 0, 0, 0);
  22918. CreateDynamicObject(1579, 2275, -2346, 12.89999961853, 0, 0, 0);
  22919. CreateDynamicObject(1579, 2268.6000976563, -2342.6000976563, 13.199999809265, 0, 0, 225.99996948242);
  22920. CreateDynamicObject(1579, 2268.6999511719, -2342.6999511719, 13.199999809265, 0, 0, 225.99975585938);
  22921. CreateDynamicObject(1579, 2268, -2342.1999511719, 13.199999809265, 0, 0, 203.99975585938);
  22922. CreateDynamicObject(1579, 2267.8999023438, -2342.1000976563, 13.199999809265, 0, 0, 203.99963378906);
  22923. CreateDynamicObject(1579, 2267.6999511719, -2342.1999511719, 13.199999809265, 359.44509887695, 262.01913452148, 207.96098327637);
  22924. CreateDynamicObject(1579, 2268, -2342.1000976563, 13.199999809265, 359.43969726563, 262.01843261719, 207.96020507813);
  22925. CreateDynamicObject(1579, 2268.6999511719, -2342.5, 13.199999809265, 359.43969726563, 262.01843261719, 227.21018981934);
  22926. CreateDynamicObject(1579, 2268.5, -2342.8000488281, 13.199999809265, 359.43969726563, 262.01293945313, 227.20825195313);
  22927. CreateDynamicObject(1577, 2258.8999023438, -2339.8000488281, 13.199999809265, 0, 0, 44);
  22928. CreateDynamicObject(1577, 2259.1999511719, -2339.3999023438, 13.199999809265, 0, 0, 43.994750976563);
  22929. CreateDynamicObject(1577, 2259.6999511719, -2339.1000976563, 13.199999809265, 0, 0, 43.994750976563);
  22930. CreateDynamicObject(1577, 2260, -2338.8000488281, 13.199999809265, 0, 0, 43.994750976563);
  22931. CreateDynamicObject(1577, 2259.8000488281, -2338.6000976563, 13.199999809265, 0, 0, 43.994750976563);
  22932. CreateDynamicObject(1577, 2258.6999511719, -2339.8000488281, 13.199999809265, 0, 0, 43.994750976563);
  22933. CreateDynamicObject(1577, 2261.3999023438, -2337.3999023438, 13.89999961853, 0, 0, 131.99475097656);
  22934. CreateDynamicObject(1577, 2261.3000488281, -2337.5, 13.89999961853, 0, 0, 131.98974609375);
  22935. CreateDynamicObject(1577, 2261.3000488281, -2337.5, 13.10000038147, 0, 0, 131.98974609375);
  22936. CreateDynamicObject(1577, 2261.3999023438, -2337.3999023438, 13.10000038147, 0, 0, 131.98977661133);
  22937. CreateDynamicObject(1577, 2259.6999511719, -2339, 13.199999809265, 0, 0, 225.98547363281);
  22938. CreateDynamicObject(1577, 2260, -2338.6999511719, 13.199999809265, 0, 0, 225.98327636719);
  22939. CreateDynamicObject(1577, 2259.1000976563, -2339.5, 13.199999809265, 0, 0, 225.98327636719);
  22940. CreateDynamicObject(1577, 2258.8000488281, -2339.8999023438, 13.199999809265, 0, 0, 225.98327636719);
  22941. CreateDynamicObject(1327, 2263, -2337.3000488281, 13.199999809265, 0, 274, 0);
  22942. CreateDynamicObject(1327, 2263, -2337.3000488281, 13.60000038147, 0, 273.9990234375, 0);
  22943. CreateDynamicObject(1429, 2267.8999023438, -2352.1000976563, 12.89999961853, 0, 0, 133.99996948242);
  22944. CreateDynamicObject(14461, 2264, -2336.6000976563, 15, 0, 0, 134.24993896484);
  22945. CreateDynamicObject(1828, 2284.1999511719, -2349.6000976563, 12.60000038147, 0, 0, 316);
  22946. CreateDynamicObject(1808, 2282.6000976563, -2345.6999511719, 12.5, 0, 0, 0);
  22947. CreateDynamicObject(2833, 2283.3999023438, -2349.5, 12.60000038147, 0, 0, 316.25);
  22948. CreateDynamicObject(1686, 2296.3000488281, -2338.1999511719, 12.5, 0, 0, 44.75);
  22949. CreateDynamicObject(1686, 2294.8999023438, -2336.8000488281, 12.5, 0, 0, 44.747314453125);
  22950. CreateDynamicObject(17951, 2281.3999023438, -2349.8999023438, 15.800000190735, 0, 90.250213623047, 43.750030517578);
  22951. CreateDynamicObject(17951, 2284.3999023438, -2347, 15.800000190735, 0, 90.997009277344, 43.74755859375);
  22952. CreateDynamicObject(17951, 2287.3999023438, -2349.8000488281, 15.800000190735, 0, 89.749755859375, 43.742065429688);
  22953. CreateDynamicObject(17951, 2284.3999023438, -2352.6000976563, 15.800000190735, 0, 89.747314453125, 43.736572265625);
  22954.  
  22955.  
  22956. // Hal
  22957. // Pershing Square
  22958.  
  22959.  
  22960. //LSPD District 2
  22961. CreateDynamicObject(987, 581.50, -1244.40, 16.60, 0.00, 0.00, 203.75);
  22962. CreateDynamicObject(987, 573.60, -1247.80, 16.60, 0.00, 0.00, 205.50);
  22963. CreateDynamicObject(987, 562.90, -1252.80, 16.40, 0.00, 0.00, 282.50);
  22964. CreateDynamicObject(987, 565.50, -1264.50, 16.40, 0.00, 0.00, 282.25);
  22965. CreateDynamicObject(987, 568.00, -1276.00, 16.40, 0.00, 0.00, 282.24);
  22966. CreateDynamicObject(987, 570.50, -1287.50, 16.40, 0.00, 0.00, 282.49);
  22967. CreateDynamicObject(987, 573.10, -1298.80, 16.40, 0.00, 0.00, 282.24);
  22968. CreateDynamicObject(987, 574.00, -1302.90, 16.40, 0.00, 0.00, 282.24);
  22969. CreateDynamicObject(987, 576.50, -1314.50, 12.40, 0.00, 0.00, 7.50);
  22970. CreateDynamicObject(987, 588.40, -1313.00, 12.40, 0.00, 0.00, 7.50);
  22971. CreateDynamicObject(987, 599.90, -1311.50, 12.40, 0.00, 0.00, 7.00);
  22972. CreateDynamicObject(987, 605.90, -1310.70, 12.40, 0.00, 0.00, 6.49);
  22973. CreateDynamicObject(987, 618.20, -1291.50, 14.60, 0.00, 356.25, 91.24);
  22974. CreateDynamicObject(987, 617.90, -1279.70, 15.40, 0.00, 357.50, 95.24);
  22975. CreateDynamicObject(987, 616.80, -1267.80, 15.90, 0.00, 357.50, 95.23);
  22976. CreateDynamicObject(987, 615.70, -1255.90, 16.40, 0.00, 358.00, 96.23);
  22977. CreateDynamicObject(987, 614.40, -1244.10, 16.80, 0.00, 358.74, 97.23);
  22978. CreateDynamicObject(987, 612.80, -1231.80, 16.80, 0.00, 358.74, 201.23);
  22979. CreateDynamicObject(987, 601.90, -1236.00, 17.00, 0.00, 358.74, 289.73);
  22980. CreateDynamicObject(987, 605.90, -1247.20, 17.20, 0.00, 358.74, 289.73);
  22981. CreateDynamicObject(987, 584.40, -1256.10, 16.60, 0.00, 0.00, 104.25);
  22982. CreateDynamicObject(987, 587.10, -1267.70, 16.60, 0.00, 0.00, 103.24);
  22983. CreateDynamicObject(966, 617.70, -1298.70, 14.20, 0.00, 3.50, 268.00);
  22984. CreateDynamicObject(3550, 618.00, -1302.10, 14.00, 2.25, 0.00, 0.25);
  22985. CreateDynamicObject(3550, 618.00, -1306.40, 13.80, 2.24, 0.00, 358.75);
  22986. CreateDynamicObject(1364, 601.98, -1238.95, 17.90, 0.00, 0.00, 289.42);
  22987. CreateDynamicObject(1361, 599.50, -1244.70, 17.90, 0.00, 0.00, 0.00);
  22988. CreateDynamicObject(1361, 594.90, -1246.50, 17.80, 0.00, 0.00, 0.00);
  22989. CreateDynamicObject(1361, 590.30, -1248.40, 17.70, 0.00, 0.00, 0.00);
  22990. CreateDynamicObject(1364, 583.10, -1247.10, 17.60, 359.75, 2.50, 104.51);
  22991. CreateDynamicObject(3802, 599.50, -1244.60, 21.00, 0.00, 0.00, 110.00);
  22992. CreateDynamicObject(3802, 595.00, -1246.40, 21.00, 0.00, 0.00, 110.00);
  22993. CreateDynamicObject(3802, 590.20, -1248.30, 21.00, 0.00, 0.00, 110.00);
  22994. CreateDynamicObject(3802, 585.60, -1250.10, 21.00, 0.00, 0.00, 110.00);
  22995. CreateDynamicObject(1361, 585.60, -1250.20, 17.70, 0.00, 0.00, 0.00);
  22996. CreateDynamicObject(1536, 592.90, -1283.50, 15.10, 0.00, 0.00, 10.00);
  22997. CreateDynamicObject(1536, 595.86, -1282.94, 15.10, 0.00, 0.00, 190.00);
  22998. CreateDynamicObject(16003, 584.00, -1269.20, 64.90, 0.00, 0.00, 13.00);
  22999.  
  23000. PDGate = CreateDynamicObject(968, 617.70, -1298.70, 15.00, 0.00, 273.25, 267.99);
  23001.  
  23002. // All Saints bar
  23003. CreateDynamicObject(1502, 1222.9895019531, -1415.9877929688, 12.376014709473, 0, 0, 179.99450683594);
  23004. CreateDynamicObject(16151, 1226.28515625, -1427.814453125, 12.371032714844, 0, 0, 270);
  23005. CreateDynamicObject(1724, 1215.2014160156, -1420.0157470703, 12.304824829102, 0, 0, 0);
  23006. CreateDynamicObject(1723, 1207.7315673828, -1427.5418701172, 12.3828125, 0, 0, 90);
  23007. CreateDynamicObject(1825, 1229.0804443359, -1423.2166748047, 12.297901153564, 0, 0, 0);
  23008. CreateDynamicObject(1827, 1215.63671875, -1421.7490234375, 12.325653076172, 0, 0, 0);
  23009. CreateDynamicObject(3440, 1232.2191162109, -1418.9096679688, 14.764610290527, 0, 0, 0);
  23010. CreateDynamicObject(14629, 1227.3908691406, -1424.4250488281, 18.629999160767, 0, 0, 0);
  23011. CreateDynamicObject(3858, 1214.2005615234, -1416.0495605469, 15.294497489929, 0, 0, 45);
  23012. CreateDynamicObject(14397, 1227.5140380859, -1415.6895751953, 12.01563835144, 0, 90, 0);
  23013. CreateDynamicObject(3859, 1225.5766601563, -1415.9926757813, 15.28719997406, 0, 0, 287);
  23014. CreateDynamicObject(3859, 1230.7833251953, -1415.9899902344, 15.284838676453, 0, 0, 287);
  23015. CreateDynamicObject(14397, 1214.8330078125, -1415.5261230469, 12.01563835144, 0, 90, 0);
  23016. CreateDynamicObject(14397, 1220.5830078125, -1415.6068115234, 12.01563835144, 0, 90, 0);
  23017. CreateDynamicObject(14397, 1222.3330078125, -1415.6312255859, 12.01563835144, 0, 90, 0);
  23018. CreateDynamicObject(14397, 1208.3330078125, -1415.4326171875, 12.01563835144, 0, 90, 0);
  23019. CreateDynamicObject(3859, 1225.576171875, -1415.9921875, 21.10000038147, 0, 0, 286.99584960938);
  23020. CreateDynamicObject(3858, 1220.0795898438, -1417.46875, 21.442935943604, 0, 0, 44.989013671875);
  23021. CreateDynamicObject(3859, 1230.783203125, -1415.9892578125, 21.10000038147, 0, 0, 286.99584960938);
  23022. CreateDynamicObject(14397, 1221.5, -1415.6090087891, 16.430000305176, 0, 90, 0);
  23023. CreateDynamicObject(14397, 1221.9340820313, -1415.5999755859, 16.430000305176, 0, 90, 0);
  23024. CreateDynamicObject(14397, 1221.0400390625, -1415.6090087891, 16.430000305176, 0, 90, 0);
  23025. CreateDynamicObject(14397, 1221.5207519531, -1415.5100097656, 17.799999237061, 0, 0, 0);
  23026. CreateDynamicObject(14397, 1232.3151855469, -1415.5113525391, 17.799999237061, 0, 0, 0);
  23027. CreateDynamicObject(14397, 1233.2972412109, -1429.5881347656, 5, 0, 90, 90);
  23028. CreateDynamicObject(14397, 1233.3499755859, -1419.2384033203, 14, 0, 90, 90);
  23029. CreateDynamicObject(14397, 1233.4545898438, -1417.283203125, 17.799999237061, 0, 0, 90);
  23030. CreateDynamicObject(3858, 1233.5364990234, -1423.7855224609, 15.374813079834, 0, 0, 315);
  23031. CreateDynamicObject(3858, 1206.2994384766, -1424.4903564453, 15.374813079834, 0, 0, 315);
  23032. CreateDynamicObject(14397, 1205.9848632813, -1419.1925048828, 14, 0, 90, 90);
  23033. CreateDynamicObject(14397, 1205.9599609375, -1429.599609375, 14, 0, 90, 90);
  23034. CreateDynamicObject(14397, 1205.7685546875, -1417.2109375, 17.799999237061, 0, 0, 90);
  23035. CreateDynamicObject(1825, 1226.6275634766, -1420.2932128906, 12.297901153564, 0, 0, 0);
  23036. CreateDynamicObject(1825, 1223.86328125, -1423.8519287109, 12.297901153564, 0, 0, 0);
  23037. CreateDynamicObject(1825, 1221.7266845703, -1420.6815185547, 12.297901153564, 0, 0, 0);
  23038. CreateDynamicObject(1825, 1230.0384521484, -1418.3459472656, 12.297901153564, 0, 0, 0);
  23039. CreateDynamicObject(1825, 1231.4371337891, -1421.3729248047, 12.297901153564, 0, 0, 0);
  23040. CreateDynamicObject(1825, 1231.7150878906, -1426.2174072266, 12.297901153564, 0, 0, 0);
  23041. CreateDynamicObject(1723, 1207.6622314453, -1422.2393798828, 12.3828125, 0, 0, 90);
  23042. CreateDynamicObject(1723, 1211.689453125, -1425.6921386719, 12.3828125, 0, 0, 270);
  23043. CreateDynamicObject(1723, 1211.4703369141, -1420.3658447266, 12.3828125, 0, 0, 269.99499511719);
  23044. CreateDynamicObject(11665, 1215.6895751953, -1427.2291259766, 13.081476211548, 0, 0, 272);
  23045. CreateDynamicObject(1670, 1209.4990234375, -1426.5637207031, 12.89999961853, 0, 0, 0);
  23046. CreateDynamicObject(1827, 1209.501953125, -1426.4213867188, 12.3828125, 0, 0, 0);
  23047. CreateDynamicObject(1827, 1209.4986572266, -1421.1644287109, 12.3828125, 0, 0, 0);
  23048. CreateDynamicObject(1670, 1209.4846191406, -1421.30859375, 12.89999961853, 0, 0, 284);
  23049. CreateDynamicObject(1724, 1217.4230957031, -1421.3585205078, 12.295643806458, 0, 0, 270);
  23050. CreateDynamicObject(1724, 1216.2097167969, -1423.515625, 12.265958786011, 0, 0, 180);
  23051. CreateDynamicObject(1724, 1213.9855957031, -1422.2211914063, 12.355082511902, 0, 0, 88);
  23052. CreateDynamicObject(1792, 1215.7409667969, -1428.859375, 14.621500968933, 0, 0, 178);
  23053. CreateDynamicObject(1840, 1223.3580322266, -1427.1104736328, 12.989999771118, 0, 0, 310);
  23054. CreateDynamicObject(2232, 1231.4168701172, -1417.8653564453, 15.48836517334, 0, 0, 316);
  23055. CreateDynamicObject(2232, 1208.2590332031, -1417.8641357422, 15.48836517334, 0, 0, 43.999755859375);
  23056. CreateDynamicObject(1665, 1225.6331787109, -1426.8186035156, 12.986904144287, 0, 0, 0);
  23057. CreateDynamicObject(1667, 1227.1158447266, -1427.0565185547, 13.065030097961, 0, 0, 0);
  23058. CreateDynamicObject(2267, 1224.4403076172, -1428.6094970703, 14.199407577515, 0, 0, 180);
  23059. CreateDynamicObject(17578, 1220.1237792969, -1413.8411865234, 27, 0, 0, 180);
  23060. CreateDynamicObject(2714, 1222.2683105469, -1415.7314453125, 16, 0, 0, 180);
  23061. CreateDynamicObject(7313, 1217.0250244141, -1428.859375, 18.442754745483, 0, 0, 179.99450683594);
  23062. CreateDynamicObject(2721, 1223.5999755859, -1428.8000488281, 16.730194091797, 0, 0, 180);
  23063. CreateDynamicObject(2270, 1218.2451171875, -1427.6162109375, 16, 0, 0, 179.99450683594);
  23064. CreateDynamicObject(14397, 1221.6552734375, -1421.228515625, 19.375, 0, 0, 0);
  23065. CreateDynamicObject(14397, 1221.6687011719, -1429.7048339844, 14, 0, 90, 90);
  23066. CreateDynamicObject(14397, 1229.66796875, -1429.7431640625, 14, 0, 90, 90);
  23067. CreateDynamicObject(14397, 1228.91796875, -1429.7395019531, 14, 0, 90, 90);
  23068. CreateDynamicObject(14397, 1222.41796875, -1429.7075195313, 14, 0, 90, 90);
  23069. CreateDynamicObject(2281, 1226.7801513672, -1428.3000488281, 15.800835609436, 0, 0, 180);
  23070. CreateDynamicObject(2278, 1225.0533447266, -1428.3000488281, 17.133899688721, 0, 0, 180);
  23071. CreateDynamicObject(2271, 1227.7872314453, -1428.3000488281, 17.168983459473, 0, 0, 180);
  23072. CreateDynamicObject(3810, 1206.8074951172, -1428.0762939453, 15.453796386719, 0, 0, 80);
  23073. CreateDynamicObject(3439, 1232.5440673828, -1414.9340820313, 16.456523895264, 0, 0, 0);
  23074. CreateDynamicObject(3439, 1207.3737792969, -1415.1103515625, 16.456523895264, 0, 0, 0);
  23075. CreateDynamicObject(2811, 1222.4786376953, -1426.9113769531, 12.381060600281, 0, 0, 0);
  23076. CreateDynamicObject(2811, 1217.6743164063, -1428.4721679688, 12.3828125, 0, 0, 0);
  23077. CreateDynamicObject(2811, 1211.388671875, -1419.5634765625, 12.349069595337, 0, 0, 0);
  23078. CreateDynamicObject(2811, 1229.431640625, -1416.4028320313, 12.358480453491, 0, 0, 0);
  23079. CreateDynamicObject(2250, 1215.578125, -1421.6806640625, 13, 0, 0, 0);
  23080. CreateDynamicObject(2010, 1209.6468505859, -1428.3439941406, 12.39999961853, 0, 0, 0);
  23081. CreateDynamicObject(2010, 1224.2524414063, -1416.6827392578, 12.300000190735, 0, 0, 0);
  23082. CreateDynamicObject(2010, 1206.7353515625, -1423.04296875, 12.39999961853, 0, 0, 0);
  23083. CreateDynamicObject(640, 1218.4859619141, -1415.8505859375, 13.075596809387, 0, 0, 90);
  23084. CreateDynamicObject(640, 1212.2172851563, -1415.9603271484, 13.075596809387, 0, 0, 90);
  23085. CreateDynamicObject(640, 1225.5750732422, -1416.0456542969, 13.075596809387, 0, 0, 90);
  23086. CreateDynamicObject(640, 1233.4842529297, -1421.1258544922, 13.075596809387, 0, 0, 0);
  23087. CreateDynamicObject(640, 1233.4978027344, -1426.3798828125, 13.075596809387, 0, 0, 0);
  23088. CreateDynamicObject(640, 1206.2918701172, -1421.2608642578, 13.075596809387, 0, 0, 0);
  23089. CreateDynamicObject(640, 1206.3000488281, -1426.5535888672, 13.075596809387, 0, 0, 0);
  23090. CreateDynamicObject(673, 1236.5145263672, -1411.4604492188, 12.209051132202, 0, 0, 32);
  23091. CreateDynamicObject(673, 1227.5085449219, -1411.39453125, 12.209051132202, 0, 0, 31.997680664063);
  23092. CreateDynamicObject(673, 1219.2579345703, -1411.3740234375, 12.209051132202, 0, 0, 31.997680664063);
  23093. CreateDynamicObject(673, 1211.2578125, -1411.4365234375, 12.209051132202, 0, 0, 31.997680664063);
  23094. CreateDynamicObject(673, 1203.021484375, -1413.2509765625, 12.209051132202, 0, 0, 31.997680664063);
  23095. CreateDynamicObject(673, 1244.3070068359, -1411.1755371094, 12.209051132202, 0, 0, 31.997680664063);
  23096.  
  23097. // Verona Beach bar
  23098. CreateDynamicObject(16012,541.14746094,-1904.86914062,1.78193498,0.00000000,0.00000000,355.99548340); //
  23099. CreateDynamicObject(14409,556.39691162,-1906.96704102,-0.65431607,0.00000000,0.00000000,356.00000000); //
  23100. CreateDynamicObject(14409,523.75421143,-1903.65051270,-0.63839805,0.00000000,0.00000000,356.00000000); //
  23101. CreateDynamicObject(974,525.91955566,-1904.45361328,2.67437792,0.00000000,0.00000000,268.74755859); //
  23102. CreateDynamicObject(974,526.13720703,-1898.09838867,2.42701626,0.00000000,0.00000000,270.24719238); //
  23103. CreateDynamicObject(974,551.26684570,-1906.25305176,2.50532484,0.00000000,0.00000000,262.25000000); //
  23104. CreateDynamicObject(974,551.58996582,-1904.98498535,2.92326736,0.00000000,0.00000000,266.00000000); //
  23105. CreateDynamicObject(974,548.49468994,-1901.67773438,-0.06988177,0.00000000,0.00000000,0.00000000); //
  23106. CreateDynamicObject(974,550.52984619,-1901.01733398,2.83211708,0.00000000,0.00000000,265.75000000); //
  23107. CreateDynamicObject(3461,558.38122559,-1922.79516602,4.10694647,0.00000000,0.00000000,0.00000000); //
  23108. CreateDynamicObject(3461,519.58465576,-1914.64160156,4.10694647,0.00000000,0.00000000,0.00000000); //
  23109. CreateDynamicObject(3461,554.05627441,-1906.78112793,1.96467185,0.00000000,0.00000000,0.00000000); //
  23110. CreateDynamicObject(3461,558.52990723,-1907.05163574,1.96047878,0.00000000,0.00000000,0.00000000); //
  23111. CreateDynamicObject(3461,521.65313721,-1902.19995117,1.59610581,0.00000000,0.00000000,0.00000000); //
  23112. CreateDynamicObject(3461,525.68994141,-1902.36474609,1.80679893,0.00000000,0.00000000,0.00000000); //
  23113. CreateDynamicObject(3461,526.72961426,-1917.03918457,4.10694647,0.00000000,0.00000000,0.00000000); //
  23114. CreateDynamicObject(3461,548.15570068,-1922.15917969,4.10694647,0.00000000,0.00000000,0.00000000); //
  23115. CreateDynamicObject(3524,537.16137695,-1919.56738281,6.41727543,0.00000000,0.00000000,342.00000000); //
  23116. CreateDynamicObject(3877,555.59832764,-1921.87731934,0.00000000,0.00000000,0.00000000,0.00000000); //
  23117. CreateDynamicObject(3877,546.83947754,-1919.40832520,0.00000000,0.00000000,0.00000000,0.00000000); //
  23118. CreateDynamicObject(3877,538.92614746,-1917.45983887,0.05050659,0.00000000,0.00000000,0.00000000); //
  23119. CreateDynamicObject(3877,530.29064941,-1915.61474609,0.01174124,0.00000000,0.00000000,0.00000000); //
  23120. CreateDynamicObject(3877,520.44073486,-1913.47680664,0.16246095,0.00000000,0.00000000,0.00000000); //
  23121. CreateDynamicObject(16151,541.24176025,-1909.94799805,2.81604815,0.00000000,0.00000000,86.50000000); //
  23122. CreateDynamicObject(2290,553.83569336,-1919.10363770,2.53193498,0.00000000,0.00000000,352.25000000); //
  23123. CreateDynamicObject(2290,552.21270752,-1922.31469727,2.53193498,0.00000000,0.00000000,83.50000000); //
  23124. CreateDynamicObject(2117,554.43994141,-1922.05041504,2.53193498,0.00000000,0.00000000,81.75000000); //
  23125. CreateDynamicObject(2290,556.52587891,-1920.99279785,2.43313479,0.00000000,0.00000000,264.00000000); //
  23126. CreateDynamicObject(2290,546.42041016,-1918.34716797,2.53193498,0.00000000,0.00000000,260.25000000); //
  23127. CreateDynamicObject(2290,543.51757812,-1916.35058594,2.53193498,0.00000000,0.00000000,350.24963379); //
  23128. CreateDynamicObject(2290,541.51989746,-1919.41320801,2.53193498,0.00000000,0.00000000,80.25000000); //
  23129. CreateDynamicObject(2290,537.91931152,-1916.38366699,2.53193498,0.00000000,0.00000000,262.50000000); //
  23130. CreateDynamicObject(2290,535.06140137,-1914.60119629,2.53193498,0.00000000,0.00000000,351.75000000); //
  23131. CreateDynamicObject(2290,533.50732422,-1917.68200684,2.53193498,0.00000000,0.00000000,84.00000000); //
  23132. CreateDynamicObject(2290,529.28088379,-1914.54882812,2.53193474,0.00000000,0.00000000,262.75000000); //
  23133. CreateDynamicObject(2290,526.38171387,-1912.96215820,2.53193498,0.00000000,0.00000000,353.25000000); //
  23134. CreateDynamicObject(2290,524.77587891,-1915.95751953,2.53193498,0.00000000,0.00000000,83.00000000); //
  23135. CreateDynamicObject(2117,543.70922852,-1919.57299805,2.53193498,0.00000000,0.00000000,78.25000000); //
  23136. CreateDynamicObject(2117,535.64190674,-1917.51086426,2.53193498,0.00000000,0.00000000,78.75000000); //
  23137. CreateDynamicObject(2117,526.90344238,-1915.88830566,2.53193498,0.00000000,0.00000000,80.50000000); //
  23138. CreateDynamicObject(640,519.89935303,-1910.26049805,3.24148607,0.00000000,0.00000000,356.00000000); //
  23139. CreateDynamicObject(640,559.56744385,-1914.04162598,3.33976793,0.00000000,0.00000000,6.50000000); //
  23140. CreateDynamicObject(800,518.62292480,-1905.03442383,1.82742047,0.00000000,0.00000000,0.00000000); //
  23141. CreateDynamicObject(800,561.53393555,-1909.41735840,2.84384918,0.00000000,0.00000000,0.00000000); //
  23142. CreateDynamicObject(3461,558.62738037,-1902.93859863,2.70018101,0.00000000,0.00000000,0.00000000); //
  23143. CreateDynamicObject(3461,554.29541016,-1902.86193848,2.64982796,0.00000000,0.00000000,0.00000000); //
  23144. CreateDynamicObject(3461,558.72015381,-1900.08093262,3.19314671,0.00000000,0.00000000,0.00000000); //
  23145. CreateDynamicObject(3461,554.36816406,-1899.92517090,3.12103415,0.00000000,0.00000000,0.00000000); //
  23146. CreateDynamicObject(3461,558.62597656,-1898.03613281,2.67528605,0.00000000,0.00000000,0.00000000); //
  23147. CreateDynamicObject(800,561.52185059,-1904.27502441,3.59463573,0.00000000,0.00000000,0.00000000); //
  23148. CreateDynamicObject(800,562.07446289,-1901.39367676,2.56151533,0.00000000,0.00000000,0.00000000); //
  23149. CreateDynamicObject(800,518.41473389,-1901.45812988,2.02917910,0.00000000,0.00000000,0.00000000); //
  23150. CreateDynamicObject(800,518.77661133,-1897.85351562,2.21616149,0.00000000,0.00000000,0.00000000); //
  23151. CreateDynamicObject(3461,554.49353027,-1897.83227539,2.45993423,0.00000000,0.00000000,0.00000000); //
  23152. CreateDynamicObject(3461,525.11907959,-1899.49304199,2.20632887,0.00000000,0.00000000,0.00000000); //
  23153. CreateDynamicObject(3461,522.14959717,-1899.23254395,1.98024154,0.00000000,0.00000000,352.75000000); //
  23154. CreateDynamicObject(3461,525.27154541,-1896.73510742,2.64326978,0.00000000,0.00000000,0.00000000); //
  23155. CreateDynamicObject(3461,522.20727539,-1896.82641602,2.46149707,0.00000000,0.00000000,0.00000000); //
  23156.  
  23157.  
  23158. //Brothel fix
  23159. CreateDynamicObject(3064,965.68798828,-52.73619461,1002.33642578,0.00000000,0.00000000,0.00000000); //object(break_wall_1a) (1)
  23160. CreateDynamicObject(3064,965.68634033,-54.43961334,1002.33642578,0.00000000,0.00000000,0.00000000); //object(break_wall_1a) (2)
  23161. CreateDynamicObject(1569,964.98071289,-53.94122314,1000.12457275,0.00000000,0.00000000,90.00000000); //object(adam_v_door) (1)
  23162.  
  23163. //GYM doors
  23164. CreateDynamicObject(1506,1240.58203125,-774.41259766,1083.01965332,0.00000000,0.00000000,0.00000000); //object(gen_doorext08) (2)
  23165. CreateDynamicObject(1506,1240.59033203,-774.12329102,1083.01916504,0.00000000,0.00000000,0.00000000); //object(gen_doorext08) (1)
  23166.  
  23167. // HAMC gate
  23168. bariera = CreateDynamicObject(968,705.09997559,-475.25500488,16.14999962,0.00000000,270.00000000,0.00000000); //object(barrierturn) (1)
  23169.  
  23170. // Andrew
  23171. CreateDynamicObject(14669,337.29998779,-1897.19995117,1930.59997559,0.00000000,0.00000000,0.00000000);
  23172. CreateDynamicObject(13754,331.70001221,-1873.09997559,2.20000005,0.00000000,0.00000000,0.00000000);
  23173. // Banca
  23174. CreateDynamicObject(14669,1456.29980469,-990.59960938,1401.69995117,0.00000000,0.00000000,0.00000000); //object(711_d) (2)
  23175. CreateDynamicObject(7191,1465.97998047,-985.79998779,1401.09997559,90.00000000,180.00000000,0.00000000); //object(vegasnnewfence2b) (3)
  23176. CreateDynamicObject(7191,1465.97998047,-980.40002441,1403.69995117,90.00000000,179.99450684,0.00000000); //object(vegasnnewfence2b) (4)
  23177. CreateDynamicObject(7191,1465.97998047,-987.79998779,1403.69995117,90.00000000,179.99450684,0.00000000); //object(vegasnnewfence2b) (5)
  23178. CreateDynamicObject(7191,1465.97998047,-990.23999023,1398.00000000,270.00000000,0.00000000,180.00000000); //object(vegasnnewfence2b) (6)
  23179. CreateDynamicObject(1502,1465.97998047,-992.20001221,1401.69995117,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (1)
  23180. CreateDynamicObject(7191,1465.97949219,-990.23925781,1406.18994141,179.99450684,0.00000000,179.99450684); //object(vegasnnewfence2b) (8)
  23181. CreateDynamicObject(7191,1443.80004883,-986.79998779,1401.09997559,0.00000000,0.00000000,270.00000000); //object(vegasnnewfence2b) (9)
  23182. CreateDynamicObject(1502,1465.97998047,-982.29998779,1401.69995117,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (2)
  23183. CreateDynamicObject(7191,1463.89941406,-986.79980469,1403.69995117,90.00000000,179.99450684,90.00000000); //object(vegasnnewfence2b) (10)
  23184. CreateDynamicObject(7191,1453.90002441,-979.40002441,1403.69995117,90.00000000,180.00000000,180.00000000); //object(vegasnnewfence2b) (11)
  23185. CreateDynamicObject(7191,1453.89941406,-984.85937500,1403.69995117,90.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (12)
  23186. CreateDynamicObject(7191,1453.89941406,-964.69921875,1406.19995117,0.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (13)
  23187. CreateDynamicObject(7191,1452.40002441,-986.79998779,1403.69995117,270.00000000,180.00000000,90.00000000); //object(vegasnnewfence2b) (14)
  23188. CreateDynamicObject(7191,1448.50000000,-986.79998779,1403.69995117,270.00000000,179.99450684,90.00000000); //object(vegasnnewfence2b) (15)
  23189. CreateDynamicObject(1502,1453.89941406,-982.89941406,1401.69995117,0.00000000,0.00000000,90.00000000); //object(gen_doorint04) (3)
  23190. CreateDynamicObject(7191,1453.89941406,-984.89941406,1403.69995117,270.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (16)
  23191. CreateDynamicObject(7191,1471.19995117,-964.40002441,1403.69995117,0.00000000,180.00000000,0.00000000); //object(vegasnnewfence2b) (17)
  23192. CreateDynamicObject(7191,1495.98999023,-986.84997559,1403.69995117,0.00000000,180.00000000,270.00000000); //object(vegasnnewfence2b) (18)
  23193. CreateDynamicObject(1502,1471.59997559,-986.90002441,1401.69995117,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (4)
  23194. CreateDynamicObject(7191,1493.69995117,-986.83001709,1406.19995117,0.00000000,179.99450684,270.00000000); //object(vegasnnewfence2b) (19)
  23195. CreateDynamicObject(2775,1452.00000000,-981.09997559,1404.59997559,0.00000000,0.00000000,0.00000000); //object(cj_airprt_mon) (1)
  23196. CreateDynamicObject(2796,1472.50000000,-986.90002441,1404.69995117,0.00000000,0.00000000,0.00000000); //object(cj_air_d_6) (2)
  23197. CreateDynamicObject(2161,1464.90002441,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (1)
  23198. CreateDynamicObject(2161,1463.59997559,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (2)
  23199. CreateDynamicObject(2162,1464.59997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_1) (1)
  23200. CreateDynamicObject(2162,1462.80004883,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_1) (2)
  23201. CreateDynamicObject(2161,1461.00000000,-981.13000488,1403.51000977,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (3)
  23202. CreateDynamicObject(2164,1461.00000000,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_5) (1)
  23203. CreateDynamicObject(2167,1460.09997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (1)
  23204. CreateDynamicObject(2167,1459.19995117,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (2)
  23205. CreateDynamicObject(2167,1458.30004883,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (3)
  23206. CreateDynamicObject(2161,1457.00000000,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (4)
  23207. CreateDynamicObject(2161,1457.00000000,-981.20001221,1403.00000000,0.00000000,0.00000000,0.00000000); //object(med_office_unit_4) (5)
  23208. CreateDynamicObject(2167,1456.09997559,-981.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(med_office_unit_7) (4)
  23209. CreateDynamicObject(2197,1455.19995117,-982.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(filling_cabinet) (1)
  23210. CreateDynamicObject(2199,1463.19995117,-986.65002441,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office6_mc_1) (1)
  23211. CreateDynamicObject(2200,1465.88000488,-984.96002197,1401.69995117,0.00000000,0.00000000,270.00000000); //object(med_office5_unit_1) (1)
  23212. CreateDynamicObject(1808,1463.90002441,-986.50000000,1401.69995117,0.00000000,0.00000000,180.00000000); //object(cj_watercooler2) (2)
  23213. CreateDynamicObject(2606,1459.09997559,-981.09997559,1404.80004883,0.00000000,0.00000000,0.00000000); //object(cj_police_counter2) (1)
  23214. CreateDynamicObject(2606,1452.59997559,-986.59997559,1404.59997559,0.00000000,0.00000000,180.00000000); //object(cj_police_counter2) (2)
  23215. CreateDynamicObject(2606,1452.59997559,-986.59997559,1404.09997559,0.00000000,0.00000000,179.99450684); //object(cj_police_counter2) (3)
  23216. CreateDynamicObject(1892,1455.79980469,-1000.39941406,1401.69995117,0.00000000,0.00000000,0.00000000); //object(security_gatsh) (1)
  23217. CreateDynamicObject(2604,1460.09997559,-986.20001221,1402.40002441,0.00000000,0.00000000,180.00000000); //object(cj_police_counter) (1)
  23218. CreateDynamicObject(2604,1456.30004883,-986.20001221,1402.40002441,0.00000000,0.00000000,179.99450684); //object(cj_police_counter) (2)
  23219. CreateDynamicObject(1806,1460.69995117,-985.29998779,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office_chair) (1)
  23220. CreateDynamicObject(1806,1456.90002441,-985.29998779,1401.69995117,0.00000000,0.00000000,179.99450684); //object(med_office_chair) (2)
  23221. CreateDynamicObject(1649,1456.09997559,-986.90002441,1405.59997559,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (1)
  23222. CreateDynamicObject(1649,1460.40002441,-986.90002441,1405.59997559,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (2)
  23223. CreateDynamicObject(1649,1460.50000000,-986.90002441,1405.59997559,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (4)
  23224. CreateDynamicObject(1649,1456.19995117,-986.90002441,1405.59997559,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (5)
  23225. CreateDynamicObject(2773,1455.90002441,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
  23226. CreateDynamicObject(2773,1457.40002441,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (2)
  23227. CreateDynamicObject(2773,1461.19995117,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (3)
  23228. CreateDynamicObject(2773,1459.69995117,-988.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (4)
  23229. CreateDynamicObject(1703,1449.09997559,-987.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (1)
  23230. CreateDynamicObject(11631,1452.30004883,-986.00000000,1402.93200684,0.00000000,0.00000000,180.00000000); //object(ranch_desk) (1)
  23231. CreateDynamicObject(2207,1462.50000000,-996.90002441,1401.69995117,0.00000000,0.00000000,270.00000000); //object(med_office7_desk_1) (1)
  23232. CreateDynamicObject(2311,1449.30004883,-990.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (1)
  23233. CreateDynamicObject(1671,1464.00000000,-997.79998779,1402.19995117,0.00000000,0.00000000,270.00000000); //object(swivelchair_a) (1)
  23234. CreateDynamicObject(1663,1461.50000000,-997.79998779,1402.19995117,0.00000000,0.00000000,90.00000000); //object(swivelchair_b) (2)
  23235. CreateDynamicObject(1663,1462.09997559,-999.20001221,1402.19995117,0.00000000,0.00000000,150.00000000); //object(swivelchair_b) (3)
  23236. CreateDynamicObject(1663,1462.00000000,-996.50000000,1402.19995117,0.00000000,0.00000000,30.00000000); //object(swivelchair_b) (4)
  23237. CreateDynamicObject(1808,1453.50000000,-987.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (3)
  23238. CreateDynamicObject(1808,1453.00000000,-987.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (4)
  23239. CreateDynamicObject(2186,1465.00000000,-999.59997559,1401.69995117,0.00000000,0.00000000,180.00000000); //object(photocopier_1) (2)
  23240. CreateDynamicObject(2190,1463.00000000,-996.79998779,1402.50000000,0.00000000,0.00000000,30.00000000); //object(pc_1) (3)
  23241. CreateDynamicObject(2738,1478.94995117,-981.50000000,1402.30004883,0.00000000,0.00000000,0.00000000); //object(cj_toilet_bs) (1)
  23242. CreateDynamicObject(2742,1473.50000000,-986.29998779,1403.19995117,0.00000000,0.00000000,180.00000000); //object(cj_handdrier) (1)
  23243. CreateDynamicObject(2620,1447.69995117,-987.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_eris) (1)
  23244. CreateDynamicObject(2621,1452.19995117,-987.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_heat) (1)
  23245. CreateDynamicObject(2894,1462.80004883,-998.29998779,1402.50000000,0.00000000,0.00000000,300.00000000); //object(kmb_rhymesbook) (1)
  23246. CreateDynamicObject(2239,1465.59997559,-999.70001221,1401.69995117,0.00000000,0.00000000,210.00000000); //object(cj_mlight16) (1)
  23247. CreateDynamicObject(1703,1447.30004883,-991.20001221,1401.69995117,0.00000000,0.00000000,90.00000000); //object(kb_couch02) (2)
  23248. CreateDynamicObject(1703,1451.09997559,-992.59997559,1401.69995117,0.00000000,0.00000000,180.00000000); //object(kb_couch02) (3)
  23249. CreateDynamicObject(2942,1465.50000000,-987.29998779,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (1)
  23250. CreateDynamicObject(2942,1465.50000000,-988.20001221,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (2)
  23251. CreateDynamicObject(2942,1465.50000000,-989.09997559,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (3)
  23252. CreateDynamicObject(2614,1465.80004883,-997.90002441,1403.69995117,0.00000000,0.00000000,270.00000000); //object(cj_us_flag) (2)
  23253. CreateDynamicObject(1703,1449.09997559,-993.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (4)
  23254. CreateDynamicObject(2311,1449.30004883,-996.00000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (2)
  23255. CreateDynamicObject(1703,1447.30004883,-997.09997559,1401.69995117,0.00000000,0.00000000,90.00000000); //object(kb_couch02) (5)
  23256. CreateDynamicObject(1703,1451.09997559,-998.50000000,1401.69995117,0.00000000,0.00000000,179.99450684); //object(kb_couch02) (6)
  23257. CreateDynamicObject(2614,1446.80004883,-993.09997559,1403.90002441,0.00000000,0.00000000,90.00000000); //object(cj_us_flag) (3)
  23258. CreateDynamicObject(2620,1447.69995117,-999.50000000,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_eris) (2)
  23259. CreateDynamicObject(2621,1452.00000000,-999.40002441,1402.50000000,0.00000000,0.00000000,0.00000000); //object(cj_trainer_heat) (2)
  23260. CreateDynamicObject(2816,1450.19995117,-996.00000000,1402.19995117,0.00000000,0.00000000,0.00000000); //object(gb_bedmags01) (1)
  23261. CreateDynamicObject(2826,1450.19995117,-990.09997559,1402.19995117,0.00000000,0.00000000,0.00000000); //object(gb_novels04) (1)
  23262. CreateDynamicObject(2828,1462.30004883,-997.59997559,1402.44995117,0.00000000,0.00000000,240.00000000); //object(gb_ornament02) (1)
  23263. CreateDynamicObject(2942,1465.50000000,-990.00000000,1402.30004883,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (4)
  23264. CreateDynamicObject(7191,1478.00000000,-981.40002441,1403.69995117,270.00000000,0.00000000,179.99450684); //object(vegasnnewfence2b) (20)
  23265. CreateDynamicObject(7191,1476.31994629,-981.40002441,1403.69995117,270.00000000,0.00000000,179.99450684); //object(vegasnnewfence2b) (21)
  23266. CreateDynamicObject(2738,1477.19995117,-981.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(cj_toilet_bs) (2)
  23267. CreateDynamicObject(1502,1478.09997559,-983.40002441,1401.90002441,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (5)
  23268. CreateDynamicObject(1502,1476.40002441,-983.40002441,1401.90002441,0.00000000,0.00000000,0.00000000); //object(gen_doorint04) (6)
  23269. CreateDynamicObject(2518,1471.90002441,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (1)
  23270. CreateDynamicObject(2518,1473.09997559,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (2)
  23271. CreateDynamicObject(2518,1474.40002441,-981.70001221,1402.00000000,0.00000000,0.00000000,0.00000000); //object(cj_b_sink2) (3)
  23272. CreateDynamicObject(2741,1475.50000000,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (2)
  23273. CreateDynamicObject(2741,1474.19995117,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (3)
  23274. CreateDynamicObject(2741,1472.90002441,-981.09997559,1403.30004883,0.00000000,0.00000000,0.00000000); //object(cj_soap_disp) (4)
  23275. CreateDynamicObject(1893,1474.00000000,-984.90002441,1405.50000000,0.00000000,0.00000000,0.00000000); //object(shoplight1) (1)
  23276. CreateDynamicObject(1703,1478.59997559,-986.20001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(kb_couch02) (7)
  23277. CreateDynamicObject(1649,1473.80004883,-981.20001221,1405.19995117,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (6)
  23278. CreateDynamicObject(2001,1471.59997559,-981.50000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (1)
  23279. CreateDynamicObject(2001,1452.40002441,-1000.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (2)
  23280. CreateDynamicObject(2010,1460.30004883,-1000.59997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant3_ofc) (1)
  23281. CreateDynamicObject(2245,1447.19995117,-993.09997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (1)
  23282. CreateDynamicObject(2245,1447.19995117,-993.59997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (2)
  23283. CreateDynamicObject(2245,1447.19995117,-992.59997559,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (3)
  23284. CreateDynamicObject(2251,1449.30004883,-996.00000000,1403.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_20) (1)
  23285. CreateDynamicObject(2251,1449.19995117,-990.09997559,1403.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_20) (2)
  23286. CreateDynamicObject(2253,1479.40002441,-986.40002441,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_22) (1)
  23287. CreateDynamicObject(2254,1446.80004883,-996.09997559,1403.90002441,0.00000000,0.00000000,90.00000000); //object(frame_clip_1) (1)
  23288. CreateDynamicObject(2283,1446.80004883,-990.20001221,1404.00000000,0.00000000,0.00000000,90.00000000); //object(frame_thick_3) (1)
  23289. CreateDynamicObject(2281,1450.09997559,-987.40002441,1403.69995117,0.00000000,0.00000000,0.00000000); //object(frame_thick_5) (1)
  23290. CreateDynamicObject(2280,1465.30004883,-995.40002441,1403.40002441,0.00000000,0.00000000,270.00000000); //object(frame_thick_1) (1)
  23291. CreateDynamicObject(1723,1475.80004883,-987.50000000,1401.69995117,0.00000000,0.00000000,0.00000000); //object(mrk_seating1) (1)
  23292. CreateDynamicObject(1723,1477.80004883,-993.20001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(mrk_seating1) (2)
  23293. CreateDynamicObject(1724,1479.09997559,-989.90002441,1401.69995117,0.00000000,0.00000000,270.00000000); //object(mrk_seating1b) (2)
  23294. CreateDynamicObject(2311,1475.90002441,-990.40002441,1401.69995117,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (3)
  23295. CreateDynamicObject(2272,1479.09997559,-988.70001221,1403.90002441,0.00000000,0.00000000,270.00000000); //object(frame_fab_5) (1)
  23296. CreateDynamicObject(2269,1479.09997559,-991.90002441,1404.09997559,0.00000000,0.00000000,270.00000000); //object(frame_wood_4) (1)
  23297. CreateDynamicObject(1775,1470.40002441,-981.59997559,1402.80004883,0.00000000,0.00000000,0.00000000); //object(cj_sprunk1) (1)
  23298. CreateDynamicObject(2616,1468.09997559,-981.20001221,1403.40002441,0.00000000,0.00000000,0.00000000); //object(police_nb04) (1)
  23299. CreateDynamicObject(3462,1459.00000000,-1000.40002441,1403.19995117,0.00000000,0.00000000,270.00000000); //object(csrangel_lvs) (1)
  23300. CreateDynamicObject(3462,1453.59997559,-1000.40002441,1403.19995117,0.00000000,0.00000000,270.00000000); //object(csrangel_lvs) (2)
  23301. CreateDynamicObject(2745,1470.90002441,-993.29998779,1402.90002441,0.00000000,0.00000000,180.00000000); //object(cj_stat_3) (1)
  23302. CreateDynamicObject(2685,1471.30004883,-987.29998779,1403.69995117,0.00000000,0.00000000,0.00000000); //object(cj_food_post1) (1)
  23303. CreateDynamicObject(7313,1458.09997559,-988.00000000,1405.00000000,0.00000000,0.00000000,0.00000000); //object(vgsn_scrollsgn01) (2)
  23304. CreateDynamicObject(2271,1473.30004883,-993.20001221,1403.59997559,0.00000000,0.00000000,180.00000000); //object(frame_wood_1) (1)
  23305. CreateDynamicObject(2269,1468.30004883,-993.20001221,1403.69995117,0.00000000,0.00000000,180.00000000); //object(frame_wood_4) (2)
  23306. CreateDynamicObject(2266,1466.59997559,-990.20001221,1403.69995117,0.00000000,0.00000000,90.00000000); //object(frame_wood_5) (1)
  23307. CreateDynamicObject(2265,1466.59997559,-987.29998779,1403.69995117,0.00000000,0.00000000,90.00000000); //object(frame_slim_6) (1)
  23308. CreateDynamicObject(1723,1470.59997559,-984.00000000,1401.69995117,0.00000000,0.00000000,270.00000000); //object(mrk_seating1) (3)
  23309. CreateDynamicObject(2263,1470.59997559,-985.00000000,1403.50000000,0.00000000,0.00000000,270.00000000); //object(frame_slim_4) (1)
  23310. CreateDynamicObject(2571,1467.40002441,-990.09997559,1401.69995117,0.00000000,0.00000000,90.00000000); //object(hotel_single_1) (1)
  23311. CreateDynamicObject(949,1471.69995117,-993.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_4) (1)
  23312. CreateDynamicObject(949,1470.09997559,-993.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_4) (2)
  23313. CreateDynamicObject(2195,1479.09997559,-988.59997559,1402.30004883,0.00000000,0.00000000,0.00000000); //object(plant_pot_3) (1)
  23314. CreateDynamicObject(2001,1479.19995117,-992.09997559,1401.69995117,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc) (3)
  23315. CreateDynamicObject(2245,1475.80004883,-986.29998779,1402.00000000,0.00000000,0.00000000,0.00000000); //object(plant_pot_11) (4)
  23316. CreateDynamicObject(2254,1477.50000000,-986.70001221,1404.00000000,0.00000000,0.00000000,180.00000000); //object(frame_clip_1) (2)
  23317. CreateDynamicObject(7191,1450.00000000,-984.70001221,1403.69995117,270.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (16)
  23318. CreateDynamicObject(7191,1449.73999023,-958.50000000,1403.69995117,0.00000000,0.00000000,0.00000000); //object(vegasnnewfence2b) (16)
  23319. CreateDynamicObject(7191,1450.00000000,-960.59997559,1406.00000000,0.00000000,179.99450684,179.99450684); //object(vegasnnewfence2b) (13)
  23320. CreateDynamicObject(2332,1449.50000000,-986.29998779,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (1)
  23321. CreateDynamicObject(1550,1448.19995117,-985.29998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (1)
  23322. CreateDynamicObject(1550,1448.30004883,-985.79998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (2)
  23323. CreateDynamicObject(1550,1448.50000000,-986.40002441,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (3)
  23324. CreateDynamicObject(1550,1447.69995117,-985.20001221,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (4)
  23325. CreateDynamicObject(1550,1447.80004883,-985.79998779,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (6)
  23326. CreateDynamicObject(1550,1447.90002441,-986.40002441,1402.09997559,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (7)
  23327. CreateDynamicObject(2332,1449.50000000,-985.50000000,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (2)
  23328. CreateDynamicObject(2332,1449.50000000,-984.70001221,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (3)
  23329. CreateDynamicObject(2332,1449.50000000,-983.90002441,1402.19995117,0.00000000,0.00000000,270.00000000); //object(kev_safe) (4)
  23330. CreateDynamicObject(2003,1447.19995117,-986.20001221,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (1)
  23331. CreateDynamicObject(2003,1447.19995117,-985.40002441,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (2)
  23332. CreateDynamicObject(2003,1447.19995117,-984.59997559,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (3)
  23333. CreateDynamicObject(2003,1447.19995117,-983.79998779,1402.19995117,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (4)
  23334. CreateDynamicObject(2003,1447.19995117,-983.79998779,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (5)
  23335. CreateDynamicObject(2003,1447.19995117,-986.20001221,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (6)
  23336. CreateDynamicObject(2003,1447.19995117,-985.40002441,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (7)
  23337. CreateDynamicObject(2003,1447.19995117,-984.59997559,1403.09997559,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (8)
  23338. CreateDynamicObject(2003,1447.19995117,-986.20001221,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (9)
  23339. CreateDynamicObject(2003,1447.19995117,-985.40002441,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (10)
  23340. CreateDynamicObject(2003,1447.19995117,-984.59997559,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (11)
  23341. CreateDynamicObject(2003,1447.19995117,-983.79998779,1404.00000000,0.00000000,0.00000000,90.00000000); //object(cr_safe_body) (12)
  23342. CreateDynamicObject(1829,1447.50000000,-982.90002441,1402.19995117,0.00000000,0.00000000,90.00000000); //object(man_safenew) (1)
  23343. CreateDynamicObject(1806,1451.90002441,-985.70001221,1401.69995117,0.00000000,0.00000000,180.00000000); //object(med_office_chair) (3)
  23344. CreateDynamicObject(1569,1454.80004883,-1001.20001221,1401.69995117,0.00000000,0.00000000,0.00000000); //object(adam_v_door) (1)
  23345. CreateDynamicObject(1569,1457.79980469,-1001.19921875,1401.69995117,0.00000000,0.00000000,179.99450684); //object(adam_v_door) (2)
  23346. bankvaultdoor = CreateDynamicObject(2634,1450.19995117,-982.09997559,1403.00000000,0.00000000,0.00000000,270.00000000); //object(ab_vaultdoor) (1)
  23347. CreateDynamicObject(7191,1463.59997559,-1000.20001221,1404.30004883,90.00000000,180.00000000,270.00000000); //object(vegasnnewfence2b) (10)
  23348. CreateDynamicObject(7191,1449.50000000,-1000.29998779,1404.30004883,90.00000000,179.99450684,270.00000000); //object(vegasnnewfence2b) (10)
  23349.  
  23350.  
  23351. //FIRE DEPARTMENT
  23352. CreateDynamicObject(11008, 1487.8198242188, -2169.7194824219, 19.585941314697, 0, 0, 0);
  23353. CreateDynamicObject(8553, 1493.646362, -2166.094727, 12.59, 0.0000, 0.0000, 179.9136); //Concrete
  23354. CreateDynamicObject(8553, 1553.631714, -2166.116943, 12.59, 0.0000, 0.0000, 359.9136); //Concrete
  23355. CreateDynamicObject(16564, 1577.7641601563, -2166.9350585938, 12.695111274719, 0, 0, 89.324768066406);
  23356. CreateDynamicObject(17064, 1536.9736328125, -2161.5224609375, 12.695111274719, 0, 0, 0);
  23357. CreateDynamicObject(12839, 1563.223511, -2183.149902, 16.214420, 0.0000, 0.0000, 0.0000); // Stairs To Helicopter
  23358. CreateDynamicObject(1508, 369.2036, 162.4440, 1019.9944, 0.0000, 0.0000, 180.0000); //City Hall Room Block
  23359. CreateDynamicObject(1569, 369.1764, 161.6, 1019.0, 0.0000, 0.0000, 90.0000); //City Hall Room Door
  23360. //GymBlock
  23361. CreateDynamicObject(994, 2222.465088, -1715.447388, 12.628170, 0.0000, 0.0000, 263.1245);
  23362. CreateDynamicObject(994, 2223.253418, -1709.089966, 12.725977, 0.0000, 0.0000, 263.9840);
  23363. CreateDynamicObject(994, 2232.644287, -1727.048462, 12.647192, 0.0000, 0.0000, 180.0773);
  23364. CreateDynamicObject(994, 2239.051270, -1727.090210, 12.647192, 0.0000, 0.0000, 180.0773);
  23365. CreateDynamicObject(994, 2238.903076, -1719.262451, 12.652877, 0.0000, 0.0000, 270.0773);
  23366. CreateDynamicObject(994, 2221.543945, -1722.587158, 12.662817, 0.0000, 0.0000, 315.0773);
  23367. CreateDynamicObject(994, 2224.709717, -1709.026855, 12.541059, 0.0000, 0.0000, 358.3585);
  23368. //Secret house
  23369. objecttt[0] = CreateDynamicObject(16375,-2758.69506836,-1532.74951172,138.18721008,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(by_helimarkings) (1)
  23370. objecttt[1] = CreateDynamicObject(2707,-2820.86718750,-1525.66406250,141.90330505,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_light_fit) (1)
  23371. objecttt[2] = CreateDynamicObject(1712,-2817.00244141,-1515.82360840,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (1)
  23372. objecttt[3] = CreateDynamicObject(945,-2815.10888672,-1524.75927734,150.31149292,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ws_cf_lamps) (1)
  23373. objecttt[4] = CreateDynamicObject(945,-2815.27465820,-1521.89855957,150.31149292,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ws_cf_lamps) (2)
  23374. objecttt[5] = CreateDynamicObject(1494,-2811.37744141,-1523.26904297,139.84375000,0.00000000,0.00000000,269.99996948, -1, -1, -1, 500.0); //object(gen_doorint03) (1)
  23375. objecttt[6] = CreateDynamicObject(1494,-2821.03320312,-1517.87927246,139.84375000,0.00000000,0.00000000,268.00000000, -1, -1, -1, 500.0); //object(gen_doorint03) (2)
  23376. objecttt[7] = CreateDynamicObject(3032,-2813.53442383,-1531.22644043,141.95594788,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (1)
  23377. objecttt[8] = CreateDynamicObject(3032,-2818.12377930,-1531.10815430,141.95594788,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (2)
  23378. objecttt[9] = CreateDynamicObject(3032,-2821.12255859,-1528.83300781,141.95594788,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (3)
  23379. objecttt[10] = CreateDynamicObject(3032,-2811.17700195,-1518.73168945,142.01300049,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (4)
  23380. objecttt[11] = CreateDynamicObject(3032,-2810.94189453,-1528.81689453,142.09234619,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (5)
  23381. objecttt[12] = CreateDynamicObject(3032,-2813.79907227,-1515.16247559,141.97888184,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (6)
  23382. objecttt[13] = CreateDynamicObject(3032,-2818.38842773,-1514.92260742,141.87797546,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(bd_window_shatter) (7)
  23383. objecttt[14] = CreateDynamicObject(2165,-2812.94140625,-1527.82592773,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office_desk_1) (1)
  23384. objecttt[15] = CreateDynamicObject(1671,-2812.66015625,-1529.13708496,140.30397034,0.00000000,0.00000000,178.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (1)
  23385. objecttt[16] = CreateDynamicObject(2141,-2820.52856445,-1521.52014160,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_kitch2_l) (1)
  23386. objecttt[17] = CreateDynamicObject(2154,-2820.70849609,-1522.94531250,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_k5_low_unit1) (1)
  23387. objecttt[18] = CreateDynamicObject(2161,-2812.40527344,-1515.17187500,139.88313293,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office_unit_4) (1)
  23388. objecttt[19] = CreateDynamicObject(1803,-2820.34301758,-1518.75268555,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_bed_7) (1)
  23389. objecttt[20] = CreateDynamicObject(2339,-2820.46752930,-1523.93566895,139.84375000,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(cj_kitch2_cooker) (1)
  23390. objecttt[21] = CreateDynamicObject(2851,-2820.50952148,-1522.43090820,140.89700317,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_kitchdirt05) (1)
  23391. objecttt[22] = CreateDynamicObject(1808,-2820.64599609,-1524.64135742,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_watercooler2) (1)
  23392. objecttt[23] = CreateDynamicObject(2179,-2818.27441406,-1515.63757324,141.55383301,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(casino_light1) (1)
  23393. objecttt[24] = CreateDynamicObject(1828,-2816.25048828,-1517.61083984,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(man_sdr_rug) (1)
  23394. objecttt[25] = CreateDynamicObject(2311,-2817.16748047,-1517.42663574,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_tv_table2) (1)
  23395. objecttt[26] = CreateDynamicObject(1670,-2817.12182617,-1517.56591797,140.34924316,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(propcollecttable) (1)
  23396. objecttt[27] = CreateDynamicObject(630,-2820.55761719,-1530.71789551,140.86891174,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(veg_palmkb8) (1)
  23397. objecttt[28] = CreateDynamicObject(2091,-2815.35546875,-1530.90576172,139.84375000,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(tv_ward_med_1) (2)
  23398. objecttt[29] = CreateDynamicObject(2603,-2812.01928711,-1520.30029297,140.29699707,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(police_cell_bed) (1)
  23399. objecttt[30] = CreateDynamicObject(2816,-2812.41625977,-1520.19848633,140.64492798,0.00000000,0.00000000,269.99996948, -1, -1, -1, 500.0); //object(gb_bedmags01) (1)
  23400. objecttt[31] = CreateDynamicObject(2835,-2813.03125000,-1524.45629883,139.84375000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_livingrug04) (1)
  23401. objecttt[32] = CreateDynamicObject(1216,-2809.89819336,-1520.72912598,140.53575134,0.00000000,0.00000000,93.99993896, -1, -1, -1, 500.0); //object(phonebooth1) (1)
  23402. objecttt[33] = CreateDynamicObject(3963,-2820.61767578,-1526.59008789,141.42929077,0.00000000,0.00000000,268.00000000, -1, -1, -1, 500.0); //object(lee_plane08) (1)
  23403. objecttt[34] = CreateDynamicObject(2654,-2811.82397461,-1522.39135742,140.06164551,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_shoe_box) (1)
  23404. objecttt[35] = CreateDynamicObject(3044,-2817.28808594,-1517.51953125,140.72477722,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cigar) (1)
  23405. objecttt[36] = CreateDynamicObject(2100,-2818.37060547,-1530.77978516,139.84375000,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(med_hi_fi_2) (1)
  23406. objecttt[37] = CreateDynamicObject(1582,-2815.73754883,-1517.89294434,140.61572266,0.00000000,0.00000000,330.00000000, -1, -1, -1, 500.0); //object(pizzabox) (1)
  23407. objecttt[38] = CreateDynamicObject(1705,-2814.09497070,-1517.25244141,139.84375000,0.00000000,0.00000000,282.00000000, -1, -1, -1, 500.0); //object(kb_chair04) (1)
  23408. objecttt[39] = CreateDynamicObject(1671,-2812.02343750,-1526.71826172,140.30397034,0.00000000,0.00000000,296.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (2)
  23409. //Dealerships
  23410. dealership[0] = CreateDynamicObject(7319,2510.18066406,-1525.94494629,23.45103836,0.00000000,0.00000000,179.99993896, -1, -1, -1, 500.0); //object(vgnlowbuild12a) (2)
  23411. dealership[1] = CreateDynamicObject(7319,2531.42968750,-1525.99011230,23.45103836,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(vgnlowbuild12a) (3)
  23412. dealership[2] = CreateDynamicObject(8879,2503.23217773,-1539.87158203,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (1)
  23413. dealership[3] = CreateDynamicObject(8879,2523.53100586,-1538.66601562,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (2)
  23414. dealership[4] = CreateDynamicObject(8879,2541.14575195,-1537.91552734,28.64429855,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (3)
  23415. dealership[5] = CreateDynamicObject(8879,2544.59838867,-1518.02709961,28.89429855,0.00000000,0.00000000,92.00000000, -1, -1, -1, 500.0); //object(vgsecnstrct08) (4)
  23416. dealership[6] = CreateDynamicObject(8879,2498.79760742,-1519.57373047,28.89429855,0.00000000,0.00000000,269.99951172, -1, -1, -1, 500.0); //object(vgsecnstrct08) (5)
  23417. dealership[7] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,24.12891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (1)
  23418. dealership[8] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,26.37891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (2)
  23419. dealership[9] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,28.62891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (3)
  23420. dealership[10] = CreateDynamicObject(9131,2520.28906250,-1512.50878906,30.87891579,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(shbbyhswall13_lvs) (4)
  23421. dealership[11] = CreateDynamicObject(8168,2504.83325195,-1532.43627930,24.88549232,0.00000000,0.00000000,16.00000000, -1, -1, -1, 500.0); //object(vgs_guardhouse01) (1)
  23422. dealership[12] = CreateDynamicObject(1687,2503.42578125,-1533.92687988,27.35313797,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gen_roofbit1) (1)
  23423. dealership[13] = CreateDynamicObject(2614,2505.07885742,-1529.69824219,26.69847488,0.00000000,0.00000000,178.00000000, -1, -1, -1, 500.0); //object(cj_us_flag) (1)
  23424. dealership[14] = CreateDynamicObject(3406,2917.58081055,-1947.20520020,-1.82115793,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (4)
  23425. dealership[15] = CreateDynamicObject(3406,2926.31469727,-1947.20849609,-1.78603697,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (5)
  23426. dealership[16] = CreateDynamicObject(3406,2935.10351562,-1947.16455078,-1.83254910,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (6)
  23427. dealership[17] = CreateDynamicObject(3406,2943.69897461,-1947.16589355,-1.79972744,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (7)
  23428. dealership[18] = CreateDynamicObject(3406,2952.16040039,-1947.17626953,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (8)
  23429. dealership[19] = CreateDynamicObject(3406,2960.97924805,-1947.13012695,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (10)
  23430. dealership[20] = CreateDynamicObject(11495,2963.92773438,-1959.00524902,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (2)
  23431. dealership[21] = CreateDynamicObject(11495,2953.31762695,-1959.07458496,0.25000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (4)
  23432. dealership[22] = CreateDynamicObject(11495,2941.20996094,-1959.01965332,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (5)
  23433. dealership[23] = CreateDynamicObject(11495,2963.94311523,-1935.22155762,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (6)
  23434. dealership[24] = CreateDynamicObject(11495,2953.19238281,-1935.51989746,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (7)
  23435. dealership[25] = CreateDynamicObject(11495,2941.20410156,-1936.00585938,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (8)
  23436. dealership[26] = CreateDynamicObject(3406,2969.73876953,-1947.08276367,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (11)
  23437. dealership[27] = CreateDynamicObject(3406,2978.43969727,-1947.05725098,-1.75000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (12)
  23438. dealership[28] = CreateDynamicObject(11495,2975.12500000,-1958.75341797,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (9)
  23439. dealership[29] = CreateDynamicObject(11495,2975.03784180,-1936.03491211,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (10)
  23440. dealership[30] = CreateDynamicObject(3406,2987.11645508,-1947.08850098,-2.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cxref_woodjetty) (13)
  23441. dealership[31] = CreateDynamicObject(11495,2990.22753906,-1959.15466309,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (11)
  23442. dealership[32] = CreateDynamicObject(11495,2990.01660156,-1935.15429688,0.00000000,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(des_ranchjetty) (12)
  23443. dealership[33] = CreateDynamicObject(1461,2974.94604492,-1926.55834961,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (1)
  23444. dealership[34] = CreateDynamicObject(1461,2989.91967773,-1925.64135742,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (2)
  23445. dealership[35] = CreateDynamicObject(1461,2963.95703125,-1925.50708008,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (3)
  23446. dealership[36] = CreateDynamicObject(1461,2953.11840820,-1926.09118652,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (4)
  23447. dealership[37] = CreateDynamicObject(1461,2941.19897461,-1926.20080566,1.00433826,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (5)
  23448. dealership[38] = CreateDynamicObject(1461,2941.18310547,-1968.73168945,1.00433826,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(dyn_life_p) (6)
  23449. dealership[39] = CreateDynamicObject(1461,2953.44067383,-1968.72241211,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (7)
  23450. dealership[40] = CreateDynamicObject(1461,2963.95410156,-1968.50903320,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (8)
  23451. dealership[41] = CreateDynamicObject(1461,2975.21093750,-1968.56652832,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (9)
  23452. dealership[42] = CreateDynamicObject(1461,2990.21093750,-1968.81469727,1.25433826,0.00000000,0.00000000,181.99951172, -1, -1, -1, 500.0); //object(dyn_life_p) (10)
  23453. dealership[43] = CreateDynamicObject(9245,2868.44311523,-1942.71972656,21.92908096,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(cstguard_sfn01) (2)
  23454. dealership[44] = CreateDynamicObject(997,1769.48596191,-1907.31713867,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (1)
  23455. dealership[45] = CreateDynamicObject(997,1772.73535156,-1907.33544922,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (2)
  23456. dealership[46] = CreateDynamicObject(997,1775.73535156,-1907.38476562,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (4)
  23457. dealership[47] = CreateDynamicObject(997,1775.73535156,-1907.38476562,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (5)
  23458. dealership[48] = CreateDynamicObject(997,1778.98596191,-1907.39099121,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (6)
  23459. dealership[49] = CreateDynamicObject(997,1781.98510742,-1907.36035156,12.58260059,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (7)
  23460. dealership[50] = CreateDynamicObject(997,1769.48596191,-1935.50122070,12.59599209,0.00000000,0.00000000,322.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier3) (8)
  23461. dealership[51] = CreateDynamicObject(997,1772.15209961,-1937.50231934,12.59599209,0.00000000,0.00000000,333.99829102, -1, -1, -1, 500.0); //object(lhouse_barrier3) (9)
  23462. dealership[52] = CreateDynamicObject(997,1775.33691406,-1938.95288086,12.59599209,0.00000000,0.00000000,333.99536133, -1, -1, -1, 500.0); //object(lhouse_barrier3) (10)
  23463. dealership[53] = CreateDynamicObject(997,1778.49987793,-1940.45007324,12.59599209,0.00000000,0.00000000,333.99536133, -1, -1, -1, 500.0); //object(lhouse_barrier3) (11)
  23464. dealership[54] = CreateDynamicObject(18090,1771.44287109,-1924.26232910,15.11817646,0.00000000,0.00000000,179.99993896, -1, -1, -1, 500.0); //object(bar_bar1) (1)
  23465. dealership[55] = CreateDynamicObject(1712,1770.11914062,-1918.26110840,12.55736828,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (1)
  23466. dealership[56] = CreateDynamicObject(1712,1770.11718750,-1915.76074219,12.55736828,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_couch05) (2)
  23467. dealership[57] = CreateDynamicObject(1486,1771.09423828,-1917.42883301,12.70043850,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_beer_1) (1)
  23468. dealership[58] = CreateDynamicObject(1510,1772.83483887,-1926.44287109,13.60218143,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_ashtry) (1)
  23469. dealership[59] = CreateDynamicObject(1512,1771.22326660,-1915.89794922,12.75269032,85.52862549,243.47685242,110.59298706, -1, -1, -1, 500.0); //object(dyn_wine_03) (1)
  23470. dealership[60] = CreateDynamicObject(1541,1771.14489746,-1927.90380859,13.92122078,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_beer_taps_1) (1)
  23471. dealership[61] = CreateDynamicObject(1511,1772.44824219,-1925.62561035,13.97951126,0.00000000,0.00000000,258.00000000, -1, -1, -1, 500.0); //object(dyn_spirit_02) (1)
  23472. dealership[62] = CreateDynamicObject(1544,1772.65466309,-1923.26989746,13.60218143,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_beer_b_1) (1)
  23473. dealership[63] = CreateDynamicObject(2100,1769.60485840,-1920.11938477,12.55839920,0.00000000,0.00000000,92.00000000, -1, -1, -1, 500.0); //object(med_hi_fi_2) (1)
  23474. dealership[64] = CreateDynamicObject(1188,1789.34997559,-1940.00280762,12.72960091,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(fbmp_lr_sv2) (1)
  23475. dealership[65] = CreateDynamicObject(1179,1788.00500488,-1941.04943848,13.85151482,1.58538818,341.99291992,10.18225098, -1, -1, -1, 500.0); //object(fbmp_lr_rem1) (1)
  23476. dealership[66] = CreateDynamicObject(1162,1788.38159180,-1940.61022949,12.55735397,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(spl_a_j_b) (1)
  23477. dealership[67] = CreateDynamicObject(1271,1786.73132324,-1940.99951172,12.90939617,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gunbox) (1)
  23478. dealership[68] = CreateDynamicObject(1431,1788.28186035,-1941.00842285,13.10628033,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(dyn_box_pile) (1)
  23479. dealership[69] = CreateDynamicObject(2478,1790.03662109,-1941.16540527,12.83562374,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(model_box6) (1)
  23480. dealership[70] = CreateDynamicObject(2567,1793.26623535,-1940.41394043,14.48194695,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ab_warehouseshelf) (1)
  23481. dealership[71] = CreateDynamicObject(1078,1792.28149414,-1939.25036621,13.04247284,0.00000000,352.00000000,92.00000000, -1, -1, -1, 500.0); //object(wheel_lr3) (3)
  23482. dealership[72] = CreateDynamicObject(1078,1790.28369141,-1940.50390625,13.04247284,0.00000000,355.99645996,91.99951172, -1, -1, -1, 500.0); //object(wheel_lr3) (4)
  23483. dealership[73] = CreateDynamicObject(3041,1788.81018066,-1938.29858398,13.05605030,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ct_table) (1)
  23484. dealership[74] = CreateDynamicObject(2980,1769.87646484,-1912.97326660,13.34576702,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(kb_bandit10) (1)
  23485. dealership[75] = CreateDynamicObject(2916,1772.60546875,-1908.42883301,12.66907501,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kmb_dumbbell) (1)
  23486. dealership[76] = CreateDynamicObject(2916,1772.11511230,-1908.16003418,12.66907501,0.00000000,0.00000000,322.00000000, -1, -1, -1, 500.0); //object(kmb_dumbbell) (2)
  23487. dealership[77] = CreateDynamicObject(2619,1810.86315918,-1929.95849609,14.62131310,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(mp_ammoambient) (1)
  23488. dealership[78] = CreateDynamicObject(4227,1810.93298340,-1925.39123535,14.05963898,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(graffiti_lan01) (1)
  23489. dealership[79] = CreateDynamicObject(17969,1766.18457031,-1907.04211426,13.84247971,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(hub_graffitti) (1)
  23490. dealership[80] = CreateDynamicObject(2964,1777.13403320,-1926.02795410,12.38721657,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(k_pooltablesm) (1)
  23491. dealership[81] = CreateDynamicObject(1369,1797.20080566,-1940.54370117,12.92470837,0.00000000,272.00000000,356.00000000, -1, -1, -1, 500.0); //object(cj_wheelchair1) (1)
  23492. dealership[82] = CreateDynamicObject(2676,1792.90966797,-1937.00219727,12.65019894,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(proc_rubbish_8) (1)
  23493. dealership[83] = CreateDynamicObject(3578,444.30291748,-1804.44531250,5.32490826,0.00000000,0.00000000,88.00000000, -1, -1, -1, 500.0); //object(dockbarr1_la) (1)
  23494. dealership[84] = CreateDynamicObject(994,452.32391357,-1811.84118652,4.54687500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier2) (1)
  23495. dealership[85] = CreateDynamicObject(994,457.92593384,-1794.11938477,4.54687500,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(lhouse_barrier2) (3)
  23496. dealership[86] = CreateDynamicObject(994,464.18005371,-1794.05236816,4.54687500,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (4)
  23497. dealership[87] = CreateDynamicObject(994,464.11248779,-1794.10034180,4.54687500,0.00000000,0.00000000,89.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (5)
  23498. dealership[88] = CreateDynamicObject(994,437.80282593,-1794.29504395,4.54687500,0.00000000,0.00000000,89.99450684, -1, -1, -1, 500.0); //object(lhouse_barrier2) (6)
  23499. dealership[89] = CreateDynamicObject(2651,445.49804688,-1794.14892578,5.42259789,0.00000000,0.00000000,182.00000000, -1, -1, -1, 500.0); //object(cj_skate_wall1) (1)
  23500. dealership[90] = CreateDynamicObject(2651,446.74795532,-1794.16235352,5.42259789,0.00000000,0.00000000,179.99951172, -1, -1, -1, 500.0); //object(cj_skate_wall1) (2)
  23501. //Island
  23502. //LSPD inside
  23503. lspd[0] = CreateDynamicObject(5837,102.49067688,1915.96398926,19.05924225,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(ci_guardhouse1) (1)
  23504. lspd[1] = CreateDynamicObject(8841,309.78027344,2051.92968750,19.96686554,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(rsdncarprk01_lvs) (1)
  23505. lspd[2] = CreateDynamicObject(8613,289.52062988,1891.07434082,21.01204681,0.00000000,0.00000000,88.00000000, -1, -1, -1, 500.0); //object(vgssstairs03_lvs) (1)
  23506. lspd[3] = CreateDynamicObject(8147,102.02886963,2021.34680176,20.49106216,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(vgsselecfence01) (1)
  23507. lspd[4] = CreateDynamicObject(2310,221.06639099,74.53579712,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (1)
  23508. lspd[5] = CreateDynamicObject(2310,220.15277100,74.53606415,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (2)
  23509. lspd[6] = CreateDynamicObject(2310,219.17495728,74.59202576,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (3)
  23510. lspd[7] = CreateDynamicObject(2310,218.15756226,74.59434509,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (4)
  23511. lspd[8] = CreateDynamicObject(2310,217.17996216,74.59458160,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (5)
  23512. lspd[9] = CreateDynamicObject(2310,216.16445923,74.58518982,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (6)
  23513. lspd[10] = CreateDynamicObject(2310,215.18009949,74.60859680,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (7)
  23514. lspd[11] = CreateDynamicObject(2310,221.14033508,76.11238861,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (8)
  23515. lspd[12] = CreateDynamicObject(2310,220.14805603,76.02645111,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (9)
  23516. lspd[13] = CreateDynamicObject(2310,219.15872192,76.01477814,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (10)
  23517. lspd[14] = CreateDynamicObject(2310,217.12110901,76.10726929,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (11)
  23518. lspd[15] = CreateDynamicObject(2310,216.16493225,76.08392334,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (12)
  23519. lspd[16] = CreateDynamicObject(2310,215.14738464,76.11803436,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (13)
  23520. lspd[17] = CreateDynamicObject(2310,221.11334229,77.55490112,1004.53826904,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (14)
  23521. lspd[18] = CreateDynamicObject(2310,220.14097595,77.59893036,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (15)
  23522. lspd[19] = CreateDynamicObject(2310,219.16316223,77.59105682,1004.53826904,0.00000000,0.00000000,266.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (16)
  23523. lspd[20] = CreateDynamicObject(2310,217.16511536,77.56122589,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (17)
  23524. lspd[21] = CreateDynamicObject(2310,216.16601562,77.59082031,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (18)
  23525. lspd[22] = CreateDynamicObject(2310,215.13964844,77.55859375,1004.53826904,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(mike_din_chair) (19)
  23526. lspd[23] = CreateDynamicObject(1731,214.86758423,82.90625000,1006.02618408,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_mlight3) (1)
  23527. lspd[24] = CreateDynamicObject(2066,221.59133911,82.51814270,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_m_fileing2) (1)
  23528. lspd[25] = CreateDynamicObject(2067,220.99932861,82.53824615,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_m_fileing3) (1)
  23529. lspd[26] = CreateDynamicObject(3077,216.99404907,82.38053131,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(nf_blackboard) (1)
  23530. lspd[27] = CreateDynamicObject(1751,251.11828613,91.83593750,1004.19152832,0.00000000,0.00000000,30.00000000, -1, -1, -1, 500.0); //object(med_tv_4) (1)
  23531. lspd[28] = CreateDynamicObject(1704,222.50399780,72.23165894,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (1)
  23532. lspd[29] = CreateDynamicObject(1704,223.65850830,72.24191284,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (2)
  23533. lspd[30] = CreateDynamicObject(2747,225.08142090,69.42612457,1004.45159912,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_donut_table) (1)
  23534. lspd[31] = CreateDynamicObject(1704,224.18368530,69.43973541,1004.03906250,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(kb_chair03) (3)
  23535. lspd[32] = CreateDynamicObject(2395,188.18780518,80.68438721,976.64495850,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(cj_sports_wall) (4)
  23536. lspd[33] = CreateDynamicObject(2395,316.84078979,46.48315048,962.49377441,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(cj_sports_wall) (5)
  23537. lspd[34] = CreateDynamicObject(2198,215.77714539,80.37008667,1004.03906250,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_3) (2)
  23538. lspd[35] = CreateDynamicObject(2202,257.37802124,67.99050140,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(photocopier_2) (1)
  23539. lspd[36] = CreateDynamicObject(1722,244.39097595,62.41166687,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (1)
  23540. lspd[37] = CreateDynamicObject(1722,243.64526367,62.37010574,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (2)
  23541. lspd[38] = CreateDynamicObject(1722,242.88375854,62.36438370,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (3)
  23542. lspd[39] = CreateDynamicObject(1722,242.52201843,69.54393005,1002.64062500,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (4)
  23543. lspd[40] = CreateDynamicObject(1722,242.52693176,70.23125458,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (5)
  23544. lspd[41] = CreateDynamicObject(1722,242.53012085,70.88690948,1002.64062500,0.00000000,0.00000000,270.00000000, -1, -1, -1, 500.0); //object(off_chairnu) (6)
  23545. lspd[42] = CreateDynamicObject(2425,250.88677979,69.74848175,1003.84375000,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(cj_ff_juice) (1)
  23546. lspd[43] = CreateDynamicObject(2647,250.54627991,69.50411987,1004.00030518,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_bs_cup) (1)
  23547. lspd[44] = CreateDynamicObject(1822,242.39849854,67.83626556,1002.67474365,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(coffee_swank_6) (1)
  23548. lspd[45] = CreateDynamicObject(3928,1548.17590332,-1707.77197266,27.39480972,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(helipad) (1)
  23549. lspd[46] = CreateDynamicObject(3928,1548.19409180,-1644.09082031,27.40211487,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(helipad) (2)
  23550. lspd[47] = CreateDynamicObject(17969,1539.39099121,-1614.46447754,13.83594322,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(hub_graffitti) (1)
  23551. lspd[48] = CreateDynamicObject(10444,1550.53417969,-1626.81640625,12.23130894,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(poolwater_sfs) (1)
  23552. lspd[49] = CreateDynamicObject(2193,257.39413452,83.34569550,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_2) (2)
  23553. lspd[50] = CreateDynamicObject(2193,255.53695679,83.34815216,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_2) (3)
  23554. lspd[51] = CreateDynamicObject(2198,253.60383606,84.33051300,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_3) (1)
  23555. lspd[52] = CreateDynamicObject(1715,254.52194214,83.14797974,1001.44531250,0.00000000,0.00000000,224.00000000, -1, -1, -1, 500.0); //object(kb_swivelchair2) (1)
  23556. lspd[53] = CreateDynamicObject(1715,256.47885132,83.04333496,1001.44531250,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(kb_swivelchair2) (2)
  23557. lspd[54] = CreateDynamicObject(1715,258.49404907,83.05972290,1001.44531250,0.00000000,0.00000000,179.99450684, -1, -1, -1, 500.0); //object(kb_swivelchair2) (3)
  23558. lspd[55] = CreateDynamicObject(2172,257.09881592,85.28472137,1001.44531250,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_1) (1)
  23559. lspd[56] = CreateDynamicObject(2172,255.19909668,86.29611969,1001.44531250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(med_office2_desk_1) (2)
  23560. lspd[57] = CreateDynamicObject(1671,258.12081909,85.42935944,1001.90551758,0.00000000,0.00000000,224.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (1)
  23561. lspd[58] = CreateDynamicObject(1671,256.06536865,85.38607025,1001.90551758,0.00000000,0.00000000,272.00000000, -1, -1, -1, 500.0); //object(swivelchair_a) (2)
  23562. lspd[59] = CreateDynamicObject(1828,218.60507202,80.15821075,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(man_sdr_rug) (1)
  23563. lspd[60] = CreateDynamicObject(2002,220.38973999,82.46650696,1004.03906250,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(water_coolnu) (1)
  23564. lspd[61] = CreateDynamicObject(14604,219.53727722,82.30939484,1005.01971436,0.00000000,0.00000000,180.00000000, -1, -1, -1, 500.0); //object(tv_stand_bike) (1)
  23565. lspd[62] = CreateDynamicObject(2815,246.18954468,62.10572052,1002.64062500,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(gb_livingrug01) (1)
  23566. lspd[63] = CreateDynamicObject(2394,258.14593506,80.83593750,1003.68988037,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_clothes_step_1) (1)
  23567. lspd[64] = CreateDynamicObject(1361,249.90000916,71.63043213,1003.38397217,0.00000000,0.00000000,0.00000000, -1, -1, -1, 500.0); //object(cj_bush_prop2) (2)
  23568. //SAST fix
  23569. CreateDynamicObject(14843,320.89608765,319.73565674,999.45233154,0.00000000,0.00000000,90.00000000, -1, -1, -1, 500.0); //object(int_policea01) (1)
  23570. //LSPD OBJECTS
  23571. pdbarriergateobj = CreateDynamicObject(968, 1544.682495, -1630.980000, 13.215000, 0.0000, 90.0000, 90.0000); //pd barrier gate
  23572. pdgaragegateobj = CreateDynamicObject(971, 1588.965698, -1637.882690, 15.260185, 0.0000, 0.0000, 180.0000); //pd garage gate
  23573. LSPD_Door[ObjectID1] = CreateDynamicObject(14819, 246.4050, 72.3000, 1003.6700, 0.0000, 0.0000, 180.0000); //door 01
  23574. LSPD_Door[ObjectID2] = CreateDynamicObject(14819, 246.4050, 72.5750, 1003.6650, 0.0000, 0.0000, 0.0000); //door 02
  23575. LSPD_Door[ObjectID3] = CreateDynamicObject(13360, 246.9850, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); //door block 01
  23576. LSPD_Door[ObjectID4] = CreateDynamicObject(13360, 245.8330, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); //door block 01
  23577. CreateDynamicObject(983, 1544.719238, -1620.600000, 13.213117, 0.0000, 0.0000, 0.0000); //front gate fence 01
  23578. CreateDynamicObject(983, 1544.704590, -1635.950000, 13.213117, 0.0000, 0.0000, 0.0000); //front gate fence 02
  23579. CreateDynamicObject(1334, 1544.863037, -1616.862305, 13.395647, 0.0000, 0.0000, 0.0000); //blue bin
  23580. CreateDynamicObject(1343, 1546.723389, -1617.042847, 13.139275, 0.0000, 0.0000, 180.0000); //small blue bin
  23581. CreateDynamicObject(1496, 1564.150513, -1667.3, 27.389730, 0.0000, 0.0000, 0.0000); //roof door
  23582. CreateDynamicObject(1496, 1582.600464, -1637.951782, 12.554016, 0.0000, 0.0000, 0.0000); //garage door
  23583. CreateDynamicObject(1507, 2263.2583, -1209.7000, 1048.0234, 0.0000, 0.0000, -90.0000); //vagosblock
  23584. CreateDynamicObject(1537, -2169.5890, 639.9550, 1051.4000, 0.0000, 0.0000, 0.0000); //yakuzablock
  23585. CreateDynamicObject(2567, 2225.1010, 1596.8000, 1000.9500, 0.0000, 0.0000, 0.0000); //drugfacblock 01
  23586. CreateDynamicObject(2567, 2194.9000, 1618.6484, 1000.9500, 0.0000, 0.0000, 90.0000); //drugfacblock 02
  23587. CreateDynamicObject(1685, 2205.9358, 1580.4000, 999.6800, 0.0000, 0.0000, 0.0000); //drugfaccbox
  23588. print("Stage 9");
  23589. //LSPD DOOR
  23590. CreateDynamicObject(13360,222.201110,68.510246,1005.039062,0.000000,0.000000,269.637847); //sideblock 1
  23591. CreateDynamicObject(13360,222.197418,68.508964,1006.065673,0.000000,0.000000,268.384521); //sideblock 2
  23592. CreateDynamicObject(13360,222.148254,71.100784,1005.039062,0.000000,0.000000,270.767974); //sideblock 3
  23593. CreateDynamicObject(13360,222.163452,71.105056,1005.673706,0.000000,0.000000,268.260955); //sideblock 4
  23594.  
  23595. door = CreateDynamicObject(1504, 222.09, 70.57, 1004.00, 0.00, 0.00, -90.00);
  23596. CreateDynamicObject(2167, 216.87, 66.90, 1004.00, 0.00, 0.00, 87.64);
  23597. CreateDynamicObject(2167, 216.91, 67.81, 1004.00, 0.00, 0.00, 87.64);
  23598. CreateDynamicObject(2167, 216.95, 68.73, 1004.00, 0.00, 0.00, 87.64);
  23599. CreateDynamicObject(1808, 217.13, 69.46, 1004.00, 0.00, 0.00, -268.51);
  23600. CreateDynamicObject(2164, 217.91, 65.81, 1004.00, 0.00, 0.00, 179.96);
  23601. CreateDynamicObject(2164, 221.44, 65.82, 1004.00, 0.00, 0.00, -180.75);
  23602. CreateDynamicObject(2164, 219.68, 65.82, 1004.00, 0.00, 0.00, -180.65);
  23603. CreateDynamicObject(2008, 219.13, 68.01, 1004.00, 0.00, 0.00, 0.00);
  23604. CreateDynamicObject(1714, 219.46, 66.77, 1004.00, 0.00, 0.00, 164.00);
  23605. CreateDynamicObject(1703, 217.90, 72.23, 1004.00, 0.00, 0.00, 0.00);
  23606. CreateDynamicObject(1776, 217.30, 70.39, 1004.99, 0.00, 0.00, -270.94);
  23607. CreateDynamicObject(2001, 217.31, 71.43, 1004.00, 0.00, 0.00, 0.00);
  23608. CreateDynamicObject(1714, 219.75, 69.42, 1004.00, 0.00, 0.00, -9.08);
  23609. CreateDynamicObject(1704, 220.74, 72.19, 1004.00, 0.00, 0.00, 0.00);
  23610. //MATPICKUP OBJECTS
  23611. CreateDynamicObject(944, 2386.495605, -2008.356934, 13.438490, 0.0000, 0.0000, 0.0000);
  23612. CreateDynamicObject(1271, 2387.261719, -2007.988037, 14.349586, 0.0000, 0.0000, 0.0000);
  23613. CreateDynamicObject(2358, 2386.569336, -2007.799561, 14.116121, 0.0000, 0.0000, 0.0000);
  23614. CreateDynamicObject(2359, 2384.486084, -2007.849976, 12.763988, 0.0000, 0.0000, 0.0000);
  23615. CreateDynamicObject(2358, 2387.232178, -2008.728516, 14.116121, 0.0000, 0.0000, 337.5000);
  23616. CreateDynamicObject(1635, 2395.528320, -2008.089722, 16.236403, 0.0000, 0.0000, 90.0000);
  23617. CreateDynamicObject(1522, 2389.684326, -2007.461548, 12.540270, 0.0000, 0.0000, 0.0000);
  23618. //MATDELIVER OBJECTS
  23619. CreateDynamicObject(3265, 2268.533447, -1136.080566, 27.139744, 0.0000, 0.0000, 351.4056);
  23620. CreateDynamicObject(984, 2294.078125, -1114.260376, 37.538239, 0.0000, 0.0000, 0.0000);
  23621. CreateDynamicObject(984, 2294.097168, -1101.486816, 37.537029, 0.0000, 0.0000, 0.0000);
  23622. CreateDynamicObject(944, 2284.854492, -1103.568726, 37.861351, 0.0000, 0.0000, 67.5000);
  23623. CreateDynamicObject(944, 2291.843994, -1103.760742, 37.861351, 0.0000, 0.0000, 168.7500);
  23624. CreateDynamicObject(964, 2283.867676, -1105.427246, 36.976563, 0.0000, 0.0000, 67.5000);
  23625. CreateDynamicObject(2358, 2284.159668, -1103.942505, 38.538982, 0.0000, 0.0000, 67.5000);
  23626. //TRIADS OBJECTS
  23627. CreateDynamicObject(3525, 1193.078979, -1651.859863, 14.268278, 0.0000, 0.0000, 0.0000); //flame 01
  23628. CreateDynamicObject(3525, 1189.237183, -1651.868774, 14.293088, 0.0000, 0.0000, 0.0000); //flame 02
  23629. CreateDynamicObject(2025, 774.7000, -49.5000, 999.6000, 0.0000, 0.0000, 180.0000); //triadsblock 01
  23630. CreateDynamicObject(2025, 774.7000, -50.3600, 999.6000, 0.0000, 0.0000, 180.0000); //triadsblock 02
  23631. CreateDynamicObject(2025, 774.7000, -49.5000, 1002.1000, 0.0000, 0.0000, 180.0000); //triadsblock 03
  23632. CreateDynamicObject(2025, 774.7000, -50.3600, 1002.1000, 0.0000, 0.0000, 180.0000); //triadsblock 04
  23633. //HOUSE OBJECTS
  23634. CreateDynamicObject(1966, 224.722000, 1023.607421, 1085.373657, 0.000000, 0.000000, 0.000000);
  23635. CreateDynamicObject(1966, 224.664855, 1020.942382, 1088.083496, 90.240844, 0.000000, 0.000000);
  23636. CreateDynamicObject(1506, 251.262512, 1034.215698, 1083.546020, 0.000000, 0.000000, 90.000000);
  23637. CreateDynamicObject(1980, 234.153518, 1068.797607, 1084.867309, 0.000000, 0.000000, 90.000000);
  23638. CreateDynamicObject(1754, 231.707962, 1069.478881, 1083.190185, 0.000000, 0.000000, 180.000000);
  23639. CreateDynamicObject(1754, 236.683090, 1069.543945, 1083.182373, 0.000000, 0.000000, 180.000000);
  23640. CreateDynamicObject(1742,235.386962,1068.583618,1083.177368,0.000000,0.000000,179.168533);
  23641. CreateDynamicObject(1742,233.408523,1068.524658,1083.172973,0.000000,0.000000,178.855194);
  23642. CreateDynamicObject(630,234.080718,1069.329833,1084.194213,0.000000,0.000000,181.154983);
  23643. //AZTECA OBJECTS
  23644. CreateDynamicObject(1966, -2636.6692, 1403.0565, 908.2300, 0.0000, 0.0000, 0.0000); //entrance block
  23645. //AIRPORT OBJECTS
  23646. CreateDynamicObject(1683, 1872.291626, -2283.772705, 18.449501, 0.0000, 0.0000, 0.0000);
  23647. CreateDynamicObject(1681, 1995.646240, -2382.106934, 14.674913, 0.0000, 0.0000, 90.0000);
  23648. CreateDynamicObject(1681, 1996.920410, -2315.446533, 14.724913, 0.0000, 0.0000, 90.0000);
  23649. CreateDynamicObject(1683, 1728.122070, -2420.928711, 18.457298, 0.0000, 0.0000, 270.0000);
  23650. CreateDynamicObject(1683, 1647.249756, -2420.928711, 18.457314, 0.0000, 0.0000, 270.0000);
  23651. //CITYHALL OBJECTS
  23652. CreateDynamicObject(4848, 392.889465, 171.200653, 1010.368469, 0.0000, 0.0000, 270.0000); //entrance block
  23653. CreateDynamicObject(630, 385.967163, 170.149429, 1008.407959, 0.0000, 0.0000, 0.0000); //plant
  23654. CreateDynamicObject(630, 385.941071, 177.544662, 1008.407959, 0.0000, 0.0000, 146.2500); //plant
  23655. //Prison Inside // COMMENTED
  23656. CreateDynamicObject(14412, 1789.184448, -1569.734131, 1645.317383, 0.000000, 0.000000, 0.000000);
  23657. CreateDynamicObject(18553, 1757.807495, -1577.933228, 1641.404663, 0.000000, 0.000000, -180.859341949);
  23658. CreateDynamicObject(1800, 1771.276611, -1584.358398, 1635.990845, 0.000000, 0.000000, 0.000000);
  23659. CreateDynamicObject(1966, 1770.740234, -1583.169922, 1637.284180, 0.000000, 0.000000, 89.999981276);
  23660. CreateDynamicObject(1966, 1776.392700, -1583.226563, 1637.359253, 0.000000, 0.000000, 89.999981276);
  23661. CreateDynamicObject(1966, 1798.508789, -1583.209229, 1637.310425, 0.000000, 0.000000, 89.999981276);
  23662. CreateDynamicObject(2514, 1775.742798, -1582.768799, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23663. CreateDynamicObject(1508, 1806.459961, -1576.635376, 1637.506836, 0.000000, 0.000000, 0.000000);
  23664. CreateDynamicObject(14459, 1784.398560, -1569.747925, 1643.005615, 0.000000, 0.000000, 0.000000);
  23665. CreateDynamicObject(14414, 1768.359863, -1563.225098, 1636.910400, 0.000000, 0.000000, 179.999962552);
  23666. CreateDynamicObject(1499, 1766.208862, -1580.001831, 1640.113403, 0.000000, 0.000000, 269.999943828);
  23667. CreateDynamicObject(1499, 1766.235107, -1583.019409, 1640.106812, 0.000000, 0.000000, 90.0000385718);
  23668. CreateDynamicObject(8060, 1791.806763, -1535.868530, 1634.645874, -181.340741088, 0.000000, 0.000114591559026);
  23669. CreateDynamicObject(1966, 1776.405151, -1556.301025, 1637.259155, 0.000000, 0.000000, 89.999981276);
  23670. CreateDynamicObject(1966, 1781.872559, -1556.312622, 1637.260132, 0.000000, 0.000000, 89.999981276);
  23671. CreateDynamicObject(1966, 1787.494995, -1556.312012, 1637.309204, 0.000000, 0.000000, 89.999981276);
  23672. CreateDynamicObject(1966, 1793.112305, -1556.317383, 1637.309204, 0.000000, 0.000000, 89.999981276);
  23673. CreateDynamicObject(1966, 1798.479492, -1556.314819, 1637.334961, 0.000000, 0.000000, 89.999981276);
  23674. CreateDynamicObject(2514, 1801.900879, -1556.299805, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23675. CreateDynamicObject(2514, 1797.694580, -1556.320923, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23676. CreateDynamicObject(2514, 1792.343384, -1556.328247, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23677. CreateDynamicObject(2514, 1786.635132, -1556.303223, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23678. CreateDynamicObject(2514, 1775.718750, -1556.331665, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23679. CreateDynamicObject(2514, 1781.187256, -1556.340454, 1635.972778, 0.000000, 0.000000, -360.000039696);
  23680. CreateDynamicObject(1800, 1771.360718, -1559.318848, 1635.851929, 0.000000, 0.000000, 0.000000);
  23681. CreateDynamicObject(1800, 1777.049072, -1559.313843, 1635.801880, 0.000000, 0.000000, 0.000000);
  23682. CreateDynamicObject(1800, 1782.598267, -1559.296021, 1635.826904, 0.000000, 0.000000, 0.000000);
  23683. CreateDynamicObject(1800, 1788.114868, -1559.312378, 1635.801880, 0.000000, 0.000000, 0.000000);
  23684. CreateDynamicObject(1800, 1793.790649, -1559.328369, 1635.901978, 0.000000, 0.000000, 0.000000);
  23685. CreateDynamicObject(1800, 1799.285767, -1559.336670, 1635.901978, 0.000000, 0.000000, 0.000000);
  23686. CreateDynamicObject(16378, 1760.124512, -1569.561523, 1640.866821, 0.000000, 0.000000, 180.000019848);
  23687. CreateDynamicObject(16154, 1761.361694, -1562.671509, 1640.236450, 0.000000, 0.000000, -180.000019848);
  23688. CreateDynamicObject(2737, 1757.953247, -1566.131714, 1642.168091, 0.000000, 0.000000, 89.999981276);
  23689. Prison_Buttons[PrisonCells1] = CreateDynamicObject(14459, 1784.705322, -1589.811279, 1637.197510, 0.000000, 0.000000, 0.000000);
  23690. Prison_Buttons[PrisonCells2] = CreateDynamicObject(14459, 1784.613647, -1549.697021, 1637.217896, 0.000000, 0.000000, -359.9999824);
  23691. CreateDynamicObject(1966, 1781.853516, -1583.229004, 1637.334229, 0.000000, 0.000000, 89.999981276);
  23692. CreateDynamicObject(1966, 1787.537476, -1583.232300, 1637.343872, 0.000000, 0.000000, 89.999981276);
  23693. CreateDynamicObject(1966, 1793.307007, -1583.234009, 1637.309937, 0.000000, 0.000000, 89.999981276);
  23694. CreateDynamicObject(2514, 1781.272949, -1582.731934, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23695. CreateDynamicObject(2514, 1786.829224, -1582.760132, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23696. CreateDynamicObject(2514, 1792.491821, -1582.755005, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23697. CreateDynamicObject(2514, 1797.929688, -1582.738647, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23698. CreateDynamicObject(2514, 1802.001953, -1582.729614, 1635.972778, 0.000000, 0.000000, -180.000019848);
  23699. CreateDynamicObject(1800, 1777.064087, -1584.312622, 1635.977051, 0.000000, 0.000000, 0.000000);
  23700. CreateDynamicObject(1800, 1782.810181, -1579.774170, 1635.977051, 0.000000, 0.000000, -179.999962552);
  23701. CreateDynamicObject(1800, 1788.411133, -1579.764282, 1635.977051, 0.000000, 0.000000, -179.999962552);
  23702. CreateDynamicObject(1800, 1794.223511, -1579.755005, 1635.977051, 0.000000, 0.000000, -179.999962552);
  23703. CreateDynamicObject(1800, 1799.393555, -1579.773682, 1635.977051, 0.000000, 0.000000, -179.999962552);
  23704. //Prison Outside
  23705. CreateDynamicObject(2961, 1765.9000, -1574.0979, 1641.7, 0.000000, 0.000000, 270.0); // Cell Button
  23706. CreateDynamicObject(2961, 209.039398, 1813.174683, 22.5, 0.000000, 0.000000, 44.999990638); // Gate Button
  23707. CreateDynamicObject(18553, 226.373581, 1872.370239, 14.026321, 0.000000, 0.000000, -0.859436692696);
  23708. CreateDynamicObject(1508, 201.098923, 1869.536499, 13.755270, 0.000000, 0.000000, 0.000000);
  23709. CreateDynamicObject(1886, 201.656082, 1874.104370, 16.244650, 18.9076072393, 0.000000, 44.999990638); // Camera
  23710. CreateDynamicObject(1886, 159.715179, 1931.205322, 32.528725, 16.3292971612, 0.000000, 292.500053739); // Camera
  23711. CreateDynamicObject(1886, 264.598419, 1893.736816, 32.537567, 16.3292971612, 0.000000, 270.000001124); // Camera
  23712. CreateDynamicObject(1886, 167.735580, 1848.043457, 32.510399, 16.3292971612, 0.000000, 90.0000385718); // Camera
  23713. CreateDynamicObject(1886, 460.5567,-92.2545,1002.25, 10.0, 0.0, 235.0); // Camera
  23714. CreateDynamicObject(1886, 1766.85, -1570.11, 1646.0, 15.0, 0.0, 90.0); // Camera
  23715. CreateDynamicObject(3998, 284.808838, 1892.831299, 3.370023, 0.000000, 0.000000, 89.999981276); //
  23716. CreateDynamicObject(1886, 265.112061, 1862.907837, 12.618983, 18.9076072393, 0.000000, 44.999990638); // Camera
  23717. CreateDynamicObject(1555, 267.993896, 1864.183838, 7.767914, 0.000000, 0.000000, 0.000000); //
  23718. CreateDynamicObject(16095, 267.381104, 1867.212524, 7.609875, 0.000000, 0.000000, 0.000000); //
  23719. CreateDynamicObject(16095, 286.108734, 1868.651123, 7.752488, 0.000000, 0.000000, -89.999981276); //
  23720. Prison_Buttons[PrisonGate] = CreateDynamicObject(8674, 96.808670, 1920.512817, 16.234968, 0.000000, 90.2408527331, -89.999981276);
  23721. CreateDynamicObject(1216, 185.3808, 1923.9442, 17.4, 0.000000, 0.0, 0.0);
  23722. CreateDynamicObject(1505, -221.9176, 1404.6, 26.6, 0.000000, 0.000000, -90.00000); // Lil Probe Inn Door For Locker Room
  23723. CreateDynamicObject(5822, 1150.8000488281, -1382.5999755859, 20.290000915527, 0, 0, 93.654907226563); // All Saints Stairs
  23724. //atms
  23725. CreateDynamicObject(2622, 1747.91, -1862.89, 13.41, 0.00, 0.00, 0.00);
  23726. CreateDynamicObject(2942,1928.673461,-1783.487304,13.114453,0.000000,0.000000,90.431625); //atm object
  23727. CreateDynamicObject(2942,2228.281982,-1710.821166,13.177772,0.000000,0.000000,269.949920); // atm object gym
  23728. CreateDynamicObject(2618,2228.382324,-1710.860961,12.549647,0.000000,0.000000,269.315551); // atm protection gym
  23729. // CIA Headquarters
  23730. CreateDynamicObject(1526,-1617.47692871,716.51867676,19.20186996,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (1)
  23731. CreateDynamicObject(1257,-1623.14575195,717.65960693,14.81492615,0.00000000,0.00000000,269.99996948); //object(bustopm) (1)
  23732. CreateDynamicObject(1526,-2634.37548828,631.59533691,17.45034409,0.00000000,0.00000000,90.00000000); //object(tag_rifa) (2)
  23733. CreateDynamicObject(1526,-2661.07348633,984.68389893,65.13790131,0.00000000,2.00000000,272.00000000); //object(tag_rifa) (3)
  23734. CreateDynamicObject(1526,-2651.61499023,985.46691895,65.58100891,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (4)
  23735. CreateDynamicObject(1526,-2668.27612305,998.12036133,63.26943207,0.34835815,85.01214600,356.01516724); //object(tag_rifa) (5)
  23736. CreateDynamicObject(1526,-2590.52832031,991.52233887,79.95872498,0.00000000,0.00000000,269.99996948); //object(tag_rifa) (6)
  23737. CreateDynamicObject(987,1009.87573242,1183.89599609,9.82031250,0.00000000,0.00000000,358.00000000); //object(elecfence_bar) (1)
  23738. CreateDynamicObject(987,998.19226074,1182.05139160,9.82031250,0.00000000,0.00000000,9.99499512); //object(elecfence_bar) (2)
  23739. CreateDynamicObject(987,986.47332764,1180.12109375,9.82031250,0.00000000,0.00000000,9.99206543); //object(elecfence_bar) (3)
  23740. CreateDynamicObject(987,974.63098145,1179.60986328,9.82031250,0.00000000,0.00000000,3.99206543); //object(elecfence_bar) (4)
  23741. CreateDynamicObject(987,962.67022705,1179.01489258,9.82031250,0.00000000,0.00000000,3.98803711); //object(elecfence_bar) (5)
  23742. CreateDynamicObject(987,962.31921387,1167.11499023,9.82031250,0.00000000,0.00000000,88.48803711); //object(elecfence_bar) (6)
  23743. CreateDynamicObject(987,961.76495361,1155.12548828,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (7)
  23744. CreateDynamicObject(987,961.30187988,1143.21569824,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (8)
  23745. CreateDynamicObject(987,961.03649902,1131.45910645,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (9)
  23746. CreateDynamicObject(987,960.59680176,1119.57629395,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (10)
  23747. CreateDynamicObject(987,960.08410645,1107.66589355,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (11)
  23748. CreateDynamicObject(987,959.61975098,1095.80651855,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (12)
  23749. CreateDynamicObject(987,959.22808838,1083.83142090,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (13)
  23750. CreateDynamicObject(987,958.55352783,1071.82104492,9.82031250,0.00000000,0.00000000,88.48388672); //object(elecfence_bar) (14)
  23751. CreateDynamicObject(987,969.37207031,1066.98559570,9.82031250,0.00000000,0.00000000,156.48388672); //object(elecfence_bar) (15)
  23752. CreateDynamicObject(987,980.07977295,1061.97180176,9.82031250,0.00000000,0.00000000,156.48376465); //object(elecfence_bar) (16)
  23753. CreateDynamicObject(987,1148.75756836,995.94769287,9.82031250,0.00000000,0.00000000,224.48390198); //object(elecfence_bar) (17)
  23754. CreateDynamicObject(987,1156.45617676,1005.07177734,9.82031250,0.00000000,0.00000000,230.48364258); //object(elecfence_bar) (18)
  23755. CreateDynamicObject(987,1162.07678223,1015.40466309,9.82031250,0.00000000,0.00000000,242.48214722); //object(elecfence_bar) (19)
  23756. CreateDynamicObject(987,1167.04577637,1026.12353516,9.82031250,0.00000000,0.00000000,245.72926331); //object(elecfence_bar) (20)
  23757. CreateDynamicObject(987,1170.99609375,1037.35009766,9.82031250,0.00000000,0.00000000,251.72570801); //object(elecfence_bar) (21)
  23758. CreateDynamicObject(987,1173.12219238,1049.05053711,9.82031250,0.00000000,0.00000000,259.72424316); //object(elecfence_bar) (22)
  23759. CreateDynamicObject(987,1173.84326172,1061.05541992,9.82031250,0.00000000,0.00000000,267.22229004); //object(elecfence_bar) (23)
  23760. CreateDynamicObject(987,1174.63818359,1073.06420898,9.82031250,0.00000000,0.00000000,267.22045898); //object(elecfence_bar) (24)
  23761. CreateDynamicObject(987,1173.02539062,1084.92895508,9.82031250,0.00000000,0.00000000,277.22045898); //object(elecfence_bar) (25)
  23762. CreateDynamicObject(987,1170.63586426,1096.60864258,9.82031250,0.00000000,0.00000000,281.96801758); //object(elecfence_bar) (26)
  23763. CreateDynamicObject(987,1166.53430176,1107.88818359,9.82031250,0.00000000,0.00000000,291.21411133); //object(elecfence_bar) (27)
  23764. CreateDynamicObject(987,1161.19140625,1118.79028320,9.82031250,0.00000000,0.00000000,297.20910645); //object(elecfence_bar) (28)
  23765. CreateDynamicObject(987,1154.10510254,1128.92004395,9.82031250,0.00000000,0.00000000,305.20761108); //object(elecfence_bar) (29)
  23766. CreateDynamicObject(987,1147.26391602,1138.66674805,9.82031250,0.00000000,0.00000000,305.20568848); //object(elecfence_bar) (30)
  23767. CreateDynamicObject(987,1139.86157227,1148.15722656,9.82031250,0.00000000,0.00000000,308.95568848); //object(elecfence_bar) (31)
  23768. CreateDynamicObject(987,1131.32604980,1156.67053223,9.82031250,0.00000000,0.00000000,315.95202637); //object(elecfence_bar) (32)
  23769. CreateDynamicObject(987,1121.66491699,1163.87158203,9.82031250,0.00000000,0.00000000,324.45031738); //object(elecfence_bar) (33)
  23770. CreateDynamicObject(987,1110.84423828,1168.88916016,9.82031250,0.00000000,359.00000000,335.44830322); //object(elecfence_bar) (34)
  23771. CreateDynamicObject(987,1099.96289062,1174.34887695,9.82031250,0.00000000,358.99475098,335.44555664); //object(elecfence_bar) (35)
  23772. CreateDynamicObject(987,1088.29650879,1177.26867676,9.82031250,0.00000000,358.99475098,345.94555664); //object(elecfence_bar) (36)
  23773. CreateDynamicObject(987,1076.59924316,1180.58801270,9.82031250,0.00000000,358.99475098,345.94299316); //object(elecfence_bar) (37)
  23774. CreateDynamicObject(987,1064.86840820,1181.68896484,9.82031250,0.00000000,358.99475098,355.44299316); //object(elecfence_bar) (38)
  23775. CreateDynamicObject(987,1052.85339355,1182.07128906,9.82031250,0.00000000,358.99475098,358.19067383); //object(elecfence_bar) (39)
  23776. CreateDynamicObject(987,1033.19323730,1183.15014648,9.82031250,0.00000000,358.99475098,0.93725586); //object(elecfence_bar) (40)
  23777. CreateDynamicObject(987,1041.94274902,1183.11389160,9.82031250,0.00000000,358.99475098,356.93383789); //object(elecfence_bar) (41)
  23778. CIAGate = CreateDynamicObject(980,1027.46203613,1183.29357910,12.45144653,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
  23779.  
  23780. //CreateDynamicObject(2930,209.07063293,178.95849609,1004.66809082,0.00000000,0.00000000,0.00000000); //object(chinatgate) (2)
  23781. //CreateDynamicObject(2930,209.07063293,178.95849609,1004.66809082,0.00000000,0.00000000,0.00000000); //object(chinatgate) (3)
  23782. CreateDynamicObject(2957,236.66204834,139.70629883,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (1)
  23783. CreateDynamicObject(2957,240.99508667,139.72036743,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (2)
  23784. CreateDynamicObject(2957,236.66113281,139.70605469,1004.51910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (4)
  23785. CreateDynamicObject(2957,241.00291443,139.70594788,1004.51910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (5)
  23786. CreateDynamicObject(2946,239.38481140,139.79792786,1002.02343750,0.00000000,0.00000000,92.50000000); //object(cr_door_03) (1)
  23787. CreateDynamicObject(2957,246.77481079,169.49732971,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (6)
  23788. CreateDynamicObject(2957,242.35049438,169.42684937,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (7)
  23789. CreateDynamicObject(2957,237.95040894,169.35693359,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (8)
  23790. CreateDynamicObject(2957,236.70050049,169.33660889,1003.64324951,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (9)
  23791. CreateDynamicObject(2957,246.77441406,169.49707031,1006.79632568,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (11)
  23792. CreateDynamicObject(2957,246.77441406,169.49707031,1009.87432861,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (12)
  23793. CreateDynamicObject(2957,242.34960938,169.42675781,1006.76910400,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (13)
  23794. CreateDynamicObject(2957,242.34960938,169.42675781,1009.84368896,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (14)
  23795. CreateDynamicObject(2957,236.70019531,169.33593750,1006.74627686,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (15)
  23796. CreateDynamicObject(2957,236.70019531,169.33593750,1009.27227783,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (16)
  23797. CreateDynamicObject(2957,237.95019531,169.35644531,1006.74334717,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (18)
  23798. CreateDynamicObject(2957,237.95019531,169.35644531,1009.74261475,0.00000000,0.00000000,0.00000000); //object(chinatgaragedoor) (19)
  23799. CreateDynamicObject(2946,224.23780823,189.35128784,1002.03125000,0.00000000,0.00000000,90.75000000); //object(cr_door_03) (2)
  23800.  
  23801. CreateDynamicObject(1557, 238.6,1084.64,1083.2, 0.0, 0.0, 0.0); // LBCC Door
  23802. CreateDynamicObject(1508, 2571.2, -1302.0, 1044.8, 0.0, 0.0, 0.0); // LBCC Lower Door
  23803. CreateDynamicObject(1508, 2522.66, -1302.4, 1048.6, 0.0, 0.0, 0.0); // LBCC Higher Door
  23804.  
  23805. CreateDynamicObject(1557, 1240.30, -810.765, 1083.02, 0.0, 0.0, 270.0);
  23806. CreateDynamicObject(1557, 1240.30, -813.80, 1083.02, 0.0, 0.0, 90.0);
  23807. CreateDynamicObject(1557, 1225.025, -814.2, 1083.02, 0.0, 0.0, 0.0);
  23808. CreateDynamicObject(1557, 1228.045, -814.2, 1083.02, 0.0, 0.0, 180.0);
  23809. //The Walton Cartel
  23810. CreateDynamicObject(5779, 1133.0580, -11.67, 1001.2, 0.0, 0.0, 270.0); // The Walton Cartel Casino Door Block
  23811.  
  23812.  
  23813. print("Stage 10");
  23814. for(new h = 0; h < sizeof(FamilyInfo); h++)
  23815. {
  23816. FamilyInfo[h][PickupID] = CreateDynamicPickup(1210, 23, FamilyInfo[h][FamilySafePos][0],FamilyInfo[h][FamilySafePos][1], FamilyInfo[h][FamilySafePos][2], 0, -1, -1, 100.0 );
  23817. }
  23818. LoadHouse();
  23819. for(new h = 0; h < sizeof(HouseInfo); h++)
  23820. {
  23821. if(HouseInfo[h][hLocation_x]!=0.000000)
  23822. {
  23823. if(HouseInfo[h][hOwned] == 0)
  23824. {
  23825. new VString[255];
  23826. new price = HouseInfo[h][hPrice];
  23827. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", price,HouseInfo[h][hLevel]);
  23828. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  23829. //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 31, 0);
  23830. }
  23831. else if(HouseInfo[h][hOwned] == 1)
  23832. {
  23833. new VString[255];
  23834. new name[25], owner[MAX_PLAYER_NAME];
  23835. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  23836. strmid(name, HouseInfo[h][hName], 0, strlen(HouseInfo[h][hName]), 255);
  23837. if(HouseInfo[h][hRentable] == 0)
  23838. {
  23839. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[h][hLevel],owner);
  23840. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  23841. }
  23842. if(HouseInfo[h][hRentable] == 1)
  23843. {
  23844. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[h][hLevel],owner,HouseInfo[h][hRent]);
  23845. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  23846. }
  23847. //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 32, 0);
  23848. }
  23849. if(HouseInfo[h][hSafe] == 1)
  23850. {
  23851. HouseSafe[h] = CreateDynamicPickup(1210, 23, HouseInfo[h][hSafex],HouseInfo[h][hSafey], HouseInfo[h][hSafez], HouseInfo[h][hVirtualWorld], -1, -1, 100.0 );
  23852. }
  23853. HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]);
  23854. }
  23855. }
  23856. LoadBiz();
  23857. for(new h = 0; h < sizeof(BizInfo); h++)
  23858. {
  23859. if(BizInfo[h][bLocation_x]!=0.000000)
  23860. {
  23861. if(BizInfo[h][bOwned] == 0 && BizInfo[h][bType] != 0)
  23862. {
  23863. new VString[255];
  23864. new price = BizInfo[h][bPrice];
  23865. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  23866. BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23867. BizPickup[h] = CreateDynamicPickup(1272, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23868. if(BizInfo[h][bType] == 1)
  23869. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 17, 0);
  23870. else if(BizInfo[h][bType] == 2)
  23871. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 49, 0);
  23872. else if(BizInfo[h][bType] == 3)
  23873. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 18, 0);
  23874. else if(BizInfo[h][bType] == 4)
  23875. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 50, 0);
  23876. else if(BizInfo[h][bType] == 5)
  23877. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 45, 0);
  23878. else if(BizInfo[h][bType] == 6)
  23879. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 25, 0);
  23880. else if(BizInfo[h][bType] == 7)
  23881. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 62, 0);
  23882. else if(BizInfo[h][bType] == 8)
  23883. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 36, 0);
  23884. }
  23885. if(BizInfo[h][bOwned] == 1 && BizInfo[h][bType] != 0)
  23886. {
  23887. new VString[255];
  23888. new name[25], owner[MAX_PLAYER_NAME];
  23889. strmid(owner, BizInfo[h][bOwner], 0, strlen(BizInfo[h][bOwner]), 255);
  23890. strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
  23891. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[h][bFee]);
  23892. BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23893. BizPickup[h] = CreateDynamicPickup(1272, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23894. if(BizInfo[h][bType] == 1)
  23895. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 17, 0);
  23896. else if(BizInfo[h][bType] == 2)
  23897. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 49, 0);
  23898. else if(BizInfo[h][bType] == 3)
  23899. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 18, 0);
  23900. else if(BizInfo[h][bType] == 4)
  23901. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 50, 0);
  23902. else if(BizInfo[h][bType] == 5)
  23903. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 45, 0);
  23904. else if(BizInfo[h][bType] == 6)
  23905. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 25, 0);
  23906. else if(BizInfo[h][bType] == 7)
  23907. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 62, 0);
  23908. else if(BizInfo[h][bType] == 8)
  23909. BizIcon[h] = CreateDynamicMapIcon(BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], 36, 0);
  23910. }
  23911. if(BizInfo[h][bOwned] == 0 && BizInfo[h][bType] == 0)
  23912. {
  23913. new VString[255];
  23914. new name[25];
  23915. strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
  23916. format(VString,sizeof(VString),"%s", name);
  23917. BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23918. BizPickup[h] = CreateDynamicPickup(1239, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  23919. }
  23920. }
  23921. }
  23922. //DYNAMIC PICKUPS
  23923. CreateDynamicPickup(1239, 23, 1450.7286,-982.0809,1402.7000); // Robbank
  23924. CreateDynamic3DTextLabel("/robbank", COLOR_RED, 1450.7286,-982.0809,1402.7000, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
  23925. iVIPLounge1 = CreateDynamicPickup(1239, 23, 327.6485,-1512.1423,36.0325);//VIP Lounge Pickup (Enter) - PaNoULiS
  23926. iVIPCRACK = CreateDynamicPickup(1279, 23, -2673.5171,1398.4757,918.3516);//VIP crack
  23927. iVIPKNIFE = CreateDynamicPickup(335, 23, -2667.1187,1399.3182,918.3516);//VIP knife
  23928. iVIPSpas12 = CreateDynamicPickup(351, 23, -2654.3123,1424.4027,912.4063);//VIP spas
  23929. iVIPM4 = CreateDynamicPickup(356, 23, -2660.8079,1424.4830,912.4063);//VIP m4
  23930. iVIPAK47 = CreateDynamicPickup(355, 23, -2667.1355,1424.5560,912.4063);//VIP ak
  23931. iVIPARMOR = CreateDynamicPickup(1242, 23, -2670.8728,1429.4496,906.4609);//VIP armor
  23932. iVIPHP = CreateDynamicPickup(1240, 23, -2665.2717,1425.9445,906.4609);//VIP hp
  23933. iHeal1 = CreateDynamicPickup(1239, 23, 1205.7174,-1368.5072,1029.4792); //Hospital 1
  23934. iHeal2 = CreateDynamicPickup(1239, 23, 2029.5945,-1404.6426,17.2512); //Hospital 2
  23935. iDrughouse = CreateDynamicPickup(1575, 23, 323.0342,1118.5804,1083.8828); //Pot Get
  23936. iCracklab = CreateDynamicPickup(1575, 23, 2346.2937,-1185.2551,1027.9766); //Crack Get
  23937. iMget1 = CreateDynamicPickup(1239, 23, 1423.6151,-1320.5437,13.5547); //Materials Get 1
  23938. iMget2 = CreateDynamicPickup(1239, 23, 2390.4053,-2008.2618,13.5537); //Materials Get 2
  23939. iMget3 = CreateDynamicPickup(1239, 23, 765.1253,-1088.8364,24.0859); //Materials Get 3
  23940. CreateDynamicPickup(1239, 23, -500.5291,-528.6747,25.5234); //Materials factory 3
  23941. iCrateGet = CreateDynamicPickup(1239, 23, 2205.9199,1582.2222,999.9766); //Crate Get
  23942. iClothes = CreateDynamicPickup(1239, 23, 754.5243,-39.7095,1000.5859); //Triads Change Uniform
  23943. iArrest1 = CreateDynamicPickup(1247, 23, 1528.3268,-1677.8229,5.8906); //LSPD Arrest Garage
  23944. iArrest2 = CreateDynamicPickup(1247, 23, 1565.1511,-1658.2452,28.3956); //LSPD Arrest Roof
  23945. iArrest3 = CreateDynamicPickup(1247, 23, 615.2274,-584.8245,17.2266); //LSPD Arrest Dillimore
  23946. iArrest4 = CreateDynamicPickup(1247, 23, 1028.0942,1046.1918,11.0000); //CIA Arrest point
  23947. iDeliver = CreateDynamicPickup(1247, 23, 1993.1749,-2313.1492,13.5469); //LSPD Airport Deliver
  23948. iSprunk = CreateDynamicPickup(1239, 23, 1324.2122,286.5997,20.0452); //Sprunk Factory
  23949. CreateDynamicPickup(1239, 23, 375.5890,180.6613,1014.1875);
  23950. iFBI = CreateDynamicPickup(1239, 23, 266.1936,108.6017,1004.6172); //FBI
  23951. ipaintball = CreateDynamicPickup (1254,23,1310.2244,-1368.6892,13.5526); //paintball
  23952. iVault = CreateDynamicPickup (1254,23,2311.6445,-0.5010,26.7422); //vault
  23953. //JOBS
  23954. iDetective = CreateDynamicPickup(1239, 23, 256.6144,69.6090,1003.6406); //Detective
  23955. iLawyer = CreateDynamicPickup(1239, 23, 1381.0413,-1088.8511,27.3906); //Lawyer
  23956. iDealer = CreateDynamicPickup(1239, 23, 2166.3772,-1675.3829,15.0859); //Drug Dealer
  23957. iMechanic = CreateDynamicPickup(1239, 23, 2329.4089,-2316.0996,13.5469); //Mechanic
  23958. iBodyguard = CreateDynamicPickup(1239, 23, 2226.1716,-1718.1792,13.5165); //Bodyguard
  23959. iArms = CreateDynamicPickup(1239, 23, 1366.4325,-1275.2096,13.5469); //Arms Dealer
  23960. iProd = CreateDynamicPickup(1239, 23, 545.6451,-1293.9248,17.2422); //Prod Dealer
  23961. iProd2 = CreateDynamicPickup(1239, 23, 553.7549,-1314.1748,17.2422); //Prod Get
  23962. // iTrashman = CreateDynamicPickup(1239, 23, 2194.2087,-1972.5421,13.5593); // Trashman
  23963. // iTrashUniform = CreateDynamicPickup(1275, 23, 2200.5842,-1970.2686,13.7841); // Trashman Uniform
  23964. iTaxi = CreateDynamicPickup(1239, 23, 1741.7062,-1863.6664,13.5748); //Taxi
  23965. iSmuggler = CreateDynamicPickup(1239, 23, 2354.2703,-1169.3293,28.0083); //Drug Smuggler
  23966. iTraining = CreateDynamicPickup(1239, 23, 1230.1525,-772.6310,1084.0127); //Training
  23967. //WEAPONS
  23968. CreateDynamicPickup(1279, 2, 2346.1479,-1185.3992,1027.9766); // Crack lab pickup
  23969. para = CreateDynamicPickup(371, 2, 1544.2,-1353.4,329.4); //Parachute
  23970. dildo = CreateDynamicPickup(321, 2, 261.6014,71.2014,1003.2422); //PD Dildo
  23971. poolcue = CreateDynamicPickup(338, 2, 508.2798,-85.0735,998.9609); //10GB Poolcue
  23972. //dion
  23973. iOrder = CreateDynamicPickup(1210, 23, 971.5425,-43.2693,1001.1172,826097210,-1,-1,100.0);
  23974. iOrder2 = CreateDynamicPickup(1210, 23,210.5087,188.0434,1003.0313);
  23975. //STATIC PICKUPS
  23976. iPoint1 = CreateDynamicPickup(1239, 23, 2629.4319,-2107.8040,16.9531); //Fossil Fuel
  23977. iPoint2 = CreateDynamicPickup(1239, 23, 2729.9077,-2451.4514,17.5937); //Auto Export
  23978. iPoint3 = CreateDynamicPickup(1239, 23, 2172.1880,-2263.9683,13.3363); //Materials Deliver 1
  23979. iPoint4 = CreateDynamicPickup(1239, 23, 2288.0730,-1105.4535,37.9766); //Materials Deliver 2
  23980. new tmphour;
  23981. new tmpminute;
  23982. new tmpsecond;
  23983. gettime(tmphour, tmpminute, tmpsecond);
  23984. FixHour(tmphour);
  23985. tmphour = shifthour;
  23986. SetWorldTime(tmphour);
  23987. txtAnimHelper = TextDrawCreate(610.0, 400.0,
  23988. "~r~~k~~PED_SPRINT~ ~w~to stop the animation");
  23989. TextDrawUseBox(txtAnimHelper, 0);
  23990. TextDrawFont(txtAnimHelper, 2);
  23991. TextDrawSetShadow(txtAnimHelper,0);
  23992. TextDrawSetOutline(txtAnimHelper,1);
  23993. TextDrawBackgroundColor(txtAnimHelper,0x000000FF);
  23994. TextDrawColor(txtAnimHelper,0xFFFFFFFF);
  23995. TextDrawAlignment(txtAnimHelper,3);
  23996. synctimer = SetTimer("SyncUp", 60000, 1);
  23997. savechartimer = SetTimer("SaveChars", 120000, 1); //20 mins
  23998. unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
  23999. othtimer = SetTimer("OtherTimer", 1000, 1);
  24000. cartimer = SetTimer("CarCheck", 30000, 1);
  24001. pickuptimer = SetTimer("CustomPickups", 5000, 1); // 5 seconds
  24002. autokicktimer = SetTimer("AutoKick", 40000, 1); // 5 seconds
  24003. productiontimer = SetTimer("Production", 300000, 1); //5 mins
  24004. checkgastimer = SetTimer("CheckGas", 45000, 1);
  24005. stoppedvehtimer = SetTimer("StoppedVehicle", 15000, 1);
  24006. SetTimer("WeedTimer", 1000, 1);
  24007. botanimtimer = SetTimer("ApplyNPCAnims", 10000, 1); //10 seconds
  24008. print("Stage 11");
  24009. LoadCar();
  24010. for(new h = 1; h < sizeof(CarInfo); h++)
  24011. {
  24012. if (CarInfo[h][tModel] != 0)
  24013. {
  24014. CarSys[h] = AddStaticVehicleEx(CarInfo[h][tModel],CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz],CarInfo[h][tAngle],CarInfo[h][tColorOne],CarInfo[h][tColorTwo],60000);
  24015. if(CarInfo[h][tPaintjob] != 999)
  24016. {
  24017. ChangeVehiclePaintjob(h, CarInfo[h][tPaintjob]);
  24018. }
  24019. if(CarInfo[h][tOwned] == 0 && CarInfo[h][tOwnable] == 1)
  24020. {
  24021. new VString[255];
  24022. new price = CarInfo[h][tPrice];
  24023. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
  24024. VehicleLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz], 20, INVALID_PLAYER_ID, h, 0, -1, -1, -1, 100.0);
  24025. }
  24026. if(CarInfo[h][tOwned] == 0 && CarInfo[h][tRentable] == 1)
  24027. {
  24028. new VString[255];
  24029. new price = CarInfo[h][tPrice];
  24030. format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
  24031. VehicleLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[h][tLocationx],CarInfo[h][tLocationy],CarInfo[h][tLocationz], 20, INVALID_PLAYER_ID, h, 0, -1, -1, -1, 100.0);
  24032. }
  24033. if(CarInfo[h][Neon] == 1)
  24034. {
  24035. ObjectSelect[h][0] = CreateDynamicObject(CarInfo[h][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  24036. ObjectSelect[h][1] = CreateDynamicObject(CarInfo[h][NeonObject],-0.8, 0.0, -0.55,0.00000000,0.00000000,0.00000000);
  24037. AttachObjectToVehicle(ObjectSelect[h][0], h, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  24038. AttachObjectToVehicle(ObjectSelect[h][1], h, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
  24039. }
  24040. new plate[10];
  24041. strmid(plate, CarInfo[h][tLicensePlate], 0, strlen(CarInfo[h][tLicensePlate]), 255);
  24042. SetVehicleNumberPlate(h, plate);
  24043. }
  24044. }
  24045. f_init();
  24046. SendRconCommand("reloadfs CustomMapping");
  24047. print("Stage End");
  24048. return 1;
  24049. }
  24050.  
  24051.  
  24052. public SyncUp()
  24053. {
  24054. SyncTime();
  24055. DollahScoreUpdate();
  24056. }
  24057.  
  24058. public SaveChars()
  24059. {
  24060. //foreach(Player, i)
  24061. for(new i; i<MAX_PLAYERS; i++)
  24062. {
  24063. if(IsPlayerConnected(i))
  24064. {
  24065. if(GetPlayerState(i) != PLAYER_STATE_SPECTATING)
  24066. {
  24067. OnPlayerSave(i);
  24068. }
  24069. }
  24070. }
  24071. for(new h = 0; h < sizeof(HouseInfo); h++)
  24072. {
  24073. if(HouseInfo[h][hRenters] < 0)
  24074. {
  24075. HouseInfo[h][hRenters] = 0;
  24076. }
  24077. }
  24078. SaveCar();
  24079. SaveHouse();
  24080. SaveBiz();
  24081. SaveFamilies();
  24082. }
  24083.  
  24084. public SyncTime()
  24085. {
  24086. new string[64];
  24087. new tmphour;
  24088. new tmpminute;
  24089. new tmpsecond;
  24090. gettime(tmphour, tmpminute, tmpsecond);
  24091. FixHour(tmphour);
  24092. tmphour = shifthour;
  24093. if((tmphour > ghour) || (tmphour == 0 && ghour == 23))
  24094. {
  24095. format(string, sizeof(string), "SERVER: The time is now %d:00 hours",tmphour);
  24096. SendClientMessageToAll(COLOR_WHITE,string);
  24097. ghour = tmphour;
  24098. PayDay();
  24099. if(realtime)
  24100. {
  24101. SetWorldTime(tmphour);
  24102. }
  24103. }
  24104. }
  24105.  
  24106. public Production()
  24107. {
  24108. //foreach(Player, i)
  24109. for(new i; i<MAX_PLAYERS; i++)
  24110. {
  24111. if(IsPlayerConnected(i))
  24112. {
  24113. if(PlayerInfo[i][pFishes] >= 5)
  24114. {
  24115. if(FishCount[i] >= 3)
  24116. {
  24117. PlayerInfo[i][pFishes] = 0;
  24118. }
  24119. else
  24120. {
  24121. FishCount[i] += 1;
  24122. }
  24123. }
  24124. if(PlayerInfo[i][pPayDay] < 6)
  24125. {
  24126. PlayerInfo[i][pPayDay] += 1;
  24127. }
  24128. }
  24129. }
  24130. }
  24131.  
  24132. public PrisonCellCheck() // COMMENTED
  24133. {
  24134. if(Prison_Buttons[CellOpened] == 1)
  24135. {
  24136. MoveDynamicObject(Prison_Buttons[PrisonCells1], 1784.705322, -1589.811279, 1637.197510, 1.50);
  24137. MoveDynamicObject(Prison_Buttons[PrisonCells2], 1784.613647, -1549.697021, 1637.217896, 1.50);
  24138. Prison_Buttons[CellOpened] = 0;
  24139. }
  24140. }
  24141.  
  24142. public PrisonGateCheck()
  24143. {
  24144. if(Prison_Buttons[GateOpened] == 1)
  24145. {
  24146. MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1920.512817, 16.234968, 1.50);
  24147. Prison_Buttons[GateOpened] = 0;
  24148. }
  24149. }
  24150. public CountDownCheck()
  24151. {
  24152. SendClientMessageToAll(COLOR_LIGHTBLUE, " 3");
  24153. SetTimer("CountDownCheck2", 1000, 0);
  24154. }
  24155. public CountDownCheck2()
  24156. {
  24157. SendClientMessageToAll(COLOR_LIGHTBLUE, " 2");
  24158. SetTimer("CountDownCheck3", 1000, 0);
  24159. }
  24160. public CountDownCheck3()
  24161. {
  24162. SendClientMessageToAll(COLOR_LIGHTBLUE, " 1");
  24163. SetTimer("CountDownCheckGo", 1000, 0);
  24164. }
  24165. public CountDownCheckGo()
  24166. {
  24167. SendClientMessageToAll(COLOR_LIGHTBLUE, " Go !");
  24168. }
  24169. public PDDoorCheck()
  24170. {
  24171. if(LSPD_Door[Opened] == 1)
  24172. {
  24173. MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
  24174. MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
  24175. MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
  24176. MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
  24177. LSPD_Door[Opened] = 0; KillTimer(LSPD_Door[TimerID]);
  24178. }
  24179. return 1;
  24180. }
  24181.  
  24182.  
  24183. strtok(const string[], &index)
  24184. {
  24185. new length = strlen(string);
  24186. while ((index < length) && (string[index] <= ' '))
  24187. {
  24188. index++;
  24189. }
  24190.  
  24191. new offset = index;
  24192. new result[20];
  24193. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  24194. {
  24195. result[index - offset] = string[index];
  24196. index++;
  24197. }
  24198. result[index - offset] = EOS;
  24199. return result;
  24200. }
  24201.  
  24202. public RobBank(playerid)
  24203. {
  24204. new string[256];
  24205. new sendername[MAX_PLAYER_NAME];
  24206. GetPlayerName(playerid, sendername, sizeof(sendername));
  24207. if(LoadingCashTime[playerid] > 0)
  24208. {
  24209. OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  24210. format(string, sizeof(string), "~r~%d minutes left", LoadingCashTime[playerid]);
  24211. GameTextForPlayer(playerid, string, 2000, 5);
  24212. LoadingCashTime[playerid]--;
  24213. SetTimerEx("RobBank", 60000, false, "d", playerid);
  24214. } else if(LoadingCashTime[playerid] == 0)
  24215. {
  24216. for(new i = 0; i < MAX_PLAYERS; i++)
  24217. if(LoadingCashType[i] != 0)
  24218. {
  24219. new randcash;
  24220. if (LoadingCashType[i] == 1) { randcash = 50000 + random(450000); }
  24221. if (LoadingCashType[i] == 2) { randcash = 50000 + random(950000); }
  24222. if (LoadingCashType[i] == 3) { randcash = 100000 + random(140000); }
  24223. format(string,sizeof(string),"** You've loaded your bag with $%d. Go to the safe place marked on your map within the next 30 minutes and you will keep them.",randcash);
  24224. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  24225. LoadedCash[i] = randcash;
  24226. new randlocation = random(3);
  24227. if (randlocation == 0) { SetPlayerCheckpoint(i, -1479.1213,2625.8848,58.7813, 4); }
  24228. if (randlocation == 1) { SetPlayerCheckpoint(i, 2927.0076,2099.7256,17.8955, 4); }
  24229. if (randlocation == 2) { SetPlayerCheckpoint(i, -1632.2328,-2239.1941,31.4766, 4); }
  24230. SetPlayerAttachedObject(i, bankbag, 1550, 1, 0.089511, -0.292143, 0.034006, 0.000000, 100.504928, 0.000000, 1.000000, 1.000000, 1.000000);
  24231. SetTimer("CheckRobberSafe", 1800000, 0);
  24232. }
  24233. }
  24234. }
  24235.  
  24236. public RobBankMove(playerid)
  24237. {
  24238. for(new i = 0; i < MAX_PLAYERS; i++)
  24239. if(LoadingCashType[i] != 0 && LoadedCash[i] == 0)
  24240. {
  24241. if(IsPlayerInRangeOfPoint(i,2.0,1448.0712,-984.1879,1402.7000))
  24242. {
  24243. SetTimer("RobBankMove", 3000, 0);
  24244. return 1;
  24245. }
  24246. else
  24247. {
  24248. new string[128];
  24249. format(string,sizeof(string),"** Move back to the loading position, you have 10 seconds.");
  24250. SendClientMessage(i, COLOR_WHITE, string);
  24251. SetTimer("RobBankMove2", 10000, 0);
  24252. return 1;
  24253. }
  24254. }
  24255. return 1;
  24256. }
  24257.  
  24258. public RobBankMove2(playerid)
  24259. {
  24260. for(new i = 0; i < MAX_PLAYERS; i++)
  24261. if(LoadingCashType[i] != 0 && LoadedCash[i] == 0)
  24262. {
  24263. if(IsPlayerInRangeOfPoint(i,2.0,1448.0712,-984.1879,1402.7000))
  24264. {
  24265. new string[128];
  24266. format(string,sizeof(string),"** You're back to the loading position, continue loading the money.");
  24267. SendClientMessage(i, COLOR_WHITE, string);
  24268. SetTimer("RobBankMove", 1, 0);
  24269. return 1;
  24270. }
  24271. else
  24272. {
  24273. new string[128];
  24274. format(string,sizeof(string),"** You moved from the loading position, robbery failed.");
  24275. SendClientMessage(i, COLOR_WHITE, string);
  24276. LoadingCashType[i] = 0;
  24277. LoadingCashTime[i] = 0;
  24278. LoadedCash[i] = 0;
  24279. BankRobbery = 0;
  24280. LoadingCash = 0;
  24281. DisablePlayerCheckpoint(i);
  24282. RemovePlayerAttachedObject(playerid,bankbag);
  24283. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  24284. SetTimer("CloseTheVault", 30000, 0);
  24285. VPass = 100000 + random(899999);
  24286. BankRobberyTime = 2;
  24287. SaveStuff();
  24288. return 1;
  24289. }
  24290. }
  24291. return 1;
  24292. }
  24293.  
  24294. public CashLoadCheck()
  24295. {
  24296. new checked = 0;
  24297. for(new i = 0; i < MAX_PLAYERS; i++)
  24298. {
  24299. if(LoadingCashType[i] != 0)
  24300. {
  24301. checked = 1;
  24302. }
  24303. }
  24304. if (checked == 1)
  24305. {
  24306. SetTimer("AnnounceRobbery", 10000, 0);
  24307. }
  24308. else
  24309. {
  24310. BankRobbery = 0;
  24311. LoadingCash = 0;
  24312. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: A Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  24313. SetTimer("CloseTheVault", 30000, 0);
  24314. VPass = 100000 + random(899999);
  24315. BankRobberyTime = 2;
  24316. SaveStuff();
  24317. for(new i = 0; i < MAX_PLAYERS; i++)
  24318. {
  24319. LoadingCashType[i] = 0;
  24320. LoadingCashTime[i] = 0;
  24321. LoadedCash[i] = 0;
  24322. }
  24323. return 1;
  24324. }
  24325. return 1;
  24326. }
  24327.  
  24328. public AnnounceRobbery()
  24329. {
  24330. new string[256];
  24331. SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: Bank Staff");
  24332. SendCopMessage(TEAM_BLUE_COLOR, "HQ: Crime: Bank Robbery, Suspect: Unknown");
  24333. format(string, 256, "City Alert: The Los Santos Bank is being robbed!");
  24334. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  24335. return 1;
  24336. }
  24337.  
  24338. public CheckRobberSafe(playerid)
  24339. {
  24340. for(new i = 0; i < MAX_PLAYERS; i++)
  24341. if(LoadingCashType[i] != 0)
  24342. {
  24343. new string[128];
  24344. format(string,sizeof(string),"** You moved from the loading position, robbery failed.");
  24345. SendClientMessage(i, COLOR_WHITE, string);
  24346. LoadingCashType[i] = 0;
  24347. LoadingCashTime[i] = 0;
  24348. LoadedCash[i] = 0;
  24349. BankRobbery = 0;
  24350. LoadingCash = 0;
  24351. DisablePlayerCheckpoint(i);
  24352. RemovePlayerAttachedObject(playerid,bankbag);
  24353. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  24354. SetTimer("CloseTheVault", 30000, 0);
  24355. VPass = 100000 + random(899999);
  24356. BankRobberyTime = 2;
  24357. SaveStuff();
  24358. }
  24359. return 1;
  24360. }
  24361.  
  24362. public CloseTheVault()
  24363. {
  24364. MoveDynamicObject(bankvaultdoor, 1450.19995117,-982.09997559,1403.00000000, 0.20, 0.00000000,0.00000000,270.00000000);
  24365. return 1;
  24366. }
  24367.  
  24368. public StartEngine(playerid, vehicleid)
  24369. {
  24370. new string[128];
  24371. new engine,lights,alarm,doors,bonnet,boot,objective;
  24372. new rand = random(10);
  24373. new Float:H;
  24374. GetVehicleHealth(vehicleid, H);
  24375. if(H <= 300)
  24376. return SendClientMessage(playerid, COLOR_GREY, "The engine is broken. You can't start the engine.");
  24377. if(Gas[vehicleid] <= 0)
  24378. return SendClientMessage(playerid, COLOR_GREY, "Your vehicle ran out of fuel.");
  24379. if(rand <= 8)
  24380. {
  24381. format(string, sizeof(string), "* %s has started the vehicle engine", PlayerName(playerid));
  24382. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  24383. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  24384. SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
  24385. CarInfo[vehicleid][tEngine] = 1;
  24386. return 1;
  24387. }
  24388. else
  24389. {
  24390. format(string, sizeof(string), "* %s attempts to start his engine but fails", PlayerName(playerid));
  24391. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  24392. return 1;
  24393. }
  24394. }
  24395.  
  24396. public StopEngine(playerid, vehicleid)
  24397. {
  24398. new string[128];
  24399. new engine,lights,alarm,doors,bonnet,boot,objective;
  24400. format(string, sizeof(string), "* %s has turned off the vehicle engine", PlayerName(playerid));
  24401. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  24402. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  24403. SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
  24404. CarInfo[vehicleid][tEngine] = 0;
  24405. return 1;
  24406. }
  24407.  
  24408. public lock1(playerid, vehicleid)
  24409. {
  24410. new engine,lights,alarm,doors,bonnet,boot,objective;
  24411. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  24412. SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
  24413. new Float:vX, Float:vY, Float:vZ;
  24414. GetVehiclePos(vehicleid, vX, vY, vZ);
  24415. for(new i; i<MAX_PLAYERS; i++)
  24416. {
  24417. if(IsPlayerInRangeOfPoint(i, 8, vX, vY, vZ))
  24418. {
  24419. PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);
  24420. }
  24421. }
  24422. SetTimerEx("lock2", 150, 0, "i", vehicleid);
  24423. return 1;
  24424. }
  24425.  
  24426. public lock2(vehicleid)
  24427. {
  24428. new engine,lights,alarm,doors,bonnet,boot,objective;
  24429. GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  24430. new Float:vX, Float:vY, Float:vZ;
  24431. GetVehiclePos(vehicleid, vX, vY, vZ);
  24432. for(new i; i<MAX_PLAYERS; i++)
  24433. {
  24434. if(IsPlayerInRangeOfPoint(i, 8, vX, vY, vZ))
  24435. {
  24436. PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);
  24437. }
  24438. }
  24439. SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
  24440. return 1;
  24441. }
  24442.  
  24443. public Disg(playerid)
  24444. {
  24445. new dis[MAX_PLAYERS];
  24446. dis[playerid] = Random(1, 299);
  24447. if(!InvSkin(dis[playerid]))
  24448. {
  24449. PlayerInfo[playerid][pModel] = dis[playerid];
  24450. SetPlayerSkin(playerid, dis[playerid]);
  24451. return 1;
  24452. }
  24453. SetTimerEx("Disg", 1000, false, "i", playerid);
  24454. return 1;
  24455. }
  24456.  
  24457. public CheckHacks2(playerid)
  24458. {
  24459. TogglePlayerControllable(playerid,1);
  24460. GetPlayerPos(playerid,PlayerInfo[playerid][pSPos_x],PlayerInfo[playerid][pSPos_y],PlayerInfo[playerid][pSPos_z]);
  24461. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  24462. PlayerInfo[playerid][pVirtualWorld] = GetPlayerVirtualWorld(playerid);
  24463. GetPlayerHealth(playerid,OldHealth[playerid]);
  24464. GetPlayerArmour(playerid,OldArmour[playerid]);
  24465. SetPlayerPos(playerid, 275.4794,-135.5955,1004.0625);
  24466. SetPlayerInterior(playerid,7);
  24467. SetPlayerVirtualWorld(playerid,playerid+10);
  24468. SetPlayerArmour(playerid,0);
  24469. SetPlayerHealth(playerid,100);
  24470. SetPlayerArmour(playerid,100);
  24471. CreateExplosion(280.4137,-134.6537,1004.0625, 6, 10.0);
  24472. CreateExplosion(280.4137,-134.6537,1004.0625, 6, 10.0);
  24473. return 1;
  24474. }
  24475. //==============================================================================
  24476. public DoneCheckHacks2(playerid,hacker)
  24477. {
  24478. if(PlayerCuffed[hacker] != 0 || PlayerTied[hacker] != 0 || PlayerFrozen[hacker] != 0) TogglePlayerControllable(hacker,0);
  24479. new Float:newhealth,Float:newarmor;
  24480. GetPlayerHealth(hacker,newhealth);
  24481. GetPlayerArmour(hacker,newarmor);
  24482. SetPlayerPos(hacker, PlayerInfo[hacker][pSPos_x],PlayerInfo[hacker][pSPos_y],PlayerInfo[hacker][pSPos_z]);
  24483. SetPlayerInterior(hacker,PlayerInfo[hacker][pInt]);
  24484. SetPlayerVirtualWorld(hacker,PlayerInfo[hacker][pVirtualWorld]);
  24485. SetPlayerHealth(hacker,OldHealth[hacker]);
  24486. SetPlayerArmour(hacker,OldArmour[hacker]);
  24487. new string[128];
  24488. new ping = GetPlayerPing(hacker);
  24489. if(newhealth <= 35 && newarmor == 0) format(string, sizeof(string), "AdmWarning: %s checked %s for health hacks, results: NOT A HACKER, Ping: %d.",PlayerName(playerid),PlayerName(hacker),ping);
  24490. else format(string, sizeof(string), "AdmWarning: %s checked %s for health hacks, results: HACKER, Ping: %d.",PlayerName(playerid),PlayerName(hacker),ping);
  24491. ABroadCast(COLOR_YELLOW,string,1);
  24492. return 1;
  24493. }
  24494.  
  24495. public RobHouse1(playerid)
  24496. {
  24497. if(PlayerInfo[playerid][RobHouseTime] == 5)
  24498. {
  24499. new string[60];
  24500. SetTimerEx("RobHouse1", 1000, false, "d", playerid);
  24501. format(string, sizeof(string), "~g~5 minutes remaining");
  24502. GameTextForPlayer(playerid, string, 3000, 1);
  24503. PlayerInfo[playerid][RobHouseTime] = 4;
  24504. }
  24505. else if(PlayerInfo[playerid][RobHouseTime] == 4)
  24506. {
  24507. new string[60];
  24508. SetTimerEx("RobHouse1", 1000, false, "d", playerid);
  24509. format(string, sizeof(string), "~g~5 minutes remaining");
  24510. GameTextForPlayer(playerid, string, 3000, 1);
  24511. PlayerInfo[playerid][RobHouseTime] = 3;
  24512. }
  24513. else if(PlayerInfo[playerid][RobHouseTime] == 3)
  24514. {
  24515. new string[60];
  24516. SetTimerEx("RobHouse1", 1000, false, "d", playerid);
  24517. format(string, sizeof(string), "~g~3 minutes remaining");
  24518. GameTextForPlayer(playerid, string, 3000, 1);
  24519. PlayerInfo[playerid][RobHouseTime] = 2;
  24520. }
  24521. else if(PlayerInfo[playerid][RobHouseTime] == 2)
  24522. {
  24523. new string[60];
  24524. SetTimerEx("RobHouse1", 1000, false, "d", playerid);
  24525. format(string, sizeof(string), "~g~2 minutes remaining");
  24526. GameTextForPlayer(playerid, string, 1000, 1);
  24527. PlayerInfo[playerid][RobHouseTime] = 1;
  24528. }
  24529. else if(PlayerInfo[playerid][RobHouseTime] == 1)
  24530. {
  24531. new string[60];
  24532. SetTimerEx("RobHouse1", 1, false, "d", playerid);
  24533. format(string, sizeof(string), "~r~1 minute remaining");
  24534. GameTextForPlayer(playerid, string, 3000, 1);
  24535. }
  24536. }
  24537.  
  24538. public RobInHouse(playerid)
  24539. {
  24540. if(PlayerInfo[playerid][RobHouseTime] > 0)
  24541. {
  24542. if(PlayerInfo[playerid][pInHouse] == PlayerInfo[playerid][RobHouseID])
  24543. {
  24544. SetTimerEx("RobInHouse", 1000, false, "d", playerid);
  24545. return 1;
  24546. }
  24547. else
  24548. {
  24549. SetTimerEx("RobInHouse2", 1, false, "d", playerid);
  24550. return 1;
  24551. }
  24552. }
  24553. return 1;
  24554. }
  24555.  
  24556. public RobInHouse2(playerid)
  24557. {
  24558. if(PlayerInfo[playerid][RobHouseTime] > 0)
  24559. {
  24560. new house = PlayerInfo[playerid][RobHouseID];
  24561. if(PlayerInfo[playerid][pInHouse] == PlayerInfo[playerid][RobHouseID])
  24562. {
  24563. SetTimerEx("RobInHouse", 1, false, "d", playerid);
  24564. return 1;
  24565. }
  24566. else
  24567. {
  24568. new string[128];
  24569. format(string,sizeof(string),"** You left the house, robbery failed.");
  24570. SendClientMessage(playerid, COLOR_WHITE, string);
  24571. PlayerInfo[playerid][RobHouseTime] = 0;
  24572. PlayerInfo[playerid][RobHouseID] = 999;
  24573. PlayerInfo[playerid][RobHouse] = 1;
  24574. HouseInfo[house][hVulnerable] = 5;
  24575. return 1;
  24576. }
  24577. }
  24578. return 1;
  24579. }
  24580.  
  24581. public RobbedHouse(playerid)
  24582. {
  24583. new string[128];
  24584. new sendername[MAX_PLAYER_NAME];
  24585. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  24586. if(PlayerInfo[playerid][RobHouseTime] > 0)
  24587. {
  24588. new house = PlayerInfo[playerid][RobHouseID];
  24589. PlayerInfo[playerid][RobHouseTime] = 0;
  24590. PlayerInfo[playerid][RobHouseID] = 999;
  24591. PlayerInfo[playerid][RobHouse] = 1;
  24592. HouseInfo[house][hVulnerable] = 5;
  24593. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  24594. format(string, sizeof(string), "* %s has successfully packed the stolen objects.", sendername);
  24595. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  24596. return 1;
  24597. }
  24598. return 1;
  24599. }
  24600.  
  24601. public Breakin(playerid)
  24602. {
  24603. if(PlayerInfo[playerid][Lockpicking] == 20)
  24604. {
  24605. new string[60];
  24606. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24607. format(string, sizeof(string), "~g~20");
  24608. GameTextForPlayer(playerid, string, 1000, 5);
  24609. PlayerInfo[playerid][Lockpicking] = 19;
  24610. }
  24611. else if(PlayerInfo[playerid][Lockpicking] == 19)
  24612. {
  24613. new string[60];
  24614. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24615. format(string, sizeof(string), "~g~19");
  24616. GameTextForPlayer(playerid, string, 1000, 5);
  24617. PlayerInfo[playerid][Lockpicking] = 18;
  24618. }
  24619. else if(PlayerInfo[playerid][Lockpicking] == 18)
  24620. {
  24621. new string[60];
  24622. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24623. format(string, sizeof(string), "~g~18");
  24624. GameTextForPlayer(playerid, string, 1000, 5);
  24625. PlayerInfo[playerid][Lockpicking] = 17;
  24626. }
  24627. else if(PlayerInfo[playerid][Lockpicking] == 17)
  24628. {
  24629. new string[60];
  24630. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24631. format(string, sizeof(string), "~g~17");
  24632. GameTextForPlayer(playerid, string, 1000, 5);
  24633. PlayerInfo[playerid][Lockpicking] = 16;
  24634. }
  24635. else if(PlayerInfo[playerid][Lockpicking] == 16)
  24636. {
  24637. new string[60];
  24638. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24639. format(string, sizeof(string), "~g~16");
  24640. GameTextForPlayer(playerid, string, 1000, 5);
  24641. PlayerInfo[playerid][Lockpicking] = 15;
  24642. }
  24643. else if(PlayerInfo[playerid][Lockpicking] == 15)
  24644. {
  24645. new string[60];
  24646. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24647. format(string, sizeof(string), "~g~15");
  24648. GameTextForPlayer(playerid, string, 1000, 5);
  24649. PlayerInfo[playerid][Lockpicking] = 14;
  24650. }
  24651. else if(PlayerInfo[playerid][Lockpicking] == 14)
  24652. {
  24653. new string[60];
  24654. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24655. format(string, sizeof(string), "~g~14");
  24656. GameTextForPlayer(playerid, string, 1000, 5);
  24657. PlayerInfo[playerid][Lockpicking] = 13;
  24658. }
  24659. else if(PlayerInfo[playerid][Lockpicking] == 13)
  24660. {
  24661. new string[60];
  24662. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24663. format(string, sizeof(string), "~g~13");
  24664. GameTextForPlayer(playerid, string, 1000, 5);
  24665. PlayerInfo[playerid][Lockpicking] = 12;
  24666. }
  24667. else if(PlayerInfo[playerid][Lockpicking] == 12)
  24668. {
  24669. new string[60];
  24670. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24671. format(string, sizeof(string), "~g~12");
  24672. GameTextForPlayer(playerid, string, 1000, 5);
  24673. PlayerInfo[playerid][Lockpicking] = 11;
  24674. }
  24675. else if(PlayerInfo[playerid][Lockpicking] == 11)
  24676. {
  24677. new string[60];
  24678. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24679. format(string, sizeof(string), "~g~11");
  24680. GameTextForPlayer(playerid, string, 1000, 5);
  24681. PlayerInfo[playerid][Lockpicking] = 10;
  24682. }
  24683. else if(PlayerInfo[playerid][Lockpicking] == 10)
  24684. {
  24685. new string[60];
  24686. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24687. format(string, sizeof(string), "~r~10");
  24688. GameTextForPlayer(playerid, string, 1000, 5);
  24689. PlayerInfo[playerid][Lockpicking] = 9;
  24690. }
  24691. else if(PlayerInfo[playerid][Lockpicking] == 9)
  24692. {
  24693. new string[60];
  24694. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24695. format(string, sizeof(string), "~r~9");
  24696. GameTextForPlayer(playerid, string, 1000, 5);
  24697. PlayerInfo[playerid][Lockpicking] = 8;
  24698. }
  24699. else if(PlayerInfo[playerid][Lockpicking] == 8)
  24700. {
  24701. new string[60];
  24702. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24703. format(string, sizeof(string), "~r~8");
  24704. GameTextForPlayer(playerid, string, 1000, 5);
  24705. PlayerInfo[playerid][Lockpicking] = 7;
  24706. }
  24707. else if(PlayerInfo[playerid][Lockpicking] == 7)
  24708. {
  24709. new string[60];
  24710. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24711. format(string, sizeof(string), "~r~7");
  24712. GameTextForPlayer(playerid, string, 1000, 5);
  24713. PlayerInfo[playerid][Lockpicking] = 6;
  24714. }
  24715. else if(PlayerInfo[playerid][Lockpicking] == 6)
  24716. {
  24717. new string[60];
  24718. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24719. format(string, sizeof(string), "~r~6");
  24720. GameTextForPlayer(playerid, string, 1000, 5);
  24721. PlayerInfo[playerid][Lockpicking] = 5;
  24722. }
  24723. else if(PlayerInfo[playerid][Lockpicking] == 5)
  24724. {
  24725. new string[60];
  24726. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24727. format(string, sizeof(string), "~r~5");
  24728. GameTextForPlayer(playerid, string, 1000, 5);
  24729. PlayerInfo[playerid][Lockpicking] = 4;
  24730. }
  24731. else if(PlayerInfo[playerid][Lockpicking] == 4)
  24732. {
  24733. new string[60];
  24734. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24735. format(string, sizeof(string), "~r~4");
  24736. GameTextForPlayer(playerid, string, 1000, 5);
  24737. PlayerInfo[playerid][Lockpicking] = 3;
  24738. }
  24739. else if(PlayerInfo[playerid][Lockpicking] == 3)
  24740. {
  24741. new string[60];
  24742. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24743. format(string, sizeof(string), "~r~3");
  24744. GameTextForPlayer(playerid, string, 1000, 5);
  24745. PlayerInfo[playerid][Lockpicking] = 2;
  24746. }
  24747. else if(PlayerInfo[playerid][Lockpicking] == 2)
  24748. {
  24749. new string[60];
  24750. SetTimerEx("Breakin", 1000, false, "d", playerid);
  24751. format(string, sizeof(string), "~r~2");
  24752. GameTextForPlayer(playerid, string, 1000, 5);
  24753. PlayerInfo[playerid][Lockpicking] = 1;
  24754. }
  24755. else if(PlayerInfo[playerid][Lockpicking] == 1)
  24756. {
  24757. new string[60];
  24758. SetTimerEx("Breakin2", 1, false, "d", playerid);
  24759. format(string, sizeof(string), "~r~1");
  24760. GameTextForPlayer(playerid, string, 1000, 5);
  24761. }
  24762. }
  24763.  
  24764. public Breakinmove(playerid)
  24765. {
  24766. if(PlayerInfo[playerid][Lockpicking] > 0)
  24767. {
  24768. new house = PlayerInfo[playerid][HLockpick];
  24769. if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
  24770. {
  24771. SetTimerEx("Breakinmove", 1000, false, "d", playerid);
  24772. return 1;
  24773. }
  24774. else
  24775. {
  24776. SetTimerEx("Breakinmove2", 1, false, "d", playerid);
  24777. return 1;
  24778. }
  24779. }
  24780. return 1;
  24781. }
  24782.  
  24783. public Breakinmove2(playerid)
  24784. {
  24785. if(PlayerInfo[playerid][Lockpicking] > 0)
  24786. {
  24787. new house = PlayerInfo[playerid][HLockpick];
  24788. if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
  24789. {
  24790. SetTimerEx("Breakinmove", 1, false, "d", playerid);
  24791. return 1;
  24792. }
  24793. else
  24794. {
  24795. new string[128];
  24796. format(string,sizeof(string),"** You moved from your position, lockpick failed.");
  24797. SendClientMessage(playerid, COLOR_WHITE, string);
  24798. PlayerInfo[playerid][Lockpicking] = 0;
  24799. PlayerInfo[playerid][HLockpick] = 999;
  24800. return 1;
  24801. }
  24802. }
  24803. return 1;
  24804. }
  24805.  
  24806. public Breakin2(playerid)
  24807. {
  24808. new string[128];
  24809. new sendername[MAX_PLAYER_NAME];
  24810. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  24811. if(PlayerInfo[playerid][Lockpicking] > 0)
  24812. {
  24813. new house = PlayerInfo[playerid][HLockpick];
  24814. SendClientMessage(playerid, COLOR_WHITE, "Door {2F991A}unlocked!");
  24815. PlayerInfo[playerid][Lockpicking] = 0;
  24816. PlayerInfo[playerid][HLockpick] = 999;
  24817. HouseInfo[house][hLocked] = 0;
  24818. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  24819. format(string, sizeof(string), "* %s has successfully unlocked the door.", sendername);
  24820. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  24821. return 1;
  24822. }
  24823. return 1;
  24824. }
  24825.  
  24826.  
  24827. public Lockpick(playerid)
  24828. {
  24829. if(PlayerInfo[playerid][Lockpicking] == 60)
  24830. {
  24831. new string[60];
  24832. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24833. format(string, sizeof(string), "~g~60");
  24834. GameTextForPlayer(playerid, string, 1000, 5);
  24835. PlayerInfo[playerid][Lockpicking] = 59;
  24836. }
  24837. else if(PlayerInfo[playerid][Lockpicking] == 59)
  24838. {
  24839. new string[60];
  24840. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24841. format(string, sizeof(string), "~g~59");
  24842. GameTextForPlayer(playerid, string, 1000, 5);
  24843. PlayerInfo[playerid][Lockpicking] = 58;
  24844. }
  24845. else if(PlayerInfo[playerid][Lockpicking] == 58)
  24846. {
  24847. new string[60];
  24848. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24849. format(string, sizeof(string), "~g~58");
  24850. GameTextForPlayer(playerid, string, 1000, 5);
  24851. PlayerInfo[playerid][Lockpicking] = 57;
  24852. }
  24853. else if(PlayerInfo[playerid][Lockpicking] == 57)
  24854. {
  24855. new string[60];
  24856. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24857. format(string, sizeof(string), "~g~57");
  24858. GameTextForPlayer(playerid, string, 1000, 5);
  24859. PlayerInfo[playerid][Lockpicking] = 56;
  24860. }
  24861. else if(PlayerInfo[playerid][Lockpicking] == 56)
  24862. {
  24863. new string[60];
  24864. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24865. format(string, sizeof(string), "~g~56");
  24866. GameTextForPlayer(playerid, string, 1000, 5);
  24867. PlayerInfo[playerid][Lockpicking] = 55;
  24868. }
  24869. else if(PlayerInfo[playerid][Lockpicking] == 55)
  24870. {
  24871. new string[60];
  24872. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24873. format(string, sizeof(string), "~g~55");
  24874. GameTextForPlayer(playerid, string, 1000, 5);
  24875. PlayerInfo[playerid][Lockpicking] = 54;
  24876. }
  24877. else if(PlayerInfo[playerid][Lockpicking] == 54)
  24878. {
  24879. new string[60];
  24880. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24881. format(string, sizeof(string), "~g~54");
  24882. GameTextForPlayer(playerid, string, 1000, 5);
  24883. PlayerInfo[playerid][Lockpicking] = 53;
  24884. }
  24885. else if(PlayerInfo[playerid][Lockpicking] == 53)
  24886. {
  24887. new string[60];
  24888. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24889. format(string, sizeof(string), "~g~53");
  24890. GameTextForPlayer(playerid, string, 1000, 5);
  24891. PlayerInfo[playerid][Lockpicking] = 52;
  24892. }
  24893. else if(PlayerInfo[playerid][Lockpicking] == 52)
  24894. {
  24895. new string[60];
  24896. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24897. format(string, sizeof(string), "~g~52");
  24898. GameTextForPlayer(playerid, string, 1000, 5);
  24899. PlayerInfo[playerid][Lockpicking] = 51;
  24900. }
  24901. else if(PlayerInfo[playerid][Lockpicking] == 51)
  24902. {
  24903. new string[60];
  24904. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24905. format(string, sizeof(string), "~g~51");
  24906. GameTextForPlayer(playerid, string, 1000, 5);
  24907. PlayerInfo[playerid][Lockpicking] = 50;
  24908. }
  24909. else if(PlayerInfo[playerid][Lockpicking] == 50)
  24910. {
  24911. new string[60];
  24912. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24913. format(string, sizeof(string), "~g~50");
  24914. GameTextForPlayer(playerid, string, 1000, 5);
  24915. PlayerInfo[playerid][Lockpicking] = 49;
  24916. }
  24917. else if(PlayerInfo[playerid][Lockpicking] == 49)
  24918. {
  24919. new string[60];
  24920. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24921. format(string, sizeof(string), "~g~49");
  24922. GameTextForPlayer(playerid, string, 1000, 5);
  24923. PlayerInfo[playerid][Lockpicking] = 48;
  24924. }
  24925. else if(PlayerInfo[playerid][Lockpicking] == 48)
  24926. {
  24927. new string[60];
  24928. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24929. format(string, sizeof(string), "~g~48");
  24930. GameTextForPlayer(playerid, string, 1000, 5);
  24931. PlayerInfo[playerid][Lockpicking] = 47;
  24932. }
  24933. else if(PlayerInfo[playerid][Lockpicking] == 47)
  24934. {
  24935. new string[60];
  24936. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24937. format(string, sizeof(string), "~g~47");
  24938. GameTextForPlayer(playerid, string, 1000, 5);
  24939. PlayerInfo[playerid][Lockpicking] = 46;
  24940. }
  24941. else if(PlayerInfo[playerid][Lockpicking] == 46)
  24942. {
  24943. new string[60];
  24944. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24945. format(string, sizeof(string), "~g~46");
  24946. GameTextForPlayer(playerid, string, 1000, 5);
  24947. PlayerInfo[playerid][Lockpicking] = 45;
  24948. }
  24949. else if(PlayerInfo[playerid][Lockpicking] == 45)
  24950. {
  24951. new string[60];
  24952. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24953. format(string, sizeof(string), "~g~45");
  24954. GameTextForPlayer(playerid, string, 1000, 5);
  24955. PlayerInfo[playerid][Lockpicking] = 44;
  24956. }
  24957. else if(PlayerInfo[playerid][Lockpicking] == 44)
  24958. {
  24959. new string[60];
  24960. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24961. format(string, sizeof(string), "~g~44");
  24962. GameTextForPlayer(playerid, string, 1000, 5);
  24963. PlayerInfo[playerid][Lockpicking] = 43;
  24964. }
  24965. else if(PlayerInfo[playerid][Lockpicking] == 43)
  24966. {
  24967. new string[60];
  24968. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24969. format(string, sizeof(string), "~g~43");
  24970. GameTextForPlayer(playerid, string, 1000, 5);
  24971. PlayerInfo[playerid][Lockpicking] = 42;
  24972. }
  24973. else if(PlayerInfo[playerid][Lockpicking] == 42)
  24974. {
  24975. new string[60];
  24976. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24977. format(string, sizeof(string), "~g~42");
  24978. GameTextForPlayer(playerid, string, 1000, 5);
  24979. PlayerInfo[playerid][Lockpicking] = 41;
  24980. }
  24981. else if(PlayerInfo[playerid][Lockpicking] == 41)
  24982. {
  24983. new string[60];
  24984. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24985. SetTimerEx("Startalarm", 1000, false, "d", playerid);
  24986. format(string, sizeof(string), "~g~41");
  24987. GameTextForPlayer(playerid, string, 1000, 5);
  24988. PlayerInfo[playerid][Lockpicking] = 40;
  24989. }
  24990. else if(PlayerInfo[playerid][Lockpicking] == 40)
  24991. {
  24992. new string[60];
  24993. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  24994. format(string, sizeof(string), "~g~40");
  24995. GameTextForPlayer(playerid, string, 1000, 5);
  24996. PlayerInfo[playerid][Lockpicking] = 39;
  24997. }
  24998. else if(PlayerInfo[playerid][Lockpicking] == 39)
  24999. {
  25000. new string[60];
  25001. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25002. format(string, sizeof(string), "~g~39");
  25003. GameTextForPlayer(playerid, string, 1000, 5);
  25004. PlayerInfo[playerid][Lockpicking] = 38;
  25005. }
  25006. else if(PlayerInfo[playerid][Lockpicking] == 38)
  25007. {
  25008. new string[60];
  25009. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25010. format(string, sizeof(string), "~g~38");
  25011. GameTextForPlayer(playerid, string, 1000, 5);
  25012. PlayerInfo[playerid][Lockpicking] = 37;
  25013. }
  25014. else if(PlayerInfo[playerid][Lockpicking] == 37)
  25015. {
  25016. new string[60];
  25017. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25018. format(string, sizeof(string), "~g~37");
  25019. GameTextForPlayer(playerid, string, 1000, 5);
  25020. PlayerInfo[playerid][Lockpicking] = 36;
  25021. }
  25022. else if(PlayerInfo[playerid][Lockpicking] == 36)
  25023. {
  25024. new string[60];
  25025. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25026. format(string, sizeof(string), "~g~36");
  25027. GameTextForPlayer(playerid, string, 1000, 5);
  25028. PlayerInfo[playerid][Lockpicking] = 35;
  25029. }
  25030. else if(PlayerInfo[playerid][Lockpicking] == 35)
  25031. {
  25032. new string[60];
  25033. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25034. format(string, sizeof(string), "~g~35");
  25035. GameTextForPlayer(playerid, string, 1000, 5);
  25036. PlayerInfo[playerid][Lockpicking] = 34;
  25037. }
  25038. else if(PlayerInfo[playerid][Lockpicking] == 34)
  25039. {
  25040. new string[60];
  25041. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25042. format(string, sizeof(string), "~g~34");
  25043. GameTextForPlayer(playerid, string, 1000, 5);
  25044. PlayerInfo[playerid][Lockpicking] = 33;
  25045. }
  25046. else if(PlayerInfo[playerid][Lockpicking] == 33)
  25047. {
  25048. new string[60];
  25049. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25050. format(string, sizeof(string), "~g~33");
  25051. GameTextForPlayer(playerid, string, 1000, 5);
  25052. PlayerInfo[playerid][Lockpicking] = 32;
  25053. }
  25054. else if(PlayerInfo[playerid][Lockpicking] == 32)
  25055. {
  25056. new string[60];
  25057. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25058. format(string, sizeof(string), "~g~32");
  25059. GameTextForPlayer(playerid, string, 1000, 5);
  25060. PlayerInfo[playerid][Lockpicking] = 31;
  25061. }
  25062. else if(PlayerInfo[playerid][Lockpicking] == 31)
  25063. {
  25064. new string[60];
  25065. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25066. format(string, sizeof(string), "~g~31");
  25067. GameTextForPlayer(playerid, string, 1000, 5);
  25068. PlayerInfo[playerid][Lockpicking] = 30;
  25069. }
  25070. else if(PlayerInfo[playerid][Lockpicking] == 30)
  25071. {
  25072. new string[60];
  25073. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25074. format(string, sizeof(string), "~g~30");
  25075. GameTextForPlayer(playerid, string, 1000, 5);
  25076. PlayerInfo[playerid][Lockpicking] = 29;
  25077. }
  25078. else if(PlayerInfo[playerid][Lockpicking] == 29)
  25079. {
  25080. new string[60];
  25081. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25082. format(string, sizeof(string), "~g~29");
  25083. GameTextForPlayer(playerid, string, 1000, 5);
  25084. PlayerInfo[playerid][Lockpicking] = 28;
  25085. }
  25086. else if(PlayerInfo[playerid][Lockpicking] == 28)
  25087. {
  25088. new string[60];
  25089. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25090. format(string, sizeof(string), "~g~28");
  25091. GameTextForPlayer(playerid, string, 1000, 5);
  25092. PlayerInfo[playerid][Lockpicking] = 27;
  25093. }
  25094. else if(PlayerInfo[playerid][Lockpicking] == 27)
  25095. {
  25096. new string[60];
  25097. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25098. format(string, sizeof(string), "~g~27");
  25099. GameTextForPlayer(playerid, string, 1000, 5);
  25100. PlayerInfo[playerid][Lockpicking] = 26;
  25101. }
  25102. else if(PlayerInfo[playerid][Lockpicking] == 26)
  25103. {
  25104. new string[60];
  25105. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25106. format(string, sizeof(string), "~g~26");
  25107. GameTextForPlayer(playerid, string, 1000, 5);
  25108. PlayerInfo[playerid][Lockpicking] = 25;
  25109. }
  25110. else if(PlayerInfo[playerid][Lockpicking] == 25)
  25111. {
  25112. new string[60];
  25113. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25114. format(string, sizeof(string), "~g~25");
  25115. GameTextForPlayer(playerid, string, 1000, 5);
  25116. PlayerInfo[playerid][Lockpicking] = 24;
  25117. }
  25118. else if(PlayerInfo[playerid][Lockpicking] == 24)
  25119. {
  25120. new string[60];
  25121. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25122. format(string, sizeof(string), "~g~24");
  25123. GameTextForPlayer(playerid, string, 1000, 5);
  25124. PlayerInfo[playerid][Lockpicking] = 23;
  25125. }
  25126. else if(PlayerInfo[playerid][Lockpicking] == 23)
  25127. {
  25128. new string[60];
  25129. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25130. format(string, sizeof(string), "~g~23");
  25131. GameTextForPlayer(playerid, string, 1000, 5);
  25132. PlayerInfo[playerid][Lockpicking] = 22;
  25133. }
  25134. else if(PlayerInfo[playerid][Lockpicking] == 22)
  25135. {
  25136. new string[60];
  25137. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25138. format(string, sizeof(string), "~g~22");
  25139. GameTextForPlayer(playerid, string, 1000, 5);
  25140. PlayerInfo[playerid][Lockpicking] = 21;
  25141. }
  25142. else if(PlayerInfo[playerid][Lockpicking] == 21)
  25143. {
  25144. new string[60];
  25145. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25146. SetTimerEx("Startalarm", 1000, false, "d", playerid);
  25147. format(string, sizeof(string), "~g~21");
  25148. GameTextForPlayer(playerid, string, 1000, 5);
  25149. PlayerInfo[playerid][Lockpicking] = 20;
  25150. }
  25151. else if(PlayerInfo[playerid][Lockpicking] == 20)
  25152. {
  25153. new string[60];
  25154. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25155. format(string, sizeof(string), "~g~20");
  25156. GameTextForPlayer(playerid, string, 1000, 5);
  25157. PlayerInfo[playerid][Lockpicking] = 19;
  25158. }
  25159. else if(PlayerInfo[playerid][Lockpicking] == 19)
  25160. {
  25161. new string[60];
  25162. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25163. format(string, sizeof(string), "~g~19");
  25164. GameTextForPlayer(playerid, string, 1000, 5);
  25165. PlayerInfo[playerid][Lockpicking] = 18;
  25166. }
  25167. else if(PlayerInfo[playerid][Lockpicking] == 18)
  25168. {
  25169. new string[60];
  25170. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25171. format(string, sizeof(string), "~g~18");
  25172. GameTextForPlayer(playerid, string, 1000, 5);
  25173. PlayerInfo[playerid][Lockpicking] = 17;
  25174. }
  25175. else if(PlayerInfo[playerid][Lockpicking] == 17)
  25176. {
  25177. new string[60];
  25178. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25179. format(string, sizeof(string), "~g~17");
  25180. GameTextForPlayer(playerid, string, 1000, 5);
  25181. PlayerInfo[playerid][Lockpicking] = 16;
  25182. }
  25183. else if(PlayerInfo[playerid][Lockpicking] == 16)
  25184. {
  25185. new string[60];
  25186. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25187. format(string, sizeof(string), "~g~16");
  25188. GameTextForPlayer(playerid, string, 1000, 5);
  25189. PlayerInfo[playerid][Lockpicking] = 15;
  25190. }
  25191. else if(PlayerInfo[playerid][Lockpicking] == 15)
  25192. {
  25193. new string[60];
  25194. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25195. format(string, sizeof(string), "~g~15");
  25196. GameTextForPlayer(playerid, string, 1000, 5);
  25197. PlayerInfo[playerid][Lockpicking] = 14;
  25198. }
  25199. else if(PlayerInfo[playerid][Lockpicking] == 14)
  25200. {
  25201. new string[60];
  25202. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25203. format(string, sizeof(string), "~g~14");
  25204. GameTextForPlayer(playerid, string, 1000, 5);
  25205. PlayerInfo[playerid][Lockpicking] = 13;
  25206. }
  25207. else if(PlayerInfo[playerid][Lockpicking] == 13)
  25208. {
  25209. new string[60];
  25210. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25211. format(string, sizeof(string), "~g~13");
  25212. GameTextForPlayer(playerid, string, 1000, 5);
  25213. PlayerInfo[playerid][Lockpicking] = 12;
  25214. }
  25215. else if(PlayerInfo[playerid][Lockpicking] == 12)
  25216. {
  25217. new string[60];
  25218. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25219. format(string, sizeof(string), "~g~12");
  25220. GameTextForPlayer(playerid, string, 1000, 5);
  25221. PlayerInfo[playerid][Lockpicking] = 11;
  25222. }
  25223. else if(PlayerInfo[playerid][Lockpicking] == 11)
  25224. {
  25225. new string[60];
  25226. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25227. format(string, sizeof(string), "~g~11");
  25228. GameTextForPlayer(playerid, string, 1000, 5);
  25229. PlayerInfo[playerid][Lockpicking] = 10;
  25230. }
  25231. else if(PlayerInfo[playerid][Lockpicking] == 10)
  25232. {
  25233. new string[60];
  25234. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25235. format(string, sizeof(string), "~r~10");
  25236. GameTextForPlayer(playerid, string, 1000, 5);
  25237. PlayerInfo[playerid][Lockpicking] = 9;
  25238. }
  25239. else if(PlayerInfo[playerid][Lockpicking] == 9)
  25240. {
  25241. new string[60];
  25242. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25243. format(string, sizeof(string), "~r~9");
  25244. GameTextForPlayer(playerid, string, 1000, 5);
  25245. PlayerInfo[playerid][Lockpicking] = 8;
  25246. }
  25247. else if(PlayerInfo[playerid][Lockpicking] == 8)
  25248. {
  25249. new string[60];
  25250. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25251. format(string, sizeof(string), "~r~8");
  25252. GameTextForPlayer(playerid, string, 1000, 5);
  25253. PlayerInfo[playerid][Lockpicking] = 7;
  25254. }
  25255. else if(PlayerInfo[playerid][Lockpicking] == 7)
  25256. {
  25257. new string[60];
  25258. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25259. format(string, sizeof(string), "~r~7");
  25260. GameTextForPlayer(playerid, string, 1000, 5);
  25261. PlayerInfo[playerid][Lockpicking] = 6;
  25262. }
  25263. else if(PlayerInfo[playerid][Lockpicking] == 6)
  25264. {
  25265. new string[60];
  25266. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25267. format(string, sizeof(string), "~r~6");
  25268. GameTextForPlayer(playerid, string, 1000, 5);
  25269. PlayerInfo[playerid][Lockpicking] = 5;
  25270. }
  25271. else if(PlayerInfo[playerid][Lockpicking] == 5)
  25272. {
  25273. new string[60];
  25274. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25275. format(string, sizeof(string), "~r~5");
  25276. GameTextForPlayer(playerid, string, 1000, 5);
  25277. PlayerInfo[playerid][Lockpicking] = 4;
  25278. }
  25279. else if(PlayerInfo[playerid][Lockpicking] == 4)
  25280. {
  25281. new string[60];
  25282. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25283. format(string, sizeof(string), "~r~4");
  25284. GameTextForPlayer(playerid, string, 1000, 5);
  25285. PlayerInfo[playerid][Lockpicking] = 3;
  25286. }
  25287. else if(PlayerInfo[playerid][Lockpicking] == 3)
  25288. {
  25289. new string[60];
  25290. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25291. format(string, sizeof(string), "~r~3");
  25292. GameTextForPlayer(playerid, string, 1000, 5);
  25293. PlayerInfo[playerid][Lockpicking] = 2;
  25294. }
  25295. else if(PlayerInfo[playerid][Lockpicking] == 2)
  25296. {
  25297. new string[60];
  25298. SetTimerEx("Lockpick", 1000, false, "d", playerid);
  25299. format(string, sizeof(string), "~r~2");
  25300. GameTextForPlayer(playerid, string, 1000, 5);
  25301. PlayerInfo[playerid][Lockpicking] = 1;
  25302. }
  25303. else if(PlayerInfo[playerid][Lockpicking] == 1)
  25304. {
  25305. new string[60];
  25306. SetTimerEx("Lockpicked", 1, false, "d", playerid);
  25307. SetTimerEx("Startalarm", 1000, false, "d", playerid);
  25308. format(string, sizeof(string), "~r~1");
  25309. GameTextForPlayer(playerid, string, 1000, 5);
  25310. }
  25311. }
  25312.  
  25313. public Startalarm(playerid)
  25314. {
  25315. new engine,lights,alarm,doors,bonnet,boot,objective;
  25316. if(PlayerInfo[playerid][Lockpicking] > 0)
  25317. {
  25318. if(CarInfo[PlayerInfo[playerid][CLockpick]][tAlarmStarted] == 1)
  25319. {
  25320. GetVehicleParamsEx(PlayerInfo[playerid][CLockpick],engine,lights,alarm,doors,bonnet,boot,objective);
  25321. SetVehicleParamsEx(PlayerInfo[playerid][CLockpick],engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
  25322. }
  25323. }
  25324. return 1;
  25325. }
  25326.  
  25327. public TowVehicle(vehicle)
  25328. {
  25329. SetVehicleToRespawn(vehicle);
  25330. new owner[32];
  25331. strmid(owner, CarInfo[vehicle][tOwner], 0, strlen(CarInfo[vehicle][tOwner]), 32);
  25332. for(new i = 0; i < MAX_PLAYERS; i++)
  25333. {
  25334. if(IsPlayerConnected(i))
  25335. {
  25336. if(PlayerInfo[i][pCarKey1] == vehicle)
  25337. {
  25338. SendClientMessage(i, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
  25339. SendClientMessage(i, COLOR_WHITE, ""CB"Message:"CW" Your vehicle was successfully towed where it was last parked");
  25340. }
  25341. if(PlayerInfo[i][pCarKey2] == vehicle)
  25342. {
  25343. SendClientMessage(i, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We tow cars™");
  25344. SendClientMessage(i, COLOR_WHITE, ""CB"Message:"CW" Your vehicle was successfully towed where it was last parked");
  25345. }
  25346. }
  25347. }
  25348. return 1;
  25349. }
  25350.  
  25351. public Lockpickmove(playerid)
  25352. {
  25353. if(PlayerInfo[playerid][Lockpicking] > 0)
  25354. {
  25355. new Float:cX, Float:cY, Float:cZ;
  25356. new car = PlayerInfo[playerid][CLockpick];
  25357. GetVehiclePos(car, cX, cY, cZ);
  25358. if(IsPlayerInRangeOfPoint(playerid, 2.0, cX, cY, cZ))
  25359. {
  25360. SetTimerEx("Lockpickmove", 1000, false, "d", playerid);
  25361. return 1;
  25362. }
  25363. else
  25364. {
  25365. SetTimerEx("Lockpickmove2", 1, false, "d", playerid);
  25366. return 1;
  25367. }
  25368. }
  25369. return 1;
  25370. }
  25371.  
  25372. public Lockpickmove2(playerid)
  25373. {
  25374. if(PlayerInfo[playerid][Lockpicking] > 0)
  25375. {
  25376. new Float:cX, Float:cY, Float:cZ;
  25377. new car = PlayerInfo[playerid][CLockpick];
  25378. GetVehiclePos(car, cX, cY, cZ);
  25379. if(IsPlayerInRangeOfPoint(playerid, 2.0, cX, cY, cZ))
  25380. {
  25381. SetTimerEx("Lockpickmove", 1, false, "d", playerid);
  25382. return 1;
  25383. }
  25384. else
  25385. {
  25386. new string[128];
  25387. format(string,sizeof(string),"** You moved from your position, lockpick failed.");
  25388. SendClientMessage(playerid, COLOR_WHITE, string);
  25389. PlayerInfo[playerid][Lockpicking] = 0;
  25390. PlayerInfo[playerid][CLockpick] = 0;
  25391. CarInfo[car][tAlarmStarted] = 0;
  25392. return 1;
  25393. }
  25394. }
  25395. return 1;
  25396. }
  25397.  
  25398. public Lockpicked(playerid)
  25399. {
  25400. new string[128];
  25401. new sendername[MAX_PLAYER_NAME];
  25402. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  25403. if(PlayerInfo[playerid][Lockpicking] > 0)
  25404. {
  25405. new engine,lights,alarm,doors,bonnet,boot,objective;
  25406. new car = PlayerInfo[playerid][CLockpick];
  25407. GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
  25408. SetVehicleParamsEx(car,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  25409. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  25410. PlayerInfo[playerid][Lockpicking] = 0;
  25411. PlayerInfo[playerid][CLockpick] = 0;
  25412. CarInfo[car][tAlarmStarted] = 0;
  25413. CarInfo[car][tLock] = 0;
  25414. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  25415. format(string, sizeof(string), "* %s has successfully unlocked the vehicle.", sendername);
  25416. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  25417. }
  25418. return 1;
  25419. }
  25420.  
  25421. public PayDay()
  25422. {
  25423. new string[128];
  25424. //new account,interest;
  25425. //foreach(Player, i)
  25426. if(BankRobberyTime >= 1)
  25427. {
  25428. BankRobberyTime -= 1;
  25429. }
  25430. for(new h = 0; h < sizeof(HouseInfo); h++)
  25431. {
  25432. if(HouseInfo[h][hVulnerable] > 0)
  25433. {
  25434. new hours = HouseInfo[h][hVulnerable] - 1;
  25435. HouseInfo[h][hVulnerable] = hours;
  25436. }
  25437. }
  25438. for(new h = 0; h < sizeof(BizInfo); h++)
  25439. {
  25440. if(BizInfo[h][bLottoTime] > 0)
  25441. {
  25442. new hours = BizInfo[h][bLottoTime] - 1;
  25443. BizInfo[h][bLottoTime] = hours;
  25444. }
  25445. }
  25446. for(new i; i<MAX_PLAYERS; i++)
  25447. {
  25448. if(IsPlayerConnected(i))
  25449. {
  25450. PlayerInfo[i][pHSafeattempt] = 0;
  25451. PlayerInfo[i][pConnectTime] += 1;
  25452. PlayerInfo[i][pDonuts] += 1;
  25453. if (PlayerInfo[i][pDonateRank]>0) { PlayerInfo[i][pDonuts] += 1; }
  25454. if(PlayerInfo[i][pLevel] > 0)
  25455. {
  25456. CheckNumber[i] = Random(1000,9999);
  25457. format(string, 128, "{7DAEFF}* Paycheck:{FFFFFF} Type /signcheck %d to recieve your paycheck.", CheckNumber[i]);
  25458. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  25459. if(MoneyMessage[i] == 1 && PlayerInfo[i][pJailed] == 0)
  25460. {
  25461. SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
  25462. SetPlayerInterior(i, 0);
  25463. SetPlayerPos(i, 264.6288, 77.5742, 1001.0391);
  25464. ResetPlayerWeapons(i);
  25465. ClearGuns(i);
  25466. TogglePlayerControllable(i, 1);
  25467. PlayerInfo[i][pWantedLevel] = 0;
  25468. PlayerInfo[i][pJailed] = 1;
  25469. PlayerInfo[i][pJailTime] = 240;
  25470. format(string, sizeof(string), "* You are jailed for %d seconds, Bail: Unavailable.", PlayerInfo[i][pJailTime]);
  25471. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  25472. }
  25473. if(PlayerInfo[i][pRenthouse] < 999)
  25474. {
  25475. new house = PlayerInfo[i][pRenthouse];
  25476. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-HouseInfo[house][hRent]; //give money
  25477. GivePlayerMoney(i, -HouseInfo[house][hRent]); //give money
  25478. HouseInfo[house][hCash] += HouseInfo[house][hRent];
  25479. }
  25480. if(PlayerInfo[i][pHouseKey] < 999)
  25481. {
  25482. new randomv = random(1000);
  25483. new house = PlayerInfo[i][pHouseKey];
  25484. new ebill = (randomv*HouseInfo[house][hLevel]);
  25485. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-ebill; //give money
  25486. GivePlayerMoney(i, -ebill); //give money
  25487. }
  25488. /*new sendername[MAX_PLAYER_NAME];
  25489. new tmpintrate = 1; //interest rate
  25490. if(PlayerInfo[i][pHouseAccepted] == 1){ tmpintrate = 2; }
  25491. if(PlayerInfo[i][pDonateRank] == 1){ tmpintrate = 3; }
  25492. GetPlayerName(i, sendername, sizeof(sendername));
  25493. account = PlayerInfo[i][pAccount]; //bank account amount
  25494. if(PlayerInfo[i][pPayDay] >= 5)
  25495. {
  25496. new checks = PlayerInfo[i][pPayCheck]; //paycheck amount
  25497. new incometax = PlayerInfo[i][pPayCheck] / 100 * Tax; //income tax amount
  25498. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]+checks-incometax; //give money
  25499. GivePlayerMoney(i, checks-incometax); //give money
  25500. //TAX MONEY
  25501. TaxValue = TaxValue+incometax;
  25502. //ELECTRICITY
  25503. new randomv = random(1000);
  25504. new ebill = (randomv*PlayerInfo[i][pHouseLevel])/2;
  25505. if(PlayerInfo[i][pHouseLevel] && PlayerInfo[i][pHouseAccepted])
  25506. {
  25507. PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-ebill; //give money
  25508. GivePlayerMoney(i, -ebill); //give money
  25509. }
  25510. //INTEREST
  25511. interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); //bank interest
  25512. PlayerInfo[i][pAccount] = account+interest; //add interest money to bank
  25513. //EXP
  25514. PlayerInfo[i][pExp]++; //experience points
  25515. SendClientMessage(i, COLOR_WHITE, "|___ BANK STATEMENT ___|");
  25516. format(string, sizeof(string), " Paycheck: $%d", checks);
  25517. SendClientMessage(i, COLOR_GRAD1, string);
  25518. format(string, sizeof(string), " Income Tax: -$%d", incometax);
  25519. SendClientMessage(i, COLOR_GRAD1, string);
  25520. if(PlayerInfo[i][pHouseLevel] && PlayerInfo[i][pHouseAccepted])
  25521. {
  25522. format(string, sizeof(string), " Electricity Bill: -$%d", ebill);
  25523. SendClientMessage(i, COLOR_GRAD1, string);
  25524. }
  25525. format(string, sizeof(string), " Balance: $%d", account);
  25526. SendClientMessage(i, COLOR_GRAD1, string);
  25527. format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
  25528. SendClientMessage(i, COLOR_GRAD2, string);
  25529. format(string, sizeof(string), " Interest Gained $%d", interest);
  25530. SendClientMessage(i, COLOR_GRAD3, string);
  25531. SendClientMessage(i, COLOR_GRAD4, "|------------------------------------------|");
  25532. format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pAccount]);
  25533. SendClientMessage(i, COLOR_GRAD5, string);
  25534. format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
  25535. GameTextForPlayer(i, string, 5000, 1);
  25536. PlayerInfo[i][pPayDay] = 0;
  25537. PlayerInfo[i][pPayCheck] = 0;
  25538. PlayerInfo[i][pConnectTime] += 1;
  25539. }
  25540. else
  25541. {
  25542. SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a Paycheck.");
  25543. }*/
  25544. }
  25545.  
  25546. if(PlayerInfo[i][pWantedLevel] > 0)
  25547. {
  25548. if(PlayerInfo[i][pWantedLevel] == 6)
  25549. {
  25550. PlayerInfo[i][pCrime][5] = 0;
  25551. strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
  25552. strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  25553. PlayerInfo[i][pWantedLevel] = 5;
  25554. SetPlayerWantedLevel(i, 5);
  25555. }
  25556. else if(PlayerInfo[i][pWantedLevel] == 5)
  25557. {
  25558. PlayerInfo[i][pCrime][5] = 0;
  25559. strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
  25560. strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  25561. PlayerInfo[i][pCrime][4] = 0;
  25562. strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
  25563. strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
  25564. PlayerInfo[i][pWantedLevel] = 4;
  25565. SetPlayerWantedLevel(i, 4);
  25566. }
  25567. else if(PlayerInfo[i][pWantedLevel] == 4)
  25568. {
  25569. PlayerInfo[i][pCrime][5] = 0;
  25570. strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
  25571. strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  25572. PlayerInfo[i][pCrime][4] = 0;
  25573. strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
  25574. strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
  25575. PlayerInfo[i][pCrime][3] = 0;
  25576. strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
  25577. strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
  25578. PlayerInfo[i][pWantedLevel] = 3;
  25579. SetPlayerWantedLevel(i, 3);
  25580. }
  25581. else if(PlayerInfo[i][pWantedLevel] == 3)
  25582. {
  25583. PlayerInfo[i][pCrime][5] = 0;
  25584. strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
  25585. strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  25586. PlayerInfo[i][pCrime][4] = 0;
  25587. strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
  25588. strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
  25589. PlayerInfo[i][pCrime][3] = 0;
  25590. strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
  25591. strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
  25592. PlayerInfo[i][pCrime][2] = 0;
  25593. strmid(PlayerInfo[i][pCrimeReporter2], "None", 0, strlen("None"), 255);
  25594. strmid(PlayerInfo[i][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
  25595. PlayerInfo[i][pWantedLevel] = 2;
  25596. SetPlayerWantedLevel(i, 2);
  25597. }
  25598. else if(PlayerInfo[i][pWantedLevel] == 2)
  25599. {
  25600. PlayerInfo[i][pCrime][5] = 0;
  25601. strmid(PlayerInfo[i][pCrimeReporter5], "None", 0, strlen("None"), 255);
  25602. strmid(PlayerInfo[i][pCrimeDate5], "0/0/0", 0, strlen("0/0/0"), 255);
  25603. PlayerInfo[i][pCrime][4] = 0;
  25604. strmid(PlayerInfo[i][pCrimeReporter4], "None", 0, strlen("None"), 255);
  25605. strmid(PlayerInfo[i][pCrimeDate4], "0/0/0", 0, strlen("0/0/0"), 255);
  25606. PlayerInfo[i][pCrime][3] = 0;
  25607. strmid(PlayerInfo[i][pCrimeReporter3], "None", 0, strlen("None"), 255);
  25608. strmid(PlayerInfo[i][pCrimeDate3], "0/0/0", 0, strlen("0/0/0"), 255);
  25609. PlayerInfo[i][pCrime][2] = 0;
  25610. strmid(PlayerInfo[i][pCrimeReporter2], "None", 0, strlen("None"), 255);
  25611. strmid(PlayerInfo[i][pCrimeDate2], "0/0/0", 0, strlen("0/0/0"), 255);
  25612. PlayerInfo[i][pCrime][1] = 0;
  25613. strmid(PlayerInfo[i][pCrimeReporter1], "None", 0, strlen("None"), 255);
  25614. strmid(PlayerInfo[i][pCrimeDate1], "0/0/0", 0, strlen("0/0/0"), 255);
  25615. PlayerInfo[i][pWantedLevel] = 1;
  25616. SetPlayerWantedLevel(i, 1);
  25617. }
  25618. else if(PlayerInfo[i][pWantedLevel] == 1)
  25619. {
  25620. ClearCrime(i);
  25621. PlayerInfo[i][pWantedLevel] = 0;
  25622. SetPlayerWantedLevel(i, 0);
  25623. }
  25624. }
  25625. }
  25626. }
  25627. return 1;
  25628. }
  25629.  
  25630.  
  25631. public split(const strsrc[], strdest[][], delimiter)
  25632. {
  25633. new i, li;
  25634. new aNum;
  25635. new len;
  25636. while(i <= strlen(strsrc)){
  25637. if(strsrc[i]==delimiter || i==strlen(strsrc)){
  25638. len = strmid(strdest[aNum], strsrc, li, i, 128);
  25639. strdest[aNum][len] = 0;
  25640. li = i+1;
  25641. aNum++;
  25642. }
  25643. i++;
  25644. }
  25645. return 1;
  25646. }
  25647.  
  25648. public OnPlayerRegister(playerid, password[])
  25649. {
  25650. if(IsPlayerConnected(playerid))
  25651. {
  25652. new string3[32];
  25653. new playername3[MAX_PLAYER_NAME];
  25654. GetPlayerName(playerid, playername3, sizeof(playername3));
  25655. format(string3, sizeof(string3), "%s.ini", playername3);
  25656. new File: hFile = fopen(string3, io_write);
  25657. if(hFile)
  25658. {
  25659. new var[32];
  25660. strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
  25661. format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  25662. format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
  25663. format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
  25664. format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBand]);fwrite(hFile, var);
  25665. format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermBand]);fwrite(hFile, var);
  25666. format(var, 128, "PrisonReason=%s\n",PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
  25667. format(var, 32, "PrisonedBy=%s\n",PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
  25668. format(var, 32, "AdminJailed=%d\n",PlayerInfo[playerid][pAdminJailed]);fwrite(hFile, var);
  25669. format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  25670. format(var, 32, "AWarnings=%d\n",PlayerInfo[playerid][pAWarns]);fwrite(hFile, var);
  25671. format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
  25672. format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
  25673. format(var, 32, "VIPJoinDate=%s\n",PlayerInfo[playerid][pVIPJoinDate]);fwrite(hFile, var);
  25674. format(var, 32, "VIPExpDate=%s\n",PlayerInfo[playerid][pVIPExpDate]);fwrite(hFile, var);
  25675. format(var, 32, "LastLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
  25676. format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
  25677. format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
  25678. format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
  25679. format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
  25680. format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
  25681. format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
  25682. format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
  25683. format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
  25684. format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
  25685. format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
  25686. format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
  25687. format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  25688. format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
  25689. format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
  25690. format(var, 32, "Crime1=%d\n",PlayerInfo[playerid][pCrime][0]);fwrite(hFile, var);
  25691. format(var, 32, "Crime2=%d\n",PlayerInfo[playerid][pCrime][1]);fwrite(hFile, var);
  25692. format(var, 32, "Crime3=%d\n",PlayerInfo[playerid][pCrime][2]);fwrite(hFile, var);
  25693. format(var, 32, "Crime4=%d\n",PlayerInfo[playerid][pCrime][3]);fwrite(hFile, var);
  25694. format(var, 32, "Crime5=%d\n",PlayerInfo[playerid][pCrime][4]);fwrite(hFile, var);
  25695. format(var, 32, "Crime6=%d\n",PlayerInfo[playerid][pCrime][5]);fwrite(hFile, var);
  25696. format(var, 64, "CrimeReporter1=%s\n",PlayerInfo[playerid][pCrimeReporter0]);fwrite(hFile, var);
  25697. format(var, 64, "CrimeReporter2=%s\n",PlayerInfo[playerid][pCrimeReporter1]);fwrite(hFile, var);
  25698. format(var, 64, "CrimeReporter3=%s\n",PlayerInfo[playerid][pCrimeReporter2]);fwrite(hFile, var);
  25699. format(var, 64, "CrimeReporter4=%s\n",PlayerInfo[playerid][pCrimeReporter3]);fwrite(hFile, var);
  25700. format(var, 64, "CrimeReporter5=%s\n",PlayerInfo[playerid][pCrimeReporter4]);fwrite(hFile, var);
  25701. format(var, 64, "CrimeReporter6=%s\n",PlayerInfo[playerid][pCrimeReporter5]);fwrite(hFile, var);
  25702. format(var, 32, "CrimeDate1=%s\n",PlayerInfo[playerid][pCrimeDate0]);fwrite(hFile, var);
  25703. format(var, 32, "CrimeDate2=%s\n",PlayerInfo[playerid][pCrimeDate1]);fwrite(hFile, var);
  25704. format(var, 32, "CrimeDate3=%s\n",PlayerInfo[playerid][pCrimeDate2]);fwrite(hFile, var);
  25705. format(var, 32, "CrimeDate4=%s\n",PlayerInfo[playerid][pCrimeDate3]);fwrite(hFile, var);
  25706. format(var, 32, "CrimeDate5=%s\n",PlayerInfo[playerid][pCrimeDate4]);fwrite(hFile, var);
  25707. format(var, 32, "CrimeDate6=%s\n",PlayerInfo[playerid][pCrimeDate5]);fwrite(hFile, var);
  25708. format(var, 32, "Accent=%s\n",Accent[playerid]);fwrite(hFile, var);
  25709. format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
  25710. format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
  25711. format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
  25712. format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
  25713. format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
  25714. format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
  25715. format(var, 32, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
  25716. format(var, 32, "Suitcase=%d\n",PlayerInfo[playerid][pSuitcase]);fwrite(hFile, var);
  25717. format(var, 32, "Suitcasecash=%d\n",PlayerInfo[playerid][pSuitcasecash]);fwrite(hFile, var);
  25718. format(var, 32, "Suitcasecrack=%d\n",PlayerInfo[playerid][pSuitcasecrack]);fwrite(hFile, var);
  25719. format(var, 32, "Suitcasepot=%d\n",PlayerInfo[playerid][pSuitcasepot]);fwrite(hFile, var);
  25720. format(var, 32, "Suitcasemats=%d\n",PlayerInfo[playerid][pSuitcasemats]);fwrite(hFile, var);
  25721. format(var, 32, "Toolbox=%d\n",PlayerInfo[playerid][pToolbox]);fwrite(hFile, var);
  25722. format(var, 32, "Lotto=%d\n",PlayerInfo[playerid][pLotto]);fwrite(hFile, var);
  25723. format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
  25724. format(var, 32, "LottoNr2=%d\n",PlayerInfo[playerid][pLottoNr2]);fwrite(hFile, var);
  25725. format(var, 32, "LottoNr3=%d\n",PlayerInfo[playerid][pLottoNr3]);fwrite(hFile, var);
  25726. format(var, 32, "LottoN4=%d\n",PlayerInfo[playerid][pLottoNr4]);fwrite(hFile, var);
  25727. format(var, 32, "LottoNr5=%d\n",PlayerInfo[playerid][pLottoNr5]);fwrite(hFile, var);
  25728. format(var, 32, "LottoNr6=%d\n",PlayerInfo[playerid][pLottoNr6]);fwrite(hFile, var);
  25729. format(var, 32, "PlayLotto=%d\n",PlayerInfo[playerid][pPlayLotto]);fwrite(hFile, var);
  25730. format(var, 32, "WinLotto=%d\n",PlayerInfo[playerid][pWinLotto]);fwrite(hFile, var);
  25731. format(var, 32, "WinLotto2=%d\n",PlayerInfo[playerid][pWinLotto2]);fwrite(hFile, var);
  25732. format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
  25733. format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
  25734. format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
  25735. format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
  25736. format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
  25737. format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
  25738. format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
  25739. format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
  25740. format(var, 32, "CarParts=%d\n",PlayerInfo[playerid][pCarParts]);fwrite(hFile, var);
  25741. format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
  25742. format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
  25743. format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
  25744. format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
  25745. format(var, 32, "SFMember=%d\n",PlayerInfo[playerid][pSFMember]);fwrite(hFile, var);
  25746. format(var, 32, "SFLeader=%d\n",PlayerInfo[playerid][pSFLeader]);fwrite(hFile, var);
  25747. format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
  25748. format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
  25749. format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
  25750. format(var, 32, "FRank=%d\n",PlayerInfo[playerid][pFRank]);fwrite(hFile, var);
  25751. format(var, 32, "ChangeRank=%d\n",PlayerInfo[playerid][pChangeRank]);fwrite(hFile, var);
  25752. format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
  25753. format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
  25754. format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
  25755. format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
  25756. format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
  25757. format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
  25758. format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
  25759. format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
  25760. format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
  25761. format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
  25762. // format(var, 32, "TrashSkill=%d\n",PlayerInfo[playerid][pTrashSkill]);fwrite(hFile, var); // Trashman
  25763. format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugglerSkill]);fwrite(hFile, var);
  25764. format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
  25765. format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var);
  25766. format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
  25767. format(var, 32, "pArmor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
  25768. format(var, 32, "Hungry=%d\n",PlayerInfo[playerid][pHungry]);fwrite(hFile, var);
  25769. format(var, 32, "Thirsty=%d\n",PlayerInfo[playerid][pThirsty]);fwrite(hFile, var);
  25770. format(var, 32, "pSHealth=%d\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
  25771. format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
  25772. format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
  25773. format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVirtualWorld]);fwrite(hFile, var);
  25774. format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
  25775. format(var, 32, "Glasses=%d\n",PlayerInfo[playerid][pGlasses]);fwrite(hFile, var);
  25776. format(var, 32, "Bandana=%d\n",PlayerInfo[playerid][pBandana]);fwrite(hFile, var);
  25777. format(var, 32, "Helmet=%d\n",PlayerInfo[playerid][pHelmet]);fwrite(hFile, var);
  25778. format(var, 32, "CMask=%d\n",PlayerInfo[playerid][pCMask]);fwrite(hFile, var);
  25779. format(var, 32, "Hat=%d\n",PlayerInfo[playerid][pHat]);fwrite(hFile, var);
  25780. format(var, 32, "Clothes=%d\n",PlayerInfo[playerid][pClothes]);fwrite(hFile, var);
  25781. format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
  25782. format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
  25783. format(var, 32, "Apartment=%d\n",PlayerInfo[playerid][pPaptkey]);fwrite(hFile, var);
  25784. format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
  25785. format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
  25786. format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
  25787. format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
  25788. format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
  25789. format(var, 32, "Gun0=%d\n",PlayerInfo[playerid][pGun0]);fwrite(hFile, var);
  25790. format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
  25791. format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
  25792. format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
  25793. format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
  25794. format(var, 32, "Gun5=%d\n",PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
  25795. format(var, 32, "Gun6=%d\n",PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
  25796. format(var, 32, "Gun7=%d\n",PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
  25797. format(var, 32, "Gun8=%d\n",PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
  25798. format(var, 32, "Gun9=%d\n",PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
  25799. format(var, 32, "Gun10=%d\n",PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
  25800. format(var, 32, "Gun11=%d\n",PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
  25801. format(var, 32, "Gun12=%d\n",PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
  25802. format(var, 32, "hPot=%d\n",PlayerInfo[playerid][hPot]);fwrite(hFile, var);
  25803. format(var, 32, "hCrack=%d\n",PlayerInfo[playerid][hCrack]);fwrite(hFile, var);
  25804. format(var, 32, "hValue=%d\n",PlayerInfo[playerid][hValue]);fwrite(hFile, var);
  25805. format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
  25806. format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
  25807. format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
  25808. format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
  25809. format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
  25810. format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
  25811. format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
  25812. format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
  25813. format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
  25814. format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
  25815. format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
  25816. format(var, 32, "Screw=%d\n",PlayerInfo[playerid][pScrew]);fwrite(hFile, var);
  25817. format(var, 32, "Crowbar=%d\n",PlayerInfo[playerid][pCrowbar]);fwrite(hFile, var);
  25818. format(var, 32, "Hammer=%d\n",PlayerInfo[playerid][pHammer]);fwrite(hFile, var);
  25819. format(var, 32, "Flash=%d\n",PlayerInfo[playerid][pFlash]);fwrite(hFile, var);
  25820. format(var, 32, "Rake=%d\n",PlayerInfo[playerid][pRake]);fwrite(hFile, var);
  25821. format(var, 32, "Wrench=%d\n",PlayerInfo[playerid][pWrench]);fwrite(hFile, var);
  25822. format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
  25823. format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigars]);fwrite(hFile, var);
  25824. format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
  25825. format(var, 32, "Credits=%d\n",PlayerInfo[playerid][pCredits]);fwrite(hFile, var);
  25826. format(var, 32, "Donuts=%d\n",PlayerInfo[playerid][pDonuts]);fwrite(hFile, var);
  25827. format(var, 32, "Cookies=%d\n",PlayerInfo[playerid][pCookies]);fwrite(hFile, var);
  25828. format(var, 32, "WT=%d\n",PlayerInfo[playerid][pWT]);fwrite(hFile, var);
  25829. format(var, 32, "WTc=%d\n",PlayerInfo[playerid][pWTc]);fwrite(hFile, var);
  25830. format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
  25831. format(var, 32, "Scope=%d\n",PlayerInfo[playerid][pScope]);fwrite(hFile, var);
  25832. format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
  25833. format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
  25834. format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
  25835. format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
  25836. format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
  25837. format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
  25838. format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
  25839. format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
  25840. format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
  25841. format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
  25842. format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
  25843. format(var, 32, "NewbieMuted=%d\n",PlayerInfo[playerid][pNewbieMuted]);fwrite(hFile, var);
  25844. format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pReportMuted]);fwrite(hFile, var);
  25845. format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pAdMuted]);fwrite(hFile, var);
  25846. format(var, 32, "SafeSpawn=%d\n",PlayerInfo[playerid][pSafeSpawn]);fwrite(hFile, var);
  25847. format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pSPos_x]);fwrite(hFile, var);
  25848. format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pSPos_y]);fwrite(hFile, var);
  25849. format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pSPos_z]);fwrite(hFile, var);
  25850. format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pSPos_r]);fwrite(hFile, var);
  25851. format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
  25852. format(var, 32, "Mask=%d\n",HasBoughtMask[playerid]);fwrite(hFile, var);
  25853. format(var, 32, "Blindfolds=%d\n",PlayerInfo[playerid][pBlindfolds]);fwrite(hFile, var);
  25854. format(var, 32, "Speedo=%d\n",gSpeedo[playerid]);fwrite(hFile, var);
  25855. format(var, 32, "Seeds=%d\n",PlayerInfo[playerid][pSeeds]);fwrite(hFile, var);
  25856. format(var, 32, "Stealth=%d\n",PlayerInfo[playerid][pStealth]);fwrite(hFile, var);
  25857. format(var, 32, "FakeIP=%d\n",PlayerInfo[playerid][pFakeIP]);fwrite(hFile, var);
  25858. format(var, 32, "PaintballGun1=%d\n",PlayerInfo[playerid][pPaintballGun1]);fwrite(hFile, var);
  25859. format(var, 32, "PaintballGun2=%d\n",PlayerInfo[playerid][pPaintballGun2]);fwrite(hFile, var);
  25860. format(var, 32, "CarKey1=%d\n",PlayerInfo[playerid][pCarKey1]);fwrite(hFile, var);
  25861. format(var, 32, "CarKey2=%d\n",PlayerInfo[playerid][pCarKey2]);fwrite(hFile, var);
  25862. format(var, 32, "CarKey3=%d\n",PlayerInfo[playerid][pCarKey3]);fwrite(hFile, var);
  25863. format(var, 32, "RentKey=%d\n",PlayerInfo[playerid][pRentKey]);fwrite(hFile, var);
  25864. format(var, 32, "HouseKey=%d\n",PlayerInfo[playerid][pHouseKey]);fwrite(hFile, var);
  25865. format(var, 32, "BizKey=%d\n",PlayerInfo[playerid][pBizKey]);fwrite(hFile, var);
  25866. format(var, 32, "InHouse=%d\n",PlayerInfo[playerid][pInHouse]);fwrite(hFile, var);
  25867. format(var, 32, "InBiz=%d\n",PlayerInfo[playerid][pInBiz]);fwrite(hFile, var);
  25868. format(var, 32, "Renthouse=%d\n",PlayerInfo[playerid][pRenthouse]);fwrite(hFile, var);
  25869. format(var, 32, "Products=%d\n",PlayerInfo[playerid][pProducts]);fwrite(hFile, var);
  25870. format(var, 32, "HSafeattempt=%d\n",PlayerInfo[playerid][pHSafeattempt]);fwrite(hFile, var);
  25871. fclose(hFile);
  25872. }
  25873. }
  25874. return 1;
  25875. }
  25876.  
  25877. public OnPlayerSave(playerid)
  25878. {
  25879. if(IsPlayerConnected(playerid))
  25880. {
  25881. if(IsPlayerNPC(playerid)) return 1;
  25882. if(gPlayerLogged[playerid] != 0 && gPlayerSpawned[playerid] == 1)
  25883. {
  25884. new string3[32];
  25885. new playername3[MAX_PLAYER_NAME];
  25886. GetPlayerName(playerid, playername3, sizeof(playername3));
  25887. format(string3, sizeof(string3), "%s.ini", playername3);
  25888. new File: hFile = fopen(string3, io_write);
  25889. if(hFile)
  25890. {
  25891. new var[64];
  25892. if(gmx == 0)
  25893. {
  25894. GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  25895. GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  25896. }
  25897. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  25898. PlayerInfo[playerid][pVirtualWorld] = GetPlayerVirtualWorld(playerid);
  25899. GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
  25900. GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
  25901. format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  25902. format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
  25903. format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
  25904. format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBand]);fwrite(hFile, var);
  25905. format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermBand]);fwrite(hFile, var);
  25906. format(var, 128, "PrisonReason=%s\n",PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
  25907. format(var, 32, "PrisonedBy=%s\n",PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
  25908. format(var, 32, "AdminJailed=%d\n",PlayerInfo[playerid][pAdminJailed]);fwrite(hFile, var);
  25909. format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  25910. format(var, 32, "AWarnings=%d\n",PlayerInfo[playerid][pAWarns]);fwrite(hFile, var);
  25911. format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
  25912. format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
  25913. format(var, 32, "VIPJoinDate=%s\n",PlayerInfo[playerid][pVIPJoinDate]);fwrite(hFile, var);
  25914. format(var, 32, "VIPExpDate=%s\n",PlayerInfo[playerid][pVIPExpDate]);fwrite(hFile, var);
  25915. format(var, 32, "LastLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
  25916. format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
  25917. format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
  25918. format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
  25919. format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
  25920. format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
  25921. format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
  25922. format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
  25923. format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
  25924. format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
  25925. format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
  25926. format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
  25927. format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  25928. format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
  25929. format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
  25930. format(var, 32, "Crime1=%d\n",PlayerInfo[playerid][pCrime][0]);fwrite(hFile, var);
  25931. format(var, 32, "Crime2=%d\n",PlayerInfo[playerid][pCrime][1]);fwrite(hFile, var);
  25932. format(var, 32, "Crime3=%d\n",PlayerInfo[playerid][pCrime][2]);fwrite(hFile, var);
  25933. format(var, 32, "Crime4=%d\n",PlayerInfo[playerid][pCrime][3]);fwrite(hFile, var);
  25934. format(var, 32, "Crime5=%d\n",PlayerInfo[playerid][pCrime][4]);fwrite(hFile, var);
  25935. format(var, 32, "Crime6=%d\n",PlayerInfo[playerid][pCrime][5]);fwrite(hFile, var);
  25936. format(var, 64, "CrimeReporter1=%s\n",PlayerInfo[playerid][pCrimeReporter0]);fwrite(hFile, var);
  25937. format(var, 64, "CrimeReporter2=%s\n",PlayerInfo[playerid][pCrimeReporter1]);fwrite(hFile, var);
  25938. format(var, 64, "CrimeReporter3=%s\n",PlayerInfo[playerid][pCrimeReporter2]);fwrite(hFile, var);
  25939. format(var, 64, "CrimeReporter4=%s\n",PlayerInfo[playerid][pCrimeReporter3]);fwrite(hFile, var);
  25940. format(var, 64, "CrimeReporter5=%s\n",PlayerInfo[playerid][pCrimeReporter4]);fwrite(hFile, var);
  25941. format(var, 64, "CrimeReporter6=%s\n",PlayerInfo[playerid][pCrimeReporter5]);fwrite(hFile, var);
  25942. format(var, 32, "CrimeDate1=%s\n",PlayerInfo[playerid][pCrimeDate0]);fwrite(hFile, var);
  25943. format(var, 32, "CrimeDate2=%s\n",PlayerInfo[playerid][pCrimeDate1]);fwrite(hFile, var);
  25944. format(var, 32, "CrimeDate3=%s\n",PlayerInfo[playerid][pCrimeDate2]);fwrite(hFile, var);
  25945. format(var, 32, "CrimeDate4=%s\n",PlayerInfo[playerid][pCrimeDate3]);fwrite(hFile, var);
  25946. format(var, 32, "CrimeDate5=%s\n",PlayerInfo[playerid][pCrimeDate4]);fwrite(hFile, var);
  25947. format(var, 32, "CrimeDate6=%s\n",PlayerInfo[playerid][pCrimeDate5]);fwrite(hFile, var);
  25948. format(var, 32, "Accent=%s\n",Accent[playerid]);fwrite(hFile, var);
  25949. format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
  25950. format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
  25951. format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
  25952. format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
  25953. format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
  25954. format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
  25955. format(var, 32, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
  25956. format(var, 32, "Suitcase=%d\n",PlayerInfo[playerid][pSuitcase]);fwrite(hFile, var);
  25957. format(var, 32, "Suitcasecash=%d\n",PlayerInfo[playerid][pSuitcasecash]);fwrite(hFile, var);
  25958. format(var, 32, "Suitcasecrack=%d\n",PlayerInfo[playerid][pSuitcasecrack]);fwrite(hFile, var);
  25959. format(var, 32, "Suitcasepot=%d\n",PlayerInfo[playerid][pSuitcasepot]);fwrite(hFile, var);
  25960. format(var, 32, "Suitcasemats=%d\n",PlayerInfo[playerid][pSuitcasemats]);fwrite(hFile, var);
  25961. format(var, 32, "Toolbox=%d\n",PlayerInfo[playerid][pToolbox]);fwrite(hFile, var);
  25962. format(var, 32, "Lotto=%d\n",PlayerInfo[playerid][pLotto]);fwrite(hFile, var);
  25963. format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
  25964. format(var, 32, "LottoNr2=%d\n",PlayerInfo[playerid][pLottoNr2]);fwrite(hFile, var);
  25965. format(var, 32, "LottoNr3=%d\n",PlayerInfo[playerid][pLottoNr3]);fwrite(hFile, var);
  25966. format(var, 32, "LottoN4=%d\n",PlayerInfo[playerid][pLottoNr4]);fwrite(hFile, var);
  25967. format(var, 32, "LottoNr5=%d\n",PlayerInfo[playerid][pLottoNr5]);fwrite(hFile, var);
  25968. format(var, 32, "LottoNr6=%d\n",PlayerInfo[playerid][pLottoNr6]);fwrite(hFile, var);
  25969. format(var, 32, "PlayLotto=%d\n",PlayerInfo[playerid][pPlayLotto]);fwrite(hFile, var);
  25970. format(var, 32, "WinLotto=%d\n",PlayerInfo[playerid][pWinLotto]);fwrite(hFile, var);
  25971. format(var, 32, "WinLotto2=%d\n",PlayerInfo[playerid][pWinLotto2]);fwrite(hFile, var);
  25972. format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
  25973. format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
  25974. format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
  25975. format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
  25976. format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
  25977. format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
  25978. format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
  25979. format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
  25980. format(var, 32, "CarParts=%d\n",PlayerInfo[playerid][pCarParts]);fwrite(hFile, var);
  25981. format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
  25982. format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
  25983. format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
  25984. format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
  25985. format(var, 32, "SFMember=%d\n",PlayerInfo[playerid][pSFMember]);fwrite(hFile, var);
  25986. format(var, 32, "SFLeader=%d\n",PlayerInfo[playerid][pSFLeader]);fwrite(hFile, var);
  25987. format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
  25988. format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
  25989. format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
  25990. format(var, 32, "FRank=%d\n",PlayerInfo[playerid][pFRank]);fwrite(hFile, var);
  25991. format(var, 32, "ChangeRank=%d\n",PlayerInfo[playerid][pChangeRank]);fwrite(hFile, var);
  25992. format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
  25993. format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
  25994. format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
  25995. format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
  25996. format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
  25997. format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
  25998. format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
  25999. format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
  26000. format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
  26001. format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
  26002. // format(var, 32, "TrashSkill=%d\n",PlayerInfo[playerid][pTrashSkill]);fwrite(hFile, var); // Trashman
  26003. format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugglerSkill]);fwrite(hFile, var);
  26004. format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
  26005. format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var);
  26006. format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
  26007. format(var, 32, "pArmor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
  26008. format(var, 32, "Hungry=%d\n",PlayerInfo[playerid][pHungry]);fwrite(hFile, var);
  26009. format(var, 32, "Thirsty=%d\n",PlayerInfo[playerid][pThirsty]);fwrite(hFile, var);
  26010. format(var, 32, "pSHealth=%d\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
  26011. format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
  26012. format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
  26013. format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVirtualWorld]);fwrite(hFile, var);
  26014. format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
  26015. format(var, 32, "Glasses=%d\n",PlayerInfo[playerid][pGlasses]);fwrite(hFile, var);
  26016. format(var, 32, "Bandana=%d\n",PlayerInfo[playerid][pBandana]);fwrite(hFile, var);
  26017. format(var, 32, "Helmet=%d\n",PlayerInfo[playerid][pHelmet]);fwrite(hFile, var);
  26018. format(var, 32, "CMask=%d\n",PlayerInfo[playerid][pCMask]);fwrite(hFile, var);
  26019. format(var, 32, "Hat=%d\n",PlayerInfo[playerid][pHat]);fwrite(hFile, var);
  26020. format(var, 32, "Clothes=%d\n",PlayerInfo[playerid][pClothes]);fwrite(hFile, var);
  26021. format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
  26022. format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
  26023. format(var, 32, "Apartment=%d\n",PlayerInfo[playerid][pPaptkey]);fwrite(hFile, var);
  26024. format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
  26025. format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
  26026. format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
  26027. format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
  26028. format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
  26029. format(var, 32, "Gun0=%d\n",PlayerInfo[playerid][pGun0]);fwrite(hFile, var);
  26030. format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
  26031. format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
  26032. format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
  26033. format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
  26034. format(var, 32, "Gun5=%d\n",PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
  26035. format(var, 32, "Gun6=%d\n",PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
  26036. format(var, 32, "Gun7=%d\n",PlayerInfo[playerid][pGun7]);fwrite(hFile, var);
  26037. format(var, 32, "Gun8=%d\n",PlayerInfo[playerid][pGun8]);fwrite(hFile, var);
  26038. format(var, 32, "Gun9=%d\n",PlayerInfo[playerid][pGun9]);fwrite(hFile, var);
  26039. format(var, 32, "Gun10=%d\n",PlayerInfo[playerid][pGun10]);fwrite(hFile, var);
  26040. format(var, 32, "Gun11=%d\n",PlayerInfo[playerid][pGun11]);fwrite(hFile, var);
  26041. format(var, 32, "Gun12=%d\n",PlayerInfo[playerid][pGun12]);fwrite(hFile, var);
  26042. format(var, 32, "hPot=%d\n",PlayerInfo[playerid][hPot]);fwrite(hFile, var);
  26043. format(var, 32, "hCrack=%d\n",PlayerInfo[playerid][hCrack]);fwrite(hFile, var);
  26044. format(var, 32, "hValue=%d\n",PlayerInfo[playerid][hValue]);fwrite(hFile, var);
  26045. format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
  26046. format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
  26047. format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
  26048. format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
  26049. format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
  26050. format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
  26051. format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
  26052. format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
  26053. format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
  26054. format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
  26055. format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
  26056. format(var, 32, "Screw=%d\n",PlayerInfo[playerid][pScrew]);fwrite(hFile, var);
  26057. format(var, 32, "Crowbar=%d\n",PlayerInfo[playerid][pCrowbar]);fwrite(hFile, var);
  26058. format(var, 32, "Hammer=%d\n",PlayerInfo[playerid][pHammer]);fwrite(hFile, var);
  26059. format(var, 32, "Flash=%d\n",PlayerInfo[playerid][pFlash]);fwrite(hFile, var);
  26060. format(var, 32, "Rake=%d\n",PlayerInfo[playerid][pRake]);fwrite(hFile, var);
  26061. format(var, 32, "Wrench=%d\n",PlayerInfo[playerid][pWrench]);fwrite(hFile, var);
  26062. format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
  26063. format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigars]);fwrite(hFile, var);
  26064. format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
  26065. format(var, 32, "Credits=%d\n",PlayerInfo[playerid][pCredits]);fwrite(hFile, var);
  26066. format(var, 32, "Donuts=%d\n",PlayerInfo[playerid][pDonuts]);fwrite(hFile, var);
  26067. format(var, 32, "Cookies=%d\n",PlayerInfo[playerid][pCookies]);fwrite(hFile, var);
  26068. format(var, 32, "WT=%d\n",PlayerInfo[playerid][pWT]);fwrite(hFile, var);
  26069. format(var, 32, "WTc=%d\n",PlayerInfo[playerid][pWTc]);fwrite(hFile, var);
  26070. format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
  26071. format(var, 32, "Scope=%d\n",PlayerInfo[playerid][pScope]);fwrite(hFile, var);
  26072. format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
  26073. format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
  26074. format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
  26075. format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
  26076. format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
  26077. format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
  26078. format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
  26079. format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
  26080. format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
  26081. format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
  26082. format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
  26083. format(var, 32, "NewbieMuted=%d\n",PlayerInfo[playerid][pNewbieMuted]);fwrite(hFile, var);
  26084. format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pReportMuted]);fwrite(hFile, var);
  26085. format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pAdMuted]);fwrite(hFile, var);
  26086. format(var, 32, "SafeSpawn=%d\n",PlayerInfo[playerid][pSafeSpawn]);fwrite(hFile, var);
  26087. format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pSPos_x]);fwrite(hFile, var);
  26088. format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pSPos_y]);fwrite(hFile, var);
  26089. format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pSPos_z]);fwrite(hFile, var);
  26090. format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pSPos_r]);fwrite(hFile, var);
  26091. format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
  26092. format(var, 32, "Mask=%d\n",HasBoughtMask[playerid]);fwrite(hFile, var);
  26093. format(var, 32, "Blindfolds=%d\n",PlayerInfo[playerid][pBlindfolds]);fwrite(hFile, var);
  26094. format(var, 32, "Speedo=%d\n",gSpeedo[playerid]);fwrite(hFile, var);
  26095. format(var, 32, "Seeds=%d\n",PlayerInfo[playerid][pSeeds]);fwrite(hFile, var);
  26096. format(var, 32, "Stealth=%d\n",PlayerInfo[playerid][pStealth]);fwrite(hFile, var);
  26097. format(var, 32, "FakeIP=%d\n",PlayerInfo[playerid][pFakeIP]);fwrite(hFile, var);
  26098. format(var, 32, "PaintballGun1=%d\n",PlayerInfo[playerid][pPaintballGun1]);fwrite(hFile, var);
  26099. format(var, 32, "PaintballGun2=%d\n",PlayerInfo[playerid][pPaintballGun2]);fwrite(hFile, var);
  26100. format(var, 32, "CarKey1=%d\n",PlayerInfo[playerid][pCarKey1]);fwrite(hFile, var);
  26101. format(var, 32, "CarKey2=%d\n",PlayerInfo[playerid][pCarKey2]);fwrite(hFile, var);
  26102. format(var, 32, "CarKey3=%d\n",PlayerInfo[playerid][pCarKey3]);fwrite(hFile, var);
  26103. format(var, 32, "RentKey=%d\n",PlayerInfo[playerid][pRentKey]);fwrite(hFile, var);
  26104. format(var, 32, "HouseKey=%d\n",PlayerInfo[playerid][pHouseKey]);fwrite(hFile, var);
  26105. format(var, 32, "BizKey=%d\n",PlayerInfo[playerid][pBizKey]);fwrite(hFile, var);
  26106. format(var, 32, "InHouse=%d\n",PlayerInfo[playerid][pInHouse]);fwrite(hFile, var);
  26107. format(var, 32, "InBiz=%d\n",PlayerInfo[playerid][pInBiz]);fwrite(hFile, var);
  26108. format(var, 32, "Renthouse=%d\n",PlayerInfo[playerid][pRenthouse]);fwrite(hFile, var);
  26109. format(var, 32, "Products=%d\n",PlayerInfo[playerid][pProducts]);fwrite(hFile, var);
  26110. format(var, 32, "HSafeattempt=%d\n",PlayerInfo[playerid][pHSafeattempt]);fwrite(hFile, var);
  26111. fclose(hFile);
  26112. }
  26113. }
  26114. }
  26115. return 1;
  26116. }
  26117. public OnPlayerLogin(playerid,password[],password2[])
  26118. {
  26119. new tmp2[256];
  26120. new string2[128];
  26121. format(string2, sizeof(string2), "%s.ini", PlayerName(playerid));
  26122. new File: UserFile = fopen(string2, io_read);
  26123. if ( UserFile )
  26124. {
  26125. new PassData[128];
  26126. new keytmp[256], valtmp[256];
  26127. fread( UserFile , PassData , sizeof( PassData ) );
  26128. keytmp = ini_GetKey( PassData );
  26129. if( strcmp( keytmp , "Key" , true ) == 0)
  26130. {
  26131. valtmp = ini_GetValue( PassData );
  26132. strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
  26133. }
  26134. if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0)
  26135. {
  26136. new link[500];
  26137. format(link,sizeof(link), "5-rp.com/ls.php?user=%s&pass=%s", PlayerName(playerid),password2);
  26138. HTTP(playerid, HTTP_GET, link, "", "");
  26139. new key[ 256 ] , val[ 256 ];
  26140. new Data[ 256 ];
  26141. while ( fread( UserFile , Data , sizeof( Data ) ) )
  26142. {
  26143. key = ini_GetKey( Data );
  26144. if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strvalEx( val ); }
  26145. if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strvalEx( val ); }
  26146. if( strcmp( key , "Band" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBand] = strvalEx( val ); }
  26147. if( strcmp( key , "PermaBand" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPermBand] = strvalEx( val ); }
  26148. if( strcmp( key , "PrisonReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPrisonReason], val, 0, strlen(val)-1, 255); }
  26149. if( strcmp( key , "PrisonedBy" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPrisonedBy], val, 0, strlen(val)-1, 255); }
  26150. if( strcmp( key , "AdminJailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminJailed] = strvalEx( val ); }
  26151. if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strvalEx( val ); }
  26152. if( strcmp( key , "AWarnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAWarns] = strvalEx( val ); }
  26153. if( strcmp( key , "Disabled" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDisabled] = strvalEx( val ); }
  26154. if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strvalEx( val ); }
  26155. if( strcmp( key , "VIPJoinDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pVIPJoinDate], val, 0, strlen(val)-1, 255); }
  26156. if( strcmp( key , "VIPExpDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pVIPExpDate], val, 0, strlen(val)-1, 255); }
  26157. if( strcmp( key , "LastLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastLogin], val, 0, strlen(val)-1, 255); }
  26158. if( strcmp( key , "FactionMod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFactionMod] = strvalEx( val ); }
  26159. if( strcmp( key , "BanAppealer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBanAppealer] = strvalEx( val ); }
  26160. if( strcmp( key , "GangMod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGangMod] = strvalEx( val ); }
  26161. if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strvalEx( val ); }
  26162. if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strvalEx( val ); }
  26163. if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strvalEx( val ); }
  26164. if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strvalEx( val ); }
  26165. if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strvalEx( val ); }
  26166. if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strvalEx( val ); }
  26167. if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strvalEx( val ); }
  26168. if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strvalEx( val ); }
  26169. if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strvalEx( val ); }
  26170. if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strvalEx( val ); }
  26171. if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strvalEx( val ); }
  26172. if( strcmp( key , "Crime1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][0] = strvalEx( val ); }
  26173. if( strcmp( key , "Crime2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][1] = strvalEx( val ); }
  26174. if( strcmp( key , "Crime3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][2] = strvalEx( val ); }
  26175. if( strcmp( key , "Crime4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][3] = strvalEx( val ); }
  26176. if( strcmp( key , "Crime5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][4] = strvalEx( val ); }
  26177. if( strcmp( key , "Crime6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrime][5] = strvalEx( val ); }
  26178. if( strcmp( key , "CrimeReporter1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter0], val, 0, strlen(val)-1, 255); }
  26179. if( strcmp( key , "CrimeReporter2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter1], val, 0, strlen(val)-1, 255); }
  26180. if( strcmp( key , "CrimeReporter3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter2], val, 0, strlen(val)-1, 255); }
  26181. if( strcmp( key , "CrimeReporter4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter3], val, 0, strlen(val)-1, 255); }
  26182. if( strcmp( key , "CrimeReporter5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter4], val, 0, strlen(val)-1, 255); }
  26183. if( strcmp( key , "CrimeReporter6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReporter5], val, 0, strlen(val)-1, 255); }
  26184. if( strcmp( key , "CrimeDate1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate0], val, 0, strlen(val)-1, 255); }
  26185. if( strcmp( key , "CrimeDate2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate1], val, 0, strlen(val)-1, 255); }
  26186. if( strcmp( key , "CrimeDate3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate2], val, 0, strlen(val)-1, 255); }
  26187. if( strcmp( key , "CrimeDate4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate3], val, 0, strlen(val)-1, 255); }
  26188. if( strcmp( key , "CrimeDate5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate4], val, 0, strlen(val)-1, 255); }
  26189. if( strcmp( key , "CrimeDate6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeDate5], val, 0, strlen(val)-1, 255); }
  26190. if( strcmp( key , "Accent" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(Accent[playerid], val, 0, strlen(val)-1, 255); }
  26191. if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strvalEx( val ); }
  26192. if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strvalEx( val ); }
  26193. if( strcmp( key , "CHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCHits] = strvalEx( val ); }
  26194. if( strcmp( key , "FHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFHits] = strvalEx( val ); }
  26195. if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strvalEx( val ); }
  26196. if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strvalEx( val ); }
  26197. if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strvalEx( val ); }
  26198. if( strcmp( key , "Suitcase" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcase] = strvalEx( val ); }
  26199. if( strcmp( key , "Suitcasecash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasecash] = strvalEx( val ); }
  26200. if( strcmp( key , "Suitcasecrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasecrack] = strvalEx( val ); }
  26201. if( strcmp( key , "Suitcasepot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasepot] = strvalEx( val ); }
  26202. if( strcmp( key , "Suitcasemats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSuitcasemats] = strvalEx( val ); }
  26203. if( strcmp( key , "Toolbox" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pToolbox] = strvalEx( val ); }
  26204. if( strcmp( key , "Lotto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLotto] = strvalEx( val ); }
  26205. if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strvalEx( val ); }
  26206. if( strcmp( key , "LottoNr2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr2] = strvalEx( val ); }
  26207. if( strcmp( key , "LottoNr3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr3] = strvalEx( val ); }
  26208. if( strcmp( key , "LottoNr4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr4] = strvalEx( val ); }
  26209. if( strcmp( key , "LottoNr5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr5] = strvalEx( val ); }
  26210. if( strcmp( key , "LottoNr6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr6] = strvalEx( val ); }
  26211. if( strcmp( key , "PlayLotto" , true ) == 999 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayLotto] = strvalEx( val ); }
  26212. if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strvalEx( val ); }
  26213. if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strvalEx( val ); }
  26214. if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strvalEx( val ); }
  26215. if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strvalEx( val ); }
  26216. if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strvalEx( val ); }
  26217. if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strvalEx( val ); }
  26218. if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strvalEx( val ); }
  26219. if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strvalEx( val ); }
  26220. if( strcmp( key , "CarParts" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarParts] = strvalEx( val ); }
  26221. if( strcmp( key , "Pot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPot] = strvalEx( val ); }
  26222. if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strvalEx( val ); }
  26223. if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strvalEx( val ); }
  26224. if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strvalEx( val ); }
  26225. if( strcmp( key , "SFMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFMember] = strvalEx( val ); }
  26226. if( strcmp( key , "SFLeader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFLeader] = strvalEx( val ); }
  26227. if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strvalEx( val ); }
  26228. if( strcmp( key , "Gang" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGang] = strvalEx( val ); }
  26229. if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strvalEx( val ); }
  26230. if( strcmp( key , "FRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFRank] = strvalEx( val ); }
  26231. if( strcmp( key , "ChangeRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChangeRank] = strvalEx( val ); }
  26232. if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strvalEx( val ); }
  26233. if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strvalEx( val ); }
  26234. if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strvalEx( val ); }
  26235. if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strvalEx( val ); }
  26236. if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strvalEx( val ); }
  26237. if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strvalEx( val ); }
  26238. if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strvalEx( val ); }
  26239. if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strvalEx( val ); }
  26240. if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strvalEx( val ); }
  26241. if( strcmp( key , "ArmsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmsSkill] = strvalEx( val ); }
  26242. // if( strcmp( key , "TrashSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTrashSkill] = strvalEx( val ); } // Trashman
  26243. if( strcmp( key , "SmugglerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmugglerSkill] = strvalEx( val ); }
  26244. if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strvalEx( val ); }
  26245. if( strcmp( key , "FightingStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFightingStyle] = strvalEx( val ); }
  26246. if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
  26247. if( strcmp( key , "pArmor" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmor] = floatstr( val ); }
  26248. if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = strvalEx( val ); }
  26249. if( strcmp( key , "Hungry" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHungry] = strvalEx( val ); }
  26250. if( strcmp( key , "Thirsty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pThirsty] = strvalEx( val ); }
  26251. if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strvalEx( val ); }
  26252. if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strvalEx( val ); }
  26253. if( strcmp( key , "VirtualWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirtualWorld] = strvalEx( val ); }
  26254. if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strvalEx( val ); }
  26255. if( strcmp( key , "Glasses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGlasses] = strvalEx( val ); }
  26256. if( strcmp( key , "Bandana" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBandana] = strvalEx( val ); }
  26257. if( strcmp( key , "Helmet" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelmet] = strvalEx( val ); }
  26258. if( strcmp( key , "CMask" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCMask] = strvalEx( val ); }
  26259. if( strcmp( key , "Hat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHat] = strvalEx( val ); }
  26260. if( strcmp( key , "Clothes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClothes] = strvalEx( val ); }
  26261. if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strvalEx( val ); }
  26262. if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strvalEx( val ); }
  26263. if( strcmp( key , "Apartment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaptkey] = strvalEx( val ); }
  26264. if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strvalEx( val ); }
  26265. if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strvalEx( val ); }
  26266. if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strvalEx( val ); }
  26267. if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strvalEx( val ); }
  26268. if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strvalEx( val ); }
  26269. if( strcmp( key , "Gun0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun0] = strvalEx( val ); }
  26270. if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strvalEx( val ); }
  26271. if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strvalEx( val ); }
  26272. if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strvalEx( val ); }
  26273. if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strvalEx( val ); }
  26274. if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strvalEx( val ); }
  26275. if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strvalEx( val ); }
  26276. if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strvalEx( val ); }
  26277. if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strvalEx( val ); }
  26278. if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strvalEx( val ); }
  26279. if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strvalEx( val ); }
  26280. if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strvalEx( val ); }
  26281. if( strcmp( key , "Gun12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun12] = strvalEx( val ); }
  26282. if( strcmp( key , "hPot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hPot] = strvalEx( val ); }
  26283. if( strcmp( key , "hCrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hCrack] = strvalEx( val ); }
  26284. if( strcmp( key , "hValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hValue] = strvalEx( val ); }
  26285. if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strvalEx( val ); }
  26286. if( strcmp( key , "DrugsTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsTime] = strvalEx( val ); }
  26287. if( strcmp( key , "LawyerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerTime] = strvalEx( val ); }
  26288. if( strcmp( key , "LawyerFreeTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerFreeTime] = strvalEx( val ); }
  26289. if( strcmp( key , "MechTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechTime] = strvalEx( val ); }
  26290. if( strcmp( key , "SexTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexTime] = strvalEx( val ); }
  26291. if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strvalEx( val ); }
  26292. if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strvalEx( val ); }
  26293. if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strvalEx( val ); }
  26294. if( strcmp( key , "Dice" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDice] = strvalEx( val ); }
  26295. if( strcmp( key , "Spraycan" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpraycan] = strvalEx( val ); }
  26296. if( strcmp( key , "Screw" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScrew] = strvalEx( val ); }
  26297. if( strcmp( key , "Crowbar" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrowbar] = strvalEx( val ); }
  26298. if( strcmp( key , "Hammer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHammer] = strvalEx( val ); }
  26299. if( strcmp( key , "Flash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlash] = strvalEx( val ); }
  26300. if( strcmp( key , "Rake" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRake] = strvalEx( val ); }
  26301. if( strcmp( key , "Wrench" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWrench] = strvalEx( val ); }
  26302. if( strcmp( key , "Rope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRope] = strvalEx( val ); }
  26303. if( strcmp( key , "Cigars" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigars] = strvalEx( val ); }
  26304. if( strcmp( key , "Sprunk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSprunk] = strvalEx( val ); }
  26305. if( strcmp( key , "Credits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCredits] = strvalEx( val ); }
  26306. if( strcmp( key , "Donuts" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonuts] = strvalEx( val ); }
  26307. if( strcmp( key , "Cookies" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookies] = strvalEx( val ); }
  26308. if( strcmp( key , "WT" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWT] = strvalEx( val ); }
  26309. if( strcmp( key , "WTc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWTc] = strvalEx( val ); }
  26310. if( strcmp( key , "Bombs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombs] = strvalEx( val ); }
  26311. if( strcmp( key , "Scope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScope] = strvalEx( val ); }
  26312. if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strvalEx( val ); }
  26313. if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strvalEx( val ); }
  26314. if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strvalEx( val ); }
  26315. if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOnDuty] = strvalEx( val ); }
  26316. if( strcmp( key , "Hospital" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHospital] = strvalEx( val ); }
  26317. if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strvalEx( val ); }
  26318. if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strvalEx( val ); }
  26319. if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
  26320. if( strcmp( key , "ContractBy" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pContractBy], val, 0, strlen(val)-1, 255); }
  26321. if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
  26322. if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strvalEx( val ); }
  26323. if( strcmp( key , "NewbieMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewbieMuted] = strvalEx( val ); }
  26324. if( strcmp( key , "ReportMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReportMuted] = strvalEx( val ); }
  26325. if( strcmp( key , "AdMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdMuted] = strvalEx( val ); }
  26326. if( strcmp( key , "SafeSpawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeSpawn] = strvalEx( val ); }
  26327. if( strcmp( key , "SPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_x] = floatstr( val ); }
  26328. if( strcmp( key , "SPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_y] = floatstr( val ); }
  26329. if( strcmp( key , "SPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_z] = floatstr( val ); }
  26330. if( strcmp( key , "SPos_r" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_r] = floatstr( val ); }
  26331. if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
  26332. if( strcmp( key , "Mask" , true ) == 0 ) { val = ini_GetValue( Data ); HasBoughtMask[playerid] = strvalEx( val ); }
  26333. if( strcmp( key , "Blindfolds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlindfolds] = strvalEx( val ); }
  26334. if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); gSpeedo[playerid] = strvalEx( val ); }
  26335. if( strcmp( key , "Seeds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSeeds] = strvalEx( val ); }
  26336. if( strcmp( key , "Stealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStealth] = strvalEx( val ); }
  26337. if( strcmp( key , "FakeIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFakeIP] = strvalEx( val ); }
  26338. if( strcmp( key , "PaintballGun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaintballGun1] = strvalEx( val ); }
  26339. if( strcmp( key , "PaintballGun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaintballGun2] = strvalEx( val ); }
  26340. if( strcmp( key , "CarKey1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey1] = strvalEx( val ); }
  26341. if( strcmp( key , "CarKey2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey2] = strvalEx( val ); }
  26342. if( strcmp( key , "CarKey3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey3] = strvalEx( val ); }
  26343. if( strcmp( key , "RentKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRentKey] = strvalEx( val ); }
  26344. if( strcmp( key , "HouseKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseKey] = strvalEx( val ); }
  26345. if( strcmp( key , "BizKey" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBizKey] = strvalEx( val ); }
  26346. if( strcmp( key , "InHouse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInHouse] = strvalEx( val ); }
  26347. if( strcmp( key , "InBiz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInBiz] = strvalEx( val ); }
  26348. if( strcmp( key , "Renthouse" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRenthouse] = strvalEx( val ); }
  26349. if( strcmp( key , "Products" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pProducts] = strvalEx( val ); }
  26350. if( strcmp( key , "HSafeattempt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHSafeattempt] = strvalEx( val ); }
  26351. }
  26352. fclose(UserFile);
  26353. }
  26354. else
  26355. {
  26356. new ip[16];
  26357. GetPlayerIp(playerid, ip, sizeof(ip));
  26358. new logstring[256];
  26359. new year, month, day;
  26360. getdate(year, month, day);
  26361. SendClientMessage(playerid, COLOR_RED, "SERVER: Password does not match your name. you have been kicked as a result.");
  26362. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Pass: %s.", ip, day, month, year,PlayerName(playerid),password2);
  26363. BLLog(logstring);
  26364. Kick(playerid);
  26365. return 1;
  26366. }
  26367. if(PlayerInfo[playerid][pPermBand] == 1)
  26368. {
  26369. new banstring[256];
  26370. format(banstring,sizeof(banstring),"Info: %s has been banned by ChuckNorrisBot, reason: Attempting to log into a perma-banned account.",PlayerName(playerid));
  26371. SendClientMessageToAll(COLOR_LIGHTRED,banstring);
  26372. new ip[16];
  26373. new string[256];
  26374. GetPlayerIp(playerid, ip, sizeof(ip));
  26375. format(string,sizeof(string),"banip %s Atteming to evade ban",ip);
  26376. SendRconCommand(string);
  26377. SendRconCommand("reloadbans");
  26378. Kick(playerid);
  26379. }
  26380. if(PlayerInfo[playerid][pBand] == 3)
  26381. {
  26382. new banstring[256];
  26383. format(banstring,sizeof(banstring),"Info: %s has been bannedby ChuckNorrisBot, reason: Attempting to log into a banned account.",PlayerName(playerid));
  26384. SendClientMessageToAll(COLOR_LIGHTRED,banstring);
  26385. new ip[16];
  26386. new string[256];
  26387. GetPlayerIp(playerid, ip, sizeof(ip));
  26388. format(string,sizeof(string),"banip %s Attempting to evade ban",ip);
  26389. SendRconCommand(string);
  26390. SendRconCommand("reloadbans");
  26391. Kick(playerid);
  26392. }
  26393. if(PlayerInfo[playerid][pDisabled] == 1) //account disabled
  26394. {
  26395. SendClientMessage(playerid, COLOR_RED, "SERVER: Your account has been disabled.");
  26396. Kick(playerid);
  26397. }
  26398. if (PlayerInfo[playerid][pHungry] == 0) { PlayerInfo[playerid][pHungry] = 12000; }
  26399. if (PlayerInfo[playerid][pThirsty] == 0) { PlayerInfo[playerid][pThirsty] = 6000; }
  26400. if(PlayerInfo[playerid][pReg] == 0)
  26401. {
  26402. PlayerInfo[playerid][pLevel] = 10;
  26403. PlayerInfo[playerid][pAccount] = 2000000;
  26404. PlayerInfo[playerid][pReg] = 1;
  26405. PlayerInfo[playerid][pCarKey1] = 0;
  26406. PlayerInfo[playerid][pCarKey2] = 0;
  26407. PlayerInfo[playerid][pCarKey3] = 0;
  26408. PlayerInfo[playerid][pRentKey] = 0;
  26409. PlayerInfo[playerid][pHouseKey] = 999;
  26410. PlayerInfo[playerid][pBizKey] = 999;
  26411. PlayerInfo[playerid][pInHouse] = 999;
  26412. PlayerInfo[playerid][pInBiz] = 999;
  26413. PlayerInfo[playerid][pRenthouse] = 999;
  26414. }
  26415. if(PlayerInfo[playerid][pDonateRank] >= 1)
  26416. {
  26417. new year, month, day;
  26418. getdate(year, month, day);
  26419. new spyear[32], spmonth[32], spday[32];
  26420. strmid(spyear, PlayerInfo[playerid][pVIPExpDate], 6, 10, 32);
  26421. strmid(spmonth, PlayerInfo[playerid][pVIPExpDate], 0, 2, 32);
  26422. strmid(spday, PlayerInfo[playerid][pVIPExpDate], 3, 5, 32);
  26423. new pyear = strval(spyear);
  26424. new pmonth = strval(spmonth);
  26425. new pday = strval(spday);
  26426. if(pyear == 2010 && pmonth == 1)
  26427. {
  26428. format(PlayerInfo[playerid][pVIPExpDate], 32, "Thank your for purchasing VIP, It expires on the %02d/%02d/%d.", pmonth, pday, pyear+1);
  26429. }
  26430. if(year > pyear && month == pmonth && day > pday) { ClearVIP(playerid); }
  26431. if(month == pmonth && day > pday) { ClearVIP(playerid); }
  26432. }
  26433. if(PlayerInfo[playerid][pAdminJailed] == 1)
  26434. {
  26435. format(tmp2, sizeof(tmp2), "You have been prisoned by %s for %s", PlayerInfo[playerid][pPrisonedBy], PlayerInfo[playerid][pPrisonReason]);
  26436. SendClientMessage(playerid, COLOR_RED,tmp2);
  26437. }
  26438. strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 128);
  26439. format(tmp2, sizeof(tmp2), "SERVER: Welcome %s.", PlayerName(playerid));
  26440. SendClientMessage(playerid, COLOR_WHITE, tmp2);
  26441. format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~ %s", PlayerName(playerid));
  26442. GameTextForPlayer(playerid, tmp2, 5000, 1);
  26443. SendClientMessage(playerid, COLOR_YELLOW, motd);
  26444. format(tmp2, sizeof(tmp2), "Your last visit was on: %s, If you think someone has been on your account, contact an administrator.", PlayerInfo[playerid][pLastLogin]);
  26445. SendClientMessage(playerid, COLOR_YELLOW, tmp2);
  26446. if(PlayerInfo[playerid][pAdmin] > 0)
  26447. {
  26448. format(tmp2, sizeof(tmp2), "SERVER:You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]);
  26449. SendClientMessage(playerid, COLOR_WHITE,tmp2);
  26450. format(tmp2, sizeof(tmp2), "SERVER: You currently have %d/3 Admin Warnings. If you'll get 3 you'll be auto-removed from the admin team.",PlayerInfo[playerid][pAWarns]);
  26451. SendClientMessage(playerid, COLOR_WHITE,tmp2);
  26452. }
  26453. if(PlayerInfo[playerid][pFMember] < 255)
  26454. {
  26455. format(tmp2, sizeof(tmp2), "Family MOTD: %s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
  26456. SendClientMessage(playerid, COLOR_YELLOW, tmp2);
  26457. }
  26458. if(PlayerInfo[playerid][pFMember] < 255 && PlayerInfo[playerid][pChangeRank] == 0)
  26459. {
  26460. PlayerInfo[playerid][pFRank] = PlayerInfo[playerid][pRank];
  26461. PlayerInfo[playerid][pRank] = 0;
  26462. }
  26463. PlayerInfo[playerid][pChangeRank] = 1;
  26464. ResetPlayerMoney(playerid);
  26465. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  26466. SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]);
  26467. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
  26468. TogglePlayerSpectating(playerid, 0);
  26469. new plrIP[16];
  26470. GetPlayerIp(playerid, plrIP, sizeof(plrIP));
  26471. strmid(PlayerInfo[playerid][pIP], plrIP, 0, strlen(plrIP), 255);
  26472. PlayerInfo[playerid][pAdjustable] = 0;
  26473. InitLockDoors(playerid);
  26474. gPlayerLogged[playerid] = 1;
  26475. if(PlayerInfo[playerid][pHouseKey] < 999)
  26476. {
  26477. new sendername[128];
  26478. GetPlayerName(playerid, sendername, sizeof(sendername));
  26479. if(strcmp(sendername, HouseInfo[PlayerInfo[playerid][pHouseKey]][hOwner], true) != 0)
  26480. {
  26481. PlayerInfo[playerid][pHouseKey] = 999;
  26482. }
  26483. }
  26484. if(PlayerInfo[playerid][pBizKey] < 999)
  26485. {
  26486. new sendername[128];
  26487. GetPlayerName(playerid, sendername, sizeof(sendername));
  26488. if(strcmp(sendername, BizInfo[PlayerInfo[playerid][pBizKey]][bOwner], true) != 0)
  26489. {
  26490. PlayerInfo[playerid][pBizKey] = 999;
  26491. }
  26492. }
  26493. if(PlayerInfo[playerid][pCarKey1] > 0)
  26494. {
  26495. new sendername[128];
  26496. GetPlayerName(playerid, sendername, sizeof(sendername));
  26497. if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey1]][tOwner], true) != 0)
  26498. {
  26499. PlayerInfo[playerid][pCarKey1] = 0;
  26500. }
  26501. }
  26502. if(PlayerInfo[playerid][pCarKey2] > 0)
  26503. {
  26504. new sendername[128];
  26505. GetPlayerName(playerid, sendername, sizeof(sendername));
  26506. if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey2]][tOwner], true) != 0)
  26507. {
  26508. PlayerInfo[playerid][pCarKey2] = 0;
  26509. }
  26510. }
  26511. if(PlayerInfo[playerid][pCarKey3] > 0)
  26512. {
  26513. new sendername[128];
  26514. GetPlayerName(playerid, sendername, sizeof(sendername));
  26515. if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pCarKey3]][tOwner], true) != 0)
  26516. {
  26517. PlayerInfo[playerid][pCarKey3] = 0;
  26518. }
  26519. }
  26520. if(PlayerInfo[playerid][pRentKey] > 0)
  26521. {
  26522. new sendername[128];
  26523. GetPlayerName(playerid, sendername, sizeof(sendername));
  26524. if(strcmp(sendername, CarInfo[PlayerInfo[playerid][pRentKey]][tOwner], true) != 0)
  26525. {
  26526. PlayerInfo[playerid][pRentKey] = 0;
  26527. }
  26528. }
  26529. if(PlayerInfo[playerid][pSuitcase] == 1)
  26530. {
  26531. //SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 );
  26532. //HoldingSuitcase[playerid] = 1;
  26533. }
  26534. }
  26535. return 1;
  26536. }
  26537.  
  26538. stock ini_GetKey( line[] )
  26539. {
  26540. new keyRes[256];
  26541. keyRes[0] = 0;
  26542. if( strfind( line , "=" , true ) == -1 ) return keyRes;
  26543. strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
  26544. return keyRes;
  26545. }
  26546.  
  26547. stock ini_GetValue( line[] )
  26548. {
  26549. new valRes[256];
  26550. valRes[0]=0;
  26551. if( strfind( line , "=" , true ) == -1 ) return valRes;
  26552. strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
  26553. return valRes;
  26554. }
  26555.  
  26556.  
  26557. public ABroadCast(color,const string[],level)
  26558. {
  26559. //foreach(Player, i)
  26560. for(new i; i<MAX_PLAYERS; i++)
  26561. {
  26562. if(IsPlayerConnected(i))
  26563. {
  26564. if(PlayerInfo[i][pAdmin] >= level)
  26565. {
  26566. SendClientMessage(i, color, string);
  26567. // printf("%s", string);
  26568. }
  26569. }
  26570. }
  26571. return 1;
  26572. }
  26573.  
  26574. public OOCOff(color,const string[])
  26575. {
  26576. //foreach(Player, i)
  26577. for(new i; i<MAX_PLAYERS; i++)
  26578. {
  26579. if(IsPlayerConnected(i))
  26580. {
  26581. if(!gOoc[i])
  26582. {
  26583. SendClientMessage(i, color, string);
  26584. }
  26585. }
  26586. }
  26587. }
  26588.  
  26589. public OOCNewbie(color,const string[])
  26590. {
  26591. //foreach(Player, i)
  26592. for(new i; i<MAX_PLAYERS; i++)
  26593. {
  26594. if(IsPlayerConnected(i))
  26595. {
  26596. if(!gNewbie[i])
  26597. {
  26598. SendClientMessage(i, color, string);
  26599. }
  26600. }
  26601. }
  26602. }
  26603.  
  26604. public OOCNews(color,const string[])
  26605. {
  26606. //foreach(Player, i)
  26607. for(new i; i<MAX_PLAYERS; i++)
  26608. {
  26609. if(IsPlayerConnected(i))
  26610. {
  26611. if(!gNews[i])
  26612. {
  26613. SendClientMessage(i, color, string);
  26614. }
  26615. }
  26616. }
  26617. }
  26618.  
  26619. public SendDepartmentMessage(color, string[])
  26620. {
  26621. //foreach(Player, i)
  26622. for(new i; i<MAX_PLAYERS; i++)
  26623. {
  26624. if(IsPlayerConnected(i))
  26625. {
  26626. if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4 || PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pLeader] == 7 || PlayerInfo[i][pLeader] == 5 || PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pMember] == 6)
  26627. {
  26628. SendClientMessage(i, color, string);
  26629. }
  26630. }
  26631. }
  26632. }
  26633.  
  26634. public SendRadioMessage(member, color, string[])
  26635. {
  26636. //foreach(Player, i)
  26637. for(new i; i<MAX_PLAYERS; i++)
  26638. {
  26639. if(IsPlayerConnected(i))
  26640. {
  26641. if(PlayerInfo[i][pMember] == member || PlayerInfo[i][pLeader] == member)
  26642. {
  26643. SendClientMessage(i, color, string);
  26644. }
  26645. }
  26646. }
  26647. }
  26648.  
  26649. public SendJobMessage(job, color, string[])
  26650. {
  26651. //foreach(Player, i)
  26652. for(new i; i<MAX_PLAYERS; i++)
  26653. {
  26654. if(IsPlayerConnected(i))
  26655. {
  26656. if(PlayerInfo[i][pJob] == job)
  26657. {
  26658. SendClientMessage(i, color, string);
  26659. }
  26660. }
  26661. }
  26662. }
  26663.  
  26664. public SendNewFamilyMessage(family, color, string[])
  26665. {
  26666. //foreach(Player, i)
  26667. for(new i; i<MAX_PLAYERS; i++)
  26668. {
  26669. if(IsPlayerConnected(i))
  26670. {
  26671. if(PlayerInfo[i][pFMember] == family)
  26672. {
  26673. if(!gFam[i])
  26674. {
  26675. SendClientMessage(i, color, string);
  26676. }
  26677. }
  26678. }
  26679. }
  26680. }
  26681.  
  26682. public SendFamilyMessage(family, color, string[])
  26683. {
  26684. //foreach(Player, i)
  26685. for(new i; i<MAX_PLAYERS; i++)
  26686. {
  26687. if(IsPlayerConnected(i))
  26688. {
  26689. if(PlayerInfo[i][pMember] == family || PlayerInfo[i][pLeader] == family)
  26690. {
  26691. if(!gFam[i])
  26692. {
  26693. SendClientMessage(i, color, string);
  26694. }
  26695. }
  26696. }
  26697. }
  26698. }
  26699.  
  26700. public SendCopMessage(color, string[])
  26701. {
  26702. //foreach(Player, i)
  26703. for(new i; i<MAX_PLAYERS; i++)
  26704. {
  26705. if(IsPlayerConnected(i))
  26706. {
  26707. if(IsACop(i))
  26708. {
  26709. SendClientMessage(i, color, string);
  26710. }
  26711. }
  26712. }
  26713. }
  26714.  
  26715. public SendParaMessage(color, string[])
  26716. {
  26717. //foreach(Player, i)
  26718. for(new i; i<MAX_PLAYERS; i++)
  26719. {
  26720. if(IsPlayerConnected(i))
  26721. {
  26722. if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
  26723. {
  26724. SendClientMessage(i, color, string);
  26725. }
  26726. }
  26727. }
  26728. }
  26729.  
  26730. public SendIRCMessage(channel, color, string[])
  26731. {
  26732. //foreach(Player, i)
  26733. for(new i; i<MAX_PLAYERS; i++)
  26734. {
  26735. if(IsPlayerConnected(i))
  26736. {
  26737. if(PlayersChannel[i] == channel)
  26738. {
  26739. SendClientMessage(i, color, string);
  26740. }
  26741. }
  26742. }
  26743. }
  26744.  
  26745. public SendAdminMessage(color, string[])
  26746. {
  26747. //foreach(Player, i)
  26748. for(new i; i<MAX_PLAYERS; i++)
  26749. {
  26750. if(IsPlayerConnected(i))
  26751. {
  26752. if(PlayerInfo[i][pAdmin] >= 1)
  26753. {
  26754. SendClientMessage(i, color, string);
  26755. }
  26756. }
  26757. }
  26758. }
  26759.  
  26760. public SendAdminMessage2(color, string[])
  26761. {
  26762. //foreach(Player, i)
  26763. for(new i; i<MAX_PLAYERS; i++)
  26764. {
  26765. if(IsPlayerConnected(i))
  26766. {
  26767. if(PlayerInfo[i][pAdmin] >= 99999 || PlayerInfo[i][pFakeIP])
  26768. {
  26769. SendClientMessage(i, color, string);
  26770. }
  26771. }
  26772. }
  26773. }
  26774.  
  26775. public SendVIPMessage(color, string[])
  26776. {
  26777. for(new i; i<MAX_PLAYERS; i++)
  26778. {
  26779. if(IsPlayerConnected(i))
  26780. {
  26781. if(PlayerInfo[i][pDonateRank] >= 1)
  26782. {
  26783. SendClientMessage(i, color, string);
  26784. }
  26785. }
  26786. }
  26787. }
  26788.  
  26789. public SendWTMessage(channel, color, string[])
  26790. {
  26791. //foreach(Player, i)
  26792. for(new i; i<MAX_PLAYERS; i++)
  26793. {
  26794. if(IsPlayerConnected(i))
  26795. {
  26796. if(PlayerInfo[i][pWTc] == channel && WTOnline[i] == 0)
  26797. {
  26798. SendClientMessage(i, color, string);
  26799. }
  26800. }
  26801. }
  26802. }
  26803.  
  26804. public PlayerFixRadio(playerid)
  26805. {
  26806. if(IsPlayerConnected(playerid))
  26807. {
  26808. SetTimer("PlayerFixRadio2", 1000, 0);
  26809. Fixr[playerid] = 1;
  26810. }
  26811. }
  26812.  
  26813. public PlayerFixRadio2()
  26814. {
  26815. //foreach(Player, i)
  26816. for(new i; i<MAX_PLAYERS; i++)
  26817. {
  26818. if(IsPlayerConnected(i))
  26819. {
  26820. if(Fixr[i])
  26821. {
  26822. PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
  26823. Fixr[i] = 0;
  26824. }
  26825. }
  26826. }
  26827. }
  26828. public OnPlayerCommandText(playerid, cmdtext[])
  26829. {
  26830. dcmd(setaccent, 9, cmdtext);
  26831. dcmd(deleteaccount, 13, cmdtext);
  26832. dcmd(duel, 4, cmdtext);
  26833. dcmd(setbankreload, 13, cmdtext);
  26834. dcmd(subf, 4, cmdtext);
  26835. dcmd(mass, 4, cmdtext);
  26836. dcmd(assigncommander, 15, cmdtext);
  26837. dcmd(givedonuts, 10, cmdtext);
  26838. dcmd(givedonutstoall, 15, cmdtext);
  26839. //dcmd(exchange, 8, cmdtext);
  26840. dcmd(removedonuts, 12, cmdtext);
  26841.  
  26842. if(gPlayerSpawned[playerid] == 0)
  26843. {
  26844. SendClientMessage(playerid, COLOR_GRAD1, " You are not logged in or have not spawned !");
  26845. return 1;
  26846. }
  26847. new string[128];
  26848. new sendername[MAX_PLAYER_NAME];
  26849. new giveplayer[MAX_PLAYER_NAME];
  26850. new cmd[128];
  26851. new tmp[128];
  26852. new rapstyle;
  26853. new wankstyle;
  26854. new dancestyle;
  26855. new sexstyle;
  26856. new bjstyle;
  26857. new giveplayerid, moneys, idx;
  26858. cmd = strtok(cmdtext, idx);
  26859. if(strcmp(cmd,"/mute",true,4) && strcmp(cmd, "/report",true,6) && PlayerInfo[playerid][pMuted] == 1)
  26860. return SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
  26861. //=========================[Anti-server advertisement]==========================
  26862. new dotcount =0;
  26863. new dotcount2 =0;
  26864. new coloncount =0;
  26865. new slashcount =0;
  26866. new numcount =0;
  26867. new numcount2 =0;
  26868. new numcount3 =0;
  26869. new numcount4 =0;
  26870. new numcount5 =0;
  26871. new numcount6 =0;
  26872. new numcount7 =0;
  26873. new numcount8 =0;
  26874. new numcount9 =0;
  26875. new numcount10 =0;
  26876. for(new a=1; a <strlen(cmdtext); a++)
  26877. {
  26878. if(cmdtext[a] == ':')
  26879. {
  26880. coloncount ++;
  26881. }
  26882. else
  26883. if(cmdtext[a] == '.')
  26884. {
  26885. dotcount ++;
  26886. }
  26887. else
  26888. if(cmdtext[a] == ',')
  26889. {
  26890. dotcount2 ++;
  26891. }
  26892. else
  26893. if(cmdtext[a] == '/')
  26894. {
  26895. slashcount ++;
  26896. }
  26897. else
  26898. if(cmdtext[a] == '0')
  26899. {
  26900. numcount ++;
  26901. }
  26902. else
  26903. if(cmdtext[a] == '1')
  26904. {
  26905. numcount2 ++;
  26906. }
  26907. else
  26908. if(cmdtext[a] == '2')
  26909. {
  26910. numcount3 ++;
  26911. }
  26912. else
  26913. if(cmdtext[a] == '3')
  26914. {
  26915. numcount4 ++;
  26916. }
  26917. else
  26918. if(cmdtext[a] == '4')
  26919. {
  26920. numcount5 ++;
  26921. }
  26922. else
  26923. if(cmdtext[a] == '5')
  26924. {
  26925. numcount6 ++;
  26926. }
  26927. else
  26928. if(cmdtext[a] == '6')
  26929. {
  26930. numcount7 ++;
  26931. }
  26932. else
  26933. if(cmdtext[a] == '7')
  26934. {
  26935. numcount8 ++;
  26936. }
  26937. else
  26938. if(cmdtext[a] == '8')
  26939. {
  26940. numcount9 ++;
  26941. }
  26942. else
  26943. if(cmdtext[a] == '9')
  26944. {
  26945. numcount10 ++;
  26946. }
  26947. }
  26948. if(dotcount >= 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
  26949. {
  26950. format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
  26951. ABroadCast(COLOR_YELLOW,string,1);
  26952. format(string, sizeof(string), "Message: %s",cmdtext);
  26953. ABroadCast(COLOR_LIGHTBLUE,string,1);
  26954. new ip[16];
  26955. GetPlayerIp(playerid, ip, sizeof(ip));
  26956. new logstring[256];
  26957. new year, month, day;
  26958. getdate(year, month, day);
  26959. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
  26960. AdLog(logstring);
  26961. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
  26962. return 1;
  26963. }
  26964. if(dotcount2 == 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
  26965. {
  26966. format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
  26967. ABroadCast(COLOR_YELLOW,string,1);
  26968. format(string, sizeof(string), "Message: %s",cmdtext);
  26969. ABroadCast(COLOR_LIGHTBLUE,string,1);
  26970. new ip[16];
  26971. GetPlayerIp(playerid, ip, sizeof(ip));
  26972. new logstring[256];
  26973. new year, month, day;
  26974. getdate(year, month, day);
  26975. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
  26976. AdLog(logstring);
  26977. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
  26978. return 1;
  26979. }
  26980. if(slashcount == 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
  26981. {
  26982. format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
  26983. ABroadCast(COLOR_YELLOW,string,1);
  26984. format(string, sizeof(string), "Message: %s",cmdtext);
  26985. ABroadCast(COLOR_LIGHTBLUE,string,1);
  26986. new ip[16];
  26987. GetPlayerIp(playerid, ip, sizeof(ip));
  26988. new logstring[256];
  26989. new year, month, day;
  26990. getdate(year, month, day);
  26991. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
  26992. AdLog(logstring);
  26993. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
  26994. return 1;
  26995. }
  26996. if(slashcount == 4 && PlayerInfo[playerid][pAdmin] < 3 && (numcount > 0 || numcount2 > 0 || numcount3 > 0 || numcount4 > 0 || numcount5 > 0 || numcount6 > 0 || numcount7 > 0 || numcount8 > 0 || numcount9 > 0 || numcount10 > 0))
  26997. {
  26998. format(string, sizeof(string), "Possible server advertisment: [%d]%s",playerid,PlayerName(playerid));
  26999. ABroadCast(COLOR_YELLOW,string,1);
  27000. format(string, sizeof(string), "Message: %s",cmdtext);
  27001. ABroadCast(COLOR_LIGHTBLUE,string,1);
  27002. new ip[16];
  27003. GetPlayerIp(playerid, ip, sizeof(ip));
  27004. new logstring[256];
  27005. new year, month, day;
  27006. getdate(year, month, day);
  27007. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Text: %s.", ip, day, month, year,PlayerName(playerid),cmdtext);
  27008. AdLog(logstring);
  27009. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to advertise other servers here.");
  27010. return 1;
  27011. }
  27012. if(gPlayerLogged[playerid] == 1)
  27013. {
  27014. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27015. printf("[cmd] [%s] %s", sendername, cmdtext);
  27016. }
  27017. if(strcmp(cmd, "/pay", true) == 0)
  27018. {
  27019. if(IsPlayerConnected(playerid))
  27020. {
  27021. tmp = strtok(cmdtext, idx);
  27022. if(!strlen(tmp))
  27023. {
  27024. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /pay [playerid/PartOfName] [amount]");
  27025. return 1;
  27026. }
  27027. giveplayerid = ReturnUser(tmp);
  27028. tmp = strtok(cmdtext, idx);
  27029. if(!strlen(tmp))
  27030. {
  27031. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /pay [playerid/PartOfName] [amount]");
  27032. return 1;
  27033. }
  27034. moneys = strvalEx(tmp);
  27035. if(moneys > 1000 && PlayerInfo[playerid][pLevel] < 2)
  27036. {
  27037. SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to pay more than $1000 at a time !");
  27038. return 1;
  27039. }
  27040. if(moneys < 1 || moneys > 100000)
  27041. {
  27042. SendClientMessage(playerid, COLOR_GRAD1, "You can't pay more under $1 or than $100,000 at a time !");
  27043. return 1;
  27044. }
  27045. if(IsPlayerConnected(giveplayerid))
  27046. {
  27047. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't pay money to yourself !"); return 1; }
  27048. if(giveplayerid != INVALID_PLAYER_ID)
  27049. {
  27050. if(ProxDetectorS(5.0, playerid, giveplayerid))
  27051. {
  27052. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27053. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  27054. new playermoney = PlayerInfo[playerid][pCash];
  27055. if(moneys > 0 && playermoney >= moneys)
  27056. {
  27057. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
  27058. GivePlayerMoney(playerid, (0 - moneys));
  27059. PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]+moneys;
  27060. GivePlayerMoney(giveplayerid, moneys);
  27061. if(PlayerInfo[playerid][pMask] > 0){ sendername = "Stranger"; }
  27062. if(PlayerInfo[giveplayerid][pMask] > 0){ giveplayer = "Stranger"; }
  27063. format(string, sizeof(string), " You have paid $%d to %s",moneys,giveplayer);
  27064. SendClientMessage(playerid, COLOR_GRAD1, string);
  27065. format(string, sizeof(string), " You have recieved $%d from %s.", moneys,sendername);
  27066. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  27067. format(string, sizeof(string), "* %s takes out some cash, and hands it to %s.",sendername,giveplayer);
  27068. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27069. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  27070. PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
  27071. new plrIP[16];
  27072. new giveplrIP[16];
  27073. GetPlayerIp(playerid, plrIP, sizeof(plrIP));
  27074. GetPlayerIp(giveplayerid, giveplrIP, sizeof(giveplrIP));
  27075. format(string, sizeof(string), "%s (IP:%s) (Key:%s) (ConTime:%d) has paid $%d to %s (IP:%s) (Key:%s)", sendername,plrIP,PlayerInfo[playerid][pKey], PlayerInfo[playerid][pConnectTime],moneys,giveplayer,giveplrIP,PlayerInfo[giveplayerid][pKey]);
  27076. PayLog(string);
  27077. }
  27078. else
  27079. {
  27080. SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount !");
  27081. }
  27082. }
  27083. else
  27084. {
  27085. SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
  27086. }
  27087. }
  27088. }
  27089. else
  27090. {
  27091. format(string, sizeof(string), "%d is not an active player !", giveplayerid);
  27092. SendClientMessage(playerid, COLOR_GRAD1, string);
  27093. }
  27094. }
  27095. return 1;
  27096. }
  27097. if(strcmp(cmd, "/charity", true) == 0)
  27098. {
  27099. if(IsPlayerConnected(playerid))
  27100. {
  27101. tmp = strtok(cmdtext, idx);
  27102. if(!strlen(tmp))
  27103. {
  27104. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /charity [amount]");
  27105. return 1;
  27106. }
  27107. moneys = strvalEx(tmp);
  27108. if(moneys < 0)
  27109. {
  27110. SendClientMessage(playerid, COLOR_GRAD1, "That is not enough !");
  27111. return 1;
  27112. }
  27113. if(PlayerInfo[playerid][pCash] < moneys)
  27114. {
  27115. SendClientMessage(playerid, COLOR_GRAD1, "You don't have that much money !");
  27116. return 1;
  27117. }
  27118. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
  27119. GivePlayerMoney(playerid, -moneys);
  27120. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27121. format(string, sizeof(string), "%s Thank you for you donation of $%d.",sendername, moneys);
  27122. SendClientMessage(playerid, COLOR_GRAD1, string);
  27123. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  27124. PayLog(string);
  27125. }
  27126. return 1;
  27127. }
  27128. if(strcmp(cmd, "/stats", true) == 0)
  27129. {
  27130. if(IsPlayerConnected(playerid))
  27131. {
  27132. if(gPlayerLogged[playerid] != 0)
  27133. {
  27134. ShowStats(playerid,playerid);
  27135. }
  27136. else
  27137. {
  27138. SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in !");
  27139. }
  27140. }
  27141. return 1;
  27142. }
  27143. if(strcmp(cmd, "/dn", true) == 0)
  27144. {
  27145. if(IsPlayerConnected(playerid))
  27146. {
  27147. if(PlayerInfo[playerid][pAdmin] >= 1)
  27148. {
  27149. new Float:slx, Float:sly, Float:slz;
  27150. GetPlayerPos(playerid, slx, sly, slz);
  27151. SetPlayerPos(playerid, slx, sly, slz-2);
  27152. return 1;
  27153. }
  27154. else
  27155. {
  27156. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  27157. }
  27158. }
  27159. return 1;
  27160. }
  27161. if(strcmp(cmd, "/up", true) == 0)
  27162. {
  27163. if(IsPlayerConnected(playerid))
  27164. {
  27165. if(PlayerInfo[playerid][pAdmin] >= 1)
  27166. {
  27167. new Float:slx, Float:sly, Float:slz;
  27168. GetPlayerPos(playerid, slx, sly, slz);
  27169. SetPlayerPos(playerid, slx, sly, slz+2);
  27170. return 1;
  27171. }
  27172. else
  27173. {
  27174. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  27175. }
  27176. }
  27177. return 1;
  27178. }
  27179. if(strcmp(cmd, "/fly", true) == 0)
  27180. {
  27181. if(IsPlayerConnected(playerid))
  27182. {
  27183. if(PlayerInfo[playerid][pAdmin] >= 1)
  27184. {
  27185. new Float:px, Float:py, Float:pz, Float:pa;
  27186. GetPlayerFacingAngle(playerid,pa);
  27187. if(pa >= 0.0 && pa <= 22.5) //n1
  27188. {
  27189. GetPlayerPos(playerid, px, py, pz);
  27190. SetPlayerPos(playerid, px, py+30, pz+5);
  27191. }
  27192. if(pa >= 332.5 && pa < 0.0) //n2
  27193. {
  27194. GetPlayerPos(playerid, px, py, pz);
  27195. SetPlayerPos(playerid, px, py+30, pz+5);
  27196. }
  27197. if(pa >= 22.5 && pa <= 67.5) //nw
  27198. {
  27199. GetPlayerPos(playerid, px, py, pz);
  27200. SetPlayerPos(playerid, px-15, py+15, pz+5);
  27201. }
  27202. if(pa >= 67.5 && pa <= 112.5) //w
  27203. {
  27204. GetPlayerPos(playerid, px, py, pz);
  27205. SetPlayerPos(playerid, px-30, py, pz+5);
  27206. }
  27207. if(pa >= 112.5 && pa <= 157.5) //sw
  27208. {
  27209. GetPlayerPos(playerid, px, py, pz);
  27210. SetPlayerPos(playerid, px-15, py-15, pz+5);
  27211. }
  27212. if(pa >= 157.5 && pa <= 202.5) //s
  27213. {
  27214. GetPlayerPos(playerid, px, py, pz);
  27215. SetPlayerPos(playerid, px, py-30, pz+5);
  27216. }
  27217. if(pa >= 202.5 && pa <= 247.5)//se
  27218. {
  27219. GetPlayerPos(playerid, px, py, pz);
  27220. SetPlayerPos(playerid, px+15, py-15, pz+5);
  27221. }
  27222. if(pa >= 247.5 && pa <= 292.5)//e
  27223. {
  27224. GetPlayerPos(playerid, px, py, pz);
  27225. SetPlayerPos(playerid, px+30, py, pz+5);
  27226. }
  27227. if(pa >= 292.5 && pa <= 332.5)//e
  27228. {
  27229. GetPlayerPos(playerid, px, py, pz);
  27230. SetPlayerPos(playerid, px+15, py+15, pz+5);
  27231. }
  27232. }
  27233. else
  27234. {
  27235. SendClientMessage(playerid, COLOR_GRAD1, "You are not an Admin !");
  27236. }
  27237. }
  27238. return 1;
  27239. }
  27240. if(strcmp(cmd, "/check", true) == 0)
  27241. {
  27242. if(IsPlayerConnected(playerid))
  27243. {
  27244. if(PlayerInfo[playerid][pAdmin] >= 1)
  27245. {
  27246. tmp = strtok(cmdtext, idx);
  27247. if(!strlen(tmp))
  27248. {
  27249. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /check [playerid/PartOfName]");
  27250. return 1;
  27251. }
  27252. giveplayerid = ReturnUser(tmp);
  27253. if(IsPlayerConnected(giveplayerid))
  27254. {
  27255. if(giveplayerid != INVALID_PLAYER_ID)
  27256. {
  27257. ShowStats(playerid,giveplayerid);
  27258. }
  27259. }
  27260. else
  27261. {
  27262. SendClientMessage(playerid, COLOR_GREY, "That player is Offline !");
  27263. }
  27264. }
  27265. else
  27266. {
  27267. SendClientMessage(playerid, COLOR_GRAD1, "You are not an Admin !");
  27268. }
  27269. }
  27270. return 1;
  27271. }
  27272. if(strcmp(cmd, "/id", true) == 0)
  27273. {
  27274. if(IsPlayerConnected(playerid))
  27275. {
  27276. tmp = strtok(cmdtext, idx);
  27277. if(!strlen(tmp))
  27278. {
  27279. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /id [playerid/PartOfName]");
  27280. return 1;
  27281. }
  27282. giveplayerid = ReturnUser(tmp);
  27283. if(IsPlayerConnected(giveplayerid))
  27284. {
  27285. if(giveplayerid != INVALID_PLAYER_ID)
  27286. {
  27287. GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
  27288. format(string, sizeof(string), "Name: %s, ID: %d", giveplayer, giveplayerid);
  27289. SendClientMessage(playerid, COLOR_GRAD1, string);
  27290. }
  27291. }
  27292. else
  27293. {
  27294. format(string, sizeof(string), "%d is not an active player !", giveplayerid);
  27295. SendClientMessage(playerid, COLOR_GRAD1, string);
  27296. }
  27297. }
  27298. return 1;
  27299. }
  27300. if(strcmp(cmd, "/number", true) == 0)
  27301. {
  27302. if(IsPlayerConnected(playerid))
  27303. {
  27304. if(PlayerInfo[playerid][pPhoneBook] == 1)
  27305. {
  27306. tmp = strtok(cmdtext, idx);
  27307. if(!strlen(tmp))
  27308. {
  27309. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /number [playerid/PartOfName]");
  27310. return 1;
  27311. }
  27312. giveplayerid = ReturnUser(tmp);
  27313. if(IsPlayerConnected(giveplayerid))
  27314. {
  27315. if(giveplayerid != INVALID_PLAYER_ID)
  27316. {
  27317. GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
  27318. format(string, sizeof(string), "Name: %s, Ph: %d", giveplayer, PlayerInfo[giveplayerid][pPnumber]);
  27319. SendClientMessage(playerid, COLOR_GRAD1, string);
  27320. }
  27321. }
  27322. else
  27323. {
  27324. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  27325. SendClientMessage(playerid, COLOR_GRAD1, string);
  27326. }
  27327. }
  27328. else
  27329. {
  27330. SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Phonebook !");
  27331. }
  27332. }
  27333. return 1;
  27334. }
  27335.  
  27336. if(strcmp(cmd, "/address", true) == 0)
  27337. {
  27338. if(IsPlayerConnected(playerid))
  27339. {
  27340. if(PlayerInfo[playerid][pPhoneBook] == 1)
  27341. {
  27342. tmp = strtok(cmdtext, idx);
  27343. if(!strlen(tmp))
  27344. {
  27345. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /address [playerid/PartOfName]{7DAEFF}");
  27346. return 1;
  27347. }
  27348. giveplayerid = ReturnUser(tmp);
  27349. if(IsPlayerConnected(giveplayerid))
  27350. {
  27351. if(giveplayerid != INVALID_PLAYER_ID)
  27352. {
  27353. if(PlayerInfo[giveplayerid][pHouseKey] != 999 || PlayerInfo[giveplayerid][pRenthouse] != 999)
  27354. {
  27355. new house;
  27356. if(PlayerInfo[giveplayerid][pHouseKey] != 999) { house = PlayerInfo[giveplayerid][pHouseKey]; }
  27357. else if(PlayerInfo[giveplayerid][pRenthouse] != 999) { house = PlayerInfo[giveplayerid][pRenthouse]; }
  27358. SetPlayerCheckpoint(playerid, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z], 3.0);
  27359. }
  27360. else
  27361. {
  27362. SendClientMessage(playerid,COLOR_GRAD1,"This player doesnt own/rent a house.");
  27363. return 1;
  27364. }
  27365. }
  27366. }
  27367. else
  27368. {
  27369. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  27370. SendClientMessage(playerid, COLOR_GRAD1, string);
  27371. }
  27372. }
  27373. else
  27374. {
  27375. SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Phonebook !");
  27376. }
  27377. }
  27378. return 1;
  27379. }
  27380.  
  27381. if(strcmp(cmd, "/levelup", true) == 0)
  27382. {
  27383. if(IsPlayerConnected(playerid))
  27384. {
  27385. if(gPlayerLogged[playerid] != 0)
  27386. {
  27387. if(PlayerInfo[playerid][pLevel] >= 0)
  27388. {
  27389. new nxtlevel = PlayerInfo[playerid][pLevel]+1;
  27390. new expamount = nxtlevel*levelexp;
  27391. if(PlayerInfo[playerid][pExp] < expamount)
  27392. {
  27393. format(string, sizeof(string), " You need %d respect points, you curently have %d !",expamount,PlayerInfo[playerid][pExp]);
  27394. SendClientMessage(playerid, COLOR_GREY, string);
  27395. return 1;
  27396. }
  27397. else
  27398. {
  27399. format(string, sizeof(string), "~r~Level up~n~~w~level %d", nxtlevel);
  27400. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  27401. PlayerInfo[playerid][pLevel]++;
  27402. PlayerInfo[playerid][pExp] -= expamount;
  27403. new total = PlayerInfo[playerid][pExp];
  27404. if(total > 0) { PlayerInfo[playerid][pExp] = total; }
  27405. else { PlayerInfo[playerid][pExp] = 0; }
  27406. PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
  27407. GameTextForPlayer(playerid, string, 5000, 1);
  27408. format(string, sizeof(string), "You bought level %d, type /upgrade.", nxtlevel);
  27409. SendClientMessage(playerid, COLOR_YELLOW, string);
  27410. format(string, sizeof(string), "You have %d upgrade points remaining.",PlayerInfo[playerid][gPupgrade]);
  27411. SendClientMessage(playerid, COLOR_YELLOW, string);
  27412. }
  27413. }
  27414. return 1;
  27415. }
  27416. else
  27417. {
  27418. SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in !");
  27419. }
  27420. }
  27421. return 1;
  27422. }
  27423. if(strcmp(cmd, "/resetupgrades", true) == 0)
  27424. {
  27425. if(IsPlayerConnected(playerid))
  27426. {
  27427. if(gPlayerLogged[playerid] == 0)
  27428. {
  27429. SendClientMessage(playerid, COLOR_GREY, "You are not logged in.");
  27430. return 1;
  27431. }
  27432. if(PlayerInfo[playerid][pCash] < 1000)
  27433. {
  27434. SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($1,000).");
  27435. return 1;
  27436. }
  27437. if(PlayerInfo[playerid][pLevel] < 2)
  27438. {
  27439. SendClientMessage(playerid, COLOR_GREY, "You need to be at least level 2.");
  27440. return 1;
  27441. }
  27442. PlayerInfo[playerid][gPupgrade] = (PlayerInfo[playerid][pLevel])*2;
  27443. PlayerInfo[playerid][pSHealth] = 0;
  27444. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  27445. GivePlayerMoney(playerid,-1000);
  27446. PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
  27447. format(string, sizeof(string), " You have %d upgrade points remaining !",PlayerInfo[playerid][gPupgrade]);
  27448. SendClientMessage(playerid, COLOR_GRAD2, string);
  27449. }
  27450. return 1;
  27451. }
  27452. if(strcmp(cmd, "/upgrade", true) == 0)
  27453. {
  27454. if(IsPlayerConnected(playerid))
  27455. {
  27456. if(PlayerInfo[playerid][gPupgrade] < 1)
  27457. {
  27458. SendClientMessage(playerid, COLOR_GREY, "You don't have any Upgrade Points.");
  27459. return 1;
  27460. }
  27461. tmp = strtok(cmdtext, idx);
  27462. if(!strlen(tmp))
  27463. {
  27464. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /upgrade [name]{7DAEFF}");
  27465. SendClientMessage(playerid, COLOR_GREY, "Available names: Armor");
  27466. format(string, sizeof(string), "You have %d upgrade points remaining.",PlayerInfo[playerid][gPupgrade]);
  27467. SendClientMessage(playerid, COLOR_YELLOW,string);
  27468. return 1;
  27469. }
  27470. if(strcmp(tmp,"armor",true) == 0)
  27471. {
  27472. if(PlayerInfo[playerid][pSHealth] >= 100)
  27473. {
  27474. SendClientMessage(playerid, COLOR_GREY, "Your Armor is at its limit !");
  27475. return 1;
  27476. }
  27477. PlayerInfo[playerid][pSHealth] = PlayerInfo[playerid][pSHealth]+1;
  27478. PlayerInfo[playerid][gPupgrade]--;
  27479. format(string, sizeof(string), "You have upgraded your Armor to %d, changes will take effect when you spawn.", PlayerInfo[playerid][pSHealth]);
  27480. SendClientMessage(playerid, COLOR_YELLOW, string);
  27481. return 1;
  27482. }
  27483. else
  27484. {
  27485. SendClientMessage(playerid, COLOR_GREY, "Invalid upgrade name.");
  27486. return 1;
  27487. }
  27488. }
  27489. return 1;
  27490. }
  27491.  
  27492. if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/new", true) == 0)
  27493. {
  27494. if(IsPlayerConnected(playerid))
  27495. {
  27496. if(gPlayerLogged[playerid] == 0)
  27497. {
  27498. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
  27499. return 1;
  27500. }
  27501. if(PlayerInfo[playerid][pTut] == 0)
  27502. {
  27503. Kick(playerid);
  27504. return 1;
  27505. }
  27506. if(PlayerInfo[playerid][pConnectTime] == 0)
  27507. {
  27508. SendClientMessage(playerid,COLOR_WHITE,"You must play longer before using the newbie chat channel, use /report or /faq for help.");
  27509. return 1;
  27510. }
  27511. if((nonewbie) && PlayerInfo[playerid][pAdmin] < 3)
  27512. {
  27513. SendClientMessage(playerid, COLOR_GREY, "The Newbie channel has been disabled by an Admin.");
  27514. return 1;
  27515. }
  27516. if(PlayerInfo[playerid][pNewbieMuted] == 1)
  27517. {
  27518. SendClientMessage(playerid, COLOR_GREY, "You are banned from speaking in that channel.");
  27519. return 1;
  27520. }
  27521. if(UseNewbieTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY,"You must wait 30 seconds before speaking in that channel.");
  27522. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27523. new length = strlen(cmdtext);
  27524. while ((idx < length) && (cmdtext[idx] <= ' '))
  27525. {
  27526. idx++;
  27527. }
  27528. new offset = idx;
  27529. new result[96];
  27530. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  27531. {
  27532. result[idx - offset] = cmdtext[idx];
  27533. idx++;
  27534. }
  27535. result[idx - offset] = EOS;
  27536. if(!strlen(result))
  27537. {
  27538. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} (/new)bie [newbie chat]");
  27539. return 1;
  27540. }
  27541. if(PlayerInfo[playerid][pLevel] > 1 && PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0 && PlayerInfo[playerid][pDonateRank] <= 1) format(string, sizeof(string), "* Player %s: %s", sendername, result);
  27542. else if(PlayerInfo[playerid][pAdmin] == 2) format(string, sizeof(string), "* Junior Admin %s: %s", sendername, result);
  27543. else if(PlayerInfo[playerid][pAdmin] == 3) format(string, sizeof(string), "* General Admin %s: %s", sendername, result);
  27544. else if(PlayerInfo[playerid][pAdmin] == 4) format(string, sizeof(string), "* Senior Admin %s: %s", sendername, result);
  27545. else if(PlayerInfo[playerid][pAdmin] == 5) format(string, sizeof(string), "* Head Admin %s: %s", sendername, result);
  27546. else if(PlayerInfo[playerid][pAdmin] == 6) format(string, sizeof(string), "* Executive Admin %s: %s", sendername, result);
  27547. else if(PlayerInfo[playerid][pAdmin] == 7) format(string, sizeof(string), "* Server Owner %s: %s", sendername, result);
  27548. else if(PlayerInfo[playerid][pDonateRank] == 1) format(string, sizeof(string), "* Bronze VIP %s: %s", sendername, result);
  27549. else if(PlayerInfo[playerid][pDonateRank] == 2) format(string, sizeof(string), "* Silver VIP %s: %s", sendername, result);
  27550. else if(PlayerInfo[playerid][pDonateRank] == 3) format(string, sizeof(string), "* Gold VIP %s: %s", sendername, result);
  27551. else if(PlayerInfo[playerid][pHelper] >= 6) format(string, sizeof(string), "* DoPR %s: %s", sendername, result);
  27552. else if(PlayerInfo[playerid][pHelper] >= 5) format(string, sizeof(string), "* Community Advisor %s: %s", sendername, result);
  27553. else if(PlayerInfo[playerid][pHelper] >= 4) format(string, sizeof(string), "* Head Helper %s: %s", sendername, result);
  27554. else if(PlayerInfo[playerid][pHelper] >= 3) format(string, sizeof(string), "* Assistant Head %s: %s", sendername, result);
  27555. else if(PlayerInfo[playerid][pHelper] >= 2) format(string, sizeof(string), "* Helper %s: %s", sendername, result);
  27556. else if(PlayerInfo[playerid][pHelper] == 1) format(string, sizeof(string), "* Trial Helper %s: %s", sendername, result);
  27557. else format(string, sizeof(string), "* Newbie %s: %s", sendername, result);
  27558. OOCNewbie(NEWBIE_COLOR,string);
  27559. if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0) { UseNewbieTimer[playerid] = true; SetTimerEx("UseNewbie",30*1000,0,"i",playerid); }
  27560. }
  27561. }
  27562. if(!strcmp("/glasses",cmd,true))
  27563. {
  27564. if(IsPlayerConnected(playerid))
  27565. {
  27566. new skin2, id;
  27567. skin2 = GetPlayerSkin(playerid);
  27568. id = PlayerInfo[playerid][pGlasses];
  27569. if(id < 1000)
  27570. {
  27571. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any sunglasses");
  27572. return 1;
  27573. }
  27574. if(WithGlasses[playerid] == 0)
  27575. {
  27576. WithGlasses[playerid] = 1;
  27577. WithMask[playerid] = 0;
  27578. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27579. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27580. format(string, sizeof(string), "* %s puts on their sunglasses.", sendername);
  27581. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27582. SetPlayerAttachedObject(playerid, GLASSSLOT, id, 2, SkinOffSet[skin2][0], floatadd(SkinOffSet[skin2][1], 0.004500), SkinOffSet[skin2][2], SkinOffSet[skin2][3], SkinOffSet[skin2][4], SkinOffSet[skin2][5]);
  27583. }
  27584. else
  27585. {
  27586. WithGlasses[playerid] = 0;
  27587. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27588. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27589. format(string, sizeof(string), "* %s takes off their sunglasses.", sendername);
  27590. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27591. RemovePlayerAttachedObject(playerid, GLASSSLOT);
  27592. }
  27593. return 1;
  27594. }
  27595. return 1;
  27596. }
  27597.  
  27598. /* if(!strcmp("/fmask",cmd,true))
  27599. {
  27600. if(IsPlayerConnected(playerid))
  27601. {
  27602. new skin2, id;
  27603. skin2 = GetPlayerSkin(playerid);
  27604. id = PlayerInfo[playerid][pCMask];
  27605. if(id < 1000)
  27606. {
  27607. SendClientMessage(playerid, COLOR_GRAD2, "You don't have a mask.");
  27608. return 1;
  27609. }
  27610. if(WithMask[playerid] == 0)
  27611. {
  27612. WithMask[playerid] = 1;
  27613. WithGlasses[playerid] = 0;
  27614. if(WithHelmet[playerid] == 1)
  27615. {
  27616. WithHelmet[playerid] = 0;
  27617. RemovePlayerAttachedObject(playerid, HATSLOT);
  27618. }
  27619. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27620. format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
  27621. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27622. SetPlayerAttachedObject(playerid, GLASSSLOT, id, 2, SkinOffSet[skin2][0], floatadd(SkinOffSet[skin2][1], 0.004500), SkinOffSet[skin2][2], SkinOffSet[skin2][3], SkinOffSet[skin2][4], SkinOffSet[skin2][5]);
  27623. }
  27624. else
  27625. {
  27626. WithMask[playerid] = 0;
  27627. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27628. format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
  27629. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27630. RemovePlayerAttachedObject(playerid, GLASSSLOT);
  27631. }
  27632. return 1;
  27633. }
  27634. return 1;
  27635. }
  27636. */
  27637. if(!strcmp("/helmet",cmd,true))
  27638. {
  27639. if(IsPlayerConnected(playerid))
  27640. {
  27641. new id = PlayerInfo[playerid][pHelmet];
  27642. if(id < 1000)
  27643. {
  27644. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any helmet");
  27645. return 1;
  27646. }
  27647. if(WithHelmet[playerid] == 0)
  27648. {
  27649. switch(GetPlayerSkin(playerid))
  27650. {
  27651. #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, HATSLOT, id, 2, (%0), (%1), (%2), (%3), (%4), (%5));
  27652. case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
  27653. case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
  27654. case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  27655. case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  27656. case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  27657. case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
  27658. case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27659. case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27660. case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  27661. case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  27662. case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  27663. case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27664. case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
  27665. case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
  27666. case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
  27667. case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27668. case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27669. case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
  27670. case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27671. case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
  27672. case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
  27673. case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
  27674. case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
  27675. case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  27676. case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  27677. }
  27678. WithHat[playerid] = 0;
  27679. WithHelmet[playerid] = 1;
  27680. if(WithMask[playerid] == 1)
  27681. {
  27682. WithMask[playerid] = 0;
  27683. RemovePlayerAttachedObject(playerid, GLASSSLOT);
  27684. }
  27685. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27686. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27687. format(string, sizeof(string), "* %s puts on their helmet.", sendername);
  27688. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27689. }
  27690. else
  27691. {
  27692. WithHelmet[playerid] = 0;
  27693. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27694. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27695. format(string, sizeof(string), "* %s takes off their helmet.", sendername);
  27696. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27697. RemovePlayerAttachedObject(playerid, HATSLOT);
  27698. }
  27699. return 1;
  27700. }
  27701. return 1;
  27702. }
  27703.  
  27704.  
  27705. if(strcmp("/wrench", cmdtext, true, 10) == 0)
  27706. {
  27707. if(PlayerInfo[playerid][pWrench] == 0)
  27708. {
  27709. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any wrench");
  27710. return 1;
  27711. }
  27712. if (wrench[playerid] == 0)
  27713. {
  27714. SetPlayerAttachedObject(playerid,6,18633,5,0.07998,0.03999,0.0,45.0,0.0,180.0);
  27715. wrench[playerid] = 1;
  27716. hammer[playerid] = 0;
  27717. crowbar[playerid] = 0;
  27718. chainsawdildo[playerid] = 0;
  27719. flashlight[playerid] = 0;
  27720. screwdriver[playerid] = 0;
  27721. rake[playerid] = 0;
  27722. }
  27723. else
  27724. {
  27725. RemovePlayerAttachedObject(playerid, 6);
  27726. wrench[playerid] = 0;
  27727. }
  27728. return 1;
  27729. }
  27730.  
  27731. if(strcmp("/hammer", cmdtext, true, 10) == 0)
  27732. {
  27733. if(PlayerInfo[playerid][pHammer] == 0)
  27734. {
  27735. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any hammer");
  27736. return 1;
  27737. }
  27738. if (hammer[playerid] == 0)
  27739. {
  27740. SetPlayerAttachedObject(playerid,6,18635,5,0.0,0.06999,0.0,0.0,180.0,180.0);
  27741. wrench[playerid] = 0;
  27742. hammer[playerid] = 1;
  27743. crowbar[playerid] = 0;
  27744. chainsawdildo[playerid] = 0;
  27745. flashlight[playerid] = 0;
  27746. screwdriver[playerid] = 0;
  27747. rake[playerid] = 0;
  27748. }
  27749. else
  27750. {
  27751. RemovePlayerAttachedObject(playerid, 6);
  27752. hammer[playerid] = 0;
  27753. }
  27754. return 1;
  27755. }
  27756.  
  27757. if(strcmp("/crowbar", cmdtext, true, 10) == 0)
  27758. {
  27759. if(PlayerInfo[playerid][pCrowbar] == 0)
  27760. {
  27761. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any crowbar");
  27762. return 1;
  27763. }
  27764. if (crowbar[playerid] == 0)
  27765. {
  27766. SetPlayerAttachedObject(playerid,6,18634,5,0.07998,0.03999,0.0,45.0,0.0,180.0);
  27767. wrench[playerid] = 0;
  27768. hammer[playerid] = 0;
  27769. crowbar[playerid] = 1;
  27770. chainsawdildo[playerid] = 0;
  27771. flashlight[playerid] = 0;
  27772. screwdriver[playerid] = 0;
  27773. rake[playerid] = 0;
  27774. }
  27775. else
  27776. {
  27777. RemovePlayerAttachedObject(playerid, 6);
  27778. crowbar[playerid] = 0;
  27779. }
  27780. return 1;
  27781. }
  27782.  
  27783. if(strcmp("/chainsawdildo", cmdtext, true, 10) == 0)
  27784. {
  27785. if(PlayerInfo[playerid][pDonateRank] == 0)
  27786. {
  27787. SendClientMessage(playerid, COLOR_RED, "You are not VIP");
  27788. return 1;
  27789. }
  27790. if (chainsawdildo[playerid] == 0)
  27791. {
  27792. SetPlayerAttachedObject(playerid,6,19086,5,0.04998,0.02000,0.0,0.0,260.0,170.0);
  27793. wrench[playerid] = 0;
  27794. hammer[playerid] = 0;
  27795. crowbar[playerid] = 0;
  27796. chainsawdildo[playerid] = 1;
  27797. flashlight[playerid] = 0;
  27798. screwdriver[playerid] = 0;
  27799. rake[playerid] = 0;
  27800. }
  27801. else
  27802. {
  27803. RemovePlayerAttachedObject(playerid, 6);
  27804. chainsawdildo[playerid] = 0;
  27805. }
  27806. return 1;
  27807. }
  27808.  
  27809. if(strcmp("/flashlight", cmdtext, true, 10) == 0)
  27810. {
  27811. if(PlayerInfo[playerid][pFlash] == 0)
  27812. {
  27813. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any flashlight");
  27814. return 1;
  27815. }
  27816. if (flashlight[playerid] == 0)
  27817. {
  27818. SetPlayerAttachedObject(playerid,6,18641,5,0.07998,0.03999,-0.0700,0.0,0.0,0.0);
  27819. flashlight[playerid] = 1;
  27820. }
  27821. else
  27822. {
  27823. RemovePlayerAttachedObject(playerid, 6);
  27824. flashlight[playerid] = 0;
  27825. }
  27826. return 1;
  27827. }
  27828.  
  27829. if(strcmp("/screwdriver", cmdtext, true, 10) == 0)
  27830. {
  27831. if(PlayerInfo[playerid][pScrew] == 0)
  27832. {
  27833. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any screwdriver");
  27834. return 1;
  27835. }
  27836. if (screwdriver[playerid] == 0)
  27837. {
  27838. SetPlayerAttachedObject(playerid,6,18644,5,0.07998,0.03999,0.0,0.0,0.0,0.0);
  27839. wrench[playerid] = 0;
  27840. hammer[playerid] = 0;
  27841. crowbar[playerid] = 0;
  27842. chainsawdildo[playerid] = 0;
  27843. flashlight[playerid] = 0;
  27844. screwdriver[playerid] = 1;
  27845. rake[playerid] = 0;
  27846. }
  27847. else
  27848. {
  27849. RemovePlayerAttachedObject(playerid, 6);
  27850. screwdriver[playerid] = 0;
  27851. }
  27852. return 1;
  27853. }
  27854.  
  27855. if(strcmp("/rake", cmdtext, true, 10) == 0)
  27856. {
  27857. if(PlayerInfo[playerid][pRake] == 0)
  27858. {
  27859. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any rake");
  27860. return 1;
  27861. }
  27862. if (rake[playerid] == 0)
  27863. {
  27864. SetPlayerAttachedObject(playerid,6,18890,5,0.0,0.03999,0.0,0.0,0.0,-90.0);
  27865. wrench[playerid] = 0;
  27866. hammer[playerid] = 0;
  27867. crowbar[playerid] = 0;
  27868. chainsawdildo[playerid] = 0;
  27869. flashlight[playerid] = 0;
  27870. screwdriver[playerid] = 0;
  27871. rake[playerid] = 1;
  27872. }
  27873. else
  27874. {
  27875. RemovePlayerAttachedObject(playerid, 6);
  27876. rake[playerid] = 0;
  27877. }
  27878. return 1;
  27879. }
  27880.  
  27881. if(!strcmp("/hat",cmd,true))
  27882. {
  27883. if(IsPlayerConnected(playerid))
  27884. {
  27885. new skin2, id, count;
  27886. skin2 = (GetPlayerSkin(playerid) - 1);
  27887. id = PlayerInfo[playerid][pHat];
  27888. if(id < 1000)
  27889. {
  27890. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any hat");
  27891. return 1;
  27892. }
  27893. do
  27894. {
  27895. if(skin2 == invalidskins[count]) return SendClientMessage(playerid, 0xFFFFFFAA, "(Error) Your skin does not support a cap.");
  27896. count++;
  27897. }
  27898. while(count < sizeof invalidskins);
  27899. if(skin2 < 0) skin2 = 0;
  27900. if(WithHat[playerid] == 0)
  27901. {
  27902. WithHat[playerid] = 1;
  27903. WithHelmet[playerid] = 0;
  27904. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27905. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27906. format(string, sizeof(string), "* %s puts on their hat.", sendername);
  27907. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27908. WithHelmet[playerid] = 0;
  27909. SetPlayerAttachedObject(playerid, HATSLOT, id, 2, SkinOffSet2[skin2][0], SkinOffSet2[skin2][1], SkinOffSet2[skin2][2], SkinOffSet2[skin2][3], SkinOffSet2[skin2][4], SkinOffSet2[skin2][5]);
  27910. }
  27911. else
  27912. {
  27913. WithHat[playerid] = 0;
  27914. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27915. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27916. format(string, sizeof(string), "* %s takes off their hat.", sendername);
  27917. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27918. RemovePlayerAttachedObject(playerid, HATSLOT);
  27919. }
  27920. return 1;
  27921. }
  27922. return 1;
  27923. }
  27924.  
  27925. if(!strcmp("/bandana",cmd,true))
  27926. {
  27927. if(IsPlayerConnected(playerid))
  27928. {
  27929. new skin2, id;
  27930. skin2 = GetPlayerSkin(playerid);
  27931. id = PlayerInfo[playerid][pBandana];
  27932. if(id < 1000)
  27933. {
  27934. SendClientMessage(playerid, COLOR_GRAD2, "You don't have any bandana");
  27935. return 1;
  27936. }
  27937. if(WithBandana[playerid] == 0)
  27938. {
  27939. WithBandana[playerid] = 1;
  27940. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27941. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27942. format(string, sizeof(string), "* %s puts on their bandana.", sendername);
  27943. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27944. SetPlayerAttachedObject(playerid, BANDANASLOT, id, 2, SkinOffSet3[skin2][0]-0.003818, floatadd(SkinOffSet3[skin2][1], 0.004500)-0.00696, SkinOffSet3[skin2][2]+0.002195, SkinOffSet3[skin2][3]+182.367736, SkinOffSet3[skin2][4]+277.015808, SkinOffSet3[skin2][5]+261.854606);
  27945. }
  27946. else
  27947. {
  27948. WithBandana[playerid] = 0;
  27949. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  27950. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  27951. format(string, sizeof(string), "* %s takes off their bandana.", sendername);
  27952. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  27953. RemovePlayerAttachedObject(playerid, BANDANASLOT);
  27954. }
  27955. return 1;
  27956. }
  27957. return 1;
  27958. }
  27959.  
  27960. if(strcmp("/helperhelp", cmdtext, true, 10) == 0)
  27961. {
  27962. if(IsPlayerConnected(playerid))
  27963. {
  27964. if(PlayerInfo[playerid][pHelper] >= 1)
  27965. {
  27966. SendClientMessage(playerid, COLOR_GRAD1, "TRIAL HELPER: /hc(helperchat) /new");
  27967. }
  27968. if(PlayerInfo[playerid][pHelper] >= 2)
  27969. {
  27970. SendClientMessage(playerid, COLOR_GRAD1, "HELPER: /nmute");
  27971. }
  27972. if(PlayerInfo[playerid][pHelper] >= 3)
  27973. {
  27974. SendClientMessage(playerid, COLOR_GRAD1, "ASSISTANT HEAD: /makehelper");
  27975. }
  27976. if(PlayerInfo[playerid][pHelper] >= 4)
  27977. {
  27978. SendClientMessage(playerid, COLOR_GRAD1, "HEAD HELPER: /makehelper");
  27979. }
  27980. if(PlayerInfo[playerid][pHelper] >= 5)
  27981. {
  27982. SendClientMessage(playerid, COLOR_GRAD1, "COMMUNITY ADVISOR: /makehelper");
  27983. }
  27984. if(PlayerInfo[playerid][pHelper] >= 6)
  27985. {
  27986. SendClientMessage(playerid, COLOR_GRAD1, "DIRECTOR OF PUBLIC RELATIONS: /makehelper");
  27987. }
  27988. }
  27989. return 1;
  27990. }
  27991. if (strcmp(cmd, "/helpers", true) == 0)
  27992. {
  27993. if(IsPlayerConnected(playerid))
  27994. {
  27995. SendClientMessage(playerid, COLOR_GRAD1, "Helpers Online:");
  27996. for(new i; i<MAX_PLAYERS; i++)
  27997. {
  27998. if(IsPlayerConnected(i))
  27999. {
  28000. if(PlayerInfo[i][pHelper] >= 1)
  28001. {
  28002. GetPlayerNameEx(i, sendername, sizeof(sendername));
  28003. format(string, 256, "- %s", sendername);
  28004. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  28005. }
  28006. }
  28007. }
  28008. }
  28009. return 1;
  28010. }
  28011. if(strcmp(cmd, "/hc", true) == 0)
  28012. {
  28013. if(IsPlayerConnected(playerid))
  28014. {
  28015. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28016. new length = strlen(cmdtext);
  28017. while ((idx < length) && (cmdtext[idx] <= ' '))
  28018. {
  28019. idx++;
  28020. }
  28021. new offset = idx;
  28022. new result[64];
  28023. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28024. {
  28025. result[idx - offset] = cmdtext[idx];
  28026. idx++;
  28027. }
  28028. result[idx - offset] = EOS;
  28029. if(!strlen(result))
  28030. {
  28031. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/hc) [helper chat]{7DAEFF}");
  28032. return 1;
  28033. }
  28034. new hrank[64];
  28035. if(PlayerInfo[playerid][pHelper] == 1) { hrank = "Trial Helper"; }
  28036. if(PlayerInfo[playerid][pHelper] == 2) { hrank = "Helper"; }
  28037. if(PlayerInfo[playerid][pHelper] == 3) { hrank = "Assistant Head"; }
  28038. if(PlayerInfo[playerid][pHelper] == 4) { hrank = "Head Helper"; }
  28039. if(PlayerInfo[playerid][pHelper] == 5) { hrank = "Community Advisor"; }
  28040. else if(PlayerInfo[playerid][pHelper] == 6) { hrank = "DoPR"; }
  28041.  
  28042. format(string, sizeof(string), "* %s %s: %s", hrank, sendername, result);
  28043. if (PlayerInfo[playerid][pHelper] >= 1)
  28044. {
  28045. SendHelperMessage(TEAM_AZTECAS_COLOR, string);
  28046. }
  28047. printf("Helper %s: %s", sendername, result);
  28048. }
  28049. return 1;
  28050. }
  28051.  
  28052. if(strcmp(cmd, "/gotonewbie", true) == 0)
  28053. {
  28054. if(IsPlayerConnected(playerid))
  28055. {
  28056. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28057. tmp = strtok(cmdtext, idx);
  28058. if(!strlen(tmp))
  28059. {
  28060. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/gotonewbie) [PlayerID]{7DAEFF}");
  28061. return 1;
  28062. }
  28063. new para1;
  28064. para1 = ReturnUser(tmp);
  28065. new hrank[64];
  28066. if(PlayerInfo[playerid][pHelper] == 2) { hrank = "Helper"; }
  28067. if(PlayerInfo[playerid][pHelper] == 3) { hrank = "Assistant Head"; }
  28068. if(PlayerInfo[playerid][pHelper] == 4) { hrank = "Head Helper"; }
  28069. else if(PlayerInfo[playerid][pHelper] == 5) { hrank = "Community Advisor"; }
  28070. format(string, sizeof(string), "* %s %s accepted %s's assistance request and is helping them.", hrank, sendername, PlayerName(para1));
  28071. if (PlayerInfo[playerid][pHelper] >= 2)
  28072. {
  28073. if(IsPlayerConnected(para1))
  28074. {
  28075. if(para1 != INVALID_PLAYER_ID)
  28076. {
  28077. if (Reqhelp[para1] == 1)
  28078. {
  28079. new
  28080. Float:x,
  28081. Float:y,
  28082. Float:z,
  28083. Float:a,
  28084. p=1,
  28085. i = GetPlayerInterior(para1),
  28086. v = GetPlayerVirtualWorld(para1);
  28087. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) p=0;
  28088. GetPlayerFacingAngle(para1,a);
  28089. GetPlayerPos(para1,x,y,z);
  28090. Teleport(playerid,x,y+2,z,a,i,v,p);
  28091. SendHelperMessage(TEAM_AZTECAS_COLOR, string);
  28092. format(string, sizeof(string), "* Helper %s accepted your assistance request, you were frozen for 3 seconds.", sendername);
  28093. SendClientMessage(para1, TEAM_AZTECAS_COLOR, string);
  28094. TogglePlayerControllable(para1, 0);
  28095. SetTimerEx("BizFreeze", 3000, false, "i", para1);
  28096. Reqhelp[para1] = 0;
  28097. }
  28098. }
  28099. }
  28100. }
  28101. printf("%s", string);
  28102. }
  28103. return 1;
  28104. }
  28105. if(strcmp(cmd, "/ao", true) == 0 || strcmp(cmd, "/adminooc", true) == 0) // Logan Stone
  28106. {
  28107. if(IsPlayerConnected(playerid))
  28108. {
  28109. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  28110. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  28111. GetPlayerName(playerid, sendername, sizeof(sendername));
  28112. new length = strlen(cmdtext);
  28113. while ((idx < length) && (cmdtext[idx] <= ' '))
  28114. {
  28115. idx++;
  28116. }
  28117. new offset = idx;
  28118. new result[256];
  28119. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28120. {
  28121. result[idx - offset] = cmdtext[idx];
  28122. idx++;
  28123. }
  28124. result[idx - offset] = EOS;
  28125. if(!strlen(result))
  28126. {
  28127. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/ao)[text chat]{7DAEFF}");
  28128. return 1;
  28129. }
  28130.  
  28131. new arank[64];
  28132. if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Junior Admin"; }
  28133. else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "General Admin"; }
  28134. else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; }
  28135. else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head Admin"; }
  28136. else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Executive Admin"; }
  28137. else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Server Owner"; }
  28138.  
  28139. format(string, sizeof(string), "(( %s %s: %s ))", arank, sendername, result);
  28140. {
  28141. SendClientMessageToAll(COLOR_OOC, string);
  28142. }
  28143. printf("Admin %s: %s", sendername, result);
  28144. }
  28145. return 1;
  28146. }
  28147. if(strcmp(cmd, "/mole", true) == 0)
  28148. {
  28149. if(IsPlayerConnected(playerid))
  28150. {
  28151. if(!(PlayerInfo[playerid][pAdmin] >= 3))
  28152. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  28153. GetPlayerName(playerid, sendername, sizeof(sendername));
  28154. new length = strlen(cmdtext);
  28155. while ((idx < length) && (cmdtext[idx] <= ' '))
  28156. {
  28157. idx++;
  28158. }
  28159. new offset = idx;
  28160. new result[96];
  28161. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28162. {
  28163. result[idx - offset] = cmdtext[idx];
  28164. idx++;
  28165. }
  28166. result[idx - offset] = EOS;
  28167. if(!strlen(result))
  28168. {
  28169. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [text]");
  28170. return 1;
  28171. }
  28172. format(string, sizeof(string), "SMS: %s, Sender: MOLE (555)",result);
  28173. SendClientMessageToAll(COLOR_YELLOW, string);
  28174. }
  28175. return 1;
  28176. }
  28177. if(strcmp(cmd, "/makehelper", true) == 0)
  28178. {
  28179. if(IsPlayerConnected(playerid))
  28180. {
  28181. if(PlayerInfo[playerid][pHelper] >= 3 || PlayerInfo[playerid][pAdmin] >= 5)
  28182. {
  28183. tmp = strtok(cmdtext, idx);
  28184. if(!strlen(tmp))
  28185. {
  28186. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE:{7DAEFF} /makehelper [playerid/PartOfName] [level(1-6)]");
  28187. return 1;
  28188. }
  28189. new para1;
  28190. new level;
  28191. para1 = ReturnUser(tmp);
  28192. tmp = strtok(cmdtext, idx);
  28193. level = strval(tmp);
  28194. if(IsPlayerConnected(para1))
  28195. if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You cant go above 6 or below 0."); return 1; }
  28196. {
  28197. if(para1 != INVALID_PLAYER_ID)
  28198. {
  28199. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  28200. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28201. PlayerInfo[para1][pHelper] = level;
  28202. printf("Info: %s has made %s a level %d helper", sendername, giveplayer, level);
  28203. format(string, sizeof(string), "You have been promoted to a level %d helper by %s.", level, sendername);
  28204. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  28205. format(string, sizeof(string), "You have promoted/demoted %s to a level %d helper.", giveplayer,level);
  28206. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  28207. }
  28208. }
  28209. }
  28210. else
  28211. {
  28212. SendClientMessage(playerid, COLOR_GRAD1, "You are authorized to use this command.");
  28213. }
  28214. }
  28215. return 1;
  28216. }
  28217. if(strcmp(cmd, "/makegangmod", true) == 0)
  28218. {
  28219. if(!(PlayerInfo[playerid][pAdmin] >= 6))
  28220. return SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  28221. tmp = strtok(cmdtext, idx);
  28222. if(!strlen(tmp))
  28223. return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makegangmod [playerid]{7DAEFF}");
  28224. new targetid = ReturnUser(tmp);
  28225. if(PlayerInfo[targetid][pGangMod])
  28226. {
  28227. SendClientMessage(targetid,COLOR_RED,"Your gang moderator status was removed by an administrator.");
  28228. format(string, sizeof(string), "AdmWarning: %s removed %s's gang moderator status.",PlayerName(playerid),PlayerName(targetid));
  28229. ABroadCast(COLOR_YELLOW,string,1);
  28230. PlayerInfo[targetid][pGangMod] = 0;
  28231. }
  28232. else
  28233. {
  28234. SendClientMessage(targetid,COLOR_RED,"You have been granted gang moderator status by an administrator.");
  28235. format(string, sizeof(string), "AdmWarning: %s granted %s gang moderator status.",PlayerName(playerid),PlayerName(targetid));
  28236. ABroadCast(COLOR_YELLOW,string,1);
  28237. PlayerInfo[targetid][pGangMod] = 1;
  28238. }
  28239. return 1;
  28240. }
  28241. if(strcmp(cmd, "/makebanappealer", true) == 0)
  28242. {
  28243. if(!(PlayerInfo[playerid][pAdmin] >= 6))
  28244. return SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  28245. tmp = strtok(cmdtext, idx);
  28246. if(!strlen(tmp))
  28247. return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makebanappealer [playerid]{7DAEFF}");
  28248. new targetid = ReturnUser(tmp);
  28249. if(PlayerInfo[targetid][pBanAppealer])
  28250. {
  28251. SendClientMessage(targetid,COLOR_RED,"Your ban appealer status was removed by an administrator.");
  28252. format(string, sizeof(string), "AdmWarning: %s removed %s's ban appealer status.",PlayerName(playerid),PlayerName(targetid));
  28253. ABroadCast(COLOR_YELLOW,string,1);
  28254. PlayerInfo[targetid][pBanAppealer] = 0;
  28255. }
  28256. else
  28257. {
  28258. SendClientMessage(targetid,COLOR_RED,"You have been granted ban appealer status by an administrator.");
  28259. format(string, sizeof(string), "AdmWarning: %s granted %s ban appealer status.",PlayerName(playerid),PlayerName(targetid));
  28260. ABroadCast(COLOR_YELLOW,string,1);
  28261. PlayerInfo[targetid][pBanAppealer] = 1;
  28262. }
  28263. return 1;
  28264. }
  28265. if(strcmp(cmd, "/nonewbie", true) == 0)
  28266. {
  28267. if(IsPlayerConnected(playerid))
  28268. {
  28269. if(PlayerInfo[playerid][pAdmin] >= 3 && (!nonewbie))
  28270. {
  28271. nonewbie = 1;
  28272. SendClientMessageToAll(COLOR_GRAD2, "Newbie chat channel disabled by an Admin.");
  28273. }
  28274. else if(PlayerInfo[playerid][pAdmin] >= 3 && (nonewbie))
  28275. {
  28276. nonewbie = 0;
  28277. SendClientMessageToAll(COLOR_GRAD2, "Newbie chat channel enabled by an Admin !");
  28278. }
  28279. else
  28280. {
  28281. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command !");
  28282. }
  28283. }
  28284. return 1;
  28285. }
  28286. if(strcmp(cmd, "/noreport", true) == 0)
  28287. {
  28288. if(IsPlayerConnected(playerid))
  28289. {
  28290. if(PlayerInfo[playerid][pAdmin] >= 3 && (!noreport))
  28291. {
  28292. noreport = 1;
  28293. SendClientMessageToAll(COLOR_GRAD2, "Report channel disabled by an Admin !");
  28294. }
  28295. else if(PlayerInfo[playerid][pAdmin] >= 3 && (noreport))
  28296. {
  28297. noreport = 0;
  28298. SendClientMessageToAll(COLOR_GRAD2, "Report channel enabled by an Admin !");
  28299. }
  28300. else
  28301. {
  28302. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command !");
  28303. }
  28304. }
  28305. return 1;
  28306. }
  28307. if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
  28308. {
  28309. if(IsPlayerConnected(playerid))
  28310. {
  28311. if(gPlayerLogged[playerid] == 0)
  28312. {
  28313. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet !");
  28314. return 1;
  28315. }
  28316. if((noooc) && PlayerInfo[playerid][pAdmin] < 2)
  28317. {
  28318. SendClientMessage(playerid, COLOR_GREY, "The OOC channel has been disabled by an Admin !");
  28319. return 1;
  28320. }
  28321. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28322. new length = strlen(cmdtext);
  28323. while ((idx < length) && (cmdtext[idx] <= ' '))
  28324. {
  28325. idx++;
  28326. }
  28327. new offset = idx;
  28328. new result[96];
  28329. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28330. {
  28331. result[idx - offset] = cmdtext[idx];
  28332. idx++;
  28333. }
  28334. result[idx - offset] = EOS;
  28335. if(!strlen(result))
  28336. {
  28337. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/o)oc [ooc chat]{7DAEFF}");
  28338. return 1;
  28339. }
  28340. format(string, sizeof(string), "(( %s: %s ))", sendername, result);
  28341. OOCOff(COLOR_OOC,string);
  28342. }
  28343. return 1;
  28344. }
  28345. if(strcmp(cmd, "/noooc", true) == 0)
  28346. {
  28347. if(IsPlayerConnected(playerid))
  28348. {
  28349. if(PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
  28350. {
  28351. noooc = 1;
  28352. SendClientMessageToAll(COLOR_GRAD2, " OOC chat channel disabled by an Admin !");
  28353. }
  28354. else if(PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
  28355. {
  28356. noooc = 0;
  28357. SendClientMessageToAll(COLOR_GRAD2, " OOC chat channel enabled by an Admin !");
  28358. }
  28359. else
  28360. {
  28361. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  28362. }
  28363. }
  28364. return 1;
  28365. }
  28366. if(strcmp(cmd, "/speedo", true) == 0)
  28367. {
  28368. if(IsPlayerConnected(playerid))
  28369. {
  28370. if(gSpeedo[playerid] == 1)
  28371. {
  28372. gSpeedo[playerid] = 2;
  28373. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~on", 5000, 5);
  28374. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  28375. }
  28376. else if(gSpeedo[playerid] == 2)
  28377. {
  28378. gSpeedo[playerid] = 1;
  28379. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~off", 5000, 5);
  28380. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  28381. }
  28382. else
  28383. {
  28384. SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Speedometer !");
  28385. }
  28386. }
  28387. return 1;
  28388. }
  28389. if(strcmp(cmd, "/togfuel", true) == 0)
  28390. {
  28391. if(IsPlayerConnected(playerid))
  28392. {
  28393. if(gGas[playerid] == 0)
  28394. {
  28395. gGas[playerid] = 1;
  28396. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~Fuel Info on", 5000, 5);
  28397. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  28398. }
  28399. else if(gGas[playerid] == 1)
  28400. {
  28401. gGas[playerid] = 0;
  28402. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Fuel Info off", 5000, 5);
  28403. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  28404. }
  28405. }
  28406. return 1;
  28407. }
  28408. if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
  28409. {
  28410. if(IsPlayerConnected(playerid))
  28411. {
  28412. if(gPlayerLogged[playerid] == 0)
  28413. {
  28414. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
  28415. return 1;
  28416. }
  28417. if(PlayerInfo[playerid][pConnectTime] == 0)
  28418. {
  28419. SendClientMessage(playerid,COLOR_WHITE,"You must play longer before you can place advertisements.");
  28420. return 1;
  28421. }
  28422. if(PlayerInfo[playerid][pAdMuted] == 1)
  28423. {
  28424. SendClientMessage(playerid, COLOR_GREY, "You are banned from making advertisments.");
  28425. return 1;
  28426. }
  28427. if(PlayerInfo[playerid][pTut] == 0 || PlayerInfo[playerid][pHospital] == 1)
  28428. {
  28429. return 1;
  28430. }
  28431. if(PlayerInfo[playerid][pPnumber] == 0)
  28432. {
  28433. SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone !");
  28434. SendClientMessage(playerid, COLOR_WHITE,"HINT: You can /buy a cell phone from a Phone Shop.");
  28435. return 1;
  28436. }
  28437. if(PlayerInfo[playerid][pJailed] != 0 || PlayerCuffed[playerid] != 0)
  28438. {
  28439. SendClientMessage(playerid, COLOR_GRAD2, "You can't do that at this time.");
  28440. return 1;
  28441. }
  28442. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28443. new length = strlen(cmdtext);
  28444. while ((idx < length) && (cmdtext[idx] <= ' '))
  28445. {
  28446. idx++;
  28447. }
  28448. new offset = idx;
  28449. new result[96];
  28450. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28451. {
  28452. result[idx - offset] = cmdtext[idx];
  28453. idx++;
  28454. }
  28455. result[idx - offset] = EOS;
  28456. if(!strlen(result))
  28457. {
  28458. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/ad)vertise [advert text]{7DAEFF}");
  28459. return 1;
  28460. }
  28461. if((!adds) && (PlayerInfo[playerid][pAdmin] < 3))
  28462. {
  28463. format(string, sizeof(string), "You must wait %d between advertisements, try again soon.", (addtimer/1000));
  28464. SendClientMessage(playerid, COLOR_GRAD2, string);
  28465. return 1;
  28466.  
  28467. }
  28468. new ip[15];
  28469. if(ipmatch(result, ip))
  28470. {
  28471. // format(string, sizeof(string), "AdmCmd: %s was banned, reason: Server Advertising.", sendername);
  28472. // SendClientMessageToAll(COLOR_LIGHTRED, string);
  28473. // BanEx(playerid, "Banned By: Autoban Reason: Server Advertising");
  28474. return 1;
  28475. }
  28476. new payout = idx * 25;
  28477. if(PlayerInfo[playerid][pCash] < payout)
  28478. {
  28479. format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);
  28480. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  28481. return 1;
  28482. }
  28483. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-payout;
  28484. GivePlayerMoney(playerid, - payout);
  28485. format(string, sizeof(string), "Advertisement: %s, Contact: %s Ph: %d", result, sendername,PlayerInfo[playerid][pPnumber]);
  28486. OOCNews(TEAM_GROVE_COLOR,string);
  28487. format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx);
  28488. GameTextForPlayer(playerid, string, 5000, 5);
  28489. if(PlayerInfo[playerid][pAdmin] < 4){SetTimer("AddsOn", addtimer, 0);adds = 0;}
  28490. }
  28491. return 1;
  28492. }
  28493. if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
  28494. {
  28495. if(IsPlayerConnected(playerid))
  28496. {
  28497. if(IsACop(playerid) || IsANG(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  28498. {
  28499. if(PlayerInfo[playerid][pMember] == 1)
  28500. {
  28501. if(PlayerInfo[playerid][pRank] < 4)
  28502. {
  28503. SendClientMessage(playerid, COLOR_GREY, "You need to be Rank 4 to be able to use this.");
  28504. return 1;
  28505. }
  28506. }
  28507. else
  28508. {
  28509. if(PlayerInfo[playerid][pRank] < 5)
  28510. {
  28511. SendClientMessage(playerid, COLOR_GREY, "You need to be Rank 5 to be able to use this.");
  28512. return 1;
  28513. }
  28514. }
  28515. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28516. new length = strlen(cmdtext);
  28517. while ((idx < length) && (cmdtext[idx] <= ' '))
  28518. {
  28519. idx++;
  28520. }
  28521. new offset = idx;
  28522. new result[96];
  28523. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28524. {
  28525. result[idx - offset] = cmdtext[idx];
  28526. idx++;
  28527. }
  28528. result[idx - offset] = EOS;
  28529. if(!strlen(result))
  28530. {
  28531. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/gov)ernment [text]{7DAEFF}");
  28532. return 1;
  28533. }
  28534. new rtext[64];
  28535. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) //LSPD
  28536. {
  28537. if(PlayerInfo[playerid][pRank] == 4) { rtext = "LSPD Captain"; }
  28538. else if(PlayerInfo[playerid][pRank] == 5) { rtext = "LSPD Deputy Chief"; }
  28539. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "LSPD Chief"; }
  28540. }
  28541. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
  28542. {
  28543. if(PlayerInfo[playerid][pRank] == 5) { rtext = "FBI Assistant Director"; }
  28544. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "FBI Director"; }
  28545. }
  28546. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) //SASP
  28547. {
  28548. if(PlayerInfo[playerid][pRank] == 5) { rtext = "Superintendent"; }
  28549. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Commodore"; }
  28550. }
  28551. else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) //Paramedic
  28552. {
  28553. if(PlayerInfo[playerid][pRank] == 5) { rtext = "LSFMD Captain"; }
  28554. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "LSFMD Battalion Chief"; }
  28555. }
  28556. else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //National Guard
  28557. {
  28558. if(PlayerInfo[playerid][pRank] == 5) { rtext = "NG Colonel"; }
  28559. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "NG General"; }
  28560. }
  28561. else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Senate
  28562. {
  28563. if(PlayerInfo[playerid][pRank] == 5) { rtext = "Vice Governor"; }
  28564. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Governor"; }
  28565. }
  28566. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) //CIA
  28567. {
  28568. if(PlayerInfo[playerid][pRank] == 5) { rtext = "SS Vice Director"; }
  28569. else if(PlayerInfo[playerid][pRank] == 6) { rtext = "SS Director"; }
  28570. }
  28571. SendClientMessageToAll(COLOR_WHITE, "|___________ Government News Announcement ___________|");
  28572. format(string, sizeof(string), "%s %s: %s",rtext,sendername, result);
  28573. SendClientMessageToAll(COLOR_DBLUE, string);
  28574. }
  28575. else
  28576. {
  28577. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / Fireman / Paramedic / NG / Governor.");
  28578. }
  28579. }
  28580. return 1;
  28581. }
  28582. if(strcmp(cmd, "/togooc", true) == 0)
  28583. {
  28584. if(IsPlayerConnected(playerid))
  28585. {
  28586. if(!gOoc[playerid])
  28587. {
  28588. gOoc[playerid] = 1;
  28589. SendClientMessage(playerid, COLOR_GRAD2, "OOC chat channel Disabled.");
  28590. }
  28591. else if(gOoc[playerid])
  28592. {
  28593. gOoc[playerid] = 0;
  28594. SendClientMessage(playerid, COLOR_GRAD2, "OOC chat channel Enabled.");
  28595. }
  28596. }
  28597. return 1;
  28598. }
  28599. if(strcmp(cmd, "/tognewbie", true) == 0)
  28600. {
  28601. if(IsPlayerConnected(playerid))
  28602. {
  28603. if(!gNewbie[playerid])
  28604. {
  28605. gNewbie[playerid] = 1;
  28606. SendClientMessage(playerid, COLOR_GRAD2, "Newbie chat channel Disabled.");
  28607. }
  28608. else if(gNewbie[playerid])
  28609. {
  28610. gNewbie[playerid] = 0;
  28611. SendClientMessage(playerid, COLOR_GRAD2, "Newbie chat channel Enabled.");
  28612. }
  28613. }
  28614. return 1;
  28615. }
  28616. if(strcmp(cmd, "/tognews", true) == 0)
  28617. {
  28618. if(IsPlayerConnected(playerid))
  28619. {
  28620. if(!gNews[playerid])
  28621. {
  28622. gNews[playerid] = 1;
  28623. SendClientMessage(playerid, COLOR_GRAD2, "News chat channel Disabled.");
  28624. }
  28625. else if(gNews[playerid])
  28626. {
  28627. gNews[playerid] = 0;
  28628. SendClientMessage(playerid, COLOR_GRAD2, "News chat channel Enabled.");
  28629. }
  28630. }
  28631. return 1;
  28632. }
  28633. if(strcmp(cmd, "/togfam", true) == 0)
  28634. {
  28635. if(IsPlayerConnected(playerid))
  28636. {
  28637. if(!gFam[playerid])
  28638. {
  28639. gFam[playerid] = 1;
  28640. SendClientMessage(playerid, COLOR_GRAD2, "Family chat channel Disabled.");
  28641. }
  28642. else if(gFam[playerid])
  28643. {
  28644. gFam[playerid] = 0;
  28645. SendClientMessage(playerid, COLOR_GRAD2, "Family chat channel Enabled.");
  28646. }
  28647. }
  28648. return 1;
  28649. }
  28650. if(strcmp(cmd, "/togwhisper", true) == 0)
  28651. {
  28652. if(IsPlayerConnected(playerid))
  28653. {
  28654. if(!HidePM[playerid])
  28655. {
  28656. HidePM[playerid] = 1;
  28657. SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat channel Disabled.");
  28658. }
  28659. else if(HidePM[playerid])
  28660. {
  28661. HidePM[playerid] = 0;
  28662. SendClientMessage(playerid, COLOR_GRAD2, "Whisper chat channel Enabled.");
  28663. }
  28664. }
  28665. return 1;
  28666. }
  28667.  
  28668. if(strcmp(cmd, "/notp", true) == 0)
  28669. {
  28670. if(IsPlayerConnected(playerid))
  28671. {
  28672. if(PlayerInfo[playerid][pAdmin] < 5)
  28673. {
  28674. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
  28675. return 1;
  28676. }
  28677. if(!NoTP[playerid])
  28678. {
  28679. NoTP[playerid] = 1;
  28680. SendClientMessage(playerid, COLOR_GRAD2, "Teleports Disabled.");
  28681. }
  28682. else if(NoTP[playerid])
  28683. {
  28684. NoTP[playerid] = 0;
  28685. SendClientMessage(playerid, COLOR_GRAD2, "Teleports Enabled.");
  28686. }
  28687. }
  28688. return 1;
  28689. }
  28690.  
  28691. if(strcmp(cmd, "/nospec", true) == 0)
  28692. {
  28693. if(IsPlayerConnected(playerid))
  28694. {
  28695. if(PlayerInfo[playerid][pAdmin] < 5)
  28696. {
  28697. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
  28698. return 1;
  28699. }
  28700. if(!NoSpec[playerid])
  28701. {
  28702. NoSpec[playerid] = 1;
  28703. SendClientMessage(playerid, COLOR_GRAD2, "Spectating Disabled.");
  28704. }
  28705. else if(NoSpec[playerid])
  28706. {
  28707. NoSpec[playerid] = 0;
  28708. SendClientMessage(playerid, COLOR_GRAD2, "Spectating Enabled.");
  28709. }
  28710. }
  28711. return 1;
  28712. }
  28713.  
  28714.  
  28715. if(strcmp(cmd, "/togphone", true) == 0)
  28716. {
  28717. if(IsPlayerConnected(playerid))
  28718. {
  28719. if(!PhoneOnline[playerid])
  28720. {
  28721. PhoneOnline[playerid] = 1;
  28722. SendClientMessage(playerid, COLOR_GRAD2, "Your Phone is Offline.");
  28723. }
  28724. else if(PhoneOnline[playerid])
  28725. {
  28726. PhoneOnline[playerid] = 0;
  28727. SendClientMessage(playerid, COLOR_GRAD2, "Your Phone is Online.");
  28728. }
  28729. }
  28730. return 1;
  28731. }
  28732. if(strcmp(cmd, "/me", true) == 0)
  28733. {
  28734. if(IsPlayerConnected(playerid))
  28735. {
  28736. if(gPlayerLogged[playerid] == 0)
  28737. {
  28738. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
  28739. return 1;
  28740. }
  28741. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28742. new length = strlen(cmdtext);
  28743. while ((idx < length) && (cmdtext[idx] <= ' '))
  28744. {
  28745. idx++;
  28746. }
  28747. new offset = idx;
  28748. new result[96];
  28749. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28750. {
  28751. result[idx - offset] = cmdtext[idx];
  28752. idx++;
  28753. }
  28754. result[idx - offset] = EOS;
  28755. if(!strlen(result))
  28756. {
  28757. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /me [action]");
  28758. return 1;
  28759. }
  28760. if(PlayerInfo[playerid][pMask] == 1)
  28761. {
  28762. format(string, sizeof(string), "* Stranger %s", result);
  28763. }
  28764. else
  28765. {
  28766. format(string, sizeof(string), "* %s %s", sendername, result);
  28767. }
  28768. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  28769. }
  28770. return 1;
  28771. }
  28772. if(strcmp(cmd, "/b", true) == 0)
  28773. {
  28774. if(IsPlayerConnected(playerid))
  28775. {
  28776. if(gPlayerLogged[playerid] == 0)
  28777. {
  28778. SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
  28779. return 1;
  28780. }
  28781. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28782. new length = strlen(cmdtext);
  28783. while ((idx < length) && (cmdtext[idx] <= ' '))
  28784. {
  28785. idx++;
  28786. }
  28787. new offset = idx;
  28788. new result[96];
  28789. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28790. {
  28791. result[idx - offset] = cmdtext[idx];
  28792. idx++;
  28793. }
  28794. result[idx - offset] = EOS;
  28795. if(!strlen(result))
  28796. {
  28797. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /b [local ooc chat]");
  28798. return 1;
  28799. }
  28800. if(PlayerInfo[playerid][pMask] == 1)
  28801. {
  28802. format(string, sizeof(string), "Stranger: (( %s ))", result);
  28803. }
  28804. else
  28805. {
  28806. format(string, sizeof(string), "%s: (( %s ))", sendername, result);
  28807. }
  28808. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  28809. }
  28810. return 1;
  28811. }
  28812. if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
  28813. {
  28814. if(IsPlayerConnected(playerid))
  28815. {
  28816. if(gPlayerLogged[playerid] == 0)
  28817. {
  28818. SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
  28819. return 1;
  28820. }
  28821. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28822. new length = strlen(cmdtext);
  28823. while ((idx < length) && (cmdtext[idx] <= ' '))
  28824. {
  28825. idx++;
  28826. }
  28827. new offset = idx;
  28828. new result[64];
  28829. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28830. {
  28831. result[idx - offset] = cmdtext[idx];
  28832. idx++;
  28833. }
  28834. result[idx - offset] = EOS;
  28835. if(!strlen(result))
  28836. {
  28837. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/s)hout [local chat]{7DAEFF}");
  28838. return 1;
  28839. }
  28840. if(PlayerInfo[playerid][pMask] == 1)
  28841. {
  28842. format(string, sizeof(string), "Stranger shouts: %s!", result);
  28843. }
  28844. else
  28845. {
  28846. format(string, sizeof(string), "%s shouts: %s!", sendername, result);
  28847. }
  28848. ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
  28849. format(string, sizeof(string), "shouts: %s!", result);
  28850. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 30.0, 10000);
  28851. }
  28852. return 1;
  28853. }
  28854. if(strcmp(cmd, "/low", true) == 0 || strcmp(cmd, "/l", true) == 0)
  28855. {
  28856. if(IsPlayerConnected(playerid))
  28857. {
  28858. if(gPlayerLogged[playerid] == 0)
  28859. {
  28860. SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
  28861. return 1;
  28862. }
  28863. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28864. new length = strlen(cmdtext);
  28865. while ((idx < length) && (cmdtext[idx] <= ' '))
  28866. {
  28867. idx++;
  28868. }
  28869. new offset = idx;
  28870. new result[64];
  28871. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28872. {
  28873. result[idx - offset] = cmdtext[idx];
  28874. idx++;
  28875. }
  28876. result[idx - offset] = EOS;
  28877. if(!strlen(result))
  28878. {
  28879. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE:{7DAEFF} (/l)ow [local chat]");
  28880. return 1;
  28881. }
  28882. if(PlayerInfo[playerid][pMask] == 1)
  28883. {
  28884. format(string, sizeof(string), "Stranger [low]: %s", result);
  28885. }
  28886. else
  28887. {
  28888. format(string, sizeof(string), "%s [low]: %s", sendername, result);
  28889. }
  28890. ProxDetector(5.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  28891. format(string, sizeof(string), "[low]: %s", result);
  28892. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 10000);
  28893. }
  28894. return 1;
  28895. }
  28896. if(strcmp(cmd, "/do", true) == 0)
  28897. {
  28898. if(IsPlayerConnected(playerid))
  28899. {
  28900. if(gPlayerLogged[playerid] == 0)
  28901. {
  28902. SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
  28903. return 1;
  28904. }
  28905. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28906. new length = strlen(cmdtext);
  28907. while ((idx < length) && (cmdtext[idx] <= ' '))
  28908. {
  28909. idx++;
  28910. }
  28911. new offset = idx;
  28912. new result[64];
  28913. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28914. {
  28915. result[idx - offset] = cmdtext[idx];
  28916. idx++;
  28917. }
  28918. result[idx - offset] = EOS;
  28919. if(!strlen(result))
  28920. {
  28921. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /do [local chat]{7DAEFF}");
  28922. return 1;
  28923. }
  28924. if(PlayerInfo[playerid][pMask] == 1)
  28925. {
  28926. format(string, sizeof(string), "* %s (( Stranger ))", result);
  28927. }
  28928. else
  28929. {
  28930. format(string, sizeof(string), "* %s (( %s ))",result , sendername);
  28931. }
  28932. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  28933. }
  28934. return 1;
  28935. }
  28936. if(strcmp(cmd, "/intercom", true) == 0 || strcmp(cmd, "/int", true) == 0)
  28937. {
  28938. new vw, interior;
  28939. new vehid = GetPlayerVehicleID(playerid);
  28940.  
  28941. if(vehid == 152)
  28942. {
  28943. vw = 1337;
  28944. interior = 1;
  28945. }
  28946. else if(vehid == 153)
  28947. {
  28948. vw = 1338;
  28949. interior = 1;
  28950. }
  28951. else if(vehid == 154)
  28952. {
  28953. vw = 1339;
  28954. interior = 1;
  28955. }
  28956. else
  28957. {
  28958. return SendClientMessage(playerid,COLOR_GREY,"You're not in a vehicle with an intercom!");
  28959. }
  28960.  
  28961. strmid(tmp,cmdtext,idx,strlen(cmdtext));
  28962. if(!strlen(tmp))
  28963. return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/int)ercom [text]{7DAEFF}");
  28964. format(string, sizeof(string), "[Pilot %s:o<%s]",PlayerName(playerid),tmp);
  28965. SendClientMessage(playerid,COLOR_YELLOW,string);
  28966. for(new i = 0;i < MAX_PLAYERS;i++)
  28967. {
  28968. if(GetPlayerVirtualWorld(i) == vw && GetPlayerInterior(i) == interior)
  28969. {
  28970. SendClientMessage(i,COLOR_YELLOW,string);
  28971. }
  28972. }
  28973. return 1;
  28974. }
  28975. if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
  28976. {
  28977. if(IsPlayerConnected(playerid))
  28978. {
  28979. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  28980. new length = strlen(cmdtext);
  28981. while ((idx < length) && (cmdtext[idx] <= ' '))
  28982. {
  28983. idx++;
  28984. }
  28985. new offset = idx;
  28986. new result[64];
  28987. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  28988. {
  28989. result[idx - offset] = cmdtext[idx];
  28990. idx++;
  28991. }
  28992. result[idx - offset] = EOS;
  28993. if(!strlen(result))
  28994. {
  28995. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/m)egaphone [megaphone chat]{7DAEFF}");
  28996. return 1;
  28997. }
  28998. if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4|| IsANG(playerid))
  28999. {
  29000. if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
  29001. {
  29002. format(string, sizeof(string), "[Officer %s:o< %s]", sendername, result);
  29003. ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  29004. }
  29005. else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
  29006. {
  29007. format(string, sizeof(string), "[Agent %s:o< %s]", sendername, result);
  29008. ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  29009. }
  29010. else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
  29011. {
  29012. format(string, sizeof(string), "[Deputy %s:o< %s]", sendername, result);
  29013. ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  29014. }
  29015. else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
  29016. {
  29017. format(string, sizeof(string), "[Paramedic %s:o< %s]", sendername, result);
  29018. ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  29019. }
  29020. else if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
  29021. {
  29022. format(string, sizeof(string), "[Soldier %s:o< %s]", sendername, result);
  29023. ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  29024. }
  29025. }
  29026. else
  29027. {
  29028. SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Team !");
  29029. return 1;
  29030. }
  29031. }
  29032. return 1;
  29033. }
  29034. /*if(strcmp(cmd, "/door", true) == 0)
  29035. {
  29036. if(IsPlayerConnected(playerid))
  29037. {
  29038. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 7)
  29039. {
  29040. if(IsPlayerInRangeOfPoint(playerid, 3, 246.3489,72.0905,1003.6406))
  29041. {
  29042. new name[MAX_PLAYER_NAME];
  29043. GetPlayerName(playerid, name, sizeof(name));
  29044. if(IsPlayerConnected(playerid))
  29045. {
  29046. if(IsLSPDDoorOpen == 0)
  29047. {
  29048. MoveDynamicObject(LSPD_Door[ObjectID1], 247.3080, 72.3000, 1003.6700, 1.50);
  29049. MoveDynamicObject(LSPD_Door[ObjectID2], 245.480, 72.5750, 1003.6650, 1.50);
  29050. MoveDynamicObject(LSPD_Door[ObjectID3], 247.888, 72.4500, 1003.7000, 1.50);
  29051. MoveDynamicObject(LSPD_Door[ObjectID4], 244.908, 72.4500, 1003.7000, 1.50);
  29052. IsLSPDDoorOpen = 1;
  29053. format(string, sizeof(string), "* %s slides their card and opens the door", name);
  29054. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  29055. return 1;
  29056. }
  29057. if(IsLSPDDoorOpen == 1)
  29058. {
  29059. MoveDynamicObject(LSPD_Door[ObjectID1], 246.4050, 72.3000, 1003.6700, 1.50);
  29060. MoveDynamicObject(LSPD_Door[ObjectID2], 246.4050, 72.5750, 1003.6650, 1.50);
  29061. MoveDynamicObject(LSPD_Door[ObjectID3], 246.9850, 72.4500, 1003.7000, 1.50);
  29062. MoveDynamicObject(LSPD_Door[ObjectID4], 245.8330, 72.4500, 1003.7000, 1.50);
  29063. IsLSPDDoorOpen = 0;
  29064. format(string, sizeof(string), "* %s slides their card and closes the door", name);
  29065. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  29066. return 1;
  29067. }
  29068. }
  29069. }
  29070. if(IsPlayerInRangeOfPoint(playerid, 3, 222.09, 70.57, 1004.00))
  29071. {
  29072. if(IsPlayerConnected(playerid))
  29073. {
  29074. if(DoorOpened==0)
  29075. {
  29076. MoveDynamicObject(door, 222.21, 72.27, 1004.00, 3);
  29077. chiefdoortimer = SetTimer("ClosePDDoor",3000,0);
  29078. DoorOpened = 1;
  29079. }
  29080. else if(DoorOpened==1)
  29081. {
  29082. MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
  29083. KillTimer(chiefdoortimer);
  29084. DoorOpened = 0;
  29085. }
  29086. }
  29087. }
  29088. }
  29089. }
  29090. }*/
  29091. if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
  29092. {
  29093. if(IsPlayerConnected(playerid))
  29094. {
  29095. new str[160];
  29096. GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  29097. for (new i = 0; i < MAX_PLAYER_NAME; i++)
  29098. if (str[i] == '_')
  29099. str[i] = ' ';
  29100. new length = strlen(cmdtext);
  29101. while ((idx < length) && (cmdtext[idx] <= ' '))
  29102. {
  29103. idx++;
  29104. }
  29105. new offset = idx;
  29106. new result[256];
  29107. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  29108. {
  29109. result[idx - offset] = cmdtext[idx];
  29110. idx++;
  29111. }
  29112. result[idx - offset] = EOS;
  29113. if(!strlen(result))
  29114. {
  29115. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/r)adio [radio chat]{7DAEFF}");
  29116. return 1;
  29117. }
  29118. switch (PlayerInfo[playerid][pMember])
  29119. {
  29120. case 1:
  29121. {
  29122. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29123. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  29124. format(string, sizeof(string), "[Radio] %s, over.", result);
  29125. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29126. }
  29127. case 2:
  29128. {
  29129. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29130. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  29131. format(string, sizeof(string), "[Radio] %s, over.", result);
  29132. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29133. }
  29134. case 3:
  29135. {
  29136. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29137. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  29138. format(string, sizeof(string), "[Radio] %s, over.", result);
  29139. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29140. }
  29141. case 4:
  29142. {
  29143. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29144. SendRadioMessage(4, COLOR_DOC, string);
  29145. format(string, sizeof(string), "[Radio] %s, over.", result);
  29146. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29147. }
  29148. case 5:
  29149. {
  29150. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29151. SendRadioMessage(5, COLOR_LIGHTGREEN, string);
  29152. format(string, sizeof(string), "[Radio] %s, over.", result);
  29153. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29154. }
  29155. case 6:
  29156. {
  29157. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29158. SendRadioMessage(6, TEAM_BLUE_COLOR, string);
  29159. format(string, sizeof(string), "[Radio] %s, over.", result);
  29160. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29161. }
  29162. case 7:
  29163. {
  29164. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29165. SendRadioMessage(7, TEAM_BLUE_COLOR, string);
  29166. format(string, sizeof(string), "[Radio] %s, over.", result);
  29167. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29168. }
  29169. case 9:
  29170. {
  29171. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29172. SendRadioMessage(9, TEAM_GROVE_COLOR, string);
  29173. format(string, sizeof(string), "[Radio] %s, over.", result);
  29174. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29175. }
  29176. case 10:
  29177. {
  29178. format(string, sizeof(string), "** %s %s: %s. **", GetPlayerRank(playerid),str, result);
  29179. SendRadioMessage(10, TEAM_GROVE_COLOR, string);
  29180. format(string, sizeof(string), "[Radio] %s, over.", result);
  29181. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  29182. }
  29183. default: SendClientMessage(playerid, COLOR_GRAD2, "You are not part of a Team.");
  29184. }
  29185. }
  29186. return 1;
  29187. }
  29188.  
  29189. if(strcmp(cmd, "/faction", true) == 0 || strcmp(cmd, "/fooc", true) == 0)
  29190. {
  29191. if(IsPlayerConnected(playerid))
  29192. {
  29193. new str[160];
  29194. GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  29195. for (new i = 0; i < MAX_PLAYER_NAME; i++)
  29196. if (str[i] == '_')
  29197. str[i] = ' ';
  29198. new length = strlen(cmdtext);
  29199. while ((idx < length) && (cmdtext[idx] <= ' '))
  29200. {
  29201. idx++;
  29202. }
  29203. new offset = idx;
  29204. new result[256];
  29205. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  29206. {
  29207. result[idx - offset] = cmdtext[idx];
  29208. idx++;
  29209. }
  29210. result[idx - offset] = EOS;
  29211. if(!strlen(result))
  29212. {
  29213. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /f [ooc chat]{7DAEFF}");
  29214. return 1;
  29215. }
  29216. switch (PlayerInfo[playerid][pMember])
  29217. {
  29218. case 1:
  29219. {
  29220. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29221. SendRadioMessage(1, TEAM_AZTECAS_COLOR, string);
  29222. }
  29223. case 2:
  29224. {
  29225. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29226. SendRadioMessage(2, TEAM_AZTECAS_COLOR, string);
  29227. }
  29228. case 3:
  29229. {
  29230. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29231. SendRadioMessage(3, TEAM_AZTECAS_COLOR, string);
  29232. }
  29233. case 4:
  29234. {
  29235. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29236. SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
  29237. }
  29238. case 5:
  29239. {
  29240. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29241. SendRadioMessage(5, TEAM_AZTECAS_COLOR, string);
  29242. }
  29243. case 6:
  29244. {
  29245. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29246. SendRadioMessage(6, TEAM_AZTECAS_COLOR, string);
  29247. }
  29248. case 7:
  29249. {
  29250. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29251. SendRadioMessage(7, TEAM_AZTECAS_COLOR, string);
  29252. }
  29253. case 8:
  29254. {
  29255. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29256. SendRadioMessage(8, TEAM_AZTECAS_COLOR, string);
  29257. }
  29258. case 9:
  29259. {
  29260. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29261. SendRadioMessage(9, TEAM_AZTECAS_COLOR, string);
  29262. }
  29263. case 10:
  29264. {
  29265. format(string, sizeof(string), "* %s %s: %s", GetPlayerRank(playerid),str, result);
  29266. SendRadioMessage(10, TEAM_AZTECAS_COLOR, string);
  29267. }
  29268. default: SendClientMessage(playerid, COLOR_GRAD2, "You are not a member of a Faction/Family.");
  29269. }
  29270. }
  29271. return 1;
  29272. }
  29273.  
  29274. if(strcmp(cmd,"/backupclear",true) == 0 || strcmp(cmd,"/bkc",true) == 0) // Logan Stone
  29275. {
  29276. if(IsACop(playerid))
  29277. {
  29278. GetPlayerNameEx(playerid,sendername,sizeof(sendername));
  29279. format(string, sizeof(string), "DISPATCH: %s %s has cancelled their backup request.", GetPlayerRank(playerid), sendername);
  29280. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  29281. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  29282. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  29283. BackupClear(playerid, 0);
  29284. }
  29285. else
  29286. {
  29287. SendClientMessage(playerid, COLOR_GREY, "You are not a law enforcement official.");
  29288. }
  29289. return 1;
  29290. }
  29291. if(strcmp(cmd,"/backup",true) == 0 || strcmp(cmd,"/bk",true) == 0)
  29292. {
  29293. if(IsPlayerConnected(playerid))
  29294. {
  29295. if(IsACop(playerid))
  29296. {
  29297. if(PlayerInfo[playerid][pRequestingBackup] != 1)
  29298. {
  29299. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  29300. format(string, sizeof(string), "HQ: All units, %s %s %s is requesting backup, they have been marked on your GPS.", GetPlayerFactionName(playerid),GetPlayerRank(playerid), sendername);
  29301. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  29302. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  29303. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  29304. PlayerInfo[playerid][pRequestingBackup] = 1;
  29305. for (new i = 0; i < MAX_PLAYERS; i++)
  29306. {
  29307. if(IsPlayerConnected(i))
  29308. {
  29309. if(IsACop(i))
  29310. {
  29311. SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
  29312. }
  29313. }
  29314. }
  29315. SendClientMessage(playerid, TEAM_BLUE_COLOR, "Type /bkc to clear your backup request.");
  29316. SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
  29317. }
  29318. else
  29319. {
  29320. SendClientMessage(playerid, COLOR_GREY, "You already have an active backup request.");
  29321. }
  29322. }
  29323. else
  29324. {
  29325. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST.");
  29326. }
  29327. }
  29328. return 1;
  29329. }
  29330. if(strcmp(cmd, "/deployspikes", true) == 0)
  29331. {
  29332. if(!IsACop(playerid) && !IsANG(playerid))
  29333. {
  29334. return SendClientMessage(playerid,COLOR_GREY,"You are not a Cop / FBI / SAST / NG.");
  29335. }
  29336. if(PlayerInfo[playerid][pMember] == 1)
  29337. {
  29338. if(PlayerInfo[playerid][pRank] < 4)
  29339. {
  29340. return SendClientMessage(playerid,COLOR_GREY,"Your rank is too low to be deploying spike strips.");
  29341. }
  29342. }
  29343. else
  29344. {
  29345. if(PlayerInfo[playerid][pRank] < 5)
  29346. {
  29347. return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
  29348. }
  29349. }
  29350. if(IsPlayerInAnyVehicle(playerid))
  29351. {
  29352. return SendClientMessage(playerid,COLOR_GREY," You cannot place a spike strip while inside a vehicle !");
  29353. }
  29354. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  29355. GetPlayerPos(playerid,plocx,plocy,plocz);
  29356. GetPlayerFacingAngle(playerid,ploca);
  29357. new location[MAX_ZONE_NAME];
  29358. GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  29359. new Float:x, Float:y, Float:z, Float:angle;
  29360. GetPlayerFacingAngle(playerid, angle);
  29361. GetPlayerPos(playerid, x, y, z);
  29362. CreateStrip(x, y, z, angle);
  29363. format(string, sizeof(string), "HQ: %s %s has placed a spike strip at %s", GetPlayerRank(playerid),PlayerName(playerid), location);
  29364. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  29365. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  29366. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  29367. SendRadioMessage(5, TEAM_BLUE_COLOR, string);
  29368. ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0); // Plant bomb
  29369. /*GetPlayerFacingAngle(playerid,ploca);
  29370. CreateStrip(plocx,plocy,plocz,ploca);*/
  29371. return 1;
  29372. }
  29373. if(strcmp(cmd, "/deletespike", true) == 0)
  29374. {
  29375. if(!IsACop(playerid) && !IsANG(playerid))
  29376. {
  29377. return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
  29378. }
  29379. if(PlayerInfo[playerid][pMember] == 1)
  29380. {
  29381. if(PlayerInfo[playerid][pRank] < 4)
  29382. {
  29383. return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
  29384. }
  29385. }
  29386. else
  29387. {
  29388. if(PlayerInfo[playerid][pRank] < 5)
  29389. {
  29390. return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
  29391. }
  29392. }
  29393. DeleteClosestStrip(playerid);
  29394. return 1;
  29395. }
  29396. if(strcmp(cmd, "/deletespikes", true) == 0)
  29397. {
  29398. if(!IsACop(playerid) && !IsANG(playerid))
  29399. {
  29400. return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
  29401. }
  29402. if(PlayerInfo[playerid][pMember] == 1)
  29403. {
  29404. if(PlayerInfo[playerid][pRank] < 4)
  29405. {
  29406. return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
  29407. }
  29408. }
  29409. else
  29410. {
  29411. if(PlayerInfo[playerid][pRank] < 5)
  29412. {
  29413. return SendClientMessage(playerid,COLOR_GREY," Your rank is too low to be removing spike strips !");
  29414. }
  29415. }
  29416. format(string, sizeof(string), "HQ: %s %s has deleted all spike strips.", GetPlayerRank(playerid),PlayerName(playerid));
  29417. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  29418. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  29419. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  29420. SendRadioMessage(5, TEAM_BLUE_COLOR, string);
  29421. DeleteAllStrip();
  29422. return 1;
  29423. }
  29424. if(strcmp(cmd, "/duty", true) == 0)
  29425. {
  29426. if(IsPlayerConnected(playerid))
  29427. {
  29428. if(PlayerInfo[playerid][pJob] == 2)
  29429. {
  29430. if(JobDuty[playerid] == 1)
  29431. {
  29432. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Lawyer Job and will not receive calls anymore.");
  29433. JobDuty[playerid] = 0;
  29434. Lawyers -= 1;
  29435. }
  29436. else
  29437. {
  29438. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Lawyer Job and will receive calls from people in need.");
  29439. JobDuty[playerid] = 1;
  29440. Lawyers += 1;
  29441. }
  29442. }
  29443. else if(PlayerInfo[playerid][pJob] == 7)
  29444. {
  29445. if(JobDuty[playerid] == 1)
  29446. {
  29447. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Mechanic Job and will not receive calls anymore.");
  29448. JobDuty[playerid] = 0;
  29449. Mechanics -= 1;
  29450. }
  29451. else
  29452. {
  29453. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Mechanic Job and will receive calls from people in need.");
  29454. JobDuty[playerid] = 1;
  29455. Mechanics += 1;
  29456. }
  29457. }
  29458. else if(IsPlayerInRangeOfPoint(playerid,3,375.5890,180.6613,1014.1875) && PlayerInfo[playerid][pMember] == 6)
  29459. {
  29460. if(PlayerInfo[playerid][pOnDuty] == 0) //if player is off duty, set them them on
  29461. {
  29462. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  29463. format(string, sizeof(string), "* %s takes a Gun from their locker.", sendername);
  29464. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  29465. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, TCOLOR_DARKGREY); }
  29466. GivePlayerWeapon(playerid, 24, 999999); PlayerInfo[playerid][pGun2] = 24; //deagle
  29467. SetPlayerArmour(playerid, 100.0);
  29468. PlayerInfo[playerid][pOnDuty] = 1;
  29469. TogglePlayerControllable(playerid,1);
  29470. }
  29471. else if(PlayerInfo[playerid][pOnDuty] == 1) //if player is on duty, set them off
  29472. {
  29473. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  29474. format(string, sizeof(string), "* %s places a Gun in their locker.", sendername);
  29475. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  29476. SetPlayerColor(playerid, TCOLOR_WHITE);
  29477. PlayerInfo[playerid][pGun2] = 0;
  29478. ResetPlayerWeapons(playerid);
  29479. SetPlayerArmour(playerid, 0.0);
  29480. PlayerInfo[playerid][pOnDuty] = 0;
  29481. TogglePlayerControllable(playerid,1);
  29482. }
  29483. }
  29484. }
  29485. return 1;
  29486. }
  29487. if(strcmp(cmd, "/tow", true) == 0)
  29488. {
  29489. if(IsPlayerConnected(playerid))
  29490. {
  29491. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
  29492. {
  29493. if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 2 || PlayerInfo[playerid][pJob] == 7)
  29494. {
  29495. new Float:ppX,Float:ppY,Float:ppZ;
  29496. GetPlayerPos(playerid,ppX,ppY,ppZ);
  29497. new Float:vvX,Float:vvY,Float:vvZ;
  29498. new Found=0;
  29499. new vid=0;
  29500. while((vid<MAX_VEHICLES)&&(!Found))
  29501. {
  29502. vid++;
  29503. GetVehiclePos(vid,vvX,vvY,vvZ);
  29504. if ((floatabs(ppX-vvX)<7.0)&&(floatabs(ppY-vvY)<7.0)&&(floatabs(ppZ-vvZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
  29505. {
  29506. Found=1;
  29507. if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
  29508. DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
  29509. else
  29510. AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
  29511. }
  29512. }
  29513. if (!Found)
  29514. SendClientMessage(playerid,COLOR_GREY," There is no car in range !");
  29515. }
  29516. else
  29517. {
  29518. SendClientMessage(playerid, COLOR_GREY, "You have to be a mechanic or be apart of the LSPD.");
  29519. return 1;
  29520. }
  29521. }
  29522. }
  29523. else
  29524. SendClientMessage(playerid, COLOR_GREY, "You have to be in a Towtruck!");
  29525. return 1;
  29526. }
  29527. //lspd menu
  29528. if(strcmp(cmdtext, "/lspd", true) == 0)
  29529. {
  29530. if(IsPlayerConnected(playerid))
  29531. {
  29532. if(IsACop(playerid))
  29533. {
  29534. if(IsPlayerInRangeOfPoint(playerid,3,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid,3,327.2337,308.3763,999.1484))
  29535. {
  29536. DisplayDialogForPlayer(playerid, 10);
  29537. }
  29538. else
  29539. {
  29540. SendClientMessage(playerid, COLOR_GRAD2, "You are not in your locker room.");
  29541. return 1;
  29542. }
  29543. }
  29544. else
  29545. {
  29546. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop.");
  29547. return 1;
  29548. }
  29549. }
  29550. return 1;
  29551. }
  29552. //fbi menu
  29553. if(strcmp(cmdtext, "/fbi", true) == 0)
  29554. {
  29555. if(IsPlayerConnected(playerid))
  29556. {
  29557. if(IsACop(playerid))
  29558. {
  29559. if(IsPlayerInRangeOfPoint(playerid,3,266.1936,108.6017,1004.6172))
  29560. {
  29561. DisplayDialogForPlayer(playerid, 10);
  29562. ShowPlayerDialog(playerid, FBI1, DIALOG_STYLE_LIST, "FBI","Duty\nUndercover\nChange Uniform\nArmory\nTACTICAL\nClear Suspect\nRelease Suspect","Select","Cancel");
  29563. }
  29564. else
  29565. {
  29566. SendClientMessage(playerid, COLOR_GRAD2, "* You are not in your locker room !");
  29567. return 1;
  29568. }
  29569. }
  29570. else
  29571. {
  29572. SendClientMessage(playerid, COLOR_GREY, "* You are not an Agent !");
  29573. return 1;
  29574. }
  29575. }
  29576. return 1;
  29577. }
  29578. //lsfmd menu
  29579. if(strcmp(cmdtext, "/lsfmd", true) == 0)
  29580. {
  29581. if(IsPlayerConnected(playerid))
  29582. {
  29583. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  29584. {
  29585. if(IsPlayerInRangeOfPoint(playerid,3,355.1422,164.2477,1019.9844))
  29586. {
  29587. ShowPlayerDialog(playerid,67,DIALOG_STYLE_LIST,"LSFMD","Duty\nChange Uniform\nGear\n","Select","Cancel");
  29588. }
  29589. else
  29590. {
  29591. SendClientMessage(playerid, COLOR_GRAD2, " You are not in your first aid room !");
  29592. return 1;
  29593. }
  29594. }
  29595. else
  29596. {
  29597. SendClientMessage(playerid, COLOR_GREY, " You are not a Paramedic / Fireman !");
  29598. return 1;
  29599. }
  29600. }
  29601. return 1;
  29602. }
  29603. //ng menu
  29604. if(strcmp(cmdtext, "/ng", true) == 0)
  29605. {
  29606. if(IsPlayerConnected(playerid))
  29607. {
  29608. if(IsANG(playerid))
  29609. {
  29610. if(IsPlayerInRangeOfPoint(playerid,1.5,-219.0950,1406.0631,27.7734))
  29611. {
  29612. DisplayDialogForPlayer(playerid, 8);
  29613. }
  29614. else
  29615. {
  29616. SendClientMessage(playerid, COLOR_GRAD2, " You are not in your locker room !");
  29617. return 1;
  29618. }
  29619. }
  29620. else
  29621. {
  29622. SendClientMessage(playerid, COLOR_GREY, " You are not a National Guard !");
  29623. return 1;
  29624. }
  29625. }
  29626. return 1;
  29627. }
  29628. if(strcmp(cmd, "/camera", true) == 0)
  29629. {
  29630. if(IsPlayerConnected(playerid))
  29631. {
  29632. if(IsPlayerInRangeOfPoint(playerid,2.0,211.6799,1812.2871,21.8594) || IsPlayerInRangeOfPoint(playerid,1.0,450.7513,-88.6526,1174.3534) || IsPlayerInRangeOfPoint(playerid,1.0,1816.1584,-1562.8831,1636.9736))
  29633. {
  29634. new PrisonCam[256];
  29635. PrisonCam = strtok(cmdtext, idx);
  29636. tmp = strtok(cmdtext, idx);
  29637. if(!strlen(PrisonCam))
  29638. {
  29639. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /camera [1-7]{7DAEFF}");
  29640. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /camera [off]{7DAEFF}");
  29641. return 1;
  29642. }
  29643. else if(strcmp(PrisonCam,"1",true) == 0)
  29644. {
  29645. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 1.");
  29646. SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
  29647. SetPlayerCameraPos(playerid, 159.2888,1931.1571,31.8069);
  29648. SetPlayerCameraLookAt(playerid, 134.1327,1918.2794,19.0090);
  29649. TogglePlayerControllable(playerid, 0);
  29650. SetPlayerInterior(playerid, 0);
  29651. PlayerInfo[playerid][pInt] = 0;
  29652. }
  29653. else if(strcmp(PrisonCam,"2",true) == 0)
  29654. {
  29655. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 2.");
  29656. SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
  29657. SetPlayerCameraPos(playerid,263.8218,1893.5532,31.8306);
  29658. SetPlayerCameraLookAt(playerid, 225.8632,1879.5031,17.6406);
  29659. TogglePlayerControllable(playerid, 0);
  29660. SetPlayerInterior(playerid, 0);
  29661. PlayerInfo[playerid][pInt] = 0;
  29662. }
  29663. else if(strcmp(PrisonCam,"3",true) == 0)
  29664. {
  29665. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 3.");
  29666. SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
  29667. SetPlayerCameraPos(playerid, 168.5983,1848.0315,31.8531);
  29668. SetPlayerCameraLookAt(playerid, 207.7683,1851.8423,19.6529);
  29669. TogglePlayerControllable(playerid, 0);
  29670. SetPlayerInterior(playerid, 0);
  29671. PlayerInfo[playerid][pInt] = 0;
  29672. }
  29673. else if(strcmp(PrisonCam,"4",true) == 0)
  29674. {
  29675. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 4.");
  29676. SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
  29677. SetPlayerCameraPos(playerid, 202.1480,1873.5778,15.4752);
  29678. SetPlayerCameraLookAt(playerid, 214.8778,1863.3593,13.1406);
  29679. TogglePlayerControllable(playerid, 0);
  29680. SetPlayerInterior(playerid, 0);
  29681. PlayerInfo[playerid][pInt] = 0;
  29682. }
  29683. else if(strcmp(PrisonCam,"5",true) == 0)
  29684. {
  29685. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 5.");
  29686. SetPlayerPos(playerid, 1816.1584,-1562.8831,1636.9736);
  29687. SetPlayerCameraPos(playerid, 1767.4937,-1570.1757,1644.8822);
  29688. SetPlayerCameraLookAt(playerid, 1789.7747,-1570.7231,1636.9736);
  29689. TogglePlayerControllable(playerid, 0);
  29690. SetPlayerInterior(playerid, 1);
  29691. PlayerInfo[playerid][pInt] = 1;
  29692. }
  29693. else if(strcmp(PrisonCam,"6",true) == 0)
  29694. {
  29695. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 6.");
  29696. SetPlayerPos(playerid, 211.6332, 1812.2885, 21.8594);
  29697. SetPlayerCameraPos(playerid, 265.4656,1862.6543,11.4501);
  29698. SetPlayerCameraLookAt(playerid, 272.2814,1858.9218,8.7578);
  29699. TogglePlayerControllable(playerid, 0);
  29700. SetPlayerInterior(playerid, 0);
  29701. PlayerInfo[playerid][pInt] = 0;
  29702. }
  29703. else if(strcmp(PrisonCam,"7",true) == 0)
  29704. {
  29705. SendClientMessage(playerid, COLOR_GREEN, " Switched to cam 7.");
  29706. SetPlayerPos(playerid, 450.7513,-88.6526,1174.3534);
  29707. SetPlayerCameraPos(playerid, 460.1160,-91.8375,1000.8726);
  29708. SetPlayerCameraLookAt(playerid, 454.0889,-88.0101,999.5547);
  29709. TogglePlayerControllable(playerid, 0);
  29710. SetPlayerInterior(playerid, 4);
  29711. PlayerInfo[playerid][pInt] = 4;
  29712. }
  29713. else if(strcmp(PrisonCam,"off",true) == 0)
  29714. {
  29715. SetCameraBehindPlayer(playerid);
  29716. SetPlayerInterior(playerid, 0);
  29717. PlayerInfo[playerid][pInt] = 0;
  29718. TogglePlayerControllable(playerid, 1);
  29719. SetPlayerPos(playerid, 211.6332,1812.2885,21.8594);
  29720. SendClientMessage(playerid, COLOR_GREEN, " You are no longer watching the cameras.");
  29721. }
  29722. return 1;
  29723. }
  29724. else
  29725. {
  29726. SendClientMessage(playerid, COLOR_GRAD2, " You are not at the control center !");
  29727. }
  29728. }
  29729. else
  29730. {
  29731. SendClientMessage(playerid, COLOR_GRAD2, "You are not logged in !");
  29732. }
  29733. }
  29734. /*
  29735. if(strcmp(cmd, "/setgunskill", true) == 0)
  29736. {
  29737. if(IsPlayerConnected(playerid))
  29738. {
  29739. tmp = strtok(cmdtext, idx);
  29740. if(!strlen(tmp))
  29741. {
  29742. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29743. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29744. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29745. return 1;
  29746. }
  29747. new playa;
  29748. playa = ReturnUser(tmp);
  29749. tmp = strtok(cmdtext, idx);
  29750. if(!strlen(tmp))
  29751. {
  29752. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29753. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29754. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29755. return 1;
  29756. }
  29757. if(PlayerInfo[playerid][pAdmin] >= 4)
  29758. {
  29759. if(IsPlayerConnected(playa))
  29760. {
  29761. if(playa != INVALID_PLAYER_ID)
  29762. {
  29763. if(strcmp(tmp,"pistol",true) == 0)
  29764. {
  29765. tmp = strtok(cmdtext, idx);
  29766. if(!strlen(tmp))
  29767. {
  29768. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29769. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29770. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29771. return 1;
  29772. }
  29773. new amount;
  29774. amount = strvalEx(tmp);
  29775. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29776. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, amount);
  29777. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29778. format(string, sizeof(string), " You have set %s's Pistol Skill to %d !", giveplayer, amount);
  29779. SendClientMessage(playerid, COLOR_GREY, string);
  29780. return 1;
  29781. }
  29782. if(strcmp(tmp,"sdpistol",true) == 0)
  29783. {
  29784. tmp = strtok(cmdtext, idx);
  29785. if(!strlen(tmp))
  29786. {
  29787. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29788. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29789. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29790. return 1;
  29791. }
  29792. new amount;
  29793. amount = strvalEx(tmp);
  29794. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29795. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, amount);
  29796. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29797. format(string, sizeof(string), " You have set %s's SDPistol Skill to %d !", giveplayer, amount);
  29798. SendClientMessage(playerid, COLOR_GREY, string);
  29799. return 1;
  29800. }
  29801. if(strcmp(tmp,"deagle",true) == 0)
  29802. {
  29803. tmp = strtok(cmdtext, idx);
  29804. if(!strlen(tmp))
  29805. {
  29806. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29807. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29808. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29809. return 1;
  29810. }
  29811. new amount;
  29812. amount = strvalEx(tmp);
  29813. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29814. SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, amount);
  29815. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29816. format(string, sizeof(string), " You have set %s's Deagle Skill to %d !", giveplayer, amount);
  29817. SendClientMessage(playerid, COLOR_GREY, string);
  29818. return 1;
  29819. }
  29820. if(strcmp(tmp,"shotgun",true) == 0)
  29821. {
  29822. tmp = strtok(cmdtext, idx);
  29823. if(!strlen(tmp))
  29824. {
  29825. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29826. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29827. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29828. return 1;
  29829. }
  29830. new amount;
  29831. amount = strvalEx(tmp);
  29832. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29833. SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, amount);
  29834. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29835. format(string, sizeof(string), " You have set %s's Shotgun Skill to %d !", giveplayer, amount);
  29836. SendClientMessage(playerid, COLOR_GREY, string);
  29837. return 1;
  29838. }
  29839. if(strcmp(tmp,"sawnoff",true) == 0)
  29840. {
  29841. tmp = strtok(cmdtext, idx);
  29842. if(!strlen(tmp))
  29843. {
  29844. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29845. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29846. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29847. return 1;
  29848. }
  29849. new amount;
  29850. amount = strvalEx(tmp);
  29851. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29852. SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, amount);
  29853. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29854. format(string, sizeof(string), " You have set %s's Sawnoff Skill to %d !", giveplayer, amount);
  29855. SendClientMessage(playerid, COLOR_GREY, string);
  29856. return 1;
  29857. }
  29858. if(strcmp(tmp,"spas12",true) == 0)
  29859. {
  29860. tmp = strtok(cmdtext, idx);
  29861. if(!strlen(tmp))
  29862. {
  29863. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29864. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29865. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29866. return 1;
  29867. }
  29868. new amount;
  29869. amount = strvalEx(tmp);
  29870. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29871. SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, amount);
  29872. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29873. format(string, sizeof(string), " You have set %s's SPAS12 Skill to %d !", giveplayer, amount);
  29874. SendClientMessage(playerid, COLOR_GREY, string);
  29875. return 1;
  29876. }
  29877. if(strcmp(tmp,"microsmg",true) == 0)
  29878. {
  29879. tmp = strtok(cmdtext, idx);
  29880. if(!strlen(tmp))
  29881. {
  29882. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29883. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29884. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29885. return 1;
  29886. }
  29887. new amount;
  29888. amount = strvalEx(tmp);
  29889. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29890. SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, amount);
  29891. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29892. format(string, sizeof(string), " You have set %s's MicroSMG Skill to %d !", giveplayer, amount);
  29893. SendClientMessage(playerid, COLOR_GREY, string);
  29894. return 1;
  29895. }
  29896. if(strcmp(tmp,"mp5",true) == 0)
  29897. {
  29898. tmp = strtok(cmdtext, idx);
  29899. if(!strlen(tmp))
  29900. {
  29901. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29902. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29903. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29904. return 1;
  29905. }
  29906. new amount;
  29907. amount = strvalEx(tmp);
  29908. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29909. SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, amount);
  29910. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29911. format(string, sizeof(string), " You have set %s's MP5 Skill to %d !", giveplayer, amount);
  29912. SendClientMessage(playerid, COLOR_GREY, string);
  29913. return 1;
  29914. }
  29915. if(strcmp(tmp,"ak47",true) == 0)
  29916. {
  29917. tmp = strtok(cmdtext, idx);
  29918. if(!strlen(tmp))
  29919. {
  29920. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29921. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29922. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29923. return 1;
  29924. }
  29925. new amount;
  29926. amount = strvalEx(tmp);
  29927. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29928. SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, amount);
  29929. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29930. format(string, sizeof(string), " You have set %s's AK47 Skill to %d !", giveplayer, amount);
  29931. SendClientMessage(playerid, COLOR_GREY, string);
  29932. return 1;
  29933. }
  29934. if(strcmp(tmp,"m4",true) == 0)
  29935. {
  29936. tmp = strtok(cmdtext, idx);
  29937. if(!strlen(tmp))
  29938. {
  29939. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29940. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29941. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29942. return 1;
  29943. }
  29944. new amount;
  29945. amount = strvalEx(tmp);
  29946. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29947. SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, amount);
  29948. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29949. format(string, sizeof(string), " You have set %s's M4 Skill to %d !", giveplayer, amount);
  29950. SendClientMessage(playerid, COLOR_GREY, string);
  29951. return 1;
  29952. }
  29953. if(strcmp(tmp,"sniper",true) == 0)
  29954. {
  29955. tmp = strtok(cmdtext, idx);
  29956. if(!strlen(tmp))
  29957. {
  29958. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setgunskill [playerid/PartOfName] [name] [amount]");
  29959. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pistol, SDPistol, Deagle, Shotgun, Sawnoff, SPAS12");
  29960. SendClientMessage(playerid, COLOR_GRAD2, "Available names: MicroSMG, MP5, AK47, M4, Sniper");
  29961. return 1;
  29962. }
  29963. new amount;
  29964. amount = strvalEx(tmp);
  29965. if(amount < 0 || amount > 999) { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 999 !"); return 1; }
  29966. SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, amount);
  29967. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  29968. format(string, sizeof(string), " You have set %s's Sniper Skill to %d !", giveplayer, amount);
  29969. SendClientMessage(playerid, COLOR_GREY, string);
  29970. return 1;
  29971. }
  29972. }
  29973. }
  29974. }
  29975. else
  29976. {
  29977. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  29978. }
  29979. }
  29980. return 1;
  29981. }
  29982. */
  29983. if(strcmp(cmd, "/setfightstyle", true) == 0)
  29984. {
  29985. if(IsPlayerConnected(playerid))
  29986. {
  29987. tmp = strtok(cmdtext, idx);
  29988. if(!strlen(tmp))
  29989. {
  29990. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFF} /setfightstyle [playerid/PartOfName] [1-6]");
  29991. return 1;
  29992. }
  29993. new playa;
  29994. new fstyle;
  29995. playa = ReturnUser(tmp);
  29996. tmp = strtok(cmdtext, idx);
  29997. if(!strlen(tmp))
  29998. {
  29999. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setfightstyle [playerid/PartOfName] [1-6]");
  30000. return 1;
  30001. }
  30002. fstyle = strvalEx(tmp);
  30003. if(fstyle < 1 || fstyle > 6) { SendClientMessage(playerid, COLOR_GREY, "Fighting Style can't be below 1 or above 6 !"); return 1; }
  30004. if(PlayerInfo[playerid][pAdmin] >= 4)
  30005. {
  30006. if(IsPlayerConnected(playa))
  30007. {
  30008. if(playa != INVALID_PLAYER_ID)
  30009. {
  30010. new fstring[16];
  30011. if(fstyle == 1)
  30012. {
  30013. SetPlayerFightingStyle(playa, FIGHT_STYLE_NORMAL);
  30014. PlayerInfo[playa][pFightingStyle] = 4;
  30015. fstring = "NORMAL";
  30016. }
  30017. if(fstyle == 2)
  30018. {
  30019. SetPlayerFightingStyle(playa, FIGHT_STYLE_BOXING);
  30020. PlayerInfo[playa][pFightingStyle] = 5;
  30021. fstring = "BOXING";
  30022. }
  30023. if(fstyle == 3)
  30024. {
  30025. SetPlayerFightingStyle(playa, FIGHT_STYLE_KUNGFU);
  30026. PlayerInfo[playa][pFightingStyle] = 6;
  30027. fstring = "KUNG FU";
  30028. }
  30029. if(fstyle == 4)
  30030. {
  30031. SetPlayerFightingStyle(playa, FIGHT_STYLE_KNEEHEAD);
  30032. PlayerInfo[playa][pFightingStyle] = 7;
  30033. fstring = "KNEEHEAD";
  30034. }
  30035. if(fstyle == 5)
  30036. {
  30037. SetPlayerFightingStyle(playa, FIGHT_STYLE_GRABKICK);
  30038. PlayerInfo[playa][pFightingStyle] = 15;
  30039. fstring = "GRABKICK";
  30040. }
  30041. if(fstyle == 6)
  30042. {
  30043. SetPlayerFightingStyle(playa, FIGHT_STYLE_ELBOW);
  30044. PlayerInfo[playa][pFightingStyle] = 26;
  30045. fstring = "ELBOW";
  30046. }
  30047. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  30048. format(string, sizeof(string), " You have set %s's Fighting Style to %s !", giveplayer, fstring);
  30049. SendClientMessage(playerid, COLOR_GREY, string);
  30050.  
  30051. }
  30052. }
  30053. }
  30054. else
  30055. {
  30056. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  30057. }
  30058. }
  30059. return 1;
  30060. }
  30061. if(strcmp(cmd, "/setcrime", true) == 0)
  30062. {
  30063. if(IsPlayerConnected(playerid))
  30064. {
  30065. tmp = strtok(cmdtext, idx);
  30066. if(!strlen(tmp))
  30067. {
  30068. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setcrime [playerid/PartOfName] [3-22]{7DAEFF}");
  30069. return 1;
  30070. }
  30071. new playa;
  30072. new crime;
  30073. playa = ReturnUser(tmp);
  30074. tmp = strtok(cmdtext, idx);
  30075. if(!strlen(tmp))
  30076. {
  30077. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setcrime [playerid/PartOfName] [3-22]{7DAEFF}");
  30078. return 1;
  30079. }
  30080. crime = strvalEx(tmp);
  30081. if(PlayerInfo[playerid][pAdmin] >= 4)
  30082. {
  30083. if(IsPlayerConnected(playa))
  30084. {
  30085. if(playa != INVALID_PLAYER_ID)
  30086. {
  30087. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  30088. PlayCrimeReportForPlayer(playerid,giveplayerid,crime);
  30089. format(string, sizeof(string), " You have set %s's crime report to %d !", giveplayer,crime);
  30090. SendClientMessage(playerid, COLOR_GREY, string);
  30091. }
  30092. }
  30093. }
  30094. else
  30095. {
  30096. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  30097. }
  30098. }
  30099. return 1;
  30100. }
  30101. if(strcmp(cmdtext, "/pickupbomb", true) == 0)
  30102. {
  30103. if(IsPlayerConnected(playerid))
  30104. {
  30105. if(BombID[playerid] != -1)
  30106. {
  30107. new Float:X,Float:Y,Float:Z;
  30108. GetObjectPos(BombID[playerid],X,Y,Z);
  30109. if(IsPlayerInAnyVehicle(playerid))
  30110. {
  30111. BombInCar[playerid] = 0;
  30112. PlayerInfo[playerid][pBombs]++;
  30113. HoldingDetonator[playerid] = 0;
  30114. TakeWeapon(playerid,40);
  30115. SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have disarmed the C4.");
  30116. }
  30117. else if(IsPlayerInRangeOfPoint(playerid,1.5,X,Y,Z))
  30118. {
  30119. SetPlayerFacingObject(playerid,BombID[playerid]);
  30120. ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.0,0,0,0,0,0);
  30121. DestroyDynamicObject(BombID[playerid]);
  30122. BombID[playerid] = -1;
  30123. PlayerInfo[playerid][pBombs]++;
  30124. HoldingDetonator[playerid] = 0;
  30125. TakeWeapon(playerid,40);
  30126. SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have disarmed the C4.");
  30127. }
  30128. }
  30129. else
  30130. {
  30131. SendClientMessage(playerid, COLOR_GREY, " You haven't planted a C4 yet !");
  30132. }
  30133. }
  30134. return 1;
  30135. }
  30136. if(strcmp(cmdtext, "/plantbomb", true) == 0)
  30137. {
  30138. if(IsPlayerConnected(playerid))
  30139. {
  30140. if(PlayerInfo[playerid][pBombs] == 0)
  30141. {
  30142. SendClientMessage(playerid,COLOR_GRAD2," You don't have any C4 Explosives !");
  30143. return 1;
  30144. }
  30145. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0)
  30146. {
  30147. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  30148. return 1;
  30149. }
  30150. if(IsPlayerInAnyVehicle(playerid))
  30151. {
  30152. BombInCar[playerid] = 1;
  30153. BombID[playerid] = GetPlayerVehicleID(playerid);
  30154. }
  30155. else
  30156. {
  30157. new Float:X,Float:Y,Float:Z,Float:A;
  30158. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  30159. GetPlayerPos(playerid,X,Y,Z);
  30160. GetPlayerFacingAngle(playerid, A);
  30161. DestroyDynamicObject(BombID[playerid]);
  30162. X += (1 * floatsin(-A, degrees));
  30163. Y += (1 * floatcos(-A, degrees));
  30164. BombID[playerid] = CreateDynamicObject(1654, X, Y, Z-0.9, 0, 90, 0);
  30165. BombInCar[playerid] = 0;
  30166. }
  30167. ResetPlayerWeapons(playerid);
  30168. GivePlayerGun(playerid, 40); //detonator
  30169. PlayerInfo[playerid][pBombs]--;
  30170. SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have placed the C4, the device is now armed.");
  30171. return 1;
  30172. }
  30173. return 1;
  30174. }
  30175. if(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
  30176. {
  30177. if(IsPlayerConnected(playerid))
  30178. {
  30179. new str[160];
  30180. GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  30181. for (new i = 0; i < MAX_PLAYER_NAME; i++)
  30182. if (str[i] == '_')
  30183. str[i] = ' ';
  30184. if(!(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pMember] <= 7))
  30185. {
  30186. SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Team !");
  30187. return 1;
  30188. }
  30189. new length = strlen(cmdtext);
  30190. while ((idx < length) && (cmdtext[idx] <= ' '))
  30191. {
  30192. idx++;
  30193. }
  30194. new offset = idx;
  30195. new result[256];
  30196. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  30197. {
  30198. result[idx - offset] = cmdtext[idx];
  30199. idx++;
  30200. }
  30201. result[idx - offset] = EOS;
  30202. if(!strlen(result))
  30203. {
  30204. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/d)epartments [department chat]{7DAEFF}");
  30205. return 1;
  30206. }
  30207. format(string, sizeof(string), "* [%s] %s %s: %s, over.", GetPlayerFactionName(playerid),GetPlayerRank(playerid),str, result);
  30208. SendFamilyMessage(1, COLOR_DCHAT, string);
  30209. SendFamilyMessage(2, COLOR_DCHAT, string);
  30210. SendFamilyMessage(3, COLOR_DCHAT, string);
  30211. SendFamilyMessage(4, COLOR_DCHAT, string);
  30212. SendFamilyMessage(5, COLOR_DCHAT, string);
  30213. SendFamilyMessage(6, COLOR_DCHAT, string);
  30214. SendFamilyMessage(7, COLOR_DCHAT, string);
  30215. format(string, sizeof(string), "[Radio] %s, over.", result);
  30216. SetPlayerChatBubble(playerid,string,COLOR_WHITE,30.0,10000);
  30217. return 1;
  30218. }
  30219. return 1;
  30220. }
  30221. if(strcmp(cmd, "/profile", true) == 0)
  30222. {
  30223. if(IsPlayerConnected(playerid))
  30224. {
  30225. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  30226. {
  30227. tmp = strtok(cmdtext, idx);
  30228. if(!strlen(tmp))
  30229. {
  30230. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /profile [playerid/PartOfName]{7DAEFF}");
  30231. return 1;
  30232. }
  30233. giveplayerid = ReturnUser(tmp);
  30234. if(IsPlayerConnected(giveplayerid))
  30235. {
  30236. if(giveplayerid != INVALID_PLAYER_ID)
  30237. {
  30238. ShowProfile(playerid,giveplayerid);
  30239. }
  30240. }
  30241. else
  30242. {
  30243. SendClientMessage(playerid, COLOR_GREY, "Invalid Player ID.");
  30244. return 1;
  30245. }
  30246. }
  30247. else
  30248. {
  30249. SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
  30250. return 1;
  30251. }
  30252. }
  30253. return 1;
  30254. }
  30255. if(strcmp(cmd, "/mdc", true) == 0) //DIALOG MDC
  30256. {
  30257. if(IsPlayerConnected(playerid))
  30258. {
  30259. if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
  30260. {
  30261. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / Prison Guard.");
  30262. return 1;
  30263. }
  30264. new mdcstring[1024];
  30265. new location[MAX_ZONE_NAME];
  30266. new tmpcar = GetPlayerVehicleID(playerid);
  30267. tmp = strtok(cmdtext, idx);
  30268. if(!strlen(tmp))
  30269. {
  30270. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /mdc [playerid/PartOfName]{7DAEFF}");
  30271. return 1;
  30272. }
  30273. giveplayerid = ReturnUser(tmp);
  30274. if(CarInfo[tmpcar][tFaction] == 1 || CarInfo[tmpcar][tFaction] == 2 || IsPlayerInRangeOfPoint(playerid,5.0,253.9280,69.6094,1003.6406))
  30275. {
  30276. if(IsPlayerConnected(giveplayerid))
  30277. {
  30278. if(giveplayerid != INVALID_PLAYER_ID)
  30279. {
  30280. GetPlayerName(giveplayerid, sendername, sizeof(sendername));
  30281.  
  30282. GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  30283. new wanted = 0,hashome = 0,crimes = 0;
  30284. if(PlayerInfo[giveplayerid][pWantedLevel] > 0) wanted = 1;
  30285. if(PlayerInfo[giveplayerid][pHouseKey] < 999) hashome = 1;
  30286. if(PlayerInfo[giveplayerid][pCrimes] > 0) crimes = 1;
  30287.  
  30288. if(wanted == 1 && hashome == 0)
  30289. {
  30290. format(mdcstring, sizeof(mdcstring), "Name: %s\nReporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
  30291. sendername,
  30292. PlayerInfo[giveplayerid][pCrimeReporter0],PlayerInfo[giveplayerid][pCrimeDate0],
  30293. PlayerInfo[giveplayerid][pCrimeReporter1],PlayerInfo[giveplayerid][pCrimeDate1],
  30294. PlayerInfo[giveplayerid][pCrimeReporter2],PlayerInfo[giveplayerid][pCrimeDate2],
  30295. PlayerInfo[giveplayerid][pCrimeReporter3],PlayerInfo[giveplayerid][pCrimeDate3],
  30296. PlayerInfo[giveplayerid][pCrimeReporter4],PlayerInfo[giveplayerid][pCrimeDate4],
  30297. PlayerInfo[giveplayerid][pCrimeReporter5],PlayerInfo[giveplayerid][pCrimeDate5],
  30298. PlayerInfo[giveplayerid][pCrimes],
  30299. PlayerInfo[giveplayerid][pArrested]);
  30300. }
  30301. if(wanted == 1 && hashome == 1)
  30302. {
  30303. Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
  30304. format(mdcstring, sizeof(mdcstring), "Name: %s\nReporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\n - %s | Reporter: %s | Date: %s\nHouse Address: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
  30305. sendername,
  30306. PlayerInfo[giveplayerid][pCrimeReporter0],PlayerInfo[giveplayerid][pCrimeDate0],
  30307. PlayerInfo[giveplayerid][pCrimeReporter1],PlayerInfo[giveplayerid][pCrimeDate1],
  30308. PlayerInfo[giveplayerid][pCrimeReporter2],PlayerInfo[giveplayerid][pCrimeDate2],
  30309. PlayerInfo[giveplayerid][pCrimeReporter3],PlayerInfo[giveplayerid][pCrimeDate3],
  30310. PlayerInfo[giveplayerid][pCrimeReporter4],PlayerInfo[giveplayerid][pCrimeDate4],
  30311. PlayerInfo[giveplayerid][pCrimeReporter5],PlayerInfo[giveplayerid][pCrimeDate5],
  30312. location,
  30313. PlayerInfo[giveplayerid][pCrimes],
  30314. PlayerInfo[giveplayerid][pArrested]);
  30315. }
  30316. if(wanted == 0 && hashome == 0 && crimes == 1)
  30317. {
  30318. format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
  30319. sendername,
  30320. PlayerInfo[giveplayerid][pCrimes],
  30321. PlayerInfo[giveplayerid][pArrested]);
  30322. }
  30323. if(wanted == 0 && hashome == 1 && crimes == 0)
  30324. {
  30325. Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
  30326. format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nHouse Address: %s\nCriminal Record: No",
  30327. sendername,
  30328. location);
  30329. }
  30330. if(wanted == 0 && hashome == 0 && crimes == 0)
  30331. {
  30332. format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nCriminal Record: No",
  30333. sendername);
  30334. }
  30335. if(wanted == 0 && hashome == 1 && crimes == 1)
  30336. {
  30337. Get2DZone(location, MAX_ZONE_NAME, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]);
  30338. format(mdcstring, sizeof(mdcstring), "Name: %s\nWanted: No\nHouse Address: %s\nCriminal Record: Yes\nCrimes Commited: %d\nTimes Arrested: %d",
  30339. sendername,
  30340. location,
  30341. PlayerInfo[giveplayerid][pCrimes],
  30342. PlayerInfo[giveplayerid][pArrested]);
  30343. }
  30344. ShowPlayerDialog(playerid,667,DIALOG_STYLE_MSGBOX,"Mobile Data Computer",mdcstring,"Ok","Cancel");
  30345. }
  30346. }
  30347. else
  30348. {
  30349. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  30350. return 1;
  30351. }
  30352. }
  30353. else
  30354. {
  30355. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle or in the Police Department.");
  30356. return 1;
  30357. }
  30358. }
  30359. return 1;
  30360. }
  30361. if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
  30362. {
  30363. if(IsPlayerConnected(playerid))
  30364. {
  30365. tmp = strtok(cmdtext, idx);
  30366. if(!strlen(tmp))
  30367. {
  30368. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/su)spect [playerid/PartOfName] [crime discription]{7DAEFF}");
  30369. return 1;
  30370. }
  30371. giveplayerid = ReturnUser(tmp);
  30372. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  30373. {
  30374. if(IsPlayerConnected(giveplayerid))
  30375. {
  30376. if(giveplayerid != INVALID_PLAYER_ID)
  30377. {
  30378. if(!IsACop(giveplayerid))
  30379. {
  30380. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  30381. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  30382. new length = strlen(cmdtext);
  30383. while ((idx < length) && (cmdtext[idx] <= ' '))
  30384. {
  30385. idx++;
  30386. }
  30387. new offset = idx;
  30388. new result[96];
  30389. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  30390. {
  30391. result[idx - offset] = cmdtext[idx];
  30392. idx++;
  30393. }
  30394. result[idx - offset] = EOS;
  30395. if(!strlen(result))
  30396. {
  30397. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/su)spect [playerid/PartOfName] [crime text]{7DAEFF}");
  30398. return 1;
  30399. }
  30400. if(PlayerInfo[giveplayerid][pWantedLevel] >= 6)
  30401. {
  30402. SendClientMessage(playerid, COLOR_GREY, "That player is at max wanted level.");
  30403. return 1;
  30404. }
  30405. if(UseAdmCmdTimer[playerid] > 8)
  30406. {
  30407. new IP[16];
  30408. new logstring[256];
  30409. new year, month, day;
  30410. getdate(year, month, day);
  30411. GetPlayerIp(playerid, IP, sizeof(IP));
  30412. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  30413. BanLog(logstring);
  30414. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  30415. SendClientMessageToAll(COLOR_LIGHTRED, string);
  30416. PlayerInfo[playerid][pBand] = 3;
  30417. PlayerInfo[playerid][pPermBand] = 1;
  30418. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  30419.  
  30420. return 1;
  30421. }
  30422. PlayerInfo[giveplayerid][pWantedLevel]++;
  30423. SetPlayerCriminal(giveplayerid,playerid, result);
  30424. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  30425. UseAdmCmdTimer[playerid]++;
  30426. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  30427. return 1;
  30428. }
  30429. else
  30430. {
  30431. SendClientMessage(playerid, COLOR_GRAD2, " You can't suspect a Cop !");
  30432. }
  30433. }
  30434. }
  30435. else
  30436. {
  30437. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  30438. SendClientMessage(playerid, COLOR_GRAD1, string);
  30439. return 1;
  30440. }
  30441. }
  30442. else
  30443. {
  30444. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST !");
  30445. }
  30446. }
  30447. return 1;
  30448. }
  30449. if(strcmp(cmd, "/swhisper", true) == 0 || strcmp(cmd, "/sw", true) == 0)
  30450. {
  30451. if(IsPlayerConnected(playerid))
  30452. {
  30453. if(gPlayerLogged[playerid] == 0)
  30454. {
  30455. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}Error:{FFFFFF}Please login to proceed.");
  30456. return 1;
  30457. }
  30458. if(PlayerInfo[playerid][pAdmin] == 0)
  30459. {
  30460. SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this.");
  30461. return 1;
  30462. }
  30463. tmp = strtok(cmdtext, idx);
  30464. if(!strlen(tmp))
  30465. {
  30466. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/sw)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
  30467. return 1;
  30468. }
  30469. giveplayerid = ReturnUser(tmp);
  30470. if(IsPlayerConnected(giveplayerid))
  30471. {
  30472. if(giveplayerid != INVALID_PLAYER_ID)
  30473. {
  30474. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't whisper to yourself."); return 1; }
  30475. if(PlayerInfo[playerid][pAdmin] < 1)
  30476. {
  30477. SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this.");
  30478. return 1;
  30479. }
  30480. if(HidePM[giveplayerid] > 0)
  30481. {
  30482. SendClientMessage(playerid, COLOR_GREY, "That player is blocking whispers.");
  30483. return 1;
  30484. }
  30485. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  30486. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  30487. new length = strlen(cmdtext);
  30488. while ((idx < length) && (cmdtext[idx] <= ' '))
  30489. {
  30490. idx++;
  30491. }
  30492. new offset = idx;
  30493. new result[96];
  30494. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  30495. {
  30496. result[idx - offset] = cmdtext[idx];
  30497. idx++;
  30498. }
  30499. result[idx - offset] = EOS;
  30500. if(!strlen(result))
  30501. {
  30502. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
  30503. return 1;
  30504. }
  30505. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  30506. format(string, sizeof(string), "Secret Admin: %s", (result));
  30507. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  30508. format(string, sizeof(string), "Secret Admin Whisper to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
  30509. SendClientMessage(playerid, COLOR_YELLOW, string);
  30510. return 1;
  30511. }
  30512. }
  30513. else
  30514. {
  30515. format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  30516. SendClientMessage(playerid, COLOR_GREY, string);
  30517. }
  30518. }
  30519. return 1;
  30520. }
  30521. if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0)
  30522. {
  30523. if(IsPlayerConnected(playerid))
  30524. {
  30525. if(gPlayerLogged[playerid] == 0)
  30526. {
  30527. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
  30528. return 1;
  30529. }
  30530. tmp = strtok(cmdtext, idx);
  30531. if(!strlen(tmp))
  30532. {
  30533. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
  30534. return 1;
  30535. }
  30536. giveplayerid = ReturnUser(tmp);
  30537. if(IsPlayerConnected(giveplayerid))
  30538. {
  30539. if(giveplayerid != INVALID_PLAYER_ID)
  30540. {
  30541. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't whisper to yourself !"); return 1; }
  30542. if(PlayerInfo[playerid][pAdmin] < 2)
  30543. {
  30544. if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 6)
  30545. {
  30546. SendClientMessage(playerid, COLOR_GREY, "That player is not in range !");
  30547. return 1;
  30548. }
  30549. }
  30550. if(HidePM[giveplayerid] > 0)
  30551. {
  30552. SendClientMessage(playerid, COLOR_GREY, "That player is blocking whispers !");
  30553. return 1;
  30554. }
  30555. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  30556. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  30557. new length = strlen(cmdtext);
  30558. while ((idx < length) && (cmdtext[idx] <= ' '))
  30559. {
  30560. idx++;
  30561. }
  30562. new offset = idx;
  30563. new result[96];
  30564. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  30565. {
  30566. result[idx - offset] = cmdtext[idx];
  30567. idx++;
  30568. }
  30569. result[idx - offset] = EOS;
  30570. if(!strlen(result))
  30571. {
  30572. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/w)isper [playerid/PartOfName] [whisper text]{7DAEFF}");
  30573. return 1;
  30574. }
  30575. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  30576. format(string, sizeof(string), "%s(ID: %d) whispers: %s", sendername, playerid, (result));
  30577. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  30578. format(string, sizeof(string), "Whisper to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
  30579. SendClientMessage(playerid, COLOR_YELLOW, string);
  30580. return 1;
  30581. }
  30582. }
  30583. else
  30584. {
  30585. format(string, sizeof(string), "%d is not an active player !", giveplayerid);
  30586. SendClientMessage(playerid, COLOR_GREY, string);
  30587. }
  30588. }
  30589. return 1;
  30590. }
  30591. if(strcmp(cmd, "/setcarhp", true) == 0)
  30592. {
  30593. if(IsPlayerConnected(playerid))
  30594. {
  30595. tmp = strtok(cmdtext, idx);
  30596. if(!strlen(tmp))
  30597. {
  30598. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setcarhp [playerid/PartOfName] [health]{7DAEFF}");
  30599. return 1;
  30600. }
  30601. new CarHP;
  30602. giveplayerid = ReturnUser(tmp);
  30603. tmp = strtok(cmdtext, idx);
  30604. CarHP = strval(tmp);
  30605. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  30606. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  30607. if(PlayerInfo[playerid][pAdmin] >= 3)
  30608. {
  30609. if(IsPlayerInAnyVehicle(giveplayerid))
  30610. {
  30611. SetVehicleHealth(GetPlayerVehicleID(giveplayerid), CarHP);
  30612. format(string, sizeof(string), "Info: %s has restored %s 's car to %d", sendername, giveplayer, CarHP);
  30613. SendAdminMessage(COLOR_YELLOW, string);
  30614. }
  30615. }
  30616. }
  30617. return 1;
  30618. }
  30619. if(strcmp(cmd, "/admins", true) == 0)//Logan Stone - New Ranks and Grammar Fixes
  30620. {
  30621. if(IsPlayerConnected(playerid))
  30622. {
  30623. SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
  30624. for(new i; i<MAX_PLAYERS; i++)
  30625. {
  30626. if(IsPlayerConnected(i))
  30627. {
  30628. if(PlayerInfo[i][pAdmin] > 1 && PlayerInfo[i][pStealth] == 0)
  30629. {
  30630. new admtext[64];
  30631. {
  30632. if(PlayerInfo[i][pAdmin] >= 7) { admtext = "{800000}Community Owner"; }
  30633. else if(PlayerInfo[i][pAdmin] == 6) { admtext = "{FF0000}Community Co Owner"; }
  30634. else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{FF0000}Head Admin"; }
  30635. else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{009900}Senior Admin"; }
  30636. else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{00FF00}General Admin"; }
  30637. else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{00FF00}Junior Admin"; }
  30638. }
  30639. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  30640. format(string, sizeof(string), "%s: %s", admtext, giveplayer);
  30641. SendClientMessage(playerid, COLOR_GRAD1, string);
  30642. }
  30643. }
  30644. }
  30645. }
  30646. return 1;
  30647. }
  30648. if(strcmp(cmd, "/viplist", true) == 0)//Logan Stone - New Ranks and Grammar Fixes
  30649. {
  30650. if(IsPlayerConnected(playerid))
  30651. {
  30652.  
  30653. if(PlayerInfo[playerid][pAdmin] >= 5)
  30654. {
  30655.  
  30656. SendClientMessage(playerid, COLOR_WHITE, "VIP's Online:");
  30657. for(new i; i<MAX_PLAYERS; i++)
  30658. {
  30659. if(IsPlayerConnected(i))
  30660. {
  30661. if(PlayerInfo[i][pDonateRank] > 0)
  30662. {
  30663. new viptext[64];
  30664. {
  30665. if(PlayerInfo[i][pDonateRank] == 1) { viptext = "Bronze VIP"; }
  30666. else if(PlayerInfo[i][pDonateRank] == 2) { viptext = "Silver VIP"; }
  30667. else if(PlayerInfo[i][pDonateRank] == 3) { viptext = "Gold VIP"; }
  30668. }
  30669. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  30670. format(string, sizeof(string), "%s: %s", viptext, giveplayer);
  30671. SendClientMessage(playerid, COLOR_GRAD1, string);
  30672. }
  30673. }
  30674. }
  30675. }
  30676. }
  30677. return 1;
  30678. }
  30679.  
  30680. if(strcmp(cmd, "/whoisadmin", true) == 0 || strcmp(cmd, "/wia", true) == 0)
  30681. {
  30682. if(IsPlayerConnected(playerid))
  30683. {
  30684. if(PlayerInfo[playerid][pAdmin] >= 6 || PlayerInfo[playerid][pFakeIP] == 1)
  30685. {
  30686. SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
  30687. //foreach(Player, i)
  30688. for(new i; i<MAX_PLAYERS; i++)
  30689. {
  30690. if(IsPlayerConnected(i))
  30691. {
  30692. if(PlayerInfo[i][pAdmin] > 0)
  30693. {
  30694. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  30695. format(string, sizeof(string), "%d Admin: %s",PlayerInfo[i][pAdmin],giveplayer);
  30696. SendClientMessage(playerid, COLOR_GREY, string);
  30697. }
  30698. }
  30699. }
  30700. }
  30701. }
  30702. return 1;
  30703. }
  30704. if(strcmp(cmd, "/taxwithdraw", true) == 0)
  30705. {
  30706. if(IsPlayerConnected(playerid))
  30707. {
  30708. if(PlayerInfo[playerid][pLeader] != 6)
  30709. {
  30710. SendClientMessage(playerid, COLOR_GREY, "You are not the Governor.");
  30711. return 1;
  30712. }
  30713. if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
  30714. {
  30715. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
  30716. return 1;
  30717. }
  30718. tmp = strtok(cmdtext, idx);
  30719. if(!strlen(tmp))
  30720. {
  30721. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /taxwithdraw [amount]{7DAEFF}");
  30722. format(string, sizeof(string), "There is currently $%d in the Treasury.", TaxValue);
  30723. SendClientMessage(playerid, COLOR_GRAD3, string);
  30724. return 1;
  30725. }
  30726. new cashdeposit = strvalEx(tmp);
  30727. if(!strlen(tmp))
  30728. {
  30729. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /taxwithdraw [amount]{7DAEFF}");
  30730. format(string, sizeof(string), "There is currently $%d in the Treasury.", TaxValue);
  30731. SendClientMessage(playerid, COLOR_GRAD3, string);
  30732. return 1;
  30733. }
  30734. if(cashdeposit > TaxValue || cashdeposit < 1)
  30735. {
  30736. SendClientMessage(playerid, COLOR_GRAD2, "There is not enough in the Treasury !");
  30737. return 1;
  30738. }
  30739. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
  30740. GivePlayerMoney(playerid, cashdeposit);
  30741. TaxValue = TaxValue-cashdeposit;
  30742. format(string, sizeof(string), " You have withdrawn $%d from the Treasury, Total: $%d ", cashdeposit, TaxValue);
  30743. SendClientMessage(playerid, COLOR_YELLOW, string);
  30744. SaveStuff();
  30745. }
  30746. return 1;
  30747. }
  30748. if(strcmp(cmd, "/withdraw", true) == 0)
  30749. {
  30750. if(IsPlayerConnected(playerid))
  30751. {
  30752. if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
  30753. {
  30754. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank .");
  30755. return 1;
  30756. }
  30757. tmp = strtok(cmdtext, idx);
  30758. if(!strlen(tmp))
  30759. {
  30760. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /withdraw [amount]{7DAEFF}");
  30761. format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
  30762. SendClientMessage(playerid, COLOR_GRAD3, string);
  30763. return 1;
  30764. }
  30765. new cashdeposit = strvalEx(tmp);
  30766. if(!strlen(tmp))
  30767. {
  30768. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /withdraw [amount]{7DAEFF}");
  30769. format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
  30770. SendClientMessage(playerid, COLOR_GRAD3, string);
  30771. return 1;
  30772. }
  30773. if(cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
  30774. {
  30775. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  30776. return 1;
  30777. }
  30778. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
  30779. GivePlayerMoney(playerid,cashdeposit);
  30780. PlayerInfo[playerid][pAccount] = PlayerInfo[playerid][pAccount]-cashdeposit;
  30781. format(string, sizeof(string), "You have withdrawn $%d from your bank account, Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
  30782. SendClientMessage(playerid, COLOR_YELLOW, string);
  30783. return 1;
  30784. }
  30785. return 1;
  30786. }
  30787. if(!strcmp(cmdtext, "/stealth", true)) // By Logan Stone
  30788. {
  30789. if(IsPlayerConnected(playerid))
  30790. {
  30791. if(gPlayerLogged[playerid] == 0)
  30792. {
  30793. SendClientMessage(playerid, COLOR_GREY, "Please login to continue.");
  30794. return 1;
  30795. }
  30796. if(PlayerInfo[playerid][pAdmin] > 3)
  30797. {
  30798. if(PlayerInfo[playerid][pStealth] == 0)
  30799. {
  30800. PlayerInfo[playerid][pStealth] = 1;
  30801. SendClientMessage(playerid, COLOR_GREY, "You are now hidden.");
  30802. return 1;
  30803. }
  30804. else if(PlayerInfo[playerid][pStealth] == 1)
  30805. {
  30806. PlayerInfo[playerid][pStealth] = 0;
  30807. SendClientMessage(playerid, COLOR_GREY, "You are not hidden anymore.");
  30808. return 1;
  30809. }
  30810. }
  30811. else
  30812. {
  30813. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  30814. return 1;
  30815. }
  30816. }
  30817. return 1;
  30818. }
  30819.  
  30820. if(!strcmp(cmdtext, "/fakeip", true)) // By Logan Stone
  30821. {
  30822. if(IsPlayerConnected(playerid))
  30823. {
  30824. if(gPlayerLogged[playerid] == 0)
  30825. {
  30826. SendClientMessage(playerid, COLOR_GREY, "Please login to proceed.");
  30827. return 1;
  30828. }
  30829. if(PlayerInfo[playerid][pAdmin] >= 99999 || PlayerInfo[playerid][pFakeIP] == 1)
  30830. {
  30831. if(PlayerInfo[playerid][pFakeIP] == 0)
  30832. {
  30833. PlayerInfo[playerid][pFakeIP] = 1;
  30834. SendClientMessage(playerid, COLOR_GREY, "Fake IP ON !");
  30835. return 1;
  30836. }
  30837. else if(PlayerInfo[playerid][pFakeIP] == 1)
  30838. {
  30839. PlayerInfo[playerid][pFakeIP] = 0;
  30840. SendClientMessage(playerid, COLOR_GREY, "Fake IP OFF !");
  30841. return 1;
  30842. }
  30843. }
  30844. else
  30845. {
  30846. return 1;
  30847. }
  30848. }
  30849. return 1;
  30850. }
  30851.  
  30852. if(strcmp(cmd, "/checkhacks", true) == 0 || strcmp(cmd, "/ch", true) == 0)
  30853. {
  30854. if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
  30855. tmp = strtok(cmdtext, idx);
  30856. if(!strlen(tmp))
  30857. {
  30858. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /checkhacks [playerid/PartOfName]{7DAEFF}");
  30859. return 1;
  30860. }
  30861. new playa;
  30862. playa = ReturnUser(tmp);
  30863. if(IsPlayerConnected(playa))
  30864. {
  30865. if(playa != INVALID_PLAYER_ID)
  30866. {
  30867. format(string, sizeof(string), "* %s was checked for health hacks.", PlayerName(playa));
  30868. ProxDetector(30.0, playa, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  30869. CheckHacks2(playa);
  30870. SetTimerEx("DoneCheckHacks2", 1000, 0, "ii", playerid, playa);
  30871. }
  30872. }
  30873. return 1;
  30874. }
  30875. if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
  30876. {
  30877. if(IsPlayerConnected(playerid))
  30878. {
  30879. if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
  30880. {
  30881. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank !");
  30882. return 1;
  30883. }
  30884. tmp = strtok(cmdtext, idx);
  30885. if(!strlen(tmp))
  30886. {
  30887. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deposit [amount]{7DAEFF}");
  30888. format(string, sizeof(string), " You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
  30889. SendClientMessage(playerid, COLOR_GRAD3, string);
  30890. return 1;
  30891. }
  30892. new cashdeposit = strvalEx(tmp);
  30893. if(!strlen(tmp))
  30894. {
  30895. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deposit [amount]{7DAEFF}");
  30896. format(string, sizeof(string), "You have $%d in your bank account.", PlayerInfo[playerid][pAccount]);
  30897. SendClientMessage(playerid, COLOR_GRAD3, string);
  30898. return 1;
  30899. }
  30900. if(cashdeposit > PlayerInfo[playerid][pCash] || cashdeposit < 1)
  30901. {
  30902. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much !");
  30903. return 1;
  30904. }
  30905. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-cashdeposit;
  30906. GivePlayerMoney(playerid,-cashdeposit);
  30907. new curfunds = PlayerInfo[playerid][pAccount];
  30908. PlayerInfo[playerid][pAccount] = cashdeposit+PlayerInfo[playerid][pAccount];
  30909. SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
  30910. format(string, sizeof(string), " Old Balance: $%d", curfunds);
  30911. SendClientMessage(playerid, COLOR_GRAD2, string);
  30912. format(string, sizeof(string), " Deposit: $%d",cashdeposit);
  30913. SendClientMessage(playerid, COLOR_GRAD4, string);
  30914. SendClientMessage(playerid, COLOR_GRAD6, "|------------------------------------------|");
  30915. format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccount]);
  30916. SendClientMessage(playerid, COLOR_WHITE, string);
  30917. return 1;
  30918. }
  30919. return 1;
  30920. }
  30921.  
  30922. if(strcmp(cmd, "/createcar", true) == 0)
  30923. {
  30924. if(PlayerInfo[playerid][pAdmin] < 5)
  30925. {
  30926. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
  30927. return 1;
  30928. }
  30929. new vehcount = 0;
  30930. for(new i = 0; i < sizeof(CreatedCars); i++)
  30931. {
  30932. if(CreatedCars[i] != INVALID_VEHICLE_ID)
  30933. {
  30934. vehcount += 1;
  30935. if(vehcount > 0)
  30936. {
  30937. SendClientMessage(playerid, COLOR_GREY, "You have to remove all spawned /veh vehicles first.");
  30938. return 1;
  30939. }
  30940. }
  30941. }
  30942. tmp = strtok(cmdtext, idx);
  30943. if(!strlen(tmp))
  30944. {
  30945. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /createcar [vehicle name/ID]{7DAEFF}");
  30946. return 1;
  30947. }
  30948. new model = ReturnVehicleModelID(tmp);
  30949. if(!model)
  30950. {
  30951. SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
  30952. return 1;
  30953. }
  30954. if(IsATrain(model))
  30955. {
  30956. SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
  30957. return 1;
  30958. }
  30959. new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
  30960. GetPlayerPos(playerid, coordX,coordY,coordZ);
  30961. GetPlayerFacingAngle(playerid,coordA);
  30962. new foundcar = 0;
  30963. for(new h = 1; h < 2000; h++)
  30964. {
  30965. if (CarInfo[h][tModel]==0)
  30966. {
  30967. if (foundcar==0)
  30968. {
  30969. CarSys[h] = CreateVehicle(model, coordX,coordY,coordZ,coordA, 0, 0, -1);
  30970. ChangeVehiclePaintjob(h, 3);
  30971. format(string, sizeof(string), "Vehicle ID %d created", h);
  30972. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  30973. CarInfo[h][tModel] = model;
  30974. CarInfo[h][tLocationx] = coordX;
  30975. CarInfo[h][tLocationy] = coordY;
  30976. CarInfo[h][tLocationz] = coordZ;
  30977. CarInfo[h][tAngle] = coordA;
  30978. PutPlayerInVehicle(playerid, h, 0);
  30979. new plate[10];
  30980. strmid(plate, CarInfo[h][tLicensePlate], 0, strlen(CarInfo[h][tLicensePlate]), 255);
  30981. SetVehicleNumberPlate(h, plate);
  30982. foundcar = 1;
  30983. }
  30984. }
  30985. }
  30986. return 1;
  30987. }
  30988.  
  30989.  
  30990. if(strcmp(cmd, "/createhouse", true) == 0)
  30991. {
  30992. if(PlayerInfo[playerid][pAdmin] < 5)
  30993. {
  30994. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
  30995. return 1;
  30996. }
  30997. new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
  30998. GetPlayerPos(playerid, coordX,coordY,coordZ);
  30999. GetPlayerFacingAngle(playerid,coordA);
  31000. new foundhouse = 0;
  31001. for(new h = 0; h < 600; h++)
  31002. {
  31003. if (HouseInfo[h][hLocation_x]==0.000000)
  31004. {
  31005. if (foundhouse==0)
  31006. {
  31007. new Float:angle = coordA + 180.0000;
  31008. HouseInfo[h][hLocation_x] = coordX;
  31009. HouseInfo[h][hLocation_y] = coordY;
  31010. HouseInfo[h][hLocation_z] = coordZ;
  31011. HouseInfo[h][hEnterAngle] = angle;
  31012. DestroyDynamicPickup(HousePickup[h]);
  31013. //DestroyDynamicMapIcon(HouseIcon[h]);
  31014. DestroyDynamic3DTextLabel(HouseLabel[h]);
  31015. HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]);
  31016. //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 31, 0);
  31017. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You created a new house. You are now editing it ( /edithouse )");
  31018. new VString[255];
  31019. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[h][hPrice],HouseInfo[h][hLevel]);
  31020. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  31021. HouseEditID[playerid] = h;
  31022. foundhouse = 1;
  31023. }
  31024. }
  31025. }
  31026. return 1;
  31027. }
  31028.  
  31029.  
  31030. if(strcmp(cmd, "/createbiz", true) == 0)
  31031. {
  31032. if(PlayerInfo[playerid][pAdmin] < 5)
  31033. {
  31034. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  31035. return 1;
  31036. }
  31037. new Float:coordX, Float:coordY, Float:coordZ, Float:coordA;
  31038. GetPlayerPos(playerid, coordX,coordY,coordZ);
  31039. GetPlayerFacingAngle(playerid,coordA);
  31040. new interiorz = GetPlayerInterior(playerid);
  31041. new pvw = GetPlayerVirtualWorld(playerid);
  31042. new foundbiz = 0;
  31043. for(new h = 0; h < 600; h++)
  31044. {
  31045. if (BizInfo[h][bLocation_x]==0.000000)
  31046. {
  31047. if (foundbiz==0)
  31048. {
  31049. new Float:angle = coordA + 180.0000;
  31050. BizInfo[h][bLocation_x] = coordX;
  31051. BizInfo[h][bLocation_y] = coordY;
  31052. BizInfo[h][bLocation_z] = coordZ;
  31053. BizInfo[h][bEnterAngle] = angle;
  31054. BizInfo[h][bPInt] = interiorz;
  31055. BizInfo[h][bPVW] = pvw;
  31056. DestroyDynamicPickup(BizPickup[h]);
  31057. DestroyDynamic3DTextLabel(BizLabel[h]);
  31058. BizPickup[h] = CreateDynamicPickup(1318, 1, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z], BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  31059. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You created a new business/building. You are now editing it ( /editbiz )");
  31060. new VString[255];
  31061. new name[25];
  31062. strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
  31063. format(VString,sizeof(VString),"%s", name);
  31064. BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  31065. BizEditID[playerid] = h;
  31066. foundbiz = 1;
  31067. }
  31068. }
  31069. }
  31070. return 1;
  31071. }
  31072. if(strcmp(cmd, "/lockpick", true) == 0)
  31073. {
  31074. new counter = 0;
  31075. new result;
  31076. new engine,lights,alarm,doors,bonnet,boot,objective;
  31077. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31078. new plyName[MAX_PLAYER_NAME];
  31079. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  31080. for(new i; i != MAX_VEHICLES; i++)
  31081. {
  31082. new dist = CheckPlayerDistanceToVehicle(2, playerid, i);
  31083. if(dist)
  31084. {
  31085. result = i;
  31086. counter++;
  31087. }
  31088. }
  31089. switch(counter)
  31090. {
  31091. case 0:
  31092. {
  31093. SendClientMessage(playerid, COLOR_GREY, " No cars near you");
  31094. return 1;
  31095. }
  31096.  
  31097. case 1:
  31098. {
  31099. if(IsPlayerInAnyVehicle(playerid))
  31100. {
  31101. SendClientMessage(playerid, COLOR_GREY, " You can't lockpick the vehicle if you're inside it");
  31102. return 1;
  31103. }
  31104. if(PlayerInfo[playerid][Lockpicking] > 0)
  31105. {
  31106. SendClientMessage(playerid, COLOR_GREY, " You are already lockpicking this vehicle");
  31107. return 1;
  31108. }
  31109. if(PlayerInfo[playerid][pScrew] == 0)
  31110. {
  31111. SendClientMessage(playerid, COLOR_GREY, " Your need a screwdriver do lockpick a vehicle!");
  31112. return 1;
  31113. }
  31114. if(CarInfo[result][tLock] != 1)
  31115. {
  31116. SendClientMessage(playerid, COLOR_RED, "This vehicle is already unlocked");
  31117. return 1;
  31118. }
  31119. if(screwdriver[playerid] == 0)
  31120. {
  31121. SendClientMessage(playerid, COLOR_GREY, " You're not holding a screwdriver (( /screwdriver ))!");
  31122. return 1;
  31123. }
  31124. new owner[MAX_PLAYER_NAME];
  31125. strmid(owner, CarInfo[result][tOwner], 0, strlen(CarInfo[result][tOwner]), 255);
  31126. giveplayerid = ReturnUser(owner);
  31127. if(IsPlayerConnected(giveplayerid))
  31128. {
  31129. PlayerInfo[playerid][Lockpicking] = 60;
  31130. PlayerInfo[playerid][CLockpick] = result;
  31131. PlayerInfo[playerid][pScrew]--;
  31132. if(CarInfo[result][tAlarm] == 1)
  31133. {
  31134. new Float:cX, Float:cY, Float:cZ;
  31135. new car = PlayerInfo[playerid][CLockpick];
  31136. GetVehiclePos(car, cX, cY, cZ);
  31137. GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
  31138. SetVehicleParamsEx(result,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
  31139. CarInfo[result][tAlarmStarted] = 1;
  31140. SetPlayerCheckpoint(giveplayerid, cX, cY, cZ, 3.0);
  31141. SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  31142. SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because one of your vehicle alarm has been activated");
  31143. }
  31144. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  31145. format(string, sizeof(string), "** %s pulls out a screwdriver and begins lockpicking the vehicle...", sendername);
  31146. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31147. SendClientMessage(playerid, COLOR_LIGHTBLUE, "** It takes you 1 minute to lockpick the vehicle...");
  31148. SetTimerEx("Lockpick", 1, false, "d", playerid);
  31149. SetTimerEx("Lockpickmove", 1, false, "d", playerid);
  31150. return 1;
  31151. }
  31152. else
  31153. {
  31154. SendClientMessage(playerid, COLOR_GREY, " The owner of this car is offline, you can't lockpick it ");
  31155. return 1;
  31156. }
  31157. }
  31158.  
  31159. default:
  31160. {
  31161. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  31162. return 1;
  31163. }
  31164. }
  31165. return 1;
  31166. }
  31167.  
  31168. //Roadblock
  31169. if(strcmp(cmd, "/crb", true) == 0)
  31170. {
  31171. if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
  31172. {
  31173. tmp = strtok(cmdtext, idx);
  31174. if(!strlen(tmp))
  31175. {
  31176. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /crb [Roadblock ID]{7DAEFF}");
  31177. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Available Roadblocks:");
  31178. SendClientMessage(playerid, COLOR_GRAD1, "| 1: Small Roadblock");
  31179. SendClientMessage(playerid, COLOR_GRAD1, "| 2: Medium Roadblock");
  31180. SendClientMessage(playerid, COLOR_GRAD1, "| 3: Big Roadblock");
  31181. SendClientMessage(playerid, COLOR_GRAD1, "| 4: Cone");
  31182. return 1;
  31183. }
  31184. new rb = strval(tmp);
  31185. if (rb == 1)
  31186. {
  31187. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31188. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31189. GetPlayerPos(playerid, plocx, plocy, plocz);
  31190. GetPlayerFacingAngle(playerid,ploca);
  31191. CreateRoadblock(1459,plocx,plocy,plocz,ploca);
  31192. format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(1) at his position, over.",PlayerName(playerid));
  31193. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31194. GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
  31195. return 1;
  31196. }
  31197. else if (rb == 2)
  31198. {
  31199. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31200. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31201. GetPlayerPos(playerid, plocx, plocy, plocz);
  31202. GetPlayerFacingAngle(playerid,ploca);
  31203. CreateRoadblock(978,plocx,plocy,plocz+0.6,ploca);
  31204. format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(2) at his position, over.",PlayerName(playerid));
  31205. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31206. GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
  31207. return 1;
  31208. }
  31209. else if (rb == 3)
  31210. {
  31211. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31212. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31213. GetPlayerPos(playerid, plocx, plocy, plocz);
  31214. GetPlayerFacingAngle(playerid,ploca);
  31215. CreateRoadblock(981,plocx,plocy,plocz+0.9,ploca+180);
  31216. format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(3) at his position, over.",PlayerName(playerid));
  31217. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31218. GameTextForPlayer(playerid,"~w~Roadblock ~g~Placed!",3000,1);
  31219. SetPlayerPos(playerid, plocx, plocy+1.3, plocz);
  31220. return 1;
  31221. }
  31222. else if (rb == 4)
  31223. {
  31224. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31225. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31226. GetPlayerPos(playerid, plocx, plocy, plocz);
  31227. GetPlayerFacingAngle(playerid,ploca);
  31228. CreateRoadblock(1238,plocx,plocy,plocz+0.2,ploca);
  31229. format(string,sizeof(string),"[HQ]: Officer %s has placed a Traffic Cone(1) at his position, over.",PlayerName(playerid));
  31230. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31231. GameTextForPlayer(playerid,"~w~Cone ~g~Placed!",3000,1);
  31232. return 1;
  31233. }
  31234. /*else if (rb == 4)
  31235. {
  31236. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31237. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31238. GetPlayerPos(playerid, plocx, plocy, plocz);
  31239. GetPlayerFacingAngle(playerid,ploca);
  31240. CreateRoadblock(1425,plocx,plocy,plocz+0.6,ploca);
  31241. format(string,sizeof(string),"[HQ]: Officer %s has placed a Detour Sign(4) at his position, over.",PlayerName(playerid));
  31242. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31243. GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
  31244. return 1;
  31245. }
  31246. else if (rb == 5)
  31247. {
  31248. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31249. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31250. GetPlayerPos(playerid, plocx, plocy, plocz);
  31251. GetPlayerFacingAngle(playerid,ploca);
  31252. CreateRoadblock(3265,plocx,plocy,plocz-0.5,ploca);
  31253. format(string,sizeof(string),"[HQ]: Officer %s has placed a Will Be Sign(5) at his position, over.",PlayerName(playerid));
  31254. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31255. GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
  31256. return 1;
  31257. }
  31258. else if (rb == 6)
  31259. {
  31260. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31261. new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
  31262. GetPlayerPos(playerid, plocx, plocy, plocz);
  31263. GetPlayerFacingAngle(playerid,ploca);
  31264. CreateRoadblock(3091,plocx,plocy,plocz+0.5,ploca+180);
  31265. format(string,sizeof(string),"[HQ]: Officer %s has placed a Line Closed Sign(6) at his position, over.",PlayerName(playerid));
  31266. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31267. GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
  31268. return 1;
  31269. }*/
  31270. }
  31271. return 1;
  31272. }
  31273. else if (strcmp(cmd,"/rrb",true) == 0)
  31274. {
  31275. if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
  31276. {
  31277. DeleteClosestRoadblock(playerid);
  31278. format(string,sizeof(string),"[HQ]: Officer %s has removed a Roadblock, over.",PlayerName(playerid));
  31279. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31280. GameTextForPlayer(playerid,"~w~Roadblock ~r~Removed!",3000,1);
  31281. }
  31282. return 1;
  31283. }
  31284. else if (strcmp(cmd,"/rrball",true) == 0)
  31285. {
  31286. if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
  31287. {
  31288. if(PlayerInfo[playerid][pRank] >= 6 || IsPlayerAdmin(playerid)) // This being the default Chief rank in LA-RP change if neccesary.
  31289. {
  31290. DeleteAllRoadblocks(playerid);
  31291. format(string,sizeof(string),"[HQ]: Officer %s has removed all Roadblocks in the area, over.",PlayerName(playerid));
  31292. SendRadioMessage(1,TEAM_BLUE_COLOR,string);
  31293. GameTextForPlayer(playerid,"~b~All ~w~Roadblocks ~r~Removed!",3000,1);
  31294. }
  31295. }
  31296. return 1;
  31297. }
  31298.  
  31299. if(strcmp(cmd, "/suitcase", true) == 0)
  31300. {
  31301. if(PlayerInfo[playerid][pSuitcase] == 1)
  31302. {
  31303. ShowPlayerDialog(playerid,suitcasediag,DIALOG_STYLE_LIST,"Suitcase","Check\nTake\nPut\nChange password(Disabled)\nLock(Disabled)","Select","Cancel"); //Suitcase
  31304. return 1;
  31305. }
  31306. else
  31307. {
  31308. SendClientMessage(playerid, COLOR_GRAD1, "You don't have a suitcase");
  31309. }
  31310. return 1;
  31311. }
  31312.  
  31313. if(strcmp(cmd, "/atm", true) == 0)
  31314. {
  31315. new atmstring[256];
  31316. if(IsPlayerConnected(playerid))
  31317. {
  31318. if(!IsAtATM(playerid))
  31319. {
  31320. SendClientMessage(playerid, COLOR_GRAD2, " You are not at an ATM machine !");
  31321. return 1;
  31322. }
  31323. format(atmstring,sizeof(atmstring),"Los Santos ATM\nYou have a total of $%d in your Bank account\nType below the amount of money you want to withdraw:", PlayerInfo[playerid][pAccount]);
  31324. ShowPlayerDialog(playerid,59,DIALOG_STYLE_INPUT,"Los Santos ATM",atmstring,"Withdraw","Cancel");
  31325. format(string, sizeof(string), "* %s presses a button and checks their balance.", PlayerName(playerid));
  31326. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31327. }
  31328. return 1;
  31329. }
  31330.  
  31331.  
  31332.  
  31333. if(strcmp(cmd, "/loadcash", true) == 0)
  31334. {
  31335. if(BankRobberyTime >= 1)
  31336. {
  31337. SendClientMessage(playerid, COLOR_GREY, "* Someone has robbed the bank recently.");
  31338. return 1;
  31339. }
  31340. if(BankRobbery == 0)
  31341. {
  31342. SendClientMessage(playerid, COLOR_GREY, "* The vault is currently locked.");
  31343. return 1;
  31344. }
  31345. if(LoadingCash == 1)
  31346. {
  31347. SendClientMessage(playerid, COLOR_GREY, "* Someone is already loading the cash.");
  31348. return 1;
  31349. }
  31350. if(IsPlayerInRangeOfPoint(playerid,2,1448.0712,-984.1879,1402.7000))
  31351. {
  31352. ShowPlayerDialog(playerid,LOADTHECASH,DIALOG_STYLE_LIST,"How much cash would you like to load ?","Up to $500,000 (6 minutes of waiting)\nUp to $1,000,000 (10 minutes of waiting)\nUp to $1,000,000 (15 minutes of waiting)","Load the cash","Cancel");
  31353. }
  31354. else
  31355. {
  31356. SendClientMessage(playerid, COLOR_GREY, "* You are not inside the vault.");
  31357. }
  31358. }
  31359.  
  31360. if(strcmp(cmd, "/robbank", true) == 0)
  31361. {
  31362. if(IsPlayerConnected(playerid))
  31363. {
  31364.  
  31365. new points = PlayerInfo[playerid][pWantedLevel];
  31366. if(points > 2)
  31367. {
  31368. SendClientMessage(playerid, COLOR_GREY, "* Your wanted level is too high to rob the bank.");
  31369. return 1;
  31370. }
  31371. if(BankRobberyTime >= 1)
  31372. {
  31373. SendClientMessage(playerid, COLOR_GREY, "* Someone has robbed the bank recently, Please wait for the reload time.");
  31374. return 1;
  31375. }
  31376. if(BankRobbery == 1)
  31377. {
  31378. SendClientMessage(playerid, COLOR_GREY, "* The vault is already unlocked.");
  31379. return 1;
  31380. }
  31381. if(IsACop(playerid))
  31382. {
  31383. SendClientMessage(playerid, COLOR_GREY, "* Cops cannot rob the bank.");
  31384. return 1;
  31385. }
  31386. if(PlayerInfo[playerid][pLevel] < 4)
  31387. {
  31388. SendClientMessage(playerid, COLOR_GREY, "* You must be at least a Level 4 to rob the bank.");
  31389. return 1;
  31390. }
  31391. new Cops = 0;
  31392. for(new i = 0; i < MAX_PLAYERS; i++)
  31393. {
  31394. if(IsACop(i))
  31395. {
  31396. Cops += 1;
  31397. }
  31398. }
  31399. if(!(Cops >= 1))
  31400. {
  31401. SendClientMessage(playerid,COLOR_GREY,"There must be atleast 3 Law Enforcement Officers online.");
  31402. return 1;
  31403. }
  31404. if(IsPlayerInRangeOfPoint(playerid,1,1450.5269,-981.9805,1402.7000))
  31405. {
  31406. ShowPlayerDialog(playerid, CRACKTHEVAULT, DIALOG_STYLE_INPUT, "Crack the vault","Note: Entering the right code or not your wanted level will be increased\nPlease, enter the vault code if you want to crack it:", "Crack it", "Cancel");
  31407. }
  31408. else
  31409. {
  31410. SendClientMessage(playerid, COLOR_GREY, "* You are not near the vault.");
  31411. }
  31412. }
  31413. return 1;
  31414. }
  31415.  
  31416. if(strcmp(cmd, "/showvaultpass", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
  31417. {
  31418. new showpass = VPass;
  31419. format(string, sizeof(string), "The Vault Door password is: %d.", showpass);
  31420. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  31421. }
  31422.  
  31423. if(strcmp(cmd, "/setvaultdoorpass", true) == 0)
  31424. {
  31425. if(IsPlayerConnected(playerid))
  31426. {
  31427. if(PlayerInfo[playerid][pAdmin] >= 5)
  31428. {
  31429. tmp = strtok(cmdtext, idx);
  31430. if(!strlen(tmp))
  31431. {
  31432. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setvaultdoorpass [newpass]{7DAEFF}");
  31433. return 1;
  31434. }
  31435. new para1;
  31436. para1 = strvalEx(tmp);
  31437. tmp = strtok(cmdtext, idx);
  31438. if (para1 > 99999 && para1 < 1000000)
  31439. {
  31440. format(string, sizeof(string), "You have set the new vault door password to: %d.", para1);
  31441. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  31442. VPass = para1;
  31443. SaveStuff();
  31444. return 1;
  31445. }
  31446. else
  31447. {
  31448. return 1;
  31449. }
  31450. }
  31451. }
  31452. return 1;
  31453. }
  31454.  
  31455. if(strcmp(cmd, "/openvault", true) == 0)
  31456. {
  31457. if(IsPlayerConnected(playerid))
  31458. {
  31459. if (BankRobbery == 0) {
  31460. SendClientMessage(playerid, COLOR_GREY, " The vault is currently locked");
  31461. return 1;
  31462. }
  31463. if(IsPlayerInRangeOfPoint(playerid,3,1450.5269,-981.9805,1402.7000))
  31464. {
  31465. MoveDynamicObject(bankvaultdoor, 1450.90002441,-981.70001221,1403.00000000, 0.20, 0.00000000,0.00000000,330.00000000);
  31466. }
  31467. else
  31468. {
  31469. SendClientMessage(playerid, COLOR_GREY, "You are not near/at the vault.");
  31470. }
  31471. return 1;
  31472. }
  31473. }
  31474.  
  31475. if(strcmp(cmd, "/setdoorpass", true) == 0)
  31476. {
  31477. if(IsPlayerConnected(playerid))
  31478. {
  31479. if(PlayerInfo[playerid][pLeader] == 1)
  31480. {
  31481. tmp = strtok(cmdtext, idx);
  31482. if(!strlen(tmp))
  31483. {
  31484. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setdoorpass [newpass]{7DAEFF}");
  31485. return 1;
  31486. }
  31487. new para1;
  31488. para1 = strvalEx(tmp);
  31489. tmp = strtok(cmdtext, idx);
  31490. if (para1 > 1 && para1 < 9999)
  31491. {
  31492. format(string, sizeof(string), "You have set the new door password to: %d.", para1);
  31493. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  31494. new coordsstring[256];
  31495. format(coordsstring, sizeof(coordsstring), "%d", para1);
  31496. new File: file2 = fopen("Other/passwords.ini", io_write);
  31497. fwrite(file2, coordsstring);
  31498. fclose(file2);
  31499. Pass[LSPD] = para1;
  31500. return 1;
  31501. }
  31502. else
  31503. {
  31504. return 1;
  31505. }
  31506. }
  31507. }
  31508. return 1;
  31509. }
  31510.  
  31511. if(strcmp(cmd, "/dice", true) == 0)
  31512. {
  31513. if(IsPlayerConnected(playerid))
  31514. {
  31515. new dice = random(6)+1;
  31516. if(PlayerInfo[playerid][pDice] == 1)
  31517. {
  31518. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31519. format(string, sizeof(string), "* %s throws a dice that lands on %d.", sendername,dice);
  31520. ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
  31521. }
  31522. else
  31523. {
  31524. SendClientMessage(playerid, COLOR_GREY, " You don't have a dice !");
  31525. return 1;
  31526. }
  31527. }
  31528. return 1;
  31529. }
  31530. if(strcmp(cmd, "/flipcoin", true) == 0)
  31531. {
  31532. if(IsPlayerConnected(playerid))
  31533. {
  31534. if(PlayerInfo[playerid][pCash] > 0)
  31535. {
  31536. new coin = random(2);
  31537. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31538. if(coin == 1)
  31539. {
  31540. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger flips a coin that lands on Tails.");
  31541. else format(string, sizeof(string), "* %s flips a coin that lands on Tails.", sendername);
  31542. ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
  31543. }
  31544. else
  31545. {
  31546. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger flips a coin that lands on Heads.");
  31547. else format(string, sizeof(string), "* %s flips a coin that lands on Heads.", sendername);
  31548. ProxDetector(5.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
  31549. }
  31550. }
  31551. else
  31552. {
  31553. SendClientMessage(playerid, COLOR_GREY, " You don't have any money !");
  31554. return 1;
  31555. }
  31556. }
  31557. return 1;
  31558. }
  31559. if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0)
  31560. {
  31561. if(IsPlayerConnected(playerid))
  31562. {
  31563. if(PlayerInfo[playerid][pLevel] < 3)
  31564. {
  31565. SendClientMessage(playerid, COLOR_GRAD1, "You must be atleast level 3.");
  31566. return 1;
  31567. }
  31568. if(PlayerInfo[playerid][pConnectTime] == 0)
  31569. {
  31570. SendClientMessage(playerid, COLOR_GRAD1, "You must be ingame longer before using this feature.");
  31571. return 1;
  31572. }
  31573. if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1458.6104,-987.2628,1402.7000))
  31574. {
  31575. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
  31576. return 1;
  31577. }
  31578. tmp = strtok(cmdtext, idx);
  31579. if(!strlen(tmp))
  31580. {
  31581. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /transfer [playerid/PartOfName] [amount]{7DAEFF}");
  31582. return 1;
  31583. }
  31584. giveplayerid = ReturnUser(tmp);
  31585. tmp = strtok(cmdtext, idx);
  31586. if(!strlen(tmp))
  31587. {
  31588. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /transfer [playerid/PartOfName] [amount]{7DAEFF}");
  31589. return 1;
  31590. }
  31591. moneys = strvalEx(tmp);
  31592. if(IsPlayerConnected(giveplayerid))
  31593. {
  31594. if(gPlayerLogged[giveplayerid] == 0)
  31595. {
  31596. SendClientMessage(playerid, COLOR_GREY, "That player has not logged in.");
  31597. return 1;
  31598. }
  31599. if(giveplayerid == playerid)
  31600. {
  31601. SendClientMessage(playerid, COLOR_GREY, " You can't transfer money to yourself !");
  31602. return 1;
  31603. }
  31604. if(giveplayerid != INVALID_PLAYER_ID)
  31605. {
  31606. GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
  31607. GetPlayerName(playerid, sendername, sizeof(sendername));
  31608. new playermoney = PlayerInfo[playerid][pAccount] ;
  31609. if(moneys > 0 && playermoney >= moneys)
  31610. {
  31611. PlayerInfo[playerid][pAccount] -= moneys;
  31612. PlayerInfo[giveplayerid][pAccount] += moneys;
  31613. format(string, sizeof(string), " You have transferred $%d to %s's account.", moneys, giveplayer,giveplayerid);
  31614. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  31615. SendClientMessage(playerid, COLOR_GRAD1, string);
  31616. format(string, sizeof(string), " You have recieved $%d to into your account from %s", moneys, sendername, playerid);
  31617. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  31618. format(string, sizeof(string), "%s transferred $%d to %s", sendername, moneys, giveplayer);
  31619. if(moneys >= 500000)
  31620. {
  31621. ABroadCast(COLOR_YELLOW,string,1);
  31622. }
  31623. PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
  31624. PayLog(string);
  31625. }
  31626. else
  31627. {
  31628. SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount !");
  31629. }
  31630. }
  31631. }
  31632. else
  31633. {
  31634. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  31635. SendClientMessage(playerid, COLOR_GRAD1, string);
  31636. }
  31637. }
  31638. return 1;
  31639. }
  31640. /* if(strcmp(cmd, "/takestretcher", true) == 0) //HOSPITAL (NEW)
  31641. {
  31642. if(IsPlayerConnected(playerid))
  31643. {
  31644. if(IsPlayerInRangeOfPoint(playerid ,3.0, 1216.8700, -1370.1622, 1017.8790))
  31645. {
  31646. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  31647. {
  31648. AttachObjectToPlayer( hospybed, playerid, 0, 1.5, -0.5, 0, 0, 0 );
  31649. return 1;
  31650. }
  31651. }
  31652. }
  31653. }
  31654. if(strcmp(cmd, "/dropstretcher", true) == 0) //HOSPITAL (NEW)
  31655. {
  31656. if(IsPlayerConnected(playerid))
  31657. {
  31658. if(IsPlayerInRangeOfPoint(playerid ,25.0, 1216.8700, -1370.1622, 1017.8790))
  31659. {
  31660. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  31661. {
  31662. DestroyObject(hospybed);
  31663. hospybed = CreateDynamicObject(2146, 1217.627441, -1370.959229, 1017.364563, 0.0000, 0.0000, 90.0000);
  31664. return 1;
  31665. }
  31666. }
  31667. else
  31668. {
  31669. SendClientMessage(playerid, COLOR_GREY, " You are inside the hospital!");
  31670. return 1;
  31671. }
  31672. }
  31673. }*/
  31674. if(strcmp(cmd, "/safedeposit", true) == 0)
  31675. {
  31676. if(IsPlayerConnected(playerid))
  31677. {
  31678. if(PlayerInfo[playerid][pFMember] == 255)
  31679. {
  31680. SendClientMessage(playerid, COLOR_GREY, "You are not a member of a Family.");
  31681. return 1;
  31682. }
  31683. if(FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafe] == 0)
  31684. {
  31685. SendClientMessage(playerid, COLOR_GRAD2, "Your family does not own a safe.");
  31686. return 1;
  31687. }
  31688. if(!IsPlayerInRangeOfPoint(playerid, 2, FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][0], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][1], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][2]))
  31689. {
  31690. SendClientMessage(playerid, COLOR_GRAD2, "You are not at your Family Safe.");
  31691. return 1;
  31692. }
  31693. tmp = strtok(cmdtext, idx);
  31694. if(!strlen(tmp))
  31695. {
  31696. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
  31697. SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
  31698. return 1;
  31699. }
  31700. if(strcmp(tmp,"cash",true) == 0)
  31701. {
  31702. tmp = strtok(cmdtext, idx);
  31703. if(!strlen(tmp))
  31704. {
  31705. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
  31706. SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
  31707. return 1;
  31708. }
  31709. new deposit = strvalEx(tmp);
  31710. if(deposit > 1000000 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash] > 1000000)
  31711. {
  31712. SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than $1,000,000 in your safe.");
  31713. return 1;
  31714. }
  31715. if(deposit > PlayerInfo[playerid][pCash] || deposit < 1)
  31716. {
  31717. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  31718. return 1;
  31719. }
  31720. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31721. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-deposit;
  31722. GivePlayerMoney(playerid,-deposit);
  31723. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCash]+deposit;
  31724. format(string, sizeof(string), "* %s takes out some cash, and puts it in their safe.",sendername);
  31725. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31726. format(string, sizeof(string), "You have sucessfully deposited $%d into your family safe.", deposit);
  31727. SendClientMessage(playerid, COLOR_YELLOW, string);
  31728. SaveFamilies();
  31729. return 1;
  31730. }
  31731. if(strcmp(tmp,"pot",true) == 0)
  31732. {
  31733. tmp = strtok(cmdtext, idx);
  31734. if(!strlen(tmp))
  31735. {
  31736. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
  31737. SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
  31738. return 1;
  31739. }
  31740. new deposit = strvalEx(tmp);
  31741. if(deposit > 500 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot] > 500)
  31742. {
  31743. SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 500 grams of Pot in your safe.");
  31744. return 1;
  31745. }
  31746. if(deposit > PlayerInfo[playerid][pPot] || deposit < 1)
  31747. {
  31748. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  31749. return 1;
  31750. }
  31751. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31752. PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot]-deposit;
  31753. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyPot]+deposit;
  31754. format(string, sizeof(string), "* %s takes out some pot, and puts it in their safe.",sendername);
  31755. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31756. format(string, sizeof(string), "You have sucessfully deposited %d grams into your family safe.", deposit);
  31757. SendClientMessage(playerid, COLOR_YELLOW, string);
  31758. SaveFamilies();
  31759. return 1;
  31760. }
  31761. if(strcmp(tmp,"crack",true) == 0)
  31762. {
  31763. tmp = strtok(cmdtext, idx);
  31764. if(!strlen(tmp))
  31765. {
  31766. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
  31767. SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
  31768. return 1;
  31769. }
  31770. new deposit = strvalEx(tmp);
  31771. if(deposit > 250 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack] > 250)
  31772. {
  31773. SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 250 grams of Crack in your safe.");
  31774. return 1;
  31775. }
  31776. if(deposit > PlayerInfo[playerid][pCrack] || deposit < 1)
  31777. {
  31778. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  31779. return 1;
  31780. }
  31781. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31782. PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack]-deposit;
  31783. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyCrack]+deposit;
  31784. format(string, sizeof(string), "* %s takes out some crack, and puts it in their safe.",sendername);
  31785. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31786. format(string, sizeof(string), "You have sucessfully deposited %d grams into your family safe.", deposit);
  31787. SendClientMessage(playerid, COLOR_YELLOW, string);
  31788. SaveFamilies();
  31789. return 1;
  31790. }
  31791. if(strcmp(tmp,"materials",true) == 0)
  31792. {
  31793. tmp = strtok(cmdtext, idx);
  31794. if(!strlen(tmp))
  31795. {
  31796. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /safedeposit [name] [amount]{7DAEFF}");
  31797. SendClientMessage(playerid, COLOR_GREY, "Available names: Cash, Pot, Crack, Materials");
  31798. return 1;
  31799. }
  31800. new deposit = strvalEx(tmp);
  31801. if(deposit > 100000 || FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats] > 100000)
  31802. {
  31803. SendClientMessage(playerid, COLOR_GRAD2, "You can't have more than 100000 Materials in your safe !");
  31804. return 1;
  31805. }
  31806. if(deposit > PlayerInfo[playerid][pMats] || deposit < 1)
  31807. {
  31808. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  31809. return 1;
  31810. }
  31811. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  31812. PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats]-deposit;
  31813. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMats]+deposit;
  31814. format(string, sizeof(string), "* %s takes out some materials, and puts them in their safe.",sendername);
  31815. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31816. format(string, sizeof(string), "You have sucessfully deposited %d materials into your family safe.", deposit);
  31817. SendClientMessage(playerid, COLOR_YELLOW, string);
  31818. SaveFamilies();
  31819. return 1;
  31820. }
  31821. }
  31822. return 1;
  31823. }
  31824. if(strcmp(cmd, "/fsafe", true) == 0)
  31825. {
  31826. new fam = PlayerInfo[playerid][pFMember];
  31827. if (fam == 255) { SendClientMessage(playerid, COLOR_GREY, " You aren't in a family."); return 1; }
  31828. if(FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafe] == 0) { SendClientMessage(playerid, COLOR_GRAD2, " Your family does not own a safe !"); return 1; }
  31829. if(!IsPlayerInRangeOfPoint(playerid, 2, FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][0], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][1], FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySafePos][2])) { SendClientMessage(playerid, COLOR_GRAD2, " You are not at your Family Safe !"); return 1; }
  31830. new x_nr[32];
  31831. x_nr = strtok(cmdtext, idx);
  31832. if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe [put|get]{7DAEFF}"); return 1; }
  31833. if(strcmp(x_nr,"put",true) == 0)
  31834. {
  31835. new subcmd[24];
  31836. subcmd = strtok(cmdtext,idx);
  31837. if (!strlen(subcmd)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe put [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
  31838. tmp = strtok(cmdtext,idx);
  31839. if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
  31840. new amount;
  31841. amount = strval(tmp);
  31842. // fput mats
  31843. if(strcmp(subcmd, "mats", true) == 0)
  31844. {
  31845. if(PlayerInfo[playerid][pMats] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much materials."); return 1; }
  31846. if(amount < 1 || amount > 50000) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50000."); return 1; }
  31847. if(FamilyInfo[fam][FamilyMats] + amount > 200000) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 200,000 materials."); return 1; }
  31848. PlayerInfo[playerid][pMats] -= amount;
  31849. FamilyInfo[fam][FamilyMats] += amount;
  31850. SaveFamilies();
  31851. format(string, sizeof(string), "* %s deposits materials into a safe.", PlayerName(playerid));
  31852. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31853. return 1;
  31854. }
  31855. // fput pot
  31856. if(strcmp(subcmd, "pot", true) == 0)
  31857. {
  31858. if(PlayerInfo[playerid][pPot] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much pot."); return 1; }
  31859. if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50."); return 1; }
  31860. if(FamilyInfo[fam][FamilyPot] + amount > 50) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 50 pot."); return 1; }
  31861. PlayerInfo[playerid][pPot] -= amount;
  31862. FamilyInfo[fam][FamilyPot] += amount;
  31863. SaveFamilies();
  31864. format(string, sizeof(string), "* %s deposits some pot into a safe.", PlayerName(playerid));
  31865. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31866. return 1;
  31867. }
  31868. // fput crack
  31869. if(strcmp(subcmd, "crack", true)==0)
  31870. {
  31871. if(PlayerInfo[playerid][pCrack] < amount) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much crack."); return 1; }
  31872. if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 25."); return 1; }
  31873. if(FamilyInfo[fam][FamilyCrack] + amount > 25) { SendClientMessage(playerid,COLOR_GREY," Family safe can't hold more than 50 crack."); return 1; }
  31874. PlayerInfo[playerid][pCrack] -= amount;
  31875. FamilyInfo[fam][FamilyCrack] += amount;
  31876. SaveFamilies();
  31877. format(string, sizeof(string), "* %s deposits some crack into a safe.", PlayerName(playerid));
  31878. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31879. return 1;
  31880. }
  31881. // fput gun
  31882. if(strcmp(subcmd, "gun", true)==0)
  31883. {
  31884. new stored = 0;
  31885. new weapon = GetPlayerWeapon(playerid);
  31886. if(strcmp(tmp, "colt45", true) == 0)
  31887. {
  31888. if(FamilyInfo[fam][Colt45] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Colt45 locker is full."); return 1; }
  31889. if(weapon != 22 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Colt45."); return 1; }
  31890. FamilyInfo[fam][Colt45]++;
  31891. TakeWeapon(playerid,22);
  31892. stored = 1;
  31893. }
  31894. if(strcmp(tmp, "shotgun", true) == 0)
  31895. {
  31896. if(FamilyInfo[fam][Shotgun] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Shotgun locker is full."); return 1; }
  31897. if(weapon != 25 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Shotgun."); return 1; }
  31898. FamilyInfo[fam][Shotgun]++;
  31899. TakeWeapon(playerid,25);
  31900. stored = 1;
  31901. }
  31902. if(strcmp(tmp, "mp5", true) == 0)
  31903. {
  31904. if(FamilyInfo[fam][MP5] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family MP5 locker is full."); return 1; }
  31905. if(weapon != 29 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a MP5."); return 1; }
  31906. FamilyInfo[fam][MP5]++;
  31907. TakeWeapon(playerid,29);
  31908. stored = 1;
  31909. }
  31910. if(strcmp(tmp, "ak47", true) == 0)
  31911. {
  31912. if(FamilyInfo[fam][AK47] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family AK47 locker is full."); return 1; }
  31913. if(weapon != 30 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding an AK47."); return 1; }
  31914. FamilyInfo[fam][AK47]++;
  31915. TakeWeapon(playerid,30);
  31916. stored = 1;
  31917. }
  31918. if(strcmp(tmp, "m4", true) == 0)
  31919. {
  31920. if(FamilyInfo[fam][M4] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family M4 locker is full."); return 1; }
  31921. if(weapon != 31 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding an M4."); return 1; }
  31922. FamilyInfo[fam][M4]++;
  31923. TakeWeapon(playerid,31);
  31924. stored = 1;
  31925. }
  31926. if(strcmp(tmp, "spas12", true) == 0)
  31927. {
  31928. if(FamilyInfo[fam][SPAS12] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family SPAS12 locker is full."); return 1; }
  31929. if(weapon != 27 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a SPAS12."); return 1; }
  31930. FamilyInfo[fam][SPAS12]++;
  31931. TakeWeapon(playerid,27);
  31932. stored = 1;
  31933. }
  31934. if(strcmp(tmp, "rifle", true) == 0)
  31935. {
  31936. if(FamilyInfo[fam][Rifle] >= 10) { SendClientMessage(playerid, COLOR_GREY, " Your family Rifle locker is full."); return 1; }
  31937. if(weapon != 33 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Rifle."); return 1; }
  31938. FamilyInfo[fam][Rifle]++;
  31939. TakeWeapon(playerid,33);
  31940. stored = 1;
  31941. }
  31942. if(strcmp(tmp, "sniper", true) == 0)
  31943. {
  31944. if(FamilyInfo[fam][Sniper] >= 10) { SendClientMessage(playerid, COLOR_GREY, "Your family Sniper locker is full."); return 1; }
  31945. if(weapon != 34 || HaveWeapon(playerid,weapon) != weapon) { SendClientMessage(playerid,COLOR_GREY, " You are not holding a Sniper."); return 1; }
  31946. FamilyInfo[fam][Sniper]++;
  31947. TakeWeapon(playerid,34);
  31948. stored = 1;
  31949. }
  31950. if(stored == 1)
  31951. {
  31952. format(string, sizeof(string), "* %s places a %s into a safe.", PlayerName(playerid), tmp);
  31953. ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  31954. SaveFamilies();
  31955. }
  31956. return 1;
  31957. }
  31958. else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe put [money|mats|pot|crack|gun] [amount|name]{7DAEFF}");
  31959. }
  31960. if(strcmp(x_nr,"get",true) == 0)
  31961. {
  31962. new subcmd[24];
  31963. subcmd = strtok(cmdtext,idx);
  31964. if (!strlen(subcmd)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
  31965. tmp = strtok(cmdtext,idx);
  31966. if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [mats|pot|crack|gun] [amount|name]{7DAEFF}"); return 1; }
  31967. new amount;
  31968. amount = strval(tmp);
  31969. // fget mats
  31970. if(strcmp(subcmd, "mats", true) == 0)
  31971. {
  31972. if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY,"Only rank 5+ is allowed to take family materials.");
  31973. if(amount > FamilyInfo[fam][FamilyMats]) { SendClientMessage(playerid, COLOR_GREY, "Family safe doesn't have that much materials."); return 1; }
  31974. if(amount < 1 || amount > 50000) { SendClientMessage(playerid, COLOR_GREY, "Amount must be between 1 and 50000."); return 1; }
  31975. PlayerInfo[playerid][pMats] += amount;
  31976. FamilyInfo[fam][FamilyMats] -= amount;
  31977. SaveFamilies();
  31978. format(string, sizeof(string), "* %s takes some materials from a safe.", PlayerName(playerid));
  31979. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31980. return 1;
  31981. }
  31982. // fget pot
  31983. if(strcmp(subcmd, "pot", true) == 0)
  31984. {
  31985. if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY," Only rank 5+ is allowed to take family pot.");
  31986. if(amount > FamilyInfo[fam][FamilyPot]) { SendClientMessage(playerid, COLOR_GREY, " Family safe doesn't have that much pot."); return 1; }
  31987. if(amount < 1 || amount > 50) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 50."); return 1; }
  31988. if(amount + PlayerInfo[playerid][pPot] > 50) { SendClientMessage(playerid, COLOR_GREY, " You can only hold a max of 50 pot."); return 1; }
  31989. PlayerInfo[playerid][pPot] += amount;
  31990. FamilyInfo[fam][FamilyPot] -= amount;
  31991. SaveFamilies();
  31992. format(string, sizeof(string), "* %s takes some pot from a safe.", PlayerName(playerid));
  31993. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  31994. return 1;
  31995. }
  31996. // fget crack
  31997. if(strcmp(subcmd, "crack", true)==0)
  31998. {
  31999. if(PlayerInfo[playerid][pFRank] < 5) return SendClientMessage(playerid,COLOR_GREY," Only rank 5+ is allowed to take family crack.");
  32000. if(amount > FamilyInfo[fam][FamilyCrack]) { SendClientMessage(playerid, COLOR_GREY, " Family safe doesn't have that much crack."); return 1; }
  32001. if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " Amount must be between 1 and 25."); return 1; }
  32002. if(amount + PlayerInfo[playerid][pCrack] > 25) { SendClientMessage(playerid, COLOR_GREY, " You can only hold a max of 25 crack."); return 1; }
  32003. PlayerInfo[playerid][pCrack] += amount;
  32004. FamilyInfo[fam][FamilyCrack] -= amount;
  32005. SaveFamilies();
  32006. format(string, sizeof(string), "* %s takes some crack from a safe.", PlayerName(playerid));
  32007. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32008. return 1;
  32009. }
  32010. // fget gun
  32011. if(strcmp(subcmd, "gun", true)==0)
  32012. {
  32013. if(PlayerInfo[playerid][pFRank] < 2) return SendClientMessage(playerid,COLOR_GREY," Only rank 2+ is allowed to take family guns.");
  32014. new got = 0;
  32015. if(strcmp(tmp, "colt45", true) == 0)
  32016. {
  32017. if(FamilyInfo[fam][Colt45] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Colt45 locker is empty."); return 1; }
  32018. if(HaveWeapon(playerid,22) == 22) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Colt45."); return 1; }
  32019. FamilyInfo[fam][Colt45]--;
  32020. GivePlayerGun(playerid,22);
  32021. got = 1;
  32022. }
  32023. if(strcmp(tmp, "shotgun", true) == 0)
  32024. {
  32025. if(FamilyInfo[fam][Shotgun] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Shotgun locker is empty."); return 1; }
  32026. if(HaveWeapon(playerid,25) == 25) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Shotgun."); return 1; }
  32027. FamilyInfo[fam][Shotgun]--;
  32028. GivePlayerGun(playerid,25);
  32029. got = 1;
  32030. }
  32031. if(strcmp(tmp, "mp5", true) == 0)
  32032. {
  32033. if(FamilyInfo[fam][MP5] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family MP5 locker is empty."); return 1; }
  32034. if(HaveWeapon(playerid,29) == 29) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a MP5."); return 1; }
  32035. FamilyInfo[fam][MP5]--;
  32036. GivePlayerGun(playerid,29);
  32037. got = 1;
  32038. }
  32039. if(strcmp(tmp, "ak47", true) == 0)
  32040. {
  32041. if(FamilyInfo[fam][AK47] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family AK47 locker is empty."); return 1; }
  32042. if(HaveWeapon(playerid,30) == 30) { SendClientMessage(playerid,COLOR_GREY, " You are already holding an AK47."); return 1; }
  32043. FamilyInfo[fam][AK47]--;
  32044. GivePlayerGun(playerid,30);
  32045. got = 1;
  32046. }
  32047. if(strcmp(tmp, "m4", true) == 0)
  32048. {
  32049. if(FamilyInfo[fam][M4] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family M4 locker is empty."); return 1; }
  32050. if(HaveWeapon(playerid,31) == 31) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a M4."); return 1; }
  32051. FamilyInfo[fam][M4]--;
  32052. GivePlayerGun(playerid,31);
  32053. got = 1;
  32054. }
  32055. if(strcmp(tmp, "spas12", true) == 0)
  32056. {
  32057. if(FamilyInfo[fam][SPAS12] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family SPAS12 locker is empty."); return 1; }
  32058. if(HaveWeapon(playerid,27) == 27) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a SPAS12."); return 1; }
  32059. FamilyInfo[fam][SPAS12]--;
  32060. GivePlayerGun(playerid,27);
  32061. got = 1;
  32062. }
  32063. if(strcmp(tmp, "rifle", true) == 0)
  32064. {
  32065. if(FamilyInfo[fam][Rifle] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Rifle locker is empty."); return 1; }
  32066. if(HaveWeapon(playerid,33) == 33) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Rifle."); return 1; }
  32067. FamilyInfo[fam][Rifle]--;
  32068. GivePlayerGun(playerid,33);
  32069. got = 1;
  32070. }
  32071. if(strcmp(tmp, "sniper", true) == 0)
  32072. {
  32073. if(FamilyInfo[fam][Sniper] <= 0) { SendClientMessage(playerid, COLOR_GREY, " Your family Sniper locker is empty."); return 1; }
  32074. if(HaveWeapon(playerid,34) == 34) { SendClientMessage(playerid,COLOR_GREY, " You are already holding a Sniper."); return 1; }
  32075. FamilyInfo[fam][Sniper]--;
  32076. GivePlayerGun(playerid,34);
  32077. got = 1;
  32078. }
  32079. if(got == 1)
  32080. {
  32081. format(string, sizeof(string), "* %s takes a %s from a safe.", PlayerName(playerid), tmp);
  32082. ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  32083. SaveFamilies();
  32084. }
  32085. return 1;
  32086. }
  32087. else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe get [money|mats|pot|crack|gun] [amount|name]{7DAEFF}");
  32088. }
  32089. else SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /fsafe [put|get]{7DAEFF}");
  32090. return 1;
  32091. }
  32092. if(strcmp(cmd, "/fstats", true) == 0)
  32093. {
  32094. if(PlayerInfo[playerid][pFMember] == 255) { SendClientMessage(playerid, COLOR_GREY, "You are not in a family."); return 1; }
  32095. new fam = PlayerInfo[playerid][pFMember];
  32096. format(string, 256, "Family: %s, Money: $%d, Mats: %d, Pot: %d, Crack: %d",
  32097. FamilyInfo[fam][FamilyName], FamilyInfo[fam][FamilyBank], FamilyInfo[fam][FamilyMats], FamilyInfo[fam][FamilyPot], FamilyInfo[fam][FamilyCrack]);
  32098. SendClientMessage(playerid, COLOR_YELLOW2, string);
  32099. format(string, sizeof(string), "Colt45: %d, Shotgun: %d, MP5: %d, AK47: %d, M4: %d, Rifle: %d, Sniper: %d, SPAS12: %d",
  32100. FamilyInfo[fam][Colt45], FamilyInfo[fam][Shotgun], FamilyInfo[fam][MP5],
  32101. FamilyInfo[fam][AK47], FamilyInfo[fam][M4], FamilyInfo[fam][Rifle], FamilyInfo[fam][Sniper], FamilyInfo[fam][SPAS12]);
  32102. SendClientMessage(playerid, COLOR_YELLOW2, string);
  32103. return 1;
  32104. }
  32105. if(strcmp(cmd, "/afstats", true) == 0)
  32106. {
  32107. if(!(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pGangMod])) { SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); return 1; }
  32108. new fam;
  32109. tmp = strtok(cmdtext,idx);
  32110. if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /afstats [family]{7DAEFF}"); return 1; }
  32111. fam = strval(tmp);
  32112. if (fam < 1 || fam > 14) { SendClientMessage(playerid, COLOR_GREY, "Family number must be between 1 and 14."); return 1; }
  32113. fam--;
  32114. format(string, 256, "Family: %s, Money: $%d, Mats: %d, Pot: %d, Crack: %d",
  32115. FamilyInfo[fam][FamilyName], FamilyInfo[fam][FamilyBank], FamilyInfo[fam][FamilyMats], FamilyInfo[fam][FamilyPot], FamilyInfo[fam][FamilyCrack]);
  32116. SendClientMessage(playerid, COLOR_YELLOW2, string);
  32117. format(string, sizeof(string), "Colt45: %d, Shotgun: %d, MP5: %d, AK47: %d, M4: %d, Rifle: %d, Sniper: %d, SPAS12: %d",
  32118. FamilyInfo[fam][Colt45], FamilyInfo[fam][Shotgun], FamilyInfo[fam][MP5],
  32119. FamilyInfo[fam][AK47], FamilyInfo[fam][M4], FamilyInfo[fam][Rifle], FamilyInfo[fam][Sniper], FamilyInfo[fam][SPAS12]);
  32120. SendClientMessage(playerid, COLOR_YELLOW2, string);
  32121. return 1;
  32122. }
  32123.  
  32124. if(strcmp(cmd, "/lotto", true) == 0)
  32125. {
  32126. if(PlayerInfo[playerid][pInBiz] == 999)
  32127. {
  32128. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a lotto agency !");
  32129. return 1;
  32130. }
  32131. new biz = PlayerInfo[playerid][pInBiz];
  32132. if(BizInfo[biz][bType] != 8) // None
  32133. {
  32134. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a lotto agency !");
  32135. return 1;
  32136. }
  32137. if(PlayerInfo[playerid][pPlayLotto] != 999) // None
  32138. {
  32139. SendClientMessage(playerid, COLOR_GRAD2, " You already bought a ticket !");
  32140. return 1;
  32141. }
  32142. if(BizInfo[biz][bProducts] <= 0) // None
  32143. {
  32144. SendClientMessage(playerid, COLOR_GRAD2, " This business doesn't have any products left !");
  32145. return 1;
  32146. }
  32147. ShowPlayerDialog(playerid,LOTTODIALOG,DIALOG_STYLE_LIST,"Lotto agengy","1 chance ($5,000)\n2 chances ($15,000)","Buy","Cancel"); //Clothing shop
  32148. return 1;
  32149. }
  32150.  
  32151. if(strcmp(cmd, "/cancellotto", true) == 0)
  32152. {
  32153. if(PlayerInfo[playerid][pPlayLotto] == 999) // None
  32154. {
  32155. SendClientMessage(playerid, COLOR_GRAD2, "You don't have a ticket.");
  32156. return 1;
  32157. }
  32158. PlayerInfo[playerid][pLottoNr] = 0;
  32159. PlayerInfo[playerid][pLottoNr2] = 0;
  32160. PlayerInfo[playerid][pLottoNr3] = 0;
  32161. PlayerInfo[playerid][pLottoNr4] = 0;
  32162. PlayerInfo[playerid][pLottoNr5] = 0;
  32163. PlayerInfo[playerid][pLottoNr6] = 0;
  32164. PlayerInfo[playerid][pPlayLotto] = 999;
  32165. SendClientMessage(playerid, COLOR_GRAD2, "You have canceled your lotto ticket(s).");
  32166. return 1;
  32167. }
  32168.  
  32169. if(strcmp(cmd, "/train", true) == 0)
  32170. {
  32171. if(!IsPlayerInRangeOfPoint(playerid, 3, 1230.1084,-772.6608,1084.0127))
  32172. {
  32173. SendClientMessage(playerid, COLOR_GRAD2, "You are not at a trainer.");
  32174. return 1;
  32175. }
  32176. DisplayDialogForPlayer(playerid, 5); //Training
  32177. return 1;
  32178. }
  32179. if(strcmp(cmd, "/adivorce", true) == 0)
  32180. {
  32181. if(IsPlayerConnected(playerid))
  32182. {
  32183. tmp = strtok(cmdtext, idx);
  32184. if(!strlen(tmp))
  32185. {
  32186. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adivorce [playerid/PartOfName]{7DAEFF}");
  32187. return 1;
  32188. }
  32189. giveplayerid = ReturnUser(tmp);
  32190. if(PlayerInfo[playerid][pAdmin] >= 4)
  32191. {
  32192. if(IsPlayerConnected(giveplayerid))
  32193. {
  32194. if(giveplayerid != INVALID_PLAYER_ID)
  32195. {
  32196. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  32197. format(string, sizeof(string), "You have reset %s's marriage status.", giveplayer);
  32198. SendClientMessage(playerid, COLOR_GREY, string);
  32199. SendClientMessage(giveplayerid, COLOR_YELLOW, "Your marriage status has been reset by an Administrator.");
  32200. ClearMarriage(giveplayerid);
  32201. }
  32202. }
  32203. else
  32204. {
  32205. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  32206. }
  32207. }
  32208. else
  32209. {
  32210. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  32211. }
  32212. }
  32213. return 1;
  32214. }
  32215. if(strcmp(cmd, "/call", true) == 0)
  32216. {
  32217. if(IsPlayerConnected(playerid))
  32218. {
  32219. if(PlayerInfo[playerid][pJailed] == 2) // COMMENTED
  32220. {
  32221. if(!IsPlayerInRangeOfPoint(playerid,2.0,185.3808,1923.9442,17.7778))
  32222. {
  32223. SendClientMessage(playerid, COLOR_GRAD2, "You are not at the prison payphone.");
  32224. return 1;
  32225. }
  32226. }
  32227. else if(PlayerInfo[playerid][pPnumber] == 0)
  32228. {
  32229. SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone.");
  32230. SendClientMessage(playerid, COLOR_WHITE,"HINT: You can /buy a cell phone from a Phone Shop.");
  32231. return 1;
  32232. }
  32233. if(PlayerInfo[playerid][pHospital] != 0 || PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
  32234. {
  32235. SendClientMessage(playerid, COLOR_GRAD2, "You are unable to use your cell phone at this time.");
  32236. return 1;
  32237. }
  32238. tmp = strtok(cmdtext, idx);
  32239. if(!strlen(tmp))
  32240. {
  32241. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /call [phonenumber]{7DAEFF}");
  32242. return 1;
  32243. }
  32244. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  32245. format(string, sizeof(string), "* %s takes out a cellphone.", sendername);
  32246. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32247. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  32248. SetPlayerAttachedObject(playerid, 5, 330, 6);
  32249. new phonenumb = strvalEx(tmp);
  32250. if(phonenumb == 911)
  32251. {
  32252. SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
  32253. SendClientMessage(playerid, COLOR_DOC, "EMERGENCY: Which Service Do You Require, Police or Paramedic?");
  32254. Mobile[playerid] = 911;
  32255. return 1;
  32256. }
  32257. else if(PlayerInfo[playerid][pCredits] < 25)
  32258. return SendClientMessage(playerid, COLOR_GREY, "You dont have any money on your phone, Reload at the nearest Phone Company.");
  32259.  
  32260. if(phonenumb == PlayerInfo[playerid][pPnumber])
  32261. {
  32262. SendClientMessage(playerid, COLOR_GRAD2, " You just get a busy tone...");
  32263. return 1;
  32264. }
  32265. if(Mobile[playerid] != 255)
  32266. {
  32267. SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call...");
  32268. return 1;
  32269. }
  32270. //foreach(Player, i)
  32271. for(new i; i<MAX_PLAYERS; i++)
  32272. {
  32273. if(IsPlayerConnected(i))
  32274. {
  32275. if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
  32276. {
  32277. giveplayerid = i;
  32278. Mobile[playerid] = giveplayerid; //caller connecting
  32279. if(IsPlayerConnected(giveplayerid))
  32280. {
  32281. if(giveplayerid != INVALID_PLAYER_ID)
  32282. {
  32283. if(PhoneOnline[giveplayerid] > 0)
  32284. {
  32285. SendClientMessage(playerid, COLOR_GREY, " That players Phone is Offline !");
  32286. return 1;
  32287. }
  32288. if(PlayerInfo[giveplayerid][pHospital] == 1)
  32289. {
  32290. SendClientMessage(playerid, COLOR_GRAD2, " That player is unable to speak at this time !");
  32291. return 1;
  32292. }
  32293. if(Mobile[giveplayerid] == 255)
  32294. {
  32295. new callnumber = PlayerInfo[playerid][pPnumber];
  32296. format(string, sizeof(string), "Your Mobile is Ringing Type (/Pickup) Caller number: %d", callnumber);
  32297. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  32298. GetPlayerNameEx(giveplayerid, sendername, sizeof(sendername));
  32299. if(PlayerInfo[giveplayerid][pMask] == 1)
  32300. {
  32301. format(string, sizeof(string), "* Stranger's phone begins to ring.");
  32302. }
  32303. else
  32304. {
  32305. format(string, sizeof(string), "* %s's phone begins to ring.", sendername);
  32306. }
  32307. SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
  32308. ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32309. CellTime[playerid] = 1;
  32310. PlayerInfo[playerid][pCredits] -= callcost;
  32311. if(PlayerInfo[playerid][pJailed] == 2)
  32312. {
  32313. TogglePlayerControllable(playerid, 0);
  32314. }
  32315. return 1;
  32316. }
  32317. }
  32318. }
  32319. }
  32320. }
  32321. }
  32322. SendClientMessage(playerid, COLOR_GRAD2, "You just get a Busy tone...");
  32323. }
  32324. return 1;
  32325. }
  32326. if(strcmp(cmd, "/txt", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
  32327. {
  32328. if(IsPlayerConnected(playerid))
  32329. {
  32330. if(gPlayerLogged[playerid] == 0)
  32331. {
  32332. SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet.");
  32333. return 1;
  32334. }
  32335. tmp = strtok(cmdtext, idx);
  32336. if(!strlen(tmp))
  32337. {
  32338. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/t)ext [phonenumber] [text chat]{7DAEFF}");
  32339. return 1;
  32340. }
  32341. if(PlayerInfo[playerid][pPnumber] == 0)
  32342. {
  32343. SendClientMessage(playerid, COLOR_GRAD2, "You dont't have a cell phone.");
  32344. SendClientMessage(playerid, COLOR_WHITE, "HINT: You can purchase one from any 24/7.");
  32345. return 1;
  32346. }
  32347. if(PlayerInfo[playerid][pHospital] != 0 || PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerInfo[playerid][pJailed] == 2)
  32348. {
  32349. SendClientMessage(playerid, COLOR_GRAD2, "You are unable to use your cell phone at this time.");
  32350. return 1;
  32351. }
  32352. if(PlayerInfo[playerid][pCredits] < 5)
  32353. return SendClientMessage(playerid, COLOR_GREY, "You dont have any money on your phone, Reload at the nearest Phone Company.");
  32354.  
  32355. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  32356. if(PlayerInfo[playerid][pMask] == 1)
  32357. {
  32358. format(string, sizeof(string), "* Stranger takes out a cellphone and starts texting.");
  32359. }
  32360. else
  32361. {
  32362. format(string, sizeof(string), "* %s takes out a cellphone and starts texting.", sendername);
  32363. }
  32364. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32365. new phonenumb = strvalEx(tmp);
  32366. new length = strlen(cmdtext);
  32367. while ((idx < length) && (cmdtext[idx] <= ' '))
  32368. {
  32369. idx++;
  32370. }
  32371. new offset = idx;
  32372. new result[96];
  32373. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  32374. {
  32375. result[idx - offset] = cmdtext[idx];
  32376. idx++;
  32377. }
  32378. result[idx - offset] = EOS;
  32379. if(!strlen(result))
  32380. {
  32381. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/t)ext [phonenumber] [text chat]{7DAEFF}");
  32382. return 1;
  32383. }
  32384. //foreach(Player, i)
  32385. for(new i; i<MAX_PLAYERS; i++)
  32386. {
  32387. if(IsPlayerConnected(i))
  32388. {
  32389. if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
  32390. {
  32391. giveplayerid = i;
  32392. Mobile[playerid] = giveplayerid;
  32393. new smsstring[128];
  32394. if(IsPlayerConnected(giveplayerid))
  32395. {
  32396. if(giveplayerid != INVALID_PLAYER_ID)
  32397. {
  32398. if(PhoneOnline[giveplayerid] > 0)
  32399. {
  32400. SendClientMessage(playerid, COLOR_GREY, "That players Phone is Offline.");
  32401. return 1;
  32402. }
  32403. if(PlayerInfo[playerid][pMask] > 0)
  32404. {
  32405. format(smsstring, sizeof(smsstring), "["CB"SMS Inbox"CW"]"CB" Sender:"CW" UNKNOWN",result);
  32406. }
  32407. else
  32408. {
  32409. format(smsstring, sizeof(smsstring), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",PlayerInfo[playerid][pPnumber]);
  32410. }
  32411. format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
  32412. GetPlayerName(giveplayerid, sendername, sizeof(sendername));
  32413. SendClientMessage(playerid, COLOR_WHITE, "Text Message Delivered");
  32414. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  32415. SendClientMessage(playerid, COLOR_YELLOW, string);
  32416. format(string, sizeof(string), "~r~$-%d", 25);
  32417. GameTextForPlayer(playerid, string, 5000, 1);
  32418. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-25;
  32419. GivePlayerMoney(playerid,-25);
  32420. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  32421. Mobile[playerid] = 255;
  32422. PlayerInfo[playerid][pCredits] -= 5;
  32423. return 1;
  32424. }
  32425. }
  32426. }
  32427. }
  32428. }
  32429. SendClientMessage(playerid, COLOR_GRAD2, "Message Delivery Failed...");
  32430. }
  32431. return 1;
  32432. }
  32433. if(strcmp(cmdtext, "/pbalance", true) == 0)
  32434. {
  32435. if(IsPlayerConnected(playerid))
  32436. {
  32437. if(PlayerInfo[playerid][pPnumber] == 0)
  32438. return SendClientMessage(playerid, COLOR_GRAD2, " You dont't have a cell phone...");
  32439.  
  32440. format(string, sizeof(string), "Credits left on the phone: %d", PlayerInfo[playerid][pCredits]);
  32441. SendClientMessage(playerid, COLOR_YELLOW, string);
  32442. }
  32443. return 1;
  32444. }
  32445. if(strcmp(cmdtext, "/speakon", true) == 0)
  32446. {
  32447. if(IsPlayerConnected(playerid))
  32448. {
  32449. if(PlayerInfo[playerid][pPnumber] == 0)
  32450. {
  32451. SendClientMessage(playerid, COLOR_GREY, " You do not own a phone !");
  32452. return 1;
  32453. }
  32454. if(Mobile[playerid] == 255)
  32455. {
  32456. SendClientMessage(playerid, COLOR_GREY, " You are not on a phone call !");
  32457. return 1;
  32458. }
  32459. if(PlayerInfo[playerid][pSpeakPhone] == 0)
  32460. {
  32461. SendClientMessage(playerid, COLOR_YELLOW2, "Speaker phone on.");
  32462. PlayerInfo[playerid][pSpeakPhone] = 1;
  32463. return 1;
  32464. }
  32465. if(PlayerInfo[playerid][pSpeakPhone] == 1)
  32466. {
  32467. SendClientMessage(playerid, COLOR_YELLOW2, "Speaker phone off.");
  32468. PlayerInfo[playerid][pSpeakPhone] = 0;
  32469. return 1;
  32470. }
  32471. }
  32472. return 1;
  32473. }
  32474. if(strcmp(cmd, "/pickup", true) == 0 || strcmp(cmd, "/p", true) == 0)
  32475. {
  32476. if(IsPlayerConnected(playerid))
  32477. {
  32478. if(Mobile[playerid] != 255)
  32479. {
  32480. SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call...");
  32481. return 1;
  32482. }
  32483. //foreach(Player, i)
  32484. for(new i; i<MAX_PLAYERS; i++)
  32485. {
  32486. if(IsPlayerConnected(i))
  32487. {
  32488. if(Mobile[i] == playerid)
  32489. {
  32490. Mobile[playerid] = i; //caller connecting
  32491. SendClientMessage(i, COLOR_GRAD2, " They Picked up the call.");
  32492. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  32493. if(PlayerInfo[playerid][pMask] == 1)
  32494. {
  32495. format(string, sizeof(string), "* Stranger answers their cellphone.");
  32496. }
  32497. else
  32498. {
  32499. format(string, sizeof(string), "* %s answers their cellphone.", sendername);
  32500. }
  32501. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32502. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  32503. SetPlayerAttachedObject(playerid, 5, 330, 6);
  32504. }
  32505.  
  32506. }
  32507. }
  32508. }
  32509. return 1;
  32510. }
  32511. if(strcmp(cmd, "/hangup", true) == 0 || strcmp(cmd, "/h", true) == 0)
  32512. {
  32513. if(IsPlayerConnected(playerid))
  32514. {
  32515. new caller = Mobile[playerid];
  32516. if(IsPlayerConnected(caller))
  32517. {
  32518. if(caller != INVALID_PLAYER_ID)
  32519. {
  32520. if(caller != 255)
  32521. {
  32522. if(caller < 255)
  32523. {
  32524. SendClientMessage(caller, COLOR_GRAD2, " They hung up.");
  32525. CellTime[caller] = 0;
  32526. CellTime[playerid] = 0;
  32527. SendClientMessage(playerid, COLOR_GRAD2, " You hung up.");
  32528. Mobile[caller] = 255;
  32529. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  32530. SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE);
  32531. RemovePlayerAttachedObject(playerid, 5);
  32532. RemovePlayerAttachedObject(caller, 5);
  32533. }
  32534. Mobile[playerid] = 255;
  32535. CellTime[playerid] = 0;
  32536. if(PlayerInfo[playerid][pJailed] == 2)
  32537. {
  32538. TogglePlayerControllable(playerid, 1);
  32539. }
  32540. return 1;
  32541. }
  32542. }
  32543. }
  32544. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  32545. if(PlayerInfo[playerid][pMask] > 0) { sendername = "Stranger"; }
  32546. format(string, sizeof(string), "* %s puts away their cellphone.", sendername);
  32547. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  32548. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  32549. RemovePlayerAttachedObject(playerid, 5);
  32550. }
  32551. return 1;
  32552. }
  32553. if(strcmp(cmd, "/fixr", true) == 0)
  32554. {
  32555. if(IsPlayerConnected(playerid))
  32556. {
  32557. PlayerFixRadio(playerid);
  32558. }
  32559. return 1;
  32560. }
  32561. if(strcmp(cmd, "/time", true) == 0)
  32562. {
  32563. if(IsPlayerConnected(playerid))
  32564. {
  32565. if(PlayerInfo[playerid][pWatch] == 0)
  32566. {
  32567. SendClientMessage(playerid, COLOR_GREY, "You don't have a watch, buy one from any 24/7 store.");
  32568. return 1;
  32569. }
  32570. new mtext[20];
  32571. new year, month, day;
  32572. getdate(year, month, day);
  32573. if(month == 1) { mtext = "January"; }
  32574. else if(month == 2) { mtext = "February"; }
  32575. else if(month == 3) { mtext = "March"; }
  32576. else if(month == 4) { mtext = "April"; }
  32577. else if(month == 5) { mtext = "May"; }
  32578. else if(month == 6) { mtext = "June"; }
  32579. else if(month == 7) { mtext = "July"; }
  32580. else if(month == 8) { mtext = "August"; }
  32581. else if(month == 9) { mtext = "September"; }
  32582. else if(month == 10) { mtext = "October"; }
  32583. else if(month == 11) { mtext = "November"; }
  32584. else if(month == 12) { mtext = "December"; }
  32585. new hour,minuite,second;
  32586. gettime(hour,minuite,second);
  32587. FixHour(hour);
  32588. hour = shifthour;
  32589. if(minuite < 10)
  32590. {
  32591. if(PlayerInfo[playerid][pJailTime] > 0)
  32592. {
  32593. format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
  32594. }
  32595. else
  32596. {
  32597. format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|", day, mtext, hour, minuite);
  32598. }
  32599. }
  32600. else
  32601. {
  32602. if(PlayerInfo[playerid][pJailTime] > 0)
  32603. {
  32604. format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
  32605. }
  32606. else
  32607. {
  32608. format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|", day, mtext, hour, minuite);
  32609. }
  32610. }
  32611. GameTextForPlayer(playerid, string, 5000, 1);
  32612. if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_watch",4.0,0,0,0,0,0); }
  32613. }
  32614. return 1;
  32615. }
  32616. if(strcmp(cmd, "/gotocar", true) == 0)
  32617. {
  32618. if(IsPlayerConnected(playerid))
  32619. {
  32620. if(PlayerInfo[playerid][pAdmin] >= 5)
  32621. {
  32622. tmp = strtok(cmdtext, idx);
  32623. if(!strlen(tmp))
  32624. {
  32625. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotocar [vehicleid]{7DAEFF}");
  32626. return 1;
  32627. }
  32628. if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) { SendClientMessage(playerid, COLOR_GREY, " You can not do that while spectating !"); return 1; }
  32629. new vehid = strvalEx(tmp);
  32630. new Float:vX, Float:vY, Float:vZ;
  32631. GetVehiclePos(vehid, vX, vY, vZ);
  32632. SetPlayerPos(playerid, vX, vY, vZ+3);
  32633. SetPlayerVirtualWorld(playerid, 0);
  32634. SetPlayerInterior(playerid, 0);
  32635. PlayerInfo[playerid][pInt] = 0;
  32636. PlayerInfo[playerid][pLocal] = 999;
  32637. PlayerInfo[playerid][pVirtualWorld] = 0;
  32638. GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);
  32639. }
  32640. else
  32641. {
  32642. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  32643. }
  32644. }
  32645. return 1;
  32646. }
  32647. if(strcmp(cmd, "/dedit", true) == 0)
  32648. {
  32649. if(PlayerInfo[playerid][pAdmin] < 5)
  32650. {
  32651. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  32652. return 1;
  32653. }
  32654. tmp = strtok(cmdtext, idx);
  32655. if(!strlen(tmp))
  32656. {
  32657. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
  32658. SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
  32659. return 1;
  32660. }
  32661. if(strcmp(tmp,"pot",true) == 0)
  32662. {
  32663. tmp = strtok(cmdtext, idx);
  32664. if(!strlen(tmp))
  32665. {
  32666. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
  32667. SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
  32668. return 1;
  32669. }
  32670. new amount = strvalEx(tmp);
  32671. if(amount < 0 || amount > dhlimit) { format(string, sizeof(string), "Amount can not be greater than %d !", dhlimit); SendClientMessage(playerid, COLOR_GREY, string); return 1; }
  32672. dhstock = amount;
  32673. format(string, sizeof(string), "You have adjusted the amount of Pot in the Drug House: %d/%d.", dhstock, dhlimit);
  32674. SendClientMessage(playerid, COLOR_WHITE, string);
  32675. }
  32676. else if(strcmp(tmp,"crack",true) == 0)
  32677. {
  32678. tmp = strtok(cmdtext, idx);
  32679. if(!strlen(tmp))
  32680. {
  32681. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /dedit [name] [amount]{7DAEFF}");
  32682. SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
  32683. return 1;
  32684. }
  32685. new amount = strvalEx(tmp);
  32686. if(amount < 0 || amount > chlimit) { format(string, sizeof(string), "Amount can not be greater than %d !", chstock); SendClientMessage(playerid, COLOR_GREY, string); return 1; }
  32687. chstock = amount;
  32688. format(string, sizeof(string), "You have adjusted the amount of Crack in the Crack Lab: %d/%d.", chstock, chlimit);
  32689. SendClientMessage(playerid, COLOR_WHITE, string);
  32690. }
  32691. return 1;
  32692. }
  32693. if(strcmp(cmd, "/fedit", true) == 0)
  32694. {
  32695. if(IsPlayerConnected(playerid))
  32696. {
  32697. if(!(PlayerInfo[playerid][pGangMod]) && PlayerInfo[playerid][pAdmin] < 5)
  32698. {
  32699. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use this command.");
  32700. return 1;
  32701. }
  32702. tmp = strtok(cmdtext, idx);
  32703. if(!strlen(tmp))
  32704. {
  32705. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32706. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32707. return 1;
  32708. }
  32709. new family = strvalEx(tmp);
  32710. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14 !"); return 1; }
  32711. tmp = strtok(cmdtext, idx);
  32712. if(!strlen(tmp))
  32713. {
  32714. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32715. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32716. return 1;
  32717. }
  32718. if(strcmp(tmp,"maxskins",true) == 0)
  32719. {
  32720. tmp = strtok(cmdtext, idx);
  32721. if(!strlen(tmp))
  32722. {
  32723. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32724. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32725. return 1;
  32726. }
  32727. new amount = strvalEx(tmp);
  32728. if(amount < 0 || amount > 8) { SendClientMessage(playerid, COLOR_GREY, "MaxSkins can't be below 0 or above 8 !"); return 1; }
  32729. FamilyInfo[family-1][FamilySkins] = amount;
  32730. format(string, sizeof(string), "You have adjusted the MaxSkins of Family %d to %d", family, amount);
  32731. SendClientMessage(playerid, COLOR_WHITE, string);
  32732. SaveFamilies();
  32733. return 1;
  32734. }
  32735. if(strcmp(tmp,"skin1",true) == 0)
  32736. {
  32737. tmp = strtok(cmdtext, idx);
  32738. if(!strlen(tmp))
  32739. {
  32740. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32741. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32742. return 1;
  32743. }
  32744. new amount = strvalEx(tmp);
  32745. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299."); return 1; }
  32746. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin."); return 1; }
  32747. FamilyInfo[family-1][FamilySkin1] = amount;
  32748. format(string, sizeof(string), "You have adjusted Family %d's Skin1 to Skin ID %d", family, amount);
  32749. SendClientMessage(playerid, COLOR_WHITE, string);
  32750. SaveFamilies();
  32751. return 1;
  32752. }
  32753. if(strcmp(tmp,"skin2",true) == 0)
  32754. {
  32755. tmp = strtok(cmdtext, idx);
  32756. if(!strlen(tmp))
  32757. {
  32758. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32759. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32760. return 1;
  32761. }
  32762. new amount = strvalEx(tmp);
  32763. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32764. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
  32765. FamilyInfo[family-1][FamilySkin2] = amount;
  32766. format(string, sizeof(string), "You have adjusted Family %d's Skin2 to Skin ID %d", family, amount);
  32767. SendClientMessage(playerid, COLOR_WHITE, string);
  32768. SaveFamilies();
  32769. return 1;
  32770. }
  32771. if(strcmp(tmp,"skin3",true) == 0)
  32772. {
  32773. tmp = strtok(cmdtext, idx);
  32774. if(!strlen(tmp))
  32775. {
  32776. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32777. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32778. return 1;
  32779. }
  32780. new amount = strvalEx(tmp);
  32781. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32782. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
  32783. FamilyInfo[family-1][FamilySkin3] = amount;
  32784. format(string, sizeof(string), "You have adjusted Family %d's Skin3 to Skin ID %d", family, amount);
  32785. SendClientMessage(playerid, COLOR_WHITE, string);
  32786. SaveFamilies();
  32787. return 1;
  32788. }
  32789. if(strcmp(tmp,"skin4",true) == 0)
  32790. {
  32791. tmp = strtok(cmdtext, idx);
  32792. if(!strlen(tmp))
  32793. {
  32794. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32795. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32796. return 1;
  32797. }
  32798. new amount = strvalEx(tmp);
  32799. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, " Skin can't be below 0 or above 299 !"); return 1; }
  32800. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, " Invalid Skin !"); return 1; }
  32801. FamilyInfo[family-1][FamilySkin4] = amount;
  32802. format(string, sizeof(string), "You have adjusted Family %d's Skin4 to Skin ID %d", family, amount);
  32803. SendClientMessage(playerid, COLOR_WHITE, string);
  32804. SaveFamilies();
  32805. return 1;
  32806. }
  32807. if(strcmp(tmp,"skin5",true) == 0)
  32808. {
  32809. tmp = strtok(cmdtext, idx);
  32810. if(!strlen(tmp))
  32811. {
  32812. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32813. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32814. return 1;
  32815. }
  32816. new amount = strvalEx(tmp);
  32817. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32818. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
  32819. FamilyInfo[family-1][FamilySkin5] = amount;
  32820. format(string, sizeof(string), "You have adjusted Family %d's Skin5 to Skin ID %d", family, amount);
  32821. SendClientMessage(playerid, COLOR_WHITE, string);
  32822. SaveFamilies();
  32823. return 1;
  32824. }
  32825. if(strcmp(tmp,"skin6",true) == 0)
  32826. {
  32827. tmp = strtok(cmdtext, idx);
  32828. if(!strlen(tmp))
  32829. {
  32830. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32831. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32832. return 1;
  32833. }
  32834. new amount = strvalEx(tmp);
  32835. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32836. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
  32837. FamilyInfo[family-1][FamilySkin6] = amount;
  32838. format(string, sizeof(string), "You have adjusted Family %d's Skin6 to Skin ID %d", family, amount);
  32839. SendClientMessage(playerid, COLOR_WHITE, string);
  32840. SaveFamilies();
  32841. return 1;
  32842. }
  32843. if(strcmp(tmp,"skin7",true) == 0)
  32844. {
  32845. tmp = strtok(cmdtext, idx);
  32846. if(!strlen(tmp))
  32847. {
  32848. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32849. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32850. return 1;
  32851. }
  32852. new amount = strvalEx(tmp);
  32853. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32854. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin !"); return 1; }
  32855. FamilyInfo[family-1][FamilySkin7] = amount;
  32856. format(string, sizeof(string), "You have adjusted Family %d's Skin7 to Skin ID %d", family, amount);
  32857. SendClientMessage(playerid, COLOR_WHITE, string);
  32858. SaveFamilies();
  32859. return 1;
  32860. }
  32861. if(strcmp(tmp,"skin8",true) == 0)
  32862. {
  32863. tmp = strtok(cmdtext, idx);
  32864. if(!strlen(tmp))
  32865. {
  32866. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fedit [family] [name] [amount]{7DAEFF}");
  32867. SendClientMessage(playerid, COLOR_GREY, "Available names: MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
  32868. return 1;
  32869. }
  32870. new amount = strvalEx(tmp);
  32871. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299 !"); return 1; }
  32872. if(IsInvalidSkin(amount)) { SendClientMessage(playerid, COLOR_GREY, "Invalid Skin."); return 1; }
  32873. FamilyInfo[family-1][FamilySkin8] = amount;
  32874. format(string, sizeof(string), "You have adjusted Family %d's Skin8 to Skin ID %d", family, amount);
  32875. SendClientMessage(playerid, COLOR_WHITE, string);
  32876. SaveFamilies();
  32877. return 1;
  32878. }
  32879. else
  32880. {
  32881. SendClientMessage(playerid, COLOR_GREY, "Unknown name.");
  32882. }
  32883. }
  32884. return 1;
  32885. }
  32886. if(strcmp(cmd, "/disarm", true) == 0) // By Logan Stone
  32887. {
  32888. if(IsPlayerConnected(playerid))
  32889. {
  32890. tmp = strtok(cmdtext, idx);
  32891. if(!strlen(tmp))
  32892. {
  32893. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /disarm [Playerid/PartOfName]{7DAEFF}");
  32894. return 1;
  32895. }
  32896. new playa;
  32897. playa = ReturnUser(tmp);
  32898. if (PlayerInfo[playerid][pAdmin] >= 3)
  32899. {
  32900. if(IsPlayerConnected(playa))
  32901. {
  32902. if(playa != INVALID_PLAYER_ID)
  32903. {
  32904. ResetPlayerWeapons(playa);
  32905. ClearGuns(playa);
  32906. ResetPlayerAdminWeaponsEx(playa);
  32907. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  32908. format(string, sizeof(string), "You have disarmed %s.", giveplayer);
  32909. SendClientMessage(playerid, COLOR_WHITE, string);
  32910. }
  32911. }
  32912. }
  32913. }
  32914. return 1;
  32915. }
  32916. if(strcmp(cmd, "/warnings", true) == 0)
  32917. {
  32918. if(!(PlayerInfo[playerid][pAdmin] >= 1))
  32919. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
  32920. tmp = strtok(cmdtext, idx);
  32921. new showcount;
  32922. if(!strlen(tmp))
  32923. {
  32924. showcount = 4;
  32925. } else {
  32926. showcount = (strval(tmp) - 1);
  32927. if(showcount < 0)
  32928. return 1;
  32929. if(showcount > 19)
  32930. {
  32931. showcount = 19;
  32932. }
  32933. }
  32934. for(new i = 19 - showcount;i <= 19;i++)
  32935. {
  32936. if(strlen(Warnings[i]) != 0)
  32937. {
  32938. SendClientMessage(playerid,COLOR_YELLOW,Warnings[i]);
  32939. }
  32940. }
  32941. return 1;
  32942. }
  32943. if(strcmp(cmd, "/fdeposit", true) == 0)
  32944. {
  32945. if(IsPlayerConnected(playerid))
  32946. {
  32947. if(PlayerInfo[playerid][pFMember] == 255)
  32948. {
  32949. SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
  32950. return 1;
  32951. }
  32952. if(!IsPlayerInRangeOfPoint(playerid,5.0,2308.8071,-13.2485,26.7422))
  32953. {
  32954. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
  32955. return 1;
  32956. }
  32957. tmp = strtok(cmdtext, idx);
  32958. if(!strlen(tmp))
  32959. {
  32960. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fdeposit [amount]{7DAEFF}");
  32961. format(string, sizeof(string), "You have $%d in your family bank account.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
  32962. SendClientMessage(playerid, COLOR_GRAD3, string);
  32963. return 1;
  32964. }
  32965. new cashdeposit = strvalEx(tmp);
  32966. if(cashdeposit > PlayerInfo[playerid][pCash] || cashdeposit < 1)
  32967. {
  32968. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much !");
  32969. return 1;
  32970. }
  32971. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-cashdeposit;
  32972. GivePlayerMoney(playerid,-cashdeposit);
  32973. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]=FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]+cashdeposit;
  32974. SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
  32975. format(string, sizeof(string), " Old Balance: $%d", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
  32976. SendClientMessage(playerid, COLOR_GRAD2, string);
  32977. format(string, sizeof(string), " Deposit: $%d",cashdeposit);
  32978. SendClientMessage(playerid, COLOR_GRAD4, string);
  32979. SendClientMessage(playerid, COLOR_GRAD6, "|------------------------------------------|");
  32980. format(string, sizeof(string), " New Balance: $%d", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
  32981. SendClientMessage(playerid, COLOR_WHITE, string);
  32982. }
  32983. return 1;
  32984. }
  32985. if(strcmp(cmd, "/fwithdraw", true) == 0)
  32986. {
  32987. if(IsPlayerConnected(playerid))
  32988. {
  32989. if(PlayerInfo[playerid][pFMember] == 255)
  32990. {
  32991. SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
  32992. return 1;
  32993. }
  32994. if(!IsPlayerInRangeOfPoint(playerid,5.0,1458.6104,-987.2628,1402.7000))
  32995. {
  32996. SendClientMessage(playerid, COLOR_GREY, "You are not at the bank.");
  32997. return 1;
  32998. }
  32999. if(PlayerInfo[playerid][pFRank] < 4)
  33000. {
  33001. SendClientMessage(playerid, COLOR_GREY, "You must be rank 4 to withdraw money from your family bank account.");
  33002. return 1;
  33003. }
  33004. tmp = strtok(cmdtext, idx);
  33005. if(!strlen(tmp))
  33006. {
  33007. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fwithdraw [amount]{7DAEFF}");
  33008. format(string, sizeof(string), " You have $%d in your family bank account.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
  33009. SendClientMessage(playerid, COLOR_GRAD3, string);
  33010. return 1;
  33011. }
  33012. new cashdeposit = strvalEx(tmp);
  33013. if(cashdeposit > FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank] || cashdeposit < 1)
  33014. {
  33015. SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
  33016. return 1;
  33017. }
  33018. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+cashdeposit;
  33019. GivePlayerMoney(playerid,cashdeposit);
  33020. FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]=FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]-cashdeposit;
  33021. format(string, sizeof(string), " You have withdrawn $%d from your family bank account, Total: $%d ", cashdeposit,FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyBank]);
  33022. SendClientMessage(playerid, COLOR_YELLOW, string);
  33023. }
  33024. return 1;
  33025. }
  33026. if(strcmp(cmd, "/heal", true) == 0)
  33027. {
  33028. if(IsPlayerConnected(playerid))
  33029. {
  33030. tmp = strtok(cmdtext, idx);
  33031. if(!strlen(tmp))
  33032. {
  33033. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /heal [playerid/PartOfName] [price]{7DAEFF}");
  33034. return 1;
  33035. }
  33036. giveplayerid = ReturnUser(tmp);
  33037. tmp = strtok(cmdtext, idx);
  33038. if(!strlen(tmp))
  33039. {
  33040. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /heal [playerid/PartOfName] [price{7DAEFF}]");
  33041. return 1;
  33042. }
  33043. moneys = strvalEx(tmp);
  33044. if(moneys < 200 || moneys > 1000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be below $200 or above $1000 !"); return 1; }
  33045. if(giveplayerid == playerid)
  33046. {
  33047. SendClientMessage(playerid, COLOR_GRAD1, "You cannot heal yourself.");
  33048. return 1;
  33049. }
  33050. if(IsPlayerConnected(giveplayerid))
  33051. {
  33052. if(giveplayerid != INVALID_PLAYER_ID)
  33053. {
  33054. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33055. GetPlayerName(playerid, sendername, sizeof(sendername));
  33056. new giveambu = GetPlayerVehicleID(giveplayerid);
  33057. new playambu = GetPlayerVehicleID(playerid);
  33058. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  33059. {
  33060. if(IsAnAmbulance(playambu) && playambu == giveambu)
  33061. {
  33062. new Float:tempheal;
  33063. GetPlayerHealth(giveplayerid,tempheal);
  33064. if(tempheal >= 100.0)
  33065. {
  33066. SendClientMessage(playerid, COLOR_GRAD1," That person is fully healed !");
  33067. return 1;
  33068. }
  33069. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+moneys;
  33070. GivePlayerMoney(playerid,moneys);
  33071. PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]-moneys;
  33072. GivePlayerMoney(giveplayerid,-moneys);
  33073. SetPlayerHealth(giveplayerid, 100);
  33074. PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
  33075. SendClientMessage(giveplayerid, COLOR_GRAD1, " You have been fully healed.");
  33076. format(string, sizeof(string), "* Paramedic %s has healed %s for $%d.", sendername,giveplayer,moneys);
  33077. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  33078. if(STDPlayer[giveplayerid] > 0)
  33079. {
  33080. STDPlayer[giveplayerid] = 0;
  33081. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* You are no longer infected with a STD !");
  33082. }
  33083. }
  33084. else
  33085. {
  33086. SendClientMessage(playerid, COLOR_GRAD1, " You and the patient must be inside the Ambulance !");
  33087. return 1;
  33088. }
  33089. }
  33090. else
  33091. {
  33092. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  33093. return 1;
  33094. }
  33095. }
  33096. }
  33097. else
  33098. {
  33099. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  33100. SendClientMessage(playerid, COLOR_GRAD1, string);
  33101. }
  33102. }
  33103. return 1;
  33104. }
  33105.  
  33106. if(strcmp(cmd, "/bigears", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
  33107. {
  33108. if(IsPlayerConnected(playerid))
  33109. {
  33110. if(!BigEar[playerid])
  33111. {
  33112. BigEar[playerid] = 1;
  33113. SendClientMessage(playerid, COLOR_GRAD2, "Bigears enabled !");
  33114. }
  33115. else if(BigEar[playerid])
  33116. {
  33117. (BigEar[playerid] = 0);
  33118. SendClientMessage(playerid, COLOR_GRAD2, "Bigears disabled !");
  33119. }
  33120. }
  33121. return 1;
  33122. }
  33123. if(strcmp(cmd, "/fuelcars", true) == 0 && PlayerInfo[playerid][pAdmin] >= 2)
  33124. {
  33125. if(IsPlayerConnected(playerid))
  33126. {
  33127. for(new i = 0; i < MAX_VEHICLES; i++)
  33128. {
  33129. Gas[i] = 100;
  33130. }
  33131. SendClientMessage(playerid, COLOR_RED, "All vehicles refilled.");
  33132. }
  33133. return 1;
  33134. }
  33135. /*if(strcmp(cmd, "/spec2", true) == 0)
  33136. {
  33137. if(IsPlayerConnected(playerid))
  33138. {
  33139. tmp = strtok(cmdtext, idx);
  33140. new Float:X, Float:Y, Float:Z;
  33141. if(!strlen(tmp))
  33142. {
  33143. SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /spec [playerid/PartOfName]" );
  33144. SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /spec off" );
  33145. return 1;
  33146. }
  33147. if(strcmp("off", tmp, true, strlen(tmp)) == 0)
  33148. {
  33149. if(WatchingTV[playerid] > 0)
  33150. {
  33151. pOnHand[playerid] = GetPlayerMoney(playerid);
  33152. WatchingTV[playerid] = 0;
  33153. Spectate[playerid] = 253;
  33154. return 1;
  33155. }
  33156. else
  33157. {
  33158. SendClientMessage(playerid, COLOR_GREY, " You are not specing !");
  33159. return 1;
  33160. }
  33161. }
  33162. if(PlayerInfo[playerid][pAdmin] >= 1)
  33163. {
  33164. giveplayerid = ReturnUser(tmp);
  33165. if(IsPlayerConnected(giveplayerid))
  33166. {
  33167. if(giveplayerid != INVALID_PLAYER_ID)
  33168. {
  33169. Spectate[playerid] = giveplayerid;
  33170. new Float:health;
  33171. GetPlayerHealth(Spectate[playerid], health);
  33172. new Float:armor;
  33173. GetPlayerArmour(Spectate[playerid], armor);
  33174. GetPlayerPos(playerid, X, Y, Z);
  33175. GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  33176. new cash = GetPlayerMoney(Spectate[playerid]);
  33177. if (PlayerInfo[playerid][pAdmin] >= 1)
  33178. {
  33179. format(string, sizeof(string), "Specing: (%d) %s $%d H:%.0f A:%.0f",Spectate[playerid],giveplayer,cash,health,armor);
  33180. }
  33181. SendClientMessage(playerid, COLOR_GREEN, string);
  33182. WatchingTV[playerid] = 1;
  33183. }
  33184. }
  33185. else
  33186. {
  33187. SendClientMessage(playerid, COLOR_GREEN, " Target is not available.");
  33188. }
  33189. }
  33190. else
  33191. {
  33192. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
  33193. return 1;
  33194. }
  33195. }
  33196. return 1;
  33197. }*/
  33198. if(strcmp(cmd, "/spec", true) == 0 || strcmp(cmd, "/recon", true) == 0)
  33199. {
  33200. if(IsPlayerConnected(playerid))
  33201. {
  33202. if(PlayerInfo[playerid][pAdmin] < 1)
  33203. {
  33204. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  33205. return 1;
  33206. }
  33207. tmp = strtok(cmdtext, idx);
  33208. if(!strlen(tmp))
  33209. {
  33210. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /spec [playerid/off]{7DAEFF}");
  33211. return 1;
  33212. }
  33213. giveplayerid = ReturnUser(tmp);
  33214. if(IsPlayerNPC(giveplayerid)) return 1;
  33215. if(strcmp("off", tmp, true, strlen(tmp)) == 0)
  33216. {
  33217. if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
  33218. {
  33219. SendClientMessage(playerid, COLOR_GREY, "You are not spectating anyone{7DAEFF}");
  33220. return 1;
  33221. }
  33222. SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  33223. SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  33224. SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]);
  33225. SetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
  33226. SetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
  33227. SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
  33228. SendClientMessage(playerid, COLOR_WHITE, "You are no longer spectating.");
  33229. TogglePlayerSpectating(playerid, 0);
  33230. SpectatedID[playerid] = INVALID_PLAYER_ID;
  33231. SpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
  33232. HidePM[playerid] = 0;
  33233. PhoneOnline[playerid] = 0;
  33234. WithGlasses[playerid] = 0;
  33235. WithMask[playerid] = 0;
  33236. WithHat[playerid] = 0;
  33237. WithBandana[playerid] = 0;
  33238. WithHelmet[playerid] = 0;
  33239. ResetPlayerAdminWeaponsEx(playerid);
  33240. return 1;
  33241. }
  33242. if(IsPlayerConnected(giveplayerid))
  33243. {
  33244. if (NoSpec[giveplayerid] == 1)
  33245. {
  33246. SendClientMessage(playerid, COLOR_GREY, " That player can't be spectated !");
  33247. return 1;
  33248. }
  33249. if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
  33250. {
  33251. PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
  33252. GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  33253. GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
  33254. GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
  33255. GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
  33256. }
  33257. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
  33258. SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
  33259. TogglePlayerSpectating(playerid, 1);
  33260. SpectatedID[playerid] = giveplayerid;
  33261. HidePM[playerid] = 1;
  33262. PhoneOnline[playerid] = 1;
  33263. new Float:X, Float:Y, Float:Z;
  33264. new Float:health;
  33265. GetPlayerHealth(giveplayerid, health);
  33266. new Float:armor;
  33267. GetPlayerArmour(giveplayerid, armor);GetPlayerPos(playerid, X, Y, Z);
  33268. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33269. new cash = GetPlayerMoney(giveplayerid);
  33270. if (PlayerInfo[playerid][pAdmin] >= 1)
  33271. {
  33272. format(string, sizeof(string), "Specing: [%d]%s [$%d] [H:%.0f] [A:%.0f]",giveplayerid,giveplayer,cash,health,armor);
  33273. }
  33274. SendClientMessage(playerid, COLOR_GREEN, string);
  33275. if(IsPlayerInAnyVehicle(giveplayerid))
  33276. {
  33277. PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
  33278. SpectateType[playerid] = ADMIN_SPEC_TYPE_VEHICLE;
  33279. }
  33280. else
  33281. {
  33282. PlayerSpectatePlayer(playerid, giveplayerid);
  33283. SpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
  33284. }
  33285. }
  33286. else
  33287. {
  33288. SendClientMessage(playerid, COLOR_GREY, " That player isn't active !");
  33289. return 1;
  33290. }
  33291. }
  33292. return 1;
  33293. }
  33294. if(strcmp(cmd, "/kill", true) == 0)
  33295. {
  33296. if(IsPlayerConnected(playerid))
  33297. {
  33298. if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2) // COMMENTED
  33299. {
  33300. SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !");
  33301. return 1;
  33302. }
  33303. else
  33304. {
  33305. SetPlayerHealth(playerid, 0);
  33306. }
  33307. }
  33308. return 1;
  33309. }
  33310. if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
  33311. {
  33312. if(IsPlayerConnected(playerid))
  33313. {
  33314. GetPlayerName(playerid, sendername, sizeof(sendername));
  33315. new length = strlen(cmdtext);
  33316. while ((idx < length) && (cmdtext[idx] <= ' '))
  33317. {
  33318. idx++;
  33319. }
  33320. new offset = idx;
  33321. new result[256];
  33322. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33323. {
  33324. result[idx - offset] = cmdtext[idx];
  33325. idx++;
  33326. }
  33327. result[idx - offset] = EOS;
  33328. if(!strlen(result))
  33329. {
  33330. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: (/a)dmin [admin chat]{7DAEFF}");
  33331. return 1;
  33332. }
  33333.  
  33334. new arank[64];
  33335. if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Secret Admin"; }
  33336. else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Junior Admin"; }
  33337. else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "General Admin"; }
  33338. else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; }
  33339. else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head Admin"; }
  33340. else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Executive Admin"; }
  33341. else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Server Owner"; }
  33342.  
  33343. format(string, sizeof(string), "{7DAEFF}* %s{FFFFFF} %s: %s", arank, sendername, result);
  33344. if (PlayerInfo[playerid][pAdmin] >= 1)
  33345. {
  33346. SendAdminMessage(0xFEB918FF, string);
  33347. }
  33348. printf("Admin %s: %s", sendername, result);
  33349. }
  33350. return 1;
  33351. }
  33352.  
  33353. if(strcmp(cmd, "//", true) == 0)
  33354. {
  33355. if(IsPlayerConnected(playerid))
  33356. {
  33357. GetPlayerName(playerid, sendername, sizeof(sendername));
  33358. new length = strlen(cmdtext);
  33359. while ((idx < length) && (cmdtext[idx] <= ' '))
  33360. {
  33361. idx++;
  33362. }
  33363. new offset = idx;
  33364. new result[256];
  33365. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33366. {
  33367. result[idx - offset] = cmdtext[idx];
  33368. idx++;
  33369. }
  33370. result[idx - offset] = EOS;
  33371. if(!strlen(result))
  33372. {
  33373. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: // [chat]{7DAEFF}");
  33374. return 1;
  33375. }
  33376.  
  33377. format(string, sizeof(string), "* %s %s", sendername, result);
  33378. if (PlayerInfo[playerid][pAdmin] >= 6 || PlayerInfo[playerid][pFakeIP] == 1)
  33379. {
  33380. SendAdminMessage2(COLOR_ADMIN, string);
  33381. }
  33382. printf("Admin %s: %s", sendername, result);
  33383. }
  33384. return 1;
  33385. }
  33386. if(strcmp(cmd, "/cnn", true) == 0)
  33387. {
  33388. if(IsPlayerConnected(playerid))
  33389. {
  33390. if(PlayerInfo[playerid][pAdmin] >= 2)
  33391. {
  33392. GetPlayerName(playerid, sendername, sizeof(sendername));
  33393. new length = strlen(cmdtext);
  33394. while ((idx < length) && (cmdtext[idx] <= ' '))
  33395. {
  33396. idx++;
  33397. }
  33398. new offset = idx;
  33399. new result[96];
  33400. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33401. {
  33402. result[idx - offset] = cmdtext[idx];
  33403. idx++;
  33404. }
  33405. result[idx - offset] = EOS;
  33406. if(!strlen(result))
  33407. {
  33408. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnn [cnn textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]{7DAEFF}");
  33409. return 1;
  33410. }
  33411. format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
  33412. //foreach(Player, i)
  33413. for(new i; i<MAX_PLAYERS; i++)
  33414. {
  33415. if(IsPlayerConnected(i))
  33416. {
  33417. GameTextForPlayer(i, string, 5000, 6);
  33418. }
  33419. }
  33420. return 1;
  33421. }
  33422. else
  33423. {
  33424. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  33425. return 1;
  33426. }
  33427. }
  33428. return 1;
  33429. }
  33430. if(strcmp(cmd, "/cnnn", true) == 0)
  33431. {
  33432. if(IsPlayerConnected(playerid))
  33433. {
  33434. if(PlayerInfo[playerid][pAdmin] >= 5)
  33435. {
  33436. tmp = strtok(cmdtext, idx);
  33437. new txtid;
  33438. if(!strlen(tmp))
  33439. {
  33440. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnnn <type>{7DAEFF}");
  33441. return 1;
  33442. }
  33443. txtid = strvalEx(tmp);
  33444. if(txtid == 2)
  33445. {
  33446. SendClientMessage(playerid, COLOR_GRAD2, "You cannot select type 2.");
  33447. return 1;
  33448. }
  33449. new length = strlen(cmdtext);
  33450. while ((idx < length) && (cmdtext[idx] <= ' '))
  33451. {
  33452. idx++;
  33453. }
  33454. new offset = idx;
  33455. new result[96];
  33456. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33457. {
  33458. result[idx - offset] = cmdtext[idx];
  33459. idx++;
  33460. }
  33461. result[idx - offset] = EOS;
  33462. if(!strlen(result))
  33463. {
  33464. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cnnn <type> [cnnc textformat ~n~=Newline ~r~=Red ~g~=Green ~b~=Blue ~w~=White ~y~=Yellow]{7DAEFF}");
  33465. return 1;
  33466. }
  33467. format(string, sizeof(string), "~w~%s",result);
  33468. //foreach(Player, i)
  33469. for(new i; i<MAX_PLAYERS; i++)
  33470. {
  33471. if(IsPlayerConnected(i) == 1)
  33472. {
  33473. GameTextForPlayer(i, string, 5000, txtid);
  33474. }
  33475. }
  33476. return 1;
  33477. }
  33478. else
  33479. {
  33480. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  33481. return 1;
  33482. }
  33483. }
  33484. return 1;
  33485. }
  33486. if(strcmp(cmd, "/cage", true) == 0)
  33487. {
  33488. if(IsPlayerConnected(playerid))
  33489. {
  33490. if(PlayerInfo[playerid][pAdmin] < 5)
  33491. {
  33492. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  33493. return 1;
  33494. }
  33495. for(new i; i<MAX_PLAYERS; i++)
  33496. {
  33497. if (IsPlayerConnected(i))
  33498. {
  33499. if(PlayerInfo[i][pJailed] == 10)
  33500. {
  33501. SendClientMessage(playerid, COLOR_RED, "Someone else is in the cage right now.");
  33502. return 1;
  33503. }
  33504. }
  33505. }
  33506. tmp = strtok(cmdtext, idx);
  33507. if(!strlen(tmp))
  33508. {
  33509. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cage [playerid/PartOfName] [reason]{7DAEFF}");
  33510. return 1;
  33511. }
  33512. giveplayerid = ReturnUser(tmp);
  33513. if(IsPlayerConnected(giveplayerid))
  33514. {
  33515. if(giveplayerid != INVALID_PLAYER_ID)
  33516. {
  33517. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33518. GetPlayerName(playerid, sendername, sizeof(sendername));
  33519. new length = strlen(cmdtext);
  33520. while ((idx < length) && (cmdtext[idx] <= ' '))
  33521. {
  33522. idx++;
  33523. }
  33524. new offset = idx;
  33525. new result[64];
  33526. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33527. {
  33528. result[idx - offset] = cmdtext[idx];
  33529. idx++;
  33530. }
  33531. result[idx - offset] = EOS;
  33532. if(!strlen(result))
  33533. {
  33534. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cage [playerid/PartOfName] [reason]{7DAEFF}");
  33535. return 1;
  33536. }
  33537. format(string, sizeof(string), "AdmCmd: %s has been sent to \"The Cage\" cage for 3 minutes and auto-fined $10,000, reason: %s", giveplayer, (result));
  33538. SendClientMessageToAll(0x9ACD32AA, string);
  33539. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~\"The Cage\" ~n~~n~~y~Don't make the same mistake again", 5000, 5);
  33540. SetPlayerVirtualWorld(giveplayerid, 0); PlayerInfo[giveplayerid][pVirtualWorld] = 0;
  33541. SetPlayerInterior(giveplayerid, 0); PlayerInfo[giveplayerid][pInt] = 0;
  33542. format(PlayerInfo[giveplayerid][pPrisonedBy], 128, "%s (Admin - Cage)", PlayerName(playerid));
  33543. format(PlayerInfo[giveplayerid][pPrisonReason], 32, "%s", (result));
  33544. SetPlayerWantedLevel(giveplayerid, 0);
  33545. GivePlayerMoney(giveplayerid, -10000);
  33546. PlayerInfo[giveplayerid][pCash] -= 10000;
  33547. PlayerInfo[giveplayerid][pJailed] = 10;
  33548. PlayerInfo[giveplayerid][pAdminJailed] = 1;
  33549. PlayerInfo[giveplayerid][pJailTime] = 3*60;
  33550. SetPlayerPos(giveplayerid, 154.4657,-1951.9379,47.8750);
  33551. }
  33552. }
  33553. }
  33554. return 1;
  33555. }
  33556. if(strcmp(cmd, "/prison", true) == 0)
  33557. {
  33558. if(IsPlayerConnected(playerid))
  33559. {
  33560. if(PlayerInfo[playerid][pAdmin] <= 2)
  33561. {
  33562. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  33563. return 1;
  33564. }
  33565. tmp = strtok(cmdtext, idx);
  33566. if(!strlen(tmp))
  33567. {
  33568. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /prison [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
  33569. return 1;
  33570. }
  33571. new time;
  33572. giveplayerid = ReturnUser(tmp);
  33573. tmp = strtok(cmdtext, idx);
  33574. time = strvalEx(tmp);
  33575. if(IsPlayerConnected(giveplayerid))
  33576. {
  33577. if(giveplayerid != INVALID_PLAYER_ID)
  33578. {
  33579. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33580. GetPlayerName(playerid, sendername, sizeof(sendername));
  33581. new length = strlen(cmdtext);
  33582. while ((idx < length) && (cmdtext[idx] <= ' '))
  33583. {
  33584. idx++;
  33585. }
  33586. new offset = idx;
  33587. new result[64];
  33588. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33589. {
  33590. result[idx - offset] = cmdtext[idx];
  33591. idx++;
  33592. }
  33593. result[idx - offset] = EOS;
  33594. if(!strlen(result))
  33595. {
  33596. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /prison [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
  33597. return 1;
  33598. }
  33599. format(string, sizeof(string), "AdmCmd: %s has been prisoned by an Admin, reason: %s", giveplayer, (result));
  33600. SendClientMessageToAll(COLOR_LIGHTRED, string);
  33601. format(string, sizeof(string), "You are prisoned for %d minutes.Bail: Unable", time);
  33602. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  33603. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
  33604. ClearGuns(giveplayerid);
  33605. ResetPlayerWeapons(giveplayerid);
  33606. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  33607. SetPlayerVirtualWorld(giveplayerid, 0); PlayerInfo[giveplayerid][pVirtualWorld] = 0;
  33608. SetPlayerInterior(giveplayerid, 69); PlayerInfo[giveplayerid][pInt] = 69;
  33609. format(PlayerInfo[giveplayerid][pPrisonedBy], 128, "%s (Admin)", PlayerName(playerid));
  33610. format(PlayerInfo[giveplayerid][pPrisonReason], 32, "%s", (result));
  33611. SetPlayerWantedLevel(giveplayerid, 0);
  33612. SetPlayerColor(giveplayerid, TCOLOR_PRISON);
  33613. PlayerInfo[giveplayerid][pJailed] = 3;
  33614. PlayerInfo[giveplayerid][pAdminJailed] = 1;
  33615. PlayerInfo[giveplayerid][pJailTime] = time*60;
  33616. SetPlayerSkin(giveplayerid, 50);
  33617. new rand = random(sizeof(PrisonSpawns));
  33618. PrisonCell[giveplayerid] = rand;
  33619. SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
  33620. SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
  33621. }
  33622. }
  33623. }
  33624. return 1;
  33625. }
  33626. /* if(strcmp(cmd, "/tree", true) == 0)
  33627. {
  33628. if(IsPlayerConnected(playerid))
  33629. {
  33630. if(PlayerInfo[playerid][pAdmin] <= 2)
  33631. {
  33632. SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
  33633. return 1;
  33634. }
  33635. tmp = strtok(cmdtext, idx);
  33636. if(!strlen(tmp))
  33637. {
  33638. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tree [playerid/PartOfName] [minutes] [reason]");
  33639. return 1;
  33640. }
  33641. new time;
  33642. giveplayerid = ReturnUser(tmp);
  33643. tmp = strtok(cmdtext, idx);
  33644. time = strvalEx(tmp);
  33645. if(IsPlayerConnected(giveplayerid))
  33646. {
  33647. if(giveplayerid != INVALID_PLAYER_ID)
  33648. {
  33649. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33650. GetPlayerName(playerid, sendername, sizeof(sendername));
  33651. new length = strlen(cmdtext);
  33652. while ((idx < length) && (cmdtext[idx] <= ' '))
  33653. {
  33654. idx++;
  33655. }
  33656. new offset = idx;
  33657. new result[64];
  33658. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33659. {
  33660. result[idx - offset] = cmdtext[idx];
  33661. idx++;
  33662. }
  33663. result[idx - offset] = EOS;
  33664. if(!strlen(result))
  33665. {
  33666. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tree [playerid/PartOfName] [minutes] [reason]");
  33667. return 1;
  33668. }
  33669. format(string, sizeof(string), "AdmCmd: %s has been tree'd by an Admin, reason: %s", giveplayer, (result));
  33670. SendClientMessageToAll(COLOR_LIGHTRED, string);
  33671. format(string, sizeof(string), "You are tree'd for %d minutes.", time);
  33672. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  33673. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Tree-Prison", 5000, 3);
  33674. ClearGuns(giveplayerid);
  33675. ResetPlayerWeapons(giveplayerid);
  33676. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  33677. SetPlayerVirtualWorld(playerid, 0);
  33678. PlayerInfo[giveplayerid][pVirtualWorld] = 0;
  33679. SetPlayerWantedLevel(giveplayerid, 0);
  33680. SetPlayerToTeamColor(playerid);
  33681. SetPlayerPos(playerid, -1070.8547,-2038.5858,49.1448);
  33682. TogglePlayerControllable(playerid, 1);
  33683. SetCameraBehindPlayer(playerid);
  33684. PlayerInfo[giveplayerid][pJailed] = 3;
  33685. PlayerInfo[giveplayerid][pJailTime] = time*60;
  33686. SetPlayerWorldBounds(playerid, -1069, -1073.4076, -2036.4987, -2040.6022);
  33687. }
  33688. }
  33689. }
  33690. return 1;
  33691. }*/
  33692. if(strcmp(cmd, "/jail", true) == 0)
  33693. {
  33694. if(IsPlayerConnected(playerid))
  33695. {
  33696. tmp = strtok(cmdtext, idx);
  33697. if(!strlen(tmp))
  33698. {
  33699. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /jail [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
  33700. return 1;
  33701. }
  33702. new playa;
  33703. new time;
  33704. playa = ReturnUser(tmp);
  33705. tmp = strtok(cmdtext, idx);
  33706. time = strvalEx(tmp);
  33707. if(PlayerInfo[playerid][pAdmin] >= 2)
  33708. {
  33709. if(IsPlayerConnected(playa))
  33710. {
  33711. if(playa != INVALID_PLAYER_ID)
  33712. {
  33713. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  33714. GetPlayerName(playerid, sendername, sizeof(sendername));
  33715. new length = strlen(cmdtext);
  33716. while ((idx < length) && (cmdtext[idx] <= ' '))
  33717. {
  33718. idx++;
  33719. }
  33720. new offset = idx;
  33721. new result[64];
  33722. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  33723. {
  33724. result[idx - offset] = cmdtext[idx];
  33725. idx++;
  33726. }
  33727. result[idx - offset] = EOS;
  33728. if(!strlen(result))
  33729. {
  33730. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /jail [playerid/PartOfName] [minutes] [reason]{7DAEFF}");
  33731. return 1;
  33732. }
  33733. format(string, sizeof(string), "AdmCmd: %s has been jailed by an Admin, reason: %s", giveplayer, (result));
  33734. SendClientMessageToAll(COLOR_LIGHTRED, string);
  33735. ClearGuns(playa);
  33736. ResetPlayerWeapons(playa);
  33737. PlayerInfo[playa][pWantedLevel] = 0;
  33738. SetPlayerWantedLevel(playa, 0);
  33739. SetPlayerToTeamColor(playa);
  33740. PlayerInfo[playa][pJailed] = 1;
  33741. PlayerInfo[playa][pJailTime] = time*60;
  33742. SetPlayerInterior(playa, 6);
  33743. SetPlayerVirtualWorld(playerid, 0);
  33744. PlayerInfo[giveplayerid][pVirtualWorld] = 0;
  33745. SetPlayerPos(playa, 264.6288,77.5742,1001.0391);
  33746. SetPlayerFacingAngle(playa, -90);
  33747. format(string, sizeof(string), "You are jailed for %d minutes. Bail: Unable", time);
  33748. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  33749. format(PlayerInfo[playa][pPrisonedBy], 128, "%s (Admin)", PlayerName(playerid));
  33750. format(PlayerInfo[playa][pPrisonReason], 32, "%s", (result));
  33751. PlayerInfo[playa][pAdminJailed] = 1;
  33752.  
  33753. }
  33754. }
  33755. }
  33756. else
  33757. {
  33758. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  33759. }
  33760. }
  33761. return 1;
  33762. }
  33763. if(strcmp(cmd, "/tod", true) == 0)
  33764. {
  33765. if(IsPlayerConnected(playerid))
  33766. {
  33767. tmp = strtok(cmdtext, idx);
  33768. if(!strlen(tmp))
  33769. {
  33770. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /tod [hour] (0-23){7DAEFF}");
  33771. return 1;
  33772. }
  33773. new hour;
  33774. hour = strvalEx(tmp);
  33775. if(hour < 0 || hour > 23) { SendClientMessage(playerid, COLOR_GREY, "Hour can't be below 0 or above 23 !"); return 1; }
  33776. if(PlayerInfo[playerid][pAdmin] >= 5)
  33777. {
  33778. SetWorldTime(hour);
  33779. format(string, sizeof(string), "Time set to %d Hours.", hour);
  33780. SendClientMessageToAll(COLOR_GRAD1, string);
  33781. }
  33782. else
  33783. {
  33784. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  33785. }
  33786. }
  33787. return 1;
  33788. }
  33789. if(strcmp(cmd, "/refund", true) == 0)
  33790. {
  33791. if(IsPlayerConnected(playerid))
  33792. {
  33793. if(PlayerInfo[playerid][pAdmin] < 4)
  33794. {
  33795. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  33796. return 1;
  33797. }
  33798. tmp = strtok(cmdtext, idx);
  33799. if(!strlen(tmp))
  33800. {
  33801. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /refund [playerid/PartOfName]{7DAEFF}");
  33802. return 1;
  33803. }
  33804. giveplayerid = ReturnUser(tmp);
  33805. if(IsPlayerConnected(giveplayerid))
  33806. {
  33807. if(giveplayerid != INVALID_PLAYER_ID)
  33808. {
  33809. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33810. RefundingID[playerid] = giveplayerid;
  33811. DisplayDialogForPlayer(playerid, 47); //refund
  33812. }
  33813. }
  33814. }
  33815. return 1;
  33816. }
  33817.  
  33818.  
  33819. if(strcmp(cmd, "/getproducts", true) == 0)
  33820. {
  33821. if(IsPlayerConnected(playerid))
  33822. {
  33823. if(PlayerInfo[playerid][pJob] != 3)
  33824. {
  33825. SendClientMessage(playerid, COLOR_GREY,"You are not a product dealer.");
  33826. return 1;
  33827. }
  33828. if(!IsPlayerInRangeOfPoint(playerid, 3.0, 553.7549,-1314.1748,17.2422))
  33829. {
  33830. SendClientMessage(playerid, COLOR_GREY,"You are not at the products pickup.");
  33831. return 1;
  33832. }
  33833. tmp = strtok(cmdtext, idx);
  33834. new amount = strvalEx(tmp);
  33835. if(!strlen(tmp))
  33836. {
  33837. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /getproducts [amount]{7DAEFF}");
  33838. SendClientMessage(playerid, COLOR_YELLOW, "The price is $50 for each product.");
  33839. return 1;
  33840. }
  33841. if(amount > 500)
  33842. {
  33843. SendClientMessage(playerid, COLOR_GREY, "You can't buy so many products.");
  33844. return 1;
  33845. }
  33846. new moneycalc = amount * 50;
  33847. if(PlayerInfo[playerid][pCash] < moneycalc)
  33848. {
  33849. SendClientMessage(playerid, COLOR_GREY, "You can't afford this.");
  33850. return 1;
  33851. }
  33852. new calc = amount + PlayerInfo[playerid][pProducts];
  33853. if(calc > 500)
  33854. {
  33855. SendClientMessage(playerid, COLOR_GREY, "You can't have so many products.");
  33856. return 1;
  33857. }
  33858. PlayerInfo[playerid][pProducts] = calc;
  33859. PlayerInfo[playerid][pCash] -= moneycalc;
  33860. GivePlayerMoney(playerid,-moneycalc);
  33861. format(string, sizeof(string), "You have purchased %d products for %d",amount,moneycalc);
  33862. SendClientMessage(playerid, COLOR_YELLOW, string);
  33863. return 1;
  33864. }
  33865. return 1;
  33866. }
  33867.  
  33868. if(strcmp(cmd, "/setstat", true) == 0)
  33869. {
  33870. if(IsPlayerConnected(playerid))
  33871. {
  33872. if(PlayerInfo[playerid][pAdmin] < 4)
  33873. {
  33874. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  33875. return 1;
  33876. }
  33877. tmp = strtok(cmdtext, idx);
  33878. if(!strlen(tmp))
  33879. {
  33880. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
  33881. SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
  33882. SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
  33883. SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
  33884. SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
  33885. return 1;
  33886. }
  33887. giveplayerid = ReturnUser(tmp);
  33888. if(IsPlayerConnected(giveplayerid))
  33889. {
  33890. if(giveplayerid != INVALID_PLAYER_ID)
  33891. {
  33892. tmp = strtok(cmdtext, idx);
  33893. if(!strlen(tmp))
  33894. {
  33895. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
  33896. SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
  33897. SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
  33898. SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
  33899. SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
  33900. return 1;
  33901. }
  33902. new stat;
  33903. stat = strvalEx(tmp);
  33904. tmp = strtok(cmdtext, idx);
  33905. if(!strlen(tmp))
  33906. {
  33907. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{FFFFFF} /setstat [playerid/PartOfName] [statcode] [amount]");
  33908. SendClientMessage(playerid, COLOR_GRAD1, "|1 Level |2 Armor Upgrade |3 UpgradePoints |4 Model |5 BankAccount |6 PhoneNumber |7 RespectPoints");
  33909. SendClientMessage(playerid, COLOR_GRAD2, "|996 HouseKey |997 BizKey |11 FMember |12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug");
  33910. SendClientMessage(playerid, COLOR_GRAD3, "|18 Sex |19 Box |20 Arms |21 Materials |22 Pot |23 Crack |24 Fishing |25 Job |26 Rank |27 Packages |28 Crates");
  33911. SendClientMessage(playerid, COLOR_GRAD4, "|29 Smuggler |30 CarKey 31| Warnings |998 Car1 |999 Car2");
  33912. return 1;
  33913. }
  33914. new amount;
  33915. new logstring[128];
  33916. new year, month, day;
  33917. getdate(year, month, day);
  33918. GetPlayerName(playerid, sendername, sizeof(sendername));
  33919. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  33920. amount = strvalEx(tmp);
  33921. switch (stat)
  33922. {
  33923. case 1:
  33924. {
  33925. PlayerInfo[giveplayerid][pLevel] = amount;
  33926. format(string, sizeof(string), " That players Level was set to %d", amount);
  33927. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Level to %d", day, month, year, sendername, giveplayer, amount);
  33928. }
  33929. case 2:
  33930. {
  33931. PlayerInfo[giveplayerid][pSHealth] = amount;
  33932. format(string, sizeof(string), " That players ArmorUpgade was set to %d", amount);
  33933. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's ArmorUpgade to %d", day, month, year, sendername, giveplayer, amount);
  33934. }
  33935. case 3:
  33936. {
  33937. PlayerInfo[giveplayerid][gPupgrade] = amount;
  33938. format(string, sizeof(string), " That players Upgradepoints were set to %d", amount);
  33939. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Upgradepoints to %d", day, month, year, sendername, giveplayer, amount);
  33940. }
  33941. case 4:
  33942. {
  33943. if(amount < 0 || amount > 299) { SendClientMessage(playerid, COLOR_GREY, " Model Number can't be below 0 or above 299 !"); return 1; }
  33944. if(IsInvalidSkin(amount))
  33945. {
  33946. SendClientMessage(playerid, COLOR_GREY, " Invalid Model !");
  33947. return 1;
  33948. }
  33949. else
  33950. {
  33951. PlayerInfo[giveplayerid][pModel] = amount;
  33952. SetPlayerSkin(giveplayerid, amount);
  33953. format(string, sizeof(string), " That players Model was set to %d", amount);
  33954. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Model to %d", day, month, year, sendername, giveplayer, amount);
  33955. }
  33956. }
  33957. case 5:
  33958. {
  33959. PlayerInfo[giveplayerid][pAccount] = amount;
  33960. format(string, sizeof(string), " That players Account was set to $%d", amount);
  33961. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's BankAccount to %d", day, month, year, sendername, giveplayer, amount);
  33962. }
  33963. case 6:
  33964. {
  33965. PlayerInfo[giveplayerid][pPnumber] = amount;
  33966. format(string, sizeof(string), " That players Phone Number was set to %d", amount);
  33967. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Phone Number to %d", day, month, year, sendername, giveplayer, amount);
  33968. }
  33969. case 7:
  33970. {
  33971. PlayerInfo[giveplayerid][pExp] = amount;
  33972. format(string, sizeof(string), " That players Respect Points was set to %d", amount);
  33973. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Respect Points to %d", day, month, year, sendername, giveplayer, amount);
  33974. }
  33975. case 11:
  33976. {
  33977. if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " FMember can't be below 1 or above 10 !"); return 1; }
  33978. PlayerInfo[giveplayerid][pFMember] = amount-1;
  33979. format(string, sizeof(string), " That players Family was set to %d", amount);
  33980. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Family to %d", day, month, year, sendername, giveplayer, amount);
  33981. }
  33982. case 12:
  33983. {
  33984. PlayerInfo[giveplayerid][pDetSkill] = amount;
  33985. format(string, sizeof(string), " That players Detective Skill was set to %d", amount);
  33986. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Detective Skill to %d", day, month, year, sendername, giveplayer, amount);
  33987. }
  33988. case 13:
  33989. {
  33990. PlayerInfo[giveplayerid][pLawSkill] = amount;
  33991. format(string, sizeof(string), " That players Lawyer Skill was set to %d", amount);
  33992. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Lawyer Skill to %d", day, month, year, sendername, giveplayer, amount);
  33993. }
  33994. case 14:
  33995. {
  33996. PlayerInfo[giveplayerid][pMechSkill] = amount;
  33997. format(string, sizeof(string), " That players Mechanic Skill was set to %d", amount);
  33998. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Mechanic Skill to %d", day, month, year, sendername, giveplayer, amount);
  33999. }
  34000. case 15:
  34001. {
  34002. PlayerInfo[giveplayerid][pNewsSkill] = amount;
  34003. format(string, sizeof(string), " That players News Reporter Skill was set to %d", amount);
  34004. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's News Reporter Skill to %d", day, month, year, sendername, giveplayer, amount);
  34005. }
  34006. case 16:
  34007. {
  34008. PlayerInfo[giveplayerid][pJackSkill] = amount;
  34009. format(string, sizeof(string), " That players Car Jacker Skill was set to %d", amount);
  34010. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car Jacker Skill to %d", day, month, year, sendername, giveplayer, amount);
  34011. }
  34012. case 17:
  34013. {
  34014. PlayerInfo[giveplayerid][pDrugsSkill] = amount;
  34015. format(string, sizeof(string), " That players Drug Dealer Skill was set to %d", amount);
  34016. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Dealer Skill to %d", day, month, year, sendername, giveplayer, amount);
  34017. }
  34018. case 18:
  34019. {
  34020. PlayerInfo[giveplayerid][pSexSkill] = amount;
  34021. format(string, sizeof(string), " That players Sex Skill was set to %d", amount);
  34022. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Sex Skill to %d", day, month, year, sendername, giveplayer, amount);
  34023. }
  34024. case 19:
  34025. {
  34026. PlayerInfo[giveplayerid][pBoxSkill] = amount;
  34027. format(string, sizeof(string), " That players Box Skill was set to %d", amount);
  34028. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Box Skill to %d", day, month, year, sendername, giveplayer, amount);
  34029. }
  34030. case 20:
  34031. {
  34032. PlayerInfo[giveplayerid][pArmsSkill] = amount;
  34033. format(string, sizeof(string), " That players Arms Dealer Skill was set to %d", amount);
  34034. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Arms Dealer Skill to %d", day, month, year, sendername, giveplayer, amount);
  34035. }
  34036. case 21:
  34037. {
  34038. PlayerInfo[giveplayerid][pMats] = amount;
  34039. format(string, sizeof(string), " That players Materials were set to %d", amount);
  34040. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Materials to %d", day, month, year, sendername, giveplayer, amount);
  34041. }
  34042. case 22:
  34043. {
  34044. PlayerInfo[giveplayerid][pPot] = amount;
  34045. format(string, sizeof(string), " That players Pot was set to %d", amount);
  34046. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Pot to %d", day, month, year, sendername, giveplayer, amount);
  34047. }
  34048. case 23:
  34049. {
  34050. PlayerInfo[giveplayerid][pCrack] = amount;
  34051. format(string, sizeof(string), " That players Crack was set to %d", amount);
  34052. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Crack to %d", day, month, year, sendername, giveplayer, amount);
  34053. }
  34054. case 24:
  34055. {
  34056. PlayerInfo[giveplayerid][pFishSkill] = amount;
  34057. format(string, sizeof(string), " That players Fishing Skill was set to %d", amount);
  34058. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Fishing Skill to %d", day, month, year, sendername, giveplayer, amount);
  34059. }
  34060. case 25:
  34061. {
  34062. if(amount < 0 || amount > 17) { SendClientMessage(playerid, COLOR_GREY, " Job can't be below 0 or above 17 !"); return 1; }
  34063. PlayerInfo[giveplayerid][pJob] = amount;
  34064. format(string, sizeof(string), " That players Job was set to %d", amount);
  34065. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Job to %d", day, month, year, sendername, giveplayer, amount);
  34066. }
  34067. case 26:
  34068. {
  34069. if(amount < 1 || amount > 6) { SendClientMessage(playerid, COLOR_GREY, " Rank can't be below 1 or above 6 !"); return 1; }
  34070. PlayerInfo[giveplayerid][pFRank] = amount;
  34071. format(string, sizeof(string), " That players Family Rank was set to %d", amount);
  34072. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Rank to %d", day, month, year, sendername, giveplayer, amount);
  34073. }
  34074. case 27:
  34075. {
  34076. Packages[playerid] = amount;
  34077. format(string, sizeof(string), " That players Packages were set to %d", amount);
  34078. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Materials Packages to %d", day, month, year, sendername, giveplayer, amount);
  34079. }
  34080. case 28:
  34081. {
  34082. Crates[playerid] = amount;
  34083. format(string, sizeof(string), " That players Crates were set to %d", amount);
  34084. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Crates to %d", day, month, year, sendername, giveplayer, amount);
  34085. }
  34086. case 29:
  34087. {
  34088. PlayerInfo[giveplayerid][pSmugglerSkill] = amount;
  34089. format(string, sizeof(string), " That players Drug Smuggler Skill was set to %d", amount);
  34090. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Drug Smuggler to %d", day, month, year, sendername, giveplayer, amount);
  34091. }
  34092. case 31:
  34093. {
  34094. PlayerInfo[giveplayerid][pWarns] = amount;
  34095. format(string, sizeof(string), " That players Warnings were set to %d", amount);
  34096. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Warnings to %d", day, month, year, sendername, giveplayer, amount);
  34097. }
  34098. case 100000:
  34099. {
  34100. PlayerInfo[giveplayerid][pAWarns] = amount;
  34101. format(string, sizeof(string), " That players AWarnings were set to %d", amount);
  34102. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Warnings to %d", day, month, year, sendername, giveplayer, amount);
  34103. }
  34104. case 996:
  34105. {
  34106. PlayerInfo[giveplayerid][pHouseKey] = amount;
  34107. format(string, sizeof(string), " That players House were set to %d", amount);
  34108. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
  34109. }
  34110. case 997:
  34111. {
  34112. PlayerInfo[giveplayerid][pBizKey] = amount;
  34113. format(string, sizeof(string), " That players Biz were set to %d", amount);
  34114. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
  34115. }
  34116. case 998:
  34117. {
  34118. PlayerInfo[giveplayerid][pCarKey1] = amount;
  34119. format(string, sizeof(string), " That players Car 1 were set to %d", amount);
  34120. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
  34121. }
  34122. case 999:
  34123. {
  34124. PlayerInfo[giveplayerid][pCarKey2] = amount;
  34125. format(string, sizeof(string), " That players Car 2 were set to %d", amount);
  34126. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Car 1 to %d", day, month, year, sendername, giveplayer, amount);
  34127. }
  34128. case 9999991:
  34129. {
  34130. PlayerInfo[giveplayerid][pCHits] = amount;
  34131. format(string, sizeof(string), " That players CompletedHits was set to %d", amount);
  34132. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's CompletedHits to %d", day, month, year, sendername, giveplayer, amount);
  34133. }
  34134. case 9999992:
  34135. {
  34136. PlayerInfo[giveplayerid][pFHits] = amount;
  34137. format(string, sizeof(string), " That players CompletedHits was set to %d", amount);
  34138. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's CompletedHits to %d", day, month, year, sendername, giveplayer, amount);
  34139. }
  34140. /* case 34: // Trashman
  34141. {
  34142. PlayerInfo[giveplayerid][pTrashSkill] = amount;
  34143. format(string, sizeof(string), " That players Trashman Skill was set to %d", amount);
  34144. format(logstring, sizeof(logstring), "[%d/%d/%d] %s has set %s's Trashman Skill to %d", day, month, year, sendername, giveplayer, amount);
  34145. }*/
  34146. default:
  34147. {
  34148. format(string, sizeof(string), " Invalid stat code %d !", amount);
  34149. return 1;
  34150. }
  34151. }
  34152. SendClientMessage(playerid, COLOR_GRAD1, string);
  34153. StatLog(logstring);
  34154. }
  34155. }
  34156. }
  34157. return 1;
  34158. }
  34159.  
  34160. if(strcmp(cmd, "/setvw", true) == 0)//PaNoULiS
  34161. {
  34162. if(IsPlayerConnected(playerid))
  34163. {
  34164. tmp = strtok(cmdtext, idx);
  34165. if(!strlen(tmp))
  34166. {
  34167. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /setvw [PlayerID/PartOfName] [VW ID]{7DAEFF}");
  34168. return 1;
  34169. }
  34170. new playa;
  34171. playa = ReturnUser(tmp);
  34172. new virid;
  34173. tmp = strtok(cmdtext, idx);
  34174. virid = strvalEx(tmp);
  34175. if (PlayerInfo[playerid][pAdmin] >= 1)
  34176. {
  34177. if(IsPlayerConnected(playa))
  34178. {
  34179. if(playa != INVALID_PLAYER_ID)
  34180. {
  34181. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  34182. GetPlayerName(playerid, sendername, sizeof(sendername));
  34183. SetPlayerVirtualWorld(playa, virid);
  34184. format(string, sizeof(string), "You Have Set %s's Virtual World To ID: %d.", giveplayer, virid);
  34185. SendClientMessage(playerid, COLOR_GRAD1, string);
  34186. format(string, sizeof(string), "%s Has Set Your Virtual World To ID: %d.", sendername, virid);
  34187. SendClientMessage(playa, COLOR_GRAD1, string);
  34188. }
  34189. }
  34190. }
  34191. else
  34192. {
  34193. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  34194. }
  34195. }
  34196. return 1;
  34197. }
  34198.  
  34199. if(strcmp(cmd, "/setint", true) == 0)
  34200. {
  34201. if(IsPlayerConnected(playerid))
  34202. {
  34203. tmp = strtok(cmdtext, idx);
  34204. if(!strlen(tmp))
  34205. {
  34206. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setint [playerid] [interiorid]{7DAEFF}");
  34207. return 1;
  34208. }
  34209. new playa;
  34210. new intid;
  34211. playa = ReturnUser(tmp);
  34212. if(IsPlayerNPC(playa)) return 1;
  34213. tmp = strtok(cmdtext, idx);
  34214. if(!strlen(tmp))
  34215. {
  34216. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setint [playerid] [interiorid]{7DAEFF}");
  34217. return 1;
  34218. }
  34219. intid = strvalEx(tmp);
  34220. if(PlayerInfo[playerid][pAdmin] >= 1)
  34221. {
  34222. if(IsPlayerConnected(playa))
  34223. {
  34224. if(playa != INVALID_PLAYER_ID)
  34225. {
  34226. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  34227. SetPlayerInterior(playa,intid);
  34228. PlayerInfo[playerid][pInt] = intid;
  34229. format(string, sizeof(string), "You have set %s's Interior ID to %d !", giveplayer, intid);
  34230. SendClientMessage(playerid, COLOR_GRAD1, string);
  34231. }
  34232. }
  34233. }
  34234. else
  34235. {
  34236. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  34237. }
  34238. }
  34239. return 1;
  34240. }
  34241. if(strcmp(cmd, "/skydive", true) == 0)
  34242. {
  34243. if(IsPlayerConnected(playerid))
  34244. {
  34245. if(PlayerInfo[playerid][pAdmin] >= 2)
  34246. {
  34247. GetPlayerPos(playerid, rx, ry, rz);
  34248. if(IsPlayerConnected(playerid))
  34249. {
  34250. GivePlayerGun(playerid, 46);
  34251. SetPlayerPos(playerid,rx, ry, rz+1500);
  34252. SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
  34253. }
  34254. }
  34255. else
  34256. {
  34257. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  34258. }
  34259. }
  34260. return 1;
  34261. }
  34262. if(strcmp(cmd, "/fourdive", true) == 0)
  34263. {
  34264. if(IsPlayerConnected(playerid))
  34265. {
  34266. tmp = strtok(cmdtext, idx);
  34267. if(!strlen(tmp))
  34268. {
  34269. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fourdive [playerid1] [playerid2] [playerid3] [playerid4]{7DAEFF}");
  34270. return 1;
  34271. }
  34272. new para1;
  34273. new para2;
  34274. new para3;
  34275. new para4;
  34276. para1 = strvalEx(tmp);
  34277. tmp = strtok(cmdtext, idx);
  34278. para2 = strvalEx(tmp);
  34279. tmp = strtok(cmdtext, idx);
  34280. para3 = strvalEx(tmp);
  34281. tmp = strtok(cmdtext, idx);
  34282. para4 = strvalEx(tmp);
  34283. if(PlayerInfo[playerid][pAdmin] >= 3)
  34284. {
  34285. if(IsPlayerConnected(para1)){ GivePlayerGun(para1, 46); SetPlayerPos(para1,1536.0, -1360.0, 1350.0);SetPlayerInterior(para1,0);PlayerInfo[para1][pInt] = 0;SendClientMessage(para1, COLOR_WHITE, "GO!! GO!! GO!!");}
  34286. if((IsPlayerConnected(para2)) && (para2>0)) { GivePlayerGun(para2, 46); SetPlayerPos(para2,1536.0, -1345.0, 1350.0);SetPlayerInterior(para2,0);PlayerInfo[para2][pInt] = 0;SendClientMessage(para2, COLOR_RED, "GO!! GO!! GO!!");}
  34287. if((IsPlayerConnected(para3)) && (para3>0)) { GivePlayerGun(para3, 46); SetPlayerPos(para3,1552.0, -1345.0, 1350.0);SetPlayerInterior(para3,0);PlayerInfo[para3][pInt] = 0;SendClientMessage(para3, COLOR_RED, "GO!! GO!! GO!!");}
  34288. if((IsPlayerConnected(para4)) && (para4>0)) { GivePlayerGun(para4, 46); SetPlayerPos(para4,1552.0, -1360.0, 1350.0);SetPlayerInterior(para4,0);PlayerInfo[para4][pInt] = 0;SendClientMessage(para4, COLOR_RED, "GO!! GO!! GO!!");}
  34289. }
  34290. else
  34291. {
  34292. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  34293. }
  34294. }
  34295. return 1;
  34296. }
  34297. if(strcmp(cmd, "/invite", true) == 0)
  34298. {
  34299. if(IsPlayerConnected(playerid))
  34300. {
  34301. tmp = strtok(cmdtext, idx);
  34302. if(!strlen(tmp))
  34303. {
  34304. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /invite [playerid/PartOfName]{7DAEFF}");
  34305. return 1;
  34306. }
  34307. new ftext[20];
  34308. giveplayerid = ReturnUser(tmp);
  34309. if(PlayerInfo[playerid][pLeader] >= 1)
  34310. {
  34311. if(IsPlayerConnected(giveplayerid))
  34312. {
  34313. if(giveplayerid != INVALID_PLAYER_ID)
  34314. {
  34315. if(PlayerInfo[giveplayerid][pMember] == 0 && PlayerInfo[giveplayerid][pLeader] == 0)
  34316. {
  34317. GetPlayerName(playerid, sendername, sizeof(sendername));
  34318. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  34319. if(PlayerInfo[playerid][pLeader] == 1) { ftext = "Police Force"; }
  34320. else if(PlayerInfo[playerid][pLeader] == 2) { ftext = "FBI"; }
  34321. else if(PlayerInfo[playerid][pLeader] == 3) { ftext = "SAST"; }
  34322. else if(PlayerInfo[playerid][pLeader] == 4) { ftext = "Firemen/Ambulance"; }
  34323. else if(PlayerInfo[playerid][pLeader] == 5) { ftext = "National Guards"; }
  34324. else if(PlayerInfo[playerid][pLeader] == 6) { ftext = "Senate"; }
  34325. else if(PlayerInfo[playerid][pLeader] == 7) { ftext = "CIA"; }
  34326. else if(PlayerInfo[playerid][pLeader] == 8) { ftext = "Hitman Agency"; }
  34327. else if(PlayerInfo[playerid][pLeader] == 9) { ftext = "News Agency"; }
  34328. else if(PlayerInfo[playerid][pLeader] == 10) { ftext = "Taxi Cab Company"; }
  34329. format(string, sizeof(string), "* You have Invited %s to join the %s.", giveplayer, ftext);
  34330. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  34331. format(string, sizeof(string), "* %s has invited you to join the %s, (type /accept faction) to accept.",sendername, ftext);
  34332. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  34333. FactionOffer[giveplayerid] = playerid;
  34334. }
  34335. else
  34336. {
  34337. SendClientMessage(playerid, COLOR_GREY, " That player is already in a Faction !");
  34338. return 1;
  34339. }
  34340. }
  34341. }
  34342. }
  34343. else
  34344. {
  34345. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command (leaders only) !");
  34346. }
  34347. }
  34348. return 1;
  34349. }
  34350. if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vc", true) == 0)//Logan Stone - VIP Chat
  34351. {
  34352. if(IsPlayerConnected(playerid))
  34353. {
  34354. if(PlayerInfo[playerid][pDonateRank] >= 1)
  34355. {
  34356. GetPlayerName(playerid, sendername, sizeof(sendername));
  34357. new length = strlen(cmdtext);
  34358. while ((idx < length) && (cmdtext[idx] <= ' '))
  34359. {
  34360. idx++;
  34361. }
  34362. new offset = idx;
  34363. new result[96];
  34364. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  34365. {
  34366. result[idx - offset] = cmdtext[idx];
  34367. idx++;
  34368. }
  34369. result[idx - offset] = EOS;
  34370. if(!strlen(result))
  34371. {
  34372. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/v)ip chat [VIP Chat]{7DAEFF}");
  34373. return 1;
  34374. }
  34375. if(PlayerInfo[playerid][pDonateRank] == 1) format(string, sizeof(string), "* Bronze VIP %s: %s", sendername, result);
  34376. else if(PlayerInfo[playerid][pDonateRank] == 2) format(string, sizeof(string), "* Silver VIP %s: %s", sendername, result);
  34377. else if(PlayerInfo[playerid][pDonateRank] == 3) format(string, sizeof(string), "* Gold VIP %s: %s", sendername, result);
  34378. if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pDonateRank] >= 2)
  34379. {
  34380. SendVIPMessage(0x80008000, string);
  34381. }
  34382. }
  34383. else
  34384. {
  34385. SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
  34386. }
  34387. }
  34388. return 1;
  34389. }
  34390.  
  34391. if(strcmp(cmd, "/buygun", false) == 0)//PaNoULiS
  34392. {
  34393. if(IsPlayerConnected(playerid))
  34394. {
  34395. if(IsPlayerInRangeOfPoint(playerid, 1, -2654.3123,1424.4027,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP SPAS
  34396. {
  34397. if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
  34398. {
  34399.  
  34400. if(PlayerInfo[playerid][pCash] > 59999)
  34401. {
  34402. PlayerInfo[playerid][pCash] -= 60000;
  34403. GivePlayerWeapon(playerid, 27, 999999);
  34404. PlayerInfo[playerid][pGun3] = 27;
  34405. GetPlayerName(playerid, sendername, sizeof(sendername));
  34406. format(string, sizeof(string), "* %s grabs a SPAS-12 from the Locker.", sendername);
  34407. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34408. return 1;
  34409. }
  34410. else
  34411. {
  34412. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($80,000).");
  34413. return 1;
  34414. }
  34415. }
  34416.  
  34417. else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  34418. {
  34419. if(PlayerInfo[playerid][pCash] > 39999)
  34420. {
  34421. PlayerInfo[playerid][pCash] -= 40000;
  34422. GivePlayerWeapon(playerid, 27, 999999);
  34423. PlayerInfo[playerid][pGun3] = 27;
  34424. GetPlayerName(playerid, sendername, sizeof(sendername));
  34425. format(string, sizeof(string), "* %s grabs a SPAS-12 from the Locker.", sendername);
  34426. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34427. return 1;
  34428. }
  34429. else
  34430. {
  34431. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($40,000).");
  34432. return 1;
  34433. }
  34434. }
  34435.  
  34436. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  34437. {
  34438. if(PlayerInfo[playerid][pCash] > 24000)
  34439. {
  34440. PlayerInfo[playerid][pCash] -= 25000;
  34441. GivePlayerWeapon(playerid, 27, 999999);
  34442. PlayerInfo[playerid][pGun3] = 27;
  34443. GetPlayerName(playerid, sendername, sizeof(sendername));
  34444. format(string, sizeof(string), "** %s grabs a SPAS-12 from the Locker.", sendername);
  34445. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34446. return 1;
  34447. }
  34448. else
  34449. {
  34450. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($25,000).");
  34451. return 1;
  34452. }
  34453. }
  34454. else
  34455. {
  34456. SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  34457. return 1;
  34458. }
  34459. }
  34460.  
  34461. if(IsPlayerInRangeOfPoint(playerid, 1, -2667.1187,1399.3182,918.3516) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP Knife
  34462. {
  34463.  
  34464. if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  34465. {
  34466. if(PlayerInfo[playerid][pCash] > 99999)
  34467. {
  34468. PlayerInfo[playerid][pCash] -= 100000;
  34469. GivePlayerWeapon(playerid, 4, 999999);
  34470. PlayerInfo[playerid][pGun1] = 4;
  34471. GetPlayerName(playerid, sendername, sizeof(sendername));
  34472. format(string, sizeof(string), "* %s grabs a Knife from the Locker.", sendername);
  34473. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34474. return 1;
  34475. }
  34476. else
  34477. {
  34478. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($100,000)).");
  34479. return 1;
  34480. }
  34481. }
  34482.  
  34483. else
  34484. {
  34485. SendClientMessage(playerid, COLOR_RED, " You are not a Gold VIP ! !");
  34486. return 1;
  34487. }
  34488. }
  34489.  
  34490. if(IsPlayerInRangeOfPoint(playerid, 1, -2667.1355,1424.5560,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP AK47
  34491. {
  34492. if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
  34493. {
  34494.  
  34495. if(PlayerInfo[playerid][pCash] > 24999)
  34496. {
  34497. PlayerInfo[playerid][pCash] -= 25000;
  34498. GivePlayerWeapon(playerid, 30, 999999);
  34499. PlayerInfo[playerid][pGun5] = 30;
  34500. GetPlayerName(playerid, sendername, sizeof(sendername));
  34501. format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
  34502. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34503. return 1;
  34504. }
  34505. else
  34506. {
  34507. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($25,000)).");
  34508. return 1;
  34509. }
  34510. }
  34511.  
  34512. else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  34513. {
  34514. if(PlayerInfo[playerid][pCash] > 11999)
  34515. {
  34516. PlayerInfo[playerid][pCash] -= 12000;
  34517. GivePlayerWeapon(playerid, 30, 999999);
  34518. PlayerInfo[playerid][pGun5] = 30;
  34519. GetPlayerName(playerid, sendername, sizeof(sendername));
  34520. format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
  34521. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34522. return 1;
  34523. }
  34524. else
  34525. {
  34526. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($12,000)).");
  34527. return 1;
  34528. }
  34529. }
  34530.  
  34531. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  34532. {
  34533. if(PlayerInfo[playerid][pCash] > 6999)
  34534. {
  34535. PlayerInfo[playerid][pCash] -= 7000;
  34536. GivePlayerWeapon(playerid, 30, 999999);
  34537. PlayerInfo[playerid][pGun5] = 30;
  34538. GetPlayerName(playerid, sendername, sizeof(sendername));
  34539. format(string, sizeof(string), "** %s grabs an AK-47 from the Locker.", sendername);
  34540. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34541. return 1;
  34542. }
  34543. else
  34544. {
  34545. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($7,000)).");
  34546. return 1;
  34547. }
  34548. }
  34549.  
  34550. else
  34551. {
  34552. SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  34553. return 1;
  34554. }
  34555. }
  34556.  
  34557. if(IsPlayerInRangeOfPoint(playerid, 1, -2660.8079,1424.4830,912.4063) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP M4
  34558. {
  34559. if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
  34560. {
  34561.  
  34562. if(PlayerInfo[playerid][pCash] > 29999)
  34563. {
  34564. PlayerInfo[playerid][pCash] -= 30000;
  34565. GivePlayerWeapon(playerid, 31, 999999);
  34566. PlayerInfo[playerid][pGun5] = 31;
  34567. GetPlayerName(playerid, sendername, sizeof(sendername));
  34568. format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
  34569. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34570. return 1;
  34571. }
  34572. else
  34573. {
  34574. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($30,000)).");
  34575. return 1;
  34576. }
  34577. }
  34578.  
  34579. else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  34580. {
  34581. if(PlayerInfo[playerid][pCash] > 14999)
  34582. {
  34583. PlayerInfo[playerid][pCash] -= 15000;
  34584. GivePlayerWeapon(playerid, 31, 999999);
  34585. PlayerInfo[playerid][pGun5] = 31;
  34586. GetPlayerName(playerid, sendername, sizeof(sendername));
  34587. format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
  34588. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34589. return 1;
  34590. }
  34591. else
  34592. {
  34593. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($15,000)).");
  34594. return 1;
  34595. }
  34596. }
  34597.  
  34598. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  34599. {
  34600. if(PlayerInfo[playerid][pCash] > 9999)
  34601. {
  34602. PlayerInfo[playerid][pCash] -= 10000;
  34603. GivePlayerWeapon(playerid, 31, 999999);
  34604. PlayerInfo[playerid][pGun5] = 31;
  34605. GetPlayerName(playerid, sendername, sizeof(sendername));
  34606. format(string, sizeof(string), "** %s grabs an M4 from the locker.", sendername);
  34607. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  34608. return 1;
  34609. }
  34610. else
  34611. {
  34612. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000)).");
  34613. return 1;
  34614. }
  34615. }
  34616.  
  34617. else
  34618. {
  34619. SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  34620. return 1;
  34621. }
  34622. }
  34623. else
  34624. {
  34625. SendClientMessage(playerid, COLOR_GREY, "You are not at a Weapon Pickup !");
  34626. }
  34627. }
  34628. return 1;
  34629. }
  34630.  
  34631. if(strcmp(cmdtext,"/parrot",true)==0)
  34632. {
  34633. if(PlayerInfo[playerid][pDonateRank] >= 1)
  34634. {
  34635. if (Parrot[playerid] == 0)
  34636. {
  34637. Parrot[playerid] = 1;
  34638. SetPlayerAttachedObject(playerid,PARROT,19078,1,0.320722,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // Parrot
  34639. }
  34640. else
  34641. {
  34642. Parrot[playerid] = 0;
  34643. RemovePlayerAttachedObject(playerid, PARROT);
  34644. }
  34645. }
  34646. else
  34647. {
  34648. SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
  34649. }
  34650. return 1;
  34651. }
  34652.  
  34653. if(strcmp(cmdtext,"/vip",true)==0)
  34654. {
  34655. if(PlayerInfo[playerid][pDonateRank] >= 1)
  34656. {
  34657. ShowPlayerDialog(playerid, 62, DIALOG_STYLE_LIST, "VIP","Color Name\nCar Tune\nSkin", "Select", "Cancel");
  34658. }
  34659. else
  34660. {
  34661. SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
  34662. }
  34663. return 1;
  34664. }
  34665.  
  34666. if(strcmp(cmd,"/sellhousetomarket",true) == 0)
  34667. {
  34668. new x_nr[32];
  34669. new house = PlayerInfo[playerid][pHouseKey];
  34670. x_nr = strtok(cmdtext, idx);
  34671. if(!strlen(x_nr))
  34672. {
  34673. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sellhousetomarket [confirm]{7DAEFF}");
  34674. SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your house price. Are you sure you wanna do this ?");
  34675. return 1;
  34676. }
  34677. if(HouseInfo[house][hRenters] != 0)
  34678. {
  34679. SendClientMessage(playerid, COLOR_GREY,"You need to evict the current renters before doing this");
  34680. return 1;
  34681. }
  34682. if(strcmp(x_nr,"confirm",true) == 0)
  34683. {
  34684. if(PlayerInfo[playerid][pHouseKey] != 999)
  34685. {
  34686. new price = HouseInfo[house][hPrice];
  34687. DestroyDynamic3DTextLabel(HouseLabel[house]);
  34688. new VString[255];
  34689. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", price,HouseInfo[house][hLevel]);
  34690. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  34691. new percent = price / 100 * 80;
  34692. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
  34693. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  34694. HouseInfo[house][hOwned] = 0;
  34695. HouseInfo[house][hAlarm] = 0;
  34696. HouseInfo[house][hSafe] = 0;
  34697. HouseInfo[house][hLocked] = 0;
  34698. HouseInfo[house][hRentable] = 0;
  34699. strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
  34700. strmid(HouseInfo[house][hName], "House", 0, strlen("House"), 255);
  34701. format(string, sizeof(string), "You have sold your house for $%d.", percent);
  34702. SendClientMessage(playerid, COLOR_YELLOW, string);
  34703. //DestroyDynamicMapIcon(HouseIcon[house]);
  34704. DestroyDynamicPickup(HouseSafe[house]);
  34705. //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], 31, 0);
  34706. PlayerInfo[playerid][pHouseKey] = 999;
  34707. return 1;
  34708. }
  34709. else
  34710. {
  34711. SendClientMessage(playerid, COLOR_GRAD1, "You do not own a house.");
  34712. return 1;
  34713. }
  34714. }
  34715. return 1;
  34716. }
  34717.  
  34718. if(strcmp(cmd,"/sellbiztomarket",true) == 0)
  34719. {
  34720. new x_nr[32];
  34721. new biz = PlayerInfo[playerid][pBizKey];
  34722. x_nr = strtok(cmdtext, idx);
  34723. if(!strlen(x_nr))
  34724. {
  34725. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sellbiztomarket [confirm]{7DAEFF}");
  34726. SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your house price. Are you sure you wanna do this ?");
  34727. return 1;
  34728. }
  34729. if(strcmp(x_nr,"confirm",true) == 0)
  34730. {
  34731. if(PlayerInfo[playerid][pBizKey] != 999)
  34732. {
  34733. new VString[255];
  34734. new price = BizInfo[biz][bPrice];
  34735. DestroyDynamic3DTextLabel(BizLabel[biz]);
  34736. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  34737. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  34738. new percent = price / 100 * 80;
  34739. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
  34740. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  34741. BizInfo[biz][bOwned] = 0;
  34742. BizInfo[biz][bLocked] = 0;
  34743. BizInfo[biz][bFee] = 0;
  34744. strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
  34745. format(string, sizeof(string), "You have sold your business for $%d.", percent);
  34746. SendClientMessage(playerid, COLOR_YELLOW, string);
  34747. PlayerInfo[playerid][pBizKey] = 999;
  34748. return 1;
  34749. }
  34750. else
  34751. {
  34752. SendClientMessage(playerid, COLOR_GRAD1, "You don't own a house !");
  34753. return 1;
  34754. }
  34755. }
  34756. return 1;
  34757. }
  34758.  
  34759. if(strcmp(cmd,"/unrent",true) == 0)
  34760. {
  34761. if(PlayerInfo[playerid][pRenthouse] != 999)
  34762. {
  34763. new house = PlayerInfo[playerid][pRenthouse];
  34764. HouseInfo[house][hRenters] -= 1;
  34765. SendClientMessage(playerid, COLOR_YELLOW, "You are no longer renting a room.");
  34766. PlayerInfo[playerid][pRenthouse] = 999;
  34767. return 1;
  34768. }
  34769. else
  34770. {
  34771. SendClientMessage(playerid, COLOR_GRAD1, "You are not renting a room.");
  34772. return 1;
  34773. }
  34774. }
  34775.  
  34776. if(strcmp(cmd, "/gotohouse", true) == 0)
  34777. {
  34778. if(IsPlayerConnected(playerid))
  34779. {
  34780. if(PlayerInfo[playerid][pAdmin] < 4)
  34781. {
  34782. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  34783. return 1;
  34784. }
  34785. tmp = strtok(cmdtext, idx);
  34786. new house = strvalEx(tmp);
  34787. if(!strlen(tmp))
  34788. {
  34789. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotohouse [HouseID]{7DAEFF}");
  34790. return 1;
  34791. }
  34792. SetPlayerPos(playerid, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]);
  34793. SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
  34794. SetPlayerInterior(playerid,0);
  34795. PlayerInfo[playerid][pInHouse] = 999;
  34796. PlayerInfo[playerid][pInBiz] = 999;
  34797. SetPlayerVirtualWorld(playerid,0);
  34798. }
  34799. return 1;
  34800. }
  34801.  
  34802. if(strcmp(cmd, "/goinhouse", true) == 0)
  34803. {
  34804. if(IsPlayerConnected(playerid))
  34805. {
  34806. if(PlayerInfo[playerid][pAdmin] < 4)
  34807. {
  34808. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  34809. return 1;
  34810. }
  34811. tmp = strtok(cmdtext, idx);
  34812. new houseid = strvalEx(tmp);
  34813. if(!strlen(tmp))
  34814. {
  34815. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /goinhouse [HouseID]{7DAEFF}");
  34816. return 1;
  34817. }
  34818. SetPlayerPos(playerid, HouseInfo[houseid][hIntLocationx],HouseInfo[houseid][hIntLocationy],HouseInfo[houseid][hIntLocationz]);
  34819. SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
  34820. SetCameraBehindPlayer(playerid);
  34821. SetPlayerInterior(playerid, HouseInfo[houseid][hInterior]);
  34822. PlayerInfo[playerid][pInt] = HouseInfo[houseid][hInterior];
  34823. SetPlayerVirtualWorld(playerid, HouseInfo[houseid][hVirtualWorld]);
  34824. PlayerInfo[playerid][pVirtualWorld] = HouseInfo[houseid][hVirtualWorld];
  34825. PlayerInfo[playerid][pInHouse] = houseid;
  34826. PlayerInfo[playerid][pInBiz] = 999;
  34827. }
  34828. return 1;
  34829. }
  34830.  
  34831. if(strcmp(cmd, "/gotobiz", true) == 0)
  34832. {
  34833. if(IsPlayerConnected(playerid))
  34834. {
  34835. if(PlayerInfo[playerid][pAdmin] < 4)
  34836. {
  34837. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  34838. return 1;
  34839. }
  34840. tmp = strtok(cmdtext, idx);
  34841. new biz = strvalEx(tmp);
  34842. if(!strlen(tmp))
  34843. {
  34844. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gotobiz [BizID]{7DAEFF}");
  34845. return 1;
  34846. }
  34847. SetPlayerPos(playerid, BizInfo[biz][bLocation_x],BizInfo[biz][bLocation_y],BizInfo[biz][bLocation_z]);
  34848. SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
  34849. SetPlayerInterior(playerid,0);
  34850. PlayerInfo[playerid][pInHouse] = 999;
  34851. PlayerInfo[playerid][pInBiz] = 999;
  34852. SetPlayerVirtualWorld(playerid,0);
  34853. }
  34854. return 1;
  34855. }
  34856.  
  34857. if(strcmp(cmd, "/goinbiz", true) == 0)
  34858. {
  34859. if(IsPlayerConnected(playerid))
  34860. {
  34861. if(PlayerInfo[playerid][pAdmin] < 4)
  34862. {
  34863. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  34864. return 1;
  34865. }
  34866. tmp = strtok(cmdtext, idx);
  34867. new biz = strvalEx(tmp);
  34868. if(!strlen(tmp))
  34869. {
  34870. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /goinbiz [BizID]{7DAEFF}");
  34871. return 1;
  34872. }
  34873. SetPlayerPos(playerid, BizInfo[biz][bIntLocationx],BizInfo[biz][bIntLocationy],BizInfo[biz][bIntLocationz]);
  34874. SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
  34875. SetCameraBehindPlayer(playerid);
  34876. SetPlayerInterior(playerid, BizInfo[biz][bInterior]);
  34877. PlayerInfo[playerid][pInt] = BizInfo[biz][bInterior];
  34878. SetPlayerVirtualWorld(playerid, BizInfo[biz][bVirtualWorld]);
  34879. PlayerInfo[playerid][pVirtualWorld] = BizInfo[biz][bVirtualWorld];
  34880. PlayerInfo[playerid][pInHouse] = 999;
  34881. PlayerInfo[playerid][pInBiz] = biz;
  34882. }
  34883. return 1;
  34884. }
  34885.  
  34886. if(strcmp(cmdtext,"/buyhouse",true)==0)
  34887. {
  34888. for(new h = 0; h < sizeof(HouseInfo); h++)
  34889. {
  34890. if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
  34891. {
  34892. if(PlayerInfo[playerid][pLevel] < 2)
  34893. {
  34894. SendClientMessage(playerid, COLOR_RED, "** You have to be at least level 2 to buy a house");
  34895. RemovePlayerFromVehicle(playerid);
  34896. return 1;
  34897. }
  34898. if(HouseInfo[h][hOwned] == 1)
  34899. {
  34900. SendClientMessage(playerid,COLOR_GRAD1,"This house is already owned!");
  34901. return 1;
  34902. }
  34903. if(PlayerInfo[playerid][pHouseKey] != 999)
  34904. {
  34905. SendClientMessage(playerid,COLOR_GRAD1,"You already own a house, you have to sell it first!");
  34906. return 1;
  34907. }
  34908. if(PlayerInfo[playerid][pRenthouse] != 999)
  34909. {
  34910. SendClientMessage(playerid,COLOR_GRAD1,"You are currently renting a room, /unrent first!");
  34911. return 1;
  34912. }
  34913. if(PlayerInfo[playerid][pCash] < HouseInfo[h][hPrice])
  34914. {
  34915. SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
  34916. return 1;
  34917. }
  34918. GetPlayerName(playerid, sendername, sizeof(sendername));
  34919. new price = HouseInfo[h][hPrice];
  34920. PlayerInfo[playerid][pCash] -= price;
  34921. GivePlayerMoney(playerid,-price);
  34922. PlayerInfo[playerid][pHouseKey] = h;
  34923. HouseInfo[h][hOwned] = 1;
  34924. HouseInfo[h][hVulnerable] = 5;
  34925. strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
  34926. GameTextForPlayer(playerid, "~y~Property bought", 5000, 1);
  34927. PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
  34928. //DestroyDynamicMapIcon(HouseIcon[h]);
  34929. DestroyDynamic3DTextLabel(HouseLabel[h]);
  34930. new VString[255];
  34931. new name[25], owner[MAX_PLAYER_NAME];
  34932. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  34933. strmid(name, HouseInfo[h][hName], 0, strlen(HouseInfo[h][hName]), 255);
  34934. if(HouseInfo[h][hRentable] == 0)
  34935. {
  34936. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[h][hLevel],owner);
  34937. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  34938. }
  34939. if(HouseInfo[h][hRentable] == 1)
  34940. {
  34941. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[h][hLevel],owner,HouseInfo[h][hRent]);
  34942. HouseLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  34943. }
  34944. //HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hLocation_x], HouseInfo[h][hLocation_y], HouseInfo[h][hLocation_z], 32, 0);
  34945. SendClientMessage(playerid,COLOR_YELLOW, "You have successfully bought this house !");
  34946. SendClientMessage(playerid,COLOR_YELLOW, "Use /househelp to see the commands.");
  34947. return 1;
  34948. }
  34949. }
  34950. }
  34951.  
  34952. if(strcmp(cmdtext,"/buybiz",true)==0)
  34953. {
  34954. for(new h = 0; h < sizeof(BizInfo); h++)
  34955. {
  34956. if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]))
  34957. {
  34958. if(PlayerInfo[playerid][pLevel] < 2)
  34959. {
  34960. SendClientMessage(playerid, COLOR_RED, "** You have to be at least level 2 to buy a business");
  34961. RemovePlayerFromVehicle(playerid);
  34962. return 1;
  34963. }
  34964. if(BizInfo[h][bOwned] == 1)
  34965. {
  34966. SendClientMessage(playerid,COLOR_GRAD1,"This business is already owned!");
  34967. return 1;
  34968. }
  34969. if(PlayerInfo[playerid][pBizKey] != 999)
  34970. {
  34971. SendClientMessage(playerid,COLOR_GRAD1,"You already own a business, you have to sell it first!");
  34972. return 1;
  34973. }
  34974. if(BizInfo[h][bType] == 0)
  34975. {
  34976. SendClientMessage(playerid,COLOR_GRAD1,"You can't buy normal buildings!");
  34977. return 1;
  34978. }
  34979. if(PlayerInfo[playerid][pCash] < BizInfo[h][bPrice])
  34980. {
  34981. SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
  34982. return 1;
  34983. }
  34984. GetPlayerName(playerid, sendername, sizeof(sendername));
  34985. new price = BizInfo[h][bPrice];
  34986. PlayerInfo[playerid][pCash] -= price;
  34987. GivePlayerMoney(playerid,-price);
  34988. PlayerInfo[playerid][pBizKey] = h;
  34989. BizInfo[h][bOwned] = 1;
  34990. strmid(BizInfo[h][bOwner], sendername, 0, strlen(sendername), 255);
  34991. GameTextForPlayer(playerid, "~y~Business bought", 5000, 1);
  34992. PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
  34993. DestroyDynamic3DTextLabel(BizLabel[h]);
  34994. new VString[255];
  34995. new name[25], owner[MAX_PLAYER_NAME];
  34996. strmid(owner, BizInfo[h][bOwner], 0, strlen(BizInfo[h][bOwner]), 255);
  34997. strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
  34998. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[h][bFee]);
  34999. BizLabel[h] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[h][bLocation_x], BizInfo[h][bLocation_y], BizInfo[h][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[h][bPVW], BizInfo[h][bPInt], -1, 100.0);
  35000. SendClientMessage(playerid,COLOR_YELLOW, "You have successfully bought this business !");
  35001. SendClientMessage(playerid,COLOR_YELLOW, "Use /bizhelp to see the commands.");
  35002. return 1;
  35003. }
  35004. }
  35005. }
  35006.  
  35007. if(strcmp(cmdtext,"/breakin",true)==0)
  35008. {
  35009. for(new h = 0; h < sizeof(HouseInfo); h++)
  35010. {
  35011. if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
  35012. {
  35013. if(HouseInfo[h][hLocked] == 0)
  35014. {
  35015. SendClientMessage(playerid,COLOR_GRAD1,"This house is not locked!");
  35016. return 1;
  35017. }
  35018. if(PlayerInfo[playerid][Lockpicking] > 0)
  35019. {
  35020. SendClientMessage(playerid, COLOR_GREY, " You are already lockpicking this house");
  35021. return 1;
  35022. }
  35023. if(PlayerInfo[playerid][pCrowbar] == 0)
  35024. {
  35025. SendClientMessage(playerid, COLOR_GREY, " Your need a crowbar do lockpick a door!");
  35026. return 1;
  35027. }
  35028. if(crowbar[playerid] == 0)
  35029. {
  35030. SendClientMessage(playerid, COLOR_GREY, " You're not holding a crowbar (( /crowbar ))!");
  35031. return 1;
  35032. }
  35033. new owner[MAX_PLAYER_NAME];
  35034. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  35035. giveplayerid = ReturnUser(owner);
  35036. PlayerInfo[playerid][Lockpicking] = 20;
  35037. PlayerInfo[playerid][HLockpick] = h;
  35038. PlayerInfo[playerid][pScrew]--;
  35039. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35040. format(string, sizeof(string), "** %s pulls out a screwdriver and begins lockpicking the house...", sendername);
  35041. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35042. SendClientMessage(playerid, COLOR_LIGHTBLUE, "** It takes you 20 seconds to unlock this house...");
  35043. if(HouseInfo[h][hAlarmON] == 1)
  35044. {
  35045. if(IsPlayerConnected(giveplayerid))
  35046. {
  35047. SetPlayerCheckpoint(giveplayerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z], 3.0);
  35048. SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  35049. SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because your house alarm has been activated");
  35050. }
  35051. }
  35052. SetTimerEx("Breakin", 1, false, "d", playerid);
  35053. SetTimerEx("Breakinmove", 1, false, "d", playerid);
  35054. return 1;
  35055. }
  35056. }
  35057. }
  35058.  
  35059. /* if(strcmp(cmdtext,"/robhouse",true)==0)
  35060. {
  35061. for(new h = 0; h < sizeof(HouseInfo); h++)
  35062. {
  35063. if(PlayerInfo[playerid][pInHouse] == 999)
  35064. {
  35065. SendClientMessage(playerid, COLOR_GREY, " Your need to be in a house to do this!");
  35066. return 1;
  35067. }
  35068. new houseid = PlayerInfo[playerid][pInHouse];
  35069. if(HouseInfo[houseid][hVulnerable] != 0)
  35070. {
  35071. SendClientMessage(playerid,COLOR_GRAD1,"This house was recently robbed!");
  35072. return 1;
  35073. }
  35074. if(PlayerInfo[playerid][pStolenObject1] != 0 || PlayerInfo[playerid][pStolenObject2] != 0 || PlayerInfo[playerid][pStolenObject3] != 0 || PlayerInfo[playerid][pStolenObject4] != 0 || PlayerInfo[playerid][pStolenObject5] != 0)
  35075. {
  35076. SendClientMessage(playerid, COLOR_GREY, " You have too many stolen objects already. You have to sell them first");
  35077. return 1;
  35078. }
  35079. if(PlayerInfo[playerid][pCrowbar] == 0)
  35080. {
  35081. SendClientMessage(playerid, COLOR_GREY, " Your need a crowbar to rob a house!");
  35082. return 1;
  35083. }
  35084. new owner[MAX_PLAYER_NAME];
  35085. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  35086. giveplayerid = ReturnUser(owner);
  35087. PlayerInfo[playerid][RobHouseTime] = 5;
  35088. PlayerInfo[playerid][RobHouseID] = houseid;
  35089. PlayerInfo[playerid][RobHouse] = 1;
  35090. PlayerInfo[playerid][pCrowbar]--;
  35091. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35092. format(string, sizeof(string), "** %s pulls out a crowbar and begins searching in the house...", sendername);
  35093. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35094. SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You have to stay inside the house for 5 minutes");
  35095. SetTimerEx("RobHouse1", 1, false, "d", playerid);
  35096. SetTimerEx("RobInHouse", 1, false, "d", playerid);
  35097. return 1;
  35098. }
  35099. }*/
  35100.  
  35101. if(strcmp(cmd, "/sbalance", true) == 0)
  35102. {
  35103. if(IsPlayerConnected(playerid))
  35104. {
  35105. if(PlayerInfo[playerid][pInHouse] != 999)
  35106. {
  35107. new house = PlayerInfo[playerid][pInHouse];
  35108. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  35109. {
  35110. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  35111. return 1;
  35112. }
  35113. if(HouseInfo[house][hSafeOpen] == 0)
  35114. {
  35115. SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
  35116. return 1;
  35117. }
  35118. new gunname1[64];
  35119. if(HouseInfo[house][hGun1] != 0)
  35120. {
  35121. GetWeaponName(HouseInfo[house][hGun1], gunname1, sizeof(gunname1));
  35122. }
  35123. else { gunname1 = "Empty"; }
  35124. new gunname2[64];
  35125. if(HouseInfo[house][hGun2] != 0)
  35126. {
  35127. GetWeaponName(HouseInfo[house][hGun2], gunname2, sizeof(gunname2));
  35128. }
  35129. else { gunname2 = "Empty"; }
  35130. new gunname3[64];
  35131. if(HouseInfo[house][hGun3] != 0)
  35132. {
  35133. GetWeaponName(HouseInfo[house][hGun3], gunname3, sizeof(gunname3));
  35134. }
  35135. else { gunname3 = "Empty"; }
  35136. new gunname4[64];
  35137. if(HouseInfo[house][hGun4] != 0)
  35138. {
  35139. GetWeaponName(HouseInfo[house][hGun4], gunname4, sizeof(gunname4));
  35140. }
  35141. else { gunname4 = "Empty"; }
  35142. format(string, sizeof(string), "Guns: %s | %s | %s | %s",gunname1,gunname2,gunname3,gunname4 );
  35143. SendClientMessage(playerid, COLOR_GRAD6, string);
  35144. format(string, sizeof(string), "Cash: $%d | Pot: %d | Crack: %d | Materials: %d", HouseInfo[house][hCash], HouseInfo[house][hPot], HouseInfo[house][hCrack], HouseInfo[house][hMaterials]);
  35145. SendClientMessage(playerid, COLOR_GRAD6, string);
  35146. }
  35147. else
  35148. {
  35149. SendClientMessage(playerid, COLOR_GREY, " You are not inside a house !");
  35150. }
  35151. }
  35152. return 1;
  35153. }
  35154.  
  35155. if(strcmp(cmdtext,"/lockhouse",true)==0)
  35156. {
  35157. if(PlayerInfo[playerid][pHouseKey] != 999 || PlayerInfo[playerid][pRenthouse] != 999)
  35158. {
  35159. new h;
  35160. if(PlayerInfo[playerid][pHouseKey] != 999) { h = PlayerInfo[playerid][pHouseKey]; }
  35161. else if(PlayerInfo[playerid][pRenthouse] != 999) { h = PlayerInfo[playerid][pRenthouse]; }
  35162. if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]) || (IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == HouseInfo[h][hVirtualWorld]))
  35163. {
  35164. if(HouseInfo[h][hLocked] == 0)
  35165. {
  35166. HouseInfo[h][hLocked] = 1;
  35167. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  35168. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35169. format(string, sizeof(string), "* %s has locked their house.", sendername);
  35170. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35171. return 1;
  35172. }
  35173. else if(HouseInfo[h][hLocked] == 1)
  35174. {
  35175. HouseInfo[h][hLocked] = 0;
  35176. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  35177. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35178. format(string, sizeof(string), "* %s has unlocked their house.", sendername);
  35179. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35180. return 1;
  35181. }
  35182.  
  35183. }
  35184. else
  35185. {
  35186. SendClientMessage(playerid,COLOR_GRAD1,"You are not at your house door!");
  35187. }
  35188. return 1;
  35189. }
  35190. else
  35191. {
  35192. SendClientMessage(playerid,COLOR_GRAD1,"You don't have a house key!");
  35193. return 1;
  35194. }
  35195. }
  35196.  
  35197. if(strcmp(cmdtext,"/lockbiz",true)==0)
  35198. {
  35199. if(PlayerInfo[playerid][pBizKey] != 999)
  35200. {
  35201. new h = PlayerInfo[playerid][pBizKey];
  35202. if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]) || (IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bVirtualWorld]))
  35203. {
  35204. if(BizInfo[h][bLocked] == 0)
  35205. {
  35206. BizInfo[h][bLocked] = 1;
  35207. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  35208. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35209. format(string, sizeof(string), "* %s has locked the door of their business.", sendername);
  35210. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35211. return 1;
  35212. }
  35213. else if(BizInfo[h][bLocked] == 1)
  35214. {
  35215. BizInfo[h][bLocked] = 0;
  35216. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  35217. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  35218. format(string, sizeof(string), "* %s has unlocked the door of their business.", sendername);
  35219. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35220. return 1;
  35221. }
  35222.  
  35223. }
  35224. else
  35225. {
  35226. SendClientMessage(playerid,COLOR_GRAD1,"You are not at your business door!");
  35227. }
  35228. return 1;
  35229. }
  35230. else
  35231. {
  35232. SendClientMessage(playerid,COLOR_GRAD1,"You don't have a business key!");
  35233. return 1;
  35234. }
  35235. }
  35236.  
  35237. if(strcmp(cmd, "/enter", true) == 0)
  35238. {
  35239. if(IsPlayerConnected(playerid))
  35240. {
  35241. new Float:shax, Float:shay, Float:shaz;
  35242. new Float:shbx, Float:shby, Float:shbz;
  35243. new Float:shcx, Float:shcy, Float:shcz;
  35244. GetVehiclePos(152, shax, shay, shaz);
  35245. GetVehiclePos(153, shbx, shby, shbz);
  35246. GetVehiclePos(154, shcx, shcy, shcz);
  35247. //foreach(Player, i)
  35248. for(new h = 0; h < sizeof(HouseInfo); h++)
  35249. {
  35250. if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
  35251. {
  35252. if(HouseInfo[h][hLocked] == 1)
  35253. {
  35254. SendClientMessage(playerid,COLOR_GRAD1,"This house is currently locked");
  35255. return 1;
  35256. }
  35257. new houseid = h;
  35258. SetPlayerPos(playerid, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]);
  35259. SetCameraBehindPlayer(playerid);
  35260. SetPlayerInterior(playerid, HouseInfo[h][hInterior]);
  35261. PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior];
  35262. SetPlayerVirtualWorld(playerid, HouseInfo[h][hVirtualWorld]);
  35263. PlayerInfo[playerid][pVirtualWorld] = HouseInfo[h][hVirtualWorld];
  35264. PlayerInfo[playerid][pInHouse] = houseid;
  35265. SetPlayerFacingAngle(playerid, HouseInfo[h][hEnterAngle]);
  35266. SetCameraBehindPlayer(playerid);
  35267. new owner[MAX_PLAYER_NAME];
  35268. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  35269. giveplayerid = ReturnUser(owner);
  35270. if(HouseInfo[h][hAlarmON] == 1)
  35271. {
  35272. if(IsPlayerConnected(giveplayerid))
  35273. {
  35274. SetPlayerCheckpoint(giveplayerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z], 3.0);
  35275. SendClientMessage(giveplayerid, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" We're watching...™");
  35276. SendClientMessage(giveplayerid, COLOR_WHITE, ""CB"Message:"CW" You received this message because your house alarm has been activated");
  35277. }
  35278. }
  35279. return 1;
  35280. }
  35281. }
  35282. for(new h = 0; h < sizeof(BizInfo); h++)
  35283. {
  35284. if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bPVW])
  35285. {
  35286. if(BizInfo[h][bLocked] == 1)
  35287. {
  35288. GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
  35289. return 1;
  35290. }
  35291. if(PlayerInfo[playerid][pCash] < BizInfo[h][bFee] && BizInfo[h][bType] != 0)
  35292. {
  35293. SendClientMessage(playerid,COLOR_GRAD1,"You can't afford to enter this business");
  35294. return 1;
  35295. }
  35296. new bizid = h;
  35297. new name[25];
  35298. strmid(name, BizInfo[h][bName], 0, strlen(BizInfo[h][bName]), 255);
  35299. SetPlayerPos(playerid, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]);
  35300. SetCameraBehindPlayer(playerid);
  35301. SetPlayerInterior(playerid, BizInfo[h][bInterior]);
  35302. PlayerInfo[playerid][pInt] = BizInfo[h][bInterior];
  35303. SetPlayerVirtualWorld(playerid, BizInfo[h][bVirtualWorld]);
  35304. PlayerInfo[playerid][pVirtualWorld] = BizInfo[h][bVirtualWorld];
  35305. PlayerInfo[playerid][pInBiz] = bizid;
  35306. PlayerInfo[playerid][pCash] -= BizInfo[h][bFee];
  35307. GivePlayerMoney(playerid,-BizInfo[h][bFee]);
  35308. SetPlayerFacingAngle(playerid, BizInfo[h][bEnterAngle]);
  35309. format(string, sizeof(string), "~r~%s", name);
  35310. GameTextForPlayer(playerid, string, 5000, 1);
  35311. SetCameraBehindPlayer(playerid);
  35312. if(BizInfo[h][bOwned] == 1)
  35313. {
  35314. new price = BizInfo[h][bTill]+BizInfo[h][bFee];
  35315. BizInfo[h][bTill] = price;
  35316. }
  35317. if(BizInfo[h][bType] > 0 && BizInfo[h][bType] != 8)
  35318. {
  35319. SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buy to purchase something from this business !");
  35320. }
  35321. if(BizInfo[h][bType] == 8)
  35322. {
  35323. SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /lotto to purchase a lotto ticket !");
  35324. }
  35325. return 1;
  35326. }
  35327. }
  35328. if(IsPlayerInRangeOfPoint(playerid, 3.0, 327.6485,-1512.1423,36.0325)) //The VIP Lounge (Enter) - PaNoULiS
  35329. {
  35330. if(PlayerInfo[playerid][pDonateRank] >= 1)
  35331. {
  35332. SetPlayerPos(playerid, -2634.9387,1409.7109,906.4609);
  35333. SetCameraBehindPlayer(playerid);
  35334. SetPlayerInterior(playerid, 3);
  35335. PlayerInfo[playerid][pInt] = 3;
  35336. SetPlayerVirtualWorld(playerid, 0);
  35337. PlayerInfo[playerid][pVirtualWorld] = 0;
  35338. GameTextForPlayer(playerid, "~w~The ~r~V~y~I~p~P ~b~Lounge", 5000, 1);
  35339. SetCameraBehindPlayer(playerid);
  35340. return 1;
  35341. }
  35342. else
  35343. {
  35344. SendClientMessage(playerid,COLOR_RED,"You are not a VIP.");
  35345. return 1;
  35346. }
  35347. }
  35348. else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //SHAMAL 1
  35349. {
  35350. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
  35351. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  35352. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35353. SetPlayerVirtualWorld(playerid, 1337);
  35354. SetPlayerInterior(playerid,1);
  35355. SetPlayerPos(playerid,2.57, 33.14, 1200);
  35356. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  35357. GivePlayerGun(playerid, 46);
  35358. return 1;
  35359. }
  35360. else if(IsPlayerInRangeOfPoint(playerid,8.0,shbx,shby,shbz)) //SHAMAL 2
  35361. {
  35362. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
  35363. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  35364. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35365. SetPlayerVirtualWorld(playerid, 1338);
  35366. SetPlayerInterior(playerid,1);
  35367. SetPlayerPos(playerid,2.57, 33.14, 1200);
  35368. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  35369. GivePlayerGun(playerid, 46);
  35370. return 1;
  35371. }
  35372. else if(IsPlayerInRangeOfPoint(playerid,8.0,shcx,shcy,shcz)) //SHAMAL 3
  35373. {
  35374. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
  35375. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  35376. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35377. SetPlayerVirtualWorld(playerid, 1339);
  35378. SetPlayerInterior(playerid,1);
  35379. SetPlayerPos(playerid,2.57, 33.14, 1200);
  35380. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  35381. GivePlayerGun(playerid, 46);
  35382. return 1;
  35383. }
  35384.  
  35385. }
  35386. return 1;
  35387. }
  35388. if(strcmp(cmd, "/exitpb", true) == 0 || strcmp(cmd, "/exitpaintball", true) == 0)
  35389. {
  35390. if(IsPlayerConnected(playerid))
  35391. {
  35392. if(PlayerPaintballing[playerid] != 0)
  35393. {
  35394. ResetPlayerWeapons(playerid);
  35395. ClearGuns(playerid);
  35396. ResetPlayerAdminWeaponsEx(playerid);
  35397. SetPlayerWeapons(playerid);
  35398. PlayerPaintballing[playerid] = 0;
  35399. SetPlayerPos(playerid,1310.2244,-1368.6892,13.5526);
  35400. TogglePlayerControllable(playerid, 1);
  35401. SetPlayerInterior(playerid, 0);
  35402. SetPlayerVirtualWorld(playerid, 0);
  35403. PaintballPlayers --;
  35404. PlayerPaintballKills[playerid] = 0;
  35405. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  35406. for(new i; i<MAX_PLAYERS; i++)
  35407. {
  35408. if(IsPlayerConnected(i))
  35409. {
  35410. if(PlayerPaintballing[i] != 0)
  35411. {
  35412. format(string, sizeof(string), "* %s has left the Paintball.",sendername);
  35413. SendClientMessage(i, COLOR_GREEN, string);
  35414. }
  35415. }
  35416. }
  35417. return 1;
  35418. }
  35419. }
  35420. return 1;
  35421. }
  35422.  
  35423.  
  35424. if(strcmp(cmd, "/exit", true) == 0)
  35425. {
  35426. if(IsPlayerConnected(playerid))
  35427. {
  35428. for(new h = 0; h < sizeof(HouseInfo); h++)
  35429. {
  35430. if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hIntLocationx],HouseInfo[h][hIntLocationy],HouseInfo[h][hIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == HouseInfo[h][hVirtualWorld])
  35431. {
  35432. if(HouseInfo[h][hLocked] == 1)
  35433. {
  35434. SendClientMessage(playerid,COLOR_GRAD1,"This house is currently locked");
  35435. return 1;
  35436. }
  35437. SetPlayerPos(playerid, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]);
  35438. SetCameraBehindPlayer(playerid);
  35439. SetPlayerInterior(playerid, 0);
  35440. PlayerInfo[playerid][pInt] = 0;
  35441. SetPlayerVirtualWorld(playerid, 0);
  35442. PlayerInfo[playerid][pVirtualWorld] = 0;
  35443. SetPlayerFacingAngle(playerid, HouseInfo[h][hExitAngle]);
  35444. SetCameraBehindPlayer(playerid);
  35445. PlayerInfo[playerid][pInHouse] = 999;
  35446. return 1;
  35447. }
  35448. }
  35449. for(new h = 0; h < sizeof(BizInfo); h++)
  35450. {
  35451. if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[h][bIntLocationx],BizInfo[h][bIntLocationy],BizInfo[h][bIntLocationz]) && PlayerInfo[playerid][pVirtualWorld] == BizInfo[h][bVirtualWorld])
  35452. {
  35453. if(BizInfo[h][bLocked] == 1)
  35454. {
  35455. GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
  35456. return 1;
  35457. }
  35458. SetPlayerPos(playerid, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]);
  35459. SetCameraBehindPlayer(playerid);
  35460. SetPlayerInterior(playerid, BizInfo[h][bPInt]);
  35461. PlayerInfo[playerid][pInt] = BizInfo[h][bPInt];
  35462. SetPlayerVirtualWorld(playerid, BizInfo[h][bPVW]);
  35463. PlayerInfo[playerid][pVirtualWorld] = BizInfo[h][bPVW];
  35464. SetPlayerFacingAngle(playerid, BizInfo[h][bExitAngle]);
  35465. SetCameraBehindPlayer(playerid);
  35466. PlayerInfo[playerid][pInBiz] = 999;
  35467. return 1;
  35468. }
  35469. }
  35470. if(IsPlayerInRangeOfPoint(playerid, 3.0, -2634.9387,1409.7109,906.4609) && GetPlayerVirtualWorld(playerid) == 0) //The VIP Lounge (Exit) - PaNoULiS
  35471. {
  35472. SetPlayerInterior(playerid, 0);
  35473. SetPlayerPos(playerid, 327.6485,-1512.1423,36.0325);
  35474. PlayerInfo[playerid][pInt] = 0;
  35475. SetPlayerVirtualWorld(playerid, 0);
  35476. SetCameraBehindPlayer(playerid);
  35477. }
  35478. else if(IsPlayerInRangeOfPoint(playerid, 8.0,2.57, 33.14, 1200)) // SHAMAL
  35479. {
  35480. new
  35481. vwcheck = GetPlayerVirtualWorld(playerid),
  35482. Float:px,
  35483. Float:py,
  35484. Float:pz,
  35485. Float:za,
  35486. Float:vx,
  35487. Float:vy,
  35488. Float:vz,
  35489. vehicle
  35490. ;
  35491.  
  35492. switch(vwcheck)
  35493. {
  35494. case 1337: vehicle = 152;
  35495. case 1338: vehicle = 153;
  35496. case 1339: vehicle = 154;
  35497. }
  35498.  
  35499. if(vehicle)
  35500. {
  35501. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has left the shamal.");
  35502. else format(string, sizeof(string), "* %s has left the shamal.", sendername);
  35503. GetVehiclePos(vehicle,px,py,pz);
  35504. GetVehicleZAngle(vehicle,za);
  35505. GetVehicleVelocity(vehicle,vx,vy,vz);
  35506.  
  35507. px -= (10 * floatsin(-za, degrees));
  35508. py -= (10 * floatcos(-za, degrees));
  35509.  
  35510. SetPlayerVirtualWorld(playerid,0);
  35511. SetPlayerInterior(playerid,0);
  35512. SetPlayerPos(playerid,px,py,pz);
  35513. SetPlayerFacingAngle(playerid,za);
  35514. SetPlayerVelocity(playerid,vx,vy,vz);
  35515. return 1;
  35516. }
  35517. }
  35518. if(IsPlayerInAnyVehicle(playerid))
  35519. {
  35520. new isdriver = GetPlayerVehicleSeat(playerid);
  35521. if(isdriver == 0)
  35522. {
  35523. TogglePlayerControllable(playerid, 1);
  35524. RemovePlayerFromVehicle(playerid);
  35525. return 1;
  35526. }
  35527. else { return 1; }
  35528. }
  35529. }
  35530. return 1;
  35531. }
  35532.  
  35533. if(strcmp(cmdtext,"/viptime",true)==0)
  35534. {
  35535. if(PlayerInfo[playerid][pDonateRank] < 1)
  35536. {
  35537. return SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  35538. }
  35539. format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[playerid][pVIPJoinDate], PlayerInfo[playerid][pVIPExpDate]);
  35540. SendClientMessage(playerid,COLOR_GRAD1,string);
  35541. return 1;
  35542. }
  35543. if(strcmp(cmd, "/makevip", true) == 0)
  35544. {
  35545. GetPlayerName(playerid, sendername, sizeof(sendername));
  35546. if(PlayerInfo[playerid][pAdmin] >= 6)
  35547. {
  35548. tmp = strtok(cmdtext, idx);
  35549. if(!strlen(tmp))
  35550. {
  35551. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makevip [playerid/PartOfName] [rank]{7DAEFF}");
  35552. return 1;
  35553. }
  35554. giveplayerid = ReturnUser(tmp);
  35555. if(giveplayerid == INVALID_PLAYER_ID)
  35556. {
  35557. SendClientMessage(playerid, COLOR_GRAD2, "Invalid player ID.");
  35558. return 1;
  35559. }
  35560. new x_string[64];
  35561. x_string = strtok(cmdtext, idx);
  35562. if(!strlen(x_string))
  35563. {
  35564. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makevip [playerid/PartOfName] [rank]{7DAEFF}");
  35565. return 1;
  35566. }
  35567. new Year, Month, Day;
  35568. getdate(Year, Month, Day);
  35569. if(Month == 1 && Day >= 29) { return SendClientMessage(giveplayerid, COLOR_GREY, "You cannot make vips today."); }
  35570. if(strcmp(x_string,"0",true) == 0)
  35571. {
  35572. PlayerInfo[giveplayerid][pDonateRank] = 0;
  35573. format(string, sizeof(string), "AdmWarning: %s's VIP status has been revoked by %s.",PlayerName(giveplayerid),PlayerName(playerid));
  35574. ABroadCast(COLOR_LIGHTRED,string,1);
  35575. format(string, sizeof(string), "Admin %s has revoked you of your VIP status.", PlayerName(playerid));
  35576. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  35577. ClearVIP(giveplayerid);
  35578. return 1;
  35579. }
  35580. else if(strcmp(x_string,"1",true) == 0)
  35581. {
  35582. PlayerInfo[giveplayerid][pDonateRank] = 1;
  35583. format(string, sizeof(string), "AdmWarning: %s has been made a bronze VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
  35584. ABroadCast(COLOR_LIGHTRED,string,1);
  35585. format(string, sizeof(string), "Admin %s has made you a bronze VIP.", PlayerName(playerid));
  35586. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  35587. }
  35588. else if(strcmp(x_string,"2",true) == 0)
  35589. {
  35590. PlayerInfo[giveplayerid][pDonateRank] = 2;
  35591. format(string, sizeof(string), "AdmWarning: %s has been made a silver VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
  35592. ABroadCast(COLOR_LIGHTRED,string,1);
  35593. format(string, sizeof(string), "Admin %s has made you a silver VIP.", PlayerName(playerid));
  35594. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  35595. }
  35596. else if(strcmp(x_string,"3",true) == 0)
  35597. {
  35598. PlayerInfo[giveplayerid][pDonateRank] = 3;
  35599. format(string, sizeof(string), "AdmWarning: %s has been made a gold VIP by %s.",PlayerName(giveplayerid),PlayerName(playerid));
  35600. ABroadCast(COLOR_LIGHTRED,string,1);
  35601. format(string, sizeof(string), "Admin %s has made you a gold VIP.", PlayerName(playerid));
  35602. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  35603. }
  35604. format(string, 32, "%02d/%02d/%d", Month, Day, Year);
  35605. strmid(PlayerInfo[giveplayerid][pVIPJoinDate], string, 0, strlen(string), 255);
  35606. format(string, 32, "%02d/%02d/%d", Month+1, Day, Year);
  35607. strmid(PlayerInfo[giveplayerid][pVIPExpDate], string, 0, strlen(string), 255);
  35608. if(Month == 12) { format(PlayerInfo[giveplayerid][pVIPExpDate], 32, "%02d/%02d/%d", 1, Day, Year+1); }
  35609. format(string, sizeof(string), "Join Date: %s, Expire Date: %s", PlayerInfo[giveplayerid][pVIPJoinDate], PlayerInfo[giveplayerid][pVIPExpDate]);
  35610. SendClientMessage(giveplayerid, COLOR_GRAD2, string);
  35611. }
  35612. else { SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use this command."); }
  35613. return 1;
  35614. }
  35615. if(strcmp(cmd, "/exchange", true) == 0)
  35616. {
  35617. if(IsPlayerConnected(playerid))
  35618. {
  35619. if(IsPlayerInRangeOfPoint(playerid,6,379.169189,-188.803024,1000.63))
  35620. {
  35621. ShowPlayerDialog(playerid,donutshopdiag1,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Aspirin(Full health) [3 Donuts]\nKevlar(Full Armor) [3 Donuts]\n25g crack [4 Donuts]\n25g pot [4 Donuts]\nWeapon - Deagle [5 Donuts]\nWeapon - MP5 [6 Donuts]\nWeapon - M4 [7 Donuts]\nWeapon - AK47 [7 Donuts]\nWeapon - Spas12 [10 Donuts]\nWeapon Sniper [10 Donuts]\nMore...","Exchange","Cancel"); //Donuts shop
  35622. }
  35623. else { SendClientMessage(playerid, COLOR_GREY, "You are not at the Donuts Shop"); return 1; }
  35624. }
  35625. return 1;
  35626. }
  35627. if(strcmp(cmd, "/buy", true) == 0)
  35628. {
  35629. if(PlayerInfo[playerid][pInBiz] == 999)
  35630. {
  35631. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a business !");
  35632. return 1;
  35633. }
  35634. new biz = PlayerInfo[playerid][pInBiz];
  35635. if(BizInfo[biz][bType] == 0) // None
  35636. {
  35637. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a business !");
  35638. return 1;
  35639. }
  35640. if(BizInfo[biz][bProducts] <= 0)
  35641. {
  35642. SendClientMessage(playerid, COLOR_GRAD2, " This business doesn't have any products left !");
  35643. return 1;
  35644. }
  35645. if(BizInfo[biz][bType] == 1)
  35646. {
  35647. DisplayDialogForPlayer(playerid, 3); //247
  35648. return 1;
  35649. }
  35650. if(BizInfo[biz][bType] == 2)
  35651. {
  35652. DisplayDialogForPlayer(playerid, 4); //Bar
  35653. return 1;
  35654. }
  35655. if(BizInfo[biz][bType] == 3)
  35656. {
  35657. if(PlayerInfo[playerid][pGunLic] == 0)
  35658. {
  35659. SendClientMessage(playerid, COLOR_GREY, "You need a gun license to buy guns.");
  35660. return 1;
  35661. }
  35662. ShowPlayerDialog(playerid,AMMUNATIONDIALOG,DIALOG_STYLE_LIST,"Ammunation","Vest ($1,500)\nMP5 ($2,500)\nShotgun ($2,000)\nColt45 ($500)","Buy","Cancel"); //Ammunation
  35663. return 1;
  35664. }
  35665. if(BizInfo[biz][bType] == 4)
  35666. {
  35667. DisplayDialogForPlayer(playerid, 7); //Restaurant
  35668. return 1;
  35669. }
  35670. if(BizInfo[biz][bType] == 5)
  35671. {
  35672. ShowPlayerDialog(playerid,BINCODIALOG,DIALOG_STYLE_LIST,"Clothing Shop","Skin\nGlasses\nHats\nBandana\nMasks\nHelmets","Buy","Cancel"); //Clothing shop
  35673. return 1;
  35674. }
  35675. if(BizInfo[biz][bType] == 6)
  35676. return ShowPlayerDialog(playerid, 8711, DIALOG_STYLE_LIST, "Phone Company", "Cellphone $500\nPhonebook $350\nBuy Credit\nNumber Information", "Select", "Cancel"); // Phone Company
  35677.  
  35678. return 1;
  35679. }
  35680.  
  35681. if(strcmp(cmd, "/faq", true) == 0) // Logan Stone
  35682. {
  35683. ShowPlayerDialog(playerid,FAQ,DIALOG_STYLE_LIST,"Frequently asked questions","How to level up\nHow to buy a car\nHow to buy a house\nHow to buy a business\nHow to join a faction\nHow to join a gang\nHow to become VIP\nWhat's the use of donuts and how to get them\nHow to become a staff member\nHow to rob the bank\nHow to get a refund\nGeneral help","Ok","Cancel"); //FAQ
  35684. return 1;
  35685. }
  35686.  
  35687. if(strcmp(cmd, "/showpass", true) == 0 && PlayerInfo[playerid][pAdmin] >= 1)
  35688. {
  35689. new showpass = Pass[LSPD];
  35690. format(string, sizeof(string), "The LSPD Door password is: %d.", showpass);
  35691. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35692. }
  35693. if(strcmp(cmd, "/makeadmin", true) == 0)
  35694. {
  35695. if(IsPlayerConnected(playerid))
  35696. {
  35697. if(PlayerInfo[playerid][pAdmin] >= 6)
  35698. {
  35699. tmp = strtok(cmdtext, idx);
  35700. if(!strlen(tmp))
  35701. {
  35702. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /makeadmin [playerid/PartOfName] [level(1-7)]{7DAEFF}");
  35703. return 1;
  35704. }
  35705. new para1;
  35706. new level;
  35707. para1 = ReturnUser(tmp);
  35708. tmp = strtok(cmdtext, idx);
  35709. level = strvalEx(tmp);
  35710. if(IsPlayerConnected(para1))
  35711. if(level > 7 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You can't go higher than 7 or lower than 0."); return 1; }
  35712. {
  35713. if(para1 != INVALID_PLAYER_ID)
  35714. {
  35715. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  35716. GetPlayerName(playerid, sendername, sizeof(sendername));
  35717. PlayerInfo[para1][pAdmin] = level;
  35718. printf("Info: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
  35719. format(string, sizeof(string), "You have been promoted/demoted to a level %d admin by %s.", level, sendername);
  35720. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  35721. format(string, sizeof(string), "You have promoted/demoted %s to a level %d admin.", giveplayer,level);
  35722. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35723. }
  35724. }
  35725. }
  35726. }
  35727. return 1;
  35728. }
  35729. if(strcmp(cmd, "/uninvite", true) == 0)
  35730. {
  35731. if(IsPlayerConnected(playerid))
  35732. {
  35733. tmp = strtok(cmdtext, idx);
  35734. if(!strlen(tmp))
  35735. {
  35736. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /uninvite [playerid/PartOfName]{7DAEFF}");
  35737. return 1;
  35738. }
  35739. new para1;
  35740. para1 = ReturnUser(tmp);
  35741. if(PlayerInfo[playerid][pLeader] >= 1)
  35742. {
  35743. if(IsPlayerConnected(para1))
  35744. {
  35745. if(para1 != INVALID_PLAYER_ID)
  35746. {
  35747. if(PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader])
  35748. {
  35749. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  35750. GetPlayerName(playerid, sendername, sizeof(sendername));
  35751. format(string, sizeof(string), "* You have been kicked out of your Faction / Family, by Leader %s.", sendername);
  35752. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  35753. SendClientMessage(para1, COLOR_LIGHTBLUE, "* You are now a Civilian again.");
  35754. PlayerInfo[para1][pMember] = 0;
  35755. PlayerInfo[para1][pRank] = 0;
  35756. PlayerInfo[para1][pModel] = 299;
  35757. SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
  35758. format(string, sizeof(string), "* You have kicked %s from the Faction / Family.", giveplayer);
  35759. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35760. OnPlayerSave(para1);
  35761. }
  35762. else
  35763. {
  35764. SendClientMessage(playerid, COLOR_GREY, " That player is not a member of your Faction !");
  35765. return 1;
  35766. }
  35767. }
  35768. }
  35769. }
  35770. else
  35771. {
  35772. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command (Leaders only).");
  35773. }
  35774. }
  35775. return 1;
  35776. }
  35777. if(strcmp(cmd, "/makeircadmin", true) == 0)
  35778. {
  35779. if(IsPlayerConnected(playerid))
  35780. {
  35781. tmp = strtok(cmdtext, idx);
  35782. if(!strlen(tmp))
  35783. {
  35784. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeircadmin [playerid/PartOfName] [ChannelNr]{7DAEFF}");
  35785. return 1;
  35786. }
  35787. giveplayerid = ReturnUser(tmp);
  35788. tmp = strtok(cmdtext, idx);
  35789. if(!strlen(tmp))
  35790. {
  35791. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeircadmin [playerid/PartOfName] [ChannelNr]{7DAEFF}");
  35792. return 1;
  35793. }
  35794. new channel = strvalEx(tmp);
  35795. if(channel > 10 || channel < 0) { SendClientMessage(playerid, COLOR_GREY, "Dont go below number 0, or above number 10."); return 1; }
  35796. if(PlayerInfo[playerid][pAdmin] >= 4)
  35797. {
  35798. if(IsPlayerConnected(giveplayerid))
  35799. {
  35800. if(giveplayerid != INVALID_PLAYER_ID)
  35801. {
  35802. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  35803. GetPlayerName(playerid, sendername, sizeof(sendername));
  35804. format(string, sizeof(string), "* You've made %s an IRC Admin over Channel %d.", giveplayer, channel);
  35805. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35806. format(string, sizeof(string), "* %s has made you an IRC Admin over Channel %d.", sendername, channel);
  35807. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  35808. format(string, sizeof(string), "%s", giveplayer);
  35809. switch(channel)
  35810. {
  35811. case 1:
  35812. {
  35813. strmid(IRCInfo[0][iAdmin], string, 0, strlen(string), 255);
  35814. IRCInfo[0][iNeedPass] = 0; IRCInfo[0][iLock] = 0;
  35815. }
  35816. case 2:
  35817. {
  35818. strmid(IRCInfo[1][iAdmin], string, 0, strlen(string), 255);
  35819. IRCInfo[1][iNeedPass] = 0; IRCInfo[1][iLock] = 0;
  35820. }
  35821. case 3:
  35822. {
  35823. strmid(IRCInfo[2][iAdmin], string, 0, strlen(string), 255);
  35824. IRCInfo[2][iNeedPass] = 0; IRCInfo[2][iLock] = 0;
  35825. }
  35826. case 4:
  35827. {
  35828. strmid(IRCInfo[3][iAdmin], string, 0, strlen(string), 255);
  35829. IRCInfo[3][iNeedPass] = 0; IRCInfo[3][iLock] = 0;
  35830. }
  35831. case 5:
  35832. {
  35833. strmid(IRCInfo[4][iAdmin], string, 0, strlen(string), 255);
  35834. IRCInfo[4][iNeedPass] = 0; IRCInfo[4][iLock] = 0;
  35835. }
  35836. case 6:
  35837. {
  35838. strmid(IRCInfo[5][iAdmin], string, 0, strlen(string), 255);
  35839. IRCInfo[5][iNeedPass] = 0; IRCInfo[5][iLock] = 0;
  35840. }
  35841. case 7:
  35842. {
  35843. strmid(IRCInfo[6][iAdmin], string, 0, strlen(string), 255);
  35844. IRCInfo[6][iNeedPass] = 0; IRCInfo[6][iLock] = 0;
  35845. }
  35846. case 8:
  35847. {
  35848. strmid(IRCInfo[7][iAdmin], string, 0, strlen(string), 255);
  35849. IRCInfo[7][iNeedPass] = 0; IRCInfo[7][iLock] = 0;
  35850. }
  35851. case 9:
  35852. {
  35853. strmid(IRCInfo[8][iAdmin], string, 0, strlen(string), 255);
  35854. IRCInfo[8][iNeedPass] = 0; IRCInfo[8][iLock] = 0;
  35855. }
  35856. case 10:
  35857. {
  35858. strmid(IRCInfo[9][iAdmin], string, 0, strlen(string), 255);
  35859. IRCInfo[9][iNeedPass] = 0; IRCInfo[9][iLock] = 0;
  35860. }
  35861. }
  35862. SaveIRC();
  35863. }
  35864. }
  35865. else
  35866. {
  35867. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  35868. return 1;
  35869. }
  35870. }
  35871. else
  35872. {
  35873. SendClientMessage(playerid, COLOR_GREY, ".You are not authorized to do that.");
  35874. return 1;
  35875. }
  35876. }
  35877. return 1;
  35878. }
  35879.  
  35880. if(strcmp(cmd, "/ciabadge", true) == 0)
  35881. {
  35882. if(IsPlayerConnected(playerid))
  35883. {
  35884. tmp = strtok(cmdtext, idx);
  35885. if(!strlen(tmp))
  35886. {
  35887. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
  35888. return 1;
  35889. }
  35890. new para1;
  35891. para1 = ReturnUser(tmp);
  35892. giveplayerid = ReturnUser(tmp);
  35893. if(IsAAgent(playerid))
  35894. {
  35895. if(IsPlayerConnected(para1))
  35896. {
  35897. if(giveplayerid != INVALID_PLAYER_ID)
  35898. {
  35899. if (GetDistanceBetweenPlayers(playerid,giveplayerid) > 5)
  35900. {
  35901. SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
  35902. return 1;
  35903. }
  35904. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  35905. GetPlayerName(playerid, sendername, sizeof(sendername));
  35906. new length = strlen(cmdtext);
  35907. while ((idx < length) && (cmdtext[idx] <= ' '))
  35908. if(!strlen(tmp))
  35909. {
  35910. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
  35911. return 1;
  35912. }
  35913. format(string, sizeof(string), "* %s flashes their badge to %s.", sendername, giveplayer);
  35914. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35915. format(string, sizeof(string), "%s %s, %s.", GetPlayerRank(playerid),PlayerName(playerid),GetPlayerFactionName(playerid),sendername);
  35916. SendClientMessage(giveplayerid, 0x000000AA, string);
  35917. format(string, sizeof(string), "You have shown your badge to %s.", giveplayer);
  35918. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35919. }
  35920. }
  35921. }
  35922. else
  35923. {
  35924. SendClientMessage(playerid, COLOR_GREY, "You are not in the CIA.");
  35925. return 1;
  35926. }
  35927. }
  35928. return 1;
  35929. }
  35930.  
  35931. if(strcmp(cmd, "/showbadge", true) == 0)
  35932. {
  35933. if(IsPlayerConnected(playerid))
  35934. {
  35935. tmp = strtok(cmdtext, idx);
  35936. if(!strlen(tmp))
  35937. {
  35938. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
  35939. return 1;
  35940. }
  35941. new para1;
  35942. para1 = ReturnUser(tmp);
  35943. giveplayerid = ReturnUser(tmp);
  35944. if(IsACop(playerid))
  35945. {
  35946. if(IsPlayerConnected(para1))
  35947. {
  35948. if(giveplayerid != INVALID_PLAYER_ID)
  35949. {
  35950. if (GetDistanceBetweenPlayers(playerid,giveplayerid) > 5)
  35951. {
  35952. SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
  35953. return 1;
  35954. }
  35955. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  35956. GetPlayerName(playerid, sendername, sizeof(sendername));
  35957. new length = strlen(cmdtext);
  35958. while ((idx < length) && (cmdtext[idx] <= ' '))
  35959. if(!strlen(tmp))
  35960. {
  35961. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /showbadge [playerid/PartOfName]{7DAEFF}");
  35962. return 1;
  35963. }
  35964. format(string, sizeof(string), "* %s flashes their badge to %s.", sendername, giveplayer);
  35965. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  35966. format(string, sizeof(string), "%s %s, %s.", GetPlayerRank(playerid),PlayerName(playerid),GetPlayerFactionName(playerid),sendername);
  35967. SendClientMessage(giveplayerid, COLOR_DBLUE, string);
  35968. format(string, sizeof(string), "You have shown your badge to %s.", giveplayer);
  35969. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  35970. }
  35971. }
  35972. }
  35973. else
  35974. {
  35975. SendClientMessage(playerid, COLOR_GREY, "You are not a Cop / FBI / SAST.");
  35976. return 1;
  35977. }
  35978. }
  35979. return 1;
  35980. }
  35981. if(strcmp(cmd, "/makeleader", true) == 0)
  35982. {
  35983. if(IsPlayerConnected(playerid))
  35984. {
  35985. tmp = strtok(cmdtext, idx);
  35986. if(!strlen(tmp))
  35987. {
  35988. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeleader [playerid/PartOfName] [number]{7DAEFF}");
  35989. return 1;
  35990. }
  35991. new para1;
  35992. para1 = ReturnUser(tmp);
  35993. if(IsPlayerNPC(para1)) return 1;
  35994. tmp = strtok(cmdtext, idx);
  35995. if(!strlen(tmp))
  35996. {
  35997. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /makeleader [playerid/PartOfName] [number]{7DAEFF}");
  35998. return 1;
  35999. }
  36000. new faction;
  36001. faction = strvalEx(tmp);
  36002. if(faction < 0 || faction > 10) { SendClientMessage(playerid, COLOR_GREY, "Dont go below number 0, or above number 10."); return 1; }
  36003. if(PlayerInfo[playerid][pAdmin] >= 5)
  36004. {
  36005. if(IsPlayerConnected(para1))
  36006. {
  36007. if(para1 != INVALID_PLAYER_ID)
  36008. {
  36009. if (PlayerInfo[para1][pFRank] > 3)
  36010. {
  36011. SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a family.");
  36012. return 1;
  36013. }
  36014. new ftext[20];
  36015. GetPlayerName(playerid, sendername, sizeof(sendername));
  36016. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  36017. if(faction == 0) { PlayerInfo[para1][pModel] = 299; PlayerInfo[para1][pRank] = 0; ftext = "None"; }
  36018. else if(faction == 1) { PlayerInfo[para1][pModel] = 265; PlayerInfo[para1][pRank] = 6; ftext = "Police Force"; }
  36019. else if(faction == 2) { PlayerInfo[para1][pModel] = 286; PlayerInfo[para1][pRank] = 6; ftext = "FBI"; }
  36020. else if(faction == 3) { PlayerInfo[para1][pModel] = 283; PlayerInfo[para1][pRank] = 6; ftext = "SAST"; }
  36021. else if(faction == 4) { PlayerInfo[para1][pModel] = 274; PlayerInfo[para1][pRank] = 6; ftext = "Firemen/Ambulance"; }
  36022. else if(faction == 5) { PlayerInfo[para1][pModel] = 287; PlayerInfo[para1][pRank] = 6; ftext = "National Guards"; }
  36023. else if(faction == 6) { PlayerInfo[para1][pModel] = 147; PlayerInfo[para1][pRank] = 6; ftext = "Senate"; }
  36024. else if(faction == 7) { PlayerInfo[para1][pModel] = 294; PlayerInfo[para1][pRank] = 6; ftext = "CIA"; }
  36025. else if(faction == 8) { PlayerInfo[para1][pModel] = 294; PlayerInfo[para1][pRank] = 6; ftext = "Hitman Agency"; }
  36026. else if(faction == 9) { PlayerInfo[para1][pModel] = 227; PlayerInfo[para1][pRank] = 8; ftext = "News Agency"; }
  36027. else if(faction == 10) { PlayerInfo[para1][pModel] = 61; PlayerInfo[para1][pRank] = 6; ftext = "Taxi Cab Company"; }
  36028. format(string, sizeof(string), "* You have given %s leadership of the %s.", giveplayer,ftext);
  36029. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  36030. format(string, sizeof(string), "* %s has given you leadership of the %s.",sendername,ftext);
  36031. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  36032. PlayerInfo[para1][pLeader] = faction;
  36033. PlayerInfo[para1][pMember] = faction;
  36034. SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
  36035. SetPlayerToTeamColor(playerid);
  36036. OnPlayerSave(para1);
  36037. }
  36038. }
  36039. }
  36040. else
  36041. {
  36042. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36043. }
  36044. }
  36045. return 1;
  36046. }
  36047. if(strcmp(cmd, "/giverank", true) == 0)
  36048. {
  36049. if(IsPlayerConnected(playerid))
  36050. {
  36051. tmp = strtok(cmdtext, idx);
  36052. if(!strlen(tmp))
  36053. {
  36054. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /giverank [playerid/PartOfName] [Number(1-6)]{7DAEFF}");
  36055. return 1;
  36056. }
  36057. new para1;
  36058. new level;
  36059. para1 = ReturnUser(tmp);
  36060. tmp = strtok(cmdtext, idx);
  36061. level = strvalEx(tmp);
  36062. if(level > 7 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "You can't go higher than 7 or lower than 0."); return 1; }
  36063. if(PlayerInfo[playerid][pLeader] >= 1)
  36064. {
  36065. if(IsPlayerConnected(para1))
  36066. {
  36067. if(para1 != INVALID_PLAYER_ID)
  36068. {
  36069. if (level > 3 && PlayerInfo[para1][pFRank] > 3)
  36070. {
  36071. SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a family.");
  36072. return 1;
  36073. }
  36074. if(PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader])
  36075. {
  36076. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  36077. GetPlayerName(playerid, sendername, sizeof(sendername));
  36078. PlayerInfo[para1][pRank] = level;
  36079. format(string, sizeof(string), "* You have been promoted to a higher Rank by Leader %s.", sendername);
  36080. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  36081. format(string, sizeof(string), "* You have given %s Rank %d.", giveplayer,level);
  36082. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  36083. }
  36084. else
  36085. {
  36086. SendClientMessage(playerid, COLOR_GREY, "That player is not a member of your Faction / Family.");
  36087. return 1;
  36088. }
  36089. }
  36090. }
  36091. }
  36092. else
  36093. {
  36094. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command (Leaders Only).");
  36095. }
  36096. }
  36097. return 1;
  36098. }
  36099. if(strcmp(cmd, "/skiptut", true) == 0)
  36100. {
  36101. if(IsPlayerConnected(playerid))
  36102. {
  36103. if(PlayerInfo[playerid][pAdmin] >= 2)
  36104. {
  36105. tmp = strtok(cmdtext, idx);
  36106. if(!strlen(tmp))
  36107. {
  36108. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /skiptut [playerid/PartOfName]{7DAEFF}");
  36109. return 1;
  36110. }
  36111. giveplayerid = ReturnUser(tmp);
  36112. if(IsPlayerConnected(giveplayerid))
  36113. {
  36114. if(giveplayerid != INVALID_PLAYER_ID)
  36115. {
  36116. if(TutTime[giveplayerid] <= 0) return SendClientMessage(playerid,COLOR_GREY,"That player is not in the tutorial.");
  36117. CanTalk[giveplayerid] = 1;
  36118. TutTime[giveplayerid] = 0;
  36119. PlayerInfo[giveplayerid][pSafeSpawn] = 1;
  36120. PlayerInfo[giveplayerid][pTut] = 1;
  36121. gOoc[giveplayerid] = 0; gNewbie[giveplayerid] = 0; gNews[giveplayerid] = 0; gFam[giveplayerid] = 0;
  36122. TogglePlayerControllable(giveplayerid, 1);
  36123. PlayerInfo[giveplayerid][pHealth] = 100;
  36124. PlayerInfo[giveplayerid][pArmor] = 0;
  36125. SetPlayerSpawn(giveplayerid);
  36126. SendClientMessage(giveplayerid, COLOR_GRAD1, "You have been forced out of the tutorial.");
  36127. SendClientMessage(giveplayerid, COLOR_YELLOW, "Welcome to Reality Gaming Roleplay, If you have any questions, use /new.");
  36128. SendClientMessage(giveplayerid, COLOR_YELLOW, "For a list of commands type /help. For more information, check out (www.ms-roleplay.tk), have fun!");
  36129. }
  36130. }
  36131. }
  36132. else
  36133. {
  36134. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36135. }
  36136. }
  36137. return 1;
  36138. }
  36139. if(strcmp(cmd, "/sendtols", true) == 0)
  36140. {
  36141. if(IsPlayerConnected(playerid))
  36142. {
  36143. if(PlayerInfo[playerid][pAdmin] >= 2)
  36144. {
  36145. tmp = strtok(cmdtext, idx);
  36146. if(!strlen(tmp))
  36147. {
  36148. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sendtols [playerid/PartOfName]{7DAEFF}");
  36149. return 1;
  36150. }
  36151. giveplayerid = ReturnUser(tmp);
  36152. if(IsPlayerConnected(giveplayerid))
  36153. {
  36154. if(giveplayerid != INVALID_PLAYER_ID)
  36155. {
  36156. PlayerInfo[playerid][pInt] = 0;
  36157. PlayerInfo[playerid][pLocal] = 999;
  36158. PlayerInfo[playerid][pVirtualWorld] = 0;
  36159. SetPlayerInterior(giveplayerid, 0);
  36160. SetPlayerVirtualWorld(giveplayerid, 0);
  36161. SetPlayerPos(giveplayerid, 1535.5898,-1706.0223,13.5469);
  36162. PlayerInfo[giveplayerid][pInHouse] = 999;
  36163. PlayerInfo[giveplayerid][pInBiz] = 999;
  36164. SendClientMessage(giveplayerid, COLOR_GRAD1, "You have been teleported by an Administrator.");
  36165. }
  36166. }
  36167. }
  36168. else
  36169. {
  36170. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36171. }
  36172. }
  36173. return 1;
  36174. }
  36175. if(strcmp(cmd, "/gotoint", true) == 0)
  36176. {
  36177. if(!(PlayerInfo[playerid][pAdmin] >= 3))
  36178. {
  36179. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
  36180. return 1;
  36181. }
  36182.  
  36183. tmp = strtok(cmdtext,idx);
  36184. if (!strlen(tmp))
  36185. {
  36186. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
  36187. return 1;
  36188. }
  36189. new int_id;
  36190. int_id = strval(tmp);
  36191.  
  36192. tmp = strtok(cmdtext,idx);
  36193. if (!strlen(tmp))
  36194. {
  36195. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
  36196. return 1;
  36197. }
  36198. new Float:int_x;
  36199. int_x = floatstr(tmp);
  36200.  
  36201. tmp = strtok(cmdtext,idx);
  36202. if (!strlen(tmp))
  36203. {
  36204. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
  36205. return 1;
  36206. }
  36207. new Float:int_y;
  36208. int_y = floatstr(tmp);
  36209.  
  36210. tmp = strtok(cmdtext,idx);
  36211. if (!strlen(tmp))
  36212. {
  36213. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /gotoint [InteriorId] [x] [y] [z]{7DAEFF}");
  36214. return 1;
  36215. }
  36216. new Float:int_z;
  36217. int_z = floatstr(tmp);
  36218.  
  36219. format(string, sizeof(string), "You have been teleported to interior %d, x=%1.5f, y%=1.5f, z=%1.5f", int_id, int_x, int_y, int_z);
  36220. SendClientMessage(playerid, COLOR_YELLOW, string);
  36221. SetPlayerPos(playerid, int_x, int_y, int_z);
  36222. SetPlayerInterior(playerid, int_id);
  36223. return 1;
  36224. }
  36225. if(!strcmp(cmd,"/goto",true) || !strcmp(cmd,"/gotoid",true))
  36226. {
  36227. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  36228. return SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command.");
  36229. tmp = strtok(cmdtext, idx);
  36230. if(!strlen(tmp))
  36231. {
  36232. SendClientMessage(playerid, COLOR_WHITE,"USAGE: /goto [PlayerID/PartOfName] or /goto [Place]");
  36233. SendClientMessage(playerid, COLOR_WHITE,"Set your teleport destination with /mark");
  36234. SendClientMessage(playerid, COLOR_LIGHTRED,"mark lsair sfair lvair lspd saints county");
  36235. SendClientMessage(playerid, COLOR_LIGHTRED,"tower chiliad airstrip bayside dam bank pier int1 bloodbowl");
  36236. SendClientMessage(playerid, COLOR_LIGHTRED,"underwater jet battlefield 8track kickstart dirtbike gym");
  36237. SendClientMessage(playerid, COLOR_LIGHTRED,"hitman ss fbi sasp demorgan");
  36238. SendClientMessage(playerid, COLOR_LIGHTRED,"paintball 24/7 vip");
  36239. SendClientMessage(playerid, COLOR_LIGHTRED,"vla grove glen rich");
  36240. SendClientMessage(playerid, COLOR_LIGHTRED,"tune1 tune2 tune3");
  36241. SendClientMessage(playerid, COLOR_LIGHTRED,"mp1 mf1 mp2 mf2 dh df cl sprunk ffc aec");
  36242. SendClientMessage(playerid, COLOR_LIGHTBLUE,"disabledvehicles");
  36243. return 1;
  36244. }
  36245. new
  36246. p=1,
  36247. Float:a = GetPlayerFacingAngle(playerid,a),
  36248. destination[64] = " ",
  36249. lookupid = ReturnUser(tmp);
  36250. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) p=0;
  36251. if(lookupid != INVALID_PLAYER_ID)
  36252. {
  36253. if(lookupid != playerid)
  36254. {
  36255. if(!gPlayerLogged[lookupid])
  36256. return SendClientMessage(playerid, COLOR_WHITE,"That Player hasen't spawned Yet.");
  36257. if(GetPlayerState(lookupid) == PLAYER_STATE_SPECTATING)
  36258. return SendClientMessage(playerid, COLOR_WHITE,"That Player is spectating Someone.");
  36259. if (NoTP[lookupid] == 1)
  36260. {
  36261. SendClientMessage(playerid, COLOR_WHITE, "You can't go to that player.");
  36262. return 1;
  36263. }
  36264. }
  36265. new
  36266. Float:x,
  36267. Float:y,
  36268. Float:z,
  36269. i = GetPlayerInterior(lookupid),
  36270. v = GetPlayerVirtualWorld(lookupid);
  36271. if(IsPlayerInAnyVehicle(lookupid))
  36272. {
  36273. GetVehicleZAngle(GetPlayerVehicleID(lookupid),a);
  36274. } else {
  36275. GetPlayerFacingAngle(lookupid,a);
  36276. }
  36277. GetPlayerPos(lookupid,x,y,z);
  36278. Teleport(playerid,x,y+2,z,a,i,v,p);
  36279. PlayerInfo[playerid][pInHouse] = PlayerInfo[lookupid][pInHouse];
  36280. PlayerInfo[playerid][pInBiz] = PlayerInfo[lookupid][pInBiz];
  36281. destination = PlayerName(lookupid);
  36282. }
  36283. else if(!strcmp(tmp,"lspd",true) || !strcmp(tmp,"ls",true))
  36284. {
  36285. destination = "Los Santos Police Department";
  36286. Teleport(playerid,1535.5898,-1706.0223, 15.19,a,0,0,p);
  36287. PlayerInfo[playerid][pInHouse] = 999;
  36288. PlayerInfo[playerid][pInBiz] = 999;
  36289. }
  36290. else if(!strcmp(tmp,"dv",true) || !strcmp(tmp,"disabledvehicles",true))
  36291. {
  36292. destination = "Cars we don't use";
  36293. Teleport(playerid,-1353.1062,0.8893,6.0000,a,0,0,p);
  36294. PlayerInfo[playerid][pInHouse] = 999;
  36295. PlayerInfo[playerid][pInBiz] = 999;
  36296. }
  36297. else if(!strcmp(tmp,"int1",true))
  36298. {
  36299. destination = "Interior 1";
  36300. Teleport(playerid,1411.1451,-0.5155,1000.9236,a,1,0,p);
  36301. PlayerInfo[playerid][pInHouse] = 999;
  36302. PlayerInfo[playerid][pInBiz] = 999;
  36303. }
  36304. else if(!strcmp(tmp,"gym",true))
  36305. {
  36306. destination = "Los Santos GYM";
  36307. Teleport(playerid,2225.4001,-1724.4464,13.5632,a,0,0,p);
  36308. PlayerInfo[playerid][pInHouse] = 999;
  36309. PlayerInfo[playerid][pInBiz] = 999;
  36310. }
  36311. else if(!strcmp(tmp,"lsair",true))
  36312. {
  36313. destination = "Los Santos Airport";
  36314. Teleport(playerid,1934.9127,-2290.6362,13.5469,a,0,0,p);
  36315. PlayerInfo[playerid][pInHouse] = 999;
  36316. PlayerInfo[playerid][pInBiz] = 999;
  36317. }
  36318. else if(!strcmp(tmp,"vip",true))
  36319. {
  36320. destination = "The VIP Lounge";
  36321. Teleport(playerid,334.0973,-1519.2019,35.8672,a,0,0,p);
  36322. PlayerInfo[playerid][pInHouse] = 999;
  36323. }
  36324. else if(!strcmp(tmp,"sfair",true) || !strcmp(tmp,"sf",true))
  36325. {
  36326. destination = "San Fierro Airport";
  36327. Teleport(playerid,-1417.0,-295.8,14.1,a,0,0,p);
  36328. PlayerInfo[playerid][pInHouse] = 999;
  36329. PlayerInfo[playerid][pInBiz] = 999;
  36330. }
  36331. else if(!strcmp(tmp,"lvair",true) || !strcmp(tmp,"lv",true))
  36332. {
  36333. destination = "Las Venturas Airport";
  36334. Teleport(playerid,1699.2,1435.1, 10.7,a,0,0,p);
  36335. PlayerInfo[playerid][pInHouse] = 999;
  36336. PlayerInfo[playerid][pInBiz] = 999;
  36337. }
  36338. else if(!strcmp(tmp,"jet",true))
  36339. {
  36340. destination = "private jet";
  36341. Teleport(playerid,1.71875, 30.4062, 1200.34,a,1,0,0);
  36342. }
  36343. else if (!strcmp(tmp,"chiliad",true))
  36344. {
  36345. destination = "Mt. Chiliad";
  36346. Teleport(playerid,-2317.5325,-1644.9664,483.7031,a,0,0,p);
  36347. PlayerInfo[playerid][pInHouse] = 999;
  36348. PlayerInfo[playerid][pInBiz] = 999;
  36349. }
  36350. else if (!strcmp(tmp,"area51",true))
  36351. {
  36352. destination = "Area 51";
  36353. Teleport(playerid,202.1886,1881.4122,17.2199,37.8779,0,0,p);
  36354. PlayerInfo[playerid][pInHouse] = 999;
  36355. PlayerInfo[playerid][pInBiz] = 999;
  36356. }
  36357. else if (!strcmp(tmp,"airstrip",true))
  36358. {
  36359. destination = "Desert Airstrip";
  36360. Teleport(playerid,357.5273,2513.8701,16.5856,a,0,0,p);
  36361. PlayerInfo[playerid][pInHouse] = 999;
  36362. PlayerInfo[playerid][pInBiz] = 999;
  36363. }
  36364. else if (!strcmp(tmp,"skyscraper",true) || !strcmp(tmp,"sky",true))
  36365. {
  36366. destination = "the Skyscraper";
  36367. Teleport(playerid,1543.9886,-1353.7587,329.4735,a,0,0,p);
  36368. PlayerInfo[playerid][pInHouse] = 999;
  36369. PlayerInfo[playerid][pInBiz] = 999;
  36370. }
  36371. else if (!strcmp(tmp,"bayside",true))
  36372. {
  36373. destination = "Bayside Heliport";
  36374. Teleport(playerid,-2252.2944,2335.5396,4.8125,a,0,0,p);
  36375. PlayerInfo[playerid][pInHouse] = 999;
  36376. PlayerInfo[playerid][pInBiz] = 999;
  36377. }
  36378. else if (!strcmp(tmp,"underwater",true) || !strcmp(tmp,"under",true))
  36379. {
  36380. destination = "under the sea";
  36381. Teleport(playerid,-1005.3044,657.4559,-39.0847,a,0,0,p);
  36382. PlayerInfo[playerid][pInHouse] = 999;
  36383. PlayerInfo[playerid][pInBiz] = 999;
  36384. }
  36385. else if (!strcmp(tmp,"bank",true))
  36386. {
  36387. destination = "The Bank";
  36388. Teleport(playerid,1462.395751,-1016.391174,25.84375,a,0,0,p);
  36389. PlayerInfo[playerid][pInHouse] = 999;
  36390. PlayerInfo[playerid][pInBiz] = 999;
  36391. }
  36392. else if (!strcmp(tmp,"pier",true))
  36393. {
  36394. destination = "the fishing pier";
  36395. Teleport(playerid,364.9920,-2059.7288,15.3990,a,0,0,p);
  36396. }
  36397. else if (!strcmp(tmp,"battlefield",true) || !strcmp(tmp,"battle",true))
  36398. {
  36399. destination = "the battlefield";
  36400. Teleport(playerid,-972.4957,1060.9830,1345.6690,a,10,0,p);
  36401. PlayerInfo[playerid][pInHouse] = 999;
  36402. PlayerInfo[playerid][pInBiz] = 999;
  36403. }
  36404. else if (!strcmp(tmp,"dam",true))
  36405. {
  36406. destination = "the Sherman Dam";
  36407. Teleport(playerid,-715.0000,2062.0000,60.0000,a,0,0,p);
  36408. PlayerInfo[playerid][pInHouse] = 999;
  36409. PlayerInfo[playerid][pInBiz] = 999;
  36410. }
  36411. else if (!strcmp(tmp,"bloodbowl",true))
  36412. {
  36413. destination = "Bloodbowl Arena";
  36414. Teleport(playerid,-1394.5928,996.4797,1033.8864,a,15,0,p);
  36415. PlayerInfo[playerid][pInHouse] = 999;
  36416. PlayerInfo[playerid][pInBiz] = 999;
  36417. }
  36418. else if (!strcmp(tmp,"8track",true))
  36419. {
  36420. destination = "8-Track Stadium";
  36421. Teleport(playerid,-1406.3815,-262.7644,1043.4290,346.8336,7,0,p);
  36422. PlayerInfo[playerid][pInHouse] = 999;
  36423. PlayerInfo[playerid][pInBiz] = 999;
  36424. }
  36425. else if (!strcmp(tmp,"dirtbike",true))
  36426. {
  36427. destination = "Dirtbike Stadium";
  36428. Teleport(playerid,-1436.2065,-642.5217,1049.5261,167.3703,4,0,p);
  36429. PlayerInfo[playerid][pInHouse] = 999;
  36430. PlayerInfo[playerid][pInBiz] = 999;
  36431. }
  36432. else if (!strcmp(tmp,"kickstart",true))
  36433. {
  36434. destination = "Kickstart Stadium";
  36435. Teleport(playerid,-1447.2618,1604.3374,1052.5220,263.7223,14,0,p);
  36436. PlayerInfo[playerid][pInHouse] = 999;
  36437. PlayerInfo[playerid][pInBiz] = 999;
  36438. }
  36439. else if (!strcmp(tmp,"quarry",true))
  36440. {
  36441. destination = "Hunter Quarry";
  36442. Teleport(playerid,609.8776,867.3369,-42.2692,a,0,0,p);
  36443. PlayerInfo[playerid][pInHouse] = 999;
  36444. PlayerInfo[playerid][pInBiz] = 999;
  36445. }
  36446. else if (!strcmp(tmp,"hitman",true))
  36447. {
  36448. destination = "Hitmen Village";
  36449. Teleport(playerid,1564.6329,20.4654,24.1641,335.7327,0,0,p);
  36450. PlayerInfo[playerid][pInHouse] = 999;
  36451. PlayerInfo[playerid][pInBiz] = 999;
  36452. }
  36453. else if (!strcmp(tmp,"fbi",true))
  36454. {
  36455. destination = "FBI Department";
  36456. Teleport(playerid,1777.4604,-1664.0137,14.4343,174.6930,0,0,p);
  36457. PlayerInfo[playerid][pInHouse] = 999;
  36458. PlayerInfo[playerid][pInBiz] = 999;
  36459. }
  36460. else if (!strcmp(tmp,"cia",true))
  36461. {
  36462. destination = "CIA Department";
  36463. Teleport(playerid,1040.2537,1019.9399,11.0000,174.6930,0,0,p);
  36464. PlayerInfo[playerid][pInHouse] = 999;
  36465. PlayerInfo[playerid][pInBiz] = 999;
  36466. }
  36467. else if (!strcmp(tmp,"paintball",true))
  36468. {
  36469. destination = "Paintball Arena";
  36470. Teleport(playerid,1313.7390,-1376.6500,13.6649,a,0,0,p);
  36471. PlayerInfo[playerid][pInHouse] = 999;
  36472. PlayerInfo[playerid][pInBiz] = 999;
  36473. }
  36474. else if (!strcmp(tmp,"24/7",true))
  36475. {
  36476. destination = "24/7 Store";
  36477. Teleport(playerid,1314.5610,-913.7150,38.1331,a,0,0,p);
  36478. PlayerInfo[playerid][pInHouse] = 999;
  36479. PlayerInfo[playerid][pInBiz] = 999;
  36480. }
  36481. else if (!strcmp(tmp,"tune1",true))
  36482. {
  36483. destination = "Lowrider Tuning Shop";
  36484. Teleport(playerid,2644.9026,-2005.4315,13.3828,a,0,0,p);
  36485. PlayerInfo[playerid][pInHouse] = 999;
  36486. PlayerInfo[playerid][pInBiz] = 999;
  36487. }
  36488. else if (!strcmp(tmp,"tune2",true))
  36489. {
  36490. destination = "Los Santos Tuning Shop";
  36491. Teleport(playerid,1025.1035,-1039.0695,31.5661,a,0,0,p);
  36492. PlayerInfo[playerid][pInHouse] = 999;
  36493. PlayerInfo[playerid][pInBiz] = 999;
  36494. }
  36495. else if (!strcmp(tmp,"tune3",true))
  36496. {
  36497. destination = "San Fierro Tuning Shop";
  36498. Teleport(playerid,-2702.4583,217.1397,4.1797,a,0,0,p);
  36499. PlayerInfo[playerid][pInHouse] = 999;
  36500. PlayerInfo[playerid][pInBiz] = 999;
  36501. }
  36502. else if (!strcmp(tmp,"mp1",true))
  36503. {
  36504. destination = "Material Pickup 1";
  36505. Teleport(playerid,1430.8533,-1327.6997,13.5657,a,0,0,p);
  36506. PlayerInfo[playerid][pInHouse] = 999;
  36507. PlayerInfo[playerid][pInBiz] = 999;
  36508. }
  36509. else if (!strcmp(tmp,"mf1",true))
  36510. {
  36511. destination = "Material Factory 1";
  36512. Teleport(playerid,2183.5547,-2279.0374,13.5469,a,0,0,p);
  36513. PlayerInfo[playerid][pInHouse] = 999;
  36514. PlayerInfo[playerid][pInBiz] = 999;
  36515. }
  36516. else if (!strcmp(tmp,"mp2",true))
  36517. {
  36518. destination = "Material Pickup 2";
  36519. Teleport(playerid,2397.6951,-2012.1493,13.5537,a,0,0,p);
  36520. PlayerInfo[playerid][pInHouse] = 999;
  36521. PlayerInfo[playerid][pInBiz] = 999;
  36522. }
  36523. else if (!strcmp(tmp,"mf2",true))
  36524. {
  36525. destination = "Material Factory 2";
  36526. Teleport(playerid,2289.1423,-1116.5608,37.9766,a,0,0,p);
  36527. PlayerInfo[playerid][pInHouse] = 999;
  36528. PlayerInfo[playerid][pInBiz] = 999;
  36529. }
  36530. else if (!strcmp(tmp,"dh",true))
  36531. {
  36532. destination = "Drug House";
  36533. Teleport(playerid,2174.9119,-1669.4958,15.0716,a,0,0,p);
  36534. PlayerInfo[playerid][pInHouse] = 999;
  36535. PlayerInfo[playerid][pInBiz] = 999;
  36536. }
  36537. else if (!strcmp(tmp,"df",true))
  36538. {
  36539. destination = "Drug Factory";
  36540. Teleport(playerid,53.8947,-284.2078,1.6548,a,0,0,p);
  36541. PlayerInfo[playerid][pInHouse] = 999;
  36542. PlayerInfo[playerid][pInBiz] = 999;
  36543. }
  36544. else if (!strcmp(tmp,"cl",true))
  36545. {
  36546. destination = "Crack Labaratory";
  36547. Teleport(playerid,2360.7083,-1161.9872,27.6096,a,0,0,p);
  36548. PlayerInfo[playerid][pInHouse] = 999;
  36549. PlayerInfo[playerid][pInBiz] = 999;
  36550. }
  36551. else if (!strcmp(tmp,"sprunk",true))
  36552. {
  36553. destination = "Sprunk Factory";
  36554. Teleport(playerid,1342.1078,286.7178,19.5615,a,0,0,p);
  36555. PlayerInfo[playerid][pInHouse] = 999;
  36556. PlayerInfo[playerid][pInBiz] = 999;
  36557. }
  36558. else if (!strcmp(tmp,"ffc",true))
  36559. {
  36560. destination = "Fossil Fuel Company";
  36561. Teleport(playerid,2648.7205,-2109.0586,13.5469,a,0,0,p);
  36562. PlayerInfo[playerid][pInHouse] = 999;
  36563. PlayerInfo[playerid][pInBiz] = 999;
  36564. }
  36565. else if (!strcmp(tmp,"aec",true))
  36566. {
  36567. destination = "Auto Export Company";
  36568. Teleport(playerid,2753.0408,-2433.9844,13.6484,a,0,0,p);
  36569. PlayerInfo[playerid][pInHouse] = 999;
  36570. PlayerInfo[playerid][pInBiz] = 999;
  36571. }
  36572. else if (!strcmp(tmp,"sasp",true))
  36573. {
  36574. destination = "San Andreas State Police";
  36575. Teleport(playerid,625.7545,-588.1606,16.7991,a,0,0,p);
  36576. PlayerInfo[playerid][pInHouse] = 999;
  36577. PlayerInfo[playerid][pInBiz] = 999;
  36578. }
  36579. else if (!strcmp(tmp,"rich",true))
  36580. {
  36581. destination = "Richmond";
  36582. Teleport(playerid,393.7295,-1241.3582,52.0572,a,0,0,p);
  36583. PlayerInfo[playerid][pInHouse] = 999;
  36584. PlayerInfo[playerid][pInBiz] = 999;
  36585. }
  36586. else if (!strcmp(tmp,"county",true))
  36587. {
  36588. destination = "General County Hospital";
  36589. Teleport(playerid,2002.0876,-1448.0087,13.5606,a,0,0,p);
  36590. PlayerInfo[playerid][pInHouse] = 999;
  36591. PlayerInfo[playerid][pInBiz] = 999;
  36592. }
  36593. else if (!strcmp(tmp,"saints",true))
  36594. {
  36595. destination = "All Saints Hospital";
  36596. Teleport(playerid,1188.8627,-1330.2386,13.5606,a,0,0,p);
  36597. PlayerInfo[playerid][pInHouse] = 999;
  36598. PlayerInfo[playerid][pInBiz] = 999;
  36599. }
  36600. else if (!strcmp(tmp,"glen",true))
  36601. {
  36602. destination = "Glen Park";
  36603. Teleport(playerid,1971.5403,-1147.4678,25.8117,a,0,0,p);
  36604. PlayerInfo[playerid][pInHouse] = 999;
  36605. PlayerInfo[playerid][pInBiz] = 999;
  36606. }
  36607. else if (!strcmp(tmp,"grove",true))
  36608. {
  36609. destination = "Grove Street";
  36610. Teleport(playerid,2496.1221,-1670.3540,13.3359,a,0,0,p);
  36611. PlayerInfo[playerid][pInHouse] = 999;
  36612. PlayerInfo[playerid][pInBiz] = 999;
  36613. }
  36614. else if (!strcmp(tmp,"vla",true))
  36615. {
  36616. destination = "Varrios Los Aztecas Bar";
  36617. Teleport(playerid,2785.3215,-1610.6592,10.9219,a,0,0,p);
  36618. PlayerInfo[playerid][pInHouse] = 999;
  36619. PlayerInfo[playerid][pInBiz] = 999;
  36620. }
  36621. else if (!strcmp(tmp,"demorgan",true))
  36622. {
  36623. destination = "Area 51 - Demorgan";
  36624. Teleport(playerid,202.1886,1881.4122,17.2199,37.8779,0,0,p);
  36625. PlayerInfo[playerid][pInHouse] = 999;
  36626. PlayerInfo[playerid][pInBiz] = 999;
  36627. }
  36628. else if (!strcmp(tmp,"tower",true) || !strcmp(tmp,"sky",true))
  36629. {
  36630. destination = "Star Tower";
  36631. Teleport(playerid,1543.9886,-1353.7587,329.4735,a,0,0,p);
  36632. PlayerInfo[playerid][pInHouse] = 999;
  36633. PlayerInfo[playerid][pInBiz] = 999;
  36634. }
  36635. else
  36636. {
  36637. return SendClientMessage(playerid, COLOR_FADE1,"Invalid Destination/Area/ID.");
  36638. }
  36639. GameTextForPlayer(playerid, "~p~Tele~r~ported ~y~!", 5000, 1);
  36640. return 1;
  36641. }
  36642. if(strcmp(cmd, "/setmark", true) == 0)
  36643. {
  36644. if(IsPlayerConnected(playerid))
  36645. {
  36646. if(PlayerInfo[playerid][pAdmin] >= 4)
  36647. {
  36648. new Float:X, Float:Y, Float:Z;
  36649. GetPlayerPos(playerid, X, Y, Z);
  36650. for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerCheckpoint(i, X, Y, Z, 3.0); }
  36651. return 1;
  36652. }
  36653. else
  36654. {
  36655. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36656. }
  36657. }
  36658. return 1;
  36659. }
  36660. if(strcmp(cmd, "/mark", true) == 0)
  36661. {
  36662. if(IsPlayerConnected(playerid))
  36663. {
  36664. if(PlayerInfo[playerid][pAdmin] >= 3)
  36665. {
  36666. GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  36667. SendClientMessage(playerid, COLOR_GRAD1, "Teleport destination set !");
  36668. }
  36669. else
  36670. {
  36671. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36672. }
  36673. }
  36674. return 1;
  36675. }
  36676. if(strcmp(cmd, "/gotomark", true) == 0)
  36677. {
  36678. if(IsPlayerConnected(playerid))
  36679. {
  36680. if(PlayerInfo[playerid][pAdmin] >= 3)
  36681. {
  36682. if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
  36683. {
  36684. SendClientMessage(playerid, COLOR_GREY, "You can not do that while spectating.");
  36685. return 1;
  36686. }
  36687. if(GetPlayerState(playerid) == 2)
  36688. {
  36689. new tmpcar = GetPlayerVehicleID(playerid);
  36690. SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  36691. }
  36692. else
  36693. {
  36694. SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  36695. }
  36696. SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
  36697. SetPlayerInterior(playerid,0);
  36698. }
  36699. else
  36700. {
  36701. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36702. }
  36703. }
  36704. return 1;
  36705. }
  36706. if(strcmp(cmd, "/gethere", true) == 0)
  36707. {
  36708. if(IsPlayerConnected(playerid))
  36709. {
  36710. tmp = strtok(cmdtext, idx);
  36711. if(!strlen(tmp))
  36712. {
  36713. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /gethere [playerid/PartOfName]{7DAEFF}");
  36714. return 1;
  36715. }
  36716. new Float:plocx,Float:plocy,Float:plocz;
  36717. new plo;
  36718. plo = ReturnUser(tmp);
  36719. if(IsPlayerNPC(plo)) return 1;
  36720. if(IsPlayerConnected(plo))
  36721. {
  36722. if(plo != INVALID_PLAYER_ID)
  36723. {
  36724. if(GetPlayerState(plo) == PLAYER_STATE_SPECTATING)
  36725. {
  36726. SendClientMessage(playerid, COLOR_GREY, "That player is currently spectating someone.");
  36727. return 1;
  36728. }
  36729. if (NoTP[plo] == 1)
  36730. {
  36731. SendClientMessage(playerid, COLOR_GREY, "You can't get that player to you.");
  36732. return 1;
  36733. }
  36734. if(PlayerInfo[playerid][pAdmin] >= 3)
  36735. {
  36736. new interior = GetPlayerInterior(playerid);
  36737. new vw = GetPlayerVirtualWorld(playerid);
  36738. SetPlayerVirtualWorld(plo,vw);
  36739. SetPlayerInterior(plo,interior);
  36740. GetPlayerPos(playerid, plocx, plocy, plocz);
  36741. PlayerInfo[plo][pInt] = interior;
  36742. PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
  36743. PlayerInfo[plo][pVirtualWorld] = PlayerInfo[playerid][pVirtualWorld];
  36744. if(GetPlayerState(plo) == 2)
  36745. {
  36746. new tmpcar = GetPlayerVehicleID(plo);
  36747. SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
  36748. }
  36749. else
  36750. {
  36751. SetPlayerPos(plo,plocx,plocy+2, plocz);
  36752. PlayerInfo[plo][pInHouse] = PlayerInfo[playerid][pInHouse];
  36753. PlayerInfo[plo][pInBiz] = PlayerInfo[playerid][pInBiz];
  36754. }
  36755. SendClientMessage(plo, COLOR_GRAD1, " You have been teleported !");
  36756. }
  36757. else
  36758. {
  36759. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  36760. }
  36761. }
  36762. }
  36763. else
  36764. {
  36765. format(string, sizeof(string), " %d is not an active player !", plo);
  36766. SendClientMessage(playerid, COLOR_GRAD1, string);
  36767. }
  36768. }
  36769. return 1;
  36770. }
  36771. if(strcmp(cmd, "/ramps", true) == 0)
  36772. {
  36773. if(PlayerInfo[playerid][pAdmin] >= 3)
  36774. {
  36775. switch(RampToggle[playerid])
  36776. {
  36777. case 0:
  36778. {
  36779. SendClientMessage(playerid,COLOR_GREY,"Ramps enabled!");
  36780. RampToggle[playerid] = 1;
  36781. }
  36782. case 1:
  36783. {
  36784. SendClientMessage(playerid,COLOR_GREY,"Ramps disabled!");
  36785. RampToggle[playerid] = 0;
  36786. }
  36787. }
  36788. }
  36789. else
  36790. {
  36791. SendClientMessage(playerid, COLOR_GREY, "Cool Kids Only.");
  36792. return 1;
  36793. }
  36794. }
  36795. if(strcmp(cmd, "/setskin", true) == 0)
  36796. {
  36797. if(IsPlayerConnected(playerid))
  36798. {
  36799. tmp = strtok(cmdtext, idx);
  36800. if(!strlen(tmp))
  36801. {
  36802. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setskin [playerid/PartOfName] [skin]{7DAEFF}");
  36803. return 1;
  36804. }
  36805. giveplayerid = ReturnUser(tmp);
  36806. if(IsPlayerNPC(giveplayerid)) return 1;
  36807. tmp = strtok(cmdtext, idx);
  36808. if(!strlen(tmp))
  36809. {
  36810. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setskin [playerid/PartOfName] [skin]{7DAEFF}");
  36811. return 1;
  36812. }
  36813. new skin;
  36814. skin = strvalEx(tmp);
  36815. if(skin < 0 || skin > 299) { SendClientMessage(playerid, COLOR_GREY, "Skin can't be below 0 or above 299."); return 1; }
  36816. //if(IsInvalidSkin(skin)) { SendClientMessage(playerid, COLOR_GREY, " Invalid Skin !"); return 1; }
  36817. if(IsPlayerConnected(giveplayerid))
  36818. {
  36819. if(giveplayerid != INVALID_PLAYER_ID)
  36820. {
  36821. if(PlayerInfo[playerid][pAdmin] >= 2)
  36822. {
  36823. PlayerInfo[giveplayerid][pModel] = skin;
  36824. SetPlayerSkin(giveplayerid, skin);
  36825. format(string, sizeof(string), "That players Skin was set to %d.", skin);
  36826. SendClientMessage(playerid, COLOR_GRAD1, string);
  36827. }
  36828. else
  36829. {
  36830. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36831. }
  36832. }
  36833. }
  36834. else
  36835. {
  36836. format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  36837. SendClientMessage(playerid, COLOR_GRAD1, string);
  36838. }
  36839. }
  36840. return 1;
  36841. }
  36842. if(strcmp(cmd, "/oldcar", true) == 0)
  36843. {
  36844. if(IsPlayerConnected(playerid))
  36845. {
  36846. if(PlayerInfo[playerid][pAdmin] >= 3)
  36847. {
  36848. format(string, sizeof(string), "Your old car was Vehicle ID: %d.",gLastCar[playerid]);
  36849. SendClientMessage(playerid, COLOR_GREY, string);
  36850. }
  36851. else
  36852. {
  36853. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36854. }
  36855. }
  36856. return 1;
  36857. }
  36858. if(strcmp(cmd, "/givegun", true) == 0)
  36859. {
  36860. if(IsPlayerConnected(playerid))
  36861. {
  36862. if(PlayerInfo[playerid][pAdmin] < 4)
  36863. {
  36864. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36865. return 1;
  36866. }
  36867. tmp = strtok(cmdtext, idx);
  36868. if(!strlen(tmp))
  36869. {
  36870. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegun [playerid/PartOfName] [weaponid]{7DAEFF}");
  36871. return 1;
  36872. }
  36873. new playa;
  36874. new gun;
  36875. playa = ReturnUser(tmp);
  36876. tmp = strtok(cmdtext, idx);
  36877. gun = strvalEx(tmp);
  36878. if(!strlen(tmp))
  36879. {
  36880. SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
  36881. SendClientMessage(playerid, COLOR_GRAD1, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana 9: Chainsaw");
  36882. SendClientMessage(playerid, COLOR_GRAD2, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane 16: Frag Grenade");
  36883. SendClientMessage(playerid, COLOR_GRAD3, "17: Tear Gas 18: Molotov Cocktail 19: Vehicle Missile 20: Hydra Flare 21: Jetpack 22: 9mm 23: Silenced 9mm 24: Deagle");
  36884. SendClientMessage(playerid, COLOR_GRAD4, "26: Sawnoff Shotgun 27: Combat Shotgun 28: Micro SMG (Mac 10) 29: SMG (MP5) 30: AK-47 31: M4 32: Tec9 33: Country Rifle");
  36885. SendClientMessage(playerid, COLOR_GRAD5, "25: Shotgun 34: Sniper Rifle 35: Rocket Launcher 36: HS Rocket Launcher 37: Flamethrower 38: Minigun 39: Satchel Charge");
  36886. SendClientMessage(playerid, COLOR_GRAD6, "40: Detonator 41: Spraycan 42: Fire Extinguisher 43: Camera 44: Nightvision Goggles 45: Infared Goggles 46: Parachute");
  36887. SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
  36888. return 1;
  36889. }
  36890. if(gun < 1||gun > 46) { SendClientMessage(playerid, COLOR_GRAD1, " Invalid weaponid !"); return 1; }
  36891. if(IsPlayerConnected(playa))
  36892. {
  36893. if(gun == 21)
  36894. {
  36895. SetPlayerSpecialAction(playa,SPECIAL_ACTION_USEJETPACK);
  36896. }
  36897. else
  36898. {
  36899. GivePlayerAdminGun(playa, gun);
  36900. }
  36901. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  36902. format(string, sizeof(string), "You have given gun %d to %s.", gun,giveplayer);
  36903. SendClientMessage(playerid, COLOR_GREY, string);
  36904. }
  36905. }
  36906. return 1;
  36907. }
  36908. if(strcmp(cmd, "/givegunall", true) == 0)
  36909. {
  36910. if(IsPlayerConnected(playerid))
  36911. {
  36912. if(PlayerInfo[playerid][pAdmin] < 4)
  36913. {
  36914. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  36915. return 1;
  36916. }
  36917. tmp = strtok(cmdtext, idx);
  36918. if(!strlen(tmp)) {
  36919. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  36920. SendClientMessage(playerid, COLOR_GRAD1, "1: Meelee");
  36921. SendClientMessage(playerid, COLOR_GRAD1, "2: Pistols");
  36922. SendClientMessage(playerid, COLOR_GRAD2, "3: Shotguns");
  36923. SendClientMessage(playerid, COLOR_GRAD2, "4: Rifles");
  36924. SendClientMessage(playerid, COLOR_GRAD2, "5: Machine Guns");
  36925. SendClientMessage(playerid, COLOR_GRAD3, "6: Assault");
  36926. SendClientMessage(playerid, COLOR_GRAD3, "7: Heavy Assault");
  36927. SendClientMessage(playerid, COLOR_GRAD3, "8: Explosives");
  36928. SendClientMessage(playerid, COLOR_GRAD4, "9: Special");
  36929. return 1;
  36930. }
  36931. new type = strvalEx(tmp);
  36932. if(type == 1)
  36933. {
  36934. tmp = strtok(cmdtext, idx);
  36935. if(!strlen(tmp)) {
  36936. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  36937. SendClientMessage(playerid, COLOR_GRAD1, "1: Golf Club");
  36938. SendClientMessage(playerid, COLOR_GRAD1, "2: Nite Stick");
  36939. SendClientMessage(playerid, COLOR_GRAD2, "3: Knife");
  36940. SendClientMessage(playerid, COLOR_GRAD2, "4: Baseball Bat");
  36941. SendClientMessage(playerid, COLOR_GRAD3, "5: Shovel");
  36942. SendClientMessage(playerid, COLOR_GRAD3, "6: Pool Cue");
  36943. SendClientMessage(playerid, COLOR_GRAD4, "7: Katana");
  36944. SendClientMessage(playerid, COLOR_GRAD4, "8: Cane");
  36945. return 1;
  36946. }
  36947. new number = strvalEx(tmp);
  36948. if(number == 1) { GivePlayerWeaponAll(2, 999999); }
  36949. else if(number == 2) { GivePlayerWeaponAll(3, 999999); }
  36950. else if(number == 3) { GivePlayerWeaponAll(4, 999999); }
  36951. else if(number == 4) { GivePlayerWeaponAll(5, 999999); }
  36952. else if(number == 5) { GivePlayerWeaponAll(6, 999999); }
  36953. else if(number == 6) { GivePlayerWeaponAll(7, 999999); }
  36954. else if(number == 7) { GivePlayerWeaponAll(8, 999999); }
  36955. else if(number == 8) { GivePlayerWeaponAll(15, 999999); }
  36956. else { return 0; }
  36957. }
  36958. if(type == 2)
  36959. {
  36960. tmp = strtok(cmdtext, idx);
  36961. if(!strlen(tmp)) {
  36962. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  36963. SendClientMessage(playerid, COLOR_GRAD1, "1: Silenced Pistol");
  36964. SendClientMessage(playerid, COLOR_GRAD1, "2: Duel Pistols");
  36965. SendClientMessage(playerid, COLOR_GRAD2, "3: Desert Eagle");
  36966. return 1;
  36967. }
  36968. new number = strvalEx(tmp);
  36969. if(number == 1) { GivePlayerWeaponAll(23, 999999); }
  36970. else if(number == 2) { GivePlayerWeaponAll(22, 999999); }
  36971. else if(number == 3) { GivePlayerWeaponAll(24, 999999); }
  36972. else { return 0; }
  36973. }
  36974. if(type == 3)
  36975. {
  36976. tmp = strtok(cmdtext, idx);
  36977. if(!strlen(tmp)) {
  36978. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  36979. SendClientMessage(playerid, COLOR_GRAD1, "1: Shotgun");
  36980. SendClientMessage(playerid, COLOR_GRAD1, "2: SPAS12");
  36981. SendClientMessage(playerid, COLOR_GRAD2, "3: Sawnoff Shotgun");
  36982. return 1;
  36983. }
  36984. new number = strvalEx(tmp);
  36985. if(number == 1) { GivePlayerWeaponAll(25, 999999); }
  36986. else if(number == 2) { GivePlayerWeaponAll(27, 999999); }
  36987. else if(number == 3) { GivePlayerWeaponAll(26, 999999); }
  36988. else { return 0; }
  36989. }
  36990. if(type == 4)
  36991. {
  36992. tmp = strtok(cmdtext, idx);
  36993. if(!strlen(tmp)) {
  36994. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  36995. SendClientMessage(playerid, COLOR_GRAD1, "1: Country Rifle");
  36996. SendClientMessage(playerid, COLOR_GRAD1, "2: Sniper Rifle");
  36997. return 1;
  36998. }
  36999. new number = strvalEx(tmp);
  37000. if(number == 1) {GivePlayerWeaponAll(33, 999999); }
  37001. else if(number == 2) { GivePlayerWeaponAll(34, 999999); }
  37002. else { return 0; }
  37003. }
  37004. if(type == 5)
  37005. {
  37006. tmp = strtok(cmdtext, idx);
  37007. if(!strlen(tmp)) {
  37008. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37009. SendClientMessage(playerid, COLOR_GRAD1, "1: Micro SMG");
  37010. SendClientMessage(playerid, COLOR_GRAD1, "2: Tec9");
  37011. return 1;
  37012. }
  37013. new number = strvalEx(tmp);
  37014. if(number == 1) { GivePlayerWeaponAll(28, 999999); }
  37015. else if(number == 2) { GivePlayerWeaponAll(32, 999999); }
  37016. else { return 0; }
  37017. }
  37018. if(type == 6)
  37019. {
  37020. tmp = strtok(cmdtext, idx);
  37021. if(!strlen(tmp)) {
  37022. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37023. SendClientMessage(playerid, COLOR_GRAD1, "1: MP5");
  37024. SendClientMessage(playerid, COLOR_GRAD1, "2: AK47");
  37025. SendClientMessage(playerid, COLOR_GRAD2, "3: M4");
  37026. return 1;
  37027. }
  37028. new number = strvalEx(tmp);
  37029. if(number == 1) { GivePlayerWeaponAll(29, 999999); }
  37030. else if(number == 2) { GivePlayerWeaponAll(30, 999999); }
  37031. else if(number == 3) { GivePlayerWeaponAll(31, 999999); }
  37032. else { return 0; }
  37033. }
  37034. if(type == 7)
  37035. {
  37036. tmp = strtok(cmdtext, idx);
  37037. if(!strlen(tmp)) {
  37038. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37039. SendClientMessage(playerid, COLOR_GRAD1, "1: Rocket Launcher");
  37040. SendClientMessage(playerid, COLOR_GRAD1, "2: HS Rocket Launcher");
  37041. SendClientMessage(playerid, COLOR_GRAD2, "3: Flamethrower");
  37042. SendClientMessage(playerid, COLOR_GRAD2, "4: Minigun");
  37043. return 1;
  37044. }
  37045. new number = strvalEx(tmp);
  37046. if(number == 1) { GivePlayerWeaponAll(35, 999999); }
  37047. else if(number == 2) { GivePlayerWeaponAll(36, 999999); }
  37048. else if(number == 3) { GivePlayerWeaponAll(37, 999999); }
  37049. else if(number == 4) { GivePlayerWeaponAll(38, 999999); }
  37050. else { return 0; }
  37051. }
  37052. if(type == 8)
  37053. {
  37054. tmp = strtok(cmdtext, idx);
  37055. if(!strlen(tmp)) {
  37056. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37057. SendClientMessage(playerid, COLOR_GRAD1, "1: Molotovs");
  37058. SendClientMessage(playerid, COLOR_GRAD1, "2: Grenades");
  37059. SendClientMessage(playerid, COLOR_GRAD2, "3: Tear Gas");
  37060. return 1;
  37061. }
  37062. new number = strvalEx(tmp);
  37063. if(number == 1) { GivePlayerWeaponAll(18, 999999); }
  37064. else if(number == 2) { GivePlayerWeaponAll(16, 999999); }
  37065. else if(number == 3) { GivePlayerWeaponAll(17, 999999); }
  37066. else { return 0; }
  37067. }
  37068. if(type == 9)
  37069. {
  37070. tmp = strtok(cmdtext, idx);
  37071. if(!strlen(tmp)) {
  37072. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37073. SendClientMessage(playerid, COLOR_GRAD1, "1: Spraycan");
  37074. SendClientMessage(playerid, COLOR_GRAD2, "2: Fire Extinguisher");
  37075. SendClientMessage(playerid, COLOR_GRAD2, "3: Nightvision");
  37076. SendClientMessage(playerid, COLOR_GRAD3, "4: Infrared");
  37077. SendClientMessage(playerid, COLOR_GRAD3, "5: Flowers");
  37078. SendClientMessage(playerid, COLOR_GRAD4, "6: Brass Knuckles");
  37079. SendClientMessage(playerid, COLOR_GRAD4, "7: Parachute");
  37080. return 1;
  37081. }
  37082. new number = strvalEx(tmp);
  37083. if(number == 1) { GivePlayerWeaponAll(41, 999999); }
  37084. else if(number == 2) { GivePlayerWeaponAll(42, 999999); }
  37085. else if(number == 3) { GivePlayerWeaponAll(44, 999999); }
  37086. else if(number == 4) { GivePlayerWeaponAll(45, 999999); }
  37087. else if(number == 5) { GivePlayerWeaponAll(14, 999999); }
  37088. else if(number == 6) { GivePlayerWeaponAll(1, 999999); }
  37089. else if(number == 7) { GivePlayerWeaponAll(46, 999999); }
  37090. else { return 0; }
  37091. }
  37092. if(type == 10)
  37093. {
  37094. tmp = strtok(cmdtext, idx);
  37095. if(!strlen(tmp)) {
  37096. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givegunall [type] [number]{7DAEFF}");
  37097. SendClientMessage(playerid, COLOR_GRAD1, "1: Purple Dildo");
  37098. SendClientMessage(playerid, COLOR_GRAD1, "2: Small White Vibrator");
  37099. SendClientMessage(playerid, COLOR_GRAD2, "3: Large White Vibrator");
  37100. SendClientMessage(playerid, COLOR_GRAD2, "4: Silver Vibrator");
  37101. SendClientMessage(playerid, COLOR_GRAD3, "5: Satchel Charge");
  37102. SendClientMessage(playerid, COLOR_GRAD3, "6: Detonator");
  37103. SendClientMessage(playerid, COLOR_GRAD4, "7: Fake Pistol");
  37104. return 1;
  37105. }
  37106. new number = strvalEx(tmp);
  37107. if(number == 1) { GivePlayerWeaponAll(10, 999999); }
  37108. else if(number == 2) { GivePlayerWeaponAll(11, 999999); }
  37109. else if(number == 3) { GivePlayerWeaponAll(12, 999999); }
  37110. else if(number == 4) { GivePlayerWeaponAll(13, 999999); }
  37111. else if(number == 5) { GivePlayerWeaponAll(39, 999999); }
  37112. else if(number == 6) { GivePlayerWeaponAll(40, 999999); }
  37113. else if(number == 7) { GivePlayerWeaponAll(47, 999999); }
  37114. else { return 0; }
  37115. }
  37116. }
  37117. return 1;
  37118. }
  37119. if(strcmp(cmd, "/joinevent", true) == 0)
  37120. {
  37121. if(IsPlayerConnected(playerid))
  37122. {
  37123. if(ActiveEvent == 1)
  37124. {
  37125. if(EventLocked == 1)
  37126. {
  37127. SendClientMessage(playerid, COLOR_GREY, " The event is currently locked !");
  37128. return 1;
  37129. }
  37130. if(IsAtEvent[playerid] == 1)
  37131. {
  37132. SendClientMessage(playerid, COLOR_GREY, " You have already joined the event !");
  37133. return 1;
  37134. }
  37135. if(EventX == 0.0 && EventY == 0.0 && EventZ == 0.0)
  37136. {
  37137. SendClientMessage(playerid, COLOR_GREY, " The event spawn has not been set !");
  37138. return 1;
  37139. }
  37140. SetPlayerPos(playerid, EventX, EventY, EventZ);
  37141. IsAtEvent[playerid] = 1;
  37142. SetPlayerVirtualWorld(playerid, EventWorld);
  37143. SetPlayerInterior(playerid, EventInt);
  37144. SetPlayerHealth(playerid, EventHP);
  37145. SetPlayerArmour(playerid, EventArmour);
  37146. ResetPlayerAdminWeaponsEx(playerid);
  37147. ResetPlayerWeapons(playerid);
  37148. ClearGuns(playerid);
  37149. GivePlayerAdminGun(playerid, EventWeapon1);
  37150. GivePlayerAdminGun(playerid, EventWeapon2);
  37151. GivePlayerAdminGun(playerid, EventWeapon3);
  37152. GivePlayerAdminGun(playerid, EventWeapon4);
  37153. GivePlayerAdminGun(playerid, EventWeapon5);
  37154. if(EventJoinText == 1)
  37155. {
  37156. GameTextForPlayer(playerid, EventText, 5000, 0);
  37157. }
  37158. SendClientMessage(playerid, COLOR_WHITE, "Event: You have been teleported to the event. Follow the admin order.");
  37159. }
  37160. else
  37161. {
  37162. SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
  37163. }
  37164. }
  37165. return 1;
  37166. }
  37167. if(strcmp(cmd, "/announceevent", true) == 0)
  37168. {
  37169. if(IsPlayerConnected(playerid))
  37170. {
  37171. if(PlayerInfo[playerid][pAdmin] >= 4)
  37172. {
  37173. if(ActiveEvent == 1)
  37174. {
  37175. SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been started. /joinevent to participate.");
  37176. }
  37177. else
  37178. {
  37179. SendClientMessage(playerid, COLOR_GREY, "You need to start the event first (/startevent).");
  37180. }
  37181. }
  37182. else
  37183. {
  37184. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37185. }
  37186. }
  37187. return 1;
  37188. }
  37189. if(strcmp(cmd, "/startevent", true) == 0)
  37190. {
  37191. if(IsPlayerConnected(playerid))
  37192. {
  37193. if(PlayerInfo[playerid][pAdmin] >= 4)
  37194. {
  37195. if(ActiveEvent == 0)
  37196. {
  37197. if(EventX == 0.0 && EventY == 0.0 && EventZ == 0.0)
  37198. {
  37199. SendClientMessage(playerid, COLOR_GREY, "The event spawn has not been set.");
  37200. return 1;
  37201. }
  37202. GetPlayerName(playerid, sendername, sizeof(sendername));
  37203. SendClientMessage(playerid, COLOR_WHITE, "You have started an event, use /announceevent to announce it to the server.");
  37204. ActiveEvent = 1;
  37205. }
  37206. else
  37207. {
  37208. SendClientMessage(playerid, COLOR_GREY, "An event is already active, use /endevent to finish the current event.");
  37209. }
  37210. }
  37211. else
  37212. {
  37213. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  37214. }
  37215. }
  37216. return 1;
  37217. }
  37218. if(strcmp(cmd, "/lockevent", true) == 0)
  37219. {
  37220. if(IsPlayerConnected(playerid))
  37221. {
  37222. if(PlayerInfo[playerid][pAdmin] >= 4)
  37223. {
  37224. if(ActiveEvent == 1)
  37225. {
  37226. EventLocked = 1;
  37227. SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Administrator has locked the event.");
  37228. }
  37229. else
  37230. {
  37231. SendClientMessage(playerid, COLOR_GREY, "There are currently no events active.");
  37232. }
  37233. }
  37234. else
  37235. {
  37236. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37237. }
  37238. }
  37239. return 1;
  37240. }
  37241. if(strcmp(cmdtext, "/quitevent", true) == 0)
  37242. {
  37243. if(IsAtEvent[playerid] != 0)
  37244. {
  37245. SetPlayerWeapons(playerid);
  37246. IsAtEvent[playerid] = 0;
  37247. ResetPlayerAdminWeaponsEx(playerid);
  37248. }
  37249. return 1;
  37250. }
  37251. if(strcmp(cmd, "/endevent", true) == 0)
  37252. {
  37253. if(IsPlayerConnected(playerid))
  37254. {
  37255. if(PlayerInfo[playerid][pAdmin] >= 4)
  37256. {
  37257. if(ActiveEvent == 1)
  37258. {
  37259. EventX = 0.0;
  37260. EventY = 0.0;
  37261. EventZ = 0.0;
  37262. EventInt = 0;
  37263. EventWorld = 0;
  37264. EventHP = 100;
  37265. EventArmour = 0;
  37266. ActiveEvent = 0;
  37267. EventLocked = 0;
  37268. EventWeapon1 = 0;
  37269. EventWeapon2 = 0;
  37270. EventWeapon3 = 0;
  37271. EventWeapon4 = 0;
  37272. EventWeapon5 = 0;
  37273. EventJoinText = 0;
  37274. format(EventText, sizeof(EventText), "None");
  37275. SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been finished !");
  37276. //foreach(Player, i)
  37277. for(new i; i<MAX_PLAYERS; i++)
  37278. {
  37279. if(IsPlayerConnected(i))
  37280. {
  37281. if(IsAtEvent[i] == 1)
  37282. {
  37283. SetPlayerWeapons(i);
  37284. IsAtEvent[i] = 0;
  37285. ResetPlayerAdminWeaponsEx(i);
  37286. }
  37287. }
  37288. }
  37289. }
  37290. else
  37291. {
  37292. SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
  37293. }
  37294. }
  37295. else
  37296. {
  37297. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37298. }
  37299. }
  37300. return 1;
  37301. }
  37302. if(strcmp(cmd, "/seteventinfo", true) == 0)
  37303. {
  37304. if(IsPlayerConnected(playerid))
  37305. {
  37306. if(PlayerInfo[playerid][pAdmin] >= 4)
  37307. {
  37308. if(ActiveEvent == 0)
  37309. {
  37310. tmp = strtok(cmdtext, idx);
  37311. if(!strlen(tmp))
  37312. {
  37313. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [name]{7DAEFF}");
  37314. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Jointext, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5");
  37315. return 1;
  37316. }
  37317. if(strcmp(tmp,"jointext",true) == 0)
  37318. {
  37319. new length = strlen(cmdtext);
  37320. while ((idx < length) && (cmdtext[idx] <= ' '))
  37321. {
  37322. idx++;
  37323. }
  37324. new offset = idx;
  37325. new result[128];
  37326. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  37327. {
  37328. result[idx - offset] = cmdtext[idx];
  37329. idx++;
  37330. }
  37331. result[idx - offset] = EOS;
  37332. if(!strlen(result))
  37333. {
  37334. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo jointext [text]{7DAEFF}");
  37335. return 1;
  37336. }
  37337. format(EventText, sizeof(EventText), "%s", result);
  37338. SendClientMessage(playerid, COLOR_WHITE, "You have been set the event jointext to the following.");
  37339. GameTextForPlayer(playerid, EventText, 5000, 0);
  37340. EventJoinText = 1;
  37341. return 1;
  37342. }
  37343. if(strcmp(tmp,"health",true) == 0)
  37344. {
  37345. tmp = strtok(cmdtext, idx);
  37346. if(!strlen(tmp))
  37347. {
  37348. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [health] [amount]{7DAEFF}");
  37349. return 1;
  37350. }
  37351. new ehp = strvalEx(tmp);
  37352. if(ehp < 1 || ehp > 100) { SendClientMessage(playerid, COLOR_GREY, "Health can't be below 1 or above 100."); return 1; }
  37353. EventHP = ehp;
  37354. format(string, sizeof(string), "You have been set the event health to %d.", ehp);
  37355. SendClientMessage(playerid, COLOR_WHITE, string);
  37356. return 1;
  37357. }
  37358. if(strcmp(tmp,"armor",true) == 0)
  37359. {
  37360. tmp = strtok(cmdtext, idx);
  37361. if(!strlen(tmp))
  37362. {
  37363. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [armor] [amount]{7DAEFF}");
  37364. return 1;
  37365. }
  37366. new earmor = strvalEx(tmp);
  37367. if(earmor < 0 || earmor > 100) { SendClientMessage(playerid, COLOR_GREY, " Armor can't be below 0 or above 100 !"); return 1; }
  37368. EventArmour = earmor;
  37369. format(string, sizeof(string), "You have been set the event armor to %d.", earmor);
  37370. SendClientMessage(playerid, COLOR_WHITE, string);
  37371. return 1;
  37372. }
  37373. if(strcmp(tmp,"gun1",true) == 0)
  37374. {
  37375. tmp = strtok(cmdtext, idx);
  37376. if(!strlen(tmp))
  37377. {
  37378. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun1] [gunid]{7DAEFF}");
  37379. return 1;
  37380. }
  37381. new egun = strvalEx(tmp);
  37382. EventWeapon1 = egun;
  37383. format(string, sizeof(string), "You have been set the event gun1 to %d.", egun);
  37384. SendClientMessage(playerid, COLOR_WHITE, string);
  37385. return 1;
  37386. }
  37387. if(strcmp(tmp,"gun2",true) == 0)
  37388. {
  37389. tmp = strtok(cmdtext, idx);
  37390. if(!strlen(tmp))
  37391. {
  37392. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun2] [gunid]{7DAEFF}");
  37393. return 1;
  37394. }
  37395. new egun = strvalEx(tmp);
  37396. EventWeapon2 = egun;
  37397. format(string, sizeof(string), "You have been set the event gun2 to %d.", egun);
  37398. SendClientMessage(playerid, COLOR_WHITE, string);
  37399. return 1;
  37400. }
  37401. if(strcmp(tmp,"gun3",true) == 0)
  37402. {
  37403. tmp = strtok(cmdtext, idx);
  37404. if(!strlen(tmp))
  37405. {
  37406. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun3] [gunid]{7DAEFF}");
  37407. return 1;
  37408. }
  37409. new egun = strvalEx(tmp);
  37410. EventWeapon3 = egun;
  37411. format(string, sizeof(string), "You have been set the event gun3 to %d.", egun);
  37412. SendClientMessage(playerid, COLOR_WHITE, string);
  37413. return 1;
  37414. }
  37415. if(strcmp(tmp,"gun4",true) == 0)
  37416. {
  37417. tmp = strtok(cmdtext, idx);
  37418. if(!strlen(tmp))
  37419. {
  37420. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun4] [gunid]{7DAEFF}");
  37421. return 1;
  37422. }
  37423. new egun = strvalEx(tmp);
  37424. EventWeapon4 = egun;
  37425. format(string, sizeof(string), "You have been set the event gun4 to %d.", egun);
  37426. SendClientMessage(playerid, COLOR_WHITE, string);
  37427. return 1;
  37428. }
  37429. if(strcmp(tmp,"gun5",true) == 0)
  37430. {
  37431. tmp = strtok(cmdtext, idx);
  37432. if(!strlen(tmp))
  37433. {
  37434. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /seteventinfo [gun5] [gunid]{7DAEFF}");
  37435. return 1;
  37436. }
  37437. new egun = strvalEx(tmp);
  37438. EventWeapon5 = egun;
  37439. format(string, sizeof(string), "You have been set the event gun5 to %d.", egun);
  37440. SendClientMessage(playerid, COLOR_WHITE, string);
  37441. return 1;
  37442. }
  37443. }
  37444. else
  37445. {
  37446. SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event !");
  37447. }
  37448. }
  37449. else
  37450. {
  37451. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  37452. }
  37453. }
  37454. return 1;
  37455. }
  37456. if(strcmp(cmd, "/seteventpos", true) == 0)
  37457. {
  37458. if(IsPlayerConnected(playerid))
  37459. {
  37460. if(PlayerInfo[playerid][pAdmin] >= 4)
  37461. {
  37462. if(ActiveEvent == 0)
  37463. {
  37464. GetPlayerPos(playerid, EventX, EventY, EventZ);
  37465. EventInt = GetPlayerInterior(playerid);
  37466. EventWorld = GetPlayerVirtualWorld(playerid);
  37467. SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event position.");
  37468. }
  37469. else
  37470. {
  37471. SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event.");
  37472. }
  37473. }
  37474. else
  37475. {
  37476. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37477. }
  37478. }
  37479. return 1;
  37480. }
  37481. if(strcmp(cmd, "/hoseject", true) == 0)
  37482. {
  37483. if(IsPlayerConnected(playerid))
  37484. {
  37485. if(PlayerInfo[playerid][pAdmin] >= 2)
  37486. {
  37487. tmp = strtok(cmdtext, idx);
  37488. if(!strlen(tmp))
  37489. {
  37490. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /hoseject [playerid/PartOfName]{7DAEFF}");
  37491. return 1;
  37492. }
  37493. giveplayerid = ReturnUser(tmp);
  37494. if(HospitalTime[giveplayerid])
  37495. {
  37496. GetPlayerName(playerid, sendername, sizeof(sendername));
  37497. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  37498. HospitalTime[giveplayerid] = 49;
  37499. SendClientMessage(giveplayerid, COLOR_GREY, "You have been ejected from hospital !");
  37500. format(string, sizeof(string), "Info: %s has ejected %s from hospital.", sendername, giveplayer);
  37501. ABroadCast(COLOR_LIGHTRED,string,1);
  37502. }
  37503. else
  37504. {
  37505. SendClientMessage(playerid, COLOR_GRAD1, "That player is not in hospital.");
  37506. }
  37507. }
  37508. else
  37509. {
  37510. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  37511. }
  37512. }
  37513. return 1;
  37514. }
  37515. if(strcmp(cmd, "/nohospital", true) == 0)
  37516. {
  37517. if(IsPlayerConnected(playerid))
  37518. {
  37519. if(PlayerInfo[playerid][pAdmin] >= 3)
  37520. {
  37521. if(!NoHospital[playerid])
  37522. {
  37523. NoHospital[playerid] = 1;
  37524. SendClientMessage(playerid, COLOR_GREY, "You have enabled no hospital mode.");
  37525. }
  37526. else
  37527. {
  37528. NoHospital[playerid] = 0;
  37529. SendClientMessage(playerid, COLOR_GREY, "You have disabled no hospital mode.");
  37530. }
  37531. }
  37532. else
  37533. {
  37534. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37535. }
  37536. }
  37537. return 1;
  37538. }
  37539. if(!strcmp(cmd, "/setvhp", true))
  37540. {
  37541. tmp = strtok(cmdtext, idx);
  37542. if(!(PlayerInfo[playerid][pAdmin] >= 3))
  37543. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37544. if(!strlen(tmp))
  37545. return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /sethp [vehicle id] [health]{7DAEFF}");
  37546. new vid = strval(tmp);
  37547. tmp = strtok(cmdtext, idx);
  37548. if(!strlen(tmp))
  37549. return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sethp [vehicle id] [health]");
  37550. if(!GetVehicleModel(vid))
  37551. return SendClientMessage(playerid, COLOR_GRAD2, "Invalid vehicle ID. Make sure the vehicle ID exists!");
  37552. new vhealth = strval(tmp);
  37553. SetVehicleHealth(vid,vhealth);
  37554. return 1;
  37555. }
  37556. if(strcmp(cmd, "/sethp", true) == 0)
  37557. {
  37558. if(IsPlayerConnected(playerid))
  37559. {
  37560. tmp = strtok(cmdtext, idx);
  37561. if(!strlen(tmp))
  37562. {
  37563. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [health]{7DAEFF}");
  37564. return 1;
  37565. }
  37566. new playa;
  37567. new health;
  37568. playa = ReturnUser(tmp);
  37569. tmp = strtok(cmdtext, idx);
  37570. if(!strlen(tmp))
  37571. {
  37572. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [health]{7DAEFF}");
  37573. return 1;
  37574. }
  37575. health = strvalEx(tmp);
  37576. if(PlayerInfo[playerid][pAdmin] >= 3)
  37577. {
  37578. if(IsPlayerConnected(playa))
  37579. {
  37580. if(playa != INVALID_PLAYER_ID)
  37581. {
  37582. if(PlayerInfo[playa][pAdmin] > PlayerInfo[playerid][pAdmin] && health == 0)
  37583. {
  37584. format(string, sizeof(string), "Info: %s was killed, reason: Attempting to set a higher admin's health to 0.", PlayerName(playerid));
  37585. ABroadCast(COLOR_LIGHTRED, string, 1);
  37586. SetPlayerHealth(playerid,0);
  37587. return 1;
  37588. }
  37589. SetPlayerHealth(playa, health);
  37590. format(string, sizeof(string), "You have set %s's health to %d !",PlayerName(playa),health);
  37591. SendClientMessage(playerid, COLOR_GREY, string);
  37592. }
  37593. }
  37594. }
  37595. else
  37596. {
  37597. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37598. }
  37599. }
  37600. return 1;
  37601. }
  37602. if(strcmp(cmd, "/setarmor", true) == 0)
  37603. {
  37604. if(IsPlayerConnected(playerid))
  37605. {
  37606. tmp = strtok(cmdtext, idx);
  37607. if(!strlen(tmp))
  37608. {
  37609. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setarmor [playerid/PartOfName] [armor]{7DAEFF}");
  37610. return 1;
  37611. }
  37612. new playa;
  37613. new armor;
  37614. playa = ReturnUser(tmp);
  37615. tmp = strtok(cmdtext, idx);
  37616. if(!strlen(tmp))
  37617. {
  37618. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethp [playerid/PartOfName] [armor]{7DAEFF}");
  37619. return 1;
  37620. }
  37621. armor = strvalEx(tmp);
  37622. if(PlayerInfo[playerid][pAdmin] >= 4)
  37623. {
  37624. if(IsPlayerConnected(playa))
  37625. {
  37626. if(playa != INVALID_PLAYER_ID)
  37627. {
  37628. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  37629. SetPlayerArmour(playa, armor);
  37630. format(string, sizeof(string), "You have set %s's armor to %d.", giveplayer,armor);
  37631. SendClientMessage(playerid, COLOR_GREY, string);
  37632. }
  37633. }
  37634. }
  37635. else
  37636. {
  37637. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37638. }
  37639. }
  37640. return 1;
  37641. }
  37642. if(strcmp(cmd, "/setanim", true) == 0)
  37643. {
  37644. if(IsPlayerConnected(playerid))
  37645. {
  37646. if(PlayerInfo[playerid][pAdmin] < 4)
  37647. {
  37648. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37649. return 1;
  37650. }
  37651. tmp = strtok(cmdtext, idx);
  37652. if(!strlen(tmp))
  37653. {
  37654. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setanim [playerid/PartOfName] [1-8]{7DAEFF}");
  37655. return 1;
  37656. }
  37657. giveplayerid = ReturnUser(tmp);
  37658. if(IsPlayerConnected(giveplayerid))
  37659. {
  37660. if(giveplayerid != INVALID_PLAYER_ID)
  37661. {
  37662. tmp = strtok(cmdtext, idx);
  37663. if(!strlen(tmp))
  37664. {
  37665. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setanim [playerid/PartOfName] [1-9]{7DAEFF}");
  37666. return 1;
  37667. }
  37668. new anim;
  37669. anim = strvalEx(tmp);
  37670. switch (anim)
  37671. {
  37672. case 1:
  37673. {
  37674. ApplyAnimation(giveplayerid,"PARACHUTE","PARA_decel_O",4.0,0,1,1,1,1);
  37675. }
  37676. case 2:
  37677. {
  37678. ApplyAnimation(giveplayerid,"PARACHUTE","PARA_Rip_Land_O",4.0,0,1,1,1,1);
  37679. }
  37680. case 3:
  37681. {
  37682. ApplyAnimation(giveplayerid,"PARACHUTE","PARA_Rip_Loop_O",4.0,0,1,1,1,1);
  37683. }
  37684. case 4:
  37685. {
  37686. ApplyAnimation(giveplayerid,"PED","DOOR_LHinge_O",4.0,0,1,1,1,1);
  37687. }
  37688. case 5:
  37689. {
  37690. ApplyAnimation(giveplayerid,"PED","DOOR_RHinge_O",4.0,0,1,1,1,1);
  37691. }
  37692. case 6:
  37693. {
  37694. ApplyAnimation(giveplayerid,"PED","run_left",4.0,1,1,1,1,1);
  37695. }
  37696. case 7:
  37697. {
  37698. ApplyAnimation(giveplayerid,"PED","run_right",4.0,1,1,1,1,1);
  37699. }
  37700. case 8:
  37701. {
  37702. ApplyAnimation(giveplayerid,"ROB_BANK","CAT_Safe_Open_O",4.0,0,1,1,1,1);
  37703. }
  37704. case 9:
  37705. {
  37706. ApplyAnimation(giveplayerid,"GHANDS","LHGsign1",4.0,0,1,1,1,1);
  37707. }
  37708. default:
  37709. {
  37710. SendClientMessage(playerid, COLOR_GREY, "Animation can't be below 1 or above 8.");
  37711. return 1;
  37712. }
  37713. }
  37714. }
  37715. }
  37716. }
  37717. return 1;
  37718. }
  37719. if(strcmp(cmd, "/spawn", true) == 0)
  37720. {
  37721. if(IsPlayerConnected(playerid))
  37722. {
  37723. if(PlayerInfo[playerid][pAdmin] <= 4)
  37724. {
  37725. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  37726. return 1;
  37727. }
  37728. ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicles","Heavy Trucks\nTrucks\n2Doors\n4Doors\nAircraft\nBoats\nTrailers\nGovernment\nRC\nTransportation\nSports\nBikes\nSpecial", "Spawn", "Cancel");
  37729. }
  37730. return 1;
  37731. }
  37732. if(strcmp(cmdtext, "/vehmenu", true) == 0)
  37733. {
  37734. if(PlayerInfo[playerid][pAdmin] >= 4)
  37735. {
  37736. ShowPlayerDialog(playerid, VEHMENU1, DIALOG_STYLE_LIST, "Vehicle Mod Menu","Car Color\nModifications","Accept","Cancel");
  37737. }
  37738. }
  37739. if(strcmp(cmd, "/veh", true) == 0)
  37740. {
  37741. if(!(PlayerInfo[playerid][pAdmin] >= 4))
  37742. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37743.  
  37744. tmp = strtok(cmdtext, idx);
  37745. if(!strlen(tmp))
  37746. return SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /veh [vehicle name/ID] [color1(optional)] [color2(optional)] [respawnable(optional)]{7DAEFF}");
  37747.  
  37748. new car = ReturnVehicleModelID(tmp);
  37749. if(!car)
  37750. return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model name/ID.");
  37751.  
  37752. new color1, color2;
  37753. tmp = strtok(cmdtext, idx);
  37754. if(!strlen(tmp))
  37755. {
  37756. color1 = -1;
  37757. color2 = -1;
  37758. }
  37759. else
  37760. {
  37761. color1 = strval(tmp);
  37762. if(color1 < -1 || color1 > 200)
  37763. return SendClientMessage(playerid, COLOR_GREY, " Enter a valid color [0-200]");
  37764.  
  37765. tmp = strtok(cmdtext, idx);
  37766. if(!strlen(tmp)) color2 = color1;
  37767. else color2 = strval(tmp);
  37768. if(color2 < -1 || color2 > 200)
  37769. return SendClientMessage(playerid, COLOR_GREY, " Enter a valid color [0-200]");
  37770. }
  37771.  
  37772. if(IsPlayerInAnyVehicle(playerid))
  37773. RemovePlayerFromVehicle(playerid);
  37774. new Float:X, Float:Y, Float:Z, Float:A;
  37775. GetPlayerPos(playerid, X,Y,Z);
  37776. GetPlayerFacingAngle(playerid,A);
  37777. new carid = CreateVehicle(car, X,Y,Z,A, color1, color2, -1);
  37778. ChangeVehiclePaintjob(carid, 3);
  37779.  
  37780. tmp = strtok(cmdtext, idx);
  37781. if(strval(tmp) != 1)
  37782. {
  37783. gDestroyVehicle[carid] = 1;
  37784. }
  37785. gCarLock[carid] = 0;
  37786. PutPlayerInVehicle(playerid,carid,0);
  37787. LinkVehicleToInterior(carid,GetPlayerInterior(playerid));
  37788. for(new i = 0; i < sizeof(CreatedCars); i++)
  37789. {
  37790. if(CreatedCars[i] != carid)
  37791. {
  37792. CreatedCars[i] = carid;
  37793. break;
  37794. }
  37795. }
  37796. return 1;
  37797. }
  37798. if(strcmp(cmd, "/listcars", true) == 0)
  37799. {
  37800. if(IsPlayerConnected(playerid))
  37801. {
  37802. if(!(PlayerInfo[playerid][pAdmin] >= 4))
  37803. {
  37804. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
  37805. return 1;
  37806. }
  37807. new createdcarcount;
  37808. for(new i = 0; i < sizeof(CreatedCars); i++)
  37809. {
  37810. if(CreatedCars[i] != INVALID_VEHICLE_ID)
  37811. {
  37812. createdcarcount = 1;
  37813. format(string,sizeof(string),"(%d) %s",CreatedCars[i],vehName[GetVehicleModel(CreatedCars[i])-400]);
  37814. SendClientMessage(playerid,COLOR_GREY,string);
  37815. }
  37816. }
  37817. if(createdcarcount != 1)
  37818. {
  37819. SendClientMessage(playerid,COLOR_GREY,"No vehicles created.");
  37820. }
  37821. }
  37822. return 1;
  37823. }
  37824.  
  37825. if(strcmp(cmd, "/paintcar", true) == 0)
  37826. {
  37827. if(IsPlayerConnected(playerid))
  37828. {
  37829. if(!IsPlayerInAnyVehicle(playerid))
  37830. {
  37831. SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
  37832. return 1;
  37833. }
  37834. if(PlayerInfo[playerid][pSpraycan] == 0)
  37835. {
  37836. SendClientMessage(playerid, COLOR_GREY, "Your Spraycan is empty.");
  37837. return 1;
  37838. }
  37839. tmp = strtok(cmdtext, idx);
  37840. if(!strlen(tmp))
  37841. {
  37842. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /paintcar [0-5]");
  37843. return 1;
  37844. }
  37845. new vehicle = GetPlayerVehicleID(playerid);
  37846. new paintjob;
  37847. paintjob = strvalEx(tmp);
  37848. if(paintjob < 0||paintjob > 5) { SendClientMessage(playerid, COLOR_GREY, "Paint job can't be below 0 or above 5."); return 1; }
  37849. ChangeVehiclePaintjob(vehicle,paintjob);
  37850. CarInfo[vehicle][tPaintjob] = paintjob;
  37851. PlayerInfo[playerid][pSpraycan]--;
  37852. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  37853. }
  37854. return 1;
  37855. }
  37856. if(strcmp(cmd, "/colorcar", true) == 0)
  37857. {
  37858. if(IsPlayerConnected(playerid))
  37859. {
  37860. if(!IsPlayerInAnyVehicle(playerid))
  37861. {
  37862. SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
  37863. return 1;
  37864. }
  37865. if(PlayerInfo[playerid][pSpraycan] == 0)
  37866. {
  37867. SendClientMessage(playerid, COLOR_GREY, "Your Spraycan is empty.");
  37868. return 1;
  37869. }
  37870. tmp = strtok(cmdtext, idx);
  37871. if(!strlen(tmp))
  37872. {
  37873. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /colorcar [0-126] [0-126]{7DAEFF}");
  37874. return 1;
  37875. }
  37876. new color1;
  37877. color1 = strvalEx(tmp);
  37878. if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "Color can't be below 0 or above 126 ."); return 1; }
  37879. tmp = strtok(cmdtext, idx);
  37880. if(!strlen(tmp))
  37881. {
  37882. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /colorcar [0-126] [0-126]{7DAEFF}");
  37883. return 1;
  37884. }
  37885. new vehicle = GetPlayerVehicleID(playerid);
  37886. if (CarInfo[vehicle][tFaction] != 0)
  37887. {
  37888. SendClientMessage(playerid, COLOR_GREY, "You can't color this vehicle.");
  37889. return 1;
  37890. }
  37891. new color2;
  37892. color2 = strvalEx(tmp);
  37893. if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "Color can't be below 0 or above 126 !"); return 1; }
  37894. CarInfo[vehicle][tColorOne] = color1;
  37895. CarInfo[vehicle][tColorTwo] = color2;
  37896. ChangeVehicleColor(vehicle, color1, color2);
  37897. PlayerInfo[playerid][pSpraycan]--;
  37898. PlayerPlaySound(playerid,1134,0.0,0.0,0.0);
  37899. }
  37900. return 1;
  37901. }
  37902. if(strcmp(cmd, "/fixveh", true) == 0)
  37903. {
  37904. if(IsPlayerConnected(playerid))
  37905. {
  37906. if(PlayerInfo[playerid][pAdmin] < 4)
  37907. {
  37908. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37909. return 1;
  37910. }
  37911. if(IsPlayerInAnyVehicle(playerid))
  37912. {
  37913. RepairVehicle(GetPlayerVehicleID(playerid));
  37914. SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
  37915. SendClientMessage(playerid, COLOR_GREY, "You have Fixed your Vehicle.");
  37916. }
  37917. }
  37918. return 1;
  37919. }
  37920. if(strcmp(cmd, "/destroycar", true)== 0)
  37921. {
  37922. if(PlayerInfo[playerid][pAdmin] >= 4)
  37923. {
  37924. new currentVehicle = GetPlayerVehicleID(playerid);
  37925. if(currentVehicle == 0) return SendClientMessage(playerid,COLOR_GREY, "You must be in a vehicle to destroy it.");
  37926. new check;
  37927. for(new i = 0; i < sizeof(CreatedCars); i++)
  37928. {
  37929. if(CreatedCars[i] == currentVehicle)
  37930. {
  37931. check = 1;
  37932. CreatedCars[i] = INVALID_VEHICLE_ID;
  37933. break;
  37934. }
  37935. }
  37936. if(!check) return SendClientMessage(playerid, COLOR_GRAD1, "You may only destroy a vehicle that was created with /veh.");
  37937.  
  37938. gDestroyVehicle[currentVehicle] = 1;
  37939. SetVehicleToRespawn(currentVehicle);
  37940. return 1;
  37941. }
  37942. else
  37943. {
  37944. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37945. }
  37946. }
  37947. if(strcmp(cmd, "/destroycars", true) == 0)
  37948. {
  37949. if(IsPlayerConnected(playerid))
  37950. {
  37951. new vehcount = 0;
  37952. for(new i = 0; i < sizeof(CreatedCars); i++)
  37953. {
  37954. if(CreatedCars[i] != INVALID_VEHICLE_ID)
  37955. {
  37956. vehcount++;
  37957. gDestroyVehicle[CreatedCars[i]] = 1;
  37958. SetVehicleToRespawn(CreatedCars[i]);
  37959. CreatedCars[i] = INVALID_VEHICLE_ID;
  37960. }
  37961. }
  37962. return 1;
  37963. }
  37964. return 1;
  37965. }
  37966. if(strcmp(cmd, "/weather", true) == 0)
  37967. {
  37968. if(IsPlayerConnected(playerid))
  37969. {
  37970. if(PlayerInfo[playerid][pAdmin] < 5)
  37971. {
  37972. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37973. return 1;
  37974. }
  37975. tmp = strtok(cmdtext, idx);
  37976. if(!strlen(tmp))
  37977. {
  37978. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /weather [weatherid]");
  37979. return 1;
  37980. }
  37981. new weather;
  37982. weather = strvalEx(tmp);
  37983. if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, "Weather ID can't be below 0 or above 45."); return 1; }
  37984. SetPlayerWeather(playerid, weather);
  37985. SendClientMessage(playerid, COLOR_GREY, "Weather has been set.");
  37986. }
  37987. return 1;
  37988. }
  37989. if(strcmp(cmd, "/weatherall", true) == 0)
  37990. {
  37991. if(IsPlayerConnected(playerid))
  37992. {
  37993. if(PlayerInfo[playerid][pAdmin] < 5)
  37994. {
  37995. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  37996. return 1;
  37997. }
  37998. tmp = strtok(cmdtext, idx);
  37999. if(!strlen(tmp))
  38000. {
  38001. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /weatherall [weatherid]{7DAEFF}");
  38002. return 1;
  38003. }
  38004. new weather;
  38005. weather = strvalEx(tmp);
  38006. if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, "Weather ID can't be below 0 or above 45."); return 1; }
  38007. SetWeather(weather);
  38008. SendClientMessage(playerid, COLOR_GREY, "Weather has been set for everyone.");
  38009. }
  38010. return 1;
  38011. }
  38012. if(strcmp(cmd, "/sethpall", true) == 0)
  38013. {
  38014. if(IsPlayerConnected(playerid))
  38015. {
  38016. tmp = strtok(cmdtext, idx);
  38017. if(!strlen(tmp))
  38018. {
  38019. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sethpall [health]{7DAEFF}");
  38020. return 1;
  38021. }
  38022. new health;
  38023. health = strvalEx(tmp);
  38024. if(PlayerInfo[playerid][pAdmin] >= 4)
  38025. {
  38026. //foreach(Player, i)
  38027. for(new i; i<MAX_PLAYERS; i++)
  38028. {
  38029. if(IsPlayerConnected(i))
  38030. {
  38031. SetPlayerHealth(i, health);
  38032. }
  38033. }
  38034. format(string, sizeof(string), "You have set everyones health to %d.",health);
  38035. SendClientMessage(playerid, COLOR_GREY, string);
  38036. }
  38037. else
  38038. {
  38039. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38040. }
  38041. }
  38042. return 1;
  38043. }
  38044. if(strcmp(cmd, "/setarmorall", true) == 0)
  38045. {
  38046. if(IsPlayerConnected(playerid))
  38047. {
  38048. tmp = strtok(cmdtext, idx);
  38049. if(!strlen(tmp))
  38050. {
  38051. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setarmorall [armor]{7DAEFF}");
  38052. return 1;
  38053. }
  38054. new armor;
  38055. armor = strvalEx(tmp);
  38056. if(PlayerInfo[playerid][pAdmin] >= 4)
  38057. {
  38058. //foreach(Player, i)
  38059. for(new i; i<MAX_PLAYERS; i++)
  38060. {
  38061. if(IsPlayerConnected(i))
  38062. {
  38063. SetPlayerArmour(i, armor);
  38064. }
  38065. }
  38066. format(string, sizeof(string), "You have set everyones armor to %d.",armor);
  38067. SendClientMessage(playerid, COLOR_GREY, string);
  38068. }
  38069. else
  38070. {
  38071. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38072. }
  38073. }
  38074. return 1;
  38075. }
  38076. if(strcmp(cmd, "/fixvehall", true) == 0)
  38077. {
  38078. if(IsPlayerConnected(playerid))
  38079. {
  38080. if(PlayerInfo[playerid][pAdmin] >= 4)
  38081. {
  38082. for(new i = 0; i < MAX_VEHICLES; i++)
  38083. {
  38084. RepairVehicle(i);
  38085. SetVehicleHealth(i, 1000.0);
  38086. }
  38087. SendClientMessage(playerid, COLOR_GREY, "All vehicles fixed.");
  38088. }
  38089. else
  38090. {
  38091. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38092. }
  38093. }
  38094. return 1;
  38095. }
  38096. if(strcmp(cmd, "/savechars", true) == 0)
  38097. {
  38098. if(IsPlayerConnected(playerid))
  38099. {
  38100. if(PlayerInfo[playerid][pAdmin] >= 4)
  38101. {
  38102. //foreach(Player, i)
  38103. for(new i; i<MAX_PLAYERS; i++)
  38104. {
  38105. if(IsPlayerConnected(i))
  38106. {
  38107. OnPlayerSave(i);
  38108. }
  38109. }
  38110. SaveBiz();
  38111. SaveHouse();
  38112. SaveCar();
  38113. SendClientMessage(playerid, COLOR_GREY, "All Players, Houses and Cars saved.");
  38114. }
  38115. else
  38116. {
  38117. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38118. }
  38119. }
  38120. return 1;
  38121. }
  38122. if(strcmp(cmd, "/givenos", true) == 0)
  38123. {
  38124. if(IsPlayerConnected(playerid))
  38125. {
  38126. if(PlayerInfo[playerid][pAdmin] >= 4)
  38127. {
  38128. new vehid = GetPlayerVehicleID(playerid);
  38129. if(IsValidNosVehicle(vehid))
  38130. {
  38131. AddVehicleComponent(vehid, 1010); //10x nos
  38132. SendClientMessage(playerid, COLOR_GREY, "10x nos added to the vehicle.");
  38133. }
  38134. else
  38135. {
  38136. return 1;
  38137. }
  38138. }
  38139. else
  38140. {
  38141. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38142. }
  38143. }
  38144. return 1;
  38145. }
  38146. if(strcmp(cmd, "/givenosall", true) == 0)
  38147. {
  38148. if(IsPlayerConnected(playerid))
  38149. {
  38150. if(PlayerInfo[playerid][pAdmin] >= 4)
  38151. {
  38152. for(new i = 0; i < MAX_VEHICLES; i++)
  38153. {
  38154. if(IsValidNosVehicle(i))
  38155. {
  38156. AddVehicleComponent(i, 1010); //10x nos
  38157. }
  38158. }
  38159. SendClientMessage(playerid, COLOR_GREY, "10x nos added to the vehicle.");
  38160. }
  38161. else
  38162. {
  38163. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38164. }
  38165. }
  38166. return 1;
  38167. }
  38168.  
  38169. if(strcmp(cmd, "/setname", true) == 0)
  38170. {
  38171. if(IsPlayerConnected(playerid))
  38172. {
  38173. tmp = strtok(cmdtext, idx);
  38174. if(!strlen(tmp))
  38175. {
  38176. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setname [playerid/PartOfName] [name]{7DAEFF}");
  38177. return 1;
  38178. }
  38179. giveplayerid = ReturnUser(tmp);
  38180. if(IsPlayerNPC(giveplayerid)) return 1;
  38181. if(PlayerInfo[playerid][pAdmin] >=4)
  38182. {
  38183. if(IsPlayerConnected(giveplayerid))
  38184. {
  38185. if(giveplayerid != INVALID_PLAYER_ID)
  38186. {
  38187. tmp = strtok(cmdtext, idx);
  38188. if(!strlen(tmp))
  38189. {
  38190. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /setname [playerid/PartOfName] [name]{7DAEFF}");
  38191. return 1;
  38192. }
  38193. format(string, sizeof(string), "%s.ini", tmp);
  38194. if(fexist(string))
  38195. {
  38196. SendClientMessage(playerid, COLOR_GRAD1, "That name is already registered.");
  38197. return 1;
  38198. }
  38199. GetPlayerName(playerid, sendername, sizeof(sendername));
  38200. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  38201. // PlayerInfo[giveplayerid][pDisabled] = 1;
  38202. // OnPlayerSave(giveplayerid);
  38203. SetPlayerName(giveplayerid, tmp);
  38204. // PlayerInfo[giveplayerid][pDisabled] = 0;
  38205. format(string, sizeof(string), "%s.ini", giveplayer);
  38206. fremove(string);
  38207. OnPlayerSave(giveplayerid); // save player (in case server has a restart and fucks up their name)
  38208. format(string, sizeof(string), " You have renamed %s to %s !", giveplayer, tmp);
  38209. SendClientMessage(playerid, COLOR_GREY, string);
  38210. format(string, sizeof(string), "Your name has been changed from %s to %s.", giveplayer, tmp);
  38211. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  38212. format(string, sizeof(string), "%s has renamed %s to %s.", sendername, giveplayer, tmp);
  38213. if(PlayerInfo[giveplayerid][pCarKey1] > 0)
  38214. {
  38215. strmid(CarInfo[PlayerInfo[giveplayerid][pCarKey1]][tOwner], tmp, 0, strlen(tmp), 255);
  38216. }
  38217. if(PlayerInfo[giveplayerid][pCarKey2] > 0)
  38218. {
  38219. strmid(CarInfo[PlayerInfo[giveplayerid][pCarKey2]][tOwner], tmp, 0, strlen(tmp), 255);
  38220. }
  38221. if(PlayerInfo[giveplayerid][pHouseKey] < 999)
  38222. {
  38223. strmid(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner], tmp, 0, strlen(tmp), 255);
  38224. DestroyDynamic3DTextLabel(HouseLabel[PlayerInfo[giveplayerid][pHouseKey]]);
  38225. new VString[255];
  38226. new name[25], owner[MAX_PLAYER_NAME];
  38227. strmid(owner, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner], 0, strlen(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hOwner]), 255);
  38228. strmid(name, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hName], 0, strlen(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hName]), 255);
  38229. if(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRentable] == 0)
  38230. {
  38231. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLevel],owner);
  38232. HouseLabel[PlayerInfo[giveplayerid][pHouseKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  38233. }
  38234. if(HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRentable] == 1)
  38235. {
  38236. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLevel],owner,HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRent]);
  38237. HouseLabel[PlayerInfo[giveplayerid][pHouseKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_x], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_y], HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  38238. }
  38239. }
  38240. if(PlayerInfo[giveplayerid][pBizKey] < 999)
  38241. {
  38242. strmid(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner], tmp, 0, strlen(tmp), 255);
  38243. DestroyDynamic3DTextLabel(BizLabel[PlayerInfo[giveplayerid][pBizKey]]);
  38244. new VString[255];
  38245. new name[25], owner[MAX_PLAYER_NAME];
  38246. strmid(owner, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner], 0, strlen(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bOwner]), 255);
  38247. strmid(name, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bName], 0, strlen(BizInfo[PlayerInfo[giveplayerid][pBizKey]][bName]), 255);
  38248. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[PlayerInfo[giveplayerid][pBizKey]][bFee]);
  38249. BizLabel[PlayerInfo[giveplayerid][pBizKey]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_x], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_y], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[PlayerInfo[giveplayerid][pBizKey]][bPVW], BizInfo[PlayerInfo[giveplayerid][pBizKey]][bPInt], -1, 100.0);
  38250. }
  38251. StatLog(string);
  38252. return 1;
  38253. }
  38254. }
  38255. }
  38256. else
  38257. {
  38258. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38259. return 1;
  38260. }
  38261. }
  38262. return 1;
  38263. }
  38264.  
  38265. if(strcmp(cmd, "/load", true) == 0)
  38266. {
  38267. if(IsPlayerConnected(playerid))
  38268. {
  38269. if(PlayerInfo[playerid][pAdmin] < 4)
  38270. {
  38271. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38272. return 1;
  38273. }
  38274. tmp = strtok(cmdtext, idx);
  38275. if(!strlen(tmp))
  38276. {
  38277. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /load [name]");
  38278. SendClientMessage(playerid, COLOR_GREY,"Available names: Families");
  38279. return 1;
  38280. }
  38281. if(strcmp(tmp,"families",true) == 0)
  38282. {
  38283. LoadFamilies();
  38284. SendClientMessage(playerid, COLOR_GRAD1, "Families/families.cfg has successfully been reloaded !");
  38285. return 1;
  38286. }
  38287. else
  38288. {
  38289. SendClientMessage(playerid, COLOR_GREY, "Invalid load name.");
  38290. return 1;
  38291. }
  38292. }
  38293. return 1;
  38294. }
  38295. if(strcmp(cmd, "/setmoney", true) == 0)
  38296. {
  38297. if(IsPlayerConnected(playerid))
  38298. {
  38299. tmp = strtok(cmdtext, idx);
  38300. if(!strlen(tmp))
  38301. {
  38302. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setmoney [playerid/PartOfName] [amount]");
  38303. return 1;
  38304. }
  38305. new playa;
  38306. new money;
  38307. playa = ReturnUser(tmp);
  38308. tmp = strtok(cmdtext, idx);
  38309. if(!strlen(tmp))
  38310. {
  38311. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setmoney [playerid/PartOfName] [amount]");
  38312. return 1;
  38313. }
  38314. money = strvalEx(tmp);
  38315. if(PlayerInfo[playerid][pAdmin] >= 4)
  38316. {
  38317. if(IsPlayerConnected(playa))
  38318. {
  38319. if(playa != INVALID_PLAYER_ID)
  38320. {
  38321. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38322. ResetPlayerMoney(playa);
  38323. PlayerInfo[playa][pCash] = money;
  38324. GivePlayerMoney(playa, money);
  38325. format(string, sizeof(string), "You have set %s's money to $%d !", giveplayer,money);
  38326. SendClientMessage(playerid, COLOR_GREY, string);
  38327. }
  38328. }
  38329. }
  38330. else
  38331. {
  38332. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38333. }
  38334. }
  38335. return 1;
  38336. }
  38337. if(strcmp(cmd, "/givemoney", true) == 0)
  38338. {
  38339. if(IsPlayerConnected(playerid))
  38340. {
  38341. tmp = strtok(cmdtext, idx);
  38342. if(!strlen(tmp))
  38343. {
  38344. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givemoney [playerid/PartOfName] [money]{7DAEFF}");
  38345. return 1;
  38346. }
  38347. new playa;
  38348. new money;
  38349. playa = ReturnUser(tmp);
  38350. tmp = strtok(cmdtext, idx);
  38351. if(!strlen(tmp))
  38352. {
  38353. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /givemoney [playerid/PartOfName] [money]{7DAEFF}");
  38354. return 1;
  38355. }
  38356. money = strvalEx(tmp);
  38357. if(PlayerInfo[playerid][pAdmin] >= 4)
  38358. {
  38359. if(IsPlayerConnected(playa))
  38360. {
  38361. if(playa != INVALID_PLAYER_ID)
  38362. {
  38363. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38364. PlayerInfo[playa][pCash] = PlayerInfo[playa][pCash]+money;
  38365. GivePlayerMoney(playa,money);
  38366. format(string, sizeof(string), "You have given %s $%d.", giveplayer,money);
  38367. SendClientMessage(playerid, COLOR_GREY, string);
  38368. }
  38369. }
  38370. }
  38371. else
  38372. {
  38373. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38374. }
  38375. }
  38376. return 1;
  38377. }
  38378. if(strcmp(cmd, "/setcolor", true) == 0)
  38379. {
  38380. if(IsPlayerConnected(playerid))
  38381. {
  38382. if (PlayerInfo[playerid][pAdmin] < 5)
  38383. {
  38384. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38385. return 1;
  38386. }
  38387. tmp = strtok(cmdtext, idx);
  38388. if(!strlen(tmp))
  38389. {
  38390. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setcolor [Playerid/PartOfName] [color]");
  38391. return 1;
  38392. }
  38393. new playa;
  38394. new colornr;
  38395. playa = ReturnUser(tmp);
  38396. tmp = strtok(cmdtext, idx);
  38397. if(!strlen(tmp))
  38398. {
  38399. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /setcolor [Playerid/PartOfName] [color]");
  38400. return 1;
  38401. }
  38402. colornr = GetColorCode2(tmp);
  38403. if(IsPlayerConnected(playa))
  38404. {
  38405. if(playa != INVALID_PLAYER_ID)
  38406. {
  38407. SetPlayerColor(playa, colornr);
  38408. format(string, sizeof(string), "* You have changed %s's name color.", PlayerName(playa));
  38409. SendClientMessage(playerid, COLOR_WHITE, string);
  38410. }
  38411. }
  38412. }
  38413. return 1;
  38414. }
  38415. if(strcmp(cmd, "/countdown", true) == 0)
  38416. {
  38417. if(IsPlayerConnected(playerid))
  38418. {
  38419. if(PlayerInfo[playerid][pAdmin] >= 3)
  38420. {
  38421. SetTimer("CountDownCheck", 1, 0);
  38422. return 1;
  38423. }
  38424. SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use that command.");
  38425. return 1;
  38426. }
  38427. return 1;
  38428. }
  38429. if(strcmp(cmd,"/watch",true)==0)
  38430. {
  38431. if(IsPlayerConnected(playerid))
  38432. {
  38433. if(PlayerInfo[playerid][pAdmin] >= 3)
  38434. {
  38435. new x_place[128];
  38436. x_place = strtok(cmdtext, idx);
  38437. if(!strlen(x_place))
  38438. {
  38439. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /watch [place]{7DAEFF}");
  38440. SendClientMessage(playerid, COLOR_LIGHTRED, "Credits to Zhao.");
  38441. SendClientMessage(playerid, COLOR_GRAD2, "Available Places: Gym, LSPD, Allsaints, County, Grove, TGB, Bank, Motel, Jail, DeMorgan, Off");
  38442. return 1;
  38443. }
  38444. else if(strcmp(x_place,"gym",true) == 0)
  38445. {
  38446. SendClientMessage(playerid, COLOR_WHITE, "You are now watching Gym.");
  38447. SetPlayerPos(playerid, 2212.61, -1730.57, 1000.0);
  38448. SetPlayerInterior(playerid, 0);
  38449. TogglePlayerControllable(playerid,0);
  38450. SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
  38451. SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
  38452. return 1;
  38453. }
  38454. else if(strcmp(x_place,"lspd",true) == 0)
  38455. {
  38456. SendClientMessage(playerid, COLOR_WHITE, "You are now watching the LSPD.");
  38457. SetPlayerPos(playerid, 1504.23, -1700.17, 1000.0);
  38458. SetPlayerInterior(playerid, 0);
  38459. TogglePlayerControllable(playerid, 0);
  38460. SetPlayerCameraPos(playerid, 1500.21, -1691.75, 38.38);
  38461. SetPlayerCameraLookAt(playerid, 1541.46, -1676.17, 13.55);
  38462. return 1;
  38463. }
  38464. else if(strcmp(x_place,"allsaints",true) == 0)
  38465. {
  38466. SendClientMessage(playerid, COLOR_WHITE, "You are now watching All Saints Hospital.");
  38467. SetPlayerPos(playerid, 1201.12, -1324, 1000.0);
  38468. SetPlayerInterior(playerid, 0);
  38469. TogglePlayerControllable(playerid,0);
  38470. SetPlayerCameraPos(playerid, 1207.39, -1294.71, 24.61);
  38471. SetPlayerCameraLookAt(playerid, 1181.72, -1322.65, 13.58);
  38472. return 1;
  38473. }
  38474. else if(strcmp(x_place,"county",true) == 0)
  38475. {
  38476. SendClientMessage(playerid, COLOR_WHITE, "You are now watching County General Hospital.");
  38477. SetPlayerPos(playerid, 1989.24, -1461.38, 1000.0);
  38478. SetPlayerInterior(playerid, 0);
  38479. TogglePlayerControllable(playerid,0);
  38480. SetPlayerCameraPos(playerid, 1981.79, -1461.55, 31.93);
  38481. SetPlayerCameraLookAt(playerid, 2021.23, -1427.48, 13.97);
  38482. return 1;
  38483. }
  38484. else if(strcmp(x_place,"grove",true) == 0)
  38485. {
  38486. SendClientMessage(playerid, COLOR_WHITE, "You are now watching Grove Street.");
  38487. SetPlayerPos(playerid, 2489.09, -1669.88, 1000.0);
  38488. SetPlayerInterior(playerid, 0);
  38489. TogglePlayerControllable(playerid,0);
  38490. SetPlayerCameraPos(playerid, 2459.82, -1652.68, 26.45);
  38491. SetPlayerCameraLookAt(playerid, 2489.09, -1669.88, 13.34);
  38492. }
  38493. else if(strcmp(x_place,"tgb",true) == 0)
  38494. {
  38495. SendClientMessage(playerid, COLOR_WHITE, "You are now watching Ten Green Bottles.");
  38496. SetPlayerPos(playerid, 2319.09, -1650.90, 1000.0);
  38497. SetPlayerInterior(playerid, 0);
  38498. TogglePlayerControllable(playerid,0);
  38499. SetPlayerCameraPos(playerid, 2336.31, -1664.76, 24.98);
  38500. SetPlayerCameraLookAt(playerid, 2319.09, -1650.90, 14.16);
  38501. return 1;
  38502. }
  38503. else if(strcmp(x_place,"bank",true) == 0)
  38504. {
  38505. SendClientMessage(playerid, COLOR_WHITE, "You are now watching the Los Santos Bank.");
  38506. SetPlayerPos(playerid, 1466.24, -1023.05, 1000.0);
  38507. SetPlayerInterior(playerid, 0);
  38508. TogglePlayerControllable(playerid,0);
  38509. SetPlayerCameraPos(playerid, 1502.28, -1044.47, 31.19);
  38510. SetPlayerCameraLookAt(playerid, 1466.24, -1023.05, 23.83);
  38511. return 1;
  38512. }
  38513. else if(strcmp(x_place,"motel",true) == 0)
  38514. {
  38515. SendClientMessage(playerid, COLOR_WHITE, "You are now watching the Jefferson Motel.");
  38516. SetPlayerPos(playerid, 2215.73, -1163.39, 1000.0);
  38517. SetPlayerInterior(playerid, 0);
  38518. TogglePlayerControllable(playerid,0);
  38519. SetPlayerCameraPos(playerid, 2203.05, -1152.81, 37.03);
  38520. SetPlayerCameraLookAt(playerid, 2215.73, -1163.39, 25.73);
  38521. return 1;
  38522. }
  38523. else if(strcmp(x_place,"jail",true) == 0)
  38524. {
  38525. SendClientMessage(playerid, COLOR_WHITE, "You are now watching the LSPD jail cell.");
  38526. SetPlayerPos(playerid, 264.75, 78.32, 2000.0);
  38527. SetPlayerInterior(playerid, 6);
  38528. TogglePlayerControllable(playerid,0);
  38529. SetPlayerCameraPos(playerid, 262.64, 75.77, 1003.31);
  38530. SetPlayerCameraLookAt(playerid, 264.75, 78.32, 1001.04);
  38531. return 1;
  38532. }
  38533. else if(strcmp(x_place,"demorgan",true) == 0)
  38534. {
  38535. SendClientMessage(playerid, COLOR_WHITE, "You are now watching Fort DeMorgan.");
  38536. SetPlayerPos(playerid, 195.56, 1873.53, 10000.0);
  38537. SetPlayerInterior(playerid, 0);
  38538. TogglePlayerControllable(playerid,0);
  38539. SetPlayerCameraPos(playerid, 81.95, 1953.36, 66.69);
  38540. SetPlayerCameraLookAt(playerid, 195.56, 1873.53, 17.64);
  38541. return 1;
  38542. }
  38543. else if(strcmp(x_place,"off",true) == 0)
  38544. {
  38545. SendClientMessage(playerid, COLOR_WHITE, "You are no longer watching anywhere.");
  38546. SetPlayerPos(playerid, 1520.50, -1674.70, 13.55);
  38547. SetPlayerInterior(playerid, 0);
  38548. SetPlayerFacingAngle(playerid, 270.0);
  38549. SetCameraBehindPlayer(playerid);
  38550. TogglePlayerControllable(playerid,1);
  38551. }
  38552. }
  38553. }
  38554. return 1;
  38555. }
  38556. if(strcmp(cmd, "/slap", true) == 0)
  38557. {
  38558. if(IsPlayerConnected(playerid))
  38559. {
  38560. tmp = strtok(cmdtext, idx);
  38561. if(!strlen(tmp))
  38562. {
  38563. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /slap [playerid/PartOfName]{7DAEFF}");
  38564. return 1;
  38565. }
  38566. new playa;
  38567. new Float:slx, Float:sly, Float:slz;
  38568. playa = ReturnUser(tmp);
  38569. if(PlayerInfo[playerid][pAdmin] >=2)
  38570. {
  38571. if(IsPlayerConnected(playa))
  38572. {
  38573. if(playa != INVALID_PLAYER_ID)
  38574. {
  38575. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38576. GetPlayerName(playerid, sendername, sizeof(sendername));
  38577. if(PlayerInfo[playa][pAdmin] > PlayerInfo[playerid][pAdmin])
  38578. {
  38579. format(string, sizeof(string), "Info: %s was slapped, reason: Attempting to slap a higher admin.", sendername);
  38580. ABroadCast(COLOR_LIGHTRED, string, 1);
  38581. GetPlayerPos(playerid, slx, sly, slz);
  38582. SetPlayerPos(playerid, slx, sly, slz+5);
  38583. PlayerPlaySound(playerid, 1130, slx, sly, slz+5);
  38584. return 1;
  38585. }
  38586. GetPlayerPos(playa, slx, sly, slz);
  38587. SetPlayerPos(playa, slx, sly, slz+5);
  38588. PlayerPlaySound(playa, 1130, slx, sly, slz+5);
  38589. format(string, sizeof(string), "Info: %s was slapped by %s.",giveplayer ,sendername);
  38590. ABroadCast(COLOR_LIGHTRED,string,1);
  38591. }
  38592. }
  38593. }
  38594. else
  38595. {
  38596. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38597. }
  38598. }
  38599. return 1;
  38600. }
  38601. if(strcmp(cmd, "/blowup", true) == 0)
  38602. {
  38603. if(IsPlayerConnected(playerid))
  38604. {
  38605. tmp = strtok(cmdtext, idx);
  38606. if(!strlen(tmp))
  38607. {
  38608. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /blowup [playerid/PartOfName]{7DAEFF}");
  38609. return 1;
  38610. }
  38611. new playa;
  38612. new Float:slx, Float:sly, Float:slz;
  38613. playa = ReturnUser(tmp);
  38614. if(PlayerInfo[playerid][pAdmin] >=4)
  38615. {
  38616. if(IsPlayerConnected(playa))
  38617. {
  38618. if(playa != INVALID_PLAYER_ID)
  38619. {
  38620. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38621. GetPlayerPos(playa, slx, sly, slz);
  38622. CreateExplosion(slx, sly, slz, 6, 10.0);
  38623. format(string, sizeof(string), "You have blown up %s !", giveplayer);
  38624. SendClientMessage(playerid, COLOR_GREY, string);
  38625. }
  38626. }
  38627. }
  38628. else
  38629. {
  38630. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38631. }
  38632. }
  38633. return 1;
  38634. }
  38635. if(strcmp(cmd, "/fartbomb", true) == 0)
  38636. {
  38637. if(IsPlayerConnected(playerid))
  38638. {
  38639. tmp = strtok(cmdtext, idx);
  38640. if(!strlen(tmp))
  38641. {
  38642. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fartbomb [playerid/PartOfName]{7DAEFF}");
  38643. return 1;
  38644. }
  38645. new playa;
  38646. new Float:slx, Float:sly, Float:slz;
  38647. playa = ReturnUser(tmp);
  38648. if(PlayerInfo[playerid][pAdmin] >=4)
  38649. {
  38650. if(IsPlayerConnected(playa))
  38651. {
  38652. if(playa != INVALID_PLAYER_ID)
  38653. {
  38654. GetPlayerPos(playa, slx, sly, slz);
  38655. CreateExplosion(slx, sly, slz-10.0, 6, 10.0);
  38656. }
  38657. }
  38658. }
  38659. else
  38660. {
  38661. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38662. }
  38663. }
  38664. return 1;
  38665. }
  38666. if(strcmp(cmd, "/mask", true) == 0)
  38667. {
  38668. if(IsPlayerConnected(playerid))
  38669. {
  38670. if(PlayerInfo[playerid][pMember] != 8 && PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pMember] != 2)
  38671. {
  38672. SendClientMessage(playerid, COLOR_GREY, "You are not a member of the CIA / Hitman Agency / FBI.");
  38673. return 1;
  38674. }
  38675. if(HasBoughtMask[playerid] == 0)
  38676. {
  38677. SendClientMessage(playerid, COLOR_GREY, "You don't have a mask.");
  38678. return 1;
  38679. }
  38680. if(PlayerInfo[playerid][pMask] == 0)
  38681. {
  38682. for(new i; i<MAX_PLAYERS; i++)
  38683. {
  38684. if(IsPlayerConnected(i))
  38685. {
  38686. ShowPlayerNameTagForPlayer(i, playerid, 0);
  38687. }
  38688. }
  38689. PlayerInfo[playerid][pMask] = 1;
  38690. format(string, sizeof(string), "* Stranger takes out a mask and puts it on.");
  38691. ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  38692. }
  38693. else if(PlayerInfo[playerid][pMask] == 1)
  38694. {
  38695. for(new i; i<MAX_PLAYERS; i++)
  38696. {
  38697. if(IsPlayerConnected(i))
  38698. {
  38699. ShowPlayerNameTagForPlayer(i, playerid, 1);
  38700. }
  38701. }
  38702. PlayerInfo[playerid][pMask] = 0;
  38703. format(string, sizeof(string), "* Stranger takes off their mask and put it away.");
  38704. ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  38705. }
  38706. }
  38707. return 1;
  38708. }
  38709. if(strcmp(cmd, "/listmasked", true) == 0)
  38710. {
  38711. if(IsPlayerConnected(playerid))
  38712. {
  38713. if(PlayerInfo[playerid][pAdmin] >= 2)
  38714. {
  38715. SendClientMessage(playerid, COLOR_YELLOW, "Masked online players:");
  38716. for(new i; i<MAX_PLAYERS; i++)
  38717. {
  38718. if(IsPlayerConnected(i))
  38719. {
  38720. if(PlayerInfo[i][pMask] == 1)
  38721. {
  38722. format(string, sizeof(string), "- %s", PlayerName(i));
  38723. SendClientMessage(playerid, COLOR_GREY, string);
  38724. }
  38725. }
  38726. }
  38727. }
  38728. }
  38729. return 1;
  38730. }
  38731. if(strcmp(cmd, "/listmuted", true) == 0)
  38732. {
  38733. if(IsPlayerConnected(playerid))
  38734. {
  38735. if(PlayerInfo[playerid][pAdmin] >= 2)
  38736. {
  38737. SendClientMessage(playerid, COLOR_YELLOW, "Muted Players:");
  38738. for(new i; i<MAX_PLAYERS; i++)
  38739. {
  38740. if(IsPlayerConnected(i))
  38741. {
  38742. if(PlayerInfo[i][pMuted] == 1)
  38743. {
  38744. format(string, sizeof(string), "- %s", PlayerName(i));
  38745. SendClientMessage(playerid, COLOR_GREY, string);
  38746. }
  38747. }
  38748. }
  38749. }
  38750. }
  38751. return 1;
  38752. }
  38753. if(strcmp(cmd, "/freezeplayers", true) == 0)
  38754. {
  38755. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  38756. {
  38757. return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use that command.");
  38758. }
  38759. tmp = strtok(cmdtext,idx);
  38760. if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /freezeplayers [distance]{7DAEFF}");
  38761. new radius = strval(tmp);
  38762. SendClientMessage(playerid,COLOR_YELLOW,"You have frozen all players within that radius.");
  38763. //foreach(Player, i)
  38764. for(new i; i<MAX_PLAYERS; i++)
  38765. {
  38766. if(playerid != i && IsPlayerConnected(i))
  38767. {
  38768. new Float:distance = GetDistanceBetweenPlayers(playerid,i);
  38769. if(distance > 0 && distance <= radius)
  38770. {
  38771. PlayerFrozen[i] = 1;
  38772. TogglePlayerControllable(i,0);
  38773. }
  38774. }
  38775. }
  38776. return 1;
  38777. }
  38778. if(strcmp(cmd, "/unfreezeplayers", true) == 0)
  38779. {
  38780. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  38781. {
  38782. return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
  38783. }
  38784. tmp = strtok(cmdtext,idx);
  38785. if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /unfreezeplayers [distance]{7DAEFF}");
  38786. new radius = strval(tmp);
  38787. SendClientMessage(playerid,COLOR_YELLOW,"You have unfrozen all players within that radius.");
  38788. //foreach(Player, i)
  38789. for(new i; i<MAX_PLAYERS; i++)
  38790. {
  38791. if(playerid != i && IsPlayerConnected(i))
  38792. {
  38793. new Float:distance = GetDistanceBetweenPlayers(playerid,i);
  38794. if(distance > 0 && distance <= radius)
  38795. {
  38796. PlayerFrozen[i] = 0;
  38797. TogglePlayerControllable(i,1);
  38798. }
  38799. }
  38800. }
  38801. return 1;
  38802. }
  38803. if(strcmp(cmd, "/muteplayers", true) == 0)
  38804. {
  38805. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  38806. {
  38807. return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
  38808. }
  38809. tmp = strtok(cmdtext,idx);
  38810. if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /muteplayers [distance]{7DAEFF}");
  38811. new radius = strval(tmp);
  38812. SendClientMessage(playerid,COLOR_YELLOW,"You have muted all players within that radius.");
  38813. //foreach(Player, i)
  38814. for(new i; i<MAX_PLAYERS; i++)
  38815. {
  38816. if(playerid != i && IsPlayerConnected(i))
  38817. {
  38818. new Float:distance = GetDistanceBetweenPlayers(playerid,i);
  38819. if(distance > 0 && distance <= radius)
  38820. {
  38821. PlayerInfo[i][pMuted] = 1;
  38822. }
  38823. }
  38824. }
  38825. return 1;
  38826. }
  38827. if(strcmp(cmd, "/unmuteplayers", true) == 0)
  38828. {
  38829. if(!(PlayerInfo[playerid][pAdmin] >= 2))
  38830. {
  38831. return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
  38832. }
  38833. tmp = strtok(cmdtext,idx);
  38834. if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GRAD2,"{7DAEFF}USAGE: /unmuteplayers [distance]{7DAEFF}");
  38835. new radius = strval(tmp);
  38836. SendClientMessage(playerid,COLOR_YELLOW,"You have unmuted all players within that radius.");
  38837. //foreach(Player, i)
  38838. for(new i; i<MAX_PLAYERS; i++)
  38839. {
  38840. if(playerid != i && IsPlayerConnected(i))
  38841. {
  38842. new Float:distance = GetDistanceBetweenPlayers(playerid,i);
  38843. if(distance > 0 && distance <= radius)
  38844. {
  38845. PlayerInfo[i][pMuted] = 0;
  38846. }
  38847. }
  38848. }
  38849. return 1;
  38850. }
  38851. if(strcmp(cmd, "/mute", true) == 0)
  38852. {
  38853. if(IsPlayerConnected(playerid))
  38854. {
  38855. tmp = strtok(cmdtext, idx);
  38856. if(!strlen(tmp))
  38857. {
  38858. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /mute [playerid/PartOfName]{7DAEFF}");
  38859. return 1;
  38860. }
  38861. new playa;
  38862. playa = ReturnUser(tmp);
  38863. if(PlayerInfo[playerid][pAdmin] >= 2)
  38864. {
  38865. if(IsPlayerConnected(playa))
  38866. {
  38867. if(playa != INVALID_PLAYER_ID)
  38868. {
  38869. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38870. GetPlayerName(playerid, sendername, sizeof(sendername));
  38871. if(PlayerInfo[playa][pMuted] == 0)
  38872. {
  38873. PlayerInfo[playa][pMuted] = 1;
  38874. format(string, sizeof(string), "Info: %s was silenced by %s.",giveplayer ,sendername);
  38875. ABroadCast(COLOR_LIGHTRED,string,1);
  38876. }
  38877. else
  38878. {
  38879. PlayerInfo[playa][pMuted] = 0;
  38880. format(string, sizeof(string), "Info: %s was unsilenced by %s.",giveplayer ,sendername);
  38881. ABroadCast(COLOR_LIGHTRED,string,1);
  38882. }
  38883. }
  38884. }
  38885. }
  38886. else
  38887. {
  38888. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38889. }
  38890. }
  38891. return 1;
  38892. }
  38893. if(strcmp(cmd, "/nmute", true) == 0)
  38894. {
  38895. if(IsPlayerConnected(playerid))
  38896. {
  38897. tmp = strtok(cmdtext, idx);
  38898. if(!strlen(tmp))
  38899. {
  38900. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /nmute [playerid/PartOfName]{7DAEFF}");
  38901. return 1;
  38902. }
  38903. new playa;
  38904. playa = ReturnUser(tmp);
  38905. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
  38906. {
  38907. if(IsPlayerConnected(playa))
  38908. {
  38909. if(playa != INVALID_PLAYER_ID)
  38910. {
  38911. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38912. GetPlayerName(playerid, sendername, sizeof(sendername));
  38913. if(PlayerInfo[playa][pNewbieMuted] == 0)
  38914. {
  38915. PlayerInfo[playa][pNewbieMuted] = 1;
  38916. format(string, sizeof(string), "Info: %s was muted from newbie chat by %s.",giveplayer ,sendername);
  38917. ABroadCast(COLOR_LIGHTRED,string,1);
  38918. SendHelperMessage(COLOR_LIGHTRED, string);
  38919. }
  38920. else
  38921. {
  38922. PlayerInfo[playa][pNewbieMuted] = 0;
  38923. format(string, sizeof(string), "Info: %s was unmuted from newbie chat by %s.",giveplayer ,sendername);
  38924. ABroadCast(COLOR_LIGHTRED,string,1);
  38925. SendHelperMessage(COLOR_LIGHTRED, string);
  38926. }
  38927. }
  38928. }
  38929. }
  38930. else
  38931. {
  38932. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38933. }
  38934. }
  38935. return 1;
  38936. }
  38937.  
  38938. if(strcmp(cmd, "/rmute", true) == 0)
  38939. {
  38940. if(IsPlayerConnected(playerid))
  38941. {
  38942. tmp = strtok(cmdtext, idx);
  38943. if(!strlen(tmp))
  38944. {
  38945. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /rmute [playerid/PartOfName]{7DAEFF}");
  38946. return 1;
  38947. }
  38948. new playa;
  38949. playa = ReturnUser(tmp);
  38950. if(PlayerInfo[playerid][pAdmin] >= 2)
  38951. {
  38952. if(IsPlayerConnected(playa))
  38953. {
  38954. if(playa != INVALID_PLAYER_ID)
  38955. {
  38956. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  38957. GetPlayerName(playerid, sendername, sizeof(sendername));
  38958. if(PlayerInfo[playa][pReportMuted] == 0)
  38959. {
  38960. PlayerInfo[playa][pReportMuted] = 1;
  38961. format(string, sizeof(string), "Info: %s was muted from /report by %s.",giveplayer ,sendername);
  38962. ABroadCast(COLOR_LIGHTRED,string,1);
  38963. }
  38964. else
  38965. {
  38966. PlayerInfo[playa][pReportMuted] = 0;
  38967. format(string, sizeof(string), "Info: %s was unmuted from /report by %s.",giveplayer ,sendername);
  38968. ABroadCast(COLOR_LIGHTRED,string,1);
  38969. }
  38970. }
  38971. }
  38972. }
  38973. else
  38974. {
  38975. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  38976. }
  38977. }
  38978. return 1;
  38979. }
  38980.  
  38981. if(strcmp(cmd, "/admute", true) == 0)
  38982. {
  38983. if(IsPlayerConnected(playerid))
  38984. {
  38985. tmp = strtok(cmdtext, idx);
  38986. if(!strlen(tmp))
  38987. {
  38988. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /admute [playerid/PartOfName]{7DAEFF}");
  38989. return 1;
  38990. }
  38991. new playa;
  38992. playa = ReturnUser(tmp);
  38993. if(PlayerInfo[playerid][pAdmin] >= 2)
  38994. {
  38995. if(IsPlayerConnected(playa))
  38996. {
  38997. if(playa != INVALID_PLAYER_ID)
  38998. {
  38999. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  39000. GetPlayerName(playerid, sendername, sizeof(sendername));
  39001. if(PlayerInfo[playa][pAdMuted] == 0)
  39002. {
  39003. PlayerInfo[playa][pAdMuted] = 1;
  39004. format(string, sizeof(string), "Info: %s was muted from making advertisments by %s.",giveplayer ,sendername);
  39005. SendClientMessageToAll(COLOR_LIGHTRED,string);
  39006. }
  39007. else
  39008. {
  39009. PlayerInfo[playa][pAdMuted] = 0;
  39010. format(string, sizeof(string), "Info: %s was unmuted from making advertisments by %s.",giveplayer ,sendername);
  39011. SendClientMessageToAll(COLOR_LIGHTRED,string);
  39012. }
  39013. }
  39014. }
  39015. }
  39016. else
  39017. {
  39018. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  39019. }
  39020. }
  39021. return 1;
  39022. }
  39023.  
  39024. if(strcmp(cmd, "/kick", true) == 0)
  39025. {
  39026. if(IsPlayerConnected(playerid))
  39027. {
  39028. tmp = strtok(cmdtext, idx);
  39029. if(!strlen(tmp))
  39030. {
  39031. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /kick [playerid/PartOfName] [reason]{7DAEFF}");
  39032. return 1;
  39033. }
  39034. giveplayerid = ReturnUser(tmp);
  39035. if(IsPlayerNPC(giveplayerid)) return 1;
  39036. if(PlayerInfo[playerid][pAdmin] >= 2)
  39037. {
  39038. if(IsPlayerConnected(giveplayerid))
  39039. {
  39040. if(giveplayerid != INVALID_PLAYER_ID)
  39041. {
  39042. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39043. GetPlayerName(playerid, sendername, sizeof(sendername));
  39044. new length = strlen(cmdtext);
  39045. while ((idx < length) && (cmdtext[idx] <= ' '))
  39046. {
  39047. idx++;
  39048. }
  39049. new offset = idx;
  39050. new result[96];
  39051. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39052. {
  39053. result[idx - offset] = cmdtext[idx];
  39054. idx++;
  39055. }
  39056. result[idx - offset] = EOS;
  39057. if(!strlen(result))
  39058. {
  39059. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE:{7DAEFF} /kick [playerid/PartOfName] [reason]");
  39060. return 1;
  39061. }
  39062. new logstring[256];
  39063. new year, month, day;
  39064. getdate(year, month, day);
  39065. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39066. {
  39067. format(logstring, sizeof(logstring), "Info: %s was kicked, reason: Attempting to kick admin %s (%d-%d-%d).", sendername, giveplayer,month,day,year);
  39068. KickLog(logstring);
  39069. format(string, sizeof(string), "Info: %s was kicked, reason: Attempting to kick a higher admin.", sendername);
  39070. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39071. Kick(playerid);
  39072. return 1;
  39073. }
  39074. format(logstring, sizeof(logstring), "Info: %s was kicked by %s, reason: %s (%d-%d-%d).", giveplayer, sendername, (result),month,day,year);
  39075. KickLog(logstring);
  39076. format(string, sizeof(string), "Info: %s was kicked by %s, reason: %s", giveplayer, sendername, (result));
  39077. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39078. Kick(giveplayerid);
  39079. return 1;
  39080. }
  39081. }
  39082. else
  39083. {
  39084. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  39085. SendClientMessage(playerid, COLOR_GRAD1, string);
  39086. }
  39087. }
  39088. else
  39089. {
  39090. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39091. }
  39092. }
  39093. return 1;
  39094. }
  39095. if(strcmp(cmd, "/skick", true) == 0)
  39096. {
  39097. if(IsPlayerConnected(playerid))
  39098. {
  39099. tmp = strtok(cmdtext, idx);
  39100. if(!strlen(tmp))
  39101. {
  39102. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /skick [playerid/PartOfName]{7DAEFF}");
  39103. return 1;
  39104. }
  39105. giveplayerid = ReturnUser(tmp);
  39106. if(IsPlayerNPC(giveplayerid)) return 1;
  39107. if(PlayerInfo[playerid][pAdmin] >= 1)
  39108. {
  39109. if(IsPlayerConnected(giveplayerid))
  39110. {
  39111. if(giveplayerid != INVALID_PLAYER_ID)
  39112. {
  39113. GetPlayerName(playerid, sendername, sizeof(sendername));
  39114. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39115. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39116. {
  39117. format(string, sizeof(string), "Info: %s was skicked, reason: Attempting to silent kick a higher admin.", sendername);
  39118. ABroadCast(COLOR_LIGHTRED, string, 1);
  39119. Kick(playerid);
  39120. return 1;
  39121. }
  39122. format(string, sizeof(string), "Info: %s was skicked by %s", giveplayer, sendername);
  39123. ABroadCast(COLOR_LIGHTRED, string, 1);
  39124. Kick(giveplayerid);
  39125. }
  39126. }
  39127. else
  39128. {
  39129. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  39130. SendClientMessage(playerid, COLOR_GRAD1, string);
  39131. }
  39132. }
  39133. else
  39134. {
  39135. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39136. }
  39137. }
  39138. return 1;
  39139. }
  39140. if(strcmp(cmd, "/awarn", true) == 0)
  39141. {
  39142. if(IsPlayerConnected(playerid))
  39143. {
  39144. tmp = strtok(cmdtext, idx);
  39145. if(!strlen(tmp))
  39146. {
  39147. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /awarn [playerid/PartOfName] [reason]{7DAEFF}");
  39148. return 1;
  39149. }
  39150. giveplayerid = ReturnUser(tmp);
  39151. if(PlayerInfo[playerid][pAdmin] >= 6)
  39152. {
  39153. if(IsPlayerConnected(giveplayerid))
  39154. {
  39155. if(giveplayerid != INVALID_PLAYER_ID)
  39156. {
  39157. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39158. GetPlayerName(playerid, sendername, sizeof(sendername));
  39159. new length = strlen(cmdtext);
  39160. while ((idx < length) && (cmdtext[idx] <= ' '))
  39161. {
  39162. idx++;
  39163. }
  39164. new offset = idx;
  39165. new result[96];
  39166. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39167. {
  39168. result[idx - offset] = cmdtext[idx];
  39169. idx++;
  39170. }
  39171. result[idx - offset] = EOS;
  39172. if(!strlen(result))
  39173. {
  39174. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /awarn [playerid/PartOfName] [reason]{7DAEFF}");
  39175. return 1;
  39176. }
  39177. new logstring[256];
  39178. new IP[16];
  39179. new year, month, day;
  39180. getdate(year, month, day);
  39181. if(UseAdmCmdTimer[playerid] > 2)
  39182. {
  39183. GetPlayerIp(playerid, IP, sizeof(IP));
  39184. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39185. BanLog(logstring);
  39186. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  39187. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39188. PlayerInfo[playerid][pBand] = 3;
  39189. PlayerInfo[playerid][pPermBand] = 1;
  39190. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  39191.  
  39192. return 1;
  39193. }
  39194. PlayerInfo[giveplayerid][pAWarns] += 1;
  39195. if(PlayerInfo[giveplayerid][pAWarns] >= 3)
  39196. {
  39197. format(string, sizeof(string), "You have been removed from the admin team for getting 3 warnings");
  39198. SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
  39199. PlayerInfo[giveplayerid][pAdmin] = 0;
  39200. PlayerInfo[giveplayerid][pGang] = 0;
  39201. PlayerInfo[giveplayerid][pLotto] = 0;
  39202. return 1;
  39203. }
  39204. format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, (result));
  39205. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  39206. format(string, sizeof(string), "You were admin warned by %s, reason: %s", sendername, (result));
  39207. SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
  39208. UseAdmCmdTimer[playerid]++;
  39209. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  39210. return 1;
  39211. }
  39212. }
  39213. else
  39214. {
  39215. format(string, sizeof(string), " %d is not an active player.", giveplayerid);
  39216. SendClientMessage(playerid, COLOR_GRAD1, string);
  39217. }
  39218. }
  39219. else
  39220. {
  39221. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39222. }
  39223. }
  39224. return 1;
  39225. }
  39226.  
  39227. if(strcmp(cmd, "/warn", true) == 0)
  39228. {
  39229. if(IsPlayerConnected(playerid))
  39230. {
  39231. tmp = strtok(cmdtext, idx);
  39232. if(!strlen(tmp))
  39233. {
  39234. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /warn [playerid/PartOfName] [reason]{7DAEFF}");
  39235. return 1;
  39236. }
  39237. giveplayerid = ReturnUser(tmp);
  39238. if(PlayerInfo[playerid][pAdmin] >= 2)
  39239. {
  39240. if(IsPlayerConnected(giveplayerid))
  39241. {
  39242. if(giveplayerid != INVALID_PLAYER_ID)
  39243. {
  39244. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39245. GetPlayerName(playerid, sendername, sizeof(sendername));
  39246. new length = strlen(cmdtext);
  39247. while ((idx < length) && (cmdtext[idx] <= ' '))
  39248. {
  39249. idx++;
  39250. }
  39251. new offset = idx;
  39252. new result[96];
  39253. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39254. {
  39255. result[idx - offset] = cmdtext[idx];
  39256. idx++;
  39257. }
  39258. result[idx - offset] = EOS;
  39259. if(!strlen(result))
  39260. {
  39261. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /warn [playerid/PartOfName] [reason]{7DAEFF}");
  39262. return 1;
  39263. }
  39264. new logstring[256];
  39265. new IP[16];
  39266. new year, month, day;
  39267. getdate(year, month, day);
  39268. if(UseAdmCmdTimer[playerid] > 2)
  39269. {
  39270. GetPlayerIp(playerid, IP, sizeof(IP));
  39271. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39272. BanLog(logstring);
  39273. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  39274. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39275. PlayerInfo[playerid][pBand] = 3;
  39276. PlayerInfo[playerid][pPermBand] = 1;
  39277. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  39278.  
  39279. return 1;
  39280. }
  39281. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39282. {
  39283. format(string, sizeof(string), "Info: %s was slapped, reason: Attempting to slap a higher admin.", sendername);
  39284. ABroadCast(COLOR_LIGHTRED, string, 1);
  39285. PlayerInfo[playerid][pWarns] += 1;
  39286. if(PlayerInfo[playerid][pWarns] >= 3)
  39287. {
  39288. GetPlayerIp(giveplayerid, IP, sizeof(IP));
  39289. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: Autoban Reason: Attempting to warn a higher admin (3 Warnings).", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey]);
  39290. BanLog(logstring);
  39291. format(string, sizeof(string), "Info: %s was banned (had 3 Warnings), reason: Attempting to warn a higher admin", giveplayer);
  39292. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39293. PlayerInfo[giveplayerid][pBand] = 3;
  39294. BanEx(giveplayerid, "Banned By: Autoban Reason: Had 3 Warnings");
  39295.  
  39296. return 1;
  39297. }
  39298. return 1;
  39299. }
  39300. PlayerInfo[giveplayerid][pWarns] += 1;
  39301. if(PlayerInfo[giveplayerid][pWarns] >= 3)
  39302. {
  39303. GetPlayerIp(giveplayerid, IP, sizeof(IP));
  39304. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (3 Warnings).", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey],sendername, (result));
  39305. BanLog(logstring);
  39306. format(string, sizeof(string), "Info: %s was banned by %s (had 3 Warnings), reason: %s", giveplayer, sendername, (result));
  39307. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39308. PlayerInfo[giveplayerid][pBand] = 3;
  39309. BanEx(giveplayerid, "Banned By: Autoban Reason: Had 3 Warnings");
  39310.  
  39311. return 1;
  39312. }
  39313. format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, (result));
  39314. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  39315. format(string, sizeof(string), "You were warned by %s, reason: %s", sendername, (result));
  39316. SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
  39317. UseAdmCmdTimer[playerid]++;
  39318. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  39319. return 1;
  39320. }
  39321. }
  39322. else
  39323. {
  39324. format(string, sizeof(string), " %d is not an active player.", giveplayerid);
  39325. SendClientMessage(playerid, COLOR_GRAD1, string);
  39326. }
  39327. }
  39328. else
  39329. {
  39330. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39331. }
  39332. }
  39333. return 1;
  39334. }
  39335. if(strcmp(cmd, "/sban", true) == 0)
  39336. {
  39337. if(IsPlayerConnected(playerid))
  39338. {
  39339. tmp = strtok(cmdtext, idx);
  39340. if(!strlen(tmp))
  39341. {
  39342. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sban [playerid/PartOfName] [reason]{7DAEFF}");
  39343. return 1;
  39344. }
  39345. giveplayerid = ReturnUser(tmp);
  39346. if(IsPlayerNPC(giveplayerid)) return 1;
  39347. if(PlayerInfo[playerid][pAdmin] >= 1)
  39348. {
  39349. if(IsPlayerConnected(giveplayerid))
  39350. {
  39351. if(giveplayerid != INVALID_PLAYER_ID)
  39352. {
  39353. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39354. GetPlayerName(playerid, sendername, sizeof(sendername));
  39355. new length = strlen(cmdtext);
  39356. while ((idx < length) && (cmdtext[idx] <= ' '))
  39357. {
  39358. idx++;
  39359. }
  39360. new offset = idx;
  39361. new result[96];
  39362. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39363. {
  39364. result[idx - offset] = cmdtext[idx];
  39365. idx++;
  39366. }
  39367. result[idx - offset] = EOS;
  39368. if(!strlen(result))
  39369. {
  39370. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /sban [playerid/PartOfName] [reason]{7DAEFF}");
  39371. return 1;
  39372. }
  39373. new IP[16];
  39374. new logstring[256];
  39375. new banstring[256]; //modified
  39376. new year, month, day;
  39377. getdate(year, month, day);
  39378. if(UseAdmCmdTimer[playerid] > 2)
  39379. {
  39380. GetPlayerIp(playerid, IP, sizeof(IP));
  39381. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam (/sban).", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39382. BanLog(logstring);
  39383. format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  39384. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39385. format(string, sizeof(string), "Ban Reason: Spam (/sban) - Banned by: Autoban");
  39386. PlayerInfo[playerid][pBand] = 3;
  39387. PlayerInfo[playerid][pPermBand] = 1;
  39388. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  39389. return 1;
  39390. }
  39391. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39392. {
  39393. GetPlayerIp(playerid, IP, sizeof(IP));
  39394. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin (/sban).", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39395. BanLog(logstring);
  39396. format(string, sizeof(string), "AdmCmd: %s was sbanned, reason: Attempting to ban a higher admin.", sendername);
  39397. ABroadCast(COLOR_LIGHTRED, string, 1);
  39398. format(string, sizeof(string), "Ban Reason: Attempting to ban a higher admin - Banned by: Autoban");
  39399. PlayerInfo[playerid][pBand] = 3;
  39400. BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
  39401. return 1;
  39402. }
  39403. GetPlayerIp(giveplayerid, IP, sizeof(IP));
  39404. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (/sban)", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
  39405. BanLog(logstring);
  39406. format(string, sizeof(string), "AdmCmd: %s was banned by an admin, reason: %s", giveplayer, (result));
  39407. ABroadCast(COLOR_LIGHTRED, string, 1);
  39408. format(string, sizeof(string), "S-Ban Reason: %s - Banned by: %s",result,sendername);
  39409. PlayerInfo[giveplayerid][pBand] = 3;
  39410. format(banstring, sizeof(banstring), "Sbanned By: %s Reason: %s", sendername, (result)); //modified
  39411. BanEx(giveplayerid, banstring); //modified
  39412. UseAdmCmdTimer[playerid]++;
  39413. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  39414. return 1;
  39415. }
  39416. }
  39417. else
  39418. {
  39419. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  39420. SendClientMessage(playerid, COLOR_GRAD1, string);
  39421. }
  39422. }
  39423. else
  39424. {
  39425. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39426. }
  39427. }
  39428. return 1;
  39429. }
  39430. if(strcmp(cmd, "/ban", true) == 0)
  39431. {
  39432. if(IsPlayerConnected(playerid))
  39433. {
  39434. tmp = strtok(cmdtext, idx);
  39435. if(!strlen(tmp))
  39436. {
  39437. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ban [playerid/PartOfName] [reason]{7DAEFF}");
  39438. return 1;
  39439. }
  39440. giveplayerid = ReturnUser(tmp);
  39441. if(IsPlayerNPC(giveplayerid)) return 1;
  39442. if(PlayerInfo[playerid][pAdmin] >= 2)
  39443. {
  39444. if(IsPlayerConnected(giveplayerid))
  39445. {
  39446. if(giveplayerid != INVALID_PLAYER_ID)
  39447. {
  39448. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39449. GetPlayerName(playerid, sendername, sizeof(sendername));
  39450. new length = strlen(cmdtext);
  39451. while ((idx < length) && (cmdtext[idx] <= ' '))
  39452. {
  39453. idx++;
  39454. }
  39455. new offset = idx;
  39456. new result[96];
  39457. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39458. {
  39459. result[idx - offset] = cmdtext[idx];
  39460. idx++;
  39461. }
  39462. result[idx - offset] = EOS;
  39463. if(!strlen(result))
  39464. {
  39465. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ban [playerid/PartOfName] [reason]{7DAEFF}");
  39466. return 1;
  39467. }
  39468. new IP[16];
  39469. new logstring[256];
  39470. new banstring[256]; //modified
  39471. new year, month, day;
  39472. getdate(year, month, day);
  39473. if(giveplayerid == playerid)
  39474. {
  39475. return SendClientMessage(playerid,COLOR_GREY,"If you're leaving, use /q and stop being an attention whore.");
  39476. }
  39477. if(UseAdmCmdTimer[playerid] > 2)
  39478. {
  39479. GetPlayerIp(playerid, IP, sizeof(IP));
  39480. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39481. BanLog(logstring);
  39482. format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  39483. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39484. PlayerInfo[playerid][pBand] = 3;
  39485. PlayerInfo[playerid][pPermBand] = 1;
  39486. format(string, sizeof(string), "Ban Reason: Spam - Banned by: Autoban");
  39487. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  39488. return 1;
  39489. }
  39490.  
  39491. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39492. {
  39493. GetPlayerIp(playerid, IP, sizeof(IP));
  39494. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39495. BanLog(logstring);
  39496. format(string, sizeof(string), "AdmCmd: %s was banned by ChuckNorrisBot, reason: Attempting to ban a higher admin.", sendername);
  39497. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39498. PlayerInfo[playerid][pBand] = 3;
  39499. PlayerInfo[playerid][pPermBand] = 1;
  39500. format(string, sizeof(string), "Ban Reason: Attempting to ban a higher admin - Banned by: Autoban");
  39501. BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
  39502. return 1;
  39503. }
  39504. GetPlayerIp(giveplayerid, IP, sizeof(IP));
  39505. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
  39506. BanLog(logstring);
  39507. format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result));
  39508. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39509. PlayerInfo[giveplayerid][pBand] = 3;
  39510. format(banstring, sizeof(banstring), "Banned By: %s Reason: %s", sendername, (result)); //modified
  39511. BanEx(giveplayerid, banstring); //modified
  39512. UseAdmCmdTimer[playerid]++;
  39513. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  39514. return 1;
  39515. }
  39516. }
  39517. else
  39518. {
  39519. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  39520. SendClientMessage(playerid, COLOR_GRAD1, string);
  39521. }
  39522. }
  39523. else
  39524. {
  39525. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39526. }
  39527. }
  39528. return 1;
  39529. }
  39530. if(strcmp(cmd, "/fakeban", true) == 0) //Scripted by Logan Stone
  39531. {
  39532. if(IsPlayerConnected(playerid))
  39533. {
  39534. tmp = strtok(cmdtext, idx);
  39535. if(!strlen(tmp))
  39536. {
  39537. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /fakeban [playerid/PartOfName] [reason]{7DAEFF}");
  39538. return 1;
  39539. }
  39540. giveplayerid = ReturnUser(tmp);
  39541. if (PlayerInfo[playerid][pAdmin] >= 5)
  39542. {
  39543. if(IsPlayerConnected(giveplayerid))
  39544. {
  39545. if(giveplayerid != INVALID_PLAYER_ID)
  39546. {
  39547. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39548. GetPlayerName(playerid, sendername, sizeof(sendername));
  39549. new length = strlen(cmdtext);
  39550. while ((idx < length) && (cmdtext[idx] <= ' '))
  39551. {
  39552. idx++;
  39553. }
  39554. new offset = idx;
  39555. new result[64];
  39556. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39557. {
  39558. result[idx - offset] = cmdtext[idx];
  39559. idx++;
  39560. }
  39561. result[idx - offset] = EOS;
  39562. if(!strlen(result))
  39563. {
  39564. SendClientMessage(playerid, COLOR_GRAD2, "{7DAEFF}USAGE: /fakeban [playerid/PartOfName] [reason]{7DAEFF}");
  39565. return 1;
  39566. }
  39567. new year, month,day;
  39568. getdate(year, month, day);
  39569. format(string, sizeof(string), "Info: %s was banned by %s, reason: %s (%d-%d-%d)fake", giveplayer, sendername, (result),month,day,year);
  39570. format(string, sizeof(string), "Info: %s was banned by %s, reason: %s", giveplayer, sendername, (result));
  39571. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39572. SendClientMessage(giveplayerid, COLOR_FAKEBAN, "Server closed the connection.");
  39573. }
  39574. }//not connected
  39575. }
  39576. else
  39577. {
  39578. format(string, sizeof(string), " %d is not an active player.", giveplayerid);
  39579. SendClientMessage(playerid, COLOR_GRAD1, string);
  39580. }
  39581. }
  39582. return 1;
  39583. }
  39584. if(strcmp(cmd,"/banip",true)==0)
  39585. {
  39586. if(IsPlayerConnected(playerid))
  39587. {
  39588. if(PlayerInfo[playerid][pAdmin] >= 5)
  39589. {
  39590. tmp = strtok(cmdtext,idx);
  39591. if(!strlen(tmp))
  39592. {
  39593. SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /banip [ip]{7DAEFF}");
  39594. return 1;
  39595. }
  39596. format(string,sizeof(string),"banip %s",tmp);
  39597. SendRconCommand(string);
  39598. SendRconCommand("reloadbans");
  39599. GetPlayerName(playerid, sendername, sizeof(sendername));
  39600. format(string, sizeof(string), "Info: %s has banned IP:%s", sendername, tmp);
  39601. ABroadCast(COLOR_LIGHTRED,string,1);
  39602. }
  39603. else
  39604. {
  39605. SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that command !");
  39606. }
  39607. }
  39608. return 1;
  39609. }
  39610. if(strcmp(cmd,"/unbanip",true)==0)
  39611. {
  39612. if(IsPlayerConnected(playerid))
  39613. {
  39614. if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer])
  39615. {
  39616. tmp = strtok(cmdtext,idx);
  39617. if(!strlen(tmp))
  39618. {
  39619. SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /unbanip [ip]{7DAEFF}");
  39620. return 1;
  39621. }
  39622. format(string,sizeof(string),"unbanip %s",tmp);
  39623. SendRconCommand(string);
  39624. SendRconCommand("reloadbans");
  39625. GetPlayerName(playerid, sendername, sizeof(sendername));
  39626. format(string, sizeof(string), "Info: %s has unbanned IP:%s", sendername, tmp);
  39627. ABroadCast(COLOR_LIGHTRED,string,1);
  39628. }
  39629. else
  39630. {
  39631. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39632. }
  39633. }
  39634. return 1;
  39635. }
  39636. if(strcmp(cmd, "/rangeban", true) == 0)
  39637. {
  39638. if(IsPlayerConnected(playerid))
  39639. {
  39640. if(PlayerInfo[playerid][pAdmin] >= 5)
  39641. {
  39642. tmp = strtok(cmdtext,idx);
  39643. if(!strlen(tmp))
  39644. {
  39645. SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /rangeban [playerid/PartOfName] [reason]{7DAEFF}");
  39646. return 1;
  39647. }
  39648. giveplayerid = ReturnUser(tmp);
  39649. if(IsPlayerConnected(giveplayerid))
  39650. {
  39651. if(giveplayerid != INVALID_PLAYER_ID)
  39652. {
  39653. new IP[16];
  39654. new logstring[256];
  39655. new year, month, day;
  39656. getdate(year, month, day);
  39657. new length = strlen(cmdtext);
  39658. while ((idx < length) && (cmdtext[idx] <= ' ')) {
  39659. idx++;
  39660. }
  39661. new offset = idx;
  39662. new result[64];
  39663. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
  39664. result[idx - offset] = cmdtext[idx];
  39665. idx++;
  39666. }
  39667. result[idx - offset] = EOS;
  39668. if(!strlen(result))
  39669. {
  39670. SendClientMessage(playerid,COLOR_WHITE,"{7DAEFF}USAGE: /rangeban [playerid/PartOfName] [reason]{7DAEFF}");
  39671. return 1;
  39672. }
  39673.  
  39674. GetPlayerIp(playerid, IP, sizeof(IP));
  39675. GetPlayerName(playerid, sendername, sizeof(sendername));
  39676. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39677. PlayerInfo[giveplayerid][pBand] = 3;
  39678. PlayerInfo[giveplayerid][pPermBand] = 1;
  39679. format(string, sizeof(string), "Info: %s was rangebanned by %s, reason: %s", giveplayer, sendername, (result));
  39680. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39681. Rangeban(giveplayerid);
  39682. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s (/rangeban)", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
  39683. BanLog(logstring);
  39684. return 1;
  39685. }
  39686. }
  39687. }
  39688. }
  39689. return 1;
  39690. }
  39691. if(strcmp(cmd, "/pban", true) == 0)
  39692. {
  39693. if(IsPlayerConnected(playerid))
  39694. {
  39695. tmp = strtok(cmdtext, idx);
  39696. if(!strlen(tmp))
  39697. {
  39698. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /pban [playerid/PartOfName] [reason]{7DAEFF}");
  39699. return 1;
  39700. }
  39701. giveplayerid = ReturnUser(tmp);
  39702. if(PlayerInfo[playerid][pAdmin] >= 5)
  39703. {
  39704. if(IsPlayerConnected(giveplayerid))
  39705. {
  39706. if(giveplayerid != INVALID_PLAYER_ID)
  39707. {
  39708. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  39709. GetPlayerName(playerid, sendername, sizeof(sendername));
  39710. new length = strlen(cmdtext);
  39711. while ((idx < length) && (cmdtext[idx] <= ' '))
  39712. {
  39713. idx++;
  39714. }
  39715. new offset = idx;
  39716. new result[96];
  39717. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  39718. {
  39719. result[idx - offset] = cmdtext[idx];
  39720. idx++;
  39721. }
  39722. result[idx - offset] = EOS;
  39723. if(!strlen(result))
  39724. {
  39725. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /pban [playerid/PartOfName] [reason]{7DAEFF}");
  39726. return 1;
  39727. }
  39728. new IP[16];
  39729. new logstring[256];
  39730. new banstring[256]; //modified
  39731. new year, month, day;
  39732. getdate(year, month, day);
  39733. if(UseAdmCmdTimer[playerid] > 2)
  39734. {
  39735. GetPlayerIp(playerid, IP, sizeof(IP));
  39736. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39737. BanLog(logstring);
  39738. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  39739. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39740. PlayerInfo[playerid][pBand] = 3;
  39741. PlayerInfo[playerid][pPermBand] = 1;
  39742. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  39743.  
  39744. return 1;
  39745. }
  39746.  
  39747. if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
  39748. {
  39749. GetPlayerIp(playerid, IP, sizeof(IP));
  39750. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Reason: Attempting to ban a higher admin.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  39751. BanLog(logstring);
  39752. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Attempting to ban a higher admin.", sendername);
  39753. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39754. PlayerInfo[playerid][pBand] = 3;
  39755. PlayerInfo[playerid][pPermBand] = 1;
  39756. BanEx(playerid, "Banned By: Autoban Reason: Attempting to ban a higher admin");
  39757.  
  39758. return 1;
  39759. }
  39760. GetPlayerIp(giveplayerid, IP, sizeof(IP));
  39761. format(logstring, sizeof(logstring), "%s [%d/%d/%d] Name: %s Key: %s Banned by: %s Reason: %s", IP, day, month, year,giveplayer,PlayerInfo[giveplayerid][pKey], sendername, (result));
  39762. BanLog(logstring);
  39763. format(string, sizeof(string), "Info: %s was permanently banned by %s, reason: %s", giveplayer, sendername, (result));
  39764. SendClientMessageToAll(COLOR_LIGHTRED, string);
  39765. PlayerInfo[giveplayerid][pBand] = 3;
  39766. PlayerInfo[giveplayerid][pPermBand] = 1;
  39767. format(banstring, sizeof(banstring), "Permabanned By: %s Reason: %s", sendername, (result)); //modified
  39768. BanEx(giveplayerid, banstring); //modified
  39769.  
  39770. UseAdmCmdTimer[playerid]++;
  39771. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  39772. return 1;
  39773. }
  39774. }
  39775. else
  39776. {
  39777. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  39778. SendClientMessage(playerid, COLOR_GRAD1, string);
  39779. }
  39780. }
  39781. else
  39782. {
  39783. SendClientMessage(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
  39784. }
  39785. }
  39786. return 1;
  39787. }
  39788. if(strcmp(cmd, "/unban", true) == 0)
  39789. {
  39790. if(IsPlayerConnected(playerid))
  39791. {
  39792. new string2[256];
  39793. tmp = strtok(cmdtext, idx);
  39794. if(!strlen(tmp))
  39795. {
  39796. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /unban [full name(caSe SeNsAtiVe)]{7DAEFF}");
  39797. return 1;
  39798. }
  39799. if (PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer])
  39800. {
  39801. format(string, sizeof(string), "%s.ini",tmp);
  39802. if(dini_Exists(string))
  39803. {
  39804. if(dini_Int(string, "Band") > 0)
  39805. {
  39806. new clearban[6];
  39807. format(clearban, sizeof(clearban),"None");
  39808. dini_IntSet(string, "Band", 0);
  39809. dini_IntSet(string, "Warnings", 0);
  39810. string2 = dini_Get(string, "IP");
  39811. format(string, sizeof(string),"unbanip %s", string2);
  39812. SendRconCommand(string);
  39813. SendRconCommand("reloadbans");
  39814. format(string, 256, "AdmWarning: %s has unbanned account '%s' and IP '%s'.",PlayerName(playerid),tmp,string2);
  39815. ABroadCast(COLOR_LIGHTRED, string, 1);
  39816. return 1;
  39817. }
  39818. else
  39819. {
  39820. SendClientMessage(playerid, COLOR_GRAD2, "That player is not account-banned. You have unbanned their IP.");
  39821. string2 = dini_Get(string, "IP");
  39822. format(string, sizeof(string), "unbanip %s", string2);
  39823. SendRconCommand(string);
  39824. SendRconCommand("reloadbans");
  39825. return 1;
  39826. }
  39827. }
  39828. else
  39829. {
  39830. SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
  39831. }
  39832. }
  39833. }
  39834. return 1;
  39835. }
  39836.  
  39837. if(strcmp(cmd, "/getip", true) == 0)
  39838. {
  39839. if(IsPlayerConnected(playerid))
  39840. {
  39841. new string2[256];
  39842. tmp = strtok(cmdtext, idx);
  39843. if(!strlen(tmp))
  39844. {
  39845. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /getip [full name(case sensative)]{7DAEFF}");
  39846. return 1;
  39847. }
  39848. if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pBanAppealer])
  39849. {
  39850. format(string, sizeof(string), "%s.ini",tmp);
  39851. if(dini_Exists(string))
  39852. {
  39853. string2 = dini_Get(string, "IP");
  39854. if(dini_Int(string, "FakeIP") == 1)
  39855. {
  39856. format(string, sizeof(string), "%s's IP: 79.120.215.212", tmp);
  39857. SendClientMessage(playerid, COLOR_WHITE, string);
  39858. return 1;
  39859. }
  39860. format(string, sizeof(string), "%s's IP: %s", tmp,string2);
  39861. SendClientMessage(playerid,COLOR_WHITE, string);
  39862. return 1;
  39863. }
  39864. else
  39865. {
  39866. SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
  39867. }
  39868. }
  39869. }
  39870. return 1;
  39871. }
  39872. if(strcmp(cmd, "/lastlogin", true) == 0)
  39873. {
  39874. if(IsPlayerConnected(playerid))
  39875. {
  39876. new string2[256];
  39877. tmp = strtok(cmdtext, idx);
  39878. if(!strlen(tmp))
  39879. {
  39880. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /lastlogin [full name(case sensative)]{7DAEFF}");
  39881. return 1;
  39882. }
  39883. if(PlayerInfo[playerid][pAdmin] >= 4)
  39884. {
  39885. format(string, sizeof(string), "%s.ini",tmp);
  39886. if(dini_Exists(string))
  39887. {
  39888. string2 = dini_Get(string, "LastLogin");
  39889. format(string, sizeof(string), "%s's last login: %s", tmp,string2);
  39890. SendClientMessage(playerid,COLOR_WHITE, string);
  39891. return 1;
  39892. }
  39893. else
  39894. {
  39895. SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
  39896. }
  39897. }
  39898. }
  39899. return 1;
  39900. }
  39901.  
  39902. if(strcmp(cmd, "/banaccount", true) == 0)
  39903. {
  39904. if(IsPlayerConnected(playerid))
  39905. {
  39906. new string2[256];
  39907. tmp = strtok(cmdtext, idx);
  39908. if(!strlen(tmp))
  39909. {
  39910. SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}USAGE: /banaccount [full name(case sensative)]{7DAEFF}");
  39911. return 1;
  39912. }
  39913. if(PlayerInfo[playerid][pAdmin] >= 4)
  39914. {
  39915. format(string, sizeof(string), "%s.ini",tmp);
  39916. if(dini_Exists(string))
  39917. {
  39918. if(dini_Int(string, "Band") == 0)
  39919. {
  39920. if(dini_Int(string, "AdminLvl") > PlayerInfo[playerid][pAdmin])
  39921. {
  39922. SendClientMessage(playerid, COLOR_GREY, "You can't ban higher level Admins.");
  39923. return 1;
  39924. }
  39925. dini_IntSet(string, "Band", 3);
  39926. string2 = dini_Get(string, "IP");
  39927. format(string, sizeof(string),"banip %s", string2);
  39928. SendRconCommand(string);
  39929. SendRconCommand("reloadbans");
  39930. format(string, 256, "AdmWarning: %s has banned account '%s' and IP '%s'.",PlayerName(playerid),tmp,string2);
  39931. ABroadCast(COLOR_LIGHTRED, string, 1);
  39932. return 1;
  39933. }
  39934. else
  39935. {
  39936. SendClientMessage(playerid, COLOR_GRAD2, "That player is already account-banned. You have banned their IP.");
  39937. string2 = dini_Get(string, "IP");
  39938. format(string, sizeof(string), "banip %s", string2);
  39939. SendRconCommand(string);
  39940. SendRconCommand("reloadbans");
  39941. return 1;
  39942. }
  39943. }
  39944. else
  39945. {
  39946. SendClientMessage(playerid, COLOR_GRAD2, "ERROR: That player does not exist.");
  39947. }
  39948. }
  39949. }
  39950. return 1;
  39951. }
  39952. if(strcmp(cmd, "/checkprison", true) == 0 || strcmp(cmd, "/cp", true) == 0)
  39953. {
  39954. if(IsPlayerConnected(playerid))
  39955. {
  39956. if (PlayerInfo[playerid][pAdmin]>= 2)
  39957. {
  39958. tmp = strtok(cmdtext, idx);
  39959. if(!strlen(tmp))
  39960. {
  39961. SendClientMessage(playerid, COLOR_GRAD1, "{7DAEFF}USAGE: /checkprison [playerid/PartOfName]{7DAEFF}");
  39962. return 1;
  39963. }
  39964. giveplayerid = ReturnUser(tmp);
  39965. if(IsPlayerConnected(giveplayerid))
  39966. {
  39967. if(giveplayerid != INVALID_PLAYER_ID)
  39968. {
  39969. GetPlayerName(giveplayerid, sendername, sizeof(sendername));
  39970. format(string, 256, "%s, %d seconds. Prisoned By %s. Reason: %s",PlayerName(giveplayerid),PlayerInfo[giveplayerid][pJailTime],PlayerInfo[giveplayerid][pPrisonedBy],PlayerInfo[giveplayerid][pPrisonReason]);
  39971. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  39972. }
  39973. }
  39974. else
  39975. {
  39976. SendClientMessage(playerid, COLOR_GRAD1, " Player does not exist !");
  39977. }
  39978. }
  39979. else
  39980. {
  39981. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command !");
  39982. }
  39983. }
  39984. return 1;
  39985. }
  39986.  
  39987.  
  39988. if(strcmp(cmd, "/oprison", true) == 0)
  39989. {
  39990. if(IsPlayerConnected(playerid))
  39991. {
  39992. if(!(PlayerInfo[playerid][pAdmin] >= 3))
  39993. {
  39994. return SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use that command.");
  39995. }
  39996. tmp = strtok(cmdtext, idx);
  39997. if(!strlen(tmp))
  39998. {
  39999. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oprison [full name(case sensative)] [minutes] [reason]{7DAEFF}");
  40000. return 1;
  40001. }
  40002. format(string, sizeof(string), "%s.ini",tmp);
  40003. if(!dini_Exists(string))
  40004. {
  40005. SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
  40006. return 1;
  40007. }
  40008. new tmp2[128];
  40009. new money;
  40010. tmp2 = strtok(cmdtext, idx);
  40011. money = strval(tmp2);
  40012. if(PlayerInfo[playerid][pAdmin] >= 3)
  40013. {
  40014. if(dini_Int(string, "AdminLvl") > PlayerInfo[playerid][pAdmin])
  40015. {
  40016. SendClientMessage(playerid, COLOR_GREY, "You can't prison higher level Admins.");
  40017. return 1;
  40018. }
  40019. GetPlayerName(playerid, sendername, sizeof(sendername));
  40020. new length = strlen(cmdtext);
  40021. while ((idx < length) && (cmdtext[idx] <= ' '))
  40022. {
  40023. idx++;
  40024. }
  40025. new offset = idx;
  40026. new result[64];
  40027. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  40028. {
  40029. result[idx - offset] = cmdtext[idx];
  40030. idx++;
  40031. }
  40032. result[idx - offset] = EOS;
  40033. if(!strlen(result))
  40034. {
  40035. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oprison [full name(case sensative)] [minutes] [reason]{7DAEFF}");
  40036. return 1;
  40037. }
  40038. dini_IntSet(string, "Gun0", 0);
  40039. dini_IntSet(string, "Gun1", 0);
  40040. dini_IntSet(string, "Gun2", 0);
  40041. dini_IntSet(string, "Gun3", 0);
  40042. dini_IntSet(string, "Gun4", 0);
  40043. dini_IntSet(string, "Gun5", 0);
  40044. dini_IntSet(string, "Gun6", 0);
  40045. dini_IntSet(string, "Gun7", 0);
  40046. dini_IntSet(string, "Gun8", 0);
  40047. dini_IntSet(string, "Gun9", 0);
  40048. dini_IntSet(string, "Gun10", 0);
  40049. dini_IntSet(string, "Gun11", 0);
  40050. dini_IntSet(string, "Gun12", 0);
  40051. dini_IntSet(string, "Gun13", 0);
  40052. dini_IntSet(string, "WantedLevel", 0);
  40053. dini_IntSet(string, "Jailed", 3);
  40054. dini_IntSet(string, "JailTime", money*60);
  40055. dini_IntSet(string, "AdminJailed", 1);
  40056. dini_Set(string, "PrisonedBy", PlayerName(playerid));
  40057. dini_Set(string, "PrisonReason", (result));
  40058. format(string, 256, "AdmCmd: %s has been offline-prisoned by an Admin, Reason: %s", tmp, (result));
  40059. SendClientMessageToAll(COLOR_LIGHTRED,string);
  40060. }
  40061. else
  40062. {
  40063. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use this command.");
  40064. }
  40065. }
  40066. return 1;
  40067. }
  40068.  
  40069. if(strcmp(cmd, "/oevict", true) == 0)
  40070. {
  40071. if(IsPlayerConnected(playerid))
  40072. {
  40073. if(PlayerInfo[playerid][pHouseKey] == 999)
  40074. {
  40075. SendClientMessage(playerid, COLOR_GREY,"You don't have a house.");
  40076. return 1;
  40077. }
  40078. tmp = strtok(cmdtext, idx);
  40079. if(!strlen(tmp))
  40080. {
  40081. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /oevict [full name(case sensative)]{7DAEFF}");
  40082. return 1;
  40083. }
  40084. format(string, sizeof(string), "%s.ini",tmp);
  40085. if(!dini_Exists(string))
  40086. {
  40087. SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
  40088. return 1;
  40089. }
  40090. if(dini_Int(string, "Renthouse") == PlayerInfo[playerid][pHouseKey])
  40091. {
  40092. GetPlayerName(playerid, sendername, sizeof(sendername));
  40093. dini_IntSet(string, "Renthouse", 999);
  40094. HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
  40095. format(string, sizeof(string), "* You have evicted %s from your house.", tmp);
  40096. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  40097. }
  40098. else
  40099. {
  40100. SendClientMessage(playerid, COLOR_GREY, "That player is not renting a room in your house.");
  40101. }
  40102. }
  40103. return 1;
  40104. }
  40105.  
  40106. if(strcmp(cmd, "/ouninvite", true) == 0)
  40107. {
  40108. if(IsPlayerConnected(playerid))
  40109. {
  40110. tmp = strtok(cmdtext, idx);
  40111. if(!strlen(tmp))
  40112. {
  40113. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ouninvite [full name(case sensative)]{7DAEFF}");
  40114. return 1;
  40115. }
  40116. format(string, sizeof(string), "%s.ini",tmp);
  40117. if(!dini_Exists(string))
  40118. {
  40119. SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist.");
  40120. return 1;
  40121. }
  40122. if(PlayerInfo[playerid][pLeader] >= 1)
  40123. {
  40124. if(dini_Int(string, "Leader") == PlayerInfo[playerid][pLeader])
  40125. {
  40126. SendClientMessage(playerid, COLOR_GREY, "You can't kick out fellow leaders.");
  40127. return 1;
  40128. }
  40129. if(dini_Int(string, "Member") == PlayerInfo[playerid][pLeader])
  40130. {
  40131. GetPlayerName(playerid, sendername, sizeof(sendername));
  40132. dini_IntSet(string, "Member", 0);
  40133. dini_IntSet(string, "Model", 299);
  40134. format(string, sizeof(string), "* You have kicked %s from the faction.", tmp);
  40135. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  40136. }
  40137. else
  40138. {
  40139. SendClientMessage(playerid, COLOR_GREY, "That player is not a member of your faction.");
  40140. }
  40141. }
  40142. else
  40143. {
  40144. SendClientMessage(playerid, COLOR_GRAD1, "You are not a leader.");
  40145. }
  40146. }
  40147. return 1;
  40148. }
  40149. if(strcmp(cmd, "/freeze", true) == 0)
  40150. {
  40151. if(IsPlayerConnected(playerid))
  40152. {
  40153. tmp = strtok(cmdtext, idx);
  40154. if(!strlen(tmp))
  40155. {
  40156. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /freeze [playerid/PartOfName]{7DAEFF}");
  40157. return 1;
  40158. }
  40159. new playa;
  40160. playa = ReturnUser(tmp);
  40161. if(PlayerInfo[playerid][pAdmin] >= 2)
  40162. {
  40163. if(IsPlayerConnected(playa))
  40164. {
  40165. if(playa != INVALID_PLAYER_ID)
  40166. {
  40167. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  40168. GetPlayerName(playerid, sendername, sizeof(sendername));
  40169. TogglePlayerControllable(playa, 0);
  40170. PlayerFrozen[playerid] = 1;
  40171. format(string, sizeof(string), "Info: %s was Frozen by %s.",giveplayer ,sendername);
  40172. ABroadCast(COLOR_LIGHTRED,string,1);
  40173. }
  40174. }
  40175. }
  40176. else
  40177. {
  40178. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  40179. }
  40180. }
  40181. return 1;
  40182. }
  40183. if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rtc", true) == 0) // by Ellis
  40184. {
  40185. if(IsPlayerConnected(playerid))
  40186. {
  40187. if(PlayerInfo[playerid][pAdmin] < 2 )
  40188. {
  40189. SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
  40190. return 1;
  40191. }
  40192. tmp = strtok(cmdtext, idx);
  40193. if(!strlen(tmp))
  40194. {
  40195. if(IsPlayerInAnyVehicle(playerid))
  40196. {
  40197. GetPlayerName(playerid, sendername, sizeof(sendername));
  40198. format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));
  40199. ABroadCast(COLOR_YELLOW,string,1);
  40200. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  40201. RemovePlayerFromVehicle(playerid);
  40202. SendClientMessage(playerid, COLOR_GREY, " Vehicle Respawned !");
  40203. CarInfo[GetPlayerVehicleID(playerid)][tTrunkOpened] = 0;
  40204. CarInfo[GetPlayerVehicleID(playerid)][tHoodOpened] = 0;
  40205. CarInfo[GetPlayerVehicleID(playerid)][tAlarmStarted] = 0;
  40206. return 1;
  40207. }
  40208. }
  40209. else
  40210. {
  40211. new carid;
  40212. carid = strvalEx(tmp);
  40213. format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,carid);
  40214. ABroadCast(COLOR_YELLOW,string,1);
  40215. SetVehicleToRespawn(carid);
  40216. }
  40217. }
  40218. return 1;
  40219. }
  40220. if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis
  40221. {
  40222. if(IsPlayerConnected(playerid))
  40223. {
  40224. if(PlayerInfo[playerid][pAdmin] < 3)
  40225. {
  40226. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  40227. return 1;
  40228. }
  40229. new bool:unwanted[CAR_AMOUNT];
  40230. for(new player=0; player<MAX_PLAYERS; player++)
  40231. {
  40232. if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
  40233. }
  40234. for(new vehi = 0; vehi < MAX_VEHICLES; vehi++)
  40235. {
  40236. if(!unwanted[vehi]) SetVehicleToRespawn(vehi);
  40237. if(CarInfo[vehi][tOwned] == 1 && CarInfo[vehi][tLicensePlate] != 0)
  40238. {
  40239. new plate[9];
  40240. strmid(plate, CarInfo[vehi][tLicensePlate], 0, strlen(CarInfo[vehi][tLicensePlate]), 255);
  40241. SetVehicleNumberPlate(vehi, plate);
  40242. }
  40243. }
  40244. GetPlayerName(playerid, sendername, sizeof(sendername));
  40245. format(string, sizeof(string), "Info: All unused cars respawned by %s.", sendername);
  40246. SendClientMessageToAll(COLOR_LIGHTRED, string);
  40247. }
  40248. return 1;
  40249. }
  40250. if(strcmp(cmd, "/unfreeze", true) == 0)
  40251. {
  40252. if(IsPlayerConnected(playerid))
  40253. {
  40254. tmp = strtok(cmdtext, idx);
  40255. if(!strlen(tmp))
  40256. {
  40257. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /unfreeze [playerid]{7DAEFF}");
  40258. return 1;
  40259. }
  40260. new playa;
  40261. playa = ReturnUser(tmp);
  40262. if(PlayerInfo[playerid][pAdmin] >= 1)
  40263. {
  40264. if(IsPlayerConnected(playa))
  40265. {
  40266. if(playa != INVALID_PLAYER_ID)
  40267. {
  40268. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  40269. GetPlayerName(playerid, sendername, sizeof(sendername));
  40270. TogglePlayerControllable(playa, 1);
  40271. PlayerFrozen[playerid] = 0;
  40272. format(string, sizeof(string), "Info: %s was UnFrozen by %s.",giveplayer ,sendername);
  40273. ABroadCast(COLOR_LIGHTRED,string,1);
  40274. }
  40275. }
  40276. }
  40277. else
  40278. {
  40279. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  40280. }
  40281. }
  40282. return 1;
  40283. }
  40284. if(strcmp(cmd, "/ipcheck", true) == 0)
  40285. {
  40286. if(IsPlayerConnected(playerid))
  40287. {
  40288. tmp = strtok(cmdtext, idx);
  40289. if(!strlen(tmp))
  40290. {
  40291. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ipcheck [playerid]{7DAEFF}");
  40292. return 1;
  40293. }
  40294. new playa;
  40295. playa = ReturnUser(tmp);
  40296. if(PlayerInfo[playerid][pAdmin] >= 3)
  40297. {
  40298. if(IsPlayerConnected(playa))
  40299. {
  40300. if(playa != INVALID_PLAYER_ID)
  40301. {
  40302. new IP[16];
  40303. new country[256];
  40304. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  40305. GetPlayerIp(playa, IP, sizeof(IP));
  40306. GetPlayerCountry(playa, country);
  40307. if(PlayerInfo[playa][pFakeIP] == 1)
  40308. {
  40309. format(string, sizeof(string), "%s's IP: 79.120.215.212, Country: Romania (ROM)", giveplayer);
  40310. SendClientMessage(playerid, COLOR_WHITE, string);
  40311. }
  40312. else
  40313. {
  40314. format(string, sizeof(string), "%s's IP: %s, Country: %s", giveplayer, IP, country);
  40315. SendClientMessage(playerid, COLOR_WHITE, string);
  40316. }
  40317. }
  40318. }
  40319. }
  40320. else
  40321. {
  40322. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  40323. }
  40324. }
  40325. return 1;
  40326. }
  40327. if(strcmp(cmd, "/signcheck", true) == 0)
  40328. {
  40329. //new string[128];
  40330. new account,interest;
  40331. if(!strlen(cmdtext[11]))
  40332. {
  40333. SendClientMessage(playerid, COLOR_GRAD1, "{7DAEFF}USAGE: /signcheck [check number]{7DAEFF}");
  40334. return 1;
  40335. }
  40336. new number = strval(cmdtext[11]);
  40337. if(number < 1000 || number > 9999) { SendClientMessage(playerid, COLOR_GREY, "Error: Invalid check number."); return 1; }
  40338. if(number == CheckNumber[playerid])
  40339. {
  40340. //new sendername[MAX_PLAYER_NAME];
  40341. new tmpintrate = 1; //interest rate
  40342. //if(PlayerInfo[playerid][pHouseAccepted] == 1){ tmpintrate = 2; }
  40343. if(PlayerInfo[playerid][pDonateRank] == 1){ tmpintrate = 2; }
  40344. GetPlayerName(playerid, sendername, sizeof(sendername));
  40345. account = PlayerInfo[playerid][pAccount]; //bank account amount
  40346. if(PlayerInfo[playerid][pPayDay] >= 5)
  40347. {
  40348. new checks = PlayerInfo[playerid][pPayCheck]; //paycheck amount
  40349. new incometax = PlayerInfo[playerid][pPayCheck] / 100 * Tax; //income tax amount
  40350. if(PlayerInfo[playerid][pRentKey] != 0)
  40351. {
  40352. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+checks-incometax-CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]; //give money
  40353. GivePlayerMoney(playerid, checks-incometax-CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]); //give money
  40354. }
  40355. else
  40356. {
  40357. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+checks-incometax; //give money
  40358. GivePlayerMoney(playerid, checks-incometax); //give money
  40359. }
  40360. //TAX MONEY
  40361. TaxValue = TaxValue+incometax;
  40362. //INTEREST
  40363. interest = (PlayerInfo[playerid][pAccount]/1000)*(tmpintrate); //bank interest
  40364. PlayerInfo[playerid][pAccount] = account+interest; //add interest money to bank
  40365. //EXP
  40366. PlayerInfo[playerid][pExp]++; //experience points
  40367. SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
  40368. format(string, sizeof(string), " Paycheck: $%d", checks);
  40369. SendClientMessage(playerid, COLOR_GRAD1, string);
  40370. format(string, sizeof(string), " Income Tax: -$%d", incometax);
  40371. SendClientMessage(playerid, COLOR_GRAD1, string);
  40372. if(PlayerInfo[playerid][pRentKey] != 0)
  40373. {
  40374. format(string, sizeof(string), " Car Rental: -$%d", CarInfo[PlayerInfo[playerid][pRentKey]][tPrice]);
  40375. SendClientMessage(playerid, COLOR_GRAD1, string);
  40376. }
  40377. format(string, sizeof(string), " Balance: $%d", account);
  40378. SendClientMessage(playerid, COLOR_GRAD1, string);
  40379. format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
  40380. SendClientMessage(playerid, COLOR_GRAD2, string);
  40381. format(string, sizeof(string), " Interest Gained $%d", interest);
  40382. SendClientMessage(playerid, COLOR_GRAD3, string);
  40383. SendClientMessage(playerid, COLOR_GRAD4, "|------------------------------------------|");
  40384. format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccount]);
  40385. SendClientMessage(playerid, COLOR_GRAD5, string);
  40386. format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
  40387. GameTextForPlayer(playerid, string, 5000, 1);
  40388. PlayerInfo[playerid][pPayDay] = 0;
  40389. PlayerInfo[playerid][pPayCheck] = 0;
  40390. }
  40391. else
  40392. {
  40393. SendClientMessage(playerid, COLOR_LIGHTRED, "* You haven't played long enough to obtain a Paycheck.");
  40394. }
  40395. }
  40396. return 1;
  40397. }
  40398. if(strcmp(cmd, "/clearchat", true) == 0 || strcmp(cmd, "/cc", true) == 0)//Logan Stone
  40399. {
  40400. if(IsPlayerConnected(playerid))
  40401. {
  40402. if (PlayerInfo[playerid][pAdmin] >= 4)
  40403. {
  40404. for(new Order = 0; Order < 800; Order++)
  40405. SendClientMessageToAll(COLOR_GREY, " ");
  40406. }
  40407. else
  40408. {
  40409. SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that Command !");
  40410. return 1;
  40411. }
  40412. }
  40413. }
  40414. if(strcmp(cmd, "/gmx", true) == 0)
  40415. {
  40416. if(IsPlayerConnected(playerid))
  40417. {
  40418. if(PlayerInfo[playerid][pAdmin] >= 5)
  40419. {
  40420. GameModeInitExitFunc();
  40421. }
  40422. else
  40423. {
  40424. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  40425. }
  40426. }
  40427. return 1;
  40428. }
  40429. if(strcmp(cmd, "/help", true) == 0)
  40430. {
  40431. DisplayDialogForPlayer(playerid, 79);
  40432. return 1;
  40433. }
  40434. if(strcmp(cmd, "/cellphonehelp", true) == 0)
  40435. {
  40436. if(IsPlayerConnected(playerid))
  40437. {
  40438. if(PlayerInfo[playerid][pPnumber] > 0)
  40439. {
  40440. SendClientMessage(playerid, COLOR_WHITE,"HELP: type a command for more infomation");
  40441. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /call 'eg: /call 911' /sms (/p)ickup (/h)angup /number /pbalance");
  40442. }
  40443. else
  40444. {
  40445. SendClientMessage(playerid, COLOR_WHITE," You can /buy a cellphone from a 24-7 !");
  40446. }
  40447. }
  40448. return 1;
  40449. }
  40450. if(strcmp(cmd, "/irchelp", true) == 0)
  40451. {
  40452. if(IsPlayerConnected(playerid))
  40453. {
  40454. SendClientMessage(playerid, COLOR_WHITE,"IRC HELP: Type a command for more infomation");
  40455. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc join [channelnr] or /irc join [channelnr] [password]) (/irc leave)");
  40456. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc Password [channelnr]) (/irc NeedPass [channelnr]) (/irc Lock [channelnr])");
  40457. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: (/irc Admins) (/irc MOTD [motdtext]) (/irc status [channelnr]) (/i [text])");
  40458. }
  40459. return 1;
  40460. }
  40461.  
  40462. if(strcmp(cmd, "/carhelp", true) == 0)
  40463. {
  40464. if(IsPlayerConnected(playerid))
  40465. {
  40466. new mstring[1500], titlestring[128], line1[512], line2[512], line3[512], line4[512], line5[512], line6[512], line7[512], line8[512];
  40467. format(titlestring, sizeof(titlestring), "{CC0000}Vehicle ownership / trunk system by Logan Stone");
  40468. format(line1, sizeof(line1), "{FFFF00}Insurance:\n{AAC4E5}This is an upgrade (/vehupgrade) which will save your trunk items when your car explodes.\nIf you don't have this update your trunk items will be lost forever if your car blows up.");
  40469. format(line2, sizeof(line2), "{FFFF00}\nAlarm:\n{AAC4E5}Having the alarm upgraded, you will receive a SMS every time your vehicle is being lockpicked");
  40470. format(line3, sizeof(line3), "{FFFF00}\nGPS:\n{AAC4E5}With this upgrade you will be able to /trackcar anytime, to get your current vehicle position.");
  40471. format(line4, sizeof(line4), "{FFFF00}\nTow services:\n{AAC4E5}Upgrading the tow services will allow you to request a tow anytime you want, so your vehicle will be brought to the last /park position.");
  40472. format(line5, sizeof(line5), "{FFFF00}\nEngine / Lights:\n{AAC4E5}You can turn the engine on/off by pressing the key 2.\nLights can be turned on/off by pressing ctrl.");
  40473. format(line6, sizeof(line6), "{FFFF00}\nDuplicate keys:\n{AAC4E5}Having a duplicate key allows you to /givekey to anyone, so they will be able to lock/unlock your vehicle.");
  40474. format(line7, sizeof(line7), "{FFFF00}\nModifications:\n{AAC4E5}Your modifications will be saved every time you /park your vehicle.\nThough, the NOS only saves on /nos, the paintjob saves on /paintcar and the colors saves on /colorcar only.");
  40475. format(line8, sizeof(line8), "{FFFF00}\nAvailable commands:\n{AAC4E5}/trunk /park /lockpick /carupgrade /sellcartomarket /sellcar /checkplate /hood\n/trackcar /towcar /givekeys /clearmods /dealerships");
  40476. format(mstring, sizeof(mstring), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", line1, line2, line3, line4, line5, line6, line7, line8);
  40477. ShowPlayerDialog(playerid, VEHINFO, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Print", "Cancel");
  40478. }
  40479. return 1;
  40480. }
  40481.  
  40482. if(strcmp(cmd, "/carrenthelp", true) == 0)
  40483. {
  40484. if(IsPlayerConnected(playerid))
  40485. {
  40486. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /unrentcar /lock /trackcar /clearmods /trunk /hood /engine /lights");
  40487. }
  40488. return 1;
  40489. }
  40490.  
  40491. if(strcmp(cmd, "/clotheshelp", true) == 0)
  40492. {
  40493. if(IsPlayerConnected(playerid))
  40494. {
  40495. SendClientMessage(playerid, COLOR_WHITE,"Clothes HELP");
  40496. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /glasses /bandana /fmask /hat /helmet");
  40497. }
  40498. return 1;
  40499. }
  40500. if(strcmp(cmd, "/househelp", true) == 0)
  40501. {
  40502. if(IsPlayerConnected(playerid))
  40503. {
  40504. SendClientMessage(playerid, COLOR_WHITE,"House HELP: Type a command for more infomation");
  40505. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /lockhouse /buyhouse /sellhouse /sellhousetomarket /houseupgrade");
  40506. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /rentroom /unrent /evict /oevict /alarm /robhouse");
  40507. SendClientMessage(playerid, COLOR_WHITE,"Safe HELP: /sbalance /storegun /takegun /sput /stake /safe");
  40508. }
  40509. return 1;
  40510. }
  40511. if(strcmp(cmd, "/bizhelp", true) == 0)
  40512. {
  40513. if(IsPlayerConnected(playerid))
  40514. {
  40515. SendClientMessage(playerid, COLOR_WHITE,"Business HELP: Type a command for more infomation");
  40516. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /lockbiz /buybiz /sellbiz /sellbiztomarket /biz");
  40517. }
  40518. return 1;
  40519. }
  40520. if(strcmp(cmd, "/fishhelp", true) == 0)
  40521. {
  40522. if(IsPlayerConnected(playerid))
  40523. {
  40524. SendClientMessage(playerid, COLOR_WHITE,"FISH HELP: type a command for more information");
  40525. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /fish (try to catch a fish) /fishes (show the fishes you have caught)");
  40526. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /throwback (throw the last fish you caught back) /throwbackall");
  40527. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /releasefish (release one of your fishes) /sellfish (sell your fish at a 24/7)");
  40528. }
  40529. return 1;
  40530. }
  40531. if(strcmp(cmd, "/eventhelp", true) == 0)
  40532. {
  40533. if(IsPlayerConnected(playerid))
  40534. {
  40535. if(PlayerInfo[playerid][pAdmin] >= 4)
  40536. {
  40537. SendClientMessage(playerid, COLOR_WHITE,"EVENT HELP: type a command for more information");
  40538. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /seteventpos /seteventinfo /startevent /lockevent /endevent /announceevent /quitevent");
  40539. }
  40540. else
  40541. {
  40542. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  40543. }
  40544. }
  40545. return 1;
  40546. }
  40547. if(strcmp(cmd, "/firehelp", true) == 0)
  40548. {
  40549. if(IsPlayerConnected(playerid))
  40550. {
  40551. if(PlayerInfo[playerid][pAdmin] >= 4)
  40552. {
  40553. SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /createfire /removefire /removeallfires /announcefire");
  40554. }
  40555. else
  40556. {
  40557. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  40558. }
  40559. }
  40560. return 1;
  40561. }
  40562. if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
  40563. {
  40564. if(IsPlayerConnected(playerid))
  40565. {
  40566. new alevel = PlayerInfo[playerid][pAdmin];
  40567. if(alevel > 0)
  40568. {
  40569. if(alevel >= 1)
  40570. {
  40571. SendClientMessage(playerid, COLOR_GRAD1, "Secret Admin(1): /listguns /wscan /check /spec /setint /setvw /nmute /skick /sban (/a)dmin /warnings /ch");
  40572. }
  40573. if(alevel >= 2)
  40574. {
  40575. SendClientMessage(playerid, COLOR_GRAD2,"Junior Admin(2): /ao /skydive /bigears /freeze /jail /unfreeze /slap /warn /cnn /goto /sendtols /skiptut /hoseject /mute /rmute /admute");
  40576. SendClientMessage(playerid, COLOR_GRAD2,"Junior Admin(2): /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /listmuted /listmasked /kick /ban /noooc /fuelcars");
  40577. }
  40578. if(alevel >= 3)
  40579. {
  40580. SendClientMessage(playerid, COLOR_GRAD3,"General Admin (3): /mole /nonewbie /fourdive /prison /fine /ramps /setcarhp /carinfo");
  40581. SendClientMessage(playerid, COLOR_GRAD3,"General Admin (3): /mark /goto /gethere /oldcar /mass /ipcheck /countdown /disarm /nohospital /setaccent /stealth");
  40582. }
  40583. if(alevel >= 4)
  40584. {
  40585. SendClientMessage(playerid, COLOR_GRAD4,"Senior Admin (4): /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /refund /duel /setmark");
  40586. SendClientMessage(playerid, COLOR_GRAD4,"Senior Admin (4): /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /givemoney /setmoney /setstat /setfightstyle /setbankreload");
  40587. SendClientMessage(playerid, COLOR_GRAD5,"Senior Admin (4): /fcreate /fdelete /load /adivorce /makeircadmin /destroycar /destroycars /eventhelp /setcrime /givedonut /firehelp");
  40588. }
  40589. if(alevel >= 5)
  40590. {
  40591. SendClientMessage(playerid, COLOR_GRAD4,"Head Admin (5): /weather /weatherall /makeleader /tod /savechars /fedit /dedit /pointtime /ahousehelp");
  40592. SendClientMessage(playerid, COLOR_GRAD4,"Head Admin (5): /pban /unban /banaccount /gotocar /setcolor /banip /unbanip /deleteaccount /rangeban /makehelper");
  40593. }
  40594. if(alevel >= 6)
  40595. {
  40596. SendClientMessage(playerid, COLOR_GRAD4,"Executive Admin+ (6-7): /makeadmin /makebanappealer /makegangmod /acarhelp");
  40597. }
  40598. if(PlayerInfo[playerid][pBanAppealer])
  40599. {
  40600. SendClientMessage(playerid, COLOR_GRAD1, "BAN APPEALER: /unban /unbanip");
  40601. }
  40602. if(PlayerInfo[playerid][pGangMod])
  40603. {
  40604. SendClientMessage(playerid, COLOR_GRAD1, "GANG MODERATOR: /pointtime /fedit /fstrike /fsetstrike");
  40605. }
  40606. }
  40607. else
  40608. {
  40609. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  40610. }
  40611. }
  40612. return 1;
  40613. }
  40614. if(strcmp(cmd, "/payimpound", true) == 0)
  40615. {
  40616. if(IsPlayerConnected(playerid))
  40617. {
  40618. new Foundcar[MAX_PLAYERS];
  40619. for(new i = 1; i < sizeof(CarInfo); i++)
  40620. {
  40621. new Float:X, Float:Y, Float:Z;
  40622. new Float:A;
  40623. GetVehiclePos(i, X, Y, Z);
  40624. GetVehicleZAngle(i, A);
  40625. if(IsPlayerInRangeOfPoint(playerid, 2.3, X, Y, Z))
  40626. {
  40627. new imp_cmd[32];
  40628. imp_cmd = strtok(cmdtext, idx);
  40629. if(!strlen(imp_cmd) && CarInfo[i][tImp] == 1)
  40630. {
  40631. format(string, sizeof(string), "{7DAEFF}USAGE: /payimpound [confirm]{7DAEFF}");
  40632. SendClientMessage(playerid, COLOR_WHITE, string);
  40633. format(string, sizeof(string), "{FF0000}Impound Price{FFFFFF}: $%d", CarInfo[i][tImpPrice]);
  40634. SendClientMessage(playerid, COLOR_WHITE, string);
  40635. return 1;
  40636. }
  40637. if(strcmp(imp_cmd,"confirm",true) == 0)
  40638. {
  40639. if(CarInfo[i][tImp] == 1)
  40640. {
  40641. if(i == PlayerInfo[playerid][pCarKey1])
  40642. {
  40643. if(PlayerInfo[playerid][pCash] < CarInfo[i][tImpPrice])
  40644. return SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
  40645.  
  40646. Foundcar[playerid] = 1;
  40647. PlayerInfo[playerid][pCash] -= CarInfo[i][tImpPrice];
  40648. GivePlayerMoney(playerid, -CarInfo[i][tImpPrice]);
  40649. CarInfo[i][tImp] = 0;
  40650. CarInfo[i][tImpPrice] = 0;
  40651. SendClientMessage(playerid, COLOR_YELLOW, "You paid the Impound! Watch where you park your car next time!");
  40652. return 1;
  40653. }
  40654. if(i == PlayerInfo[playerid][pCarKey2])
  40655. {
  40656. if(PlayerInfo[playerid][pCash] < CarInfo[i][tImpPrice])
  40657. return SendClientMessage(playerid, COLOR_GREY, "You can't afford that!");
  40658.  
  40659. Foundcar[playerid] = 1;
  40660. PlayerInfo[playerid][pCash] -= CarInfo[i][tImpPrice];
  40661. GivePlayerMoney(playerid, -CarInfo[i][tImpPrice]);
  40662. CarInfo[i][tImp] = 0;
  40663. CarInfo[i][tImpPrice] = 0;
  40664. SendClientMessage(playerid, COLOR_YELLOW, "You paid the Impound! Watch where you park your car next time!");
  40665. return 1;
  40666. }
  40667. else
  40668. {
  40669. SendClientMessage(playerid, COLOR_GREY, "You dont own this vehicle!");
  40670. return 1;
  40671. }
  40672. }
  40673. }
  40674. }
  40675. }
  40676. if(Foundcar[playerid] == 0)
  40677. {
  40678. SendClientMessage(playerid, COLOR_GREY, "You have to be close to an impounded vehicle.");
  40679. return 1;
  40680. }
  40681. }
  40682. return 1;
  40683. }
  40684. if(strcmp(cmd, "/impound", true) == 0)
  40685. {
  40686. if(IsPlayerConnected(playerid))
  40687. {
  40688. if(PlayerInfo[playerid][pAdmin] >= 4) { }
  40689. else
  40690. {
  40691. if(!IsACop(playerid))
  40692. return SendClientMessage(playerid, COLOR_GREY, "You have to be a Cop!");
  40693. if(PlayerInfo[playerid][pRank] < 1)
  40694. return SendClientMessage(playerid, COLOR_GREY, "You have to be Rank 1!");
  40695. if(PlayerInfo[playerid][pOnDuty] == 0)
  40696. return SendClientMessage(playerid, COLOR_GREY, "You have to be on duty!");
  40697. }
  40698. tmp = strtok(cmdtext, idx);
  40699. if(!strlen(tmp))
  40700. return SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /impound [price]{7DAEFF}");
  40701.  
  40702. new price = strval(tmp);
  40703.  
  40704. if(price < 10000)
  40705. return SendClientMessage(playerid, COLOR_GREY, "Minimum impound price is $10.000");
  40706. if(price > 30000)
  40707. return SendClientMessage(playerid, COLOR_GREY, "Maximum impound price is $30.000");
  40708.  
  40709. if(!IsPlayerInRangeOfPoint(playerid, 30.0, 2583.77, -2175.83, -0.22))
  40710. return SendClientMessage(playerid, COLOR_GREY, "You have to be in the Impound Parking Lot!");
  40711.  
  40712. for(new i = 1; i < sizeof(CarInfo); i++)
  40713. {
  40714. new Float:X, Float:Y, Float:Z;
  40715. new Float:A;
  40716. GetVehiclePos(i, X, Y, Z);
  40717. GetVehicleZAngle(i, A);
  40718. if(IsPlayerInRangeOfPoint(playerid, 2.3, X, Y, Z))
  40719. {
  40720. if(CarInfo[i][tOwned] == 1)
  40721. {
  40722. if(CarInfo[i][tImp] == 1)
  40723. return SendClientMessage(playerid, COLOR_GREY, "This vehicle is already impounded!");
  40724.  
  40725. new owner[128];
  40726. strmid(owner, CarInfo[i][tOwner], 0, strlen(CarInfo[i][tOwner]), 255);
  40727. new player = ReturnUser(owner);
  40728. if(player != INVALID_PLAYER_ID)
  40729. {
  40730. SetPlayerCheckpoint(player, X, Y, Z, 5.0);
  40731. SendClientMessage(player, COLOR_WHITE, "["CB"SMS Inbox"CW"] "CB" Sender:"CW" Impound Service™ (4192)");
  40732. SendClientMessage(player, COLOR_WHITE, ""CB"Message:"CW" Your vehicle has been impounded!");
  40733. }
  40734. SaveVehicleComponents(i);
  40735. DestroyVehicle(i);
  40736. CarSys[i] = CreateVehicle(CarInfo[i][tModel],X,Y,Z,A,CarInfo[i][tColorOne],CarInfo[i][tColorTwo],60000);
  40737. SetVehicleModifications(i);
  40738. ChangeVehiclePaintjob(i, CarInfo[i][tPaintjob]);
  40739.  
  40740. CarInfo[i][tLocationx] = X;
  40741. CarInfo[i][tLocationy] = Y;
  40742. CarInfo[i][tLocationz] = Z;
  40743. CarInfo[i][tAngle] = A;
  40744. CarInfo[i][tImp] = 1;
  40745. CarInfo[i][tImpPrice] = price;
  40746. SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Impounded");
  40747. return 1;
  40748. }
  40749. else
  40750. return SendClientMessage(playerid, COLOR_GREY, "You can't impound vehicle's that is not owned/ownable!");
  40751. }
  40752. }
  40753. }
  40754. return 1;
  40755. }
  40756.  
  40757. if(strcmp(cmd, "/acarhelp", true) == 0)
  40758. {
  40759. if(IsPlayerConnected(playerid))
  40760. {
  40761. new alevel = PlayerInfo[playerid][pAdmin];
  40762. if(alevel > 6)
  40763. {
  40764. SendClientMessage(playerid, COLOR_GRAD1, "/createcar(bugged/disabled) /editcar");
  40765. }
  40766. else
  40767. {
  40768. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  40769. }
  40770. }
  40771. return 1;
  40772. }
  40773. if(strcmp(cmd, "/ahousehelp", true) == 0)
  40774. {
  40775. if(IsPlayerConnected(playerid))
  40776. {
  40777. new alevel = PlayerInfo[playerid][pAdmin];
  40778. if(alevel > 5)
  40779. {
  40780. SendClientMessage(playerid, COLOR_GRAD1, "/edithouse /houseinfo /gotohouse /goinhouse /gotohouseint");
  40781. }
  40782. else
  40783. {
  40784. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  40785. }
  40786. }
  40787. return 1;
  40788. }
  40789. if(strcmp(cmd, "/abizhelp", true) == 0)
  40790. {
  40791. if(IsPlayerConnected(playerid))
  40792. {
  40793. new alevel = PlayerInfo[playerid][pAdmin];
  40794. if(alevel > 5)
  40795. {
  40796. SendClientMessage(playerid, COLOR_GRAD1, "/editbiz /bizinfo /gotobiz /goinbiz");
  40797. }
  40798. else
  40799. {
  40800. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  40801. }
  40802. }
  40803. return 1;
  40804. }
  40805. if(strcmp(cmd,"/stopani",true)==0)
  40806. {
  40807. if(IsPlayerConnected(playerid))
  40808. {
  40809. if(PlayerTied[playerid] > 0 || PlayerCuffed[playerid] > 0 || IsPlayerInAnyVehicle(playerid))
  40810. {
  40811. SendClientMessage(playerid, COLOR_GREY,"You cannot do that at this time.");
  40812. return 1;
  40813. }
  40814. else
  40815. {
  40816. if(StopAniTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 3 seconds before using that again !");
  40817. GetPlayerPos(playerid, PlayerPosition[playerid][PosX], PlayerPosition[playerid][PosY], PlayerPosition[playerid][PosZ]);
  40818. StopAniTimer[playerid] = 1;
  40819. SendClientMessage(playerid, COLOR_GREY,"You must remain in your current position for 3 seconds.");
  40820. SetTimerEx("StopAni",3*1000,0,"i",playerid);
  40821. }
  40822. }
  40823. return 1;
  40824. }
  40825. if(strcmp(cmd,"/skill",true)==0)
  40826. {
  40827. if(IsPlayerConnected(playerid))
  40828. {
  40829. new x_nr[32];
  40830. x_nr = strtok(cmdtext, idx);
  40831. if(!strlen(x_nr)) {
  40832. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skill [number]");
  40833. SendClientMessage(playerid, COLOR_GRAD1, "| 1: Detective 7: Arms Dealer");
  40834. SendClientMessage(playerid, COLOR_GRAD2, "| 2: Lawyer 8: Mechanic");
  40835. SendClientMessage(playerid, COLOR_GRAD3, "| 3: Whore 9: Boxer");
  40836. SendClientMessage(playerid, COLOR_GRAD4, "| 4: Drug Dealer 10: Fishing");
  40837. SendClientMessage(playerid, COLOR_GRAD5, "| 5: Car Jacker 11: Drug Smuggler");
  40838. SendClientMessage(playerid, COLOR_GRAD6, "| 6: News Reporter");
  40839. return 1;
  40840. }
  40841. if(strcmp(x_nr,"1",true) == 0)//Detective
  40842. {
  40843. new level = PlayerInfo[playerid][pDetSkill];
  40844. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 1."); format(string, sizeof(string), "You need to find %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40845. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 2."); format(string, sizeof(string), "You need to find %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40846. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 3."); format(string, sizeof(string), "You need to find %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40847. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 4."); format(string, sizeof(string), "You need to find %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40848. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 5."); }
  40849. }
  40850. else if(strcmp(x_nr,"2",true) == 0)//Lawyer
  40851. {
  40852. new level = PlayerInfo[playerid][pLawSkill];
  40853. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 1."); format(string, sizeof(string), "You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40854. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 2."); format(string, sizeof(string), "You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40855. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 3."); format(string, sizeof(string), "You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40856. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 4."); format(string, sizeof(string), "You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40857. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 5."); }
  40858. }
  40859. else if(strcmp(x_nr,"3",true) == 0)//Whore
  40860. {
  40861. new level = PlayerInfo[playerid][pSexSkill];
  40862. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 1."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40863. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 2."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40864. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 3."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40865. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 4."); format(string, sizeof(string), "You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40866. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 5."); }
  40867. }
  40868. else if(strcmp(x_nr,"4",true) == 0)//Drug Dealer
  40869. {
  40870. new level = PlayerInfo[playerid][pDrugsSkill];
  40871. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40872. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40873. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40874. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40875. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 5."); }
  40876. }
  40877. else if(strcmp(x_nr,"5",true) == 0)//Car Jacker
  40878. {
  40879. new level = PlayerInfo[playerid][pJackSkill];
  40880. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Level = 1."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40881. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 2."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40882. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 3."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40883. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 4."); format(string, sizeof(string), "You need to drop %d cars more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40884. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 5."); }
  40885. }
  40886. else if(strcmp(x_nr,"6",true) == 0)//News Reporter
  40887. {
  40888. new level = PlayerInfo[playerid][pNewsSkill];
  40889. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 1."); format(string, sizeof(string), "You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40890. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 2."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40891. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 3."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40892. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 4."); format(string, sizeof(string), "You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40893. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your New Reporter Skill Level = 5."); }
  40894. }
  40895. else if(strcmp(x_nr,"7",true) == 0)//Arms Dealer
  40896. {
  40897. new level = PlayerInfo[playerid][pArmsSkill];
  40898. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40899. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40900. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40901. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40902. else if(level >= 400 && level <= 599) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 5."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 600 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40903. else if(level >= 600 && level <= 899) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 6."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 900 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40904. else if(level >= 900 && level <= 1299) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 7."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 1300 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40905. else if(level >= 1300 && level <= 1999) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 8."); format(string, sizeof(string), "You need to sell %d more guns to Level up.", 2000 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40906. else if(level >= 2000) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 9."); }
  40907. }
  40908. else if(strcmp(x_nr,"8",true) == 0)//Mechanic
  40909. {
  40910. new level = PlayerInfo[playerid][pMechSkill];
  40911. if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 1."); format(string, sizeof(string), "You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40912. else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 2."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40913. else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 3."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40914. else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 4."); format(string, sizeof(string), "You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40915. else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Mechanic Skill Level = 5."); }
  40916. }
  40917. else if(strcmp(x_nr,"9",true) == 0)//Boxer
  40918. {
  40919. new level = PlayerInfo[playerid][pBoxSkill];
  40920. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 1."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40921. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 2."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 100 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40922. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 3."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 200 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40923. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 4."); format(string, sizeof(string), "You need to Win %d more Matches to Level up.", 400 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40924. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 5."); }
  40925. }
  40926. else if(strcmp(x_nr,"10",true) == 0)//Fishing
  40927. {
  40928. new level = PlayerInfo[playerid][pFishSkill];
  40929. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 1."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40930. else if(level >= 50 && level <= 249) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 2."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 250 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40931. else if(level >= 250 && level <= 499) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 3."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 500 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40932. else if(level >= 500 && level <= 999) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 4."); format(string, sizeof(string), "You need to Fish %d more Fishes to Level up.", 1000 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40933. else if(level >= 1000) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 5."); }
  40934. }
  40935. else if(strcmp(x_nr,"11",true) == 0)//Drug Smuggler
  40936. {
  40937. new level = PlayerInfo[playerid][pSmugglerSkill];
  40938. if(level >= 0 && level <= 19) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 1."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 20 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40939. else if(level >= 20 && level <= 39) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 2."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 40 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40940. else if(level >= 40 && level <= 59) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 3."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 60 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40941. else if(level >= 60 && level <= 79) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 4."); format(string, sizeof(string), "You need to deliver %d more Drug Crates to Level up.", 80 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40942. else if(level >= 80) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggler Skill Level = 5."); }
  40943. }
  40944. /* else if(strcmp(x_nr,"12",true) == 0) // Trashman
  40945. {
  40946. new level = PlayerInfo[playerid][pTrashSkill];
  40947. if(level >= 0 && level <= 49) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 1."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 20 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40948. else if(level >= 50 && level <= 99) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 2."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 40 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40949. else if(level >= 100 && level <= 199) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 3."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 60 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40950. else if(level >= 200 && level <= 399) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 4."); format(string, sizeof(string), "You need to deliver %d more Trashbags to Level up.", 80 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
  40951. else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trashman Skill Level = 5."); }
  40952. }*/
  40953. else
  40954. {
  40955. SendClientMessage(playerid, COLOR_GREY, " Invalid Skill Number !");
  40956. return 1;
  40957. }
  40958. }
  40959. return 1;
  40960. }
  40961.  
  40962. if(strcmp(cmd, "/families", true) == 0)
  40963. {
  40964. if(IsPlayerConnected(playerid))
  40965. {
  40966. tmp = strtok(cmdtext, idx);
  40967. if(!strlen(tmp))
  40968. {
  40969. new number = 0;
  40970. for(new i = 0; i < sizeof(FamilyInfo); i++)
  40971. {
  40972. number ++;
  40973. format(string, sizeof(string), "Family %d| Name: %s | Leader: %s | Members: %d | Strikes: %d/3",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers],FamilyInfo[i][FStrikes]);
  40974. SendClientMessage(playerid, COLOR_GRAD6, string);
  40975. }
  40976. return 1;
  40977. }
  40978. new family = strvalEx(tmp);
  40979. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, " Can't be below 1 or above 14 !"); return 1; }
  40980. family -= 1;
  40981. if(FamilyInfo[family][FamilyTaken] != 1)
  40982. {
  40983. SendClientMessage(playerid, COLOR_GREY, " That family hasn't been taken yet !");
  40984. return 1;
  40985. }
  40986. new members;
  40987. //foreach(Player, i)
  40988. for(new i = 0; i < MAX_PLAYERS; i++)
  40989. {
  40990. if(IsPlayerConnected(i))
  40991. {
  40992. if(PlayerInfo[i][pFMember] == family)
  40993. {
  40994. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  40995. format(string, sizeof(string), "* %s: %s | Rank: %s.",FamilyInfo[family][FamilyName],giveplayer,FamilyRank[family][PlayerInfo[i][pFRank]-1]);
  40996. SendClientMessage(playerid, COLOR_GREY, string);
  40997. members++;
  40998. }
  40999. }
  41000. }
  41001. if(members == 0)
  41002. {
  41003. SendClientMessage(playerid, COLOR_GREY, " There are currently no members online !");
  41004. }
  41005. }
  41006. return 1;
  41007. }
  41008. if(strcmp(cmd,"/members",true)==0)
  41009. {
  41010. if(IsPlayerConnected(playerid))
  41011. {
  41012. new teamnumber;
  41013. if(PlayerInfo[playerid][pFMember] != 255) teamnumber = PlayerInfo[playerid][pFMember];
  41014. else if(PlayerInfo[playerid][pMember] != 225) teamnumber = PlayerInfo[playerid][pMember];
  41015. else
  41016. {
  41017. SendClientMessage(playerid, COLOR_GRAD1, "You are not a member of a family or a faction!");
  41018. return 1;
  41019. }
  41020. SendClientMessage(playerid, 0x808000AA, "Members Online:");
  41021. for(new i; i<MAX_PLAYERS; i++)
  41022. {
  41023. if (IsPlayerConnected(i))
  41024. {
  41025. GetPlayerName(i, sendername, sizeof(sendername));
  41026. format(string, sizeof(string), "");
  41027. if(PlayerInfo[playerid][pFMember] != 255)
  41028. {
  41029. if (PlayerInfo[i][pFMember] == teamnumber)
  41030. {
  41031. format(string, sizeof(string), "%s, Rank: %d",sendername, PlayerInfo[i][pFRank]);
  41032. }
  41033. }
  41034. else if(PlayerInfo[playerid][pMember] != 255)
  41035. {
  41036. if(PlayerInfo[i][pMember] == teamnumber)
  41037. {
  41038. format(string, sizeof(string), "%s, Rank: %d",sendername, PlayerInfo[i][pRank]);
  41039. }
  41040. }
  41041. if (strlen(string) > 1) SendClientMessage(playerid, 0xF5DEB3AA, string);
  41042. }
  41043. }
  41044. }
  41045. return 1;
  41046. }
  41047. if(strcmp(cmd, "/adjust", true) == 0)
  41048. {
  41049. if(IsPlayerConnected(playerid))
  41050. {
  41051. if(PlayerInfo[playerid][pFMember] == 255)
  41052. {
  41053. SendClientMessage(playerid, COLOR_GREY, "You are not in a Family.");
  41054. return 1;
  41055. }
  41056. new family = PlayerInfo[playerid][pFMember];
  41057. if(PlayerInfo[playerid][pFRank] > 4)
  41058. {
  41059. new x_nr[32];
  41060. x_nr = strtok(cmdtext, idx);
  41061. if(!strlen(x_nr))
  41062. {
  41063. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust [name]{7DAEFF}");
  41064. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Name, MOTD, Invite, Uninvite, Rank, Safe, Rankname");
  41065. return 1;
  41066. }
  41067. if(strcmp(x_nr,"name",true) == 0)
  41068. {
  41069. new length = strlen(cmdtext);
  41070. while ((idx < length) && (cmdtext[idx] <= ' '))
  41071. {
  41072. idx++;
  41073. }
  41074. new offset = idx;
  41075. new result[24];
  41076. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  41077. {
  41078. result[idx - offset] = cmdtext[idx];
  41079. idx++;
  41080. }
  41081. result[idx - offset] = EOS;
  41082. if(!strlen(result))
  41083. {
  41084. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust name [name]{7DAEFF}");
  41085. return 1;
  41086. }
  41087. if(InvalidChar(result) == 1)
  41088. {
  41089. SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
  41090. return 1;
  41091. }
  41092. strmid(FamilyInfo[family][FamilyName], result, 0, strlen(result), 255);
  41093. format(string, sizeof(string), "* You have adjusted your Family's Name to '%s'.",FamilyInfo[family][FamilyName]);
  41094. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41095. SaveFamilies();
  41096. }
  41097. else if(strcmp(x_nr,"rankname",true) == 0)
  41098. {
  41099. tmp = strtok(cmdtext, idx);
  41100. if(!strlen(tmp))
  41101. {
  41102. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rankname [rank] [name]{7DAEFF}");
  41103. return 1;
  41104. }
  41105. new rank = strvalEx(tmp);
  41106. if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, "Rank can't be below 1 or above 6."); return 1; }
  41107. new length = strlen(cmdtext);
  41108. while ((idx < length) && (cmdtext[idx] <= ' '))
  41109. {
  41110. idx++;
  41111. }
  41112. new offset = idx;
  41113. new result[24];
  41114. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  41115. {
  41116. result[idx - offset] = cmdtext[idx];
  41117. idx++;
  41118. }
  41119. result[idx - offset] = EOS;
  41120. if(!strlen(result))
  41121. {
  41122. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rankname [rank] [name]{7DAEFF}");
  41123. return 1;
  41124. }
  41125. if(InvalidChar(result) == 1)
  41126. {
  41127. SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
  41128. return 1;
  41129. }
  41130. strmid(FamilyRank[family][rank-1], result, 0, strlen(result), 255);
  41131. format(string, sizeof(string), "* You have adjusted the name of Rank %d to \"%s\".",rank,FamilyRank[family][rank-1]);
  41132. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41133. SaveFamilies();
  41134. return 1;
  41135. }
  41136. else if(strcmp(x_nr,"motd",true) == 0)
  41137. {
  41138. new length = strlen(cmdtext);
  41139. while ((idx < length) && (cmdtext[idx] <= ' '))
  41140. {
  41141. idx++;
  41142. }
  41143. new offset = idx;
  41144. new result[64];
  41145. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  41146. {
  41147. result[idx - offset] = cmdtext[idx];
  41148. idx++;
  41149. }
  41150. result[idx - offset] = EOS;
  41151. if(!strlen(result))
  41152. {
  41153. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust MOTD [MOTD Text]{7DAEFF}");
  41154. return 1;
  41155. }
  41156. if(InvalidChar(result) == 1)
  41157. {
  41158. SendClientMessage(playerid, COLOR_GREY, "ERROR: cannot contain invalid characters.");
  41159. return 1;
  41160. }
  41161. strmid(FamilyInfo[family][FamilyMOTD], result, 0, strlen(result), 255);
  41162. format(string, sizeof(string), "* You have adjusted your Family's MOTD to \"%s\".",FamilyInfo[family][FamilyMOTD]);
  41163. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41164. SaveFamilies();
  41165. }
  41166. else if(strcmp(x_nr,"safe",true) == 0)
  41167. {
  41168. x_nr = strtok(cmdtext, idx);
  41169. if(!strlen(x_nr))
  41170. {
  41171. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust safe [confirm]{7DAEFF}");
  41172. if(FamilyInfo[family][FamilySafe] != 0)
  41173. {
  41174. SendClientMessage(playerid, COLOR_GREY," Adjusting the position of your Family's Safe will cost $50,000 !");
  41175. SendClientMessage(playerid, COLOR_WHITE,"HINT: Adjusting the position of your Family's Safe will remove its contents.");
  41176. }
  41177. else
  41178. {
  41179. SendClientMessage(playerid, COLOR_GREY," Purchasing a Safe for your Family will cost $50,000 !");
  41180. SendClientMessage(playerid, COLOR_WHITE,"HINT: Purchasing a Safe will give your Family the ability to store/share Pot, Crack, Cash and Materials.");
  41181. }
  41182. return 1;
  41183. }
  41184. if(strcmp(x_nr,"confirm",true) == 0)
  41185. {
  41186. if(PlayerInfo[playerid][pCash] < 49999)
  41187. {
  41188. SendClientMessage(playerid, COLOR_GRAD1, " You don't have that much money !");
  41189. return 1;
  41190. }
  41191. if(FamilyInfo[family][FamilySafe] != 0)
  41192. {
  41193. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have adjusted the position of your Family's Safe.");
  41194. }
  41195. else
  41196. {
  41197. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have purchased a Safe.");
  41198. SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /safehelp for more information.");
  41199. }
  41200. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-50000;
  41201. GivePlayerMoney(playerid,-50000);
  41202. GetPlayerPos(playerid, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1],FamilyInfo[family][FamilySafePos][2]);
  41203. DestroyDynamicPickup(FamilyInfo[family][PickupID]);
  41204. FamilyInfo[family][PickupID] = CreateDynamicPickup(1210, 23, FamilyInfo[family][FamilySafePos][0],FamilyInfo[family][FamilySafePos][1], FamilyInfo[family][FamilySafePos][2], GetPlayerVirtualWorld(playerid), -1, -1, 100.0 );
  41205. FamilyInfo[family][FamilySafe] = 1;
  41206. FamilyInfo[family][FamilyCash] = 0;
  41207. FamilyInfo[family][FamilyPot] = 0;
  41208. FamilyInfo[family][FamilyCrack] = 0;
  41209. FamilyInfo[family][FamilyMats] = 0;
  41210. SaveFamilies();
  41211. return 1;
  41212. }
  41213. }
  41214. else if(strcmp(x_nr,"invite",true) == 0)
  41215. {
  41216. x_nr = strtok(cmdtext, idx);
  41217. if(!strlen(x_nr))
  41218. {
  41219. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust invite [playerid/PartOfName]{7DAEFF}");
  41220. return 1;
  41221. }
  41222. giveplayerid = ReturnUser(x_nr);
  41223. if(IsPlayerConnected(giveplayerid))
  41224. {
  41225. if(giveplayerid != INVALID_PLAYER_ID)
  41226. {
  41227. if(PlayerInfo[giveplayerid][pFMember] != 255)
  41228. {
  41229. SendClientMessage(playerid, COLOR_GREY, "That player is already in a Family.");
  41230. return 1;
  41231. }
  41232. GetPlayerName(playerid, sendername, sizeof(sendername));
  41233. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41234. format(string, sizeof(string), "* You've invited %s to join %s.",giveplayer, FamilyInfo[family][FamilyName]);
  41235. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41236. format(string, sizeof(string), "* %s has invited you to join %s, (type /accept family) to accept.",sendername, FamilyInfo[family][FamilyName]);
  41237. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41238. FamilyOffer[giveplayerid] = playerid;
  41239. }
  41240. }
  41241. else
  41242. {
  41243. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  41244. return 1;
  41245. }
  41246. }
  41247. else if(strcmp(x_nr,"uninvite",true) == 0)
  41248. {
  41249. tmp = strtok(cmdtext, idx);
  41250. if(!strlen(x_nr))
  41251. {
  41252. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust uninvite [playerid/PartOfName]{7DAEFF}");
  41253. return 1;
  41254. }
  41255. giveplayerid = ReturnUser(tmp);
  41256. if(!strlen(x_nr))
  41257. {
  41258. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust uninvite [playerid/PartOfName]{7DAEFF}");
  41259. return 1;
  41260. }
  41261. if(IsPlayerConnected(giveplayerid))
  41262. {
  41263. if(giveplayerid != INVALID_PLAYER_ID)
  41264. {
  41265. if(PlayerInfo[giveplayerid][pFMember] != family)
  41266. {
  41267. SendClientMessage(playerid, COLOR_GREY, "That player is not in your Family.");
  41268. return 1;
  41269. }
  41270. if(PlayerInfo[giveplayerid][pFRank] > PlayerInfo[playerid][pFRank])
  41271. {
  41272. SendClientMessage(playerid, COLOR_GREY, " That player is a higher rank !");
  41273. return 1;
  41274. }
  41275. GetPlayerName(playerid, sendername, sizeof(sendername));
  41276. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41277. format(string, sizeof(string), "* You have kicked %s out of your Family.",giveplayer);
  41278. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41279. format(string, sizeof(string), "* Family Leader %s has kicked you out of the Family.",sendername);
  41280. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41281. PlayerInfo[giveplayerid][pFMember] = 255;
  41282. PlayerInfo[giveplayerid][pFRank] = 0;
  41283. FamilyInfo[family][FamilyMembers] --;
  41284. return 1;
  41285. }
  41286. }
  41287. else
  41288. {
  41289. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  41290. return 1;
  41291. }
  41292. }
  41293. else if(strcmp(x_nr,"rank",true) == 0)
  41294. {
  41295. tmp = strtok(cmdtext, idx);
  41296. if(!strlen(x_nr))
  41297. {
  41298. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
  41299. return 1;
  41300. }
  41301. new rank = strvalEx(tmp);
  41302. if(!strlen(tmp))
  41303. {
  41304. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
  41305. return 1;
  41306. }
  41307. if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, "Rank can't be below 1 or above 6."); return 1; }
  41308. tmp = strtok(cmdtext, idx);
  41309. if(!strlen(x_nr)) {
  41310. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /adjust rank [rank] [playerid/PartOfName]{7DAEFF}");
  41311. return 1;
  41312. }
  41313. giveplayerid = ReturnUser(tmp);
  41314. if(IsPlayerConnected(giveplayerid))
  41315. {
  41316. if(giveplayerid != INVALID_PLAYER_ID)
  41317. {
  41318. if(PlayerInfo[giveplayerid][pFMember] != family)
  41319. {
  41320. SendClientMessage(playerid, COLOR_GREY, " That player is not in your Family !");
  41321. return 1;
  41322. }
  41323. if (rank > 3 && (PlayerInfo[giveplayerid][pRank] > 3 || PlayerInfo[giveplayerid][pLeader] >= 1))
  41324. {
  41325. SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a faction");
  41326. return 1;
  41327. }
  41328. if(PlayerInfo[giveplayerid][pFRank] >= PlayerInfo[playerid][pFRank])
  41329. {
  41330. SendClientMessage(playerid, COLOR_GREY, " That player is a higher or the same rank !");
  41331. return 1;
  41332. }
  41333. GetPlayerName(playerid, sendername, sizeof(sendername));
  41334. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41335. format(string, sizeof(string), "* You have given %s Rank %d.",giveplayer,rank);
  41336. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41337. format(string, sizeof(string), "* Family Leader %s has given you Rank %d.",sendername,rank);
  41338. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41339. PlayerInfo[giveplayerid][pFRank] = rank;
  41340. return 1;
  41341. }
  41342. }
  41343. else
  41344. {
  41345. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  41346. return 1;
  41347. }
  41348. }
  41349. else
  41350. {
  41351. SendClientMessage(playerid, COLOR_GREY, "Invalid adjust name.");
  41352. return 1;
  41353. }
  41354. }
  41355. else
  41356. {
  41357. SendClientMessage(playerid, COLOR_GREY, "Your rank is not high enough.");
  41358. return 1;
  41359. }
  41360. }
  41361. return 1;
  41362. }
  41363. if(strcmp(cmd, "/fcreate", true) == 0)
  41364. {
  41365. if(IsPlayerConnected(playerid))
  41366. {
  41367. if(PlayerInfo[playerid][pAdmin] >= 4)
  41368. {
  41369. tmp = strtok(cmdtext, idx);
  41370. if(!strlen(tmp))
  41371. {
  41372. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fcreate [family] [playerid/PartOfName]{7DAEFF}");
  41373. return 1;
  41374. }
  41375. new family = strvalEx(tmp);
  41376. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14."); return 1; }
  41377. tmp = strtok(cmdtext, idx);
  41378. if(!strlen(tmp))
  41379. {
  41380. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fcreate [family] [playerid/PartOfName]{7DAEFF}");
  41381. return 1;
  41382. }
  41383. giveplayerid = ReturnUser(tmp);
  41384. if(IsPlayerNPC(giveplayerid)) return 1;
  41385. if(IsPlayerConnected(giveplayerid))
  41386. {
  41387. if(giveplayerid != INVALID_PLAYER_ID)
  41388. {
  41389. family -= 1;
  41390. if(FamilyInfo[family][FamilyTaken] == 1)
  41391. {
  41392. SendClientMessage(playerid, COLOR_GREY, " That Family is already taken !" );
  41393. return 1;
  41394. }
  41395. if (PlayerInfo[giveplayerid][pRank] > 3 || PlayerInfo[giveplayerid][pLeader] >= 1)
  41396. {
  41397. SendClientMessage(playerid, COLOR_GRAD2, "That player is Rank4+ in a faction");
  41398. return 1;
  41399. }
  41400. GetPlayerName(playerid, sendername, sizeof(sendername));
  41401. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41402. format(string, sizeof(string), "* You've made %s the Leader of a Family.",giveplayer);
  41403. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41404. format(string, sizeof(string), "* Admin %s has made you the Leader of a Family.",sendername);
  41405. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41406. format(string, sizeof(string), "%s",giveplayer);
  41407. strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
  41408. FamilyInfo[family][FamilyMembers] ++;
  41409. FamilyInfo[family][FamilyTaken] = 1;
  41410. PlayerInfo[giveplayerid][pFMember] = family;
  41411. PlayerInfo[giveplayerid][pModel] = FamilyInfo[family][FamilySkin1];
  41412. SetPlayerSkin(giveplayerid, FamilyInfo[family][FamilySkin1]);
  41413. PlayerInfo[giveplayerid][pFRank] = 6;
  41414. SaveFamilies();
  41415. }
  41416. }
  41417. else
  41418. {
  41419. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  41420. return 1;
  41421. }
  41422. }
  41423. else
  41424. {
  41425. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  41426. return 1;
  41427. }
  41428. }
  41429. return 1;
  41430. }
  41431. if(strcmp(cmd, "/fsetstrike", true) == 0)
  41432. {
  41433. if(IsPlayerConnected(playerid))
  41434. {
  41435. if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pGangMod])
  41436. {
  41437. tmp = strtok(cmdtext, idx);
  41438. if(!strlen(tmp)) {
  41439. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fsetstrike [FamilyNr] [strikes]{7DAEFF}");
  41440. return 1;
  41441. }
  41442. new family = strval(tmp);
  41443. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "FamilyNr can't be below 1 or above 14."); return 1; }
  41444. family -= 1;
  41445. if(FamilyInfo[family][FamilyTaken] != 1)
  41446. {
  41447. SendClientMessage(playerid, COLOR_GREY, "That FamilyNr isn't taken.");
  41448. return 1;
  41449. }
  41450.  
  41451. tmp = strtok(cmdtext, idx);
  41452. if(!strlen(tmp))
  41453. {
  41454. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fsetstrike [FamilyNr] [strikes]{7DAEFF}");
  41455. return 1;
  41456. }
  41457. new strikes = strval(tmp);
  41458. if(strikes < 0 || strikes > 2) { SendClientMessage(playerid, COLOR_GREY, " Strikes can't go below 1 or above 3 !"); return 1; }
  41459.  
  41460. format(string, sizeof(string), "* Family %d strikes set to %d.",family+1,strikes);
  41461. SendClientMessage(playerid, COLOR_GREY, string);
  41462. FamilyInfo[family][FStrikes] = strikes;
  41463. SaveFamilies();
  41464. }
  41465. else
  41466. {
  41467. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  41468. return 1;
  41469. }
  41470. }
  41471. return 1;
  41472. }
  41473. if(strcmp(cmd, "/fstrike", true) == 0)
  41474. {
  41475. if(IsPlayerConnected(playerid))
  41476. {
  41477. if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pGangMod])
  41478. {
  41479. tmp = strtok(cmdtext, idx);
  41480. if(!strlen(tmp)) {
  41481. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fstrike [FamilyNr] [reason]{7DAEFF}");
  41482. return 1;
  41483. }
  41484. new family = strval(tmp);
  41485. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "FamilyNr can't be below 1 or above 14."); return 1; }
  41486. family -= 1;
  41487. if(FamilyInfo[family][FamilyTaken] != 1)
  41488. {
  41489. SendClientMessage(playerid, COLOR_GREY, "That FamilyNr isn't taken.");
  41490. return 1;
  41491. }
  41492.  
  41493. new length = strlen(cmdtext);
  41494. while ((idx < length) && (cmdtext[idx] <= ' '))
  41495. {
  41496. idx++;
  41497. }
  41498. new offset = idx;
  41499. new result[64];
  41500. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  41501. {
  41502. result[idx - offset] = cmdtext[idx];
  41503. idx++;
  41504. }
  41505. result[idx - offset] = EOS;
  41506. if(!strlen(result))
  41507. {
  41508. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fstrike [FamilyNr] [reason]{7DAEFF}");
  41509. return 1;
  41510. }
  41511. format(string, sizeof(string), "SERVER: Family '%s' was given a strike, reason: %s",FamilyInfo[family][FamilyName],result);
  41512. SendClientMessageToAll(COLOR_WHITE, string);
  41513. FamilyInfo[family][FStrikes] ++;
  41514. if(FamilyInfo[family][FStrikes] >= 3)
  41515. {
  41516. format(string, sizeof(string), "SERVER: Family '%s' was disbanded due to having 3 gang strikes.",FamilyInfo[family][FamilyName]);
  41517. SendClientMessageToAll(COLOR_WHITE, string);
  41518. DestroyPickup(FamilyInfo[family][PickupID]);
  41519. ClearFamily(family);
  41520. SaveFamilies();
  41521. }
  41522. }
  41523. else
  41524. {
  41525. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  41526. return 1;
  41527. }
  41528. }
  41529. return 1;
  41530. }
  41531. if(strcmp(cmd, "/fdelete", true) == 0)
  41532. {
  41533. if(IsPlayerConnected(playerid))
  41534. {
  41535. if(PlayerInfo[playerid][pAdmin] >= 4)
  41536. {
  41537. tmp = strtok(cmdtext, idx);
  41538. if(!strlen(tmp))
  41539. {
  41540. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /fdelete [family]{7DAEFF}");
  41541. return 1;
  41542. }
  41543. new family = strvalEx(tmp);
  41544. if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "Family can't be below 1 or above 14."); return 1; }
  41545. family -= 1;
  41546. if(FamilyInfo[family][FamilyTaken] != 1)
  41547. {
  41548. SendClientMessage(playerid, COLOR_GREY, "That family slot isnt taken.");
  41549. return 1;
  41550. }
  41551. if(UseAdmCmdTimer[playerid] > 2)
  41552. {
  41553. new IP[16];
  41554. new year, month, day;
  41555. getdate(year, month, day);
  41556. GetPlayerName(playerid, sendername, sizeof(sendername));
  41557. GetPlayerIp(playerid, IP, sizeof(IP));
  41558. format(string, sizeof(string), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  41559. BanLog(string);
  41560. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  41561. SendClientMessageToAll(COLOR_LIGHTRED, string);
  41562. PlayerInfo[playerid][pBand] = 3;
  41563. PlayerInfo[playerid][pPermBand] = 1;
  41564. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  41565.  
  41566. return 1;
  41567. }
  41568. format(string, sizeof(string), " Family %d has been deleted !", family+1);
  41569. SendClientMessage(playerid, COLOR_GREY, string);
  41570. ClearFamily(family);
  41571. UseAdmCmdTimer[playerid]++;
  41572. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid);
  41573. }
  41574. else
  41575. {
  41576. SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
  41577. return 1;
  41578. }
  41579. }
  41580. return 1;
  41581. }
  41582.  
  41583. if(strcmp(cmd,"/divorce",true)==0)
  41584. {
  41585. if(IsPlayerConnected(playerid))
  41586. {
  41587. if(PlayerInfo[playerid][pMarried] < 1)
  41588. {
  41589. SendClientMessage(playerid, COLOR_GREY, "You aren't Married.");
  41590. return 1;
  41591. }
  41592. tmp = strtok(cmdtext, idx);
  41593. if(!strlen(tmp)) {
  41594. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /divorce [Playerid/PartOfName]{7DAEFF}");
  41595. return 1;
  41596. }
  41597. giveplayerid = ReturnUser(tmp);
  41598. if(IsPlayerConnected(giveplayerid))
  41599. {
  41600. if(giveplayerid != INVALID_PLAYER_ID)
  41601. {
  41602. if(ProxDetectorS(8.0, playerid, giveplayerid))
  41603. {
  41604. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer a divorce to yourself."); return 1; }
  41605. new dstring[MAX_PLAYER_NAME];
  41606. new wstring[MAX_PLAYER_NAME];
  41607. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41608. GetPlayerName(playerid, sendername, sizeof(sendername));
  41609. format(string, sizeof(string), "%s", giveplayer);
  41610. strmid(wstring, string, 0, strlen(string), 255);
  41611. format(string, sizeof(string), "%s", PlayerInfo[playerid][pMarriedTo]);
  41612. strmid(dstring, string, 0, strlen(string), 255);
  41613. if(strcmp(dstring ,wstring, true ) == 0 )
  41614. {
  41615. format(string, sizeof(string), "* You've sent Divorce Papers to %s.", giveplayer);
  41616. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41617. format(string, sizeof(string), "* %s just sent you their Divorce Papers (type /accept divorce) to accept.", sendername);
  41618. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41619. DivorceOffer[giveplayerid] = playerid;
  41620. return 1;
  41621. }
  41622. else
  41623. {
  41624. SendClientMessage(playerid, COLOR_GREY, " That player is not Married to you !");
  41625. return 1;
  41626. }
  41627. }
  41628. else
  41629. {
  41630. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  41631. return 1;
  41632. }
  41633. }
  41634. }
  41635. else
  41636. {
  41637. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  41638. return 1;
  41639. }
  41640. }
  41641. return 1;
  41642. }
  41643. if(strcmp(cmd,"/propose",true)==0)
  41644. {
  41645. if(IsPlayerConnected(playerid))
  41646. {
  41647. if(PlayerInfo[playerid][pMarried] > 0)
  41648. {
  41649. SendClientMessage(playerid, COLOR_GREY, "You are already Married.");
  41650. return 1;
  41651. }
  41652. if(PlayerInfo[playerid][pCash] < 100000)
  41653. {
  41654. SendClientMessage(playerid, COLOR_GREY, "The Marriage & Reception costs $100,000.");
  41655. return 1;
  41656. }
  41657. tmp = strtok(cmdtext, idx);
  41658. if(!strlen(tmp)) {
  41659. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /propose [Playerid/PartOfName]{7DAEFF}");
  41660. return 1;
  41661. }
  41662. giveplayerid = ReturnUser(tmp);
  41663. if(IsPlayerConnected(giveplayerid))
  41664. {
  41665. if(giveplayerid != INVALID_PLAYER_ID)
  41666. {
  41667. if(PlayerInfo[giveplayerid][pMarried] > 0)
  41668. {
  41669. SendClientMessage(playerid, COLOR_GREY, "That player is already Married.");
  41670. return 1;
  41671. }
  41672. if(ProxDetectorS(8.0, playerid, giveplayerid))
  41673. {
  41674. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer to propose to yourself."); return 1; }
  41675. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  41676. GetPlayerName(playerid, sendername, sizeof(sendername));
  41677. format(string, sizeof(string), "* You proposed to %s.", giveplayer);
  41678. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  41679. format(string, sizeof(string), "* %s just proposed to you (type /accept marriage) to accept.", sendername);
  41680. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  41681. ProposeOffer[giveplayerid] = playerid;
  41682. }
  41683. else
  41684. {
  41685. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  41686. return 1;
  41687. }
  41688. }
  41689. }
  41690. else
  41691. {
  41692. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  41693. return 1;
  41694. }
  41695. }
  41696. return 1;
  41697. }
  41698. if(strcmp(cmd, "/animhelp", true) == 0 || strcmp(cmd, "/animlist", true) == 0)
  41699. {
  41700. SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________");
  41701. SendClientMessage(playerid,COLOR_WHITE,"Available Animations:");
  41702. SendClientMessage(playerid,0xB4B5B7FF,"/handsup /drunk /bomb /laugh /lookout /dj /skate /dance /crossarms /fucku");
  41703. SendClientMessage(playerid,0xB4B5B7FF,"/hide /vomit /wave /taichi /kiss /robman /reload /deal /fallover /crack");
  41704. SendClientMessage(playerid,0xBFC0C2FF,"/chat /dance /gift /piss /lean /cpr /cry /cheer /pedmove /wank /bitchslap");
  41705. SendClientMessage(playerid,0xCBCCCEFF,"/slapass /fuckme /bj /rap /hitch /stand /greet /followme /getjiggy");
  41706. SendClientMessage(playerid,0xD8D8D8FF,"/what /signal /crabs /salute /stop /washhands /gesture /hurt /showoff /dive /relax");
  41707. SendClientMessage(playerid,0xD8D8D8FF,"/checktime /rob /sitonchair(/sitdown) /sleep /smoke /nobreath /sit");
  41708. SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________");
  41709. return 1;
  41710. }
  41711. if(strcmp(cmd,"/sit", true) == 0)
  41712. {
  41713. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41714. {
  41715. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41716. return 1;
  41717. }
  41718. tmp = strtok(cmdtext, idx);
  41719. if(!strlen(tmp))
  41720. {
  41721. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sit [1-5]{7DAEFF}");
  41722. return 1;
  41723. }
  41724. anumber = strval(tmp);
  41725. if(anumber < 1 || anumber > 5) { SendClientMessage(playerid,0xFF0000FF,"USAGE: /sit [1-5]"); return 1; }
  41726. if(anumber == 1) { LoopingAnim(playerid,"BEACH","bather",4.0,1,0,0,0,0); }
  41727. if(anumber == 2) { LoopingAnim(playerid,"BEACH","Lay_Bac_Loop",4.0,1,0,0,0,0); }
  41728. if(anumber == 3) { LoopingAnim(playerid,"BEACH","ParkSit_W_loop",4.0,1,0,0,0,0); }
  41729. if(anumber == 4) { LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0); }
  41730. if(anumber == 4) { LoopingAnim(playerid,"BEACH","SitnWait_loop_W",4.0,1,0,0,0,0); }
  41731. if(anumber == 5) { LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0,1,0,0,0,0); }
  41732. return 1;
  41733. }
  41734. if(strcmp(cmd,"/nobreath", true) == 0)
  41735. {
  41736. tmp = strtok(cmdtext, idx);
  41737. if(!strlen(tmp))
  41738. {
  41739. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /nobreath [1-2]{7DAEFF}");
  41740. return 1;
  41741. }
  41742. anumber = strval(tmp);
  41743. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /nobreath [1-2]{7DAEFF}"); return 1; }
  41744. if(anumber == 1) { LoopingAnim(playerid,"PED","IDLE_tired",4.0,1,0,0,0,0); }
  41745. if(anumber == 2) { LoopingAnim(playerid,"FAT","IDLE_tired",4.0,1,0,0,0,0); }
  41746. return 1;
  41747. }
  41748. if(strcmp(cmd, "/sitonchair", true) == 0 || strcmp(cmd, "/sitdown", true) == 0)
  41749. {
  41750. tmp = strtok(cmdtext, idx);
  41751. if(!strlen(tmp))
  41752. {
  41753. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sitonchair [1-7] or /sitdown [1-7]{7DAEFF}");
  41754. return 1;
  41755. }
  41756. anumber = strval(tmp);
  41757. if(anumber < 1 || anumber > 7) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /sitonchair [1-7]{7DAEFF}"); return 1; }
  41758. if(anumber == 1) { LoopingAnim(playerid,"Attractors","Stepsit_in",4.0,0,0,0,1,0); } // Not looping
  41759. else if(anumber == 2) { LoopingAnim(playerid,"CRIB","PED_Console_Loop",4.0,1,0,0,0,0); }
  41760. else if(anumber == 3) { LoopingAnim(playerid,"INT_HOUSE","LOU_In",4.0,0,0,0,1,0); } // Not looping
  41761. else if(anumber == 4) { LoopingAnim(playerid,"MISC","SEAT_LR",4.0,1,0,0,0,0); }
  41762. else if(anumber == 5) { LoopingAnim(playerid,"MISC","Seat_talk_01",4.0,1,0,0,0,0); }
  41763. else if(anumber == 6) { LoopingAnim(playerid,"MISC","Seat_talk_02",4.0,1,0,0,0,0); }
  41764. else if(anumber == 7) { LoopingAnim(playerid,"ped","SEAT_down",4.0,0,0,0,1,0); } // Not looping
  41765. return 1;
  41766. }
  41767. if(strcmp(cmd, "/handsup", true) == 0)
  41768. {
  41769. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41770. {
  41771. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41772. return 1;
  41773. }
  41774. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  41775. return 1;
  41776. }
  41777. if(strcmp(cmd, "/dance", true) == 0)
  41778. {
  41779. tmp = strtok(cmdtext, idx);
  41780. if(!strlen(tmp))
  41781. {
  41782. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dance [style 1-4]{7DAEFF}");
  41783. return 1;
  41784. }
  41785. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41786. {
  41787. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41788. return 1;
  41789. }
  41790. dancestyle = strval(tmp);
  41791. if(dancestyle < 1 || dancestyle > 4)
  41792. {
  41793. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dance [style 1-4]{7DAEFF}");
  41794. return 1;
  41795. }
  41796. if(dancestyle == 1) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
  41797. else if(dancestyle == 2) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
  41798. else if(dancestyle == 3) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
  41799. else if(dancestyle == 4) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
  41800. return 1;
  41801. }
  41802. if(strcmp(cmd, "/crossarms", true) == 0)
  41803. {
  41804. tmp = strtok(cmdtext, idx);
  41805. if(!strlen(tmp))
  41806. {
  41807. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /crossarms [1-5]{7DAEFF}");
  41808. return 1;
  41809. }
  41810. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41811. {
  41812. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41813. return 1;
  41814. }
  41815. anumber = strval(tmp);
  41816. if(anumber < 1 || anumber > 5)
  41817. {
  41818. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /crossarms [1-5]{7DAEFF}");
  41819. return 1;
  41820. }
  41821. if(anumber == 1) LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  41822. else if(anumber == 2) LoopingAnim(playerid, "DEALER", "DEALER_IDLE", 4.0, 0, 1, 1, 1, -1);
  41823. else if(anumber == 3) LoopingAnim(playerid, "DEALER", "DEALER_IDLE_01", 4.0, 0, 1, 1, 1, -1);
  41824. else if(anumber == 4) { LoopingAnim(playerid,"GRAVEYARD","mrnM_loop",4.0,1,0,0,0,0); }
  41825. else if(anumber == 5) { LoopingAnim(playerid,"GRAVEYARD","prst_loopa",4.0,1,0,0,0,0); }
  41826. return 1;
  41827. }
  41828. if(strcmp(cmd,"/getjiggy", true) == 0)
  41829. {
  41830. tmp = strtok(cmdtext, idx);
  41831. if(!strlen(tmp))
  41832. {
  41833. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /getjiggy [1-10]{7DAEFF}");
  41834. return 1;
  41835. }
  41836. anumber = strval(tmp);
  41837. if(anumber < 1 || anumber > 10) { SendClientMessage(playerid,0xFF0000FF,"USAGE: /getjiggy [1-10]"); return 1; }
  41838. if(anumber == 1) { LoopingAnim(playerid,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
  41839. if(anumber == 2) { LoopingAnim(playerid,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
  41840. if(anumber == 3) { LoopingAnim(playerid,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
  41841. if(anumber == 4) { LoopingAnim(playerid,"DANCING","DAN_Right_A",4.0,1,0,0,0,0); }
  41842. if(anumber == 5) { LoopingAnim(playerid,"DANCING","DAN_Up_A",4.0,1,0,0,0,0); }
  41843. if(anumber == 6) { LoopingAnim(playerid,"DANCING","dnce_M_a",4.0,1,0,0,0,0); }
  41844. if(anumber == 7) { LoopingAnim(playerid,"DANCING","dnce_M_b",4.0,1,0,0,0,0); }
  41845. if(anumber == 8) { LoopingAnim(playerid,"DANCING","dnce_M_c",4.0,1,0,0,0,0); }
  41846. if(anumber == 9) { LoopingAnim(playerid,"DANCING","dnce_M_c",4.0,1,0,0,0,0); }
  41847. if(anumber == 10) { LoopingAnim(playerid,"DANCING","dnce_M_d",4.0,1,0,0,0,0); }
  41848. return 1;
  41849. }
  41850. if(strcmp(cmd,"/pedmove", true) == 0)
  41851. {
  41852. tmp = strtok(cmdtext, idx);
  41853. if(!strlen(tmp))
  41854. {
  41855. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /pedmove [1-26]{7DAEFF}");
  41856. return 1;
  41857. }
  41858. anumber = strval(tmp);
  41859. if(anumber < 1 || anumber > 26) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /pedmove [1-26]{7DAEFF}"); return 1; }
  41860. if(anumber == 1) { LoopingAnim(playerid,"PED","JOG_femaleA",4.0,1,1,1,1,1); }
  41861. if(anumber == 2) { LoopingAnim(playerid,"PED","JOG_maleA",4.0,1,1,1,1,1); }
  41862. if(anumber == 3) { LoopingAnim(playerid,"PED","WOMAN_walkfatold",4.0,1,1,1,1,1); }
  41863. if(anumber == 4) { LoopingAnim(playerid,"PED","run_fat",4.0,1,1,1,1,1); }
  41864. if(anumber == 5) { LoopingAnim(playerid,"PED","run_fatold",4.0,1,1,1,1,1); }
  41865. if(anumber == 6) { LoopingAnim(playerid,"PED","run_old",4.0,1,1,1,1,1); }
  41866. if(anumber == 7) { LoopingAnim(playerid,"PED","Run_Wuzi",4.0,1,1,1,1,1); }
  41867. if(anumber == 8) { LoopingAnim(playerid,"PED","swat_run",4.0,1,1,1,1,1); }
  41868. if(anumber == 9) { LoopingAnim(playerid,"PED","WALK_fat",4.0,1,1,1,1,1); }
  41869. if(anumber == 10) { LoopingAnim(playerid,"PED","WALK_fatold",4.0,1,1,1,1,1); }
  41870. if(anumber == 11) { LoopingAnim(playerid,"PED","WALK_gang1",4.0,1,1,1,1,1); }
  41871. if(anumber == 12) { LoopingAnim(playerid,"PED","WALK_gang2",4.0,1,1,1,1,1);}
  41872. if(anumber == 13) { LoopingAnim(playerid,"PED","WALK_old",4.0,1,1,1,1,1);}
  41873. if(anumber == 14) { LoopingAnim(playerid,"PED","WALK_shuffle",4.0,1,1,1,1,1);}
  41874. if(anumber == 15) { LoopingAnim(playerid,"PED","woman_run",4.0,1,1,1,1,1);}
  41875. if(anumber == 16) { LoopingAnim(playerid,"PED","WOMAN_runbusy",4.0,1,1,1,1,1); }
  41876. if(anumber == 17) { LoopingAnim(playerid,"PED","WOMAN_runfatold",4.0,1,1,1,1,1); }
  41877. if(anumber == 18) { LoopingAnim(playerid,"PED","woman_runpanic",4.0,1,1,1,1,1); }
  41878. if(anumber == 19) { LoopingAnim(playerid,"PED","WOMAN_runsexy",4.0,1,1,1,1,1); }
  41879. if(anumber == 20) { LoopingAnim(playerid,"PED","WOMAN_walkbusy",4.0,1,1,1,1,1);}
  41880. if(anumber == 21) { LoopingAnim(playerid,"PED","WOMAN_walkfatold",4.0,1,1,1,1,1); }
  41881. if(anumber == 22) { LoopingAnim(playerid,"PED","WOMAN_walknorm",4.0,1,1,1,1,1); }
  41882. if(anumber == 23) { LoopingAnim(playerid,"PED","WOMAN_walkold",4.0,1,1,1,1,1); }
  41883. if(anumber == 24) { LoopingAnim(playerid,"PED","WOMAN_walkpro",4.0,1,1,1,1,1);}
  41884. if(anumber == 25) { LoopingAnim(playerid,"PED","WOMAN_walksexy",4.0,1,1,1,1,1);}
  41885. if(anumber == 26) { LoopingAnim(playerid,"PED","WOMAN_walkshop",4.0,1,1,1,1,1); }
  41886. return 1;
  41887. }
  41888. if(strcmp(cmd, "/rap", true) == 0)
  41889. {
  41890. tmp = strtok(cmdtext, idx);
  41891. if(!strlen(tmp))
  41892. {
  41893. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /rap [style 1-3]{7DAEFF}");
  41894. return 1;
  41895. }
  41896. rapstyle = strval(tmp);
  41897. if(rapstyle < 1 || rapstyle > 3)
  41898. {
  41899. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /rap [style 1-3]{7DAEFF}");
  41900. return 1;
  41901. }
  41902. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41903. {
  41904. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41905. return 1;
  41906. }
  41907. if(rapstyle == 1) LoopingAnim(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
  41908. else if(rapstyle == 2) LoopingAnim(playerid,"RAPPING","RAP_B_Loop",4.0,1,1,1,1,0);
  41909. else if(rapstyle == 3) LoopingAnim(playerid,"RAPPING","RAP_C_Loop",4.0,1,1,1,1,0);
  41910. return 1;
  41911. }
  41912. if(strcmp(cmd, "/reload", true) == 0)
  41913. {
  41914. tmp = strtok(cmdtext, idx);
  41915. if(!strlen(tmp))
  41916. {
  41917. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /reload [style 1-5]{7DAEFF}");
  41918. return 1;
  41919. }
  41920. new rstyle = strval(tmp);
  41921. if(rstyle < 1 || rstyle > 5)
  41922. {
  41923. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /reload [style 1-5]{7DAEFF}");
  41924. return 1;
  41925. }
  41926. if(rstyle == 1) ApplyAnimation(playerid,"COLT45","colt45_reload", 4.0, 0, 0, 0, 0, 0);
  41927. else if(rstyle == 2) ApplyAnimation(playerid,"COLT45","sawnoff_reload", 4.0, 0, 0, 0, 0, 0);
  41928. else if(rstyle == 3) ApplyAnimation(playerid,"BUDDY","buddy_reload", 4.0, 0, 0, 0, 0, 0);
  41929. else if(rstyle == 4) ApplyAnimation(playerid,"RIFLE","RIFLE_load", 4.0, 0, 0, 0, 0, 0);
  41930. else if(rstyle == 5) ApplyAnimation(playerid,"PYTHON","python_reload", 4.0, 0, 0, 0, 0, 0);
  41931. return 1;
  41932. }
  41933. if(strcmp(cmd,"/dj", true) == 0)
  41934. {
  41935. tmp = strtok(cmdtext, idx);
  41936. if(!strlen(tmp))
  41937. {
  41938. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dj [1-4]{7DAEFF}");
  41939. return 1;
  41940. }
  41941. anumber = strval(tmp);
  41942. if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /dj [1-4]{7DAEFF}"); return 1; }
  41943. if(anumber == 1) { LoopingAnim(playerid,"SCRATCHING","scdldlp",4.0,1,0,0,0,0); }
  41944. if(anumber == 2) { LoopingAnim(playerid,"SCRATCHING","scdlulp",4.0,1,0,0,0,0); }
  41945. if(anumber == 3) { LoopingAnim(playerid,"SCRATCHING","scdrdlp",4.0,1,0,0,0,0); }
  41946. if(anumber == 4) { LoopingAnim(playerid,"SCRATCHING","scdrulp",4.0,1,0,0,0,0); }
  41947. return 1;
  41948. }
  41949. if(strcmp(cmd, "/skate", true) == 0)
  41950. {
  41951. tmp = strtok(cmdtext, idx);
  41952. if(!strlen(tmp))
  41953. {
  41954. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /skate [style 1-3]{7DAEFF}");
  41955. return 1;
  41956. }
  41957. new rstyle = strval(tmp);
  41958. if(rstyle < 1 || rstyle > 6)
  41959. {
  41960. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /skate [style 1-3]{7DAEFF}");
  41961. return 1;
  41962. }
  41963. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41964. {
  41965. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41966. return 1;
  41967. }
  41968. if(rstyle == 1) LoopingAnim(playerid,"SKATE","skate_idle", 4.0, 1, 1, 1, 1, 1);
  41969. else if(rstyle == 2) LoopingAnim(playerid,"SKATE","skate_run", 4.0, 1, 1, 1, 1, 1);
  41970. else if(rstyle == 3) LoopingAnim(playerid,"SKATE","skate_sprint", 4.0, 1, 1, 1, 1, 1);
  41971. return 1;
  41972. }
  41973. if(strcmp(cmd, "/wank", true) == 0)
  41974. {
  41975. tmp = strtok(cmdtext, idx);
  41976. if(!strlen(tmp))
  41977. {
  41978. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wank [style 1-3]{7DAEFF}");
  41979. return 1;
  41980. }
  41981. wankstyle = strval(tmp);
  41982. if(wankstyle < 1 || wankstyle > 3)
  41983. {
  41984. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wank [style 1-3]{7DAEFF}");
  41985. return 1;
  41986. }
  41987. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  41988. {
  41989. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  41990. return 1;
  41991. }
  41992. if(wankstyle == 1) LoopingAnim(playerid,"PAULNMAC","wank_in",4.0,1,1,1,1,0);
  41993. else if(wankstyle == 2) LoopingAnim(playerid,"PAULNMAC","wank_loop",4.0,1,1,1,1,0);
  41994. else if(wankstyle == 3) OnePlayAnim(playerid,"PAULNMAC","wank_out",4.0,0,0,0,0,0);
  41995. return 1;
  41996. }
  41997. if(strcmp(cmd, "/fuckme", true) == 0)
  41998. {
  41999. tmp = strtok(cmdtext, idx);
  42000. if(!strlen(tmp))
  42001. {
  42002. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fuckme [style 1-8]{7DAEFF}");
  42003. return 1;
  42004. }
  42005. sexstyle = strval(tmp);
  42006. if(sexstyle < 1 || sexstyle > 8)
  42007. {
  42008. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fuckme [style 1-8]{7DAEFF}");
  42009. return 1;
  42010. }
  42011. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  42012. {
  42013. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  42014. return 1;
  42015. }
  42016. if(sexstyle == 1) LoopingAnim(playerid,"SNM","SPANKING_IDLEW",4.1,0,1,1,1,0);
  42017. else if(sexstyle == 2) LoopingAnim(playerid,"SNM","SPANKING_IDLEP",4.1,0,1,1,1,0);
  42018. else if(sexstyle == 3) LoopingAnim(playerid,"SNM","SPANKINGW",4.1,0,1,1,1,0);
  42019. else if(sexstyle == 4) LoopingAnim(playerid,"SNM","SPANKINGP",4.1,0,1,1,1,0);
  42020. else if(sexstyle == 5) LoopingAnim(playerid,"SNM","SPANKEDW",4.1,0,1,1,1,0);
  42021. else if(sexstyle == 6) LoopingAnim(playerid,"SNM","SPANKEDP",4.1,0,1,1,1,0);
  42022. else if(sexstyle == 7) LoopingAnim(playerid,"SNM","SPANKING_ENDW",4.1,0,1,1,1,0);
  42023. else if(sexstyle == 8) LoopingAnim(playerid,"SNM","SPANKING_ENDP",4.1,0,1,1,1,0);
  42024. return 1;
  42025. }
  42026. if(strcmp(cmd, "/bj", true) == 0)
  42027. {
  42028. tmp = strtok(cmdtext, idx);
  42029. if(!strlen(tmp))
  42030. {
  42031. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /bj [style 1-12]{7DAEFF}");
  42032. return 1;
  42033. }
  42034. bjstyle = strval(tmp);
  42035. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  42036. {
  42037. SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
  42038. return 1;
  42039. }
  42040. if(bjstyle < 1 || bjstyle > 12)
  42041. {
  42042. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /bj [style 1-12]{7DAEFF}");
  42043. return 1;
  42044. }
  42045. if(bjstyle == 1) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_START_P",4.1,0,1,1,1,0);
  42046. else if(bjstyle == 2) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_START_W",4.1,0,1,1,1,0);
  42047. else if(bjstyle == 3) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_P",4.1,0,1,1,1,0);
  42048. else if(bjstyle == 4) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W",4.1,0,1,1,1,0);
  42049. else if(bjstyle == 5) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_END_P",4.1,0,1,1,1,0);
  42050. else if(bjstyle == 6) LoopingAnim(playerid,"BLOWJOBZ","BJ_COUCH_END_W",4.1,0,1,1,1,0);
  42051. else if(bjstyle == 7) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_START_P",4.1,0,1,1,1,0);
  42052. else if(bjstyle == 8) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_START_W",4.1,0,1,1,1,0);
  42053. else if(bjstyle == 9) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_LOOP_P",4.1,0,1,1,1,0);
  42054. else if(bjstyle == 10) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_LOOP_W",4.1,0,1,1,1,0);
  42055. else if(bjstyle == 11) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_END_P",4.1,0,1,1,1,0);
  42056. else if(bjstyle == 12) LoopingAnim(playerid,"BLOWJOBZ","BJ_STAND_END_W",4.1,0,1,1,1,0);
  42057. return 1;
  42058. }
  42059. if(strcmp(cmd,"/signal", true) == 0)
  42060. {
  42061. tmp = strtok(cmdtext, idx);
  42062. if(!strlen(tmp))
  42063. {
  42064. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /signal [1-2]{7DAEFF}");
  42065. return 1;
  42066. }
  42067. anumber = strval(tmp);
  42068. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /signal [1-2]{7DAEFF}"); return 1; }
  42069. if(anumber == 1) { LoopingAnim(playerid,"POLICE","CopTraf_Come",4.0,0,0,0,0,0); }
  42070. if(anumber == 2) { LoopingAnim(playerid,"POLICE","CopTraf_Stop",4.0,0,0,0,0,0); }
  42071. return 1;
  42072. }
  42073. if(strcmp(cmd, "/lean", true) == 0)
  42074. {
  42075. tmp = strtok(cmdtext, idx);
  42076. if(!strlen(tmp))
  42077. {
  42078. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /lean [1-2]{7DAEFF}");
  42079. return 1;
  42080. }
  42081. anumber = strval(tmp);
  42082. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /lean [1-2]{7DAEFF}"); return 1; }
  42083. if(anumber == 1) { LoopingAnim(playerid,"GANGS","leanIDLE",4.1,0,0,0,1,0); }
  42084. else if(anumber == 2) { LoopingAnim(playerid,"MISC","Plyrlean_loop",4.1,0,0,0,1,0); }
  42085. return 1;
  42086. }
  42087. if(strcmp(cmd, "/sleep", true) == 0)
  42088. {
  42089. tmp = strtok(cmdtext, idx);
  42090. if(!strlen(tmp))
  42091. {
  42092. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE /sleep [1-2]{7DAEFF}");
  42093. return 1;
  42094. }
  42095. anumber = strval(tmp);
  42096. if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"USAGE /sleep [1-2]"); return 1; }
  42097. if(anumber == 1) { LoopingAnim(playerid,"CRACK","crckdeth4",4.0,0,0,0,1,0); }
  42098. else if(anumber == 2) { LoopingAnim(playerid,"CRACK","crckidle2",4.0,0,0,0,1,0); }
  42099. return 1;
  42100. }
  42101. if(strcmp(cmd,"/fallover", true) == 0)
  42102. {
  42103. tmp = strtok(cmdtext, idx);
  42104. if(!strlen(tmp))
  42105. {
  42106. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fallover [1-4]{7DAEFF}");
  42107. return 1;
  42108. }
  42109. anumber = strval(tmp);
  42110. if(anumber < 1 || anumber > 4) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /fallover [1-4]{7DAEFF}"); return 1; }
  42111. if(anumber == 1) { LoopingAnim(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0); }
  42112. if(anumber == 2) { LoopingAnim(playerid,"PED","KO_shot_face",4.0,0,1,1,1,0); }
  42113. if(anumber == 3) { LoopingAnim(playerid,"PED","KO_shot_stom",4.0,0,1,1,1,0); }
  42114. if(anumber == 4) { LoopingAnim(playerid, "PED", "BIKE_fallR", 4.0, 0, 1, 1, 0, 0); }
  42115. return 1;
  42116. }
  42117. if(strcmp(cmd,"/wave", true) == 0)
  42118. {
  42119. tmp = strtok(cmdtext, idx);
  42120. if(!strlen(tmp))
  42121. {
  42122. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wave [1-3]{7DAEFF}");
  42123. return 1;
  42124. }
  42125. anumber = strval(tmp);
  42126. if(anumber < 1 || anumber > 3) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /wave [1-3]{7DAEFF}"); return 1; }
  42127. if(anumber == 1) { LoopingAnim(playerid,"ON_LOOKERS","wave_loop",4.0,1,0,0,0,0); }
  42128. if(anumber == 2) { OnePlayAnim(playerid,"KISSING","gfwave2",4.0,0,0,0,0,0); }
  42129. if(anumber == 3) { OnePlayAnim(playerid,"PED","endchat_03",4.0,0,0,0,0,0); }
  42130. return 1;
  42131. }
  42132. if(strcmp(cmd,"/cheer", true) == 0)
  42133. {
  42134. tmp = strtok(cmdtext, idx);
  42135. if(!strlen(tmp))
  42136. {
  42137. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /cheer [1-8]{7DAEFF}");
  42138. return 1;
  42139. }
  42140. anumber = strval(tmp);
  42141. if(anumber < 1 || anumber > 8) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /cheer [1-8]{7DAEFF}"); return 1; }
  42142. if(anumber == 1) { OnePlayAnim(playerid,"ON_LOOKERS","shout_01",4.0,0,0,0,0,0); }
  42143. if(anumber == 2) { OnePlayAnim(playerid,"ON_LOOKERS","shout_02",4.0,0,0,0,0,0); }
  42144. if(anumber == 3) { OnePlayAnim(playerid,"ON_LOOKERS","shout_in",4.0,0,0,0,0,0); }
  42145. if(anumber == 4) { LoopingAnim(playerid,"RIOT","RIOT_ANGRY_B",4.0,1,0,0,0,0); }
  42146. if(anumber == 5) { OnePlayAnim(playerid,"RIOT","RIOT_CHANT",4.0,0,0,0,0,0); }
  42147. if(anumber == 6) { OnePlayAnim(playerid,"RIOT","RIOT_shout",4.0,0,0,0,0,0); }
  42148. if(anumber == 7) { OnePlayAnim(playerid,"STRIP","PUN_HOLLER",4.0,0,0,0,0,0); }
  42149. if(anumber == 8) { OnePlayAnim(playerid,"OTB","wtchrace_win",4.0,0,0,0,0,0); }
  42150. return 1;
  42151. }
  42152. if(strcmp(cmd,"/deal", true) == 0)
  42153. {
  42154. tmp = strtok(cmdtext, idx);
  42155. if(!strlen(tmp))
  42156. {
  42157. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /deal [1-2]{7DAEFF}");
  42158. return 1;
  42159. }
  42160. anumber = strval(tmp);
  42161. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /deal [1-2]{7DAEFF}"); return 1; }
  42162. if(anumber == 1) { OnePlayAnim(playerid,"DEALER", "DEALER_DEAL",4.0,0,0,0,0,0); }
  42163. if(anumber == 2) { OnePlayAnim(playerid,"DEALER","shop_pay",4.0,0,0,0,0,0); }
  42164. return 1;
  42165. }
  42166. if(strcmp(cmd,"/chat", true) == 0)
  42167. {
  42168. tmp = strtok(cmdtext, idx);
  42169. if(!strlen(tmp))
  42170. {
  42171. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /chat [1-7]{7DAEFF}");
  42172. return 1;
  42173. }
  42174. anumber = strval(tmp);
  42175. if(anumber < 1 || anumber > 7) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /chat [1-7]{7DAEFF}"); return 1; }
  42176. if(anumber == 1) { OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); }
  42177. if(anumber == 2) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkA",4.0,0,0,0,0,0); }
  42178. if(anumber == 3) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkB",4.0,0,0,0,0,0); }
  42179. if(anumber == 4) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkE",4.0,0,0,0,0,0); }
  42180. if(anumber == 5) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkF",4.0,0,0,0,0,0); }
  42181. if(anumber == 6) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkG",4.0,0,0,0,0,0); }
  42182. if(anumber == 7) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,0,0); }
  42183. return 1;
  42184. }
  42185. if(strcmp(cmd,"/gesture", true) == 0)
  42186. {
  42187. tmp = strtok(cmdtext, idx);
  42188. if(!strlen(tmp))
  42189. {
  42190. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /gesture [1-15]{7DAEFF}");
  42191. return 1;
  42192. }
  42193. anumber = strval(tmp);
  42194. if(anumber < 1 || anumber > 15) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /gesture [1-15]{7DAEFF}"); return 1; }
  42195. if(anumber == 1) { OnePlayAnim(playerid,"GHANDS","gsign1",4.0,0,0,0,0,0); }
  42196. if(anumber == 2) { OnePlayAnim(playerid,"GHANDS","gsign1LH",4.0,0,0,0,0,0); }
  42197. if(anumber == 3) { OnePlayAnim(playerid,"GHANDS","gsign2",4.0,0,0,0,0,0); }
  42198. if(anumber == 4) { OnePlayAnim(playerid,"GHANDS","gsign2LH",4.0,0,0,0,0,0); }
  42199. if(anumber == 5) { OnePlayAnim(playerid,"GHANDS","gsign3",4.0,0,0,0,0,0);}
  42200. if(anumber == 6) { OnePlayAnim(playerid,"GHANDS","gsign3LH",4.0,0,0,0,0,0); }
  42201. if(anumber == 7) { OnePlayAnim(playerid,"GHANDS","gsign4",4.0,0,0,0,0,0); }
  42202. if(anumber == 8) { OnePlayAnim(playerid,"GHANDS","gsign4LH",4.0,0,0,0,0,0); }
  42203. if(anumber == 9) { OnePlayAnim(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0); }
  42204. if(anumber == 10) { OnePlayAnim(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0); }
  42205. if(anumber == 11) { OnePlayAnim(playerid,"GHANDS","gsign5LH",4.0,0,0,0,0,0); }
  42206. if(anumber == 12) { OnePlayAnim(playerid,"GANGS","Invite_No",4.0,0,0,0,0,0); }
  42207. if(anumber == 13) { OnePlayAnim(playerid,"GANGS","Invite_Yes",4.0,0,0,0,0,0); }
  42208. if(anumber == 14) { OnePlayAnim(playerid,"GANGS","prtial_gngtlkD",4.0,0,0,0,0,0); }
  42209. if(anumber == 15) { OnePlayAnim(playerid,"GANGS","smkcig_prtl",4.0,0,0,0,0,0); }
  42210. return 1;
  42211. }
  42212. if(strcmp(cmd,"/smoke", true) == 0)
  42213. {
  42214. tmp = strtok(cmdtext, idx);
  42215. if(!strlen(tmp))
  42216. {
  42217. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /smoke [1-2]{7DAEFF}");
  42218. return 1;
  42219. }
  42220. anumber = strval(tmp);
  42221. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /smoke [1-2]{7DAEFF}"); return 1; }
  42222. if(anumber == 1) { OnePlayAnim(playerid,"SMOKING","M_smk_in",4.0,0,0,0,0,0); }
  42223. if(anumber == 2) { LoopingAnim(playerid,"SMOKING","M_smklean_loop",4.0,1,0,0,0,0); }
  42224. return 1;
  42225. }
  42226. if(strcmp(cmd,"/hurt", true) == 0)
  42227. {
  42228. tmp = strtok(cmdtext, idx);
  42229. if(!strlen(tmp))
  42230. {
  42231. SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /hurt [1-2]{7DAEFF}");
  42232. return 1;
  42233. }
  42234. anumber = strval(tmp);
  42235. if(anumber < 1 || anumber > 2) { SendClientMessage(playerid,0xFF0000FF,"{7DAEFF}USAGE: /hurt [1-2]{7DAEFF}"); return 1; }
  42236. if(anumber == 1) { LoopingAnim(playerid,"SWAT","gnstwall_injurd",4.0,1,0,0,0,0); }
  42237. if(anumber == 2) { LoopingAnim(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); }
  42238. PlayerHurt[playerid] = 1;
  42239. return 1;
  42240. }
  42241. if(strcmp(cmd, "/checktime", true) == 0) { OnePlayAnim(playerid, "COP_AMBIENT", "Coplook_watch",4.0,0,0,0,0,0); return 1; }
  42242. if(strcmp("/relax", cmdtext, true) == 0) { LoopingAnim(playerid, "CRACK", "crckidle1",4.0,0,1,1,1,-1); return 1; }
  42243. if(strcmp("/dive", cmdtext, true) == 0) { LoopingAnim(playerid,"DODGE","Crush_Jump",4.0,0,1,1,1,0); return 1; }
  42244. if(strcmp("/showoff", cmdtext, true) == 0) { OnePlayAnim(playerid,"Freeweights","gym_free_celebrate",4.0,0,0,0,0,0); return 1; }
  42245. if(strcmp("/crabs", cmdtext, true) == 0) { OnePlayAnim(playerid,"MISC","Scratchballs_01",4.0,0,0,0,0,0); return 1; }
  42246. if(strcmp("/salute", cmdtext, true) == 0) { OnePlayAnim(playerid,"ON_LOOKERS","Pointup_loop",4.0,0,0,0,0,0); return 1; }
  42247. if(strcmp("/stop", cmdtext, true) == 0) { OnePlayAnim(playerid,"PED","endchat_01",4.0,0,0,0,0,0); return 1; }
  42248. if(strcmp("/washhands", cmdtext, true) == 0) { OnePlayAnim(playerid,"BD_FIRE","wash_up",4.0,0,0,0,0,0); return 1; }
  42249. if(strcmp("/cry", cmdtext, true) == 0) { LoopingAnim(playerid,"GRAVEYARD","mrnF_loop",4.0,1,0,0,0,0); return 1; }
  42250. if(strcmp("/what", cmdtext, true) == 0) { LoopingAnim(playerid,"RIOT","RIOT_ANGRY", 4.0, 0, 0, 0, 0, 0); return 1; }
  42251. if(strcmp(cmd, "/piss", true) == 0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING); return 1; }
  42252. if(strcmp(cmd, "/followme", true) == 0) { ApplyAnimation(playerid,"WUZI","Wuzi_follow",4.0,0,0,0,0,0); return 1; }
  42253. if(strcmp(cmd, "/greet", true) == 0) { ApplyAnimation(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0); return 1; }
  42254. if(strcmp(cmd, "/stand", true) == 0) { LoopingAnim(playerid,"WUZI","Wuzi_stand_loop", 4.0, 1, 0, 0, 0, 0); return 1; }
  42255. if(strcmp(cmd, "/hitch", true) == 0) { LoopingAnim(playerid,"MISC","Hiker_Pose", 4.0, 1, 0, 0, 0, 0); return 1; }
  42256. if(strcmp(cmd, "/bitchslap", true) == 0) { ApplyAnimation(playerid,"MISC","bitchslap",4.0,0,0,0,0,0); return 1; }
  42257. if(strcmp("/cpr", cmdtext, true) == 0) { OnePlayAnim(playerid,"MEDIC","CPR",4.0,0,0,0,0,0); return 1; }
  42258. if(strcmp(cmd, "/gift", true) == 0) { ApplyAnimation(playerid,"KISSING","gift_give",4.0,0,0,0,0,0); return 1; }
  42259. if(strcmp(cmd, "/slapass", true) == 0) { ApplyAnimation(playerid,"SWEET","sweet_ass_slap",4.0,0,0,0,0,0); return 1; }
  42260. if(strcmp(cmd, "/drunk", true) == 0) { LoopingAnim(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1); return 1; }
  42261. if (strcmp("/bomb", cmdtext, true) == 0) { ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); return 1; }
  42262. if(strcmp("/rob", cmdtext, true) == 0) { LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0); return 1; }
  42263. if (strcmp("/laugh", cmdtext, true) == 0) { ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); return 1; }
  42264. if (strcmp("/lookout", cmdtext, true) == 0) { ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); return 1; }
  42265. if (strcmp("/robman", cmdtext, true) == 0) { LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); return 1; }
  42266. if (strcmp("/hide", cmdtext, true, 3) == 0) { LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); return 1; }
  42267. if (strcmp("/vomit", cmdtext, true) == 0) { ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); return 1; }
  42268. if (strcmp("/eat", cmdtext, true) == 0) { ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); return 1; }
  42269. if (strcmp("/crack", cmdtext, true, 6) == 0) { LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); return 1; }
  42270. if(strcmp(cmd, "/fucku", true) == 0) { ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0); return 1; }
  42271. if(strcmp(cmd, "/taichi", true) == 0) { LoopingAnim(playerid,"PARK","Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0); return 1; }
  42272. if(strcmp(cmd, "/kiss", true) == 0) { ApplyAnimation(playerid,"KISSING","Playa_Kiss_01",4.0,0,0,0,0,0); return 1; }
  42273. if(strcmp(cmd,"/witness",true)==0)
  42274. {
  42275. if(IsPlayerConnected(playerid))
  42276. {
  42277. tmp = strtok(cmdtext, idx);
  42278. if(!strlen(tmp)) {
  42279. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /witness [Playerid/PartOfName]{7DAEFF}");
  42280. return 1;
  42281. }
  42282. giveplayerid = ReturnUser(tmp);
  42283. if(IsPlayerConnected(giveplayerid))
  42284. {
  42285. if(giveplayerid != INVALID_PLAYER_ID)
  42286. {
  42287. if(ProxDetectorS(8.0, playerid, giveplayerid))
  42288. {
  42289. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot offer to be your own witness."); return 1; }
  42290. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  42291. GetPlayerName(playerid, sendername, sizeof(sendername));
  42292. format(string, sizeof(string), "* You requested %s to be your Marriage Witness.", giveplayer);
  42293. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  42294. format(string, sizeof(string), "* %s just requested you to be their Marriage Witness (type /accept witness) to accept.", sendername);
  42295. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  42296. MarryWitnessOffer[giveplayerid] = playerid;
  42297. }
  42298. else
  42299. {
  42300. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  42301. return 1;
  42302. }
  42303. }
  42304. }
  42305. else
  42306. {
  42307. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  42308. return 1;
  42309. }
  42310. }
  42311. return 1;
  42312. }
  42313. if(strcmp(cmd,"/irc",true)==0)
  42314. {
  42315. if(IsPlayerConnected(playerid))
  42316. {
  42317. new x_nr[32];
  42318. x_nr = strtok(cmdtext, idx);
  42319. if(!strlen(x_nr)) {
  42320. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: (/irc join [channelnr] or /irc join [channelnr] [password]) (/irc Leave) (/irc Admins){7DAEFF}");
  42321. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc [name] [channelnr]{7DAEFF}");
  42322. SendClientMessage(playerid, COLOR_GRAD1, "Available names: MOTD, Password, NeedPass, Lock, Kick, Status");
  42323. return 1;
  42324. }
  42325. if(strcmp(x_nr,"join",true) == 0)
  42326. {
  42327. tmp = strtok(cmdtext, idx);
  42328. if(!strlen(tmp))
  42329. {
  42330. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc join [channelnr] or /irc join [channelnr] [password]{7DAEFF}");
  42331. return 1;
  42332. }
  42333. new channel = strvalEx(tmp);
  42334. if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
  42335. channel -= 1;
  42336. if(IRCInfo[channel][iLock] == 0)
  42337. {
  42338. if(IRCInfo[channel][iNeedPass] == 0)
  42339. {
  42340. JoinChannelNr(playerid, channel);
  42341. }
  42342. else
  42343. {
  42344. tmp = strtok(cmdtext, idx);
  42345. if(!strlen(tmp))
  42346. {
  42347. SendClientMessage(playerid, COLOR_WHITE, "There's a password required to join this Channel");
  42348. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc join [channelnr] [password]{7DAEFF}");
  42349. return 1;
  42350. }
  42351. JoinChannel(playerid,channel,tmp);
  42352. }
  42353. }
  42354. else
  42355. {
  42356. SendClientMessage(playerid, COLOR_GREY, "That Channel is Locked, please choose a different one.");
  42357. return 1;
  42358. }
  42359. }
  42360. else if(strcmp(x_nr,"status",true) == 0)
  42361. {
  42362. for(new i = 0; i < sizeof(IRCInfo); i++)
  42363. {
  42364. format(string, sizeof(string), "Channel %d: %d Players Connected.",i + 1, IRCInfo[i][iPlayers]);
  42365. SendClientMessage(playerid, COLOR_WHITE, string);
  42366. }
  42367. return 1;
  42368. }
  42369. else if(strcmp(x_nr,"password",true) == 0)
  42370. {
  42371. tmp = strtok(cmdtext, idx);
  42372. if(!strlen(tmp))
  42373. {
  42374. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc password [channelnr] [password]{7DAEFF}");
  42375. return 1;
  42376. }
  42377. new channel = strvalEx(tmp);
  42378. if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
  42379. channel -= 1;
  42380. new wstring[128];
  42381. GetPlayerName(playerid, sendername, sizeof(sendername));
  42382. format(string, sizeof(string), "%s", sendername);
  42383. strmid(wstring, string, 0, strlen(string), 255);
  42384. if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
  42385. {
  42386. tmp = strtok(cmdtext, idx);
  42387. if(!strlen(tmp))
  42388. {
  42389. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc password [channelnr] [password]{7DAEFF}");
  42390. return 1;
  42391. }
  42392. strmid(IRCInfo[channel][iPassword], tmp, 0, strlen(tmp), 255);
  42393. format(string, sizeof(string), "You've changed the IRC Channel's Password to: %s.",IRCInfo[channel][iPassword]);
  42394. SendClientMessage(playerid, COLOR_YELLOW, string);
  42395. SaveIRC();
  42396. return 1;
  42397. }
  42398. else
  42399. {
  42400. SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
  42401. return 1;
  42402. }
  42403. }
  42404. else if(strcmp(x_nr,"needpass",true) == 0)
  42405. {
  42406. tmp = strtok(cmdtext, idx);
  42407. if(!strlen(tmp))
  42408. {
  42409. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc needpass [channelnr]{7DAEFF}");
  42410. return 1;
  42411. }
  42412. new channel = strvalEx(tmp);
  42413. if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
  42414. channel -= 1;
  42415. new wstring[128];
  42416. GetPlayerName(playerid, sendername, sizeof(sendername));
  42417. format(string, sizeof(string), "%s", sendername);
  42418. strmid(wstring, string, 0, strlen(string), 255);
  42419. if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
  42420. {
  42421. if(IRCInfo[channel][iNeedPass] != 0)
  42422. {
  42423. IRCInfo[channel][iNeedPass] = 0;
  42424. SendClientMessage(playerid, COLOR_YELLOW, "Players won't have to fill in a password in order to join the IRC Channel now.");
  42425. }
  42426. else
  42427. {
  42428. IRCInfo[channel][iNeedPass] = 1;
  42429. SendClientMessage(playerid, COLOR_YELLOW, "Players must fill in a password in order to join the IRC Channel now.");
  42430. }
  42431. SaveIRC();
  42432. return 1;
  42433. }
  42434. else
  42435. {
  42436. SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
  42437. return 1;
  42438. }
  42439. }
  42440. else if(strcmp(x_nr,"lock",true) == 0)
  42441. {
  42442. tmp = strtok(cmdtext, idx);
  42443. if(!strlen(tmp))
  42444. {
  42445. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc lock [channelnr]{7DAEFF}");
  42446. return 1;
  42447. }
  42448. new channel = strvalEx(tmp);
  42449. if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
  42450. channel -= 1;
  42451. new wstring[128];
  42452. GetPlayerName(playerid, sendername, sizeof(sendername));
  42453. format(string, sizeof(string), "%s", sendername);
  42454. strmid(wstring, string, 0, strlen(string), 255);
  42455. if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
  42456. {
  42457. if(IRCInfo[channel][iLock] != 0)
  42458. {
  42459. IRCInfo[channel][iLock] = 0;
  42460. SendClientMessage(playerid, COLOR_YELLOW, "You've unlocked the IRC Channel.");
  42461. }
  42462. else
  42463. {
  42464. IRCInfo[channel][iLock] = 1;
  42465. SendClientMessage(playerid, COLOR_YELLOW, "You've locked the IRC Channel.");
  42466. }
  42467. SaveIRC();
  42468. return 1;
  42469. }
  42470. else
  42471. {
  42472. SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
  42473. return 1;
  42474. }
  42475. }
  42476. else if(strcmp(x_nr,"motd",true) == 0)
  42477. {
  42478. tmp = strtok(cmdtext, idx);
  42479. if(!strlen(tmp))
  42480. {
  42481. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc motd [channelnr] [motdtext]{7DAEFF}");
  42482. return 1;
  42483. }
  42484. new channel = strvalEx(tmp);
  42485. if(channel < 1 || channel > 10) { SendClientMessage(playerid, COLOR_GREY, "Channel Number can't be below 1 or above 10."); return 1; }
  42486. channel -= 1;
  42487. new wstring[128];
  42488. GetPlayerName(playerid, sendername, sizeof(sendername));
  42489. format(string, sizeof(string), "%s", sendername);
  42490. strmid(wstring, string, 0, strlen(string), 255);
  42491. if(strcmp(IRCInfo[channel][iAdmin],wstring, true ) == 0 )
  42492. {
  42493. new length = strlen(cmdtext);
  42494. while ((idx < length) && (cmdtext[idx] <= ' '))
  42495. {
  42496. idx++;
  42497. }
  42498. new offset = idx;
  42499. new result[64];
  42500. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  42501. {
  42502. result[idx - offset] = cmdtext[idx];
  42503. idx++;
  42504. }
  42505. result[idx - offset] = EOS;
  42506. if(!strlen(result))
  42507. {
  42508. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc motd [motdtext]{7DAEFF}");
  42509. return 1;
  42510. }
  42511. strmid(IRCInfo[channel][iMOTD], result, 0, strlen(result), 255);
  42512. SendClientMessage(playerid, COLOR_YELLOW, "{7DAEFF}You've adjusted the IRC Channel's MOTD Text.{7DAEFF}");
  42513. SaveIRC();
  42514. return 1;
  42515. }
  42516. else
  42517. {
  42518. SendClientMessage(playerid, COLOR_GREY, "You are not the Admin of that Channel.");
  42519. return 1;
  42520. }
  42521. }
  42522. else if(strcmp(x_nr,"leave",true) == 0)
  42523. {
  42524. if(PlayersChannel[playerid] < 999)
  42525. {
  42526. GetPlayerName(playerid, sendername, sizeof(sendername));
  42527. format(string, sizeof(string), "* %s has left the Channel.", sendername);
  42528. SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
  42529. IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
  42530. PlayersChannel[playerid] = 999;
  42531. return 1;
  42532. }
  42533. else
  42534. {
  42535. SendClientMessage(playerid, COLOR_GREY, " You are not in an IRC Channel !");
  42536. return 1;
  42537. }
  42538. }
  42539. else if(strcmp(x_nr,"admins",true) == 0)
  42540. {
  42541. for(new i = 0; i < sizeof(IRCInfo); i++)
  42542. {
  42543. format(string, sizeof(string), "Channel %d: %s.", i + 1, IRCInfo[i][iAdmin]);
  42544. SendClientMessage(playerid, COLOR_WHITE, string);
  42545. }
  42546. return 1;
  42547. }
  42548. else if(strcmp(x_nr,"kick",true) == 0)
  42549. {
  42550. if(PlayersChannel[playerid] == 999)
  42551. {
  42552. SendClientMessage(playerid, COLOR_GREY, "You are not in an IRC Channel.");
  42553. return 1;
  42554. }
  42555. new wstring[128];
  42556. GetPlayerName(playerid, sendername, sizeof(sendername));
  42557. format(string, sizeof(string), "%s", sendername);
  42558. strmid(wstring, string, 0, strlen(string), 255);
  42559. if(strcmp(IRCInfo[PlayersChannel[playerid]][iAdmin],wstring, true ) == 0 )
  42560. {
  42561. tmp = strtok(cmdtext, idx);
  42562. if(!strlen(tmp))
  42563. {
  42564. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /irc kick [playerid/PartOfName]{7DAEFF}");
  42565. return 1;
  42566. }
  42567. giveplayerid = ReturnUser(tmp);
  42568. if(IsPlayerConnected(giveplayerid))
  42569. {
  42570. if(giveplayerid != INVALID_PLAYER_ID)
  42571. {
  42572. if(PlayersChannel[giveplayerid] == PlayersChannel[playerid])
  42573. {
  42574. GetPlayerName(playerid, sendername, sizeof(sendername));
  42575. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  42576. format(string, sizeof(string), "* You've kicked %s out of your IRC Channel.",giveplayer);
  42577. SendClientMessage(playerid, COLOR_YELLOW, string);
  42578. format(string, sizeof(string), "* You've been kicked out of the IRC Channel by Channel Admin: %s.",sendername);
  42579. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  42580. format(string, sizeof(string), "* %s has left the Channel (Kicked).", sendername);
  42581. SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
  42582. IRCInfo[PlayersChannel[giveplayerid]][iPlayers] -= 1;
  42583. PlayersChannel[giveplayerid] = 999;
  42584. }
  42585. else
  42586. {
  42587. SendClientMessage(playerid, COLOR_GREY, " That player is not in your IRC Channel !");
  42588. return 1;
  42589. }
  42590. }
  42591. }
  42592. else
  42593. {
  42594. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  42595. return 1;
  42596. }
  42597. }
  42598. else
  42599. {
  42600. SendClientMessage(playerid, COLOR_GREY, " You are not the Admin of the Channel !");
  42601. return 1;
  42602. }
  42603. }
  42604. else
  42605. {
  42606. SendClientMessage(playerid, COLOR_GREY, " Invalid IRC Channel Number ! ");
  42607. return 1;
  42608. }
  42609. }
  42610. return 1;
  42611. }
  42612. if(strcmp(cmd,"/i",true)==0)
  42613. {
  42614. if(IsPlayerConnected(playerid))
  42615. {
  42616. if(PlayersChannel[playerid] == 999)
  42617. {
  42618. SendClientMessage(playerid, COLOR_GREY, " You are not in an IRC Channel !");
  42619. return 1;
  42620. }
  42621. if(PlayerInfo[playerid][pMuted] == 1)
  42622. {
  42623. SendClientMessage(playerid, COLOR_GREY, " You cannot speak, you have been silenced !");
  42624. return 1;
  42625. }
  42626. GetPlayerName(playerid, sendername, sizeof(sendername));
  42627. new length = strlen(cmdtext);
  42628. while ((idx < length) && (cmdtext[idx] <= ' '))
  42629. {
  42630. idx++;
  42631. }
  42632. new offset = idx;
  42633. new result[64];
  42634. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  42635. {
  42636. result[idx - offset] = cmdtext[idx];
  42637. idx++;
  42638. }
  42639. result[idx - offset] = EOS;
  42640. if(!strlen(result))
  42641. {
  42642. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /i [irc chat]{7DAEFF}");
  42643. return 1;
  42644. }
  42645. format(string, sizeof(string), "* IRC %s: %s.", sendername, result);
  42646. SendIRCMessage(PlayersChannel[playerid], COLOR_YELLOW2, string);
  42647. }
  42648. return 1;
  42649. }
  42650. if(strcmp(cmd, "/wt", true) == 0)
  42651. {
  42652. if(IsPlayerConnected(playerid))
  42653. {
  42654. if(PlayerInfo[playerid][pWT]!=1)
  42655. {
  42656. SendClientMessage(playerid,COLOR_GREY,"You don`t have a Walkie Talkie.");
  42657. return 1;
  42658. }
  42659. if(WTOnline[playerid] > 0)
  42660. {
  42661. SendClientMessage(playerid, COLOR_GREY, " Your Walkie Talkie is Off !");
  42662. return 1;
  42663. }
  42664. GetPlayerName(playerid, sendername, sizeof(sendername));
  42665. new length = strlen(cmdtext);
  42666. while ((idx < length) && (cmdtext[idx] <= ' '))
  42667. {
  42668. idx++;
  42669. }
  42670. new offset = idx;
  42671. new result[96];
  42672. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  42673. {
  42674. result[idx - offset] = cmdtext[idx];
  42675. idx++;
  42676. }
  42677. result[idx - offset] = EOS;
  42678. if(!strlen(result))
  42679. {
  42680. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /wt [message]{7DAEFF}");
  42681. return 1;
  42682. }
  42683. new channel = PlayerInfo[playerid][pWTc];
  42684. format(string, sizeof(string), "** Walkie Talkie %s: %s.", sendername, result);
  42685. if(PlayerInfo[playerid][pWTc] > 0 && PlayerInfo[playerid][pWTc] < 1000000)
  42686. {
  42687. SendWTMessage(channel, 0x638F9CFF, string);
  42688. SetPlayerChatBubble(playerid,string, 0x638F9CFF,30.0,10000);
  42689. printf("%s", string);
  42690. // format(string, sizeof(string), "* %s Talked in their Walkie Talkie.", sendername);
  42691. // ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  42692. return 1;
  42693. }
  42694. else
  42695. {
  42696. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a channel !");
  42697. return 1;
  42698. }
  42699. }
  42700. return 1;
  42701. }
  42702. if(strcmp(cmd, "/channel", true) == 0)
  42703. {
  42704. if(IsPlayerConnected(playerid))
  42705. {
  42706. if(PlayerInfo[playerid][pWT]!= 1)
  42707. {
  42708. SendClientMessage(playerid,COLOR_GREY,"You don`t have a Walkie Talkie.");
  42709. return 1;
  42710. }
  42711. tmp = strtok(cmdtext, idx);
  42712. if(!strlen(tmp))
  42713. {
  42714. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /channel [channel number]{7DAEFF}");
  42715. return 1;
  42716. }
  42717. new channel = strvalEx(tmp);
  42718. if (channel < 1 || channel > 999999)
  42719. return SendClientMessage(playerid, COLOR_GRAD1, "The channel number must not be below 1 or above 999999.");
  42720. PlayerInfo[playerid][pWTc] = channel;
  42721. format(string, sizeof(string), "* You have set your Walkie Talkie to channel to %d.", channel);
  42722. SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
  42723. }
  42724. return 1;
  42725. }
  42726. if(strcmp(cmd, "/togWT", true) == 0)
  42727. {
  42728. if(IsPlayerConnected(playerid))
  42729. {
  42730. if(!WTOnline[playerid])
  42731. {
  42732. WTOnline[playerid] = 1;
  42733. SendClientMessage(playerid, COLOR_GRAD2, " Your Walkie Talkie is now turned off !");
  42734. }
  42735. else if(WTOnline[playerid])
  42736. {
  42737. WTOnline[playerid] = 0;
  42738. SendClientMessage(playerid, COLOR_GRAD2, "Your Walkie Talkie now is turned on.");
  42739. }
  42740. }
  42741. return 1;
  42742. }
  42743. if(strcmp(cmd,"/settax",true)==0)
  42744. {
  42745. if(IsPlayerConnected(playerid))
  42746. {
  42747. if(PlayerInfo[playerid][pLeader] != 6)
  42748. {
  42749. SendClientMessage(playerid, COLOR_GREY, "You are not the Governor.");
  42750. return 1;
  42751. }
  42752. tmp = strtok(cmdtext, idx);
  42753. if(!strlen(tmp))
  42754. {
  42755. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /settax [percent]{7DAEFF}");
  42756. return 1;
  42757. }
  42758. moneys = strvalEx(tmp);
  42759. if(moneys < 1 || moneys > 50) { SendClientMessage(playerid, COLOR_GREY, "Tax rate may not be below 1 or above 50."); return 1; }
  42760. Tax = moneys;
  42761. SaveStuff();
  42762. format(string, sizeof(string), "* The Income Tax has been set to %d percent per paycheck.", Tax);
  42763. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  42764. }
  42765. return 1;
  42766. }
  42767. if(strcmp(cmd, "/deliver", true) == 0)
  42768. {
  42769. if(IsPlayerConnected(playerid))
  42770. {
  42771. if(PlayerInfo[playerid][pJob] == 15 || IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  42772. {
  42773. if(IsACop(playerid) || IsAAgent(playerid))
  42774. {
  42775. if(PlayerInfo[playerid][pOnDuty] == 0)
  42776. {
  42777. SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
  42778. return 1;
  42779. }
  42780. if(PlayerInfo[playerid][pMember] == 1)
  42781. {
  42782. if(PlayerInfo[playerid][pRank] < 1)
  42783. {
  42784. SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
  42785. return 1;
  42786. }
  42787. }
  42788. else
  42789. {
  42790. if(PlayerInfo[playerid][pRank] < 2)
  42791. {
  42792. SendClientMessage(playerid, COLOR_GREY, "Your rank is not high enough.");
  42793. return 1;
  42794. }
  42795. }
  42796. if(!IsPlayerInRangeOfPoint(playerid,8.0,1993.1749,-2313.1492,13.5469))
  42797. {
  42798. SendClientMessage(playerid, COLOR_GREY, "You are not at the Los Santos Airport.");
  42799. return 1;
  42800. }
  42801. tmp = strtok(cmdtext, idx);
  42802. if(!strlen(tmp))
  42803. {
  42804. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /deliver [playerid/PartOfName]{7DAEFF}");
  42805. return 1;
  42806. }
  42807. giveplayerid = ReturnUser(tmp);
  42808. if(IsPlayerConnected(giveplayerid))
  42809. {
  42810. if(giveplayerid != INVALID_PLAYER_ID)
  42811. {
  42812. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into Fort DeMorgan."); return 1; }
  42813. if(IsACop(giveplayerid)) { SendClientMessage(playerid, COLOR_GREY, "We do not accept other police officers."); return 1; }
  42814. if(PlayerInfo[giveplayerid][pWantedLevel] < 6) { SendClientMessage(playerid, COLOR_GREY, "Player must be atleast Wanted Level 6."); return 1; }
  42815. if(ProxDetectorS(8.0, playerid, giveplayerid))
  42816. {
  42817. if(LoadingCashType[giveplayerid] != 0)
  42818. {
  42819. LoadingCashType[giveplayerid] = 0;
  42820. LoadingCashTime[giveplayerid] = 0;
  42821. LoadedCash[giveplayerid] = 0;
  42822. BankRobbery = 0;
  42823. LoadingCash = 0;
  42824. DisablePlayerCheckpoint(giveplayerid);
  42825. RemovePlayerAttachedObject(giveplayerid,bankbag);
  42826. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  42827. SetTimer("CloseTheVault", 30000, 0);
  42828. VPass = 100000 + random(899999);
  42829. BankRobberyTime = 2;
  42830. SaveStuff();
  42831. }
  42832. GetPlayerName(playerid, sendername, sizeof(sendername));
  42833. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  42834. format(string, sizeof(string), "* You have sent %s to Fort DeMorgan.", giveplayer);
  42835. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  42836. format(string, sizeof(string), "* %s has sent you to Fort DeMorgan.", sendername);
  42837. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  42838. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
  42839. ClearGuns(giveplayerid);
  42840. ResetPlayerWeapons(giveplayerid);
  42841. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  42842. PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
  42843. SetPlayerInterior(giveplayerid, 1); // COMMENTED
  42844. SetPlayerWantedLevel(giveplayerid, 0);
  42845. SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
  42846. PlayerInfo[giveplayerid][pJailed] = 2;
  42847. PlayerInfo[giveplayerid][pJailTime] = 3600;
  42848. SetPlayerToTeamColor(giveplayerid);
  42849. OnPlayerSave(giveplayerid);
  42850. SetPlayerSkin(giveplayerid, 50); // COMMENTED
  42851. //new prison;
  42852. new rand = random(sizeof(PrisonSpawns)); // COMMENTED
  42853. SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
  42854. SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
  42855. format(PlayerInfo[giveplayerid][pPrisonedBy], 32, "%s (Cop)", PlayerName(playerid));
  42856. format(PlayerInfo[giveplayerid][pPrisonReason], 32, "Most Wanted Criminal");
  42857. }
  42858. }
  42859. else
  42860. {
  42861. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  42862. return 1;
  42863. }
  42864. }
  42865. else
  42866. {
  42867. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  42868. return 1;
  42869. }
  42870. }
  42871. }
  42872. else
  42873. {
  42874. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  42875. return 1;
  42876. }
  42877. }
  42878. return 1;
  42879. }
  42880.  
  42881. if(strcmp(cmd, "/cdeliver", true) == 0)
  42882. {
  42883. if(IsPlayerConnected(playerid))
  42884. {
  42885. if(IsPlayerInRangeOfPoint(playerid,40.0,1028.0942,1046.1918,11.0000))
  42886. {
  42887. if(IsAAgent(playerid))
  42888. {
  42889. tmp = strtok(cmdtext, idx);
  42890. if(!strlen(tmp))
  42891. {
  42892. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /cdeliver [playerid/PartOfName]{7DAEFF}");
  42893. return 1;
  42894. }
  42895. giveplayerid = ReturnUser(tmp);
  42896. if(IsPlayerConnected(giveplayerid))
  42897. {
  42898. if(giveplayerid != INVALID_PLAYER_ID)
  42899. {
  42900. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into CIA Detention."); return 1; }
  42901. if(ProxDetectorS(8.0, playerid, giveplayerid))
  42902. {
  42903. GetPlayerName(playerid, sendername, sizeof(sendername));
  42904. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  42905. format(string, sizeof(string), "* You have sent %s to CIA Detention.", giveplayer);
  42906. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  42907. format(string, sizeof(string), "* %s has sent you to CIA Detention.", sendername);
  42908. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  42909. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~b~CIA Detention", 5000, 3);
  42910. ClearGuns(giveplayerid);
  42911. ResetPlayerWeapons(giveplayerid);
  42912. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  42913. PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
  42914. SetPlayerInterior(giveplayerid, 1); // COMMENTED
  42915. SetPlayerWantedLevel(giveplayerid, 0);
  42916. SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
  42917. PlayerInfo[giveplayerid][pJailed] = 2;
  42918. PlayerInfo[giveplayerid][pJailTime] = 5000;
  42919. SetPlayerToTeamColor(giveplayerid);
  42920. OnPlayerSave(giveplayerid);
  42921. SetPlayerSkin(giveplayerid, 50); // COMMENTED
  42922. //new prison;
  42923. new rand = random(sizeof(CIASpawns)); // COMMENTED
  42924. SetPlayerPos(giveplayerid, CIASpawns[rand][0], CIASpawns[rand][1], CIASpawns[rand][2]);
  42925. SetPlayerFacingAngle(giveplayerid, CIASpawns[rand][3]);
  42926. }
  42927. }
  42928. else
  42929. {
  42930. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  42931. return 1;
  42932. }
  42933. }
  42934. else
  42935. {
  42936. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  42937. return 1;
  42938. }
  42939. }
  42940. SendClientMessage(playerid, COLOR_GREY, " You are not in the CIA !");
  42941. return 1;
  42942. }
  42943. SendClientMessage(playerid, COLOR_GREY, " You are not at the detention point !");
  42944. return 1;
  42945. }
  42946. SendClientMessage(playerid, COLOR_GREY, " You are not a logged in !");
  42947. return 1;
  42948. }
  42949. if(strcmp(cmd, "/ndeliver", true) == 0)
  42950. {
  42951. if(IsPlayerConnected(playerid))
  42952. {
  42953. if(IsPlayerInRangeOfPoint(playerid,40.0,1789.1893,-1570.7909,1636.9736) || IsPlayerInRangeOfPoint(playerid,90.0,196.0748,1863.6881,19.7967) || IsPlayerInRangeOfPoint(playerid,10.0,449.3295,-86.3893,999.5547))
  42954. {
  42955. if(IsANG(playerid))
  42956. {
  42957. if(PlayerInfo[playerid][pOnDuty] == 0)
  42958. {
  42959. SendClientMessage(playerid, COLOR_GREY, "You are not on Duty.");
  42960. return 1;
  42961. }
  42962. tmp = strtok(cmdtext, idx);
  42963. if(!strlen(tmp))
  42964. {
  42965. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /ndeliver [playerid/PartOfName]{7DAEFF}");
  42966. return 1;
  42967. }
  42968. giveplayerid = ReturnUser(tmp);
  42969. if(IsPlayerConnected(giveplayerid))
  42970. {
  42971. if(giveplayerid != INVALID_PLAYER_ID)
  42972. {
  42973. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Can't throw yourself into Fort DeMorgan."); return 1; }
  42974. if(IsANG(giveplayerid)) { SendClientMessage(playerid, COLOR_GREY, "We do not accept other Soldiers."); return 1; }
  42975. if(ProxDetectorS(8.0, playerid, giveplayerid))
  42976. {
  42977. if(LoadingCashType[giveplayerid] != 0)
  42978. {
  42979. LoadingCashType[giveplayerid] = 0;
  42980. LoadingCashTime[giveplayerid] = 0;
  42981. LoadedCash[giveplayerid] = 0;
  42982. BankRobbery = 0;
  42983. LoadingCash = 0;
  42984. DisablePlayerCheckpoint(giveplayerid);
  42985. RemovePlayerAttachedObject(giveplayerid,bankbag);
  42986. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  42987. SetTimer("CloseTheVault", 30000, 0);
  42988. VPass = 100000 + random(899999);
  42989. BankRobberyTime = 2;
  42990. SaveStuff();
  42991. }
  42992. GetPlayerName(playerid, sendername, sizeof(sendername));
  42993. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  42994. format(string, sizeof(string), "* You have sent %s to Fort DeMorgan.", giveplayer);
  42995. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  42996. format(string, sizeof(string), "* %s has sent you to Fort DeMorgan.", sendername);
  42997. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  42998. GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Fort DeMorgan", 5000, 3);
  42999. ClearGuns(giveplayerid);
  43000. ResetPlayerWeapons(giveplayerid);
  43001. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  43002. PlayerInfo[giveplayerid][pInt] = 1; // COMMENTED
  43003. SetPlayerInterior(giveplayerid, 1); // COMMENTED
  43004. SetPlayerWantedLevel(giveplayerid, 0);
  43005. SetPlayerColor(giveplayerid, TCOLOR_PRISON); // COMMENTED
  43006. PlayerInfo[giveplayerid][pJailed] = 2;
  43007. PlayerInfo[giveplayerid][pJailTime] = 1800;
  43008. SetPlayerToTeamColor(giveplayerid);
  43009. OnPlayerSave(giveplayerid);
  43010. SetPlayerSkin(giveplayerid, 50); // COMMENTED
  43011. //new prison;
  43012. new rand = random(sizeof(PrisonSpawns)); // COMMENTED
  43013. SetPlayerPos(giveplayerid, PrisonSpawns[rand][0], PrisonSpawns[rand][1], PrisonSpawns[rand][2]);
  43014. SetPlayerFacingAngle(giveplayerid, PrisonSpawns[rand][3]);
  43015. }
  43016. }
  43017. else
  43018. {
  43019. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  43020. return 1;
  43021. }
  43022. }
  43023. else
  43024. {
  43025. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  43026. return 1;
  43027. }
  43028. }
  43029. SendClientMessage(playerid, COLOR_GREY, "You are not a National Guard.");
  43030. return 1;
  43031. }
  43032. SendClientMessage(playerid, COLOR_GREY, "You are not inside DeMorgan grounds .");
  43033. return 1;
  43034. }
  43035. SendClientMessage(playerid, COLOR_GREY, "You are not a logged in.");
  43036. return 1;
  43037. }
  43038. if(strcmp(cmd, "/report", true) == 0)
  43039. {
  43040. if(IsPlayerConnected(playerid))
  43041. {
  43042. if((noreport))
  43043. {
  43044. SendClientMessage(playerid, COLOR_GREY, "The Report channel has been disabled by an Admin.");
  43045. return 1;
  43046. }
  43047. if(PlayerInfo[playerid][pReportMuted] == 1)
  43048. {
  43049. SendClientMessage(playerid, COLOR_GREY, "You are banned from using /report.");
  43050. return 1;
  43051. }
  43052. if(JustReported[playerid] == 1)
  43053. {
  43054. SendClientMessage(playerid, COLOR_GREY, "Wait 10 seconds before sending another report.");
  43055. return 1;
  43056. }
  43057. GetPlayerName(playerid, sendername, sizeof(sendername));
  43058. new length = strlen(cmdtext);
  43059. while ((idx < length) && (cmdtext[idx] <= ' '))
  43060. {
  43061. idx++;
  43062. }
  43063. new offset = idx;
  43064. new result[96];
  43065. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  43066. {
  43067. result[idx - offset] = cmdtext[idx];
  43068. idx++;
  43069. }
  43070. result[idx - offset] = EOS;
  43071. if(!strlen(result))
  43072. {
  43073. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /report [text]{7DAEFF}");
  43074. return 1;
  43075. }
  43076. JustReported[playerid] = 1;
  43077. SetTimerEx("ReportReset", 10000, false, "i", playerid);
  43078. format(string, sizeof(string), "* Report from [%d]%s: %s",playerid, sendername, (result));
  43079. ABroadCast(COLOR_LIGHTYELLOW,string,1);
  43080. format(string, sizeof(string), "Your report has been submitted to the online Administrators.", result);
  43081. SendClientMessage(playerid, COLOR_YELLOW, string);
  43082. }
  43083. return 1;
  43084. }
  43085. if(strcmp(cmd, "/change", true) == 0) // Trashman - Need to add trashman!
  43086. {
  43087. if(IsPlayerConnected(playerid))
  43088. {
  43089. if(!IsPlayerInRangeOfPoint(playerid,2,754.5243, -39.7095, 1000.5859) && !IsPlayerInRangeOfPoint(playerid, 2, 2200.5842,-1970.2686,13.7841))
  43090. {
  43091. SendClientMessage(playerid, COLOR_GRAD2, "You are not at the locker.");
  43092. return 1;
  43093. }
  43094. GetPlayerName(playerid, sendername, sizeof(sendername));
  43095. if(IsPlayerInRangeOfPoint(playerid, 2, 754.5243, -39.7095, 1000.5859))
  43096. {
  43097. if(PlayerInfo[playerid][pClothes] != 0)
  43098. {
  43099. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  43100. PlayerInfo[playerid][pClothes] = 0;
  43101. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  43102. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  43103. format(string, sizeof(string), "* %s has changed back into their clothes.",sendername);
  43104. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43105. }
  43106. else
  43107. {
  43108. new uniforms[2];
  43109. uniforms[0] = 203;
  43110. uniforms[1] = 204;
  43111. new rand = random(sizeof(uniforms));
  43112. SetPlayerSkin(playerid, uniforms[rand]);
  43113. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  43114. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  43115. PlayerInfo[playerid][pClothes] = uniforms[rand];
  43116. format(string, sizeof(string), "* %s has changed into a karate uniform.",sendername);
  43117. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43118. }
  43119. }
  43120. /* else if(IsPlayerInRangeOfPoint(playerid, 2, 2200.5842,-1970.2686,13.7841)) // Trashman
  43121. {
  43122. if(PlayerInfo[playerid][pClothes] != 0)
  43123. {
  43124. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  43125. PlayerInfo[playerid][pClothes] = 0;
  43126. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  43127. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  43128. format(string, sizeof(string), "* %s has changed back into their clothes.",sendername);
  43129. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43130. }
  43131. else
  43132. {
  43133. new uniforms[2];
  43134. uniforms[0] = 79;
  43135. uniforms[1] = 135;
  43136. new rand = random(sizeof(uniforms));
  43137. SetPlayerSkin(playerid, uniforms[rand]);
  43138. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  43139. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  43140. PlayerInfo[playerid][pClothes] = uniforms[rand];
  43141. format(string, sizeof(string), "* %s has changed into a trashman uniform.",sendername);
  43142. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43143. }
  43144. }*/
  43145. }
  43146. return 1;
  43147. }
  43148. if(strcmp(cmd, "/clothes", true) == 0)
  43149. {
  43150. if(IsPlayerConnected(playerid))
  43151. {
  43152. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pFMember] != 255)
  43153. {
  43154. if(IsAtClothShop(playerid))
  43155. {
  43156. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the Char you want to use.");
  43157. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  43158. TogglePlayerControllable(playerid, 0);
  43159. SelectChar[playerid] = 255;
  43160. SelectCharPlace[playerid] = 1;
  43161. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { ChosenSkin[playerid] = 141; SelectCharID[playerid] = 1; } //LSPD
  43162. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { ChosenSkin[playerid] = 286; SelectCharID[playerid] = 2; } //FBI
  43163. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { ChosenSkin[playerid] = 34; SelectCharID[playerid] = 3; } //SASP
  43164. else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { ChosenSkin[playerid] = 279; SelectCharID[playerid] = 4;} //Paramedic
  43165. else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { ChosenSkin[playerid] = 287; SelectCharID[playerid] = 5; } //National Guards
  43166. else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { ChosenSkin[playerid] = 9; SelectCharID[playerid] = 6; } //Senate
  43167. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { ChosenSkin[playerid] = 294; SelectCharID[playerid] = 7;} //CIA
  43168. else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { ChosenSkin[playerid] = 78; SelectCharID[playerid] = 8; } //Hitman
  43169. else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { ChosenSkin[playerid] = 150; SelectCharID[playerid] = 9; } //News
  43170. else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { ChosenSkin[playerid] = 61; SelectCharID[playerid] = 10; } //Taxi
  43171. else if(PlayerInfo[playerid][pFMember] != 255) { ChosenSkin[playerid] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySkin1]; SelectCharID[playerid] = 11; } //Family Member
  43172. SetPlayerSkin(playerid, ChosenSkin[playerid]);
  43173. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  43174. ChangeUniform[playerid] = 1;
  43175. }
  43176. else
  43177. {
  43178. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Clothing Shop !");
  43179. return 1;
  43180. }
  43181. }
  43182. else
  43183. {
  43184. SendClientMessage(playerid,COLOR_GREY, " You are not in a Family / Organisation !");
  43185. return 1;
  43186. }
  43187. }
  43188. return 1;
  43189. }
  43190.  
  43191. if(strcmp(cmd, "/quitfaction", true) == 0)
  43192. {
  43193. if(IsPlayerConnected(playerid))
  43194. {
  43195. if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] < 255)
  43196. {
  43197. new ftext[20];
  43198. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { ftext = "Police Force"; }
  43199. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { ftext = "FBI"; }
  43200. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { ftext = "SAST"; }
  43201. else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { ftext = "Firemen/Ambulance"; }
  43202. else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { ftext = "National Guards"; }
  43203. else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { ftext = "Senate"; }
  43204. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { ftext = "CIA"; }
  43205. else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { ftext = "Hitman Agency"; }
  43206. else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { ftext = "News Agency"; }
  43207. else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { ftext = "Taxi Cab Company"; }
  43208. if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 5)
  43209. {
  43210. if(PlayerInfo[playerid][pRequestingBackup] == 1)
  43211. {
  43212. BackupClear(playerid,0);
  43213. }
  43214. PlayerHasTazer[playerid] = 0;
  43215. }
  43216. PlayerInfo[playerid][pRank] = 0;
  43217. PlayerInfo[playerid][pMember] = 0;
  43218. PlayerInfo[playerid][pLeader] = 0;
  43219. PlayerInfo[playerid][pModel] = 299;
  43220. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  43221. GetPlayerName(playerid, sendername, sizeof(sendername));
  43222. format(string, sizeof(string), "* You have quit the %s.", ftext);
  43223. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  43224. OnPlayerSave(playerid);
  43225. return 1;
  43226. }
  43227. else
  43228. {
  43229. SendClientMessage(playerid, COLOR_GREY, " You are not a member of a Faction / Family !");
  43230. }
  43231. }
  43232. return 1;
  43233. }
  43234.  
  43235. if(strcmp(cmd, "/quitfamily", true) == 0 || strcmp(cmd, "/quitgang", true) == 0)
  43236. {
  43237. if(IsPlayerConnected(playerid))
  43238. {
  43239. if(PlayerInfo[playerid][pFMember] < 255)
  43240. {
  43241. new ftext[20];
  43242. new family = PlayerInfo[playerid][pFMember];
  43243. FamilyInfo[family][FamilyMembers] --; ftext = "Family";
  43244. PlayerInfo[playerid][pFMember] = 255;
  43245. PlayerInfo[playerid][pFRank] = 0;
  43246. PlayerInfo[playerid][pModel] = 299;
  43247. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  43248. GetPlayerName(playerid, sendername, sizeof(sendername));
  43249. format(string, sizeof(string), "* You have quit the %s.", ftext);
  43250. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  43251. OnPlayerSave(playerid);
  43252. return 1;
  43253. }
  43254. else
  43255. {
  43256. SendClientMessage(playerid, COLOR_GREY, "You are not a member of a Family.");
  43257. }
  43258. }
  43259. return 1;
  43260. }
  43261. if(strcmp(cmd, "/createfire", true) == 0)
  43262. {
  43263. if(IsPlayerConnected(playerid))
  43264. {
  43265. if(PlayerInfo[playerid][pAdmin] < 4)
  43266. {
  43267. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  43268. return 1;
  43269. }
  43270. new Float:X, Float:Y, Float:Z;
  43271. GetPlayerPos(playerid, X, Y, Z);
  43272.  
  43273. AddFire(X, Y, Z, 120);
  43274. SendClientMessage(playerid, COLOR_YELLOW, "You created a fire.");
  43275. }
  43276. return 1;
  43277. }
  43278. if(strcmp(cmd, "/removefire", true) == 0)
  43279. {
  43280. if(IsPlayerConnected(playerid))
  43281. {
  43282. if(PlayerInfo[playerid][pAdmin] < 4)
  43283. {
  43284. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  43285. return 1;
  43286. }
  43287. if(!GetClosestFire(playerid))
  43288. return SendClientMessage(playerid, COLOR_GREY, "You are not close to a fire!");
  43289.  
  43290. DeleteFire(GetClosestFire(playerid));
  43291. SendClientMessage(playerid, COLOR_LIGHTRED, "Fire removed!");
  43292. }
  43293. return 1;
  43294. }
  43295. if(strcmp(cmd, "/removeallfires", true) == 0)
  43296. {
  43297. if(IsPlayerConnected(playerid))
  43298. {
  43299. if(PlayerInfo[playerid][pAdmin] < 4)
  43300. {
  43301. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  43302. return 1;
  43303. }
  43304. DeleteAllFire();
  43305. SendClientMessage(playerid, COLOR_LIGHTRED, "All created fires were removed.");
  43306. }
  43307. return 1;
  43308. }
  43309. if(strcmp(cmd, "/announcefire", true) == 0)
  43310. {
  43311. if(IsPlayerConnected(playerid))
  43312. {
  43313. if(PlayerInfo[playerid][pAdmin] < 4)
  43314. {
  43315. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  43316. return 1;
  43317. }
  43318. new FireZone[MAX_ZONE_NAME];
  43319. new Float:X, Float:Y, Float:Z;
  43320. GetPlayerPos(playerid, X, Y, Z);
  43321. GetPlayer2DZone(playerid, FireZone, MAX_ZONE_NAME);
  43322. format(string, sizeof(string), "** Theres a fire at %s", FireZone);
  43323. SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
  43324. format(string, sizeof(string), "You announced to the Fire Department that there's a fire at %s", FireZone);
  43325. SendClientMessage(playerid, COLOR_YELLOW, string);
  43326. for(new i = 0; i < MAX_PLAYERS; i++)
  43327. {
  43328. if(PlayerInfo[i][pMember] == 4)
  43329. {
  43330. SetPlayerCheckpoint(playerid, X, Y, Z, 4.0);
  43331. }
  43332. }
  43333. }
  43334. return 1;
  43335. }
  43336. if(strcmp(cmd, "/spawndonut", true) == 0)
  43337. {
  43338. if(IsPlayerConnected(playerid))
  43339. {
  43340. if(PlayerInfo[playerid][pAdmin] < 4)
  43341. {
  43342. SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
  43343. return 1;
  43344. }
  43345. new f = 100+1;
  43346. for(new a = 0; a < sizeof(ObjCoords2); a++)
  43347. {
  43348. if(ObjCoords2[a][0] == 0.0)
  43349. {
  43350. f = a;
  43351. break;
  43352. }
  43353. }
  43354. if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You can not spawn any other donuts at the moment, try back later!!");
  43355. GetPlayerPos(playerid, ObjCoords2[f][0], ObjCoords2[f][1], ObjCoords2[f][2]);
  43356. object2[f] = CreateDynamicObject(2222,ObjCoords2[f][0],ObjCoords2[f][1],ObjCoords2[f][2]-0.9,0,0,0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 100.0);
  43357. new location[MAX_ZONE_NAME];
  43358. GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  43359. format(string, sizeof(string), "AdmWarning: %s has created a donut in %s (%0.2f, %0.2f, %0.2f).", sendername, location, ObjCoords2[f][0], ObjCoords2[f][1], ObjCoords2[f][2]);
  43360. ABroadCast(COLOR_LIGHTRED, string, 1);
  43361. return 1;
  43362. }
  43363. }
  43364. if(strcmp(cmd, "/pickdonut", true) == 0)
  43365. {
  43366. new f = 100+1;
  43367. for(new a = 0; a < sizeof(ObjCoords2); a++)
  43368. {
  43369. if(IsPlayerInRangeOfPoint(playerid, 2.0, ObjCoords2[a][0], ObjCoords2[a][1], ObjCoords2[a][2]))
  43370. {
  43371. f = a;
  43372. break;
  43373. }
  43374. }
  43375. if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You are not near a donut !");
  43376. if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
  43377. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a donut.");
  43378. else
  43379. {
  43380. ObjCoords2[f][0] = 0.0;
  43381. ObjCoords2[f][1] = 0.0;
  43382. ObjCoords2[f][2] = 0.0;
  43383. DestroyDynamicObject(object2[f]);
  43384. PlayerInfo[playerid][pDonuts]+=1;
  43385. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  43386. format(string, sizeof(string), "* %s has picked up a donut.", sendername);
  43387. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43388. }
  43389. return 1;
  43390. }
  43391.  
  43392. if(strcmp(cmd, "/pickgun", true) == 0 || strcmp(cmd, "/pgun", true) == 0)
  43393. {
  43394. new f = 100+1;
  43395. for(new a = 0; a < sizeof(ObjCoords); a++)
  43396. {
  43397. if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords[a][0], ObjCoords[a][1], ObjCoords[a][2]))
  43398. {
  43399. f = a;
  43400. break;
  43401. }
  43402. }
  43403. if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You are not near the weapon which you can pick up!");
  43404. if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
  43405. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a gun.");
  43406. else
  43407. {
  43408. new gunname[25];
  43409. new buffer[100];
  43410. ObjCoords[f][0] = 0.0;
  43411. ObjCoords[f][1] = 0.0;
  43412. ObjCoords[f][2] = 0.0;
  43413. DestroyDynamicObject(object[f]);
  43414. GivePlayerGun(playerid, ObjectID[f][0]);
  43415. GetWeaponName(ObjectID[f][0], gunname, sizeof(gunname));
  43416. format(buffer, sizeof(buffer), "You picked up a %s", gunname);
  43417. SendClientMessage(playerid, 0x33AA3300, buffer);
  43418. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  43419. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  43420. format(string, sizeof(string), "* %s has picked up a %s.", sendername, gunname);
  43421. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43422. }
  43423. return 1;
  43424. }
  43425. if(strcmp(cmd, "/drop", true) == 0 || strcmp(cmd, "/dump", true) == 0)
  43426. {
  43427. if(IsPlayerConnected(playerid))
  43428. {
  43429. new x_nr[32];
  43430. x_nr = strtok(cmdtext, idx);
  43431. if(!strlen(x_nr))
  43432. {
  43433. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /drop [name]{7DAEFF}");
  43434. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Weapon(s), Pot, Crack, Materials, Packages, Crates, Donuts, Seeds, Suitcase");
  43435. return 1;
  43436. }
  43437. if(strcmp(x_nr,"weapon",true) == 0)
  43438. {
  43439. new gunid = GetPlayerWeapon(playerid);
  43440. if(gunid)
  43441. {
  43442. new f = 100+1;
  43443. for(new a = 0; a < sizeof(ObjCoords); a++)
  43444. {
  43445. if(ObjCoords[a][0] == 0.0)
  43446. {
  43447. f = a;
  43448. break;
  43449. }
  43450. }
  43451. if(f > 100) return SendClientMessage(playerid, COLOR_GREY, "You can not throw weapons at the moment, try back later!!");
  43452. new WeaponName[65];
  43453. GetPlayerName(playerid, sendername, sizeof(sendername));
  43454. GetWeaponName(gunid, WeaponName, 64);
  43455. if(gunid == 40 && BombID[playerid] != 0) { DestroyDynamicObject(BombID[playerid]); BombID[playerid] = 0; }
  43456. if(gunid == 18) { WeaponName = "Molotovs"; }
  43457. if(gunid == 44) { WeaponName = "Nightvision Goggles"; }
  43458. if(gunid == 45) { WeaponName = "Infared Goggles"; }
  43459. TakeWeapon(playerid,gunid);
  43460. ObjectID[f][0] = gunid;
  43461. GetPlayerPos(playerid, ObjCoords[f][0], ObjCoords[f][1], ObjCoords[f][2]);
  43462. object[f] = CreateDynamicObject(GunObjects[gunid][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 100.0);
  43463. SetTimerEx("DeleteGun", 30000, 0, "d", object[f]);
  43464. format(string, sizeof(string), "* %s has thrown away their %s.", sendername, WeaponName);
  43465. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43466. return 1;
  43467. }
  43468. else
  43469. {
  43470. SendClientMessage(playerid,COLOR_GREY," You are not holding a weapon !");
  43471. return 1;
  43472. }
  43473. }
  43474. if(strcmp(x_nr,"weapons",true) == 0)
  43475. {
  43476. ClearGuns(playerid);
  43477. ResetPlayerWeapons(playerid);
  43478. GetPlayerName(playerid, sendername, sizeof(sendername));
  43479. format(string, sizeof(string), "* %s has thrown away their Weapons.", sendername);
  43480. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43481. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43482. return 1;
  43483. }
  43484. if(strcmp(x_nr,"donuts",true) == 0)
  43485. {
  43486. PlayerInfo[playerid][pDonuts] = 0;
  43487. GetPlayerName(playerid, sendername, sizeof(sendername));
  43488. format(string, sizeof(string), "* %s has thrown away their Donuts.", sendername);
  43489. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43490. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43491. return 1;
  43492. }
  43493. if(strcmp(x_nr,"pot",true) == 0)
  43494. {
  43495. if(PlayerInfo[playerid][pPot] > 0)
  43496. {
  43497. PlayerInfo[playerid][pPot] = 0;
  43498. GetPlayerName(playerid, sendername, sizeof(sendername));
  43499. format(string, sizeof(string), "* %s has thrown away their Pot.", sendername);
  43500. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43501. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43502. return 1;
  43503. }
  43504. else
  43505. {
  43506. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Pot to throw away !");
  43507. return 1;
  43508. }
  43509. }
  43510. if(strcmp(x_nr,"crack",true) == 0)
  43511. {
  43512. if(PlayerInfo[playerid][pCrack] > 0)
  43513. {
  43514. PlayerInfo[playerid][pCrack] = 0;
  43515. GetPlayerName(playerid, sendername, sizeof(sendername));
  43516. format(string, sizeof(string), "* %s has thrown away their Crack.", sendername);
  43517. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43518. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43519. return 1;
  43520. }
  43521. else
  43522. {
  43523. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Crack to throw away !");
  43524. return 1;
  43525. }
  43526. }
  43527. if(strcmp(x_nr,"materials",true) == 0)
  43528. {
  43529. if(PlayerInfo[playerid][pMats] > 0)
  43530. {
  43531. PlayerInfo[playerid][pMats] = 0;
  43532. GetPlayerName(playerid, sendername, sizeof(sendername));
  43533. format(string, sizeof(string), "* %s has thrown away their Materials.", sendername);
  43534. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43535. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43536. return 1;
  43537. }
  43538. else
  43539. {
  43540. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Materials to throw away !");
  43541. return 1;
  43542. }
  43543. }
  43544. if(strcmp(x_nr,"packages",true) == 0)
  43545. {
  43546. if(Packages[playerid] > 0)
  43547. {
  43548. Packages[playerid] = 0;
  43549. GetPlayerName(playerid, sendername, sizeof(sendername));
  43550. format(string, sizeof(string), "* %s has thrown away their Packages.", sendername);
  43551. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43552. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43553. return 1;
  43554. }
  43555. else
  43556. {
  43557. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Packages to throw away !");
  43558. return 1;
  43559. }
  43560. }
  43561. if(strcmp(x_nr,"seeds",true) == 0)
  43562. {
  43563. if(PlayerInfo[playerid][pSeeds] > 0)
  43564. {
  43565. PlayerInfo[playerid][pSeeds] = 0;
  43566. GetPlayerName(playerid, sendername, sizeof(sendername));
  43567. format(string, sizeof(string), "* %s has thrown away their Seeds.", sendername);
  43568. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43569. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43570. return 1;
  43571. }
  43572. else
  43573. {
  43574. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Packages to throw away !");
  43575. return 1;
  43576. }
  43577. }
  43578. if(strcmp(x_nr,"crates",true) == 0)
  43579. {
  43580. if(Crates[playerid] > 0)
  43581. {
  43582. Crates[playerid] = 0;
  43583. GetPlayerName(playerid, sendername, sizeof(sendername));
  43584. format(string, sizeof(string), "* %s has thrown away their Drug Crates.", sendername);
  43585. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43586. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43587. return 1;
  43588. }
  43589. else
  43590. {
  43591. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Drug Crates to throw away !");
  43592. return 1;
  43593. }
  43594. }
  43595. if(strcmp(x_nr,"suitcase",true) == 0)
  43596. {
  43597. if(PlayerInfo[playerid][pSuitcase] == 1)
  43598. {
  43599. PlayerInfo[playerid][pSuitcase] = 0;
  43600. PlayerInfo[playerid][pSuitcasecash] = 0;
  43601. PlayerInfo[playerid][pSuitcasecrack] = 0;
  43602. PlayerInfo[playerid][pSuitcasepot] = 0;
  43603. PlayerInfo[playerid][pSuitcasemats] = 0;
  43604. GetPlayerName(playerid, sendername, sizeof(sendername));
  43605. format(string, sizeof(string), "* %s has thrown away their Suitcase.", sendername);
  43606. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43607. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  43608. return 1;
  43609. }
  43610. else
  43611. {
  43612. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any Suitcase to throw away !");
  43613. return 1;
  43614. }
  43615. }
  43616. else
  43617. {
  43618. SendClientMessage(playerid, COLOR_GREY, "Invalid drop name.");
  43619. return 1;
  43620. }
  43621. }
  43622. return 1;
  43623. }
  43624. if(strcmp(cmd, "/give", true) == 0)
  43625. {
  43626. if(IsPlayerConnected(playerid))
  43627. {
  43628. tmp = strtok(cmdtext, idx);
  43629. if(!strlen(tmp))
  43630. {
  43631. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43632. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun, Donuts, Suitcase");
  43633. return 1;
  43634. }
  43635. giveplayerid = ReturnUser(tmp);
  43636. tmp = strtok(cmdtext, idx);
  43637. if(!strlen(tmp))
  43638. {
  43639. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43640. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43641. return 1;
  43642. }
  43643. if(strcmp(tmp,"gunlicense",true) == 0)
  43644. {
  43645. if(IsACop(playerid))
  43646. {
  43647. new vname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
  43648. if(PlayerInfo[giveplayerid][pGunLic] == 1)
  43649. {
  43650. SendClientMessage(playerid, COLOR_GREY, "This player already have a gun license");
  43651. return 1;
  43652. }
  43653. GetPlayerName(giveplayerid, vname, sizeof(vname));
  43654. GetPlayerName(playerid, name, sizeof(name));
  43655. PlayerInfo[giveplayerid][pGunLic] = 1;
  43656. format(string, sizeof(string), "You gave %s a gun license.", vname);
  43657. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  43658. format(string, sizeof(string), "You recived a gun license from %s", name);
  43659. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  43660. return 1;
  43661. }
  43662. else
  43663. {
  43664. SendClientMessage(playerid, COLOR_GREY, "You are not a cop.");
  43665. return 1;
  43666. }
  43667. }
  43668. if(strcmp(tmp,"pot",true) == 0)
  43669. {
  43670. tmp = strtok(cmdtext, idx);
  43671. if(!strlen(tmp))
  43672. {
  43673. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43674. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43675. return 1;
  43676. }
  43677. new amount = strvalEx(tmp);
  43678. if(IsPlayerConnected(giveplayerid))
  43679. {
  43680. if(giveplayerid != INVALID_PLAYER_ID)
  43681. {
  43682. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43683. {
  43684. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
  43685. if(amount > PlayerInfo[playerid][pPot] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
  43686. if(amount > 50 || PlayerInfo[giveplayerid][pPot]+amount > 50) { SendClientMessage(playerid, COLOR_GREY, "That player cannot hold more than 50 Pot."); return 1; }
  43687. GetPlayerName(playerid, sendername, sizeof(sendername));
  43688. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43689. format(string, sizeof(string), "You have given %s %d Pot.", giveplayer, amount);
  43690. SendClientMessage(playerid, COLOR_GRAD1, string);
  43691. format(string, sizeof(string), "You have recieved %d Pot from %s.", amount, sendername);
  43692. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43693. format(string, sizeof(string), "* %s has given %s some Pot.", sendername, giveplayer);
  43694. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43695. PlayerInfo[playerid][pPot] = PlayerInfo[playerid][pPot]-amount;
  43696. PlayerInfo[giveplayerid][pPot] = PlayerInfo[giveplayerid][pPot]+amount;
  43697. format(string, sizeof(string), "%s has given %s %d Pot.", sendername, giveplayer, amount);
  43698. PayLog(string);
  43699. return 1;
  43700. }
  43701. else
  43702. {
  43703. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  43704. return 1;
  43705. }
  43706. }
  43707. }
  43708. else
  43709. {
  43710. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  43711. return 1;
  43712. }
  43713. }
  43714. if(strcmp(tmp,"crack",true) == 0)
  43715. {
  43716. tmp = strtok(cmdtext, idx);
  43717. if(!strlen(tmp))
  43718. {
  43719. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43720. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43721. return 1;
  43722. }
  43723. new amount = strvalEx(tmp);
  43724. if(IsPlayerConnected(giveplayerid))
  43725. {
  43726. if(giveplayerid != INVALID_PLAYER_ID)
  43727. {
  43728. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43729. {
  43730. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
  43731. if(amount > PlayerInfo[playerid][pCrack] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
  43732. if(amount > 25 || PlayerInfo[giveplayerid][pCrack]+amount > 25) { SendClientMessage(playerid, COLOR_GREY, "That player cannot hold more than 25 Crack."); return 1; }
  43733. GetPlayerName(playerid, sendername, sizeof(sendername));
  43734. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43735. format(string, sizeof(string), "You have given %s %d Crack.", giveplayer, amount);
  43736. SendClientMessage(playerid, COLOR_GRAD1, string);
  43737. format(string, sizeof(string), "You have recieved %d Crack from %s.", amount, sendername);
  43738. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43739. format(string, sizeof(string), "%s has given %s some Crack.", sendername, giveplayer);
  43740. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43741. PlayerInfo[playerid][pCrack] = PlayerInfo[playerid][pCrack]-amount;
  43742. PlayerInfo[giveplayerid][pCrack] = PlayerInfo[giveplayerid][pCrack]+amount;
  43743. format(string, sizeof(string), "%s has given %s %d Crack.", sendername, giveplayer, amount);
  43744. PayLog(string);
  43745. return 1;
  43746. }
  43747. else
  43748. {
  43749. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  43750. return 1;
  43751. }
  43752. }
  43753. }
  43754. else
  43755. {
  43756. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  43757. return 1;
  43758. }
  43759. }
  43760. if(strcmp(tmp,"materials",true) == 0)
  43761. {
  43762. tmp = strtok(cmdtext, idx);
  43763. if(!strlen(tmp))
  43764. {
  43765. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43766. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43767. return 1;
  43768. }
  43769. new amount = strvalEx(tmp);
  43770. if(IsPlayerConnected(giveplayerid))
  43771. {
  43772. if(giveplayerid != INVALID_PLAYER_ID)
  43773. {
  43774. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43775. {
  43776. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
  43777. if(amount > PlayerInfo[playerid][pMats] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much !"); return 1; }
  43778. if(amount > 50000) { SendClientMessage(playerid, COLOR_GREY, " You can't give more than 50,000 at a time !"); return 1; }
  43779. GetPlayerName(playerid, sendername, sizeof(sendername));
  43780. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43781. format(string, sizeof(string), " You have given %s %d Materials.", giveplayer, amount);
  43782. SendClientMessage(playerid, COLOR_GRAD1, string);
  43783. format(string, sizeof(string), " You have recieved %d Materials from %s.", amount, sendername);
  43784. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43785. format(string, sizeof(string), "* %s has given %s some Materials.", sendername, giveplayer);
  43786. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43787. PlayerInfo[playerid][pMats] -= amount;
  43788. PlayerInfo[giveplayerid][pMats] += amount;
  43789. format(string, sizeof(string), "%s has given %s %d Materials.", sendername, giveplayer, amount);
  43790. PayLog(string);
  43791. return 1;
  43792. }
  43793. else
  43794. {
  43795. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  43796. return 1;
  43797. }
  43798. }
  43799. }
  43800. else
  43801. {
  43802. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  43803. return 1;
  43804. }
  43805. }
  43806. if(strcmp(tmp,"seeds",true) == 0)
  43807. {
  43808. tmp = strtok(cmdtext, idx);
  43809. if(!strlen(tmp))
  43810. {
  43811. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /give [playerid/PartOfName] [name] [amount]{7DAEFF}");
  43812. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43813. return 1;
  43814. }
  43815. new amount = strvalEx(tmp);
  43816. if(IsPlayerConnected(giveplayerid))
  43817. {
  43818. if(giveplayerid != INVALID_PLAYER_ID)
  43819. {
  43820. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43821. {
  43822. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, "You can't give to yourself."); return 1; }
  43823. if(amount > PlayerInfo[playerid][pSeeds] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, "You don't have that much."); return 1; }
  43824. if(amount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't give more than 10 at a time."); return 1; }
  43825. GetPlayerName(playerid, sendername, sizeof(sendername));
  43826. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43827. format(string, sizeof(string), "You have given %s %d Seeds.", giveplayer, amount);
  43828. SendClientMessage(playerid, COLOR_GRAD1, string);
  43829. format(string, sizeof(string), "You have recieved %d Seeds from %s.", amount, sendername);
  43830. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43831. format(string, sizeof(string), "%s has given %s some Seeds.", sendername, giveplayer);
  43832. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43833. PlayerInfo[playerid][pSeeds] -= amount;
  43834. PlayerInfo[giveplayerid][pSeeds] += amount;
  43835. format(string, sizeof(string), "%s has given %s %d Seeds.", sendername, giveplayer, amount);
  43836. PayLog(string);
  43837. return 1;
  43838. }
  43839. else
  43840. {
  43841. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  43842. return 1;
  43843. }
  43844. }
  43845. }
  43846. else
  43847. {
  43848. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  43849. return 1;
  43850. }
  43851. }
  43852. if(strcmp(tmp,"gun",true) == 0)
  43853. {
  43854. tmp = strtok(cmdtext, idx);
  43855. if(!strlen(tmp))
  43856. {
  43857. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /give [playerid/PartOfName] [name]");
  43858. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun");
  43859. return 1;
  43860. }
  43861. if(IsPlayerConnected(giveplayerid))
  43862. {
  43863. if(giveplayerid != INVALID_PLAYER_ID)
  43864. {
  43865. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43866. {
  43867. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
  43868. new WeaponName[65], weap;
  43869. weap = GetPlayerWeapon(playerid);
  43870. if (weap == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to hold a weapon to do this !"); return 1; }
  43871. GetWeaponName(weap,WeaponName,64);
  43872. TakeWeapon(playerid, weap);
  43873. GivePlayerGun(giveplayerid, weap);
  43874. format(string, sizeof(string), " You have given %s a %s.", PlayerName(giveplayerid), WeaponName);
  43875. SendClientMessage(playerid, COLOR_GRAD1, string);
  43876. format(string, sizeof(string), " You have recieved a %s from %s.", WeaponName, PlayerName(playerid));
  43877. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43878. format(string, sizeof(string), "* %s takes out a Weapon and hands it to %s", PlayerName(playerid), PlayerName(giveplayerid));
  43879. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43880. format(string, sizeof(string), "%s has given %s a %s.", sendername, giveplayer, WeaponName);
  43881. PayLog(string);
  43882. return 1;
  43883. }
  43884. else
  43885. {
  43886. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  43887. return 1;
  43888. }
  43889. }
  43890. }
  43891. else
  43892. {
  43893. SendClientMessage(playerid, COLOR_GREY, ".That player is Offline.");
  43894. return 1;
  43895. }
  43896. }
  43897. if(strcmp(tmp,"donuts",true) == 0)
  43898. {
  43899. tmp = strtok(cmdtext, idx);
  43900. if(!strlen(tmp))
  43901. {
  43902. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /give [playerid/PartOfName] [name] [amount]");
  43903. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Pot, Crack, Materials, Seeds, Gun, Donuts, Suitcase");
  43904. return 1;
  43905. }
  43906. new amount = strvalEx(tmp);
  43907. if(IsPlayerConnected(giveplayerid))
  43908. {
  43909. if(giveplayerid != INVALID_PLAYER_ID)
  43910. {
  43911. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43912. {
  43913. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
  43914. if(amount > PlayerInfo[playerid][pDonuts] || amount < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much !"); return 1; }
  43915. if(amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You can't give more than 10 at a time !"); return 1; }
  43916. GetPlayerName(playerid, sendername, sizeof(sendername));
  43917. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43918. format(string, sizeof(string), " You have given %s %d Donuts.", giveplayer, amount);
  43919. SendClientMessage(playerid, COLOR_GRAD1, string);
  43920. format(string, sizeof(string), " You have recieved %d Donuts from %s.", amount, sendername);
  43921. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43922. format(string, sizeof(string), "* %s has given %s some Donuts.", sendername, giveplayer);
  43923. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43924. PlayerInfo[playerid][pDonuts] -= amount;
  43925. PlayerInfo[giveplayerid][pDonuts] += amount;
  43926. format(string, sizeof(string), "%s has given %s %d Donuts.", sendername, giveplayer, amount);
  43927. PayLog(string);
  43928. return 1;
  43929. }
  43930. else
  43931. {
  43932. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  43933. return 1;
  43934. }
  43935. }
  43936. }
  43937. else
  43938. {
  43939. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  43940. return 1;
  43941. }
  43942. }
  43943. if(strcmp(tmp,"suitcase",true) == 0)
  43944. {
  43945. if(IsPlayerConnected(giveplayerid))
  43946. {
  43947. if(giveplayerid != INVALID_PLAYER_ID)
  43948. {
  43949. if(ProxDetectorS(8.0, playerid, giveplayerid))
  43950. {
  43951. if(PlayerInfo[giveplayerid][pSuitcase] == 1)
  43952. {
  43953. SendClientMessage(playerid,COLOR_GREY, "He already owns a suitcase !");
  43954. return 1;
  43955. }
  43956. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give to yourself !"); return 1; }
  43957. if(PlayerInfo[playerid][pDonuts] == 0) { SendClientMessage(playerid, COLOR_GREY, " You don't have any suitcase !"); return 1; }
  43958. GetPlayerName(playerid, sendername, sizeof(sendername));
  43959. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  43960. format(string, sizeof(string), " You have given your suitcase to %s.", giveplayer);
  43961. SendClientMessage(playerid, COLOR_GRAD1, string);
  43962. format(string, sizeof(string), " You have recieved a suitcase from %s.", sendername);
  43963. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  43964. format(string, sizeof(string), "* %s has given %s his suitcase.", sendername, giveplayer);
  43965. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43966. PlayerInfo[giveplayerid][pSuitcase] = 1;
  43967. PlayerInfo[giveplayerid][pSuitcasecash] = PlayerInfo[playerid][pSuitcasecash];
  43968. PlayerInfo[giveplayerid][pSuitcasecrack] = PlayerInfo[playerid][pSuitcasecrack];
  43969. PlayerInfo[giveplayerid][pSuitcasepot] = PlayerInfo[playerid][pSuitcasepot];
  43970. PlayerInfo[giveplayerid][pSuitcasemats] = PlayerInfo[playerid][pSuitcasemats];
  43971. PlayerInfo[playerid][pSuitcase] = 0;
  43972. PlayerInfo[playerid][pSuitcasecash] = 0;
  43973. PlayerInfo[playerid][pSuitcasecrack] = 0;
  43974. PlayerInfo[playerid][pSuitcasepot] = 0;
  43975. PlayerInfo[playerid][pSuitcasemats] = 0;
  43976. }
  43977. }
  43978. }
  43979. }
  43980. else
  43981. {
  43982. SendClientMessage(playerid, COLOR_GREY, "Invalid give name.");
  43983. return 1;
  43984. }
  43985. }
  43986. return 1;
  43987. }
  43988. if(strcmp(cmd, "/agl", true) == 0)
  43989. {
  43990. if(IsPlayerConnected(playerid))
  43991. {
  43992. if (PlayerInfo[playerid][pAdmin] >= 5)
  43993. {
  43994. new x_nr[256];
  43995. x_nr = strtok(cmdtext, idx);
  43996. if(!strlen(x_nr))
  43997. {
  43998. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl [name] [PlayerID/PartOfName]");
  43999. SendClientMessage(playerid, COLOR_WHITE, "Available Names: Driving, Flying, Sailing, Fishing, Weapon.");
  44000. return 1;
  44001. }
  44002. if(strcmp(x_nr,"flying",true) == 0)
  44003. {
  44004. tmp = strtok(cmdtext, idx);
  44005. if(!strlen(tmp))
  44006. {
  44007. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl flying [PlayerID/PartOfName]");
  44008. return 1;
  44009. }
  44010. giveplayerid = ReturnUser(tmp);
  44011. if(IsPlayerConnected(giveplayerid))
  44012. {
  44013. if(giveplayerid != INVALID_PLAYER_ID)
  44014. {
  44015. GetPlayerName(playerid, sendername, sizeof(sendername));
  44016. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44017. format(string, sizeof(string), "* You've given a Flying License to %s.",giveplayer);
  44018. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44019. format(string, sizeof(string), "* Admin %s has given you a flying License.",sendername);
  44020. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44021. PlayerInfo[giveplayerid][pFlyLic] = 1;
  44022. return 1;
  44023. }
  44024. }
  44025. else
  44026. {
  44027. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44028. return 1;
  44029. }
  44030. }
  44031. else if(strcmp(x_nr,"sailing",true) == 0)
  44032. {
  44033. tmp = strtok(cmdtext, idx);
  44034. if(!strlen(tmp))
  44035. {
  44036. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl sailing [PlayerID/PartOfName]");
  44037. return 1;
  44038. }
  44039. giveplayerid = ReturnUser(tmp);
  44040. if(IsPlayerConnected(giveplayerid))
  44041. {
  44042. if(giveplayerid != INVALID_PLAYER_ID)
  44043. {
  44044. GetPlayerName(playerid, sendername, sizeof(sendername));
  44045. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44046. format(string, sizeof(string), "* You've given a Sailing License to %s.",giveplayer);
  44047. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44048. format(string, sizeof(string), "* Admin %s has given you a sailing license.",sendername);
  44049. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44050. PlayerInfo[giveplayerid][pBoatLic] = 1;
  44051. return 1;
  44052. }
  44053. }
  44054. else
  44055. {
  44056. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44057. return 1;
  44058. }
  44059. }
  44060. else if(strcmp(x_nr,"driving",true) == 0)
  44061. {
  44062. tmp = strtok(cmdtext, idx);
  44063. if(!strlen(tmp))
  44064. {
  44065. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl driving [PlayerID/PartOfName]");
  44066. return 1;
  44067. }
  44068. giveplayerid = ReturnUser(tmp);
  44069. if(IsPlayerConnected(giveplayerid))
  44070. {
  44071. if(giveplayerid != INVALID_PLAYER_ID)
  44072. {
  44073. GetPlayerName(playerid, sendername, sizeof(sendername));
  44074. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44075. format(string, sizeof(string), "* You've given a Driving License to %s.",giveplayer);
  44076. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44077. format(string, sizeof(string), "* Admin %s has given you a driving license.",sendername);
  44078. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44079. PlayerInfo[giveplayerid][pCarLic] = 1;
  44080. return 1;
  44081. }
  44082. }
  44083. else
  44084. {
  44085. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44086. return 1;
  44087. }
  44088. }
  44089. else if(strcmp(x_nr,"fishing",true) == 0)
  44090. {
  44091. tmp = strtok(cmdtext, idx);
  44092. if(!strlen(tmp))
  44093. {
  44094. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl fishing [PlayerID/PartOfName]");
  44095. return 1;
  44096. }
  44097. giveplayerid = ReturnUser(tmp);
  44098. if(IsPlayerConnected(giveplayerid))
  44099. {
  44100. if(giveplayerid != INVALID_PLAYER_ID)
  44101. {
  44102. GetPlayerName(playerid, sendername, sizeof(sendername));
  44103. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44104. format(string, sizeof(string), "* You've given a Fishing License to %s.",giveplayer);
  44105. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44106. format(string, sizeof(string), "* Admin %s has given you a fishing license.",sendername);
  44107. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44108. PlayerInfo[giveplayerid][pFishLic] = 1;
  44109. return 1;
  44110. }
  44111. }
  44112. else
  44113. {
  44114. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44115. return 1;
  44116. }
  44117. }
  44118. else if(strcmp(x_nr,"weapon",true) == 0)
  44119. {
  44120. tmp = strtok(cmdtext, idx);
  44121. if(!strlen(tmp))
  44122. {
  44123. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agl weapon [PlayerID/PartOfName]");
  44124. return 1;
  44125. }
  44126. giveplayerid = ReturnUser(tmp);
  44127. if(IsPlayerConnected(giveplayerid))
  44128. {
  44129. if(giveplayerid != INVALID_PLAYER_ID)
  44130. {
  44131. GetPlayerName(playerid, sendername, sizeof(sendername));
  44132. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44133. format(string, sizeof(string), "* You've given a Weapon License to %s.",giveplayer);
  44134. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44135. format(string, sizeof(string), "* Admin %s has given you a weapon license.",sendername);
  44136. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44137. PlayerInfo[giveplayerid][pGunLic] = 1;
  44138. return 1;
  44139. }
  44140. }
  44141. else
  44142. {
  44143. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44144. return 1;
  44145. }
  44146. }
  44147. }
  44148. else
  44149. {
  44150. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  44151. return 1;
  44152. }
  44153. }
  44154. return 1;
  44155. }
  44156. if(strcmp(cmd, "/atl", true) == 0)
  44157. {
  44158. if(IsPlayerConnected(playerid))
  44159. {
  44160. if (PlayerInfo[playerid][pAdmin] >= 5)
  44161. {
  44162. new x_nr[256];
  44163. x_nr = strtok(cmdtext, idx);
  44164. if(!strlen(x_nr))
  44165. {
  44166. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl [Name] [PlayerID/PartOfName]");
  44167. SendClientMessage(playerid, COLOR_WHITE, "Available Names: Driving, Flying, Sailing, Fishing, Weapon.");
  44168. return 1;
  44169. }
  44170. if(strcmp(x_nr,"flying",true) == 0)
  44171. {
  44172. tmp = strtok(cmdtext, idx);
  44173. if(!strlen(tmp))
  44174. {
  44175. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl flying [PlayerID/PartOfName]");
  44176. return 1;
  44177. }
  44178. giveplayerid = ReturnUser(tmp);
  44179. if(IsPlayerConnected(giveplayerid))
  44180. {
  44181. if(giveplayerid != INVALID_PLAYER_ID)
  44182. {
  44183. GetPlayerName(playerid, sendername, sizeof(sendername));
  44184. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44185. format(string, sizeof(string), "* You've taken %s's Flying License.",giveplayer);
  44186. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44187. format(string, sizeof(string), "* Admin %s has taken your Flying License.",sendername);
  44188. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44189. PlayerInfo[giveplayerid][pFlyLic] = 0;
  44190. return 1;
  44191. }
  44192. }
  44193. else
  44194. {
  44195. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44196. return 1;
  44197. }
  44198. }
  44199. else if(strcmp(x_nr,"sailing",true) == 0)
  44200. {
  44201. tmp = strtok(cmdtext, idx);
  44202. if(!strlen(tmp))
  44203. {
  44204. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl sailing [PlayerID/PartOfName]");
  44205. return 1;
  44206. }
  44207. giveplayerid = ReturnUser(tmp);
  44208. if(IsPlayerConnected(giveplayerid))
  44209. {
  44210. if(giveplayerid != INVALID_PLAYER_ID)
  44211. {
  44212. GetPlayerName(playerid, sendername, sizeof(sendername));
  44213. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44214. format(string, sizeof(string), "* You've taken %s's Sailing License.",giveplayer);
  44215. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44216. format(string, sizeof(string), "* Admin %s taken your Sailing License.",sendername);
  44217. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44218. PlayerInfo[giveplayerid][pBoatLic] = 0;
  44219. return 1;
  44220. }
  44221. }
  44222. else
  44223. {
  44224. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44225. return 1;
  44226. }
  44227. }
  44228. else if(strcmp(x_nr,"driving",true) == 0)
  44229. {
  44230. tmp = strtok(cmdtext, idx);
  44231. if(!strlen(tmp))
  44232. {
  44233. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl driving [PlayerID/PartOfName]");
  44234. return 1;
  44235. }
  44236. giveplayerid = ReturnUser(tmp);
  44237. if(IsPlayerConnected(giveplayerid))
  44238. {
  44239. if(giveplayerid != INVALID_PLAYER_ID)
  44240. {
  44241. GetPlayerName(playerid, sendername, sizeof(sendername));
  44242. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44243. format(string, sizeof(string), "* You've taken %s's Driving License.",giveplayer);
  44244. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44245. format(string, sizeof(string), "* Admin %s has taken your Driving License.",sendername);
  44246. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44247. PlayerInfo[giveplayerid][pCarLic] = 0;
  44248. return 1;
  44249. }
  44250. }
  44251. else
  44252. {
  44253. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44254. return 1;
  44255. }
  44256. }
  44257. else if(strcmp(x_nr,"fishing",true) == 0)
  44258. {
  44259. tmp = strtok(cmdtext, idx);
  44260. if(!strlen(tmp))
  44261. {
  44262. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl fishing [PlayerID/PartOfName]");
  44263. return 1;
  44264. }
  44265. giveplayerid = ReturnUser(tmp);
  44266. if(IsPlayerConnected(giveplayerid))
  44267. {
  44268. if(giveplayerid != INVALID_PLAYER_ID)
  44269. {
  44270. GetPlayerName(playerid, sendername, sizeof(sendername));
  44271. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44272. format(string, sizeof(string), "* You've taken %s's Fishing License.",giveplayer);
  44273. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44274. format(string, sizeof(string), "* Admin %s has taken your Fishing License.",sendername);
  44275. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44276. PlayerInfo[giveplayerid][pFishLic] = 0;
  44277. return 1;
  44278. }
  44279. }
  44280. else
  44281. {
  44282. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44283. return 1;
  44284. }
  44285. }
  44286. else if(strcmp(x_nr,"weapon",true) == 0)
  44287. {
  44288. tmp = strtok(cmdtext, idx);
  44289. if(!strlen(tmp))
  44290. {
  44291. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl weapon [PlayerID/PartOfName]");
  44292. return 1;
  44293. }
  44294. giveplayerid = ReturnUser(tmp);
  44295. if(IsPlayerConnected(giveplayerid))
  44296. {
  44297. if(giveplayerid != INVALID_PLAYER_ID)
  44298. {
  44299. GetPlayerName(playerid, sendername, sizeof(sendername));
  44300. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44301. format(string, sizeof(string), "* You've taken %s's Weapon License.",giveplayer);
  44302. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44303. format(string, sizeof(string), "* Admin %s has taken your Weapon License.",sendername);
  44304. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44305. PlayerInfo[giveplayerid][pGunLic] = 0;
  44306. return 1;
  44307. }
  44308. }
  44309. else
  44310. {
  44311. SendClientMessage(playerid, COLOR_GREY, " That Player is Offline !");
  44312. return 1;
  44313. }
  44314. }
  44315. }
  44316. else
  44317. {
  44318. SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !");
  44319. return 1;
  44320. }
  44321. }
  44322. return 1;
  44323. }
  44324. if(strcmp(cmd, "/take", true) == 0)
  44325. {
  44326. if(IsPlayerConnected(playerid))
  44327. {
  44328. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  44329. {
  44330. if(PlayerInfo[playerid][pMember] == 1)
  44331. {
  44332. if(PlayerInfo[playerid][pRank] < 1)
  44333. {
  44334. SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
  44335. return 1;
  44336. }
  44337. }
  44338. else
  44339. {
  44340. if(PlayerInfo[playerid][pRank] < 2)
  44341. {
  44342. SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
  44343. return 1;
  44344. }
  44345. }
  44346. new x_nr[32];
  44347. x_nr = strtok(cmdtext, idx);
  44348. if(!strlen(x_nr))
  44349. {
  44350. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44351. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Driverslicense, Flyinglicense, Boatlicense, Gunlicense, Weapons, Pot, Crack, Materials, Cellphone");
  44352. return 1;
  44353. }
  44354. if(strcmp(x_nr,"driverslicense",true) == 0)
  44355. {
  44356. tmp = strtok(cmdtext, idx);
  44357. if(!strlen(tmp))
  44358. {
  44359. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44360. return 1;
  44361. }
  44362. giveplayerid = ReturnUser(tmp);
  44363. if(playerid == giveplayerid) { SendClientMessage(playerid, COLOR_GREY, " You can't take from yourself !"); return 1; }
  44364. if(IsPlayerConnected(giveplayerid))
  44365. {
  44366. if(giveplayerid != INVALID_PLAYER_ID)
  44367. {
  44368. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44369. {
  44370. if(PlayerInfo[giveplayerid][pCarLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Drivers License !"); return 1; }
  44371. GetPlayerName(playerid, sendername, sizeof(sendername));
  44372. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44373. format(string, sizeof(string), " You have taken %s's Drivers License.", giveplayer);
  44374. SendClientMessage(playerid, COLOR_GRAD1, string);
  44375. format(string, sizeof(string), " %s has taken your Drivers License.", sendername);
  44376. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44377. format(string, sizeof(string), "* Officer %s has taken %s's Drivers License.", sendername, giveplayer);
  44378. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44379. PlayerInfo[giveplayerid][pCarLic] = 0;
  44380. format(string, sizeof(string), "%s has taken %s's Drivers License.", sendername, giveplayer);
  44381. PayLog(string);
  44382. }
  44383. else
  44384. {
  44385. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44386. return 1;
  44387. }
  44388. }
  44389. }
  44390. else
  44391. {
  44392. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44393. return 1;
  44394. }
  44395. }
  44396. else if(strcmp(x_nr,"flyinglicense",true) == 0)
  44397. {
  44398. tmp = strtok(cmdtext, idx);
  44399. if(!strlen(tmp))
  44400. {
  44401. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44402. return 1;
  44403. }
  44404. giveplayerid = ReturnUser(tmp);
  44405. if(IsPlayerConnected(giveplayerid))
  44406. {
  44407. if(giveplayerid != INVALID_PLAYER_ID)
  44408. {
  44409. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44410. {
  44411. if(PlayerInfo[giveplayerid][pFlyLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Flying License !"); return 1; }
  44412. GetPlayerName(playerid, sendername, sizeof(sendername));
  44413. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44414. format(string, sizeof(string), " You have taken %s's Flying License.", giveplayer);
  44415. SendClientMessage(playerid, COLOR_GRAD1, string);
  44416. format(string, sizeof(string), " %s has taken your Flying License.", sendername);
  44417. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44418. format(string, sizeof(string), "* Officer %s has taken %s's Flying License.", sendername, giveplayer);
  44419. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44420. PlayerInfo[giveplayerid][pFlyLic] = 0;
  44421. format(string, sizeof(string), "%s has taken %s's Flying License.", sendername, giveplayer);
  44422. PayLog(string);
  44423. }
  44424. else
  44425. {
  44426. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44427. return 1;
  44428. }
  44429. }
  44430. }
  44431. else
  44432. {
  44433. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44434. return 1;
  44435. }
  44436. }
  44437. else if(strcmp(x_nr,"gunlicense",true) == 0)
  44438. {
  44439. tmp = strtok(cmdtext, idx);
  44440. if(!strlen(tmp))
  44441. {
  44442. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44443. return 1;
  44444. }
  44445. giveplayerid = ReturnUser(tmp);
  44446. if(IsPlayerConnected(giveplayerid))
  44447. {
  44448. if(giveplayerid != INVALID_PLAYER_ID)
  44449. {
  44450. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44451. {
  44452. if(PlayerInfo[giveplayerid][pGunLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Weapon License !"); return 1; }
  44453. GetPlayerName(playerid, sendername, sizeof(sendername));
  44454. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44455. format(string, sizeof(string), " You have taken %s's Weapon License.", giveplayer);
  44456. SendClientMessage(playerid, COLOR_GRAD1, string);
  44457. format(string, sizeof(string), " %s has taken your Weapon License.", sendername);
  44458. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44459. format(string, sizeof(string), "* Officer %s has taken %s's Weapon License.", sendername, giveplayer);
  44460. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44461. PlayerInfo[giveplayerid][pGunLic] = 0;
  44462. format(string, sizeof(string), "%s has taken %s's Weapon License.", sendername, giveplayer);
  44463. PayLog(string);
  44464. }
  44465. else
  44466. {
  44467. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44468. return 1;
  44469. }
  44470. }
  44471. }
  44472. else
  44473. {
  44474. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44475. return 1;
  44476. }
  44477. }
  44478. else if(strcmp(x_nr,"boatlicense",true) == 0)
  44479. {
  44480. tmp = strtok(cmdtext, idx);
  44481. if(!strlen(tmp))
  44482. {
  44483. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44484. return 1;
  44485. }
  44486. giveplayerid = ReturnUser(tmp);
  44487. if(IsPlayerConnected(giveplayerid))
  44488. {
  44489. if(giveplayerid != INVALID_PLAYER_ID)
  44490. {
  44491. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44492. {
  44493. if(PlayerInfo[giveplayerid][pBoatLic] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Boat License !"); return 1; }
  44494. GetPlayerName(playerid, sendername, sizeof(sendername));
  44495. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44496. format(string, sizeof(string), " You have taken %s's Boat License.", giveplayer);
  44497. SendClientMessage(playerid, COLOR_GRAD1, string);
  44498. format(string, sizeof(string), " %s has taken your Boat License.", sendername);
  44499. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44500. format(string, sizeof(string), "* Officer %s has taken %s's Boat License.", sendername, giveplayer);
  44501. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44502. PlayerInfo[giveplayerid][pBoatLic] = 0;
  44503. format(string, sizeof(string), "%s has taken %s's Boat License.", sendername, giveplayer);
  44504. PayLog(string);
  44505. }
  44506. else
  44507. {
  44508. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44509. return 1;
  44510. }
  44511. }
  44512. }
  44513. else
  44514. {
  44515. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44516. return 1;
  44517. }
  44518. }
  44519. else if(strcmp(x_nr,"weapons",true) == 0)
  44520. {
  44521. tmp = strtok(cmdtext, idx);
  44522. if(!strlen(tmp))
  44523. {
  44524. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44525. return 1;
  44526. }
  44527. giveplayerid = ReturnUser(tmp);
  44528. if(IsPlayerConnected(giveplayerid))
  44529. {
  44530. if(giveplayerid != INVALID_PLAYER_ID)
  44531. {
  44532. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44533. {
  44534. GetPlayerName(playerid, sendername, sizeof(sendername));
  44535. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44536. format(string, sizeof(string), " You have taken %s's Weapons.", giveplayer);
  44537. SendClientMessage(playerid, COLOR_GRAD1, string);
  44538. format(string, sizeof(string), " %s has taken your Weapons.", sendername);
  44539. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44540. format(string, sizeof(string), "* Officer %s has taken %s's Weapons.", sendername, giveplayer);
  44541. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44542. ClearGuns(giveplayerid);
  44543. ResetPlayerWeapons(giveplayerid);
  44544. format(string, sizeof(string), "%s has taken %s's Weapons.", sendername, giveplayer);
  44545. PayLog(string);
  44546. }
  44547. else
  44548. {
  44549. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44550. return 1;
  44551. }
  44552. }
  44553. }
  44554. else
  44555. {
  44556. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44557. return 1;
  44558. }
  44559. }
  44560. else if(strcmp(x_nr,"pot",true) == 0)
  44561. {
  44562. tmp = strtok(cmdtext, idx);
  44563. if(!strlen(tmp))
  44564. {
  44565. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44566. return 1;
  44567. }
  44568. giveplayerid = ReturnUser(tmp);
  44569. if(IsPlayerConnected(giveplayerid))
  44570. {
  44571. if(giveplayerid != INVALID_PLAYER_ID)
  44572. {
  44573. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44574. {
  44575. if(PlayerInfo[giveplayerid][pPot] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Pot !"); return 1; }
  44576. GetPlayerName(playerid, sendername, sizeof(sendername));
  44577. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44578. format(string, sizeof(string), " You have taken %d Pot from %s.", PlayerInfo[giveplayerid][pPot],giveplayer);
  44579. SendClientMessage(playerid, COLOR_GRAD1, string);
  44580. format(string, sizeof(string), " %s has taken your %d Pot.", sendername, PlayerInfo[giveplayerid][pPot]);
  44581. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44582. format(string, sizeof(string), "* Officer %s has taken away %s's Pot.", sendername, giveplayer);
  44583. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44584. PlayerInfo[giveplayerid][pPot] = 0;
  44585. format(string, sizeof(string), "%s has taken %d Pot from %s.", sendername, PlayerInfo[giveplayerid][pPot], giveplayer);
  44586. PayLog(string);
  44587. }
  44588. else
  44589. {
  44590. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44591. return 1;
  44592. }
  44593. }
  44594. }
  44595. else
  44596. {
  44597. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44598. return 1;
  44599. }
  44600. }
  44601. else if(strcmp(x_nr,"crack",true) == 0)
  44602. {
  44603. tmp = strtok(cmdtext, idx);
  44604. if(!strlen(tmp))
  44605. {
  44606. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44607. return 1;
  44608. }
  44609. giveplayerid = ReturnUser(tmp);
  44610. if(IsPlayerConnected(giveplayerid))
  44611. {
  44612. if(giveplayerid != INVALID_PLAYER_ID)
  44613. {
  44614. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44615. {
  44616. if(PlayerInfo[giveplayerid][pCrack] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Crack !"); return 1; }
  44617. GetPlayerName(playerid, sendername, sizeof(sendername));
  44618. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44619. format(string, sizeof(string), " You have taken %d Crack from %s.", PlayerInfo[giveplayerid][pCrack],giveplayer);
  44620. SendClientMessage(playerid, COLOR_GRAD1, string);
  44621. format(string, sizeof(string), " %s has taken your %d Crack.", sendername, PlayerInfo[giveplayerid][pCrack]);
  44622. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44623. format(string, sizeof(string), "* Officer %s has taken away %s's Crack.", sendername, giveplayer);
  44624. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44625. PlayerInfo[giveplayerid][pCrack] = 0;
  44626. format(string, sizeof(string), "%s has taken %d Crack from %s.", sendername, PlayerInfo[giveplayerid][pCrack], giveplayer);
  44627. PayLog(string);
  44628. }
  44629. else
  44630. {
  44631. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44632. return 1;
  44633. }
  44634. }
  44635. }
  44636. else
  44637. {
  44638. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44639. return 1;
  44640. }
  44641. }
  44642. else if(strcmp(x_nr,"materials",true) == 0)
  44643. {
  44644. tmp = strtok(cmdtext, idx);
  44645. if(!strlen(tmp))
  44646. {
  44647. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44648. return 1;
  44649. }
  44650. giveplayerid = ReturnUser(tmp);
  44651. if(IsPlayerConnected(giveplayerid))
  44652. {
  44653. if(giveplayerid != INVALID_PLAYER_ID)
  44654. {
  44655. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44656. {
  44657. if(PlayerInfo[giveplayerid][pMats] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have any Materials !"); return 1; }
  44658. GetPlayerName(playerid, sendername, sizeof(sendername));
  44659. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44660. format(string, sizeof(string), " You have taken %d Materials from %s.", PlayerInfo[giveplayerid][pMats],giveplayer);
  44661. SendClientMessage(playerid, COLOR_GRAD1, string);
  44662. format(string, sizeof(string), " %s has taken your %d Materials.", sendername, PlayerInfo[giveplayerid][pMats]);
  44663. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  44664. format(string, sizeof(string), "* Officer %s has taken away %s's Materials.", sendername, giveplayer);
  44665. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44666. PlayerInfo[giveplayerid][pMats] = 0;
  44667. format(string, sizeof(string), "%s has taken %d Materials from %s.", sendername, PlayerInfo[giveplayerid][pMats], giveplayer);
  44668. PayLog(string);
  44669. }
  44670. else
  44671. {
  44672. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44673. return 1;
  44674. }
  44675. }
  44676. }
  44677. else
  44678. {
  44679. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44680. return 1;
  44681. }
  44682. }
  44683. else if(strcmp(x_nr,"cellphone",true) == 0)
  44684. {
  44685. tmp = strtok(cmdtext, idx);
  44686. if(!strlen(tmp))
  44687. {
  44688. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/PartOfName]");
  44689. return 1;
  44690. }
  44691. giveplayerid = ReturnUser(tmp);
  44692. if(IsPlayerConnected(giveplayerid))
  44693. {
  44694. if(giveplayerid != INVALID_PLAYER_ID)
  44695. {
  44696. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44697. {
  44698. if(PlayerInfo[giveplayerid][pPnumber] == 0) { SendClientMessage(playerid, COLOR_GREY, " That player doesn't have a Cellphone !"); return 1; }
  44699. GetPlayerName(playerid, sendername, sizeof(sendername));
  44700. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44701. format(string, sizeof(string), "* You have taken away %s's Cellphone.", giveplayer);
  44702. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44703. format(string, sizeof(string), "* Officer %s as taken away your Cellphone.", sendername);
  44704. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44705. format(string, sizeof(string), "* Officer %s has taken away %s's Cellphone.", sendername, giveplayer);
  44706. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  44707. PlayerInfo[giveplayerid][pPnumber] = 0;
  44708. format(string, sizeof(string), "%s has taken %s's Cellphone.", sendername, giveplayer);
  44709. PayLog(string);
  44710. }
  44711. else
  44712. {
  44713. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44714. return 1;
  44715. }
  44716. }
  44717. }
  44718. else
  44719. {
  44720. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44721. return 1;
  44722. }
  44723. }
  44724. else
  44725. {
  44726. SendClientMessage(playerid, COLOR_GREY, " Invalid take name !");
  44727. return 1;
  44728. }
  44729. }
  44730. else
  44731. {
  44732. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop !");
  44733. return 1;
  44734. }
  44735. }
  44736. return 1;
  44737. }
  44738. if(strcmp(cmd, "/setchamp", true) == 0)
  44739. {
  44740. if(IsPlayerConnected(playerid))
  44741. {
  44742. if(PlayerInfo[playerid][pAdmin] >= 4)
  44743. {
  44744. tmp = strtok(cmdtext, idx);
  44745. if(!strlen(tmp))
  44746. {
  44747. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setchamp [playerid/PartOfName]");
  44748. return 1;
  44749. }
  44750. giveplayerid = ReturnUser(tmp);
  44751. if(IsPlayerConnected(giveplayerid))
  44752. {
  44753. if(giveplayerid != INVALID_PLAYER_ID)
  44754. {
  44755. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44756. new nstring[MAX_PLAYER_NAME];
  44757. format(nstring, sizeof(nstring), "%s", giveplayer);
  44758. strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
  44759. Titel[TitelWins] = PlayerInfo[giveplayerid][pWins];
  44760. Titel[TitelLoses] = PlayerInfo[giveplayerid][pLoses];
  44761. SaveBoxer();
  44762. format(string, sizeof(string), "* You have made %s the new Boxing Champion.", giveplayer);
  44763. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44764. }
  44765. }
  44766. else
  44767. {
  44768. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44769. return 1;
  44770. }
  44771. }
  44772. else
  44773. {
  44774. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  44775. }
  44776. }
  44777. return 1;
  44778. }
  44779. if(strcmp(cmd, "/boxstats", true) == 0)
  44780. {
  44781. if(IsPlayerConnected(playerid))
  44782. {
  44783. if(PlayerInfo[playerid][pJob] != 12)
  44784. {
  44785. SendClientMessage(playerid, COLOR_GREY, " You are not a Boxer !");
  44786. return 1;
  44787. }
  44788. new ttext[20];//Title
  44789. new clevel = PlayerInfo[playerid][pBoxSkill];
  44790. if(clevel >= 0 && clevel <= 49) { ttext = "Beginner"; }
  44791. else if(clevel >= 50 && clevel <= 199) { ttext = "Amateur"; }
  44792. else if(clevel >= 200 && clevel <= 399) { ttext = "Professional"; }
  44793. new ntext[20];//NickName
  44794. new level = PlayerInfo[playerid][pWins];
  44795. if(level > 0 && PlayerInfo[playerid][pLoses] == 0)
  44796. {
  44797. ntext = "Undefeated";
  44798. }
  44799. else
  44800. {
  44801. if(level >= 0 && level <= 10) { ntext = "Newcomer"; }
  44802. else if(level >= 11 && level <= 20) { ntext = "Touchy Fist"; }
  44803. else if(level >= 21 && level <= 30) { ntext = "Nut Cracker"; }
  44804. else if(level >= 31 && level <= 40) { ntext = "Tommygun"; }
  44805. else if(level >= 41 && level <= 50) { ntext = "Skull Breaker"; }
  44806. else if(level >= 51 && level <= 60) { ntext = "Light Speed"; }
  44807. else if(level >= 61 && level <= 70) { ntext = "Unbroken Warrior"; }
  44808. else if(level >= 71) { ntext = "Itallion Stallion"; }
  44809. }
  44810. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Boxing Records __________________|");
  44811. format(string, sizeof(string), "| Current Champion: %s, with [%d] Winnings and [%d] Losses.", Titel[TitelName],Titel[TitelWins],Titel[TitelLoses]);
  44812. SendClientMessage(playerid, COLOR_GREY, string);
  44813. format(string, sizeof(string), "| Current Title: %s.", ttext);
  44814. SendClientMessage(playerid, COLOR_GREY, string);
  44815. format(string, sizeof(string), "| Current NickName: %s.", ntext);
  44816. SendClientMessage(playerid, COLOR_GREY, string);
  44817. format(string, sizeof(string), "| Total Wins: %d.", PlayerInfo[playerid][pWins]);
  44818. SendClientMessage(playerid, COLOR_GREY, string);
  44819. format(string, sizeof(string), "| Total Losses: %d.", PlayerInfo[playerid][pLoses]);
  44820. SendClientMessage(playerid, COLOR_GREY, string);
  44821. SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________________|");
  44822. }
  44823. return 1;
  44824. }
  44825. if(strcmp(cmd, "/fight", true) == 0)
  44826. {
  44827. if(IsPlayerConnected(playerid))
  44828. {
  44829. if(InRing > 0)
  44830. {
  44831. SendClientMessage(playerid, COLOR_GREY, " There is already a Fight going on, wait for it to Finish !");
  44832. return 1;
  44833. }
  44834. if(PlayerBoxing[playerid] > 0)
  44835. {
  44836. SendClientMessage(playerid, COLOR_GREY, " You are already Fighting !");
  44837. return 1;
  44838. }
  44839. if(!IsPlayerInRangeOfPoint(playerid,20.0,765.9343,0.2761,1000.7173))
  44840. {
  44841. SendClientMessage(playerid, COLOR_GREY, " You are not at the Ganton Gym !");
  44842. return 1;
  44843. }
  44844. tmp = strtok(cmdtext, idx);
  44845. if(!strlen(tmp)) {
  44846. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fight [Playerid/PartOfName]");
  44847. return 1;
  44848. }
  44849. giveplayerid = ReturnUser(tmp);
  44850. if(IsPlayerConnected(giveplayerid))
  44851. {
  44852. if(giveplayerid != INVALID_PLAYER_ID)
  44853. {
  44854. if(ProxDetectorS(8.0, playerid, giveplayerid))
  44855. {
  44856. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Box with yourself !"); return 1; }
  44857. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  44858. GetPlayerName(playerid, sendername, sizeof(sendername));
  44859. format(string, sizeof(string), "* You offered a Boxing Challenge to %s.", giveplayer);
  44860. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44861. format(string, sizeof(string), "* Boxer %s wants to Fight with you (type /accept boxing) to accept.", sendername);
  44862. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  44863. BoxOffer[giveplayerid] = playerid;
  44864. }
  44865. else
  44866. {
  44867. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  44868. return 1;
  44869. }
  44870. }
  44871. }
  44872. else
  44873. {
  44874. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  44875. return 1;
  44876. }
  44877. }
  44878. return 1;
  44879. }
  44880. if(strcmp(cmd, "/music", true) == 0)
  44881. {
  44882. if(IsPlayerConnected(playerid))
  44883. {
  44884. if(PlayerInfo[playerid][pCDPlayer])
  44885. {
  44886. new x_nr[32];
  44887. x_nr = strtok(cmdtext, idx);
  44888. if(!strlen(x_nr)) {
  44889. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /music [on/off/next]");
  44890. return 1;
  44891. }
  44892. if(strcmp(x_nr,"on",true) == 0)
  44893. {
  44894. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~CD Player On", 5000, 5);
  44895. new channel = Music[playerid];
  44896. PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
  44897. }
  44898. else if(strcmp(x_nr,"off",true) == 0)
  44899. {
  44900. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~CD Player Off", 5000, 5);
  44901. PlayerFixRadio(playerid);
  44902. }
  44903. else if(strcmp(x_nr,"next",true) == 0)
  44904. {
  44905. if(Music[playerid] == 0) { Music[playerid] = 1; }
  44906. else if(Music[playerid] == 1) { Music[playerid] = 2; }
  44907. else if(Music[playerid] == 2) { Music[playerid] = 3; }
  44908. else if(Music[playerid] == 3) { Music[playerid] = 4; }
  44909. else if(Music[playerid] == 4) { Music[playerid] = 5; }
  44910. else if(Music[playerid] == 5) { Music[playerid] = 6; }
  44911. else if(Music[playerid] == 6) { Music[playerid] = 0; }
  44912. new channel = Music[playerid];
  44913. PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
  44914. }
  44915. else
  44916. {
  44917. return 1;
  44918. }
  44919. }
  44920. else
  44921. {
  44922. SendClientMessage(playerid, COLOR_GREY, " You don't have a CD-Player !");
  44923. return 1;
  44924. }
  44925. }
  44926. return 1;
  44927. }
  44928. if(strcmp(cmd, "/service", true) == 0)
  44929. {
  44930. if(IsPlayerConnected(playerid))
  44931. {
  44932. new x_nr[32];
  44933. x_nr = strtok(cmdtext, idx);
  44934. if(!strlen(x_nr)) {
  44935. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /service [name]");
  44936. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Taxi, Bus, Lawyer, Medic, Mechanic");
  44937. return 1;
  44938. }
  44939. if(strcmp(x_nr,"taxi",true) == 0)
  44940. {
  44941. if(TaxiDrivers < 1)
  44942. {
  44943. SendClientMessage(playerid, COLOR_GREY, " There are no Taxi Drivers on Duty at the moment, try again later !");
  44944. return 1;
  44945. }
  44946. if(TransportDuty[playerid] > 0)
  44947. {
  44948. SendClientMessage(playerid, COLOR_GREY, " You can't call for a Taxi now !");
  44949. return 1;
  44950. }
  44951. GetPlayerName(playerid, sendername, sizeof(sendername));
  44952. format(string, sizeof(string), "** %s is in need of a Taxi Driver. (use /accept taxi to accept the call)", sendername);
  44953. SendFamilyMessage(10, TEAM_AZTECAS_COLOR, string);
  44954. SendJobMessage(14, TEAM_AZTECAS_COLOR, string);
  44955. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Taxi Driver, wait for a reply.");
  44956. TaxiCall = playerid;
  44957. return 1;
  44958. }
  44959. else if(strcmp(x_nr,"bus",true) == 0)
  44960. {
  44961. if(BusDrivers < 1)
  44962. {
  44963. SendClientMessage(playerid, COLOR_GREY, " There are no Bus Drivers On Duty at the moment, try again later !");
  44964. return 1;
  44965. }
  44966. if(TransportDuty[playerid] > 0)
  44967. {
  44968. SendClientMessage(playerid, COLOR_GREY, " You can't call for a Bus now !");
  44969. return 1;
  44970. }
  44971. GetPlayerName(playerid, sendername, sizeof(sendername));
  44972. format(string, sizeof(string), "** %s is in need of a Bus Driver. (use /accept bus to accept the call)", sendername);
  44973. SendJobMessage(14, TEAM_AZTECAS_COLOR, string);
  44974. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Bus Driver, wait for a reply.");
  44975. BusCall = playerid;
  44976. return 1;
  44977. }
  44978. else if(strcmp(x_nr,"medic",true) == 0)
  44979. {
  44980. if(Medics < 1)
  44981. {
  44982. SendClientMessage(playerid, COLOR_GREY, " There are no Medics On Duty at the moment, try again later !");
  44983. return 1;
  44984. }
  44985. GetPlayerName(playerid, sendername, sizeof(sendername));
  44986. format(string, sizeof(string), "** %s is in need of a Medic. (use /accept medic to accept the call)", sendername);
  44987. SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
  44988. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Medic, wait for a reply.");
  44989. MedicCall = playerid;
  44990. return 1;
  44991. }
  44992. else if(strcmp(x_nr,"lawyer",true) == 0)
  44993. {
  44994. if(Lawyers < 1)
  44995. {
  44996. SendClientMessage(playerid, COLOR_GREY, " There are no Lawyers On Duty at the moment, try again later !");
  44997. return 1;
  44998. }
  44999. GetPlayerName(playerid, sendername, sizeof(sendername));
  45000. format(string, sizeof(string), "** %s is in need of a Lawyer. (use /accept lawyer to accept the call)", sendername);
  45001. SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
  45002. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Lawyer, wait for a reply.");
  45003. LawyerCall = playerid;
  45004. return 1;
  45005. }
  45006. else if(strcmp(x_nr,"mechanic",true) == 0)
  45007. {
  45008. if(Mechanics < 1)
  45009. {
  45010. SendClientMessage(playerid, COLOR_GREY, " There are no Mechanics On Duty at the moment, try again later !");
  45011. return 1;
  45012. }
  45013. GetPlayerName(playerid, sendername, sizeof(sendername));
  45014. format(string, sizeof(string), "** %s is in need of a Mechanic. (use /accept mechanic to accept the call)", sendername);
  45015. SendJobMessage(7, TEAM_AZTECAS_COLOR, string);
  45016. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Mechanic, wait for a reply.");
  45017. MechanicCall = playerid;
  45018. return 1;
  45019. }
  45020. else
  45021. {
  45022. SendClientMessage(playerid, COLOR_GREY, " Unknown service name !");
  45023. return 1;
  45024. }
  45025. }
  45026. return 1;
  45027. }
  45028. if(strcmp(cmd, "/unblindfold", true) == 0)
  45029. {
  45030. if(IsPlayerConnected(playerid))
  45031. {
  45032. tmp = strtok(cmdtext, idx);
  45033. if(!strlen(tmp))
  45034. {
  45035. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unblindfold [Playerid/PartOfName]");
  45036. return 1;
  45037. }
  45038. giveplayerid = ReturnUser(tmp);
  45039. if(IsPlayerConnected(giveplayerid))
  45040. {
  45041. if(giveplayerid != INVALID_PLAYER_ID)
  45042. {
  45043. if(ProxDetectorS(8.0, playerid, giveplayerid))
  45044. {
  45045. if(PlayerBlinded[giveplayerid])
  45046. {
  45047. if(PlayerTied[playerid]) return SendClientMessage(playerid,COLOR_GREY," You cannot unblindfold anyone, your arms are tied up!");
  45048. GetPlayerName(playerid, sendername, sizeof(sendername));
  45049. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  45050. if(PlayerInfo[playerid][pMask] == 1)
  45051. {
  45052. format(string, sizeof(string), "* You were unblindfolded by Stranger.");
  45053. }
  45054. else
  45055. {
  45056. format(string, sizeof(string), "* You were unblindfolded by %s.", sendername);
  45057. }
  45058. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  45059. if(PlayerInfo[giveplayerid][pMask] == 1)
  45060. {
  45061. format(string, sizeof(string), "* You unblindfolded Stranger.");
  45062. }
  45063. else
  45064. {
  45065. format(string, sizeof(string), "* You unblindfolded %s.", giveplayer);
  45066. }
  45067. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45068. if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
  45069. {
  45070. format(string, sizeof(string), "* Stranger takes the blindfold off of Stranger.");
  45071. }
  45072. else if(PlayerInfo[playerid][pMask] == 1)
  45073. {
  45074. format(string, sizeof(string), "* Stranger takes the blindfold off of %s.", giveplayer);
  45075. }
  45076. else if(PlayerInfo[giveplayerid][pMask] == 1)
  45077. {
  45078. format(string, sizeof(string), "* %s takes the blindfold off of Stranger.", sendername);
  45079. }
  45080. else
  45081. {
  45082. format(string, sizeof(string), "* %s takes the blindfold off of %s.", sendername,giveplayer);
  45083. }
  45084. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45085. GameTextForPlayer(giveplayerid, "~g~Unblindfolded", 2500, 3);
  45086. SetCameraBehindPlayer(giveplayerid);
  45087. PlayerBlinded[giveplayerid] = 0;
  45088. }
  45089. else
  45090. {
  45091. SendClientMessage(playerid, COLOR_GREY, " That player isn't blindfolded !");
  45092. return 1;
  45093. }
  45094. }
  45095. else
  45096. {
  45097. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  45098. return 1;
  45099. }
  45100. }
  45101. }
  45102. else
  45103. {
  45104. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  45105. return 1;
  45106. }
  45107. }
  45108. return 1;
  45109. }
  45110.  
  45111. if(strcmp(cmd, "/blindfold", true) == 0)
  45112. {
  45113. if(IsPlayerConnected(playerid))
  45114. {
  45115. if(PlayerInfo[playerid][pBlindfolds] < 1)
  45116. {
  45117. SendClientMessage(playerid, COLOR_GREY, " You don't have any blindfolds, buy some from the 24/7 !");
  45118. return 1;
  45119. }
  45120. tmp = strtok(cmdtext, idx);
  45121. if(!strlen(tmp))
  45122. {
  45123. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /blindfold [Playerid/PartOfName]");
  45124. return 1;
  45125. }
  45126. giveplayerid = ReturnUser(tmp);
  45127. if(IsPlayerConnected(giveplayerid))
  45128. {
  45129. if(giveplayerid != INVALID_PLAYER_ID)
  45130. {
  45131. if(giveplayerid == playerid)
  45132. {
  45133. SendClientMessage(playerid, COLOR_GREY, " You can't Blindfold yourself !");
  45134. return 1;
  45135. }
  45136. if(PlayerBlinded[giveplayerid] > 0)
  45137. {
  45138. SendClientMessage(playerid, COLOR_GREY, " Player already Blindfolded !");
  45139. return 1;
  45140. }
  45141. if(ProxDetectorS(8.0, playerid, giveplayerid))
  45142. {
  45143. if(PlayerTied[giveplayerid] > 0)
  45144. {
  45145. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  45146. GetPlayerName(playerid, sendername, sizeof(sendername));
  45147. if(PlayerInfo[playerid][pMask] == 1)
  45148. {
  45149. format(string, sizeof(string), "* You were blindfolded by Stranger.");
  45150. }
  45151. else
  45152. {
  45153. format(string, sizeof(string), "* You were blindfolded by %s.", sendername);
  45154. }
  45155. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  45156. if(PlayerInfo[giveplayerid][pMask] == 1)
  45157. {
  45158. format(string, sizeof(string), "* You blindfolded Stranger.");
  45159. }
  45160. else
  45161. {
  45162. format(string, sizeof(string), "* You blindfolded %s.", giveplayer);
  45163. }
  45164. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45165. if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
  45166. {
  45167. format(string, sizeof(string), "* Stranger ties a blindfold around Stranger's head.");
  45168. }
  45169. else if(PlayerInfo[playerid][pMask] == 1)
  45170. {
  45171. format(string, sizeof(string), "* Stranger ties a blindfold around %s's head.", giveplayer);
  45172. }
  45173. else if(PlayerInfo[giveplayerid][pMask] == 1)
  45174. {
  45175. format(string, sizeof(string), "* %s ties a blindfold around Stranger's head.", sendername);
  45176. }
  45177. else
  45178. {
  45179. format(string, sizeof(string), "* %s ties a blindfold around %s's head.", sendername,giveplayer);
  45180. }
  45181. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45182. GameTextForPlayer(giveplayerid, "~r~Blindfolded", 2500, 3);
  45183. PlayerBlinded[giveplayerid] = 1;
  45184. SetPlayerCameraPos(giveplayerid, -833.5241,-1358.8575,86.9054);
  45185. SetPlayerCameraLookAt(giveplayerid, -833.5241,-1358.8575,0);
  45186. PlayerInfo[playerid][pBlindfolds]--;
  45187. }
  45188. else
  45189. {
  45190. if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
  45191. {
  45192. format(string, sizeof(string), "* Stranger attempts to tie a blindfold around Stranger's head, but fails.");
  45193. }
  45194. else if(PlayerInfo[playerid][pMask] == 1)
  45195. {
  45196. format(string, sizeof(string), "* Stranger attempts to tie a blindfold around %s's head, but fails.", PlayerName(giveplayerid));
  45197. }
  45198. else if(PlayerInfo[giveplayerid][pMask] == 1)
  45199. {
  45200. format(string, sizeof(string), "* %s attempts to tie a blindfold around Stranger's head, but fails.", PlayerName(playerid));
  45201. }
  45202. else
  45203. {
  45204. format(string, sizeof(string), "* %s attempts to tie a blindfold around %s's head, but fails.", PlayerName(playerid),PlayerName(giveplayerid));
  45205. }
  45206. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45207. return 1;
  45208. }
  45209. }
  45210. else
  45211. {
  45212. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  45213. return 1;
  45214. }
  45215. }
  45216. }
  45217. else
  45218. {
  45219. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  45220. return 1;
  45221. }
  45222. }
  45223. return 1;
  45224. }
  45225. if(strcmp(cmd, "/tie", true) == 0)
  45226. {
  45227. if(IsPlayerConnected(playerid))
  45228. {
  45229. if(PlayerInfo[playerid][pRope] < 1)
  45230. {
  45231. SendClientMessage(playerid, COLOR_GREY, " You don't have any rope, buy some from the 24/7 !");
  45232. return 1;
  45233. }
  45234. tmp = strtok(cmdtext, idx);
  45235. if(!strlen(tmp))
  45236. {
  45237. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tie [Playerid/PartOfName]");
  45238. return 1;
  45239. }
  45240. giveplayerid = ReturnUser(tmp);
  45241. if(IsPlayerConnected(giveplayerid))
  45242. {
  45243. if(giveplayerid != INVALID_PLAYER_ID)
  45244. {
  45245. if(giveplayerid == playerid)
  45246. {
  45247. SendClientMessage(playerid, COLOR_GREY, " You can't Tie yourself !");
  45248. return 1;
  45249. }
  45250. if(PlayerCuffed[giveplayerid] > 0)
  45251. {
  45252. SendClientMessage(playerid, COLOR_GREY, " That player is Cuffed !");
  45253. return 1;
  45254. }
  45255. if(PlayerTied[giveplayerid] > 0)
  45256. {
  45257. SendClientMessage(playerid, COLOR_GREY, " Player already Tied !");
  45258. return 1;
  45259. }
  45260. if(ProxDetectorS(8.0, playerid, giveplayerid))
  45261. {
  45262. new car = GetPlayerVehicleID(playerid);
  45263. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
  45264. {
  45265. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  45266. GetPlayerName(playerid, sendername, sizeof(sendername));
  45267. if(PlayerInfo[playerid][pMask] == 1)
  45268. {
  45269. format(string, sizeof(string), "* You were tied up by Stranger.");
  45270. }
  45271. else
  45272. {
  45273. format(string, sizeof(string), "* You were tied up by %s.", sendername);
  45274. }
  45275. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  45276. if(PlayerInfo[giveplayerid][pMask] == 1)
  45277. {
  45278. format(string, sizeof(string), "* You tied Stranger up.");
  45279. }
  45280. else
  45281. {
  45282. format(string, sizeof(string), "* You tied %s up.", giveplayer);
  45283. }
  45284. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45285. if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
  45286. {
  45287. format(string, sizeof(string), "* Stranger ties Stranger up, so he wont go anywhere.");
  45288. }
  45289. else if(PlayerInfo[playerid][pMask] == 1)
  45290. {
  45291. format(string, sizeof(string), "* Stranger ties %s up, so he wont go anywhere.", giveplayer);
  45292. }
  45293. else if(PlayerInfo[giveplayerid][pMask] == 1)
  45294. {
  45295. format(string, sizeof(string), "* %s ties Stranger up, so he wont go anywhere.", sendername);
  45296. }
  45297. else
  45298. {
  45299. format(string, sizeof(string), "* %s ties %s up, so he wont go anywhere.", sendername,giveplayer);
  45300. }
  45301. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45302. GameTextForPlayer(giveplayerid, "~r~Tied", 2500, 3);
  45303. TogglePlayerControllable(giveplayerid, 0);
  45304. PlayerTied[giveplayerid] = 1;
  45305. PlayerCuffedTime[giveplayerid] = 150;
  45306. PlayerInfo[playerid][pRope]--;
  45307. }
  45308. else
  45309. {
  45310. SendClientMessage(playerid, COLOR_GREY, " Player not in your Car, or your not the Driver !");
  45311. return 1;
  45312. }
  45313. }
  45314. else
  45315. {
  45316. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  45317. return 1;
  45318. }
  45319. }
  45320. }
  45321. else
  45322. {
  45323. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  45324. return 1;
  45325. }
  45326. }
  45327. return 1;
  45328. }
  45329. if(strcmp(cmd, "/usecigar", true) == 0)
  45330. {
  45331. if(IsPlayerConnected(playerid))
  45332. {
  45333. if(PlayerInfo[playerid][pCigars] < 1)
  45334. {
  45335. SendClientMessage(playerid, COLOR_GREY, " You don't have any cigars, buy some from the 24/7 !");
  45336. return 1;
  45337. }
  45338. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  45339. {
  45340. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  45341. return 1;
  45342. }
  45343. if(PlayerInfo[playerid][pMask] == 1)
  45344. {
  45345. format(string, sizeof(string), "* Stranger takes out a cigar and lights it.");
  45346. }
  45347. else
  45348. {
  45349. format(string, sizeof(string), "* %s takes out a cigar and lights it.", PlayerName(playerid));
  45350. }
  45351. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45352. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  45353. PlayerInfo[playerid][pCigars]--;
  45354. }
  45355. return 1;
  45356. }
  45357. if(strcmp(cmd, "/donuts", true) == 0)
  45358. {
  45359. if(IsPlayerConnected(playerid))
  45360. {
  45361. if(PlayerInfo[playerid][pDonuts] == 1) format(string, sizeof(string), "You have %d donuts.", PlayerInfo[playerid][pDonuts]);
  45362. else format(string, sizeof(string), "You have %d donuts.", PlayerInfo[playerid][pDonuts]);
  45363. SendClientMessage(playerid,COLOR_GREY,string);
  45364. }
  45365. }
  45366. if(strcmp(cmd, "/usesprunk", true) == 0)
  45367. {
  45368. if(IsPlayerConnected(playerid))
  45369. {
  45370. if(PlayerInfo[playerid][pSprunk] < 1)
  45371. {
  45372. SendClientMessage(playerid, COLOR_GREY, " You don't have any sprunk, buy some from the 24/7 !");
  45373. return 1;
  45374. }
  45375. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  45376. {
  45377. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  45378. return 1;
  45379. }
  45380. if(PlayerInfo[playerid][pMask] == 1)
  45381. {
  45382. format(string, sizeof(string), "* Stranger opens a can of sprunk.");
  45383. }
  45384. else
  45385. {
  45386. format(string, sizeof(string), "* %s opens a can of sprunk.", PlayerName(playerid));
  45387. }
  45388. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45389. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  45390. PlayerInfo[playerid][pSprunk]--;
  45391. UserSprunk[playerid] = 0;
  45392. }
  45393. return 1;
  45394. }
  45395. if(strcmp(cmd, "/untie", true) == 0)
  45396. {
  45397. if(IsPlayerConnected(playerid))
  45398. {
  45399. tmp = strtok(cmdtext, idx);
  45400. if(!strlen(tmp))
  45401. {
  45402. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /untie [Playerid/PartOfName]");
  45403. return 1;
  45404. }
  45405. giveplayerid = ReturnUser(tmp);
  45406. if(IsPlayerConnected(giveplayerid))
  45407. {
  45408. if(giveplayerid != INVALID_PLAYER_ID)
  45409. {
  45410. if(ProxDetectorS(8.0, playerid, giveplayerid))
  45411. {
  45412. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't untie yourself !"); return 1; }
  45413. if(PlayerTied[giveplayerid])
  45414. {
  45415. GetPlayerName(playerid, sendername, sizeof(sendername));
  45416. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  45417. if(PlayerInfo[playerid][pMask] == 1)
  45418. {
  45419. format(string, sizeof(string), "* You were untied by Stranger.");
  45420. }
  45421. else
  45422. {
  45423. format(string, sizeof(string), "* You were untied by %s.", sendername);
  45424. }
  45425. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  45426. if(PlayerInfo[giveplayerid][pMask] == 1)
  45427. {
  45428. format(string, sizeof(string), "* You untied Stranger.");
  45429. }
  45430. else
  45431. {
  45432. format(string, sizeof(string), "* You untied %s.", giveplayer);
  45433. }
  45434. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45435. if(PlayerInfo[playerid][pMask] == 1 && PlayerInfo[giveplayerid][pMask] == 1)
  45436. {
  45437. format(string, sizeof(string), "* Stranger loosens the ropes on Stranger.");
  45438. }
  45439. else if(PlayerInfo[playerid][pMask] == 1)
  45440. {
  45441. format(string, sizeof(string), "* Stranger loosens the ropes on %s.", giveplayer);
  45442. }
  45443. else if(PlayerInfo[giveplayerid][pMask] == 1)
  45444. {
  45445. format(string, sizeof(string), "* %s loosens the ropes on Stranger.", sendername);
  45446. }
  45447. else
  45448. {
  45449. format(string, sizeof(string), "* %s loosens the ropes on %s.", sendername,giveplayer);
  45450. }
  45451. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  45452. GameTextForPlayer(giveplayerid, "~g~Untied", 2500, 3);
  45453. TogglePlayerControllable(giveplayerid, 1);
  45454. PlayerTied[giveplayerid] = 0;
  45455. }
  45456. else
  45457. {
  45458. SendClientMessage(playerid, COLOR_GREY, " That player isn't Tied up !");
  45459. return 1;
  45460. }
  45461. }
  45462. else
  45463. {
  45464. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  45465. return 1;
  45466. }
  45467. }
  45468. }
  45469. else
  45470. {
  45471. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  45472. return 1;
  45473. }
  45474. }
  45475. return 1;
  45476. }
  45477. if(strcmp(cmd, "/sellfish", true) == 0)
  45478. {
  45479. if(IsPlayerConnected(playerid))
  45480. {
  45481. if(!IsPlayerInRangeOfPoint(playerid, 100, -30.875, -88.9609, 1004.53))
  45482. {
  45483. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a 24-7 !");
  45484. return 1;
  45485. }
  45486. tmp = strtok(cmdtext, idx);
  45487. if(!strlen(tmp))
  45488. {
  45489. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellfish [number]");
  45490. return 1;
  45491. }
  45492. new price;
  45493. new fishid = strvalEx(tmp);
  45494. if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_GREY, " Fish can't be below 1 or above 5 !"); return 1; }
  45495. else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
  45496. else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
  45497. else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
  45498. else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
  45499. else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a fish in that slot !"); return 1; }
  45500. switch (fishid)
  45501. {
  45502. case 1:
  45503. {
  45504. if(Fishes[playerid][pWeight1] < 20)
  45505. {
  45506. SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighting 20 LBS or more.");
  45507. return 1;
  45508. }
  45509. price = FishCost(playerid, Fishes[playerid][pFid1]);
  45510. price = price * Fishes[playerid][pWeight1];
  45511. format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish1],Fishes[playerid][pWeight1],price);
  45512. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45513. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
  45514. GivePlayerMoney(playerid, price);
  45515. ClearFishID(playerid, 1);
  45516. }
  45517. case 2:
  45518. {
  45519. if(Fishes[playerid][pWeight2] < 20)
  45520. {
  45521. SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
  45522. return 1;
  45523. }
  45524. price = FishCost(playerid, Fishes[playerid][pFid2]);
  45525. price = price * Fishes[playerid][pWeight2];
  45526. format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish2],Fishes[playerid][pWeight2],price);
  45527. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45528. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
  45529. GivePlayerMoney(playerid, price);
  45530. ClearFishID(playerid, 2);
  45531. }
  45532. case 3:
  45533. {
  45534. if(Fishes[playerid][pWeight3] < 20)
  45535. {
  45536. SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
  45537. return 1;
  45538. }
  45539. price = FishCost(playerid, Fishes[playerid][pFid3]);
  45540. price = price * Fishes[playerid][pWeight3];
  45541. format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish3],Fishes[playerid][pWeight3],price);
  45542. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45543. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
  45544. GivePlayerMoney(playerid, price);
  45545. ClearFishID(playerid, 3);
  45546. }
  45547. case 4:
  45548. {
  45549. if(Fishes[playerid][pWeight4] < 20)
  45550. {
  45551. SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
  45552. return 1;
  45553. }
  45554. price = FishCost(playerid, Fishes[playerid][pFid4]);
  45555. price = price * Fishes[playerid][pWeight4];
  45556. format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish4],Fishes[playerid][pWeight4],price);
  45557. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45558. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
  45559. GivePlayerMoney(playerid, price);
  45560. ClearFishID(playerid, 4);
  45561. }
  45562. case 5:
  45563. {
  45564. if(Fishes[playerid][pWeight5] < 20)
  45565. {
  45566. SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fish weighing 20 LBS or more.");
  45567. return 1;
  45568. }
  45569. price = FishCost(playerid, Fishes[playerid][pFid5]);
  45570. price = price * Fishes[playerid][pWeight5];
  45571. format(string, sizeof(string), "* You have sold your %s that weighs %d, for $%d.", Fishes[playerid][pFish5],Fishes[playerid][pWeight5],price);
  45572. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45573. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
  45574. GivePlayerMoney(playerid, price);
  45575. ClearFishID(playerid, 5);
  45576. }
  45577. }
  45578. Fishes[playerid][pLastFish] = 0;
  45579. Fishes[playerid][pFishID] = 0;
  45580. return 1;
  45581. }
  45582. return 1;
  45583. }
  45584. if(strcmp(cmd,"/fare",true)==0)
  45585. {
  45586. if(IsPlayerConnected(playerid))
  45587. {
  45588. if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 14)
  45589. {
  45590. if(TransportDuty[playerid] > 0)
  45591. {
  45592. if(TransportDuty[playerid] == 1)
  45593. {
  45594. TaxiDrivers -= 1;
  45595. }
  45596. else if(TransportDuty[playerid] == 2)
  45597. {
  45598. BusDrivers -= 1;
  45599. }
  45600. TransportDuty[playerid] = 0;
  45601. format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
  45602. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45603. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+TransportMoney[playerid];
  45604. GivePlayerMoney(playerid, TransportMoney[playerid]);
  45605. TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
  45606. SetPlayerColor(playerid, TCOLOR_WHITE);
  45607. PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
  45608. return 1;
  45609. }
  45610. new Veh = GetPlayerVehicleID(playerid);
  45611. if(IsATaxiCar(Veh) || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] > 4 || PlayerInfo[playerid][pLeader] == 10)
  45612. {
  45613. if(GetPlayerState(playerid) == 2)
  45614. {
  45615. tmp = strtok(cmdtext, idx);
  45616. if(!strlen(tmp))
  45617. {
  45618. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
  45619. return 1;
  45620. }
  45621. moneys = strvalEx(tmp);
  45622. if(moneys < 1 || moneys > 500) { SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $500 !"); return 1; }
  45623. TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
  45624. GetPlayerName(playerid,sendername,sizeof(sendername));
  45625. format(string, sizeof(string), "Taxi Driver %s is On Duty, Fare: $%d, If you need a Taxi, type /service.", sendername, TransportValue[playerid]);
  45626. SetPlayerColor(playerid, TCOLOR_YELLOW);
  45627. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  45628. OOCNews(TEAM_GROVE_COLOR,string);
  45629. }
  45630. else
  45631. {
  45632. SendClientMessage(playerid, COLOR_GREY, " You are not the Driver !");
  45633. return 1;
  45634. }
  45635. }
  45636. else if(IsABus(Veh) || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] > 4 || PlayerInfo[playerid][pLeader] == 10)
  45637. {
  45638. if(GetPlayerState(playerid) == 2)
  45639. {
  45640. tmp = strtok(cmdtext, idx);
  45641. if(!strlen(tmp))
  45642. {
  45643. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
  45644. return 1;
  45645. }
  45646. moneys = strvalEx(tmp);
  45647. if(moneys < 1 || moneys > 500) { SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $500 !"); return 1; }
  45648. BusDrivers += 1; TransportDuty[playerid] = 2; TransportValue[playerid]= moneys;
  45649. GetPlayerName(playerid,sendername,sizeof(sendername));
  45650. format(string, sizeof(string), "Bus Driver %s is On Duty, fare: $%d, If you need a Bus, type /service.", sendername, TransportValue[playerid]);
  45651. SetPlayerColor(playerid, TCOLOR_YELLOW);
  45652. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  45653. OOCNews(TEAM_GROVE_COLOR,string);
  45654. }
  45655. else
  45656. {
  45657. SendClientMessage(playerid, COLOR_GREY, " You are not the Driver !");
  45658. return 1;
  45659. }
  45660. }
  45661. else
  45662. {
  45663. SendClientMessage(playerid, COLOR_GREY, " You are not in a Taxi / Bus, or a high enough Rank !");
  45664. }
  45665. }
  45666. else
  45667. {
  45668. SendClientMessage(playerid,COLOR_GREY," You are not a Taxi / Bus Driver !");
  45669. return 1;
  45670. }
  45671. }
  45672. return 1;
  45673. }
  45674. if(strcmp(cmd,"/fish",true)==0)
  45675. {
  45676. if(IsPlayerConnected(playerid))
  45677. {
  45678. if(PlayerInfo[playerid][pFishes] > 5)
  45679. {
  45680. SendClientMessage(playerid, COLOR_GREY, " Caught to many fish, wait till its reduced !");
  45681. return 1;
  45682. }
  45683. if(Fishes[playerid][pWeight1] > 0 && Fishes[playerid][pWeight2] > 0 && Fishes[playerid][pWeight3] > 0 && Fishes[playerid][pWeight4] > 0 && Fishes[playerid][pWeight5] > 0)
  45684. {
  45685. SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 5 Fish, sell or release them first !");
  45686. return 1;
  45687. }
  45688. new Veh = GetPlayerVehicleID(playerid);
  45689. if((IsAtFishPlace(playerid)) || IsABoat(Veh))
  45690. {
  45691. new Caught;
  45692. new rand;
  45693. new fstring[MAX_PLAYER_NAME];
  45694. new Level = PlayerInfo[playerid][pFishSkill];
  45695. if(Level >= 0 && Level <= 50) { Caught = random(35)-7; }
  45696. else if(Level >= 51 && Level <= 100) { Caught = random(55)-20; }
  45697. else if(Level >= 101 && Level <= 200) { Caught = random(105)-50; }
  45698. else if(Level >= 201 && Level <= 400) { Caught = random(165)-60; }
  45699. else if(Level >= 401) { Caught = random(185)-70; }
  45700. rand = random(FishNamesNumber);
  45701. if(Caught <= 0)
  45702. {
  45703. SendClientMessage(playerid, COLOR_GREY, " Line snapped !");
  45704. return 1;
  45705. }
  45706. else if(rand == 0)
  45707. {
  45708. SendClientMessage(playerid, COLOR_GREY, " You caught a Jacket and threw it away !");
  45709. return 1;
  45710. }
  45711. else if(rand == 4)
  45712. {
  45713. SendClientMessage(playerid, COLOR_GREY, " You caught some Pants and threw them away !");
  45714. return 1;
  45715. }
  45716. else if(rand == 7)
  45717. {
  45718. SendClientMessage(playerid, COLOR_GREY, " You caught a Can and threw it away !");
  45719. return 1;
  45720. }
  45721. else if(rand == 10)
  45722. {
  45723. SendClientMessage(playerid, COLOR_GREY, " You caught a pair of Shoes and threw them away !");
  45724. return 1;
  45725. }
  45726. else if(rand == 13)
  45727. {
  45728. SendClientMessage(playerid, COLOR_GREY, " You caught some Garbage and threw it away !");
  45729. return 1;
  45730. }
  45731. else if(rand == 20)
  45732. {
  45733. new mrand = random(500);
  45734. format(string, sizeof(string), "* You caught a Money Bag, containing $%d.", mrand);
  45735. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45736. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+mrand;
  45737. GivePlayerMoney(playerid, mrand);
  45738. return 1;
  45739. }
  45740. if(Fishes[playerid][pWeight1] == 0)
  45741. {
  45742. PlayerInfo[playerid][pFishes] += 1;
  45743. PlayerInfo[playerid][pFishSkill] += 1;
  45744. format(fstring, sizeof(fstring), "%s", FishNames[rand]);
  45745. strmid(Fishes[playerid][pFish1], fstring, 0, strlen(fstring), 255);
  45746. Fishes[playerid][pWeight1] = Caught;
  45747. format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish1], Caught);
  45748. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45749. Fishes[playerid][pLastWeight] = Caught;
  45750. Fishes[playerid][pLastFish] = 1;
  45751. Fishes[playerid][pFid1] = rand;
  45752. Fishes[playerid][pFishID] = rand;
  45753. if(Caught > PlayerInfo[playerid][pBiggestFish])
  45754. {
  45755. format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
  45756. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45757. PlayerInfo[playerid][pBiggestFish] = Caught;
  45758. }
  45759. }
  45760. else if(Fishes[playerid][pWeight2] == 0)
  45761. {
  45762. PlayerInfo[playerid][pFishes] += 1;
  45763. PlayerInfo[playerid][pFishSkill] += 1;
  45764. format(fstring, sizeof(fstring), "%s", FishNames[rand]);
  45765. strmid(Fishes[playerid][pFish2], fstring, 0, strlen(fstring), 255);
  45766. Fishes[playerid][pWeight2] = Caught;
  45767. format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish2], Caught);
  45768. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45769. Fishes[playerid][pLastWeight] = Caught;
  45770. Fishes[playerid][pLastFish] = 2;
  45771. Fishes[playerid][pFid2] = rand;
  45772. Fishes[playerid][pFishID] = rand;
  45773. if(Caught > PlayerInfo[playerid][pBiggestFish])
  45774. {
  45775. format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
  45776. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45777. PlayerInfo[playerid][pBiggestFish] = Caught;
  45778. }
  45779. }
  45780. else if(Fishes[playerid][pWeight3] == 0)
  45781. {
  45782. PlayerInfo[playerid][pFishes] += 1;
  45783. PlayerInfo[playerid][pFishSkill] += 1;
  45784. format(fstring, sizeof(fstring), "%s", FishNames[rand]);
  45785. strmid(Fishes[playerid][pFish3], fstring, 0, strlen(fstring), 255);
  45786. Fishes[playerid][pWeight3] = Caught;
  45787. format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish3], Caught);
  45788. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45789. Fishes[playerid][pLastWeight] = Caught;
  45790. Fishes[playerid][pLastFish] = 3;
  45791. Fishes[playerid][pFid3] = rand;
  45792. Fishes[playerid][pFishID] = rand;
  45793. if(Caught > PlayerInfo[playerid][pBiggestFish])
  45794. {
  45795. format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
  45796. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45797. PlayerInfo[playerid][pBiggestFish] = Caught;
  45798. }
  45799. }
  45800. else if(Fishes[playerid][pWeight4] == 0)
  45801. {
  45802. PlayerInfo[playerid][pFishes] += 1;
  45803. PlayerInfo[playerid][pFishSkill] += 1;
  45804. format(fstring, sizeof(fstring), "%s", FishNames[rand]);
  45805. strmid(Fishes[playerid][pFish4], fstring, 0, strlen(fstring), 255);
  45806. Fishes[playerid][pWeight4] = Caught;
  45807. format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish4], Caught);
  45808. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45809. Fishes[playerid][pLastWeight] = Caught;
  45810. Fishes[playerid][pLastFish] = 4;
  45811. Fishes[playerid][pFid4] = rand;
  45812. Fishes[playerid][pFishID] = rand;
  45813. if(Caught > PlayerInfo[playerid][pBiggestFish])
  45814. {
  45815. format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
  45816. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45817. PlayerInfo[playerid][pBiggestFish] = Caught;
  45818. }
  45819. }
  45820. else if(Fishes[playerid][pWeight5] == 0)
  45821. {
  45822. PlayerInfo[playerid][pFishes] += 1;
  45823. PlayerInfo[playerid][pFishSkill] += 1;
  45824. format(fstring, sizeof(fstring), "%s", FishNames[rand]);
  45825. strmid(Fishes[playerid][pFish5], fstring, 0, strlen(fstring), 255);
  45826. Fishes[playerid][pWeight5] = Caught;
  45827. format(string, sizeof(string), "* You have caught a %s, which weighs %d Lbs.", Fishes[playerid][pFish5], Caught);
  45828. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45829. Fishes[playerid][pLastWeight] = Caught;
  45830. Fishes[playerid][pLastFish] = 5;
  45831. Fishes[playerid][pFid5] = rand;
  45832. Fishes[playerid][pFishID] = rand;
  45833. if(Caught > PlayerInfo[playerid][pBiggestFish])
  45834. {
  45835. format(string, sizeof(string), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Caught);
  45836. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45837. PlayerInfo[playerid][pBiggestFish] = Caught;
  45838. }
  45839. }
  45840. else
  45841. {
  45842. SendClientMessage(playerid, COLOR_GREY, " You dont have any space for your Fish !");
  45843. return 1;
  45844. }
  45845. if(PlayerInfo[playerid][pFishSkill] == 50)
  45846. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 2, you can now catch Heavier Fishes."); }
  45847. else if(PlayerInfo[playerid][pFishSkill] == 250)
  45848. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 3, you can now catch Heavier Fishes."); }
  45849. else if(PlayerInfo[playerid][pFishSkill] == 500)
  45850. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 4, you can now catch Heavier Fishes."); }
  45851. else if(PlayerInfo[playerid][pFishSkill] == 1000)
  45852. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 5, you can now catch Heavier Fishes."); }
  45853. }
  45854. else
  45855. {
  45856. SendClientMessage(playerid, COLOR_GREY, " You are not in a fishing boat or at the pier !");
  45857. return 1;
  45858. }
  45859. }
  45860. return 1;
  45861. }
  45862. if(strcmp(cmd,"/fishes",true)==0)
  45863. {
  45864. if(IsPlayerConnected(playerid))
  45865. {
  45866. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Fishes __________________|");
  45867. format(string, sizeof(string), "** (1) Fish: %s. Weight: %d.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1]);
  45868. SendClientMessage(playerid, COLOR_GREY, string);
  45869. format(string, sizeof(string), "** (2) Fish: %s. Weight: %d.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2]);
  45870. SendClientMessage(playerid, COLOR_GREY, string);
  45871. format(string, sizeof(string), "** (3) Fish: %s. Weight: %d.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3]);
  45872. SendClientMessage(playerid, COLOR_GREY, string);
  45873. format(string, sizeof(string), "** (4) Fish: %s. Weight: %d.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4]);
  45874. SendClientMessage(playerid, COLOR_GREY, string);
  45875. format(string, sizeof(string), "** (5) Fish: %s. Weight: %d.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5]);
  45876. SendClientMessage(playerid, COLOR_GREY, string);
  45877. SendClientMessage(playerid, COLOR_WHITE, "|___________________________________________|");
  45878. }
  45879. return 1;
  45880. }
  45881. if(strcmp(cmd,"/releasefish",true)==0)
  45882. {
  45883. if(IsPlayerConnected(playerid))
  45884. {
  45885. tmp = strtok(cmdtext, idx);
  45886. if(!strlen(tmp))
  45887. {
  45888. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /releasefish [fish]");
  45889. return 1;
  45890. }
  45891. new fishid = strvalEx(tmp);
  45892. if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_GREY, " Fish number cant be below 1 or above 5 !"); return 1; }
  45893. else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 1 !"); return 1; }
  45894. else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 2 !"); return 1; }
  45895. else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 3 !"); return 1; }
  45896. else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 4 !"); return 1; }
  45897. else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Fish in slot 5 !"); return 1; }
  45898. ClearFishID(playerid, fishid);
  45899. Fishes[playerid][pLastFish] = 0;
  45900. Fishes[playerid][pFishID] = 0;
  45901. format(string, sizeof(string), "* You have released Fish %d.", fishid);
  45902. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  45903. }
  45904. return 1;
  45905. }
  45906. if(strcmp(cmd,"/throwback",true)==0)
  45907. {
  45908. if(IsPlayerConnected(playerid))
  45909. {
  45910. if(Fishes[playerid][pLastFish] > 0)
  45911. {
  45912. ClearFishID(playerid, Fishes[playerid][pLastFish]);
  45913. Fishes[playerid][pLastFish] = 0;
  45914. Fishes[playerid][pFishID] = 0;
  45915. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have thrown back your last Fish.");
  45916. }
  45917. else
  45918. {
  45919. SendClientMessage(playerid, COLOR_GREY, " You don't have any Fish to throw back !");
  45920. return 1;
  45921. }
  45922. }
  45923. return 1;
  45924. }
  45925. if(strcmp(cmd,"/throwbackall",true)==0)
  45926. {
  45927. if(IsPlayerConnected(playerid))
  45928. {
  45929. if(Fishes[playerid][pWeight1] > 0 || Fishes[playerid][pWeight2] > 0 || Fishes[playerid][pWeight3] > 0 || Fishes[playerid][pWeight4] > 0 || Fishes[playerid][pWeight5] > 0)
  45930. {
  45931. ClearFishes(playerid);
  45932. Fishes[playerid][pLastFish] = 0;
  45933. Fishes[playerid][pFishID] = 0;
  45934. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have thrown back all of your Fish.");
  45935. }
  45936. else
  45937. {
  45938. SendClientMessage(playerid, COLOR_GREY, " You are not carrying any fish !");
  45939. return 1;
  45940. }
  45941. }
  45942. return 1;
  45943. }
  45944. if(strcmp(cmd,"/licenses",true)==0)
  45945. {
  45946. if(IsPlayerConnected(playerid))
  45947. {
  45948. new text1[20];
  45949. new text2[20];
  45950. new text3[20];
  45951. new text4[20];
  45952. new text5[20];
  45953. if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else { text1 = "Not Passed"; }
  45954. if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
  45955. if(PlayerInfo[playerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
  45956. if(PlayerInfo[playerid][pFishLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
  45957. if(PlayerInfo[playerid][pGunLic]) { text5 = "Passed"; } else { text5 = "Not Passed"; }
  45958. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Licenses __________________|");
  45959. format(string, sizeof(string), "Drivers License: %s.", text1);
  45960. SendClientMessage(playerid, COLOR_GREY, string);
  45961. format(string, sizeof(string), "Flying License: %s.", text4);
  45962. SendClientMessage(playerid, COLOR_GREY, string);
  45963. format(string, sizeof(string), "Sailing License: %s.", text2);
  45964. SendClientMessage(playerid, COLOR_GREY, string);
  45965. format(string, sizeof(string), "Fishing License: %s.", text3);
  45966. SendClientMessage(playerid, COLOR_GREY, string);
  45967. format(string, sizeof(string), "Weapon License: %s.", text5);
  45968. SendClientMessage(playerid, COLOR_GREY, string);
  45969. SendClientMessage(playerid, COLOR_WHITE, "|_____________________________________________|");
  45970. }
  45971. return 1;
  45972. }
  45973. if(strcmp(cmd,"/showlicenses",true)==0)
  45974. {
  45975. if(IsPlayerConnected(playerid))
  45976. {
  45977. tmp = strtok(cmdtext, idx);
  45978. if(!strlen(tmp))
  45979. {
  45980. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showlicenses [playerid/PartOfName]");
  45981. return 1;
  45982. }
  45983. giveplayerid = ReturnUser(tmp);
  45984. if(IsPlayerConnected(giveplayerid))
  45985. {
  45986. if(giveplayerid != INVALID_PLAYER_ID)
  45987. {
  45988. if(ProxDetectorS(8.0, playerid, giveplayerid))
  45989. {
  45990. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Show Licenses to yourself, use /licenses !"); return 1; }
  45991. new text1[20];
  45992. new text2[20];
  45993. new text3[20];
  45994. new text4[20];
  45995. new text5[20];
  45996. GetPlayerName(playerid, sendername, sizeof(sendername));
  45997. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  45998. if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else { text1 = "Not Passed"; }
  45999. if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
  46000. if(PlayerInfo[playerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
  46001. if(PlayerInfo[playerid][pFishLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
  46002. if(PlayerInfo[playerid][pGunLic]) { text5 = "Passed"; } else { text5 = "Not Passed"; }
  46003. format(string, sizeof(string), "|____________ Licenses of %s ____________|", sendername);
  46004. SendClientMessage(giveplayerid, COLOR_WHITE, string);
  46005. format(string, sizeof(string), "Drivers License: %s.", text1);
  46006. SendClientMessage(giveplayerid, COLOR_GREY, string);
  46007. format(string, sizeof(string), "Flying License: %s.", text4);
  46008. SendClientMessage(giveplayerid, COLOR_GREY, string);
  46009. format(string, sizeof(string), "Sailing License: %s.", text2);
  46010. SendClientMessage(giveplayerid, COLOR_GREY, string);
  46011. format(string, sizeof(string), "Fishing License: %s.", text3);
  46012. SendClientMessage(giveplayerid, COLOR_GREY, string);
  46013. format(string, sizeof(string), "Weapon License: %s.", text5);
  46014. SendClientMessage(giveplayerid, COLOR_GREY, string);
  46015. format(string, sizeof(string), "* %s has shown their Licenses to you.", sendername);
  46016. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  46017. format(string, sizeof(string), "* You have shown your Licenses to %s.", giveplayer);
  46018. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  46019. format(string, sizeof(string), "* %s has shown their Licenses to %s.", sendername, giveplayer);
  46020. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46021. }
  46022. else
  46023. {
  46024. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  46025. return 1;
  46026. }
  46027. }
  46028. }
  46029. else
  46030. {
  46031. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  46032. return 1;
  46033. }
  46034. }
  46035. return 1;
  46036. }
  46037. if(strcmp(cmd,"/leofrisk",true)==0)
  46038. {
  46039. if(IsPlayerConnected(playerid))
  46040. {
  46041. if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
  46042. {
  46043. SendClientMessage(playerid, COLOR_GREY, " You are not a LEO !");
  46044. return 1;
  46045. }
  46046. tmp = strtok(cmdtext, idx);
  46047. if(!strlen(tmp))
  46048. {
  46049. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /leofrisk [playerid/PartOfName]");
  46050. return 1;
  46051. }
  46052. giveplayerid = ReturnUser(tmp);
  46053. if(IsPlayerConnected(giveplayerid))
  46054. {
  46055. if(giveplayerid != INVALID_PLAYER_ID)
  46056. {
  46057. if(ProxDetectorS(8.0, playerid, giveplayerid))
  46058. {
  46059. // if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Frisk yourself !"); return 1; }
  46060. new WeaponName[65];
  46061. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  46062. GetPlayerName(playerid, sendername, sizeof(sendername));
  46063. format(string, sizeof(string), "*** %s's Items ***", giveplayer);
  46064. SendClientMessage(playerid, COLOR_WHITE, string);
  46065. if(PlayerInfo[giveplayerid][pPot] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Marijuana"); }
  46066. if(PlayerInfo[giveplayerid][pCrack] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Crack"); }
  46067. if(PlayerInfo[giveplayerid][pMats] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Materials"); }
  46068. if(Packages[playerid] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Materials Packages"); }
  46069. if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_BITEM, "Drug Crates"); }
  46070. if(Fishes[giveplayerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Fish"); }
  46071. if(PlayerInfo[giveplayerid][pPhoneBook] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Phone Book"); }
  46072. if(PlayerInfo[giveplayerid][pWatch] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Watch"); }
  46073. if(PlayerInfo[giveplayerid][pSuitcase] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Suitcase"); }
  46074. if(PlayerInfo[giveplayerid][pCDPlayer] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "CD Player"); }
  46075. if(PlayerInfo[giveplayerid][pPnumber] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Cellphone"); }
  46076. if(PlayerInfo[giveplayerid][pSpraycan] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Spraycan"); }
  46077. if(PlayerInfo[giveplayerid][pScrew] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Screwdriver"); }
  46078. if(PlayerInfo[giveplayerid][pDice] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Dice"); }
  46079. if(PlayerInfo[giveplayerid][pRope] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Rope"); }
  46080. if(PlayerInfo[giveplayerid][pCigars] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Cigars"); }
  46081. if(PlayerInfo[giveplayerid][pSprunk] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Sprunk"); }
  46082. if(PlayerInfo[giveplayerid][pBombs] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "C4 Explosives"); }
  46083. if(PlayerInfo[giveplayerid][pScope] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Sniper Scope"); }
  46084. if(HasBoughtMask[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Mask"); }
  46085. if(PlayerInfo[giveplayerid][pBlindfolds] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Blindfold"); }
  46086. if(PlayerInfo[giveplayerid][pGun0] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46087. if(PlayerInfo[giveplayerid][pGun1] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46088. if(PlayerInfo[giveplayerid][pGun2] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46089. if(PlayerInfo[giveplayerid][pGun3] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46090. if(PlayerInfo[giveplayerid][pGun4] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46091. if(PlayerInfo[giveplayerid][pGun5] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46092. if(PlayerInfo[giveplayerid][pGun6] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46093. if(PlayerInfo[giveplayerid][pGun7] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46094. if(PlayerInfo[giveplayerid][pGun8] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46095. if(PlayerInfo[giveplayerid][pGun9] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46096. if(PlayerInfo[giveplayerid][pGun10] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46097. if(PlayerInfo[giveplayerid][pGun11] == 44) { SendClientMessage(playerid, COLOR_GRAD3, "Nightvision Goggles"); }
  46098. if(PlayerInfo[giveplayerid][pGun11] == 45) { SendClientMessage(playerid, COLOR_GRAD3, "Infared Goggles"); }
  46099. if(PlayerInfo[giveplayerid][pGun12] != 0) { GetWeaponName(PlayerInfo[giveplayerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(playerid, COLOR_BITEM, string); }
  46100. for (new weap = 1; weap < 47; weap++)
  46101. {
  46102. if(HaveAdminWeapon(giveplayerid, weap) == weap)
  46103. {
  46104. GetWeaponName(weap, WeaponName, 64);
  46105. format(string, sizeof(string), "Admin Given %s", WeaponName);
  46106. SendClientMessage(playerid, COLOR_WHITE, string);
  46107. }
  46108. }
  46109. format(string, sizeof(string), "* %s has frisked %s for any illegal items.", sendername ,giveplayer);
  46110. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46111. }
  46112. else
  46113. {
  46114. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  46115. return 1;
  46116. }
  46117. }
  46118. }
  46119. else
  46120. {
  46121. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  46122. return 1;
  46123. }
  46124. }
  46125. return 1;
  46126. }
  46127. if(strcmp(cmd,"/frisk",true)==0)
  46128. {
  46129. if(IsPlayerConnected(playerid))
  46130. {
  46131. new st[126], st2[126];
  46132. tmp = strtok(cmdtext, idx);
  46133. if(!strlen(tmp))
  46134. {
  46135. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /frisk [playerid/PartOfName]");
  46136. return 1;
  46137. }
  46138. giveplayerid = ReturnUser(tmp);
  46139. if(IsPlayerConnected(giveplayerid))
  46140. {
  46141. if(giveplayerid != INVALID_PLAYER_ID)
  46142. {
  46143. if(ProxDetectorS(8.0, playerid, giveplayerid))
  46144. {
  46145. FriskOffer[giveplayerid] = playerid;
  46146. format(st, sizeof(st), "** %s wants to frisk you, type '/accept frisk' to allow it",PlayerName(playerid));
  46147. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, st);
  46148. format(st2, sizeof(st2), "** You've offered to frisk %s",PlayerName(giveplayerid));
  46149. SendClientMessage(playerid, COLOR_LIGHTBLUE, st2);
  46150. }
  46151. else
  46152. {
  46153. SendClientMessage(playerid, COLOR_GREY, "That player is not near you !");
  46154. return 1;
  46155. }
  46156. }
  46157. }
  46158. else
  46159. {
  46160. SendClientMessage(playerid, COLOR_GREY, "That player is Offline !");
  46161. return 1;
  46162. }
  46163. }
  46164. return 1;
  46165. }
  46166. if(strcmp(cmd, "/wscan", true) == 0 || strcmp(cmd, "/ws", true) == 0)
  46167. {
  46168. if(!(PlayerInfo[playerid][pAdmin] >= 1))
  46169. return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  46170. SendClientMessage(playerid,COLOR_YELLOW,"Desynced weapons found:");
  46171. //foreach(Player, i)
  46172. for(new i; i<MAX_PLAYERS; i++)
  46173. {
  46174. new weapon[13], ammoignored;
  46175. for(new j=12; j>0; j--)
  46176. {
  46177. // get weapon data
  46178. GetPlayerWeaponData(i,j,weapon[j],ammoignored);
  46179. if(weapon[j] > 0 && weapon[j] != 46)
  46180. {
  46181. if(!(HaveWeapon(playerid,weapon[j])) && !(HaveAdminWeapon(playerid,weapon[j])))
  46182. {
  46183. new WeaponName[65];
  46184. GetWeaponName(weapon[j],WeaponName,64);
  46185. format(string,sizeof(string),"%s (%d): %s",PlayerName(i),i,WeaponName);
  46186. SendClientMessage(playerid,COLOR_GREY,string);
  46187. }
  46188. }
  46189. }
  46190. }
  46191. return 1;
  46192. }
  46193. if(strcmp(cmd,"/listguns",true)==0)
  46194. {
  46195. if(IsPlayerConnected(playerid))
  46196. {
  46197. tmp = strtok(cmdtext, idx);
  46198. if(!strlen(tmp))
  46199. {
  46200. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /listguns [playerid/PartOfName]");
  46201. return 1;
  46202. }
  46203. if(PlayerInfo[playerid][pAdmin] < 1)
  46204. {
  46205. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  46206. return 1;
  46207. }
  46208. giveplayerid = ReturnUser(tmp);
  46209. if(IsPlayerConnected(giveplayerid))
  46210. {
  46211. if(giveplayerid != INVALID_PLAYER_ID)
  46212. {
  46213. new WeaponName[65];
  46214. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  46215. format(string, sizeof(string), "* %s's Weapons", giveplayer);
  46216. SendClientMessage(playerid, COLOR_WHITE, string);
  46217. for (new weap = 1; weap < 47; weap++)
  46218. {
  46219. if(HaveWeapon(giveplayerid, weap) == weap)
  46220. {
  46221. GetWeaponName(weap, WeaponName, 64);
  46222. format(string, sizeof(string), "%s", WeaponName);
  46223. SendClientMessage(playerid, COLOR_WHITE, string);
  46224. }
  46225. if(HaveAdminWeapon(giveplayerid, weap) == weap)
  46226. {
  46227. GetWeaponName(weap, WeaponName, 64);
  46228. format(string, sizeof(string), "Admin Given %s", WeaponName);
  46229. SendClientMessage(playerid, COLOR_WHITE, string);
  46230. }
  46231. }
  46232. }
  46233. }
  46234. else
  46235. {
  46236. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  46237. return 1;
  46238. }
  46239. }
  46240. return 1;
  46241. }
  46242. if(strcmp(cmd,"/contracts",true)==0)
  46243. {
  46244. if(IsPlayerConnected(playerid))
  46245. {
  46246. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  46247. {
  46248. SearchingHits(playerid);
  46249. }
  46250. else
  46251. {
  46252. SendClientMessage(playerid, COLOR_GREY, "You are not a Member of the Hitman Agency.");
  46253. return 1;
  46254. }
  46255. }
  46256. return 1;
  46257. }
  46258. if(strcmp(cmd,"/disguise",true)==0)
  46259. {
  46260. if(IsPlayerConnected(playerid))
  46261. {
  46262. if(PlayerInfo[playerid][pMember] == 8)
  46263. {
  46264. SetTimerEx("Disg", 1000, false, "i", playerid);
  46265. return 1;
  46266. }
  46267. else
  46268. {
  46269. SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
  46270. return 1;
  46271. }
  46272. }
  46273. return 1;
  46274. }
  46275. if(strcmp(cmd,"/ranks",true)==0)
  46276. {
  46277. if(IsPlayerConnected(playerid))
  46278. {
  46279. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  46280. {
  46281. SendClientMessage(playerid, COLOR_WHITE, "Agency Ranks:");
  46282. //foreach(Player, i)
  46283. for(new i; i<MAX_PLAYERS; i++)
  46284. {
  46285. if(IsPlayerConnected(i))
  46286. {
  46287. if(PlayerInfo[i][pMember] == 8 || PlayerInfo[i][pLeader] == 8)
  46288. {
  46289. new hitname[MAX_PLAYER_NAME];
  46290. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  46291. if(GoChase[i] < 999)
  46292. {
  46293. GetPlayerName(GoChase[i], hitname, sizeof(hitname));
  46294. }
  46295. else
  46296. {
  46297. hitname = "Nobody";
  46298. }
  46299. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  46300. format(string, sizeof(string), "Name: %s Rank: %d Completed Hits: %d Failed Hits: %d Chasing: %s", giveplayer, PlayerInfo[i][pRank], PlayerInfo[i][pCHits], PlayerInfo[i][pFHits], hitname);
  46301. SendClientMessage(playerid, COLOR_GRAD3, string);
  46302. }
  46303. }
  46304. }
  46305. }
  46306. else
  46307. {
  46308. SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
  46309. return 1;
  46310. }
  46311. }
  46312. return 1;
  46313. }
  46314. if(strcmp(cmd,"/givehit",true)==0)
  46315. {
  46316. if(IsPlayerConnected(playerid))
  46317. {
  46318. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  46319. {
  46320. tmp = strtok(cmdtext, idx);
  46321. if(!strlen(tmp))
  46322. {
  46323. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givehit [hitmanid] [targetid]");
  46324. return 1;
  46325. }
  46326. giveplayerid = ReturnUser(tmp);
  46327. tmp = strtok(cmdtext, idx);
  46328. if(!strlen(tmp))
  46329. {
  46330. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givehit [hitmanid] [targetid]");
  46331. return 1;
  46332. }
  46333. if(IsPlayerConnected(giveplayerid))
  46334. {
  46335. if(giveplayerid != INVALID_PLAYER_ID)
  46336. {
  46337. new targetid = ReturnUser(tmp);
  46338. if(IsPlayerConnected(targetid))
  46339. {
  46340. if(PlayerInfo[targetid][pHeadValue] != 0)
  46341. {
  46342. if(PlayerInfo[giveplayerid][pMember] != 8 && PlayerInfo[playerid][pLeader] != 8) //if giveplayer is not hitman and player is leader
  46343. {
  46344. SendClientMessage(playerid, COLOR_GREY, " You must be the leader to give hits to non-hitmen !");
  46345. return 1;
  46346. }
  46347. new hitname[MAX_PLAYER_NAME];
  46348. GetPlayerName(playerid, sendername, sizeof(sendername));
  46349. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  46350. GetPlayerName(targetid, hitname, sizeof(hitname));
  46351. format(string, sizeof(string), "* You offered %s a contract to kill %s.", giveplayer, hitname);
  46352. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  46353. format(string, sizeof(string), "* Hitman %s has offered you a contract to kill %s (type /accept contract), to accept it.", sendername, hitname);
  46354. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  46355. ContractOffer[giveplayerid] = playerid;
  46356. ContractID[giveplayerid] = targetid;
  46357. }
  46358. else
  46359. {
  46360. SendClientMessage(playerid, COLOR_GREY, " That player is doesn't have a contract on their head !");
  46361. return 1;
  46362. }
  46363. }
  46364. else
  46365. {
  46366. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  46367. return 1;
  46368. }
  46369. }
  46370. }
  46371. else
  46372. {
  46373. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  46374. return 1;
  46375. }
  46376. }
  46377. else
  46378. {
  46379. SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the Hitman Agency !");
  46380. return 1;
  46381. }
  46382. }
  46383. return 1;
  46384. }
  46385. if(strcmp(cmd,"/order",true)==0)
  46386. {
  46387. if(IsPlayerConnected(playerid))
  46388. {
  46389. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  46390. {
  46391. if(IsPlayerInRangeOfPoint(playerid,3,971.5425,-43.2693,1001.1172) || IsPlayerInRangeOfPoint(playerid,3,2323.4182,-1254.4391,22.5000) || IsPlayerInRangeOfPoint(playerid,3,433.7928,-1747.8757,9.2108) || IsPlayerInRangeOfPoint(playerid,3,374.0106,-1353.2639,14.6007) || IsPlayerInRangeOfPoint(playerid,3,2808.9482,-1102.1047,30.7188) || IsPlayerInRangeOfPoint(playerid,3,2000.8087,1522.8901,17.0682))
  46392. {
  46393. tmp = strtok(cmdtext, idx);
  46394. if(!strlen(tmp))
  46395. {
  46396. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
  46397. SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Knife($800), Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000");
  46398. SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
  46399. SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
  46400. SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: C4 ($100,000), Nightvision ($2000), Infared ($2000), Scope ($20,000), Mask ($5000)");
  46401. return 1;
  46402. }
  46403. new weapon, price;
  46404. if(strcmp(tmp,"knife",true) == 0) { if(PlayerInfo[playerid][pCash] > 799) { weapon = 4; price = 800; PlayerInfo[playerid][pGun1] = 4; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46405. else if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46406. else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46407. else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46408. else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46409. else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46410. else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46411. else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46412. else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46413. else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46414. else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46415. else if(strcmp(tmp,"c4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 99999) { price = 100000; PlayerInfo[playerid][pBombs] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46416. else if(strcmp(tmp,"scope",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 19999) { price = 20000; PlayerInfo[playerid][pScope] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46417. else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46418. else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46419. else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46420. else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
  46421. else
  46422. {
  46423. SendClientMessage(playerid,COLOR_GREY," Invalid weapon name.");
  46424. return 1;
  46425. }
  46426. if(PlayerInfo[playerid][pBlindfolds] > 3)
  46427. {
  46428. PlayerInfo[playerid][pBlindfolds] = 3;
  46429. }
  46430. if(PlayerInfo[playerid][pBombs] > 3)
  46431. {
  46432. PlayerInfo[playerid][pBombs] = 3;
  46433. }
  46434. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  46435. GivePlayerMoney(playerid, (0 - price));
  46436. if(weapon != 0)
  46437. {
  46438. GivePlayerWeapon(playerid, weapon, 999999);
  46439. }
  46440. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  46441. format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
  46442. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  46443. }
  46444. else if(IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641) || IsPlayerInRangeOfPoint(playerid,3,1566.8365,23.2070,24.1641))
  46445. {
  46446. tmp = strtok(cmdtext, idx);
  46447. if(!strlen(tmp))
  46448. {
  46449. SendClientMessage(playerid, COLOR_WHITE, "{7DAEFF}USAGE: /order [name]{FFFFFF}");
  46450. SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Knife($800), Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000)");
  46451. SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
  46452. SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
  46453. SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: C4 ($100,000), Nightvision ($2000), Infared ($2000), Scope ($20,000), Mask ($5000)");
  46454. return 1;
  46455. }
  46456. new weapon, price;
  46457. if(strcmp(tmp,"knife",true) == 0) { if(PlayerInfo[playerid][pCash] > 799) { weapon = 4; price = 800; PlayerInfo[playerid][pGun1] = 4; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
  46458. else if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
  46459. else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that."); return 1; } }
  46460. else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that."); return 1; } }
  46461. else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46462. else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46463. else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46464. else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46465. else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46466. else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46467. else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46468. else if(strcmp(tmp,"c4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 99999) { price = 100000; PlayerInfo[playerid][pBombs] += 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46469. else if(strcmp(tmp,"scope",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 19999) { price = 20000; PlayerInfo[playerid][pScope] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46470. else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46471. else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46472. else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46473. else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
  46474. else
  46475. {
  46476. SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !");
  46477. return 1;
  46478. }
  46479. if(PlayerInfo[playerid][pBlindfolds] > 3)
  46480. {
  46481. PlayerInfo[playerid][pBlindfolds] = 3;
  46482. }
  46483. if(PlayerInfo[playerid][pBombs] > 3)
  46484. {
  46485. PlayerInfo[playerid][pBombs] = 3;
  46486. }
  46487. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  46488. GivePlayerMoney(playerid, (0 - price));
  46489. if(weapon != 0)
  46490. {
  46491. GivePlayerWeapon(playerid, weapon, 999999);
  46492. }
  46493. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  46494. format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
  46495. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  46496. }
  46497. else
  46498. {
  46499. SendClientMessage(playerid, COLOR_GREY, " You are not at an order point !");
  46500. return 1;
  46501. }
  46502. }
  46503. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
  46504. {
  46505. if(IsPlayerInRangeOfPoint(playerid,3,210.5087,188.0434,1003.0313))
  46506. {
  46507. tmp = strtok(cmdtext, idx);
  46508. if(!strlen(tmp))
  46509. {
  46510. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
  46511. SendClientMessage(playerid, COLOR_GRAD1, "Rank 1: Sdpistol ($1000), Shotgun ($1500), Deagle ($5000), Mp5 ($2500), Vest ($6000)");
  46512. SendClientMessage(playerid, COLOR_GRAD2, "Rank 2: Rifle ($3000, AK47 ($10,000), M4 ($12,000)");
  46513. SendClientMessage(playerid, COLOR_GRAD3, "Rank 3: Spas12 ($35,000), Sniper ($35,000), Blindfold ($2,500)");
  46514. SendClientMessage(playerid, COLOR_GRAD3, "Rank 4: Nightvision ($2000), Infared ($2000), Mask ($5000)");
  46515. return 1;
  46516. }
  46517. new weapon, price;
  46518. if(strcmp(tmp,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pCash] > 999) { weapon = 23; price = 1000; PlayerInfo[playerid][pGun2] = 23; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46519. else if(strcmp(tmp,"shotgun",true) == 0) { if(PlayerInfo[playerid][pCash] > 1499) { weapon = 25; price = 1500; PlayerInfo[playerid][pGun3] = 25; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46520. else if(strcmp(tmp,"mp5",true) == 0) { if(PlayerInfo[playerid][pCash] > 2499) { weapon = 29; price = 2500; PlayerInfo[playerid][pGun4] = 29; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } }
  46521. else if(strcmp(tmp,"rifle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 2999) { weapon = 33; price = 3000; PlayerInfo[playerid][pGun6] = 33; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46522. else if(strcmp(tmp,"deagle",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 4999) { weapon = 24; price = 5000; PlayerInfo[playerid][pGun2] = 24; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46523. else if(strcmp(tmp,"ak47",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 9999) { weapon = 30; price = 10000; PlayerInfo[playerid][pGun5] = 30; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46524. else if(strcmp(tmp,"m4",true) == 0) { if(PlayerInfo[playerid][pRank] >= 2) { if(PlayerInfo[playerid][pCash] > 11999) { weapon = 31; price = 12000; PlayerInfo[playerid][pGun5] = 31; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 2 !"); return 1; } }
  46525. else if(strcmp(tmp,"spas12",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 27; price = 35000; PlayerInfo[playerid][pGun3] = 27; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46526. else if(strcmp(tmp,"sniper",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] > 34999) { weapon = 34; price = 2500; PlayerInfo[playerid][pGun6] = 34; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46527. else if(strcmp(tmp,"blindfold",true) == 0) { if(PlayerInfo[playerid][pRank] >= 3) { if(PlayerInfo[playerid][pCash] >= 25000) { price = 25000; PlayerInfo[playerid][pBlindfolds] += 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 3 !"); return 1; } }
  46528. else if(strcmp(tmp,"mask",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 4999) { price = 5000; HasBoughtMask[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46529. else if(strcmp(tmp,"nightvision",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 44; price = 2000; PlayerInfo[playerid][pGun11] = 44; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46530. else if(strcmp(tmp,"infared",true) == 0) { if(PlayerInfo[playerid][pRank] >= 4) { if(PlayerInfo[playerid][pCash] > 1999) { weapon = 45; price = 2000; PlayerInfo[playerid][pGun11] = 45; } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 4 !"); return 1; } }
  46531. else if(strcmp(tmp,"vest",true) == 0) { if(PlayerInfo[playerid][pRank] >= 1) { if(PlayerInfo[playerid][pCash] > 5999) { price = 6000; SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,COLOR_GREY," You can't afford that !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You must be atleast Rank 1 !"); return 1; } }
  46532. else
  46533. {
  46534. SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !");
  46535. return 1;
  46536. }
  46537. if(PlayerInfo[playerid][pBlindfolds] > 3)
  46538. {
  46539. PlayerInfo[playerid][pBlindfolds] = 3;
  46540. }
  46541. if(PlayerInfo[playerid][pBombs] > 3)
  46542. {
  46543. PlayerInfo[playerid][pBombs] = 3;
  46544. }
  46545. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  46546. GivePlayerMoney(playerid, (0 - price));
  46547. if(weapon != 0)
  46548. {
  46549. GivePlayerWeapon(playerid, weapon, 999999);
  46550. }
  46551. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  46552. format(string, sizeof(string), "* You have purchased a %s for $%d.", tmp, price);
  46553. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  46554. }
  46555. else
  46556. {
  46557. SendClientMessage(playerid, COLOR_GREY, " You are not at your headquaters !");
  46558. return 1;
  46559. }
  46560. }
  46561. else
  46562. {
  46563. SendClientMessage(playerid, COLOR_GREY, " You are not a Member of the CIA / Hitman Agency !");
  46564. return 1;
  46565. }
  46566. }
  46567. return 1;
  46568. }
  46569. /*if(strcmp(cmd, "/order", true) == 0)
  46570. {
  46571. if(IsPlayerConnected(playerid))
  46572. {
  46573. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  46574. {
  46575. if(IsPlayerInRangeOfPoint(playerid, 10.0,1566.8336,23.2645,24.1641))
  46576. {
  46577. ShowPlayerDialog(playerid, 9387, DIALOG_STYLE_LIST, "Order Menu", "Knife $800\nSD Pistol $1000\nShotgun $1500\nDeagle $5000\nMP5 $2500\nRifle $3000\nAK47 $10000\nm4 $12000\nVest $3000\nSpas12 $35000\nSniper $35000\nNight Vision $2000\nInfrared $2000\nC4 $300000", "Purchase", "Cancel");
  46578. }
  46579. else
  46580. {
  46581. SendClientMessage(playerid, COLOR_GRAD1, "You are not at your headquarters!");
  46582. }
  46583. }
  46584. else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
  46585. {
  46586. if(IsPlayerInRangeOfPoint(playerid, 10.0,210.5087,188.0434,1003.0313))
  46587. {
  46588. ShowPlayerDialog(playerid, 9387, DIALOG_STYLE_LIST, "Order Menu", "Knife $800\nSD Pistol $1000\nShotgun $1500\nDeagle $5000\nMP5 $2500\nRifle $3000\nAK47 $10000\nm4 $12000\nVest $3000\nSpas12 $35000\nSniper $35000\nNight Vision $2000\nInfrared $2000\nC4 $300000", "Purchase", "Cancel");
  46589. }
  46590. else
  46591. {
  46592. SendClientMessage(playerid, COLOR_GRAD1, "You are not at your headquarters!");
  46593. }
  46594. }
  46595. else
  46596. {
  46597. SendClientMessage(playerid, COLOR_GRAD1, "You are not a member of the CIA / Hitman Agency!");
  46598. }
  46599. }
  46600. return 1;
  46601. }*/
  46602. if(strcmp(cmd,"/getmats",true)==0)
  46603. {
  46604. if(IsPlayerConnected(playerid))
  46605. {
  46606. if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pDonateRank] != 2)
  46607. {
  46608. SendClientMessage(playerid,COLOR_GREY,"You are not a Arms Dealer / Gold VIP.");
  46609. return 1;
  46610. }
  46611. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1423.6151, -1320.5438, 13.5546)) //materials pickup 1
  46612. {
  46613. if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
  46614. if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
  46615. if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
  46616. if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
  46617. if(PlayerInfo[playerid][pCash] > 499)
  46618. {
  46619. GotMats[playerid] = 1;
  46620. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice;
  46621. GivePlayerMoney(playerid, -matprice);
  46622. Packages[playerid] = 10;
  46623. CP[playerid] = 2;
  46624. SetPlayerCheckpoint(playerid, 2172.1879, -2263.9683, 13.3362, 3.0); //materials factory 1
  46625. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 10 Materials Packages for $500.");
  46626. GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
  46627. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  46628. return 1;
  46629. }
  46630. else
  46631. {
  46632. SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($500).");
  46633. return 1;
  46634. }
  46635. }
  46636. if(IsPlayerInRangeOfPoint(playerid, 3.0, 765.1253,-1088.8364,24.0859)) //materials pickup 3
  46637. {
  46638. if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
  46639. if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
  46640. if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
  46641. if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
  46642. if(PlayerInfo[playerid][pCash] > 9999)
  46643. {
  46644. GotMats[playerid] = 1;
  46645. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice2;
  46646. GivePlayerMoney(playerid, -matprice2);
  46647. Packages[playerid] = 20;
  46648. CP[playerid] = 10;
  46649. SetPlayerCheckpoint(playerid, -500.5291,-528.6747,25.5234, 3.0); //materials factory 3
  46650. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 20 Materials Packages for $1000.");
  46651. GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
  46652. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  46653. return 1;
  46654. }
  46655. else
  46656. {
  46657. SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($1000).");
  46658. return 1;
  46659. }
  46660. }
  46661. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2390.4053, -2008.2618, 13.5537)) //materials pickup 2
  46662. {
  46663. if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, "You can't hold any more Materials Packages."); return 1; }
  46664. if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
  46665. if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Drug Crates."); return 1; }
  46666. if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
  46667. if(PlayerInfo[playerid][pCash] > 499)
  46668. {
  46669. GotMats[playerid] = 1;
  46670. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-matprice;
  46671. GivePlayerMoney(playerid, -matprice);
  46672. Packages[playerid] = 10;
  46673. CP[playerid] = 3;
  46674. SetPlayerCheckpoint(playerid, 2288.0730, -1105.4535, 37.9766, 3.0); //materials factory 2
  46675. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You bought 10 Materials Packages for $500.");
  46676. GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Packages", 5000, 1);
  46677. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  46678. return 1;
  46679. }
  46680. else
  46681. {
  46682. SendClientMessage(playerid, COLOR_GREY, "You can't afford that ($500).");
  46683. return 1;
  46684. }
  46685. }
  46686. else
  46687. {
  46688. SendClientMessage(playerid, COLOR_GREY, "You are not at a Materials Pickup.");
  46689. }
  46690. }
  46691. return 1;
  46692. }
  46693. if(strcmp(cmd,"/plantweed",true)==0)
  46694. {
  46695. if(IsPlayerConnected(playerid))
  46696. {
  46697. if (PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pDonateRank] < 2)
  46698. {
  46699. SendClientMessage(playerid,COLOR_GREY, "You are not a Drug Dealer / Silver VIP.");
  46700. return 1;
  46701. }
  46702. new name[MAX_PLAYER_NAME];
  46703. GetPlayerName(playerid, name, sizeof(name));
  46704. if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, "You must be on foot.");
  46705. if(GetPlayerInterior(playerid) > 0) return SendClientMessage(playerid, COLOR_GREY, "You must be outside to plant your seeds.");
  46706. if(PlayerInfo[playerid][pSeeds] == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have any Seeds.");
  46707. if(PlayerInfo[playerid][pSeeds] < 10) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough Seeds.");
  46708. if(HasPlantWeed[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "You have already planted a weed.");
  46709. new Float:X, Float:Y, Float:Z;
  46710. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  46711. GetPlayerPos(playerid, X, Y, Z);
  46712. Weed_x[playerid] = X;
  46713. Weed_y[playerid] = Y;
  46714. Weed_z[playerid] = Z;
  46715. Weed[playerid] = CreateDynamicObject(3409, X, Y, Z-1.8, 0, 0, 0);
  46716. HasPlantWeed[playerid] = 1;
  46717. PlayerInfo[playerid][pSeeds] -= 10;
  46718. format(string, sizeof(string), "* %s plants some seeds.", name);
  46719. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46720. SendClientMessage(playerid, COLOR_GREEN, "You have planted your seeds! Every minute, your plant will make one gram of weed.");
  46721. SendClientMessage(playerid, COLOR_GREEN, "If your plant won't picked within 70 minutes, it will rot and you will lose it.");
  46722. SendClientMessage(playerid, COLOR_GREEN, "Also remember that anyone can /pickweed if they find your plant, so be careful.");
  46723. }
  46724.  
  46725. return 1;
  46726. }
  46727. //==============================================================================
  46728. if(strcmp(cmd,"/checkweed",true)==0)
  46729. {
  46730. if(IsPlayerConnected(playerid))
  46731. {
  46732. new count = 0;
  46733. if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, "You must be on foot.");
  46734. new name[MAX_PLAYER_NAME];
  46735. GetPlayerName(playerid, name, sizeof(name));
  46736. for(new i = 0; i < MAX_PLAYERS; i++)
  46737. {
  46738. if(IsPlayerInRangeOfPoint(playerid, 3.0, Weed_x[i], Weed_y[i], Weed_z[i]))
  46739. {
  46740. WeedForPlayer[playerid] = i;
  46741. ApplyAnimation(playerid, "BOMBER", "BOM_Plant_2Idle", 4.0, 0, 0, 0, 0, 0);
  46742. format(string, sizeof(string), "* %s inspects the weed plant.", name);
  46743. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46744. format(string, sizeof(string), "This plant has %d weed grams.", WeedGrams[i]);
  46745. SendClientMessage(playerid, COLOR_GREEN, string);
  46746. WeedForPlayer[playerid] = 999;
  46747. count ++;
  46748. return 1;
  46749. }
  46750. }
  46751. if(count == 0) SendClientMessage(playerid, COLOR_GREY, "You are not near any plants.");
  46752. }
  46753. return 1;
  46754. }
  46755. //==============================================================================
  46756. if(strcmp(cmd,"/pickweed",true)==0)
  46757. {
  46758. if(IsPlayerConnected(playerid))
  46759. {
  46760. new count = 0;
  46761. new Error = 0;
  46762. new name[MAX_PLAYER_NAME];
  46763. GetPlayerName(playerid, name, sizeof(name));
  46764. if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, COLOR_GREY, " You must be on foot !");
  46765. if(WeedIsPicked[playerid] > 0) return SendClientMessage(playerid, COLOR_GREY, " You have already started to picking a weed !");
  46766. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick weed.");
  46767. for(new i = 0; i < MAX_PLAYERS; i++)
  46768. {
  46769. if(IsPlayerInRangeOfPoint(playerid, 3.0, Weed_x[i], Weed_y[i], Weed_z[i]))
  46770. {
  46771. WeedForPlayer[playerid] = i;
  46772. if(WeedGrams[i] < 1) { SendClientMessage(playerid, COLOR_GREY, " This plant is not ready to be picked, please wait at least 2 minutes for it to grow."); Error = 1; }
  46773. if(Error == 0)
  46774. {
  46775. format(string, sizeof(string), "* %s begins picking a weed plant.", name);
  46776. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46777. GetPlayerPos(playerid, WeedStopPos[playerid][0], WeedStopPos[playerid][1], WeedStopPos[playerid][2]);
  46778. WeedIsPicked[playerid] = 1;
  46779. SetTimerEx("WeedPickup", 5000, false, "i", playerid);
  46780. }
  46781. count ++;
  46782. return 1;
  46783. }
  46784. }
  46785. if(count == 0) SendClientMessage(playerid, COLOR_GREY, "You are not near any plants.");
  46786. }
  46787. return 1;
  46788. }
  46789. if(strcmp(cmd,"/getcrate",true)==0)
  46790. {
  46791. if(IsPlayerConnected(playerid))
  46792. {
  46793. if(PlayerInfo[playerid][pJob] != 17)
  46794. {
  46795. SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Smuggler.");
  46796. return 1;
  46797. }
  46798. if(IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
  46799. {
  46800. if(Crates[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 1 Crate at a time."); return 1; }
  46801. if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "You must drop your car at the crane first."); return 1; }
  46802. if(Packages[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY,"You must finish delivering your Materials Packages."); return 1; }
  46803. if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that while in a Virtual World."); SetPlayerHealth(playerid, 0.0); return 1; }
  46804. SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or seeds)");
  46805. SelectDrug[playerid] = 1;
  46806. }
  46807. else
  46808. {
  46809. SendClientMessage(playerid, COLOR_GREY, "You are not at the Drug Factory in Blueberry.");
  46810. }
  46811. }
  46812. return 1;
  46813. }
  46814. if(strcmp(cmd,"/sellgun",true)==0)
  46815. {
  46816. if(IsPlayerConnected(playerid))
  46817. {
  46818. if(PlayerInfo[playerid][pJob] != 9)
  46819. {
  46820. SendClientMessage(playerid,COLOR_GREY,"You are not a Arms Dealer.");
  46821. return 1;
  46822. }
  46823. if(PlayerInfo[playerid][pConnectTime] == 0)
  46824. {
  46825. SendClientMessage(playerid,COLOR_WHITE,"You must play longer before you can sell weapons.");
  46826. return 1;
  46827. }
  46828. tmp = strtok(cmdtext, idx);
  46829. if(!strlen(tmp))
  46830. {
  46831. SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
  46832. SendClientMessage(playerid, COLOR_YELLOW, "« Available Weapons »");
  46833. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 1: "CW"sdpistol (100) flowers (25) knuckles (25) shotgun (200) ");
  46834. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 2: "CW"baseballbat (25) cane (25) mp5 (400) rifle (1000)");
  46835. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 3: "CW"shovel (25) deagle (2000) nightvision (2500)");
  46836. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 4: "CW"poolcue (25) golfclub (25) ak47 (3500) mac10 (4000)");
  46837. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 5: "CW"katana (25) dildo (25) m4 (5500) tec9 (6000)");
  46838. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 6: "CW"sniper (8500) spas12 (10000)");
  46839. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 7: "CW"chainsaw (20000) jetpack (30000)");
  46840. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 8: "CW"rpg (200000)");
  46841. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 9: "CW"minigun (400000)");
  46842. SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
  46843. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellgun [playerid/PartOfName] [weaponname]");
  46844. return 1;
  46845. }
  46846. giveplayerid = ReturnUser(tmp);
  46847. if(IsPlayerConnected(giveplayerid))
  46848. {
  46849. if(giveplayerid != INVALID_PLAYER_ID)
  46850. {
  46851. tmp = strtok(cmdtext, idx);
  46852. if(!strlen(tmp))
  46853. {
  46854. SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
  46855. SendClientMessage(playerid, COLOR_YELLOW, "« Available Weapons »");
  46856. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 1: "CW"sdpistol (100) flowers (25) knuckles (25) shotgun (200) ");
  46857. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 2: "CW"baseballbat (25) cane (25) mp5 (400) rifle (1000)");
  46858. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 3: "CW"shovel (25) deagle (2000) nightvision (2500)");
  46859. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 4: "CW"poolcue (25) golfclub (25) ak47 (3500) mac10 (4000)");
  46860. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 5: "CW"katana (25) dildo (25) m4 (5500) tec9 (6000)");
  46861. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 6: "CW"sniper (8500) spas12 (10000)");
  46862. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 7: "CW"chainsaw (20000) jetpack (30000)");
  46863. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 8: "CW"rpg (200000)");
  46864. SendClientMessage(playerid, COLOR_GRAD3, ""CB"Level 9: "CW"minigun (400000)");
  46865. SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
  46866. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellgun [playerid/PartOfName] [weaponname]");
  46867. return 1;
  46868. }
  46869. }
  46870. if(SellGunTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 10 seconds before selling another weapon !");
  46871. if(ProxDetectorS(5.0, playerid, giveplayerid))
  46872. {
  46873. new weapon,price,loggun;
  46874. if(strcmp(tmp,"sdpistol",true) == 0)
  46875. {
  46876. if(PlayerInfo[playerid][pMats] > 99)
  46877. {
  46878. if(PlayerInfo[giveplayerid][pGun2] == 24)
  46879. {
  46880. SendClientMessage(playerid,COLOR_GREY," That player is carrying a Deagle !");
  46881. return 1;
  46882. }
  46883. weapon = 23;
  46884. price = 100;
  46885. }
  46886. else
  46887. {
  46888. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  46889. return 1;
  46890. }
  46891. }
  46892. else if(strcmp(tmp,"flowers",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 14; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } }
  46893. else if(strcmp(tmp,"shotgun",true) == 0)
  46894. {
  46895. if(PlayerInfo[playerid][pMats] > 199)
  46896. {
  46897. if(PlayerInfo[giveplayerid][pGun3] == 27)
  46898. {
  46899. SendClientMessage(playerid,COLOR_GREY," That player is carrying a SPAS12 !");
  46900. return 1;
  46901. }
  46902. weapon = 25;
  46903. price = 200;
  46904. }
  46905. else
  46906. {
  46907. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  46908. return 1;
  46909. }
  46910. }
  46911. else if(strcmp(tmp,"rpg",true) == 0)
  46912. {
  46913. new level = PlayerInfo[playerid][pArmsSkill];
  46914. if(level >= 1300)
  46915. {
  46916. if(PlayerInfo[playerid][pMats] > 199999)
  46917. {
  46918. if(PlayerInfo[giveplayerid][pGun7] == 38)
  46919. {
  46920. SendClientMessage(playerid,COLOR_GREY," That player is carrying a Minigun !");
  46921. return 1;
  46922. }
  46923. weapon = 35;
  46924. price = 200000;
  46925. }
  46926. else
  46927. {
  46928. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  46929. return 1;
  46930. }
  46931. } else {
  46932. SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
  46933. return 1;
  46934. }
  46935. }
  46936. else if(strcmp(tmp,"minigun",true) == 0)
  46937. {
  46938. new level = PlayerInfo[playerid][pArmsSkill];
  46939. if(level >= 2000)
  46940. {
  46941. if(PlayerInfo[playerid][pMats] > 399999)
  46942. {
  46943. if(PlayerInfo[giveplayerid][pGun7] == 35)
  46944. {
  46945. SendClientMessage(playerid,COLOR_GREY," That player is carrying an RPG !");
  46946. return 1;
  46947. }
  46948. weapon = 38;
  46949. price = 400000;
  46950. }
  46951. else
  46952. {
  46953. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  46954. return 1;
  46955. }
  46956. } else {
  46957. SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
  46958. return 1;
  46959. }
  46960. }
  46961. else if(strcmp(tmp,"knuckles",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 1; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } }
  46962. else if(strcmp(tmp,"mp5",true) == 0)
  46963. {
  46964. new level = PlayerInfo[playerid][pArmsSkill];
  46965. if(level >= 50)
  46966. {
  46967. if(PlayerInfo[playerid][pMats] > 399)
  46968. {
  46969. if(PlayerInfo[giveplayerid][pGun4] == 28 || PlayerInfo[giveplayerid][pGun4] == 32)
  46970. {
  46971. SendClientMessage(playerid,COLOR_GREY," That player is carrying a Mac10/Tec9 !");
  46972. return 1;
  46973. }
  46974. weapon = 29;
  46975. price = 400;
  46976. } else {
  46977. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  46978. return 1;
  46979. }
  46980. } else {
  46981. SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
  46982. return 1;
  46983. }
  46984. }
  46985. else if(strcmp(tmp,"baseballbat",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 5; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  46986. else if(strcmp(tmp,"rifle",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 999) { weapon = 33; price = 1000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  46987. else if(strcmp(tmp,"cane",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 50) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 15; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  46988. else if(strcmp(tmp,"deagle",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 1999) { weapon = 24; price = 2000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  46989. else if(strcmp(tmp,"nightvision",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 2499) { weapon = 44; price = 2500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  46990. else if(strcmp(tmp,"tec9",true) == 0)
  46991. {
  46992. new level = PlayerInfo[playerid][pArmsSkill];
  46993. if(level >= 400)
  46994. {
  46995. if(PlayerInfo[playerid][pMats] > 5999)
  46996. {
  46997. if(PlayerInfo[giveplayerid][pGun4] == 29 || PlayerInfo[giveplayerid][pGun4] == 28)
  46998. {
  46999. SendClientMessage(playerid,COLOR_GREY," That player is carrying an MP5/Mac10 !");
  47000. return 1;
  47001. }
  47002. weapon = 32;
  47003. price = 6000;
  47004. } else {
  47005. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  47006. return 1;
  47007. }
  47008. } else {
  47009. SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
  47010. return 1;
  47011. }
  47012. }
  47013. else if(strcmp(tmp,"mac10",true) == 0)
  47014. {
  47015. new level = PlayerInfo[playerid][pArmsSkill];
  47016. if(level >= 200)
  47017. {
  47018. if(PlayerInfo[playerid][pMats] > 3999)
  47019. {
  47020. if(PlayerInfo[giveplayerid][pGun4] == 29 || PlayerInfo[giveplayerid][pGun4] == 32)
  47021. {
  47022. SendClientMessage(playerid,COLOR_GREY," That player is carrying a MP5/Tec9 !");
  47023. return 1;
  47024. }
  47025. weapon = 28;
  47026. price = 4000;
  47027. } else {
  47028. SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !");
  47029. return 1;
  47030. }
  47031. } else {
  47032. SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");
  47033. return 1;
  47034. }
  47035. }
  47036. else if(strcmp(tmp,"chainsaw",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 900) { if(PlayerInfo[playerid][pMats] > 19999) { weapon = 9; price = 20000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47037. else if(strcmp(tmp,"jetpack",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 900) { if(PlayerInfo[playerid][pMats] > 29999) { weapon = 21; price = 30000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47038. else if(strcmp(tmp,"shovel",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 100) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 6; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47039. else if(strcmp(tmp,"ak47",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 3499) { weapon = 30; price = 3500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47040. else if(strcmp(tmp,"poolcue",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 7; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47041. else if(strcmp(tmp,"m4",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 5499) { weapon = 31; price = 5500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47042. else if(strcmp(tmp,"golfclub",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 200) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 2; price = 25; } else {SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47043. else if(strcmp(tmp,"sniper",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 600) { if(PlayerInfo[playerid][pMats] > 7499) { weapon = 34; price = 8500; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47044. else if(strcmp(tmp,"katana",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 8; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !");return 1; } }
  47045. else if(strcmp(tmp,"spas12",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 600) { if(PlayerInfo[playerid][pMats] > 9999) { weapon = 27; price = 10000; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47046. else if(strcmp(tmp,"dildo",true) == 0) { new level = PlayerInfo[playerid][pArmsSkill]; if(level >= 400) { if(PlayerInfo[playerid][pMats] > 24) { weapon = 10; price = 25; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon !"); return 1; } } else { SendClientMessage(playerid,COLOR_GREY," You are not the required level to create that !"); return 1; } }
  47047. else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name !"); return 1; }
  47048. if(weapon==27||weapon==34||weapon==31||weapon==30||weapon==24||weapon==33||weapon==29||weapon==25||weapon==23||weapon==35||weapon==38||weapon==9||weapon==44||weapon==28||weapon==32||weapon==21)
  47049. {
  47050. if(weapon != 23 || weapon != 25)
  47051. {
  47052. loggun = 1;
  47053. }
  47054. PlayerInfo[playerid][pArmsSkill] ++;
  47055. }
  47056. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47057. GetPlayerName(playerid, sendername, sizeof(sendername));
  47058. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  47059. PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
  47060. format(string, sizeof(string), " You have recieved a %s from %s.", tmp, sendername);
  47061. SendClientMessage(giveplayerid, COLOR_GRAD1, string);
  47062. format(string, sizeof(string), "* %s created a Gun from Materials, and hands it to %s.", sendername ,giveplayer);
  47063. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47064. if(weapon != 0)
  47065. {
  47066. GivePlayerGun(giveplayerid, weapon);
  47067. }
  47068. if(loggun == 1)
  47069. {
  47070. format(string, sizeof(string), "%s has sold a %s to %s", sendername,tmp,giveplayer);
  47071. PayLog(string);
  47072. }
  47073. PlayerInfo[playerid][pMats] -= price;
  47074. SellGunTimer[playerid] = 1;
  47075. SetTimerEx("SellGun",10*1000,0,"i",playerid);
  47076. if(PlayerInfo[playerid][pArmsSkill] == 50)
  47077. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 2, you have unlocked the MP5 & Rifle."); }
  47078. else if(PlayerInfo[playerid][pArmsSkill] == 100)
  47079. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 3, you have unlocked the Desert Eagle & Nightvision Goggles."); }
  47080. else if(PlayerInfo[playerid][pArmsSkill] == 200)
  47081. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 4, you have unlocked the AK47 & Mac10."); }
  47082. else if(PlayerInfo[playerid][pArmsSkill] == 400)
  47083. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 5, you have unlocked the M4 Assault Rifles & Tec9."); }
  47084. else if(PlayerInfo[playerid][pArmsSkill] == 600)
  47085. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 6, you have unlocked the Spas12 & Sniper Rifle."); }
  47086. else if(PlayerInfo[playerid][pArmsSkill] == 900)
  47087. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 7, you have unlocked the Chainsaw & Jetpack."); }
  47088. else if(PlayerInfo[playerid][pArmsSkill] == 1300)
  47089. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 8, you have unlocked the RPG."); }
  47090. else if(PlayerInfo[playerid][pArmsSkill] == 2000)
  47091. { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 9, you have unlocked the Minigun."); }
  47092. }
  47093. else
  47094. {
  47095. SendClientMessage(playerid, COLOR_GREY, " You are too far away !");
  47096. return 1;
  47097. }
  47098. }
  47099. else
  47100. {
  47101. format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  47102. SendClientMessage(playerid, COLOR_GRAD1, string);
  47103. }
  47104. }
  47105. return 1;
  47106. }
  47107. if(strcmp(cmd,"/getseeds",true)==0)
  47108. {
  47109. if(IsPlayerConnected(playerid))
  47110. {
  47111. if(PlayerInfo[playerid][pJob] != 4)
  47112. {
  47113. SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Dealer.");
  47114. return 1;
  47115. }
  47116. if(!IsPlayerInRangeOfPoint(playerid,2.0,323.0342,1118.5804,1083.8828))
  47117. {
  47118. SendClientMessage(playerid, COLOR_GREY, "You are not at the Drug House.");
  47119. return 1;
  47120. }
  47121. if(PlayerInfo[playerid][pSeeds] > 10)
  47122. {
  47123. format(string, sizeof(string), "You still have %d seeds with you, sell or /drop them first.", PlayerInfo[playerid][pPot]);
  47124. SendClientMessage(playerid, COLOR_GREY, string);
  47125. return 1;
  47126. }
  47127. tmp = strtok(cmdtext, idx);
  47128. if(!strlen(tmp))
  47129. {
  47130. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getseeds [amount]");
  47131. return 1;
  47132. }
  47133. new price;
  47134. new ammount;
  47135. //new level = PlayerInfo[playerid][pDrugsSkill];
  47136. new drugs = PlayerInfo[playerid][pSeeds];
  47137. ammount = strvalEx(tmp);
  47138. if(ammount > dhstock)
  47139. {
  47140. SendClientMessage(playerid, COLOR_GREY, "The Drug House doesn't have that many seeds at this time.");
  47141. return 1;
  47142. }
  47143. if(drugs > 9) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more pot."); return 1; }
  47144. if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 10 seeds."); return 1; }
  47145. if(drugs + ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 10 seeds."); return 1; }
  47146. price = ammount * potgprice;
  47147. if(PlayerInfo[playerid][pCash] > price)
  47148. {
  47149. format(string, sizeof(string), "You bought %d seeds for $%d.", ammount, price);
  47150. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47151. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  47152. GivePlayerMoney(playerid, -price);
  47153. PlayerInfo[playerid][pSeeds] = ammount + drugs;
  47154. dhstock = dhstock-ammount;
  47155. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  47156. }
  47157. else
  47158. {
  47159. SendClientMessage(playerid, COLOR_GREY, "You can't afford that.");
  47160. return 1;
  47161. }
  47162. }
  47163. return 1;
  47164. }
  47165. if(strcmp(cmd,"/getcrack",true)==0)
  47166. {
  47167. if(IsPlayerConnected(playerid))
  47168. {
  47169. if(PlayerInfo[playerid][pJob] != 4)
  47170. {
  47171. SendClientMessage(playerid,COLOR_GREY,"You are not a Drug Dealer.");
  47172. return 1;
  47173. }
  47174. if(!IsPlayerInRangeOfPoint(playerid,2.0,2346.2937,-1185.2551,1027.9766))
  47175. {
  47176. SendClientMessage(playerid, COLOR_GREY, "You are not at the Crack Lab.");
  47177. return 1;
  47178. }
  47179. if(PlayerInfo[playerid][pCrack] > 15)
  47180. {
  47181. format(string, sizeof(string), "You still have %d grams of crack with you, sell or /drop them first.", PlayerInfo[playerid][pCrack]);
  47182. SendClientMessage(playerid, COLOR_GREY, string);
  47183. return 1;
  47184. }
  47185. tmp = strtok(cmdtext, idx);
  47186. if(!strlen(tmp))
  47187. {
  47188. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcrack [amount]");
  47189. return 1;
  47190. }
  47191. new price;
  47192. new ammount;
  47193. new level = PlayerInfo[playerid][pDrugsSkill];
  47194. new drugs = PlayerInfo[playerid][pCrack];
  47195. ammount = strvalEx(tmp);
  47196. if(ammount > chstock)
  47197. {
  47198. SendClientMessage(playerid, COLOR_GREY, "The Crack Lab doesn't have that much crack at this time.");
  47199. return 1;
  47200. }
  47201. if(level >= 0 && level <= 49)
  47202. {
  47203. if(drugs > 4) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
  47204. if(ammount < 1 || ammount > 5) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 5 at your current skill level."); return 1; }
  47205. if(drugs + ammount > 5) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 5 at your current skill level."); return 1; }
  47206. }
  47207. else if(level >= 50 && level <= 99)
  47208. {
  47209. if(drugs > 9) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
  47210. if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 10 at your current skill level."); return 1; }
  47211. if(drugs + ammount > 10) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 10 at your current skill level."); return 1; }
  47212. }
  47213. else if(level >= 100 && level <= 199)
  47214. {
  47215. if(drugs > 14) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
  47216. if(ammount < 1 || ammount > 15) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 15 at your current skill level."); return 1; }
  47217. if(drugs + ammount > 15) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 15 at your current skill level."); return 1; }
  47218. }
  47219. else if(level >= 200 && level <= 399)
  47220. {
  47221. if(drugs > 19) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
  47222. if(ammount < 1 || ammount > 20) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 20 at your current skill level."); return 1; }
  47223. if(drugs + ammount > 20) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 20 at your current skill level."); return 1; }
  47224. }
  47225. else if(level >= 400)
  47226. {
  47227. if(drugs > 24) { SendClientMessage(playerid, COLOR_GREY, "You can't carry any more crack."); return 1; }
  47228. if(ammount < 1 || ammount > 25) { SendClientMessage(playerid, COLOR_GREY, "You can't purchase more than 25 at your current skill level."); return 1; }
  47229. if(drugs + ammount > 25) { SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 25 at your current skill level."); return 1; }
  47230. }
  47231. price = ammount * crackgprice;
  47232. if(PlayerInfo[playerid][pCash] > price)
  47233. {
  47234. format(string, sizeof(string), "You bought %d grams of Crack for $%d.", ammount, price);
  47235. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47236. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  47237. GivePlayerMoney(playerid, -price);
  47238. PlayerInfo[playerid][pCrack] = ammount + drugs;
  47239. chstock = chstock-ammount;
  47240. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  47241. }
  47242. else
  47243. {
  47244. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  47245. return 1;
  47246. }
  47247. }
  47248. return 1;
  47249. }
  47250. if(strcmp(cmd, "/jobhelp", true) == 0)
  47251. {
  47252. if(IsPlayerConnected(playerid))
  47253. {
  47254. DisplayDialogForPlayer(playerid, 16);
  47255. }
  47256. return 1;
  47257. }
  47258.  
  47259.  
  47260.  
  47261. if(strcmp(cmd,"/getparts",true)==0)
  47262. {
  47263. if(IsPlayerConnected(playerid))
  47264. {
  47265. if(PlayerInfo[playerid][pJob] != 7)
  47266. {
  47267. SendClientMessage(playerid,COLOR_GREY," You are not a Mechanic !");
  47268. return 1;
  47269. }
  47270. if(!IsPlayerInRangeOfPoint(playerid,2.0,2729.9077,-2451.4514,17.5937))
  47271. {
  47272. SendClientMessage(playerid, COLOR_GREY, " You are not at the Auto Export Company !");
  47273. return 1;
  47274. }
  47275. tmp = strtok(cmdtext, idx);
  47276. if(!strlen(tmp))
  47277. {
  47278. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getparts [amount]");
  47279. return 1;
  47280. }
  47281. new price;
  47282. new ammount;
  47283. new level = PlayerInfo[playerid][pMechSkill];
  47284. new parts = PlayerInfo[playerid][pCarParts];
  47285. ammount = strvalEx(tmp);
  47286. if(ammount > Carparts)
  47287. {
  47288. SendClientMessage(playerid, COLOR_GREY, " The Auto Export Company doesn't have that much carparts at this time !");
  47289. return 1;
  47290. }
  47291. if(level >= 0 && level <= 49)
  47292. {
  47293. if(parts > 5000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
  47294. if(ammount < 1 || ammount > 1000) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 1000 at your current skill level !"); return 1; }
  47295. if(parts + ammount > 5000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 5000 at your current skill level !"); return 1; }
  47296. }
  47297. else if(level >= 50 && level <= 99)
  47298. {
  47299. if(parts > 10000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
  47300. if(ammount < 1 || ammount > 10) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 2000 at your current skill level !"); return 1; }
  47301. if(parts + ammount > 10000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 10000 at your current skill level !"); return 1; }
  47302. }
  47303. else if(level >= 100 && level <= 199)
  47304. {
  47305. if(parts > 15000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
  47306. if(ammount < 1 || ammount > 15) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 15 at your current skill level !"); return 1; }
  47307. if(parts + ammount > 15000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 15000 at your current skill level !"); return 1; }
  47308. }
  47309. else if(level >= 200 && level <= 399)
  47310. {
  47311. if(parts > 20000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
  47312. if(ammount < 1 || ammount > 20) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 4000 at your current skill level !"); return 1; }
  47313. if(parts + ammount > 20000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 20000 at your current skill level !"); return 1; }
  47314. }
  47315. else if(level >= 400)
  47316. {
  47317. if(parts > 25000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry any more carparts !"); return 1; }
  47318. if(ammount < 1 || ammount > 25) { SendClientMessage(playerid, COLOR_GREY, " You can't purchase more than 6000 at your current skill level !"); return 1; }
  47319. if(parts + ammount > 25000) { SendClientMessage(playerid, COLOR_GREY, " You can't carry more than 25000 at your current skill level !"); return 1; }
  47320. }
  47321. price = ammount * 2;
  47322. if(PlayerInfo[playerid][pCash] > price)
  47323. {
  47324. format(string, sizeof(string), "* You bought %d carparts for $%d.", ammount, price);
  47325. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47326. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-price;
  47327. GivePlayerMoney(playerid, -price);
  47328. PlayerInfo[playerid][pCarParts] = ammount + parts;
  47329. Carparts = Carparts-ammount;
  47330. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  47331. }
  47332. else
  47333. {
  47334. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  47335. return 1;
  47336. }
  47337. }
  47338. return 1;
  47339. }
  47340.  
  47341. if(strcmp(cmd, "/join", true) == 0)
  47342. {
  47343. if(IsPlayerConnected(playerid))
  47344. {
  47345. if(PlayerInfo[playerid][pJob] == 0)
  47346. {
  47347. if(GetPlayerState(playerid) == 1)
  47348. {
  47349. if(IsPlayerInRangeOfPoint(playerid,3.0,256.6144,69.6090,1003.6406))
  47350. {
  47351. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Detective, type /accept job.");
  47352. GettingJob[playerid] = 1;
  47353. }
  47354. else if(IsPlayerInRangeOfPoint(playerid,3.0,1381.0413,-1088.8511,27.3906))
  47355. {
  47356. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");
  47357. GettingJob[playerid] = 2;
  47358. }
  47359. else if(IsPlayerInRangeOfPoint(playerid,3.0,2166.3772,-1675.3829,15.0859))
  47360. {
  47361. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drug Dealer, type /accept job.");
  47362. GettingJob[playerid] = 4;
  47363. }
  47364. else if(IsPlayerInRangeOfPoint(playerid,3.0,2329.4089,-2316.0996,13.5469))
  47365. {
  47366. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Mechanic, type /accept job.");
  47367. GettingJob[playerid] = 7;
  47368. }
  47369. else if(IsPlayerInRangeOfPoint(playerid,3.0,2226.1716,-1718.1792,13.5165))
  47370. {
  47371. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");
  47372. GettingJob[playerid] = 8;
  47373. }
  47374. else if(IsPlayerInRangeOfPoint(playerid,3.0,1366.4325,-1275.2096,13.5469))
  47375. {
  47376. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Arms Dealer, type /accept job.");
  47377. GettingJob[playerid] = 9;
  47378. }
  47379. else if(IsPlayerInRangeOfPoint(playerid,3.0,1741.7062,-1863.6664,13.5748))
  47380. {
  47381. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Taxi Driver, type /accept job.");
  47382. GettingJob[playerid] = 14;
  47383. }
  47384. else if(IsPlayerInRangeOfPoint(playerid,3.0,2354.2703,-1169.3293,28.0083))
  47385. {
  47386. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drug Smuggler, type /accept job.");
  47387. GettingJob[playerid] = 17;
  47388. }
  47389. else if(IsPlayerInRangeOfPoint(playerid,3.0,545.6451,-1293.9248,17.2422))
  47390. {
  47391. if(PlayerInfo[playerid][pBizKey] != 999)
  47392. {
  47393. SendClientMessage(playerid, COLOR_GREY, "* You can't get this job while you own a business.");
  47394. return 1;
  47395. }
  47396. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Product Dealer, type /accept job.");
  47397. GettingJob[playerid] = 3;
  47398. }
  47399. /* if(IsPlayerInRangeOfPoint(playerid,3.0,2194.2087,-1972.5421,13.5593)) // Trashman
  47400. {
  47401. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trashman, type /accept job.");
  47402. GettingJob[playerid] = 11;
  47403. }*/
  47404. else
  47405. {
  47406. SendClientMessage(playerid, COLOR_GREY, "You are not near a place to get a Job.");
  47407. }
  47408. }
  47409. else
  47410. {
  47411. SendClientMessage(playerid, COLOR_GREY, "You must exit your vehicle before getting a Job.");
  47412. }
  47413. }
  47414. else
  47415. {
  47416. SendClientMessage(playerid, COLOR_GREY, "You already have a Job, use /quitjob first.");
  47417. }
  47418. }
  47419. return 1;
  47420. }
  47421. if(strcmp(cmd, "/fill", true) == 0)
  47422. {
  47423. if(IsPlayerConnected(playerid))
  47424. {
  47425. if(IsAtGasStation(playerid))
  47426. {
  47427. GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
  47428. SetTimer("Fillup",5000,0);
  47429. Refueling[playerid] = 1;
  47430. }
  47431. else
  47432. {
  47433. SendClientMessage(playerid,COLOR_GREY,"You are not at a Gas Station.");
  47434. }
  47435. }
  47436. return 1;
  47437. }
  47438. if(strcmp(cmd, "/tazer", true) ==0)
  47439. {
  47440. if(IsPlayerConnected(playerid))
  47441. {
  47442. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
  47443. {
  47444. new x_job[20];
  47445. x_job = strtok(cmdtext, idx);
  47446. if(!strlen(x_job))
  47447. tmp = strtok(cmdtext, idx);
  47448. if(TazerHolster[playerid] == 1)
  47449. {
  47450. if(PlayerInfo[playerid][pGun2] == 24) PlayerHadDeagle[playerid] = 1;
  47451. GivePlayerGun(playerid, 23);
  47452. PlayerHasTazer[playerid] = 1;
  47453. TazerHolster[playerid] = 0;
  47454. format(string, sizeof(string), "* %s unholsters his tazer.", PlayerName(playerid));
  47455. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47456. }
  47457. else if(TazerHolster[playerid] == 0)
  47458. {
  47459. if(PlayerHasTazer[playerid] == 0) return SendClientMessage(playerid,COLOR_GREY,"You don't have a tazer out!");
  47460. TakeWeapon(playerid, 23);
  47461. if(PlayerHadDeagle[playerid] == 1) GivePlayerGun(playerid, 24);
  47462. PlayerHasTazer[playerid] = 0;
  47463. PlayerHadDeagle[playerid] = 0;
  47464. TazerHolster[playerid] = 1;
  47465. format(string, sizeof(string), "* %s holsters his tazer back.", PlayerName(playerid));
  47466. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47467. }
  47468. }
  47469. else
  47470. {
  47471. SendClientMessage(playerid, COLOR_GREY, "You are not a member of the LSPD / SASD / FBI / DoC / SS");
  47472. }
  47473. }
  47474. return 1;
  47475. }
  47476. if(strcmp(cmd, "/backshield", true) ==0)
  47477. {
  47478. if(IsPlayerConnected(playerid))
  47479. {
  47480. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
  47481. {
  47482. if(BShield[playerid] == 0)
  47483. {
  47484. if (AShield[playerid] == 1) { RemovePlayerAttachedObject(playerid, 7); }
  47485. BShield[playerid] = 1;
  47486. if(IsPlayerAttachedObjectSlotUsed(playerid,bankbag)) RemovePlayerAttachedObject(playerid,bankbag);
  47487. SetPlayerAttachedObject(playerid, bankbag , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
  47488. }
  47489. else if(BShield[playerid] == 1)
  47490. {
  47491. RemovePlayerAttachedObject(playerid, bankbag);
  47492. BShield[playerid] = 0;
  47493. }
  47494. }
  47495. else
  47496. {
  47497. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST / NG / SS !");
  47498. }
  47499. }
  47500. return 1;
  47501. }
  47502.  
  47503. if(strcmp(cmd, "/armshield", true) ==0)
  47504. {
  47505. if(IsPlayerConnected(playerid))
  47506. {
  47507. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 7)
  47508. {
  47509. if(AShield[playerid] == 0)
  47510. {
  47511. if (BShield[playerid] == 1) { RemovePlayerAttachedObject(playerid, bankbag); }
  47512. AShield[playerid] = 1;
  47513. if(IsPlayerAttachedObjectSlotUsed(playerid,7)) RemovePlayerAttachedObject(playerid,7);
  47514. SetPlayerAttachedObject(playerid, 7, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
  47515. }
  47516. else if(AShield[playerid] == 1)
  47517. {
  47518. RemovePlayerAttachedObject(playerid, 7);
  47519. AShield[playerid] = 0;
  47520. }
  47521. }
  47522. else
  47523. {
  47524. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST / NG / SS !");
  47525. }
  47526. }
  47527. return 1;
  47528. }
  47529. if(strcmp(cmd, "/detain", true) == 0)
  47530. {
  47531. if(IsPlayerConnected(playerid))
  47532. {
  47533. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  47534. {
  47535. if(IsPlayerInAnyVehicle(playerid))
  47536. {
  47537. SendClientMessage(playerid, COLOR_GREY, " Cannot use this while being in the Car !");
  47538. return 1;
  47539. }
  47540. tmp = strtok(cmdtext, idx);
  47541. if(!strlen(tmp))
  47542. return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /detain [playerid/PartOfName] [seatid]");
  47543. giveplayerid = ReturnUser(tmp);
  47544. tmp = strtok(cmdtext, idx);
  47545. if(!strlen(tmp))
  47546. return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /detain [playerid/PartOfName] [seatid]");
  47547. new seat = strvalEx(tmp);
  47548. if(IsPlayerConnected(giveplayerid))
  47549. {
  47550. if(giveplayerid != INVALID_PLAYER_ID)
  47551. {
  47552. if(seat < 1 || seat > 3)
  47553. {
  47554. SendClientMessage(playerid, COLOR_GREY, " Seat cannot be below 1 or above 3 !");
  47555. return 1;
  47556. }
  47557. if(IsACop(giveplayerid))
  47558. {
  47559. SendClientMessage(playerid, COLOR_GREY, " You can't Detain Cops !");
  47560. return 1;
  47561. }
  47562. if(IsPlayerInAnyVehicle(giveplayerid))
  47563. {
  47564. SendClientMessage(playerid, COLOR_GREY, " Suspect is in a Car, get him out first !");
  47565. return 1;
  47566. }
  47567. if(ProxDetectorS(8.0, playerid, giveplayerid))
  47568. {
  47569. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Detain yourself !"); return 1; }
  47570. if(PlayerCuffed[giveplayerid] == 2)
  47571. {
  47572. new carid = gLastCar[playerid];
  47573. if(IsInvalidDetainVehicle(carid)) { SendClientMessage(playerid, COLOR_GREY, " You can't Detain someone in that vehicle !"); return 1; }
  47574. //foreach(Player, i)
  47575. for(new i; i<MAX_PLAYERS; i++)
  47576. {
  47577. if(IsPlayerInAnyVehicle(i))
  47578. {
  47579. if(GetPlayerVehicleID(i) == gLastCar[playerid])
  47580. {
  47581. if(GetPlayerVehicleSeat(i) == seat)
  47582. {
  47583. format(string, sizeof(string), " That seat is occupied by %s !", PlayerName(i));
  47584. SendClientMessage(playerid, COLOR_GREY, string);
  47585. return 1;
  47586. }
  47587. }
  47588. }
  47589. }
  47590. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47591. GetPlayerName(playerid, sendername, sizeof(sendername));
  47592. format(string, sizeof(string), "* You were detained by %s.", sendername);
  47593. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  47594. if(PlayerInfo[giveplayerid][pMask] == 1)
  47595. {
  47596. format(string, sizeof(string), "* You have detained A Stranger.");
  47597. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47598. format(string, sizeof(string), "* %s grabs A Stranger and throws him in his car.", PlayerName(playerid));
  47599. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47600. }
  47601. else
  47602. {
  47603. format(string, sizeof(string), "* You have detained %s.", PlayerName(giveplayerid));
  47604. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47605. format(string, sizeof(string), "* %s grabs %s and throws him in the car.", sendername, PlayerName(giveplayerid));
  47606. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47607. }
  47608. GameTextForPlayer(giveplayerid, "~r~Detained", 2500, 3);
  47609. ClearAnimations(giveplayerid);
  47610. TogglePlayerControllable(giveplayerid, 0);
  47611. if(IsInvalidDetainSeat(carid))
  47612. {
  47613. PutPlayerInVehicle(giveplayerid,carid,1);
  47614. }
  47615. else
  47616. {
  47617. PutPlayerInVehicle(giveplayerid,carid,seat);
  47618. }
  47619. }
  47620. else
  47621. {
  47622. SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
  47623. return 1;
  47624. }
  47625. }
  47626. else
  47627. {
  47628. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  47629. return 1;
  47630. }
  47631. }
  47632. }
  47633. else
  47634. {
  47635. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  47636. return 1;
  47637. }
  47638. }
  47639. else
  47640. {
  47641. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  47642. }
  47643. }
  47644. return 1;
  47645. }
  47646. if(strcmp(cmd, "/stretcher", true) == 0)
  47647. {
  47648. if(IsPlayerConnected(playerid))
  47649. {
  47650. if(PlayerInfo[playerid][pMember] == 4)
  47651. {
  47652. if(IsPlayerInAnyVehicle(playerid))
  47653. {
  47654. SendClientMessage(playerid, COLOR_GREY, " Cannot use this while being in the Car !");
  47655. return 1;
  47656. }
  47657. tmp = strtok(cmdtext, idx);
  47658. if(!strlen(tmp))
  47659. return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stretcher [playerid/PartOfName] [seatid]");
  47660. giveplayerid = ReturnUser(tmp);
  47661. tmp = strtok(cmdtext, idx);
  47662. if(!strlen(tmp))
  47663. return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stretcher [playerid/PartOfName] [seatid]");
  47664. new seat = strvalEx(tmp);
  47665. if(IsPlayerConnected(giveplayerid))
  47666. {
  47667. if(giveplayerid != INVALID_PLAYER_ID)
  47668. {
  47669. if(seat < 1 || seat > 3)
  47670. {
  47671. SendClientMessage(playerid, COLOR_GREY, " Seat cannot be below 1 or above 3 !");
  47672. return 1;
  47673. }
  47674. if(IsPlayerInAnyVehicle(giveplayerid))
  47675. {
  47676. SendClientMessage(playerid, COLOR_GREY, " That player is in a Car, get him out first !");
  47677. return 1;
  47678. }
  47679. if(ProxDetectorS(8.0, playerid, giveplayerid))
  47680. {
  47681. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot put yourself in a stretcher !"); return 1; }
  47682. if(PlayerHurt[giveplayerid])
  47683. {
  47684. new carid = gLastCar[playerid];
  47685. if(IsInvalidDetainVehicle(carid)) { SendClientMessage(playerid, COLOR_GREY, " You can't put someone in that vehicle !"); return 1; }
  47686. //foreach(Player, i)
  47687. for(new i; i<MAX_PLAYERS; i++)
  47688. {
  47689. if(IsPlayerInAnyVehicle(i))
  47690. {
  47691. if(GetPlayerVehicleID(i) == gLastCar[playerid])
  47692. {
  47693. if(GetPlayerVehicleSeat(i) == seat)
  47694. {
  47695. format(string, sizeof(string), " That seat is occupied by %s !", PlayerName(i));
  47696. SendClientMessage(playerid, COLOR_GREY, string);
  47697. return 1;
  47698. }
  47699. }
  47700. }
  47701. }
  47702. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47703. GetPlayerName(playerid, sendername, sizeof(sendername));
  47704. format(string, sizeof(string), "* You were put into a stretcher by %s.", sendername);
  47705. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  47706. if(PlayerInfo[giveplayerid][pMask] == 1)
  47707. {
  47708. format(string, sizeof(string), "* You have put A Stranger into a stretcher.");
  47709. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47710. format(string, sizeof(string), "* %s puts A Stranger into a stretcher and puts him in the vehicle.", PlayerName(playerid));
  47711. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47712. }
  47713. else
  47714. {
  47715. format(string, sizeof(string), "* You put %s into a stretcher.", PlayerName(giveplayerid));
  47716. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47717. format(string, sizeof(string), "* %s puts %s into a stretcher and puts him in the vehicle.", sendername, PlayerName(giveplayerid));
  47718. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47719. }
  47720. ClearAnimations(giveplayerid);
  47721. if(IsInvalidDetainSeat(carid))
  47722. {
  47723. PutPlayerInVehicle(giveplayerid,carid,1);
  47724. }
  47725. else
  47726. {
  47727. PutPlayerInVehicle(giveplayerid,carid,seat);
  47728. }
  47729. }
  47730. else
  47731. {
  47732. SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
  47733. return 1;
  47734. }
  47735. }
  47736. else
  47737. {
  47738. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  47739. return 1;
  47740. }
  47741. }
  47742. }
  47743. else
  47744. {
  47745. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  47746. return 1;
  47747. }
  47748. }
  47749. else
  47750. {
  47751. SendClientMessage(playerid, COLOR_GREY, " You are not a Paramedic / Fireman !");
  47752. }
  47753. }
  47754. return 1;
  47755. }
  47756. if(strcmp(cmd, "/cuff", true) == 0)
  47757. {
  47758. if(IsPlayerConnected(playerid))
  47759. {
  47760. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  47761. {
  47762. tmp = strtok(cmdtext, idx);
  47763. if(!strlen(tmp))
  47764. {
  47765. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cuff [Playerid/PartOfName]");
  47766. return 1;
  47767. }
  47768. if(IsPlayerInAnyVehicle(playerid))
  47769. {
  47770. SendClientMessage(playerid, COLOR_GREY, " Cannot use this while in a Car !");
  47771. return 1;
  47772. }
  47773. giveplayerid = ReturnUser(tmp);
  47774. if(IsPlayerConnected(giveplayerid))
  47775. {
  47776. if(IsACop(giveplayerid))
  47777. {
  47778. SendClientMessage(playerid, COLOR_GREY, " You can't Cuff Cops !");
  47779. return 1;
  47780. }
  47781. if(IsANG(giveplayerid))
  47782. {
  47783. SendClientMessage(playerid, COLOR_GREY, " You can't Cuff National Guards !");
  47784. return 1;
  47785. }
  47786. if(PlayerTied[giveplayerid] > 0)
  47787. {
  47788. SendClientMessage(playerid, COLOR_GREY, " That player is Tied up !");
  47789. return 1;
  47790. }
  47791. if(PlayerCuffed[giveplayerid] > 1)
  47792. {
  47793. SendClientMessage(playerid, COLOR_GREY, " That player is already Cuffed !");
  47794. return 1;
  47795. }
  47796. if(IsPlayerInAnyVehicle(giveplayerid))
  47797. {
  47798. SendClientMessage(playerid, COLOR_GREY, " Suspect is in a car, get him out first !");
  47799. return 1;
  47800. }
  47801. if(PlayerCuffed[giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP)
  47802. {
  47803. if(ProxDetectorS(8.0, playerid, giveplayerid))
  47804. {
  47805. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't Cuff yourself !"); return 1; }
  47806. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47807. GetPlayerName(playerid, sendername, sizeof(sendername));
  47808. format(string, sizeof(string), "* You were Cuffed by Officer %s.", sendername);
  47809. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  47810. if(PlayerInfo[giveplayerid][pMask] == 1)
  47811. {
  47812. format(string, sizeof(string), "* You Cuffed A Stranger.");
  47813. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47814. format(string, sizeof(string), "* %s Hand Cuffs A Stranger, so he wont go anywhere.", PlayerName(playerid));
  47815. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47816. }
  47817. else
  47818. {
  47819. format(string, sizeof(string), "* You Cuffed %s.", giveplayer);
  47820. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47821. format(string, sizeof(string), "* %s Hand Cuffs %s, so he wont go anywhere.", sendername ,giveplayer);
  47822. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47823. }
  47824. GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);
  47825. TogglePlayerControllable(giveplayerid, 0);
  47826. ClearAnimations(giveplayerid);
  47827. ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
  47828. ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);
  47829. PlayerCuffed[giveplayerid] = 2;
  47830. PlayerCuffedTime[giveplayerid] = 300;
  47831. }
  47832. else
  47833. {
  47834. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  47835. return 1;
  47836. }
  47837. }
  47838. else
  47839. {
  47840. SendClientMessage(playerid, COLOR_GREY, " That player needs to be restrained first !");
  47841. return 1;
  47842. }
  47843. }
  47844. else
  47845. {
  47846. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  47847. return 1;
  47848. }
  47849. }
  47850. else
  47851. {
  47852. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  47853. }
  47854. }
  47855. return 1;
  47856. }
  47857. if(strcmp(cmd, "/uncuff", true) == 0)
  47858. {
  47859. if(IsPlayerConnected(playerid))
  47860. {
  47861. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  47862. {
  47863. tmp = strtok(cmdtext, idx);
  47864. if(!strlen(tmp))
  47865. {
  47866. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uncuff [Playerid/PartOfName]");
  47867. return 1;
  47868. }
  47869. giveplayerid = ReturnUser(tmp);
  47870. if(IsPlayerConnected(giveplayerid))
  47871. {
  47872. if(giveplayerid != INVALID_PLAYER_ID)
  47873. {
  47874. if(ProxDetectorS(8.0, playerid, giveplayerid))
  47875. {
  47876. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't Uncuff yourself !"); return 1; }
  47877. if(PlayerCuffed[giveplayerid])
  47878. {
  47879. GetPlayerName(playerid, sendername, sizeof(sendername));
  47880. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47881. format(string, sizeof(string), "* You were Uncuffed by %s.", sendername);
  47882. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  47883. if(PlayerInfo[giveplayerid][pMask] == 1)
  47884. {
  47885. format(string, sizeof(string), "* You uncuffed A Stranger.");
  47886. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47887. format(string, sizeof(string), "* %s has uncuffed A Stranger.", PlayerName(playerid));
  47888. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47889. }
  47890. else
  47891. {
  47892. format(string, sizeof(string), "* You uncuffed %s.", giveplayer);
  47893. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  47894. format(string, sizeof(string), "* %s has uncuffed %s.", sendername ,giveplayer);
  47895. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  47896. }
  47897. GameTextForPlayer(giveplayerid, "~g~Uncuffed", 2500, 3);
  47898. TogglePlayerControllable(giveplayerid, 1);
  47899. ClearAnimations(giveplayerid);
  47900. PlayerCuffed[giveplayerid] = 0;
  47901. PlayerCuffedTime[giveplayerid] = 0;
  47902. }
  47903. else
  47904. {
  47905. SendClientMessage(playerid, COLOR_GREY, " That player isn't Cuffed !");
  47906. return 1;
  47907. }
  47908. }
  47909. else
  47910. {
  47911. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  47912. return 1;
  47913. }
  47914. }
  47915. }
  47916. else
  47917. {
  47918. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  47919. return 1;
  47920. }
  47921. }
  47922. else
  47923. {
  47924. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  47925. }
  47926. }
  47927. return 1;
  47928. }
  47929. if(strcmp(cmd,"/handsup", true) == 0)
  47930. {
  47931. if(IsPlayerConnected(playerid))
  47932. {
  47933. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  47934. {
  47935. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  47936. return 1;
  47937. }
  47938. else
  47939. {
  47940. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  47941. }
  47942. }
  47943. return 1;
  47944. }
  47945. if(strcmp(cmd,"/piss", true) == 0)
  47946. {
  47947. if(IsPlayerConnected(playerid))
  47948. {
  47949. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerFrozen[playerid] != 0 || IsPlayerInAnyVehicle(playerid))
  47950. {
  47951. SendClientMessage(playerid, COLOR_GREY, " You can't do that at this time !");
  47952. return 1;
  47953. }
  47954. else
  47955. {
  47956. SetPlayerSpecialAction(playerid, 68);
  47957. }
  47958. }
  47959. return 1;
  47960. }
  47961. if(strcmp(cmd, "/find", true) == 0)
  47962. {
  47963. if(IsPlayerConnected(playerid))
  47964. {
  47965. if(PlayerInfo[playerid][pJob] != 1)
  47966. {
  47967. SendClientMessage(playerid, COLOR_GREY, " You are not a Detective !");
  47968. return 1;
  47969. }
  47970. if(UsedFind[playerid] != 0)
  47971. {
  47972. SendClientMessage(playerid, COLOR_GREY, " You've already searched for someone, you must wait your reload time !");
  47973. return 1;
  47974. }
  47975. tmp = strtok(cmdtext, idx);
  47976. if(!strlen(tmp))
  47977. {
  47978. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /find [playerid/PartOfName]");
  47979. return 1;
  47980. }
  47981. giveplayerid = ReturnUser(tmp);
  47982. if(IsPlayerConnected(giveplayerid))
  47983. {
  47984. if(giveplayerid != INVALID_PLAYER_ID)
  47985. {
  47986. if(giveplayerid == playerid) SendClientMessage(playerid, COLOR_GREY, " You cannot Find yourself !");
  47987. if(GetPlayerInterior(giveplayerid) != 0) SendClientMessage(playerid, COLOR_GREY, " That player is currently inside !");
  47988. if(PlayerInfo[giveplayerid][pMask] == 1) SendClientMessage(playerid, COLOR_GREY, " That player is currently inside !");
  47989. new points;
  47990. new zone[MAX_ZONE_NAME];
  47991. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  47992. GetPlayer2DZone(giveplayerid, zone, MAX_ZONE_NAME);
  47993. new level = PlayerInfo[playerid][pDetSkill];
  47994. if(level >= 0 && level <= 49) { points = 4; FReloadTime[playerid] = 120; }
  47995. else if(level >= 50 && level <= 99) { points = 6; FReloadTime[playerid] = 80; }
  47996. else if(level >= 100 && level <= 199) { points = 8; FReloadTime[playerid] = 60; }
  47997. else if(level >= 200 && level <= 399) { points = 10; FReloadTime[playerid] = 30; }
  47998. else if(level >= 400) { points = 12; FReloadTime[playerid] = 20; }
  47999. SetPlayerMarkerForPlayer(playerid, giveplayerid, 0x9B0000AA);
  48000. format(string, sizeof(string), "%s has been spotted last in %s.", giveplayer, zone);
  48001. SendClientMessage(playerid, COLOR_GREY, string);
  48002. FindingID[playerid] = giveplayerid;
  48003. FindTime[playerid] = 1;
  48004. UsedFind[playerid] = 1;
  48005. FindTimePoints[playerid] = points;
  48006. PlayerInfo[playerid][pDetSkill] ++;
  48007. if(PlayerInfo[playerid][pDetSkill] == 50) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, you now have a 80 second reload time."); }
  48008. else if(PlayerInfo[playerid][pDetSkill] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, you now have a 60 second reload time."); }
  48009. else if(PlayerInfo[playerid][pDetSkill] == 200) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you now have a 30 second reload time."); }
  48010. else if(PlayerInfo[playerid][pDetSkill] == 400) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you now have a 20 second reload time."); }
  48011. }
  48012. }
  48013. else SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  48014. }
  48015. return 1;
  48016. }
  48017. if(strcmp(cmd, "/sellvest", true) == 0)
  48018. {
  48019. if(IsPlayerConnected(playerid))
  48020. {
  48021. if(PlayerInfo[playerid][pJob] != 8)
  48022. {
  48023. SendClientMessage(playerid, COLOR_GREY, " You are not a Bodyguard !");
  48024. return 1;
  48025. }
  48026. tmp = strtok(cmdtext, idx);
  48027. if(!strlen(tmp))
  48028. {
  48029. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellvest [playerid/PartOfName] [price]");
  48030. return 1;
  48031. }
  48032. new money;
  48033. giveplayerid = ReturnUser(tmp);
  48034. tmp = strtok(cmdtext, idx);
  48035. if(!strlen(tmp))
  48036. {
  48037. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellvest [playerid/PartOfName] [price]");
  48038. return 1;
  48039. }
  48040. money = strvalEx(tmp);
  48041. if(money < 2000 || money > 10000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $2000, or above $10,000 !"); return 1; }
  48042. if(IsPlayerConnected(giveplayerid))
  48043. {
  48044. if(giveplayerid != INVALID_PLAYER_ID)
  48045. {
  48046. if(ProxDetectorS(8.0, playerid, giveplayerid))
  48047. {
  48048. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't offer protection to yourself !"); return 1; }
  48049. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  48050. GetPlayerName(playerid, sendername, sizeof(sendername));
  48051. format(string, sizeof(string), "* You offered protection to %s for $%d.", giveplayer, money);
  48052. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  48053. format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, (type /accept vest) to accept.", sendername, money);
  48054. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  48055. GuardOffer[giveplayerid] = playerid;
  48056. GuardPrice[giveplayerid] = money;
  48057. }
  48058. else
  48059. {
  48060. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  48061. }
  48062. }
  48063. }
  48064. else
  48065. {
  48066. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  48067. }
  48068. }
  48069. return 1;
  48070. }
  48071. if(strcmp(cmd, "/free", true) == 0)
  48072. {
  48073. if(IsPlayerConnected(playerid))
  48074. {
  48075. if(PlayerInfo[playerid][pJob] != 2)
  48076. {
  48077. SendClientMessage(playerid, COLOR_GREY, " You are not a Lawyer !");
  48078. return 1;
  48079. }
  48080. if(PlayerInfo[playerid][pLawyerFreeTime] != 0)
  48081. {
  48082. SendClientMessage(playerid, COLOR_GREY, " You must wait 2 minutes before you can free someone again !");
  48083. return 1;
  48084. }
  48085. tmp = strtok(cmdtext, idx);
  48086. if(!strlen(tmp))
  48087. {
  48088. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /free [playerid/PartOfName]");
  48089. return 1;
  48090. }
  48091. giveplayerid = ReturnUser(tmp);
  48092. if(IsPlayerConnected(giveplayerid))
  48093. {
  48094. if(giveplayerid != INVALID_PLAYER_ID)
  48095. {
  48096. if(ProxDetectorS(5.0, playerid, giveplayerid))
  48097. {
  48098. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't free yourself !"); return 1; }
  48099. if(PlayerInfo[giveplayerid][pAdminJailed] == 1)
  48100. {
  48101. return SendClientMessage(playerid, COLOR_LIGHTBLUE, " This player was admin prisoned, you cannot decrease their time.");
  48102. }
  48103. if(PlayerInfo[giveplayerid][pJailed] == 1)
  48104. {
  48105. new minutes;
  48106. new level = PlayerInfo[playerid][pLawSkill];
  48107. if(level >= 0 && level <= 49) { minutes = 1; }
  48108. else if(level >= 50 && level <= 99) { minutes = 2; }
  48109. else if(level >= 100 && level <= 199) { minutes = 3; }
  48110. else if(level >= 200 && level <= 399) { minutes = 4; }
  48111. else if(level >= 400) { minutes = 5; }
  48112. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  48113. GetPlayerName(playerid, sendername, sizeof(sendername));
  48114. format(string, sizeof(string), "* You have reduced %s's jail time by %d minutes.", giveplayer,minutes);
  48115. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  48116. format(string, sizeof(string), "* Lawyer %s has reduced your jail time by %d minutes.", sendername,minutes);
  48117. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  48118. WantLawyer[giveplayerid] = 0;
  48119. CallLawyer[giveplayerid] = 0;
  48120. JailPrice[giveplayerid] = 0;
  48121. PlayerInfo[giveplayerid][pJailTime] = PlayerInfo[giveplayerid][pJailTime] -minutes * 60;
  48122. PlayerInfo[playerid][pLawSkill] ++;
  48123. PlayerInfo[playerid][pLawyerFreeTime] = 120;
  48124. if(PlayerInfo[playerid][pLawSkill] == 50) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 2, you will now earn more Money and have a quicker Reload Time."); }
  48125. else if(PlayerInfo[playerid][pLawSkill] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 3, you will now earn more Money and have a quicker Reload Time."); }
  48126. else if(PlayerInfo[playerid][pLawSkill] == 200) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 4, you will now earn more Money and have a quicker Reload Time."); }
  48127. else if(PlayerInfo[playerid][pLawSkill] == 400) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 5, you will now earn more Money and have a quicker Reload Time."); }
  48128. }
  48129. else
  48130. {
  48131. SendClientMessage(playerid, COLOR_GRAD1, " Player is not Jailed !");
  48132. return 1;
  48133. }
  48134. }
  48135. else
  48136. {
  48137. SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
  48138. return 1;
  48139. }
  48140. }
  48141. }
  48142. else SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  48143. }
  48144. return 1;
  48145. }
  48146.  
  48147. if(strcmp(cmd,"/biz",true)==0)
  48148. {
  48149. if(IsPlayerConnected(playerid))
  48150. {
  48151. new x_job[128];
  48152. x_job = strtok(cmdtext, idx);
  48153. if(PlayerInfo[playerid][pBizKey] == 999)
  48154. {
  48155. SendClientMessage(playerid, COLOR_GREY, "You don't own a business.");
  48156. return 1;
  48157. }
  48158. if(PlayerInfo[playerid][pInBiz] != PlayerInfo[playerid][pBizKey])
  48159. {
  48160. SendClientMessage(playerid, COLOR_GREY, "You need to be inside your business to do this.");
  48161. return 1;
  48162. }
  48163. new biz = PlayerInfo[playerid][pBizKey];
  48164. if(!strlen(x_job)) {
  48165. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz [name]");
  48166. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Withdraw, EntryFee, Restock");
  48167. if(BizInfo[biz][bType] == 8)
  48168. {
  48169. SendClientMessage(playerid, COLOR_GRAD1, "Available names: AddJackpot, Startlotto");
  48170. }
  48171. if(BizInfo[biz][bType] == 6)
  48172. {
  48173. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Mass");
  48174. }
  48175. return 1;
  48176. }
  48177. if(strcmp(x_job,"Withdraw",true) == 0)
  48178. {
  48179. tmp = strtok(cmdtext, idx);
  48180. new withdraw = strvalEx(tmp);
  48181. if(!strlen(tmp))
  48182. {
  48183. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz Withdraw [amount]");
  48184. format(string, sizeof(string), "You currently have $%d in your business till", BizInfo[biz][bTill]);
  48185. SendClientMessage(playerid, COLOR_YELLOW, string);
  48186. return 1;
  48187. }
  48188. if(withdraw > BizInfo[biz][bTill])
  48189. {
  48190. SendClientMessage(playerid, COLOR_GREY, " You don't have that much in your business till");
  48191. return 1;
  48192. }
  48193. new left = BizInfo[biz][bTill]-withdraw;
  48194. BizInfo[biz][bTill] = left;
  48195. format(string, sizeof(string), "You took $%d from your business", withdraw);
  48196. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  48197. PlayerInfo[playerid][pCash] += withdraw;
  48198. GivePlayerMoney(playerid,withdraw);
  48199. return 1;
  48200. }
  48201. else if(strcmp(x_job,"EntryFee",true) == 0)
  48202. {
  48203. tmp = strtok(cmdtext, idx);
  48204. new fee = strvalEx(tmp);
  48205. if(!strlen(tmp))
  48206. {
  48207. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz EntryFee [amount]");
  48208. return 1;
  48209. }
  48210. if(fee > 10000 || fee < 0)
  48211. {
  48212. SendClientMessage(playerid, COLOR_GREY, " The entry fee must be between $0 - $10,000");
  48213. return 1;
  48214. }
  48215. BizInfo[biz][bFee] = fee;
  48216. DestroyDynamic3DTextLabel(BizLabel[biz]);
  48217. new VString[255];
  48218. new name[25], owner[MAX_PLAYER_NAME];
  48219. strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
  48220. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  48221. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
  48222. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  48223. format(string, sizeof(string), "You have set your business entry fee to $%d", fee);
  48224. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  48225. return 1;
  48226. }
  48227. else if(strcmp(x_job,"Restock",true) == 0)
  48228. {
  48229. tmp = strtok(cmdtext, idx);
  48230. new prod = strvalEx(tmp);
  48231. if(!strlen(tmp))
  48232. {
  48233. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz Restock [amount]");
  48234. format(string, sizeof(string), "You currently have %d products in your business", BizInfo[biz][bProducts]);
  48235. SendClientMessage(playerid, COLOR_YELLOW, string);
  48236. return 1;
  48237. }
  48238. new calc = prod+BizInfo[biz][bProducts];
  48239. if(calc > 500)
  48240. {
  48241. SendClientMessage(playerid, COLOR_GREY, " You can't restock that much");
  48242. return 1;
  48243. }
  48244. if(prod > PlayerInfo[playerid][pProducts])
  48245. {
  48246. SendClientMessage(playerid, COLOR_GREY, " You don't have that much");
  48247. return 1;
  48248. }
  48249. BizInfo[biz][bProducts] = calc;
  48250. format(string, sizeof(string), "You have restocked your business.");
  48251. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  48252. PlayerInfo[playerid][pProducts] -= prod;
  48253. return 1;
  48254. }
  48255. else if(strcmp(x_job,"AddJackpot",true) == 0)
  48256. {
  48257. tmp = strtok(cmdtext, idx);
  48258. new jpot = strvalEx(tmp);
  48259. if(!strlen(tmp))
  48260. {
  48261. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /biz AddJackpot [amount]");
  48262. SendClientMessage(playerid, COLOR_YELLOW, "Note that you can't take your cash back once you added it to the Jackpot");
  48263. format(string, sizeof(string), "You currently have $%d in your hand", PlayerInfo[playerid][pCash]);
  48264. SendClientMessage(playerid, COLOR_YELLOW, string);
  48265. return 1;
  48266. }
  48267. if(jpot < 0)
  48268. {
  48269. SendClientMessage(playerid, COLOR_GREY, " Yeah sure..");
  48270. return 1;
  48271. }
  48272. if(jpot > PlayerInfo[playerid][pCash])
  48273. {
  48274. SendClientMessage(playerid, COLOR_GREY, " You don't have that much");
  48275. return 1;
  48276. }
  48277. PlayerInfo[playerid][pCash] -= jpot;
  48278. GivePlayerMoney(playerid,-jpot);
  48279. format(string, sizeof(string), "You added $%d to the jackpot", jpot);
  48280. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  48281. BizInfo[biz][bLottoJackpot] += jpot;
  48282. return 1;
  48283. }
  48284. else if(strcmp(x_job,"StartLotto",true) == 0)
  48285. {
  48286. if(PlayerInfo[playerid][pBizKey] == 999)
  48287. {
  48288. SendClientMessage(playerid, COLOR_GREY, " You don't own a lotto agency");
  48289. return 1;
  48290. }
  48291. if(BizInfo[PlayerInfo[playerid][pBizKey]][bType] != 8 )
  48292. {
  48293. SendClientMessage(playerid, COLOR_GREY, " You don't own a lotto agency");
  48294. return 1;
  48295. }
  48296. if(BizInfo[PlayerInfo[playerid][pBizKey]][bLottoTime] > 0 )
  48297. {
  48298. SendClientMessage(playerid, COLOR_GREY, " You already had a draw recently");
  48299. return 1;
  48300. }
  48301. new bizname[25];
  48302. strmid(bizname, BizInfo[PlayerInfo[playerid][pBizKey]][bName], 0, strlen(BizInfo[PlayerInfo[playerid][pBizKey]][bName]), 255);
  48303. new location[MAX_ZONE_NAME];
  48304. Get2DZone(location, MAX_ZONE_NAME, BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_x], BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_y], BizInfo[PlayerInfo[playerid][pBizKey]][bLocation_z]);
  48305. format(string, sizeof(string), "Lottery: %s will have a draw in 5 minutes. Jackpot: %d", bizname, BizInfo[PlayerInfo[playerid][pBizKey]][bLottoJackpot]);
  48306. SendClientMessageToAll(COLOR_RED, string);
  48307. format(string, sizeof(string), "Lottery: Buy your tickets from the lotto agency located in %s",location);
  48308. SendClientMessageToAll(COLOR_RED, string);
  48309. // SetTimerEx("StartLotto", 3000, 0, "d", PlayerInfo[playerid][pBizKey]);
  48310. SetTimerEx("StartLotto", 300000, 0, "d", PlayerInfo[playerid][pBizKey]);
  48311. BizInfo[biz][bLottoTime] = 1;
  48312. return 1;
  48313. }
  48314. else if(strcmp(x_job,"Mass",true) == 0)
  48315. {
  48316. new number;
  48317. if(PlayerInfo[playerid][pBizKey] == 999)
  48318. {
  48319. SendClientMessage(playerid, COLOR_GREY, " You don't own a phone company");
  48320. return 1;
  48321. }
  48322. if(BizInfo[PlayerInfo[playerid][pBizKey]][bType] != 6 )
  48323. {
  48324. SendClientMessage(playerid, COLOR_GREY, " You don't own a phone company");
  48325. return 1;
  48326. }
  48327. if(BizInfo[PlayerInfo[playerid][pBizKey]][bLottoTime] > 0 )
  48328. {
  48329. SendClientMessage(playerid, COLOR_GREY, " You already sent a mass recently");
  48330. return 1;
  48331. }
  48332. tmp = strtok(cmdtext, idx);
  48333. if(!strlen(tmp))
  48334. {
  48335. SendClientMessage(playerid, COLOR_GREY, "USAGE: /biz Mass [Number] [Message]");
  48336. return 1;
  48337. }
  48338. number = strvalEx(tmp);
  48339. new length = strlen(cmdtext);
  48340. while ((idx < length) && (cmdtext[idx] <= ' '))
  48341. {
  48342. idx++;
  48343. }
  48344. new offset = idx;
  48345. new result[96];
  48346. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  48347. {
  48348. result[idx - offset] = cmdtext[idx];
  48349. idx++;
  48350. }
  48351. result[idx - offset] = EOS;
  48352. if(!strlen(result))
  48353. {
  48354. SendClientMessage(playerid, COLOR_GREY, "USAGE: /mass [Number] [Message]");
  48355. return 1;
  48356. }
  48357. format(string, sizeof(string), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",number);
  48358. SendClientMessageToAll(COLOR_WHITE, string);
  48359. format(string, sizeof(string), ""CB"Message:"CW" %s",result);
  48360. SendClientMessageToAll(COLOR_WHITE, string);
  48361. SendClientMessage(playerid, COLOR_STEELBLUE, "Text Message Delivered");
  48362. BizInfo[biz][bLottoTime] = 1;
  48363. return 1;
  48364. }
  48365. else { return 1; }
  48366. }
  48367. return 1;
  48368. }
  48369.  
  48370. if(strcmp(cmd,"/houseupgrade",true)==0)
  48371. {
  48372. if(IsPlayerConnected(playerid))
  48373. {
  48374. new x_job[128];
  48375. x_job = strtok(cmdtext, idx);
  48376. if(PlayerInfo[playerid][pHouseKey] == 999)
  48377. {
  48378. SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
  48379. return 1;
  48380. }
  48381. if(!strlen(x_job)) {
  48382. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade [name]");
  48383. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Alarm ($50,000), TagName ($25,000), SafeCode ($10,000)");
  48384. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Safe ($100,000), Rentable (0/1), RentPrice");
  48385. return 1;
  48386. }
  48387. new house = PlayerInfo[playerid][pHouseKey];
  48388. if(strcmp(x_job,"Alarm",true) == 0)
  48389. {
  48390. if(HouseInfo[house][hAlarm] == 1)
  48391. {
  48392. SendClientMessage(playerid, COLOR_GREY, "This house already got an alarm");
  48393. return 1;
  48394. }
  48395. if(PlayerInfo[playerid][pCash] < 50000)
  48396. {
  48397. SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
  48398. return 1;
  48399. }
  48400. PlayerInfo[playerid][pCash] -= 50000;
  48401. GivePlayerMoney(playerid,-50000);
  48402. HouseInfo[house][hAlarm] = 1;
  48403. SendClientMessage(playerid,COLOR_YELLOW, "You have bought an alarm for your house. Type /alarm to turn it on/off");
  48404. return 1;
  48405. }
  48406. else if(strcmp(x_job,"TagName",true) == 0)
  48407. {
  48408. new length = strlen(cmdtext);
  48409. while ((idx < length) && (cmdtext[idx] <= ' '))
  48410. {
  48411. idx++;
  48412. }
  48413. new offset = idx;
  48414. new result[20];
  48415. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  48416. {
  48417. result[idx - offset] = cmdtext[idx];
  48418. idx++;
  48419. }
  48420. result[idx - offset] = EOS;
  48421. if(!strlen(result))
  48422. {
  48423. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade TagName [Name]");
  48424. return 1;
  48425. }
  48426. if(InvalidChar(result) == 1)
  48427. {
  48428. SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
  48429. return 1;
  48430. }
  48431. if(PlayerInfo[playerid][pCash] < 25000)
  48432. {
  48433. SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
  48434. return 1;
  48435. }
  48436. PlayerInfo[playerid][pCash] -= 25000;
  48437. GivePlayerMoney(playerid,-25000);
  48438. strmid(HouseInfo[house][hName], result, 0, strlen(result), 25);
  48439. DestroyDynamic3DTextLabel(HouseLabel[house]);
  48440. if(HouseInfo[house][hRentable] == 1)
  48441. {
  48442. new VString[255];
  48443. new name[25], owner[MAX_PLAYER_NAME];
  48444. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  48445. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  48446. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  48447. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  48448. }
  48449. if(HouseInfo[house][hRentable] == 0)
  48450. {
  48451. new VString[255];
  48452. new name[25], owner[MAX_PLAYER_NAME];
  48453. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  48454. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  48455. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  48456. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  48457. }
  48458. format(string, sizeof(string), "You have set this house tag name to %s.", result);
  48459. SendClientMessage(playerid,COLOR_YELLOW,string);
  48460. return 1;
  48461. }
  48462. else if(strcmp(x_job,"Rentable",true) == 0)
  48463. {
  48464. tmp = strtok(cmdtext, idx);
  48465. new rentable = strvalEx(tmp);
  48466. if(!strlen(tmp))
  48467. {
  48468. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade Rentable [0/1]");
  48469. return 1;
  48470. }
  48471. if(rentable > 1 || rentable < 0)
  48472. {
  48473. SendClientMessage(playerid, COLOR_GREY, " Use 0 for no and 1 for yes");
  48474. return 1;
  48475. }
  48476. HouseInfo[house][hRentable] = rentable;
  48477. DestroyDynamic3DTextLabel(HouseLabel[house]);
  48478. if(rentable == 1)
  48479. {
  48480. new VString[255];
  48481. new name[25], owner[MAX_PLAYER_NAME];
  48482. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  48483. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  48484. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  48485. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  48486. }
  48487. if(rentable == 0)
  48488. {
  48489. new VString[255];
  48490. new name[25], owner[MAX_PLAYER_NAME];
  48491. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  48492. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  48493. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  48494. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  48495. }
  48496. format(string, sizeof(string), "You have set this house renting options");
  48497. SendClientMessage(playerid,COLOR_YELLOW,string);
  48498. return 1;
  48499. }
  48500. else if(strcmp(x_job,"RentPrice",true) == 0)
  48501. {
  48502. tmp = strtok(cmdtext, idx);
  48503. new rent = strvalEx(tmp);
  48504. if(!strlen(tmp))
  48505. {
  48506. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade RentPrice [Price]");
  48507. return 1;
  48508. }
  48509. if(HouseInfo[house][hRentable] == 0)
  48510. {
  48511. SendClientMessage(playerid, COLOR_GREY, "This house is not rentable");
  48512. return 1;
  48513. }
  48514. if(rent > 20000 || rent < 1)
  48515. {
  48516. SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 and $20,000");
  48517. return 1;
  48518. }
  48519. HouseInfo[house][hRent] = rent;
  48520. DestroyDynamic3DTextLabel(HouseLabel[house]);
  48521. new VString[255];
  48522. new name[25], owner[MAX_PLAYER_NAME];
  48523. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  48524. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  48525. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  48526. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  48527. format(string, sizeof(string), "You have set this house rent price to %d.", rent);
  48528. SendClientMessage(playerid,COLOR_YELLOW,string);
  48529. return 1;
  48530. }
  48531. else if(strcmp(x_job,"SafeCode",true) == 0)
  48532. {
  48533. tmp = strtok(cmdtext, idx);
  48534. new code = strvalEx(tmp);
  48535. if(!strlen(tmp))
  48536. {
  48537. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade SafeCode [Code]");
  48538. return 1;
  48539. }
  48540. if(HouseInfo[house][hSafe] == 0)
  48541. {
  48542. SendClientMessage(playerid, COLOR_GREY, "This house doesn't have a safe");
  48543. return 1;
  48544. }
  48545. if(PlayerInfo[playerid][pCash] < 10000)
  48546. {
  48547. SendClientMessage(playerid, COLOR_GREY, "You can't afford this");
  48548. return 1;
  48549. }
  48550. if(code > 9999 || code < 1000)
  48551. {
  48552. SendClientMessage(playerid, COLOR_GREY, " The code must have 4 numbers");
  48553. return 1;
  48554. }
  48555. PlayerInfo[playerid][pCash] -= 10000;
  48556. GivePlayerMoney(playerid,-10000);
  48557. HouseInfo[house][hSafeCode] = code;
  48558. format(string, sizeof(string), "You have set this house safe code to %d.", code);
  48559. SendClientMessage(playerid,COLOR_YELLOW,string);
  48560. return 1;
  48561. }
  48562. else if(strcmp(x_job,"Safe",true) == 0)
  48563. {
  48564. new x_nr[32];
  48565. x_nr = strtok(cmdtext, idx);
  48566. new Float:safex, Float:safey, Float:safez;
  48567. GetPlayerPos(playerid, safex, safey, safez);
  48568. if(!strlen(x_nr))
  48569. {
  48570. SendClientMessage(playerid, COLOR_YELLOW,"The safe will be placed in your current possition.");
  48571. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseupgrade Safe [confirm]");
  48572. return 1;
  48573. }
  48574. if(PlayerInfo[playerid][pInHouse] != PlayerInfo[playerid][pHouseKey])
  48575. {
  48576. SendClientMessage(playerid, COLOR_GREY, "You need to be inside your house to do this.");
  48577. return 1;
  48578. }
  48579. if(PlayerInfo[playerid][pCash] < 100000)
  48580. {
  48581. SendClientMessage(playerid, COLOR_GREY, "You can't afford this.");
  48582. return 1;
  48583. }
  48584. if(strcmp(x_nr,"confirm",true) == 0)
  48585. {
  48586. if(HouseInfo[house][hOwned] == 0)
  48587. {
  48588. SendClientMessage(playerid, COLOR_GRAD1, "This house is not owned.");
  48589. return 1;
  48590. }
  48591. PlayerInfo[playerid][pCash] -= 100000;
  48592. GivePlayerMoney(playerid,-100000);
  48593. HouseInfo[house][hSafex] = safex;
  48594. HouseInfo[house][hSafey] = safey;
  48595. HouseInfo[house][hSafez] = safez;
  48596. HouseInfo[house][hSafe] = 1;
  48597. DestroyDynamicPickup(HouseSafe[house]);
  48598. HouseSafe[house] = CreateDynamicPickup(1210, 23, HouseInfo[house][hSafex],HouseInfo[house][hSafey], HouseInfo[house][hSafez], HouseInfo[house][hVirtualWorld], -1, -1, 100.0 );
  48599. SendClientMessage(playerid,COLOR_YELLOW, "Safe bought !");
  48600. }
  48601. }
  48602. else { return 1; }
  48603. }
  48604. return 1;
  48605. }
  48606. if(strcmp(cmd,"/safe",true)==0)
  48607. {
  48608. if(IsPlayerConnected(playerid))
  48609. {
  48610. new x_job[128];
  48611. x_job = strtok(cmdtext, idx);
  48612. if(PlayerInfo[playerid][pInHouse] == 999)
  48613. {
  48614. SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
  48615. return 1;
  48616. }
  48617. new house = PlayerInfo[playerid][pInHouse];
  48618. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  48619. {
  48620. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  48621. return 1;
  48622. }
  48623. if(!strlen(x_job)) {
  48624. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safe [Open/Close]");
  48625. return 1;
  48626. }
  48627. if(strcmp(x_job,"Open",true) == 0)
  48628. {
  48629. tmp = strtok(cmdtext, idx);
  48630. new code = strvalEx(tmp);
  48631. if(!strlen(tmp))
  48632. {
  48633. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safe Open [Code]");
  48634. return 1;
  48635. }
  48636. if(PlayerInfo[playerid][pHSafeattempt] >= 5)
  48637. {
  48638. SendClientMessage(playerid, COLOR_GREY, "You already have too many attempts to open a safe. Wait until next paycheck");
  48639. return 1;
  48640. }
  48641. if(HouseInfo[house][hSafeOpen] == 1)
  48642. {
  48643. SendClientMessage(playerid, COLOR_GREY, "The safe is already opened");
  48644. return 1;
  48645. }
  48646. if(code != HouseInfo[house][hSafeCode])
  48647. {
  48648. PlayerInfo[playerid][pHSafeattempt] += 1;
  48649. SendClientMessage(playerid, COLOR_RED, "Wrong Code");
  48650. return 1;
  48651. }
  48652. if(code == HouseInfo[house][hSafeCode])
  48653. {
  48654. PlayerInfo[playerid][pHSafeattempt] = 0;
  48655. HouseInfo[house][hSafeOpen] = 1;
  48656. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have opened the safe");
  48657. return 1;
  48658. }
  48659. }
  48660. else if(strcmp(x_job,"Close",true) == 0)
  48661. {
  48662. if(HouseInfo[house][hSafeOpen] == 0)
  48663. {
  48664. SendClientMessage(playerid, COLOR_GREY, "The safe is already closed");
  48665. return 1;
  48666. }
  48667. HouseInfo[house][hSafeOpen] = 0;
  48668. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have closed the safe");
  48669. return 1;
  48670. }
  48671. else { return 1; }
  48672. }
  48673. return 1;
  48674. }
  48675. if(strcmp(cmd,"/stake",true)==0)
  48676. {
  48677. if(IsPlayerConnected(playerid))
  48678. {
  48679. new x_job[128];
  48680. x_job = strtok(cmdtext, idx);
  48681. if(PlayerInfo[playerid][pInHouse] == 999)
  48682. {
  48683. SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
  48684. return 1;
  48685. }
  48686. if(!strlen(x_job)) {
  48687. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake [Cash/Mats/Crack/Pot]");
  48688. return 1;
  48689. }
  48690. new house = PlayerInfo[playerid][pInHouse];
  48691. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  48692. {
  48693. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  48694. return 1;
  48695. }
  48696. if(HouseInfo[house][hSafeOpen] == 0)
  48697. {
  48698. SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
  48699. return 1;
  48700. }
  48701. if(strcmp(x_job,"Cash",true) == 0)
  48702. {
  48703. tmp = strtok(cmdtext, idx);
  48704. new amount = strvalEx(tmp);
  48705. if(!strlen(tmp))
  48706. {
  48707. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Cash [Amount]");
  48708. return 1;
  48709. }
  48710. if(amount < 0)
  48711. {
  48712. SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
  48713. return 1;
  48714. }
  48715. if(HouseInfo[house][hCash] < 1)
  48716. {
  48717. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any cash");
  48718. return 1;
  48719. }
  48720. if(amount > HouseInfo[house][hCash])
  48721. {
  48722. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
  48723. return 1;
  48724. }
  48725. new cash = HouseInfo[house][hCash] - amount;
  48726. HouseInfo[house][hCash] = cash;
  48727. PlayerInfo[playerid][pCash] += amount;
  48728. GivePlayerMoney(playerid,amount);
  48729. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some money from the safe");
  48730. return 1;
  48731. }
  48732. else if(strcmp(x_job,"Mats",true) == 0)
  48733. {
  48734. tmp = strtok(cmdtext, idx);
  48735. new amount = strvalEx(tmp);
  48736. if(!strlen(tmp))
  48737. {
  48738. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Mats [Amount]");
  48739. return 1;
  48740. }
  48741. if(amount < 0)
  48742. {
  48743. SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
  48744. return 1;
  48745. }
  48746. if(HouseInfo[house][hMaterials] < 1)
  48747. {
  48748. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any materials");
  48749. return 1;
  48750. }
  48751. if(amount > HouseInfo[house][hMaterials])
  48752. {
  48753. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
  48754. return 1;
  48755. }
  48756. new mats = HouseInfo[house][hMaterials] - amount;
  48757. HouseInfo[house][hMaterials] = mats;
  48758. PlayerInfo[playerid][pMats] += amount;
  48759. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some materials from the safe");
  48760. return 1;
  48761. }
  48762. else if(strcmp(x_job,"Crack",true) == 0)
  48763. {
  48764. tmp = strtok(cmdtext, idx);
  48765. new amount = strvalEx(tmp);
  48766. if(!strlen(tmp))
  48767. {
  48768. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Crack [Amount]");
  48769. return 1;
  48770. }
  48771. if(amount < 0)
  48772. {
  48773. SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
  48774. return 1;
  48775. }
  48776. if(HouseInfo[house][hCrack] < 1)
  48777. {
  48778. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any crack");
  48779. return 1;
  48780. }
  48781. if(amount > HouseInfo[house][hCrack])
  48782. {
  48783. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
  48784. return 1;
  48785. }
  48786. new samount = PlayerInfo[playerid][pCrack] + amount;
  48787. if(samount > 25)
  48788. {
  48789. SendClientMessage(playerid, COLOR_GREY, "You can't take that much");
  48790. return 1;
  48791. }
  48792. new crack = HouseInfo[house][hCrack] - amount;
  48793. HouseInfo[house][hCrack] = crack;
  48794. PlayerInfo[playerid][pCrack] += amount;
  48795. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some crack from the safe");
  48796. return 1;
  48797. }
  48798. else if(strcmp(x_job,"Pot",true) == 0)
  48799. {
  48800. tmp = strtok(cmdtext, idx);
  48801. new amount = strvalEx(tmp);
  48802. if(!strlen(tmp))
  48803. {
  48804. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stake Pot [Amount]");
  48805. return 1;
  48806. }
  48807. if(amount < 0)
  48808. {
  48809. SendClientMessage(playerid, COLOR_GREY, "You can't take negative amounts");
  48810. return 1;
  48811. }
  48812. if(HouseInfo[house][hPot] < 1)
  48813. {
  48814. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have any pot");
  48815. return 1;
  48816. }
  48817. if(amount > HouseInfo[house][hPot])
  48818. {
  48819. SendClientMessage(playerid, COLOR_GREY, "This safe doesn't have that much");
  48820. return 1;
  48821. }
  48822. new samount = PlayerInfo[playerid][pPot] + amount;
  48823. if(samount > 50)
  48824. {
  48825. SendClientMessage(playerid, COLOR_GREY, "You can't take that much");
  48826. return 1;
  48827. }
  48828. new pot = HouseInfo[house][hPot] - amount;
  48829. HouseInfo[house][hPot] = pot;
  48830. PlayerInfo[playerid][pPot] += amount;
  48831. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have taken some pot from the safe");
  48832. return 1;
  48833. }
  48834. else { return 1; }
  48835. }
  48836. return 1;
  48837. }
  48838.  
  48839. if(strcmp(cmd,"/takegun",true)==0)
  48840. {
  48841. if(IsPlayerConnected(playerid))
  48842. {
  48843. new x_job[128];
  48844. x_job = strtok(cmdtext, idx);
  48845. if(PlayerInfo[playerid][pInHouse] == 999)
  48846. {
  48847. SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
  48848. return 1;
  48849. }
  48850. if(!strlen(x_job)) {
  48851. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /takegun [Slot 1-4]");
  48852. return 1;
  48853. }
  48854. new house = PlayerInfo[playerid][pInHouse];
  48855. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  48856. {
  48857. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  48858. return 1;
  48859. }
  48860. if(HouseInfo[house][hSafeOpen] == 0)
  48861. {
  48862. SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
  48863. return 1;
  48864. }
  48865.  
  48866. if(strcmp(x_job,"1",true) == 0)
  48867. {
  48868. if(HouseInfo[house][hGun1] != 0)
  48869. {
  48870. new buffer[512];
  48871. new gunName[100];
  48872. GivePlayerGun(playerid, HouseInfo[house][hGun1]);
  48873. GetWeaponName(HouseInfo[house][hGun1], gunName, sizeof(gunName));
  48874. format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
  48875. SendClientMessage(playerid, COLOR_WHITE, buffer);
  48876. HouseInfo[house][hGun1] = 0;
  48877. return 1;
  48878. }
  48879. else
  48880. {
  48881. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  48882. return 1;
  48883. }
  48884. }
  48885.  
  48886. else if(strcmp(x_job,"2",true) == 0)
  48887. {
  48888. if(HouseInfo[house][hGun2] != 0)
  48889. {
  48890. new buffer[512];
  48891. new gunName[100];
  48892. GivePlayerGun(playerid, HouseInfo[house][hGun2]);
  48893. GetWeaponName(HouseInfo[house][hGun2], gunName, sizeof(gunName));
  48894. format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
  48895. SendClientMessage(playerid, COLOR_WHITE, buffer);
  48896. HouseInfo[house][hGun2] = 0;
  48897. return 1;
  48898. }
  48899. else
  48900. {
  48901. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  48902. return 1;
  48903. }
  48904. }
  48905.  
  48906. else if(strcmp(x_job,"3",true) == 0)
  48907. {
  48908. if(HouseInfo[house][hGun3] != 0)
  48909. {
  48910. new buffer[512];
  48911. new gunName[100];
  48912. GivePlayerGun(playerid, HouseInfo[house][hGun3]);
  48913. GetWeaponName(HouseInfo[house][hGun3], gunName, sizeof(gunName));
  48914. format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
  48915. SendClientMessage(playerid, COLOR_WHITE, buffer);
  48916. HouseInfo[house][hGun3] = 0;
  48917. return 1;
  48918. }
  48919. else
  48920. {
  48921. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  48922. return 1;
  48923. }
  48924. }
  48925.  
  48926. else if(strcmp(x_job,"4",true) == 0)
  48927. {
  48928. if(HouseInfo[house][hGun4] != 0)
  48929. {
  48930. new buffer[512];
  48931. new gunName[100];
  48932. GivePlayerGun(playerid, HouseInfo[house][hGun4]);
  48933. GetWeaponName(HouseInfo[house][hGun4], gunName, sizeof(gunName));
  48934. format(buffer, sizeof(buffer), "You've taken a %s from the safe.", gunName);
  48935. SendClientMessage(playerid, COLOR_WHITE, buffer);
  48936. HouseInfo[house][hGun4] = 0;
  48937. return 1;
  48938. }
  48939. else
  48940. {
  48941. SendClientMessage(playerid, COLOR_GREY, " This slot is empty ! ");
  48942. return 1;
  48943. }
  48944. }
  48945. else { return 1; }
  48946. }
  48947. return 1;
  48948. }
  48949.  
  48950. if(strcmp(cmd,"/storegun",true)==0)
  48951. {
  48952. if(IsPlayerConnected(playerid))
  48953. {
  48954. new x_job[128];
  48955. x_job = strtok(cmdtext, idx);
  48956. if(PlayerInfo[playerid][pInHouse] == 999)
  48957. {
  48958. SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
  48959. return 1;
  48960. }
  48961. if(!strlen(x_job)) {
  48962. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /storegun [Slot 1-4]");
  48963. return 1;
  48964. }
  48965. new house = PlayerInfo[playerid][pInHouse];
  48966. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  48967. {
  48968. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  48969. return 1;
  48970. }
  48971. if(HouseInfo[house][hSafeOpen] == 0)
  48972. {
  48973. SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
  48974. return 1;
  48975. }
  48976.  
  48977. if(strcmp(x_job,"1",true) == 0)
  48978. {
  48979. if(HouseInfo[house][hGun1] == 0)
  48980. {
  48981. new buffer[512];
  48982. new gunname[100];
  48983. new gunID = GetPlayerWeapon(playerid);
  48984.  
  48985. if(gunID != 0)
  48986. {
  48987. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  48988. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  48989. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  48990. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  48991. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  48992. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  48993. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  48994. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  48995. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  48996. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  48997. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  48998. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  48999. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  49000. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  49001. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  49002. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  49003. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  49004. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  49005. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  49006. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  49007. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  49008. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  49009. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  49010. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  49011. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  49012. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  49013. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  49014. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  49015. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  49016. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  49017. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  49018. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  49019. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  49020. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  49021. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  49022. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  49023. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  49024. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  49025. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  49026. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  49027. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  49028. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  49029. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  49030. GetWeaponName(gunID, gunname, sizeof(gunname));
  49031. HouseInfo[house][hGun1] = gunID;
  49032. format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
  49033. SendClientMessage(playerid, COLOR_WHITE, buffer);
  49034. RemovePlayerWeapon(playerid, gunID);
  49035. return 1;
  49036. }
  49037. }
  49038. else
  49039. {
  49040. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  49041. return 1;
  49042. }
  49043. }
  49044.  
  49045. else if(strcmp(x_job,"2",true) == 0)
  49046. {
  49047. if(HouseInfo[house][hGun2] == 0)
  49048. {
  49049. new buffer[512];
  49050. new gunname[100];
  49051. new gunID = GetPlayerWeapon(playerid);
  49052.  
  49053. if(gunID != 0)
  49054. {
  49055. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  49056. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  49057. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  49058. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  49059. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  49060. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  49061. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  49062. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  49063. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  49064. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  49065. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  49066. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  49067. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  49068. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  49069. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  49070. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  49071. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  49072. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  49073. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  49074. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  49075. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  49076. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  49077. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  49078. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  49079. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  49080. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  49081. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  49082. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  49083. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  49084. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  49085. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  49086. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  49087. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  49088. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  49089. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  49090. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  49091. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  49092. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  49093. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  49094. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  49095. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  49096. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  49097. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  49098. GetWeaponName(gunID, gunname, sizeof(gunname));
  49099. HouseInfo[house][hGun2] = gunID;
  49100. format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
  49101. SendClientMessage(playerid, COLOR_WHITE, buffer);
  49102. RemovePlayerWeapon(playerid, gunID);
  49103. return 1;
  49104. }
  49105. }
  49106. else
  49107. {
  49108. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  49109. return 1;
  49110. }
  49111. }
  49112.  
  49113. else if(strcmp(x_job,"3",true) == 0)
  49114. {
  49115. if(HouseInfo[house][hGun3] == 0)
  49116. {
  49117. new buffer[512];
  49118. new gunname[100];
  49119. new gunID = GetPlayerWeapon(playerid);
  49120.  
  49121. if(gunID != 0)
  49122. {
  49123. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  49124. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  49125. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  49126. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  49127. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  49128. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  49129. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  49130. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  49131. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  49132. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  49133. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  49134. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  49135. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  49136. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  49137. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  49138. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  49139. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  49140. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  49141. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  49142. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  49143. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  49144. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  49145. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  49146. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  49147. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  49148. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  49149. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  49150. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  49151. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  49152. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  49153. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  49154. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  49155. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  49156. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  49157. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  49158. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  49159. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  49160. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  49161. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  49162. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  49163. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  49164. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  49165. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  49166. GetWeaponName(gunID, gunname, sizeof(gunname));
  49167. HouseInfo[house][hGun3] = gunID;
  49168. format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
  49169. SendClientMessage(playerid, COLOR_WHITE, buffer);
  49170. RemovePlayerWeapon(playerid, gunID);
  49171. return 1;
  49172. }
  49173. }
  49174. else
  49175. {
  49176. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  49177. return 1;
  49178. }
  49179. }
  49180.  
  49181. else if(strcmp(x_job,"4",true) == 0)
  49182. {
  49183. if(HouseInfo[house][hGun4] == 0)
  49184. {
  49185. new buffer[512];
  49186. new gunname[100];
  49187. new gunID = GetPlayerWeapon(playerid);
  49188.  
  49189. if(gunID != 0)
  49190. {
  49191. if(gunID == 1) {PlayerInfo[playerid][pGun0] = 0;}
  49192. if(gunID == 2) {PlayerInfo[playerid][pGun1] = 0;}
  49193. if(gunID == 3) {PlayerInfo[playerid][pGun1] = 0;}
  49194. if(gunID == 4) {PlayerInfo[playerid][pGun1] = 0;}
  49195. if(gunID == 5) {PlayerInfo[playerid][pGun1] = 0;}
  49196. if(gunID == 6) {PlayerInfo[playerid][pGun1] = 0;}
  49197. if(gunID == 7) {PlayerInfo[playerid][pGun1] = 0;}
  49198. if(gunID == 8) {PlayerInfo[playerid][pGun1] = 0;}
  49199. if(gunID == 9) {PlayerInfo[playerid][pGun1] = 0;}
  49200. if(gunID == 10) {PlayerInfo[playerid][pGun10] = 0;}
  49201. if(gunID == 11) {PlayerInfo[playerid][pGun10] = 0;}
  49202. if(gunID == 12) {PlayerInfo[playerid][pGun10] = 0;}
  49203. if(gunID == 13) {PlayerInfo[playerid][pGun10] = 0;}
  49204. if(gunID == 14) {PlayerInfo[playerid][pGun10] = 0;}
  49205. if(gunID == 15) {PlayerInfo[playerid][pGun10] = 0;}
  49206. if(gunID == 16) {PlayerInfo[playerid][pGun8] = 0;}
  49207. if(gunID == 17) {PlayerInfo[playerid][pGun8] = 0;}
  49208. if(gunID == 18) {PlayerInfo[playerid][pGun8] = 0;}
  49209. if(gunID == 22) {PlayerInfo[playerid][pGun2] = 0;}
  49210. if(gunID == 23) {PlayerInfo[playerid][pGun2] = 0;}
  49211. if(gunID == 24) {PlayerInfo[playerid][pGun2] = 0;}
  49212. if(gunID == 25) {PlayerInfo[playerid][pGun3] = 0;}
  49213. if(gunID == 26) {PlayerInfo[playerid][pGun3] = 0;}
  49214. if(gunID == 27) {PlayerInfo[playerid][pGun3] = 0;}
  49215. if(gunID == 28) {PlayerInfo[playerid][pGun4] = 0;}
  49216. if(gunID == 29) {PlayerInfo[playerid][pGun4] = 0;}
  49217. if(gunID == 30) {PlayerInfo[playerid][pGun5] = 0;}
  49218. if(gunID == 31) {PlayerInfo[playerid][pGun5] = 0;}
  49219. if(gunID == 32) {PlayerInfo[playerid][pGun4] = 0;}
  49220. if(gunID == 33) {PlayerInfo[playerid][pGun6] = 0;}
  49221. if(gunID == 34) {PlayerInfo[playerid][pGun6] = 0;}
  49222. if(gunID == 35) {PlayerInfo[playerid][pGun7] = 0;}
  49223. if(gunID == 36) {PlayerInfo[playerid][pGun7] = 0;}
  49224. if(gunID == 37) {PlayerInfo[playerid][pGun7] = 0;}
  49225. if(gunID == 38) {PlayerInfo[playerid][pGun7] = 0;}
  49226. if(gunID == 39) {PlayerInfo[playerid][pGun8] = 0;}
  49227. if(gunID == 40) {PlayerInfo[playerid][pGun12] = 0;}
  49228. if(gunID == 41) {PlayerInfo[playerid][pGun9] = 0;}
  49229. if(gunID == 42) {PlayerInfo[playerid][pGun9] = 0;}
  49230. if(gunID == 43) {PlayerInfo[playerid][pGun9] = 0;}
  49231. if(gunID == 44) {PlayerInfo[playerid][pGun11] = 0;}
  49232. if(gunID == 45) {PlayerInfo[playerid][pGun11] = 0;}
  49233. if(gunID == 46) {PlayerInfo[playerid][pGun11] = 0;}
  49234. GetWeaponName(gunID, gunname, sizeof(gunname));
  49235. HouseInfo[house][hGun4] = gunID;
  49236. format(buffer, sizeof(buffer), "You have put your %s in the safe.", gunname);
  49237. SendClientMessage(playerid, COLOR_WHITE, buffer);
  49238. RemovePlayerWeapon(playerid, gunID);
  49239. return 1;
  49240. }
  49241. }
  49242. else
  49243. {
  49244. SendClientMessage(playerid, COLOR_GREY, " This slot is already taken");
  49245. return 1;
  49246. }
  49247. }
  49248. else { return 1; }
  49249. }
  49250. return 1;
  49251. }
  49252.  
  49253. if(strcmp(cmd,"/sput",true)==0)
  49254. {
  49255. if(IsPlayerConnected(playerid))
  49256. {
  49257. new x_job[128];
  49258. x_job = strtok(cmdtext, idx);
  49259. if(PlayerInfo[playerid][pInHouse] == 999)
  49260. {
  49261. SendClientMessage(playerid, COLOR_GREY, "You are not in a house");
  49262. return 1;
  49263. }
  49264. if(!strlen(x_job)) {
  49265. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput [Cash/Mats/Crack/Pot]");
  49266. return 1;
  49267. }
  49268. new house = PlayerInfo[playerid][pInHouse];
  49269. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hSafex],HouseInfo[house][hSafey],HouseInfo[house][hSafez]))
  49270. {
  49271. SendClientMessage(playerid, COLOR_GREY, "You are not around a house safe");
  49272. return 1;
  49273. }
  49274. if(HouseInfo[house][hSafeOpen] == 0)
  49275. {
  49276. SendClientMessage(playerid, COLOR_GREY, "This safe is currently closed");
  49277. return 1;
  49278. }
  49279. if(strcmp(x_job,"Cash",true) == 0)
  49280. {
  49281. tmp = strtok(cmdtext, idx);
  49282. new amount = strvalEx(tmp);
  49283. if(!strlen(tmp))
  49284. {
  49285. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Cash [Amount]");
  49286. return 1;
  49287. }
  49288. if(amount < 0)
  49289. {
  49290. SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
  49291. return 1;
  49292. }
  49293. if(PlayerInfo[playerid][pCash] < 1)
  49294. {
  49295. SendClientMessage(playerid, COLOR_GREY, "You don't have any cash on you");
  49296. return 1;
  49297. }
  49298. if(amount > PlayerInfo[playerid][pCash])
  49299. {
  49300. SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
  49301. return 1;
  49302. }
  49303. new cash = HouseInfo[house][hCash] + amount;
  49304. HouseInfo[house][hCash] = cash;
  49305. PlayerInfo[playerid][pCash] -= amount;
  49306. GivePlayerMoney(playerid,-amount);
  49307. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some money in the safe");
  49308. return 1;
  49309. }
  49310. else if(strcmp(x_job,"Mats",true) == 0)
  49311. {
  49312. tmp = strtok(cmdtext, idx);
  49313. new amount = strvalEx(tmp);
  49314. if(!strlen(tmp))
  49315. {
  49316. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Mats [Amount]");
  49317. return 1;
  49318. }
  49319. if(amount < 0)
  49320. {
  49321. SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
  49322. return 1;
  49323. }
  49324. if(PlayerInfo[playerid][pMats] < 1)
  49325. {
  49326. SendClientMessage(playerid, COLOR_GREY, "You don't have any mats on you");
  49327. return 1;
  49328. }
  49329. if(amount > PlayerInfo[playerid][pMats])
  49330. {
  49331. SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
  49332. return 1;
  49333. }
  49334. new mats = HouseInfo[house][hMaterials] + amount;
  49335. HouseInfo[house][hMaterials] = mats;
  49336. PlayerInfo[playerid][pMats] -= amount;
  49337. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some materials in the safe");
  49338. return 1;
  49339. }
  49340. else if(strcmp(x_job,"Crack",true) == 0)
  49341. {
  49342. tmp = strtok(cmdtext, idx);
  49343. new amount = strvalEx(tmp);
  49344. if(!strlen(tmp))
  49345. {
  49346. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Crack [Amount]");
  49347. return 1;
  49348. }
  49349. if(amount < 0)
  49350. {
  49351. SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
  49352. return 1;
  49353. }
  49354. if(PlayerInfo[playerid][pCrack] < 1)
  49355. {
  49356. SendClientMessage(playerid, COLOR_GREY, "You don't have any crack on you");
  49357. return 1;
  49358. }
  49359. if(amount > PlayerInfo[playerid][pCrack])
  49360. {
  49361. SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
  49362. return 1;
  49363. }
  49364. if(amount > 25)
  49365. {
  49366. SendClientMessage(playerid, COLOR_GREY, "You can't store that much in one time");
  49367. return 1;
  49368. }
  49369. new calc = amount + HouseInfo[house][hCrack];
  49370. if(calc > 500)
  49371. {
  49372. SendClientMessage(playerid, COLOR_GREY, "This safe already have too much crack");
  49373. return 1;
  49374. }
  49375. new crack = HouseInfo[house][hCrack] + amount;
  49376. HouseInfo[house][hCrack] = crack;
  49377. PlayerInfo[playerid][pCrack] -= amount;
  49378. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some crack in the safe");
  49379. return 1;
  49380. }
  49381. else if(strcmp(x_job,"Pot",true) == 0)
  49382. {
  49383. tmp = strtok(cmdtext, idx);
  49384. new amount = strvalEx(tmp);
  49385. if(!strlen(tmp))
  49386. {
  49387. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sput Pot [Amount]");
  49388. return 1;
  49389. }
  49390. if(amount < 0)
  49391. {
  49392. SendClientMessage(playerid, COLOR_GREY, "You can't put negative amounts");
  49393. return 1;
  49394. }
  49395. if(PlayerInfo[playerid][pPot] < 1)
  49396. {
  49397. SendClientMessage(playerid, COLOR_GREY, "You don't have any pot on you");
  49398. return 1;
  49399. }
  49400. if(amount > PlayerInfo[playerid][pPot])
  49401. {
  49402. SendClientMessage(playerid, COLOR_GREY, "You don't have that much");
  49403. return 1;
  49404. }
  49405. if(amount > 50)
  49406. {
  49407. SendClientMessage(playerid, COLOR_GREY, "You can't store that much in one time");
  49408. return 1;
  49409. }
  49410. new calc = amount + HouseInfo[house][hPot];
  49411. if(calc > 500)
  49412. {
  49413. SendClientMessage(playerid, COLOR_GREY, "This safe already have too much pot");
  49414. return 1;
  49415. }
  49416. new pot = HouseInfo[house][hPot] + amount;
  49417. HouseInfo[house][hPot] = pot;
  49418. PlayerInfo[playerid][pPot] -= amount;
  49419. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have deposited some pot in the safe");
  49420. return 1;
  49421. }
  49422. else { return 1; }
  49423. }
  49424. return 1;
  49425. }
  49426.  
  49427. if(strcmp(cmd, "/evict", true) == 0)
  49428. {
  49429. if(IsPlayerConnected(playerid))
  49430. {
  49431. if(PlayerInfo[playerid][pHouseKey] == 999)
  49432. {
  49433. SendClientMessage(playerid, COLOR_GREY," You don't have a house !");
  49434. return 1;
  49435. }
  49436. tmp = strtok(cmdtext, idx);
  49437. if(!strlen(tmp))
  49438. {
  49439. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /evict [playerid/PartOfName]");
  49440. return 1;
  49441. }
  49442. giveplayerid = ReturnUser(tmp);
  49443. if(IsPlayerConnected(giveplayerid))
  49444. {
  49445. if(giveplayerid != INVALID_PLAYER_ID)
  49446. {
  49447. if(PlayerInfo[giveplayerid][pRenthouse] != PlayerInfo[playerid][pHouseKey])
  49448. {
  49449. SendClientMessage(playerid, COLOR_GREY," This player is not renting your house !");
  49450. return 1;
  49451. }
  49452. HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
  49453. PlayerInfo[giveplayerid][pRenthouse] = 999;
  49454. SendClientMessage(playerid, COLOR_LIGHTBLUE, "You evicted one of your renters");
  49455. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "You have been evicted from the house by it's owner");
  49456. }
  49457. }
  49458. }
  49459. return 1;
  49460. }
  49461.  
  49462. /* if(strcmp(cmd, "/oevict", true) == 0)
  49463. {
  49464. if(IsPlayerConnected(playerid))
  49465. {
  49466. if(PlayerInfo[playerid][pHouseKey] == 999)
  49467. {
  49468. SendClientMessage(playerid, COLOR_GREY," You don't have a house !");
  49469. return 1;
  49470. }
  49471. tmp = strtok(cmdtext, idx);
  49472. if(!strlen(tmp))
  49473. {
  49474. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oevict [full name(case sensative)]");
  49475. return 1;
  49476. }
  49477. giveplayerid = ReturnUser(tmp);
  49478. format(string, sizeof(string), "%s.ini",tmp);
  49479. if(!dini_Exists(string))
  49480. {
  49481. SendClientMessage(playerid, COLOR_GRAD1, "That player does not exist !");
  49482. return 1;
  49483. }
  49484. if(dini_Int(string, "Renthouse") == PlayerInfo[playerid][pHouseKey])
  49485. {
  49486. HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] -= 1;
  49487. dini_IntSet(string, "Renthouse", 999);
  49488. SendClientMessage(playerid, COLOR_LIGHTBLUE, "You evicted one of your renters");
  49489. if(IsPlayerConnected(giveplayerid))
  49490. {
  49491. PlayerInfo[giveplayerid][pRenthouse] = 999;
  49492. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "You have been evicted from the house by it's owner");
  49493. }
  49494. }
  49495. else
  49496. {
  49497. SendClientMessage(playerid, COLOR_GRAD1, "This player is not renting your house");
  49498. return 1;
  49499. }
  49500. }
  49501. return 1;
  49502. }*/
  49503.  
  49504. if(strcmp(cmd,"/alarm",true)==0)
  49505. {
  49506. if(IsPlayerConnected(playerid))
  49507. {
  49508. new x_job[128];
  49509. x_job = strtok(cmdtext, idx);
  49510. if(PlayerInfo[playerid][pHouseKey] == 999)
  49511. {
  49512. SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
  49513. return 1;
  49514. }
  49515. if(!strlen(x_job)) {
  49516. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /alarm [On/Off]");
  49517. return 1;
  49518. }
  49519. new house = PlayerInfo[playerid][pHouseKey];
  49520. if(!IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[house][hLocation_x],HouseInfo[house][hLocation_y],HouseInfo[house][hLocation_z]))
  49521. {
  49522. SendClientMessage(playerid, COLOR_GREY, "You need to be outside your house to do this");
  49523. return 1;
  49524. }
  49525. if(strcmp(x_job,"On",true) == 0)
  49526. {
  49527. if(HouseInfo[house][hAlarm] == 0)
  49528. {
  49529. SendClientMessage(playerid, COLOR_GREY, "This house doesn't have an alarm");
  49530. return 1;
  49531. }
  49532. if(HouseInfo[house][hAlarmON] == 1)
  49533. {
  49534. SendClientMessage(playerid, COLOR_GREY, "The alarm is already turned on");
  49535. return 1;
  49536. }
  49537. HouseInfo[house][hAlarmON] = 1;
  49538. SendClientMessage(playerid,COLOR_YELLOW, "You have turned on the alarm");
  49539. return 1;
  49540. }
  49541. else if(strcmp(x_job,"Off",true) == 0)
  49542. {
  49543. if(HouseInfo[house][hAlarm] == 0)
  49544. {
  49545. SendClientMessage(playerid, COLOR_GREY, "This house doesn't have an alarm");
  49546. return 1;
  49547. }
  49548. if(HouseInfo[house][hAlarmON] == 0)
  49549. {
  49550. SendClientMessage(playerid, COLOR_GREY, "The alarm is already turned off");
  49551. return 1;
  49552. }
  49553. HouseInfo[house][hAlarmON] = 0;
  49554. SendClientMessage(playerid,COLOR_YELLOW, "You have turned off the alarm");
  49555. return 1;
  49556. }
  49557. else { return 1; }
  49558. }
  49559. return 1;
  49560. }
  49561.  
  49562. if(strcmp(cmd,"/renters",true)==0)
  49563. {
  49564. if(IsPlayerConnected(playerid))
  49565. {
  49566. if(PlayerInfo[playerid][pHouseKey] != 999)
  49567. {
  49568. SendClientMessage(playerid, COLOR_WHITE, "Renters Online:");
  49569. for(new i; i<MAX_PLAYERS; i++)
  49570. {
  49571. if(IsPlayerConnected(i))
  49572. {
  49573. if(PlayerInfo[i][pRenthouse] == PlayerInfo[playerid][pHouseKey])
  49574. {
  49575. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  49576. format(string, sizeof(string), "%s", giveplayer);
  49577. SendClientMessage(playerid, COLOR_GRAD1, string);
  49578. }
  49579. }
  49580. }
  49581. }
  49582. else
  49583. {
  49584. SendClientMessage(playerid, COLOR_GREY, "You don't own a house");
  49585. return 1;
  49586. }
  49587. }
  49588. return 1;
  49589. }
  49590.  
  49591. if(strcmp(cmd,"/carinfo",true)==0)
  49592. {
  49593. if(PlayerInfo[playerid][pAdmin] < 4)
  49594. {
  49595. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command.");
  49596. return 1;
  49597. }
  49598. new vehicle = GetPlayerVehicleID(playerid);
  49599. for(new i = 0; i < sizeof(CreatedCars); i++)
  49600. {
  49601. if(CreatedCars[i] == vehicle)
  49602. {
  49603. return 1;
  49604. }
  49605. }
  49606. new owner[255];
  49607. strmid(owner, CarInfo[vehicle][tOwner], 0, strlen(CarInfo[vehicle][tOwner]), 255);
  49608. if(!IsPlayerInAnyVehicle(playerid))
  49609. {
  49610. SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
  49611. return 1;
  49612. }
  49613. format(string, sizeof(string), "Veh ID: %d | Faction: %d | VIP: %d | Owner: %s",vehicle,CarInfo[vehicle][tFaction], CarInfo[vehicle][tVIP], owner);
  49614. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  49615. return 1;
  49616. }
  49617.  
  49618. if(strcmp(cmd,"/houseinfo",true)==0)
  49619. {
  49620. for(new h = 0; h < sizeof(HouseInfo); h++)
  49621. {
  49622. if(IsPlayerInRangeOfPoint(playerid, 1, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
  49623. {
  49624. if(PlayerInfo[playerid][pAdmin] < 4)
  49625. {
  49626. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
  49627. return 1;
  49628. }
  49629. new houseid = h;
  49630. format(string, sizeof(string), "House ID: %d | Level: %d.",houseid,HouseInfo[houseid][hLevel]);
  49631. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  49632. return 1;
  49633. }
  49634. }
  49635. return 1;
  49636. }
  49637.  
  49638. if(strcmp(cmd,"/bizinfo",true)==0)
  49639. {
  49640. for(new h = 0; h < sizeof(BizInfo); h++)
  49641. {
  49642. if(IsPlayerInRangeOfPoint(playerid, 1, BizInfo[h][bLocation_x],BizInfo[h][bLocation_y],BizInfo[h][bLocation_z]))
  49643. {
  49644. if(PlayerInfo[playerid][pAdmin] < 4)
  49645. {
  49646. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command.");
  49647. return 1;
  49648. }
  49649. new bizid = h;
  49650. format(string, sizeof(string), "Biz ID: %d | Type: %d.",bizid,BizInfo[bizid][bType]);
  49651. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  49652. return 1;
  49653. }
  49654. }
  49655. return 1;
  49656. }
  49657.  
  49658. if(strcmp(cmd,"/plateinfo",true)==0)
  49659. {
  49660. if(IsPlayerConnected(playerid))
  49661. {
  49662. if(!IsACop(playerid) && !IsAAgent(playerid) && !IsANG(playerid))
  49663. {
  49664. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / Prison Guard !");
  49665. return 1;
  49666. }
  49667. new tmpcar = GetPlayerVehicleID(playerid);
  49668. new length = strlen(cmdtext);
  49669. while ((idx < length) && (cmdtext[idx] <= ' '))
  49670. {
  49671. idx++;
  49672. }
  49673. new offset = idx;
  49674. new result[24];
  49675. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  49676. {
  49677. result[idx - offset] = cmdtext[idx];
  49678. idx++;
  49679. }
  49680. result[idx - offset] = EOS;
  49681. if(!strlen(result))
  49682. {
  49683. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /checkplate [license plate]");
  49684. return 1;
  49685. }
  49686. if(CarInfo[tmpcar][tFaction] == 1 || CarInfo[tmpcar][tFaction] == 2 || IsPlayerInRangeOfPoint(playerid,5.0,253.9280,69.6094,1003.6406))
  49687. {
  49688. new countplates = 0;
  49689. for(new h = 1; h < 2000; h++)
  49690. {
  49691. new plate[9];
  49692. format(plate,sizeof(plate),"%s",CarInfo[h][tLicensePlate]);
  49693. if(strcmp(result, plate, true) == 0)
  49694. {
  49695. new owner[32];
  49696. format(owner,sizeof(owner),"%s",CarInfo[h][tOwner]);
  49697. new platefound[256];
  49698. format(platefound,sizeof(platefound),"Results found: {2E9AFE}License plate: {FFFFFF}%s {2E9AFE}Vehicle owner: {FFFFFF}%s {2E9AFE}Vehicle type: {FFFFFF}%s", plate, owner, GetVehicleFriendlyName(h));
  49699. SendClientMessage(playerid, COLOR_WHITE, platefound);
  49700. countplates++;
  49701. return 1;
  49702. }
  49703. }
  49704. if(countplates == 0)
  49705. {
  49706. SendClientMessage(playerid, COLOR_GREY, "No results found.");
  49707. return 1;
  49708. }
  49709. }
  49710. else
  49711. {
  49712. SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle or in the Police Department.");
  49713. return 1;
  49714. }
  49715. }
  49716. return 1;
  49717. }
  49718.  
  49719. if(strcmp(cmd,"/editbiz",true)==0)
  49720. {
  49721. if(IsPlayerConnected(playerid))
  49722. {
  49723. new biz = BizEditID[playerid];
  49724. new x_job[128];
  49725. x_job = strtok(cmdtext, idx);
  49726. if(PlayerInfo[playerid][pAdmin] < 5)
  49727. {
  49728. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command");
  49729. return 1;
  49730. }
  49731. if(!strlen(x_job)) {
  49732. if(BizEditID[playerid] == 999)
  49733. {
  49734. SendClientMessage(playerid, COLOR_RED, "Use /editbiz ID [BizID] to choose the business to edit");
  49735. return 1;
  49736. }
  49737. else
  49738. {
  49739. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz [name]");
  49740. SendClientMessage(playerid, COLOR_GRAD1, "Available names: ID, Interior, Intmenu, Exterior, Price, Type, Name, Sellbiz, Reset, VW, Products");
  49741. return 1;
  49742. }
  49743. }
  49744. if(strcmp(x_job,"Interior",true) == 0)
  49745. {
  49746. new interior = GetPlayerInterior(playerid);
  49747. new vw = 1000 + random(199999999999999999);
  49748. new Float:posx, Float:posy, Float:posz, Float:posa;
  49749. GetPlayerPos(playerid, posx, posy, posz);
  49750. GetPlayerFacingAngle(playerid, posa);
  49751. new Float:angle = posa + 180.0000;
  49752. BizInfo[biz][bIntLocationx] = posx;
  49753. BizInfo[biz][bIntLocationy] = posy;
  49754. BizInfo[biz][bIntLocationz] = posz;
  49755. BizInfo[biz][bInterior] = interior;
  49756. BizInfo[biz][bVirtualWorld] = vw;
  49757. BizInfo[biz][bExitAngle] = angle;
  49758. SetPlayerVirtualWorld(playerid, vw);
  49759. PlayerInfo[playerid][pVirtualWorld] = vw;
  49760. PlayerInfo[playerid][pInBiz] = biz;
  49761. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business interior.");
  49762. return 1;
  49763. }
  49764. else if(strcmp(x_job,"intmenu",true) == 0)
  49765. {
  49766. ShowPlayerDialog(playerid, 9974,DIALOG_STYLE_LIST, "Business Interior Menu", "Bank\nCity Hall\nLSPD\nGym\nDrug House\nCrack Lab\n24/7\nAmmunation 1\nAmmunation 2\nAmmunation 3\nAmmunation 4\nAmmunation 5\nBinco\nDidier sachs\nProlaps\nSuburban\nVictim\nZip\nClub\nBar\nResturant\nPhone Company\nLottery\nCJ's House\nBallas HQ", "Set Interior", "Cancel");
  49767. return 1;
  49768. }
  49769. else if(strcmp(x_job,"Reset",true) == 0)
  49770. {
  49771. if(PlayerInfo[playerid][pAdmin] < 7)
  49772. {
  49773. SendClientMessage(playerid, COLOR_GREY, "This command is only for the Server Owner.");
  49774. return 1;
  49775. }
  49776. BizInfo[biz][bLocation_x] = 0.0000;
  49777. BizInfo[biz][bLocation_y] = 0.0000;
  49778. BizInfo[biz][bLocation_z] = 0.0000;
  49779. BizInfo[biz][bInterior] = 0;
  49780. BizInfo[biz][bVirtualWorld] = 0;
  49781. BizInfo[biz][bExitAngle] = 0.0000;
  49782. BizInfo[biz][bEnterAngle] = 0.0000;
  49783. BizInfo[biz][bIntLocationx] = 0.0000;
  49784. BizInfo[biz][bIntLocationy] = 0.0000;
  49785. BizInfo[biz][bIntLocationz] = 0.0000;
  49786. strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
  49787. strmid(BizInfo[biz][bName], "None", 0, strlen("None"), 255);
  49788. BizInfo[biz][bLocked] = 0;
  49789. BizInfo[biz][bOwned] = 0;
  49790. BizInfo[biz][bType] = 0;
  49791. BizInfo[biz][bCameras] = 0;
  49792. BizInfo[biz][bTill] = 0;
  49793. BizInfo[biz][bFee] = 0;
  49794. DestroyDynamicMapIcon(BizIcon[biz]);
  49795. DestroyDynamicPickup(BizPickup[biz]);
  49796. DestroyDynamic3DTextLabel(BizLabel[biz]);
  49797. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have reseted this business.");
  49798. return 1;
  49799. }
  49800. else if(strcmp(x_job,"Exterior",true) == 0)
  49801. {
  49802. new pickup;
  49803. if(BizInfo[biz][bType] == 0) { pickup = 1239; }
  49804. else if(BizInfo[biz][bType] != 0) { pickup = 1272; }
  49805. new Float:posx, Float:posy, Float:posz, Float:posa;
  49806. GetPlayerPos(playerid, posx, posy, posz);
  49807. new interiorz = GetPlayerInterior(playerid);
  49808. new pvw = GetPlayerVirtualWorld(playerid);
  49809. GetPlayerFacingAngle(playerid, posa);
  49810. new Float:angle = posa + 180.0000;
  49811. BizInfo[biz][bLocation_x] = posx;
  49812. BizInfo[biz][bLocation_y] = posy;
  49813. BizInfo[biz][bLocation_z] = posz;
  49814. BizInfo[biz][bEnterAngle] = angle;
  49815. BizInfo[biz][bPInt] = interiorz;
  49816. BizInfo[biz][bPVW] = pvw;
  49817. DestroyDynamicPickup(BizPickup[biz]);
  49818. DestroyDynamic3DTextLabel(BizLabel[biz]);
  49819. BizPickup[biz] = CreateDynamicPickup(pickup, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49820. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this business entrance.");
  49821. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
  49822. {
  49823. new VString[255];
  49824. new price = BizInfo[biz][bPrice];
  49825. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  49826. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49827. DestroyDynamicMapIcon(BizIcon[biz]);
  49828. if(BizInfo[biz][bType] == 1)
  49829. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
  49830. else if(BizInfo[biz][bType] == 2)
  49831. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
  49832. else if(BizInfo[biz][bType] == 3)
  49833. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
  49834. else if(BizInfo[biz][bType] == 4)
  49835. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
  49836. else if(BizInfo[biz][bType] == 5)
  49837. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
  49838. else if(BizInfo[biz][bType] == 6)
  49839. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
  49840. else if(BizInfo[biz][bType] == 7)
  49841. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
  49842. else if(BizInfo[biz][bType] == 8)
  49843. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
  49844. }
  49845. if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
  49846. {
  49847. new VString[255];
  49848. new name[25], owner[MAX_PLAYER_NAME];
  49849. strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
  49850. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  49851. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
  49852. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49853. DestroyDynamicMapIcon(BizIcon[biz]);
  49854. if(BizInfo[biz][bType] == 1)
  49855. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
  49856. else if(BizInfo[biz][bType] == 2)
  49857. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
  49858. else if(BizInfo[biz][bType] == 3)
  49859. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
  49860. else if(BizInfo[biz][bType] == 4)
  49861. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
  49862. else if(BizInfo[biz][bType] == 5)
  49863. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
  49864. else if(BizInfo[biz][bType] == 6)
  49865. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
  49866. else if(BizInfo[biz][bType] == 7)
  49867. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
  49868. else if(BizInfo[biz][bType] == 8)
  49869. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
  49870. }
  49871. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
  49872. {
  49873. new VString[255];
  49874. new name[25];
  49875. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  49876. format(VString,sizeof(VString),"%s", name);
  49877. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49878. }
  49879. return 1;
  49880. }
  49881. else if(strcmp(x_job,"Price",true) == 0)
  49882. {
  49883. tmp = strtok(cmdtext, idx);
  49884. new price = strvalEx(tmp);
  49885. if(!strlen(tmp))
  49886. {
  49887. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Price [price]");
  49888. return 1;
  49889. }
  49890. if(BizInfo[biz][bOwned] == 1)
  49891. {
  49892. SendClientMessage(playerid, COLOR_GREY, " The business is owned");
  49893. return 1;
  49894. }
  49895. if(BizInfo[biz][bType] == 0)
  49896. {
  49897. SendClientMessage(playerid, COLOR_GREY, " The business is not buyable");
  49898. return 1;
  49899. }
  49900. if(price > 50000000 || price < 0)
  49901. {
  49902. SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 - $50,000,000 !");
  49903. return 1;
  49904. }
  49905. BizInfo[biz][bPrice] = price;
  49906. DestroyDynamic3DTextLabel(BizLabel[biz]);
  49907. new VString[255];
  49908. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  49909. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49910. format(string, sizeof(string), "You have set this business price to %d.", price);
  49911. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  49912. return 1;
  49913. }
  49914.  
  49915. else if(strcmp(x_job,"Type",true) == 0)
  49916. {
  49917. tmp = strtok(cmdtext, idx);
  49918. new type = strvalEx(tmp);
  49919. if(!strlen(tmp))
  49920. {
  49921. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Type [0-5]");
  49922. SendClientMessage(playerid, COLOR_GREY, "Available types: 0 - Normal building | 1 - 24/7 | 2 - Club | 3 - Ammunation | 4 - Restaurant");
  49923. SendClientMessage(playerid, COLOR_GREY, "Available types: 5 - Clothing store | 6 - Phone company | 7 - Ad Company | 8 - Lottery");
  49924. return 1;
  49925. }
  49926. if(type < 0 || type > 8)
  49927. {
  49928. SendClientMessage(playerid, COLOR_GREY, " The biz type must be between 0 - 8 !");
  49929. return 1;
  49930. }
  49931. BizInfo[biz][bType] = type;
  49932. DestroyDynamic3DTextLabel(BizLabel[biz]);
  49933. DestroyDynamicPickup(BizPickup[biz]);
  49934. if(type == 0)
  49935. {
  49936. BizPickup[biz] = CreateDynamicPickup(1239, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49937. }
  49938. else if(type != 0)
  49939. {
  49940. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
  49941. {
  49942. new VString[255];
  49943. new price = BizInfo[biz][bPrice];
  49944. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  49945. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49946. DestroyDynamicMapIcon(BizIcon[biz]);
  49947. if(BizInfo[biz][bType] == 1)
  49948. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
  49949. else if(BizInfo[biz][bType] == 2)
  49950. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
  49951. else if(BizInfo[biz][bType] == 3)
  49952. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
  49953. else if(BizInfo[biz][bType] == 4)
  49954. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
  49955. else if(BizInfo[biz][bType] == 5)
  49956. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
  49957. else if(BizInfo[biz][bType] == 6)
  49958. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
  49959. else if(BizInfo[biz][bType] == 7)
  49960. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
  49961. else if(BizInfo[biz][bType] == 8)
  49962. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
  49963. }
  49964. if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
  49965. {
  49966. new VString[255];
  49967. new name[25], owner[MAX_PLAYER_NAME];
  49968. strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
  49969. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  49970. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
  49971. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49972. DestroyDynamicMapIcon(BizIcon[biz]);
  49973. if(BizInfo[biz][bType] == 1)
  49974. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 17, 0);
  49975. else if(BizInfo[biz][bType] == 2)
  49976. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 49, 0);
  49977. else if(BizInfo[biz][bType] == 3)
  49978. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 18, 0);
  49979. else if(BizInfo[biz][bType] == 4)
  49980. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 50, 0);
  49981. else if(BizInfo[biz][bType] == 5)
  49982. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 45, 0);
  49983. else if(BizInfo[biz][bType] == 6)
  49984. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 25, 0);
  49985. else if(BizInfo[biz][bType] == 7)
  49986. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 62, 0);
  49987. else if(BizInfo[biz][bType] == 8)
  49988. BizIcon[biz] = CreateDynamicMapIcon(BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], 36, 0);
  49989. }
  49990. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
  49991. {
  49992. new VString[255];
  49993. new name[25];
  49994. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  49995. format(VString,sizeof(VString),"%s", name);
  49996. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  49997. DestroyDynamicMapIcon(BizIcon[biz]);
  49998. }
  49999. BizPickup[biz] = CreateDynamicPickup(1272, 1, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z], BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  50000. }
  50001. format(string, sizeof(string), "You have set this business type to %d.", type);
  50002. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50003. return 1;
  50004. }
  50005.  
  50006. else if(strcmp(x_job,"ID",true) == 0)
  50007. {
  50008. tmp = strtok(cmdtext, idx);
  50009. new bid = strvalEx(tmp);
  50010. if(!strlen(tmp))
  50011. {
  50012. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz ID [BizID]");
  50013. return 1;
  50014. }
  50015. if(bid < 0 || bid > 199)
  50016. {
  50017. SendClientMessage(playerid, COLOR_GREY, " The id must be between 0 - 199 !");
  50018. return 1;
  50019. }
  50020. BizEditID[playerid] = bid;
  50021. format(string, sizeof(string), "You are now editing the biz id %d.", bid);
  50022. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50023. return 1;
  50024. }
  50025. else if(strcmp(x_job,"Name",true) == 0)
  50026. {
  50027. new length = strlen(cmdtext);
  50028. while ((idx < length) && (cmdtext[idx] <= ' '))
  50029. {
  50030. idx++;
  50031. }
  50032. new offset = idx;
  50033. new result[64];
  50034. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  50035. {
  50036. result[idx - offset] = cmdtext[idx];
  50037. idx++;
  50038. }
  50039. result[idx - offset] = EOS;
  50040. if(!strlen(result))
  50041. {
  50042. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Name [Name]");
  50043. return 1;
  50044. }
  50045. if(InvalidChar(result) == 1)
  50046. {
  50047. SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
  50048. return 1;
  50049. }
  50050. strmid(BizInfo[biz][bName], result, 0, strlen(result), 25);
  50051. DestroyDynamic3DTextLabel(BizLabel[biz]);
  50052. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] != 0)
  50053. {
  50054. new VString[255];
  50055. new price = BizInfo[biz][bPrice];
  50056. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  50057. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  50058. }
  50059. if(BizInfo[biz][bOwned] == 1 && BizInfo[biz][bType] != 0)
  50060. {
  50061. new VString[255];
  50062. new name[25], owner[MAX_PLAYER_NAME];
  50063. strmid(owner, BizInfo[biz][bOwner], 0, strlen(BizInfo[biz][bOwner]), 255);
  50064. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  50065. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[biz][bFee]);
  50066. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  50067. }
  50068. if(BizInfo[biz][bOwned] == 0 && BizInfo[biz][bType] == 0)
  50069. {
  50070. new VString[255];
  50071. new name[25];
  50072. strmid(name, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  50073. format(VString,sizeof(VString),"%s", name);
  50074. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  50075. }
  50076. format(string, sizeof(string), "You have set this biz name to %s.", result);
  50077. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50078. return 1;
  50079. }
  50080. else if(strcmp(x_job,"VW",true) == 0)
  50081. {
  50082. tmp = strtok(cmdtext, idx);
  50083. new vw = strvalEx(tmp);
  50084. if(!strlen(tmp))
  50085. {
  50086. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz VW [VirtualWorld]");
  50087. return 1;
  50088. }
  50089. BizInfo[biz][bVirtualWorld] = vw;
  50090. format(string, sizeof(string), "You have set this biz virtual world to %d.", vw);
  50091. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50092. return 1;
  50093. }
  50094. else if(strcmp(x_job,"Products",true) == 0)
  50095. {
  50096. tmp = strtok(cmdtext, idx);
  50097. new prod = strvalEx(tmp);
  50098. if(!strlen(tmp))
  50099. {
  50100. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Products [amount]");
  50101. return 1;
  50102. }
  50103. BizInfo[biz][bProducts] = prod;
  50104. format(string, sizeof(string), "You have set this biz products to %d.", prod);
  50105. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50106. return 1;
  50107. }
  50108. else if(strcmp(x_job,"Jackpot",true) == 0)
  50109. {
  50110. tmp = strtok(cmdtext, idx);
  50111. new jpot = strvalEx(tmp);
  50112. if(!strlen(tmp))
  50113. {
  50114. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Jackpot [jackpot]");
  50115. return 1;
  50116. }
  50117. BizInfo[biz][bLottoJackpot] = jpot;
  50118. format(string, sizeof(string), "You have set this biz jackpot to %d.", jpot);
  50119. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50120. return 1;
  50121. }
  50122. else if(strcmp(x_job,"LottoTime",true) == 0)
  50123. {
  50124. tmp = strtok(cmdtext, idx);
  50125. new ltime = strvalEx(tmp);
  50126. if(!strlen(tmp))
  50127. {
  50128. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz LottoTime [0/1]");
  50129. return 1;
  50130. }
  50131. BizInfo[biz][bLottoTime] = ltime;
  50132. format(string, sizeof(string), "You have set this biz lotto time to %d.", ltime);
  50133. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50134. return 1;
  50135. }
  50136. else if(strcmp(x_job,"Sellbiz",true) == 0)
  50137. {
  50138. new x_nr[32];
  50139. x_nr = strtok(cmdtext, idx);
  50140. if(!strlen(x_nr))
  50141. {
  50142. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editbiz Sellbiz [confirm]");
  50143. return 1;
  50144. }
  50145. if(strcmp(x_nr,"confirm",true) == 0)
  50146. {
  50147. if(BizInfo[biz][bOwned] == 0)
  50148. {
  50149. SendClientMessage(playerid, COLOR_GRAD1, "This biz is not owned.");
  50150. return 1;
  50151. }
  50152. BizInfo[biz][bOwned] = 0;
  50153. BizInfo[biz][bLocked] = 0;
  50154. DestroyDynamic3DTextLabel(BizLabel[biz]);
  50155. strmid(BizInfo[biz][bOwner], "The State", 0, strlen("The State"), 255);
  50156. new VString[255];
  50157. new price = BizInfo[biz][bPrice];
  50158. format(VString,sizeof(VString),"Business for sale ! \nPrice: $%d \nType /buybiz to purchase it", price);
  50159. BizLabel[biz] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, BizInfo[biz][bLocation_x], BizInfo[biz][bLocation_y], BizInfo[biz][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[biz][bPVW], BizInfo[biz][bPInt], -1, 100.0);
  50160. SendClientMessage(playerid,COLOR_YELLOW, "Biz sold !");
  50161. }
  50162. }
  50163. else { return 1; }
  50164. }
  50165. return 1;
  50166. }
  50167.  
  50168. if(strcmp(cmd,"/edithouse",true)==0)
  50169. {
  50170. if(IsPlayerConnected(playerid))
  50171. {
  50172. new house = HouseEditID[playerid];
  50173. new x_job[128];
  50174. x_job = strtok(cmdtext, idx);
  50175. if(PlayerInfo[playerid][pAdmin] < 5)
  50176. {
  50177. SendClientMessage(playerid, COLOR_RED, " You are not authorised to use that command.");
  50178. return 1;
  50179. }
  50180. if(!strlen(x_job)) {
  50181. if(HouseEditID[playerid] == 999)
  50182. {
  50183. SendClientMessage(playerid, COLOR_RED, "Use /edithouse ID [HouseID] to choose the house to edit");
  50184. return 1;
  50185. }
  50186. else
  50187. {
  50188. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse [name]");
  50189. SendClientMessage(playerid, COLOR_GRAD1, "Available names: ID, Interior, Intmenu, Exterior, Price, Level, Name, Vulnerable, Sellhouse, Reset");
  50190. return 1;
  50191. }
  50192. }
  50193. if(strcmp(x_job,"Interior",true) == 0)
  50194. {
  50195. new interior = GetPlayerInterior(playerid);
  50196. new vw = 1000 + random(199999999999999999);
  50197. new Float:posx, Float:posy, Float:posz, Float:posa;
  50198. GetPlayerPos(playerid, posx, posy, posz);
  50199. GetPlayerFacingAngle(playerid, posa);
  50200. new Float:angle = posa + 180.0000;
  50201. HouseInfo[house][hIntLocationx] = posx;
  50202. HouseInfo[house][hIntLocationy] = posy;
  50203. HouseInfo[house][hIntLocationz] = posz;
  50204. HouseInfo[house][hInterior] = interior;
  50205. HouseInfo[house][hVirtualWorld] = vw;
  50206. HouseInfo[house][hExitAngle] = angle;
  50207. SetPlayerVirtualWorld(playerid, vw);
  50208. PlayerInfo[playerid][pVirtualWorld] = vw;
  50209. PlayerInfo[playerid][pInHouse] = house;
  50210. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  50211. return 1;
  50212. }
  50213. else if(strcmp(x_job,"intmenu",true) == 0)
  50214. {
  50215. ShowPlayerDialog(playerid, 9973,DIALOG_STYLE_LIST, "House Interior Menu", "Woozie's Apartment\nCj's House\nMadd Doggs Mansion\nBig Smoke's House\nRyders House\nColonel Furhberger's\nBurglary House 1\nBurglary House 2\nBurglary House 3\nBurglary House 4\nBurglary House 5\nBurglary House 6\nBurglary House 7\nHashbury House\nRed Bed Motel Room\nVerdant Bluffs Safehouse", "Set Interior", "Cancel");
  50216. return 1;
  50217. }
  50218. else if(strcmp(x_job,"Reset",true) == 0)
  50219. {
  50220. if(PlayerInfo[playerid][pAdmin] <5)
  50221. {
  50222. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  50223. return 1;
  50224. }
  50225. HouseInfo[house][hLocation_x] = 0.0000;
  50226. HouseInfo[house][hLocation_y] = 0.0000;
  50227. HouseInfo[house][hLocation_z] = 0.0000;
  50228. HouseInfo[house][hInterior] = 0;
  50229. HouseInfo[house][hVirtualWorld] = 0;
  50230. HouseInfo[house][hExitAngle] = 0.0000;
  50231. HouseInfo[house][hEnterAngle] = 0.0000;
  50232. HouseInfo[house][hIntLocationx] = 0.0000;
  50233. HouseInfo[house][hIntLocationy] = 0.0000;
  50234. HouseInfo[house][hIntLocationz] = 0.0000;
  50235. strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
  50236. strmid(HouseInfo[house][hName], "None", 0, strlen("None"), 255);
  50237. HouseInfo[house][hLocked] = 0;
  50238. HouseInfo[house][hOwned] = 0;
  50239. HouseInfo[house][hAlarm] = 0;
  50240. HouseInfo[house][hAlarmON] = 0;
  50241. HouseInfo[house][hGun1] = 0;
  50242. HouseInfo[house][hGun2] = 0;
  50243. HouseInfo[house][hGun3] = 0;
  50244. HouseInfo[house][hGun4] = 0;
  50245. HouseInfo[house][hPot] = 0;
  50246. HouseInfo[house][hCrack] = 0;
  50247. HouseInfo[house][hPrice] = 0;
  50248. HouseInfo[house][hLevel] = 0;
  50249. HouseInfo[house][hSafe] = 0;
  50250. HouseInfo[house][hSafeCode] = 0;
  50251. HouseInfo[house][hCameras] = 0;
  50252. HouseInfo[house][hCash] = 0;
  50253. HouseInfo[house][hMaterials] = 0;
  50254. HouseInfo[house][hVulnerable] = 5;
  50255. HouseInfo[house][hSafex] = 0.0000;
  50256. HouseInfo[house][hSafey] = 0.0000;
  50257. HouseInfo[house][hSafez] = 0.0000;
  50258. HouseInfo[house][hRenters] = 0;
  50259. HouseInfo[house][hRent] = 0;
  50260. HouseInfo[house][hRentable] = 0;
  50261. DestroyDynamicPickup(HousePickup[house]);
  50262. //DestroyDynamicMapIcon(HouseIcon[house]);
  50263. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50264. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have reseted this house.");
  50265. return 1;
  50266. }
  50267. else if(strcmp(x_job,"Exterior",true) == 0)
  50268. {
  50269. // new icon;
  50270. // if(HouseInfo[house][hOwned] == 1) { icon = 32; }
  50271. // else if(HouseInfo[house][hOwned] == 0) { icon = 31; }
  50272. new Float:posx, Float:posy, Float:posz, Float:posa;
  50273. GetPlayerPos(playerid, posx, posy, posz);
  50274. GetPlayerFacingAngle(playerid, posa);
  50275. new Float:angle = posa + 180.0000;
  50276. HouseInfo[house][hLocation_x] = posx;
  50277. HouseInfo[house][hLocation_y] = posy;
  50278. HouseInfo[house][hLocation_z] = posz;
  50279. HouseInfo[house][hEnterAngle] = angle;
  50280. DestroyDynamicPickup(HousePickup[house]);
  50281. //DestroyDynamicMapIcon(HouseIcon[house]);
  50282. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50283. HousePickup[house] = CreateDynamicPickup(1273, 1, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]);
  50284. //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], icon, 0);
  50285. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house entrance.");
  50286. if(HouseInfo[house][hOwned] == 0)
  50287. {
  50288. new VString[255];
  50289. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
  50290. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50291. }
  50292. if(HouseInfo[house][hOwned] == 1)
  50293. {
  50294. new VString[255];
  50295. new name[25], owner[MAX_PLAYER_NAME];
  50296. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  50297. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  50298. if(HouseInfo[house][hRentable] == 0)
  50299. {
  50300. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  50301. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50302. }
  50303. if(HouseInfo[house][hRentable] == 1)
  50304. {
  50305. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  50306. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50307. }
  50308. }
  50309. return 1;
  50310. }
  50311. else if(strcmp(x_job,"Price",true) == 0)
  50312. {
  50313. tmp = strtok(cmdtext, idx);
  50314. new price = strvalEx(tmp);
  50315. if(!strlen(tmp))
  50316. {
  50317. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Price [price]");
  50318. return 1;
  50319. }
  50320. if(HouseInfo[house][hOwned] == 1)
  50321. {
  50322. SendClientMessage(playerid, COLOR_GREY, " The house is owned");
  50323. return 1;
  50324. }
  50325. if(price > 50000000 || price < 0)
  50326. {
  50327. SendClientMessage(playerid, COLOR_GREY, " The price must be between $1 - $50,000,000 !");
  50328. return 1;
  50329. }
  50330. HouseInfo[house][hPrice] = price;
  50331. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50332. if(HouseInfo[house][hOwned] == 0)
  50333. {
  50334. new VString[255];
  50335. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
  50336. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50337. }
  50338. if(HouseInfo[house][hOwned] == 1)
  50339. {
  50340. new VString[255];
  50341. new name[25], owner[MAX_PLAYER_NAME];
  50342. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  50343. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  50344. if(HouseInfo[house][hRentable] == 0)
  50345. {
  50346. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  50347. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50348. }
  50349. if(HouseInfo[house][hRentable] == 1)
  50350. {
  50351. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  50352. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50353. }
  50354. }
  50355. format(string, sizeof(string), "You have set this house price to %d.", price);
  50356. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50357. return 1;
  50358. }
  50359.  
  50360. else if(strcmp(x_job,"Level",true) == 0)
  50361. {
  50362. tmp = strtok(cmdtext, idx);
  50363. new level = strvalEx(tmp);
  50364. if(!strlen(tmp))
  50365. {
  50366. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse level [level]");
  50367. return 1;
  50368. }
  50369. if(level < 1)
  50370. {
  50371. SendClientMessage(playerid, COLOR_GREY, " The level can't be below 1 !");
  50372. return 1;
  50373. }
  50374. HouseInfo[house][hLevel] = level;
  50375. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50376. if(HouseInfo[house][hOwned] == 0)
  50377. {
  50378. new VString[255];
  50379. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
  50380. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50381. }
  50382. if(HouseInfo[house][hOwned] == 1)
  50383. {
  50384. new VString[255];
  50385. new name[25], owner[MAX_PLAYER_NAME];
  50386. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  50387. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  50388. if(HouseInfo[house][hRentable] == 0)
  50389. {
  50390. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  50391. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50392. }
  50393. if(HouseInfo[house][hRentable] == 1)
  50394. {
  50395. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  50396. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50397. }
  50398. }
  50399. format(string, sizeof(string), "You have set this house level to %d.", level);
  50400. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50401. return 1;
  50402. }
  50403.  
  50404. else if(strcmp(x_job,"ID",true) == 0)
  50405. {
  50406. tmp = strtok(cmdtext, idx);
  50407. new hid = strvalEx(tmp);
  50408. if(!strlen(tmp))
  50409. {
  50410. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse ID [HouseID]");
  50411. return 1;
  50412. }
  50413. if(hid < 0 || hid > 199)
  50414. {
  50415. SendClientMessage(playerid, COLOR_GREY, " The id must be between 0 - 199 !");
  50416. return 1;
  50417. }
  50418. HouseEditID[playerid] = hid;
  50419. format(string, sizeof(string), "You are now editing the house id %d.", hid);
  50420. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50421. return 1;
  50422. }
  50423.  
  50424. else if(strcmp(x_job,"Vulnerable",true) == 0)
  50425. {
  50426. tmp = strtok(cmdtext, idx);
  50427. new vul = strvalEx(tmp);
  50428. if(!strlen(tmp))
  50429. {
  50430. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Vulnerable [0-9]");
  50431. return 1;
  50432. }
  50433. if(vul < 0 || vul > 9)
  50434. {
  50435. SendClientMessage(playerid, COLOR_GREY, " The value must be between 0-9 !");
  50436. return 1;
  50437. }
  50438. HouseInfo[house][hVulnerable] = vul;
  50439. format(string, sizeof(string), "You have set this house to be vulnerable in %d hours.", vul);
  50440. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50441. return 1;
  50442. }
  50443.  
  50444. else if(strcmp(x_job,"Name",true) == 0)
  50445. {
  50446. new length = strlen(cmdtext);
  50447. while ((idx < length) && (cmdtext[idx] <= ' '))
  50448. {
  50449. idx++;
  50450. }
  50451. new offset = idx;
  50452. new result[64];
  50453. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  50454. {
  50455. result[idx - offset] = cmdtext[idx];
  50456. idx++;
  50457. }
  50458. result[idx - offset] = EOS;
  50459. if(!strlen(result))
  50460. {
  50461. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Name [Name]");
  50462. return 1;
  50463. }
  50464. if(InvalidChar(result) == 1)
  50465. {
  50466. SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
  50467. return 1;
  50468. }
  50469. strmid(HouseInfo[house][hName], result, 0, strlen(result), 25);
  50470. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50471. if(HouseInfo[house][hOwned] == 0)
  50472. {
  50473. new VString[255];
  50474. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
  50475. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50476. }
  50477. if(HouseInfo[house][hOwned] == 1)
  50478. {
  50479. new VString[255];
  50480. new name[25], owner[MAX_PLAYER_NAME];
  50481. strmid(owner, HouseInfo[house][hOwner], 0, strlen(HouseInfo[house][hOwner]), 255);
  50482. strmid(name, HouseInfo[house][hName], 0, strlen(HouseInfo[house][hName]), 255);
  50483. if(HouseInfo[house][hRentable] == 0)
  50484. {
  50485. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[house][hLevel],owner);
  50486. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50487. }
  50488. if(HouseInfo[house][hRentable] == 1)
  50489. {
  50490. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[house][hLevel],owner,HouseInfo[house][hRent]);
  50491. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50492. }
  50493. }
  50494. format(string, sizeof(string), "You have set this house name to %s.", result);
  50495. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50496. return 1;
  50497. }
  50498.  
  50499. else if(strcmp(x_job,"Sellhouse",true) == 0)
  50500. {
  50501. new x_nr[32];
  50502. x_nr = strtok(cmdtext, idx);
  50503. if(!strlen(x_nr))
  50504. {
  50505. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edithouse Sellhouse [confirm]");
  50506. return 1;
  50507. }
  50508. if(strcmp(x_nr,"confirm",true) == 0)
  50509. {
  50510. if(HouseInfo[house][hOwned] == 0)
  50511. {
  50512. SendClientMessage(playerid, COLOR_GRAD1, "This house is not owned.");
  50513. return 1;
  50514. }
  50515. HouseInfo[house][hOwned] = 0;
  50516. HouseInfo[house][hLocked] = 0;
  50517. DestroyDynamic3DTextLabel(HouseLabel[house]);
  50518. strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
  50519. new VString[255];
  50520. format(VString,sizeof(VString),"Property for sale ! \nPrice: $%d \nLevel: %d \nType /buyhouse to purchase it", HouseInfo[house][hPrice],HouseInfo[house][hLevel]);
  50521. HouseLabel[house] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  50522. //DestroyDynamicMapIcon(HouseIcon[house]);
  50523. //HouseIcon[house] = CreateDynamicMapIcon(HouseInfo[house][hLocation_x], HouseInfo[house][hLocation_y], HouseInfo[house][hLocation_z], 31, 0);
  50524. SendClientMessage(playerid,COLOR_YELLOW, "House sold !");
  50525. }
  50526. }
  50527. else { return 1; }
  50528. }
  50529. return 1;
  50530. }
  50531.  
  50532. if(strcmp(cmd,"/editcar",true)==0)
  50533. {
  50534. if(IsPlayerConnected(playerid))
  50535. {
  50536. new x_job[128];
  50537. x_job = strtok(cmdtext, idx);
  50538. if(PlayerInfo[playerid][pAdmin] < 5)
  50539. {
  50540. SendClientMessage(playerid, COLOR_RED, "You are not authorised to use that command.");
  50541. return 1;
  50542. }
  50543. if(!IsPlayerInAnyVehicle(playerid))
  50544. {
  50545. SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
  50546. return 1;
  50547. }
  50548. for(new i = 0; i < sizeof(CreatedCars); i++)
  50549. {
  50550. if(CreatedCars[i] == GetPlayerVehicleID(playerid))
  50551. {
  50552. return 1;
  50553. }
  50554. }
  50555. if(!strlen(x_job)) {
  50556. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar [name]");
  50557. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Model, Spawn, Color, Ownable, Rentable, Faction, VIP, Price, Plate, Disabled, Sellcar");
  50558. return 1;
  50559. }
  50560. if(strcmp(x_job,"Model",true) == 0)
  50561. {
  50562. tmp = strtok(cmdtext, idx);
  50563. new vehicle = GetPlayerVehicleID(playerid);
  50564. if(!strlen(tmp))
  50565. {
  50566. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Model [Model ID (400-611)]");
  50567. return 1;
  50568. }
  50569. new model = ReturnVehicleModelID(tmp);
  50570. if(!model)
  50571. return SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
  50572. if(IsATrain(model))
  50573. {
  50574. SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
  50575. return 1;
  50576. }
  50577. if(GetPlayerState(playerid) != 2)
  50578. {
  50579. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's model");
  50580. return 1;
  50581. }
  50582. if(model > 611 || model < 400)
  50583. {
  50584. SendClientMessage(playerid, COLOR_GREY, " The model must be between 400 and 611 !");
  50585. return 1;
  50586. }
  50587. CarInfo[vehicle][tModel] = model;
  50588. CarInfo[vehicle][tTrunkOpened] = 0;
  50589. CarInfo[vehicle][tHoodOpened] = 0;
  50590. CarInfo[vehicle][tAlarmStarted] = 0;
  50591. format(string, sizeof(string), "You have set this car's model to %d.", model);
  50592. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50593. ClearVehicleComponents(vehicle);
  50594. DestroyVehicle(vehicle);
  50595. CarSys[vehicle] = CreateVehicle(CarInfo[vehicle][tModel],CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz],CarInfo[vehicle][tAngle],CarInfo[vehicle][tColorOne],CarInfo[vehicle][tColorTwo],60000);
  50596. PutPlayerInVehicle(playerid, vehicle, 0);
  50597. return 1;
  50598. }
  50599. else if(strcmp(x_job,"Spawn",true) == 0)
  50600. {
  50601. new interior = GetPlayerInterior(playerid);
  50602. new vw = GetPlayerVirtualWorld(playerid);
  50603. new Float:vehx, Float:vehy, Float:vehz;
  50604. new Float:z_rot;
  50605. new vehicle = GetPlayerVehicleID(playerid);
  50606. GetVehicleZAngle(vehicle, z_rot);
  50607. GetVehiclePos(vehicle, vehx, vehy, vehz);
  50608. if(PlayerInfo[playerid][pInt] != 0 && interior != 0)
  50609. {
  50610. SendClientMessage(playerid, COLOR_GREY, " You can't do this in another interior !");
  50611. return 1;
  50612. }
  50613. if(GetPlayerState(playerid) != 2)
  50614. {
  50615. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's model");
  50616. return 1;
  50617. }
  50618. if(PlayerInfo[playerid][pVirtualWorld] != 0 && vw != 0)
  50619. {
  50620. SendClientMessage(playerid, COLOR_GREY, " You can't do this in another virtual world !");
  50621. return 1;
  50622. }
  50623. if(GetPlayerState(playerid) != 2)
  50624. {
  50625. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to change the car's spawn place");
  50626. return 1;
  50627. }
  50628. CarInfo[vehicle][tLocationx] = vehx;
  50629. CarInfo[vehicle][tLocationy] = vehy;
  50630. CarInfo[vehicle][tLocationz] = vehz;
  50631. CarInfo[vehicle][tAngle] = z_rot;
  50632. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have set this car's spawn place.");
  50633. return 1;
  50634. }
  50635. else if(strcmp(x_job,"Color",true) == 0)
  50636. {
  50637. tmp = strtok(cmdtext, idx);
  50638. if(!strlen(tmp))
  50639. {
  50640. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Color [0-126] [0-126]");
  50641. return 1;
  50642. }
  50643. new color1;
  50644. color1 = strvalEx(tmp);
  50645. if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color can't be below 0 or above 126 !"); return 1; }
  50646. tmp = strtok(cmdtext, idx);
  50647. if(!strlen(tmp))
  50648. {
  50649. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Color [0-126] [0-126]");
  50650. return 1;
  50651. }
  50652. new vehicle = GetPlayerVehicleID(playerid);
  50653. new color2;
  50654. color2 = strvalEx(tmp);
  50655. if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color can't be below 0 or above 126 !"); return 1; }
  50656. ChangeVehicleColor(vehicle, color1, color2);
  50657. CarInfo[vehicle][tColorOne] = color1;
  50658. CarInfo[vehicle][tColorTwo] = color2;
  50659. CarInfo[vehicle][tTrunkOpened] = 0;
  50660. CarInfo[vehicle][tHoodOpened] = 0;
  50661. CarInfo[vehicle][tAlarmStarted] = 0;
  50662. DestroyVehicle(vehicle);
  50663. CarSys[vehicle] = AddStaticVehicleEx(CarInfo[vehicle][tModel],CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz],CarInfo[vehicle][tAngle],CarInfo[vehicle][tColorOne],CarInfo[vehicle][tColorTwo],60000);
  50664. PutPlayerInVehicle(playerid, vehicle, 0);
  50665. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have set this car's colors.");
  50666. return 1;
  50667. }
  50668. else if(strcmp(x_job,"Ownable",true) == 0)
  50669. {
  50670. tmp = strtok(cmdtext, idx);
  50671. new own = strvalEx(tmp);
  50672. new vehicle = GetPlayerVehicleID(playerid);
  50673. if(!strlen(tmp))
  50674. {
  50675. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Ownable [0-1]");
  50676. return 1;
  50677. }
  50678. if(CarInfo[vehicle][tRentable] == 1)
  50679. {
  50680. SendClientMessage(playerid, COLOR_GREY, "You need to set rentable to 0");
  50681. return 1;
  50682. }
  50683. if(CarInfo[vehicle][tOwned] == 1)
  50684. {
  50685. SendClientMessage(playerid, COLOR_GREY, "This car is already owned");
  50686. return 1;
  50687. }
  50688. if(own > 1 || own < 0)
  50689. {
  50690. SendClientMessage(playerid, COLOR_GREY, " It can be only 1 or 0 !");
  50691. return 1;
  50692. }
  50693. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  50694. if(own == 1)
  50695. {
  50696. new VString[255];
  50697. new price = CarInfo[vehicle][tPrice];
  50698. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
  50699. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50700. CarInfo[vehicle][tInsured] = 0;
  50701. CarInfo[vehicle][tAlarm] = 0;
  50702. }
  50703. CarInfo[vehicle][tOwnable] = own;
  50704. format(string, sizeof(string), "You have set this car's ownership to %d.", own);
  50705. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50706. return 1;
  50707. }
  50708. else if(strcmp(x_job,"Rentable",true) == 0)
  50709. {
  50710. tmp = strtok(cmdtext, idx);
  50711. new own = strvalEx(tmp);
  50712. new vehicle = GetPlayerVehicleID(playerid);
  50713. if(!strlen(tmp))
  50714. {
  50715. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Rentable [0-1]");
  50716. return 1;
  50717. }
  50718. if(CarInfo[vehicle][tOwnable] == 1)
  50719. {
  50720. SendClientMessage(playerid, COLOR_GREY, "You need to set ownable to 0");
  50721. return 1;
  50722. }
  50723. if(CarInfo[vehicle][tOwned] == 1)
  50724. {
  50725. SendClientMessage(playerid, COLOR_GREY, "This car is already owned");
  50726. return 1;
  50727. }
  50728. if(own > 1 || own < 0)
  50729. {
  50730. SendClientMessage(playerid, COLOR_GREY, " It can be only 1 or 0 !");
  50731. return 1;
  50732. }
  50733. if(CarInfo[vehicle][tPrice] == 0 && own > 1)
  50734. return SendClientMessage(playerid, COLOR_GREY, " You need to set the vehicle price first!");
  50735.  
  50736. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  50737. if(own == 1)
  50738. {
  50739. new VString[255];
  50740. new price = CarInfo[vehicle][tPrice];
  50741. format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
  50742. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50743. CarInfo[vehicle][tInsured] = 1;
  50744. CarInfo[vehicle][tAlarm] = 1;
  50745. }
  50746. CarInfo[vehicle][tRentable] = own;
  50747. format(string, sizeof(string), "You have set this car's rentable to %d.", own);
  50748. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50749. return 1;
  50750. }
  50751. else if(strcmp(x_job,"Faction",true) == 0)
  50752. {
  50753. tmp = strtok(cmdtext, idx);
  50754. new faction = strvalEx(tmp);
  50755. new vehicle = GetPlayerVehicleID(playerid);
  50756. if(!strlen(tmp))
  50757. {
  50758. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Faction [0-10]");
  50759. return 1;
  50760. }
  50761. if(CarInfo[vehicle][tVIP] != 0 || CarInfo[vehicle][tGang] != 0 || CarInfo[vehicle][tOwnable] != 0 || CarInfo[vehicle][tDisabled] != 0)
  50762. {
  50763. SendClientMessage(playerid, COLOR_GREY, " This car is already a VIP/Gang/Ownable/Disabled car !");
  50764. return 1;
  50765. }
  50766. if(faction > 10 || faction < 0)
  50767. {
  50768. SendClientMessage(playerid, COLOR_GREY, " Faction can't be higer than 10 and lower than 0 !");
  50769. return 1;
  50770. }
  50771. CarInfo[vehicle][tFaction] = faction;
  50772. format(string, sizeof(string), "You have set this car's faction to %d.", faction);
  50773. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50774. return 1;
  50775. }
  50776. else if(strcmp(x_job,"VIP",true) == 0)
  50777. {
  50778. tmp = strtok(cmdtext, idx);
  50779. new level = strvalEx(tmp);
  50780. new vehicle = GetPlayerVehicleID(playerid);
  50781. if(!strlen(tmp))
  50782. {
  50783. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar VIP [0-3]");
  50784. return 1;
  50785. }
  50786. if(CarInfo[vehicle][tFaction] != 0 || CarInfo[vehicle][tGang] != 0 || CarInfo[vehicle][tOwnable] != 0 || CarInfo[vehicle][tDisabled] != 0)
  50787. {
  50788. SendClientMessage(playerid, COLOR_GREY, " This car is already a Faction/Gang/Ownable/Disabled car !");
  50789. return 1;
  50790. }
  50791. if(level > 3 || level < 0)
  50792. {
  50793. SendClientMessage(playerid, COLOR_GREY, " VIP level can't be higer than 3 !");
  50794. return 1;
  50795. }
  50796. CarInfo[vehicle][tVIP] = level;
  50797. format(string, sizeof(string), "You have set this car's VIP level to %d.", level);
  50798. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50799. return 1;
  50800. }
  50801. else if(strcmp(x_job,"Price",true) == 0)
  50802. {
  50803. tmp = strtok(cmdtext, idx);
  50804. new price = strvalEx(tmp);
  50805. new vehicle = GetPlayerVehicleID(playerid);
  50806. if(!strlen(tmp))
  50807. {
  50808. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Price [Price]");
  50809. return 1;
  50810. }
  50811. if(CarInfo[vehicle][tOwned] == 1)
  50812. {
  50813. SendClientMessage(playerid, COLOR_GREY, "This car is owned, you can't do this right now");
  50814. return 1;
  50815. }
  50816. if(price > 25000000 || price < 0)
  50817. {
  50818. SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0 or higer than $25,000,000 !");
  50819. return 1;
  50820. }
  50821. CarInfo[vehicle][tPrice] = price;
  50822. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  50823. new VString[255];
  50824. if(CarInfo[vehicle][tOwnable] == 1)
  50825. {
  50826. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
  50827. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50828. }
  50829. else if(CarInfo[vehicle][tRentable] == 1)
  50830. {
  50831. format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
  50832. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50833. }
  50834. format(string, sizeof(string), "You have set this car's price to %d.", price);
  50835. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50836. return 1;
  50837. }
  50838.  
  50839.  
  50840. else if(strcmp(x_job,"Plate",true) == 0)
  50841. {
  50842. new length = strlen(cmdtext);
  50843. new vehicle = GetPlayerVehicleID(playerid);
  50844. while ((idx < length) && (cmdtext[idx] <= ' '))
  50845. {
  50846. idx++;
  50847. }
  50848. new offset = idx;
  50849. new result[9];
  50850. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  50851. {
  50852. result[idx - offset] = cmdtext[idx];
  50853. idx++;
  50854. }
  50855. result[idx - offset] = EOS;
  50856. if(!strlen(result))
  50857. {
  50858. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Plate [PlateNumber]");
  50859. return 1;
  50860. }
  50861. if(InvalidChar(result) == 1)
  50862. {
  50863. SendClientMessage(playerid, COLOR_GREY, " ERROR: cannot contain invalid characters !");
  50864. return 1;
  50865. }
  50866. strmid(CarInfo[vehicle][tLicensePlate], result, 0, strlen(result), 9);
  50867. format(string, sizeof(string), "You have set this vehicle plate to %s.", result);
  50868. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50869. return 1;
  50870. }
  50871.  
  50872.  
  50873. else if(strcmp(x_job,"Disabled",true) == 0)
  50874. {
  50875. tmp = strtok(cmdtext, idx);
  50876. new disabled = strvalEx(tmp);
  50877. new vehicle = GetPlayerVehicleID(playerid);
  50878. if(!strlen(tmp))
  50879. {
  50880. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Disabled [0-1]");
  50881. return 1;
  50882. }
  50883. if(CarInfo[vehicle][tOwned] == 1)
  50884. {
  50885. SendClientMessage(playerid, COLOR_GREY, "This car is owned, you can't do this right now");
  50886. return 1;
  50887. }
  50888. if(disabled > 1 || disabled < 0)
  50889. {
  50890. SendClientMessage(playerid, COLOR_GREY, "It can be only 1 or 0.");
  50891. return 1;
  50892. }
  50893. CarInfo[vehicle][tDisabled] = disabled;
  50894. format(string, sizeof(string), "You have set this car's disable option to %d.", disabled);
  50895. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  50896. return 1;
  50897. }
  50898. else if(strcmp(x_job,"Sellcar",true) == 0)
  50899. {
  50900. new x_nr[32];
  50901. new vehicle = GetPlayerVehicleID(playerid);
  50902. x_nr = strtok(cmdtext, idx);
  50903. if(!strlen(x_nr))
  50904. {
  50905. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcar Sellcar [confirm]");
  50906. return 1;
  50907. }
  50908. if(strcmp(x_nr,"confirm",true) == 0)
  50909. {
  50910. if(CarInfo[vehicle][tOwned] == 0)
  50911. {
  50912. SendClientMessage(playerid, COLOR_GRAD1, "This car is not owned.");
  50913. return 1;
  50914. }
  50915. DestroyDynamic3DTextLabel(VehicleLabel[vehicle]);
  50916. new VString[255];
  50917. new price = CarInfo[vehicle][tPrice];
  50918. if(CarInfo[vehicle][tOwnable] == 1)
  50919. {
  50920. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
  50921. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50922. }
  50923. else if(CarInfo[vehicle][tRentable] == 1)
  50924. {
  50925. format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
  50926. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  50927. }
  50928. new engine,lights,alarm,doors,bonnet,boot,objective;
  50929. GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
  50930. SetVehicleParamsEx(vehicle,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  50931. CarInfo[vehicle][tOwned] = 0;
  50932. strmid(CarInfo[vehicle][tOwner], "The State", 0, strlen("The State"), 255);
  50933. strmid(CarInfo[vehicle][tLicensePlate], "RG:RP", 0, strlen("RG:RP"), 255);
  50934. CarInfo[vehicle][tLock] = 0;
  50935. CarInfo[vehicle][tEngine] = 0;
  50936. ClearVehicleComponents(vehicle);
  50937. SendClientMessage(playerid,COLOR_YELLOW, "Car sold !");
  50938. }
  50939. }
  50940. else { return 1; }
  50941. }
  50942. return 1;
  50943. }
  50944. if(strcmp(cmd,"/sellcartomarket",true) == 0)
  50945. {
  50946. new x_nr[32];
  50947. new vehicle = GetPlayerVehicleID(playerid);
  50948. x_nr = strtok(cmdtext, idx);
  50949. if(!strlen(x_nr))
  50950. {
  50951. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcartomarket [confirm]");
  50952. SendClientMessage(playerid, COLOR_YELLOW,"You will get 80 percent from your vehicle price. Are you sure you wanna do this ?");
  50953. return 1;
  50954. }
  50955. if(!IsAtDealership(playerid))
  50956. {
  50957. SendClientMessage(playerid, COLOR_RED, "You need to be at a dealership to do this.");
  50958. return 1;
  50959. }
  50960. if(!IsPlayerInAnyVehicle(playerid))
  50961. {
  50962. SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
  50963. return 1;
  50964. }
  50965. if(GetPlayerState(playerid) != 2)
  50966. {
  50967. SendClientMessage(playerid, COLOR_GREY, "You need to be on the driver seat to sell the car.");
  50968. return 1;
  50969. }
  50970. if(CarInfo[vehicle][tRentable] == 1)
  50971. {
  50972. SendClientMessage(playerid, COLOR_WHITE, "You can't sell this car.");
  50973. return 1;
  50974. }
  50975. if(strcmp(x_nr,"confirm",true) == 0)
  50976. {
  50977. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3])
  50978. {
  50979. new engine,lights,alarm,doors,bonnet,boot,objective;
  50980. new ownvehkey;
  50981. GetPlayerName(playerid, sendername, sizeof(sendername));
  50982. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { ownvehkey = PlayerInfo[playerid][pCarKey1]; }
  50983. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { ownvehkey = PlayerInfo[playerid][pCarKey2]; }
  50984. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { ownvehkey = PlayerInfo[playerid][pCarKey3]; }
  50985. if(strcmp(sendername, CarInfo[ownvehkey][tOwner], true) == 0)
  50986. {
  50987. if(CarInfo[ownvehkey][Neon] == 1)
  50988. {
  50989. DestroyObject(ObjectSelect[ownvehkey][0]);
  50990. DestroyObject(ObjectSelect[ownvehkey][1]);
  50991. CarInfo[ownvehkey][Neon] = 0;
  50992. }
  50993. new Float:vehx, Float:vehy, Float:vehz;
  50994. new Float:z_rot;
  50995. GetVehicleZAngle(ownvehkey, z_rot);
  50996. GetVehiclePos(ownvehkey, vehx, vehy, vehz);
  50997. new VString[255];
  50998. new price = CarInfo[ownvehkey][tPrice];
  50999. DestroyDynamic3DTextLabel(VehicleLabel[ownvehkey]);
  51000. format(VString,sizeof(VString),"Vehicle for sale ! \nPrice: $%d", price);
  51001. VehicleLabel[ownvehkey] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_RED, CarInfo[ownvehkey][tLocationx],CarInfo[ownvehkey][tLocationy],CarInfo[ownvehkey][tLocationz], 20, INVALID_PLAYER_ID, ownvehkey, 0, -1, -1, -1, 100.0);
  51002. new percent = CarInfo[ownvehkey][tPrice] / 100 * 80;
  51003. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+percent;
  51004. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  51005. GetVehicleParamsEx(ownvehkey,engine,lights,alarm,doors,bonnet,boot,objective);
  51006. SetVehicleParamsEx(ownvehkey,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51007. CarInfo[ownvehkey][tOwned] = 0;
  51008. CarInfo[ownvehkey][tInsured] = 0;
  51009. CarInfo[ownvehkey][tAlarm] = 0;
  51010. CarInfo[ownvehkey][tVehRemote] = 0;
  51011. CarInfo[ownvehkey][tLock] = 0;
  51012. CarInfo[ownvehkey][tEngine] = 0;
  51013. CarInfo[ownvehkey][tLocationx] = vehx;
  51014. CarInfo[ownvehkey][tLocationy] = vehy;
  51015. CarInfo[ownvehkey][tLocationz] = vehz;
  51016. CarInfo[ownvehkey][tAngle] = z_rot;
  51017. strmid(CarInfo[ownvehkey][tOwner], "The State", 0, strlen("The State"), 255);
  51018. format(string, sizeof(string), "You have sold your car for $%d.", percent);
  51019. SendClientMessage(playerid, COLOR_YELLOW, string);
  51020. RemovePlayerFromVehicle(playerid);
  51021. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  51022. ClearVehicleComponents(ownvehkey);
  51023. if(vehicle == PlayerInfo[playerid][pCarKey1]) { PlayerInfo[playerid][pCarKey1] = 0; }
  51024. if(vehicle == PlayerInfo[playerid][pCarKey2]) { PlayerInfo[playerid][pCarKey2] = 0; }
  51025. if(vehicle == PlayerInfo[playerid][pCarKey3]) { PlayerInfo[playerid][pCarKey3] = 0; }
  51026. return 1;
  51027. }
  51028. }
  51029. else
  51030. {
  51031. SendClientMessage(playerid, COLOR_GRAD1, "You don't own this car.");
  51032. return 1;
  51033. }
  51034. }
  51035. return 1;
  51036. }
  51037. if(strcmp(cmd,"/unrentcar",true) == 0)
  51038. {
  51039. new x_nr[32];
  51040. new vehicle = GetPlayerVehicleID(playerid);
  51041. x_nr = strtok(cmdtext, idx);
  51042. if(!strlen(x_nr))
  51043. {
  51044. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unrentcar [confirm]");
  51045. return 1;
  51046. }
  51047. if(!IsPlayerInAnyVehicle(playerid))
  51048. {
  51049. SendClientMessage(playerid, COLOR_RED, "You need to be in a car to do this.");
  51050. return 1;
  51051. }
  51052. if(GetPlayerState(playerid) != 2)
  51053. {
  51054. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to sell the car");
  51055. return 1;
  51056. }
  51057. if(CarInfo[vehicle][tOwnable] == 1)
  51058. {
  51059. SendClientMessage(playerid, COLOR_WHITE, "You can't sell this car");
  51060. return 1;
  51061. }
  51062. if(strcmp(x_nr,"confirm",true) == 0)
  51063. {
  51064. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
  51065. {
  51066. new engine,lights,alarm,doors,bonnet,boot,objective;
  51067. new ownvehkey = PlayerInfo[playerid][pRentKey];
  51068. GetPlayerName(playerid, sendername, sizeof(sendername));
  51069. if(strcmp(sendername, CarInfo[ownvehkey][tOwner], true) == 0)
  51070. {
  51071. new Float:vehx, Float:vehy, Float:vehz;
  51072. new Float:z_rot;
  51073. GetVehicleZAngle(ownvehkey, z_rot);
  51074. GetVehiclePos(ownvehkey, vehx, vehy, vehz);
  51075. new VString[255];
  51076. new price = CarInfo[ownvehkey][tPrice];
  51077. DestroyDynamic3DTextLabel(VehicleLabel[ownvehkey]);
  51078. format(VString,sizeof(VString),"Vehicle is Rentable ! \nPrice: $%d/Paycheck", price);
  51079. VehicleLabel[vehicle] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, CarInfo[vehicle][tLocationx],CarInfo[vehicle][tLocationy],CarInfo[vehicle][tLocationz], 20, INVALID_PLAYER_ID, vehicle, 0, -1, -1, -1, 100.0);
  51080. GetVehicleParamsEx(ownvehkey,engine,lights,alarm,doors,bonnet,boot,objective);
  51081. SetVehicleParamsEx(ownvehkey,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51082. CarInfo[ownvehkey][tOwned] = 0;
  51083. CarInfo[ownvehkey][tVehRemote] = 0;
  51084. CarInfo[ownvehkey][tLock] = 0;
  51085. CarInfo[ownvehkey][tEngine] = 0;
  51086. CarInfo[ownvehkey][tLocationx] = vehx;
  51087. CarInfo[ownvehkey][tLocationy] = vehy;
  51088. CarInfo[ownvehkey][tLocationz] = vehz;
  51089. CarInfo[ownvehkey][tAngle] = z_rot;
  51090. strmid(CarInfo[ownvehkey][tOwner], "The State", 0, strlen("The State"), 255);
  51091. format(string, sizeof(string), "You do not rent this car anymore");
  51092. SendClientMessage(playerid, COLOR_YELLOW, string);
  51093. RemovePlayerFromVehicle(playerid);
  51094. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  51095. ClearVehicleComponents(ownvehkey);
  51096. PlayerInfo[playerid][pRentKey] = 0;
  51097. return 1;
  51098. }
  51099. }
  51100. else
  51101. {
  51102. SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
  51103. return 1;
  51104. }
  51105. }
  51106. return 1;
  51107. }
  51108. if(strcmp(cmd, "/lock", true) == 0)
  51109. {
  51110. if(IsPlayerConnected(playerid))
  51111. {
  51112. if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0 && PlayerInfo[playerid][pRentKey] == 0)
  51113. {
  51114. SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle !");
  51115. return 1;
  51116. }
  51117. new engine,lights,alarm,doors,bonnet,boot,objective;
  51118. new carlock = PlayerInfo[playerid][pCarKey1];
  51119. new carlock2 = PlayerInfo[playerid][pCarKey2];
  51120. new carlock3 = TempKey[playerid];
  51121. new carlock4 = PlayerInfo[playerid][pCarKey3];
  51122. new carlock5 = PlayerInfo[playerid][pRentKey];
  51123. new Float:cX, Float:cY, Float:cZ;
  51124. new Float:cX2, Float:cY2, Float:cZ2;
  51125. new Float:cX3, Float:cY3, Float:cZ3;
  51126. new Float:cX4, Float:cY4, Float:cZ4;
  51127. new Float:cX5, Float:cY5, Float:cZ5;
  51128. GetVehiclePos(carlock, cX, cY, cZ);
  51129. GetVehiclePos(carlock2, cX2, cY2, cZ2);
  51130. GetVehiclePos(carlock3, cX3, cY3, cZ3);
  51131. GetVehiclePos(carlock4, cX4, cY4, cZ4);
  51132. GetVehiclePos(carlock5, cX5, cY5, cZ5);
  51133. if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
  51134. {
  51135. GetPlayerName(playerid, sendername, sizeof(sendername));
  51136. if(CarInfo[carlock][tLock] == 0)
  51137. {
  51138. GetVehicleParamsEx(carlock,engine,lights,alarm,doors,bonnet,boot,objective);
  51139. SetVehicleParamsEx(carlock,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  51140. CarInfo[carlock][tLock] = 1;
  51141. CarInfo[carlock][tAlarmStarted] = 0;
  51142. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
  51143. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51144. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51145. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51146. format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
  51147. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51148. lock1(playerid, carlock);
  51149. return 1;
  51150. }
  51151. else if(CarInfo[carlock][tLock] == 1)
  51152. {
  51153. GetVehicleParamsEx(carlock,engine,lights,alarm,doors,bonnet,boot,objective);
  51154. SetVehicleParamsEx(carlock,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51155. CarInfo[carlock][tLock] = 0;
  51156. CarInfo[carlock][tAlarmStarted] = 0;
  51157. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  51158. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51159. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51160. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51161. format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
  51162. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51163. lock1(playerid, carlock);
  51164. return 1;
  51165. }
  51166. }
  51167. else if(IsPlayerInRangeOfPoint(playerid, 4, cX2, cY2, cZ2))
  51168. {
  51169. GetPlayerName(playerid, sendername, sizeof(sendername));
  51170. if(CarInfo[carlock2][tLock] == 0)
  51171. {
  51172. GetVehicleParamsEx(carlock2,engine,lights,alarm,doors,bonnet,boot,objective);
  51173. SetVehicleParamsEx(carlock2,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  51174. CarInfo[carlock2][tLock] = 1;
  51175. CarInfo[carlock][tAlarmStarted] = 0;
  51176. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
  51177. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51178. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51179. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51180. format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
  51181. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51182. lock1(playerid, carlock2);
  51183. return 1;
  51184. }
  51185. else if(CarInfo[carlock2][tLock] == 1)
  51186. {
  51187. GetVehicleParamsEx(carlock2,engine,lights,alarm,doors,bonnet,boot,objective);
  51188. SetVehicleParamsEx(carlock2,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51189. CarInfo[carlock2][tLock] = 0;
  51190. CarInfo[carlock2][tAlarmStarted] = 0;
  51191. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  51192. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51193. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51194. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51195. format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
  51196. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51197. lock1(playerid, carlock2);
  51198. return 1;
  51199. }
  51200. }
  51201. else if(IsPlayerInRangeOfPoint(playerid, 4, cX3, cY3, cZ3))
  51202. {
  51203. GetPlayerName(playerid, sendername, sizeof(sendername));
  51204. if(CarInfo[carlock3][tLock] == 0)
  51205. {
  51206. GetVehicleParamsEx(carlock3,engine,lights,alarm,doors,bonnet,boot,objective);
  51207. SetVehicleParamsEx(carlock3,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  51208. CarInfo[carlock3][tLock] = 1;
  51209. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
  51210. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51211. GetPlayerName(playerid, sendername, sizeof(sendername));
  51212. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51213. format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
  51214. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51215. return 1;
  51216. }
  51217. else if(CarInfo[carlock3][tLock] == 1)
  51218. {
  51219. GetVehicleParamsEx(carlock3,engine,lights,alarm,doors,bonnet,boot,objective);
  51220. SetVehicleParamsEx(carlock3,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51221. CarInfo[carlock3][tLock] = 0;
  51222. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  51223. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51224. GetPlayerName(playerid, sendername, sizeof(sendername));
  51225. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51226. format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
  51227. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51228. return 1;
  51229. }
  51230. }
  51231. else if(IsPlayerInRangeOfPoint(playerid, 4, cX4, cY4, cZ4))
  51232. {
  51233. GetPlayerName(playerid, sendername, sizeof(sendername));
  51234. if(CarInfo[carlock4][tLock] == 0)
  51235. {
  51236. GetVehicleParamsEx(carlock4,engine,lights,alarm,doors,bonnet,boot,objective);
  51237. SetVehicleParamsEx(carlock4,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  51238. CarInfo[carlock4][tLock] = 1;
  51239. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
  51240. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51241. GetPlayerName(playerid, sendername, sizeof(sendername));
  51242. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51243. format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
  51244. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51245. return 1;
  51246. }
  51247. else if(CarInfo[carlock4][tLock] == 1)
  51248. {
  51249. GetVehicleParamsEx(carlock4,engine,lights,alarm,doors,bonnet,boot,objective);
  51250. SetVehicleParamsEx(carlock4,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51251. CarInfo[carlock4][tLock] = 0;
  51252. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  51253. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51254. GetPlayerName(playerid, sendername, sizeof(sendername));
  51255. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51256. format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
  51257. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51258. return 1;
  51259. }
  51260. }
  51261. else if(IsPlayerInRangeOfPoint(playerid, 4, cX5, cY5, cZ5))
  51262. {
  51263. GetPlayerName(playerid, sendername, sizeof(sendername));
  51264. if(CarInfo[carlock5][tLock] == 0)
  51265. {
  51266. GetVehicleParamsEx(carlock5,engine,lights,alarm,doors,bonnet,boot,objective);
  51267. SetVehicleParamsEx(carlock5,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_ON,bonnet,boot,objective);
  51268. CarInfo[carlock5][tLock] = 1;
  51269. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {E31919}locked!");
  51270. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51271. GetPlayerName(playerid, sendername, sizeof(sendername));
  51272. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51273. format(string, sizeof(string), "* %s has locked their vehicle.", sendername);
  51274. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51275. return 1;
  51276. }
  51277. else if(CarInfo[carlock5][tLock] == 1)
  51278. {
  51279. GetVehicleParamsEx(carlock5,engine,lights,alarm,doors,bonnet,boot,objective);
  51280. SetVehicleParamsEx(carlock5,engine,lights,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
  51281. CarInfo[carlock5][tLock] = 0;
  51282. SendClientMessage(playerid, COLOR_WHITE, "Vehicle {2F991A}unlocked!");
  51283. PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  51284. GetPlayerName(playerid, sendername, sizeof(sendername));
  51285. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51286. format(string, sizeof(string), "* %s has unlocked their vehicle.", sendername);
  51287. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51288. return 1;
  51289. }
  51290. }
  51291. else
  51292. {
  51293. SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
  51294. return 1;
  51295. }
  51296. }
  51297. return 1;
  51298. }
  51299.  
  51300. if(strcmp(cmd,"/park",true) == 0)
  51301. {
  51302. new vehicle = GetPlayerVehicleID(playerid);
  51303. if(!IsPlayerInAnyVehicle(playerid))
  51304. {
  51305. SendClientMessage(playerid, COLOR_RED, " You need to be in a car to do this");
  51306. return 1;
  51307. }
  51308. if(GetPlayerState(playerid) != 2)
  51309. {
  51310. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to park the car");
  51311. return 1;
  51312. }
  51313. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
  51314. {
  51315. new mycar;
  51316. new Float:health;
  51317. GetVehicleHealth(vehicle, health);
  51318. GetPlayerName(playerid, sendername, sizeof(sendername));
  51319. if(health < 200)
  51320. {
  51321. SendClientMessage(playerid, COLOR_GREY, " You can't do this if your vehicle health is less than 200");
  51322. return 1;
  51323. }
  51324. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { mycar = PlayerInfo[playerid][pCarKey1]; }
  51325. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { mycar = PlayerInfo[playerid][pCarKey2]; }
  51326. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { mycar = PlayerInfo[playerid][pCarKey3]; }
  51327. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey]) { mycar = PlayerInfo[playerid][pRentKey]; }
  51328. if(strcmp(sendername, CarInfo[mycar][tOwner], true) == 0)
  51329. {
  51330. new Float:vehx, Float:vehy, Float:vehz;
  51331. new Float:z_rot;
  51332. new plate[9];
  51333. strmid(plate, CarInfo[vehicle][tLicensePlate], 0, strlen(CarInfo[vehicle][tLicensePlate]), 255);
  51334. GetVehicleZAngle(mycar, z_rot);
  51335. GetVehiclePos(mycar, vehx, vehy, vehz);
  51336. CarInfo[mycar][tLocationx] = vehx;
  51337. CarInfo[mycar][tLocationy] = vehy;
  51338. CarInfo[mycar][tLocationz] = vehz;
  51339. CarInfo[mycar][tAngle] = z_rot;
  51340. SaveVehicleComponents(vehicle);
  51341. SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle has been successfully parked. It will respawn in this place");
  51342. return 1;
  51343. }
  51344. }
  51345. else
  51346. {
  51347. SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
  51348. return 1;
  51349. }
  51350. return 1;
  51351. }
  51352.  
  51353. if(strcmp(cmd,"/clearmods",true) == 0)
  51354. {
  51355. new vehicle = GetPlayerVehicleID(playerid);
  51356. if(!IsPlayerInAnyVehicle(playerid))
  51357. {
  51358. SendClientMessage(playerid, COLOR_RED, " You need to be in a car to do this");
  51359. return 1;
  51360. }
  51361. if(GetPlayerState(playerid) != 2)
  51362. {
  51363. SendClientMessage(playerid, COLOR_GREY, " You need to be on the driver seat to sell the car");
  51364. return 1;
  51365. }
  51366. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey])
  51367. {
  51368. new mycar;
  51369. new Float:health;
  51370. GetVehicleHealth(vehicle, health);
  51371. GetPlayerName(playerid, sendername, sizeof(sendername));
  51372. if(health < 200)
  51373. {
  51374. SendClientMessage(playerid, COLOR_GREY, " You can't do this if your vehicle health is less than 200");
  51375. return 1;
  51376. }
  51377. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey1]) { mycar = PlayerInfo[playerid][pCarKey1]; }
  51378. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { mycar = PlayerInfo[playerid][pCarKey2]; }
  51379. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { mycar = PlayerInfo[playerid][pCarKey3]; }
  51380. else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pRentKey]) { mycar = PlayerInfo[playerid][pRentKey]; }
  51381. if(strcmp(sendername, CarInfo[mycar][tOwner], true) == 0)
  51382. {
  51383. ClearVehicleComponents(vehicle);
  51384. SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle will be removed after the next respawn.");
  51385. return 1;
  51386. }
  51387. }
  51388. else
  51389. {
  51390. SendClientMessage(playerid, COLOR_GRAD1, " You don't own this car !");
  51391. return 1;
  51392. }
  51393. return 1;
  51394. }
  51395.  
  51396. if(strcmp(cmd,"/lights",true) == 0)
  51397. {
  51398. new engine,lights,alarm,doors,bonnet,boot,objective;
  51399. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  51400. {
  51401. GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  51402. if(lights==1)
  51403. {
  51404. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
  51405. return 1;
  51406. }
  51407. else
  51408. {
  51409. SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
  51410. return 1;
  51411. }
  51412. }
  51413. }
  51414.  
  51415. if(strcmp(cmd,"/engine",true) == 0)
  51416. {
  51417. new engine,lights,alarm,doors,bonnet,boot,objective;
  51418. new vehid = GetPlayerVehicleID(playerid);
  51419. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  51420. {
  51421. if(vehid == 481 || vehid == 509 || vehid == 510)
  51422. return 1;
  51423. GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
  51424. if(engine<=0)
  51425. {
  51426. GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
  51427. SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
  51428. }
  51429. else
  51430. {
  51431. GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
  51432. SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
  51433. }
  51434. }
  51435. }
  51436.  
  51437. if(strcmp(cmd,"/hood",true) == 0)
  51438. {
  51439. new counter = 0;
  51440. new result;
  51441. new engine,lights,alarm,doors,bonnet,boot,objective;
  51442. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51443. new plyName[MAX_PLAYER_NAME];
  51444.  
  51445. GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
  51446. for(new i; i != MAX_VEHICLES; i++)
  51447. {
  51448. new dist = CheckPlayerDistanceToVehicle(4, playerid, i);
  51449. if(dist)
  51450. {
  51451. result = i;
  51452. counter++;
  51453. }
  51454. }
  51455. switch(counter)
  51456. {
  51457. case 0:
  51458. {
  51459. SendClientMessage(playerid, COLOR_GREY, " No cars with hood near you");
  51460. }
  51461.  
  51462. case 1:
  51463. {
  51464. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) != 2)
  51465. {
  51466. SendClientMessage(playerid, COLOR_GREY, " You can't open the hood from a passenger seat");
  51467. return 1;
  51468. }
  51469. if(GetPlayerState(playerid) == 2 && CarInfo[result][tVehRemote] == 0)
  51470. {
  51471. SendClientMessage(playerid, COLOR_GREY, " This car doesn't have a remote for the hood");
  51472. return 1;
  51473. }
  51474. if(IsAPlane(result) || IsABike(result) || IsAHelicopter(result) || IsATrain(result) || IsABoat(result) || IsABus(result) || GetVehicleModel(GetPlayerVehicleID(result)) == 523)
  51475. {
  51476. SendClientMessage(playerid, COLOR_GREY, " This vehicle doesn't have a hood !");
  51477. return 1;
  51478. }
  51479.  
  51480. if(CarInfo[result][tHoodOpened] == 0)
  51481. {
  51482. GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
  51483. SetVehicleParamsEx(result,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
  51484. CarInfo[result][tHoodOpened] = 1;
  51485. SendClientMessage(playerid, COLOR_WHITE, "Hood {2F991A}open!");
  51486. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51487. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51488. format(string, sizeof(string), "* %s has opened the hood.", sendername);
  51489. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51490. return 1;
  51491. }
  51492. else if(CarInfo[result][tHoodOpened] == 1)
  51493. {
  51494. GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
  51495. SetVehicleParamsEx(result,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
  51496. CarInfo[result][tHoodOpened] = 0;
  51497. SendClientMessage(playerid, COLOR_WHITE, "Hood {E31919}closed!");
  51498. GetPlayerNameEx(playerid, sendername, sizeof(sendername));
  51499. if(PlayerInfo[playerid][pMask] == 1){ sendername = "Stranger"; }
  51500. format(string, sizeof(string), "* %s has closed the hood.", sendername);
  51501. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  51502. return 1;
  51503. }
  51504. }
  51505. default:
  51506. {
  51507. SendClientMessage(playerid, COLOR_GREY, " Found more then one car in range");
  51508. return 1;
  51509. }
  51510. }
  51511. return 1;
  51512. }
  51513.  
  51514. if(strcmp(cmd, "/sellcar", true) == 0)
  51515. {
  51516. if(IsPlayerConnected(playerid))
  51517. {
  51518. if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0)
  51519. {
  51520. SendClientMessage(playerid, COLOR_GREY, " You don't have a vehicle !");
  51521. return 1;
  51522. }
  51523. if(IsPlayerInAnyVehicle(playerid))
  51524. {
  51525. SendClientMessage(playerid, COLOR_GREY, " You can't sell your vehicle while you're inside it");
  51526. return 1;
  51527. }
  51528. new carlock = PlayerInfo[playerid][pCarKey1];
  51529. new carlock2 = PlayerInfo[playerid][pCarKey2];
  51530. new carlock3 = PlayerInfo[playerid][pCarKey3];
  51531. new Float:cX, Float:cY, Float:cZ;
  51532. new Float:cX2, Float:cY2, Float:cZ2;
  51533. new Float:cX3, Float:cY3, Float:cZ3;
  51534. GetVehiclePos(carlock, cX, cY, cZ);
  51535. GetVehiclePos(carlock2, cX2, cY2, cZ2);
  51536. GetVehiclePos(carlock3, cX3, cY3, cZ3);
  51537. tmp = strtok(cmdtext, idx);
  51538. if(!strlen(tmp))
  51539. {
  51540. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcar [playerid/PartOfName] [price]");
  51541. return 1;
  51542. }
  51543. new money;
  51544. giveplayerid = ReturnUser(tmp);
  51545. tmp = strtok(cmdtext, idx);
  51546. if(!strlen(tmp))
  51547. {
  51548. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcar [playerid/PartOfName] [price]");
  51549. return 1;
  51550. }
  51551. money = strvalEx(tmp);
  51552. if(money < 0 || money > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $50,000,000 !"); return 1; }
  51553. if(IsPlayerConnected(giveplayerid))
  51554. {
  51555. if(giveplayerid != INVALID_PLAYER_ID)
  51556. {
  51557. if(ProxDetectorS(4.0, playerid, giveplayerid))
  51558. {
  51559. if(giveplayerid == playerid)
  51560. {
  51561. SendClientMessage(playerid, COLOR_GREY, " You can't sell the car to yourself !");
  51562. return 1;
  51563. }
  51564. if(IsPlayerInRangeOfPoint(playerid, 4, cX, cY, cZ))
  51565. {
  51566. if(PlayerInfo[giveplayerid][pCarKey1] != 0 && PlayerInfo[giveplayerid][pCarKey2] != 0)
  51567. {
  51568. SendClientMessage(playerid, COLOR_RED, "** This player already got 2 vehicles");
  51569. return 1;
  51570. }
  51571. if(PlayerInfo[giveplayerid][pLevel] < 2)
  51572. {
  51573. SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
  51574. return 1;
  51575. }
  51576. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  51577. GetPlayerName(playerid, sendername, sizeof(sendername));
  51578. format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
  51579. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51580. format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
  51581. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  51582. VehicleOffer[giveplayerid] = playerid;
  51583. VehiclePrice[giveplayerid] = money;
  51584. VehicleSellID[giveplayerid] = carlock;
  51585. }
  51586. else if(IsPlayerInRangeOfPoint(playerid, 4, cX2, cY2, cZ2))
  51587. {
  51588. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  51589. GetPlayerName(playerid, sendername, sizeof(sendername));
  51590. format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
  51591. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51592. format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
  51593. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  51594. VehicleOffer[giveplayerid] = playerid;
  51595. VehiclePrice[giveplayerid] = money;
  51596. VehicleSellID[giveplayerid] = carlock2;
  51597. }
  51598. else if(IsPlayerInRangeOfPoint(playerid, 4, cX3, cY3, cZ3))
  51599. {
  51600. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  51601. GetPlayerName(playerid, sendername, sizeof(sendername));
  51602. format(string, sizeof(string), "* You offered to sell your car to %s for $%d.", giveplayer, money);
  51603. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51604. format(string, sizeof(string), "* %s offered you the contract of his vehicle for $%d, (type /accept vehicle) to accept.", sendername, money);
  51605. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  51606. VehicleOffer[giveplayerid] = playerid;
  51607. VehiclePrice[giveplayerid] = money;
  51608. VehicleSellID[giveplayerid] = carlock3;
  51609. }
  51610. else
  51611. {
  51612. SendClientMessage(playerid, COLOR_GREY, " You are too far away from your vehicle !");
  51613. return 1;
  51614. }
  51615. }
  51616. else
  51617. {
  51618. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  51619. }
  51620. }
  51621. }
  51622. else
  51623. {
  51624. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  51625. }
  51626. }
  51627. return 1;
  51628. }
  51629.  
  51630. if(strcmp(cmd, "/sellhouse", true) == 0)
  51631. {
  51632. if(IsPlayerConnected(playerid))
  51633. {
  51634. if(PlayerInfo[playerid][pHouseKey] == 999)
  51635. {
  51636. SendClientMessage(playerid, COLOR_GREY, " You don't have a house !");
  51637. return 1;
  51638. }
  51639. if(HouseInfo[PlayerInfo[playerid][pHouseKey]][hRenters] != 0)
  51640. {
  51641. SendClientMessage(playerid, COLOR_GREY,"You need to evict the current renters before doing this");
  51642. return 1;
  51643. }
  51644. tmp = strtok(cmdtext, idx);
  51645. if(!strlen(tmp))
  51646. {
  51647. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellhouse [playerid/PartOfName] [price]");
  51648. return 1;
  51649. }
  51650. new money;
  51651. giveplayerid = ReturnUser(tmp);
  51652. tmp = strtok(cmdtext, idx);
  51653. if(!strlen(tmp))
  51654. {
  51655. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellhouse [playerid/PartOfName] [price]");
  51656. return 1;
  51657. }
  51658. money = strvalEx(tmp);
  51659. if(money < 0 || money > 50000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $50,000,000 !"); return 1; }
  51660. if(IsPlayerConnected(giveplayerid))
  51661. {
  51662. if(giveplayerid != INVALID_PLAYER_ID)
  51663. {
  51664. if(ProxDetectorS(4.0, playerid, giveplayerid))
  51665. {
  51666. if(giveplayerid == playerid)
  51667. {
  51668. SendClientMessage(playerid, COLOR_GREY, " You can't sell the house to yourself !");
  51669. return 1;
  51670. }
  51671. if(PlayerInfo[giveplayerid][pHouseKey] != 999 || PlayerInfo[giveplayerid][pRenthouse] != 999)
  51672. {
  51673. SendClientMessage(playerid, COLOR_RED, "** This player already got a house / has rented one");
  51674. return 1;
  51675. }
  51676. if(PlayerInfo[giveplayerid][pLevel] < 2)
  51677. {
  51678. SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
  51679. return 1;
  51680. }
  51681. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  51682. GetPlayerName(playerid, sendername, sizeof(sendername));
  51683. format(string, sizeof(string), "* You offered to sell your house to %s for $%d.", giveplayer, money);
  51684. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51685. format(string, sizeof(string), "* %s offered you the contract of his house for $%d, (type /accept house) to accept.", sendername, money);
  51686. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  51687. HouseOffer[giveplayerid] = playerid;
  51688. HousePrice[giveplayerid] = money;
  51689. HouseSellID[giveplayerid] = PlayerInfo[playerid][pHouseKey];
  51690. }
  51691. else
  51692. {
  51693. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  51694. }
  51695. }
  51696. }
  51697. else
  51698. {
  51699. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  51700. }
  51701. }
  51702. return 1;
  51703. }
  51704.  
  51705. if(strcmp(cmd, "/sellbiz", true) == 0)
  51706. {
  51707. if(IsPlayerConnected(playerid))
  51708. {
  51709. if(PlayerInfo[playerid][pBizKey] == 999)
  51710. {
  51711. SendClientMessage(playerid, COLOR_GREY, " You don't have a business !");
  51712. return 1;
  51713. }
  51714. tmp = strtok(cmdtext, idx);
  51715. if(!strlen(tmp))
  51716. {
  51717. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellbiz [playerid/PartOfName] [price]");
  51718. return 1;
  51719. }
  51720. new money;
  51721. giveplayerid = ReturnUser(tmp);
  51722. tmp = strtok(cmdtext, idx);
  51723. if(!strlen(tmp))
  51724. {
  51725. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellbiz [playerid/PartOfName] [price]");
  51726. return 1;
  51727. }
  51728. money = strvalEx(tmp);
  51729. if(money < 0 || money > 100000000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $0, or above $100,000,000 !"); return 1; }
  51730. if(IsPlayerConnected(giveplayerid))
  51731. {
  51732. if(giveplayerid != INVALID_PLAYER_ID)
  51733. {
  51734. if(ProxDetectorS(4.0, playerid, giveplayerid))
  51735. {
  51736. if(giveplayerid == playerid)
  51737. {
  51738. SendClientMessage(playerid, COLOR_GREY, " You can't sell the business to yourself !");
  51739. return 1;
  51740. }
  51741. if(PlayerInfo[giveplayerid][pBizKey] != 999)
  51742. {
  51743. SendClientMessage(playerid, COLOR_RED, "** This player already got a business");
  51744. return 1;
  51745. }
  51746. if(PlayerInfo[giveplayerid][pLevel] < 2)
  51747. {
  51748. SendClientMessage(playerid, COLOR_RED, "** This player is not level 2 or higher");
  51749. return 1;
  51750. }
  51751. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  51752. GetPlayerName(playerid, sendername, sizeof(sendername));
  51753. format(string, sizeof(string), "* You offered to sell your business to %s for $%d.", giveplayer, money);
  51754. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51755. format(string, sizeof(string), "* %s offered you the contract of his business for $%d, (type /accept business) to accept.", sendername, money);
  51756. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  51757. BizOffer[giveplayerid] = playerid;
  51758. BizPrice[giveplayerid] = money;
  51759. BizSellID[giveplayerid] = PlayerInfo[playerid][pBizKey];
  51760. }
  51761. else
  51762. {
  51763. SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
  51764. }
  51765. }
  51766. }
  51767. else
  51768. {
  51769. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  51770. }
  51771. }
  51772. return 1;
  51773. }
  51774.  
  51775. if(strcmp(cmd, "/editcarmodel", true) == 0)
  51776. {
  51777. if(IsPlayerConnected(playerid))
  51778. {
  51779. if(PlayerInfo[playerid][pAdmin] >= 6)
  51780. {
  51781. tmp = strtok(cmdtext, idx);
  51782. if(!strlen(tmp))
  51783. {
  51784. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcarmodel [vehid] [model]");
  51785. return 1;
  51786. }
  51787. new carid;
  51788. carid = strvalEx(tmp);
  51789. tmp = strtok(cmdtext, idx);
  51790. if(!strlen(tmp))
  51791. {
  51792. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editcarmodel [vehid] [model]");
  51793. return 1;
  51794. }
  51795. new newmodel = ReturnVehicleModelID(tmp);
  51796. if(!newmodel)
  51797. return SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
  51798. if(IsATrain(newmodel))
  51799. {
  51800. SendClientMessage(playerid, COLOR_GREY, " Invalid vehicle model name/ID.");
  51801. return 1;
  51802. }
  51803. GetPlayerName(playerid, sendername, sizeof(sendername));
  51804. format(string, sizeof(string), "* You changed the car's model to %d.", newmodel);
  51805. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51806. CarInfo[carid][tModel] = newmodel;
  51807. DestroyVehicle(carid);
  51808. CarSys[carid] = CreateVehicle(CarInfo[carid][tModel],CarInfo[carid][tLocationx],CarInfo[carid][tLocationy],CarInfo[carid][tLocationz],CarInfo[carid][tAngle],CarInfo[carid][tColorOne],CarInfo[carid][tColorTwo],60000);
  51809. }
  51810. }
  51811. return 1;
  51812. }
  51813.  
  51814. if(strcmp(cmd, "/getcarhere", true) == 0)
  51815. {
  51816. if(IsPlayerConnected(playerid))
  51817. {
  51818. if(PlayerInfo[playerid][pAdmin] >= 5)
  51819. {
  51820. tmp = strtok(cmdtext, idx);
  51821. if(!strlen(tmp))
  51822. {
  51823. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcarhere [vehid]");
  51824. return 1;
  51825. }
  51826. new Float:plocx,Float:plocy,Float:plocz;
  51827. new carid;
  51828. carid = strvalEx(tmp);
  51829. format(string, sizeof(string), "* You you teleported car id %d to you.", carid);
  51830. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  51831. GetPlayerPos(playerid, plocx, plocy, plocz);
  51832. SetVehiclePos(carid, plocx, plocy+4, plocz);
  51833. }
  51834. else { return 1; }
  51835. }
  51836. return 1;
  51837. }
  51838.  
  51839. if(strcmp(cmd, "/sethouseint", true) == 0)
  51840. {
  51841. if(IsPlayerConnected(playerid))
  51842. {
  51843. if(PlayerInfo[playerid][pAdmin] < 5)
  51844. {
  51845. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
  51846. return 1;
  51847. }
  51848. tmp = strtok(cmdtext, idx);
  51849. new houseid = strvalEx(tmp);
  51850. if(!strlen(tmp))
  51851. {
  51852. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethouseint [HouseID] [Number (1-39)]");
  51853. SendClientMessage(playerid, COLOR_GREY, "Level 1: 1-4 | Level 3: 5-14 | Level 6: 13-24 | Level 9: 25-32 | Level 12: 30-36 | Level 15: 36-38");
  51854. return 1;
  51855. }
  51856. tmp = strtok(cmdtext, idx);
  51857. if(!strlen(tmp))
  51858. {
  51859. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sethouseint [HouseID] [Number (1-38)]");
  51860. SendClientMessage(playerid, COLOR_GREY, "Level 1: 1-4 | Level 3: 5-14 | Level 6: 13-24 | Level 9: 25-32 | Level 12: 30-36 | Level 15: 36-38");
  51861. return 1;
  51862. }
  51863. new interior = strvalEx(tmp);
  51864. if(interior < 1 || interior > 38) { SendClientMessage(playerid, COLOR_GREY, " The number must be between 1 - 38 !"); return 1; }
  51865. if(interior == 1)
  51866. {
  51867. new vw = 1000 + random(199999999999999999);
  51868. HouseInfo[houseid][hIntLocationx] = 2233.5900;
  51869. HouseInfo[houseid][hIntLocationy] = -1115.2609;
  51870. HouseInfo[houseid][hIntLocationz] = 1050.8828;
  51871. HouseInfo[houseid][hInterior] = 5;
  51872. HouseInfo[houseid][hVirtualWorld] = vw;
  51873. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51874. return 1;
  51875. }
  51876. else if(interior == 2)
  51877. {
  51878. new vw = 1000 + random(199999999999999999);
  51879. HouseInfo[houseid][hIntLocationx] = 243.7221;
  51880. HouseInfo[houseid][hIntLocationy] = 305.0240;
  51881. HouseInfo[houseid][hIntLocationz] = 999.1484;
  51882. HouseInfo[houseid][hInterior] = 1;
  51883. HouseInfo[houseid][hVirtualWorld] = vw;
  51884. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51885. return 1;
  51886. }
  51887. else if(interior == 3)
  51888. {
  51889. new vw = 1000 + random(199999999999999999);
  51890. HouseInfo[houseid][hIntLocationx] = 266.4985;
  51891. HouseInfo[houseid][hIntLocationy] = 304.9835;
  51892. HouseInfo[houseid][hIntLocationz] = 999.1484;
  51893. HouseInfo[houseid][hInterior] = 2;
  51894. HouseInfo[houseid][hVirtualWorld] = vw;
  51895. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51896. return 1;
  51897. }
  51898. else if(interior == 4)
  51899. {
  51900. new vw = 1000 + random(199999999999999999);
  51901. HouseInfo[houseid][hIntLocationx] = 343.7192;
  51902. HouseInfo[houseid][hIntLocationy] = 305.0291;
  51903. HouseInfo[houseid][hIntLocationz] = 999.1484;
  51904. HouseInfo[houseid][hInterior] = 6;
  51905. HouseInfo[houseid][hVirtualWorld] = vw;
  51906. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51907. return 1;
  51908. }
  51909. else if(interior == 5)
  51910. {
  51911. new vw = 1000 + random(199999999999999999);
  51912. HouseInfo[houseid][hIntLocationx] = 2259.3930;
  51913. HouseInfo[houseid][hIntLocationy] = -1135.8746;
  51914. HouseInfo[houseid][hIntLocationz] = 1050.6402;
  51915. HouseInfo[houseid][hInterior] = 10;
  51916. HouseInfo[houseid][hVirtualWorld] = vw;
  51917. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51918. return 1;
  51919. }
  51920. else if(interior == 6)
  51921. {
  51922. new vw = 1000 + random(199999999999999999);
  51923. HouseInfo[houseid][hIntLocationx] = 2282.9777;
  51924. HouseInfo[houseid][hIntLocationy] = -1140.2847;
  51925. HouseInfo[houseid][hIntLocationz] = 1050.8984;
  51926. HouseInfo[houseid][hInterior] = 11;
  51927. HouseInfo[houseid][hVirtualWorld] = vw;
  51928. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51929. return 1;
  51930. }
  51931. else if(interior == 7)
  51932. {
  51933. new vw = 1000 + random(199999999999999999);
  51934. HouseInfo[houseid][hIntLocationx] = 2218.3999;
  51935. HouseInfo[houseid][hIntLocationy] = -1076.2231;
  51936. HouseInfo[houseid][hIntLocationz] = 1050.4843;
  51937. HouseInfo[houseid][hInterior] = 1;
  51938. HouseInfo[houseid][hVirtualWorld] = vw;
  51939. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51940. return 1;
  51941. }
  51942. else if(interior == 8)
  51943. {
  51944. new vw = 1000 + random(199999999999999999);
  51945. HouseInfo[houseid][hIntLocationx] = 2807.5756;
  51946. HouseInfo[houseid][hIntLocationy] = -1174.7543;
  51947. HouseInfo[houseid][hIntLocationz] = 1025.5703;
  51948. HouseInfo[houseid][hInterior] = 8;
  51949. HouseInfo[houseid][hVirtualWorld] = vw;
  51950. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51951. return 1;
  51952. }
  51953. else if(interior == 9)
  51954. {
  51955. new vw = 1000 + random(199999999999999999);
  51956. HouseInfo[houseid][hIntLocationx] = 223.1762;
  51957. HouseInfo[houseid][hIntLocationy] = 1287.0762;
  51958. HouseInfo[houseid][hIntLocationz] = 1082.1406;
  51959. HouseInfo[houseid][hInterior] = 1;
  51960. HouseInfo[houseid][hVirtualWorld] = vw;
  51961. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51962. return 1;
  51963. }
  51964. else if(interior == 10)
  51965. {
  51966. new vw = 1000 + random(199999999999999999);
  51967. HouseInfo[houseid][hIntLocationx] = -68.8836;
  51968. HouseInfo[houseid][hIntLocationy] = 1351.2192;
  51969. HouseInfo[houseid][hIntLocationz] = 1080.2109;
  51970. HouseInfo[houseid][hInterior] = 6;
  51971. HouseInfo[houseid][hVirtualWorld] = vw;
  51972. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51973. return 1;
  51974. }
  51975. else if(interior == 11)
  51976. {
  51977. new vw = 1000 + random(199999999999999999);
  51978. HouseInfo[houseid][hIntLocationx] = -42.6845;
  51979. HouseInfo[houseid][hIntLocationy] = 1405.4793;
  51980. HouseInfo[houseid][hIntLocationz] = 1084.4296;
  51981. HouseInfo[houseid][hInterior] = 8;
  51982. HouseInfo[houseid][hVirtualWorld] = vw;
  51983. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51984. return 1;
  51985. }
  51986. else if(interior == 12)
  51987. {
  51988. new vw = 1000 + random(199999999999999999);
  51989. HouseInfo[houseid][hIntLocationx] = 260.9575;
  51990. HouseInfo[houseid][hIntLocationy] = 1284.3038;
  51991. HouseInfo[houseid][hIntLocationz] = 1080.2578;
  51992. HouseInfo[houseid][hInterior] = 4;
  51993. HouseInfo[houseid][hVirtualWorld] = vw;
  51994. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  51995. return 1;
  51996. }
  51997. else if(interior == 13)
  51998. {
  51999. new vw = 1000 + random(199999999999999999);
  52000. HouseInfo[houseid][hIntLocationx] = 226.7381;
  52001. HouseInfo[houseid][hIntLocationy] = 1239.9285;
  52002. HouseInfo[houseid][hIntLocationz] = 1082.1406;
  52003. HouseInfo[houseid][hInterior] = 2;
  52004. HouseInfo[houseid][hVirtualWorld] = vw;
  52005. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52006. return 1;
  52007. }
  52008. else if(interior == 14)
  52009. {
  52010. new vw = 1000 + random(199999999999999999);
  52011. HouseInfo[houseid][hIntLocationx] = 387.2211;
  52012. HouseInfo[houseid][hIntLocationy] = 1471.7757;
  52013. HouseInfo[houseid][hIntLocationz] = 1080.1875;
  52014. HouseInfo[houseid][hInterior] = 15;
  52015. HouseInfo[houseid][hVirtualWorld] = vw;
  52016. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52017. return 1;
  52018. }
  52019. else if(interior == 15)
  52020. {
  52021. new vw = 1000 + random(199999999999999999);
  52022. HouseInfo[houseid][hIntLocationx] = 2495.9848;
  52023. HouseInfo[houseid][hIntLocationy] = -1692.0913;
  52024. HouseInfo[houseid][hIntLocationz] = 1014.7421;
  52025. HouseInfo[houseid][hInterior] = 3;
  52026. HouseInfo[houseid][hVirtualWorld] = vw;
  52027. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52028. return 1;
  52029. }
  52030. else if(interior == 16)
  52031. {
  52032. new vw = 1000 + random(199999999999999999);
  52033. HouseInfo[houseid][hIntLocationx] = 2196.8471;
  52034. HouseInfo[houseid][hIntLocationy] = -1204.3968;
  52035. HouseInfo[houseid][hIntLocationz] = 1049.0234;
  52036. HouseInfo[houseid][hInterior] = 6;
  52037. HouseInfo[houseid][hVirtualWorld] = vw;
  52038. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52039. return 1;
  52040. }
  52041. else if(interior == 17)
  52042. {
  52043. new vw = 1000 + random(199999999999999999);
  52044. HouseInfo[houseid][hIntLocationx] = 2468.8386;
  52045. HouseInfo[houseid][hIntLocationy] = -1698.3994;
  52046. HouseInfo[houseid][hIntLocationz] = 1013.5078;
  52047. HouseInfo[houseid][hInterior] = 2;
  52048. HouseInfo[houseid][hVirtualWorld] = vw;
  52049. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52050. return 1;
  52051. }
  52052. else if(interior == 18)
  52053. {
  52054. new vw = 1000 + random(199999999999999999);
  52055. HouseInfo[houseid][hIntLocationx] = -2170.1291;
  52056. HouseInfo[houseid][hIntLocationy] = 639.5379;
  52057. HouseInfo[houseid][hIntLocationz] = 1052.3750;
  52058. HouseInfo[houseid][hInterior] = 1;
  52059. HouseInfo[houseid][hVirtualWorld] = vw;
  52060. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52061. return 1;
  52062. }
  52063. else if(interior == 19)
  52064. {
  52065. new vw = 1000 + random(199999999999999999);
  52066. HouseInfo[houseid][hIntLocationx] = 2365.3041;
  52067. HouseInfo[houseid][hIntLocationy] = -1135.5950;
  52068. HouseInfo[houseid][hIntLocationz] = 1050.8825;
  52069. HouseInfo[houseid][hInterior] = 8;
  52070. HouseInfo[houseid][hVirtualWorld] = vw;
  52071. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52072. return 1;
  52073. }
  52074. else if(interior == 20)
  52075. {
  52076. new vw = 1000 + random(199999999999999999);
  52077. HouseInfo[houseid][hIntLocationx] = 22.8334;
  52078. HouseInfo[houseid][hIntLocationy] = 1403.3395;
  52079. HouseInfo[houseid][hIntLocationz] = 1084.4370;
  52080. HouseInfo[houseid][hInterior] = 5;
  52081. HouseInfo[houseid][hVirtualWorld] = vw;
  52082. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52083. return 1;
  52084. }
  52085. else if(interior == 21)
  52086. {
  52087. new vw = 1000 + random(199999999999999999);
  52088. HouseInfo[houseid][hIntLocationx] = 260.7826;
  52089. HouseInfo[houseid][hIntLocationy] = 1237.2430;
  52090. HouseInfo[houseid][hIntLocationz] = 1084.2578;
  52091. HouseInfo[houseid][hInterior] = 9;
  52092. HouseInfo[houseid][hVirtualWorld] = vw;
  52093. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52094. return 1;
  52095. }
  52096. else if(interior == 22)
  52097. {
  52098. new vw = 1000 + random(199999999999999999);
  52099. HouseInfo[houseid][hIntLocationx] = 447.0823;
  52100. HouseInfo[houseid][hIntLocationy] = 1397.0650;
  52101. HouseInfo[houseid][hIntLocationz] = 1084.3046;
  52102. HouseInfo[houseid][hInterior] = 2;
  52103. HouseInfo[houseid][hVirtualWorld] = vw;
  52104. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52105. return 1;
  52106. }
  52107. else if(interior == 23)
  52108. {
  52109. new vw = 1000 + random(199999999999999999);
  52110. HouseInfo[houseid][hIntLocationx] = 327.9917;
  52111. HouseInfo[houseid][hIntLocationy] = 1477.7338;
  52112. HouseInfo[houseid][hIntLocationz] = 1084.4375;
  52113. HouseInfo[houseid][hInterior] = 15;
  52114. HouseInfo[houseid][hVirtualWorld] = vw;
  52115. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52116. return 1;
  52117. }
  52118. else if(interior == 24)
  52119. {
  52120. new vw = 1000 + random(199999999999999999);
  52121. HouseInfo[houseid][hIntLocationx] = 295.1070;
  52122. HouseInfo[houseid][hIntLocationy] = 1472.2603;
  52123. HouseInfo[houseid][hIntLocationz] = 1080.2578;
  52124. HouseInfo[houseid][hInterior] = 15;
  52125. HouseInfo[houseid][hVirtualWorld] = vw;
  52126. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52127. return 1;
  52128. }
  52129. else if(interior == 25)
  52130. {
  52131. new vw = 1000 + random(199999999999999999);
  52132. HouseInfo[houseid][hIntLocationx] = 250.8242;
  52133. HouseInfo[houseid][hIntLocationy] = 1034.8929;
  52134. HouseInfo[houseid][hIntLocationz] = 1084.7333;
  52135. HouseInfo[houseid][hInterior] = 7;
  52136. HouseInfo[houseid][hVirtualWorld] = vw;
  52137. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52138. return 1;
  52139. }
  52140. else if(interior == 26)
  52141. {
  52142. new vw = 1000 + random(199999999999999999);
  52143. HouseInfo[houseid][hIntLocationx] = 2324.4147;
  52144. HouseInfo[houseid][hIntLocationy] = -1149.5428;
  52145. HouseInfo[houseid][hIntLocationz] = 1050.7100;
  52146. HouseInfo[houseid][hInterior] = 12;
  52147. HouseInfo[houseid][hVirtualWorld] = vw;
  52148. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52149. return 1;
  52150. }
  52151. else if(interior == 27)
  52152. {
  52153. new vw = 1000 + random(199999999999999999);
  52154. HouseInfo[houseid][hIntLocationx] = 226.3068;
  52155. HouseInfo[houseid][hIntLocationy] = 1114.2946;
  52156. HouseInfo[houseid][hIntLocationz] = 1080.9929;
  52157. HouseInfo[houseid][hInterior] = 5;
  52158. HouseInfo[houseid][hVirtualWorld] = vw;
  52159. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52160. return 1;
  52161. }
  52162. else if(interior == 27)
  52163. {
  52164. new vw = 1000 + random(199999999999999999);
  52165. HouseInfo[houseid][hIntLocationx] = 226.3068;
  52166. HouseInfo[houseid][hIntLocationy] = 1114.2946;
  52167. HouseInfo[houseid][hIntLocationz] = 1080.9929;
  52168. HouseInfo[houseid][hInterior] = 5;
  52169. HouseInfo[houseid][hVirtualWorld] = vw;
  52170. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52171. return 1;
  52172. }
  52173. else if(interior == 28)
  52174. {
  52175. new vw = 1000 + random(199999999999999999);
  52176. HouseInfo[houseid][hIntLocationx] = 239.3817;
  52177. HouseInfo[houseid][hIntLocationy] = 1084.2050;
  52178. HouseInfo[houseid][hIntLocationz] = 1084.1875;
  52179. HouseInfo[houseid][hInterior] = 6;
  52180. HouseInfo[houseid][hVirtualWorld] = vw;
  52181. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52182. return 1;
  52183. }
  52184. else if(interior == 29)
  52185. {
  52186. new vw = 1000 + random(199999999999999999);
  52187. HouseInfo[houseid][hIntLocationx] = 964.5637;
  52188. HouseInfo[houseid][hIntLocationy] = -53.2487;
  52189. HouseInfo[houseid][hIntLocationz] = 1001.1171;
  52190. HouseInfo[houseid][hInterior] = 3;
  52191. HouseInfo[houseid][hVirtualWorld] = vw;
  52192. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52193. return 1;
  52194. }
  52195. else if(interior == 30)
  52196. {
  52197. new vw = 1000 + random(199999999999999999);
  52198. HouseInfo[houseid][hIntLocationx] = 235.3029;
  52199. HouseInfo[houseid][hIntLocationy] = 1186.6839;
  52200. HouseInfo[houseid][hIntLocationz] = 1080.2578;
  52201. HouseInfo[houseid][hInterior] = 3;
  52202. HouseInfo[houseid][hVirtualWorld] = vw;
  52203. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52204. return 1;
  52205. }
  52206. else if(interior == 31)
  52207. {
  52208. new vw = 1000 + random(199999999999999999);
  52209. HouseInfo[houseid][hIntLocationx] = 23.9488;
  52210. HouseInfo[houseid][hIntLocationy] = 1340.1629;
  52211. HouseInfo[houseid][hIntLocationz] = 1084.3750;
  52212. HouseInfo[houseid][hInterior] = 10;
  52213. HouseInfo[houseid][hVirtualWorld] = vw;
  52214. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52215. return 1;
  52216. }
  52217. else if(interior == 32)
  52218. {
  52219. new vw = 1000 + random(199999999999999999);
  52220. HouseInfo[houseid][hIntLocationx] = 83.0232;
  52221. HouseInfo[houseid][hIntLocationy] = 1322.3015;
  52222. HouseInfo[houseid][hIntLocationz] = 1083.8662;
  52223. HouseInfo[houseid][hInterior] = 9;
  52224. HouseInfo[houseid][hVirtualWorld] = vw;
  52225. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52226. return 1;
  52227. }
  52228. else if(interior == 33)
  52229. {
  52230. new vw = 1000 + random(199999999999999999);
  52231. HouseInfo[houseid][hIntLocationx] = 2317.7895;
  52232. HouseInfo[houseid][hIntLocationy] = -1026.7598;
  52233. HouseInfo[houseid][hIntLocationz] = 1050.2177;
  52234. HouseInfo[houseid][hInterior] = 9;
  52235. HouseInfo[houseid][hVirtualWorld] = vw;
  52236. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52237. return 1;
  52238. }
  52239. else if(interior == 34)
  52240. {
  52241. new vw = 1000 + random(199999999999999999);
  52242. HouseInfo[houseid][hIntLocationx] = -260.4846;
  52243. HouseInfo[houseid][hIntLocationy] = 1456.7402;
  52244. HouseInfo[houseid][hIntLocationz] = 1084.3671;
  52245. HouseInfo[houseid][hInterior] = 4;
  52246. HouseInfo[houseid][hVirtualWorld] = vw;
  52247. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52248. return 1;
  52249. }
  52250. else if(interior == 35)
  52251. {
  52252. new vw = 1000 + random(199999999999999999);
  52253. HouseInfo[houseid][hIntLocationx] = -283.4513;
  52254. HouseInfo[houseid][hIntLocationy] = 1471.0104;
  52255. HouseInfo[houseid][hIntLocationz] = 1084.3750;
  52256. HouseInfo[houseid][hInterior] = 15;
  52257. HouseInfo[houseid][hVirtualWorld] = vw;
  52258. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52259. return 1;
  52260. }
  52261. else if(interior == 36)
  52262. {
  52263. new vw = 1000 + random(199999999999999999);
  52264. HouseInfo[houseid][hIntLocationx] = 140.3275;
  52265. HouseInfo[houseid][hIntLocationy] = 1365.9403;
  52266. HouseInfo[houseid][hIntLocationz] = 1083.8593;
  52267. HouseInfo[houseid][hInterior] = 5;
  52268. HouseInfo[houseid][hVirtualWorld] = vw;
  52269. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52270. return 1;
  52271. }
  52272. else if(interior == 37)
  52273. {
  52274. new vw = 1000 + random(199999999999999999);
  52275. HouseInfo[houseid][hIntLocationx] = 1260.6484;
  52276. HouseInfo[houseid][hIntLocationy] = -785.3823;
  52277. HouseInfo[houseid][hIntLocationz] = 1091.9062;
  52278. HouseInfo[houseid][hInterior] = 5;
  52279. HouseInfo[houseid][hVirtualWorld] = vw;
  52280. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52281. return 1;
  52282. }
  52283. else if(interior == 38)
  52284. {
  52285. new vw = 1000 + random(199999999999999999);
  52286. HouseInfo[houseid][hIntLocationx] = 2548.7995;
  52287. HouseInfo[houseid][hIntLocationy] = -1294.8330;
  52288. HouseInfo[houseid][hIntLocationz] = 1060.9843;
  52289. HouseInfo[houseid][hInterior] = 2;
  52290. HouseInfo[houseid][hVirtualWorld] = vw;
  52291. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have changed this house interior.");
  52292. return 1;
  52293. }
  52294. }
  52295. return 1;
  52296. }
  52297.  
  52298. if(strcmp(cmdtext,"/rentroom",true)==0)
  52299. {
  52300. if(PlayerInfo[playerid][pHouseKey] == 999 && PlayerInfo[playerid][pRenthouse] == 999)
  52301. {
  52302. for(new h = 0; h < sizeof(HouseInfo); h++)
  52303. {
  52304. new owner[MAX_PLAYER_NAME];
  52305. strmid(owner, HouseInfo[h][hOwner], 0, strlen(HouseInfo[h][hOwner]), 255);
  52306. giveplayerid = ReturnUser(owner);
  52307. if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hLocation_x],HouseInfo[h][hLocation_y],HouseInfo[h][hLocation_z]))
  52308. {
  52309. if(IsPlayerConnected(giveplayerid))
  52310. {
  52311. if(HouseInfo[h][hOwned] == 0)
  52312. {
  52313. SendClientMessage(playerid,COLOR_GRAD1,"This house doesn't have an owner!");
  52314. return 1;
  52315. }
  52316. if(HouseInfo[h][hRentable] == 0)
  52317. {
  52318. SendClientMessage(playerid,COLOR_GRAD1,"This house is not rentable!");
  52319. return 1;
  52320. }
  52321. if(HouseInfo[h][hRenters] == HouseInfo[h][hLevel])
  52322. {
  52323. SendClientMessage(playerid,COLOR_GRAD1,"This house already have too many renters!");
  52324. return 1;
  52325. }
  52326. if(PlayerInfo[playerid][pCash] < HouseInfo[h][hRent])
  52327. {
  52328. SendClientMessage(playerid,COLOR_GRAD1,"You can't afford this!");
  52329. return 1;
  52330. }
  52331. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  52332. GetPlayerName(playerid, sendername, sizeof(sendername));
  52333. format(string, sizeof(string), "* You requested to rent a room in %s's house.", giveplayer);
  52334. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52335. format(string, sizeof(string), "* %s is requesting to rent a room in your house, (type /accept rent) to accept.", sendername);
  52336. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  52337. RentOffer[giveplayerid] = playerid;
  52338. RentPrice[giveplayerid] = HouseInfo[PlayerInfo[giveplayerid][pHouseKey]][hRent] ;
  52339. RentHouseID[giveplayerid] = PlayerInfo[giveplayerid][pHouseKey];
  52340. return 1;
  52341. }
  52342. else
  52343. {
  52344. SendClientMessage(playerid,COLOR_GRAD1,"The owner of this house is not online!");
  52345. return 1;
  52346. }
  52347. }
  52348. }
  52349. }
  52350. else
  52351. {
  52352. SendClientMessage(playerid,COLOR_GRAD1,"You already have bought/rented a house. Sell your house or /unrent before doing this!");
  52353. return 1;
  52354. }
  52355. }
  52356.  
  52357. if(strcmp(cmd,"/cancel",true)==0)
  52358. {
  52359. if(IsPlayerConnected(playerid))
  52360. {
  52361. new x_job[128];
  52362. x_job = strtok(cmdtext, idx);
  52363. if(!strlen(x_job)) {
  52364. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cancel [name]");
  52365. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Sex, Pot, Crack, Repair, Lawyer, Bodyguard, Live, Refill, Boxing");
  52366. SendClientMessage(playerid, COLOR_GRAD2, "Available names: Taxi, Bus, Medic, Mechanic, Ticket, Handshake, Witness, Marriage, Divorce");
  52367. SendClientMessage(playerid, COLOR_GRAD2, "Available names: Family, Faction, Contract, Vehicle, House, Rent, Business, Products");
  52368. return 1;
  52369. }
  52370. if(strcmp(x_job,"sex",true) == 0) { SexOffer[playerid] = 999; SexPrice[playerid] = 0; }
  52371. else if(strcmp(x_job,"pot",true) == 0) { PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; }
  52372. else if(strcmp(x_job,"crack",true) == 0) { CrackOffer[playerid] = 999; CrackPrice[playerid] = 0; CrackGram[playerid] = 0; }
  52373. else if(strcmp(x_job,"repair",true) == 0) { RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; }
  52374. else if(strcmp(x_job,"lawyer",true) == 0) { WantLawyer[playerid] = 0; CallLawyer[playerid] = 0; }
  52375. else if(strcmp(x_job,"bodyguard",true) == 0) { GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; }
  52376. else if(strcmp(x_job,"live",true) == 0) { LiveOffer[playerid] = 999; }
  52377. else if(strcmp(x_job,"refill",true) == 0) { RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; }
  52378. else if(strcmp(x_job,"products",true) == 0) { ProdOffer[playerid] = 999; ProdPrice[playerid] = 0; ProdAmount[playerid] = 0; }
  52379. else if(strcmp(x_job,"boxing",true) == 0) { BoxOffer[playerid] = 999; }
  52380. else if(strcmp(x_job,"witness",true) == 0) { MarryWitnessOffer[playerid] = 999; }
  52381. else if(strcmp(x_job,"marriage",true) == 0) { ProposeOffer[playerid] = 999; }
  52382. else if(strcmp(x_job,"keys",true) == 0) { TempKey[KeysOffer[playerid]] = 0; KeysOfferTo[KeysOffer[playerid]] = 999; KeysOffer[playerid] = 999; }
  52383. else if(strcmp(x_job,"divorce",true) == 0) { DivorceOffer[playerid] = 999; }
  52384. else if(strcmp(x_job,"family",true) == 0) { FamilyOffer[playerid] = 999; }
  52385. else if(strcmp(x_job,"faction",true) == 0) { FactionOffer[playerid] = 999; }
  52386. else if(strcmp(x_job,"rent",true) == 0) { RentOffer[playerid] = 999; }
  52387. else if(strcmp(x_job,"business",true) == 0) { BizOffer[playerid] = 999; BizPrice[playerid] = 0; BizSellID[playerid] = 0; }
  52388. else if(strcmp(x_job,"house",true) == 0) { HouseOffer[playerid] = 999; HousePrice[playerid] = 0; HouseSellID[playerid] = 0; }
  52389. else if(strcmp(x_job,"vehicle",true) == 0) { VehicleOffer[playerid] = 999; VehiclePrice[playerid] = 0; VehicleSellID[playerid] = 0; }
  52390. else if(strcmp(x_job,"ticket",true) == 0) { TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; }
  52391. else if(strcmp(x_job,"handshake",true) == 0) { HandshakeOffer[playerid] = 999; HandshakeType[playerid] = 0; }
  52392. else if(strcmp(x_job,"contract",true) == 0) { ContractOffer[playerid] = 999; ContractID[playerid] = 999; GoChase[playerid] = 999; }
  52393. else if(strcmp(x_job,"medic",true) == 0) { if(IsPlayerConnected(MedicCall)) { if(MedicCall == playerid) { MedicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You are not the current Caller !"); return 1; } } }
  52394. else if(strcmp(x_job,"mechanic",true) == 0) { if(IsPlayerConnected(MechanicCall)) { if(MechanicCall == playerid) { MechanicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You are not the current Caller !"); return 1; } } }
  52395. else if(strcmp(x_job,"taxi",true) == 0)
  52396. {
  52397. if(TaxiCall < 999)
  52398. {
  52399. if(TransportDuty[playerid] == 1 && TaxiCallTime[playerid] > 0)
  52400. {
  52401. TaxiAccepted[playerid] = 999;
  52402. GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
  52403. TaxiCallTime[playerid] = 0;
  52404. DisablePlayerCheckpoint(playerid);
  52405. TaxiCall = 999;
  52406. }
  52407. else
  52408. {
  52409. if(IsPlayerConnected(TaxiCall)) { if(TaxiCall == playerid) { TaxiCall = 999; } }
  52410. //foreach(Player, i)
  52411. for(new i; i<MAX_PLAYERS; i++)
  52412. {
  52413. if(IsPlayerConnected(i))
  52414. {
  52415. if(TaxiAccepted[i] < 999)
  52416. {
  52417. if(TaxiAccepted[i] == playerid)
  52418. {
  52419. TaxiAccepted[i] = 999;
  52420. GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Canceled the call", 5000, 1);
  52421. TaxiCallTime[i] = 0;
  52422. DisablePlayerCheckpoint(i);
  52423. }
  52424. }
  52425. }
  52426. }
  52427. }
  52428. }
  52429. }
  52430. else if(strcmp(x_job,"bus",true) == 0)
  52431. {
  52432. if(BusCall < 999)
  52433. {
  52434. if(TransportDuty[playerid] == 2 && BusCallTime[playerid] > 0)
  52435. {
  52436. BusAccepted[playerid] = 999;
  52437. GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
  52438. BusCallTime[playerid] = 0;
  52439. DisablePlayerCheckpoint(playerid);
  52440. BusCall = 999;
  52441. }
  52442. else
  52443. {
  52444. if(IsPlayerConnected(BusCall)) { if(BusCall == playerid) { BusCall = 999; } }
  52445. //foreach(Player, i)
  52446. for(new i; i<MAX_PLAYERS; i++)
  52447. {
  52448. if(IsPlayerConnected(i))
  52449. {
  52450. if(BusAccepted[i] < 999)
  52451. {
  52452. if(BusAccepted[i] == playerid)
  52453. {
  52454. BusAccepted[i] = 999;
  52455. GameTextForPlayer(i, "~w~Bus Caller~n~~r~Canceled the call", 5000, 1);
  52456. BusCallTime[i] = 0;
  52457. DisablePlayerCheckpoint(i);
  52458. }
  52459. }
  52460. }
  52461. }
  52462. }
  52463. }
  52464. }
  52465. else { return 1; }
  52466. format(string, sizeof(string), "* You have canceled the %s.", x_job);
  52467. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52468. }
  52469. return 1;
  52470. }
  52471. if(strcmp(cmd, "/accent", true) == 0)
  52472. {
  52473. new length = strlen(cmdtext);
  52474. while ((idx < length) && (cmdtext[idx] <= ' '))
  52475. {
  52476. idx++;
  52477. }
  52478. new offset = idx;
  52479. new result[16];
  52480. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  52481. {
  52482. result[idx - offset] = cmdtext[idx];
  52483. idx++;
  52484. }
  52485. result[idx - offset] = EOS;
  52486. if(!strlen(result))
  52487. {
  52488. SendClientMessage(playerid, COLOR_GREY, "USAGE: /accent [accent type] (set your accent as 'none' for no accent)");
  52489. return 1;
  52490. }
  52491. strmid(Accent[playerid], result, 0, strlen(result), 255);
  52492. format(string, sizeof(string), "You have changed your accent to '%s'.", Accent[playerid]);
  52493. SendClientMessage(playerid,COLOR_WHITE,string);
  52494. return 1;
  52495. }
  52496. if(strcmp(cmd,"/accept",true)==0)
  52497. {
  52498. if(IsPlayerConnected(playerid))
  52499. {
  52500. new x_job[128];
  52501. x_job = strtok(cmdtext, idx);
  52502. if(!strlen(x_job)) {
  52503. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accept [name]");
  52504. SendClientMessage(playerid, COLOR_GRAD1, "Available names: Sex, Pot, Crack, Repair, Lawyer, Vest, Job, Live, Refill, Frisk, Products");
  52505. SendClientMessage(playerid, COLOR_GRAD2, "Available names: Taxi, Bus, Boxing, Medic, Mechanic, Ticket, Family, Business, Vehicle, House, Rent");
  52506. return 1;
  52507. }
  52508. else if(strcmp(x_job,"frisk",true) == 0)
  52509. {
  52510. if(FriskOffer[playerid] < 999)
  52511. {
  52512. if(IsPlayerConnected(FriskOffer[playerid]))
  52513. {
  52514. if(ProxDetectorS(10.0, playerid, FriskOffer[playerid]))
  52515. {
  52516. GetPlayerName(FriskOffer[playerid], giveplayer, sizeof(giveplayer));
  52517. GetPlayerName(playerid, sendername, sizeof(sendername));
  52518. format(string, sizeof(string), "* You have accepted %s's request to frisk you", giveplayer);
  52519. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52520. format(string, sizeof(string), "* %s has accepted your request to frisk them", sendername);
  52521. SendClientMessage(FriskOffer[playerid], COLOR_LIGHTBLUE, string);
  52522. new WeaponName[65];
  52523. SendClientMessage(FriskOffer[playerid], COLOR_GREEN,"_______________________________________");
  52524. format(string, sizeof(string), "*** %s's Items ***", sendername);
  52525. SendClientMessage(FriskOffer[playerid], COLOR_WHITE, string);
  52526. if(PlayerInfo[playerid][pPot] > 0) { format(string, sizeof(string), "Marijuana [%dg]",PlayerInfo[playerid][pPot]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52527. if(PlayerInfo[playerid][pCrack] > 0) { format(string, sizeof(string), "Crack [%dg]",PlayerInfo[playerid][pCrack]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52528. if(PlayerInfo[playerid][pMats] > 0) { format(string, sizeof(string), "Materials [%d]",PlayerInfo[playerid][pMats]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52529. if(Packages[playerid] > 0) { format(string, sizeof(string), "Material Packages [%d]",Packages[playerid]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52530. if(PlayerInfo[playerid][pCigars] > 0) { format(string, sizeof(string), "Cigars [%d]",PlayerInfo[playerid][pCigars]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52531. if(PlayerInfo[playerid][pSpraycan] > 0) { format(string, sizeof(string), "Spraycan [%d]",PlayerInfo[playerid][pSpraycan]); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52532. if(Crates[playerid] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_BITEM, "Drug Crates"); }
  52533. if(Fishes[playerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { SendClientMessage(playerid, COLOR_GRAD3, "Fish"); }
  52534. if(PlayerInfo[playerid][pPhoneBook] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Phone Book"); }
  52535. if(PlayerInfo[playerid][pWatch] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Watch"); }
  52536. if(PlayerInfo[playerid][pSuitcase] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Suitcase"); }
  52537. if(PlayerInfo[playerid][pCDPlayer] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "CD Player"); }
  52538. if(PlayerInfo[playerid][pPnumber] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Cellphone"); }
  52539. if(PlayerInfo[playerid][pScrew] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Screwdriver"); }
  52540. if(PlayerInfo[playerid][pDice] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Dice"); }
  52541. if(PlayerInfo[playerid][pRope] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Rope"); }
  52542. if(PlayerInfo[playerid][pSprunk] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Sprunk"); }
  52543. if(PlayerInfo[playerid][pBombs] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "C4 Explosives"); }
  52544. if(PlayerInfo[playerid][pScope] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Sniper Scope"); }
  52545. if(HasBoughtMask[playerid] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Mask"); }
  52546. if(PlayerInfo[playerid][pBlindfolds] > 0) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Blindfold"); }
  52547. if(PlayerInfo[playerid][pGun0] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun0], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52548. if(PlayerInfo[playerid][pGun1] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun1], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52549. if(PlayerInfo[playerid][pGun2] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun2], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52550. if(PlayerInfo[playerid][pGun3] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun3], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52551. if(PlayerInfo[playerid][pGun4] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun4], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52552. if(PlayerInfo[playerid][pGun5] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun5], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52553. if(PlayerInfo[playerid][pGun6] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun6], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52554. if(PlayerInfo[playerid][pGun7] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun7], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52555. if(PlayerInfo[playerid][pGun8] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun8], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52556. if(PlayerInfo[playerid][pGun9] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun9], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52557. if(PlayerInfo[playerid][pGun10] != 0) { GetWeaponName(PlayerInfo[FriskOffer[playerid]][pGun10], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52558. if(PlayerInfo[playerid][pGun11] == 44) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Nightvision Goggles"); }
  52559. if(PlayerInfo[playerid][pGun11] == 45) { SendClientMessage(FriskOffer[playerid], COLOR_GRAD3, "Infared Goggles"); }
  52560. if(PlayerInfo[playerid][pGun12] != 0) { GetWeaponName(PlayerInfo[playerid][pGun12], WeaponName, 64); format(string, sizeof(string), "%s", WeaponName); SendClientMessage(FriskOffer[playerid], COLOR_BITEM, string); }
  52561. for (new weap = 1; weap < 47; weap++)
  52562. {
  52563. if(HaveAdminWeapon(giveplayerid, weap) == weap)
  52564. {
  52565. GetWeaponName(weap, WeaponName, 64);
  52566. format(string, sizeof(string), "Admin Given %s", WeaponName);
  52567. SendClientMessage(FriskOffer[playerid], COLOR_WHITE, string);
  52568. }
  52569. }
  52570. SendClientMessage(FriskOffer[playerid], COLOR_GREEN,"_______________________________________");
  52571. format(string, sizeof(string), "* %s has frisked %s for any illegal items.", PlayerName(FriskOffer[playerid]), PlayerName(playerid));
  52572. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  52573. FriskOffer[playerid] = 999;
  52574. return 1;
  52575. }
  52576. else
  52577. {
  52578. SendClientMessage(playerid, COLOR_GREY, " The frisk offerer is not near you !");
  52579. return 1;
  52580. }
  52581. }
  52582. }
  52583. else
  52584. {
  52585. SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a frisk offer !");
  52586. return 1;
  52587. }
  52588. }
  52589. else if(strcmp(x_job,"divorce",true) == 0)
  52590. {
  52591. if(DivorceOffer[playerid] < 999)
  52592. {
  52593. if(IsPlayerConnected(DivorceOffer[playerid]))
  52594. {
  52595. if(ProxDetectorS(10.0, playerid, DivorceOffer[playerid]))
  52596. {
  52597. GetPlayerName(DivorceOffer[playerid], giveplayer, sizeof(giveplayer));
  52598. GetPlayerName(playerid, sendername, sizeof(sendername));
  52599. format(string, sizeof(string), "* You have accepted %s's request to be their Marriage Witness.", giveplayer);
  52600. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52601. format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
  52602. SendClientMessage(DivorceOffer[playerid], COLOR_LIGHTBLUE, string);
  52603. ClearMarriage(playerid);
  52604. ClearMarriage(DivorceOffer[playerid]);
  52605. return 1;
  52606. }
  52607. else
  52608. {
  52609. SendClientMessage(playerid, COLOR_GREY, " The player that sent you the Divorce Papers is not near you !");
  52610. return 1;
  52611. }
  52612. }
  52613. }
  52614. else
  52615. {
  52616. SendClientMessage(playerid, COLOR_GREY, " Nobody sent you any Divorce Papers !");
  52617. return 1;
  52618. }
  52619. }
  52620. else if(strcmp(x_job,"family",true) == 0)
  52621. {
  52622. if(FamilyOffer[playerid] < 999)
  52623. {
  52624. if(IsPlayerConnected(FamilyOffer[playerid]))
  52625. {
  52626. if(PlayerInfo[FamilyOffer[playerid]][pFMember] != 255)
  52627. {
  52628. if(PlayerInfo[playerid][pFMember] != 255)
  52629. {
  52630. SendClientMessage(playerid, COLOR_GREY, " You are already in a Family !");
  52631. return 1;
  52632. }
  52633. new family = PlayerInfo[FamilyOffer[playerid]][pFMember];
  52634. GetPlayerName(playerid, sendername, sizeof(sendername));
  52635. GetPlayerName(FamilyOffer[playerid], giveplayer, sizeof(giveplayer));
  52636. format(string, sizeof(string), "* You have accepted %s's request to join %s, you are now a Member of it.", giveplayer, FamilyInfo[family][FamilyName]);
  52637. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52638. format(string, sizeof(string), "* %s has accepted your request and is now a Member of your Family.", sendername);
  52639. SendClientMessage(FamilyOffer[playerid], COLOR_LIGHTBLUE, string);
  52640. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
  52641. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  52642. TogglePlayerControllable(playerid, 0);
  52643. SetPlayerInterior(playerid, 0);
  52644. PlayerInfo[playerid][pFMember] = family;
  52645. PlayerInfo[playerid][pFRank] = 1;
  52646. SelectChar[playerid] = 255;
  52647. SelectCharPlace[playerid] = 1;
  52648. ChosenSkin[playerid] = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilySkin1];
  52649. SetPlayerSkin(playerid, ChosenSkin[playerid]);
  52650. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  52651. SelectCharID[playerid] = 11;
  52652. FamilyOffer[playerid] = 999;
  52653. FamilyInfo[family][FamilyMembers] ++;
  52654. SaveFamilies();
  52655. return 1;
  52656. }
  52657. else
  52658. {
  52659. SendClientMessage(playerid, COLOR_GREY, " The Player who invited you is no longer a Member of a Family !");
  52660. return 1;
  52661. }
  52662. }
  52663. }
  52664. else
  52665. {
  52666. SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a Family Invite !");
  52667. return 1;
  52668. }
  52669. }
  52670. else if(strcmp(x_job,"faction",true) == 0)
  52671. {
  52672. if(FactionOffer[playerid] < 999)
  52673. {
  52674. if(IsPlayerConnected(FactionOffer[playerid]))
  52675. {
  52676. if(PlayerInfo[FactionOffer[playerid]][pLeader] != 0)
  52677. {
  52678. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0)
  52679. {
  52680. SendClientMessage(playerid, COLOR_GREY, " You are already in a Faction !");
  52681. return 1;
  52682. }
  52683. new ftext[20];
  52684. GetPlayerName(playerid, sendername, sizeof(sendername));
  52685. GetPlayerName(FactionOffer[playerid], giveplayer, sizeof(giveplayer));
  52686. new faction = PlayerInfo[FactionOffer[playerid]][pLeader];
  52687. if(faction == 1) { ftext = "Police Force"; ChosenSkin[playerid] = 141; }
  52688. else if(faction == 2) { ftext = "FBI"; ChosenSkin[playerid] = 286; }
  52689. else if(faction == 3) { ftext = "SAST"; ChosenSkin[playerid] = 34; }
  52690. else if(faction == 4) { ftext = "Firemen/Ambulance"; ChosenSkin[playerid] = 279;}
  52691. else if(faction == 5) { ftext = "National Guards"; ChosenSkin[playerid] = 287; }
  52692. else if(faction == 6) { ftext = "Senate"; ChosenSkin[playerid] = 147; }
  52693. else if(faction == 7) { ftext = "CIA"; ChosenSkin[playerid] = 294; }
  52694. else if(faction == 8) { ftext = "Hitman Agency"; ChosenSkin[playerid] = 294; }
  52695. else if(faction == 9) { ftext = "News Agency"; ChosenSkin[playerid] = 150; }
  52696. else if(faction == 10) { ftext = "Taxi Cab Company"; ChosenSkin[playerid] = 61; }
  52697. format(string, sizeof(string), "* You have accepted %s's request to join the %s, you are now a Member of it.", giveplayer, ftext);
  52698. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52699. format(string, sizeof(string), "* %s has accepted your request and is now a Member of the %s.", sendername, ftext);
  52700. SendClientMessage(FactionOffer[playerid], COLOR_LIGHTBLUE, string);
  52701. SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
  52702. SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
  52703. PlayerInfo[playerid][pMember] = PlayerInfo[FactionOffer[playerid]][pLeader];
  52704. PlayerInfo[playerid][pRank] = 0;
  52705. TogglePlayerControllable(playerid, 0);
  52706. SetPlayerInterior(playerid, 0);
  52707. SelectChar[playerid] = 255;
  52708. SelectCharPlace[playerid] = 1;
  52709. SelectCharID[playerid] = faction;
  52710. SetPlayerSkin(playerid, ChosenSkin[playerid]);
  52711. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  52712. FactionOffer[playerid] = 999;
  52713. return 1;
  52714. }
  52715. else
  52716. {
  52717. SendClientMessage(playerid, COLOR_GREY, " The Player who invited you is no longer a Faction Leader !");
  52718. return 1;
  52719. }
  52720. }
  52721. }
  52722. else
  52723. {
  52724. SendClientMessage(playerid, COLOR_GREY, " Nobody sent you a Faction Invite !");
  52725. return 1;
  52726. }
  52727. }
  52728. else if(strcmp(x_job,"witness",true) == 0)
  52729. {
  52730. if(MarryWitnessOffer[playerid] < 999)
  52731. {
  52732. if(IsPlayerConnected(MarryWitnessOffer[playerid]))
  52733. {
  52734. if(ProxDetectorS(10.0, playerid, MarryWitnessOffer[playerid]))
  52735. {
  52736. GetPlayerName(MarryWitnessOffer[playerid], giveplayer, sizeof(giveplayer));
  52737. GetPlayerName(playerid, sendername, sizeof(sendername));
  52738. format(string, sizeof(string), "* You have accepted %s's request to be their Marriage Witness.", giveplayer);
  52739. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52740. format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
  52741. SendClientMessage(MarryWitnessOffer[playerid], COLOR_LIGHTBLUE, string);
  52742. MarryWitness[MarryWitnessOffer[playerid]] = playerid;
  52743. MarryWitnessOffer[playerid] = 999;
  52744. return 1;
  52745. }
  52746. else
  52747. {
  52748. SendClientMessage(playerid, COLOR_GREY, " The player that requested you to be their Marriage Witness is not near you !");
  52749. return 1;
  52750. }
  52751. }
  52752. }
  52753. else
  52754. {
  52755. SendClientMessage(playerid, COLOR_GREY, " Nobody has asked you to be their Marriage Witness !");
  52756. return 1;
  52757. }
  52758. }
  52759. else if(strcmp(x_job,"marriage",true) == 0)
  52760. {
  52761. if(ProposeOffer[playerid] < 999)
  52762. {
  52763. if(!IsPlayerInRangeOfPoint(playerid,10.0,-1988.6638,1117.8837,54.4726))
  52764. {
  52765. SendClientMessage(playerid, COLOR_GREY, " You are not at the Church in San Fierro !");
  52766. return 1;
  52767. }
  52768. if(IsPlayerConnected(ProposeOffer[playerid]))
  52769. {
  52770. if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid]))
  52771. {
  52772. if(MarryWitness[ProposeOffer[playerid]] == 999)
  52773. {
  52774. SendClientMessage(playerid, COLOR_GREY, " The proposer doesn't have a Marriage Witness !");
  52775. return 1;
  52776. }
  52777. if(IsPlayerConnected(MarryWitness[ProposeOffer[playerid]]))
  52778. {
  52779. if(ProxDetectorS(12.0, ProposeOffer[playerid], MarryWitness[ProposeOffer[playerid]]))
  52780. {
  52781. GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer));
  52782. GetPlayerName(playerid, sendername, sizeof(sendername));
  52783. format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer);
  52784. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52785. format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername);
  52786. SendClientMessage(ProposeOffer[playerid], COLOR_LIGHTBLUE, string);
  52787. format(string, sizeof(string), "Priest: %s do you take %s as your lovely Husband? (type 'yes', anything else will reject the Marriage)", sendername, giveplayer);
  52788. SendClientMessage(playerid, COLOR_WHITE, string);
  52789. MarriageCeremoney[playerid] = 1;
  52790. ProposedTo[ProposeOffer[playerid]] = playerid;
  52791. GotProposedBy[playerid] = ProposeOffer[playerid];
  52792. MarryWitness[ProposeOffer[playerid]] = 999;
  52793. ProposeOffer[playerid] = 999;
  52794. return 1;
  52795. }
  52796. else
  52797. {
  52798. SendClientMessage(playerid, COLOR_GREY, " The Marriage Witness is not near your proposer !");
  52799. return 1;
  52800. }
  52801. }
  52802. return 1;
  52803. }
  52804. else
  52805. {
  52806. SendClientMessage(playerid, COLOR_GREY, " The player that proposed to you is not near you !");
  52807. return 1;
  52808. }
  52809. }
  52810. }
  52811. else
  52812. {
  52813. SendClientMessage(playerid, COLOR_GREY, " Nobody Proposed to you !");
  52814. return 1;
  52815. }
  52816. }
  52817. else if(strcmp(x_job,"ticket",true) == 0)
  52818. {
  52819. if(TicketOffer[playerid] < 999)
  52820. {
  52821. if(IsPlayerConnected(TicketOffer[playerid]))
  52822. {
  52823. if(ProxDetectorS(5.0, playerid, TicketOffer[playerid]))
  52824. {
  52825. if(PlayerInfo[playerid][pCash] < TicketMoney[playerid])
  52826. {
  52827. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  52828. return 1;
  52829. }
  52830. GetPlayerName(TicketOffer[playerid], giveplayer, sizeof(giveplayer));
  52831. GetPlayerName(playerid, sendername, sizeof(sendername));
  52832. format(string, sizeof(string), "* You have paid the Ticket of $%d to Officer %s.", TicketMoney[playerid], giveplayer);
  52833. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52834. format(string, sizeof(string), "* %s has paid your Ticket of $%d.", sendername, TicketMoney[playerid]);
  52835. SendClientMessage(TicketOffer[playerid], COLOR_LIGHTBLUE, string);
  52836. format(string, sizeof(string), "* %s has paid the Ticket.", sendername);
  52837. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  52838. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-TicketMoney[playerid];
  52839. GivePlayerMoney(playerid, -TicketMoney[playerid]);
  52840. PlayerInfo[TicketOffer[playerid]][pCash] = PlayerInfo[TicketOffer[playerid]][pCash]+TicketMoney[playerid];
  52841. GivePlayerMoney(TicketOffer[playerid], TicketMoney[playerid]);
  52842. TicketOffer[playerid] = 999;
  52843. TicketMoney[playerid] = 0;
  52844. return 1;
  52845. }
  52846. else
  52847. {
  52848. SendClientMessage(playerid, COLOR_GREY, " The Officer is not near you !");
  52849. return 1;
  52850. }
  52851. }
  52852. }
  52853. else
  52854. {
  52855. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a Ticket !");
  52856. return 1;
  52857. }
  52858. }
  52859. else if(strcmp(x_job,"handshake",true) == 0)
  52860. {
  52861. if(HandshakeOffer[playerid] < 999)
  52862. {
  52863. if(IsPlayerConnected(HandshakeOffer[playerid]))
  52864. {
  52865. if(!IsPlayerInAnyVehicle(playerid))
  52866. {
  52867. if(ProxDetectorS(2.0, playerid, HandshakeOffer[playerid]))
  52868. {
  52869. GetPlayerName(HandshakeOffer[playerid], giveplayer, sizeof(giveplayer));
  52870. GetPlayerName(playerid, sendername, sizeof(sendername));
  52871. format(string, sizeof(string), "* You have shaken %s's hand.", giveplayer);
  52872. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52873. format(string, sizeof(string), "* %s has accepted the Handshake.", sendername);
  52874. SendClientMessage(HandshakeOffer[playerid], COLOR_LIGHTBLUE, string);
  52875. ClearAnimations(playerid);
  52876. ClearAnimations(HandshakeOffer[playerid]);
  52877. SetPlayerFacingPlayer(playerid, HandshakeOffer[playerid]);
  52878. SetPlayerFacingPlayer(HandshakeOffer[playerid], playerid);
  52879. if(HandshakeType[playerid] == 1)
  52880. {
  52881. ApplyAnimation(playerid, "GANGS","hndshkaa", 4.0,0,0,0,0,0);
  52882. ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkaa",4.0,0,0,0,0,0);
  52883. }
  52884. else if(HandshakeType[playerid] == 2)
  52885. {
  52886. ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
  52887. ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkba",4.0,0,0,0,0,0);
  52888. }
  52889. else if(HandshakeType[playerid] == 3)
  52890. {
  52891. ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
  52892. ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkda",4.0,0,0,0,0,0);
  52893. }
  52894. else if(HandshakeType[playerid] == 4)
  52895. {
  52896. ApplyAnimation(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
  52897. ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkea",4.0,0,0,0,0,0);
  52898. }
  52899. else if(HandshakeType[playerid] == 5)
  52900. {
  52901. ApplyAnimation(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
  52902. ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkfa",4.0,0,0,0,0,0);
  52903. }
  52904. else if(HandshakeType[playerid] == 6)
  52905. {
  52906. ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
  52907. ApplyAnimation(HandshakeOffer[playerid],"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
  52908. }
  52909. HandshakeOffer[playerid] = 999;
  52910. HandshakeType[playerid] = 0;
  52911. return 1;
  52912. }
  52913. else
  52914. {
  52915. SendClientMessage(playerid, COLOR_GREY, " You must be standing closer !");
  52916. return 1;
  52917. }
  52918. }
  52919. else
  52920. {
  52921. SendClientMessage(playerid, COLOR_GREY, " You must exit the vehicle !");
  52922. return 1;
  52923. }
  52924. }
  52925. }
  52926. else
  52927. {
  52928. SendClientMessage(playerid, COLOR_GREY, " Nobody offered to shake your hand !");
  52929. return 1;
  52930. }
  52931. }
  52932. else if(strcmp(x_job,"contract",true) == 0)
  52933. {
  52934. if(ContractOffer[playerid] < 999)
  52935. {
  52936. if(GoChase[playerid] == 999)
  52937. {
  52938. if(IsPlayerConnected(ContractOffer[playerid]))
  52939. {
  52940. if(PlayerInfo[ContractID[playerid]][pHeadValue] != 0)
  52941. {
  52942. new hitname[MAX_PLAYER_NAME];
  52943. GetPlayerName(playerid, sendername, sizeof(sendername));
  52944. GetPlayerName(ContractOffer[playerid], giveplayer, sizeof(giveplayer));
  52945. GetPlayerName(ContractID[playerid], hitname, sizeof(hitname));
  52946. format(string, sizeof(string), "* You have accepted the contract to kill %s, you will recieve $%d when completed.", hitname, PlayerInfo[ContractID[playerid]][pHeadValue]/2);
  52947. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  52948. format(string, sizeof(string), "* %s has accepted the contract to kill %s.", sendername, hitname);
  52949. SendClientMessage(ContractOffer[playerid], COLOR_LIGHTBLUE, string);
  52950. GoChase[playerid] = ContractID[playerid];
  52951. ContractOffer[playerid] = 999;
  52952. ContractID[playerid] = 999;
  52953. }
  52954. else
  52955. {
  52956. SendClientMessage(playerid, COLOR_GREY, " The contract has expired !");
  52957. return 1;
  52958. }
  52959. }
  52960. }
  52961. else
  52962. {
  52963. SendClientMessage(playerid, COLOR_GREY, " You are currently busy with a contract !");
  52964. return 1;
  52965. }
  52966. }
  52967. else
  52968. {
  52969. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a contract !");
  52970. return 1;
  52971. }
  52972. }
  52973. else if(strcmp(x_job,"boxing",true) == 0)
  52974. {
  52975. if(BoxOffer[playerid] < 999)
  52976. {
  52977. if(IsPlayerConnected(BoxOffer[playerid]))
  52978. {
  52979. new points;
  52980. new mypoints;
  52981. GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer));
  52982. GetPlayerName(playerid, sendername, sizeof(sendername));
  52983. new level = PlayerInfo[BoxOffer[playerid]][pBoxSkill];
  52984. if(level >= 0 && level <= 49) { points = 40; }
  52985. else if(level >= 50 && level <= 99) { points = 50; }
  52986. else if(level >= 100 && level <= 199) { points = 60; }
  52987. else if(level >= 200 && level <= 399) { points = 70; }
  52988. else if(level >= 400) { points = 80; }
  52989. if(PlayerInfo[playerid][pJob] == 12)
  52990. {
  52991. new clevel = PlayerInfo[playerid][pBoxSkill];
  52992. if(clevel >= 0 && clevel <= 49) { mypoints = 40; }
  52993. else if(clevel >= 50 && clevel <= 99) { mypoints = 50; }
  52994. else if(clevel >= 100 && clevel <= 199) { mypoints = 60; }
  52995. else if(clevel >= 200 && clevel <= 399) { mypoints = 70; }
  52996. else if(clevel >= 400) { mypoints = 80; }
  52997. }
  52998. else
  52999. {
  53000. mypoints = 30;
  53001. }
  53002. format(string, sizeof(string), "* You have accepted the Boxing Challenge from %s, and will fight with %d Health.",giveplayer,mypoints);
  53003. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53004. format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points);
  53005. SendClientMessage(BoxOffer[playerid], COLOR_LIGHTBLUE, string);
  53006. SetPlayerHealth(playerid, mypoints);
  53007. SetPlayerHealth(BoxOffer[playerid], points);
  53008. SetPlayerInterior(playerid, 5); SetPlayerInterior(BoxOffer[playerid], 5);
  53009. SetPlayerPos(playerid, 762.9852,2.4439,1001.5942); SetPlayerFacingAngle(playerid, 131.8632);
  53010. SetPlayerPos(BoxOffer[playerid], 758.7064,-1.8038,1001.5942); SetPlayerFacingAngle(BoxOffer[playerid], 313.1165);
  53011. TogglePlayerControllable(playerid, 0); TogglePlayerControllable(BoxOffer[playerid], 0);
  53012. SetCameraBehindPlayer(playerid);
  53013. SetCameraBehindPlayer(BoxOffer[playerid]);
  53014. GameTextForPlayer(playerid, "~r~Waiting", 3000, 1); GameTextForPlayer(BoxOffer[playerid], "~r~Waiting", 3000, 1);
  53015. new name[MAX_PLAYER_NAME];
  53016. new dstring[MAX_PLAYER_NAME];
  53017. new wstring[MAX_PLAYER_NAME];
  53018. GetPlayerName(playerid, name, sizeof(name));
  53019. format(dstring, sizeof(dstring), "%s", name);
  53020. strmid(wstring, dstring, 0, strlen(dstring), 255);
  53021. if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
  53022. {
  53023. format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", sendername, giveplayer);
  53024. OOCOff(COLOR_WHITE,string);
  53025. TBoxer = playerid;
  53026. BoxDelay = 60;
  53027. }
  53028. GetPlayerName(BoxOffer[playerid], name, sizeof(name));
  53029. format(dstring, sizeof(dstring), "%s", name);
  53030. strmid(wstring, dstring, 0, strlen(dstring), 255);
  53031. if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
  53032. {
  53033. format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", giveplayer, sendername);
  53034. OOCOff(COLOR_WHITE,string);
  53035. TBoxer = BoxOffer[playerid];
  53036. BoxDelay = 60;
  53037. }
  53038. BoxWaitTime[playerid] = 1; BoxWaitTime[BoxOffer[playerid]] = 1;
  53039. if(BoxDelay < 1) { BoxDelay = 20; }
  53040. InRing = 1;
  53041. Boxer1 = BoxOffer[playerid];
  53042. Boxer2 = playerid;
  53043. PlayerBoxing[playerid] = 1;
  53044. PlayerBoxing[BoxOffer[playerid]] = 1;
  53045. BoxOffer[playerid] = 999;
  53046. return 1;
  53047. }
  53048. return 1;
  53049. }
  53050. else
  53051. {
  53052. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you a Boxing Challenge !");
  53053. return 1;
  53054. }
  53055. }
  53056. else if(strcmp(x_job,"taxi",true) == 0)
  53057. {
  53058. if(TransportDuty[playerid] != 1)
  53059. {
  53060. SendClientMessage(playerid, COLOR_GREY, " You are not a Taxi Driver !");
  53061. return 1;
  53062. }
  53063. if(TaxiCallTime[playerid] > 0)
  53064. {
  53065. SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Taxi Call !");
  53066. return 1;
  53067. }
  53068. if(TaxiCall < 999)
  53069. {
  53070. if(IsPlayerConnected(TaxiCall))
  53071. {
  53072. GetPlayerName(playerid, sendername, sizeof(sendername));
  53073. GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer));
  53074. format(string, sizeof(string), "* You have accepted the Taxi Call from %s, you will see the marker untill you have reached it.",giveplayer);
  53075. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53076. format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call please wait at your current Position.",sendername);
  53077. SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, string);
  53078. GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Goto redmarker", 5000, 1);
  53079. TaxiCallTime[playerid] = 1;
  53080. TaxiAccepted[playerid] = TaxiCall;
  53081. TaxiCall = 999;
  53082. return 1;
  53083. }
  53084. }
  53085. else
  53086. {
  53087. SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Taxi yet !");
  53088. return 1;
  53089. }
  53090. }
  53091. else if(strcmp(x_job,"bus",true) == 0)
  53092. {
  53093. if(TransportDuty[playerid] != 2)
  53094. {
  53095. SendClientMessage(playerid, COLOR_GREY, " You are not a Bus Driver !");
  53096. return 1;
  53097. }
  53098. if(BusCallTime[playerid] > 0)
  53099. {
  53100. SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Bus Call !");
  53101. return 1;
  53102. }
  53103. if(BusCall < 999)
  53104. {
  53105. if(IsPlayerConnected(BusCall))
  53106. {
  53107. GetPlayerName(playerid, sendername, sizeof(sendername));
  53108. GetPlayerName(BusCall, giveplayer, sizeof(giveplayer));
  53109. format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer);
  53110. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53111. format(string, sizeof(string), "* Bus Driver %s has accepted your Bus Call please wait at your current Position.",sendername);
  53112. SendClientMessage(BusCall, COLOR_LIGHTBLUE, string);
  53113. new Float:X,Float:Y,Float:Z;
  53114. GetPlayerPos(BusCall, X, Y, Z);
  53115. SetPlayerCheckpoint(playerid, X, Y, Z, 5);
  53116. GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1);
  53117. BusCallTime[playerid] = 1;
  53118. BusAccepted[playerid] = BusCall;
  53119. BusCall = 999;
  53120. return 1;
  53121. }
  53122. }
  53123. else
  53124. {
  53125. SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Bus yet !");
  53126. return 1;
  53127. }
  53128. }
  53129. else if(strcmp(x_job,"medic",true) == 0)
  53130. {
  53131. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  53132. {
  53133. if(MedicCallTime[playerid] > 0)
  53134. {
  53135. SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Medic Call !");
  53136. return 1;
  53137. }
  53138. if(MedicCall < 999)
  53139. {
  53140. if(IsPlayerConnected(MedicCall))
  53141. {
  53142. GetPlayerName(playerid, sendername, sizeof(sendername));
  53143. GetPlayerName(MedicCall, giveplayer, sizeof(giveplayer));
  53144. format(string, sizeof(string), "* You have accepted the Medic Call from %s, you have 30 Seconds to get there.",giveplayer);
  53145. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53146. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
  53147. format(string, sizeof(string), "* Medic %s has accepted your Medic Call please wait at your current Position.",sendername);
  53148. SendClientMessage(MedicCall, COLOR_LIGHTBLUE, string);
  53149. new Float:X,Float:Y,Float:Z;
  53150. GetPlayerPos(MedicCall, X, Y, Z);
  53151. SetPlayerCheckpoint(playerid, X, Y, Z, 5);
  53152. GameTextForPlayer(playerid, "~w~Medic Caller~n~~r~Goto redmarker", 5000, 1);
  53153. MedicCallTime[playerid] = 1;
  53154. MedicCall = 999;
  53155. return 1;
  53156. }
  53157. }
  53158. else
  53159. {
  53160. SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Medic yet !");
  53161. return 1;
  53162. }
  53163. }
  53164. else
  53165. {
  53166. SendClientMessage(playerid, COLOR_GREY, " You are not a Medic !");
  53167. return 1;
  53168. }
  53169. }
  53170. else if(strcmp(x_job,"lawyer",true) == 0)
  53171. {
  53172. if(PlayerInfo[playerid][pJob] == 2)
  53173. {
  53174. if(LawyerCallTime[playerid] > 0)
  53175. {
  53176. SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Lawyer Call !");
  53177. return 1;
  53178. }
  53179. if(LawyerCall < 999)
  53180. {
  53181. if(IsPlayerConnected(LawyerCall))
  53182. {
  53183. GetPlayerName(playerid, sendername, sizeof(sendername));
  53184. GetPlayerName(LawyerCall, giveplayer, sizeof(giveplayer));
  53185. format(string, sizeof(string), "* You have accepted the Lawyer Call from %s, you have 30 Seconds to get there.",giveplayer);
  53186. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53187. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
  53188. format(string, sizeof(string), "* Lawyer %s has accepted your Lawyer Call please wait at your current Position.",sendername);
  53189. SendClientMessage(LawyerCall, COLOR_LIGHTBLUE, string);
  53190. new Float:X,Float:Y,Float:Z;
  53191. GetPlayerPos(LawyerCall, X, Y, Z);
  53192. SetPlayerCheckpoint(playerid, X, Y, Z, 5);
  53193. GameTextForPlayer(playerid, "~w~Lawyer Caller~n~~r~Goto redmarker", 5000, 1);
  53194. LawyerCallTime[playerid] = 1;
  53195. LawyerCall = 999;
  53196. return 1;
  53197. }
  53198. }
  53199. else
  53200. {
  53201. SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Lawyer yet !");
  53202. return 1;
  53203. }
  53204. }
  53205. else
  53206. {
  53207. SendClientMessage(playerid, COLOR_GREY, " You are not a Lawyer !");
  53208. return 1;
  53209. }
  53210. }
  53211. else if(strcmp(x_job,"mechanic",true) == 0)
  53212. {
  53213. if(PlayerInfo[playerid][pJob] != 7)
  53214. {
  53215. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
  53216. return 1;
  53217. }
  53218. if(MechanicCallTime[playerid] > 0)
  53219. {
  53220. SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Mechanic Call !");
  53221. return 1;
  53222. }
  53223. if(MechanicCall < 999)
  53224. {
  53225. if(IsPlayerConnected(MechanicCall))
  53226. {
  53227. GetPlayerName(playerid, sendername, sizeof(sendername));
  53228. GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));
  53229. format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer);
  53230. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53231. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will disappear.");
  53232. format(string, sizeof(string), "* Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername);
  53233. SendClientMessage(MechanicCall, COLOR_LIGHTBLUE, string);
  53234. new Float:X,Float:Y,Float:Z;
  53235. GetPlayerPos(MechanicCall, X, Y, Z);
  53236. SetPlayerCheckpoint(playerid, X, Y, Z, 5);
  53237. GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1);
  53238. MechanicCallTime[playerid] = 1;
  53239. MechanicCall = 999;
  53240. return 1;
  53241. }
  53242. }
  53243. else
  53244. {
  53245. SendClientMessage(playerid, COLOR_GREY, " Nobody called for a Mechanic yet !");
  53246. return 1;
  53247. }
  53248. }
  53249. else if(strcmp(x_job,"job",true) == 0)
  53250. {
  53251. if(GettingJob[playerid] > 0)
  53252. {
  53253. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new commands.");
  53254. PlayerInfo[playerid][pJob] = GettingJob[playerid];
  53255. GettingJob[playerid] = 0;
  53256. if(PlayerInfo[playerid][pJob] == 9)
  53257. {
  53258. SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find materials packages behind ammunations.");
  53259. }
  53260. if(PlayerInfo[playerid][pJob] == 3)
  53261. {
  53262. SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find products behind this building.");
  53263. }
  53264. if(PlayerInfo[playerid][pJob] == 17)
  53265. {
  53266. SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find drug crates at the drug factory in Blueberry.");
  53267. if(CP[playerid] == 0)
  53268. {
  53269. SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3.0); //drug factory
  53270. CP[playerid] = 7;
  53271. }
  53272. }
  53273. return 1;
  53274. }
  53275. else
  53276. {
  53277. SendClientMessage(playerid, COLOR_GREY, " You haven't even been at a Job place yet!");
  53278. return 1;
  53279. }
  53280. }
  53281. else if(strcmp(x_job,"refill",true) == 0)
  53282. {
  53283. if(RefillOffer[playerid] < 999)
  53284. {
  53285. if(IsPlayerConnected(RefillOffer[playerid]))
  53286. {
  53287. if(PlayerInfo[playerid][pCash] > RefillPrice[playerid])
  53288. {
  53289. if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
  53290. GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));
  53291. GetPlayerName(playerid, sendername, sizeof(sendername));
  53292. new car = gLastCar[playerid];
  53293. new fuel;
  53294. PlayerInfo[RefillOffer[playerid]][pMechSkill] ++;
  53295. if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50)
  53296. { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 2, you can now add more Fuel to Cars."); }
  53297. else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100)
  53298. { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 3, you can now add more Fuel to Cars."); }
  53299. else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200)
  53300. { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 4, you can now add more Fuel to Cars."); }
  53301. else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400)
  53302. { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 5, you can now add more Fuel to Cars."); }
  53303. new level = PlayerInfo[RefillOffer[playerid]][pMechSkill];
  53304. if(level >= 0 && level <= 49)
  53305. { fuel = 15; }
  53306. else if(level >= 50 && level <= 99)
  53307. { fuel = 40; }
  53308. else if(level >= 100 && level <= 199)
  53309. { fuel = 60; }
  53310. else if(level >= 200 && level <= 399)
  53311. { fuel = 80; }
  53312. else if(level >= 400)
  53313. { fuel = 100; }
  53314. format(string, sizeof(string), "* You refilled your car with %d, for $%d by Mechanic %s.",fuel,RefillPrice[playerid],giveplayer);
  53315. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53316. format(string, sizeof(string), "* You refilled %s's car with %d, the $%d has been added to your Bank Account.",sendername,fuel,RefillPrice[playerid]);
  53317. SendClientMessage(RefillOffer[playerid], COLOR_LIGHTBLUE, string);
  53318. format(string, sizeof(string), "%s has accepted the refill from %s for %d", sendername,giveplayer,RefillPrice[playerid]);
  53319. PayLog(string);
  53320. PlayerInfo[RefillOffer[playerid]][pAccount] += RefillPrice[playerid];
  53321. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-RefillPrice[playerid];
  53322. GivePlayerMoney(playerid, -RefillPrice[playerid]);
  53323. if(Gas[car] < 110) { Gas[car] += fuel; }
  53324. RefillOffer[playerid] = 999;
  53325. RefillPrice[playerid] = 0;
  53326. UseAcceptTimer[playerid] = 1;
  53327. SetTimerEx("UseAccept",60*1000,0,"i",playerid);
  53328. return 1;
  53329. }
  53330. else
  53331. {
  53332. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53333. return 1;
  53334. }
  53335. }
  53336. return 1;
  53337. }
  53338. else
  53339. {
  53340. SendClientMessage(playerid, COLOR_GREY, " Nobody offered to Refill your Car !");
  53341. return 1;
  53342. }
  53343. }
  53344. else if(strcmp(x_job,"live",true) == 0)
  53345. {
  53346. if(LiveOffer[playerid] < 999)
  53347. {
  53348. if(IsPlayerConnected(LiveOffer[playerid]))
  53349. {
  53350. if(ProxDetectorS(5.0, playerid, LiveOffer[playerid]))
  53351. {
  53352. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends.");
  53353. SendClientMessage(LiveOffer[playerid], COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends (use /live again).");
  53354. TogglePlayerControllable(playerid, 0);
  53355. TogglePlayerControllable(LiveOffer[playerid], 0);
  53356. TalkingLive[playerid] = LiveOffer[playerid];
  53357. TalkingLive[LiveOffer[playerid]] = playerid;
  53358. LiveOffer[playerid] = 999;
  53359. return 1;
  53360. }
  53361. else
  53362. {
  53363. SendClientMessage(playerid, COLOR_GREY, " You are to far away from the News Reporter !");
  53364. return 1;
  53365. }
  53366. }
  53367. return 1;
  53368. }
  53369. else
  53370. {
  53371. SendClientMessage(playerid, COLOR_GREY, " Nobody gave you a Live Conversation offer !");
  53372. return 1;
  53373. }
  53374. }
  53375. else if(strcmp(x_job,"keys",true) == 0)
  53376. {
  53377. if(KeysOffer[playerid] < 999)
  53378. {
  53379. if(IsPlayerConnected(KeysOffer[playerid]))
  53380. {
  53381. if(ProxDetectorS(10.0, playerid, KeysOffer[playerid]))
  53382. {
  53383. new car = KeysID[KeysOffer[playerid]];
  53384. format(string, sizeof(string), "* %s has accepteed the keys of your %s.", PlayerName(playerid), GetVehicleFriendlyName(car));
  53385. SendClientMessage(KeysOffer[playerid], COLOR_LIGHTBLUE, string);
  53386. format(string, sizeof(string), "* You accepted %s's keys of his %s, now you can lock/unlock it.", PlayerName(KeysOffer[playerid]), GetVehicleFriendlyName(car));
  53387. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53388. TempKey[playerid] = car;
  53389. KeysOfferTo[KeysOffer[playerid]] = 999;
  53390. KeysOffer[playerid] = 999;
  53391. KeysID[KeysOffer[playerid]] = 0;
  53392. return 1;
  53393. }
  53394. else
  53395. {
  53396. SendClientMessage(playerid, COLOR_GREY, " The player that sent you the keys is not near you !");
  53397. return 1;
  53398. }
  53399. }
  53400. }
  53401. else
  53402. {
  53403. SendClientMessage(playerid, COLOR_GREY, " Nobody sent you any keys !");
  53404. return 1;
  53405. }
  53406. }
  53407. else if(strcmp(x_job,"vehicle",true) == 0)
  53408. {
  53409. if(VehicleOffer[playerid] < 999)
  53410. {
  53411. if(PlayerInfo[playerid][pCash] > VehiclePrice[playerid])
  53412. {
  53413. if(IsPlayerConnected(VehicleOffer[playerid]))
  53414. {
  53415. if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
  53416. {
  53417. SendClientMessage(playerid, COLOR_GREY, "You already got 2 vehicle's");
  53418. return 1;
  53419. }
  53420. GetPlayerName(VehicleOffer[playerid], giveplayer, sizeof(giveplayer));
  53421. GetPlayerName(playerid, sendername, sizeof(sendername));
  53422. format(string, sizeof(string), "* %s has sold you his vehicle for $%d.",giveplayer,VehiclePrice[playerid]);
  53423. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53424. SendClientMessage(playerid,COLOR_YELLOW, "Use /carhelp to see the commands.");
  53425. format(string, sizeof(string), "* %s accepted the vehicle contract, the $%d was transferred to your Bank Account.",sendername,VehiclePrice[playerid]);
  53426. SendClientMessage(VehicleOffer[playerid], COLOR_LIGHTBLUE, string);
  53427. format(string, sizeof(string), "%s has accepted the vehicle contract from %s for $%d", sendername,giveplayer,VehiclePrice[playerid]);
  53428. PayLog(string);
  53429. PlayerInfo[VehicleOffer[playerid]][pAccount] += VehiclePrice[playerid];
  53430. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-VehiclePrice[playerid];
  53431. GivePlayerMoney(playerid, -VehiclePrice[playerid]);
  53432. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  53433. if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
  53434. {
  53435. PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
  53436. }
  53437. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] == 0)
  53438. {
  53439. PlayerInfo[playerid][pCarKey2] = VehicleSellID[playerid];
  53440. }
  53441. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] == 0)
  53442. {
  53443. PlayerInfo[playerid][pCarKey3] = VehicleSellID[playerid];
  53444. }
  53445. else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] != 0 && PlayerInfo[playerid][pCarKey3] != 0)
  53446. {
  53447. PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
  53448. }
  53449. else if(PlayerInfo[playerid][pCarKey1] == 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
  53450. {
  53451. PlayerInfo[playerid][pCarKey1] = VehicleSellID[playerid];
  53452. }
  53453. else if(PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] == 0 && PlayerInfo[playerid][pCarKey3] != 0)
  53454. {
  53455. PlayerInfo[playerid][pCarKey2] = VehicleSellID[playerid];
  53456. }
  53457. strmid(CarInfo[VehicleSellID[playerid]][tOwner], sendername, 0, strlen(sendername), 255);
  53458. if(VehicleSellID[playerid] == PlayerInfo[VehicleOffer[playerid]][pCarKey1]) { PlayerInfo[VehicleOffer[playerid]][pCarKey1] = 0; }
  53459. if(VehicleSellID[playerid] == PlayerInfo[VehicleOffer[playerid]][pCarKey2]) { PlayerInfo[VehicleOffer[playerid]][pCarKey2] = 0; }
  53460. VehicleOffer[playerid] = 999;
  53461. VehiclePrice[playerid] = 0;
  53462. VehicleSellID[playerid] = 0;
  53463. return 1;
  53464. }
  53465. return 1;
  53466. }
  53467. else
  53468. {
  53469. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53470. return 1;
  53471. }
  53472. }
  53473. else
  53474. {
  53475. SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a vehicle contract !");
  53476. return 1;
  53477. }
  53478. }
  53479. else if(strcmp(x_job,"house",true) == 0)
  53480. {
  53481. if(HouseOffer[playerid] < 999)
  53482. {
  53483. if(PlayerInfo[playerid][pCash] > HousePrice[playerid])
  53484. {
  53485. if(IsPlayerConnected(HouseOffer[playerid]))
  53486. {
  53487. GetPlayerName(HouseOffer[playerid], giveplayer, sizeof(giveplayer));
  53488. GetPlayerName(playerid, sendername, sizeof(sendername));
  53489. format(string, sizeof(string), "* %s has sold you his house for $%d.",giveplayer,HousePrice[playerid]);
  53490. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53491. SendClientMessage(playerid,COLOR_YELLOW, "Use /househelp to see the commands.");
  53492. format(string, sizeof(string), "* %s accepted the house contract, the $%d was transferred to your Bank Account.",sendername,HousePrice[playerid]);
  53493. SendClientMessage(HouseOffer[playerid], COLOR_LIGHTBLUE, string);
  53494. format(string, sizeof(string), "%s has accepted the house contract from %s for $%d", sendername,giveplayer,HousePrice[playerid]);
  53495. PayLog(string);
  53496. PlayerInfo[HouseOffer[playerid]][pAccount] += HousePrice[playerid];
  53497. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-HousePrice[playerid];
  53498. GivePlayerMoney(playerid, -HousePrice[playerid]);
  53499. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  53500. PlayerInfo[playerid][pHouseKey] = HouseSellID[playerid];
  53501. strmid(HouseInfo[HouseSellID[playerid]][hOwner], sendername, 0, strlen(sendername), 255);
  53502. strmid(HouseInfo[HouseSellID[playerid]][hName], "House", 0, strlen("House"), 255);
  53503. PlayerInfo[HouseOffer[playerid]][pHouseKey] = 999;
  53504. DestroyDynamic3DTextLabel(HouseLabel[HouseSellID[playerid]]);
  53505. if(HouseInfo[HouseSellID[playerid]][hRentable] == 1)
  53506. {
  53507. new VString[255];
  53508. new name[25], owner[MAX_PLAYER_NAME];
  53509. strmid(owner, HouseInfo[HouseSellID[playerid]][hOwner], 0, strlen(HouseInfo[HouseSellID[playerid]][hOwner]), 255);
  53510. strmid(name, HouseInfo[HouseSellID[playerid]][hName], 0, strlen(HouseInfo[HouseSellID[playerid]][hName]), 255);
  53511. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nRent: $%d", name,HouseInfo[HouseSellID[playerid]][hLevel],owner,HouseInfo[HouseSellID[playerid]][hRent]);
  53512. HouseLabel[HouseSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[HouseSellID[playerid]][hLocation_x], HouseInfo[HouseSellID[playerid]][hLocation_y], HouseInfo[HouseSellID[playerid]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  53513. }
  53514. if(HouseInfo[HouseSellID[playerid]][hRentable] == 0)
  53515. {
  53516. new VString[255];
  53517. new name[25], owner[MAX_PLAYER_NAME];
  53518. strmid(owner, HouseInfo[HouseSellID[playerid]][hOwner], 0, strlen(HouseInfo[HouseSellID[playerid]][hOwner]), 255);
  53519. strmid(name, HouseInfo[HouseSellID[playerid]][hName], 0, strlen(HouseInfo[HouseSellID[playerid]][hName]), 255);
  53520. format(VString,sizeof(VString),"%s \nLevel: %d \nOwner: %s \nThis house is not rentable", name,HouseInfo[HouseSellID[playerid]][hLevel],owner);
  53521. HouseLabel[HouseSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_DBLUE, HouseInfo[HouseSellID[playerid]][hLocation_x], HouseInfo[HouseSellID[playerid]][hLocation_y], HouseInfo[HouseSellID[playerid]][hLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
  53522. }
  53523. HouseOffer[playerid] = 999;
  53524. HousePrice[playerid] = 0;
  53525. HouseSellID[playerid] = 999;
  53526. return 1;
  53527. }
  53528. return 1;
  53529. }
  53530. else
  53531. {
  53532. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53533. return 1;
  53534. }
  53535. }
  53536. else
  53537. {
  53538. SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a house contract !");
  53539. return 1;
  53540. }
  53541. }
  53542.  
  53543. else if(strcmp(x_job,"business",true) == 0)
  53544. {
  53545. if(BizOffer[playerid] < 999)
  53546. {
  53547. if(PlayerInfo[playerid][pCash] > BizPrice[playerid])
  53548. {
  53549. if(IsPlayerConnected(BizOffer[playerid]))
  53550. {
  53551. GetPlayerName(BizOffer[playerid], giveplayer, sizeof(giveplayer));
  53552. GetPlayerName(playerid, sendername, sizeof(sendername));
  53553. format(string, sizeof(string), "* %s has sold you his business for $%d.",giveplayer,BizPrice[playerid]);
  53554. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53555. SendClientMessage(playerid,COLOR_YELLOW, "Use /bizhelp to see the commands.");
  53556. format(string, sizeof(string), "* %s accepted the business contract, the $%d was transferred to your Bank Account.",sendername,BizPrice[playerid]);
  53557. SendClientMessage(BizOffer[playerid], COLOR_LIGHTBLUE, string);
  53558. format(string, sizeof(string), "%s has accepted the business contract from %s for $%d", sendername,giveplayer,BizPrice[playerid]);
  53559. PayLog(string);
  53560. PlayerInfo[BizOffer[playerid]][pAccount] += BizPrice[playerid];
  53561. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-BizPrice[playerid];
  53562. GivePlayerMoney(playerid, -BizPrice[playerid]);
  53563. PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
  53564. PlayerInfo[playerid][pBizKey] = BizSellID[playerid];
  53565. strmid(BizInfo[BizSellID[playerid]][bOwner], sendername, 0, strlen(sendername), 255);
  53566. PlayerInfo[BizOffer[playerid]][pBizKey] = 999;
  53567. DestroyDynamic3DTextLabel(BizLabel[BizSellID[playerid]]);
  53568. new VString[255];
  53569. new name[25], owner[MAX_PLAYER_NAME];
  53570. strmid(owner, BizInfo[BizSellID[playerid]][bOwner], 0, strlen(BizInfo[BizSellID[playerid]][bOwner]), 255);
  53571. strmid(name, BizInfo[BizSellID[playerid]][bName], 0, strlen(BizInfo[BizSellID[playerid]][bName]), 255);
  53572. format(VString,sizeof(VString),"%s \nOwner: %s \nEntry fee: $%d", name,owner,BizInfo[BizSellID[playerid]][bFee]);
  53573. BizLabel[BizSellID[playerid]] = Text3D:CreateDynamic3DTextLabel(VString, COLOR_GREEN, BizInfo[BizSellID[playerid]][bLocation_x], BizInfo[BizSellID[playerid]][bLocation_y], BizInfo[BizSellID[playerid]][bLocation_z]+0.1, 20, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, BizInfo[BizSellID[playerid]][bPVW], BizInfo[BizSellID[playerid]][bPInt], -1, 100.0);
  53574. BizOffer[playerid] = 999;
  53575. BizPrice[playerid] = 0;
  53576. BizSellID[playerid] = 999;
  53577. return 1;
  53578. }
  53579. return 1;
  53580. }
  53581. else
  53582. {
  53583. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53584. return 1;
  53585. }
  53586. }
  53587. else
  53588. {
  53589. SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a business contract !");
  53590. return 1;
  53591. }
  53592. }
  53593.  
  53594. else if(strcmp(x_job,"rent",true) == 0)
  53595. {
  53596. if(RentOffer[playerid] < 999)
  53597. {
  53598. if(PlayerInfo[playerid][pCash] > RentPrice[playerid])
  53599. {
  53600. if(IsPlayerConnected(RentOffer[playerid]))
  53601. {
  53602. new money = HouseInfo[RentHouseID[playerid]][hCash] + RentPrice[playerid];
  53603. GetPlayerName(RentOffer[playerid], giveplayer, sizeof(giveplayer));
  53604. GetPlayerName(playerid, sendername, sizeof(sendername));
  53605. format(string, sizeof(string), "* You have accepted %s's rent request.",giveplayer);
  53606. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53607. SendClientMessage(RentOffer[playerid],COLOR_YELLOW, "Use /househelp to see the commands.");
  53608. format(string, sizeof(string), "* %s has accepted your rent request.",sendername);
  53609. SendClientMessage(RentOffer[playerid], COLOR_LIGHTBLUE, string);
  53610. SendClientMessage(playerid,COLOR_LIGHTBLUE, "Do not forget his name, you will need it if you want to sell the house.");
  53611. format(string, sizeof(string), "%s has accepted %s's rent request", sendername,giveplayer);
  53612. PayLog(string);
  53613. HouseInfo[RentHouseID[playerid]][hCash] = money;
  53614. PlayerInfo[RentOffer[playerid]][pCash] = PlayerInfo[RentOffer[playerid]][pCash]-RentPrice[playerid];
  53615. GivePlayerMoney(RentOffer[playerid], -RentPrice[playerid]);
  53616. PlayerInfo[RentOffer[playerid]][pRenthouse] = RentHouseID[playerid];
  53617. HouseInfo[RentHouseID[playerid]][hRenters] += 1;
  53618. RentOffer[playerid] = 999;
  53619. RentPrice[playerid] = 0;
  53620. RentHouseID[playerid] = 999;
  53621. return 1;
  53622. }
  53623. return 1;
  53624. }
  53625. else
  53626. {
  53627. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53628. return 1;
  53629. }
  53630. }
  53631. else
  53632. {
  53633. SendClientMessage(playerid, COLOR_GREY, " Nobody has offered you a vehicle contract !");
  53634. return 1;
  53635. }
  53636. }
  53637.  
  53638. else if(strcmp(x_job,"vest",true) == 0)
  53639. {
  53640. if(GuardOffer[playerid] < 999)
  53641. {
  53642. if(PlayerInfo[playerid][pCash] > GuardPrice[playerid])
  53643. {
  53644. if(IsPlayerConnected(GuardOffer[playerid]))
  53645. {
  53646. if(ProxDetectorS(3.0, playerid, GuardOffer[playerid]))
  53647. {
  53648. if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
  53649. GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));
  53650. GetPlayerName(playerid, sendername, sizeof(sendername));
  53651. format(string, sizeof(string), "* You accepted the Protection for $%d from Bodyguard %s.",GuardPrice[playerid],giveplayer);
  53652. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53653. format(string, sizeof(string), "* %s accepted your Protection, and the $%d was added to your Bank Account.",sendername,GuardPrice[playerid]);
  53654. SendClientMessage(GuardOffer[playerid], COLOR_LIGHTBLUE, string);
  53655. format(string, sizeof(string), "%s has accepted the protection from %s for $%d", sendername,giveplayer,GuardPrice[playerid]);
  53656. PayLog(string);
  53657. PlayerInfo[GuardOffer[playerid]][pAccount] += GuardPrice[playerid];
  53658. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-GuardPrice[playerid];
  53659. GivePlayerMoney(playerid, -GuardPrice[playerid]);
  53660. GuardOffer[playerid] = 999;
  53661. GuardPrice[playerid] = 0;
  53662. SetPlayerArmour(playerid, 50.0);
  53663. UseAcceptTimer[playerid] = 1;
  53664. SetTimerEx("UseAccept",60*1000,0,"i",playerid);
  53665. return 1;
  53666. }
  53667. else
  53668. {
  53669. SendClientMessage(playerid, COLOR_GRAD1, " You're too far away !");
  53670. return 1;
  53671. }
  53672. }
  53673. return 1;
  53674. }
  53675. else
  53676. {
  53677. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53678. return 1;
  53679. }
  53680. }
  53681. else
  53682. {
  53683. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Protection !");
  53684. return 1;
  53685. }
  53686. }
  53687. else if(strcmp(x_job,"pot",true) == 0)
  53688. {
  53689. if(PotOffer[playerid] < 999)
  53690. {
  53691. if(PlayerInfo[playerid][pCash] > PotPrice[playerid])
  53692. {
  53693. if(PlayerInfo[playerid][pPot] < 7)
  53694. {
  53695. if(IsPlayerConnected(PotOffer[playerid]))
  53696. {
  53697. GetPlayerName(PotOffer[playerid], giveplayer, sizeof(giveplayer));
  53698. GetPlayerName(playerid, sendername, sizeof(sendername));
  53699. format(string, sizeof(string), "* You bought %d grams of pot for $%d from Drug Dealer %s.",PotGram[playerid],PotPrice[playerid],giveplayer);
  53700. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53701. format(string, sizeof(string), "* %s has bought your %d grams, the $%d was added to your Bank Account.",sendername,PotGram[playerid],PotPrice[playerid]);
  53702. SendClientMessage(PotOffer[playerid], COLOR_LIGHTBLUE, string);
  53703. PlayerInfo[PotOffer[playerid]][pAccount] += PotPrice[playerid];
  53704. PlayerInfo[PotOffer[playerid]][pDrugsSkill] ++;
  53705. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-PotPrice[playerid];
  53706. GivePlayerMoney(playerid, -PotPrice[playerid]);
  53707. PlayerInfo[playerid][pPot] += PotGram[playerid];
  53708. PlayerInfo[PotOffer[playerid]][pPot] -= PotGram[playerid];
  53709. if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 50)
  53710. { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams."); }
  53711. else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 100)
  53712. { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams."); }
  53713. else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 200)
  53714. { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams."); }
  53715. else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 400)
  53716. { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams."); }
  53717. PotOffer[playerid] = 999;
  53718. PotPrice[playerid] = 0;
  53719. PotGram[playerid] = 0;
  53720. return 1;
  53721. }
  53722. return 1;
  53723. }
  53724. else
  53725. {
  53726. SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Pot, /usepot or /drop it first !");
  53727. return 1;
  53728. }
  53729. }
  53730. else
  53731. {
  53732. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53733. return 1;
  53734. }
  53735. }
  53736. else
  53737. {
  53738. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Pot !");
  53739. return 1;
  53740. }
  53741. }
  53742. else if(strcmp(x_job,"products",true) == 0)
  53743. {
  53744. if(ProdOffer[playerid] < 999)
  53745. {
  53746. if(PlayerInfo[playerid][pCash] > ProdPrice[playerid])
  53747. {
  53748. new calc = ProdAmount[playerid] + PlayerInfo[playerid][pProducts];
  53749. if(calc <= 500)
  53750. {
  53751. if(IsPlayerConnected(ProdOffer[playerid]))
  53752. {
  53753. GetPlayerName(ProdOffer[playerid], giveplayer, sizeof(giveplayer));
  53754. GetPlayerName(playerid, sendername, sizeof(sendername));
  53755. format(string, sizeof(string), "* You bought %d products for $%d from %s.",ProdAmount[playerid],ProdPrice[playerid],giveplayer);
  53756. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53757. format(string, sizeof(string), "* %s has bought your %d products, the $%d was added to your Bank Account.",sendername,ProdAmount[playerid],ProdPrice[playerid]);
  53758. SendClientMessage(ProdOffer[playerid], COLOR_LIGHTBLUE, string);
  53759. PlayerInfo[ProdOffer[playerid]][pAccount] += ProdPrice[playerid];
  53760. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-ProdPrice[playerid];
  53761. GivePlayerMoney(playerid, -ProdPrice[playerid]);
  53762. PlayerInfo[playerid][pProducts] += ProdAmount[playerid];
  53763. PlayerInfo[ProdOffer[playerid]][pProducts] -= ProdAmount[playerid];
  53764. ProdOffer[playerid] = 999;
  53765. ProdPrice[playerid] = 0;
  53766. ProdAmount[playerid] = 0;
  53767. return 1;
  53768. }
  53769. return 1;
  53770. }
  53771. else
  53772. {
  53773. SendClientMessage(playerid, COLOR_GREY, " You are fully loaded products !");
  53774. return 1;
  53775. }
  53776. }
  53777. else
  53778. {
  53779. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53780. return 1;
  53781. }
  53782. }
  53783. else
  53784. {
  53785. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Products !");
  53786. return 1;
  53787. }
  53788. }
  53789. else if(strcmp(x_job,"crack",true) == 0)
  53790. {
  53791. if(CrackOffer[playerid] < 999)
  53792. {
  53793. if(PlayerInfo[playerid][pCash] > CrackPrice[playerid])
  53794. {
  53795. if(PlayerInfo[playerid][pCrack] < 7)
  53796. {
  53797. if(IsPlayerConnected(CrackOffer[playerid]))
  53798. {
  53799. GetPlayerName(CrackOffer[playerid], giveplayer, sizeof(giveplayer));
  53800. GetPlayerName(playerid, sendername, sizeof(sendername));
  53801. format(string, sizeof(string), "* You bought %d grams of crack for $%d from Drug Dealer %s.",CrackGram[playerid],CrackPrice[playerid],giveplayer);
  53802. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53803. format(string, sizeof(string), "* %s has bought your %d grams, the $%d was added to your Bank Account.",sendername,CrackGram[playerid],CrackPrice[playerid]);
  53804. SendClientMessage(CrackOffer[playerid], COLOR_LIGHTBLUE, string);
  53805. PlayerInfo[CrackOffer[playerid]][pAccount] += CrackPrice[playerid];
  53806. PlayerInfo[CrackOffer[playerid]][pDrugsSkill] ++;
  53807. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-CrackPrice[playerid];
  53808. GivePlayerMoney(playerid, -CrackPrice[playerid]);
  53809. PlayerInfo[playerid][pCrack] += CrackGram[playerid];
  53810. PlayerInfo[CrackOffer[playerid]][pCrack] -= CrackGram[playerid];
  53811. if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 50)
  53812. { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams."); }
  53813. else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 100)
  53814. { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams."); }
  53815. else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 200)
  53816. { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams."); }
  53817. else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 400)
  53818. { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams."); }
  53819. CrackOffer[playerid] = 999;
  53820. CrackPrice[playerid] = 0;
  53821. CrackGram[playerid] = 0;
  53822. return 1;
  53823. }
  53824. return 1;
  53825. }
  53826. else
  53827. {
  53828. SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Crack, /usecrack or /drop it first !");
  53829. return 1;
  53830. }
  53831. }
  53832. else
  53833. {
  53834. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53835. return 1;
  53836. }
  53837. }
  53838. else
  53839. {
  53840. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you any Pot !");
  53841. return 1;
  53842. }
  53843. }
  53844. else if(strcmp(x_job,"sex",true) == 0)
  53845. {
  53846. if(SexOffer[playerid] < 999)
  53847. {
  53848. if(PlayerInfo[playerid][pCash] > SexPrice[playerid])
  53849. {
  53850. if(IsPlayerConnected(SexOffer[playerid]))
  53851. {
  53852. new Car = GetPlayerVehicleID(playerid);
  53853. if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car))
  53854. {
  53855. if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
  53856. GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer));
  53857. GetPlayerName(playerid, sendername, sizeof(sendername));
  53858. format(string, sizeof(string), "* You had sex with %s, for $%d.", giveplayer, SexPrice[playerid]);
  53859. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53860. format(string, sizeof(string), "* %s had sex with you, the $%d was added to your Bank Account.", sendername, SexPrice[playerid]);
  53861. SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, string);
  53862. format(string, sizeof(string), "%s has accepted the sex from %s for $%d", sendername,giveplayer,SexPrice[playerid]);
  53863. PayLog(string);
  53864. PlayerInfo[SexOffer[playerid]][pAccount] += SexPrice[playerid];
  53865. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-SexPrice[playerid];
  53866. GivePlayerMoney(playerid, -SexPrice[playerid]);
  53867. PlayerInfo[SexOffer[playerid]][pSexSkill] ++;
  53868. if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50)
  53869. { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 2, you offer better Sex (health) and less chance on STD."); }
  53870. else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100)
  53871. { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 3, you offer better Sex (health) and less chance on STD."); }
  53872. else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200)
  53873. { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 4, you offer better Sex (health) and less chance on STD."); }
  53874. else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400)
  53875. { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 5, you offer better Sex (health) and less chance on STD."); }
  53876. UseAcceptTimer[playerid] = 1;
  53877. SetTimerEx("UseAccept",60*1000,0,"i",playerid);
  53878. if(STDPlayer[playerid] == 0)
  53879. {
  53880. if(Condom[playerid] < 1)
  53881. {
  53882. new Float:health;
  53883. GetPlayerHealth(playerid, health);
  53884. new level = PlayerInfo[SexOffer[playerid]][pSexSkill];
  53885. if(level >= 0 && level <= 49)
  53886. {
  53887. if(health > 95) { SetPlayerHealth(playerid, 100.0); }
  53888. else { SetPlayerHealth(playerid, health + 5.0); }
  53889. new rand = random(sizeof(STD1));
  53890. STDPlayer[playerid] = STD1[rand];
  53891. STDPlayer[SexOffer[playerid]] = STD1[rand];
  53892. if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
  53893. else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
  53894. else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
  53895. else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
  53896. }
  53897. else if(level >= 50 && level <= 99)
  53898. {
  53899. if(health > 90) { SetPlayerHealth(playerid, 100.0); }
  53900. else { SetPlayerHealth(playerid, health + 10.0); }
  53901. new rand = random(sizeof(STD2));
  53902. STDPlayer[playerid] = STD2[rand];
  53903. STDPlayer[SexOffer[playerid]] = STD2[rand];
  53904. if(STD2[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
  53905. else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
  53906. else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
  53907. else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
  53908. }
  53909. else if(level >= 100 && level <= 199)
  53910. {
  53911. if(health > 85) { SetPlayerHealth(playerid, 100.0); }
  53912. else { SetPlayerHealth(playerid, health + 15.0); }
  53913. new rand = random(sizeof(STD3));
  53914. STDPlayer[playerid] = STD3[rand];
  53915. STDPlayer[SexOffer[playerid]] = STD3[rand];
  53916. if(STD3[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
  53917. else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
  53918. else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
  53919. else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
  53920. }
  53921. else if(level >= 200 && level <= 399)
  53922. {
  53923. if(health > 80) { SetPlayerHealth(playerid, 100.0); }
  53924. else { SetPlayerHealth(playerid, health + 20.0); }
  53925. new rand = random(sizeof(STD1));
  53926. STDPlayer[playerid] = STD1[rand];
  53927. STDPlayer[SexOffer[playerid]] = STD1[rand];
  53928. if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
  53929. else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
  53930. else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
  53931. else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
  53932. }
  53933. else if(level >= 400)
  53934. {
  53935. if(health > 75) { SetPlayerHealth(playerid, 100.0); }
  53936. else { SetPlayerHealth(playerid, health + 25.0); }
  53937. new rand = random(sizeof(STD4));
  53938. STDPlayer[playerid] = STD4[rand];
  53939. STDPlayer[SexOffer[playerid]] = STD4[rand];
  53940. if(STD4[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
  53941. else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
  53942. else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
  53943. else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
  53944. }
  53945. }
  53946. else
  53947. {
  53948. SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The player used a Condom.");
  53949. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You used a Condom.");
  53950. Condom[playerid] --;
  53951. }
  53952. }
  53953. else
  53954. {
  53955. SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* That player was already infected with a STD, can't get another one.");
  53956. return 1;
  53957. }
  53958. SexOffer[playerid] = 999;
  53959. return 1;
  53960. }
  53961. else
  53962. {
  53963. SendClientMessage(playerid, COLOR_GREY, " You or the Whore are not both in a Car !");
  53964. return 1;
  53965. }
  53966. }
  53967. return 1;
  53968. }
  53969. else
  53970. {
  53971. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  53972. return 1;
  53973. }
  53974. }
  53975. else
  53976. {
  53977. SendClientMessage(playerid, COLOR_GREY, " You dont have any Sex offered by a Whore !");
  53978. return 1;
  53979. }
  53980. }
  53981. else if(strcmp(x_job,"repair",true) == 0)
  53982. {
  53983. if(RepairOffer[playerid] < 999)
  53984. {
  53985. if(PlayerInfo[playerid][pCash] > RepairPrice[playerid])
  53986. {
  53987. if(IsPlayerInAnyVehicle(playerid))
  53988. {
  53989. if(IsPlayerConnected(RepairOffer[playerid]))
  53990. {
  53991. if(UseAcceptTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds !");
  53992. GetPlayerName(RepairOffer[playerid], giveplayer, sizeof(giveplayer));
  53993. GetPlayerName(playerid, sendername, sizeof(sendername));
  53994. RepairCar[playerid] = GetPlayerVehicleID(playerid);
  53995. SetVehicleHealth(RepairCar[playerid], 1000.0);
  53996. format(string, sizeof(string), "* Mechanic %s has repaired your vehicle for %d.",giveplayer,RepairPrice[playerid]);
  53997. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  53998. format(string, sizeof(string), "* You fixed %s's vehicle, the $%d has been added to your Bank Account.",sendername,RepairPrice[playerid]);
  53999. SendClientMessage(RepairOffer[playerid], COLOR_LIGHTBLUE, string);
  54000. format(string, sizeof(string), "* %s has repaired %s's vehicle.", giveplayer, sendername);
  54001. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54002. format(string, sizeof(string), "%s has accepted the repairs from %s for $%d", sendername,giveplayer,RepairPrice[playerid]);
  54003. PayLog(string);
  54004. PlayerInfo[RepairOffer[playerid]][pMechSkill] ++;
  54005. if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 50)
  54006. { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 2, you can add more Fuel to Players Cars."); }
  54007. else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 100)
  54008. { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 3, you can add more Fuel to Players Cars."); }
  54009. else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 200)
  54010. { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 4, you can add more Fuel to Players Cars."); }
  54011. else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 400)
  54012. { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Mechanic Skill is now Level 5, you can add more Fuel to Players Cars."); }
  54013. PlayerInfo[RepairOffer[playerid]][pAccount] += RepairPrice[playerid];
  54014. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-RepairPrice[playerid];
  54015. GivePlayerMoney(playerid, -RepairPrice[playerid]);
  54016. RepairOffer[playerid] = 999;
  54017. RepairPrice[playerid] = 0;
  54018. UseAcceptTimer[playerid] = 1;
  54019. SetTimerEx("UseAccept",60*1000,0,"i",playerid);
  54020. return 1;
  54021. }
  54022. return 1;
  54023. }
  54024. return 1;
  54025. }
  54026. else
  54027. {
  54028. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  54029. return 1;
  54030. }
  54031. }
  54032. else
  54033. {
  54034. SendClientMessage(playerid, COLOR_GREY, " Nobody offered you to Repair your Car !");
  54035. return 1;
  54036. }
  54037. }
  54038. else { return 1; }
  54039. }
  54040. return 1;
  54041. }
  54042. if(strcmp(cmd, "/refill", true) == 0)
  54043. {
  54044. if(IsPlayerConnected(playerid))
  54045. {
  54046. if(PlayerInfo[playerid][pJob] != 7)
  54047. {
  54048. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic!");
  54049. return 1;
  54050. }
  54051. if(PlayerInfo[playerid][pMechTime] != 0)
  54052. {
  54053. SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before you can offer another refill !");
  54054. return 1;
  54055. }
  54056. tmp = strtok(cmdtext, idx);
  54057. if(!strlen(tmp))
  54058. {
  54059. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refill [playerid/PartOfName] [price]");
  54060. return 1;
  54061. }
  54062. new playa;
  54063. new money;
  54064. playa = ReturnUser(tmp);
  54065. tmp = strtok(cmdtext, idx);
  54066. money = strvalEx(tmp);
  54067. if(money < 1 || money > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower then $1, or above $20,000 !"); return 1; }
  54068. if(IsPlayerConnected(playa))
  54069. {
  54070. if(playa != INVALID_PLAYER_ID)
  54071. {
  54072. if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa))
  54073. {
  54074. if(playa == playerid)
  54075. {
  54076. SendClientMessage(playerid, COLOR_GREY, " You can't do offer to refill your own car ! ");
  54077. return 1;
  54078. }
  54079. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  54080. GetPlayerName(playerid, sendername, sizeof(sendername));
  54081. format(string, sizeof(string), "* You offered %s to refill their car for $%d .",giveplayer,money);
  54082. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  54083. format(string, sizeof(string), "* Mechanic %s wants to refill your car for $%d, (type /accept refill) to accept.",sendername,money);
  54084. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  54085. PlayerInfo[playerid][pMechTime] = 60;
  54086. RefillOffer[playa] = playerid;
  54087. RefillPrice[playa] = money;
  54088. }
  54089. else
  54090. {
  54091. SendClientMessage(playerid, COLOR_GREY, " That player is not near you / not in a car.");
  54092. }
  54093. }
  54094. }
  54095. else
  54096. {
  54097. SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
  54098. }
  54099. }
  54100. return 1;
  54101. }
  54102.  
  54103. if(strcmp(cmd, "/trunk", true) == 0)
  54104. {
  54105. ShowPlayerDialog(playerid,TRUNKDIALOG,DIALOG_STYLE_LIST,"Trunk","Open / Close\nCheck\nPut stuff\nTake stuff","Ok","Cancel"); //Trunk
  54106. return 1;
  54107. }
  54108. if(strcmp(cmd, "/neon", true)==0)
  54109. {
  54110. if(IsPlayerConnected(playerid))
  54111. {
  54112. if(PlayerInfo[playerid][pAdmin] >= 3) { }
  54113. else if(PlayerInfo[playerid][pJob] != 7)
  54114. return SendClientMessage(playerid, COLOR_GREY, "You have to be a mechanic");
  54115. if(!IsPlayerInVehicle(playerid, GetPlayerVehicleID(playerid)))
  54116. return SendClientMessage(playerid, COLOR_GREY, "You have to be in a vehicle!");
  54117. new vehicle = GetPlayerVehicleID(playerid);
  54118. for(new i = 0; i < sizeof(CreatedCars); i++)
  54119. {
  54120. if(CreatedCars[i] == vehicle)
  54121. {
  54122. SendClientMessage(playerid, COLOR_GREY, "You can't install neons on this vehicle!");
  54123. return 1;
  54124. }
  54125. }
  54126. if(InvaildCar(GetPlayerVehicleID(playerid)))
  54127. return SendClientMessage(playerid, COLOR_GREY, "You can't have neon on this vehicle!");
  54128.  
  54129. ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Select Neon Color", "{0000FF}Blue Neon\n{FF0000}Red Neon\n{008000}Green Neon\n{FFFFFF}White Neon\n{FF00FF}Pink Neon\n{FFFF00}Yellow Neon\n{FFFFFF}-->{FF8C00}Remove Neon{FFFFFF}<--", "Select", "Cancel");
  54130. }
  54131. return 1;
  54132. }
  54133. if(strcmp(cmd, "/carupgrade", true) == 0)
  54134. {
  54135. if(IsPlayerInRangeOfPoint(playerid,20,2270.0977,-2340.3416,13.5469))
  54136. {
  54137. new cars[256];
  54138. new carname[255];
  54139. new carname2[255];
  54140. new carname3[255];
  54141. new upcarid = PlayerInfo[playerid][pCarKey1];
  54142. new upcarid2 = PlayerInfo[playerid][pCarKey2];
  54143. new upcarid3 = PlayerInfo[playerid][pCarKey3];
  54144. new lp[9], lp2[9], lp3[9];
  54145. strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
  54146. strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
  54147. strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
  54148. if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
  54149. else { carname = "Empty slot";}
  54150. if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
  54151. else { carname2 = "Empty slot";}
  54152. if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
  54153. else { carname3 = "Empty slot";}
  54154. format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
  54155. ShowPlayerDialog(playerid,CARDIALOG,DIALOG_STYLE_LIST,"Vehicle upgrade",cars,"Upgrade","Cancel"); //Car upgrade
  54156. }
  54157. else
  54158. {
  54159. SendClientMessage(playerid, COLOR_GREY, "** You need to be at the garage located near the Ocean Docks to upgrade your vehicle");
  54160. }
  54161. return 1;
  54162. }
  54163. if(strcmp(cmd, "/trackcar", true) == 0)
  54164. {
  54165. new cars[256];
  54166. new carname[255];
  54167. new carname2[255];
  54168. new carname3[255];
  54169. new carname4[255];
  54170. new upcarid = PlayerInfo[playerid][pCarKey1];
  54171. new upcarid2 = PlayerInfo[playerid][pCarKey2];
  54172. new upcarid3 = PlayerInfo[playerid][pCarKey3];
  54173. new upcarid4 = PlayerInfo[playerid][pRentKey];
  54174. new lp[9], lp2[9], lp3[9], lp4[9];
  54175. strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
  54176. strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
  54177. strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
  54178. strmid(lp4, CarInfo[upcarid4][tLicensePlate], 0, strlen(CarInfo[upcarid4][tLicensePlate]), 9);
  54179. if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
  54180. else { carname = "None";}
  54181. if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
  54182. else { carname2 = "None";}
  54183. if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
  54184. else { carname3 = "None";}
  54185. if(PlayerInfo[playerid][pRentKey] != 0) { carname4 = GetVehicleFriendlyName(upcarid4); }
  54186. else { carname4 = "None";}
  54187. format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)\nRent Vehicle: %s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3,carname4, lp4);
  54188. ShowPlayerDialog(playerid,CARTRACK,DIALOG_STYLE_LIST,"Vehicle upgrade",cars,"Upgrade","Cancel"); //Car upgrade
  54189. return 1;
  54190. }
  54191.  
  54192. if(strcmp(cmd, "/towcar", true) == 0)
  54193. {
  54194. new cars[256];
  54195. new carname[255];
  54196. new carname2[255];
  54197. new carname3[255];
  54198. new upcarid = PlayerInfo[playerid][pCarKey1];
  54199. new upcarid2 = PlayerInfo[playerid][pCarKey2];
  54200. new upcarid3 = PlayerInfo[playerid][pCarKey3];
  54201. new lp[9], lp2[9], lp3[9];
  54202. strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
  54203. strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
  54204. strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
  54205. if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
  54206. else { carname = "None";}
  54207. if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
  54208. else { carname2 = "None";}
  54209. if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
  54210. else { carname3 = "None";}
  54211. format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
  54212. ShowPlayerDialog(playerid,TOWCAR,DIALOG_STYLE_LIST,"Vehicle tow",cars,"Upgrade","Cancel"); //Car upgrade
  54213. return 1;
  54214. }
  54215.  
  54216. if(strcmp(cmd, "/givekeys", true) == 0)
  54217. {
  54218. if(IsPlayerConnected(playerid))
  54219. {
  54220. tmp = strtok(cmdtext, idx);
  54221. if(!strlen(tmp))
  54222. {
  54223. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givekeys [playerid/PartOfName]");
  54224. return 1;
  54225. }
  54226. giveplayerid = ReturnUser(tmp);
  54227. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't give the keys to yourself !"); return 1; }
  54228. if(IsPlayerConnected(giveplayerid))
  54229. {
  54230. if(giveplayerid != INVALID_PLAYER_ID)
  54231. {
  54232. if(ProxDetectorS(8.0, playerid, giveplayerid))
  54233. {
  54234. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  54235. KeysOffer[giveplayerid] = playerid;
  54236. KeysOfferTo[playerid] = giveplayerid;
  54237. new cars[256];
  54238. new carname[255];
  54239. new carname2[255];
  54240. new carname3[255];
  54241. new upcarid = PlayerInfo[playerid][pCarKey1];
  54242. new upcarid2 = PlayerInfo[playerid][pCarKey2];
  54243. new upcarid3 = PlayerInfo[playerid][pCarKey3];
  54244. new lp[9], lp2[9], lp3[9];
  54245. strmid(lp, CarInfo[upcarid][tLicensePlate], 0, strlen(CarInfo[upcarid][tLicensePlate]), 9);
  54246. strmid(lp2, CarInfo[upcarid2][tLicensePlate], 0, strlen(CarInfo[upcarid2][tLicensePlate]), 9);
  54247. strmid(lp3, CarInfo[upcarid3][tLicensePlate], 0, strlen(CarInfo[upcarid3][tLicensePlate]), 9);
  54248. if(PlayerInfo[playerid][pCarKey1] != 0) { carname = GetVehicleFriendlyName(upcarid); }
  54249. else { carname = "None";}
  54250. if(PlayerInfo[playerid][pCarKey2] != 0) { carname2 = GetVehicleFriendlyName(upcarid2); }
  54251. else { carname2 = "None";}
  54252. if(PlayerInfo[playerid][pCarKey3] != 0) { carname3 = GetVehicleFriendlyName(upcarid3); }
  54253. else { carname3 = "None";}
  54254. format(cars,sizeof(cars),"%s (License plate: %s)\n%s (License plate: %s)\n%s (License plate: %s)",carname,lp,carname2,lp2,carname3,lp3);
  54255. ShowPlayerDialog(playerid,GIVEKEYS,DIALOG_STYLE_LIST,"Give a temporary key",cars,"Give keys","Cancel"); //Give keys
  54256. }
  54257. else
  54258. {
  54259. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  54260. return 1;
  54261. }
  54262. }
  54263. }
  54264. }
  54265. return 1;
  54266. }
  54267.  
  54268. if(strcmp(cmd, "/dealerships", true) == 0)
  54269. {
  54270. ShowPlayerDialog(playerid,DEALERSHIPDIALOG,DIALOG_STYLE_LIST,"Dealership list","Sport cars/bikes\nBoats\n4x4 cars\nBycicles/Quads/Faggios\nPlanes\nLowriders\nLow Class\nCar Rental","Find","Cancel"); //Dealerships
  54271. return 1;
  54272. }
  54273.  
  54274. if(strcmp(cmd, "/paintball", true) == 0)
  54275. {
  54276. if(!IsPlayerInRangeOfPoint(playerid, 2, 1310.2244,-1368.6892,13.5526))
  54277. {
  54278. SendClientMessage(playerid, COLOR_GRAD2, " You are not at Paintball entrance !");
  54279. return 1;
  54280. }
  54281. ShowPlayerDialog(playerid,PAINTBALLDIALOG,DIALOG_STYLE_LIST,"Choose your guns","Deagle + Spas\nSpas + M4\nDeagle + MP5\nShawnoff + Sniper\nDeagle + Tec9","Done","Cancel"); //Paintball
  54282. return 1;
  54283. }
  54284. if(strcmp(cmd, "/gethp", true) == 0)//PaNoULiS
  54285. {
  54286. if(IsPlayerConnected(playerid))
  54287. {
  54288. if(IsPlayerInRangeOfPoint(playerid, 1, -2665.2717,1425.9445,906.4609) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP HP
  54289. {
  54290. if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
  54291. {
  54292. SetPlayerHealth(playerid, 60);
  54293. GetPlayerName(playerid, sendername, sizeof(sendername));
  54294. format(string, sizeof(string), "** %s fills their Health up.", sendername);
  54295. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54296. return 1;
  54297. }
  54298.  
  54299. else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  54300. {
  54301. SetPlayerHealth(playerid, 80);
  54302. GetPlayerName(playerid, sendername, sizeof(sendername));
  54303. format(string, sizeof(string), "** %s fills their Health up.", sendername);
  54304. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54305. return 1;
  54306. }
  54307.  
  54308. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  54309. {
  54310. SetPlayerHealth(playerid, 100);
  54311. GetPlayerName(playerid, sendername, sizeof(sendername));
  54312. format(string, sizeof(string), "** %s fills their Health up.", sendername);
  54313. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54314. return 1;
  54315. }
  54316. else
  54317. {
  54318. SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  54319. return 1;
  54320. }
  54321. }
  54322.  
  54323. else
  54324. {
  54325. SendClientMessage(playerid, COLOR_GREY, "You are not at the HP Pickup.");
  54326. }
  54327. }
  54328. return 1;
  54329. }
  54330.  
  54331. if(strcmp(cmd, "/buyvest", true) == 0)//PaNoULiS
  54332. {
  54333. if(IsPlayerConnected(playerid))
  54334. {
  54335. if(IsPlayerInRangeOfPoint(playerid, 1, -2670.8728,1429.4496,906.4609) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP VEST
  54336. {
  54337. if(PlayerInfo[playerid][pDonateRank] == 1)//Only for VIP's OF COURSE
  54338. {
  54339. if(PlayerInfo[playerid][pCash] > 9999)
  54340. {
  54341. PlayerInfo[playerid][pCash] -= 10000;
  54342. SetPlayerArmour(playerid, 100);
  54343. GetPlayerName(playerid, sendername, sizeof(sendername));
  54344. format(string, sizeof(string), "** %s fills their Vest up.", sendername);
  54345. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54346. return 1;
  54347. }
  54348. else
  54349. {
  54350. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000).");
  54351. return 1;
  54352. }
  54353. }
  54354.  
  54355. else if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  54356. {
  54357. if(PlayerInfo[playerid][pCash] > 4999)
  54358. {
  54359. PlayerInfo[playerid][pCash] -= 5000;
  54360. SetPlayerArmour(playerid, 100);
  54361. GetPlayerName(playerid, sendername, sizeof(sendername));
  54362. format(string, sizeof(string), "** %s fills their Vest up.", sendername);
  54363. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54364. return 1;
  54365. }
  54366. else
  54367. {
  54368. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($5,000).");
  54369. return 1;
  54370. }
  54371. }
  54372.  
  54373. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  54374. {
  54375. if(PlayerInfo[playerid][pCash] > 2499)
  54376. {
  54377. PlayerInfo[playerid][pCash] -= 2500;
  54378. SetPlayerArmour(playerid, 100);
  54379. GetPlayerName(playerid, sendername, sizeof(sendername));
  54380. format(string, sizeof(string), "* %s fills their Vest up.", sendername);
  54381. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54382. return 1;
  54383. }
  54384. else
  54385. {
  54386. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($2,500).");
  54387. return 1;
  54388. }
  54389. }
  54390. else
  54391. {
  54392. SendClientMessage(playerid, COLOR_RED, "You are not a VIP.");
  54393. return 1;
  54394. }
  54395. }
  54396.  
  54397. else
  54398. {
  54399. SendClientMessage(playerid, COLOR_GREY, "You are not at the Vest Pickup !");
  54400. }
  54401. }
  54402. return 1;
  54403. }
  54404.  
  54405. if(strcmp(cmd, "/buycrack", true) == 0)//PaNoULiS
  54406. {
  54407. if(IsPlayerConnected(playerid))
  54408. {
  54409. if(IsPlayerInRangeOfPoint(playerid, 1, -2673.5171,1398.4757,918.3516) && PlayerInfo[playerid][pVirtualWorld] == 0)//VIP CRACK
  54410. {
  54411. if(PlayerInfo[playerid][pDonateRank] == 2)//Only for VIP's OF COURSE
  54412. {
  54413. if(PlayerInfo[playerid][pCash] > 14999 && PlayerInfo[playerid][pCrack] < 15)
  54414. {
  54415. PlayerInfo[playerid][pCash] -= 15000;
  54416. PlayerInfo[playerid][pCrack] += 10;
  54417. GetPlayerName(playerid, sendername, sizeof(sendername));
  54418. format(string, sizeof(string), "** %s grabs some Crack from the Locker.", sendername);
  54419. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54420. return 1;
  54421. }
  54422. else
  54423. {
  54424. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($15,000) or you already have too much crack.");
  54425. return 1;
  54426. }
  54427. }
  54428.  
  54429. else if(PlayerInfo[playerid][pDonateRank] == 3)//Only for VIP's OF COURSE
  54430. {
  54431. if(PlayerInfo[playerid][pCash] > 9999 && PlayerInfo[playerid][pCrack] < 15)
  54432. {
  54433. PlayerInfo[playerid][pCash] -= 10000;
  54434. PlayerInfo[playerid][pCrack] += 10;
  54435. GetPlayerName(playerid, sendername, sizeof(sendername));
  54436. format(string, sizeof(string), "** %s grabs some Crack from the Locker.", sendername);
  54437. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  54438. return 1;
  54439. }
  54440. else
  54441. {
  54442. SendClientMessage(playerid, COLOR_WHITE, "You can't afford this ($10,000) or you already have too much crack.");
  54443. return 1;
  54444. }
  54445. }
  54446. else
  54447. {
  54448. SendClientMessage(playerid, COLOR_RED, " You are not a Silver VIP ! !");
  54449. return 1;
  54450. }
  54451. }
  54452.  
  54453. else
  54454. {
  54455. SendClientMessage(playerid, COLOR_GREY, "You are not at the Crack Pickup !");
  54456. }
  54457. }
  54458. return 1;
  54459. }
  54460.  
  54461. if(strcmp(cmdtext, "/gates", true) == 0)
  54462. {
  54463. if(IsPlayerInRangeOfPoint(playerid,9,660.24749756,-1309.48803711,16.37491798))
  54464. { //Wu Gate
  54465. if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
  54466. if(wugate1==0)
  54467. {
  54468. wugate1 = 1;
  54469. MoveDynamicObject(wu[0], 655.09918213,-1309.44506836,16.37491798, 1.50);
  54470. MoveDynamicObject(wu[1], 675.17913818,-1309.45532227,16.37491798, 1.50);
  54471. }
  54472. else if(wugate1==1)
  54473. {
  54474. wugate1 = 0;
  54475. MoveDynamicObject(wu[0], 660.24749756,-1309.48803711,16.37491798, 1.50);
  54476. MoveDynamicObject(wu[1], 669.65338135,-1309.48315430,16.37491798, 1.50);
  54477. }
  54478. }
  54479. else if(IsPlayerInRangeOfPoint(playerid,9,787.27789307,-1157.14477539,26.50273514))
  54480. { //Wu Gate
  54481. if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
  54482. if(wugate2==0)
  54483. {
  54484. wugate2 = 1;
  54485. MoveDynamicObject(wu[2], 787.19366455,-1162.24584961,26.50273514, 1.50);
  54486. MoveDynamicObject(wu[3], 787.29956055,-1142.17907715,26.54718781, 1.50);
  54487. }
  54488. else if(wugate2==1)
  54489. {
  54490. wugate2 = 0;
  54491. MoveDynamicObject(wu[2], 787.27789307,-1157.14477539,26.50273514, 1.50);
  54492. MoveDynamicObject(wu[3], 787.28015137,-1147.75488281,26.54718781, 1.50);
  54493. }
  54494. }
  54495. else if(IsPlayerInRangeOfPoint(playerid,9,660.94030762,-1222.54565430,19.04576492))
  54496. { //Wu Gate
  54497. if(PlayerInfo[playerid][pFMember] != 7) return SendClientMessage(playerid,COLOR_GREY," You can't open this gate!");
  54498. if(wugate3==0)
  54499. {
  54500. wugate3 = 1;
  54501. MoveDynamicObject(wu[4], 663.29870605,-1217.85449219,19.04576492, 1.50);
  54502. MoveDynamicObject(wu[5], 654.34063721,-1235.80322266,19.04576492, 1.50);
  54503. }
  54504. else if(wugate3==1)
  54505. {
  54506. wugate3 = 0;
  54507. MoveDynamicObject(wu[4], 660.94030762,-1222.54565430,19.04576492, 1.50);
  54508. MoveDynamicObject(wu[5], 656.51580811,-1230.86401367,19.04576492, 1.50);
  54509. }
  54510. }
  54511. else
  54512. {
  54513. SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
  54514. return 1;
  54515. }
  54516. return 1;
  54517. }
  54518.  
  54519. if(strcmp(cmdtext, "/vipgate", true) == 0)
  54520. {
  54521. if(IsPlayerInRangeOfPoint(playerid,9,364.95495605,-1469.17004395,31.39999962))
  54522. { //VIP Gate
  54523. if(PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP.");
  54524. if(vipgate1==0)
  54525. {
  54526. vipgate1 = 1;
  54527. MoveDynamicObject(vipgateob1, 364.95495605,-1469.17004395,26.0, 1.50);
  54528. }
  54529. else if(vipgate1==1)
  54530. {
  54531. vipgate1 = 0;
  54532. MoveDynamicObject(vipgateob1, 364.95495605,-1469.17004395,31.39999962, 1.50);
  54533. }
  54534. }
  54535. else if(IsPlayerInRangeOfPoint(playerid,9,310.11669922,-1556.11083984,31.39999962))
  54536. { //VIP Gate
  54537. if(PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP.");
  54538. if(vipgate2==0)
  54539. {
  54540. vipgate2 = 1;
  54541. MoveDynamicObject(vipgateob2, 310.11669922,-1556.11083984,26.0, 1.50);
  54542. }
  54543. else if(vipgate2==1)
  54544. {
  54545. vipgate2 = 0;
  54546. MoveDynamicObject(vipgateob2, 310.11669922,-1556.11083984,31.39999962, 1.50);
  54547. }
  54548. }
  54549. else
  54550. {
  54551. SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
  54552. return 1;
  54553. }
  54554. return 1;
  54555. }
  54556.  
  54557. if(strcmp("/affa", cmdtext, true, 10) == 0)
  54558. {
  54559. if(IsPlayerInRangeOfPoint(playerid, 7, 700.2618,-476.8615,16.3359) && PlayerInfo[playerid][pFMember] == 5)
  54560. {
  54561. if(Bariera2 == 0) {
  54562. MoveDynamicObject(bariera, 705.099609375, -475.2548828125, 16.14999961853, 1, 0.00000000,0.00000000,0.00000000);
  54563. Bariera2 = 1;
  54564. }
  54565. else if(Bariera2 == 1)
  54566. {
  54567. MoveDynamicObject(bariera, 705.09997559,-475.25500488,16.14999962, 1, 0.00000000,270.00000000,0.00000000);
  54568. Bariera2 = 0;
  54569. }
  54570. }
  54571. return 1;
  54572. }
  54573. if(strcmp(cmdtext, "/gate", true) == 0)
  54574. {
  54575. if(IsPlayerInRangeOfPoint(playerid,9,1588.3058,-1637.9652,13.4227))
  54576. { //POLICE GATE
  54577. if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST !");
  54578. if(pdgategar==0)
  54579. {
  54580. pdgategar = 1;
  54581. MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 7.710285, 1.50);
  54582. }
  54583. else if(pdgategar==1)
  54584. {
  54585. pdgategar = 0;
  54586. MoveDynamicObject(pdgaragegateobj, 1588.965698, -1637.882690, 15.260185, 1.50);
  54587. }
  54588. }
  54589. else if(IsPlayerInRangeOfPoint(playerid,9,1544.4913,-1627.2817,13.3828))
  54590. { //POLICE BAR
  54591. if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST !");
  54592. if(pdgatebar==0)
  54593. {
  54594. pdgatebar = 1;
  54595. SetDynamicObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
  54596. SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.953003, 13.079567 );
  54597. }
  54598. else if(pdgatebar==1)
  54599. {
  54600. pdgatebar = 0;
  54601. SetDynamicObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
  54602. SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );
  54603. }
  54604. }
  54605. else if(IsPlayerInRangeOfPoint(playerid,9,96.8500, 1923.4334, 15.3518))
  54606. { //PRISON GATE
  54607. if(!IsACop(playerid) && PlayerInfo[playerid][pMember] != 5) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAST / NG !");
  54608. if(Prison_Buttons[GateOpened] == 0)
  54609. {
  54610. MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1923.5, 16.234968, 1.50);
  54611. Prison_Buttons[GateOpened] = 1;
  54612. Prison_Buttons[GateTimerID]= SetTimer("PrisonGateCheck", 60000, 0);
  54613. }
  54614. else
  54615. {
  54616. MoveDynamicObject(Prison_Buttons[PrisonGate], 96.808670, 1920.512817, 16.234968, 1.50);
  54617. Prison_Buttons[GateOpened] = 0;
  54618. KillTimer(Prison_Buttons[GateTimerID]);
  54619. }
  54620. }
  54621.  
  54622. else if(IsPlayerInRangeOfPoint(playerid, 12.0, 1027.46203613, 1183.29357910, 12.45144653))
  54623. { //CIA Gate
  54624. if(!(PlayerInfo[playerid][pMember] == 7)) return SendClientMessage(playerid,COLOR_GREY," You are not a member of the CIA !");
  54625. if(ciagateopen == 0)
  54626. {
  54627. ciagateopen = 1;
  54628. MoveDynamicObject(CIAGate, 1038.17248535, 1183.50256348, 12.45144653, 1.500000);
  54629. }
  54630. else
  54631. {
  54632. ciagateopen = 0;
  54633. MoveDynamicObject(CIAGate, 1027.46203613,1183.29357910,12.45144653, 1.500000);
  54634. }
  54635. }
  54636. else if(IsPlayerInRangeOfPoint(playerid, 6, 618.12, -1294.68, 15.48))
  54637. {
  54638. if(PDOpen == 0)
  54639. {
  54640. MoveDynamicObject(PDGate, 617.70, -1298.70, 15.00, 3, 0.00, 0.00, 268.00);
  54641. PDOpen = 1;
  54642. }
  54643. else if(PDOpen == 1)
  54644. {
  54645. MoveDynamicObject(PDGate, 617.70, -1298.70, 15.00, 3, 0.00, 273.25, 267.99);
  54646. PDOpen = 0;
  54647. }
  54648. }
  54649. else
  54650. {
  54651. SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
  54652. return 1;
  54653. }
  54654. return 1;
  54655. }
  54656. /*if(strcmp(cmdtext, "/sgate", true) == 0)
  54657. {
  54658. if(PlayerInfo[playerid][pFMember] == 6)
  54659. {
  54660. if(IsPlayerInRangeOfPoint(playerid,20,320.6423, -1487.3715, 27.1573))
  54661. {
  54662. if(sygate1 == 0)
  54663. {
  54664. MoveDynamicObject(SajiGate1,328.440826, -1493.048461, 27.050348, 2.0);
  54665. sygate1 = 1;
  54666. SendClientMessage(playerid, COLOR_GREY, " The gate is opening !");
  54667. return 1;
  54668. }
  54669. else if(sygate1 == 1)
  54670. {
  54671. MoveDynamicObject(SajiGate1,320.642395, -1487.371582, 27.157367, 2.0);
  54672. sygate1 = 0;
  54673. SendClientMessage(playerid, COLOR_GREY, " The gate is closing !");
  54674. return 1;
  54675. }
  54676. }
  54677. if(IsPlayerInRangeOfPoint(playerid,20.0,283.56, -1543.01, 27.21))
  54678. {
  54679. if(sygate2 == 0)
  54680. {
  54681. MoveDynamicObject(SajiGate2,275.843261, -1537.967895, 27.164390,5.0);
  54682. sygate2 = 1;
  54683. SendClientMessage(playerid, COLOR_GREY, " The gate is opening !");
  54684. return 1;
  54685. }
  54686. if(sygate2 == 1)
  54687. {
  54688. MoveDynamicObject(SajiGate2,283.568115, -1543.011352, 27.216995, 5.0);
  54689. sygate2 = 0;
  54690. SendClientMessage(playerid, COLOR_GREY, " The gate is closing !");
  54691. return 1;
  54692. }
  54693. }
  54694. else
  54695. {
  54696. SendClientMessage(playerid, COLOR_GREY, " You are not near a gate !");
  54697. return 1;
  54698. }
  54699. }
  54700. else
  54701. {
  54702. SendClientMessage(playerid, COLOR_GREY, " You are not a member of the Saji Yakuza !");
  54703. }
  54704. return 1;
  54705. }
  54706. if(strcmp(cmdtext, "/sdoor", true) == 0)
  54707. {
  54708. if(PlayerInfo[playerid][pFMember] == 6)
  54709. {
  54710. if(IsPlayerInRangeOfPoint(playerid,4,2143.7202,1627.3839,993.7603))
  54711. {
  54712. if(SajiSafeDoor == 0)
  54713. {
  54714. MoveDynamicObject(SafeDoor, 2144.99, 1627.85, 994.25, 20.0);
  54715. SetDynamicObjectRot(SafeDoor, 0.0, 0.0, 90.0);
  54716. SajiSafeDoor = 1;
  54717. SendClientMessage(playerid, COLOR_GREY, " The safe door is opening !");
  54718. return 1;
  54719. }
  54720. else if(SajiSafeDoor == 1)
  54721. {
  54722. MoveDynamicObject(SafeDoor, 2144.18, 1627.10, 994.25, 25.0);
  54723. SetDynamicObjectRot(SafeDoor, 0.0, 0.0, 180.0);
  54724. SajiSafeDoor = 0;
  54725. SendClientMessage(playerid, COLOR_GREY, " The safe door is closing !");
  54726. return 1;
  54727. }
  54728. }
  54729. else
  54730. {
  54731. SendClientMessage(playerid, COLOR_GREY, " You are not near the safe door !");
  54732. return 1;
  54733. }
  54734. }
  54735. else
  54736. {
  54737. SendClientMessage(playerid, COLOR_GREY, " You are not a member of the Saji Yakuza !");
  54738. }
  54739. return 1;
  54740. }*/
  54741. if(strcmp(cmd, "/repair", true) == 0)
  54742. {
  54743. if(IsPlayerConnected(playerid))
  54744. {
  54745. if(PlayerInfo[playerid][pJob] != 7)
  54746. {
  54747. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic!");
  54748. return 1;
  54749. }
  54750. tmp = strtok(cmdtext, idx);
  54751. if(!strlen(tmp))
  54752. {
  54753. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /repair [playerid/PartOfName] [price]");
  54754. return 1;
  54755. }
  54756. new playa;
  54757. new money;
  54758. playa = ReturnUser(tmp);
  54759. tmp = strtok(cmdtext, idx);
  54760. money = strvalEx(tmp);
  54761. if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower then $1, or above $99,999 !"); return 1; }
  54762. if(IsPlayerConnected(playa))
  54763. {
  54764. if(playa != INVALID_PLAYER_ID)
  54765. {
  54766. if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa))
  54767. {
  54768. if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, " You can't offer to repair your own car !"); return 1; }
  54769. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  54770. GetPlayerName(playerid, sendername, sizeof(sendername));
  54771. format(string, sizeof(string), "* You offered %s to fix their car for $%d .",giveplayer,money);
  54772. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  54773. format(string, sizeof(string), "* Mechanic %s wants to repair your car for $%d, (type /accept repair) to accept.",sendername,money);
  54774. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  54775. RepairOffer[playa] = playerid;
  54776. RepairPrice[playa] = money;
  54777. }
  54778. else
  54779. {
  54780. SendClientMessage(playerid, COLOR_GREY, "That player is not near you / not in a car.");
  54781. }
  54782. }
  54783. }
  54784. else
  54785. {
  54786. SendClientMessage(playerid, COLOR_GREY, "That player is Offline.");
  54787. }
  54788. }
  54789. return 1;
  54790. }
  54791. if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
  54792. {
  54793. if(IsPlayerConnected(playerid))
  54794. {
  54795. if(!(PlayerInfo[playerid][pMember] >= 8 && PlayerInfo[playerid][pMember] <= 10 || PlayerInfo[playerid][pFMember] != 255))
  54796. return SendClientMessage(playerid,COLOR_GREY,"You are not part of a Family.");
  54797. if(gFam[playerid]) return 1;
  54798. new length = strlen(cmdtext);
  54799. while ((idx < length) && (cmdtext[idx] <= ' '))
  54800. {
  54801. idx++;
  54802. }
  54803. new offset = idx;
  54804. new result[256];
  54805. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  54806. {
  54807. result[idx - offset] = cmdtext[idx];
  54808. idx++;
  54809. }
  54810. result[idx - offset] = EOS;
  54811. if(!strlen(result))
  54812. {
  54813. SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/f)amily [family chat]");
  54814. return 1;
  54815. }
  54816. if(PlayerInfo[playerid][pFMember] != 255)
  54817. {
  54818. format(string, sizeof(string), "* (%d) %s %s: %s", PlayerInfo[playerid][pFRank],GetPlayerFRank(playerid),PlayerName(playerid), result);
  54819. SendNewFamilyMessage(PlayerInfo[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
  54820. }
  54821. }
  54822. return 1;
  54823. }
  54824. if(strcmp(cmd, "/news", true) == 0)
  54825. {
  54826. if(IsPlayerConnected(playerid))
  54827. {
  54828. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
  54829. {
  54830. new newcar = GetPlayerVehicleID(playerid);
  54831. if(PlayerInfo[playerid][pMuted] == 1)
  54832. {
  54833. SendClientMessage(playerid, COLOR_GREY, " You cannot speak, you have been silenced !");
  54834. return 1;
  54835. }
  54836. if(!IsANewsCar(newcar))
  54837. {
  54838. SendClientMessage(playerid, COLOR_GREY, " You are not in the News Van or Chopper !");
  54839. return 1;
  54840. }
  54841. GetPlayerName(playerid, sendername, sizeof(sendername));
  54842. new length = strlen(cmdtext);
  54843. while ((idx < length) && (cmdtext[idx] <= ' '))
  54844. {
  54845. idx++;
  54846. }
  54847. new offset = idx;
  54848. new result[96];
  54849. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  54850. {
  54851. result[idx - offset] = cmdtext[idx];
  54852. idx++;
  54853. }
  54854. result[idx - offset] = EOS;
  54855. if(!strlen(result))
  54856. {
  54857. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /news [newstext]");
  54858. return 1;
  54859. }
  54860. format(string, sizeof(string), "NR %s: %s", sendername, result);
  54861. OOCNews(COLOR_NEWS,string);
  54862. PlayerInfo[playerid][pNewsSkill] ++;
  54863. if(PlayerInfo[playerid][pNewsSkill] == 50)
  54864. { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 2, soon you are able to Fly the News Chopper and talk Live."); }
  54865. else if(PlayerInfo[playerid][pNewsSkill] == 100)
  54866. { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 3, soon you are able to Fly the News Chopper and talk Live."); }
  54867. else if(PlayerInfo[playerid][pNewsSkill] == 200)
  54868. { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 4, you can fly the News Chopper now."); }
  54869. else if(PlayerInfo[playerid][pNewsSkill] == 400)
  54870. { SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 5, you can now talk Live with any person you want."); }
  54871. }
  54872. else
  54873. {
  54874. SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !");
  54875. }
  54876. }
  54877. return 1;
  54878. }
  54879. if(strcmp(cmd, "/live", true) == 0)
  54880. {
  54881. if(IsPlayerConnected(playerid))
  54882. {
  54883. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
  54884. {
  54885. if(PlayerInfo[playerid][pRank] >= 3)
  54886. {
  54887. if(TalkingLive[playerid] != 255)
  54888. {
  54889. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Live Conversation ended.");
  54890. SendClientMessage(TalkingLive[playerid], COLOR_LIGHTBLUE, "* Live Conversation ended.");
  54891. TogglePlayerControllable(playerid, 1);
  54892. TogglePlayerControllable(TalkingLive[playerid], 1);
  54893. TalkingLive[TalkingLive[playerid]] = 255;
  54894. TalkingLive[playerid] = 255;
  54895. return 1;
  54896. }
  54897. if(PlayerInfo[playerid][pNewsSkill] < 400)
  54898. {
  54899. SendClientMessage(playerid, COLOR_GREY, " Your News Reporter Skill is to low to talk Live with people !");
  54900. return 1;
  54901. }
  54902. tmp = strtok(cmdtext, idx);
  54903. if(!strlen(tmp))
  54904. {
  54905. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /live [playerid/PartOfName]");
  54906. return 1;
  54907. }
  54908. giveplayerid = ReturnUser(tmp);
  54909. if(IsPlayerConnected(giveplayerid))
  54910. {
  54911. if(giveplayerid != INVALID_PLAYER_ID)
  54912. {
  54913. if(ProxDetectorS(5.0, playerid, giveplayerid))
  54914. {
  54915. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Talk Live with yourself !"); return 1; }
  54916. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  54917. GetPlayerName(playerid, sendername, sizeof(sendername));
  54918. format(string, sizeof(string), "* You offered %s to have a Live Conversation.", giveplayer);
  54919. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  54920. format(string, sizeof(string), "* %s offered you to have a Live Conversation, type (/accept live) to accept.", sendername);
  54921. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  54922. LiveOffer[giveplayerid] = playerid;
  54923. }
  54924. else
  54925. {
  54926. SendClientMessage(playerid, COLOR_GREY, " You are to far away from that player !");
  54927. return 1;
  54928. }
  54929. }
  54930. }
  54931. else
  54932. {
  54933. SendClientMessage(playerid, COLOR_GREY, " Invalid ID/Name !");
  54934. return 1;
  54935. }
  54936. }
  54937. else
  54938. {
  54939. SendClientMessage(playerid, COLOR_GREY, " Your rank is not high enough !");
  54940. return 1;
  54941. }
  54942. }
  54943. else
  54944. {
  54945. SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !");
  54946. }
  54947. }
  54948. return 1;
  54949. }
  54950.  
  54951. if(strcmp(cmd, "/sellproducts", true) == 0)
  54952. {
  54953. if(IsPlayerConnected(playerid))
  54954. {
  54955. if(PlayerInfo[playerid][pJob] != 3)
  54956. {
  54957. SendClientMessage(playerid, COLOR_GREY, " You are not a Product Dealer !");
  54958. return 1;
  54959. }
  54960. tmp = strtok(cmdtext, idx);
  54961. if(!strlen(tmp))
  54962. {
  54963. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
  54964. return 1;
  54965. }
  54966. new playa;
  54967. playa = ReturnUser(tmp);
  54968. tmp = strtok(cmdtext, idx);
  54969. if(!strlen(tmp))
  54970. {
  54971. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
  54972. return 1;
  54973. }
  54974. new needed;
  54975. needed = strvalEx(tmp);
  54976. tmp = strtok(cmdtext, idx);
  54977. if(!strlen(tmp))
  54978. {
  54979. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellproducts [playerid/PartOfName] [amount] [price]");
  54980. return 1;
  54981. }
  54982. new money;
  54983. money = strvalEx(tmp);
  54984. if(needed > 500 || needed < 1) { SendClientMessage(playerid, COLOR_GREY, " The amount must be between 1 and 500 !"); return 1; }
  54985. if(needed > PlayerInfo[playerid][pProducts]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that many products with you !"); return 1; }
  54986. if(IsPlayerConnected(playa))
  54987. {
  54988. if(playa != INVALID_PLAYER_ID)
  54989. {
  54990. if(ProxDetectorS(8.0, playerid, playa))
  54991. {
  54992. if(playa == playerid)
  54993. {
  54994. SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
  54995. return 1;
  54996. }
  54997. GetPlayerName(playerid, sendername, sizeof(sendername));
  54998. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  54999. format(string, sizeof(string), "* You offered %s to buy %d Products for $%d .", giveplayer, needed, money);
  55000. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55001. format(string, sizeof(string), "* Product Dealer %s wants to sell you %d Products for $%d, (type /accept products) to buy.", sendername, needed, money);
  55002. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  55003. ProdOffer[playa] = playerid;
  55004. ProdPrice[playa] = money;
  55005. ProdAmount[playa] = needed;
  55006. }
  55007. else
  55008. {
  55009. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55010. }
  55011. }
  55012. }
  55013. else
  55014. {
  55015. SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
  55016. }
  55017. }
  55018. return 1;
  55019. }
  55020.  
  55021. if(strcmp(cmd, "/sellpot", true) == 0)
  55022. {
  55023. if(IsPlayerConnected(playerid))
  55024. {
  55025. if(PlayerInfo[playerid][pJob] != 4)
  55026. {
  55027. SendClientMessage(playerid, COLOR_GREY, " You are not a Drug Dealer !");
  55028. return 1;
  55029. }
  55030. if(PlayerInfo[playerid][pDrugsTime] != 0)
  55031. {
  55032. SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before selling again !");
  55033. return 1;
  55034. }
  55035. tmp = strtok(cmdtext, idx);
  55036. if(!strlen(tmp))
  55037. {
  55038. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
  55039. return 1;
  55040. }
  55041. new playa;
  55042. playa = ReturnUser(tmp);
  55043. tmp = strtok(cmdtext, idx);
  55044. if(!strlen(tmp))
  55045. {
  55046. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
  55047. return 1;
  55048. }
  55049. new needed;
  55050. needed = strvalEx(tmp);
  55051. tmp = strtok(cmdtext, idx);
  55052. if(!strlen(tmp))
  55053. {
  55054. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/PartOfName] [amount] [price]");
  55055. return 1;
  55056. }
  55057. new money;
  55058. money = strvalEx(tmp);
  55059. if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams can't be lower than 1, or above 99 !"); return 1; }
  55060. if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $99,999 !"); return 1; }
  55061. if(needed > PlayerInfo[playerid][pPot]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much Pot with you !"); return 1; }
  55062. if(IsPlayerConnected(playa))
  55063. {
  55064. if(playa != INVALID_PLAYER_ID)
  55065. {
  55066. if(ProxDetectorS(8.0, playerid, playa))
  55067. {
  55068. if(playa == playerid)
  55069. {
  55070. SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
  55071. return 1;
  55072. }
  55073. GetPlayerName(playerid, sendername, sizeof(sendername));
  55074. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  55075. format(string, sizeof(string), "* You offered %s to buy %d grams of Pot for $%d .", giveplayer, needed, money);
  55076. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55077. format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d grams of Pot for $%d, (type /accept pot) to buy.", sendername, needed, money);
  55078. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  55079. PlayerInfo[playerid][pDrugsTime] = 60;
  55080. PotOffer[playa] = playerid;
  55081. PotPrice[playa] = money;
  55082. PotGram[playa] = needed;
  55083. }
  55084. else
  55085. {
  55086. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55087. }
  55088. }
  55089. }
  55090. else
  55091. {
  55092. SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
  55093. }
  55094. }
  55095. return 1;
  55096. }
  55097. if(strcmp(cmd, "/sellcrack", true) == 0)
  55098. {
  55099. if(IsPlayerConnected(playerid))
  55100. {
  55101. if(PlayerInfo[playerid][pJob] != 4)
  55102. {
  55103. SendClientMessage(playerid, COLOR_GREY, " You are not a Drug Dealer !");
  55104. return 1;
  55105. }
  55106. if(PlayerInfo[playerid][pDrugsTime] != 0)
  55107. {
  55108. SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before selling again !");
  55109. return 1;
  55110. }
  55111. tmp = strtok(cmdtext, idx);
  55112. if(!strlen(tmp))
  55113. {
  55114. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
  55115. return 1;
  55116. }
  55117. new playa;
  55118. playa = ReturnUser(tmp);
  55119. tmp = strtok(cmdtext, idx);
  55120. if(!strlen(tmp))
  55121. {
  55122. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
  55123. return 1;
  55124. }
  55125. new needed;
  55126. needed = strvalEx(tmp);
  55127. tmp = strtok(cmdtext, idx);
  55128. if(!strlen(tmp))
  55129. {
  55130. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/PartOfName] [amount] [price]");
  55131. return 1;
  55132. }
  55133. new money;
  55134. money = strvalEx(tmp);
  55135. if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams can't be lower than 1, or above 99 !"); return 1; }
  55136. if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $99,999 !"); return 1; }
  55137. if(needed > PlayerInfo[playerid][pCrack]) { SendClientMessage(playerid, COLOR_GREY, " You don't have that much Crack with you !"); return 1; }
  55138. if(IsPlayerConnected(playa))
  55139. {
  55140. if(playa != INVALID_PLAYER_ID)
  55141. {
  55142. if(ProxDetectorS(8.0, playerid, playa))
  55143. {
  55144. if(playa == playerid)
  55145. {
  55146. SendClientMessage(playerid, COLOR_GREY, " You can't sell to yourself !");
  55147. return 1;
  55148. }
  55149. GetPlayerName(playerid, sendername, sizeof(sendername));
  55150. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  55151. format(string, sizeof(string), "* You offered %s to buy %d grams of Crack for $%d .", giveplayer, needed, money);
  55152. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55153. format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d grams of Crack for $%d, (type /accept crack) to buy.", sendername, needed, money);
  55154. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  55155. PlayerInfo[playerid][pDrugsTime] = 60;
  55156. CrackOffer[playa] = playerid;
  55157. CrackPrice[playa] = money;
  55158. CrackGram[playa] = needed;
  55159. }
  55160. else
  55161. {
  55162. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55163. }
  55164. }
  55165. }
  55166. else
  55167. {
  55168. SendClientMessage(playerid, COLOR_GREY, " That player is Offline.");
  55169. }
  55170. }
  55171. return 1;
  55172. }
  55173. if(strcmp(cmdtext, "/usepot", true) == 0)
  55174. {
  55175. if(IsPlayerConnected(playerid))
  55176. {
  55177. if(UseDrugsTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 5 seconds !");
  55178. if(PlayerBoxing[playerid] > 0)
  55179. {
  55180. SendClientMessage(playerid, COLOR_GREY, " You can't use Pot while you are Boxing !");
  55181. return 1;
  55182. }
  55183. if(PlayerStoned[playerid] >= 6)
  55184. {
  55185. SendClientMessage(playerid, COLOR_GREY, " You are too stoned to use Pot !");
  55186. return 1;
  55187. }
  55188. if(PlayerInfo[playerid][pPot] > 1)
  55189. {
  55190. new Float:health;
  55191. GetPlayerHealth(playerid, health);
  55192. GetPlayerName(playerid, sendername, sizeof(sendername));
  55193. if(health > 80) { SetPlayerHealth(playerid, 100.0); }
  55194. else { SetPlayerHealth(playerid, health + 20.0); }
  55195. PlayerStoned[playerid] += 1;
  55196. if(PlayerStoned[playerid] >= 6)
  55197. {
  55198. GameTextForPlayer(playerid, "~w~You are~n~~p~Stoned", 4000, 1);
  55199. SetPlayerDrunkLevel(playerid, 500000);
  55200. }
  55201. SendClientMessage(playerid, COLOR_GRAD1, " You used 2 grams of pot !");
  55202. if(PlayerInfo[playerid][pMask] == 1)
  55203. {
  55204. format(string, sizeof(string), "* Stranger has used some pot.");
  55205. }
  55206. else
  55207. {
  55208. format(string, sizeof(string), "* %s has used some pot.", sendername);
  55209. }
  55210. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55211. if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop",4.0,0,0,0,0,0); }
  55212. UseDrugsTimer[playerid] = 1; PlayerInfo[playerid][pPot] -= 2;
  55213. SetTimerEx("UseDrugs",5*1000,0,"i",playerid);
  55214. }
  55215. else
  55216. {
  55217. SendClientMessage(playerid, COLOR_GREY, " You dont have any pot left !");
  55218. }
  55219. }
  55220. return 1;
  55221. }
  55222. if(strcmp(cmdtext, "/usecrack", true) == 0)
  55223. {
  55224. if(IsPlayerConnected(playerid))
  55225. {
  55226. if(UseDrugsTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 5 seconds !");
  55227. if(PlayerBoxing[playerid] > 0)
  55228. {
  55229. SendClientMessage(playerid, COLOR_GREY, " You can't use Crack while you are Boxing !");
  55230. return 1;
  55231. }
  55232. if(PlayerStoned[playerid] >= 6)
  55233. {
  55234. SendClientMessage(playerid, COLOR_GREY, " You are too stoned to use Crack !");
  55235. return 1;
  55236. }
  55237. if(PlayerInfo[playerid][pCrack] > 1)
  55238. {
  55239. new Float:armor;
  55240. GetPlayerArmour(playerid, armor);
  55241. GetPlayerName(playerid, sendername, sizeof(sendername));
  55242. if(armor > 80) { SetPlayerArmour(playerid, 100.0); }
  55243. else { SetPlayerArmour(playerid, armor + 10.0); }
  55244. PlayerStoned[playerid] += 1;
  55245. if(PlayerStoned[playerid] >= 6)
  55246. {
  55247. GameTextForPlayer(playerid, "~w~You are~n~~p~Stoned", 4000, 1);
  55248. SetPlayerDrunkLevel(playerid, 500000);
  55249. }
  55250. SendClientMessage(playerid, COLOR_GRAD1, " You used 2 grams of crack !");
  55251. if(PlayerInfo[playerid][pMask] == 1)
  55252. {
  55253. format(string, sizeof(string), "* Stranger has used some crack.");
  55254. }
  55255. else
  55256. {
  55257. format(string, sizeof(string), "* %s has used some crack.", sendername);
  55258. }
  55259. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55260. if(!IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid,"SMOKING","M_smk_in",4.0,0,0,0,0,0); }
  55261. UseDrugsTimer[playerid] = 1; PlayerInfo[playerid][pCrack] -= 2;
  55262. SetTimerEx("UseDrugs",5*1000,0,"i",playerid);
  55263. }
  55264. else
  55265. {
  55266. SendClientMessage(playerid, COLOR_GREY, " You dont have any crack left !");
  55267. }
  55268. }
  55269. return 1;
  55270. }
  55271. if(strcmp(cmd, "/healme", true) == 0)
  55272. {
  55273. if(IsPlayerConnected(playerid))
  55274. {
  55275. if(IsPlayerInRangeOfPoint(playerid,3,1205.7174,-1368.5072,1029.4792)||IsPlayerInRangeOfPoint(playerid,3,2029.5945,-1404.6426,17.2512))
  55276. {
  55277. if(STDPlayer[playerid] > 0)
  55278. {
  55279. STDPlayer[playerid] = 0;
  55280. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are no longer infected with an STD !");
  55281. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-1000;
  55282. GivePlayerMoney(playerid, -1000);
  55283. SendClientMessage(playerid, COLOR_DOC, "DOC: Your medical bill comes to $1000, Have a nice day.");
  55284. }
  55285. else
  55286. {
  55287. SendClientMessage(playerid, COLOR_GREY, " You dont have a STD to heal !");
  55288. return 1;
  55289. }
  55290. }
  55291. else
  55292. {
  55293. SendClientMessage(playerid, COLOR_GREY, " You are not at a Hospital !");
  55294. }
  55295. }
  55296. return 1;
  55297. }
  55298. if(strcmp(cmd, "/eject", true) == 0)
  55299. {
  55300. if(IsPlayerConnected(playerid))
  55301. {
  55302. if(IsPlayerInAnyVehicle(playerid))
  55303. {
  55304. if(GetPlayerState(playerid) != 2)
  55305. {
  55306. SendClientMessage(playerid,COLOR_GREY," You can only eject people as the driver !");
  55307. return 1;
  55308. }
  55309. tmp = strtok(cmdtext, idx);
  55310. if(!strlen(tmp))
  55311. {
  55312. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /eject [playerid/PartOfName]");
  55313. return 1;
  55314. }
  55315. giveplayerid = ReturnUser(tmp);
  55316. if(IsPlayerConnected(giveplayerid))
  55317. {
  55318. if(giveplayerid != INVALID_PLAYER_ID)
  55319. {
  55320. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot Eject yourself !"); return 1; }
  55321. new vehid;
  55322. vehid = GetPlayerVehicleID(playerid);
  55323. if(IsPlayerInVehicle(giveplayerid, vehid))
  55324. {
  55325. GetPlayerName(playerid,sendername,sizeof(sendername));
  55326. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  55327. format(string, sizeof(string), "* You have thrown %s out of the car.", giveplayer);
  55328. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55329. format(string, sizeof(string), "* You have been thrown out the car by %s.", sendername);
  55330. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  55331. format(string, sizeof(string), "* %s has thrown %s out of the vehicle.", sendername, giveplayer);
  55332. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55333. RemovePlayerFromVehicle(giveplayerid);
  55334. }
  55335. else
  55336. {
  55337. SendClientMessage(playerid, COLOR_GREY, " That player is not in your Car !");
  55338. return 1;
  55339. }
  55340. }
  55341. }
  55342. else
  55343. {
  55344. SendClientMessage(playerid, COLOR_GREY, " Invalid ID/Name !");
  55345. }
  55346. }
  55347. else
  55348. {
  55349. SendClientMessage(playerid, COLOR_GREY, " You need to be in a Vehicle to use this !");
  55350. }
  55351. }
  55352. return 1;
  55353. }
  55354. if(strcmp(cmd, "/sex", true) == 0)
  55355. {
  55356. if(IsPlayerConnected(playerid))
  55357. {
  55358. if(PlayerInfo[playerid][pSexTime] != 0)
  55359. {
  55360. SendClientMessage(playerid, COLOR_GREY, " You must wait 1 minute before you can offer to have sex !");
  55361. return 1;
  55362. }
  55363. if(!IsPlayerInAnyVehicle(playerid))
  55364. {
  55365. SendClientMessage(playerid, COLOR_GREY, " You must be in a car to have Sex with someone !");
  55366. return 1;
  55367. }
  55368. new Car = GetPlayerVehicleID(playerid);
  55369. tmp = strtok(cmdtext, idx);
  55370. if(!strlen(tmp))
  55371. {
  55372. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sex [playerid/PartOfName] [price]");
  55373. return 1;
  55374. }
  55375. giveplayerid = ReturnUser(tmp);
  55376. tmp = strtok(cmdtext, idx);
  55377. new money;
  55378. money = strvalEx(tmp);
  55379. if(money < 1 || money > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be lower than $1, or above $20,000 !"); return 1; }
  55380. if(IsPlayerConnected(giveplayerid))
  55381. {
  55382. if(giveplayerid != INVALID_PLAYER_ID)
  55383. {
  55384. if(ProxDetectorS(8.0, playerid, giveplayerid))
  55385. {
  55386. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot have Sex with yourself !"); return 1; }
  55387. if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(giveplayerid, Car))
  55388. {
  55389. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  55390. GetPlayerName(playerid, sendername, sizeof(sendername));
  55391. format(string, sizeof(string), "* You offered %s to have Sex with you, for $%d.", giveplayer, money);
  55392. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55393. format(string, sizeof(string), "* Whore %s has offered you to have Sex with her, for $%d (type /accept sex) to accept.", sendername, money);
  55394. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  55395. PlayerInfo[playerid][pSexTime] = 60;
  55396. SexOffer[giveplayerid] = playerid;
  55397. SexPrice[giveplayerid] = money;
  55398. }
  55399. else
  55400. {
  55401. SendClientMessage(playerid, COLOR_GREY, " You and the other player must be in a Car together !");
  55402. return 1;
  55403. }
  55404. }
  55405. else
  55406. {
  55407. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55408. return 1;
  55409. }
  55410. }
  55411. }
  55412. else
  55413. {
  55414. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  55415. return 1;
  55416. }
  55417. }
  55418. return 1;
  55419. }
  55420. if(strcmp(cmd, "/wanted", true) == 0)
  55421. {
  55422. if(IsPlayerConnected(playerid))
  55423. {
  55424. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid) || PlayerInfo[playerid][pJob] == 2)
  55425. {
  55426. new x;
  55427. SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:");
  55428. //foreach(Player, i)
  55429. for(new i; i<MAX_PLAYERS; i++)
  55430. {
  55431. if(IsPlayerConnected(i))
  55432. {
  55433. if(PlayerInfo[i][pWantedLevel] > 0)
  55434. {
  55435. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  55436. format(string, sizeof(string), "%s%s: %d", string,giveplayer,PlayerInfo[i][pWantedLevel]);
  55437. x++;
  55438. if(x > 3) {
  55439. SendClientMessage(playerid, COLOR_YELLOW, string);
  55440. x = 0;
  55441. format(string, sizeof(string), "");
  55442. } else {
  55443. format(string, sizeof(string), "%s, ", string);
  55444. }
  55445. }
  55446. }
  55447. }
  55448. if(x <= 3 && x > 0) {
  55449. string[strlen(string)-2] = '.';
  55450. SendClientMessage(playerid, COLOR_YELLOW, string);
  55451. }
  55452. }
  55453. else
  55454. {
  55455. SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / SAST / Lawyer !");
  55456. }
  55457. }
  55458. return 1;
  55459. }
  55460. if(strcmp(cmd, "/dropcar", true) == 0)
  55461. {
  55462. if(IsPlayerConnected(playerid))
  55463. {
  55464. if(gPlayerLogged[playerid] > 0)
  55465. {
  55466. if(Packages[playerid] > 0)
  55467. {
  55468. SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Materials Packages !");
  55469. return 1;
  55470. }
  55471. if(Crates[playerid] > 0)
  55472. {
  55473. SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Drug Crates !");
  55474. return 1;
  55475. }
  55476. if(PlayerInfo[playerid][pCarTime] == 0)
  55477. {
  55478. PlayerInfo[playerid][pCarTime] = 0;
  55479. GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
  55480. CP[playerid] = 1;
  55481. SetPlayerCheckpoint(playerid, 2696.0520,-2225.8101,13.2554,8.0);
  55482. }
  55483. else
  55484. {
  55485. SendClientMessage(playerid, COLOR_GREY, " You already sold a car, wait till your reload time is over !");
  55486. }
  55487. }
  55488. else
  55489. {
  55490. SendClientMessage(playerid, COLOR_GREY, " You are not logged in !");
  55491. }
  55492. }
  55493. return 1;
  55494. }
  55495. if(strcmp(cmd, "/nos", true) == 0)
  55496. {
  55497. if(IsPlayerConnected(playerid))
  55498. {
  55499. if(PlayerInfo[playerid][pJob] == 7)
  55500. {
  55501. if(!IsPlayerInAnyVehicle(playerid))
  55502. {
  55503. SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
  55504. return 1;
  55505. }
  55506. GetPlayerName(playerid, sendername, sizeof(sendername));
  55507. new vehid = GetPlayerVehicleID(playerid);
  55508. if(PlayerInfo[playerid][pCash] < 200) { SendClientMessage(playerid, COLOR_GREY, " You cant afford the nos !"); return 1; }
  55509. if(IsValidNosVehicle(vehid))
  55510. {
  55511. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-200;
  55512. GivePlayerMoney(playerid,-200);
  55513. AddVehicleComponent(vehid, 1009); //2x nos
  55514. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  55515. if(PlayerInfo[playerid][pMask] == 1)
  55516. {
  55517. format(string, sizeof(string), "* Stranger slaps a nos canister onto the engine feed.");
  55518. }
  55519. else
  55520. {
  55521. format(string, sizeof(string), "* %s slaps a nos canister onto the engine feed.", sendername);
  55522. }
  55523. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55524. return 1;
  55525. }
  55526. }
  55527. else
  55528. {
  55529. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
  55530. }
  55531. }
  55532. return 1;
  55533. }
  55534. if(strcmp(cmd, "/hyd", true) == 0)
  55535. {
  55536. if(IsPlayerConnected(playerid))
  55537. {
  55538. if(PlayerInfo[playerid][pJob] == 7)
  55539. {
  55540. if(!IsPlayerInAnyVehicle(playerid))
  55541. {
  55542. SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
  55543. return 1;
  55544. }
  55545. GetPlayerName(playerid, sendername, sizeof(sendername));
  55546. new vehid = GetPlayerVehicleID(playerid);
  55547. if(PlayerInfo[playerid][pCash] < 500) { SendClientMessage(playerid, COLOR_GREY, " You cant afford the hydraulics !"); return 1; }
  55548. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
  55549. GivePlayerMoney(playerid,-500);
  55550. AddVehicleComponent(vehid, 1087); //hydraulics
  55551. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  55552. if(PlayerInfo[playerid][pMask] == 1)
  55553. {
  55554. format(string, sizeof(string), "* Stranger has modified the vehicle with hydraulics.");
  55555. }
  55556. else
  55557. {
  55558. format(string, sizeof(string), "* %s has modified the vehicle with hydraulics.", sendername);
  55559. }
  55560. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55561. return 1;
  55562. }
  55563. else
  55564. {
  55565. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
  55566. }
  55567. }
  55568. return 1;
  55569. }
  55570. /*
  55571. new engine,lights,alarm,doors,bonnet,boot,objective;
  55572. new vehid = GetPlayerVehicleID(playerid);
  55573. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER && IsAValidVehicle(GetPlayerVehicleID(playerid)))
  55574. {
  55575. GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
  55576. if(engine<=0)
  55577. {
  55578. GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
  55579. SetTimerEx("StartEngine", 1500, 0, "ii", playerid, vehid);
  55580. }
  55581. else
  55582. {
  55583. GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
  55584. SetTimerEx("StopEngine", 1500, 0, "ii", playerid, vehid);
  55585. }
  55586. }*/
  55587.  
  55588. if(strcmp("/fix", cmdtext, true, 10) == 0)
  55589. {
  55590. if(IsPlayerConnected(playerid))
  55591. {
  55592. if(PlayerInfo[playerid][pJob] == 7)
  55593. {
  55594. if(FixCarTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY," You must wait 60 seconds to repair your vehicle !");
  55595. GetPlayerName(playerid, sendername, sizeof(sendername));
  55596. new vehid = GetPlayerVehicleID(playerid);
  55597. if(vehid)
  55598. {
  55599. if(PlayerInfo[playerid][pWrench] >= 1)
  55600. {
  55601. if(wrench[playerid] == 0)
  55602. {
  55603. SendClientMessage(playerid, COLOR_GREY, " You're not holding a wrench (( /wrench ))!");
  55604. return 1;
  55605. }
  55606. if(CarInfo[vehid][tEngine] == 0)
  55607. {
  55608. RepairVehicle(vehid);
  55609. PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  55610. if(PlayerInfo[playerid][pMask] == 1)
  55611. {
  55612. format(string, sizeof(string), "* Stranger has repaired the vehicle.");
  55613. }
  55614. else
  55615. {
  55616. format(string, sizeof(string), "* %s has repaired the vehicle.", sendername);
  55617. }
  55618. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55619. FixCarTimer[playerid] = 1;
  55620. PlayerInfo[playerid][pWrench]--;
  55621. SetTimerEx("FixCar",60*1000,0,"i",playerid);
  55622. }
  55623. else { SendClientMessage(playerid, COLOR_GREY, " You have to turn off the vehicle engine !"); }
  55624. }
  55625. else { SendClientMessage(playerid, COLOR_GREY, " You have to buy a wrench !"); }
  55626. }
  55627. else
  55628. {
  55629. SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !");
  55630. }
  55631.  
  55632. }
  55633. else
  55634. {
  55635. SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !");
  55636. }
  55637. }
  55638. return 1;
  55639. }
  55640. if(strcmp(cmd, "/quitjob", true) == 0)
  55641. {
  55642. if(IsPlayerConnected(playerid))
  55643. {
  55644. if(PlayerInfo[playerid][pJob] > 0)
  55645. {
  55646. if(PlayerInfo[playerid][pJob] == 17 && CP[playerid] != 0)
  55647. {
  55648. CP[playerid] = 0;
  55649. DisablePlayerCheckpoint(playerid);
  55650. }
  55651. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You quit your Job.");
  55652. PlayerInfo[playerid][pJob] = 0;
  55653. }
  55654. else
  55655. {
  55656. SendClientMessage(playerid, COLOR_GREY, "You don't have a Job to quit.");
  55657. }
  55658. }
  55659. return 1;
  55660. }
  55661. if(strcmp(cmd, "/bail", true) == 0)
  55662. {
  55663. if(IsPlayerConnected(playerid))
  55664. {
  55665. if(PlayerInfo[playerid][pJailed] == 1)
  55666. {
  55667. if(JailPrice[playerid] > 0)
  55668. {
  55669. if(PlayerInfo[playerid][pCash] > JailPrice[playerid])
  55670. {
  55671. format(string, sizeof(string), "* You bailed yourself out for: $%d", JailPrice[playerid]);
  55672. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55673. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-JailPrice[playerid];
  55674. GivePlayerMoney(playerid, -JailPrice[playerid]);
  55675. JailPrice[playerid] = 0;
  55676. WantLawyer[playerid] = 0;
  55677. CallLawyer[playerid] = 0;
  55678. PlayerInfo[playerid][pJailTime] = 1;
  55679. }
  55680. else
  55681. {
  55682. SendClientMessage(playerid, COLOR_GRAD1, " You can't afford that !");
  55683. }
  55684. }
  55685. else
  55686. {
  55687. SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Bail Price !");
  55688. }
  55689. }
  55690. else
  55691. {
  55692. SendClientMessage(playerid, COLOR_GRAD1, " You are not in Jail !");
  55693. }
  55694. }
  55695. return 1;
  55696. }
  55697. if(strcmp(cmd, "/changepass", true) == 0)
  55698. {
  55699. if(IsPlayerConnected(playerid))
  55700. {
  55701. if(gPlayerLogged[playerid] == 0)
  55702. {
  55703. SendClientMessage(playerid, COLOR_GREY, " You are not Logged in !");
  55704. return 1;
  55705. }
  55706. if(ChangePassTimer[playerid]) return 1;
  55707. GetPlayerName(playerid, sendername, sizeof(sendername));
  55708. format(string, sizeof(string), "%s.ini", sendername);
  55709. new tmppass[64];
  55710. tmp = strtok(cmdtext, idx);
  55711. if(!strlen(tmp))
  55712. {
  55713. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changepass [password]");
  55714. return 1;
  55715. }
  55716. format(string, sizeof(string), "You have changed your account password to %s.", tmp);
  55717. SendClientMessage(playerid, COLOR_YELLOW, string);
  55718. strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
  55719. Encrypt(tmppass);
  55720. OnPlayerRegister(playerid,tmppass);
  55721. ChangePassTimer[playerid] = 1;
  55722. SetTimerEx("ChangePass",5*1000,0,"i",playerid);
  55723. }
  55724. return 1;
  55725. }
  55726. if(strcmp(cmd, "/fine", true) == 0)
  55727. {
  55728. if(IsPlayerConnected(playerid))
  55729. {
  55730. if(PlayerInfo[playerid][pAdmin] < 3)
  55731. {
  55732. SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  55733. return 1;
  55734. }
  55735. tmp = strtok(cmdtext, idx);
  55736. if(!strlen(tmp))
  55737. {
  55738. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
  55739. return 1;
  55740. }
  55741. giveplayerid = ReturnUser(tmp);
  55742. tmp = strtok(cmdtext, idx);
  55743. if(!strlen(tmp))
  55744. {
  55745. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
  55746. return 1;
  55747. }
  55748. moneys = strvalEx(tmp);
  55749. if(moneys < 1) { SendClientMessage(playerid, COLOR_GREY, " Fine Money can't be below 1 !"); return 1; }
  55750. if(IsPlayerConnected(giveplayerid))
  55751. {
  55752. if(giveplayerid != INVALID_PLAYER_ID)
  55753. {
  55754. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  55755. new length = strlen(cmdtext);
  55756. while ((idx < length) && (cmdtext[idx] <= ' '))
  55757. {
  55758. idx++;
  55759. }
  55760. new offset = idx;
  55761. new result[64];
  55762. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  55763. {
  55764. result[idx - offset] = cmdtext[idx];
  55765. idx++;
  55766. }
  55767. result[idx - offset] = EOS;
  55768. if(!strlen(result))
  55769. {
  55770. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
  55771. return 1;
  55772. }
  55773. if(UseAdmCmdTimer[playerid] > 3)
  55774. {
  55775. new IP[16];
  55776. new year, month, day;
  55777. getdate(year, month, day);
  55778. GetPlayerName(playerid, sendername, sizeof(sendername));
  55779. GetPlayerIp(playerid, IP, sizeof(IP));
  55780. format(string, sizeof(string), "%s [%d/%d/%d] Name: %s Key: %s Reason: Spam.", IP, day, month, year,sendername,PlayerInfo[playerid][pKey]);
  55781. BanLog(string);
  55782. format(string, sizeof(string), "Info: %s was banned by ChuckNorrisBot, reason: Spam.", sendername);
  55783. SendClientMessageToAll(COLOR_LIGHTRED, string);
  55784. PlayerInfo[playerid][pBand] = 3;
  55785. PlayerInfo[playerid][pPermBand] = 1;
  55786. BanEx(playerid, "Banned By: Autoban Reason: Spam");
  55787.  
  55788. return 1;
  55789. }
  55790. PlayerInfo[giveplayerid][pCash] = PlayerInfo[giveplayerid][pCash]-moneys;
  55791. GivePlayerMoney(giveplayerid,-moneys);
  55792. format(string, sizeof(string), "Info: %s has been fined $%d by an Admin, reason: %s", giveplayer, moneys, (result));
  55793. SendClientMessageToAll(COLOR_LIGHTRED, string);
  55794. UseAdmCmdTimer[playerid]++;
  55795. SetTimerEx("UseAdmCmd",3*1000,0,"i",playerid); //3 seconds
  55796. }
  55797. }
  55798. else
  55799. {
  55800. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  55801. return 1;
  55802. }
  55803. }
  55804. return 1;
  55805. }
  55806.  
  55807. if(strcmp(cmd, "/shakehand", true) == 0)
  55808. {
  55809. if(IsPlayerConnected(playerid))
  55810. {
  55811. tmp = strtok(cmdtext, idx);
  55812. if(!strlen(tmp))
  55813. {
  55814. SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]");
  55815. return 1;
  55816. }
  55817. giveplayerid = ReturnUser(tmp);
  55818. tmp = strtok(cmdtext, idx);
  55819. if(!strlen(tmp))
  55820. {
  55821. SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]");
  55822. return 1;
  55823. }
  55824. new snumber;
  55825. snumber = strval(tmp);
  55826. if(snumber < 1 || snumber > 6) { SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shakehand [playerid/PartOfName] [1-6]"); return 1; }
  55827. if(IsPlayerConnected(giveplayerid))
  55828. {
  55829. if(giveplayerid != INVALID_PLAYER_ID)
  55830. {
  55831. if(ProxDetectorS(2.0, playerid, giveplayerid))
  55832. {
  55833. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " You cannot offer to shake your own hand !"); return 1; }
  55834. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  55835. GetPlayerName(playerid, sendername, sizeof(sendername));
  55836. format(string, sizeof(string), "* You offered to shake %s's hand.", giveplayer);
  55837. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55838. format(string, sizeof(string), "* %s has offered to shake your hand (type /accept handshake), to accept it.", sendername);
  55839. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  55840. HandshakeOffer[giveplayerid] = playerid;
  55841. HandshakeType[giveplayerid] = snumber;
  55842. }
  55843. else
  55844. {
  55845. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55846. return 1;
  55847. }
  55848. }
  55849. }
  55850. else
  55851. {
  55852. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  55853. return 1;
  55854. }
  55855. }
  55856. return 1;
  55857. }
  55858. if(strcmp(cmd, "/ticket", true) == 0)
  55859. {
  55860. if(IsPlayerConnected(playerid))
  55861. {
  55862. if(IsACop(playerid) || IsAAgent(playerid) || IsANG(playerid))
  55863. {
  55864. if(IsACop(playerid) && PlayerInfo[playerid][pOnDuty] == 0)
  55865. {
  55866. SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
  55867. return 1;
  55868. }
  55869. tmp = strtok(cmdtext, idx);
  55870. if(!strlen(tmp))
  55871. {
  55872. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
  55873. return 1;
  55874. }
  55875. giveplayerid = ReturnUser(tmp);
  55876. tmp = strtok(cmdtext, idx);
  55877. if(!strlen(tmp))
  55878. {
  55879. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
  55880. return 1;
  55881. }
  55882. moneys = strvalEx(tmp);
  55883. if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, " Ticket Money can't be below 1 or higher then 99999 !"); return 1; }
  55884. if(IsPlayerConnected(giveplayerid))
  55885. {
  55886. if(giveplayerid != INVALID_PLAYER_ID)
  55887. {
  55888. if(ProxDetectorS(8.0, playerid, giveplayerid))
  55889. {
  55890. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  55891. GetPlayerName(playerid, sendername, sizeof(sendername));
  55892. new length = strlen(cmdtext);
  55893. while ((idx < length) && (cmdtext[idx] <= ' '))
  55894. {
  55895. idx++;
  55896. }
  55897. new offset = idx;
  55898. new result[64];
  55899. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  55900. {
  55901. result[idx - offset] = cmdtext[idx];
  55902. idx++;
  55903. }
  55904. result[idx - offset] = EOS;
  55905. if(!strlen(result))
  55906. {
  55907. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/PartOfName] [price] [reason]");
  55908. return 1;
  55909. }
  55910. format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s.", giveplayer, moneys, (result));
  55911. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55912. format(string, sizeof(string), "* Officer %s has given you a Ticket costing $%d, reason: %s.", sendername, moneys, (result));
  55913. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  55914. format(string, sizeof(string), "* Officer %s writes up a Ticket and gives it to %s.", sendername, giveplayer);
  55915. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  55916. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it.");
  55917. TicketOffer[giveplayerid] = playerid;
  55918. TicketMoney[giveplayerid] = moneys;
  55919. return 1;
  55920. }
  55921. else
  55922. {
  55923. SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
  55924. return 1;
  55925. }
  55926. }
  55927. }
  55928. else
  55929. {
  55930. SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
  55931. return 1;
  55932. }
  55933. }
  55934. else
  55935. {
  55936. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  55937. return 1;
  55938. }
  55939. }
  55940. return 1;
  55941. }
  55942. if(!strcmp(cmdtext, "/sattelite", true))
  55943. {
  55944. if(PlayerInfo[playerid][pMember] != 7)
  55945. {
  55946. SendClientMessage(playerid, COLOR_GREY, " You are not a member of the CIA !");
  55947. return 1;
  55948. }
  55949. if(UsingSate[playerid] == 1)
  55950. {
  55951. SetCameraBehindPlayer(playerid);
  55952. PutPlayerInVehicle(playerid, gLastCar[playerid], 2);
  55953. TogglePlayerControllable(playerid, 1);
  55954. UsingSate[playerid] = 0;
  55955. oldsposx[playerid] = 0.0; oldsposy[playerid] = 0.0; oldsposz[playerid] = 0.0;
  55956. newsposx[playerid] = 0.0; newsposy[playerid] = 0.0; newsposz[playerid] = 0.0;
  55957. ZOOM[playerid] = 0;
  55958. SetCameraBehindPlayer(playerid);
  55959. return 1;
  55960. }
  55961. if(IsPlayerInAnyVehicle(playerid))
  55962. {
  55963. new playervehid = GetPlayerVehicleID(playerid);
  55964. new playervehmodel = GetVehicleModel(playervehid);
  55965. if(playervehmodel != 482 && CarInfo[playervehmodel][tFaction] != 7)
  55966. {
  55967. SendClientMessage(playerid, COLOR_GREY, " You are not in a CIA burrito !");
  55968. return 1;
  55969. }
  55970. if(GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3)
  55971. {
  55972. if(UsingSate[playerid] == 0)
  55973. {
  55974. SetPlayerFacingAngle(playerid, 0.0);
  55975. GetPlayerPos(playerid, oldsposx[playerid], oldsposy[playerid], oldsposz[playerid]);
  55976. SetPlayerPos(playerid, oldsposx[playerid], oldsposy[playerid], oldsposz[playerid]+500);
  55977. gLastCar[playerid] = playervehid;
  55978. TogglePlayerControllable(playerid, 0);
  55979. GetPlayerPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]);
  55980. SetPlayerCameraPos(playerid, newsposx[playerid], newsposy[playerid], newsposz[playerid]+200);
  55981. SendClientMessage(playerid, COLOR_GREY, " Use up, down, left, right to navigate and fire key to adjust the zoom !");
  55982. SetPlayerCameraLookAt(playerid, newsposx[playerid], newsposy[playerid]+5, newsposz[playerid]);
  55983. UsingSate[playerid] = 1;
  55984. ZOOM[playerid] = 1;
  55985. return 1;
  55986. }
  55987. }
  55988. }
  55989. SendClientMessage(playerid, COLOR_GREY, " You are not in a CIA burrito !");
  55990. return 1;
  55991. }
  55992. if(strcmp(cmd, "/arrest", true) == 0)
  55993. {
  55994. if(IsPlayerConnected(playerid))
  55995. {
  55996. if(IsACop(playerid))
  55997. {
  55998. if(IsACop(playerid) && PlayerInfo[playerid][pOnDuty] == 0)
  55999. {
  56000. SendClientMessage(playerid, COLOR_GREY, " You are not on Duty !");
  56001. return 1;
  56002. }
  56003. new interior = GetPlayerInterior(playerid);
  56004. if(!IsPlayerInRangeOfPoint(playerid,6.0,1528.3268,-1677.8229,5.8906) && !IsPlayerInRangeOfPoint(playerid,8.0,1565.1511,-1658.2452,28.3956) && interior != 6)
  56005. {
  56006. SendClientMessage(playerid, COLOR_GREY, " You are not inside the Police Department or at an Arrest Point !");
  56007. return 1;
  56008. }
  56009. tmp = strtok(cmdtext, idx);
  56010. if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
  56011. moneys = strvalEx(tmp);
  56012. if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, " Price can't be below $1 or above $20,000 !"); return 1; }
  56013. tmp = strtok(cmdtext, idx);
  56014. if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
  56015. new time = strvalEx(tmp);
  56016. if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, " Minutes can't be below 1 or above 20 !"); return 1; }
  56017. tmp = strtok(cmdtext, idx);
  56018. if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
  56019. new bail = strvalEx(tmp);
  56020. if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Bail can't be below 0 or above 1 !"); return 1; }
  56021. tmp = strtok(cmdtext, idx);
  56022. if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
  56023. new bailprice = strvalEx(tmp);
  56024. if(bailprice < 0 || bailprice > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Bail Price can't be below $0 or above $1,000,000 !"); return 1; }
  56025. new suspect = GetClosestPlayer(playerid);
  56026. if(IsPlayerConnected(suspect))
  56027. {
  56028. if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
  56029. {
  56030. if(PlayerInfo[suspect][pWantedLevel] < 1) { SendClientMessage(playerid, COLOR_GREY, " Player must be at least Wanted Level 1 !"); return 1; }
  56031. GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
  56032. GetPlayerName(playerid, sendername, sizeof(sendername));
  56033. format(string, sizeof(string), "* You arrested %s.", giveplayer);
  56034. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56035. format(string, sizeof(string), "You were arrested by %s, $%d", sendername, moneys);
  56036. SendClientMessage(suspect,COLOR_LIGHTRED,string);
  56037. PlayerInfo[suspect][pCash] = PlayerInfo[suspect][pCash]-moneys;
  56038. GivePlayerMoney(suspect, -moneys);
  56039. ClearGuns(suspect);
  56040. ResetPlayerWeapons(suspect);
  56041. if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
  56042. {
  56043. format(string, sizeof(string), "<< Officer %s arrested suspect %s >>", sendername, giveplayer);
  56044. OOCNews(COLOR_LIGHTRED, string);
  56045. }
  56046. else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
  56047. {
  56048. format(string, sizeof(string), "<< FBI Agent %s arrested suspect %s >>", sendername, giveplayer);
  56049. OOCNews(COLOR_LIGHTRED, string);
  56050. }
  56051. else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
  56052. {
  56053. format(string, sizeof(string), "<< Deputy %s arrested suspect %s >>", sendername, giveplayer);
  56054. OOCNews(COLOR_LIGHTRED, string);
  56055. }
  56056. else if(PlayerInfo[playerid][pMember]==7||PlayerInfo[playerid][pLeader]==7)
  56057. {
  56058. format(string, sizeof(string), "<< Agent %s arrested suspect %s >>", sendername, giveplayer);
  56059. OOCNews(COLOR_LIGHTRED, string);
  56060. }
  56061. SetPlayerInterior(suspect,6); PlayerInfo[playerid][pInt] = 6;
  56062. SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
  56063. PlayerCuffed[suspect] = 0;
  56064. TogglePlayerControllable(suspect, 1);
  56065. SetCameraBehindPlayer(suspect);
  56066. PlayerInfo[suspect][pJailTime] = time * 60;
  56067. if(bail == 1)
  56068. {
  56069. JailPrice[suspect] = bailprice;
  56070. format(string, sizeof(string), "* You are jailed for %d seconds, Bail: $%d.", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
  56071. SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
  56072. }
  56073. else
  56074. {
  56075. JailPrice[suspect] = 0;
  56076. format(string, sizeof(string), "* You are jailed for %d seconds, Bail: Unavailable.", PlayerInfo[suspect][pJailTime]);
  56077. SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
  56078. }
  56079. if(LoadingCashType[suspect] != 0)
  56080. {
  56081. LoadingCashType[suspect] = 0;
  56082. LoadingCashTime[suspect] = 0;
  56083. LoadedCash[suspect] = 0;
  56084. BankRobbery = 0;
  56085. LoadingCash = 0;
  56086. DisablePlayerCheckpoint(suspect);
  56087. RemovePlayerAttachedObject(suspect,bankbag);
  56088. SendClientMessageToAll(COLOR_LIGHTBLUE, "City Alert: The Bank Robbery attempt has failed! The vault will close within the next 30 seconds");
  56089. SetTimer("CloseTheVault", 30000, 0);
  56090. VPass = 100000 + random(899999);
  56091. BankRobberyTime = 2;
  56092. SaveStuff();
  56093. }
  56094. PlayerInfo[suspect][pJailed] = 1;
  56095. PlayerInfo[suspect][pArrested] += 1;
  56096. SetPlayerFree(suspect,playerid, "Got Arrested");
  56097. PlayerInfo[suspect][pWantedLevel] = 0;
  56098. SetPlayerWantedLevel(suspect, 0);
  56099. SetPlayerToTeamColor(suspect);
  56100. WantLawyer[suspect] = 1;
  56101. OnPlayerSave(suspect);
  56102. }
  56103. }
  56104. else
  56105. {
  56106. SendClientMessage(playerid, COLOR_GREY, " Nobody close enough to arrest !");
  56107. return 1;
  56108. }
  56109. }
  56110. else
  56111. {
  56112. SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / SAST !");
  56113. return 1;
  56114. }
  56115. }
  56116. return 1;
  56117. }
  56118.  
  56119.  
  56120. if(strcmp(cmd, "/contract", true) == 0)
  56121. {
  56122. if(IsPlayerConnected(playerid))
  56123. {
  56124. if(PlayerInfo[playerid][pLevel] >= 2)
  56125. {
  56126. tmp = strtok(cmdtext, idx);
  56127. if(!strlen(tmp))
  56128. {
  56129. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /contract [playerid/PartOfName] [amount]");
  56130. return 1;
  56131. }
  56132. giveplayerid = ReturnUser(tmp);
  56133. tmp = strtok(cmdtext, idx);
  56134. if(!strlen(tmp))
  56135. {
  56136. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /contract [playerid/PartOfName] [amount]");
  56137. return 1;
  56138. }
  56139. moneys = strvalEx(tmp);
  56140. if(moneys < 10000 || moneys > 100000) { SendClientMessage(playerid, COLOR_GREY, "Contract money must be at least $10,000, and not more then $100,000."); return 1; }
  56141. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SendClientMessage(playerid, COLOR_GREY, "Hitmen cannot place contracts on people."); return 1; }
  56142. if(IsPlayerConnected(giveplayerid))
  56143. {
  56144. if(giveplayerid != INVALID_PLAYER_ID)
  56145. {
  56146. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Contract yourself."); return 1; }
  56147. if(PlayerInfo[giveplayerid][pHeadValue] > 500000) { SendClientMessage(playerid, COLOR_GREY, "That player has the maximum amount on their head."); return 1; }
  56148. if(IsACop(giveplayerid) && moneys < 100000) { SendClientMessage(playerid, COLOR_GREY, "Contract price must be atleast $100,000 for Cops."); return 1; }
  56149. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0) { SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time."); return 1; }
  56150. new playermoney = PlayerInfo[playerid][pCash];
  56151. if(moneys > 0 && playermoney >= moneys)
  56152. {
  56153. GetPlayerName(playerid, sendername, sizeof(sendername));
  56154. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  56155. format(string, sizeof(string), "%s", sendername);
  56156. strmid(PlayerInfo[giveplayerid][pContractBy], string, 0, strlen(string), 255);
  56157. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-moneys;
  56158. GivePlayerMoney(playerid, (0 - moneys));
  56159. PlayerInfo[giveplayerid][pHeadValue] +=moneys;
  56160. format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys);
  56161. SendFamilyMessage(8, COLOR_YELLOW, string);
  56162. ABroadCast(COLOR_YELLOW,string,4);
  56163. format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys);
  56164. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56165. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  56166. }
  56167. else
  56168. {
  56169. SendClientMessage(playerid, COLOR_GRAD1, "Invalid transaction ammount.");
  56170. }
  56171. }
  56172. }
  56173. else
  56174. {
  56175. format(string, sizeof(string), " %d is not an active player !", giveplayerid);
  56176. SendClientMessage(playerid, COLOR_GRAD1, string);
  56177. }
  56178. }
  56179. else
  56180. {
  56181. SendClientMessage(playerid, COLOR_GRAD1, " You must be atleast level 2 to place a Contract !");
  56182. }
  56183. }
  56184. return 1;
  56185. }
  56186. return 1;
  56187. }
  56188.  
  56189.  
  56190. dcmd_duel(playerid, params[])
  56191. {
  56192. new id, id2, weapon;
  56193. if(PlayerInfo[playerid][pAdmin] >=4)
  56194. {
  56195. if (sscanf(params, "uii", id, id2, weapon)) SendClientMessage(playerid, COLOR_GREY, "* [Usage]: /duel [playerid/name] [playerid/name] [Weapon]");
  56196. else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Player One not found");
  56197. else if (id2 == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Player Two not found");
  56198. else
  56199. {
  56200. SetPlayerPos(playerid, 1374.0948,5.5511,1008.1563);
  56201. SetPlayerPos(id, 1413.1495,-15.9198,1000.9246);
  56202. SetPlayerPos(id2, 1367.6084,-17.7317,1000.9219);
  56203. SetPlayerHealth(id, 100);
  56204. SetPlayerHealth(id2, 100);
  56205. SetPlayerArmour(id, 100);
  56206. SetPlayerArmour(id2, 100);
  56207. ResetPlayerWeapons(id);
  56208. ResetPlayerWeapons(id2);
  56209. GivePlayerAdminGun(id, weapon);
  56210. GivePlayerAdminGun(id2, weapon);
  56211. GameTextForPlayer(id, "~r~DUEL ON", 2000, 4);
  56212. GameTextForPlayer(id2, "~r~DUEL ON", 2000, 4);
  56213. SetPlayerInterior(id, 1);
  56214. SetPlayerInterior(id2, 1);
  56215. SetPlayerInterior(playerid, 1);
  56216. SetPlayerVirtualWorld(playerid, 0);
  56217. SetPlayerVirtualWorld(id, 0);
  56218. SetPlayerVirtualWorld(id2, 0);
  56219. return 1;
  56220. }
  56221. return 1;
  56222. }
  56223. else
  56224. {
  56225. SendClientMessage(playerid, COLOR_LIGHTRED, "*You are not authorized to use that command.");
  56226. return 1;
  56227. }
  56228. }
  56229. dcmd_setbankreload(playerid, params[])
  56230. {
  56231. new type, string[126];
  56232. if(PlayerInfo[playerid][pAdmin] >= 4)
  56233. {
  56234. if (sscanf(params, "d", type)) return SendClientMessage(playerid, COLOR_GREY, "* [Usage]: /setbankreload [0-2]");
  56235. else
  56236. {
  56237. BankRobberyTime = type;
  56238. format(string, sizeof(string), "AdmWarning: %s has set the bank reload to %d hours",PlayerName(playerid), type);
  56239. ABroadCast(COLOR_YELLOW,string, 1);
  56240. return 1;
  56241. }
  56242. }
  56243. else
  56244. {
  56245. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT a Level 4 admin");
  56246. return 1;
  56247. }
  56248. }
  56249.  
  56250. dcmd_mass(playerid, params[])
  56251. {
  56252. new message[100], number[10], string[126];
  56253. if(PlayerInfo[playerid][pAdmin] >= 3)
  56254. {
  56255. if (sscanf(params, "dz",number,message)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /mass [Number] [Message]");
  56256. else
  56257. {
  56258. for (new i = 0; i < MAX_PLAYER_NAME; i++)
  56259. format(string, sizeof(string), "["CB"SMS Inbox"CW"] "CB" Sender:"CW" %d",number);
  56260. SendClientMessageToAll(COLOR_WHITE, string);
  56261. format(string, sizeof(string), ""CB"Message:"CW" %s",message);
  56262. SendClientMessageToAll(COLOR_WHITE, string);
  56263. return 1;
  56264. }
  56265. }
  56266. else
  56267. {
  56268. SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
  56269. return 1;
  56270. }
  56271. return 1;
  56272. }
  56273.  
  56274. dcmd_subf(playerid, params[])
  56275. {
  56276. new type[24], id, string[126], sub[16];
  56277. if(IsPlayerConnected(playerid))
  56278. {
  56279. if (sscanf(params, "su", type, id)) SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /subf [invite/uninvite] [playername/id]");
  56280. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
  56281. else
  56282. {
  56283. if(IsPlayerConnected(playerid))
  56284. {
  56285. if(PlayerInfo[playerid][pSFMember] == 0) { sub = "Default"; }
  56286. if(PlayerInfo[playerid][pSFMember] == 1) { sub = "SWAT"; }
  56287. if(PlayerInfo[playerid][pSFMember] == 2) { sub = "IA"; }
  56288. if(PlayerInfo[playerid][pSFMember] == 3) { sub = "SIU"; }
  56289. if(PlayerInfo[playerid][pSFMember] == 4) { sub = "ACU"; }
  56290. if(PlayerInfo[playerid][pSFMember] == 5) { sub = "GHOST"; }
  56291. if(strcmp(type, "invite", true) == 0)
  56292. {
  56293. if(PlayerInfo[playerid][pSFLeader] > 0)
  56294. {
  56295. if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
  56296. {
  56297. if(PlayerInfo[id][pSFMember] == 0)
  56298. {
  56299. PlayerInfo[id][pSFMember] = PlayerInfo[playerid][pSFMember];
  56300. format(string, sizeof(string), "** You've invited %s into the %s",PlayerName(id), sub);
  56301. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56302. format(string, sizeof(string), "** You've been invited into the %s by %s",sub, PlayerName(id));
  56303. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56304. }
  56305. else
  56306. {
  56307. SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is already in a sub-faction");
  56308. return 1;
  56309. }
  56310. }
  56311. else
  56312. {
  56313. SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your faction");
  56314. return 1;
  56315. }
  56316. }
  56317. else
  56318. {
  56319. SendClientMessage(playerid, COLOR_LIGHTRED, "** You're not a sub-faction Commander");
  56320. return 1;
  56321. }
  56322. }
  56323. else if(strcmp(type, "uninvite", true) == 0)
  56324. {
  56325. if(PlayerInfo[playerid][pSFLeader] > 0)
  56326. {
  56327. if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
  56328. {
  56329. if(PlayerInfo[id][pSFMember] == PlayerInfo[playerid][pSFMember])
  56330. {
  56331. PlayerInfo[id][pSFMember] = 0;
  56332. format(string, sizeof(string), "** You've uninvited %s from the %s",PlayerName(id), sub);
  56333. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56334. format(string, sizeof(string), "** You've been uninvited from the %s by %s",sub, PlayerName(id));
  56335. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56336. }
  56337. else
  56338. {
  56339. SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your sub-faction");
  56340. return 1;
  56341. }
  56342. }
  56343. else
  56344. {
  56345. SendClientMessage(playerid, COLOR_LIGHTRED, "** That member is not in your faction");
  56346. return 1;
  56347. }
  56348. }
  56349. else
  56350. {
  56351. SendClientMessage(playerid, COLOR_LIGHTRED, "** You're not a sub-faction Commander");
  56352. return 1;
  56353. }
  56354. }
  56355. }
  56356. else
  56357. {
  56358. return 1;
  56359. }
  56360. }
  56361. }
  56362. else
  56363. {
  56364. return 1;
  56365. }
  56366. return 1;
  56367. }
  56368. dcmd_assigncommander(playerid, params[])
  56369. {
  56370. new id, subf, string[126];
  56371. if(PlayerInfo[playerid][pLeader] > 0)
  56372. {
  56373. if(sscanf(params, "ud", id, subf))
  56374. {
  56375. SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /assigncommander [playerid/name] [Subf]");
  56376. SendClientMessage(playerid, COLOR_GREY, "** 1 = SWAT, 2 = IA, 3 = SIU, 4 = ACU, 5 = GHOST");
  56377. return 1;
  56378. }
  56379. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
  56380. else
  56381. {
  56382. if(PlayerInfo[playerid][pLeader] > 0)
  56383. {
  56384. if(PlayerInfo[playerid][pMember] == PlayerInfo[id][pMember])
  56385. {
  56386. new sub[15];
  56387. if(subf == 0) { sub = "Default"; }
  56388. if(subf == 1) { sub = "SWAT"; }
  56389. if(subf == 2) { sub = "IA"; }
  56390. if(subf == 3) { sub = "SIU"; }
  56391. if(subf == 4) { sub = "ACU"; }
  56392. if(subf == 5) { sub = "GHOST"; }
  56393. if(subf == 0)
  56394. {
  56395. PlayerInfo[id][pSFLeader] = 0;
  56396. PlayerInfo[id][pSFMember] = 0;
  56397. format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id), sub);
  56398. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56399. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub, PlayerName(playerid));
  56400. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56401. }
  56402. else if(subf == 1)
  56403. {
  56404. if(PlayerInfo[playerid][pMember] == 1)
  56405. {
  56406. PlayerInfo[id][pSFLeader] = 1;
  56407. PlayerInfo[id][pSFMember] = 1;
  56408. format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
  56409. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56410. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
  56411. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56412. }
  56413. else
  56414. {
  56415. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
  56416. return 1;
  56417. }
  56418. }
  56419. else if(subf == 2)
  56420. {
  56421. if(PlayerInfo[playerid][pMember] == 1)
  56422. {
  56423. PlayerInfo[id][pSFLeader] = 2;
  56424. PlayerInfo[id][pSFMember] = 2;
  56425. format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
  56426. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56427. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
  56428. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56429. }
  56430. else
  56431. {
  56432. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
  56433. return 1;
  56434. }
  56435. }
  56436. else if(subf == 3)
  56437. {
  56438. if(PlayerInfo[playerid][pMember] == 1)
  56439. {
  56440. PlayerInfo[id][pSFLeader] = 3;
  56441. PlayerInfo[id][pSFMember] = 3;
  56442. format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
  56443. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56444. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
  56445. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56446. }
  56447. else
  56448. {
  56449. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the Police Chief");
  56450. return 1;
  56451. }
  56452. }
  56453. else if(subf == 4)
  56454. {
  56455. if(PlayerInfo[playerid][pMember] == 2)
  56456. {
  56457. PlayerInfo[id][pSFLeader] = 4;
  56458. PlayerInfo[id][pSFMember] = 4;
  56459. format(string, sizeof(string), "** You've made %s the %s Commander",PlayerName(id),sub);
  56460. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56461. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
  56462. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56463. }
  56464. else
  56465. {
  56466. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You're not the FBI Director");
  56467. return 1;
  56468. }
  56469. }
  56470. else if(subf == 5)
  56471. {
  56472. if(PlayerInfo[playerid][pMember] == 7)
  56473. {
  56474. PlayerInfo[id][pSFLeader] = 5;
  56475. PlayerInfo[id][pSFMember] = 5;
  56476. format(string, sizeof(string), "* You've made %s the %s Commander",PlayerName(id),sub);
  56477. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  56478. format(string, sizeof(string), "** You've been assigned the %s Commander by %s",sub,PlayerName(playerid));
  56479. SendClientMessage(id, COLOR_LIGHTBLUE, string);
  56480. }
  56481. else
  56482. {
  56483. SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: You're not the SS Director");
  56484. return 1;
  56485. }
  56486. }
  56487. else
  56488. {
  56489. SendClientMessage(playerid, COLOR_LIGHTRED, "* Invalid sub-faction ID");
  56490. return 1;
  56491. }
  56492. }
  56493. else
  56494. {
  56495. SendClientMessage(playerid, COLOR_LIGHTRED, "* That member is not in your faction");
  56496. return 1;
  56497. }
  56498. }
  56499. }
  56500. }
  56501. else
  56502. {
  56503. SendClientMessage(playerid, COLOR_LIGHTRED, "");
  56504. return 1;
  56505. }
  56506. return 1;
  56507. }
  56508.  
  56509. dcmd_givedonuts(playerid, params[])
  56510. {
  56511. new id, donuts, reason[256], string[128];
  56512. if(PlayerInfo[playerid][pAdmin] >= 4)
  56513. {
  56514. if (sscanf(params, "uds", id, donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "{7DAEFF}Usage: /givedonuts [playerid/name] [amount] [reason]{7DAEFF}");
  56515. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "* Invalid player id/name");
  56516. else
  56517. {
  56518. format(string, sizeof(string), "Info: %s has been given %d donuts by %s, reason: %s", PlayerName(id), donuts, PlayerName(playerid), reason);
  56519. SendClientMessageToAll(COLOR_LIGHTRED, string);
  56520. PlayerInfo[id][pDonuts] += donuts;
  56521. }
  56522. }
  56523. else
  56524. {
  56525. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use that command.");
  56526. return 1;
  56527. }
  56528. return 1;
  56529. }
  56530.  
  56531. dcmd_givedonutstoall(playerid, params[])
  56532. {
  56533. new donuts, reason[256], string[128];
  56534. if(PlayerInfo[playerid][pAdmin] >= 4)
  56535. {
  56536. if (sscanf(params, "ds", donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /givedonutstoall [amount] [reason]");
  56537. else
  56538. {
  56539. for(new i; i<MAX_PLAYERS; i++)
  56540. {
  56541. PlayerInfo[i][pDonuts] += donuts;
  56542. }
  56543. format(string, sizeof(string), "Info: %s has given %d donuts to everybody, reason: %s", PlayerName(playerid), donuts, reason);
  56544. SendClientMessageToAll(COLOR_PURPLE, string);
  56545. }
  56546. }
  56547. else
  56548. {
  56549. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT a Level 4 admin");
  56550. return 1;
  56551. }
  56552. return 1;
  56553. }
  56554.  
  56555. /*dcmd_exchange(playerid, params[])
  56556. {
  56557. if(IsPlayerConnected(playerid))
  56558. {
  56559. if(IsPlayerInRangeOfPoint(playerid,6,379.169189,-188.803024,1000.63))
  56560. {
  56561. ShowPlayerDialog(playerid,donutshopdiag1,DIALOG_STYLE_LIST,"-= Donuts Shop =-","Aspirin(Full health) [3 Donuts]\nKevlar(Full Armor) [3 Donuts]\n25g crack [4 Donuts]\n25g pot [4 Donuts]\nWeapon - Deagle [5 Donuts]\nWeapon - MP5 [6 Donuts]\nWeapon - M4 [7 Donuts]\nWeapon - AK47 [7 Donuts]\nWeapon - Spas12 [10 Donuts]\nWeapon Sniper [10 Donuts]\nMore...","Exchange","Cancel"); //Donuts shop
  56562. }
  56563. else { SendClientMessage(playerid, COLOR_GREY, "You are not at the Donuts Shop"); return 1; }
  56564. }
  56565. return 1;
  56566. }*/
  56567.  
  56568. dcmd_removedonuts(playerid, params[])
  56569. {
  56570. new id, donuts, reason[256], string[128];
  56571. if(PlayerInfo[playerid][pAdmin] >= 4)
  56572. {
  56573. if (sscanf(params, "uds", id, donuts, reason)) return SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /removedonuts [playerid/name] [amount] [reason]");
  56574. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "** Invalid player id/name");
  56575. else if(donuts > PlayerInfo[id][pDonuts]) return SendClientMessage(playerid, COLOR_GREY, "*** This player doesn't have enoght Donuts");
  56576. else
  56577. {
  56578. format(string, sizeof(string), "Info: %s has been taken %d donuts from %s, reason: %s", PlayerName(playerid), donuts, PlayerName(id), reason);
  56579. SendClientMessageToAll(COLOR_PURPLE, string);
  56580. PlayerInfo[id][pDonuts] -= donuts;
  56581. }
  56582. }
  56583. else
  56584. {
  56585. SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: You are NOT a Level 4 admin");
  56586. return 1;
  56587. }
  56588. return 1;
  56589. }
  56590.  
  56591. dcmd_setaccent(playerid, params[])
  56592. {
  56593. new id, accent[16], string[126];
  56594. if(PlayerInfo[playerid][pAdmin] >= 3)
  56595. {
  56596. if (sscanf(params, "us", id, accent)) return SendClientMessage(playerid, COLOR_GREY, "* {7DAEFF}USAGE:{FFFFFF} /setaccent [playerid/name] [accent]");
  56597. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "* Invalid player id/name");
  56598. else
  56599. {
  56600. format(string, sizeof(string), "* You've set %s's accent to %s",PlayerName(id), accent);
  56601. SendClientMessage(playerid,COLOR_GREY, string);
  56602. strmid(Accent[id], accent, 0, strlen(accent), 255);
  56603. return 1;
  56604. }
  56605. }
  56606. else
  56607. {
  56608. SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use that command.");
  56609. return 1;
  56610. }
  56611. }
  56612. dcmd_deleteaccount(playerid, params[])
  56613. {
  56614. new name[120], file[126],string[100];
  56615. if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pBanAppealer] == 1)
  56616. {
  56617. if (sscanf(params, "s", name)) return SendClientMessage(playerid, COLOR_GREY, "* {7DAEFF}USAGE:{7DAEFF} /deleteaccount [Account Name]");
  56618. format(file,sizeof(file),"%s.ini",name);
  56619. if(!fexist(file))
  56620. {
  56621. SendClientMessage(playerid, COLOR_LIGHTRED, "* [Error]: Invalid player Account");
  56622. return 1;
  56623. }
  56624. else
  56625. {
  56626. format(file, sizeof(file), "%s.ini", name);
  56627. new File: hFile = fopen(file, io_write);
  56628. if(hFile)
  56629. {
  56630. fremove(file);
  56631. format(string, 256, "Info: %s has deleted account '%s'",PlayerName(playerid),name);
  56632. ABroadCast(COLOR_LIGHTRED, string, 1);
  56633. }
  56634. }
  56635. return 1;
  56636. }
  56637. else
  56638. {
  56639. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: You are NOT an admin");
  56640. return 1;
  56641. }
  56642. }
  56643.  
  56644. stock ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  56645. {
  56646. if(IsPlayerConnected(playerid))
  56647. {
  56648. new Float:posx, Float:posy, Float:posz;
  56649. new Float:oldposx, Float:oldposy, Float:oldposz;
  56650. new Float:tempposx, Float:tempposy, Float:tempposz;
  56651. new invehicle[MAX_PLAYERS];
  56652. new virtualworld = GetPlayerVirtualWorld(playerid);
  56653. new interior = GetPlayerInterior(playerid);
  56654. new vehicleid = GetPlayerVehicleID(playerid);
  56655. new ivehicleid;
  56656. if(vehicleid)
  56657. {
  56658. GetVehiclePos(vehicleid,oldposx,oldposy,oldposz);
  56659. }
  56660. else
  56661. {
  56662. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  56663. vehicleid = GetPlayerVehicleID(playerid);
  56664. }
  56665. for(new i; i<MAX_PLAYERS; i++)
  56666. {
  56667. if(IsPlayerConnected(i))
  56668. {
  56669. if(!BigEar[i])
  56670. {
  56671. if(GetPlayerVirtualWorld(i) == virtualworld)
  56672. {
  56673. if((GetPlayerInterior(i) == interior))
  56674. {
  56675. if(vehicleid)
  56676. {
  56677. if(IsPlayerInVehicle(i,vehicleid))
  56678. {
  56679. invehicle[i] = 1;
  56680. }
  56681. }
  56682. if(!invehicle[i])
  56683. {
  56684. if(IsPlayerInAnyVehicle(i))
  56685. {
  56686. ivehicleid = GetPlayerVehicleID(i);
  56687. GetVehiclePos(ivehicleid,posx,posy,posz);
  56688. } else {
  56689. GetPlayerPos(i,posx,posy,posz);
  56690. }
  56691. tempposx = (oldposx -posx);
  56692. tempposy = (oldposy -posy);
  56693. tempposz = (oldposz -posz);
  56694. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  56695. {
  56696. SendClientMessage(i, col1, string);
  56697. }
  56698. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  56699. {
  56700. SendClientMessage(i, col2, string);
  56701. }
  56702. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  56703. {
  56704. SendClientMessage(i, col3, string);
  56705. }
  56706. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  56707. {
  56708. SendClientMessage(i, col4, string);
  56709. }
  56710. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  56711. {
  56712. SendClientMessage(i, col5, string);
  56713. }
  56714. }
  56715. else
  56716. {
  56717. SendClientMessage(i, col1, string);
  56718. }
  56719. }
  56720. }
  56721. } else {
  56722. SendClientMessage(i, col1, string);
  56723. }
  56724. }
  56725. }
  56726. }
  56727. return 1;
  56728. }
  56729.  
  56730. public ProxDetectorS(Float:radi, playerid, targetid)
  56731. {
  56732. if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  56733. {
  56734. new Float:posx, Float:posy, Float:posz;
  56735. new Float:oldposx, Float:oldposy, Float:oldposz;
  56736. new Float:tempposx, Float:tempposy, Float:tempposz;
  56737. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  56738. GetPlayerPos(targetid, posx, posy, posz);
  56739. tempposx = (oldposx -posx);
  56740. tempposy = (oldposy -posy);
  56741. tempposz = (oldposz -posz);
  56742. if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  56743. {
  56744. return 1;
  56745. }
  56746. }
  56747. return 0;
  56748. }
  56749.  
  56750. public CustomPickups()
  56751. {
  56752. new Float:oldposx, Float:oldposy, Float:oldposz;
  56753. //foreach(Player, i)
  56754. for(new i; i<MAX_PLAYERS; i++)
  56755. {
  56756. if(IsPlayerConnected(i))
  56757. {
  56758. if(GetPlayerState(i) == 1)
  56759. {
  56760. GetPlayerPos(i, oldposx, oldposy, oldposz);
  56761. if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
  56762. {
  56763. for(new h = 0; h < sizeof(FamilyInfo); h++)
  56764. {
  56765. if(IsPlayerInRangeOfPoint(i, 2.0, FamilyInfo[h][FamilySafePos][0], FamilyInfo[h][FamilySafePos][1], FamilyInfo[h][FamilySafePos][2]))
  56766. {
  56767. if(FamilyInfo[h][FamilySafe] == 1)
  56768. {
  56769. GameTextForPlayer(i, "~y~Gang Safe~n~~w~type ~r~/safehelp~w~ for more information", 5000, 3);
  56770. }
  56771. return 1;
  56772. }
  56773. }
  56774. }
  56775. }
  56776. }
  56777. }
  56778. return 1;
  56779. }
  56780.  
  56781. public OnPlayerText(playerid, text[])
  56782. {
  56783. new sendername[MAX_PLAYER_NAME];
  56784. new giveplayer[MAX_PLAYER_NAME];
  56785. new tmp[128];
  56786. new string[128];
  56787. if(PlayerInfo[playerid][pHospital] == 1 || CanTalk[playerid] == 0)
  56788. {
  56789. return 0;
  56790. }
  56791. if(PlayerInfo[playerid][pMuted] == 1)
  56792. {
  56793. SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
  56794. return 0;
  56795. }
  56796. if(SelectChar[playerid] == 255)
  56797. {
  56798. new idx;
  56799. tmp = strtok(text, idx);
  56800. if((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
  56801. {
  56802. switch (SelectCharID[playerid])
  56803. {
  56804. case 1: //Police Force
  56805. {
  56806. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins1[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins1[0][0]; }
  56807. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins1[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins1[1][0]; }
  56808. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins1[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins1[2][0]; }
  56809. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins1[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins1[3][0]; }
  56810. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins1[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins1[4][0]; }
  56811. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins1[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins1[5][0]; }
  56812. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins1[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins1[6][0]; }
  56813. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins1[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = FactSkins1[7][0]; }
  56814. else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, FactSkins1[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = FactSkins1[8][0]; }
  56815. else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, FactSkins1[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = FactSkins1[9][0]; }
  56816. else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, FactSkins1[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins1[10][0]; }
  56817. }
  56818. case 2: //FBI
  56819. {
  56820. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins2[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins2[0][0]; }
  56821. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins2[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins2[1][0]; }
  56822. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins2[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins2[2][0]; }
  56823. }
  56824. case 3: //Sheriffs Department
  56825. {
  56826. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins3[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins3[0][0]; }
  56827. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins3[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins3[1][0]; }
  56828. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins3[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins3[2][0]; }
  56829. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins3[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins3[3][0]; }
  56830. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins3[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins3[4][0]; }
  56831. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins3[5][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins3[5][0]; }
  56832. }
  56833. case 4: //Fire&Ambulance
  56834. {
  56835. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins4[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins4[0][0]; }
  56836. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins4[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins4[1][0]; }
  56837. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins4[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins4[2][0]; }
  56838. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins4[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins4[3][0]; }
  56839. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins4[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins4[4][0]; }
  56840. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins4[5][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins4[5][0]; }
  56841. }
  56842. case 5: //National Guards
  56843. {
  56844. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins5[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins5[0][0]; }
  56845. }
  56846. case 6: //Senate
  56847. {
  56848. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins6[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins6[0][0]; }
  56849. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins6[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins6[1][0]; }
  56850. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins6[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins6[2][0]; }
  56851. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins6[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins6[3][0]; }
  56852. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins6[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins6[4][0]; }
  56853. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins6[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins6[5][0]; }
  56854. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins6[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins6[6][0]; }
  56855. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins6[7][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins6[7][0]; }
  56856. }
  56857. case 7: //SS
  56858. {
  56859. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins7[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins7[0][0]; }
  56860. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins7[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins7[1][0]; }
  56861. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins7[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins7[2][0]; }
  56862. }
  56863. case 8: //Hitman Agency
  56864. {
  56865. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins8[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins8[0][0]; }
  56866. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins8[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins8[1][0]; }
  56867. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins8[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins8[2][0]; }
  56868. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins8[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FactSkins8[3][0]; }
  56869. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FactSkins8[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FactSkins8[4][0]; }
  56870. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FactSkins8[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FactSkins8[5][0]; }
  56871. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FactSkins8[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FactSkins8[6][0]; }
  56872. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FactSkins8[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = FactSkins8[7][0]; }
  56873. else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, FactSkins8[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = FactSkins8[8][0]; }
  56874. else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, FactSkins8[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = FactSkins8[9][0]; }
  56875. else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, FactSkins8[10][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = FactSkins8[10][0]; }
  56876. else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, FactSkins8[11][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = FactSkins8[11][0]; }
  56877. else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, FactSkins8[12][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = FactSkins8[12][0]; }
  56878. else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, FactSkins8[13][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = FactSkins8[13][0]; }
  56879. else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, FactSkins8[14][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = FactSkins8[14][0]; }
  56880. else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, FactSkins8[15][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = FactSkins8[15][0]; }
  56881. else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, FactSkins8[16][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = FactSkins8[16][0]; }
  56882. else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, FactSkins8[17][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = FactSkins8[17][0]; }
  56883. else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, FactSkins8[18][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = FactSkins8[18][0]; }
  56884. else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, FactSkins8[19][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = FactSkins8[19][0]; }
  56885. else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, FactSkins8[20][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = FactSkins8[20][0]; }
  56886. else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, FactSkins8[21][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = FactSkins8[21][0]; }
  56887. else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, FactSkins8[22][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = FactSkins8[22][0]; }
  56888. else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, FactSkins8[23][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = FactSkins8[23][0]; }
  56889. else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, FactSkins8[24][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins8[24][0]; }
  56890. }
  56891. case 9: //News Reporters
  56892. {
  56893. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins9[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins9[0][0]; }
  56894. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins9[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins9[1][0]; }
  56895. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins9[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FactSkins9[2][0]; }
  56896. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FactSkins9[3][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins9[3][0]; }
  56897. }
  56898. case 10: //Taxi Cab Company
  56899. {
  56900. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FactSkins10[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FactSkins10[0][0]; }
  56901. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FactSkins10[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FactSkins10[1][0]; }
  56902. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FactSkins10[2][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FactSkins10[2][0]; }
  56903. }
  56904. case 11: //Families
  56905. {
  56906. new family = PlayerInfo[playerid][pFMember];
  56907. if(SelectCharPlace[playerid] < FamilyInfo[family][FamilySkins])
  56908. {
  56909. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin2]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin2]; }
  56910. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin3]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin3]; }
  56911. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin4]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin4]; }
  56912. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin5]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin5]; }
  56913. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin6]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin6]; }
  56914. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin7]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin7]; }
  56915. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin8]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin8]; }
  56916. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin1]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin1]; }
  56917. }
  56918. else
  56919. {
  56920. SetPlayerSkin(playerid, FamilyInfo[family][FamilySkin1]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = FamilyInfo[family][FamilySkin1];
  56921. }
  56922. }
  56923. }
  56924. return 0;
  56925. }
  56926. else if((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
  56927. {
  56928. if(ChangeUniform[playerid] == 1) //lspd
  56929. {
  56930. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  56931. SelectCharPlace[playerid] = 0;
  56932. SelectCharID[playerid] = 0;
  56933. SelectChar[playerid] = 0;
  56934. ChangeUniform[playerid] = 0;
  56935. TogglePlayerControllable(playerid,1);
  56936. return 0;
  56937. }
  56938.  
  56939. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  56940. SelectCharPlace[playerid] = 0;
  56941. SelectCharID[playerid] = 0;
  56942. SelectChar[playerid] = 0;
  56943. SetPlayerToTeamColor(playerid);
  56944. TogglePlayerControllable(playerid,1);
  56945. //SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
  56946. //SpawnPlayer(playerid);
  56947. return 0;
  56948. }
  56949. else
  56950. {
  56951. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use 'next', or 'done'.");
  56952. return 0;
  56953. }
  56954. }
  56955. if(RegistrationStep[playerid] > 0)
  56956. {
  56957. if(RegistrationStep[playerid] == 1)
  56958. {
  56959. new idx;
  56960. tmp = strtok(text, idx);
  56961. if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
  56962. {
  56963. PlayerInfo[playerid][pSex] = 1;
  56964. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Male.");
  56965. SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use date/month/years) (dd/mm/yyyy");
  56966. RegistrationStep[playerid] = 2;
  56967. return 0;
  56968. }
  56969. else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
  56970. {
  56971. PlayerInfo[playerid][pSex] = 2;
  56972. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Female.");
  56973. SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
  56974. RegistrationStep[playerid] = 2;
  56975. return 0;
  56976. }
  56977. else
  56978. {
  56979. SendClientMessage(playerid, COLOR_LIGHTRED, "Are you a Male or Female? (Type in what you are).");
  56980. }
  56981. return 0;
  56982. }
  56983. else if(RegistrationStep[playerid] == 2)
  56984. {
  56985. new year, month, day;
  56986. getdate(year, month, day);
  56987. new DateInfo[3][20];
  56988. split(text, DateInfo, '/');
  56989. if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
  56990. {
  56991. SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
  56992. return 0;
  56993. }
  56994. new check = year - strvalEx(DateInfo[2]);
  56995. if(check == year)
  56996. {
  56997. SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
  56998. return 0;
  56999. }
  57000. if(strvalEx(DateInfo[1]) > month)
  57001. {
  57002. check -= 1;
  57003. }
  57004. else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
  57005. {
  57006. check -= 1;
  57007. }
  57008. PlayerInfo[playerid][pAge] = check;
  57009. format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
  57010. SendClientMessage(playerid, COLOR_YELLOW2, string);
  57011. SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information and welcome to Reality Gaming RolePlay. Type /faq for a list of frequently asked questions and their answers.");
  57012. CanTalk[playerid] = 1;
  57013. TutTime[playerid] = 1;
  57014. PlayerInfo[playerid][pSafeSpawn] = 1;
  57015. PlayerInfo[playerid][pTut] = 1;
  57016. gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
  57017. TogglePlayerControllable(playerid, 1);
  57018. PlayerInfo[playerid][pHealth] = 100;
  57019. PlayerInfo[playerid][pArmor] = 0;
  57020. SetPlayerSpawn(playerid);
  57021. RegistrationStep[playerid] = 0;
  57022. PlayerInfo[playerid][pOrigin] = 1;
  57023. return 0;
  57024. }
  57025. return 0;
  57026. }
  57027. if(MarriageCeremoney[playerid] > 0)
  57028. {
  57029. new idx;
  57030. tmp = strtok(text, idx);
  57031. if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  57032. {
  57033. if(GotProposedBy[playerid] < 999)
  57034. {
  57035. if(IsPlayerConnected(GotProposedBy[playerid]))
  57036. {
  57037. GetPlayerName(playerid, sendername, sizeof(sendername));
  57038. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  57039. format(string, sizeof(string), "Priest: %s do you take %s as your lovely Wife? (type 'yes', anything else will reject the Marriage).", giveplayer,sendername);
  57040. SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
  57041. MarriageCeremoney[GotProposedBy[playerid]] = 1;
  57042. MarriageCeremoney[playerid] = 0;
  57043. GotProposedBy[playerid] = 999;
  57044. return 0;
  57045. }
  57046. else
  57047. {
  57048. MarriageCeremoney[playerid] = 0;
  57049. GotProposedBy[playerid] = 999;
  57050. return 0;
  57051. }
  57052. }
  57053. else if(ProposedTo[playerid] < 999)
  57054. {
  57055. if(IsPlayerConnected(ProposedTo[playerid]))
  57056. {
  57057. GetPlayerName(playerid, sendername, sizeof(sendername));
  57058. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  57059. if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
  57060. {
  57061. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Bride.", sendername, giveplayer);
  57062. SendClientMessage(playerid, COLOR_WHITE, string);
  57063. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Groom.", giveplayer, sendername);
  57064. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  57065. format(string, sizeof(string), "Marriage News: We have a new lovely couple, %s & %s have been married.", sendername, giveplayer);
  57066. OOCNews(COLOR_WHITE, string);
  57067. }
  57068. else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
  57069. {
  57070. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Bride.", sendername, giveplayer);
  57071. SendClientMessage(playerid, COLOR_WHITE, string);
  57072. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Groom.", giveplayer, sendername);
  57073. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  57074. format(string, sizeof(string), "Marriage News: We have a new Gay couple, %s & %s have been married.", sendername, giveplayer);
  57075. OOCNews(COLOR_WHITE, string);
  57076. Accent[playerid] = "Gay";
  57077. Accent[ProposedTo[playerid]] = "Gay";
  57078. }
  57079. else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
  57080. {
  57081. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
  57082. SendClientMessage(playerid, COLOR_WHITE, string);
  57083. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
  57084. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  57085. format(string, sizeof(string), "Marriage News: We have a new Lesbian couple, %s & %s have been married.", sendername, giveplayer);
  57086. OOCNews(COLOR_WHITE, string);
  57087. }
  57088. //MarriageCeremoney[ProposedTo[playerid]] = 1;
  57089. MarriageCeremoney[ProposedTo[playerid]] = 0;
  57090. MarriageCeremoney[playerid] = 0;
  57091. format(string, sizeof(string), "%s", sendername);
  57092. strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
  57093. format(string, sizeof(string), "%s", giveplayer);
  57094. strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
  57095. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-100000;
  57096. GivePlayerMoney(playerid, - 100000);
  57097. PlayerInfo[playerid][pMarried] = 1;
  57098. PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
  57099. ProposedTo[playerid] = 999;
  57100. MarriageCeremoney[playerid] = 0;
  57101. return 1;
  57102. }
  57103. else
  57104. {
  57105. MarriageCeremoney[playerid] = 0;
  57106. ProposedTo[playerid] = 999;
  57107. return 0;
  57108. }
  57109. }
  57110. }
  57111. else
  57112. {
  57113. if(GotProposedBy[playerid] < 999)
  57114. {
  57115. if(IsPlayerConnected(GotProposedBy[playerid]))
  57116. {
  57117. GetPlayerName(playerid, sendername, sizeof(sendername));
  57118. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  57119. format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
  57120. SendClientMessage(playerid, COLOR_YELLOW, string);
  57121. format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
  57122. SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
  57123. return 0;
  57124. }
  57125. else
  57126. {
  57127. MarriageCeremoney[playerid] = 0;
  57128. GotProposedBy[playerid] = 999;
  57129. return 0;
  57130. }
  57131. }
  57132. else if(ProposedTo[playerid] < 999)
  57133. {
  57134. if(IsPlayerConnected(ProposedTo[playerid]))
  57135. {
  57136. GetPlayerName(playerid, sendername, sizeof(sendername));
  57137. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  57138. format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
  57139. SendClientMessage(playerid, COLOR_YELLOW, string);
  57140. format(string, sizeof(string), "* %s didn't want to Marry you, no 'yes' was said.",sendername);
  57141. SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
  57142. return 0;
  57143. }
  57144. else
  57145. {
  57146. MarriageCeremoney[playerid] = 0;
  57147. ProposedTo[playerid] = 999;
  57148. return 0;
  57149. }
  57150. }
  57151. }
  57152. return 0;
  57153. }
  57154. if(LSPDClearing[playerid] != 0)
  57155. {
  57156. if(LSPDClearing[playerid] == 1)
  57157. {
  57158. new idx;
  57159. tmp = strtok(text, idx);
  57160. new playa;
  57161. playa = ReturnUser(tmp);
  57162. if(IsPlayerConnected(playa))
  57163. {
  57164. if(playa != INVALID_PLAYER_ID)
  57165. {
  57166. if(PlayerInfo[playa][pWantedLevel] > 0)
  57167. {
  57168. GetPlayerName(playerid, sendername, sizeof(sendername));
  57169. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  57170. PlayerInfo[playa][pWantedLevel] = 0;
  57171. SetPlayerWantedLevel(playa, 0);
  57172. SetPlayerToTeamColor(playa);
  57173. LSPDClearing[playerid] = 0;
  57174. TogglePlayerControllable(playerid, 1);
  57175. format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s.", giveplayer);
  57176. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  57177. format(string, sizeof(string), "* Officer %s has cleared your Records and Wanted Points.", sendername);
  57178. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  57179. format(string, sizeof(string), "HQ: %s has cleared %s's Records and Wanted Points.", sendername, giveplayer);
  57180. SendDepartmentMessage(TEAM_BLUE_COLOR, string);
  57181. ClearCrime(playa);
  57182. }
  57183. else
  57184. {
  57185. SendClientMessage(playerid, COLOR_GREY, " That player is currently not wanted !");
  57186. LSPDClearing[playerid] = 0;
  57187. TogglePlayerControllable(playerid, 1);
  57188. return 0;
  57189. }
  57190. }
  57191. }
  57192. else
  57193. {
  57194. SendClientMessage(playerid, COLOR_GREY, " Invalid ID !");
  57195. LSPDClearing[playerid] = 0;
  57196. TogglePlayerControllable(playerid, 1);
  57197. return 0;
  57198. }
  57199. return 0;
  57200. }
  57201. if(LSPDClearing[playerid] == 2)
  57202. {
  57203. new idx;
  57204. tmp = strtok(text, idx);
  57205. new playa;
  57206. playa = ReturnUser(tmp);
  57207. if(IsPlayerConnected(playa))
  57208. {
  57209. if(playa != INVALID_PLAYER_ID)
  57210. {
  57211. if(PlayerInfo[playa][pJailed] > 0)
  57212. {
  57213. GetPlayerName(playerid, sendername, sizeof(sendername));
  57214. GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  57215. PlayerInfo[playa][pWantedLevel] = 0;
  57216. SetPlayerWantedLevel(playa, 0);
  57217. SetPlayerToTeamColor(playa);
  57218. LSPDClearing[playerid] = 0;
  57219. if (PlayerInfo[playa][pAdminJailed] == 1)
  57220. {
  57221. if (PlayerInfo[playa][pJailed] >= 1)
  57222. {
  57223. format(string, sizeof(string), "This player was jailed by an admin, you may not release them.");
  57224. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  57225. format(string, sizeof(string), "AdmWarning: %s has attempted to release %s from admin jail/prison.",sendername,giveplayer);
  57226. ABroadCast(COLOR_LIGHTRED,string, 1);
  57227. LSPDClearing[playerid] = 0;
  57228. TogglePlayerControllable(playerid, 1);
  57229. PlayerInfo[playa][pAdminJailed] = 1;
  57230. return 0;
  57231. }
  57232. }
  57233. else if(PlayerInfo[playa][pJailed] == 1)
  57234. {
  57235. SetPlayerInterior(playa, 6);
  57236. SetPlayerPos(playa,268.0903,77.6489,1001.0391);
  57237. format(string, sizeof(string), "* You have cleared %s's Wanted Points and released them from Jail.", giveplayer);
  57238. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  57239. format(string, sizeof(string), "* Officer %s has cleared your Wanted Points and released you from Jail.", sendername);
  57240. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  57241. format(string, sizeof(string), "HQ: %s has cleared %s's Wanted Points and released them from Jail.", sendername, giveplayer);
  57242. SendDepartmentMessage(TEAM_BLUE_COLOR, string);
  57243. format(string, sizeof(string), "~g~Released~n~~w~Try to be a better citizen");
  57244. GameTextForPlayer(playa, string, 5000, 1);
  57245. }
  57246. else if(PlayerInfo[playa][pJailed] == 2)
  57247. {
  57248. SetPlayerInterior(playa, 1);
  57249. SetPlayerPos(playa, 1773.7007,-1577.5149,1636.9736);
  57250. SetPlayerFacingAngle( playerid, 0.0);
  57251. format(string, sizeof(string), "* You have cleared %s's Wanted Points and released them from Prison.", giveplayer);
  57252. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  57253. format(string, sizeof(string), "* Officer %s has cleared your Wanted Points and released you from Prison.", sendername);
  57254. SendClientMessage(playa, COLOR_LIGHTBLUE, string);
  57255. format(string, sizeof(string), "HQ: %s has cleared %s's Wanted Points and released them from Prison.", sendername, giveplayer);
  57256. SendDepartmentMessage(TEAM_BLUE_COLOR, string);
  57257. format(string, sizeof(string), "~g~Released~n~~w~Try to be a better citizen");
  57258. GameTextForPlayer(playa, string, 5000, 1);
  57259. }
  57260. PlayerInfo[playa][pJailed] = 0;
  57261. PlayerInfo[playa][pJailTime] = 0;
  57262. TogglePlayerControllable(playerid, 1);
  57263. ClearCrime(playa);
  57264. SetPlayerToTeamColor(playa);
  57265. SetCameraBehindPlayer(playerid);
  57266. }
  57267. else
  57268. {
  57269. SendClientMessage(playerid, COLOR_GREY, " That player is currently not in jail !");
  57270. LSPDClearing[playerid] = 0;
  57271. TogglePlayerControllable(playerid, 1);
  57272. return 0;
  57273. }
  57274. }
  57275. }
  57276. else
  57277. {
  57278. SendClientMessage(playerid, COLOR_GREY, " Invalid ID !");
  57279. LSPDClearing[playerid] = 0;
  57280. TogglePlayerControllable(playerid, 1);
  57281. return 0;
  57282. }
  57283. return 0;
  57284. }
  57285. }
  57286. if(SelectDrug[playerid] != 0)
  57287. {
  57288. new idx;
  57289. tmp = strtok(text, idx);
  57290. if((strcmp("Crack", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Crack"))) //crack
  57291. {
  57292. if(!IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
  57293. {
  57294. SendClientMessage(playerid, COLOR_GREY, " You are not at the Drug Factory in Blueberry !");
  57295. return 0;
  57296. }
  57297. if(PlayerInfo[playerid][pCash] < 1000)
  57298. {
  57299. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  57300. SelectDrug[playerid] = 0;
  57301. return 0;
  57302. }
  57303. new crackcprice = 1000;
  57304. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-crackcprice;
  57305. GivePlayerMoney(playerid, -crackcprice);
  57306. Crates[playerid] = 1;
  57307. CP[playerid] = 5;
  57308. SetPlayerCheckpoint(playerid, 2354.2703,-1169.3293,28.0083, 3.0); //cracklab
  57309. format(string, sizeof(string), "* You bought a Drug Crate for $%d.", crackcprice);
  57310. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  57311. GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Crates", 5000, 1);
  57312. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  57313. SelectDrug[playerid] = 0;
  57314. return 0;
  57315. }
  57316. if((strcmp("Seeds", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Seeds"))) //pot
  57317. {
  57318. if(!IsPlayerInRangeOfPoint(playerid,3.0,2205.9199,1582.2222,999.9766)) //drug factory
  57319. {
  57320. SendClientMessage(playerid, COLOR_GREY, " You are not at the Drug Factory in Blueberry !");
  57321. return 0;
  57322. }
  57323. if(PlayerInfo[playerid][pCash] < 1000)
  57324. {
  57325. SendClientMessage(playerid, COLOR_GREY, " You can't afford that !");
  57326. SelectDrug[playerid] = 0;
  57327. return 0;
  57328. }
  57329. new potcprice = 1000;
  57330. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-potcprice;
  57331. GivePlayerMoney(playerid, -potcprice);
  57332. Crates[playerid] = 1;
  57333. CP[playerid] = 6;
  57334. SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3.0); //drug house
  57335. format(string, sizeof(string), "* You bought a Drug Crate for $%d.", potcprice);
  57336. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  57337. GameTextForPlayer(playerid, "~w~Deliver ~n~~r~Deliver the Crates", 5000, 1);
  57338. PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  57339. SelectDrug[playerid] = 0;
  57340. return 0;
  57341. }
  57342. else
  57343. {
  57344. SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or seeds)");
  57345. return 0;
  57346. }
  57347. }
  57348. if(CallLawyer[playerid] == 111)
  57349. {
  57350. new idx;
  57351. tmp = strtok(text, idx);
  57352. if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  57353. {
  57354. GetPlayerName(playerid, sendername, sizeof(sendername));
  57355. format(string, sizeof(string), "** %s is in Jail, and needs a Lawyer. Go to the Police Station.", sendername);
  57356. SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
  57357. SendClientMessage(playerid, COLOR_LIGHTRED, "A message has been sent to all available Lawyers, please wait.");
  57358. WantLawyer[playerid] = 0;
  57359. CallLawyer[playerid] = 0;
  57360. return 0;
  57361. }
  57362. else
  57363. {
  57364. SendClientMessage(playerid, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
  57365. WantLawyer[playerid] = 0;
  57366. CallLawyer[playerid] = 0;
  57367. return 0;
  57368. }
  57369. }
  57370.  
  57371. if(TutTime[playerid] > 0)
  57372. {
  57373. new idx;
  57374. tmp = strtok(text, idx);
  57375. if((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  57376. {
  57377. GetPlayerName(playerid, sendername, sizeof(sendername));
  57378. format(string, sizeof(string), "* %s (%d) is requesting help, ( /gotonewbie [PlayerID] ).", sendername, playerid);
  57379. SendHelperMessage(TEAM_AZTECAS_COLOR, string);
  57380. SendClientMessage(playerid, COLOR_GREEN, "A message has been sent to all available helpers, please wait.");
  57381. TutTime[playerid] = 0;
  57382. Reqhelp[playerid] = 1;
  57383. return 0;
  57384. }
  57385. else
  57386. {
  57387. SendClientMessage(playerid, COLOR_LIGHTRED, "There is no helper available to you anymore.");
  57388. TutTime[playerid] = 0;
  57389. return 0;
  57390. }
  57391. }
  57392.  
  57393. if(TalkingLive[playerid] != 255)
  57394. {
  57395. GetPlayerName(playerid, sendername, sizeof(sendername));
  57396. if(PlayerInfo[playerid][pJob] == 6)
  57397. {
  57398. format(string, sizeof(string), "LiveNR %s: %s", sendername, text);
  57399. OOCNews(COLOR_LIGHTGREEN, string);
  57400. }
  57401. else
  57402. {
  57403. format(string, sizeof(string), "LiveBroadcast %s: %s", sendername, text);
  57404. OOCNews(COLOR_LIGHTGREEN, string);
  57405. }
  57406. return 0;
  57407. }
  57408. if(Mobile[playerid] != 255)
  57409. {
  57410. new idx;
  57411. tmp = strtok(text, idx);
  57412. GetPlayerName(playerid, sendername, sizeof(sendername));
  57413. if(PlayerInfo[playerid][pMask] == 1)
  57414. {
  57415. if(strcmp(Accent[playerid],"none",true,3))
  57416. format(string, sizeof(string), "Stranger says (cellphone): [%s Accent] %s",Accent[playerid],text);
  57417. else
  57418. format(string, sizeof(string), "Stranger says (cellphone): %s",text);
  57419. }
  57420. else
  57421. {
  57422. if(strcmp(Accent[playerid],"none",true,3))
  57423. format(string, sizeof(string), "%s says (cellphone): [%s Accent] %s",sendername,Accent[playerid],text);
  57424. else
  57425. format(string, sizeof(string), "%s says (cellphone): %s",sendername,text);
  57426. }
  57427. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  57428. if(Mobile[playerid] == 914)
  57429. {
  57430. if(!strlen(tmp))
  57431. {
  57432. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: Sorry I don't understand.");
  57433. return 0;
  57434. }
  57435. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: We have alerted all units in the area.");
  57436. format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
  57437. SendParaMessage(COLOR_DOC,string);
  57438. format(string,sizeof(string),"Situation: %s",text);
  57439. SendParaMessage(COLOR_DOC,string);
  57440. SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
  57441. Mobile[playerid] = 999;
  57442. SetAllFiremanCheckpoint(playerid);
  57443. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  57444. RemovePlayerAttachedObject(playerid, 5);
  57445. return 0;
  57446. }
  57447. if(Mobile[playerid] == 913)
  57448. {
  57449. if(!strlen(tmp))
  57450. {
  57451. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Sorry I don't understand.");
  57452. return 0;
  57453. }
  57454. if((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
  57455. {
  57456. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: We have alerted all units in the area, a police officer should be with you shortly.");
  57457. format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
  57458. SendCopMessage(COLOR_DBLUE,string);
  57459. format(string,sizeof(string),"Crime: %s, Suspect: Unknown",CallDescription[playerid]);
  57460. SendCopMessage(COLOR_DBLUE,string);
  57461. SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
  57462. Mobile[playerid] = 999;
  57463. if(PlayerInfo[playerid][pWantedLevel] < 6)
  57464. {
  57465. Called911[playerid] = 1;
  57466. SetAllCopCheckpoint(playerid);
  57467. }
  57468. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  57469. RemovePlayerAttachedObject(playerid, 5);
  57470. return 0;
  57471. }
  57472. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: We have alerted all units in the area, a police officer should be with you shortly.");
  57473. format(string,sizeof(string),"911 Call - Caller: %s",PlayerName(playerid));
  57474. SendCopMessage(COLOR_DBLUE,string);
  57475. format(string,sizeof(string),"Crime: %s, Suspect: %s",CallDescription[playerid],text);
  57476. SendCopMessage(COLOR_DBLUE,string);
  57477. SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
  57478. Mobile[playerid] = 999;
  57479. if(PlayerInfo[playerid][pWantedLevel] != 6)
  57480. {
  57481. Called911[playerid] = 1;
  57482. SetAllCopCheckpoint(playerid);
  57483. }
  57484. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  57485. RemovePlayerAttachedObject(playerid, 5);
  57486. return 0;
  57487. }
  57488. if(Mobile[playerid] == 912)
  57489. {
  57490. if(!strlen(tmp))
  57491. {
  57492. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Sorry I don't understand.");
  57493. return 0;
  57494. }
  57495. strmid(CallDescription[playerid], text, 0, strlen(text), 255);
  57496. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: If you know the suspect's name or what he/she looks like, say it now or just say no.");
  57497. Mobile[playerid] = 913;
  57498. return 0;
  57499. }
  57500. if(Mobile[playerid] == 911)
  57501. {
  57502. if(!strlen(tmp))
  57503. {
  57504. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: Sorry I don't understand, police or paramedic?");
  57505. return 0;
  57506. }
  57507. else if((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police")))
  57508. {
  57509. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: I am patching you to Police HQ, please hold.");
  57510. Mobile[playerid] = 912;
  57511. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Police Dispatch: Please give me a short description of the crime.");
  57512. return 0;
  57513. }
  57514. else if((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic")))
  57515. {
  57516. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: I am patching you to Paramedic HQ, please hold.");
  57517. Mobile[playerid] = 914;
  57518. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) Paramedic Dispatch: Please give me a short description of the Incident.");
  57519. return 0;
  57520. }
  57521. else
  57522. {
  57523. SendClientMessage(playerid, COLOR_YELLOW, "(cellphone) 911 Operator: Sorry I don't understand, police or paramedic?");
  57524. return 0;
  57525. }
  57526. }
  57527. if(IsPlayerConnected(Mobile[playerid]))
  57528. {
  57529. if(Mobile[Mobile[playerid]] == playerid)
  57530. {
  57531. if (PlayerInfo[playerid][pSex] == 1)
  57532. {
  57533. if(strcmp(Accent[playerid],"none",true,3))
  57534. format(string, sizeof(string), "[Male Voice] (cellphone): [%s Accent] %s",Accent[playerid],text);
  57535. else
  57536.  
  57537. format(string, sizeof(string), "[Male Voice] (cellphone): %s",text);
  57538.  
  57539. if(PlayerInfo[Mobile[playerid]][pSpeakPhone] == 1)
  57540. {
  57541. ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  57542. }
  57543. else
  57544. {
  57545. SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
  57546. }
  57547. }
  57548. else if (PlayerInfo[playerid][pSex] == 2)
  57549. {
  57550. if(strcmp(Accent[playerid],"none",true,3))
  57551. format(string, sizeof(string), "[Female Voice] (cellphone): [%s Accent] %s",Accent[playerid],text);
  57552. else
  57553.  
  57554. format(string, sizeof(string), "[Female Voice] (cellphone): %s",text);
  57555.  
  57556. if(PlayerInfo[Mobile[playerid]][pSpeakPhone] == 1)
  57557. {
  57558. ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  57559. }
  57560. else
  57561. {
  57562. SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
  57563. }
  57564. }
  57565. }
  57566. }
  57567. else
  57568. {
  57569. SendClientMessage(playerid, COLOR_GREY," Theres nobody there !");
  57570. }
  57571. return 0;
  57572. }
  57573. if(realchat)
  57574. {
  57575. if(gPlayerLogged[playerid] == 0)
  57576. {
  57577. return 0;
  57578. }
  57579. new str[160];
  57580. GetPlayerName(playerid, str, MAX_PLAYER_NAME);
  57581. for (new i = 0; i < MAX_PLAYER_NAME; i++)
  57582. if (str[i] == '_')
  57583. str[i] = ' ';
  57584. else if(PlayerInfo[playerid][pMask] == 1)
  57585. {
  57586. if(strcmp(Accent[playerid],"none",true,3))
  57587. {
  57588. format(string, sizeof(string), "Stranger says: [%s Accent] %s",Accent[playerid],text);
  57589. }
  57590. else
  57591. {
  57592. format(string, sizeof(string), "Stranger says: %s",text);
  57593. }
  57594. }
  57595. else
  57596. {
  57597. if(strcmp(Accent[playerid],"none",true,3))
  57598. {
  57599. format(string, sizeof(string), "%s says: [%s Accent] %s",str,Accent[playerid],text);
  57600. }
  57601. else
  57602. {
  57603. format(string, sizeof(string), "%s says: %s",str,text);
  57604. }
  57605. }
  57606. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  57607. return 0;
  57608. }
  57609. return 1;
  57610. }
  57611. public ClosePDDoor()
  57612. {
  57613. if(DoorOpened == 1)
  57614. {
  57615. MoveDynamicObject(door, 222.09, 70.57, 1004.00, 3);
  57616. DoorOpened = 0;
  57617. }
  57618. return 1;
  57619. }
  57620. public FixHour(hour)
  57621. {
  57622. hour = timeshift+hour;
  57623. if(hour < 0)
  57624. {
  57625. hour = hour+24;
  57626. }
  57627. else if(hour > 23)
  57628. {
  57629. hour = hour-24;
  57630. }
  57631. shifthour = hour;
  57632. return 1;
  57633. }
  57634.  
  57635. public AddsOn()
  57636. {
  57637. adds=1;
  57638. return 1;
  57639. }
  57640.  
  57641. public StopAni(playerid)
  57642. {
  57643. if(!IsPlayerConnected(playerid)) return 0;
  57644. if(StopAniTimer[playerid])
  57645. {
  57646. new Float:X, Float:Y, Float:Z;
  57647. GetPlayerPos(playerid, X, Y, Z);
  57648. if(PlayerPosition[playerid][PosX] == X && PlayerPosition[playerid][PosY] == Y && PlayerPosition[playerid][PosZ] == Z)
  57649. {
  57650. StopAniTimer[playerid] = 0;
  57651. ClearAnimations(playerid);
  57652. SendClientMessage(playerid, COLOR_YELLOW, "Animations have been cleared.");
  57653. }
  57654. else
  57655. {
  57656. StopAniTimer[playerid] = 0;
  57657. SendClientMessage(playerid, COLOR_GREY, " You have moved from your position !");
  57658. }
  57659. }
  57660. return 1;
  57661. }
  57662.  
  57663.  
  57664. public FixCar(playerid)
  57665. {
  57666. if(!IsPlayerConnected(playerid)) return 0;
  57667. if(FixCarTimer[playerid])
  57668. {
  57669. FixCarTimer[playerid] = 0;
  57670. }
  57671. return 1;
  57672. }
  57673.  
  57674. public ChangePass(playerid)
  57675. {
  57676. if(!IsPlayerConnected(playerid)) return 0;
  57677. if(ChangePassTimer[playerid])
  57678. {
  57679. ChangePassTimer[playerid] = 0;
  57680. }
  57681. return 1;
  57682. }
  57683.  
  57684. public SellCar(playerid)
  57685. {
  57686. if(!IsPlayerConnected(playerid)) return 0;
  57687. if(SellCarTimer[playerid])
  57688. {
  57689. SellCarTimer[playerid] = 0;
  57690. }
  57691. return 1;
  57692. }
  57693.  
  57694. public UseDrugs(playerid)
  57695. {
  57696. if(!IsPlayerConnected(playerid)) return 0;
  57697. if(UseDrugsTimer[playerid])
  57698. {
  57699. UseDrugsTimer[playerid] = 0;
  57700. }
  57701. return 1;
  57702. }
  57703.  
  57704. public UseBM(playerid)
  57705. {
  57706. if(!IsPlayerConnected(playerid)) return 0;
  57707. if(UseBMTimer[playerid]) { UseBMTimer[playerid] = 0; BMPurchased[playerid] = 0; }
  57708. return 1;
  57709. }
  57710.  
  57711. public SellGun(playerid)
  57712. {
  57713. if(!IsPlayerConnected(playerid)) return 0;
  57714. if(SellGunTimer[playerid])
  57715. {
  57716. SellGunTimer[playerid] = 0;
  57717. }
  57718. return 1;
  57719. }
  57720.  
  57721. public UseTazer(playerid)
  57722. {
  57723. if(!IsPlayerConnected(playerid)) return 0;
  57724. if(UseTazerTimer[playerid])
  57725. {
  57726. UseTazerTimer[playerid] = 0;
  57727. }
  57728. return 1;
  57729. }
  57730.  
  57731. public UseDrink(playerid)
  57732. {
  57733. if(!IsPlayerConnected(playerid)) return 0;
  57734. if(UseDrinkTimer[playerid])
  57735. {
  57736. UseDrinkTimer[playerid] = 0;
  57737. }
  57738. return 1;
  57739. }
  57740.  
  57741.  
  57742. public ApplyNPCAnims()
  57743. {
  57744. for(new i; i<MAX_PLAYERS; i++)
  57745. {
  57746. if(IsPlayerNPC(i))
  57747. {
  57748. new sendername[MAX_PLAYER_NAME];
  57749. GetPlayerName(i, sendername, sizeof(sendername));
  57750. if(!strcmp(sendername, "Janet", true))
  57751. {
  57752. new rand = random(3);
  57753. if(rand == 0) { LoopingAnim(i,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
  57754. else if(rand == 1) { LoopingAnim(i,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
  57755. else if(rand == 2) { LoopingAnim(i,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
  57756. }
  57757. else if(!strcmp(sendername, "Denise", true))
  57758. {
  57759. new rand = random(3);
  57760. if(rand == 0) { LoopingAnim(i,"DANCING","DAN_Down_A",4.0,1,0,0,0,0); }
  57761. else if(rand == 1) { LoopingAnim(i,"DANCING","DAN_Left_A",4.0,1,0,0,0,0); }
  57762. else if(rand == 2) { LoopingAnim(i,"DANCING","DAN_Loop_A",4.0,1,0,0,0,0); }
  57763. }
  57764. else if(!strcmp(sendername, "Boxer", true))
  57765. {
  57766. LoopingAnim(i,"GYMNASIUM","GYMshadowbox",4.0,1,0,0,0,0); //shadow boxing
  57767. }
  57768. }
  57769. }
  57770. return 1;
  57771. }
  57772.  
  57773. public UseNewbie(playerid)
  57774. {
  57775. if(!IsPlayerConnected(playerid)) return 0;
  57776. if(UseNewbieTimer[playerid])
  57777. {
  57778. UseNewbieTimer[playerid] = 0;
  57779. }
  57780. return 1;
  57781. }
  57782.  
  57783. public UseAccept(playerid)
  57784. {
  57785. if(!IsPlayerConnected(playerid)) return 0;
  57786. if(UseAcceptTimer[playerid])
  57787. {
  57788. UseAcceptTimer[playerid] = 0;
  57789. }
  57790. return 1;
  57791. }
  57792.  
  57793. public UseAdmCmd(playerid)
  57794. {
  57795. if(!IsPlayerConnected(playerid)) return 0;
  57796. if(UseAdmCmdTimer[playerid])
  57797. {
  57798. UseAdmCmdTimer[playerid] = 0;
  57799. }
  57800. return 1;
  57801. }
  57802.  
  57803. public Delete(objectid)
  57804. {
  57805. DestroyDynamicObject(objectid);
  57806. return 1;
  57807. }
  57808.  
  57809. public DeleteGun(objectid)
  57810. {
  57811. DestroyDynamicObject(objectid);
  57812. new f = 100+1;
  57813. for(new a = 0; a < sizeof(ObjCoords); a++)
  57814. {
  57815. f = a;
  57816. break;
  57817. }
  57818. ObjCoords[f][0] = 0.0;
  57819. ObjCoords[f][1] = 0.0;
  57820. ObjCoords[f][2] = 0.0;
  57821. return 1;
  57822. }
  57823.  
  57824. public StartLotto(biz)
  57825. {
  57826. new string[128];
  57827. new randlotto = random(15);
  57828. new randlotto2 = random(15);
  57829. new randlotto3 = random(15);
  57830. while(randlotto == 0) randlotto = random(15);
  57831. while(randlotto2 == 0 || randlotto2 == randlotto) randlotto2 = random(15);
  57832. while(randlotto3 == 0 || randlotto3 == randlotto2 || randlotto3 == randlotto) randlotto3 = random(15);
  57833. new bizname[25];
  57834. strmid(bizname, BizInfo[biz][bName], 0, strlen(BizInfo[biz][bName]), 255);
  57835. format(string, sizeof(string), "Lottery: %s winning numbers are %d, %d and %d",bizname, randlotto, randlotto2, randlotto3);
  57836. SendClientMessageToAll(COLOR_RED, string);
  57837. for(new i; i<MAX_PLAYERS; i++)
  57838. {
  57839. if(IsPlayerConnected(i))
  57840. {
  57841. if(PlayerInfo[i][pPlayLotto] == biz)
  57842. {
  57843. new giveplayer[MAX_PLAYER_NAME];
  57844. new threenumberwin = BizInfo[biz][bLottoJackpot] / 100 * 75;
  57845. new twonumberwin = BizInfo[biz][bLottoJackpot] / 100 * 25;
  57846. new lotto = PlayerInfo[i][pLottoNr];
  57847. new lotto2 = PlayerInfo[i][pLottoNr2];
  57848. new lotto3 = PlayerInfo[i][pLottoNr3];
  57849. new lotto4 = PlayerInfo[i][pLottoNr4];
  57850. new lotto5 = PlayerInfo[i][pLottoNr5];
  57851. new lotto6 = PlayerInfo[i][pLottoNr6];
  57852. new takejackpot31 = 0;
  57853. new takejackpot32 = 0;
  57854. new takejackpot21 = 0;
  57855. new takejackpot22 = 0;
  57856. if(((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)))
  57857. {
  57858. PlayerInfo[i][pCash] += threenumberwin;
  57859. GivePlayerMoney(i, threenumberwin);
  57860. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  57861. format(string, sizeof(string), "Lottery: %s has won $%d with 3 numbers",giveplayer, threenumberwin);
  57862. SendClientMessageToAll(COLOR_RED, string);
  57863. takejackpot31 += threenumberwin;
  57864. }
  57865. if(((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)))
  57866. {
  57867. PlayerInfo[i][pCash] += threenumberwin;
  57868. GivePlayerMoney(i, threenumberwin);
  57869. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  57870. format(string, sizeof(string), "Lottery: %s has won $%d with 3 numbers",giveplayer, threenumberwin);
  57871. SendClientMessageToAll(COLOR_RED, string);
  57872. if(takejackpot31 == 0) { takejackpot32 += threenumberwin; }
  57873. }
  57874. if(((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2)) || ((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)) || ((randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto2)))
  57875. {
  57876. if(!((randlotto == lotto || randlotto2 == lotto || randlotto3 == lotto) && (randlotto == lotto2 || randlotto2 == lotto2 || randlotto3 == lotto3) && (randlotto == lotto3 || randlotto2 == lotto3 || randlotto3 == lotto3)))
  57877. {
  57878. PlayerInfo[i][pCash] += twonumberwin;
  57879. GivePlayerMoney(i, twonumberwin);
  57880. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  57881. format(string, sizeof(string), "Lottery: %s has won $%d with 2 numbers",giveplayer, twonumberwin);
  57882. SendClientMessageToAll(COLOR_RED, string);
  57883. takejackpot21 += twonumberwin;
  57884. }
  57885. }
  57886. if(((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5)) || ((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)) || ((randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5)))
  57887. {
  57888. if(!((randlotto == lotto4 || randlotto2 == lotto4 || randlotto3 == lotto4) && (randlotto == lotto5 || randlotto2 == lotto5 || randlotto3 == lotto5) && (randlotto == lotto6 || randlotto2 == lotto6 || randlotto3 == lotto6)))
  57889. {
  57890. PlayerInfo[i][pCash] += twonumberwin;
  57891. GivePlayerMoney(i, twonumberwin);
  57892. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  57893. format(string, sizeof(string), "Lottery: %s has won $%d with 2 numbers",giveplayer, twonumberwin);
  57894. SendClientMessageToAll(COLOR_RED, string);
  57895. if(takejackpot21 == 0) { takejackpot22 += twonumberwin; }
  57896. }
  57897. }
  57898. PlayerInfo[i][pLottoNr] = 0;
  57899. PlayerInfo[i][pLottoNr2] = 0;
  57900. PlayerInfo[i][pLottoNr3] = 0;
  57901. PlayerInfo[i][pLottoNr4] = 0;
  57902. PlayerInfo[i][pLottoNr5] = 0;
  57903. PlayerInfo[i][pLottoNr6] = 0;
  57904. PlayerInfo[i][pPlayLotto] = 999;
  57905. new takejackpot = takejackpot21 + takejackpot22 + takejackpot31 + takejackpot32;
  57906. BizInfo[biz][bLottoJackpot] -= takejackpot;
  57907. }
  57908. }
  57909. }
  57910. BizInfo[biz][bLottoTime] = 1;
  57911. BizInfo[biz][bLottoJackpot] += BizInfo[biz][bNewLottoJackpot];
  57912. BizInfo[biz][bNewLottoJackpot] = 0;
  57913. format(string, sizeof(string), "Lottery: %s new jackpot is %d",bizname, BizInfo[biz][bLottoJackpot]);
  57914. SendClientMessageToAll(COLOR_RED, string);
  57915. return 1;
  57916. }
  57917.  
  57918. stock GetPlayer2DZone(playerid, zone[], len)
  57919. {
  57920. new Float:x, Float:y, Float:z;
  57921. GetPlayerPos(playerid, x, y, z);
  57922. for(new i = 0; i != sizeof(gSAZones); i++ )
  57923. {
  57924. if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
  57925. {
  57926. return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  57927. }
  57928. }
  57929. for(new i = 0; i != sizeof(SanAndreasZones); i++ )
  57930. {
  57931. if(x >= SanAndreasZones[i][Zone_Area][0] && x <= SanAndreasZones[i][Zone_Area][3] && y >= SanAndreasZones[i][Zone_Area][1] && y <= SanAndreasZones[i][Zone_Area][4])
  57932. {
  57933. return format(zone, len, SanAndreasZones[i][Zone_Name], 0);
  57934. }
  57935. }
  57936. return 0;
  57937. }
  57938. //===========================[Zone Functions]===================================
  57939. stock GetPlayer3DZone(playerid, zone[], len)
  57940. {
  57941. new Float:x, Float:y, Float:z;
  57942. GetPlayerPos(playerid, x, y, z);
  57943. for(new i = 0; i != sizeof(gSAZones); i++ )
  57944. {
  57945. if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
  57946. {
  57947. return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  57948. }
  57949. }
  57950. for(new i = 0; i != sizeof(SanAndreasZones); i++ ){
  57951. if(x >= SanAndreasZones[i][Zone_Area][0] && x <= SanAndreasZones[i][Zone_Area][3] && y >= SanAndreasZones[i][Zone_Area][1] && y <= SanAndreasZones[i][Zone_Area][4] && z >= SanAndreasZones[i][Zone_Area][2] && z <= SanAndreasZones[i][Zone_Area][5]){return format(zone, len, SanAndreasZones[i][Zone_Name], 0);
  57952. }
  57953. }
  57954. return 0;
  57955. }
  57956. //==============================================================================
  57957. stock GetVehicle3DZone(vehicleid, zone[], len)
  57958. {
  57959. new Float:x, Float:y, Float:z;
  57960. GetVehiclePos(vehicleid, x, y, z);
  57961. for(new i = 0; i != sizeof(gSAZones); i++ )
  57962. {
  57963. if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
  57964. {
  57965. return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  57966. }
  57967. }
  57968. return 0;
  57969. }
  57970. //==============================================================================
  57971. stock IsPlayerInZone(playerid, zone[])
  57972. {
  57973. new TmpZone[MAX_ZONE_NAME];
  57974. GetPlayer3DZone(playerid, TmpZone, sizeof(TmpZone));
  57975. for(new i = 0; i != sizeof(gSAZones); i++) { if(strfind(TmpZone, zone, true) != -1) return 1; }
  57976. return 0;
  57977. }
  57978.  
  57979. public AntiSpam(playerid)
  57980. {
  57981. RecentlyShot[playerid] = 0;
  57982. return 1;
  57983. }
  57984.  
  57985. /*enum sInfo
  57986. {
  57987. sCreated,
  57988. Float:sX,
  57989. Float:sY,
  57990. Float:sZ,
  57991. sObject,
  57992. };
  57993. new SpikeInfo[MAX_SPIKESTRIPS][sInfo];*/
  57994.  
  57995.  
  57996. //RoadBlock
  57997. enum rInfo
  57998. {
  57999. sCreated,
  58000. Float:sX,
  58001. Float:sY,
  58002. Float:sZ,
  58003. sObject,
  58004. };
  58005. new Roadblocks[MAX_ROADBLOCKS][rInfo];
  58006.  
  58007. stock CreateRoadblock(Object,Float:x,Float:y,Float:z,Float:Angle)
  58008. {
  58009. for(new i = 0; i < sizeof(Roadblocks); i++)
  58010. {
  58011. if(Roadblocks[i][sCreated] == 0)
  58012. {
  58013. Roadblocks[i][sCreated] = 1;
  58014. Roadblocks[i][sX] = x;
  58015. Roadblocks[i][sY] = y;
  58016. Roadblocks[i][sZ] = z-0.7;
  58017. Roadblocks[i][sObject] = CreateDynamicObject(Object, x, y, z-0.9, 0, 0, Angle);
  58018. return 1;
  58019. }
  58020. }
  58021. return 0;
  58022. }
  58023.  
  58024. stock DeleteAllRoadblocks(playerid)
  58025. {
  58026. for(new i = 0; i < sizeof(Roadblocks); i++)
  58027. {
  58028. if(IsPlayerInRangeOfPoint(playerid, 100, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
  58029. {
  58030. if(Roadblocks[i][sCreated] == 1)
  58031. {
  58032. Roadblocks[i][sCreated] = 0;
  58033. Roadblocks[i][sX] = 0.0;
  58034. Roadblocks[i][sY] = 0.0;
  58035. Roadblocks[i][sZ] = 0.0;
  58036. DestroyDynamicObject(Roadblocks[i][sObject]);
  58037. }
  58038. }
  58039. }
  58040. return 0;
  58041. }
  58042.  
  58043. stock DeleteClosestRoadblock(playerid)
  58044. {
  58045. for(new i = 0; i < sizeof(Roadblocks); i++)
  58046. {
  58047. if(IsPlayerInRangeOfPoint(playerid, 5.0, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
  58048. {
  58049. if(Roadblocks[i][sCreated] == 1)
  58050. {
  58051. Roadblocks[i][sCreated] = 0;
  58052. Roadblocks[i][sX] = 0.0;
  58053. Roadblocks[i][sY] = 0.0;
  58054. Roadblocks[i][sZ] = 0.0;
  58055. DestroyDynamicObject(Roadblocks[i][sObject]);
  58056. return 1;
  58057. }
  58058. }
  58059. }
  58060. return 0;
  58061. }
  58062.  
  58063. stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
  58064. {
  58065. for(new i = 0; i < sizeof(SpikeInfo); i++)
  58066. {
  58067. if(SpikeInfo[i][sCreated] == 0)
  58068. {
  58069. SpikeInfo[i][sCreated]=1;
  58070. SpikeInfo[i][sX]=x;
  58071. SpikeInfo[i][sY]=y;
  58072. SpikeInfo[i][sZ]=z-0.7;
  58073. SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90, 0, -1, -1, 100.0);
  58074. return 1;
  58075. }
  58076. }
  58077. return 0;
  58078. }
  58079.  
  58080. stock DeleteAllStrip()
  58081. {
  58082. for(new i = 0; i < sizeof(SpikeInfo); i++)
  58083. {
  58084. if(SpikeInfo[i][sCreated] == 1)
  58085. {
  58086. SpikeInfo[i][sCreated]=0;
  58087. SpikeInfo[i][sX]=0.0;
  58088. SpikeInfo[i][sY]=0.0;
  58089. SpikeInfo[i][sZ]=0.0;
  58090. DestroyDynamicObject(SpikeInfo[i][sObject]);
  58091. }
  58092. }
  58093. return 0;
  58094. }
  58095.  
  58096. stock DeleteClosestStrip(playerid)
  58097. {
  58098. for(new i = 0; i < sizeof(SpikeInfo); i++)
  58099. {
  58100. if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
  58101. {
  58102. if(SpikeInfo[i][sCreated] == 1)
  58103. {
  58104. new string[256];
  58105. new location[MAX_ZONE_NAME];
  58106. GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
  58107. format(string, sizeof(string), "HQ: %s %s has deleted a spike strip at %s.", GetPlayerRank(playerid),PlayerName(playerid), location);
  58108. SendRadioMessage(1, TEAM_BLUE_COLOR, string);
  58109. SendRadioMessage(2, TEAM_BLUE_COLOR, string);
  58110. SendRadioMessage(3, TEAM_BLUE_COLOR, string);
  58111. SendRadioMessage(5, TEAM_BLUE_COLOR, string);
  58112. SpikeInfo[i][sCreated]=0;
  58113. SpikeInfo[i][sX]=0.0;
  58114. SpikeInfo[i][sY]=0.0;
  58115. SpikeInfo[i][sZ]=0.0;
  58116. DestroyDynamicObject(SpikeInfo[i][sObject]);
  58117. return 1;
  58118. }
  58119. }
  58120. }
  58121. return 0;
  58122. }
  58123.  
  58124. encode_tires(tires1, tires2, tires3, tires4) {
  58125.  
  58126. return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
  58127. }
  58128.  
  58129.  
  58130. /*----------------------------------------------------------------------------*
  58131. Function:
  58132. sscanf
  58133. Params:
  58134. string[] - String to extract parameters from.
  58135. format[] - Parameter types to get.
  58136. {Float,_}:... - Data return variables.
  58137. Return:
  58138. 0 - Successful, not 0 - fail.
  58139. Notes:
  58140. A fail is either insufficient variables to store the data or insufficient
  58141. data for the format string - excess data is disgarded.
  58142.  
  58143. A string in the middle of the input data is extracted as a single word, a
  58144. string at the end of the data collects all remaining text.
  58145.  
  58146. The format codes are:
  58147.  
  58148. c - A character.
  58149. d, i - An integer.
  58150. h, x - A hex number (e.g. a colour).
  58151. f - A float.
  58152. s - A string.
  58153. z - An optional string.
  58154. pX - An additional delimiter where X is another character.
  58155. '' - Encloses a litteral string to locate.
  58156. u - User, takes a name, part of a name or an id and returns the id if they're connected.
  58157.  
  58158. Now has IsNumeric integrated into the code.
  58159.  
  58160. Added additional delimiters in the form of all whitespace and an
  58161. optioanlly specified one in the format string.
  58162. -*----------------------------------------------------------------------------*/
  58163. public WeedTimer()
  58164. {
  58165. for(new i = 0; i < MAX_PLAYERS; i++)
  58166. {
  58167. if(HasPlantWeed[i] != 0)
  58168. {
  58169. WeedTime[i] ++;
  58170. if(WeedTime[i] == 60)
  58171. {
  58172. WeedGrams[i] ++;
  58173. WeedTime[i] = 0;
  58174. WeedMin[i] ++;
  58175. }
  58176. if(WeedMin[i] == 70)
  58177. {
  58178. DestroyObject(Weed[i]);
  58179. HasPlantWeed[i] = 0;
  58180. WeedGrams[i] = 0;
  58181. WeedTime[i] = 0;
  58182. }
  58183. }
  58184. }
  58185. return 1;
  58186. }
  58187.  
  58188. public WeedPickup(playerid)
  58189. {
  58190. new string[256];
  58191. new Float: X, Float: Y, Float: Z;
  58192. GetPlayerPos(playerid, X, Y, Z);
  58193. new name[MAX_PLAYER_NAME];
  58194. GetPlayerName(playerid, name, sizeof(name));
  58195. if(X == WeedStopPos[playerid][0] && Y == WeedStopPos[playerid][1] && Z == WeedStopPos[playerid][2])
  58196. {
  58197. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick weed.");
  58198. format(string, sizeof(string), "* %s picks a weed plant.", name);
  58199. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  58200. PlayerInfo[playerid][pPot] += WeedGrams[WeedForPlayer[playerid]];
  58201. format(string, sizeof(string), "~w~FOUND %d GRAMS OF POT", WeedGrams[WeedForPlayer[playerid]]);
  58202. GameTextForPlayer(playerid, string, 3000, 3);
  58203. DestroyObject(Weed[WeedForPlayer[playerid]]);
  58204. WeedGrams[WeedForPlayer[playerid]] = 0;
  58205. WeedTime[WeedForPlayer[playerid]] = 0;
  58206. }
  58207. else
  58208. {
  58209. SendClientMessage(playerid, COLOR_GREEN, " You have moved from your weed picking position, picking failed!");
  58210. }
  58211. HasPlantWeed[WeedForPlayer[playerid]] = 0;
  58212. WeedForPlayer[playerid] = 999;
  58213. WeedIsPicked[playerid] = 0;
  58214. return 1;
  58215. }
  58216.  
  58217. public Random(min, max)
  58218. {
  58219. new a = random(max - min) + min;
  58220. return a;
  58221. }
Add Comment
Please, Sign In to add comment