Advertisement
Guest User

Untitled

a guest
Dec 11th, 2010
1,939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 183.45 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. //==============================================================================
  3. //------------------------------------------------------------------------------
  4. //Black Eye of Gangs by Hor1z0n v0.8 // Don't remove credits
  5. //------------------------------------------------------------------------------
  6. //==============================================================================
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10.  
  11. #include <a_samp>
  12. #include <dini>
  13. #include <dudb>
  14. #include <zcmd>
  15. #include <core>
  16. #include <float>
  17. #include "../include/gl_common.inc"
  18.  
  19. stock sscanf(string[], format[], {Float,_}:...)
  20. {
  21. new
  22. formatPos = 0,
  23. stringPos = 0,
  24. paramPos = 2,
  25. paramCount = numargs();
  26. while (paramPos < paramCount && string[stringPos])
  27. {
  28. switch (format[formatPos++])
  29. {
  30. case '\0':
  31. {
  32. return 0;
  33. }
  34. case 'i', 'd':
  35. {
  36. new
  37. neg = 1,
  38. num = 0,
  39. ch = string[stringPos];
  40. if (ch == '-')
  41. {
  42. neg = -1;
  43. ch = string[++stringPos];
  44. }
  45. do
  46. {
  47. stringPos++;
  48. if (ch >= '0' && ch <= '9')
  49. {
  50. num = (num * 10) + (ch - '0');
  51. }
  52. else
  53. {
  54. return 1;
  55. }
  56. }
  57. while ((ch = string[stringPos]) && ch != ' ');
  58. setarg(paramPos, 0, num * neg);
  59. }
  60. case 'h', 'x':
  61. {
  62. new
  63. ch,
  64. num = 0;
  65. while ((ch = string[stringPos++]))
  66. {
  67. switch (ch)
  68. {
  69. case 'x', 'X':
  70. {
  71. num = 0;
  72. continue;
  73. }
  74. case '0' .. '9':
  75. {
  76. num = (num << 4) | (ch - '0');
  77. }
  78. case 'a' .. 'f':
  79. {
  80. num = (num << 4) | (ch - ('a' - 10));
  81. }
  82. case 'A' .. 'F':
  83. {
  84. num = (num << 4) | (ch - ('A' - 10));
  85. }
  86. case ' ':
  87. {
  88. break;
  89. }
  90. default:
  91. {
  92. return 1;
  93. }
  94. }
  95. }
  96. setarg(paramPos, 0, num);
  97. }
  98. case 'c':
  99. {
  100. setarg(paramPos, 0, string[stringPos++]);
  101. }
  102. case 'f':
  103. {
  104. new tmp[25];
  105. strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
  106. setarg(paramPos, 0, _:floatstr(tmp));
  107. }
  108. case 's', 'z':
  109. {
  110. new
  111. i = 0,
  112. ch;
  113. if (format[formatPos])
  114. {
  115. while ((ch = string[stringPos++]) && ch != ' ')
  116. {
  117. setarg(paramPos, i++, ch);
  118. }
  119. if (!i) return 1;
  120. }
  121. else
  122. {
  123. while ((ch = string[stringPos++]))
  124. {
  125. setarg(paramPos, i++, ch);
  126. }
  127. }
  128. stringPos--;
  129. setarg(paramPos, i, '\0');
  130. }
  131. default:
  132. {
  133. continue;
  134. }
  135. }
  136. while (string[stringPos] && string[stringPos] != ' ')
  137. {
  138. stringPos++;
  139. }
  140. while (string[stringPos] == ' ')
  141. {
  142. stringPos++;
  143. }
  144. paramPos++;
  145. }
  146. while (format[formatPos] == 'z') formatPos++;
  147. return format[formatPos];
  148. }
  149. enum pInfo
  150. {
  151. pAdminLevel,
  152. pCash,
  153. pScore,
  154. pWanted,
  155. pJailed,
  156. pJailTime,
  157. }
  158. new PlayerInfo[MAX_PLAYERS][pInfo];
  159.  
  160. #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
  161. //eadmin
  162. #define eadmin 0x33660000
  163. #define CASH 1
  164. // Colors
  165. #define COLOR_BRIGHTRED 0xFF000AAA
  166. #define COLOR_AQUA 0x00FFFFAA
  167. #define COLOR_GREY 0xAFAFAFAA
  168. #define COLOR_BEIGE 0xFFF8DCAA
  169. #define COLOR_BLACK 0x000000AA
  170. #define COLOR_BLUE 0x0000FFAA
  171. #define COLOR_BLUELIGHTER 0x00BFFFAA
  172. #define COLOR_BLUELIGHT 0x1E90FFAA
  173. #define COLOR_BLUEMEDIUM 0x0000CDAA
  174. #define COLOR_BLUEDARK 0x00008BAA
  175. #define COLOR_PINK 0xFF1493AA
  176. #define COLOR_PINKDARK 0xFF00FFAA
  177. #define COLOR_GREEN 0x008000AA
  178. #define COLOR_GREENLIGHT 0x00FF00AA
  179. #define COLOR_GREENDARK 0x006400AA
  180. #define COLOR_MAROON 0x800000AA
  181. #define COLOR_OKER 0x808000AA
  182. #define COLOR_ORANGE 0xFF4500AA
  183. #define COLOR_ORANGELIGHT 0xFF8C00AA
  184. #define COLOR_PURPLE 0x800080AA
  185. #define COLOR_VIOLETDARK 0x9400D3AA
  186. #define COLOR_INDIGO 0xAB0082AA
  187. #define COLOR_RED 0xFF0000AA
  188. #define COLOR_SAND 0xFFDEADAA
  189. #define COLOR_SILVER 0xC0C0C0AA
  190. #define COLOR_TEAL 0x008080AA
  191. #define COLOR_WHITE 0xFFFFFFAA
  192. #define COLOR_YELLOW 0xFFFF00AA
  193. #define COLOR_GOLD 0xFFD700AA
  194. #define COLOR_BROWN 0x8B4513AA
  195. #define COLOR_BROWNLIGHT 0xA0522DAA
  196. #define COLOR_GRAY 0xA9A9A9AA
  197. #define COLOR_GRAYDARK 0x696969AA
  198. #define COLOR_INVISIBLE 0xFFFFFF00
  199. #define SPECIAL_ACTION_PISSING 68
  200. //register
  201. #define SERVER_USER_FILE "/Users/%s.ini"
  202. #define smallw 4
  203. #define hardw 5
  204. //
  205.  
  206. // Teams
  207. new gPlayerClass[MAX_PLAYERS];
  208. new gTeam[MAX_PLAYERS];
  209. new gPlayerLogged[MAX_PLAYERS];
  210. //SPEEDO
  211.  
  212. new Text:SPEEDOS[MAX_PLAYERS];
  213. //Jail
  214. new Float:JailCellSpawns[][3] =
  215. {
  216. {197.3941,162.4637,1003.0300},
  217. {194.3641,175.6378,1003.0234},
  218. {197.8117,174.2043,1003.0234}
  219. };
  220. //Gang Zones
  221. new groove1;
  222. new groove2;
  223. new groove3;
  224. new groove4;
  225. new groove5;
  226. new groove6;
  227. new groove7;
  228. new groove8;
  229. new groove9;
  230. new groove10;
  231. new ballas1;
  232. new ballas2;
  233. new ballas3;
  234. new ballas4;
  235. new ballas5;
  236. new ballas6;
  237. new ballas7;
  238. new ballas8;
  239. new vagos2;
  240. new vagos3;
  241. new vagos4;
  242. new vagos5;
  243. new vagos6;
  244. new vagos7;
  245. new vagos8;
  246. new vagos9;
  247. new vagos10;
  248. new sicilian1;
  249. new sicilian2;
  250. new sicilian3;
  251. new sicilian4;
  252. new sicilian5;
  253. new sicilian6;
  254. new sicilian7;
  255. new sicilian8;
  256. new sicilian9;
  257. new army1;
  258. new army2;
  259. new army3;
  260. new army4;
  261. new army5;
  262. new army6;
  263. new army7;
  264. new aztecas1;
  265. new aztecas2;
  266. new aztecas3;
  267. new aztecas4;
  268. new aztecas5;
  269. new aztecas6;
  270. new aztecas7;
  271. new aztecas8;
  272. new aztecas9;
  273. new cosa1;
  274. new cosa2;
  275. new cosa3;
  276. new cosa4;
  277. new cosa5;
  278. new cosa6;
  279. new cosa7;
  280. new cosa8;
  281. new triads1;
  282. new triads2;
  283. new triads3;
  284. new triads4;
  285. new triads5;
  286. new triads6;
  287. new triads7;
  288. new eme1;
  289. new eme2;
  290. new eme3;
  291. new eme4;
  292. new eme5;
  293. new eme6;
  294. new eme7;
  295. new eme8;
  296. new bikers1;
  297. new bikers2;
  298. new bikers3;
  299. new bikers4;
  300. new bikers5;
  301. new bikers6;
  302. new bikers7;
  303. new bikers8;
  304. //Pikcups
  305. // Menus
  306.  
  307. //Money
  308. new MoneyLost[MAX_PLAYERS];
  309. new MoneyPickup[MAX_PLAYERS][10];
  310. new bool:PickupsCreated[MAX_PLAYERS];
  311. new DestroyMoneyPickupst[MAX_PLAYERS];
  312. new InJail[MAX_PLAYERS];
  313. new AdminLevel[MAX_PLAYERS];
  314. new Mute[MAX_PLAYERS];
  315. new Robtime[MAX_PLAYERS];
  316.  
  317. //TextDrawlar
  318. new Text:Textdraw0;
  319. new Text:rosu;
  320. new Text:galben;
  321. new Text:albastru;
  322. new Text:cmdshelp;
  323. //====================
  324. forward DestroyMoneyPickups(playerid);
  325. forward SendTeamMessage(team, color, string[]);
  326. forward SetPlayerToTeamColor(playerid);
  327. forward DropPlayerWeapons(playerid);
  328. forward DeletePickup(pickupid);
  329. forward GetWeaponModel(weaponid);
  330. forward UnJail(pId);
  331. forward OnPlayerUpdate(playerid);
  332. forward MessageToCops(color,const string[]);
  333. forward Die(playerid, msg[]);
  334. forward CanRob(playerid, msg[]);
  335. forward RobPrize(playerid, msg[]);
  336.  
  337.  
  338. //Money
  339. #define MoneyLossProcent 100
  340. #define TimeToDestroyMoneyPickups 15000
  341. new NumberOfPickups = 10;
  342.  
  343. //Weapon drop
  344. //MAX PICKUPS PER WEAPON
  345. new DropLimit=6;
  346. //DELETE PICKUPS IN ... SECONDS
  347. new DeleteTime=15;
  348.  
  349. // Teams
  350. #define TEAM_GROVE 0
  351. #define TEAM_BALLAS 1
  352. #define TEAM_VAGOS 2
  353. #define TEAM_AZTECAS 3
  354. #define TEAM_LSPD 4
  355. #define TEAM_BIKERS 5
  356. #define TEAM_ARMY 6
  357. #define TEAM_SICILIAN 7
  358. #define TEAM_COSANOSTRA 8
  359. #define TEAM_TRIADS 9
  360. #define TEAM_EME 10
  361.  
  362. #if defined FILTERSCRIPT
  363. stock Save(playerid)
  364. {
  365. dini_IntSet(pInfo, "Money" , PlayerInfo[playerid][pCash]);
  366. }
  367.  
  368. public OnFilterScriptInit()
  369. {
  370. print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
  371. print(" .: Black Eye of Gangs :.\n");
  372. print(" .: by Hor1z0n :.");
  373. print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
  374. return 1;
  375. }
  376.  
  377.  
  378. public OnFilterScriptExit()
  379. {
  380. for(new i=0; i<MAX_PLAYERS; i++)
  381. {
  382. if(PickupsCreated[i] == true)
  383. {
  384. for(new n=0; n<NumberOfPickups; n++)
  385. {
  386. DestroyPickup(MoneyPickup[i][n]);
  387. }
  388. KillTimer(DestroyMoneyPickupst[i]);
  389. }
  390. }
  391. }
  392.  
  393. #else
  394.  
  395. main()
  396. {
  397. print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
  398. print(" .: Black Eye of Gangs :.\n");
  399. print(" .: by Hor1z0n :.");
  400. print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
  401. }
  402.  
  403. #endif
  404.  
  405. public OnGameModeInit()
  406. {
  407. Textdraw0 = TextDrawCreate(15.000000,300.000000,"B.E.G Wars v0.8 by Hor1z0n.");
  408. cmdshelp = TextDrawCreate(15.000000,430.000000,"Type /commands /stats /help in chat for more info");
  409. albastru = TextDrawCreate(460.000000,405.000000,"Romania");
  410. galben = TextDrawCreate(460.000000,420.000000,"B.E.G Wars v0.8");
  411. rosu = TextDrawCreate(460.000000,435.000000,"by Hor1z0n");
  412. TextDrawUseBox(Textdraw0,1);
  413. TextDrawUseBox(albastru,1);
  414. TextDrawUseBox(galben,1);
  415. TextDrawUseBox(rosu,1);
  416. TextDrawBoxColor(Textdraw0,COLOR_BLACK);
  417. TextDrawBoxColor(albastru,0x0000FF22);
  418. TextDrawBoxColor(galben,0xFFFF0022);
  419. TextDrawBoxColor(rosu,0xFF000022);
  420. TextDrawTextSize(Textdraw0,208.000000,-19.000000);
  421. TextDrawAlignment(Textdraw0,0);
  422. TextDrawBackgroundColor(Textdraw0,0x000000ff);
  423. TextDrawFont(Textdraw0,1);
  424. TextDrawLetterSize(Textdraw0,0.400000,1.600000);
  425. TextDrawLetterSize(cmdshelp,0.200000,1.000000);
  426. TextDrawColor(Textdraw0,COLOR_YELLOW);
  427. TextDrawColor(cmdshelp,COLOR_RED);
  428. TextDrawColor(albastru,COLOR_BLUE);
  429. TextDrawColor(galben,COLOR_YELLOW);
  430. TextDrawColor(rosu,COLOR_RED);
  431. TextDrawSetOutline(Textdraw0,1);
  432. TextDrawSetProportional(Textdraw0,1);
  433. TextDrawSetShadow(Textdraw0,1);
  434. TextDrawSetShadow(cmdshelp,1);
  435. TextDrawFont(cmdshelp,3);
  436. //3dtextlabels--------------------------------------------------------------
  437. Create3DTextLabel("/streetthug\n/streetsoldier\n/udgrove",COLOR_GREEN,2492.8123,-1710.7850,1014.7422,20.0,0);
  438. Create3DTextLabel("/turfwalker\n/frontyardballa\n/udballas",COLOR_PURPLE,308.1769,1120.4403,1083.8828,20.0,0);
  439. Create3DTextLabel("/kidnapper\n/streetkiller\n/udvagos",COLOR_ORANGE,2807.5552,-1165.3676,1025.5703,20.0,0);
  440. Create3DTextLabel("/observer\n/thief\n/udaztecas",COLOR_BLUE,1075.5396,2077.6289,10.8203,20.0,0);
  441. Create3DTextLabel("/motorcop\n/patruler\n/lieutenant\n/swat\n/fbi",COLOR_SAND,1525.0012,-1677.9576,5.8906,20.0,0);
  442. Create3DTextLabel("/tiny\n/punk\n/udbikers",COLOR_RED,954.5814,-56.3507,1001.1246,20.0,0);
  443. Create3DTextLabel("/sergeant\n/general\n/udarmy",COLOR_GREY,225.7137,122.8947,999.0574,20.0,0);
  444. Create3DTextLabel("/piccioto\n/capodituticapi\n/udsicilian",COLOR_WHITE,934.2408,2109.9873,1011.0234,20.0,0);
  445. Create3DTextLabel("/soldire\n/caporegime\n/udcosanostra",COLOR_OKER,2217.0754,1594.4120,999.9735,20.0,0);
  446. Create3DTextLabel("/protector\n/capo\n/udtriads",COLOR_BLUELIGHT,754.8130,-40.4202,1000.5859,20.0,0);
  447. Create3DTextLabel("/padre\n/hermano\n/udeme",COLOR_BROWN,-2170.2595,635.3943,1052.3750,20.0,0);
  448. //healme textlabels
  449. Create3DTextLabel("Type here '/healme'",COLOR_GREEN,2498.2524,-1711.1841,1014.7422,20.0,0);
  450. Create3DTextLabel("Type here '/healme'",COLOR_PURPLE,332.0238,1119.5453,1083.8903,20.0,0);
  451. Create3DTextLabel("Type here '/healme'",COLOR_ORANGE,2819.5203,-1173.3083,1025.5703,20.0,0);
  452. Create3DTextLabel("Type here '/healme'",COLOR_BLUE,1091.7166,2121.3447,15.3504,20.0,0);
  453. Create3DTextLabel("Type here '/healme'",COLOR_SAND,249.5486,196.5705,1008.1719,20.0,0);
  454. Create3DTextLabel("Type here '/healme'",COLOR_RED,971.0430,-48.9377,1001.1172,20.0,0);
  455. Create3DTextLabel("Type here '/healme'",COLOR_GREY,238.2102,107.8858,1003.2257,20.0,0);
  456. Create3DTextLabel("Type here '/healme'",COLOR_WHITE,935.6519,2137.0225,1011.0234,20.0,0);
  457. Create3DTextLabel("Type here '/healme'",COLOR_OKER,2202.5352,1617.8859,999.9766,20.0,0);
  458. Create3DTextLabel("Type here '/healme'",COLOR_BLUELIGHT,754.3125,-26.5753,1000.5917,20.0,0);
  459. Create3DTextLabel("Type here '/healme'",COLOR_BROWN,-2160.2871,640.0001,1057.5861,20.0,0);
  460. //---------------------------------------------------------------
  461. Create3DTextLabel("Press'Enter'",COLOR_GREEN,2523.0305,-1679.2692,15.4970,20.0,0);
  462. Create3DTextLabel("Press'Enter'",COLOR_PURPLE,2324.1777,-1218.8508,27.9766,20.0,0);
  463. Create3DTextLabel("Press'Enter'",COLOR_ORANGE,2808.0039,-1190.0422,25.3455,20.0,0);
  464. Create3DTextLabel("Press'Enter'",COLOR_BLUE,1673.6644,-2122.4485,14.1460,20.0,0);
  465. Create3DTextLabel("Press'Enter'",COLOR_SAND,1553.4794,-1675.3102,16.1953,20.0,0);
  466. Create3DTextLabel("Press'Enter'",COLOR_RED,681.5913,-473.5256,16.5363,20.0,0);
  467. Create3DTextLabel("Press'Enter'",COLOR_GREY,2755.1052,-2382.2556,13.6328,20.0,0);
  468. Create3DTextLabel("Press'Enter'",COLOR_WHITE,2509.0000,-2120.1321,13.5469,20.0,0);
  469. Create3DTextLabel("Press'Enter'",COLOR_OKER,1124.0004,-2037.0791,69.8854,20.0,0);
  470. Create3DTextLabel("Press'Enter'",COLOR_BLUELIGHT,1004.1676,-1431.2755,13.5469,20.0,0);
  471. Create3DTextLabel("Press'Enter'",COLOR_BROWN,300.1774,-1154.3909,81.3890,20.0,0);
  472. Create3DTextLabel("Press'Enter'",COLOR_RED,2244.6514,-1664.8066,15.4766,20.0,0);
  473. //-----------------------------------------------------------------------------------
  474. Create3DTextLabel("Type /buyskin [SkinID] to buy a skin\nCost 500$",COLOR_RED,212.0662,-102.2246,1005.2578,20.0,0);
  475. Create3DTextLabel("You can robe this store!\nUse /robstore and run away",COLOR_OKER,207.8523,-100.9970,1005.2578,20.0,0);
  476. Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,295.7513,-38.3262,1001.5156,20.0,0);
  477. Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,295.5133,-80.6941,1001.5156,20.0,0);
  478. Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,291.2514,-106.2294,1001.5156,20.0,0);
  479. Create3DTextLabel("Here is the Melee Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,2002.5015,-1782.4841,13.5537,20.0,0);
  480. Create3DTextLabel("Here is the Small Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,1367.7048,-1279.7506,13.5469,20.0,0);
  481. Create3DTextLabel("Here is the Hard Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,2685.9246,-1470.5939,30.5573,20.0,0);
  482. //GANG ZONES
  483. //GROOVE
  484. groove1 = GangZoneCreate(2441.5081,-1721.9397,2539.8772,-1628.9447);
  485. groove2 = GangZoneCreate(2530.2822,-1721.7056,2632.6147,-1622.5804);
  486. groove3 = GangZoneCreate(2423.9265,-1823.4841,2624.8948,-1722.8147);
  487. groove4 = GangZoneCreate(2419.3042,-1940.5369,2624.1082,-1803.1726);
  488. groove5 = GangZoneCreate(2325.8025,-1758.3470,2442.4734,-1635.8428);
  489. groove6 = GangZoneCreate(2221.1187,-1759.1849,2350.9578,-1602.7145);
  490. groove7 = GangZoneCreate(2357.6609,-1633.5963,2626.0034,-1600.8311);
  491. groove8 = GangZoneCreate(2350.9224,-1601.5435,2627.1812,-1458.7699);
  492. groove9 = GangZoneCreate(2225.8738,-1886.7842,2421.8145,-1743.3746);
  493. groove10 = GangZoneCreate(2222.5491,-1617.0259,2356.0684,-1470.1068);
  494. //BALLAS
  495. ballas1 = GangZoneCreate(2067.242675, -1389.221557, 2265.061035, -1228.900512);
  496. ballas2 = GangZoneCreate(2077.273437, -1231.228149, 2282.113281, -1087.954101);
  497. ballas3 = GangZoneCreate(2077.273437, -1231.228149, 2282.113281, -1087.954101);
  498. ballas4 = GangZoneCreate(2266.209960, -1170.516357, 2481.882812, -1092.539550);
  499. ballas5 = GangZoneCreate(2218.265625, -1455.980957, 2647.720458, -1396.926147);
  500. ballas6 = GangZoneCreate(1840.876586, -1463.239013, 2073.559570, -1269.061523);
  501. ballas7 = GangZoneCreate(1840.573364, -1267.208740, 2074.233642, -1094.783325);
  502. ballas8 = GangZoneCreate(2264.656982, -1380.480834, 2475.666992, -1180.634399);
  503. //VAGOS
  504. vagos2 = GangZoneCreate(2474.304443, -1183.288818, 2912.061523, -1132.161621);
  505. vagos3 = GangZoneCreate(2740.426757, -1260.511230, 2913.800537, -1178.488403);
  506. vagos4 = GangZoneCreate(2625.698974, -1885.446899, 2902.999023, -1672.008422);
  507. vagos5 = GangZoneCreate(2487.8284,-1391.4014,2747.3872,-1172.8063);
  508. vagos6 = GangZoneCreate(2728.7898,-1398.6948,2921.0420,-1253.0707);
  509. vagos7 = GangZoneCreate(2634.9663,-1666.5417,2743.8682,-1393.7225);
  510. vagos8 = GangZoneCreate(2745.2952,-1484.4573,2943.5505,-1381.0524);
  511. vagos9 = GangZoneCreate(2714.1169,-1666.8400,2947.3645,-1492.6141);
  512. vagos10 = GangZoneCreate(2476.8416,-1453.7611,2476.8416,-1453.7611);
  513. //SICILIAN MAFIA
  514. sicilian1 = GangZoneCreate(2413.5386,-2152.8020,2709.1023,-2058.6760);
  515. sicilian2 = GangZoneCreate(2709.0833,-2170.5071,2942.8745,-2048.4788);
  516. sicilian3 = GangZoneCreate(2419.7424,-2274.9507,2903.1035,-2150.3325);
  517. sicilian4 = GangZoneCreate(2418.3381,-2057.8850,2565.7766,-1939.2930);
  518. sicilian5 = GangZoneCreate(2555.8809,-2057.4683,2724.9824,-1880.9048);
  519. sicilian6 = GangZoneCreate(2714.9268,-2054.2922,2870.5068,-1878.2496);
  520. sicilian7 = GangZoneCreate(2225.1455,-2125.9753,2419.8030,-1866.0585);
  521. sicilian8 = GangZoneCreate(2230.8442,-2281.9294,2423.4094,-2133.7441);
  522. sicilian9 = GangZoneCreate(2086.5654,-2379.4519,2230.0793,-1884.8080);
  523. //ARMY
  524. army1 = GangZoneCreate(2666.2617,-2565.7695,2810.6797,-2330.2891);
  525. army2 = GangZoneCreate(2561.9192,-2514.3220,2678.0627,-2330.5823);
  526. army3 = GangZoneCreate(2373.9280,-2696.9109,2587.4714,-2330.6077);
  527. army4 = GangZoneCreate(2122.1387,-2705.2117,2398.6414,-2257.6663);
  528. army5 = GangZoneCreate(1782.2411,-2770.1599,2084.8884,-2170.1628);
  529. army6 = GangZoneCreate(1331.9463,-2748.1091,1801.5833,-2373.5359);
  530. army7 = GangZoneCreate(1327.3872,-2378.9741,1823.2642,-2169.5447);
  531. //AZTECAS
  532. aztecas1 = GangZoneCreate(1500.9897,-2189.5073,1813.4741,-2019.5452);
  533. aztecas2 = GangZoneCreate(1813.8042,-2176.0576,1955.7228,-1939.2938);
  534. aztecas3 = GangZoneCreate(1956.6600,-2177.3586,2091.7683,-1945.4641);
  535. aztecas4 = GangZoneCreate(1530.9368,-2071.0173,1812.0070,-1932.0487);
  536. aztecas5 = GangZoneCreate(1812.0066,-1939.0957,2079.6433,-1761.9779);
  537. aztecas6 = GangZoneCreate(2078.8169,-1915.4862,2233.8945,-1628.5707);
  538. aztecas7 = GangZoneCreate(1524.0541,-1882.5083,1816.5635,-1733.4230);
  539. aztecas8 = GangZoneCreate(1820.5393,-1742.5968,2104.8298,-1621.1365);
  540. aztecas9 = GangZoneCreate(1535.0228,-1743.8683,1745.7524,-1603.4529);
  541. //COSA NOSTRA
  542. cosa1 = GangZoneCreate(1058.496704, -2089.135009, 1308.264770, -1857.868408);
  543. cosa2 = GangZoneCreate(1304.310302, -2080.874023, 1533.186401, -1878.395019);
  544. cosa3 = GangZoneCreate(1039.090454, -2350.777587, 1304.348999, -2086.392089);
  545. cosa4 = GangZoneCreate(1295.145751, -2179.597412, 1504.606811, -2081.465576);
  546. cosa5 = GangZoneCreate(1059.610839, -1861.866821, 1292.550903, -1718.970703);
  547. cosa6 = GangZoneCreate(1290.259765, -1867.065429, 1537.341918, -1718.863525);
  548. cosa7 = GangZoneCreate(820.270324, -2066.709472, 1066.208496, -1861.780029);
  549. cosa8 = GangZoneCreate(1059.610839, -1861.866821, 1292.550903, -1718.970703);
  550. //THE TRIADS OF CHINA
  551. triads1 = GangZoneCreate(922.341979, -1565.491088, 1055.462890, -1411.466430);
  552. triads2 = GangZoneCreate(1043.053466, -1565.101440, 1188.640869, -1411.787597);
  553. triads3 = GangZoneCreate(923.401123, -1415.328857, 1189.367065, -1286.898925);
  554. triads4 = GangZoneCreate(826.085571, -1852.847167, 1043.764892, -1565.192016);
  555. triads5 = GangZoneCreate(1034.214477, -1727.555664, 1291.817749, -1564.643920);
  556. triads6 = GangZoneCreate(923.401123, -1415.328857, 1189.367065, -1286.898925);
  557. triads7 = GangZoneCreate(1186.474243, -1576.002685, 1336.147460, -1290.395507);
  558. //La eMe
  559. eme1 = GangZoneCreate(137.612762, -1255.652221, 286.783813, -1104.483642);
  560. eme2 = GangZoneCreate(285.000030, -1270.961791, 464.571411, -1097.791381);
  561. eme3 = GangZoneCreate(152.605682, -1537.037353, 284.811187, -1268.485961);
  562. eme4 = GangZoneCreate(467.063995, -1262.914428, 647.654907, -1101.211059);
  563. eme5 = GangZoneCreate(452.463012, -1382.120605, 648.974243, -1261.051513);
  564. eme6 = GangZoneCreate(646.121459, -1377.847656, 788.710021, -1230.794921);
  565. eme7 = GangZoneCreate(642.081604, -1237.379638, 790.505615, -1069.354125);
  566. eme8 = GangZoneCreate(284.108001, -1422.228515, 463.469512, -1266.236328);
  567. //BIKERS
  568. bikers1 = GangZoneCreate(578.935058, -554.303649, 839.529174, -410.561798);
  569. bikers2 = GangZoneCreate(590.456970, -704.941040, 836.573120, -544.057434);
  570. bikers3 = GangZoneCreate(642.247497, -887.647766, 833.364868, -691.718627);
  571. bikers4 = GangZoneCreate(654.274353, -1072.656616, 832.464904, -880.391845);
  572. bikers5 = GangZoneCreate(791.593505, -1160.763671, 1144.278198, -851.811889);
  573. bikers6 = GangZoneCreate(791.593505, -1160.763671, 1144.278198, -851.811889);
  574. bikers7 = GangZoneCreate(1143.546264, -1152.300903, 1255.888061, -916.712097);
  575. bikers8 = GangZoneCreate(1143.546264, -1152.300903, 1255.888061, -916.712097);
  576.  
  577.  
  578. SetGameModeText("B.E.G v0.8");
  579. // Grove Street Families
  580. AddPlayerClass(187, 2495.3772,-1689.8151,14.6665,359.5442, 0, 0, 0, 0, 0, 0);
  581. // East Side Hoods
  582. AddPlayerClass(188, 2334.4036,-1234.0586,27.9766,359.4949, 0, 0, 0, 0, 0, 0);
  583. // Vagos
  584. AddPlayerClass(258, 2808.0010,-1176.4957,25.3799,185.9302, 0, 0, 0, 0, 0, 0);
  585. // Aztecas
  586. AddPlayerClass(259, 1734.5688,-2129.1440,13.8510,355.4684, 0, 0, 0, 0, 0, 0);
  587. // Police
  588. AddPlayerClass(276, 1553.3158,-1675.6783,16.1953,90.0725, 0, 0, 0, 0, 0, 0);
  589. // Bickers
  590. AddPlayerClass(290, 681.4986,-473.7175,16.5363,177.3378, 0, 0, 0, 0, 0, 0);
  591. // AMRY
  592. AddPlayerClass(299, 2721.2224,-2380.4287,17.3403,174.8024, 0, 0, 0, 0, 0, 0);
  593. // SICILIAN
  594. AddPlayerClass(297, 2484.2524,-2120.3640,13.5469,354.8890, 0, 0, 0, 0, 0, 0);
  595. // COSA NOSTRA
  596. AddPlayerClass(262, 1123.7648,-2036.9152,69.8862,268.9068, 0, 0, 0, 0, 0, 0);
  597. // TRIADS
  598. AddPlayerClass(242, 1031.2793,-1442.6976,13.5546,92.3480, 0, 0, 0, 0, 0, 0);
  599. // La eMe
  600. AddPlayerClass(240, 299.6429,-1154.9779,81.0361,133.2045, 0, 0, 0, 0, 0, 0);
  601. // Cars
  602. // BALLAS
  603. AddStaticVehicle(507,2347.4727,-1253.6342,22.3319,272.4442,85,85); // ballas 01 elegant
  604. AddStaticVehicle(507,2347.2576,-1244.2198,22.3348,266.9613,85,85); // ballas 02 elegant
  605. AddStaticVehicle(507,2346.8516,-1234.9639,22.3299,267.2386,85,85); // ballas 03 elegant
  606. AddStaticVehicle(517,2325.9341,-1236.1556,22.3522,271.9126,85,85); // ballas 04 majestic
  607. AddStaticVehicle(517,2326.1584,-1245.7046,22.3370,271.8529,85,85); // ballas 05 majestic
  608. AddStaticVehicle(559,2326.0603,-1254.5306,22.1593,271.2032,85,85); // ballas 06 jester
  609. AddStaticVehicle(579,2332.0659,-1272.1399,22.4384,1.8265,85,85); // ballas 07 huntley
  610. AddStaticVehicle(579,2338.3740,-1271.6055,22.4385,2.5637,85,85); // ballas 08 huntley
  611. AddStaticVehicle(487,2243.3965,-1172.0094,33.7138,4.0693,85,85); // ballas 09 heli
  612. //GROOVE
  613. AddStaticVehicle(439,2509.8787,-1665.6620,13.3852,188.5082,86,86); // groove 01 stallion
  614. AddStaticVehicle(439,2505.6733,-1679.6978,13.3573,136.2319,86,86); // groove 02 stallion
  615. AddStaticVehicle(492,2484.7747,-1683.9615,13.1970,267.0227,86,86); // groove 03 green
  616. AddStaticVehicle(492,2502.1094,-1656.1394,13.2369,241.8316,86,86); // groove 04 green
  617. AddStaticVehicle(492,2485.8132,-1653.9874,13.1804,91.3507,86,86); // groove 05 green
  618. AddStaticVehicle(482,2473.3533,-1705.4377,13.6523,359.2906,86,86); // groove 06 burrito
  619. AddStaticVehicle(482,2473.4031,-1696.6383,13.6405,359.4107,86,86); // groove 07 burrito
  620. AddStaticVehicle(603,2468.8933,-1671.0935,13.2390,11.9545,86,86); // groove 08 phoenix
  621. AddStaticVehicle(487,2530.2126,-1676.9374,20.1061,277.7516,86,86); // groove 09 heli
  622. //VAGOS
  623. AddStaticVehicle(566,2828.4873,-1165.3916,24.8389,268.9883,6,6); // vagos 01 tahoma
  624. AddStaticVehicle(566,2828.0762,-1169.9503,24.8257,270.3986,6,6); // vagos 02 tahoma
  625. AddStaticVehicle(566,2826.9670,-1199.9155,24.7188,2.3721,6,6); // vagos 03 tahoma
  626. AddStaticVehicle(576,2830.5322,-1199.1229,24.1818,6.4551,6,6); // vagos 04 tornado
  627. AddStaticVehicle(576,2828.3899,-1174.4857,24.6146,271.0916,6,6); // vagos 05 tornado
  628. AddStaticVehicle(482,2805.1858,-1185.5496,25.5579,266.4940,6,6); // vagos 06 burrito
  629. AddStaticVehicle(482,2805.4148,-1180.7333,25.5643,264.9319,6,6); // vagos 07 burrito
  630. AddStaticVehicle(487,2850.4309,-1161.6298,25.0477,2.4859,6,6); // vagos 08 heli
  631. AddStaticVehicle(480,2850.2551,-1177.2411,24.5254,5.8472,6,6); // vagos 09 comet
  632. //AZTECAS
  633. AddStaticVehicle(487,1693.9554,-2112.9102,13.5964,270.5876,7,7); // aztecas 01 heli
  634. AddStaticVehicle(412,1704.9215,-2118.2578,13.2988,270.1773,7,7); // aztecas 02 voodoo
  635. AddStaticVehicle(412,1698.9972,-2097.1079,13.3839,0.0580,7,7); // aztecas 03 voodoo
  636. AddStaticVehicle(536,1711.0227,-2107.6284,13.1979,268.7992,7,7); // aztecas 04 blade
  637. AddStaticVehicle(536,1720.7344,-2117.6753,13.1985,271.3951,7,7); // aztecas 05 blade
  638. AddStaticVehicle(567,1724.3131,-2100.0986,13.4130,180.5630,7,7); // aztecas 06 savanna
  639. AddStaticVehicle(567,1735.6517,-2107.4421,13.3296,270.5347,7,7); // aztecas 07 savanna
  640. AddStaticVehicle(567,1744.7197,-2126.2549,13.4168,359.6786,7,7); // aztecas 08 savanna
  641. AddStaticVehicle(429,1747.7242,-2100.2051,13.2266,178.6172,7,7); // aztecas 09 banshee
  642. //POLICE
  643. AddStaticVehicle(596,1586.4189,-1671.9269,5.6143,268.7982,0,1); // police 01
  644. AddStaticVehicle(596,1586.2963,-1667.7262,5.6129,269.7121,0,1); // police 02
  645. AddStaticVehicle(596,1600.0887,-1684.1478,5.6109,89.7974,0,1); // police 03
  646. AddStaticVehicle(597,1599.8501,-1688.0430,5.6602,89.1690,0,1); // police 04
  647. AddStaticVehicle(597,1600.0466,-1692.2527,5.6593,90.5237,0,1); // police 05
  648. AddStaticVehicle(597,1600.2528,-1695.9629,5.6586,91.9491,0,1); // police 06
  649. AddStaticVehicle(598,1591.4541,-1711.1526,5.6373,359.7874,0,1); // police 07
  650. AddStaticVehicle(598,1587.4288,-1711.3256,5.6371,359.9720,0,1); // police 08
  651. AddStaticVehicle(598,1583.2821,-1711.1836,5.6380,359.9328,0,1); // police 09
  652. AddStaticVehicle(598,1578.7363,-1711.2302,5.6370,358.5367,0,1); // police 10
  653. AddStaticVehicle(599,1574.3203,-1711.2726,6.0822,359.3114,0,1); // police 11 rancher
  654. AddStaticVehicle(599,1570.3276,-1711.2590,6.0792,0.0288,0,1); // police 12 rancher
  655. AddStaticVehicle(601,1543.2969,-1684.5061,5.6494,90.0064,1,1); // police 13 water tanc
  656. AddStaticVehicle(427,1538.4274,-1644.3947,6.0225,0.8143,0,1); // police 14 enforcer
  657. AddStaticVehicle(497,1558.9586,-1611.9580,13.5588,90.1788,0,1); // police 15 heli
  658. //SICILIAN
  659. AddStaticVehicle(587,2457.1443,-2078.0095,13.2733,359.2780,90,90); // sicilian 1 alpha
  660. AddStaticVehicle(426,2453.6511,-2117.4604,13.2933,0.9470,90,90); // sicilian 2
  661. AddStaticVehicle(426,2448.6458,-2117.6262,13.2901,359.9811,90,90); // sicilian 3
  662. AddStaticVehicle(426,2467.9268,-2117.5742,13.2911,1.1953,90,90); // sicilian 4
  663. AddStaticVehicle(482,2471.1106,-2078.4600,13.6728,179.3456,90,90); // sicilian 5
  664. AddStaticVehicle(482,2466.5811,-2078.5278,13.6667,180.3141,90,90); // sicilian 6
  665. AddStaticVehicle(491,2472.3057,-2117.7781,13.3031,358.4562,90,90); // sicilian 7
  666. AddStaticVehicle(491,2476.5061,-2117.8921,13.3031,0.5813,90,90); // sicilian 8
  667. AddStaticVehicle(487,2521.3203,-2089.9834,13.7244,271.2982,90,90); // sicilian 9 heli
  668. //ARMY
  669. AddStaticVehicle(433,2796.4846,-2417.2827,14.0682,91.2462,43,0); // army 1
  670. AddStaticVehicle(433,2784.3179,-2417.4668,14.0712,90.1093,43,0); // army 2
  671. AddStaticVehicle(433,2767.3269,-2383.0625,14.0695,359.3756,43,0); // army 3
  672. AddStaticVehicle(470,2796.7424,-2455.5320,13.6226,91.2268,43,0); // army 4
  673. AddStaticVehicle(470,2787.2734,-2455.5278,13.6260,90.0713,43,0); // army 5
  674. AddStaticVehicle(470,2779.4946,-2455.1882,13.6282,89.6346,43,0); // army 6
  675. AddStaticVehicle(470,2737.7524,-2469.7102,13.6404,269.4359,43,0); // army 7
  676. AddStaticVehicle(470,2737.5627,-2464.1343,13.6400,270.1183,43,0); // army 8
  677. AddStaticVehicle(548,2779.6672,-2352.8862,15.2607,269.4096,1,1); // army 9
  678. //BICKERS
  679. AddStaticVehicle(463,695.0170,-470.1431,15.8765,269.5208,58,58); // bickers 1
  680. AddStaticVehicle(463,695.1013,-473.2639,15.8762,271.7395,58,58); // bickers 2
  681. AddStaticVehicle(463,695.1535,-467.3553,15.8762,271.7665,58,58); // bickers 3
  682. AddStaticVehicle(463,695.0108,-464.1331,15.8750,269.2417,58,58); // bickers 4
  683. AddStaticVehicle(463,695.1422,-460.9960,15.8763,272.3798,58,58); // bickers 5
  684. AddStaticVehicle(463,708.3022,-473.9142,15.8763,86.1891,58,58); // bickers 6
  685. AddStaticVehicle(463,708.2749,-470.5738,15.8762,91.6018,58,58); // bickers 7
  686. AddStaticVehicle(463,708.3629,-467.8611,15.8763,91.4589,58,58); // bickers 8
  687. AddStaticVehicle(463,708.6377,-464.3804,15.8763,89.4909,58,58); // bickers 9
  688. AddStaticVehicle(463,708.5651,-461.2787,15.8764,92.4502,58,58); // bickers 10
  689. AddStaticVehicle(463,708.9188,-457.7967,15.8766,92.2244,58,58); // bickers 11
  690. AddStaticVehicle(487,686.7789,-462.2895,22.7136,6.8099,58,58); // bickers 12
  691. // LA COSA NOSTRA
  692. AddStaticVehicle(482,1247.9374,-2060.5103,59.9751,269.9218,65,65); // cosa 1
  693. AddStaticVehicle(482,1255.9921,-2060.5156,59.7574,267.6342,65,65); // cosa 2
  694. AddStaticVehicle(529,1243.1621,-2015.3114,59.6004,1.0765,65,65); // cosa 3
  695. AddStaticVehicle(529,1243.4801,-2023.9115,59.6047,0.5304,65,65); // cosa 4
  696. AddStaticVehicle(529,1254.0077,-2007.3531,59.3220,267.6390,65,65); // cosa 5
  697. AddStaticVehicle(529,1262.8600,-2007.5339,59.0693,269.5681,65,65); // cosa 6
  698. AddStaticVehicle(545,1277.0527,-2046.0773,58.9471,86.8907,65,65); // cosa 7
  699. AddStaticVehicle(545,1245.9083,-2045.3121,59.7307,90.8882,65,65); // cosa 8
  700. AddStaticVehicle(487,1275.2012,-2016.3704,59.1560,120.6134,65,65); // cosa 9
  701. // THE TRIADS
  702. AddStaticVehicle(547,981.9263,-1434.0846,13.2817,358.6449,79,79); // triads 1
  703. AddStaticVehicle(547,988.7029,-1433.9589,13.2819,358.9695,79,79); // triads 2
  704. AddStaticVehicle(547,996.2534,-1433.7627,13.2825,359.1072,79,79); // triads 3
  705. AddStaticVehicle(547,981.9568,-1452.2133,13.2440,359.6982,79,79); // triads 4
  706. AddStaticVehicle(580,997.9922,-1460.8439,13.3430,0.2836,79,79); // triads 5
  707. AddStaticVehicle(580,1005.2990,-1460.6830,13.3445,0.4185,79,79); // triads 6
  708. AddStaticVehicle(589,1029.0756,-1451.5690,13.2127,270.0733,79,79); // triads 7
  709. AddStaticVehicle(482,1012.4747,-1460.0968,13.6668,358.7817,79,79); // triads 8
  710. AddStaticVehicle(482,1020.9832,-1459.6251,13.6735,359.7105,79,79); // triads 9
  711. AddStaticVehicle(487,1012.8854,-1438.3914,13.6756,157.7414,79,79); // triads 10
  712. // LA eMe
  713. AddStaticVehicle(487,285.6484,-1195.8359,80.6178,127.3555,30,30); // eme 1
  714. AddStaticVehicle(534,283.1613,-1160.6736,80.6369,223.9451,30,30); // eme 2
  715. AddStaticVehicle(534,287.2235,-1156.8391,80.6346,222.9877,30,30); // eme 3
  716. AddStaticVehicle(534,306.5376,-1163.5391,80.6332,93.3923,30,30); // eme 4
  717. AddStaticVehicle(579,305.7106,-1195.4186,80.8469,39.0826,30,30); // eme 5
  718. AddStaticVehicle(579,300.7306,-1199.0646,80.8464,36.4058,30,30); // eme 6
  719. AddStaticVehicle(555,292.1751,-1178.2961,80.5981,316.1828,30,30); // eme 7
  720. AddStaticVehicle(533,289.0420,-1175.2097,80.6232,316.0080,30,30); // eme 8
  721. AddStaticVehicle(533,286.1865,-1172.3617,80.6210,315.4159,30,30); // eme 9
  722. AddStaticVehicle(533,283.2917,-1169.3068,80.6221,314.7696,30,30); // eme 10
  723. //Cars ALL OVER LOS SANTOS
  724. AddStaticVehicle(456,2172.1484,-1704.0304,14.7217,270.6012,10,0); // car1
  725. AddStaticVehicle(400,2287.4597,-1727.2971,13.5528,269.4816,2,0); // car2
  726. AddStaticVehicle(401,2448.9727,-1761.6919,13.3652,358.3051,3,0); // car3
  727. AddStaticVehicle(402,2452.0356,-1789.2152,13.3835,358.2271,4,0); // car4
  728. AddStaticVehicle(403,2676.9880,-1673.0253,10.0034,179.0250,5,0); // car5
  729. AddStaticVehicle(404,2658.7212,-1697.0664,9.0550,270.1255,6,0); // car6
  730. AddStaticVehicle(405,2658.0645,-1707.1693,9.1952,89.5561,7,0); // car7
  731. AddStaticVehicle(408,2717.6353,-1479.9655,30.9244,1.0072,8,0); // car8
  732. AddStaticVehicle(409,2804.7483,-1251.9375,46.7103,344.9382,9,0); // car9
  733. AddStaticVehicle(410,2780.9492,-1313.4619,36.7393,271.7590,10,0); // car10
  734. AddStaticVehicle(412,2814.3506,-1430.8308,16.0872,1.5103,0,11); // car11
  735. AddStaticVehicle(413,2792.7444,-1446.2538,16.3278,269.3972,12,0); // car12
  736. AddStaticVehicle(414,2788.0820,-1876.4384,9.9261,181.2054,13,0); // car13
  737. AddStaticVehicle(415,2776.6995,-1840.6027,9.5520,20.5528,14,0); // car14
  738. AddStaticVehicle(418,2729.5437,-1999.6205,13.5433,91.6179,15,0); // car15
  739. AddStaticVehicle(419,2359.5466,-2155.2288,13.3733,133.9574,16,0); // car16
  740. AddStaticVehicle(420,2239.4978,-2015.7126,13.3265,90.0280,17,0); // car17
  741. AddStaticVehicle(421,2179.2673,-1907.3595,13.3953,181.1202,18,0); // car18
  742. AddStaticVehicle(422,2059.1572,-1904.3435,13.5312,180.1997,19,0); // car19
  743. AddStaticVehicle(423,2096.1030,-1800.6063,13.4065,272.2126,20,0); // car20
  744. AddStaticVehicle(424,2120.9707,-1778.4247,13.1713,271.2816,21,0); // car21
  745. AddStaticVehicle(426,2134.5261,-1467.1727,23.6317,358.7728,22,0); // car22
  746. AddStaticVehicle(428,2137.2896,-1368.4683,24.8737,358.7090,23,0); // car23
  747. AddStaticVehicle(429,2235.5334,-1320.4761,23.6640,180.8537,24,0); // car24
  748. AddStaticVehicle(431,2209.5359,-1161.3612,25.8290,89.7971,25,0); // car25
  749. AddStaticVehicle(434,2115.3782,-1060.2334,25.7199,141.0345,26,0); // car26
  750. AddStaticVehicle(436,2085.6692,-1194.4681,23.6359,270.8720,27,0); // car27
  751. AddStaticVehicle(438,2008.4399,-1275.0663,23.8263,179.3902,28,0); // car28
  752. AddStaticVehicle(439,1999.4980,-1274.9226,23.7163,359.4624,29,0); // car29
  753. AddStaticVehicle(440,1891.2751,-1362.2239,13.6617,183.8896,30,0); // car30
  754. AddStaticVehicle(442,1811.8354,-1569.7512,13.3284,222.4229,31,0); // car31
  755. AddStaticVehicle(443,1842.8503,-1617.1444,14.0944,90.2991,32,0); // car32
  756. AddStaticVehicle(444,1944.9940,-1800.9492,13.9182,269.8197,33,0); // car33
  757. AddStaticVehicle(445,1922.5571,-2013.5972,13.4219,178.2396,34,0); // car34
  758. AddStaticVehicle(448,1863.2068,-2020.5160,13.1476,272.8297,35,0); // car35
  759. AddStaticVehicle(449,1944.9480,-1953.7500,14.2082,270.0000,36,0); // car36 trenulet
  760. AddStaticVehicle(451,1778.0769,-1890.6219,13.0945,91.1270,37,0); // car37
  761. AddStaticVehicle(455,1801.6604,-1930.0320,13.8240,270.0774,38,0); // car38
  762. AddStaticVehicle(456,1836.2374,-1855.1095,13.5608,358.5057,39,0); // car39
  763. AddStaticVehicle(457,1717.6721,-1712.2158,13.1268,47.7912,40,0); // car40
  764. AddStaticVehicle(458,1636.7677,-1907.3569,13.4303,185.3988,41,0); // car41
  765. AddStaticVehicle(459,1647.5746,-1904.4974,13.6103,14.6189,42,0); // car42
  766. AddStaticVehicle(461,1553.9252,-1785.0142,13.1309,90.0535,43,0); // car43
  767. AddStaticVehicle(462,1553.8926,-1471.9467,13.1481,3.9163,44,0); // car44
  768. AddStaticVehicle(462,1551.7341,-1472.2445,13.1483,3.1277,45,0); // car45
  769. AddStaticVehicle(463,1419.7726,-1323.8895,13.0998,85.9360,46,0); // car46
  770. AddStaticVehicle(466,1464.5681,-1135.0100,23.8030,312.1262,47,0); // car47
  771. AddStaticVehicle(467,1377.8411,-985.5174,30.5346,351.8946,48,0); // car48
  772. AddStaticVehicle(468,1306.3550,-865.5318,39.2463,89.0155,49,0); // car49
  773. AddStaticVehicle(470,1245.8607,-1108.1543,25.4900,89.8200,50,50); // car50
  774. AddStaticVehicle(471,1250.3733,-1229.2137,13.1609,183.1250,51,51); // car51
  775. AddStaticVehicle(474,1176.5010,-1337.7756,13.6953,91.9309,52,0); // car52
  776. AddStaticVehicle(475,1171.2941,-1493.8429,14.3255,89.9335,52,0); // car53
  777. AddStaticVehicle(477,1110.8477,-1630.7831,13.3750,90.0636,53,0); // car54
  778. AddStaticVehicle(478,1169.6051,-1790.5934,13.4686,178.4400,54,0); // car55
  779. AddStaticVehicle(479,1076.9706,-1847.3872,13.2596,89.9241,55,0); // car56
  780. AddStaticVehicle(480,981.7457,-1611.3402,13.3056,179.9746,56,0); // car57
  781. AddStaticVehicle(481,959.9683,-1522.2520,13.0421,359.8105,57,0); // car58
  782. AddStaticVehicle(482,898.8840,-1358.6852,13.7002,89.7149,58,0); // car59
  783. AddStaticVehicle(483,902.1531,-1207.0575,16.9736,359.0119,59,0); // car60
  784. AddStaticVehicle(485,1001.3934,-1105.3809,23.4840,270.4190,60,0); // car61
  785. AddStaticVehicle(486,1045.0109,-1087.6455,24.0478,270.2009,61,0); // car62
  786. AddStaticVehicle(489,983.1433,-895.6073,42.8664,359.2623,62,0); // car63
  787. AddStaticVehicle(491,837.1405,-1045.9878,25.0213,127.4906,63,0); // car64
  788. AddStaticVehicle(492,771.5253,-1334.1200,13.3231,359.8255,64,0); // car65
  789. AddStaticVehicle(494,766.0792,-1151.6353,22.6259,110.5875,65,0); // car66
  790. AddStaticVehicle(495,688.9246,-1233.3419,16.4307,120.4886,66,0); // car67
  791. AddStaticVehicle(496,613.2687,-1348.3066,13.3972,101.0867,67,0); // car68
  792. AddStaticVehicle(498,588.2167,-1501.2134,15.4003,92.7100,68,0); // car69
  793. AddStaticVehicle(499,709.3599,-1591.4232,14.1244,270.6087,69,0); // car70
  794. AddStaticVehicle(500,738.3250,-1793.9640,13.3878,165.9916,70,0); // car71
  795. AddStaticVehicle(505,480.3784,-1729.2866,11.1258,82.8955,71,0); // car72
  796. AddStaticVehicle(506,442.9023,-1802.7012,5.2511,354.2753,72,0); // car73
  797. AddStaticVehicle(507,343.8070,-1808.6646,4.3652,179.5365,73,0); // car74
  798. AddStaticVehicle(508,156.8062,-1764.2191,4.9555,182.8497,74,0); // car75
  799. AddStaticVehicle(509,133.2554,-1712.9760,8.0605,28.5699,75,0); // car76
  800. AddStaticVehicle(510,183.9308,-1581.7849,13.2171,48.3345,76,0); // car77
  801. AddStaticVehicle(516,363.1588,-1439.5576,34.1948,308.1254,77,0); // car78
  802. AddStaticVehicle(517,386.3100,-1597.0477,29.6127,88.7405,78,0); // car79
  803. AddStaticVehicle(518,437.6653,-1295.1917,14.8389,31.9184,79,0); // car80
  804. AddStaticVehicle(521,367.5655,-1340.2676,14.1078,119.6713,80,0); // car81
  805. AddStaticVehicle(522,822.1147,-868.0880,69.5002,109.4160,81,0); // car82
  806.  
  807. // OTHER
  808. EnableTirePopping(0);
  809. DisableInteriorEnterExits();
  810. UsePlayerPedAnims();
  811.  
  812. //Pickups
  813.  
  814. return 1;
  815. }
  816.  
  817. public OnGameModeExit()
  818. {
  819. return 1;
  820. }
  821. public Die(playerid, msg[])
  822. {
  823. SendClientMessage(playerid, COLOR_YELLOW, "You died fool");
  824. SetPlayerHealth(playerid, 0);
  825. return 1;
  826. }
  827.  
  828. public CanRob(playerid, msg[])
  829. {
  830. SendClientMessage(playerid, COLOR_YELLOW, "You can rob again");
  831. Robtime[playerid] = 0;
  832. return 1;
  833. }
  834. public RobPrize(playerid, msg[])
  835. {
  836. new earn = 300 + random(300);
  837. new PlayerName[MAX_PLAYER_NAME];
  838. new string[128];
  839. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  840. GivePlayerMoney(playerid,earn);
  841. SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
  842. TogglePlayerControllable(playerid, 1);
  843. format(string, sizeof(string), "<< WARNING: %s has robbed a shop and recived %d$ >>", PlayerName, earn);
  844. SendClientMessageToAll(COLOR_WHITE,string);
  845. format(string, sizeof(string), "<< You earned: %d$. You can't move for 1 minute >>", earn);
  846. return 1;
  847. }
  848.  
  849. public OnPlayerRequestClass(playerid, classid)
  850. {
  851. gPlayerClass[playerid] = classid;
  852.  
  853. switch (classid) {
  854.  
  855. case 0:
  856.  
  857. {
  858. gTeam[playerid] = TEAM_GROVE;
  859. GameTextForPlayer(playerid, "~g~Grove Street Family", 1000, 6);
  860. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  861. SetPlayerColor(playerid, COLOR_GREEN);
  862.  
  863. }
  864.  
  865. case 1:
  866.  
  867. {
  868. gTeam[playerid] = TEAM_BALLAS;
  869. GameTextForPlayer(playerid, "~p~East Side Hoods Gang", 1000, 6);
  870. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  871. SetPlayerColor(playerid, COLOR_PURPLE);
  872. }
  873.  
  874. case 2:
  875.  
  876. {
  877. gTeam[playerid] = TEAM_VAGOS;
  878. GameTextForPlayer(playerid, "~y~Los Santos Vagos", 1000, 6);
  879. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  880. SetPlayerColor(playerid, COLOR_YELLOW);
  881. }
  882.  
  883. case 3:
  884.  
  885. {
  886. gTeam[playerid] = TEAM_AZTECAS;
  887. GameTextForPlayer(playerid, "~b~~h~~h~Los Aztecas", 1000, 6);
  888. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  889. SetPlayerColor(playerid, COLOR_BLUE);
  890.  
  891. }
  892. case 4:
  893.  
  894. {
  895. gTeam[playerid] = TEAM_LSPD;
  896. GameTextForPlayer(playerid, "~y~~h~~h~Police Force", 1000, 6);
  897. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  898. SetPlayerColor(playerid, COLOR_SAND);
  899.  
  900. }
  901. case 5:
  902.  
  903. {
  904. gTeam[playerid] = TEAM_BIKERS;
  905. GameTextForPlayer(playerid, "~r~~r~~r~BIKERS CLUB", 1000, 6);
  906. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  907. SetPlayerColor(playerid, COLOR_RED);
  908.  
  909. }
  910. case 6:
  911.  
  912. {
  913. gTeam[playerid] = TEAM_ARMY;
  914. GameTextForPlayer(playerid, "~y~~h~~h~THE ARMY", 1000, 6);
  915. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  916. SetPlayerColor(playerid, COLOR_GREY);
  917.  
  918. }
  919. case 7:
  920.  
  921. {
  922. gTeam[playerid] = TEAM_SICILIAN;
  923. GameTextForPlayer(playerid, "~s~The Sicilian Mafia", 1000, 6);
  924. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  925. SetPlayerColor(playerid, COLOR_WHITE);
  926.  
  927. }
  928. case 8:
  929.  
  930. {
  931. gTeam[playerid] = TEAM_COSANOSTRA;
  932. GameTextForPlayer(playerid, "~o~La Cosa Nostra", 1000, 6);
  933. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  934. SetPlayerColor(playerid, COLOR_OKER);
  935.  
  936. }
  937. case 9:
  938.  
  939. {
  940. gTeam[playerid] = TEAM_TRIADS;
  941. GameTextForPlayer(playerid, "~b~~b~~b~The Triads of China", 1000, 6);
  942. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  943. SetPlayerColor(playerid, COLOR_BLUELIGHT);
  944.  
  945. }
  946. case 10:
  947.  
  948. {
  949. gTeam[playerid] = TEAM_EME;
  950. GameTextForPlayer(playerid, "~b~~b~~b~La eMe", 1000, 6);
  951. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  952. SetPlayerColor(playerid, COLOR_BROWN);
  953.  
  954. }
  955.  
  956.  
  957. }
  958. SetPlayerPos(playerid, 489.6994,-72.1350,999.2266);
  959. SetPlayerFacingAngle( playerid, 269.4459 );
  960. SetPlayerCameraPos(playerid, 491.4409,-72.0709,999.2266);
  961. SetPlayerCameraLookAt(playerid, 489.8416,-72.4437,999.2266);
  962. SetPlayerInterior(playerid ,11);
  963. return 1;
  964. }
  965.  
  966. public SetPlayerToTeamColor(playerid)
  967. {
  968. return 1;
  969. }
  970.  
  971. public OnPlayerRequestSpawn(playerid)
  972. {
  973. new playerfile[100];
  974. AdminLevel[playerid] = dini_Int(playerfile, "AdminLevel");
  975. if(!gPlayerLogged[playerid])
  976. return 0;
  977. return 1;
  978. }
  979.  
  980. public OnPlayerConnect(playerid)
  981. {
  982. //REGISTER
  983. gPlayerLogged[playerid] = 0;
  984. new name[MAX_PLAYER_NAME], file[256];
  985. GetPlayerName(playerid, name, sizeof(name));
  986. format(file, sizeof(file), SERVER_USER_FILE, name);
  987. if (!dini_Exists(file))
  988. {
  989. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "Hi,you're not registred.Type your password in the box to register", "Register", "Quit");
  990. }
  991. if(fexist(file))
  992. {
  993. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
  994. }
  995. //REGISTER - END
  996. PickupsCreated[playerid] = false;
  997. SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
  998. TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
  999. TextDrawUseBox(SPEEDOS[playerid], 1);
  1000. new pName[MAX_PLAYER_NAME];
  1001. new string[128];
  1002. SetTimerEx("CanRob", 1200000, false, "i", playerid);
  1003. GetPlayerName(playerid, pName, sizeof(pName));
  1004. format(string, sizeof(string), "<< B.E.G Wars: %s was logged on the server. >>", pName);
  1005. SendClientMessageToAll(COLOR_GREY, string);
  1006. return 1;
  1007. }
  1008.  
  1009. public OnPlayerDisconnect(playerid, reason)
  1010. {
  1011. //--------------------------------------------------------------------------
  1012. new PName[MAX_PLAYER_NAME];
  1013. new name[MAX_PLAYER_NAME], file[256];
  1014. new string[128];
  1015. GetPlayerName(playerid, name, sizeof(name));
  1016. format(file, sizeof(file), SERVER_USER_FILE, name);
  1017. if(gPlayerLogged[playerid] == 1)
  1018. {
  1019. dini_IntSet(file, "Score", GetPlayerScore(playerid));
  1020. dini_IntSet(file, "Money", GetPlayerMoney(playerid));
  1021. dini_IntSet(file, "Wanted", GetPlayerWantedLevel(playerid));
  1022. dini_IntSet(file, "Jailed", PlayerInfo[playerid][pJailed]);
  1023. dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  1024. dini_IntSet(file, "JailTime",PlayerInfo[playerid][pJailTime]);
  1025. }
  1026. gPlayerLogged[playerid] = 0;
  1027. GetPlayerName(playerid, PName, sizeof(PName));
  1028. format(string, sizeof(string), "<< B.E.G Wars: %s was left the server. >>", PName);
  1029. SendClientMessageToAll(COLOR_GREY, string);
  1030. return 1;
  1031. }
  1032.  
  1033. public OnVehicleDeath(vehicleid, killerid)
  1034. {
  1035. return 1;
  1036. }
  1037.  
  1038.  
  1039. public OnPlayerSpawn(playerid)
  1040. {
  1041. //Jail
  1042. new pId;
  1043. if(InJail[playerid] == 1)
  1044. {
  1045. new rand = random(sizeof(JailCellSpawns));
  1046. SetPlayerPos(playerid, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
  1047. SendClientMessage(playerid, COLOR_YELLOW, "Back to Jail!");
  1048. SetPlayerInterior(playerid, 3);
  1049. SetPlayerVirtualWorld(playerid, 0);
  1050. SetTimerEx("UnJail",20000*10,0,"i",pId);
  1051. return 1;
  1052. }
  1053. //------------------
  1054.  
  1055. //Text Draws
  1056. //Map Icons ----------------------------------------------------------------
  1057. SetPlayerMapIcon( playerid, 12, 2487.7107,-1670.5569,13.3359, 62, 0 );//Grove
  1058. SetPlayerMapIcon( playerid, 13, 2334.4312,-1224.1099,27.9766, 59, 0 );//Ballas
  1059. SetPlayerMapIcon( playerid, 14, 2815.1865,-1185.2362,25.2515, 60, 0 );//Vagos
  1060. SetPlayerMapIcon( playerid, 15, 1678.0968,-2113.5818,13.5469, 58, 0 );//Aztecas
  1061. SetPlayerMapIcon( playerid, 16, 1552.7961,-1675.1948,16.1953, 30, 0 );//LSPD
  1062. SetPlayerMapIcon( playerid, 17, 679.0971,-478.4585,16.3359, 23, 0 );//Biker
  1063. SetPlayerMapIcon( playerid, 18, 2763.0349,-2396.6782,13.6328, 20, 0 );//Army
  1064. SetPlayerMapIcon( playerid, 19, 2482.2102,-2111.2078,13.5469, 38, 0 );//Sicilian
  1065. SetPlayerMapIcon( playerid, 20, 1178.0574,-2038.9641,69.0078, 25, 0 );//Cosa Nostra
  1066. SetPlayerMapIcon( playerid, 21, 1011.6063,-1452.2133,13.5546, 40, 0 );//Triads
  1067. SetPlayerMapIcon( playerid, 22, 301.0275,-1164.3633,80.9099, 44, 0);//la eMe
  1068. SetPlayerMapIcon( playerid, 23, 2244.6514,-1664.8066,15.4766, 45, 0);//la eMe
  1069. SetPlayerMapIcon( playerid, 24, 2002.5015,-1782.4841,13.5537, 18, 0 );//Melee Weapons
  1070. SetPlayerMapIcon( playerid, 25, 1367.7048,-1279.7506,13.5469, 18, 0);//Small Weapons
  1071. SetPlayerMapIcon( playerid, 26, 2685.9246,-1470.5939,30.5573, 6, 0);//Hard Weapons
  1072. //Text Draws
  1073. TextDrawShowForPlayer(playerid, cmdshelp);
  1074. TextDrawShowForPlayer(playerid, albastru);
  1075. TextDrawShowForPlayer(playerid, galben);
  1076. TextDrawShowForPlayer(playerid, rosu);
  1077.  
  1078. //Gang Zones
  1079. GangZoneShowForAll (groove1, 0x008000AA);
  1080. GangZoneShowForAll (groove2, 0x008000AA);
  1081. GangZoneShowForAll (groove3, 0x008000AA);
  1082. GangZoneShowForAll (groove4, 0x008000AA);
  1083. GangZoneShowForAll (groove5, 0x008000AA);
  1084. GangZoneShowForAll (groove6, 0x008000AA);
  1085. GangZoneShowForAll (groove7, 0x008000AA);
  1086. GangZoneShowForAll (groove8, 0x008000AA);
  1087. GangZoneShowForAll (groove9, 0x008000AA);
  1088. GangZoneShowForAll (groove10, 0x008000AA);
  1089. GangZoneShowForAll (ballas1, 0x800080AA);
  1090. GangZoneShowForAll (ballas2, 0x800080AA);
  1091. GangZoneShowForAll (ballas3, 0x800080AA);
  1092. GangZoneShowForAll (ballas4, 0x800080AA);
  1093. GangZoneShowForAll (ballas5, 0x800080AA);
  1094. GangZoneShowForAll (ballas6, 0x800080AA);
  1095. GangZoneShowForAll (ballas7, 0x800080AA);
  1096. GangZoneShowForAll (ballas8, 0x800080AA);
  1097. GangZoneShowForAll (vagos2, 0xFFFF00AA);
  1098. GangZoneShowForAll (vagos3, 0xFFFF00AA);
  1099. GangZoneShowForAll (vagos4, 0xFFFF00AA);
  1100. GangZoneShowForAll (vagos5, 0xFFFF00AA);
  1101. GangZoneShowForAll (vagos6, 0xFFFF00AA);
  1102. GangZoneShowForAll (vagos7, 0xFFFF00AA);
  1103. GangZoneShowForAll (vagos8, 0xFFFF00AA);
  1104. GangZoneShowForAll (vagos9, 0xFFFF00AA);
  1105. GangZoneShowForAll (vagos10, 0xFFFF00AA);
  1106. GangZoneShowForAll (sicilian1, 0xFFFFFFAA);
  1107. GangZoneShowForAll (sicilian2, 0xFFFFFFAA);
  1108. GangZoneShowForAll (sicilian3, 0xFFFFFFAA);
  1109. GangZoneShowForAll (sicilian4, 0xFFFFFFAA);
  1110. GangZoneShowForAll (sicilian5, 0xFFFFFFAA);
  1111. GangZoneShowForAll (sicilian6, 0xFFFFFFAA);
  1112. GangZoneShowForAll (sicilian7, 0xFFFFFFAA);
  1113. GangZoneShowForAll (sicilian8, 0xFFFFFFAA);
  1114. GangZoneShowForAll (sicilian9, 0xFFFFFFAA);
  1115. GangZoneShowForAll (army1, 0x000000AA);
  1116. GangZoneShowForAll (army2, 0x000000AA);
  1117. GangZoneShowForAll (army3, 0x000000AA);
  1118. GangZoneShowForAll (army4, 0x000000AA);
  1119. GangZoneShowForAll (army5, 0x000000AA);
  1120. GangZoneShowForAll (army6, 0x000000AA);
  1121. GangZoneShowForAll (army7, 0x000000AA);
  1122. GangZoneShowForAll (aztecas1, 0x0000FFAA);
  1123. GangZoneShowForAll (aztecas2, 0x0000FFAA);
  1124. GangZoneShowForAll (aztecas3, 0x0000FFAA);
  1125. GangZoneShowForAll (aztecas4, 0x0000FFAA);
  1126. GangZoneShowForAll (aztecas5, 0x0000FFAA);
  1127. GangZoneShowForAll (aztecas6, 0x0000FFAA);
  1128. GangZoneShowForAll (aztecas7, 0x0000FFAA);
  1129. GangZoneShowForAll (aztecas8, 0x0000FFAA);
  1130. GangZoneShowForAll (aztecas9, 0x0000FFAA);
  1131. GangZoneShowForAll (cosa1, 0x808000AA);
  1132. GangZoneShowForAll (cosa2, 0x808000AA);
  1133. GangZoneShowForAll (cosa3, 0x808000AA);
  1134. GangZoneShowForAll (cosa4, 0x808000AA);
  1135. GangZoneShowForAll (cosa5, 0x808000AA);
  1136. GangZoneShowForAll (cosa6, 0x808000AA);
  1137. GangZoneShowForAll (cosa7, 0x808000AA);
  1138. GangZoneShowForAll (cosa8, 0x808000AA);
  1139. GangZoneShowForAll (triads1, 0x00FFFFAA);
  1140. GangZoneShowForAll (triads2, 0x00FFFFAA);
  1141. GangZoneShowForAll (triads3, 0x00FFFFAA);
  1142. GangZoneShowForAll (triads4, 0x00FFFFAA);
  1143. GangZoneShowForAll (triads5, 0x00FFFFAA);
  1144. GangZoneShowForAll (triads6, 0x00FFFFAA);
  1145. GangZoneShowForAll (triads7, 0x00FFFFAA);
  1146. GangZoneShowForAll (eme1, 0xFFDEADAA);
  1147. GangZoneShowForAll (eme2, 0xFFDEADAA);
  1148. GangZoneShowForAll (eme3, 0xFFDEADAA);
  1149. GangZoneShowForAll (eme4, 0xFFDEADAA);
  1150. GangZoneShowForAll (eme5, 0xFFDEADAA);
  1151. GangZoneShowForAll (eme6, 0xFFDEADAA);
  1152. GangZoneShowForAll (eme7, 0xFFDEADAA);
  1153. GangZoneShowForAll (eme8, 0xFFDEADAA);
  1154. GangZoneShowForAll (bikers1, 0xFF0000AA);
  1155. GangZoneShowForAll (bikers2, 0xFF0000AA);
  1156. GangZoneShowForAll (bikers3, 0xFF0000AA);
  1157. GangZoneShowForAll (bikers4, 0xFF0000AA);
  1158. GangZoneShowForAll (bikers5, 0xFF0000AA);
  1159. GangZoneShowForAll (bikers6, 0xFF0000AA);
  1160. GangZoneShowForAll (bikers7, 0xFF0000AA);
  1161. GangZoneShowForAll (bikers8, 0xFF0000AA);
  1162. SendClientMessage(playerid, COLOR_ORANGE, "Need guns and a good skin?Go to deposit!(/deposit)");
  1163.  
  1164. SetPlayerInterior(playerid, 0);
  1165. SetPlayerVirtualWorld(playerid, 0);
  1166.  
  1167. return 1;
  1168. }
  1169.  
  1170. public OnPlayerDeath(playerid, killerid, reason)
  1171. {
  1172. new killername[MAX_PLAYER_NAME];
  1173. new playername[MAX_PLAYER_NAME];
  1174. GetPlayerName(killerid ,killername,sizeof(killername));
  1175. GetPlayerName(playerid ,playername,sizeof(playername));
  1176. SendDeathMessage(killerid, playerid, reason);
  1177. GivePlayerMoney(killerid, 200);
  1178. GivePlayerMoney(playerid, -200);
  1179. //Wanted System ----------------------------------------------------------------
  1180. SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
  1181. SendClientMessage(killerid, COLOR_YELLOW, ">> You are a criminal! The police is after you! <<");
  1182. //END Wanted System ------------------------------------------------------------
  1183. DisablePlayerCheckpoint(playerid);
  1184. MoneyLost[playerid] = GetPlayerMoney(playerid)/MoneyLossProcent;
  1185. DropPlayerWeapons(playerid);
  1186. GivePlayerMoney(playerid, -MoneyLost[playerid]);
  1187. new Float:X, Float:Y, Float:Z;
  1188. new string[50];
  1189. GetPlayerPos(playerid, X, Y, Z);
  1190. if(PickupsCreated[playerid] == true)
  1191. {
  1192. for(new n=0; n<NumberOfPickups; n++)
  1193. {
  1194. DestroyPickup(MoneyPickup[playerid][n]);
  1195. }
  1196. KillTimer(DestroyMoneyPickupst[playerid]);
  1197. PickupsCreated[playerid] = false;
  1198. }
  1199.  
  1200. if(MoneyLost[playerid] != 0)
  1201. {
  1202. for(new p=0; p<NumberOfPickups; p++)
  1203. {
  1204. MoneyPickup[playerid][p] = CreatePickup(1212,3, X+random(3)-random(3), Y+random(3)-random(3), Z-0.6);
  1205. }
  1206. DestroyMoneyPickupst[playerid] = SetTimerEx("DestroyMoneyPickups", TimeToDestroyMoneyPickups, 0, "i", playerid);
  1207. PickupsCreated[playerid] = true;
  1208. }
  1209. SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
  1210. if(GetPlayerWantedLevel(killerid) > 1)
  1211. {
  1212. format(string, sizeof(string), "<< [911 Report] %s killed %s(/wl) >>",killername,playername);
  1213. MessageToCops(COLOR_ORANGE,string);
  1214. }
  1215. else if(GetPlayerWantedLevel(killerid) > 6)
  1216. {
  1217. SetPlayerWantedLevel(killerid, 6);
  1218. }
  1219. return 1;
  1220. }
  1221.  
  1222. public OnPlayerText(playerid, text[])
  1223. {
  1224. new name[MAX_PLAYER_NAME];
  1225. new string[258];
  1226. GetPlayerName(playerid, name, sizeof(name));
  1227.  
  1228. if(text[0] == '!')
  1229. {
  1230. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  1231. {
  1232. format(string, sizeof(string), "Admin %s: %s",name,text[1]);
  1233. MessageToAdmins(COLOR_ORANGE,string);
  1234. return 0;
  1235. } else {
  1236. SendClientMessage(playerid, COLOR_GREY, "You must be an admin to use the Admin Chat.");
  1237. return 0;
  1238. }
  1239. }
  1240. else if(text[0] == '#')
  1241. {
  1242. format(string,sizeof(string),"[ (Team Chat):[%d] %s : %s ]",playerid,name,text[1]);
  1243. SendTeamMessage(gTeam[playerid],COLOR_YELLOW, string);
  1244. return 0;
  1245. }
  1246. else if(Mute[playerid] == 1)
  1247. {
  1248. SendClientMessage(playerid, COLOR_SAND, "You have been muted");
  1249. return 0;
  1250. }
  1251. return 1;
  1252. }
  1253.  
  1254. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1255. {
  1256. return 1;
  1257. }
  1258.  
  1259. public OnPlayerExitVehicle(playerid, vehicleid)
  1260. {
  1261. return 1;
  1262. }
  1263.  
  1264. public OnPlayerEnterCheckpoint(playerid)
  1265. {
  1266. return 1;
  1267. }
  1268.  
  1269. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1270. {
  1271. //ENTER & EXIT HQ
  1272. if(newkeys == KEY_SECONDARY_ATTACK)
  1273. {
  1274. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2523.0305,-1679.2692,15.4970))
  1275. {
  1276. SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);
  1277. SetPlayerInterior(playerid, 3);
  1278. GameTextForPlayer(playerid, "Welcome to ~r~Grove HQ", 3000, 4);
  1279. }
  1280. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187))
  1281. {
  1282. SetPlayerPos(playerid, 2523.0305,-1679.2692,15.4970);
  1283. SetPlayerInterior(playerid, 0);
  1284. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1285. }
  1286. ///////////////////////////////////////////////////////////////////////////
  1287. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.6514,-1664.8066,15.4766))
  1288. {
  1289. SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812);
  1290. SetPlayerInterior(playerid, 15);
  1291. GameTextForPlayer(playerid, "Welcome to ~r~Binco", 3000, 4);
  1292. }
  1293. if(IsPlayerInRangeOfPoint(playerid, 3.0, 207.737991,-109.019996,1005.132812))
  1294. {
  1295. SetPlayerPos(playerid, 2244.6514,-1664.8066,15.4766);
  1296. SetPlayerInterior(playerid, 0);
  1297. GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
  1298. }
  1299. ///////////////////////////////////////////////////////////////////////////
  1300. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2002.5015,-1782.4841,13.5537))
  1301. {
  1302. SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
  1303. SetPlayerInterior(playerid, 1);
  1304. GameTextForPlayer(playerid, "Welcome to ~r~Melee Weapons Shop", 3000, 4);
  1305. }
  1306. if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.148986,-40.644397,1001.515625))
  1307. {
  1308. SetPlayerPos(playerid, 2002.5015,-1782.4841,13.5537);
  1309. SetPlayerInterior(playerid, 0);
  1310. GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
  1311. }
  1312. ///////////////////////////////////////////////////////////////////////////
  1313. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1367.7048,-1279.7506,13.5469))
  1314. {
  1315. SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
  1316. SetPlayerInterior(playerid, 4);
  1317. GameTextForPlayer(playerid, "Welcome to ~r~Small Weapons Shop", 3000, 4);
  1318. }
  1319. if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.800994,-82.547599,1001.515625))
  1320. {
  1321. SetPlayerPos(playerid, 295.5133,-80.6941,1001.5156);
  1322. SetPlayerInterior(playerid, 0);
  1323. GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
  1324. }
  1325. ///////////////////////////////////////////////////////////////////////////
  1326. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1367.7048,-1279.7506,13.5469))
  1327. {
  1328. SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
  1329. SetPlayerInterior(playerid, 4);
  1330. GameTextForPlayer(playerid, "Welcome to ~r~Small Weapons Shop", 3000, 4);
  1331. }
  1332. if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.800994,-82.547599,1001.515625))
  1333. {
  1334. SetPlayerPos(playerid, 1367.7048,-1279.7506,13.5469);
  1335. SetPlayerInterior(playerid, 0);
  1336. GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
  1337. }
  1338. ///////////////////////////////////////////////////////////////////////////
  1339. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2685.9246,-1470.5939,30.5573))
  1340. {
  1341. SetPlayerPos(playerid, 296.919982,-108.071998,1001.515625);
  1342. SetPlayerInterior(playerid, 6);
  1343. GameTextForPlayer(playerid, "Welcome to ~r~Hard Weapons Shop", 3000, 4);
  1344. }
  1345. if(IsPlayerInRangeOfPoint(playerid, 3.0, 296.919982,-108.071998,1001.515625))
  1346. {
  1347. SetPlayerPos(playerid, 2685.9246,-1470.5939,30.5573);
  1348. SetPlayerInterior(playerid, 0);
  1349. GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
  1350. }
  1351. ///////////////////////////////////////////////////////////////////////////
  1352. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2324.1777,-1218.8508,27.9766))
  1353. {
  1354. SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812);
  1355. SetPlayerInterior(playerid, 5);
  1356. GameTextForPlayer(playerid, "Welcome to ~r~Ballas HQ", 3000, 4);
  1357. }
  1358. if(IsPlayerInRangeOfPoint(playerid, 3.0, 318.564971,1118.209960,1083.882812))
  1359. {
  1360. SetPlayerPos(playerid, 2324.1777,-1218.8508,27.9766);
  1361. SetPlayerInterior(playerid, 0);
  1362. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1363. }
  1364. ///////////////////////////////////////////////////////////////////////////
  1365. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2808.0039,-1190.0422,25.3455))
  1366. {
  1367. SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
  1368. SetPlayerInterior(playerid, 8);
  1369. GameTextForPlayer(playerid, "Welcome to ~r~Vagos HQ", 3000, 4);
  1370. }
  1371. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2807.619873,-1171.899902,1025.570312))
  1372. {
  1373. SetPlayerPos(playerid, 2808.0039,-1190.0422,25.3455);
  1374. SetPlayerInterior(playerid, 0);
  1375. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1376. }
  1377. ///////////////////////////////////////////////////////////////////////////
  1378. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1673.6644,-2122.4485,14.1460))
  1379. {
  1380. SetPlayerPos(playerid, 1059.895996,2081.685791,10.820312);
  1381. SetPlayerInterior(playerid, 0);
  1382. GameTextForPlayer(playerid, "Welcome to ~r~Aztecas HQ", 3000, 4);
  1383. }
  1384. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1059.895996,2081.685791,10.820312))
  1385. {
  1386. SetPlayerPos(playerid, 1673.6644,-2122.4485,14.1460);
  1387. SetPlayerInterior(playerid, 0);
  1388. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1389. }
  1390. ///////////////////////////////////////////////////////////////////////////
  1391. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.4794,-1675.3102,16.1953))
  1392. {
  1393. SetPlayerPos(playerid, 288.745971,169.350997,1007.171875);
  1394. SetPlayerInterior(playerid, 3);
  1395. GameTextForPlayer(playerid, "Los Santos ~r~Police", 3000, 4);
  1396. }
  1397. if(IsPlayerInRangeOfPoint(playerid, 3.0, 288.745971,169.350997,1007.171875))
  1398. {
  1399. SetPlayerPos(playerid, 1553.4794,-1675.3102,16.1953);
  1400. SetPlayerInterior(playerid, 0);
  1401. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1402. }
  1403. ///////////////////////////////////////////////////////////////////////////
  1404. if(IsPlayerInRangeOfPoint(playerid, 3.0, 681.5913,-473.5256,16.5363))
  1405. {
  1406. SetPlayerPos(playerid, 964.106994,-53.205497,1001.124572);
  1407. SetPlayerInterior(playerid, 3);
  1408. GameTextForPlayer(playerid, "Welcome to ~r~Bikers Bar", 3000, 4);
  1409. }
  1410. if(IsPlayerInRangeOfPoint(playerid, 3.0, 964.106994,-53.205497,1001.124572))
  1411. {
  1412. SetPlayerPos(playerid, 681.5913,-473.5256,16.5363);
  1413. SetPlayerInterior(playerid, 0);
  1414. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1415. }
  1416. ///////////////////////////////////////////////////////////////////////////
  1417. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2755.1052,-2382.2556,13.6328))
  1418. {
  1419. SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
  1420. SetPlayerInterior(playerid, 10);
  1421. GameTextForPlayer(playerid, "Welcome to ~r~Army Secret Base", 3000, 4);
  1422. }
  1423. if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.375991,109.245994,1003.218750))
  1424. {
  1425. SetPlayerPos(playerid, 2755.1052,-2382.2556,13.6328);
  1426. SetPlayerInterior(playerid, 0);
  1427. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1428. }
  1429. ///////////////////////////////////////////////////////////////////////////
  1430. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2509.0000,-2120.1321,13.5469))
  1431. {
  1432. SetPlayerPos(playerid, 963.418762,2108.292480,1011.030273);
  1433. SetPlayerInterior(playerid, 1);
  1434. GameTextForPlayer(playerid, "Welcome to ~r~Sicilian HQ", 3000, 4);
  1435. }
  1436. if(IsPlayerInRangeOfPoint(playerid, 3.0, 963.418762,2108.292480,1011.030273))
  1437. {
  1438. SetPlayerPos(playerid, 2509.0000,-2120.1321,13.5469);
  1439. SetPlayerInterior(playerid, 0);
  1440. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1441. }
  1442. ///////////////////////////////////////////////////////////////////////////
  1443. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1124.0004,-2037.0791,69.8854))
  1444. {
  1445. SetPlayerPos(playerid, 2169.461181,1618.798339,999.976562);
  1446. SetPlayerInterior(playerid, 1);
  1447. GameTextForPlayer(playerid, "Welcome to ~r~Cosa Nostra HQ", 3000, 4);
  1448. }
  1449. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2169.461181,1618.798339,999.976562))
  1450. {
  1451. SetPlayerPos(playerid, 1124.0004,-2037.0791,69.8854);
  1452. SetPlayerInterior(playerid, 0);
  1453. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1454. }
  1455. ///////////////////////////////////////////////////////////////////////////
  1456. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.1676,-1431.2755,13.5469))
  1457. {
  1458. SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
  1459. SetPlayerInterior(playerid, 6);
  1460. GameTextForPlayer(playerid, "Welcome to ~r~Triads HQ", 3000, 4);
  1461. }
  1462. if(IsPlayerInRangeOfPoint(playerid, 3.0, 774.213989,-48.924297,1000.585937))
  1463. {
  1464. SetPlayerPos(playerid, 1004.1676,-1431.2755,13.5469);
  1465. SetPlayerInterior(playerid, 0);
  1466. GameTextForPlayer(playerid, "Go to ~r~WAR", 3000, 4);
  1467. }
  1468. ///////////////////////////////////////////////////////////////////////////
  1469. if(IsPlayerInRangeOfPoint(playerid, 3.0, 300.1774,-1154.3909,81.3890))
  1470. {
  1471. SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713);
  1472. SetPlayerInterior(playerid, 1);
  1473. GameTextForPlayer(playerid, "Welcome to ~r~La eMe HQ", 3000, 4);
  1474. }
  1475. if(IsPlayerInRangeOfPoint(playerid, 3.0, -2159.122802,641.517517,1052.381713))
  1476. {
  1477. SetPlayerPos(playerid, 300.1774,-1154.3909,81.3890);
  1478. SetPlayerInterior(playerid, 0);
  1479. GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
  1480. }
  1481. ///////////////////////////////////////////////////////////////////////////
  1482. }
  1483. return 1;
  1484. }
  1485.  
  1486. public OnPlayerPickUpPickup(playerid, pickupid)
  1487. {
  1488. for(new i=0; i<MAX_PLAYERS; i++)
  1489. {
  1490. if(pickupid == MoneyPickup[i][0] || pickupid == MoneyPickup[i][1] || pickupid == MoneyPickup[i][2] || pickupid == MoneyPickup[i][3]
  1491. || pickupid == MoneyPickup[i][4] || pickupid == MoneyPickup[i][5] || pickupid == MoneyPickup[i][6] || pickupid == MoneyPickup[i][7]
  1492. || pickupid == MoneyPickup[i][8] || pickupid == MoneyPickup[i][9])
  1493. {
  1494. GivePlayerMoney(playerid, MoneyLost[i]/NumberOfPickups);
  1495. DestroyPickup(pickupid);
  1496. }
  1497. }
  1498. DestroyPickup(pickupid);
  1499. return 1;
  1500. }
  1501.  
  1502. public OnPlayerSelectedMenuRow(playerid, row)
  1503. {
  1504. return 1;
  1505. }
  1506.  
  1507. public OnPlayerUpdate(playerid)
  1508. {
  1509. new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
  1510. vehicleid = GetPlayerVehicleID(playerid);
  1511. if(vehicleid != 0)
  1512. {
  1513. GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
  1514. final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
  1515. final_speed_int = floatround(final_speed,floatround_round);
  1516. format(speed_string,256,"Speed: ~r~%i km/h",final_speed_int);
  1517. TextDrawSetString(SPEEDOS[playerid], speed_string);
  1518. }
  1519. else
  1520. {
  1521. TextDrawSetString(SPEEDOS[playerid], " ");
  1522. }
  1523. if(gTeam[playerid] == TEAM_LSPD)
  1524. {
  1525. SetPlayerWantedLevel(playerid, 0);
  1526. }
  1527. return 1;
  1528. }
  1529.  
  1530. public SendTeamMessage(team, color, string[])
  1531. {
  1532. for(new i = 0; i < MAX_PLAYERS; i++)
  1533. {
  1534. if(IsPlayerConnected(i))
  1535. {
  1536. if(gTeam[i] == team)
  1537. {
  1538. SendClientMessage(i, color, string);
  1539. }
  1540. }
  1541. }
  1542. }
  1543.  
  1544. public DestroyMoneyPickups(playerid)
  1545. {
  1546. for(new n=0; n<NumberOfPickups; n++)
  1547. {
  1548. DestroyPickup(MoneyPickup[playerid][n]);
  1549. }
  1550. PickupsCreated[playerid] = false;
  1551. }
  1552. public DropPlayerWeapons(playerid)
  1553. {
  1554. new playerweapons[13][2];
  1555. new Float:x,Float:y,Float:z;
  1556. GetPlayerPos(playerid, x, y, z);
  1557.  
  1558. for(new i=0;i<13;i++){
  1559. GetPlayerWeaponData(playerid, i, playerweapons[i][0], playerweapons[i][1]);
  1560. new model=GetWeaponModel(playerweapons[i][0]);
  1561. new times=floatround(playerweapons[i][1]/10.0001);
  1562. new string[256];
  1563. format(string, sizeof(string), "%d", times);
  1564. times=strval(string);
  1565. new Float:X=x+(random(3)-random(3));
  1566. new Float:Y=y+(random(3)-random(3));
  1567. if(playerweapons[i][1]!=0)
  1568. {
  1569. if(times>DropLimit) times=DropLimit;
  1570. for(new a=0;a<times;a++)
  1571. {
  1572. if(model!=-1)
  1573. {
  1574. new pickupid=CreatePickup(model, 3, X, Y, z);
  1575. SetTimerEx("DeletePickup", DeleteTime*1000, false, "d", pickupid);
  1576. }
  1577. }
  1578. }
  1579. }
  1580. return 1;
  1581. }
  1582.  
  1583. public DeletePickup(pickupid)
  1584. {
  1585. DestroyPickup(pickupid);
  1586. return 1;
  1587. }
  1588.  
  1589. public GetWeaponModel(weaponid)
  1590. {
  1591. new model;
  1592.  
  1593. switch(weaponid)
  1594. {
  1595. case 1: model=331; case 2: model=333; case 3: model=334;
  1596. case 4: model=335; case 5: model=336; case 6: model=337;
  1597. case 7: model=338; case 8: model=339; case 9: model=341;
  1598. case 10: model=321; case 11: model=322; case 12: model=323;
  1599. case 13: model=324; case 14: model=325; case 15: model=326;
  1600. case 16: model=342; case 17: model=343; case 18: model=344;
  1601. case 22: model=346; case 23: model=347; case 24: model=348;
  1602. case 25: model=349; case 26: model=350; case 27: model=351;
  1603. case 28: model=352; case 29: model=353; case 30: model=355;
  1604. case 31: model=356; case 32: model=372; case 33: model=357;
  1605. case 34: model=358; case 35: model=359; case 36: model=360;
  1606. case 37: model=361; case 38: model=362; case 39: model=363;
  1607. case 41: model=365; case 42: model=366; case 46: model=371;
  1608. }
  1609. if(model<300) return -1;
  1610.  
  1611. return model;
  1612. }
  1613. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1614. {
  1615. if (dialogid == 1)
  1616. {
  1617. new name[MAX_PLAYER_NAME], file[256], string[128];
  1618. GetPlayerName(playerid, name, sizeof(name));
  1619. format(file, sizeof(file), SERVER_USER_FILE, name);
  1620. if(!response) return Kick(playerid);
  1621. if (!strlen(inputtext)) return
  1622. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "Hi,you're not registred.Type your password in the box to register", "Register", "Quit");
  1623. dini_Create(file);
  1624. dini_IntSet(file, "Password", udb_hash(inputtext));
  1625. dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
  1626. dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 750);
  1627. dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
  1628. dini_IntSet(file, "JailTime",PlayerInfo[playerid][pJailTime] = 0);
  1629. dini_IntSet(file, "Wanted",PlayerInfo[playerid][pWanted] = 0);
  1630. GivePlayerMoney(playerid, 750);
  1631. format(string, 128, "[B.E.G]: You succesfully registered the nickname %s with password %s, you have been auto logged in.", name, inputtext);
  1632. SendClientMessage(playerid, COLOR_YELLOW, string);
  1633. gPlayerLogged[playerid] = 1;
  1634. }
  1635. if (dialogid == 2)
  1636. {
  1637. new name[MAX_PLAYER_NAME], file[256];
  1638. GetPlayerName(playerid, name, sizeof(name));
  1639. format(file, sizeof(file), SERVER_USER_FILE, name);
  1640. if(!response) return Kick(playerid);
  1641. if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
  1642. new tmp;
  1643. tmp = dini_Int(file, "Password");
  1644. if(udb_hash(inputtext) != tmp) {
  1645. SendClientMessage(playerid, COLOR_RED, "Wrong Password.");
  1646. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
  1647. }
  1648. else
  1649. {
  1650. gPlayerLogged[playerid] = 1;
  1651. PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
  1652. SetPlayerScore(playerid, dini_Int(file, "Score")-GetPlayerScore(playerid));
  1653. GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
  1654. SetPlayerWantedLevel(playerid, dini_Int(file, "Wanted")-GetPlayerWantedLevel(playerid));
  1655. SendClientMessage(playerid,COLOR_RED, "B.E.G Wars: Welcome on Beg Wars version 0.8 by Hor1z0n!");
  1656. }
  1657. }
  1658. if(response)//they pressed the first button
  1659. {
  1660. switch(dialogid)//if your using only one dialog this isn't needed but you never know.
  1661. {
  1662. case 3://our dialog
  1663. {
  1664. switch(listitem)//wich listitem is chosen
  1665. {
  1666. case 0://the first item in the list
  1667. {
  1668. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1669. GivePlayerWeapon(playerid, 1 ,0);
  1670. GivePlayerMoney(playerid, -50);
  1671. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Brass Knuckles for 50$");
  1672. }
  1673. case 1:
  1674. {
  1675. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1676. GivePlayerWeapon(playerid, 2 ,0);
  1677. GivePlayerMoney(playerid, -50);
  1678. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Golf Club for 50$");
  1679. }
  1680. case 2:
  1681. {
  1682. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1683. GivePlayerWeapon(playerid, 5 ,0);
  1684. GivePlayerMoney(playerid, -50);
  1685. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Baseball Bat for 50$");
  1686. }
  1687. case 3:
  1688. {
  1689. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1690. GivePlayerWeapon(playerid, 6 ,0);
  1691. GivePlayerMoney(playerid, -50);
  1692. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Shovel for 50$");
  1693. }
  1694. case 4:
  1695. {
  1696. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1697. GivePlayerWeapon(playerid, 7 ,0);
  1698. GivePlayerMoney(playerid, -50);
  1699. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Pool Cue for 50$");
  1700. }
  1701. case 5:
  1702. {
  1703. if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1704. GivePlayerWeapon(playerid, 8 ,0);
  1705. GivePlayerMoney(playerid, -100);
  1706. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Katana for 100$");
  1707. }
  1708. case 6:
  1709. {
  1710. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1711. GivePlayerWeapon(playerid, 9 ,0);
  1712. GivePlayerMoney(playerid, -500);
  1713. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Chainsaw for 500$");
  1714. }
  1715. case 7:
  1716. {
  1717. if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1718. GivePlayerWeapon(playerid, 14 ,0);
  1719. GivePlayerMoney(playerid, -10);
  1720. SendClientMessage(playerid, COLOR_YELLOW, "You bought Flowers for 10$");
  1721. }
  1722. case 8:
  1723. {
  1724. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1725. GivePlayerWeapon(playerid, 15 ,0);
  1726. GivePlayerMoney(playerid, -50);
  1727. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Cane for 50$");
  1728. }
  1729. case 9:
  1730. {
  1731. if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1732. GivePlayerWeapon(playerid, 46 ,0);
  1733. GivePlayerMoney(playerid, -50);
  1734. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Parachute for 50$");
  1735. }
  1736. case 10:
  1737. {
  1738. if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1739. GivePlayerWeapon(playerid, 4 ,0);
  1740. GivePlayerMoney(playerid, -200);
  1741. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Knife for 200$");
  1742. }
  1743. }
  1744. }
  1745. }
  1746. }
  1747. if(dialogid == smallw)
  1748. {
  1749. if(response)
  1750. {
  1751. if(listitem == 0)
  1752. {
  1753. if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1754. GivePlayerWeapon(playerid, 22 ,100);
  1755. GivePlayerMoney(playerid, -300);
  1756. SendClientMessage(playerid, COLOR_YELLOW, "You bought a 9mm for 300$");
  1757. }
  1758. if(listitem == 1)
  1759. {
  1760. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1761. GivePlayerWeapon(playerid, 23 ,100);
  1762. GivePlayerMoney(playerid, -500);
  1763. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Silenced 9mm for 500$");
  1764. }
  1765. if(listitem == 2)
  1766. {
  1767. if(GetPlayerMoney(playerid) < 850) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1768. GivePlayerWeapon(playerid, 24 ,100);
  1769. GivePlayerMoney(playerid, -850);
  1770. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Desert Eeagle for 850$");
  1771. }
  1772. if(listitem == 3)
  1773. {
  1774. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1775. GivePlayerWeapon(playerid, 28 ,300);
  1776. GivePlayerMoney(playerid, -1000);
  1777. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Micro SMG for 1000$");
  1778. }
  1779. if(listitem == 4)
  1780. {
  1781. if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1782. GivePlayerWeapon(playerid, 32 ,360);
  1783. GivePlayerMoney(playerid, -1200);
  1784. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Tec9 for 1200$");
  1785. }
  1786. if(listitem == 5)
  1787. {
  1788. if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1789. GivePlayerWeapon(playerid, 29 ,400);
  1790. GivePlayerMoney(playerid, -1500);
  1791. SendClientMessage(playerid, COLOR_YELLOW, "You bought a MP5 for 1500$");
  1792. }
  1793. }
  1794. }
  1795. if(dialogid == hardw)
  1796. {
  1797. if(response)
  1798. {
  1799. if(listitem == 0)
  1800. {
  1801. if(GetPlayerMoney(playerid) < 700) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1802. GivePlayerWeapon(playerid, 25 ,50);
  1803. GivePlayerMoney(playerid, -700);
  1804. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Shotgun for 700$");
  1805. }
  1806. if(listitem == 1)
  1807. {
  1808. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1809. GivePlayerWeapon(playerid, 27 ,100);
  1810. GivePlayerMoney(playerid, -2000);
  1811. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Combat Shotgun for 2000$");
  1812. }
  1813. if(listitem == 2)
  1814. {
  1815. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1816. GivePlayerWeapon(playerid, 30 ,500);
  1817. GivePlayerMoney(playerid, -2000);
  1818. SendClientMessage(playerid, COLOR_YELLOW, "You bought a AK47 for 2000$");
  1819. }
  1820. if(listitem == 3)
  1821. {
  1822. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1823. GivePlayerWeapon(playerid, 31 ,500);
  1824. GivePlayerMoney(playerid, -2000);
  1825. SendClientMessage(playerid, COLOR_YELLOW, "You bought a M4 for 2000$");
  1826. }
  1827. if(listitem == 4)
  1828. {
  1829. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1830. GivePlayerWeapon(playerid, 33 ,100);
  1831. GivePlayerMoney(playerid, -1000);
  1832. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Country Rifle for 1000$");
  1833. }
  1834. if(listitem == 5)
  1835. {
  1836. if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1837. GivePlayerWeapon(playerid, 34 ,100);
  1838. GivePlayerMoney(playerid, -1500);
  1839. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Sniper Rifle for 1500$");
  1840. }
  1841. if(listitem == 6)
  1842. {
  1843. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1844. GivePlayerWeapon(playerid, 37 , 150);
  1845. GivePlayerMoney(playerid, -5000);
  1846. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Flame Thrower for 5000$");
  1847. }
  1848. if(listitem == 7)
  1849. {
  1850. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
  1851. GivePlayerWeapon(playerid, 35 ,50);
  1852. GivePlayerMoney(playerid, -5000);
  1853. SendClientMessage(playerid, COLOR_YELLOW, "You bought a Rocket Launcher for 5000$");
  1854. }
  1855. }
  1856. }
  1857. return 1;
  1858. }
  1859. public UnJail(pId)
  1860. {
  1861. new file[256];
  1862. SpawnPlayer(pId);
  1863. SendClientMessage(pId, 0xFF0000AA, "You Have Ben Released From Jail!");
  1864. InJail[pId] = 0;
  1865. dini_IntSet(file, "Jailed", 0);
  1866. TogglePlayerControllable(pId, 1);
  1867. return 1;
  1868. }
  1869.  
  1870.  
  1871. stock Name(playerid)
  1872. {
  1873. new name[24];
  1874. GetPlayerName(playerid, name, sizeof(name));
  1875. return name;
  1876. }
  1877.  
  1878. public OnPlayerCommandReceived(playerid, cmdtext[])
  1879. {
  1880. new cmd[256];
  1881. new tmp[256];
  1882. new Message[256];
  1883. new gMessage[256];
  1884. new pName[MAX_PLAYER_NAME+1];
  1885. new iName[MAX_PLAYER_NAME+1];
  1886. new idx;
  1887. new adminname[MAX_PLAYER_NAME];
  1888.  
  1889. cmd = strtok(cmdtext, idx);
  1890.  
  1891. // PM Command
  1892.  
  1893. if(strcmp("/stats", cmd, true) == 0)
  1894. {
  1895. new string[128];
  1896. new name[MAX_PLAYER_NAME];
  1897. GetPlayerName(playerid, name, sizeof(name));
  1898. format(string ,sizeof(string), "-----------Stats %s---------", name);
  1899. SendClientMessage(playerid, COLOR_YELLOW, string);
  1900. format(string, sizeof(string), "Admin Level: [%d] || Interior: [%d]", PlayerInfo[playerid][pAdminLevel], GetPlayerInterior(playerid));
  1901. SendClientMessage(playerid, COLOR_WHITE, string);
  1902. format(string, sizeof(string), "Cash: [%d] || Virtual World: [%d]", GetPlayerMoney(playerid), GetPlayerVirtualWorld(playerid));
  1903. SendClientMessage(playerid, COLOR_WHITE, string);
  1904. format(string, sizeof(string), "Score: [%d] || Ping: [%d]", GetPlayerScore(playerid), GetPlayerPing(playerid));
  1905. SendClientMessage(playerid, COLOR_WHITE, string);
  1906. format(string, sizeof(string), "Skin: [%d] || Wanted Level: [%d]", GetPlayerSkin(playerid),GetPlayerWantedLevel(playerid));
  1907. SendClientMessage(playerid, COLOR_WHITE, string);
  1908. SendClientMessage(playerid, COLOR_YELLOW, "-------------------------------------------------");
  1909. return 1;
  1910. }
  1911. if(strcmp("/check", cmd, true) == 0)
  1912. {
  1913. if(PlayerInfo[playerid][pAdminLevel] >= 1) {
  1914. tmp = strtok(cmdtext,idx);
  1915. if(!strlen(tmp) || strlen(tmp) > 5) {
  1916. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /check [id/name] [reason]");
  1917. }
  1918.  
  1919. new id = strval(tmp);
  1920.  
  1921. if(!IsPlayerConnected(id)) {
  1922. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  1923. return 1;
  1924. }
  1925.  
  1926. gMessage = strrest(cmdtext,idx);
  1927.  
  1928. GetPlayerName(id,iName,sizeof(iName));
  1929. GetPlayerName(playerid, adminname, sizeof(adminname));
  1930. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: An Admin checked your stats. >>");
  1931.  
  1932. if(strlen(gMessage) > 0) {
  1933. format(Message,sizeof(Message),"Reason: %s",gMessage);
  1934. SendClientMessage(id,COLOR_YELLOW,Message);
  1935. }
  1936.  
  1937. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been checked by %s. Reason: %s.",iName,id,adminname,gMessage);
  1938. SendClientMessage(playerid,COLOR_RED,Message);
  1939.  
  1940. new string[128];
  1941. new name[MAX_PLAYER_NAME];
  1942. GetPlayerName(playerid, name, sizeof(name));
  1943. format(string ,sizeof(string), "-----------Stats %s---------", iName);
  1944. SendClientMessage(playerid, COLOR_YELLOW, string);
  1945. format(string, sizeof(string), "Admin Level: [%d] || Interior: [%d]", PlayerInfo[id][pAdminLevel], GetPlayerInterior(id));
  1946. SendClientMessage(playerid, COLOR_WHITE, string);
  1947. format(string, sizeof(string), "Cash: [%d] || Virtual World: [%d]", GetPlayerMoney(id), GetPlayerVirtualWorld(id));
  1948. SendClientMessage(playerid, COLOR_WHITE, string);
  1949. format(string, sizeof(string), "Score: [%d] || Ping: [%d]", GetPlayerScore(id), GetPlayerPing(id));
  1950. SendClientMessage(playerid, COLOR_WHITE, string);
  1951. format(string, sizeof(string), "Skin: [%d] || Wanted Level: [%d]", GetPlayerSkin(id),GetPlayerWantedLevel(id));
  1952. SendClientMessage(playerid, COLOR_WHITE, string);
  1953. SendClientMessage(playerid, COLOR_YELLOW, "-------------------------------------------------");
  1954. return 1;
  1955. } else {
  1956. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
  1957. return 1;
  1958. }
  1959. }
  1960.  
  1961. if(strcmp("/dropweapon", cmd, true) == 0)
  1962. {
  1963. if(IsPlayerConnected(playerid))
  1964. {
  1965. new weapon;
  1966. new ammo;
  1967. ammo=GetPlayerAmmo(playerid);
  1968. weapon=GetPlayerWeapon(playerid);
  1969. if(ammo == 0) return true;
  1970. GivePlayerWeapon(playerid, weapon, -ammo);
  1971. SendClientMessage(playerid, COLOR_WHITE, "You've dropped your weapon!");
  1972. }
  1973. return true;
  1974. }
  1975. if(!strcmp(cmd, "/gotols", true))
  1976. {
  1977. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  1978. {
  1979. SetPlayerPos(playerid, 1516.0526,-1669.2056,14.0469);
  1980. SendClientMessage(playerid,COLOR_GREY, "Welcome to Los Santos,use /veh to spawn a vehicle");
  1981. }
  1982. else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
  1983. return 1;
  1984. }
  1985. if(!strcmp(cmd, "/gotosf", true))
  1986. {
  1987. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  1988. {
  1989. SetPlayerPos(playerid, -2033.4580,148.7766,28.8359);
  1990. SendClientMessage(playerid,COLOR_GREY, "Welcome to San Fierro,use /veh to spawn a vehicle");
  1991. }
  1992. else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
  1993. return 1;
  1994. }
  1995. if(!strcmp(cmd, "/gotolv", true))
  1996. {
  1997. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  1998. {
  1999. SetPlayerPos(playerid, 1718.6371,1421.1610,10.6406);
  2000. SendClientMessage(playerid,COLOR_GREY, "Welcome to Las Venturas,use /veh to spawn a vehicle");
  2001. }
  2002. else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
  2003. return 1;
  2004. }
  2005. if(strcmp("/buygun", cmd, true) == 0)
  2006. {
  2007. if(IsPlayerInRangeOfPoint(playerid , 2.0, 295.7513,-38.3262,1001.5156))
  2008. {
  2009. ShowPlayerDialog(playerid,3, DIALOG_STYLE_LIST, "What weapons do you want?", "Brass Knuckles ($50)\nGolf Club ($50)\nBaseball Bat ($50)\nShovel ($50)\nPool Cue ($50)\nKatana ($100)\nChainsaw ($500)\nFlowers ($10)\nCane ($50)\nParachute ($50)\nKnife ($200)", "Purchase", "Cancel");
  2010. }
  2011. else if(IsPlayerInRangeOfPoint(playerid , 2.0, 295.5133,-80.6941,1001.5156))
  2012. {
  2013. ShowPlayerDialog(playerid,smallw, DIALOG_STYLE_LIST, "What weapons do you want?", "9mm ($300)\nSilence 9mm ($500)\nDesert Eagle ($850)\nMicro SMG ($1000)\nTec9 ($1200)\nMP5 ($1500)", "Purchase", "Cancel");
  2014. }
  2015. else if(IsPlayerInRangeOfPoint(playerid , 2.0, 291.2514,-106.2294,1001.5156))
  2016. {
  2017. ShowPlayerDialog(playerid,hardw, DIALOG_STYLE_LIST, "What weapons do you want?", "Shotgun ($700)\nCombat Shotgun ($2000)\nAK47 ($2000)\nM4 ($2000)\nCountry Rifle ($1000)\nSniper Rifle ($1500)\nFlame Thrower ($5000)\nRocket Launcher ($5000)", "Purchase", "Cancel");
  2018. }
  2019. else
  2020. {
  2021. SendClientMessage(playerid, COLOR_GREY, "You are not at Weapons Store");
  2022. }
  2023. return 1;
  2024. }
  2025. if(!strcmp(cmd, "/gotodair", true))
  2026. {
  2027. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  2028. {
  2029. SetPlayerPos(playerid, 427.2907,2536.0698,16.4956);
  2030. SendClientMessage(playerid,COLOR_GREY, "Welcome to Desert Airport,use /veh to spawn a vehicle");
  2031. }
  2032. else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
  2033. return 1;
  2034. }
  2035. if(!strcmp(cmd, "/gotochilliad", true))
  2036. {
  2037. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  2038. {
  2039. SetPlayerPos(playerid, -2316.8755,-1622.2094,483.7203);
  2040. SendClientMessage(playerid,COLOR_GREY, "Welcome to Mount Chilliad,use /veh to spawn a vehicle");
  2041. }
  2042. else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
  2043. return 1;
  2044. }
  2045. if(strcmp("/deposit", cmd, true) == 0)
  2046. {
  2047. if(gTeam[playerid] == TEAM_GROVE)
  2048. {
  2049. SetPlayerCheckpoint(playerid,2492.8123,-1710.7850,1014.7422,4.0);
  2050. GameTextForPlayer(playerid, "~w~Grove Deposit on the map", 5000, 1);
  2051. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2052. return 1;
  2053. }
  2054. else if(gTeam[playerid] == TEAM_BALLAS)
  2055. {
  2056. SetPlayerCheckpoint(playerid,308.1769,1120.4403,1083.8828,4.0);
  2057. GameTextForPlayer(playerid, "~w~Ballas Deposit on the map", 5000, 1);
  2058. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2059. return 1;
  2060. }
  2061. else if(gTeam[playerid] == TEAM_VAGOS)
  2062. {
  2063. SetPlayerCheckpoint(playerid,2807.5552,-1165.3676,1025.5703,4.0);
  2064. GameTextForPlayer(playerid, "~w~Vagos Deposit on the map", 5000, 1);
  2065. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2066. return 1;
  2067. }
  2068. else if(gTeam[playerid] == TEAM_AZTECAS)
  2069. {
  2070. SetPlayerCheckpoint(playerid,1075.5396,2077.6289,10.8203,4.0);
  2071. GameTextForPlayer(playerid, "~w~Aztecas Deposit on the map", 5000, 1);
  2072. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2073. return 1;
  2074. }
  2075. else if(gTeam[playerid] == TEAM_LSPD)
  2076. {
  2077. SetPlayerCheckpoint(playerid,1525.3486,-1677.9718,5.8906,4.0);
  2078. GameTextForPlayer(playerid, "~w~LSPD Deposit on the map", 5000, 1);
  2079. return 1;
  2080. }
  2081. else if(gTeam[playerid] == TEAM_BIKERS)
  2082. {
  2083. SetPlayerCheckpoint(playerid,954.5814,-56.3507,1001.1246,4.0);
  2084. GameTextForPlayer(playerid, "~w~Bikers Deposit on the map", 5000, 1);
  2085. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2086. return 1;
  2087. }
  2088. else if(gTeam[playerid] == TEAM_ARMY)
  2089. {
  2090. SetPlayerCheckpoint(playerid,225.7137,122.8947,999.0574,4.0);
  2091. GameTextForPlayer(playerid, "~w~Army Deposit on the map", 5000, 1);
  2092. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2093. return 1;
  2094. }
  2095. else if(gTeam[playerid] == TEAM_SICILIAN)
  2096. {
  2097. SetPlayerCheckpoint(playerid,934.2408,2109.9873,1011.0234,4.0);
  2098. GameTextForPlayer(playerid, "~w~Sicilian Deposit on the map", 5000, 1);
  2099. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2100. return 1;
  2101. }
  2102. else if(gTeam[playerid] == TEAM_COSANOSTRA)
  2103. {
  2104. SetPlayerCheckpoint(playerid,2217.0754,1594.4120,999.9735,4.0);
  2105. GameTextForPlayer(playerid, "~w~Cosa Nostra Deposit on the map", 5000, 1);
  2106. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2107. return 1;
  2108. }
  2109. else if(gTeam[playerid] == TEAM_TRIADS)
  2110. {
  2111. SetPlayerCheckpoint(playerid,754.8130,-40.4202,1000.5859,4.0);
  2112. GameTextForPlayer(playerid, "~w~The Triads Deposit on the map", 5000, 1);
  2113. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2114. return 1;
  2115. }
  2116. else if(gTeam[playerid] == TEAM_EME)
  2117. {
  2118. SetPlayerCheckpoint(playerid,-2170.2595,635.3943,1052.3750,4.0);
  2119. GameTextForPlayer(playerid, "~w~La Eme Deposit on the map", 5000, 1);
  2120. SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
  2121. return 1;
  2122. }
  2123. return 1;
  2124. }
  2125. if(strcmp("/healme", cmd, true) == 0)
  2126. {
  2127. if(gTeam[playerid] == TEAM_GROVE && IsPlayerInRangeOfPoint(playerid , 4.0, 2498.2524,-1711.1841,1014.7422))
  2128. {
  2129. SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the fridge");
  2130. SetPlayerHealth(playerid, 100);
  2131. return 1;
  2132. }
  2133. else if(gTeam[playerid] == TEAM_BALLAS && IsPlayerInRangeOfPoint(playerid , 4.0, 332.0238,1119.5453,1083.8903))
  2134. {
  2135. SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the fridge");
  2136. SetPlayerHealth(playerid, 100);
  2137. return 1;
  2138. }
  2139. else if(gTeam[playerid] == TEAM_VAGOS && IsPlayerInRangeOfPoint(playerid , 4.0, 2819.5203,-1173.3083,1025.5703))
  2140. {
  2141. SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the cupboard");
  2142. SetPlayerHealth(playerid, 100);
  2143. return 1;
  2144. }
  2145. else if(gTeam[playerid] == TEAM_AZTECAS && IsPlayerInRangeOfPoint(playerid , 4.0, 1091.7166,2121.3447,15.3504))
  2146. {
  2147. SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in this room");
  2148. SetPlayerHealth(playerid, 100);
  2149. return 1;
  2150. }
  2151. else if(gTeam[playerid] == TEAM_LSPD && IsPlayerInRangeOfPoint(playerid , 4.0, 249.5486,196.5705,1008.1719))
  2152. {
  2153. SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some watter");
  2154. SetPlayerHealth(playerid, 100);
  2155. return 1;
  2156. }
  2157. else if(gTeam[playerid] == TEAM_BIKERS && IsPlayerInRangeOfPoint(playerid , 4.0, 971.0430,-48.9377,1001.1172))
  2158. {
  2159. SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some beer from the fridge");
  2160. SetPlayerHealth(playerid, 100);
  2161. return 1;
  2162. }
  2163. else if(gTeam[playerid] == TEAM_ARMY && IsPlayerInRangeOfPoint(playerid , 4.0, 238.2102,107.8858,1003.2257))
  2164. {
  2165. SendClientMessage(playerid, COLOR_GREY, "MSG: You found a sandwitch and ate him");
  2166. SetPlayerHealth(playerid, 100);
  2167. return 1;
  2168. }
  2169. else if(gTeam[playerid] == TEAM_SICILIAN && IsPlayerInRangeOfPoint(playerid , 4.0, 935.6519,2137.0225,1011.0234))
  2170. {
  2171. SendClientMessage(playerid, COLOR_GREY, "MSG: You found some meat and ate her");
  2172. SetPlayerHealth(playerid, 100);
  2173. return 1;
  2174. }
  2175. else if(gTeam[playerid] == TEAM_COSANOSTRA && IsPlayerInRangeOfPoint(playerid , 4.0, 2202.5352,1617.8859,999.9766))
  2176. {
  2177. SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some sprunk from the bottle");
  2178. SetPlayerHealth(playerid, 100);
  2179. return 1;
  2180. }
  2181. else if(gTeam[playerid] == TEAM_TRIADS && IsPlayerInRangeOfPoint(playerid , 4.0, 754.3125,-26.5753,1000.5917))
  2182. {
  2183. SendClientMessage(playerid, COLOR_GREY, "MSG: You found a sandwitch in the locker room and ate him");
  2184. SetPlayerHealth(playerid, 100);
  2185. return 1;
  2186. }
  2187. else if(gTeam[playerid] == TEAM_EME && IsPlayerInRangeOfPoint(playerid , 4.0, -2160.2871,640.0001,1057.5861))
  2188. {
  2189. SendClientMessage(playerid, COLOR_GREY, "MSG: You cooked some food and then ate her");
  2190. SetPlayerHealth(playerid, 100);
  2191. return 1;
  2192. }
  2193. else
  2194. {
  2195. SendClientMessage(playerid, COLOR_GREY, "You are not at the eating place!");
  2196. }
  2197. return 1;
  2198. }
  2199. if(strcmp("/killme", cmd, true) == 0)
  2200. {
  2201. SetPlayerHealth(playerid, 1);
  2202. ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
  2203. SetTimerEx("Die", 5000, false, "c", playerid, "SA-MP");
  2204. SendClientMessage(playerid, COLOR_YELLOW, "God kicked you with his leg,you almost died!");
  2205. return 1;
  2206. }
  2207. if(strcmp("/commands", cmd, true) == 0)
  2208. {
  2209. SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
  2210. SendClientMessage(playerid, COLOR_YELLOW, "Players: /anims /pm /killme /dropweapon /deposit /rules /help /stats");
  2211. SendClientMessage(playerid, COLOR_YELLOW, "Players: /admins /robstore /buyskin /buygun");
  2212. SendClientMessage(playerid, COLOR_YELLOW, "Players: /grovehelp /ballashelp /vagoshelp /aztecashelp /lspdhelp");
  2213. SendClientMessage(playerid, COLOR_YELLOW, "Players: /bikershelp /armyhelp /sicilianhelp /cosahelp /triadshelp /emehelp");
  2214. SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
  2215. return 1;
  2216. }
  2217.  
  2218. if(strcmp("/ahelp", cmd, true) == 0)
  2219. {
  2220. SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
  2221. SendClientMessage(playerid, COLOR_YELLOW, "Helper(lvl 1): /kick /akill /m /slap /ahelp /check /gotols /gotosf /gotolv /gotodair /gotochilliad ![message]-in chat for admin chat ");
  2222. SendClientMessage(playerid, COLOR_YELLOW, "Admin(lvl 2): /freeze /unfreeze /ban /mute /unmute /mslap /disarm /spawnp");
  2223. SendClientMessage(playerid, COLOR_YELLOW, "SuperAdmin(lvl 3): /goto /get /veh /ss /shp /sar /gpm /ajail");
  2224. SendClientMessage(playerid, COLOR_YELLOW, "Moderator(lvl 4): /fucku /godon /godoff /xplode /spm ");
  2225. SendClientMessage(playerid, COLOR_YELLOW, "Owner(lvl 5): /mad(don't work)(To make a player admin go to scriptfiles/Users and modify AdminLevel)");
  2226. SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
  2227. return 1;
  2228. }
  2229. if(strcmp("/rules", cmd, true) == 0)
  2230. {
  2231. SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
  2232. SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server ");
  2233. SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
  2234. SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
  2235. SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server ");
  2236. SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
  2237. SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
  2238. return 1;
  2239. }
  2240. if(strcmp("/grovehelp", cmd, true) == 0)
  2241. {
  2242. if(gTeam[playerid] == TEAM_GROVE)
  2243. {
  2244. SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________________________________________________");
  2245. SendClientMessage(playerid, COLOR_GREEN, "***GROVE 4 LIFE***");
  2246. SendClientMessage(playerid, COLOR_GREEN, "****Team Chat:#[message] ");
  2247. SendClientMessage(playerid, COLOR_GREEN, "****Grove Equip:/streetthug /streetsoldier /udgrove");
  2248. SendClientMessage(playerid, COLOR_GREEN, "****Grove Commands:/deposit");
  2249. SendClientMessage(playerid, COLOR_GREEN, "Undercover Kid - Knife and a undercover skin");
  2250. SendClientMessage(playerid, COLOR_GREEN, "Street Thug - Basball Bat, Deagle---Street Soldier:Pool Cue,Deagle");
  2251. SendClientMessage(playerid, COLOR_GREEN, "________________________________________________________________________________________________________");
  2252. }
  2253. else
  2254. {
  2255. SendClientMessage(playerid, COLOR_GREY, "You are not a Grove Member");
  2256. }
  2257. return 1;
  2258. }
  2259. if(strcmp("/streetthug", cmd, true) == 0)
  2260. {
  2261. if(gTeam[playerid] == TEAM_GROVE)
  2262. {
  2263. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
  2264. {
  2265. ResetPlayerWeapons(playerid);
  2266. GivePlayerWeapon(playerid, 5, 1);
  2267. GivePlayerWeapon(playerid, 24, 100);
  2268. SetPlayerColor(playerid, COLOR_GREEN);
  2269. SendClientMessage(playerid, COLOR_GREEN, "You are now a Street Thug");
  2270. SetPlayerSkin(playerid, 107);
  2271. }
  2272. else
  2273. {
  2274. SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
  2275. }
  2276. }
  2277. return 1;
  2278. }
  2279. if(strcmp("/streetsoldier", cmd, true) == 0)
  2280. {
  2281. if(gTeam[playerid] == TEAM_GROVE)
  2282. {
  2283. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
  2284. {
  2285. ResetPlayerWeapons(playerid);
  2286. GivePlayerWeapon(playerid, 7, 1);
  2287. GivePlayerWeapon(playerid, 24, 100);
  2288. SetPlayerColor(playerid, COLOR_GREEN);
  2289. SendClientMessage(playerid, COLOR_GREEN, "You are now a Street Soldier");
  2290. SetPlayerSkin(playerid, 106);
  2291. }
  2292. else
  2293. {
  2294. SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
  2295. }
  2296. }
  2297. return 1;
  2298. }
  2299. if(strcmp("/udgrove", cmd, true) == 0)
  2300. {
  2301. if(gTeam[playerid] == TEAM_GROVE)
  2302. {
  2303. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
  2304. {
  2305. ResetPlayerWeapons(playerid);
  2306. GivePlayerWeapon(playerid, 4, 1);
  2307. SetPlayerSkin(playerid, 159);
  2308. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2309. SendClientMessage(playerid, COLOR_GREEN, "You are now a Undercover Kid");
  2310. }
  2311. else
  2312. {
  2313. SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
  2314. }
  2315. }
  2316. return 1;
  2317. }
  2318. if(strcmp("/ballashelp", cmd, true) == 0)
  2319. {
  2320. if(gTeam[playerid] == TEAM_BALLAS)
  2321. {
  2322. SendClientMessage(playerid, COLOR_PURPLE, "_______________________________________________________________________________________________________");
  2323. SendClientMessage(playerid, COLOR_PURPLE, "***East Side Hoods***");
  2324. SendClientMessage(playerid, COLOR_PURPLE, "****Team Chat:#[message] ");
  2325. SendClientMessage(playerid, COLOR_PURPLE, "****Ballas Equip:/turfwalker /frontyardballa /udballas");
  2326. SendClientMessage(playerid, COLOR_PURPLE, "****Ballas Commands:/deposit");
  2327. SendClientMessage(playerid, COLOR_PURPLE, "Turf Walker - Brass Knuckle ,Deagle");
  2328. SendClientMessage(playerid, COLOR_PURPLE, "Frond Yard Balla - Basball Bat, Deagle---Undercover Kid: Knife and a undercover skin");
  2329. SendClientMessage(playerid, COLOR_PURPLE, "________________________________________________________________________________________________________");
  2330. }
  2331. else
  2332. {
  2333. SendClientMessage(playerid, COLOR_GREY, "You are not a ballas member");
  2334. }
  2335. return 1;
  2336. }
  2337. if(strcmp("/turfwalker", cmd, true) == 0)
  2338. {
  2339. if(gTeam[playerid] == TEAM_BALLAS)
  2340. {
  2341. if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
  2342. {
  2343. ResetPlayerWeapons(playerid);
  2344. GivePlayerWeapon(playerid, 1, 1);
  2345. GivePlayerWeapon(playerid, 24, 100);
  2346. SetPlayerColor(playerid, COLOR_PURPLE);
  2347. SendClientMessage(playerid, COLOR_PURPLE, "You are now a Turf walker");
  2348. SetPlayerSkin(playerid, 102);
  2349. }
  2350. else
  2351. {
  2352. SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
  2353. }
  2354. }
  2355. return 1;
  2356. }
  2357. if(strcmp("/frontyardballa", cmd, true) == 0)
  2358. {
  2359. if(gTeam[playerid] == TEAM_BALLAS)
  2360. {
  2361. if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
  2362. {
  2363. ResetPlayerWeapons(playerid);
  2364. GivePlayerWeapon(playerid, 5, 1);
  2365. GivePlayerWeapon(playerid, 24, 100);
  2366. SetPlayerColor(playerid, COLOR_PURPLE);
  2367. SendClientMessage(playerid, COLOR_PURPLE, "You are now a Front Yard Ballas");
  2368. SetPlayerSkin(playerid, 104);
  2369. }
  2370. else
  2371. {
  2372. SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
  2373. }
  2374. }
  2375. return 1;
  2376. }
  2377. if(strcmp("/udballas", cmd, true) == 0)
  2378. {
  2379. if(gTeam[playerid] == TEAM_BALLAS)
  2380. {
  2381. if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
  2382. {
  2383. ResetPlayerWeapons(playerid);
  2384. GivePlayerWeapon(playerid, 4, 1);
  2385. SetPlayerSkin(playerid, 160);
  2386. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2387. SendClientMessage(playerid, COLOR_PURPLE, "You are now a Undercover Kid");
  2388. }
  2389. else
  2390. {
  2391. SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
  2392. }
  2393. }
  2394. return 1;
  2395. }
  2396. if(strcmp("/vagoshelp", cmd, true) == 0)
  2397. {
  2398. if(gTeam[playerid] == TEAM_VAGOS)
  2399. {
  2400. SendClientMessage(playerid, COLOR_ORANGE, "_______________________________________________________________________________________________________");
  2401. SendClientMessage(playerid, COLOR_ORANGE, "***Los Santos Vagos***");
  2402. SendClientMessage(playerid, COLOR_ORANGE, "****Team Chat:#[message] ");
  2403. SendClientMessage(playerid, COLOR_ORANGE, "****Vagos Equip:/kidnapper /killer /udvagos");
  2404. SendClientMessage(playerid, COLOR_ORANGE, "****Vagos Commands:/deposit");
  2405. SendClientMessage(playerid, COLOR_ORANGE, "Kidnapper - Baseball Bat ,Deagle");
  2406. SendClientMessage(playerid, COLOR_ORANGE, "Street Killer - Shovel, Deagle---Undercover Kid: Knife and a undercover skin");
  2407. SendClientMessage(playerid, COLOR_ORANGE, "________________________________________________________________________________________________________");
  2408. }
  2409. else
  2410. {
  2411. SendClientMessage(playerid, COLOR_GREY, "You are not a vagos member");
  2412. }
  2413. return 1;
  2414. }
  2415. if(strcmp("/kidnapper", cmd, true) == 0)
  2416. {
  2417. if(gTeam[playerid] == TEAM_VAGOS)
  2418. {
  2419. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
  2420. {
  2421. ResetPlayerWeapons(playerid);
  2422. GivePlayerWeapon(playerid, 5, 1);
  2423. GivePlayerWeapon(playerid, 24, 100);
  2424. SetPlayerColor(playerid, COLOR_YELLOW
  2425. );
  2426. SendClientMessage(playerid, COLOR_ORANGE, "You are now a Kidnapper");
  2427. SetPlayerSkin(playerid, 110);
  2428. }
  2429. else
  2430. {
  2431. SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
  2432. }
  2433. }
  2434. return 1;
  2435. }
  2436. if(strcmp("/streetkiller", cmd, true) == 0)
  2437. {
  2438. if(gTeam[playerid] == TEAM_VAGOS)
  2439. {
  2440. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
  2441. {
  2442. ResetPlayerWeapons(playerid);
  2443. GivePlayerWeapon(playerid, 6, 1);
  2444. GivePlayerWeapon(playerid, 24, 100);
  2445. SetPlayerColor(playerid, COLOR_YELLOW);
  2446. SendClientMessage(playerid, COLOR_ORANGE, "You are now a Street Killer");
  2447. SetPlayerSkin(playerid, 108);
  2448. }
  2449. else
  2450. {
  2451. SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
  2452. }
  2453. }
  2454. return 1;
  2455. }
  2456. if(strcmp("/udvagos", cmd, true) == 0)
  2457. {
  2458. if(gTeam[playerid] == TEAM_VAGOS)
  2459. {
  2460. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
  2461. {
  2462. ResetPlayerWeapons(playerid);
  2463. GivePlayerWeapon(playerid, 4, 1);
  2464. SetPlayerSkin(playerid, 158);
  2465. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2466. SendClientMessage(playerid, COLOR_ORANGE, "You are now a Undercover Kid");
  2467. }
  2468. else
  2469. {
  2470. SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
  2471. }
  2472. }
  2473. return 1;
  2474. }
  2475. if(strcmp("/aztecashelp", cmd, true) == 0)
  2476. {
  2477. if(gTeam[playerid] == TEAM_AZTECAS)
  2478. {
  2479. SendClientMessage(playerid, COLOR_BLUE, "_______________________________________________________________________________________________________");
  2480. SendClientMessage(playerid, COLOR_BLUE, "***Los Aztecas***");
  2481. SendClientMessage(playerid, COLOR_BLUE, "****Team Chat:#[message] ");
  2482. SendClientMessage(playerid, COLOR_BLUE, "****Aztecas Equip:/observer /thief /udaztecas");
  2483. SendClientMessage(playerid, COLOR_BLUE, "****Aztecas Commands:/deposit");
  2484. SendClientMessage(playerid, COLOR_BLUE, "Observer - Brass Knuckles,Deagle");
  2485. SendClientMessage(playerid, COLOR_BLUE, "Thief - Pool Cue,Deaglr---Undercover Kid: Knife and a undercover skin");
  2486. SendClientMessage(playerid, COLOR_BLUE, "________________________________________________________________________________________________________");
  2487. }
  2488. else
  2489. {
  2490. SendClientMessage(playerid, COLOR_GREY, "You are not a aztecas member");
  2491. }
  2492. return 1;
  2493. }
  2494. if(strcmp("/observer", cmd, true) == 0)
  2495. {
  2496. if(gTeam[playerid] == TEAM_AZTECAS)
  2497. {
  2498. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
  2499. {
  2500. ResetPlayerWeapons(playerid);
  2501. GivePlayerWeapon(playerid, 1, 1);
  2502. GivePlayerWeapon(playerid, 24, 100);
  2503. SetPlayerColor(playerid, COLOR_BLUE);
  2504. SendClientMessage(playerid, COLOR_BLUE, "You are now a Observer");
  2505. SetPlayerSkin(playerid, 114);
  2506. }
  2507. else
  2508. {
  2509. SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
  2510. }
  2511. }
  2512. return 1;
  2513. }
  2514. if(strcmp("/thief", cmd, true) == 0)
  2515. {
  2516. if(gTeam[playerid] == TEAM_AZTECAS)
  2517. {
  2518. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
  2519. {
  2520. ResetPlayerWeapons(playerid);
  2521. GivePlayerWeapon(playerid, 7, 1);
  2522. GivePlayerWeapon(playerid, 24, 100);
  2523. SetPlayerColor(playerid, COLOR_BLUE);
  2524. SendClientMessage(playerid, COLOR_BLUE, "You are now a Thief");
  2525. SetPlayerSkin(playerid, 115);
  2526. }
  2527. else
  2528. {
  2529. SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
  2530. }
  2531. }
  2532. return 1;
  2533. }
  2534. if(strcmp("/udaztecas", cmd, true) == 0)
  2535. {
  2536. if(gTeam[playerid] == TEAM_AZTECAS)
  2537. {
  2538. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
  2539. {
  2540. ResetPlayerWeapons(playerid);
  2541. GivePlayerWeapon(playerid, 4, 1);
  2542. SetPlayerSkin(playerid, 161);
  2543. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2544. SendClientMessage(playerid, COLOR_BLUE, "You are now a Undercover Kid");
  2545. }
  2546. else
  2547. {
  2548. SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
  2549. }
  2550. }
  2551. return 1;
  2552. }
  2553. if(strcmp("/lspdhelp", cmd, true) == 0)
  2554. {
  2555. if(gTeam[playerid] == TEAM_LSPD)
  2556. {
  2557. SendClientMessage(playerid, COLOR_SAND, "_______________________________________________________________________________________________________");
  2558. SendClientMessage(playerid, COLOR_SAND, "***Los Santos Police Departament***");
  2559. SendClientMessage(playerid, COLOR_SAND, "****Team Chat:#[message] ");
  2560. SendClientMessage(playerid, COLOR_SAND, "****Police Equip:/motorcop /patruler /lieutenant /swat /fbi");
  2561. SendClientMessage(playerid, COLOR_SAND, "****Police Commands:/deposit /ar /tk");
  2562. SendClientMessage(playerid, COLOR_SAND, "Motor Cop - Nite Stick , Deagle");
  2563. SendClientMessage(playerid, COLOR_SAND, "Patruler - Nite Stick, Spray, Deagle---Lieutenant: Nite Stick,Spray,Deagle,Shotgun");
  2564. SendClientMessage(playerid, COLOR_SAND, "SWAT - Nite Stick,Spray,Deagle,Shotgun,MP5,M4");
  2565. SendClientMessage(playerid, COLOR_SAND, "FBI - Knife,Spray,Sniper,");
  2566. SendClientMessage(playerid, COLOR_SAND, "________________________________________________________________________________________________________");
  2567. }
  2568. else
  2569. {
  2570. SendClientMessage(playerid, COLOR_GREY, "You are not a police member");
  2571. }
  2572. return 1;
  2573. }
  2574. if(strcmp("/motorcop", cmd, true) == 0)
  2575. {
  2576. if(gTeam[playerid] == TEAM_LSPD)
  2577. {
  2578. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
  2579. {
  2580. ResetPlayerWeapons(playerid);
  2581. GivePlayerWeapon(playerid, 3, 1);
  2582. GivePlayerWeapon(playerid, 24, 200);
  2583. SetPlayerColor(playerid, COLOR_SAND);
  2584. SendClientMessage(playerid, COLOR_SAND, "You are now a Motor Cop");
  2585. SetPlayerSkin(playerid, 284);
  2586. }
  2587. else
  2588. {
  2589. SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
  2590. }
  2591. }
  2592. return 1;
  2593. }
  2594. if(strcmp("/patruler", cmd, true) == 0)
  2595. {
  2596. if(gTeam[playerid] == TEAM_LSPD)
  2597. {
  2598. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
  2599. {
  2600. ResetPlayerWeapons(playerid);
  2601. GivePlayerWeapon(playerid, 3, 1);
  2602. GivePlayerWeapon(playerid, 24, 100);
  2603. GivePlayerWeapon(playerid, 41, 700);
  2604. SetPlayerColor(playerid, COLOR_SAND);
  2605. SendClientMessage(playerid, COLOR_SAND, "You are now a Patruler");
  2606. SetPlayerSkin(playerid, 280);
  2607. }
  2608. else
  2609. {
  2610. SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
  2611. }
  2612. }
  2613. return 1;
  2614. }
  2615. if(strcmp("/lieutenant", cmd, true) == 0)
  2616. {
  2617. if(gTeam[playerid] == TEAM_LSPD)
  2618. {
  2619. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
  2620. {
  2621. ResetPlayerWeapons(playerid);
  2622. GivePlayerWeapon(playerid, 3, 1);
  2623. GivePlayerWeapon(playerid, 24, 100);
  2624. GivePlayerWeapon(playerid, 25, 200);
  2625. GivePlayerWeapon(playerid, 41, 700);
  2626. SetPlayerColor(playerid, COLOR_SAND);
  2627. SendClientMessage(playerid, COLOR_SAND, "You are now a Lieutenant");
  2628. SetPlayerSkin(playerid, 283);
  2629. }
  2630. else
  2631. {
  2632. SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
  2633. }
  2634. }
  2635. return 1;
  2636. }
  2637. if(strcmp("/swat", cmd, true) == 0)
  2638. {
  2639. if(gTeam[playerid] == TEAM_LSPD)
  2640. {
  2641. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
  2642. {
  2643. ResetPlayerWeapons(playerid);
  2644. GivePlayerWeapon(playerid, 3, 1);
  2645. GivePlayerWeapon(playerid, 29, 250);
  2646. GivePlayerWeapon(playerid, 31, 700);
  2647. GivePlayerWeapon(playerid, 24, 100);
  2648. GivePlayerWeapon(playerid, 41, 700);
  2649. SetPlayerColor(playerid, COLOR_SAND);
  2650. SendClientMessage(playerid, COLOR_SAND, "You are now a SWAT");
  2651. SetPlayerSkin(playerid, 285);
  2652. }
  2653. else
  2654. {
  2655. SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
  2656. }
  2657. }
  2658. return 1;
  2659. }
  2660. if(strcmp("/fbi", cmd, true) == 0)
  2661. {
  2662. if(gTeam[playerid] == TEAM_LSPD)
  2663. {
  2664. if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
  2665. {
  2666. ResetPlayerWeapons(playerid);
  2667. GivePlayerWeapon(playerid, 4, 1);
  2668. GivePlayerWeapon(playerid, 34, 100);
  2669. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2670. SendClientMessage(playerid, COLOR_SAND, "You are now a FBI(Undercover)");
  2671. SetPlayerSkin(playerid, 286);
  2672. }
  2673. else
  2674. {
  2675. SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
  2676. }
  2677. }
  2678. return 1;
  2679. }
  2680. if(strcmp("/bikershelp", cmd, true) == 0)
  2681. {
  2682. if(gTeam[playerid] == TEAM_BIKERS)
  2683. {
  2684. SendClientMessage(playerid, COLOR_RED, "_______________________________________________________________________________________________________");
  2685. SendClientMessage(playerid, COLOR_RED, "***BIKERS***");
  2686. SendClientMessage(playerid, COLOR_RED, "****Team Chat:#[message] ");
  2687. SendClientMessage(playerid, COLOR_RED, "****BIKERS Equip:/tiny /punk /udbikers");
  2688. SendClientMessage(playerid, COLOR_RED, "****BIKERS Commands:/deposit");
  2689. SendClientMessage(playerid, COLOR_RED, "Tiny - Baseball Bat,Deagle");
  2690. SendClientMessage(playerid, COLOR_RED, "Punk - Pool Cue,Deagle---Undercover Kid: Knife and a undercover skin");
  2691. SendClientMessage(playerid, COLOR_RED, "________________________________________________________________________________________________________");
  2692. }
  2693. else
  2694. {
  2695. SendClientMessage(playerid, COLOR_GREY, "You are not a bikers member");
  2696. }
  2697. return 1;
  2698. }
  2699. if(strcmp("/tiny", cmd, true) == 0)
  2700. {
  2701. if(gTeam[playerid] == TEAM_BIKERS)
  2702. {
  2703. if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
  2704. {
  2705. ResetPlayerWeapons(playerid);
  2706. GivePlayerWeapon(playerid, 5, 1);
  2707. GivePlayerWeapon(playerid, 24, 100);
  2708. SetPlayerColor(playerid, COLOR_RED);
  2709. SendClientMessage(playerid, COLOR_RED, "You are now a Tiny");
  2710. SetPlayerSkin(playerid, 181);
  2711. }
  2712. else
  2713. {
  2714. SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
  2715. }
  2716. }
  2717. return 1;
  2718. }
  2719. if(strcmp("/punk", cmd, true) == 0)
  2720. {
  2721. if(gTeam[playerid] == TEAM_BIKERS)
  2722. {
  2723. if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
  2724. {
  2725. ResetPlayerWeapons(playerid);
  2726. GivePlayerWeapon(playerid, 5, 1);
  2727. GivePlayerWeapon(playerid, 24, 100);
  2728. SetPlayerColor(playerid, COLOR_RED);
  2729. SendClientMessage(playerid, COLOR_RED, "You are now a Punk");
  2730. SetPlayerSkin(playerid, 100);
  2731. }
  2732. else
  2733. {
  2734. SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
  2735. }
  2736. }
  2737. return 1;
  2738. }
  2739. if(strcmp("/udbikers", cmd, true) == 0)
  2740. {
  2741. if(gTeam[playerid] == TEAM_BIKERS)
  2742. {
  2743. if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
  2744. {
  2745. ResetPlayerWeapons(playerid);
  2746. GivePlayerWeapon(playerid, 4, 1);
  2747. SetPlayerSkin(playerid, 200);
  2748. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2749. SendClientMessage(playerid, COLOR_RED, "You are now a Undercover Kid");
  2750. }
  2751. else
  2752. {
  2753. SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
  2754. }
  2755. }
  2756. return 1;
  2757. }
  2758. if(strcmp("/armyhelp", cmd, true) == 0)
  2759. {
  2760. if(gTeam[playerid] == TEAM_ARMY)
  2761. {
  2762. SendClientMessage(playerid, COLOR_GREY, "_______________________________________________________________________________________________________");
  2763. SendClientMessage(playerid, COLOR_GREY, "***The Army***");
  2764. SendClientMessage(playerid, COLOR_GREY, "****Team Chat:#[message] ");
  2765. SendClientMessage(playerid, COLOR_GREY, "****Army Equip:/sergeant /general /udarmy");
  2766. SendClientMessage(playerid, COLOR_GREY, "****Army Commands:/deposit");
  2767. SendClientMessage(playerid, COLOR_GREY, "Sergeant - Baseball Bat,Deagle");
  2768. SendClientMessage(playerid, COLOR_GREY, "General - Brass knuckle,Deagle---Undercover Soldier: Knife and a undercover skin");
  2769. SendClientMessage(playerid, COLOR_GREY, "________________________________________________________________________________________________________");
  2770. }
  2771. else
  2772. {
  2773. SendClientMessage(playerid, COLOR_GREY, "You are not a aztecas member");
  2774. }
  2775. return 1;
  2776. }
  2777. if(strcmp("/sergeant", cmd, true) == 0)
  2778. {
  2779. if(gTeam[playerid] == TEAM_ARMY)
  2780. {
  2781. if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
  2782. {
  2783. ResetPlayerWeapons(playerid);
  2784. GivePlayerWeapon(playerid, 5, 1);
  2785. GivePlayerWeapon(playerid, 24, 100);
  2786. SetPlayerColor(playerid, COLOR_GREY);
  2787. SendClientMessage(playerid, COLOR_GREY, "You are now a Sergeant");
  2788. SetPlayerSkin(playerid, 179);
  2789. }
  2790. else
  2791. {
  2792. SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
  2793. }
  2794. }
  2795. return 1;
  2796. }
  2797. if(strcmp("/general", cmd, true) == 0)
  2798. {
  2799. if(gTeam[playerid] == TEAM_ARMY)
  2800. {
  2801. if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
  2802. {
  2803. ResetPlayerWeapons(playerid);
  2804. GivePlayerWeapon(playerid, 1, 1);
  2805. GivePlayerWeapon(playerid, 24, 100);
  2806. SetPlayerColor(playerid, COLOR_GREY);
  2807. SendClientMessage(playerid, COLOR_GREY, "You are now a General");
  2808. SetPlayerSkin(playerid, 287);
  2809. }
  2810. else
  2811. {
  2812. SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
  2813. }
  2814. }
  2815. return 1;
  2816. }
  2817. if(strcmp("/udarmy", cmd, true) == 0)
  2818. {
  2819. if(gTeam[playerid] == TEAM_ARMY)
  2820. {
  2821. if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
  2822. {
  2823. ResetPlayerWeapons(playerid);
  2824. GivePlayerWeapon(playerid, 4, 1);
  2825. SetPlayerSkin(playerid, 213);
  2826. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2827. SendClientMessage(playerid, COLOR_GREY, "You are now a Undercover Soldire");
  2828. }
  2829. else
  2830. {
  2831. SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
  2832. }
  2833. }
  2834. return 1;
  2835. }
  2836. if(strcmp("/sicilianhelp", cmd, true) == 0)
  2837. {
  2838. if(gTeam[playerid] == TEAM_SICILIAN)
  2839. {
  2840. SendClientMessage(playerid, COLOR_WHITE, "_______________________________________________________________________________________________________");
  2841. SendClientMessage(playerid, COLOR_WHITE, "***The Sicilian Mafia***");
  2842. SendClientMessage(playerid, COLOR_WHITE, "****Team Chat:#[message] ");
  2843. SendClientMessage(playerid, COLOR_WHITE, "****Sicilian Equip:/piccioto /capodituticapi /udsicilian");
  2844. SendClientMessage(playerid, COLOR_WHITE, "****Sicilian Commands:/deposit");
  2845. SendClientMessage(playerid, COLOR_WHITE, "Piccioto - Baseball Bat,Deagle");
  2846. SendClientMessage(playerid, COLOR_WHITE, "Thief - Baseball Bat,Deagle---Undercover Associato: Knife and a undercover skin");
  2847. SendClientMessage(playerid, COLOR_WHITE, "________________________________________________________________________________________________________");
  2848. }
  2849. else
  2850. {
  2851. SendClientMessage(playerid, COLOR_GREY, "You are not a sicilian member");
  2852. }
  2853. return 1;
  2854. }
  2855. if(strcmp("/piccioto", cmd, true) == 0)
  2856. {
  2857. if(gTeam[playerid] == TEAM_SICILIAN)
  2858. {
  2859. if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
  2860. {
  2861. ResetPlayerWeapons(playerid);
  2862. GivePlayerWeapon(playerid, 5, 1);
  2863. GivePlayerWeapon(playerid, 24, 100);
  2864. SetPlayerColor(playerid, COLOR_WHITE);
  2865. SendClientMessage(playerid, COLOR_WHITE, "You are now a Piccioto");
  2866. SetPlayerSkin(playerid, 124);
  2867. }
  2868. else
  2869. {
  2870. SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
  2871. }
  2872. }
  2873. return 1;
  2874. }
  2875. if(strcmp("/capodituticapi", cmd, true) == 0)
  2876. {
  2877. if(gTeam[playerid] == TEAM_SICILIAN)
  2878. {
  2879. if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
  2880. {
  2881. ResetPlayerWeapons(playerid);
  2882. GivePlayerWeapon(playerid, 5, 1);
  2883. GivePlayerWeapon(playerid, 24, 100);
  2884. SetPlayerColor(playerid, COLOR_WHITE);
  2885. SendClientMessage(playerid, COLOR_WHITE, "You are now a Capo di tuti Capi");
  2886. SetPlayerSkin(playerid, 125);
  2887. }
  2888. else
  2889. {
  2890. SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
  2891. }
  2892. }
  2893. return 1;
  2894. }
  2895. if(strcmp("/udsicilian", cmd, true) == 0)
  2896. {
  2897. if(gTeam[playerid] == TEAM_SICILIAN)
  2898. {
  2899. if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
  2900. {
  2901. ResetPlayerWeapons(playerid);
  2902. GivePlayerWeapon(playerid, 4, 1);
  2903. SetPlayerSkin(playerid, 217);
  2904. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2905. SendClientMessage(playerid, COLOR_WHITE, "You are now a Undercover Associato");
  2906. }
  2907. else
  2908. {
  2909. SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
  2910. }
  2911. }
  2912. return 1;
  2913. }
  2914. if(strcmp("/cosahelp", cmd, true) == 0)
  2915. {
  2916. if(gTeam[playerid] == TEAM_COSANOSTRA)
  2917. {
  2918. SendClientMessage(playerid, COLOR_OKER, "_______________________________________________________________________________________________________");
  2919. SendClientMessage(playerid, COLOR_OKER, "***La Cosa Nostra***");
  2920. SendClientMessage(playerid, COLOR_OKER, "****Team Chat:#[message] ");
  2921. SendClientMessage(playerid, COLOR_OKER, "****Cosa Nostra Equip:/soldire /caporegime /udcosanostra");
  2922. SendClientMessage(playerid, COLOR_OKER, "****Cosa Nostra Commands:/deposit");
  2923. SendClientMessage(playerid, COLOR_OKER, "Soldire - Baseball Bat,Deagle");
  2924. SendClientMessage(playerid, COLOR_OKER, "Caporegime - Brass Knuckle,Deagle---Undercover Soldire: Knife and a undercover skin");
  2925. SendClientMessage(playerid, COLOR_OKER, "________________________________________________________________________________________________________");
  2926. }
  2927. else
  2928. {
  2929. SendClientMessage(playerid, COLOR_GREY, "You are not a cosa nostra member");
  2930. }
  2931. return 1;
  2932. }
  2933. if(strcmp("/soldire", cmd, true) == 0)
  2934. {
  2935. if(gTeam[playerid] == TEAM_COSANOSTRA)
  2936. {
  2937. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
  2938. {
  2939. ResetPlayerWeapons(playerid);
  2940. GivePlayerWeapon(playerid, 5, 1);
  2941. GivePlayerWeapon(playerid, 24, 100);
  2942. SetPlayerColor(playerid, COLOR_OKER);
  2943. SendClientMessage(playerid, COLOR_OKER, "You are now a Soldire");
  2944. SetPlayerSkin(playerid, 126);
  2945. }
  2946. else
  2947. {
  2948. SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra deposit or you are not a Cosa Nostra Member");
  2949. }
  2950. }
  2951. return 1;
  2952. }
  2953. if(strcmp("/caporegime", cmd, true) == 0)
  2954. {
  2955. if(gTeam[playerid] == TEAM_COSANOSTRA)
  2956. {
  2957. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
  2958. {
  2959. ResetPlayerWeapons(playerid);
  2960. GivePlayerWeapon(playerid, 1, 1);
  2961. GivePlayerWeapon(playerid, 24, 100);
  2962. SetPlayerColor(playerid, COLOR_OKER);
  2963. SendClientMessage(playerid, COLOR_OKER, "You are now a Caporegime");
  2964. SetPlayerSkin(playerid, 127);
  2965. }
  2966. else
  2967. {
  2968. SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra Deposit or you are not a Cosa Nostra Member");
  2969. }
  2970. }
  2971. return 1;
  2972. }
  2973. if(strcmp("/udcosa", cmd, true) == 0)
  2974. {
  2975. if(gTeam[playerid] == TEAM_COSANOSTRA)
  2976. {
  2977. if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
  2978. {
  2979. ResetPlayerWeapons(playerid);
  2980. GivePlayerWeapon(playerid, 4, 1);
  2981. SetPlayerSkin(playerid, 230);
  2982. SetPlayerColor(playerid, COLOR_INVISIBLE);
  2983. SendClientMessage(playerid, COLOR_OKER, "You are now a Undercover Soldire");
  2984. }
  2985. else
  2986. {
  2987. SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra Deposit or you are not a Cosa Nostra Member");
  2988. }
  2989. }
  2990. return 1;
  2991. }
  2992. if(strcmp("/triadshelp", cmd, true) == 0)
  2993. {
  2994. if(gTeam[playerid] == TEAM_TRIADS)
  2995. {
  2996. SendClientMessage(playerid, COLOR_BLUELIGHT, "_______________________________________________________________________________________________________");
  2997. SendClientMessage(playerid, COLOR_BLUELIGHT, "***The Triads of China***");
  2998. SendClientMessage(playerid, COLOR_BLUELIGHT, "****Team Chat:#[message] ");
  2999. SendClientMessage(playerid, COLOR_BLUELIGHT, "****Triads Equip:/protector /capo /udtriads");
  3000. SendClientMessage(playerid, COLOR_BLUELIGHT, "****Triads Commands:/deposit");
  3001. SendClientMessage(playerid, COLOR_BLUELIGHT, "Protector - Katana,Deagle");
  3002. SendClientMessage(playerid, COLOR_BLUELIGHT, "Capo - Katana,Deagle---Undercover Choa: Knife and a undercover skin");
  3003. SendClientMessage(playerid, COLOR_BLUELIGHT, "________________________________________________________________________________________________________");
  3004. }
  3005. else
  3006. {
  3007. SendClientMessage(playerid, COLOR_GREY, "You are not a triads member");
  3008. }
  3009. return 1;
  3010. }
  3011. if(strcmp("/protector", cmd, true) == 0)
  3012. {
  3013. if(gTeam[playerid] == TEAM_TRIADS)
  3014. {
  3015. if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
  3016. {
  3017. ResetPlayerWeapons(playerid);
  3018. GivePlayerWeapon(playerid, 8, 1);
  3019. GivePlayerWeapon(playerid, 24, 100);
  3020. SetPlayerColor(playerid, COLOR_BLUELIGHT);
  3021. SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Chinese Protector");
  3022. SetPlayerSkin(playerid, 117);
  3023. }
  3024. else
  3025. {
  3026. SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
  3027. }
  3028. }
  3029. return 1;
  3030. }
  3031. if(strcmp("/capo", cmd, true) == 0)
  3032. {
  3033. if(gTeam[playerid] == TEAM_TRIADS)
  3034. {
  3035. if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
  3036. {
  3037. ResetPlayerWeapons(playerid);
  3038. GivePlayerWeapon(playerid, 8, 1);
  3039. GivePlayerWeapon(playerid, 24, 100);
  3040. SetPlayerColor(playerid, COLOR_BLUELIGHT);
  3041. SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Chinese Capo");
  3042. SetPlayerSkin(playerid, 120);
  3043. }
  3044. else
  3045. {
  3046. SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
  3047. }
  3048. }
  3049. return 1;
  3050. }
  3051. if(strcmp("/udtriads", cmd, true) == 0)
  3052. {
  3053. if(gTeam[playerid] == TEAM_TRIADS)
  3054. {
  3055. if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
  3056. {
  3057. ResetPlayerWeapons(playerid);
  3058. GivePlayerWeapon(playerid, 4, 1);
  3059. SetPlayerSkin(playerid, 234);
  3060. SetPlayerColor(playerid, COLOR_INVISIBLE);
  3061. SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Undercover Chao");
  3062. }
  3063. else
  3064. {
  3065. SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
  3066. }
  3067. }
  3068. return 1;
  3069. }
  3070. if(strcmp("/emehelp", cmd, true) == 0)
  3071. {
  3072. if(gTeam[playerid] == TEAM_EME)
  3073. {
  3074. SendClientMessage(playerid, COLOR_BROWN, "_______________________________________________________________________________________________________");
  3075. SendClientMessage(playerid, COLOR_BROWN, "***Mexican Mafia(La eMe)***");
  3076. SendClientMessage(playerid, COLOR_BROWN, "****Team Chat:#[message] ");
  3077. SendClientMessage(playerid, COLOR_BROWN, "****La eMe Equip:/padre /hermano /udeme");
  3078. SendClientMessage(playerid, COLOR_BROWN, "****La eMe Commands:/deposit");
  3079. SendClientMessage(playerid, COLOR_BROWN, "Padre - Baseball Bat,Deagle");
  3080. SendClientMessage(playerid, COLOR_BROWN, "Thief - Brass Knuckle,Deagle---Undercover Kid: Knife and a undercover skin");
  3081. SendClientMessage(playerid, COLOR_BROWN, "________________________________________________________________________________________________________");
  3082. }
  3083. else
  3084. {
  3085. SendClientMessage(playerid, COLOR_GREY, "You are not a eMe member");
  3086. }
  3087. return 1;
  3088. }
  3089. if(strcmp("/padre", cmd, true) == 0)
  3090. {
  3091. if(gTeam[playerid] == TEAM_EME)
  3092. {
  3093. if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
  3094. {
  3095. ResetPlayerWeapons(playerid);
  3096. GivePlayerWeapon(playerid, 5, 1);
  3097. GivePlayerWeapon(playerid, 24, 100);
  3098. SetPlayerColor(playerid, COLOR_BROWN);
  3099. SendClientMessage(playerid, COLOR_BROWN, "You are now a Padre");
  3100. SetPlayerSkin(playerid, 173);
  3101. }
  3102. else
  3103. {
  3104. SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
  3105. }
  3106. }
  3107. return 1;
  3108. }
  3109. if(strcmp("/hermano", cmd, true) == 0)
  3110. {
  3111. if(gTeam[playerid] == TEAM_EME)
  3112. {
  3113. if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
  3114. {
  3115. ResetPlayerWeapons(playerid);
  3116. GivePlayerWeapon(playerid, 1, 1);
  3117. GivePlayerWeapon(playerid, 24, 100);
  3118. SetPlayerColor(playerid, COLOR_BROWN);
  3119. SendClientMessage(playerid, COLOR_BROWN, "You are now a Hermano");
  3120. SetPlayerSkin(playerid, 174);
  3121. }
  3122. else
  3123. {
  3124. SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
  3125. }
  3126. }
  3127. return 1;
  3128. }
  3129. if(strcmp("/udeme", cmd, true) == 0)
  3130. {
  3131. if(gTeam[playerid] == TEAM_EME)
  3132. {
  3133. if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
  3134. {
  3135. ResetPlayerWeapons(playerid);
  3136. GivePlayerWeapon(playerid, 4, 1);
  3137. SetPlayerSkin(playerid, 236);
  3138. SetPlayerColor(playerid, COLOR_BROWN);
  3139. SendClientMessage(playerid, COLOR_BROWN, "You are now a Undercover Kid");
  3140. }
  3141. else
  3142. {
  3143. SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
  3144. }
  3145. }
  3146. return 1;
  3147. }
  3148. if(strcmp("/anims", cmd, true) == 0)
  3149. {
  3150. SendClientMessage(playerid, COLOR_BLACK, "<< =======================---Anims---===================== >>");
  3151. SendClientMessage(playerid, COLOR_YELLOW, "<< /lay /hup(handsup) /rob /taichi /sick /scared /chat /kiss /sit >>");
  3152. SendClientMessage(playerid, COLOR_YELLOW, "<< /fuck /crack /smoke /die /lol /drunk /pee /injured /slapass>>");
  3153. SendClientMessage(playerid, COLOR_YELLOW, "<< Anim System created by Hor1z0n >>");
  3154. SendClientMessage(playerid, COLOR_BLACK, "<< =======================B.E.G Wars v0.8======================== >>");
  3155. return 1;
  3156. }
  3157. if(strcmp("/lay", cmd, true) == 0)
  3158. {
  3159. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  3160. return 1;
  3161. }
  3162. if(strcmp("/hup", cmd, true) == 0)
  3163. {
  3164. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  3165. return 1;
  3166. }
  3167. if(strcmp("/injured", cmdtext, true) == 0)
  3168. {
  3169. ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  3170. return 1;
  3171. }
  3172. if (strcmp("/slapass", cmdtext, true) == 0)
  3173. {
  3174. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
  3175. return 1;
  3176. }
  3177. if(strcmp("/rob", cmd, true) == 0)
  3178. {
  3179. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  3180. return 1;
  3181. }
  3182. if(strcmp("/taichi", cmd, true) == 0)
  3183. {
  3184. ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  3185. return 1;
  3186. }
  3187. if(strcmp("/sick", cmd, true) == 0)
  3188. {
  3189. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  3190. return 1;
  3191. }
  3192. if(strcmp("/scared", cmd, true) == 0)
  3193. {
  3194. ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  3195. return 1;
  3196. }
  3197. if(strcmp("/chat", cmd, true) == 0)
  3198. {
  3199. ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
  3200. return 1;
  3201. }
  3202. if(strcmp("/kiss", cmd, true) == 0)
  3203. {
  3204. ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
  3205. return 1;
  3206. }
  3207. if(strcmp("/sit", cmd, true) == 0)
  3208. {
  3209. ApplyAnimation(playerid,"INT_OFFICE", "OFF_Sit_Bored_Loop", 1.800001, 1, 0, 0, 1, 600);
  3210. return 1;
  3211. }
  3212. if(strcmp("/fuck", cmd, true) == 0)
  3213. {
  3214. ApplyAnimation(playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
  3215. return 1;
  3216. }
  3217. if(strcmp("/crack", cmd, true) == 0)
  3218. {
  3219. ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
  3220. return 1;
  3221. }
  3222. if(strcmp("/smoke", cmd, true) == 0)
  3223. {
  3224. ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  3225. return 1;
  3226. }
  3227. if(strcmp("/die", cmd, true) == 0)
  3228. {
  3229. ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
  3230. return 1;
  3231. }
  3232. if(strcmp("/lol", cmd, true) == 0)
  3233. {
  3234. ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
  3235. return 1;
  3236. }
  3237. if(strcmp("/drunk", cmd, true) == 0)
  3238. {
  3239. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
  3240. return 1;
  3241. }
  3242. if(strcmp("/pee", cmd, true) == 0)
  3243. {
  3244. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
  3245. return 1;
  3246. }
  3247.  
  3248. if(strcmp("/help", cmd, true) == 0)
  3249. {
  3250. SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
  3251. SendClientMessage(playerid, COLOR_YELLOW, "<< For a complet list of commands tipe /commands >>");
  3252. SendClientMessage(playerid, COLOR_YELLOW, "<< Don't use cheats and don't bug abuse or you'll be banned >>");
  3253. SendClientMessage(playerid, COLOR_YELLOW, "<< This Gamemode was created by Hor1z0n >>");
  3254. SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
  3255. return 1;
  3256. }
  3257.  
  3258.  
  3259. if(strcmp("/tk", cmd, true) == 0)
  3260. {
  3261. new pId;
  3262. if(gTeam[playerid] == TEAM_LSPD)
  3263. {
  3264. if(!strlen(tmp) || strlen(tmp) > 5) {
  3265. SendClientMessage(playerid,COLOR_YELLOW,"Usage: /tk (id) ");
  3266. return 1;
  3267. }
  3268. else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, COLOR_GREY, "The ID You Entered Was Not Found.");
  3269. else
  3270. {
  3271. new Float:x, Float:y, Float:z;
  3272. GetPlayerPos(pId, x, y, z);
  3273. if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
  3274. {
  3275. new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250];
  3276. GetPlayerName(playerid, pname, sizeof(pname));
  3277. GetPlayerName(pId, aname, sizeof(aname));
  3278. if (GetPlayerWantedLevel(pId) == 0)
  3279. {
  3280. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player is not a criminal!");
  3281. return 1;
  3282. }
  3283. else if (GetPlayerWantedLevel(pId) == 1)
  3284. {
  3285. SendClientMessage(pId, COLOR_YELLOW, "You payed 1000$ for having 1 Wanted level!");
  3286. GivePlayerMoney(pId, -1000);
  3287. GivePlayerMoney(playerid, 1000);
  3288. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Officer,you recived 1000$!");
  3289. SetPlayerWantedLevel(pId, 0);
  3290. format(string1, sizeof(string1), "<< B.E.G. Wars : %s(%d) has recieved a ticet from Officer %s(%d) >>", aname, pId, pname, playerid);
  3291. SendClientMessageToAll(COLOR_SAND, string1);
  3292. return 1;
  3293. }
  3294. else if (GetPlayerWantedLevel(pId) > 1)
  3295. {
  3296. SendClientMessage(playerid, COLOR_GREY, "This player is a criminal,arrest him[/ar]");
  3297. return 1;
  3298. }
  3299. }
  3300. }
  3301. }
  3302. else
  3303. {
  3304. return SendClientMessage(playerid, COLOR_GREY, "You are not a police officer!");
  3305. }
  3306. return 1;
  3307. }
  3308.  
  3309.  
  3310. if(strcmp("/ar", cmd, true) == 0)
  3311. {
  3312. new pId;
  3313. if(gTeam[playerid] == TEAM_LSPD)
  3314. {
  3315. if(!strlen(tmp) || strlen(tmp) > 5) {
  3316. SendClientMessage(playerid,COLOR_YELLOW,"Usage: /ar (id) ");
  3317. return 1;
  3318. }
  3319. else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
  3320. else
  3321. {
  3322. new Float:x, Float:y, Float:z;
  3323. GetPlayerPos(pId, x, y, z);
  3324. if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
  3325. {
  3326. new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250], string2[256], string3[100], string4[100];
  3327. GetPlayerName(playerid, pname, sizeof(pname));
  3328. GetPlayerName(pId, aname, sizeof(aname));
  3329. if (GetPlayerWantedLevel(pId) == 0)
  3330. {
  3331. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player isn't a criminal!");
  3332. return 1;
  3333. }
  3334. else if (GetPlayerWantedLevel(pId) == 1)
  3335. {
  3336. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: This player's wanted level is 1.Please use /tk [ID]");
  3337. return 1;
  3338. }
  3339. else if (GetPlayerWantedLevel(pId) > 1)
  3340. {
  3341. new WantedLevel = GetPlayerWantedLevel(pId);
  3342. SetPlayerInterior(pId, 3);
  3343. new rand = random(sizeof(JailCellSpawns));
  3344. SetPlayerPos(pId, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
  3345. SetTimerEx("UnJail",WantedLevel*10000*60,0,"i",pId);
  3346. InJail[pId] = 1;
  3347. GivePlayerMoney(pId, -WantedLevel*1000);
  3348. GivePlayerMoney(playerid, WantedLevel*1000);
  3349. ResetPlayerWeapons(pId);
  3350. SetPlayerWantedLevel(pId, 0);
  3351. TogglePlayerControllable(pId, 0);
  3352. format(string1, sizeof(string1), "<< B.E.G Wars : %s(%d) Has Ben Arrested By Officer %s(%d) for %d >>", aname, pId, pname, playerid);
  3353. SendClientMessageToAll(COLOR_SAND, string1);
  3354. format(string2, sizeof(string2), "^^ You have been sent to jail killing a person! ^^", WantedLevel, WantedLevel);
  3355. SendClientMessage(pId, COLOR_YELLOW, string2);
  3356. format(string3, sizeof(string3), "You have recived bonus for arresting a suspect!", WantedLevel, WantedLevel);
  3357. SendClientMessage(playerid, 0xFF0000AA, string3);
  3358. format(string4, sizeof(string4), "You have payed penalty for having Wanted Level!", WantedLevel, WantedLevel);
  3359. SendClientMessage(pId, COLOR_YELLOW, string4);
  3360. return 1;
  3361. }
  3362. }
  3363. }
  3364. }
  3365. else
  3366. {
  3367. return SendClientMessage(playerid, COLOR_GREY, "You are not a LSPD member!");
  3368. }
  3369. return 1;
  3370. }
  3371.  
  3372. if(strcmp("/pm", cmd, true) == 0)
  3373. {
  3374. tmp = strtok(cmdtext,idx);
  3375.  
  3376. if(!strlen(tmp) || strlen(tmp) > 5) {
  3377. SendClientMessage(playerid,COLOR_YELLOW,"Usage: /pm [id/name] [message]");
  3378. return 1;
  3379. }
  3380.  
  3381. new id = strval(tmp);
  3382. gMessage = strrest(cmdtext,idx);
  3383.  
  3384. if(!strlen(gMessage)) {
  3385. SendClientMessage(playerid,COLOR_SAND,"Usage: /pm [id/name] [message]");
  3386. return 1;
  3387. }
  3388.  
  3389. if(!IsPlayerConnected(id)) {
  3390. SendClientMessage(playerid,COLOR_SAND,"<< B.E.G Wars : Bad name or ID >>");
  3391. return 1;
  3392. }
  3393.  
  3394. if(playerid != id) {
  3395. GetPlayerName(id,iName,sizeof(iName));
  3396. GetPlayerName(playerid,pName,sizeof(pName));
  3397. format(Message,sizeof(Message),"<< [MESSAGE]: %s(%d): %s >>",pName,id,gMessage);
  3398. SendClientMessage(playerid,COLOR_BLUELIGHT,Message);
  3399. format(Message,sizeof(Message),"<< [MESSAGE]: %s(%d): %s >>",pName,playerid,gMessage);
  3400. SendClientMessage(id,COLOR_BLUELIGHT,Message);
  3401. PlayerPlaySound(id,1085,0.0,0.0,0.0);
  3402.  
  3403. printf("[MESSAGE]: %s",Message);
  3404.  
  3405. }
  3406. else {
  3407. SendClientMessage(playerid,COLOR_SAND,"ERROR: You cannot PM yourself");
  3408. }
  3409. return 1;
  3410. }
  3411. if(strcmp(cmd, "/robstore", true) == 0)
  3412. {
  3413. new PlayerName[MAX_PLAYER_NAME];
  3414. new string[128];
  3415. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  3416. if(gTeam[playerid] != TEAM_LSPD)
  3417. {
  3418. if (Robtime[playerid] == 0)
  3419. {
  3420. if(IsPlayerInRangeOfPoint(playerid, 3.0, 207.8523,-100.9970,1005.2578))
  3421. {
  3422. format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Binco Store.You have 1 minute to go to him(/wl) >>",PlayerName);
  3423. MessageToCops(COLOR_ORANGE,string);
  3424. SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
  3425. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  3426. Robtime[playerid] = 1;
  3427. TogglePlayerControllable(playerid, 0);
  3428. SetTimerEx("CanRob", 1200000, false, "i", playerid);
  3429. SetTimerEx("RobPrize", 60000, false, "i", playerid);
  3430. }
  3431. if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.7513,-38.3262,1001.5156))
  3432. {
  3433. format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Meele Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
  3434. MessageToCops(COLOR_ORANGE,string);
  3435. SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
  3436. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  3437. Robtime[playerid] = 1;
  3438. TogglePlayerControllable(playerid, 0);
  3439. SetTimerEx("CanRob", 1200000, false, "i", playerid);
  3440. SetTimerEx("RobPrize", 60000, false, "i", playerid);
  3441. }
  3442. if(IsPlayerInRangeOfPoint(playerid, 3.0, 291.2514,-106.2294,1001.5156))
  3443. {
  3444. format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Hard Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
  3445. MessageToCops(COLOR_ORANGE,string);
  3446. SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
  3447. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  3448. Robtime[playerid] = 1;
  3449. TogglePlayerControllable(playerid, 0);
  3450. SetTimerEx("CanRob", 1200000, false, "i", playerid);
  3451. SetTimerEx("RobPrize", 60000, false, "i", playerid);
  3452. }
  3453. if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.5133,-80.6941,1001.5156))
  3454. {
  3455. format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Small Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
  3456. MessageToCops(COLOR_ORANGE,string);
  3457. SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
  3458. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  3459. Robtime[playerid] = 1;
  3460. TogglePlayerControllable(playerid, 0);
  3461. SetTimerEx("CanRob", 1200000, false, "i", playerid);
  3462. SetTimerEx("RobPrize", 60000, false, "i", playerid);
  3463. }else SendClientMessage(playerid,COLOR_GREY,"You aren't at any rob point!");
  3464. }else SendClientMessage(playerid,COLOR_GREY,"You must wait 20 minutes to rob again!");
  3465. }else SendClientMessage(playerid,COLOR_GREY,"LSPD members can't rob!");
  3466. }
  3467. if(strcmp("/report", cmd, true) == 0)
  3468. {
  3469. if(PlayerInfo[playerid][pAdminLevel] < 1) {
  3470. tmp = strtok(cmdtext,idx);
  3471. new string[128];
  3472. if(!strlen(tmp) || strlen(tmp) > 5) {
  3473. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /report [id/name] [reason]");
  3474. }
  3475.  
  3476. new id = strval(tmp);
  3477.  
  3478. if(!IsPlayerConnected(id)) {
  3479. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3480. return 1;
  3481. }
  3482.  
  3483. gMessage = strrest(cmdtext,idx);
  3484.  
  3485. GetPlayerName(id,iName,sizeof(iName));
  3486. GetPlayerName(playerid, adminname, sizeof(adminname));
  3487.  
  3488.  
  3489. format(string, sizeof(string), "[Report] %s reported %s reason: %s",adminname,iName,gMessage);
  3490. MessageToAdmins(COLOR_ORANGE,string);
  3491. return 1;
  3492. } else {
  3493. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are an admin and can't report ");
  3494. return 1;
  3495. }
  3496. }
  3497. if(strcmp("/kick", cmd, true) == 0)
  3498. {
  3499. if(PlayerInfo[playerid][pAdminLevel] >= 1) {
  3500. tmp = strtok(cmdtext,idx);
  3501. if(!strlen(tmp) || strlen(tmp) > 5) {
  3502. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /kick [id/name] [reason]");
  3503. }
  3504.  
  3505. new id = strval(tmp);
  3506.  
  3507. if(!IsPlayerConnected(id)) {
  3508. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3509. return 1;
  3510. }
  3511.  
  3512. gMessage = strrest(cmdtext,idx);
  3513.  
  3514. GetPlayerName(id,iName,sizeof(iName));
  3515. GetPlayerName(playerid, adminname, sizeof(adminname));
  3516. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been kicked from the server. >>");
  3517.  
  3518. if(strlen(gMessage) > 0) {
  3519. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3520. SendClientMessage(id,COLOR_YELLOW,Message);
  3521. }
  3522.  
  3523. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been kicked from this server by %s. Reason: %s.",iName,id,adminname,gMessage);
  3524. SendClientMessageToAll(COLOR_RED,Message);
  3525.  
  3526. Kick(id);
  3527. return 1;
  3528. } else {
  3529. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
  3530. return 1;
  3531. }
  3532. }
  3533. if(strcmp("/spawnp", cmd, true) == 0)
  3534. {
  3535. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  3536. tmp = strtok(cmdtext,idx);
  3537. if(!strlen(tmp) || strlen(tmp) > 5) {
  3538. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /spawnp [id/name] [reason]");
  3539. }
  3540.  
  3541. new id = strval(tmp);
  3542.  
  3543. if(!IsPlayerConnected(id)) {
  3544. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3545. return 1;
  3546. }
  3547.  
  3548. gMessage = strrest(cmdtext,idx);
  3549.  
  3550. GetPlayerName(id,iName,sizeof(iName));
  3551. GetPlayerName(playerid, adminname, sizeof(adminname));
  3552. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been spawned . >>");
  3553.  
  3554. if(strlen(gMessage) > 0) {
  3555. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3556. SendClientMessage(id,COLOR_YELLOW,Message);
  3557. }
  3558.  
  3559. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been spawned by %s. Reason: %s.",iName,id,adminname,gMessage);
  3560. SendClientMessageToAll(COLOR_RED,Message);
  3561.  
  3562. SpawnPlayer(id);
  3563. return 1;
  3564. } else {
  3565. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
  3566. return 1;
  3567. }
  3568. }
  3569. if(strcmp("/disarm", cmd, true) == 0)
  3570. {
  3571. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  3572. tmp = strtok(cmdtext,idx);
  3573. if(!strlen(tmp) || strlen(tmp) > 5) {
  3574. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /disarm [id/name] [reason]");
  3575. }
  3576.  
  3577. new id = strval(tmp);
  3578.  
  3579. if(!IsPlayerConnected(id)) {
  3580. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3581. return 1;
  3582. }
  3583.  
  3584. gMessage = strrest(cmdtext,idx);
  3585.  
  3586. GetPlayerName(id,iName,sizeof(iName));
  3587. GetPlayerName(playerid, adminname, sizeof(adminname));
  3588. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been disarmed . >>");
  3589.  
  3590. if(strlen(gMessage) > 0) {
  3591. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3592. SendClientMessage(id,COLOR_YELLOW,Message);
  3593. }
  3594.  
  3595. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been disarmed by %s. Reason: %s.",iName,id,adminname,gMessage);
  3596. SendClientMessageToAll(COLOR_RED,Message);
  3597.  
  3598. ResetPlayerWeapons(id);
  3599. return 1;
  3600. } else {
  3601. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
  3602. return 1;
  3603. }
  3604. }
  3605.  
  3606. if(strcmp("/mute", cmd, true) == 0)
  3607. {
  3608. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  3609. tmp = strtok(cmdtext,idx);
  3610. if(!strlen(tmp) || strlen(tmp) > 5) {
  3611. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /mute [id/name] [reason]");
  3612. }
  3613.  
  3614. new id = strval(tmp);
  3615.  
  3616. if(!IsPlayerConnected(id)) {
  3617. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3618. return 1;
  3619. }
  3620.  
  3621. gMessage = strrest(cmdtext,idx);
  3622.  
  3623. GetPlayerName(id,iName,sizeof(iName));
  3624. GetPlayerName(playerid, adminname, sizeof(adminname));
  3625. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been muted. >>");
  3626.  
  3627. if(strlen(gMessage) > 0) {
  3628. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3629. SendClientMessage(id,COLOR_YELLOW,Message);
  3630. }
  3631.  
  3632. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been muted by %s. Reason: %s.",iName,id,adminname,gMessage);
  3633. SendClientMessageToAll(COLOR_RED,Message);
  3634.  
  3635. Mute[id] = 1;
  3636. return 1;
  3637. } else {
  3638. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  3639. return 1;
  3640. }
  3641. }
  3642.  
  3643. if(strcmp("/unmute", cmd, true) == 0)
  3644. {
  3645. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  3646. tmp = strtok(cmdtext,idx);
  3647. if(!strlen(tmp) || strlen(tmp) > 5) {
  3648. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /unmute [id/name] [reason]");
  3649. }
  3650.  
  3651. new id = strval(tmp);
  3652.  
  3653. if(!IsPlayerConnected(id)) {
  3654. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3655. return 1;
  3656. }
  3657.  
  3658. gMessage = strrest(cmdtext,idx);
  3659.  
  3660. GetPlayerName(id,iName,sizeof(iName));
  3661. GetPlayerName(playerid, adminname, sizeof(adminname));
  3662. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been unmuted. >>");
  3663.  
  3664. if(strlen(gMessage) > 0) {
  3665. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3666. SendClientMessage(id,COLOR_YELLOW,Message);
  3667. }
  3668.  
  3669. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been unmuted by %s. Reason: %s.",iName,id,adminname,gMessage);
  3670. SendClientMessageToAll(COLOR_RED,Message);
  3671.  
  3672. Mute[id] = 0;
  3673. return 1;
  3674. } else {
  3675. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  3676. return 1;
  3677. }
  3678. }
  3679. if(!strcmp(cmd, "/m", true))
  3680. {
  3681. if(PlayerInfo[playerid][pAdminLevel] >= 1)
  3682. {
  3683. new string[128];
  3684. tmp = strtok(cmdtext, idx);
  3685. if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /m [text]");
  3686. GetPlayerName(playerid, adminname, sizeof(adminname));
  3687. format(string, sizeof(string), "Admin %s[%d]: %s", adminname,playerid, cmdtext[2]);
  3688. SendClientMessageToAll(COLOR_BLUELIGHT, string);
  3689. print(string);
  3690. }
  3691. else return SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  3692. return 1;
  3693. }
  3694.  
  3695. if(!strcmp(cmd, "/admins", true))
  3696. {
  3697. if(IsPlayerConnected(playerid))
  3698. {
  3699. new Admin[MAX_PLAYER_NAME];
  3700. new string[50 + MAX_PLAYER_NAME];
  3701. SendClientMessage(playerid, COLOR_SAND, "<< B.E.G Wars Online Admins: >>");
  3702. SendClientMessage(playerid, COLOR_SAND, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
  3703. for(new i = 0; i < MAX_PLAYERS; i++)
  3704. {
  3705. new al = PlayerInfo[i][pAdminLevel];
  3706. if(al > 0)
  3707. {
  3708. GetPlayerName(i, Admin, sizeof(Admin));
  3709. format(string, sizeof(string), "Admin Name: %s || Admin Level: %d", Admin, al);
  3710. SendClientMessage(playerid, COLOR_WHITE, string);
  3711. }
  3712. }
  3713. SendClientMessage(playerid, COLOR_WHITE, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
  3714. }
  3715. return 1;
  3716. }
  3717.  
  3718. if(!strcmp(cmd, "/wl", true))
  3719. {
  3720. if(gTeam[playerid] == TEAM_LSPD)
  3721. {
  3722. new criminal[MAX_PLAYER_NAME];
  3723. new string[50 + MAX_PLAYER_NAME];
  3724. SendClientMessage(playerid, COLOR_SAND, "<< B.E.G Wars Wanted List: >>");
  3725. SendClientMessage(playerid, COLOR_SAND, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
  3726. for(new i = 0; i < MAX_PLAYERS; i++)
  3727. {
  3728. new wl = GetPlayerWantedLevel(i);
  3729. if(wl > 0)
  3730. {
  3731. GetPlayerName(i, criminal, sizeof(criminal));
  3732. format(string, sizeof(string), "Criminal Name: %s || Wanted Level: %d", criminal, wl);
  3733. SendClientMessage(playerid, COLOR_WHITE, string);
  3734. }
  3735. }
  3736. SendClientMessage(playerid, COLOR_WHITE, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
  3737. }
  3738. else
  3739. {
  3740. SendClientMessage(playerid, COLOR_GREY, "You are not a police member");
  3741. }
  3742. return 1;
  3743. }
  3744.  
  3745. if(strcmp("/freeze", cmd, true) == 0)
  3746. {
  3747. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  3748. tmp = strtok(cmdtext,idx);
  3749. if(!strlen(tmp) || strlen(tmp) > 5) {
  3750. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /freeze [id/name] [reason]");
  3751. }
  3752.  
  3753. new id = strval(tmp);
  3754.  
  3755. if(!IsPlayerConnected(id)) {
  3756. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  3757. return 1;
  3758. }
  3759.  
  3760. gMessage = strrest(cmdtext,idx);
  3761.  
  3762. GetPlayerName(id,iName,sizeof(iName));
  3763. GetPlayerName(playerid, adminname, sizeof(adminname));
  3764. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been freezed. >>");
  3765.  
  3766. if(strlen(gMessage) > 0) {
  3767. format(Message,sizeof(Message),"Reason: %s",gMessage);
  3768. SendClientMessage(id,COLOR_YELLOW,Message);
  3769. }
  3770.  
  3771. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been freezed by %s. Reason: %s.",iName,id,adminname,gMessage);
  3772. SendClientMessageToAll(COLOR_BRIGHTRED,Message);
  3773.  
  3774. TogglePlayerControllable(id, 0);
  3775. return 1;
  3776. } else {
  3777. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  3778. return 1;
  3779. }
  3780. }
  3781. if(strcmp(cmd, "/gw", true) == 0)
  3782. {
  3783. if(IsPlayerConnected(playerid))
  3784. {
  3785. tmp = strtok(cmdtext, idx);
  3786. if(!strlen(tmp))
  3787. {
  3788. SendClientMessage(playerid, COLOR_GREY, "USAGE: /gw [Playerid/Name] [WeaponID](Give players a weapon)");
  3789. SendClientMessage(playerid, COLOR_WHITE, "*** Weapon IDs ***");
  3790. SendClientMessage(playerid, COLOR_GREY, "|1 Brass Knuckles|2 Golf Club|3 Nite Stick|4 Knife|5 Baseball Bat|6 Shovel|7 Pool Cue|8 Katana| ");
  3791. SendClientMessage(playerid, COLOR_GREY, "|9 Chainsaw|10 Purple Dildo|11 Small White Vibrator|12 Large White Vibrator|13 Silver Vibrator|");
  3792. SendClientMessage(playerid, COLOR_GREY, "|14 Flowers|15 Cane|16 Gernade|17 Tear Gas|18 Molotov Cocktail|22 Pistol|23 SDPistol|24 Desert Eagle|");
  3793. SendClientMessage(playerid, COLOR_GREY, "|25 Shotgun|26 Sawnoffs|27 SPAS12|28 UZI|29 MP5|30 AK47|31 M4|32 Tec9|33 Rifle|34 Sniper Rifle| ");
  3794. SendClientMessage(playerid, COLOR_GREY, "|35 Rocket Launcher|36 HeatSeeker Rocket Launcher|37 Flamethrower|38 Minigun|41 Spraycan|");
  3795. SendClientMessage(playerid, COLOR_GREY, "|42 Fire Extinguisher|43 Camera|44 Nightvision Goggles|45 Infrared Vision|46 Parachute| ");
  3796. return 1;
  3797. }
  3798. new playa;
  3799. new gun;
  3800. new id = strval(tmp);
  3801. playa = ReturnUser(tmp);
  3802. tmp = strtok(cmdtext, idx);
  3803. gun = strval(tmp);
  3804. if(gun < 1||gun > 46)
  3805. { SendClientMessage(playerid, COLOR_GREY, "Wrong ID"); return 1; }
  3806. if (PlayerInfo[playerid][pAdminLevel] >= 4)
  3807. {
  3808. if(IsPlayerConnected(playa))
  3809. {
  3810. if(playa != INVALID_PLAYER_ID)
  3811. {
  3812. GetPlayerName(id,iName,sizeof(iName));
  3813. GetPlayerName(playerid, adminname, sizeof(adminname));
  3814. GivePlayerWeapon(playa, gun, 650000);
  3815. format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived a weapon from %s.>>",iName,adminname);
  3816. SendClientMessageToAll(COLOR_RED,Message);
  3817. }
  3818. }
  3819. }
  3820. else
  3821. {
  3822. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  3823. }
  3824. }
  3825. return 1;
  3826. }
  3827. if(strcmp(cmd, "/ajail", true) == 0)
  3828. {
  3829. if(IsPlayerConnected(playerid))
  3830. {
  3831. tmp = strtok(cmdtext, idx);
  3832. if(!strlen(tmp))
  3833. {
  3834. SendClientMessage(playerid, COLOR_GREY, "USAGE: /ajail [Playerid/Name] [Miliseconds](Jail a player)(1 sec = 1000 milisec)");
  3835. return 1;
  3836. }
  3837. new playa;
  3838. new jt;
  3839. new id = strval(tmp);
  3840. playa = ReturnUser(tmp);
  3841. tmp = strtok(cmdtext, idx);
  3842. jt = strval(tmp);
  3843. if (PlayerInfo[playerid][pAdminLevel] >= 3)
  3844. {
  3845. if(IsPlayerConnected(playa))
  3846. {
  3847. if(playa != INVALID_PLAYER_ID)
  3848. {
  3849. TogglePlayerControllable(id, 0);
  3850. InJail[id] = 1;
  3851. GetPlayerName(id,iName,sizeof(iName));
  3852. GetPlayerName(playerid, adminname, sizeof(adminname));
  3853. SetPlayerInterior(id, 3);
  3854. new rand = random(sizeof(JailCellSpawns));
  3855. SetPlayerPos(id, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
  3856. SetTimerEx("UnJail",jt, false,"i",id);
  3857. format(Message,sizeof(Message),"<< B.E.G Wars: %s has jailed by %s.>>",iName,adminname);
  3858. SendClientMessageToAll(COLOR_RED,Message);
  3859. }
  3860. }
  3861. }
  3862. else
  3863. {
  3864. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  3865. }
  3866. }
  3867. return 1;
  3868. }
  3869.  
  3870. if(strcmp(cmd, "/ss", true) == 0)
  3871. {
  3872. if(IsPlayerConnected(playerid))
  3873. {
  3874. tmp = strtok(cmdtext, idx);
  3875. if(!strlen(tmp))
  3876. {
  3877. SendClientMessage(playerid, COLOR_GREY, "USAGE: /ss [Playerid/Name] [SkinID](Set the players skin)");
  3878. return 1;
  3879. }
  3880. new playa;
  3881. new skin;
  3882. new id = strval(tmp);
  3883. playa = ReturnUser(tmp);
  3884. tmp = strtok(cmdtext, idx);
  3885. skin = strval(tmp);
  3886. if(skin < 0||skin > 300)
  3887. { SendClientMessage(playerid, COLOR_GREY, "Wrong ID"); return 1; }
  3888. if (PlayerInfo[playerid][pAdminLevel] >= 3)
  3889. {
  3890. if(IsPlayerConnected(playa))
  3891. {
  3892. if(playa != INVALID_PLAYER_ID)
  3893. {
  3894. GetPlayerName(id,iName,sizeof(iName));
  3895. GetPlayerName(playerid, adminname, sizeof(adminname));
  3896. SetPlayerSkin(playa, skin);
  3897. format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived a skin from %s.>>",iName,adminname);
  3898. SendClientMessageToAll(COLOR_RED,Message);
  3899. }
  3900. }
  3901. }
  3902. else
  3903. {
  3904. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  3905. }
  3906. }
  3907. return 1;
  3908. }
  3909.  
  3910. if(strcmp(cmd, "/shp", true) == 0)
  3911. {
  3912. if(IsPlayerConnected(playerid))
  3913. {
  3914. tmp = strtok(cmdtext, idx);
  3915. if(!strlen(tmp))
  3916. {
  3917. SendClientMessage(playerid, COLOR_GREY, "USAGE: /shp [Playerid/Name] [Health](Set the players health)");
  3918. return 1;
  3919. }
  3920. new playa;
  3921. new health;
  3922. new id = strval(tmp);
  3923. playa = ReturnUser(tmp);
  3924. tmp = strtok(cmdtext, idx);
  3925. health = strval(tmp);
  3926. if(health < 0||health > 100)
  3927. { SendClientMessage(playerid, COLOR_GREY, "Can't set player's health more than 100"); return 1; }
  3928. if (PlayerInfo[playerid][pAdminLevel] >= 3)
  3929. {
  3930. if(IsPlayerConnected(playa))
  3931. {
  3932. if(playa != INVALID_PLAYER_ID)
  3933. {
  3934. GetPlayerName(id,iName,sizeof(iName));
  3935. GetPlayerName(playerid, adminname, sizeof(adminname));
  3936. SetPlayerHealth(playa, health);
  3937. format(Message,sizeof(Message),"<< B.E.G Wars: %s health was set by Admin %s.>>",iName,adminname);
  3938. SendClientMessageToAll(COLOR_RED,Message);
  3939. }
  3940. }
  3941. }
  3942. else
  3943. {
  3944. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  3945. }
  3946. }
  3947. return 1;
  3948. }
  3949. if(strcmp(cmd, "/sar", true) == 0)
  3950. {
  3951. if(IsPlayerConnected(playerid))
  3952. {
  3953. tmp = strtok(cmdtext, idx);
  3954. if(!strlen(tmp))
  3955. {
  3956. SendClientMessage(playerid, COLOR_GREY, "USAGE: /sar [Playerid/Name] [Armour](Set the players armour)");
  3957. return 1;
  3958. }
  3959. new playa;
  3960. new armour;
  3961. new id = strval(tmp);
  3962. playa = ReturnUser(tmp);
  3963. tmp = strtok(cmdtext, idx);
  3964. armour = strval(tmp);
  3965. if(armour < 0||armour > 100)
  3966. { SendClientMessage(playerid, COLOR_GREY, "Can't set player's armour more than 100"); return 1; }
  3967. if (PlayerInfo[playerid][pAdminLevel] >= 3)
  3968. {
  3969. if(IsPlayerConnected(playa))
  3970. {
  3971. if(playa != INVALID_PLAYER_ID)
  3972. {
  3973. GetPlayerName(id,iName,sizeof(iName));
  3974. GetPlayerName(playerid, adminname, sizeof(adminname));
  3975. SetPlayerArmour(playa, armour);
  3976. format(Message,sizeof(Message),"<< B.E.G Wars: %s armour was set by Admin %s.>>",iName,adminname);
  3977. SendClientMessageToAll(COLOR_RED,Message);
  3978. }
  3979. }
  3980. }
  3981. else
  3982. {
  3983. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  3984. }
  3985. }
  3986. return 1;
  3987. }
  3988. if(strcmp(cmd, "/gpm", true) == 0)
  3989. {
  3990. if(IsPlayerConnected(playerid))
  3991. {
  3992. tmp = strtok(cmdtext, idx);
  3993. if(!strlen(tmp))
  3994. {
  3995. SendClientMessage(playerid, COLOR_GREY, "USAGE: /gpm [Playerid/Name] [Ammount](Give players money)");
  3996. return 1;
  3997. }
  3998. new playa;
  3999. new money;
  4000. new id = strval(tmp);
  4001. playa = ReturnUser(tmp);
  4002. tmp = strtok(cmdtext, idx);
  4003. money = strval(tmp);
  4004. if(money < 0||money > 99999)
  4005. { SendClientMessage(playerid, COLOR_GREY, "Maxim ammount of money you can give is 99999"); return 1; }
  4006. if (PlayerInfo[playerid][pAdminLevel] >= 3)
  4007. {
  4008. if(IsPlayerConnected(playa))
  4009. {
  4010. if(playa != INVALID_PLAYER_ID)
  4011. {
  4012. GetPlayerName(id,iName,sizeof(iName));
  4013. GetPlayerName(playerid, adminname, sizeof(adminname));
  4014. GivePlayerMoney(playa, money);
  4015. format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived money from Admin %s.>>",iName,adminname);
  4016. SendClientMessageToAll(COLOR_RED,Message);
  4017. }
  4018. }
  4019. }
  4020. else
  4021. {
  4022. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  4023. }
  4024. }
  4025. return 1;
  4026. }
  4027. if(strcmp(cmd, "/spm", true) == 0)
  4028. {
  4029. if(IsPlayerConnected(playerid))
  4030. {
  4031. tmp = strtok(cmdtext, idx);
  4032. if(!strlen(tmp))
  4033. {
  4034. SendClientMessage(playerid, COLOR_GREY, "USAGE: /spm [Playerid/Name] [Ammount](Set the players money)");
  4035. return 1;
  4036. }
  4037. new playa;
  4038. new money;
  4039. new id = strval(tmp);
  4040. playa = ReturnUser(tmp);
  4041. tmp = strtok(cmdtext, idx);
  4042. money = strval(tmp);
  4043. if(money < 0||money > 999999999)
  4044. { SendClientMessage(playerid, COLOR_GREY, "Maxim ammount of money you can set is 999999999"); return 1; }
  4045. if (PlayerInfo[playerid][pAdminLevel] >= 4)
  4046. {
  4047. if(IsPlayerConnected(playa))
  4048. {
  4049. if(playa != INVALID_PLAYER_ID)
  4050. {
  4051. GetPlayerName(id,iName,sizeof(iName));
  4052. GetPlayerName(playerid, adminname, sizeof(adminname));
  4053. SetPlayerMoney(playa, money);
  4054. format(Message,sizeof(Message),"<< B.E.G Wars: %s moneys was been set by Admin %s.>>",iName,adminname);
  4055. SendClientMessageToAll(COLOR_RED,Message);
  4056. }
  4057. }
  4058. }
  4059. else
  4060. {
  4061. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  4062. }
  4063. }
  4064. return 1;
  4065. }
  4066. /* if(strcmp(cmd, "/mad", true) == 0)
  4067. {
  4068. if(IsPlayerConnected(playerid))
  4069. {
  4070. tmp = strtok(cmdtext, idx);
  4071. if(!strlen(tmp))
  4072. {
  4073. SendClientMessage(playerid, COLOR_GREY, "USAGE: /mad [Playerid/Name] [Admin Level](Set the players Admin Level){COMMAND ISN't WORKING)");
  4074. return 1;
  4075. }
  4076. new playa;
  4077. new file[256];
  4078. new adminlevel;
  4079. new id = strval(tmp);
  4080. playa = ReturnUser(tmp);
  4081. tmp = strtok(cmdtext, idx);
  4082. adminlevel = strval(tmp);
  4083. if(adminlevel < 0||adminlevel > 5)
  4084. { SendClientMessage(playerid, COLOR_GREY, "Maxim Admin Level you can set is 5"); return 1; }
  4085. if (PlayerInfo[playerid][pAdminLevel] >= 5)
  4086. {
  4087. if(IsPlayerConnected(playa))
  4088. {
  4089. if(playa != INVALID_PLAYER_ID)
  4090. {
  4091. GetPlayerName(id,iName,sizeof(iName));
  4092. GetPlayerName(playerid, adminname, sizeof(adminname));
  4093. dini_IntSet(file, "AdminLevel",adminlevel);
  4094. format(Message,sizeof(Message),"<< B.E.G Wars: %s has been promoted to admin by %s.>>",iName,adminname);
  4095. SendClientMessageToAll(COLOR_RED,Message);
  4096. }
  4097. }
  4098. }
  4099. else
  4100. {
  4101. SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  4102. }
  4103. }
  4104. return 1;
  4105. }*/
  4106.  
  4107. if(strcmp("/unfreeze", cmd, true) == 0)
  4108. {
  4109. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  4110. tmp = strtok(cmdtext,idx);
  4111. if(!strlen(tmp) || strlen(tmp) > 5) {
  4112. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /unfreeze [id/name] [reason]");
  4113. }
  4114.  
  4115. new id = strval(tmp);
  4116.  
  4117. if(!IsPlayerConnected(id)) {
  4118. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4119. return 1;
  4120. }
  4121.  
  4122. gMessage = strrest(cmdtext,idx);
  4123.  
  4124. GetPlayerName(id,iName,sizeof(iName));
  4125. GetPlayerName(playerid, adminname, sizeof(adminname));
  4126. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been unfreezed. >>");
  4127.  
  4128. if(strlen(gMessage) > 0) {
  4129. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4130. SendClientMessage(id,COLOR_YELLOW,Message);
  4131. }
  4132.  
  4133. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been unfreezed by %s. Reason: %s.",iName,id,adminname,gMessage);
  4134. SendClientMessageToAll(COLOR_RED,Message);
  4135.  
  4136. TogglePlayerControllable(id, 1);
  4137. return 1;
  4138. } else {
  4139. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4140. return 1;
  4141. }
  4142. }
  4143. if(strcmp("/akill", cmd, true) == 0)
  4144. {
  4145. if(PlayerInfo[playerid][pAdminLevel] >= 1) {
  4146. tmp = strtok(cmdtext,idx);
  4147. if(!strlen(tmp) || strlen(tmp) > 5) {
  4148. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /akill [id/name] [reason]");
  4149. }
  4150.  
  4151. new id = strval(tmp);
  4152.  
  4153. if(!IsPlayerConnected(id)) {
  4154. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4155. return 1;
  4156. }
  4157.  
  4158. gMessage = strrest(cmdtext,idx);
  4159.  
  4160. GetPlayerName(id,iName,sizeof(iName));
  4161. GetPlayerName(playerid, adminname, sizeof(adminname));
  4162. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been Admin Killed. >>");
  4163.  
  4164. if(strlen(gMessage) > 0) {
  4165. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4166. SendClientMessage(id,COLOR_YELLOW,Message);
  4167. }
  4168.  
  4169. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been Admin Killed by %s. Reason: %s.",iName,id,adminname,gMessage);
  4170. SendClientMessageToAll(COLOR_RED,Message);
  4171.  
  4172. SetPlayerHealth(id, 0);
  4173. return 1;
  4174. } else {
  4175. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4176. return 1;
  4177. }
  4178. }
  4179. if(strcmp("/fucku", cmd, true) == 0)
  4180. {
  4181. if(PlayerInfo[playerid][pAdminLevel] >= 4) {
  4182. tmp = strtok(cmdtext,idx);
  4183. if(!strlen(tmp) || strlen(tmp) > 5) {
  4184. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /fucku [id/name] [reason]");
  4185. }
  4186.  
  4187. new id = strval(tmp);
  4188.  
  4189. if(!IsPlayerConnected(id)) {
  4190. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4191. return 1;
  4192. }
  4193.  
  4194. gMessage = strrest(cmdtext,idx);
  4195.  
  4196. GetPlayerName(id,iName,sizeof(iName));
  4197. GetPlayerName(playerid, adminname, sizeof(adminname));
  4198. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been fucked. >>");
  4199.  
  4200. if(strlen(gMessage) > 0) {
  4201. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4202. SendClientMessage(id,COLOR_YELLOW,Message);
  4203. }
  4204.  
  4205. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been fucked by %s. Reason: %s.",iName,id,adminname,gMessage);
  4206. SendClientMessageToAll(COLOR_RED,Message);
  4207.  
  4208. SetPlayerHealth(id, 5);
  4209. SetPlayerMoney(id, 1);
  4210. SetPlayerSkin(id, 252);
  4211. SetPlayerArmour(id, 0);
  4212. ResetPlayerWeapons(id);
  4213. GivePlayerWeapon(id, 10, 1);
  4214. return 1;
  4215. } else {
  4216. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4217. return 1;
  4218. }
  4219. }
  4220.  
  4221. if(strcmp("/goto", cmd, true) == 0)
  4222. {
  4223. if(PlayerInfo[playerid][pAdminLevel] >= 3) {
  4224. tmp = strtok(cmdtext,idx);
  4225. if(!strlen(tmp) || strlen(tmp) > 5) {
  4226. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /goto [id/name] [reason(obtional)]");
  4227. }
  4228.  
  4229. new id = strval(tmp);
  4230.  
  4231. if(!IsPlayerConnected(id)) {
  4232. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4233. return 1;
  4234. }
  4235.  
  4236. gMessage = strrest(cmdtext,idx);
  4237.  
  4238. GetPlayerName(id,iName,sizeof(iName));
  4239. GetPlayerName(playerid, adminname, sizeof(adminname));
  4240. SendClientMessage(id,COLOR_YELLOW,"<< An admin teleported to you. >>");
  4241.  
  4242. if(strlen(gMessage) > 0) {
  4243. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4244. SendClientMessage(id,COLOR_YELLOW,Message);
  4245. }
  4246.  
  4247. format(Message,sizeof(Message),"<< B.E.G Wars: %s teleported to %s. Reason: %s.",adminname,iName,gMessage);
  4248. SendClientMessageToAll(COLOR_RED,Message);
  4249.  
  4250. new Float:x, Float:y, Float:z;
  4251. new interior;
  4252. new vw;
  4253. interior = GetPlayerInterior(id);
  4254. vw = GetPlayerVirtualWorld(id);
  4255. GetPlayerPos(id, x, y, z);
  4256. SetPlayerPos(playerid, x+1, y, z);
  4257. SetPlayerInterior(playerid, interior);
  4258. SetPlayerVirtualWorld(playerid, vw);
  4259. return 1;
  4260. } else {
  4261. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4262. return 1;
  4263. }
  4264. }
  4265. if(strcmp("/slap", cmd, true) == 0)
  4266. {
  4267. if(PlayerInfo[playerid][pAdminLevel] >= 1) {
  4268. tmp = strtok(cmdtext,idx);
  4269. if(!strlen(tmp) || strlen(tmp) > 5) {
  4270. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /slap [id/name] [reason(obtional)]");
  4271. }
  4272.  
  4273. new id = strval(tmp);
  4274.  
  4275. if(!IsPlayerConnected(id)) {
  4276. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4277. return 1;
  4278. }
  4279.  
  4280. gMessage = strrest(cmdtext,idx);
  4281.  
  4282. GetPlayerName(id,iName,sizeof(iName));
  4283. GetPlayerName(playerid, adminname, sizeof(adminname));
  4284. SendClientMessage(id,COLOR_YELLOW,"<< An admin slapped you. >>");
  4285.  
  4286. if(strlen(gMessage) > 0) {
  4287. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4288. SendClientMessage(id,COLOR_YELLOW,Message);
  4289. }
  4290.  
  4291. format(Message,sizeof(Message),"<< B.E.G Wars: %s has been slapped by %s. Reason: %s.",iName,adminname,gMessage);
  4292. SendClientMessageToAll(COLOR_RED,Message);
  4293.  
  4294. new Float:x, Float:y, Float:z;
  4295. GetPlayerPos(id, x, y, z);
  4296. SetPlayerPos(id, x, y, z+5);
  4297. return 1;
  4298. } else {
  4299. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4300. return 1;
  4301. }
  4302. }
  4303. if(strcmp("/xplode", cmd, true) == 0)
  4304. {
  4305. if(PlayerInfo[playerid][pAdminLevel] >= 4) {
  4306. tmp = strtok(cmdtext,idx);
  4307. if(!strlen(tmp) || strlen(tmp) > 5) {
  4308. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /xplode [id/name] [reason(obtional)](Explode the player)");
  4309. }
  4310.  
  4311. new id = strval(tmp);
  4312.  
  4313. if(!IsPlayerConnected(id)) {
  4314. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4315. return 1;
  4316. }
  4317.  
  4318. gMessage = strrest(cmdtext,idx);
  4319.  
  4320. GetPlayerName(id,iName,sizeof(iName));
  4321. GetPlayerName(playerid, adminname, sizeof(adminname));
  4322. SendClientMessage(id,COLOR_YELLOW,"<< An admin exploded you. >>");
  4323.  
  4324. if(strlen(gMessage) > 0) {
  4325. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4326. SendClientMessage(id,COLOR_YELLOW,Message);
  4327. }
  4328.  
  4329. format(Message,sizeof(Message),"<< B.E.G Wars: %s has been exploded by %s. Reason: %s.",iName,adminname,gMessage);
  4330. SendClientMessageToAll(COLOR_RED,Message);
  4331.  
  4332. new Float:x, Float:y, Float:z;
  4333. GetPlayerPos(id, x, y, z);
  4334. CreateExplosion(x, y, z, 7, 300);
  4335. return 1;
  4336. } else {
  4337. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4338. return 1;
  4339. }
  4340. }
  4341. if(strcmp("/mslap", cmd, true) == 0)
  4342. {
  4343. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  4344. tmp = strtok(cmdtext,idx);
  4345. if(!strlen(tmp) || strlen(tmp) > 5) {
  4346. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /mslap [id/name] [reason(obtional)]");
  4347. }
  4348.  
  4349. new id = strval(tmp);
  4350.  
  4351. if(!IsPlayerConnected(id)) {
  4352. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4353. return 1;
  4354. }
  4355.  
  4356. gMessage = strrest(cmdtext,idx);
  4357.  
  4358. GetPlayerName(id,iName,sizeof(iName));
  4359. GetPlayerName(playerid, adminname, sizeof(adminname));
  4360. SendClientMessage(id,COLOR_YELLOW,"<< An admin mega slapped you. >>");
  4361.  
  4362. if(strlen(gMessage) > 0) {
  4363. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4364. SendClientMessage(id,COLOR_YELLOW,Message);
  4365. }
  4366.  
  4367. format(Message,sizeof(Message),"<< B.E.G Wars: %s has been mega slapped by %s. Reason: %s.",iName,adminname,gMessage);
  4368. SendClientMessageToAll(COLOR_RED,Message);
  4369.  
  4370. new Float:x, Float:y, Float:z;
  4371. GetPlayerPos(id, x, y, z);
  4372. SetPlayerPos(id, x, y, z+25);
  4373. return 1;
  4374. } else {
  4375. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4376. return 1;
  4377. }
  4378. }
  4379. if(strcmp("/get", cmd, true) == 0)
  4380. {
  4381. if(PlayerInfo[playerid][pAdminLevel] >= 3) {
  4382. tmp = strtok(cmdtext,idx);
  4383. if(!strlen(tmp) || strlen(tmp) > 5) {
  4384. return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /get [id/name] [reason(obtional)]");
  4385. }
  4386.  
  4387. new id = strval(tmp);
  4388.  
  4389. if(!IsPlayerConnected(id)) {
  4390. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4391. return 1;
  4392. }
  4393.  
  4394. gMessage = strrest(cmdtext,idx);
  4395.  
  4396. GetPlayerName(id,iName,sizeof(iName));
  4397. GetPlayerName(playerid, adminname, sizeof(adminname));
  4398. SendClientMessage(id,COLOR_YELLOW,"<< An admin teleported you to him. >>");
  4399.  
  4400. if(strlen(gMessage) > 0) {
  4401. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4402. SendClientMessage(id,COLOR_YELLOW,Message);
  4403. }
  4404.  
  4405. format(Message,sizeof(Message),"<< B.E.G Wars: %s teleported %s to him. Reason: %s.",adminname,iName,gMessage);
  4406. SendClientMessageToAll(COLOR_RED,Message);
  4407.  
  4408. new Float:x, Float:y, Float:z;
  4409. new interior;
  4410. new vw;
  4411. interior = GetPlayerInterior(playerid);
  4412. vw = GetPlayerVirtualWorld(playerid);
  4413. GetPlayerPos(playerid, x, y, z);
  4414. SetPlayerPos(id, x+1, y, z);
  4415. SetPlayerInterior(id, interior);
  4416. SetPlayerVirtualWorld(id, vw);
  4417. return 1;
  4418. } else {
  4419. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4420. return 1;
  4421. }
  4422. }
  4423.  
  4424. if(!strcmp(cmd, "/veh", true))
  4425. {
  4426. if(PlayerInfo[playerid][pAdminLevel] >= 3)
  4427. {
  4428. new carid, color1, color2;
  4429. tmp = strtok(cmdtext, idx);
  4430. if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
  4431.  
  4432. carid = strval(tmp);
  4433. if(carid < 400 || carid > 611) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
  4434.  
  4435. tmp = strtok(cmdtext, idx);
  4436. color1 = strval(tmp);
  4437. if(color1 < 0 || color1 > 126) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
  4438.  
  4439. tmp = strtok(cmdtext, idx);
  4440. color2 = strval(tmp);
  4441. if(color1 < 0 || color1 > 126) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
  4442. GetPlayerName(playerid, adminname, sizeof(adminname));
  4443. new Float:X, Float:Y, Float:Z;
  4444. GetPlayerPos(playerid, X, Y, Z);
  4445. CreateVehicle(carid, X+2, Y, Z, 0 , color1, color2, 0);
  4446.  
  4447. format(Message,sizeof(Message),"<< B.E.G Wars: Admin %s has spawned a car with id %d.",adminname,carid);
  4448. SendClientMessageToAll(COLOR_RED,Message);
  4449. }
  4450. else return SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
  4451. return 1;
  4452. }
  4453. if(!strcmp(cmd, "/buyskin", true))
  4454. {
  4455. if(IsPlayerInRangeOfPoint(playerid , 4.0 , 212.0662,-102.2246,1005.2578))
  4456. {
  4457. new skinid;
  4458. new money;
  4459. money = GetPlayerMoney(playerid);
  4460. tmp = strtok(cmdtext, idx);
  4461. if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /buyskin [skinid] >>");
  4462.  
  4463. skinid = strval(tmp);
  4464. if(skinid < 0 || skinid > 300|| money < 500) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /buyskin [skinid](Cost 500$) >>");
  4465.  
  4466. SetPlayerSkin(playerid, skinid);
  4467. SendClientMessage(playerid, COLOR_GREY, "You bought a skin from binco with 500$");
  4468. GivePlayerMoney(playerid, -500);
  4469.  
  4470. }
  4471. else return SendClientMessage(playerid, COLOR_GREY, "ERROR: You are not at the Binco clothes store");
  4472. return 1;
  4473. }
  4474.  
  4475. if(strcmp("/godon", cmd, true) == 0)
  4476. {
  4477. if(PlayerInfo[playerid][pAdminLevel] >= 4) {
  4478. tmp = strtok(cmdtext,idx);
  4479. GetPlayerName(playerid, adminname, sizeof(adminname));
  4480.  
  4481.  
  4482. format(Message,sizeof(Message),"<< B.E.G Wars: %s is now GOD.",adminname);
  4483. SendClientMessage(playerid,COLOR_RED,Message);
  4484. SetPlayerHealth(playerid, 100000);
  4485. SetPlayerArmour(playerid, 100000);
  4486. return 1;
  4487. } else {
  4488. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4489. return 1;
  4490. }
  4491. }
  4492.  
  4493. if(strcmp("/godoff", cmd, true) == 0)
  4494. {
  4495. if(PlayerInfo[playerid][pAdminLevel] >= 4) {
  4496. GetPlayerName(playerid, adminname, sizeof(adminname));
  4497. format(Message,sizeof(Message),"<< B.E.G Wars: %s is now a normal player.",adminname);
  4498. SendClientMessage(playerid,COLOR_RED,Message);
  4499. SetPlayerHealth(playerid, 100);
  4500. SetPlayerArmour(playerid, 0);
  4501. return 1;
  4502. } else {
  4503. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4504. return 1;
  4505. }
  4506. }
  4507. if(strcmp("/jailtime", cmd, true) == 0)
  4508. {
  4509. if(InJail[playerid] == 1) {
  4510. format(Message,sizeof(Message),"Jail Time: %s",PlayerInfo[playerid][pJailTime]);
  4511. SendClientMessage(playerid,COLOR_YELLOW,Message);
  4512. return 1;
  4513. } else {
  4514. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not in jail");
  4515. return 1;
  4516. }
  4517. }
  4518. if(strcmp("/ban", cmd, true) == 0)
  4519. {
  4520. if(PlayerInfo[playerid][pAdminLevel] >= 2) {
  4521. tmp = strtok(cmdtext,idx);
  4522. if(!strlen(tmp) || strlen(tmp) > 5) {
  4523. return SendClientMessage(playerid,COLOR_SAND,"Usage: /ban [id/name] [reason]");
  4524. }
  4525.  
  4526. new id = strval(tmp);
  4527.  
  4528. if(!IsPlayerConnected(id)) {
  4529. SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
  4530. return 1;
  4531. }
  4532.  
  4533. gMessage = strrest(cmdtext,idx);
  4534.  
  4535. GetPlayerName(id,iName,sizeof(iName));
  4536. GetPlayerName(playerid, adminname, sizeof(adminname));
  4537. SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been banned from the server. >>");
  4538.  
  4539. if(strlen(gMessage) > 0) {
  4540. format(Message,sizeof(Message),"Reason: %s",gMessage);
  4541. SendClientMessage(id,COLOR_YELLOW,Message);
  4542. }
  4543.  
  4544. format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been banned form this server by %s.Reason: %s >>",iName,id,adminname,gMessage);
  4545. SendClientMessage(playerid,COLOR_RED,Message);
  4546.  
  4547. Ban(id);
  4548. return 1;
  4549. } else {
  4550. SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
  4551. return 1;
  4552. }
  4553. }
  4554.  
  4555. return 0;
  4556. }
  4557.  
  4558. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  4559. {
  4560. return 1;
  4561. }
  4562.  
  4563. COMMAND:tk(playerid,params[])
  4564. {
  4565. new pId;
  4566. if(gTeam[playerid] == TEAM_LSPD)
  4567. {
  4568. if(sscanf(params, "d", pId)) return SendClientMessage(playerid, COLOR_GREY, "B.E.G Wars: /tk [ID]");
  4569. else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, COLOR_GREY, "The ID You Entered Was Not Found.");
  4570. else
  4571. {
  4572. new Float:x, Float:y, Float:z;
  4573. GetPlayerPos(pId, x, y, z);
  4574. if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
  4575. {
  4576. new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250];
  4577. GetPlayerName(playerid, pname, sizeof(pname));
  4578. GetPlayerName(pId, aname, sizeof(aname));
  4579. if (GetPlayerWantedLevel(pId) == 0)
  4580. {
  4581. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player is not a criminal!");
  4582. return 1;
  4583. }
  4584. else if (GetPlayerWantedLevel(pId) == 1)
  4585. {
  4586. SendClientMessage(pId, COLOR_YELLOW, "You payed 500$ for having 1 Wanted level!");
  4587. GivePlayerMoney(pId, -500);
  4588. GivePlayerMoney(playerid, 500);
  4589. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Officer,you recived 500$!");
  4590. SetPlayerWantedLevel(pId, 0);
  4591. format(string1, sizeof(string1), "<< B.E.G. Wars : %s(%d) has recieved a ticet from Officer %s(%d) >>", aname, pId, pname, playerid);
  4592. SendClientMessageToAll(COLOR_SAND, string1);
  4593. return 1;
  4594. }
  4595. else if (GetPlayerWantedLevel(pId) > 1)
  4596. {
  4597. SendClientMessage(playerid, COLOR_GREY, "This player is a criminal,arrest him[/ar]");
  4598. return 1;
  4599. }
  4600. }
  4601. }
  4602. }
  4603. else
  4604. {
  4605. return SendClientMessage(playerid, COLOR_GREY, "You are not a police officer!");
  4606. }
  4607. return 1;
  4608. }
  4609.  
  4610. COMMAND:ticket(playerid,params[])
  4611. {
  4612. return cmd_tk(playerid, params);
  4613. }
  4614.  
  4615. COMMAND:ar(playerid,params[])
  4616. {
  4617. new pId;
  4618. new file[256];
  4619. if(gTeam[playerid] == TEAM_LSPD)
  4620. {
  4621. if(sscanf(params, "d", pId)) return SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: /ar [ID]");
  4622. else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
  4623. else
  4624. {
  4625. new Float:x, Float:y, Float:z;
  4626. GetPlayerPos(pId, x, y, z);
  4627. if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
  4628. {
  4629. new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250], string2[256], string3[100], string4[100];
  4630. GetPlayerName(playerid, pname, sizeof(pname));
  4631. GetPlayerName(pId, aname, sizeof(aname));
  4632. if (GetPlayerWantedLevel(pId) == 0)
  4633. {
  4634. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player isn't a criminal!");
  4635. return 1;
  4636. }
  4637. else if (GetPlayerWantedLevel(pId) == 1)
  4638. {
  4639. SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: This player's wanted level is 1.Please use /tk [ID]");
  4640. return 1;
  4641. }
  4642. else if (GetPlayerWantedLevel(pId) > 1)
  4643. {
  4644. new WantedLevel = GetPlayerWantedLevel(pId);
  4645. PlayerInfo[playerid][pJailTime] = WantedLevel*10000*10;
  4646. SetPlayerInterior(pId, 3);
  4647. new rand = random(sizeof(JailCellSpawns));
  4648. SetPlayerPos(pId, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
  4649. SetTimerEx("UnJail",WantedLevel*10000*10,0,"i",pId);
  4650. InJail[pId] = 1;
  4651. dini_IntSet(file, "Jailed", 1);
  4652. GivePlayerMoney(pId, -WantedLevel*300);
  4653. GivePlayerMoney(playerid, WantedLevel*300);
  4654. ResetPlayerWeapons(pId);
  4655. SetPlayerWantedLevel(pId, 0);
  4656. TogglePlayerControllable(pId, 0);
  4657. format(string1, sizeof(string1), "<< B.E.G Wars : %s(%d) Has Ben Arrested By Officer %s(%d) for %d miliseconds>>", aname, pId, pname, playerid, PlayerInfo[playerid][pJailTime]);
  4658. SendClientMessageToAll(COLOR_SAND, string1);
  4659. format(string2, sizeof(string2), "^^ You have been sent to jail for %d miliseconds killing a person! ^^", PlayerInfo[playerid][pJailTime], WantedLevel);
  4660. SendClientMessage(pId, COLOR_YELLOW, string2);
  4661. format(string3, sizeof(string3), "You have recived bonus for arresting a suspect!", WantedLevel, WantedLevel);
  4662. SendClientMessage(playerid, 0xFF0000AA, string3);
  4663. format(string4, sizeof(string4), "You have payed penalty for having Wanted Level!", WantedLevel, WantedLevel);
  4664. SendClientMessage(pId, COLOR_YELLOW, string4);
  4665. return 1;
  4666. }
  4667. }
  4668. }
  4669. }
  4670. else
  4671. {
  4672. return SendClientMessage(playerid, COLOR_GREY, "You are not a LSPD member!");
  4673. }
  4674. return 1;
  4675. }
  4676.  
  4677. forward MessageToAdmins(color,const string[]);
  4678. public MessageToAdmins(color,const string[])
  4679. {
  4680. for(new i = 0; i <= MAX_PLAYERS; i++)
  4681. {
  4682. if(IsPlayerConnected(i) == 1)
  4683. {
  4684. if (PlayerInfo[i][pAdminLevel] >= 1)
  4685. {
  4686. SendClientMessage(i, COLOR_YELLOW, string);
  4687. }
  4688. }
  4689. }
  4690. return 1;
  4691. }
  4692.  
  4693. public MessageToCops(color,const string[])
  4694. {
  4695. for(new i = 0; i <= MAX_PLAYERS; i++)
  4696. {
  4697. if(IsPlayerConnected(i) == 1)
  4698. {
  4699. if(gTeam[i] == TEAM_LSPD)
  4700. {
  4701. SendClientMessage(i, COLOR_BLUE, string);
  4702. }
  4703. }
  4704. }
  4705. return 1;
  4706. }
  4707. ReturnUser(text[], playerid = INVALID_PLAYER_ID)
  4708. {
  4709. new pos = 0;
  4710. while (text[pos] < 0x21) // Strip out leading spaces
  4711. {
  4712. if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
  4713. pos++;
  4714. }
  4715. new userid = INVALID_PLAYER_ID;
  4716. if (IsNumeric(text[pos])) // Check whole passed string
  4717. {
  4718. // If they have a numeric name you have a problem (although names are checked on id failure)
  4719. userid = strval(text[pos]);
  4720. if (userid >=0 && userid < MAX_PLAYERS)
  4721. {
  4722. if(!IsPlayerConnected(userid))
  4723. {
  4724. /*if (playerid != INVALID_PLAYER_ID)
  4725. {
  4726. SendClientMessage(playerid, 0xFF0000AA, "User not connected");
  4727. }*/
  4728. userid = INVALID_PLAYER_ID;
  4729. }
  4730. else
  4731. {
  4732. return userid; // A player was found
  4733. }
  4734. }
  4735. /*else
  4736. {
  4737. if (playerid != INVALID_PLAYER_ID)
  4738. {
  4739. SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
  4740. }
  4741. userid = INVALID_PLAYER_ID;
  4742. }
  4743. return userid;*/
  4744. // Removed for fallthrough code
  4745. }
  4746. // They entered [part of] a name or the id search failed (check names just incase)
  4747. new len = strlen(text[pos]);
  4748. new count = 0;
  4749. new name[MAX_PLAYER_NAME];
  4750. for (new i = 0; i < MAX_PLAYERS; i++)
  4751. {
  4752. if (IsPlayerConnected(i))
  4753. {
  4754. GetPlayerName(i, name, sizeof (name));
  4755. if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
  4756. {
  4757. if (len == strlen(name)) // Exact match
  4758. {
  4759. return i; // Return the exact player on an exact match
  4760. // Otherwise if there are two players:
  4761. // Me and MeYou any time you entered Me it would find both
  4762. // And never be able to return just Me's id
  4763. }
  4764. else // Partial match
  4765. {
  4766. count++;
  4767. userid = i;
  4768. }
  4769. }
  4770. }
  4771. }
  4772. if (count != 1)
  4773. {
  4774. if (playerid != INVALID_PLAYER_ID)
  4775. {
  4776. if (count)
  4777. {
  4778. SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
  4779. }
  4780. else
  4781. {
  4782. SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
  4783. }
  4784. }
  4785. userid = INVALID_PLAYER_ID;
  4786. }
  4787. return userid; // INVALID_USER_ID for bad return
  4788. }
  4789.  
  4790. stock IsNumeric(const string[]) {
  4791. new length=strlen(string);
  4792. if (length==0) return false;
  4793. for (new i = 0; i < length; i++) {
  4794. if (
  4795. (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
  4796. || (string[i]=='-' && i!=0) // A '-' but not at first.
  4797. || (string[i]=='+' && i!=0) // A '+' but not at first.
  4798. ) return false;
  4799. }
  4800. if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
  4801. return true;
  4802. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement