Guest User

Battlefield - Dessert by EquinoX/Flaken

a guest
Jan 26th, 2014
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 223.16 KB | None | 0 0
  1.  
  2.  
  3. #include <a_samp>
  4. #include <core>
  5. #include <float>
  6. #include <streamer>
  7. #include <YSI\y_ini>
  8. #include <zcmd>
  9. #include <foreach>
  10. #include <sscanf2> //thanks to Y_Less for this
  11.  
  12. #define PASS_MIN_LENGHT 4 //min lenght of the password
  13. #define PASS_MAX_LENGHT 12 // max lenght of the password
  14. #define XST_ADMIN_VER "version v1.0" //xstadmin version!!
  15. #define XST_ADMIN_CHAT true //the xstadmin's chat
  16.  
  17. #define MAX_PING 500 // the max ping a player can have
  18. #define MAX_LEVEL 5 // max level of an admin
  19. #define MAX_VIP 3 // max level of a vip
  20. #define ADMIN_SIGN '!' // sign used in chat for the admins chat
  21. #define VIP_SIGN '@' // sign used in chat for vips chat
  22. #define MAX_WARNINGS 4 // if player exceds this warnings he get banned
  23.  
  24. #define Ranks 353
  25.  
  26.  
  27.  
  28. #define ADMIN_FIRSTRANK "Trial Moderator" //admin rank 1 name
  29. #define ADMIN_SECONDRANK "Moderator" //admin rank 2 name
  30. #define ADMIN_THIRDRANK "Administrator" //admin rank 3 name
  31. #define ADMIN_FOURTHRANK "High Administator" //admin rank 4 name
  32. #define ADMIN_FIFTHHRANK "Server Owner" //admin rank 5 and bigger
  33.  
  34. #define ADMIN_FIRSTRANK_COLOR 0x1BE032 // color of rank 1 admin
  35. #define ADMIN_SECONDRANK_COLOR 0xD9E01B // color of the rank 2 admin
  36. #define ADMIN_THIRDRANK_COLOR 0xE01B1B //color of the rank 3 admin
  37. #define ADMIN_FOURTHRANK_COLOR 0x391BE0 //color of the rank 4 admin
  38. #define ADMIN_FIFTHRANK_COLOR 0xE01BD9//color of the rank 5 admin
  39.  
  40. #define VIP_FIRSTRANK "Silver VIP" // vip rank 1 name
  41. #define VIP_SECONDRANK "Gold VIP" // vip rank 2 name
  42. #define VIP_THIRDRANK "Ruby VIP" // vip rank 3 name
  43.  
  44. #define VIP_FIRSTRANK_COLOR 0xFFFFFF // color of rank 1 vip
  45. #define VIP_SECONDRANK_COLOR 0xD5B6FA // color of rank 2 vip
  46. #define VIP_THIRDRANK_COLOR 0xFCF50F // color of rank 3 vip
  47.  
  48. #define XSTADMIN_PRIMARYCOLOR 0xC91BE0 // primary color in chat
  49. #define XSTADMIN_SECONDARYCOLOR 0x20E3C9 //secondary color in chat
  50.  
  51. #define XSTADMIN_PRC "{C91BE0}" //prim color for chat messages
  52. #define XSTADMIN_SCC "{20E3C9}" //second color for chat messages
  53.  
  54. #define SPECTATE_NONE 0
  55. #define SPECTATE_PLAYER 1
  56. #define SPECTATE_VEHICLE 2
  57.  
  58. #define NOT_CONNECT(%0); if(!IsPlayerConnected(%0) ) return SendClientMessage(playerid, -1, "Player is not online.");
  59.  
  60. new gTeam[MAX_PLAYERS];
  61. #define MAPICON_LOCAL 0
  62. #define USARMY 0
  63. #define SAS 1
  64. #define CHINA 2
  65. #define RUSSIA 3
  66. #define SYRIA 4
  67. #define TALIBAN 5
  68. #define ISLAM 6
  69. #define GERMANY 7
  70. #define JAPAN 8
  71. #define KOREA 9
  72. #define NONE 10
  73.  
  74. #define SERVER_NAME "BF - Desserts" //Name of the server
  75. #define PLAYERFILE_LOCATION "Users/%s.ini" //Location of the players's files
  76. #define REGISTER_DIALOG 1 // dialogid of register
  77. #define LOGIN_DIALOG 2 // dialogid of login
  78. #define SAVE_SKIN true // if true skin will save, else not
  79. #define PASS_MIN_LENGHT 4 //min lenght of the password
  80. #define PASS_MAX_LENGHT 12 // max lenght of the password
  81.  
  82. #define XSTADMIN_PRIMARYCOLOR 0xC91BE0 // primary color in chat
  83. #define XSTADMIN_SECONDARYCOLOR 0x20E3C9 //secondary color in chat
  84.  
  85. #define XSTADMIN_PRC "{C91BE0}" //prim color for chat messages
  86. #define XSTADMIN_SCC "{20E3C9}" //second color for chat messages
  87.  
  88. #define USARMY_COLOR 0x33CCFFAA
  89. #define SAS_COLOR 0x33AA33AA
  90. #define CHINA_COLOR 0xFFC0CBAA
  91. #define RUSSIA_COLOR 0xAA3333AA
  92. #define SYRIA_COLOR 0xA52A2AFF
  93. #define TALIBAN_COLOR 0xFFFFFFAA
  94. #define ISLAM_COLOR 0xA9A9A9FF
  95. #define GERMANY_COLOR 0xFF9900AA
  96. #define JAPAN_COLOR 0x800080FF
  97. #define KOREA_COLOR 0xFFFF00AA
  98. #define NONE_COLOR 0x00000043
  99.  
  100. #define COLOR_LIGHTBLUE 0x33CCFFAA
  101. #define COLOR_GREEN 0x33AA33AA
  102. #define COLOR_PINK 0xFFC0CBAA
  103. #define COLOR_RED 0xAA3333AA
  104. #define COLOR_BROWN 0xA52A2AFF
  105. #define COLOR_WHITE 0xFFFFFFAA
  106. #define COLOR_DARKGRAY 0xA9A9A9FF
  107. #define COLOR_ORANGE 0xFF9900AA
  108. #define COLOR_PURPLE 0x800080FF
  109. #define COLOR_YELLOW 0xFFFF00AA
  110. #define COLOR_NONE 0x00000043
  111. #define COLOR_DARKOLIVEGREEN 0x556B2FFF
  112. #define COLOR_FORESTGREEN 0x228B22FF
  113.  
  114. #define Ranks 353
  115.  
  116. #define SnakeFarm 0
  117. #define CiaHeadquaters 1
  118. #define PetrolStation 2
  119. #define BaitShop 3
  120. #define ClukinBell 4
  121. #define Ranch 5
  122. #define RadarBase 6
  123. #define OilDepot 7
  124. #define Quarry 8
  125. #define TheBigSpreadRanch 9
  126.  
  127. native WP_Hash(buffer[],len,const str[]); // Thanks to Y_Less for Whirlpool hashing system
  128.  
  129. enum pStats
  130. {
  131. Password[129], //password of the player
  132. Admin, //admin rank
  133. Score, //score of the player
  134. Cash, //player's cash
  135. Vip, //player's vip
  136. Kills, //kills of player
  137. Deaths, //Deaths of player
  138. Hours, //Hours of player on server
  139. Minute, //Minute of player
  140. Second, //second of player
  141. Muted, //if player is muted
  142. Jailed, // if player is jailed
  143. Warnings, //warnings of player: if player exced MAX_WARNINGS -> ban
  144. Banned, //if Player is banned ( name)
  145. BanTime, // Ban time , in days,
  146. Skin, // skin of the player
  147. Duty, // if player is on duty
  148. Godmode, //godmode,
  149. Spectator // if player spectate
  150. }
  151. new XST_Info[MAX_PLAYERS][pStats];
  152. new AHide[MAX_PLAYERS] = 0;
  153.  
  154.  
  155.  
  156. new iCP[MAX_PLAYERS];
  157. new UnderAttack[30];
  158. new Captured[30];
  159. new tCP[30];
  160. new CP[30];
  161. new Zone[30];
  162. new timer[MAX_PLAYERS][30];
  163. new CountVar[MAX_PLAYERS] = 25;
  164. new InCP[MAX_PLAYERS][30];
  165. new CountTime[MAX_PLAYERS];
  166.  
  167.  
  168. new Text:Textdraw1;
  169. new Text:Textdraw2;
  170. new obj,Towercar;
  171.  
  172. new GZ_USARMY;
  173. new GZ_SAS;
  174. new GZ_CHINA;
  175. new GZ_RUSSIA;
  176. new GZ_SYRIA;
  177. new GZ_TALIBAN;
  178. new GZ_ISLAM;
  179. new GZ_GERMANY;
  180. new GZ_JAPAN;
  181. new GZ_KOREA;
  182.  
  183. stock AddScore(playerid, score)
  184. {
  185. if(score > 0)
  186. return SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
  187. if(score < 0)
  188. return SetPlayerScore(playerid, GetPlayerScore(playerid)-score);
  189.  
  190. return 1;
  191. }
  192.  
  193. stock GetAdminRank(playerid)
  194. {
  195. new rank[128];
  196. if(XST_Info[playerid][Admin] == 1) rank = (ADMIN_FIRSTRANK);
  197. if(XST_Info[playerid][Admin] == 2) rank = (ADMIN_SECONDRANK);
  198. if(XST_Info[playerid][Admin] == 3) rank = (ADMIN_THIRDRANK);
  199. if(XST_Info[playerid][Admin] == 4) rank = (ADMIN_FOURTHRANK);
  200. if(XST_Info[playerid][Admin] >= 5) rank = (ADMIN_FIFTHHRANK);
  201. return rank;
  202. }
  203.  
  204. stock IsNOTLevel(playerid, level)
  205. {
  206. if(XST_Info[playerid][Admin] == level) {
  207. return SendClientMessage(playerid, -1, "You're not authorized to use this command");
  208. }
  209. else return 1;
  210. }
  211.  
  212. stock IsNOTAdminLevel(playerid, level)
  213. {
  214. if(XST_Info[playerid][Vip] == level) {
  215. return SendClientMessage(playerid, -1, "You're not authorized to use this command");
  216. }
  217. else return 1;
  218. }
  219.  
  220. stock GetVipRank(playerid)
  221. {
  222. new rank[128];
  223. if(XST_Info[playerid][Vip] == 1) rank = (VIP_FIRSTRANK);
  224. if(XST_Info[playerid][Vip] == 2) rank = (VIP_SECONDRANK);
  225. if(XST_Info[playerid][Vip] >= 3) rank = (VIP_THIRDRANK);
  226. return rank;
  227. }
  228.  
  229.  
  230.  
  231. stock AdminMessage(playerid, cmdtext[])
  232. {
  233. new string[256];
  234. format(string, sizeof(string), "[Adm] %s %s used admin command %s" , GetAdminRank(playerid), GetName(playerid), cmdtext);
  235. foreach(Player, i) if(XST_Info[i][Admin] == 4) return SendClientMessageToAllEx(playerid, -1, string);
  236. print(string);
  237. return 1;
  238. }
  239.  
  240. stock SendClientMessageToAllEx(exception, color, const message[])
  241. {
  242. for(new i; i<MAX_PLAYERS; i++)
  243. {
  244. if(IsPlayerConnected(i))
  245. {
  246. if(i != exception)
  247. {
  248. SendClientMessage(i, color, message);
  249. }
  250. }
  251. }
  252. return 1;
  253. }
  254.  
  255. stock BanPlayer( playerid ,reason[], playername[] ,adminname[])
  256. {
  257. new year, month, day,
  258. hour, minute, second;
  259. new string[256];
  260. getdate(year, month, day);
  261. gettime(hour,minute,second);
  262. format(string, sizeof(string), "[%d/%d/%d] [ %d:%d:%d]" , year, month, day, hour, minute, second);
  263. new INI: ban = INI_Open(GetBanFile(playerid) );
  264. INI_SetTag(ban, "Players Banned Stats");
  265. INI_WriteString(ban, "PlayerName", playername);
  266. INI_WriteString(ban, "AdminName", adminname);
  267. INI_WriteString(ban, "Reason", reason);
  268. INI_WriteString(ban, "Date", string);
  269. INI_Close(ban);
  270. BanEx(playerid, reason);
  271. }
  272.  
  273. stock GetWeaponNameByID(weaponid)
  274. {
  275. new string[256];
  276. if(weaponid == 1) string = ("Brass Knuckles");
  277. if(weaponid == 2) string = ("Golf Club");
  278. if(weaponid == 3) string = ("Nightstick");
  279. if(weaponid == 4) string = ("Knife");
  280. if(weaponid == 5) string = ("Baseball Bat");
  281. if(weaponid == 6) string = ("Shovel");
  282. if(weaponid == 7) string = ("Pool Cue");
  283. if(weaponid == 8) string = ("Katana");
  284. if(weaponid == 9) string = ("Chainsaw");
  285. if(weaponid == 10) string = ("Double-ended Dildo");
  286. if(weaponid == 11) string = ("Dildo");
  287. if(weaponid == 12) string = ("Vibrator");
  288. if(weaponid == 13) string = ("Silver Vibrator");
  289. if(weaponid == 14) string = ("Flowers");
  290. if(weaponid == 15) string = ("Cane");
  291. if(weaponid == 16) string = ("Grenade");
  292. if(weaponid == 17) string = ("Tear Gas");
  293. if(weaponid == 18) string = ("Molotov Cocktail");
  294. if(weaponid == 22) string = ("9mm");
  295. if(weaponid == 23) string = ("Silenced 9mm");
  296. if(weaponid == 24) string = ("Desert Eagle");
  297. if(weaponid == 25) string = ("Shotgun");
  298. if(weaponid == 26) string = ("Sawnoff Shotgun");
  299. if(weaponid == 27) string = ("Combat Shotgun");
  300. if(weaponid == 28) string = ("Micro SMG/Uzi");
  301. if(weaponid == 29) string = ("MP5");
  302. if(weaponid == 30) string = ("AK-47");
  303. if(weaponid == 31) string = ("M4");
  304. if(weaponid == 32) string = ("Tec-9");
  305. if(weaponid == 33) string = ("Country Rifle");
  306. if(weaponid == 34) string = ("Sniper Rifle");
  307. if(weaponid == 35) string = ("RPG");
  308. if(weaponid == 36) string = ("HS Rocket");
  309. if(weaponid == 37) string = ("Flamethrower");
  310. if(weaponid == 38) string = ("Minigun");
  311. if(weaponid == 39) string = ("Satchel Charge");
  312. if(weaponid == 40) string = ("Detonator");
  313. if(weaponid == 41) string = ("Spraycan");
  314. if(weaponid == 42) string = ("Fire Extinguisher");
  315. if(weaponid == 43) string = ("Camera");
  316. if(weaponid == 44) string = ("Night Vis Goggles");
  317. if(weaponid == 45) string = ("Thermal Goggles");
  318. if(weaponid == 46) string = ("Parachute");
  319. return string;
  320. }
  321.  
  322. stock GetADuty(playerid)
  323. {
  324. new string[128];
  325. if(XST_Info[playerid][Duty] == 0) string = ("{FA2828}False");
  326. if(XST_Info[playerid][Duty] == 1) string = ("{1BE01B}True");
  327. return string;
  328. }
  329.  
  330. stock ReturnAdminColor(playerid)
  331. {
  332. new color;
  333. if(XST_Info[playerid][Admin] == 1) color = ADMIN_FIRSTRANK_COLOR;
  334. if(XST_Info[playerid][Admin] == 2) color = ADMIN_SECONDRANK_COLOR;
  335. if(XST_Info[playerid][Admin] == 3) color = ADMIN_THIRDRANK_COLOR;
  336. if(XST_Info[playerid][Admin] == 4) color = ADMIN_FOURTHRANK_COLOR;
  337. if(XST_Info[playerid][Admin] >= 5) color = ADMIN_FIFTHRANK_COLOR;
  338. return color;
  339. }
  340.  
  341. stock ReturnVipColor(playerid)
  342. {
  343. new color;
  344. if(XST_Info[playerid][Admin] == 1) color = VIP_FIRSTRANK_COLOR;
  345. if(XST_Info[playerid][Admin] == 2) color = VIP_SECONDRANK_COLOR;
  346. if(XST_Info[playerid][Admin] >= 3) color = VIP_THIRDRANK_COLOR;
  347. return color;
  348. }
  349.  
  350. stock SendVipMessage(playerid ,message[])
  351. {
  352. foreach(Player, i)
  353. {
  354. if(XST_Info[i][Vip] > 0)
  355. {
  356. SendClientMessage(i, ReturnVipColor(playerid), message);
  357. }
  358. }
  359. }
  360.  
  361. stock SendAdminMessage(playerid , message[])
  362. {
  363. foreach(Player, i)
  364. {
  365. if(XST_Info[i][Admin] > 0)
  366. {
  367. SendClientMessage(i, ReturnAdminColor(playerid), message);
  368. }
  369. }
  370. }
  371.  
  372.  
  373. stock GetName(playerid)
  374. {
  375. new name[MAX_PLAYER_NAME];
  376. GetPlayerName(playerid, name, sizeof(name));
  377. return name;
  378. }
  379.  
  380. stock GetPlayerFile(playerid)
  381. {
  382. new string[128];
  383. format(string, sizeof(string), "Users/%s.ini" , GetName(playerid) );
  384. return string;
  385. }
  386.  
  387. stock GetBanFile(playerid)
  388. {
  389. new string[128];
  390. format(string, sizeof(string), "Users/Bans/%s.ini" , GetName(playerid) );
  391. return string;
  392. }
  393.  
  394. stock ShowRegisterDialog(playerid)
  395. {
  396. new string[128];
  397. format(string, sizeof(string), ""XSTADMIN_SCC"Welcome %s\non "XSTADMIN_PRC" %s\nPlease write your password below in order to register" , GetName(playerid), SERVER_NAME );
  398. return ShowPlayerDialog(playerid, REGISTER_DIALOG, DIALOG_STYLE_PASSWORD, "Register", string, "Register", "Exit");
  399. }
  400.  
  401.  
  402. stock ShowLoginDialog(playerid)
  403. {
  404. new string[128];
  405. format(string, sizeof(string), ""XSTADMIN_SCC"Welcome %s\non "XSTADMIN_PRC" %s\nPlease write your password below in order to login" , GetName(playerid), SERVER_NAME );
  406. return ShowPlayerDialog(playerid, LOGIN_DIALOG , DIALOG_STYLE_PASSWORD , "Login", string, "Login", "Exit");
  407. }
  408.  
  409.  
  410. forward TeamProtection();
  411. forward AddTime();
  412. forward ExcedWarn(id);
  413. forward KickP(id);
  414. forward destroyThisObject(objid);
  415. forward loadplayerdata(playerid, name[], value[]);
  416. forward SetPlayerToTeamColor(playerid);
  417. forward SetupPlayerForClassSelection(playerid);
  418. forward SetPlayerTeamFromClass(playerid,classid);
  419.  
  420. //---------------------------------------------------------
  421.  
  422. main()
  423. {
  424. print("\n----------------------------------");
  425. print(" Battlefield Desserts Flaken\n");
  426. print("----------------------------------\n");
  427. }
  428. //---------------------------------------------------------
  429.  
  430. public KickP(id)
  431. {
  432. Kick(id);
  433. return 1;
  434. }
  435.  
  436. public ExcedWarn(id)
  437. {
  438. BanPlayer(id, "Exceded max warnings", GetName(id), "AdmBot");
  439. return 1;
  440. }
  441.  
  442. public loadplayerdata(playerid, name[], value[])
  443. {
  444. INI_String("Password", XST_Info[playerid][Password], 129);
  445. INI_Int("Admin", XST_Info[playerid][Admin]);
  446. INI_Int("Vip", XST_Info[playerid][Vip]);
  447. INI_Int("Kills", XST_Info[playerid][Kills]);
  448. INI_Int("Deaths", XST_Info[playerid][Deaths]);
  449. INI_Int("Cash", XST_Info[playerid][Cash]);
  450. INI_Int("Score", XST_Info[playerid][Score]);
  451. INI_Int("Hours", XST_Info[playerid][Hours]);
  452. INI_Int("Minute", XST_Info[playerid][Minute]);
  453. INI_Int("Second", XST_Info[playerid][Second]);
  454. INI_Int("Warnings", XST_Info[playerid][Warnings]);
  455. INI_Int("Muted", XST_Info[playerid][Muted]);
  456. INI_Int("Jailed", XST_Info[playerid][Jailed]);
  457. INI_Int("Banned", XST_Info[playerid][Banned]);
  458. INI_Int("BanTime", XST_Info[playerid][BanTime]);
  459. #if SAVE_SKIN == true
  460. INI_Int("Skin", XST_Info[playerid][Skin]);
  461. #endif
  462. return 1;
  463. }
  464.  
  465. public SetPlayerToTeamColor(playerid)
  466. {
  467. if(gTeam[playerid] == USARMY)
  468. {
  469. SetPlayerColor(playerid,USARMY_COLOR);
  470. }
  471. else if(gTeam[playerid] == SAS)
  472. {
  473. SetPlayerColor(playerid,SAS_COLOR);
  474. }
  475. else if(gTeam[playerid] == CHINA)
  476. {
  477. SetPlayerColor(playerid,CHINA_COLOR);
  478. }
  479. else if(gTeam[playerid] == RUSSIA)
  480. {
  481. SetPlayerColor(playerid,RUSSIA_COLOR);
  482. }
  483. else if(gTeam[playerid] == SYRIA)
  484. {
  485. SetPlayerColor(playerid,SYRIA_COLOR);
  486. }
  487. else if(gTeam[playerid] == TALIBAN)
  488. {
  489. SetPlayerColor(playerid,TALIBAN_COLOR);
  490. }
  491. else if(gTeam[playerid] == ISLAM)
  492. {
  493. SetPlayerColor(playerid,ISLAM_COLOR);
  494. }
  495. else if(gTeam[playerid] == GERMANY)
  496. {
  497. SetPlayerColor(playerid,GERMANY_COLOR);
  498. }
  499. else if(gTeam[playerid] == JAPAN)
  500. {
  501. SetPlayerColor(playerid,JAPAN_COLOR);
  502. }
  503. else if(gTeam[playerid] == KOREA)
  504. {
  505. SetPlayerColor(playerid,KOREA_COLOR);
  506. }
  507. }
  508.  
  509. public SetupPlayerForClassSelection(playerid)
  510. {
  511. SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
  512. SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
  513. SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
  514. SetPlayerFacingAngle(playerid,0.0);
  515. }
  516.  
  517. public SetPlayerTeamFromClass(playerid,classid)
  518. {
  519. if(classid == 0)
  520. {
  521. gTeam[playerid] = USARMY;
  522. }
  523. else if(classid == 1)
  524. {
  525. gTeam[playerid] = SAS;
  526. }
  527. else if(classid == 2)
  528. {
  529. gTeam[playerid] = CHINA;
  530. }
  531. else if(classid == 3)
  532. {
  533. gTeam[playerid] = RUSSIA;
  534. }
  535. else if(classid == 4)
  536. {
  537. gTeam[playerid] = SYRIA;
  538. }
  539. else if(classid == 5)
  540. {
  541. gTeam[playerid] = TALIBAN;
  542. }
  543. else if(classid == 6)
  544. {
  545. gTeam[playerid] = ISLAM;
  546. }
  547. else if(classid == 7)
  548. {
  549. gTeam[playerid] = GERMANY;
  550. }
  551. else if(classid == 8)
  552. {
  553. gTeam[playerid] = JAPAN;
  554. }
  555. else if(classid == 9)
  556. {
  557. gTeam[playerid] = KOREA;
  558. }
  559. }
  560. public OnGameModeInit()
  561. {
  562. SetGameModeText("Battlefield V.1.0");
  563. ShowPlayerMarkers(1);
  564. ShowNameTags(1);
  565. SetWorldTime(12);
  566. UsePlayerPedAnims();
  567. DisableInteriorEnterExits();
  568. AddStaticPickup(1242, 3, -23.1637,1845.9777,35.2997, -1);// Armour
  569. AddStaticPickup(1240, 3, -55.9110,1817.4683,35.3270, -1);// Health
  570. SetTimer("TeamProtection", 5000 ,true);
  571.  
  572. if(!fexist("Users") ) {
  573. print("Server's Console closed ->> reason: xstAdmin couldn't found file users, xstadmin in scriptfiles: create a folder called xstAdmin, open it and make another called Users");
  574. SendRconCommand("exit");
  575. }
  576.  
  577.  
  578. CP[SnakeFarm] = CreateDynamicCP(-37.4375,2346.6733,24.1406,2.0);
  579. Zone[SnakeFarm] = GangZoneCreate(-80.0781250000005,2281.25,23.4375,2408.203125);
  580. UnderAttack[SnakeFarm] = -1;
  581. Captured[SnakeFarm] = -1;
  582. tCP[SnakeFarm] = NONE;
  583.  
  584. CP[CiaHeadquaters] = CreateDynamicCP(-551.1266,2593.3501,53.9348,2.0);
  585. Zone[CiaHeadquaters] = GangZoneCreate(-636.71875,2527.34375,-496.09375,2658.203125);
  586. UnderAttack[CiaHeadquaters] = -1;
  587. Captured[CiaHeadquaters] = -1;
  588. tCP[CiaHeadquaters] = NONE;
  589.  
  590. CP[PetrolStation] = CreateDynamicCP(-1318.2217,2694.1321,50.0625,2.0);
  591. Zone[PetrolStation] = GangZoneCreate(-1390.625,2630.859375,-1236.328125,2738.28125);
  592. UnderAttack[PetrolStation] = -1;
  593. Captured[PetrolStation] = -1;
  594. tCP[PetrolStation] = NONE;
  595.  
  596. CP[BaitShop] = CreateDynamicCP(-1350.1863,2057.0811,52.6337,2.0);
  597. Zone[BaitShop] = GangZoneCreate(-1400.390625,2023.4375,-1298.828125,2099.609375);
  598. UnderAttack[BaitShop] = -1;
  599. Captured[BaitShop] = -1;
  600. tCP[BaitShop] = NONE;
  601.  
  602. CP[ClukinBell] = CreateDynamicCP(-1212.6385,1824.0710,41.7188,2.0);
  603. Zone[ClukinBell] = GangZoneCreate(-1259.765625,1767.578125,-1140.625,1867.1875);
  604. UnderAttack[ClukinBell] = -1;
  605. Captured[ClukinBell] = -1;
  606. tCP[ClukinBell] = NONE;
  607.  
  608. CP[Ranch] = CreateDynamicCP(-310.7553,1767.5319,43.6406,2.0);
  609. Zone[Ranch] = GangZoneCreate(-376.953125,1714.84375,-240.234375,1832.03125);
  610. UnderAttack[Ranch] = -1;
  611. Captured[Ranch] = -1;
  612. tCP[Ranch] = NONE;
  613.  
  614. CP[RadarBase] = CreateDynamicCP(-350.0478,1570.0309,75.9279,2.0);
  615. Zone[RadarBase] = GangZoneCreate(-419.921875,1548.828125,-263.671875,1658.203125);
  616. UnderAttack[RadarBase] = -1;
  617. Captured[RadarBase] = -1;
  618. tCP[RadarBase] = NONE;
  619.  
  620. CP[OilDepot] = CreateDynamicCP(220.8755,1422.7489,10.5859,2.0);
  621. Zone[OilDepot] = GangZoneCreate(95.703125,1341.796875,283.203125,1486.328125);
  622. UnderAttack[OilDepot] = -1;
  623. Captured[OilDepot] = -1;
  624. tCP[OilDepot] = NONE;
  625.  
  626. CP[Quarry] = CreateDynamicCP(596.3820,870.3969,-43.1531,2.0);
  627. Zone[Quarry] = GangZoneCreate(478.515625,804.6875,773.4375,947.265625);
  628. UnderAttack[Quarry] = -1;
  629. Captured[Quarry] = -1;
  630. tCP[Quarry] = NONE;
  631.  
  632. CP[TheBigSpreadRanch] = CreateDynamicCP(694.6575,1945.5857,5.5391,2.0);
  633. Zone[TheBigSpreadRanch] = GangZoneCreate(638.671875,1904.296875,759.765625,2013.671875);
  634. UnderAttack[TheBigSpreadRanch] = -1;
  635. Captured[TheBigSpreadRanch] = -1;
  636. tCP[TheBigSpreadRanch] = NONE;
  637.  
  638.  
  639. GZ_USARMY = GangZoneCreate(109.375,1789.0625,355.46875,2097.65625);
  640. GZ_SAS = GangZoneCreate(-964.84375,1957.03125,-871.09375,2089.84375);
  641. GZ_CHINA = GangZoneCreate(-1050.78125,2738.28125,-828.125,2789.0625);
  642. GZ_RUSSIA = GangZoneCreate(-347.65625,2574.21875,-160.15625,2730.46875);
  643. GZ_SYRIA = GangZoneCreate(253.90625,2437.5,460.9375,2585.9375);
  644. GZ_TALIBAN = GangZoneCreate(-886.71875,1523.4375,-730.46875,1636.71875);
  645. GZ_ISLAM = GangZoneCreate(-111.328125,662.109375,70.3125,767.578125);
  646. GZ_GERMANY = GangZoneCreate(-402.34375,1101.5625,-273.4375,1218.75);
  647. GZ_JAPAN = GangZoneCreate(1019.53125,1664.0625,1157.2265625,1807.6171875);
  648. GZ_KOREA = GangZoneCreate(-2304.6875,2281.25,-2187.5,2351.5625);
  649.  
  650. obj = CreateObject(3279, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//tower
  651. Towercar = 470;
  652.  
  653. Textdraw1= TextDrawCreate(555, 5,"Battlefield Desserts");
  654. Textdraw2= TextDrawCreate(140, 1,"battlefield-desserts.boards.net");
  655. TextDrawAlignment(Textdraw1,2);
  656. TextDrawFont(Textdraw1,2);
  657. TextDrawLetterSize(Textdraw1,0.3,1.5);
  658. TextDrawColor(Textdraw1,0xFFFFFFAA);
  659. TextDrawSetOutline(Textdraw1,1);
  660. TextDrawSetProportional(Textdraw1,1);
  661. TextDrawSetShadow(Textdraw1,1);
  662.  
  663. Textdraw2= TextDrawCreate(570, 5,"");
  664. TextDrawAlignment(Textdraw2,2);
  665. TextDrawBackgroundColor(Textdraw2,0xFFFFFFAA);
  666. TextDrawFont(Textdraw2,3);
  667. TextDrawLetterSize(Textdraw2,0.3,1.5);
  668. TextDrawColor(Textdraw2,0x228B22FF);
  669. TextDrawSetOutline(Textdraw2,1);
  670. TextDrawSetProportional(Textdraw2,1);
  671. TextDrawSetShadow(Textdraw2,1);
  672.  
  673. //BASE OBJECTS
  674.  
  675. //DUEL BASE
  676.  
  677. CreateObject(3115,-50.0000000,1860.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (6)
  678. CreateObject(3115,-50.0000000,1841.1999500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (7)
  679. CreateObject(3115,-50.0000000,1822.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (8)
  680. CreateObject(3115,-50.0000000,1803.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (9)
  681. CreateObject(3115,-29.0000000,1860.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (10)
  682. CreateObject(3115,-29.0000000,1841.1999500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (11)
  683. CreateObject(3115,-29.0000000,1822.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (12)
  684. CreateObject(3115,-29.0000000,1803.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (13)
  685. CreateObject(2774,-59.0000000,1796.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
  686. CreateObject(2774,-20.0000000,1796.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
  687. CreateObject(2774,-20.0000000,1868.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (3)
  688. CreateObject(2774,-59.0000000,1868.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
  689. CreateObject(985,-24.0000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (1)
  690. CreateObject(985,-31.8000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (2)
  691. CreateObject(985,-39.6000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (3)
  692. CreateObject(985,-47.4000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (4)
  693. CreateObject(985,-55.2000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (5)
  694. CreateObject(985,-24.0000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (1)
  695. CreateObject(985,-31.8000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (2)
  696. CreateObject(985,-39.6000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (3)
  697. CreateObject(985,-47.4000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (4)
  698. CreateObject(985,-55.2000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (5)
  699. CreateObject(985,-24.0000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (1)
  700. CreateObject(985,-31.8000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (2)
  701. CreateObject(985,-39.6000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (3)
  702. CreateObject(985,-47.4000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (4)
  703. CreateObject(985,-55.2000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (5)
  704. CreateObject(985,-24.0000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (1)
  705. CreateObject(985,-31.8000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (2)
  706. CreateObject(985,-39.6000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (3)
  707. CreateObject(985,-47.4000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (4)
  708. CreateObject(985,-55.2000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (5)
  709. CreateObject(985,-59.1000000,1846.5999800,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (6)
  710. CreateObject(985,-59.1000000,1838.8000500,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (7)
  711. CreateObject(985,-59.1000000,1831.0000000,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (8)
  712. CreateObject(985,-59.1000000,1823.1999500,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (9)
  713. CreateObject(985,-59.1000000,1816.9000200,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (10)
  714. CreateObject(985,-59.1000000,1846.5999800,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (6)
  715. CreateObject(985,-59.1000000,1838.8000500,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (7)
  716. CreateObject(985,-59.1000000,1831.0000000,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (8)
  717. CreateObject(985,-59.1000000,1823.1999500,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (9)
  718. CreateObject(985,-59.1000000,1816.9000200,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (10)
  719. CreateObject(985,-20.1000000,1846.5999800,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (6)
  720. CreateObject(985,-20.1000000,1838.8000500,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (7)
  721. CreateObject(985,-20.1000000,1831.0000000,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (8)
  722. CreateObject(985,-20.1000000,1823.1999500,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (9)
  723. CreateObject(985,-20.1000000,1816.9000200,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (10)
  724. CreateObject(985,-20.1000000,1846.5999800,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (6)
  725. CreateObject(985,-20.1000000,1838.8000500,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (7)
  726. CreateObject(985,-20.1000000,1831.0000000,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (8)
  727. CreateObject(985,-20.1000000,1823.1999500,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (9)
  728. CreateObject(985,-20.1000000,1816.9000200,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (10)
  729. CreateObject(3115,-50.0000000,1841.1999500,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (7)
  730. CreateObject(3115,-50.0000000,1822.4000200,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (8)
  731. CreateObject(3115,-29.0000000,1841.1999500,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (11)
  732. CreateObject(3115,-29.0000000,1822.4000200,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (12)
  733. CreateObject(13749,-32.0000000,1807.3000500,27.6000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (1)
  734. CreateObject(13749,-47.0000000,1856.4000200,27.6000000,0.0000000,0.0000000,144.0000000); //object(cunte_curvesteps1) (2)
  735. CreateObject(3884,-59.9000000,1831.8000500,33.8000000,0.0000000,0.0000000,90.0000000); //object(samsite_sfxrf) (1)
  736. CreateObject(973,-60.3000000,1845.1999500,35.2000000,0.0000000,0.0000000,90.0000000); //object(sub_roadbarrier) (1)
  737. CreateObject(973,-60.3000000,1818.4000200,35.2000000,0.0000000,0.0000000,90.0000000); //object(sub_roadbarrier) (2)
  738. CreateObject(973,-58.7000000,1836.1999500,35.2000000,0.0000000,0.0000000,110.0000000); //object(sub_roadbarrier) (3)
  739. CreateObject(973,-58.7000000,1827.4000200,35.2000000,0.0000000,0.0000000,70.0000000); //object(sub_roadbarrier) (4)
  740. CreateObject(973,-18.5000000,1818.4000200,35.1000000,0.0000000,0.0000000,270.0000000); //object(sub_roadbarrier) (5)
  741. CreateObject(973,-18.5000000,1845.1999500,35.1000000,0.0000000,0.0000000,270.0000000); //object(sub_roadbarrier) (6)
  742. CreateObject(973,-20.2000000,1836.1999500,35.2000000,0.0000000,0.0000000,250.0000000); //object(sub_roadbarrier) (7)
  743. CreateObject(973,-20.1000000,1827.3000500,35.1000000,0.0000000,0.0000000,290.0000000); //object(sub_roadbarrier) (8)
  744. CreateObject(3884,-19.5000000,1831.8000500,33.8000000,0.0000000,0.0000000,270.0000000); //object(samsite_sfxrf) (2)
  745. CreateObject(2978,-23.7000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (1)
  746. CreateObject(2921,-20.3000000,1814.0999800,31.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (1)
  747. CreateObject(2978,-34.4000000,1849.6999500,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (2)
  748. CreateObject(2978,-44.9000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (3)
  749. CreateObject(2978,-55.2000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (4)
  750. CreateObject(2978,-23.8000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (5)
  751. CreateObject(2978,-34.5000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (6)
  752. CreateObject(2978,-44.8000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (7)
  753. CreateObject(2978,-55.3000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (8)
  754. CreateObject(2985,-55.3000000,1813.9000200,34.4000000,0.0000000,0.0000000,220.0000000); //object(minigun_base) (1)
  755. CreateObject(2985,-44.7000000,1813.9000200,34.4000000,0.0000000,0.0000000,250.0000000); //object(minigun_base) (2)
  756. CreateObject(2985,-34.5000000,1813.8000500,34.4000000,0.0000000,0.0000000,312.0000000); //object(minigun_base) (3)
  757. CreateObject(2985,-23.9000000,1813.9000200,34.4000000,0.0000000,0.0000000,330.0000000); //object(minigun_base) (4)
  758. CreateObject(2985,-23.7000000,1849.8000500,34.4000000,0.0000000,0.0000000,44.0000000); //object(minigun_base) (5)
  759. CreateObject(2985,-34.3000000,1849.6999500,34.4000000,0.0000000,0.0000000,56.0000000); //object(minigun_base) (6)
  760. CreateObject(2985,-44.8000000,1849.6999500,34.4000000,0.0000000,0.0000000,112.0000000); //object(minigun_base) (7)
  761. CreateObject(2985,-55.2000000,1849.8000500,34.4000000,0.0000000,0.0000000,124.0000000); //object(minigun_base) (8)
  762. CreateObject(3633,-20.8000000,1841.5000000,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (1)
  763. CreateObject(3633,-20.0000000,1848.9000200,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (2)
  764. CreateObject(3633,-55.9000000,1838.1999500,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (3)
  765. CreateObject(3633,-52.7000000,1814.9000200,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (4)
  766. CreateObject(1218,-46.7000000,1814.0999800,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel1) (1)
  767. CreateObject(1218,-32.8000000,1815.3000500,34.8000000,0.0000000,90.0000000,0.0000000); //object(barrel1) (2)
  768. CreateObject(1222,-32.1000000,1813.8000500,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel3) (1)
  769. CreateObject(1217,-21.9000000,1828.9000200,34.7000000,0.0000000,0.0000000,0.0000000); //object(barrel2) (1)
  770. CreateObject(1218,-23.0000000,1828.1999500,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel1) (3)
  771. CreateObject(1217,-56.3000000,1827.0000000,34.7000000,0.0000000,0.0000000,0.0000000); //object(barrel2) (2)
  772.  
  773. // USARMY BASE
  774.  
  775. AddStaticVehicleEx(520,87.0000000,1820.0000000,29.0000000,90.0000000,007,001,120); //Hydra
  776. AddStaticVehicleEx(520,87.0000000,1838.8000500,29.0000000,90.0000000,007,001,120); //Hydra
  777. AddStaticVehicleEx(520,87.0000000,1857.5999800,29.0000000,90.0000000,007,001,120); //Hydra
  778. AddStaticVehicleEx(520,87.0000000,1876.3000500,29.0000000,90.0000000,007,001,120); //Hydra
  779. AddStaticVehicleEx(425,178.0000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
  780. AddStaticVehicleEx(425,159.3000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
  781. AddStaticVehicleEx(425,140.5000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
  782. AddStaticVehicleEx(425,121.8000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
  783. AddStaticVehicleEx(425,103.1000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
  784. AddStaticVehicleEx(447,252.1000100,1789.0000000,28.0000000,180.0000000,007,001,120); //Seasparrow
  785. AddStaticVehicleEx(447,233.3999900,1789.0000000,28.0000000,180.0000000,007,001,120); //Seasparrow
  786. AddStaticVehicleEx(487,214.7000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Maverick
  787. AddStaticVehicleEx(487,196.0000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Maverick
  788. AddStaticVehicleEx(563,177.2000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Raindance
  789. AddStaticVehicleEx(563,158.3999900,1789.0000000,28.0000000,180.0000000,007,001,120); //Raindance
  790. AddStaticVehicleEx(548,139.7000000,1789.0000000,30.0000000,180.0000000,007,001,120); //Cargobob
  791. AddStaticVehicleEx(431,285.0000000,1798.0000000,17.9000000,270.0000000,007,001,120); //Bus
  792. AddStaticVehicleEx(437,285.0000000,1793.0000000,17.9000000,270.0000000,007,001,120); //Coach
  793. AddStaticVehicleEx(514,285.0000000,1787.0000000,18.3000000,270.0000000,007,001,120); //Tanker
  794. AddStaticVehicleEx(432,370.0000000,1985.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  795. AddStaticVehicleEx(432,370.0000000,1975.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  796. AddStaticVehicleEx(432,370.0000000,1950.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  797. AddStaticVehicleEx(432,370.0000000,1940.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  798. AddStaticVehicleEx(432,370.0000000,1915.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  799. AddStaticVehicleEx(432,370.0000000,1905.0000000,17.7000000,90.0000000,007,001,120); //Rhino
  800. AddStaticVehicleEx(444,291.0000000,1812.0000000,18.0000000,270.0000000,007,001,120); //Monster
  801. AddStaticVehicleEx(444,291.0000000,1805.0000000,18.0000000,270.0000000,007,001,120); //Monster
  802. AddStaticVehicleEx(522,224.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
  803. AddStaticVehicleEx(522,220.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
  804. AddStaticVehicleEx(522,216.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
  805. AddStaticVehicleEx(468,212.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
  806. AddStaticVehicleEx(468,208.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
  807. AddStaticVehicleEx(468,204.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
  808. AddStaticVehicleEx(471,200.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
  809. AddStaticVehicleEx(471,196.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
  810. AddStaticVehicleEx(471,192.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
  811. AddStaticVehicleEx(451,115.0000000,1864.0000000,17.5000000,270.0000000,007,001,120); //Turismo
  812. AddStaticVehicleEx(415,115.0000000,1860.0000000,17.6000000,270.0000000,007,001,120); //Cheetah
  813. AddStaticVehicleEx(411,115.0000000,1856.0000000,17.5000000,270.0000000,007,001,120); //Infernus
  814. AddStaticVehicleEx(541,115.0000000,1852.0000000,17.4000000,270.0000000,007,001,120); //Bullet
  815. AddStaticVehicleEx(433,132.0000000,1834.0000000,18.2000000,90.0000000,007,001,120); //Barracks
  816. AddStaticVehicleEx(433,132.0000000,1840.0000000,18.2000000,90.0000000,007,001,120); //Barracks
  817. AddStaticVehicleEx(470,132.0000000,1846.0000000,17.8000000,90.0000000,007,001,120); //Patriot
  818. AddStaticVehicleEx(470,132.0000000,1851.0000000,17.8000000,90.0000000,007,001,120); //Patriot
  819. AddStaticVehicleEx(470,132.0000000,1856.0000000,17.8000000,90.0000000,007,001,120); //Patriot
  820. AddStaticVehicleEx(601,122.0000000,1818.0000000,17.6000000,0.0000000,007,001,120); //S.W.A.T. Van
  821. AddStaticVehicleEx(476,277.0000000,1949.0000000,20.0000000,318.0000000,007,001,120); //Rustler
  822. AddStaticVehicleEx(476,277.0000000,1963.0000000,20.0000000,230.0000000,007,001,120); //Rustler
  823. AddStaticVehicleEx(476,277.0000000,1982.5999800,20.0000000,318.0000000,007,001,120); //Rustler
  824. AddStaticVehicleEx(476,277.0000000,2017.0000000,20.0000000,318.0000000,007,001,120); //Rustler
  825. AddStaticVehicleEx(476,277.0000000,2031.0000000,20.0000000,230.0000000,007,001,120); //Rustler
  826. AddStaticVehicleEx(476,277.0000000,1997.4000200,20.0000000,230.0000000,007,001,120); //Rustler
  827. AddStaticVehicleEx(476,300.0000000,2049.0000000,20.0000000,212.0000000,007,001,120); //Rustler
  828. AddStaticVehicleEx(476,312.7000100,2049.0000000,20.0000000,166.0000000,007,001,120); //Rustler
  829. AddStaticVehicleEx(548,121.0000000,1789.0000000,30.0000000,180.0000000,007,001,120); //Cargobob
  830. CreateObject(3268,306.5000000,2050.1001000,16.5000000,0.0000000,0.0000000,90.0000000); //object(mil_hangar1_) (1)
  831. CreateObject(3115,87.0000000,1876.3000500,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (1)
  832. CreateObject(3115,87.0000000,1857.5999800,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (2)
  833. CreateObject(3115,87.0000000,1838.8000500,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (3)
  834. CreateObject(3115,87.0000000,1820.0000000,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (4)
  835. CreateObject(3115,121.0000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (5)
  836. CreateObject(3115,139.7000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (6)
  837. CreateObject(3115,158.3999900,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (7)
  838. CreateObject(3115,177.2000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (8)
  839. CreateObject(3115,196.0000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (9)
  840. CreateObject(3115,214.7000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (10)
  841. CreateObject(3115,233.3999900,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (11)
  842. CreateObject(3115,252.1000100,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (12)
  843. CreateObject(3115,103.1000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (13)
  844. CreateObject(3115,121.8000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (14)
  845. CreateObject(3115,140.5000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (15)
  846. CreateObject(3115,159.3000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (16)
  847. CreateObject(3115,178.0000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (17)
  848. CreateObject(13749,128.0000000,1809.1992200,18.2000000,0.0000000,0.0000000,233.9980000); //object(cunte_curvesteps1) (1)
  849. CreateObject(13749,240.5000000,1809.1992200,18.2000000,0.0000000,0.0000000,233.9980000); //object(cunte_curvesteps1) (2)
  850. CreateObject(13749,184.5000000,1809.1992200,18.2000000,0.0000000,0.0000000,234.0000000); //object(cunte_curvesteps1) (3)
  851. CreateObject(13749,107.2998000,1831.3994100,18.2000000,0.0000000,0.0000000,141.9980000); //object(cunte_curvesteps1) (4)
  852. CreateObject(13749,107.3000000,1887.5000000,18.2000000,0.0000000,0.0000000,142.0000000); //object(cunte_curvesteps1) (5)
  853. CreateObject(13749,152.0000000,1930.5000000,19.2000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (6)
  854. CreateObject(2774,186.0000000,1960.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
  855. CreateObject(2774,186.0000000,1942.3000500,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
  856. CreateObject(2774,95.0000000,1942.3000500,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (3)
  857. CreateObject(2774,95.0000000,1960.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
  858. CreateObject(2774,78.0000000,1884.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (5)
  859. CreateObject(2774,95.7000000,1884.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (6)
  860. CreateObject(2774,95.7000000,1811.5000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (7)
  861. CreateObject(2774,79.0000000,1811.5000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (8)
  862. CreateObject(2774,113.0000000,1780.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (9)
  863. CreateObject(2774,113.0000000,1797.8000500,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (10)
  864. CreateObject(2774,260.0000000,1797.8000500,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (11)
  865. CreateObject(2774,260.0000000,1780.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (12)
  866. CreateObject(3268,214.0000000,1883.4000200,16.5000000,0.0000000,0.0000000,270.0000000); //object(mil_hangar1_) (2)
  867. CreateObject(3268,370.0000000,1945.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (5)
  868. CreateObject(3268,370.0000000,1910.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (6)
  869. CreateObject(13749,291.0000000,1865.0000000,18.0000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (7)
  870. CreateObject(13749,280.3999900,1888.0000000,18.0000000,0.0000000,0.0000000,230.0000000); //object(cunte_curvesteps1) (8)
  871. CreateObject(3113,269.7999900,1877.1999500,15.9000000,0.0000000,285.0000000,0.0000000); //object(carrier_door_sfse) (1)
  872. CreateObject(3884,226.0000000,1895.0000000,16.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (1)
  873. CreateObject(3884,202.0000000,1895.0000000,16.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (2)
  874. CreateObject(2985,190.3999900,1925.0000000,22.5000000,0.0000000,0.0000000,214.0000000); //object(minigun_base) (1)
  875. CreateObject(2985,223.3000000,1925.0000000,22.5000000,0.0000000,0.0000000,326.0000000); //object(minigun_base) (2)
  876. CreateObject(2985,206.8999900,1925.0000000,22.5000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (3)
  877. CreateObject(2921,199.0000000,1893.0000000,22.6000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (1)
  878. CreateObject(2921,138.2000000,1840.5999800,21.8000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (2)
  879. CreateObject(2921,360.0000000,1895.5999800,22.3000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (3)
  880. CreateObject(2921,360.0000000,1930.6999500,22.4000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (4)
  881. CreateObject(2921,360.0000000,1965.6999500,22.5000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (5)
  882. CreateObject(2978,208.3000000,1874.3000500,12.1000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (1)
  883. CreateObject(3787,204.3000000,1872.6999500,12.7000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (1)
  884. CreateObject(3787,186.3999900,1933.9000200,17.3000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (2)
  885. CreateObject(3787,140.0000000,1830.5999800,17.2000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (3)
  886. CreateObject(3787,324.2999900,2055.8999000,17.2000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (4)
  887. CreateObject(3633,324.3999900,2058.1001000,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (1)
  888. CreateObject(3633,287.7999900,2003.4000200,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (2)
  889. CreateObject(3633,358.7000100,1899.6999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (3)
  890. CreateObject(3633,227.6000100,1922.1999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (4)
  891. CreateObject(3633,112.0000000,1902.6999500,18.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (5)
  892. CreateObject(3633,112.0000000,1834.1999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (6)
  893. CreateObject(12861,170.5000000,1813.5999800,16.6000000,0.0000000,0.0000000,90.0000000); //object(sw_cont05) (1)
  894. CreateObject(12861,216.0000000,1952.0000000,16.0000000,0.0000000,0.0000000,0.0000000); //object(sw_cont05) (2)
  895. CreateObject(12861,204.0000000,2022.0000000,16.0000000,0.0000000,0.0000000,180.0000000); //object(sw_cont05) (3)
  896. CreateObject(17020,340.0000000,1850.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(cuntfrates02) (1)
  897. CreateObject(1337,149.3037100,1829.6494100,17.1480600,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (9)
  898. CreateObject(3630,265.3999900,1918.6999500,18.1000000,0.0000000,0.0000000,324.0000000); //object(crdboxes2_las) (1)
  899. CreateObject(3630,169.6000100,1932.1999500,18.9000000,0.0000000,0.0000000,0.0000000); //object(crdboxes2_las) (2)
  900. CreateObject(3630,288.2999900,1972.4000200,18.1000000,0.0000000,0.0000000,90.0000000); //object(crdboxes2_las) (3)
  901. CreateObject(3761,287.7999900,1907.0000000,18.6000000,0.0000000,0.0000000,0.0000000); //object(industshelves) (1)
  902. CreateObject(3796,225.3000000,1883.4000200,16.6000000,0.0000000,0.0000000,0.0000000); //object(acbox1_sfs) (1)
  903. CreateObject(10814,242.0000000,1966.0000000,20.7000000,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
  904. CreateObject(3255,239.8000000,1996.6999500,16.6000000,0.0000000,0.0000000,0.0000000); //object(ref_oiltank01) (1)
  905. CreateObject(3214,245.3999900,2012.5000000,25.6000000,0.0000000,0.0000000,0.0000000); //object(quarry_crusher) (1)
  906. CreateObject(3287,284.7999900,2051.3000500,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (1)
  907. CreateObject(3287,276.8999900,2051.1999500,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (2)
  908. CreateObject(3287,324.6000100,2049.3999000,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (3)
  909. CreateObject(3287,385.5000000,1983.4000200,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (4)
  910. CreateObject(3287,385.1000100,1951.4000200,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (5)
  911. CreateObject(3287,385.2000100,1940.0000000,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (6)
  912. CreateObject(3287,105.2000000,1932.6999500,22.2000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (7)
  913. CreateObject(3268,370.0000000,1980.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (4)
  914.  
  915. // SAS BASE
  916.  
  917. AddStaticVehicleEx(520,-920.0000000,2100.0000000,58.0000000,0.0000000,016,001,120); //Hydra
  918. AddStaticVehicleEx(425,-899.0000000,2100.0000000,58.0000000,0.0000000,016,001,120); //Hunter
  919. AddStaticVehicleEx(447,-878.0000000,2100.0000000,57.2000000,0.0000000,016,001,120); //Seasparrow
  920. AddStaticVehicleEx(447,-857.0000000,2100.0000000,57.2000000,0.0000000,016,001,120); //Seasparrow
  921. AddStaticVehicleEx(487,-836.0000000,2100.0000000,57.4000000,0.0000000,016,001,120); //Maverick
  922. AddStaticVehicleEx(487,-815.0000000,2100.0000000,57.4000000,0.0000000,016,001,120); //Maverick
  923. AddStaticVehicleEx(493,-825.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Jetmax
  924. AddStaticVehicleEx(452,-835.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Speeder
  925. AddStaticVehicleEx(446,-845.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Squalo
  926. AddStaticVehicleEx(473,-855.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Dinghy
  927. AddStaticVehicleEx(473,-865.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Dinghy
  928. AddStaticVehicleEx(432,-903.0000000,1985.0000000,61.0000000,315.0000000,016,001,120); //Rhino
  929. AddStaticVehicleEx(432,-908.0000000,1990.0000000,61.0000000,315.0000000,016,001,120); //Rhino
  930. AddStaticVehicleEx(433,-911.5999800,1995.5999800,61.5000000,311.0000000,016,001,120); //Barracks
  931. AddStaticVehicleEx(433,-916.0000000,2000.5999800,61.5000000,311.0000000,016,001,120); //Barracks
  932. AddStaticVehicleEx(470,-921.4000200,2004.5999800,61.0000000,311.0000000,016,001,120); //Patriot
  933. AddStaticVehicleEx(470,-923.5999800,2007.3000500,61.0000000,311.0000000,016,001,120); //Patriot
  934. AddStaticVehicleEx(470,-925.7999900,2010.0999800,61.0000000,311.0000000,016,001,120); //Patriot
  935. AddStaticVehicleEx(522,-929.0000000,2015.0000000,60.6000000,315.0000000,016,001,120); //NRG-500
  936. AddStaticVehicleEx(522,-930.0999800,2016.1999500,60.6000000,315.0000000,016,001,120); //NRG-500
  937. AddStaticVehicleEx(468,-933.2999900,2020.1999500,60.7000000,315.0000000,016,001,120); //Sanchez
  938. AddStaticVehicleEx(468,-934.4000200,2021.5000000,60.7000000,315.0000000,016,001,120); //Sanchez
  939. AddStaticVehicleEx(471,-937.2999900,2025.8000500,60.5000000,315.0000000,016,001,120); //Quad
  940. AddStaticVehicleEx(471,-938.5999800,2027.0000000,60.5000000,315.0000000,016,001,120); //Quad
  941. AddStaticVehicleEx(444,-927.5999800,2040.5000000,62.0000000,134.0000000,016,001,120); //Monster
  942. AddStaticVehicleEx(451,-922.9000200,2035.9000200,60.7000000,134.0000000,016,001,120); //Turismo
  943. AddStaticVehicleEx(415,-918.0999800,2030.9000200,60.8000000,134.0000000,016,001,120); //Cheetah
  944. AddStaticVehicleEx(411,-913.5999800,2025.5999800,60.7000000,134.0000000,016,001,120); //Infernus
  945. AddStaticVehicleEx(402,-909.2000100,2020.3000500,60.9000000,134.0000000,016,001,120); //Buffalo
  946. AddStaticVehicleEx(407,-905.4000200,2014.4000200,61.3000000,134.0000000,016,001,120); //Firetruck
  947. AddStaticVehicleEx(406,-898.5999800,2006.0000000,63.0000000,220.0000000,016,001,120); //Dumper
  948. CreateObject(3115,-920.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (18)
  949. CreateObject(3115,-899.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (19)
  950. CreateObject(3115,-878.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (21)
  951. CreateObject(3115,-857.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (22)
  952. CreateObject(3115,-836.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (23)
  953. CreateObject(3115,-815.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (24)
  954. CreateObject(900,-928.0000000,2095.0000000,38.0000000,0.0000000,0.0000000,80.0000000); //object(searock04) (1)
  955. CreateObject(900,-930.0000000,2100.0000000,38.0000000,0.0000000,0.0000000,248.0000000); //object(searock04) (2)
  956. CreateObject(900,-802.7000100,2095.0000000,38.0000000,0.0000000,0.0000000,80.0000000); //object(searock04) (3)
  957. CreateObject(900,-800.5000000,2108.8999000,38.0000000,0.0000000,0.0000000,280.0000000); //object(searock04) (4)
  958. CreateObject(12990,-888.0000000,2017.0000000,56.0000000,0.0000000,0.0000000,0.0000000); //object(sw_jetty) (1)
  959. CreateObject(12990,-888.0000000,2047.0000000,56.0000000,0.0000000,0.0000000,180.0000000); //object(sw_jetty) (2)
  960. CreateObject(12990,-888.0000000,2077.0000000,56.0000000,0.0000000,0.0000000,0.0000000); //object(sw_jetty) (3)
  961. CreateObject(2774,-929.0000000,2092.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (13)
  962. CreateObject(2774,-929.0000000,2108.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (14)
  963. CreateObject(2774,-806.0000000,2108.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (15)
  964. CreateObject(2774,-806.0000000,2092.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (16)
  965.  
  966. // CHINA BASE
  967.  
  968. AddStaticVehicleEx(520,-1030.0000000,2780.0000000,61.7000000,185.0000000,126,001,120); //Hydra
  969. AddStaticVehicleEx(425,-1009.0000000,2781.8501000,61.7000000,185.0000000,126,001,120); //Hunter
  970. AddStaticVehicleEx(425,-988.0000000,2783.5000000,61.7000000,185.0000000,126,001,120); //Hunter
  971. AddStaticVehicleEx(447,-967.0000000,2785.5500500,60.9000000,185.0000000,126,001,120); //Seasparrow
  972. AddStaticVehicleEx(447,-946.0000000,2787.3999000,60.9000000,185.0000000,126,001,120); //Seasparrow
  973. AddStaticVehicleEx(487,-925.0000000,2789.2500000,61.1000000,185.0000000,126,001,120); //Maverick
  974. AddStaticVehicleEx(487,-904.0000000,2791.1001000,61.1000000,185.0000000,126,001,120); //Maverick
  975. AddStaticVehicleEx(432,-892.0000000,2756.0000000,46.1000000,185.0000000,126,001,120); //Rhino
  976. AddStaticVehicleEx(432,-900.0000000,2755.0000000,46.2000000,185.0000000,126,001,120); //Rhino
  977. AddStaticVehicleEx(433,-961.5999800,2750.1001000,46.8000000,185.0000000,126,001,120); //Barracks
  978. AddStaticVehicleEx(433,-954.7000100,2750.5000000,46.8000000,185.0000000,126,001,120); //Barracks
  979. AddStaticVehicleEx(433,-946.9000200,2750.8999000,46.8000000,185.0000000,126,001,120); //Barracks
  980. AddStaticVehicleEx(470,-970.7000100,2729.8000500,46.0000000,275.0000000,126,001,120); //Patriot
  981. AddStaticVehicleEx(470,-971.0999800,2734.0000000,46.0000000,275.0000000,126,001,120); //Patriot
  982. AddStaticVehicleEx(470,-971.2999900,2738.6001000,46.0000000,275.0000000,126,001,120); //Patriot
  983. AddStaticVehicleEx(451,-874.0000000,2789.1001000,46.8000000,185.0000000,126,001,120); //Turismo
  984. AddStaticVehicleEx(415,-869.4000200,2789.6999500,46.9000000,185.0000000,126,001,120); //Cheetah
  985. AddStaticVehicleEx(402,-864.5999800,2790.3000500,46.8000000,185.0000000,126,001,120); //Buffalo
  986. AddStaticVehicleEx(411,-860.0000000,2791.0000000,46.4000000,185.0000000,126,001,120); //Infernus
  987. AddStaticVehicleEx(541,-855.0999800,2791.1001000,46.1000000,185.0000000,126,001,120); //Bullet
  988. AddStaticVehicleEx(522,-850.7999900,2790.5000000,46.0000000,185.0000000,126,001,120); //NRG-500
  989. AddStaticVehicleEx(522,-848.7000100,2790.6999500,46.0000000,185.0000000,126,001,120); //NRG-500
  990. AddStaticVehicleEx(468,-846.5999800,2791.1001000,46.0000000,185.0000000,126,001,120); //Sanchez
  991. AddStaticVehicleEx(468,-845.0000000,2791.3000500,46.0000000,185.0000000,126,001,120); //Sanchez
  992. AddStaticVehicleEx(471,-842.4000200,2791.3999000,45.7000000,185.0000000,126,001,120); //Quad
  993. AddStaticVehicleEx(471,-840.4000200,2791.6001000,45.7000000,185.0000000,126,001,120); //Quad
  994. AddStaticVehicleEx(444,-832.5999800,2783.3999000,47.0000000,91.0000000,126,001,120); //Monster
  995. AddStaticVehicleEx(444,-832.5999800,2776.3999000,47.0000000,91.0000000,126,001,120); //Monster
  996. AddStaticVehicleEx(493,-927.0999800,2663.0000000,44.0000000,132.0000000,126,001,120); //Jetmax
  997. AddStaticVehicleEx(493,-919.0000000,2656.0000000,44.0000000,132.0000000,126,001,120); //Jetmax
  998. AddStaticVehicleEx(431,-931.2000100,2753.5000000,46.5000000,185.0000000,126,001,120); //Bus
  999. AddStaticVehicleEx(437,-925.4000200,2753.6001000,46.5000000,185.0000000,126,001,120); //Coach
  1000. CreateObject(3115,-1030.0000000,2780.0000000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (25)
  1001. CreateObject(3115,-1009.0000000,2781.8501000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (26)
  1002. CreateObject(3115,-988.0000000,2783.6999500,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (27)
  1003. CreateObject(3115,-967.0000000,2785.5500500,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (28)
  1004. CreateObject(3115,-946.0000000,2787.3999000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (29)
  1005. CreateObject(3115,-925.0000000,2789.2500000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (30)
  1006. CreateObject(3115,-904.0000000,2791.1001000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (31)
  1007. CreateObject(2774,-894.0000000,2784.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (17)
  1008. CreateObject(2774,-895.0000000,2800.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (18)
  1009. CreateObject(2774,-1039.0000000,2771.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (19)
  1010. CreateObject(2774,-1039.0000000,2787.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (20)
  1011. CreateObject(13749,-887.4000200,2789.0000000,53.0000000,0.0000000,0.0000000,60.0000000); //object(cunte_curvesteps1) (10)
  1012.  
  1013. // RUSSIA BASE
  1014.  
  1015. AddStaticVehicleEx(520,-321.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hydra
  1016. AddStaticVehicleEx(520,-300.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hydra
  1017. AddStaticVehicleEx(425,-279.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hunter
  1018. AddStaticVehicleEx(425,-258.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hunter
  1019. AddStaticVehicleEx(447,-220.0000000,2652.6999500,75.9000000,180.0000000,003,001,120); //Seasparrow
  1020. AddStaticVehicleEx(447,-199.0000000,2652.6999500,75.9000000,180.0000000,003,001,120); //Seasparrow
  1021. AddStaticVehicleEx(487,-178.0000000,2652.6999500,76.1000000,180.0000000,003,001,120); //Maverick
  1022. AddStaticVehicleEx(487,-157.0000000,2652.6999500,76.1000000,180.0000000,003,001,120); //Maverick
  1023. AddStaticVehicleEx(432,-206.2000000,2655.0000000,62.7000000,180.0000000,003,001,120); //Rhino
  1024. AddStaticVehicleEx(432,-213.8000000,2655.0000000,62.7000000,180.0000000,003,001,120); //Rhino
  1025. AddStaticVehicleEx(433,-304.0000000,2688.0000000,63.2000000,90.0000000,003,001,120); //Barracks
  1026. AddStaticVehicleEx(433,-304.0000000,2682.0000000,63.2000000,90.0000000,003,001,120); //Barracks
  1027. AddStaticVehicleEx(433,-304.0000000,2675.0000000,63.2000000,90.0000000,003,001,120); //Barracks
  1028. AddStaticVehicleEx(470,-160.0000000,2650.0000000,64.4000000,90.0000000,003,001,120); //Patriot
  1029. AddStaticVehicleEx(470,-160.0000000,2655.0000000,64.3000000,90.0000000,003,001,120); //Patriot
  1030. AddStaticVehicleEx(470,-160.0000000,2660.0000000,63.9000000,90.0000000,003,001,120); //Patriot
  1031. AddStaticVehicleEx(431,-230.0000000,2734.0000000,62.9000000,0.0000000,003,001,120); //Bus
  1032. AddStaticVehicleEx(437,-218.0000000,2734.0000000,62.9000000,0.0000000,003,001,120); //Coach
  1033. AddStaticVehicleEx(406,-204.0000000,2734.0000000,65.0000000,0.0000000,003,001,120); //Dumper
  1034. AddStaticVehicleEx(451,-201.3000000,2595.0000000,62.5000000,0.0000000,003,001,120); //Turismo
  1035. AddStaticVehicleEx(429,-207.6000100,2595.0000000,62.5000000,0.0000000,003,001,120); //Banshee
  1036. AddStaticVehicleEx(415,-213.5000000,2595.0000000,62.6000000,0.0000000,003,001,120); //Cheetah
  1037. AddStaticVehicleEx(411,-219.7000000,2595.0000000,62.5000000,0.0000000,003,001,120); //Infernus
  1038. AddStaticVehicleEx(402,-225.7000000,2595.0000000,62.6000000,0.0000000,003,001,120); //Buffalo
  1039. AddStaticVehicleEx(444,-338.0000000,2674.0000000,65.0000000,90.0000000,003,001,120); //Monster
  1040. AddStaticVehicleEx(444,-338.0000000,2666.0000000,65.0000000,90.0000000,003,001,120); //Monster
  1041. AddStaticVehicleEx(522,-201.2000000,2608.0000000,62.4000000,180.0000000,003,001,120); //NRG-500
  1042. AddStaticVehicleEx(522,-204.2000000,2608.0000000,62.4000000,180.0000000,003,001,120); //NRG-500
  1043. AddStaticVehicleEx(468,-210.2000000,2608.0000000,62.5000000,180.0000000,003,001,120); //Sanchez
  1044. AddStaticVehicleEx(468,-213.3000000,2608.0000000,62.5000000,180.0000000,003,001,120); //Sanchez
  1045. AddStaticVehicleEx(471,-228.5000000,2608.0000000,62.3000000,180.0000000,003,001,120); //Quad
  1046. AddStaticVehicleEx(471,-231.6000100,2608.0000000,62.3000000,180.0000000,003,001,120); //Quad
  1047. AddStaticVehicleEx(510,-237.6000100,2608.0000000,62.4000000,180.0000000,003,001,120); //Mountain Bike
  1048. AddStaticVehicleEx(510,-240.3999900,2608.0000000,62.4000000,180.0000000,003,001,120); //Mountain Bike
  1049. CreateObject(3115,-321.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (32)
  1050. CreateObject(13749,-334.1000100,2671.8000500,68.0000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (12)
  1051. CreateObject(3115,-300.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (33)
  1052. CreateObject(3115,-279.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (34)
  1053. CreateObject(3115,-258.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (35)
  1054. CreateObject(3115,-220.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (36)
  1055. CreateObject(3115,-199.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (37)
  1056. CreateObject(3115,-178.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (38)
  1057. CreateObject(3115,-157.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (39)
  1058. CreateObject(13749,-169.7000000,2672.0000000,68.0000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (13)
  1059. CreateObject(2774,-148.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (21)
  1060. CreateObject(2774,-148.0000000,2660.5000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (22)
  1061. CreateObject(2774,-229.0000000,2660.5000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (23)
  1062. CreateObject(2774,-229.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (24)
  1063. CreateObject(2774,-249.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (25)
  1064. CreateObject(2774,-330.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (26)
  1065. CreateObject(2774,-330.0000000,2661.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (27)
  1066. CreateObject(2774,-249.0000000,2660.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (28)
  1067. CreateObject(3884,-197.8000000,2611.8000500,61.3000000,0.0000000,0.0000000,326.0000000); //object(samsite_sfxrf) (3)
  1068. CreateObject(3884,-243.8999900,2611.8000500,61.3000000,0.0000000,0.0000000,30.0000000); //object(samsite_sfxrf) (4)
  1069. CreateObject(2985,-215.5000000,2612.0000000,61.7000000,0.0000000,0.0000000,90.0000000); //object(minigun_base) (4)
  1070. CreateObject(2985,-226.5000000,2612.0000000,61.7000000,0.0000000,0.0000000,90.0000000); //object(minigun_base) (5)
  1071.  
  1072. // SYRIA BASE
  1073.  
  1074. AddStaticVehicleEx(520,452.0000000,2434.0000000,30.7000000,90.0000000,030,001,120); //Hydra
  1075. AddStaticVehicleEx(425,452.0000000,2452.8000500,30.6000000,90.0000000,030,001,120); //Hunter
  1076. AddStaticVehicleEx(447,452.0000000,2471.6001000,29.9000000,90.0000000,030,001,120); //Seasparrow
  1077. AddStaticVehicleEx(447,452.0000000,2490.3999000,29.9000000,90.0000000,030,001,120); //Seasparrow
  1078. AddStaticVehicleEx(487,452.0000000,2509.1001000,30.0000000,90.0000000,030,001,120); //Maverick
  1079. AddStaticVehicleEx(487,452.0000000,2527.8999000,30.0000000,90.0000000,030,001,120); //Maverick
  1080. AddStaticVehicleEx(476,270.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
  1081. AddStaticVehicleEx(476,250.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
  1082. AddStaticVehicleEx(476,230.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
  1083. AddStaticVehicleEx(476,270.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
  1084. AddStaticVehicleEx(476,250.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
  1085. AddStaticVehicleEx(476,230.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
  1086. AddStaticVehicleEx(433,425.0000000,2484.0000000,17.1000000,90.0000000,030,001,120); //Barracks
  1087. AddStaticVehicleEx(433,425.0000000,2490.0000000,17.1000000,90.0000000,030,001,120); //Barracks
  1088. AddStaticVehicleEx(470,425.0000000,2496.0000000,16.6000000,90.0000000,030,001,120); //Patriot
  1089. AddStaticVehicleEx(470,425.0000000,2501.0000000,16.6000000,90.0000000,030,001,120); //Patriot
  1090. AddStaticVehicleEx(470,425.0000000,2506.0000000,16.6000000,90.0000000,030,001,120); //Patriot
  1091. AddStaticVehicleEx(432,390.0000000,2535.0000000,16.6000000,180.0000000,030,001,120); //Rhino
  1092. AddStaticVehicleEx(432,382.0000000,2535.0000000,16.6000000,180.0000000,030,001,120); //Rhino
  1093. AddStaticVehicleEx(444,380.0000000,2481.0000000,17.0000000,0.0000000,030,001,120); //Monster
  1094. AddStaticVehicleEx(444,386.0000000,2481.0000000,17.0000000,0.0000000,030,001,120); //Monster
  1095. AddStaticVehicleEx(451,340.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Turismo
  1096. AddStaticVehicleEx(429,344.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Banshee
  1097. AddStaticVehicleEx(415,348.0000000,2544.0000000,16.6000000,180.0000000,030,001,120); //Cheetah
  1098. AddStaticVehicleEx(411,352.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Infernus
  1099. AddStaticVehicleEx(402,356.0000000,2544.0000000,16.6000000,180.0000000,030,001,120); //Buffalo
  1100. AddStaticVehicleEx(522,361.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //NRG-500
  1101. AddStaticVehicleEx(522,363.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //NRG-500
  1102. AddStaticVehicleEx(468,366.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //Sanchez
  1103. AddStaticVehicleEx(468,368.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //Sanchez
  1104. AddStaticVehicleEx(471,371.0000000,2544.0000000,16.1000000,180.0000000,030,001,120); //Quad
  1105. AddStaticVehicleEx(471,374.0000000,2544.0000000,16.1000000,180.0000000,030,001,120); //Quad
  1106. AddStaticVehicleEx(431,372.0000000,2471.0000000,16.7000000,0.0000000,030,001,120); //Bus
  1107. AddStaticVehicleEx(437,366.0000000,2471.0000000,16.7000000,0.0000000,030,001,120); //Coach
  1108. AddStaticVehicleEx(513,290.0000000,2540.0000000,17.6000000,180.0000000,030,001,120); //Stunt
  1109. AddStaticVehicleEx(593,325.0000000,2540.0000000,17.4000000,180.0000000,030,001,120); //Dodo
  1110. CreateObject(3115,452.0000000,2434.0000000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (40)
  1111. CreateObject(13749,431.6000100,2516.0000000,22.0000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (14)
  1112. CreateObject(3115,452.0000000,2452.8000500,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (41)
  1113. CreateObject(3115,452.0000000,2471.6001000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (42)
  1114. CreateObject(3115,452.0000000,2490.3999000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (43)
  1115. CreateObject(3115,452.0000000,2509.1001000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (44)
  1116. CreateObject(3115,452.0000000,2527.8999000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (45)
  1117. CreateObject(2774,461.0000000,2426.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (29)
  1118. CreateObject(2774,443.0000000,2426.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (30)
  1119. CreateObject(2774,443.0000000,2536.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (31)
  1120. CreateObject(2774,461.0000000,2536.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (32)
  1121. CreateObject(3884,336.0000000,2530.0000000,15.2000000,0.0000000,0.0000000,180.0000000); //object(samsite_sfxrf) (5)
  1122. CreateObject(3884,280.0000000,2530.0000000,15.2000000,0.0000000,0.0000000,180.0000000); //object(samsite_sfxrf) (6)
  1123. CreateObject(2985,301.5000000,2530.0000000,15.8000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (6)
  1124. CreateObject(2985,314.0000000,2530.0000000,15.8000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (7)
  1125.  
  1126. // TALIBAN BASE
  1127.  
  1128. AddStaticVehicleEx(520,-720.0000000,1629.0000000,42.2000000,0.0000000,001,001,120); //Hydra
  1129. AddStaticVehicleEx(425,-741.0000000,1629.0000000,42.2000000,359.9980000,001,001,120); //Hunter
  1130. AddStaticVehicleEx(447,-762.0000000,1629.0000000,41.4000000,0.0000000,001,001,120); //Seasparrow
  1131. AddStaticVehicleEx(447,-783.0000000,1629.0000000,41.4000000,0.0000000,001,001,120); //Seasparrow
  1132. AddStaticVehicleEx(487,-804.0000000,1629.0000000,41.6000000,0.0000000,001,001,120); //Maverick
  1133. AddStaticVehicleEx(487,-825.0000000,1629.0000000,41.6000000,0.0000000,001,001,120); //Maverick
  1134. AddStaticVehicleEx(433,-740.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
  1135. AddStaticVehicleEx(433,-746.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
  1136. AddStaticVehicleEx(433,-752.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
  1137. AddStaticVehicleEx(470,-758.0000000,1640.0000000,27.4000000,180.0000000,001,001,120); //Patriot
  1138. AddStaticVehicleEx(470,-763.0000000,1640.0000000,27.5000000,180.0000000,001,001,120); //Patriot
  1139. AddStaticVehicleEx(470,-768.0000000,1640.0000000,27.5000000,180.0000000,001,001,120); //Patriot
  1140. AddStaticVehicleEx(444,-780.0000000,1568.0000000,28.0000000,0.0000000,001,001,120); //Monster
  1141. AddStaticVehicleEx(444,-774.0000000,1568.0000000,28.0000000,0.0000000,001,001,120); //Monster
  1142. AddStaticVehicleEx(451,-866.0000000,1544.9000200,22.8000000,270.0000000,001,001,120); //Turismo
  1143. AddStaticVehicleEx(429,-866.0000000,1551.0000000,23.3000000,270.0000000,001,001,120); //Banshee
  1144. AddStaticVehicleEx(415,-866.0000000,1557.3000500,23.9000000,270.0000000,001,001,120); //Cheetah
  1145. AddStaticVehicleEx(411,-866.0000000,1563.4000200,24.3000000,270.0000000,001,001,120); //Infernus
  1146. AddStaticVehicleEx(402,-866.0000000,1569.4000200,24.9000000,270.0000000,001,001,120); //Buffalo
  1147. AddStaticVehicleEx(522,-816.0000000,1578.0000000,26.8000000,270.0000000,001,001,120); //NRG-500
  1148. AddStaticVehicleEx(522,-816.0000000,1580.0000000,26.8000000,270.0000000,001,001,120); //NRG-500
  1149. AddStaticVehicleEx(468,-816.0000000,1584.0000000,26.9000000,270.0000000,001,001,120); //Sanchez
  1150. AddStaticVehicleEx(468,-816.0000000,1586.0000000,26.9000000,270.0000000,001,001,120); //Sanchez
  1151. AddStaticVehicleEx(471,-816.0000000,1590.0000000,26.7000000,270.0000000,001,001,120); //Quad
  1152. AddStaticVehicleEx(471,-816.0000000,1592.0000000,26.7000000,270.0000000,001,001,120); //Quad
  1153. AddStaticVehicleEx(431,-882.0000000,1520.0000000,26.2000000,90.0000000,001,001,120); //Bus
  1154. AddStaticVehicleEx(432,-780.0000000,1548.0000000,27.2000000,180.0000000,001,001,120); //Rhino
  1155. AddStaticVehicleEx(432,-772.0000000,1548.0000000,27.2000000,180.0000000,001,001,120); //Rhino
  1156. CreateObject(3115,-825.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (46)
  1157. CreateObject(3115,-804.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (47)
  1158. CreateObject(3115,-783.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (48)
  1159. CreateObject(3115,-762.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (49)
  1160. CreateObject(3115,-741.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (50)
  1161. CreateObject(3115,-720.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (51)
  1162. CreateObject(13749,-770.0000000,1609.8000500,33.5000000,0.0000000,0.0000000,54.0000000); //object(cunte_curvesteps1) (17)
  1163. CreateObject(2774,-834.0000000,1637.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (33)
  1164. CreateObject(2774,-833.0000000,1621.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (34)
  1165. CreateObject(2774,-711.0000000,1621.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (35)
  1166. CreateObject(2774,-711.0000000,1637.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (36)
  1167.  
  1168. // ISLAM BASE
  1169.  
  1170. AddStaticVehicleEx(433,-80.0000000,710.0000000,24.7000000,0.0000000,033,001,120); //Barracks
  1171. AddStaticVehicleEx(433,-74.0000000,710.0000000,25.1000000,0.0000000,033,001,120); //Barracks
  1172. AddStaticVehicleEx(433,-68.0000000,710.0000000,24.8000000,0.0000000,033,001,120); //Barracks
  1173. AddStaticVehicleEx(470,-60.0000000,710.0000000,24.0000000,0.0000000,033,001,120); //Patriot
  1174. AddStaticVehicleEx(470,-54.0000000,710.0000000,23.5000000,0.0000000,033,001,120); //Patriot
  1175. AddStaticVehicleEx(470,-48.0000000,710.0000000,23.1000000,0.0000000,033,001,120); //Patriot
  1176. AddStaticVehicleEx(451,-75.0000000,745.0000000,22.9000000,180.0000000,033,001,120); //Turismo
  1177. AddStaticVehicleEx(429,-70.0000000,745.0000000,23.3000000,180.0000000,033,001,120); //Banshee
  1178. AddStaticVehicleEx(415,-65.0000000,745.0000000,24.1000000,180.0000000,033,001,120); //Cheetah
  1179. AddStaticVehicleEx(411,-60.0000000,745.0000000,23.8000000,180.0000000,033,001,120); //Infernus
  1180. AddStaticVehicleEx(402,-55.0000000,745.0000000,23.7000000,180.0000000,033,001,120); //Buffalo
  1181. AddStaticVehicleEx(522,-45.0000000,745.0000000,23.6000000,180.0000000,033,001,120); //NRG-500
  1182. AddStaticVehicleEx(522,-43.0000000,745.0000000,23.8000000,180.0000000,033,001,120); //NRG-500
  1183. AddStaticVehicleEx(468,-38.0000000,745.0000000,23.7000000,180.0000000,033,001,120); //Sanchez
  1184. AddStaticVehicleEx(468,-36.0000000,745.0000000,23.5000000,180.0000000,033,001,120); //Sanchez
  1185. AddStaticVehicleEx(471,-32.0000000,745.0000000,23.3000000,180.0000000,033,001,120); //Quad
  1186. AddStaticVehicleEx(471,-30.0000000,745.0000000,23.4000000,180.0000000,033,001,120); //Quad
  1187. AddStaticVehicleEx(432,-40.0000000,710.0000000,22.6000000,0.0000000,033,001,120); //Rhino
  1188. AddStaticVehicleEx(432,-32.0000000,710.0000000,22.0000000,0.0000000,033,001,120); //Rhino
  1189. AddStaticVehicleEx(444,-25.0000000,710.0000000,23.0000000,0.0000000,033,001,120); //Monster
  1190. AddStaticVehicleEx(444,-20.0000000,710.0000000,23.0000000,0.0000000,033,001,120); //Monster
  1191. AddStaticVehicleEx(431,-88.0000000,710.0000000,24.4000000,0.0000000,033,001,120); //Bus
  1192. AddStaticVehicleEx(520,35.0000000,760.0000000,37.2000000,0.0000000,033,001,120); //Hydra
  1193. AddStaticVehicleEx(425,14.0000000,760.0000000,37.2000000,0.0000000,033,001,120); //Hunter
  1194. AddStaticVehicleEx(447,-7.0000000,760.0000000,36.4000000,0.0000000,033,001,120); //Seasparrow
  1195. AddStaticVehicleEx(447,-27.0000000,760.0000000,36.4000000,0.0000000,033,001,120); //Seasparrow
  1196. AddStaticVehicleEx(487,-49.0000000,760.0000000,36.6000000,0.0000000,033,001,120); //Maverick
  1197. AddStaticVehicleEx(487,-70.0000000,760.0000000,36.6000000,359.9960000,033,001,120); //Maverick
  1198. CreateObject(3115,-70.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (52)
  1199. CreateObject(3115,-49.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (53)
  1200. CreateObject(3115,-28.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (54)
  1201. CreateObject(3115,-7.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (55)
  1202. CreateObject(3115,14.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (56)
  1203. CreateObject(3115,35.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (57)
  1204. CreateObject(13749,-15.0000000,741.0000000,28.5000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (19)
  1205. CreateObject(2774,-79.0000000,768.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (37)
  1206. CreateObject(2774,-79.0000000,752.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (38)
  1207. CreateObject(2774,44.0000000,752.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (39)
  1208. CreateObject(2774,44.0000000,768.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (40)
  1209. CreateObject(3884,-96.0000000,708.0000000,22.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (7)
  1210. CreateObject(3884,-15.0000000,708.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (8)
  1211.  
  1212. // GERMANY BASE
  1213.  
  1214. AddStaticVehicleEx(520,-360.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Hydra
  1215. AddStaticVehicleEx(425,-339.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Hunter
  1216. AddStaticVehicleEx(447,-318.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Seasparrow
  1217. AddStaticVehicleEx(447,-297.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Seasparrow
  1218. AddStaticVehicleEx(487,-276.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Maverick
  1219. AddStaticVehicleEx(487,-255.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Maverick
  1220. AddStaticVehicleEx(432,-269.0000000,1215.0000000,19.8000000,180.0000000,219,001,120); //Rhino
  1221. AddStaticVehicleEx(432,-276.0000000,1215.0000000,19.8000000,180.0000000,219,001,120); //Rhino
  1222. AddStaticVehicleEx(433,-286.0000000,1215.0000000,20.3000000,180.0000000,219,001,120); //Barracks
  1223. AddStaticVehicleEx(433,-291.0000000,1215.0000000,20.3000000,180.0000000,219,001,120); //Barracks
  1224. AddStaticVehicleEx(470,-296.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
  1225. AddStaticVehicleEx(470,-300.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
  1226. AddStaticVehicleEx(470,-304.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
  1227. AddStaticVehicleEx(451,-342.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Turismo
  1228. AddStaticVehicleEx(429,-338.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Banshee
  1229. AddStaticVehicleEx(415,-334.0000000,1187.0000000,19.6000000,0.0000000,219,001,120); //Cheetah
  1230. AddStaticVehicleEx(411,-330.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Infernus
  1231. AddStaticVehicleEx(402,-326.0000000,1187.0000000,19.7000000,0.0000000,219,001,120); //Buffalo
  1232. AddStaticVehicleEx(522,-288.0000000,1186.0000000,19.4000000,0.0000000,219,001,120); //NRG-500
  1233. AddStaticVehicleEx(522,-290.0000000,1186.0000000,19.4000000,0.0000000,219,001,120); //NRG-500
  1234. AddStaticVehicleEx(468,-292.0000000,1186.0000000,19.5000000,0.0000000,219,001,120); //Sanchez
  1235. AddStaticVehicleEx(468,-294.0000000,1186.0999800,19.5000000,0.0000000,219,001,120); //Sanchez
  1236. AddStaticVehicleEx(471,-296.0000000,1186.0000000,19.3000000,0.0000000,219,001,120); //Quad
  1237. AddStaticVehicleEx(471,-298.0000000,1186.0000000,19.3000000,0.0000000,219,001,120); //Quad
  1238. AddStaticVehicleEx(444,-348.0000000,1178.0000000,21.0000000,90.0000000,219,001,120); //Monster
  1239. AddStaticVehicleEx(444,-348.0000000,1172.0000000,21.0000000,90.0000000,219,001,120); //Monster
  1240. AddStaticVehicleEx(431,-339.5000000,1170.0000000,20.0000000,180.0000000,219,001,120); //Bus
  1241. AddStaticVehicleEx(437,-297.2999900,1162.5999800,20.0000000,270.0000000,219,001,120); //Coach
  1242. AddStaticVehicleEx(406,-314.7000100,1175.5000000,22.0000000,0.0000000,219,001,120); //Dumper
  1243. CreateObject(3115,-360.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (20)
  1244. CreateObject(3115,-339.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (58)
  1245. CreateObject(3115,-318.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (59)
  1246. CreateObject(3115,-297.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (60)
  1247. CreateObject(3115,-276.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (61)
  1248. CreateObject(3115,-255.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (62)
  1249. CreateObject(2774,-369.0000000,1207.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (41)
  1250. CreateObject(2774,-369.0000000,1223.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (42)
  1251. CreateObject(2774,-246.0000000,1207.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (43)
  1252. CreateObject(2774,-246.0000000,1223.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (44)
  1253. CreateObject(13749,-341.8999900,1199.9000200,23.7000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (11)
  1254.  
  1255. // JAPAN BASE
  1256.  
  1257. AddStaticVehicleEx(520,1035.0000000,1722.0000000,24.0000000,90.0000000,242,001,120); //Hydra
  1258. AddStaticVehicleEx(425,1035.0000000,1740.8000500,24.0000000,90.0000000,242,001,120); //Hunter
  1259. AddStaticVehicleEx(447,1035.0000000,1759.5999800,24.0000000,90.0000000,242,001,120); //Seasparrow
  1260. AddStaticVehicleEx(487,1035.0000000,1778.4000200,24.0000000,90.0000000,242,001,120); //Maverick
  1261. AddStaticVehicleEx(432,1077.3000500,1729.0000000,10.9000000,0.0000000,242,001,120); //Rhino
  1262. AddStaticVehicleEx(432,1058.0999800,1729.0000000,10.9000000,0.0000000,242,001,120); //Rhino
  1263. AddStaticVehicleEx(433,1030.0000000,1732.0000000,11.4000000,270.0000000,242,001,120); //Barracks
  1264. AddStaticVehicleEx(433,1030.0000000,1738.0000000,11.4000000,270.0000000,242,001,120); //Barracks
  1265. AddStaticVehicleEx(470,1030.0000000,1744.0000000,10.9000000,270.0000000,242,001,120); //Patriot
  1266. AddStaticVehicleEx(470,1030.0000000,1748.0000000,10.9000000,270.0000000,242,001,120); //Patriot
  1267. AddStaticVehicleEx(470,1030.0000000,1752.0000000,10.9000000,270.0000000,242,001,120); //Patriot
  1268. AddStaticVehicleEx(451,1112.0000000,1794.0000000,10.6000000,90.0000000,242,001,120); //Turismo
  1269. AddStaticVehicleEx(429,1112.0000000,1790.0000000,10.6000000,90.0000000,242,001,120); //Banshee
  1270. AddStaticVehicleEx(415,1112.0000000,1786.0000000,10.7000000,90.0000000,242,001,120); //Cheetah
  1271. AddStaticVehicleEx(411,1112.0000000,1782.0000000,10.6000000,90.0000000,242,001,120); //Infernus
  1272. AddStaticVehicleEx(402,1112.0000000,1778.0000000,10.8000000,90.0000000,242,001,120); //Buffalo
  1273. AddStaticVehicleEx(522,1112.0000000,1762.0000000,10.5000000,90.0000000,242,001,120); //NRG-500
  1274. AddStaticVehicleEx(522,1112.0000000,1760.0000000,10.5000000,90.0000000,242,001,120); //NRG-500
  1275. AddStaticVehicleEx(468,1112.0000000,1754.0000000,10.6000000,90.0000000,242,001,120); //Sanchez
  1276. AddStaticVehicleEx(468,1112.0000000,1752.0000000,10.6000000,90.0000000,242,001,120); //Sanchez
  1277. AddStaticVehicleEx(471,1112.0000000,1746.0000000,10.4000000,90.0000000,242,001,120); //Quad
  1278. AddStaticVehicleEx(471,1112.0000000,1744.0000000,10.4000000,90.0000000,242,001,120); //Quad
  1279. AddStaticVehicleEx(406,1030.0000000,1793.0000000,14.0000000,270.0000000,242,001,120); //Dumper
  1280. CreateObject(3115,1035.0000000,1722.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (63)
  1281. CreateObject(3115,1035.0000000,1740.8000500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (64)
  1282. CreateObject(3115,1035.0000000,1759.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (65)
  1283. CreateObject(3115,1035.0000000,1778.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (66)
  1284. CreateObject(13749,1051.4000200,1774.5000000,13.7000000,0.0000000,0.0000000,54.0000000); //object(cunte_curvesteps1) (15)
  1285. CreateObject(3884,1075.0000000,1802.0000000,9.3000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (9)
  1286. CreateObject(3884,1040.0000000,1802.0000000,9.3000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (10)
  1287. CreateObject(2774,1044.0000000,1714.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (45)
  1288. CreateObject(2774,1044.0000000,1786.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (46)
  1289. CreateObject(2774,1026.0000000,1786.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (47)
  1290. CreateObject(2774,1026.0000000,1714.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (48)
  1291.  
  1292. // KOREA BASE
  1293.  
  1294. AddStaticVehicleEx(520,-2195.0000000,2346.3999000,19.0000000,270.0000000,194,001,120); //Hydra
  1295. AddStaticVehicleEx(425,-2195.0000000,2327.6001000,19.0000000,270.0000000,194,001,120); //Hunter
  1296. AddStaticVehicleEx(447,-2195.0000000,2308.8000500,19.0000000,270.0000000,194,001,120); //Seasparrow
  1297. AddStaticVehicleEx(487,-2195.0000000,2290.0000000,19.0000000,270.0000000,194,001,120); //Maverick
  1298. AddStaticVehicleEx(432,-2262.1999500,2288.3999000,4.9000000,0.0000000,194,001,120); //Rhino
  1299. AddStaticVehicleEx(433,-2270.0000000,2310.0000000,5.4000000,270.0000000,194,001,120); //Barracks
  1300. AddStaticVehicleEx(470,-2270.0000000,2315.0000000,4.9000000,270.0000000,194,001,120); //Patriot
  1301. AddStaticVehicleEx(451,-2253.0000000,2335.8999000,4.6000000,90.0000000,194,001,120); //Turismo
  1302. AddStaticVehicleEx(429,-2253.0000000,2330.0000000,4.6000000,90.0000000,194,001,120); //Banshee
  1303. AddStaticVehicleEx(522,-2253.0000000,2302.8000500,4.5000000,90.0000000,194,001,120); //NRG-500
  1304. AddStaticVehicleEx(522,-2253.0000000,2300.1001000,4.5000000,90.0000000,194,001,120); //NRG-500
  1305. AddStaticVehicleEx(493,-2183.6001000,2371.1999500,0.0000000,250.0000000,194,001,120); //Jetmax
  1306. AddStaticVehicleEx(493,-2175.3000500,2279.3999000,0.0000000,304.0000000,194,001,120); //Jetmax
  1307. CreateObject(3115,-2195.0000000,2346.3999000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (67)
  1308. CreateObject(3115,-2195.0000000,2327.6001000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (68)
  1309. CreateObject(3115,-2195.0000000,2308.8000500,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (69)
  1310. CreateObject(3115,-2195.0000000,2290.0000000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (70)
  1311. CreateObject(13749,-2211.0000000,2294.0000000,8.6000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (16)
  1312. CreateObject(2774,-2204.0000000,2282.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (49)
  1313. CreateObject(2774,-2186.0000000,2282.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (50)
  1314. CreateObject(2774,-2186.0000000,2354.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (51)
  1315. CreateObject(2774,-2204.0000000,2354.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (52)
  1316. CreateObject(900,-2195.3000500,2353.6001000,0.0000000,0.0000000,0.0000000,0.0000000); //object(searock04) (5)
  1317. CreateObject(900,-2194.3999000,2285.1001000,0.0000000,0.0000000,0.0000000,0.0000000); //object(searock04) (6)
  1318.  
  1319.  
  1320. // OTHER OBJECTS & VEHICLES
  1321.  
  1322. //SPAWN LCCATIONS
  1323.  
  1324. // USARMY SPAWN
  1325. AddPlayerClass(287,205,1863,13,331.2454,29,1000,31,1000,24,1000); // MP5 : M4 : Desert Eagle
  1326.  
  1327. // SAS SPAWN
  1328. AddPlayerClass(179,-936,2031,60,331.2454,31,1000,30,1000,23,1000); // Micro SMG : AK-47 : Silenced 9mm
  1329.  
  1330. // CHINA SPAWN
  1331. AddPlayerClass(204,-836,2791,46,164.1535,30,1000,27,1000,22,1000); // Tec 9 : Combat Shotgun : 9mm
  1332.  
  1333. // RUSSIA SPAWN
  1334. AddPlayerClass(285,-239,2599,62,331.2454,29,1000,26,1000,24,1000); // MP5 : Sawnoff Shotgun : Desert Eagle
  1335.  
  1336. // SYRIA SPAWN
  1337. AddPlayerClass(206,425,2530,16,126.8273,28,1000,25,1000,23,1000); // Micro SMG : Shotgun : Silenced 9mm
  1338.  
  1339. // TALIBAN SPAWN
  1340. AddPlayerClass(28,-733,1626,27,97.4572,30,1000,31,1000,22,1000); // Tec 9 : M4 : 9mm
  1341.  
  1342. // ISLAM SPAWN
  1343. AddPlayerClass(220,-98,714,24,331.2454,29,1000,30,1000,24,1000); // MP5 : AK-47 : Desert Eagle
  1344.  
  1345. // GERMANY SPAWN
  1346. AddPlayerClass(247,-363.5030,1186.0547,19.7422,273.5367,30,1000,27,1000,23,1000); // Micro SMG : Combat Shotgun : Silenced 9mm
  1347.  
  1348. // JAPAN SPAWN
  1349. AddPlayerClass(123,1103.1702,1727.1887,10.8203,55.7022,30,1000,26,1000,22,1000); // Tec 9 : Sawnoff Shotgun : 9mm
  1350.  
  1351. // KOREA SPAWN
  1352. AddPlayerClass(112,-2231.4648,2327.6516,7.5469,118.2129,29,1000,25,1000,24,1000); // MP5 : Shotgun : Desert Eagle
  1353. // objects
  1354.  
  1355. return 1;
  1356. }
  1357.  
  1358.  
  1359. public OnPlayerConnect(playerid)
  1360. {
  1361. if(XST_Info[playerid][Banned] == 1 )
  1362. {
  1363. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[BAN] Your nick is banned.");
  1364. Kick(playerid);
  1365. }
  1366. if(fexist(GetPlayerFile(playerid) ) )
  1367. {
  1368. INI_ParseFile(GetPlayerFile(playerid), "loadplayerdata", .bExtra = true, .extra = playerid);
  1369. ShowLoginDialog(playerid);
  1370. }
  1371. else
  1372. {
  1373. XST_Info[playerid][Admin] = -1;
  1374. XST_Info[playerid][Vip] = 0;
  1375. XST_Info[playerid][Kills] = 0;
  1376. XST_Info[playerid][Score] = 0;
  1377. XST_Info[playerid][Deaths] = 0;
  1378. XST_Info[playerid][Hours] = 0;
  1379. XST_Info[playerid][Minute] = 0;
  1380. XST_Info[playerid][Second] = 0;
  1381. XST_Info[playerid][Jailed] = 0;
  1382. XST_Info[playerid][Muted] = 0;
  1383. XST_Info[playerid][Warnings] = 0;
  1384. XST_Info[playerid][Banned] = 0;
  1385. XST_Info[playerid][BanTime] = 0;
  1386. #if SAVE_SKIN == true
  1387. XST_Info[playerid][Skin] = 0;
  1388. #endif
  1389. XST_Info[playerid][Duty] = 0;
  1390. XST_Info[playerid][Godmode] = 0;
  1391. XST_Info[playerid][Spectator] = -1;
  1392. ShowRegisterDialog(playerid);
  1393. }
  1394.  
  1395. SetPlayerMapIcon(playerid, 0, -37.4375,2346.6733,24.1406, 19, MAPICON_GLOBAL); // SnakeFarm
  1396. SetPlayerMapIcon(playerid, 1, -551.1266,2593.3501,53.9348, 19, MAPICON_GLOBAL); // CiaHeadquaters
  1397. SetPlayerMapIcon(playerid, 2, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // PetrolStation
  1398. SetPlayerMapIcon(playerid, 3, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // BaitShop
  1399. SetPlayerMapIcon(playerid, 4, -37.4375,2346.6733,24.1406, 19, MAPICON_GLOBAL); // ClukinBell
  1400. SetPlayerMapIcon(playerid, 5, -551.1266,2593.3501,53.9348, 19, MAPICON_GLOBAL); // Ranch
  1401. SetPlayerMapIcon(playerid, 6, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // RadarBase
  1402. SetPlayerMapIcon(playerid, 7, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // OilDepot
  1403. SetPlayerMapIcon(playerid, 8, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // Quarry
  1404. SetPlayerMapIcon(playerid, 9, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // TheBigSpreadRanch
  1405. InCP[playerid][SnakeFarm] = 0;
  1406. iCP[playerid] = -1;
  1407. if(tCP[SnakeFarm] == NONE) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], NONE_COLOR);
  1408. else if(tCP[SnakeFarm] == USARMY) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], USARMY_COLOR);
  1409. else if(tCP[SnakeFarm] == SAS) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], SAS_COLOR);
  1410. else if(tCP[SnakeFarm] == CHINA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], CHINA_COLOR);
  1411. else if(tCP[SnakeFarm] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], RUSSIA_COLOR);
  1412. else if(tCP[SnakeFarm] == SYRIA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], SYRIA_COLOR);
  1413. else if(tCP[SnakeFarm] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], TALIBAN_COLOR);
  1414. else if(tCP[SnakeFarm] == ISLAM) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], ISLAM_COLOR);
  1415. else if(tCP[SnakeFarm] == GERMANY) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], GERMANY_COLOR);
  1416. else if(tCP[SnakeFarm] == JAPAN) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], JAPAN_COLOR);
  1417. else if(tCP[SnakeFarm] == KOREA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], KOREA_COLOR);
  1418. InCP[playerid][CiaHeadquaters] = 0;
  1419. iCP[playerid] = -1;
  1420. if(tCP[CiaHeadquaters] == NONE) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], NONE_COLOR);
  1421. else if(tCP[CiaHeadquaters] == USARMY) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], USARMY_COLOR);
  1422. else if(tCP[CiaHeadquaters] == SAS) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], SAS_COLOR);
  1423. else if(tCP[CiaHeadquaters] == CHINA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], CHINA_COLOR);
  1424. else if(tCP[CiaHeadquaters] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], RUSSIA_COLOR);
  1425. else if(tCP[CiaHeadquaters] == SYRIA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], SYRIA_COLOR);
  1426. else if(tCP[CiaHeadquaters] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], TALIBAN_COLOR);
  1427. else if(tCP[CiaHeadquaters] == ISLAM) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], ISLAM_COLOR);
  1428. else if(tCP[CiaHeadquaters] == GERMANY) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], GERMANY_COLOR);
  1429. else if(tCP[CiaHeadquaters] == JAPAN) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], JAPAN_COLOR);
  1430. else if(tCP[CiaHeadquaters] == KOREA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], KOREA_COLOR);
  1431. InCP[playerid][PetrolStation] = 0;
  1432. iCP[playerid] = -1;
  1433. if(tCP[PetrolStation] == NONE) GangZoneShowForPlayer(playerid, Zone[PetrolStation], NONE_COLOR);
  1434. else if(tCP[PetrolStation] == USARMY) GangZoneShowForPlayer(playerid, Zone[PetrolStation], USARMY_COLOR);
  1435. else if(tCP[PetrolStation] == SAS) GangZoneShowForPlayer(playerid, Zone[PetrolStation], SAS_COLOR);
  1436. else if(tCP[PetrolStation] == CHINA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], CHINA_COLOR);
  1437. else if(tCP[PetrolStation] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], RUSSIA_COLOR);
  1438. else if(tCP[PetrolStation] == SYRIA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], SYRIA_COLOR);
  1439. else if(tCP[PetrolStation] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[PetrolStation], TALIBAN_COLOR);
  1440. else if(tCP[PetrolStation] == ISLAM) GangZoneShowForPlayer(playerid, Zone[PetrolStation], ISLAM_COLOR);
  1441. else if(tCP[PetrolStation] == GERMANY) GangZoneShowForPlayer(playerid, Zone[PetrolStation], GERMANY_COLOR);
  1442. else if(tCP[PetrolStation] == JAPAN) GangZoneShowForPlayer(playerid, Zone[PetrolStation], JAPAN_COLOR);
  1443. else if(tCP[PetrolStation] == KOREA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], KOREA_COLOR);
  1444. InCP[playerid][BaitShop] = 0;
  1445. iCP[playerid] = -1;
  1446. if(tCP[BaitShop] == NONE) GangZoneShowForPlayer(playerid, Zone[BaitShop], NONE_COLOR);
  1447. else if(tCP[BaitShop] == USARMY) GangZoneShowForPlayer(playerid, Zone[BaitShop], USARMY_COLOR);
  1448. else if(tCP[BaitShop] == SAS) GangZoneShowForPlayer(playerid, Zone[BaitShop], SAS_COLOR);
  1449. else if(tCP[BaitShop] == CHINA) GangZoneShowForPlayer(playerid, Zone[BaitShop], CHINA_COLOR);
  1450. else if(tCP[BaitShop] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[BaitShop], RUSSIA_COLOR);
  1451. else if(tCP[BaitShop] == SYRIA) GangZoneShowForPlayer(playerid, Zone[BaitShop], SYRIA_COLOR);
  1452. else if(tCP[BaitShop] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[BaitShop], TALIBAN_COLOR);
  1453. else if(tCP[BaitShop] == ISLAM) GangZoneShowForPlayer(playerid, Zone[BaitShop], ISLAM_COLOR);
  1454. else if(tCP[BaitShop] == GERMANY) GangZoneShowForPlayer(playerid, Zone[BaitShop], GERMANY_COLOR);
  1455. else if(tCP[BaitShop] == JAPAN) GangZoneShowForPlayer(playerid, Zone[BaitShop], JAPAN_COLOR);
  1456. else if(tCP[BaitShop] == KOREA) GangZoneShowForPlayer(playerid, Zone[BaitShop], KOREA_COLOR);
  1457. InCP[playerid][ClukinBell] = 0;
  1458. iCP[playerid] = -1;
  1459. if(tCP[ClukinBell] == NONE) GangZoneShowForPlayer(playerid, Zone[ClukinBell], NONE_COLOR);
  1460. else if(tCP[ClukinBell] == USARMY) GangZoneShowForPlayer(playerid, Zone[ClukinBell], USARMY_COLOR);
  1461. else if(tCP[ClukinBell] == SAS) GangZoneShowForPlayer(playerid, Zone[ClukinBell], SAS_COLOR);
  1462. else if(tCP[ClukinBell] == CHINA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], CHINA_COLOR);
  1463. else if(tCP[ClukinBell] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], RUSSIA_COLOR);
  1464. else if(tCP[ClukinBell] == SYRIA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], SYRIA_COLOR);
  1465. else if(tCP[ClukinBell] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[ClukinBell], TALIBAN_COLOR);
  1466. else if(tCP[ClukinBell] == ISLAM) GangZoneShowForPlayer(playerid, Zone[ClukinBell], ISLAM_COLOR);
  1467. else if(tCP[ClukinBell] == GERMANY) GangZoneShowForPlayer(playerid, Zone[ClukinBell], GERMANY_COLOR);
  1468. else if(tCP[ClukinBell] == JAPAN) GangZoneShowForPlayer(playerid, Zone[ClukinBell], JAPAN_COLOR);
  1469. else if(tCP[ClukinBell] == KOREA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], KOREA_COLOR);
  1470. InCP[playerid][Ranch] = 0;
  1471. iCP[playerid] = -1;
  1472. if(tCP[Ranch] == NONE) GangZoneShowForPlayer(playerid, Zone[Ranch], NONE_COLOR);
  1473. else if(tCP[Ranch] == USARMY) GangZoneShowForPlayer(playerid, Zone[Ranch], USARMY_COLOR);
  1474. else if(tCP[Ranch] == SAS) GangZoneShowForPlayer(playerid, Zone[Ranch], SAS_COLOR);
  1475. else if(tCP[Ranch] == CHINA) GangZoneShowForPlayer(playerid, Zone[Ranch], CHINA_COLOR);
  1476. else if(tCP[Ranch] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[Ranch], RUSSIA_COLOR);
  1477. else if(tCP[Ranch] == SYRIA) GangZoneShowForPlayer(playerid, Zone[Ranch], SYRIA_COLOR);
  1478. else if(tCP[Ranch] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[Ranch], TALIBAN_COLOR);
  1479. else if(tCP[Ranch] == ISLAM) GangZoneShowForPlayer(playerid, Zone[Ranch], ISLAM_COLOR);
  1480. else if(tCP[Ranch] == GERMANY) GangZoneShowForPlayer(playerid, Zone[Ranch], GERMANY_COLOR);
  1481. else if(tCP[Ranch] == JAPAN) GangZoneShowForPlayer(playerid, Zone[Ranch], JAPAN_COLOR);
  1482. else if(tCP[Ranch] == KOREA) GangZoneShowForPlayer(playerid, Zone[Ranch], KOREA_COLOR);
  1483. InCP[playerid][RadarBase] = 0;
  1484. iCP[playerid] = -1;
  1485. if(tCP[RadarBase] == NONE) GangZoneShowForPlayer(playerid, Zone[RadarBase], NONE_COLOR);
  1486. else if(tCP[RadarBase] == USARMY) GangZoneShowForPlayer(playerid, Zone[RadarBase], USARMY_COLOR);
  1487. else if(tCP[RadarBase] == SAS) GangZoneShowForPlayer(playerid, Zone[RadarBase], SAS_COLOR);
  1488. else if(tCP[RadarBase] == CHINA) GangZoneShowForPlayer(playerid, Zone[RadarBase], CHINA_COLOR);
  1489. else if(tCP[RadarBase] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[RadarBase], RUSSIA_COLOR);
  1490. else if(tCP[RadarBase] == SYRIA) GangZoneShowForPlayer(playerid, Zone[RadarBase], SYRIA_COLOR);
  1491. else if(tCP[RadarBase] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[RadarBase], TALIBAN_COLOR);
  1492. else if(tCP[RadarBase] == ISLAM) GangZoneShowForPlayer(playerid, Zone[RadarBase], ISLAM_COLOR);
  1493. else if(tCP[RadarBase] == GERMANY) GangZoneShowForPlayer(playerid, Zone[RadarBase], GERMANY_COLOR);
  1494. else if(tCP[RadarBase] == JAPAN) GangZoneShowForPlayer(playerid, Zone[RadarBase], JAPAN_COLOR);
  1495. else if(tCP[RadarBase] == KOREA) GangZoneShowForPlayer(playerid, Zone[RadarBase], KOREA_COLOR);
  1496. InCP[playerid][OilDepot] = 0;
  1497. iCP[playerid] = -1;
  1498. if(tCP[OilDepot] == NONE) GangZoneShowForPlayer(playerid, Zone[OilDepot], NONE_COLOR);
  1499. else if(tCP[OilDepot] == USARMY) GangZoneShowForPlayer(playerid, Zone[OilDepot], USARMY_COLOR);
  1500. else if(tCP[OilDepot] == SAS) GangZoneShowForPlayer(playerid, Zone[OilDepot], SAS_COLOR);
  1501. else if(tCP[OilDepot] == CHINA) GangZoneShowForPlayer(playerid, Zone[OilDepot], CHINA_COLOR);
  1502. else if(tCP[OilDepot] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[OilDepot], RUSSIA_COLOR);
  1503. else if(tCP[OilDepot] == SYRIA) GangZoneShowForPlayer(playerid, Zone[OilDepot], SYRIA_COLOR);
  1504. else if(tCP[OilDepot] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[OilDepot], TALIBAN_COLOR);
  1505. else if(tCP[OilDepot] == ISLAM) GangZoneShowForPlayer(playerid, Zone[OilDepot], ISLAM_COLOR);
  1506. else if(tCP[OilDepot] == GERMANY) GangZoneShowForPlayer(playerid, Zone[OilDepot], GERMANY_COLOR);
  1507. else if(tCP[OilDepot] == JAPAN) GangZoneShowForPlayer(playerid, Zone[OilDepot], JAPAN_COLOR);
  1508. else if(tCP[OilDepot] == KOREA) GangZoneShowForPlayer(playerid, Zone[OilDepot], KOREA_COLOR);
  1509. InCP[playerid][Quarry] = 0;
  1510. iCP[playerid] = -1;
  1511. if(tCP[Quarry] == NONE) GangZoneShowForPlayer(playerid, Zone[Quarry], NONE_COLOR);
  1512. else if(tCP[Quarry] == USARMY) GangZoneShowForPlayer(playerid, Zone[Quarry], USARMY_COLOR);
  1513. else if(tCP[Quarry] == SAS) GangZoneShowForPlayer(playerid, Zone[Quarry], SAS_COLOR);
  1514. else if(tCP[Quarry] == CHINA) GangZoneShowForPlayer(playerid, Zone[Quarry], CHINA_COLOR);
  1515. else if(tCP[Quarry] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[Quarry], RUSSIA_COLOR);
  1516. else if(tCP[Quarry] == SYRIA) GangZoneShowForPlayer(playerid, Zone[Quarry], SYRIA_COLOR);
  1517. else if(tCP[Quarry] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[Quarry], TALIBAN_COLOR);
  1518. else if(tCP[Quarry] == ISLAM) GangZoneShowForPlayer(playerid, Zone[Quarry], ISLAM_COLOR);
  1519. else if(tCP[Quarry] == GERMANY) GangZoneShowForPlayer(playerid, Zone[Quarry], GERMANY_COLOR);
  1520. else if(tCP[Quarry] == JAPAN) GangZoneShowForPlayer(playerid, Zone[Quarry], JAPAN_COLOR);
  1521. else if(tCP[Quarry] == KOREA) GangZoneShowForPlayer(playerid, Zone[Quarry], KOREA_COLOR);
  1522. InCP[playerid][TheBigSpreadRanch] = 0;
  1523. iCP[playerid] = -1;
  1524. if(tCP[TheBigSpreadRanch] == NONE) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], NONE_COLOR);
  1525. else if(tCP[TheBigSpreadRanch] == USARMY) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], USARMY_COLOR);
  1526. else if(tCP[TheBigSpreadRanch] == SAS) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], SAS_COLOR);
  1527. else if(tCP[TheBigSpreadRanch] == CHINA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], CHINA_COLOR);
  1528. else if(tCP[TheBigSpreadRanch] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], RUSSIA_COLOR);
  1529. else if(tCP[TheBigSpreadRanch] == SYRIA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], SYRIA_COLOR);
  1530. else if(tCP[TheBigSpreadRanch] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], TALIBAN_COLOR);
  1531. else if(tCP[TheBigSpreadRanch] == ISLAM) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], ISLAM_COLOR);
  1532. else if(tCP[TheBigSpreadRanch] == GERMANY) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], GERMANY_COLOR);
  1533. else if(tCP[TheBigSpreadRanch] == JAPAN) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], JAPAN_COLOR);
  1534. else if(tCP[TheBigSpreadRanch] == KOREA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], KOREA_COLOR);
  1535. SetPlayerColor(playerid,0x888888FF);
  1536. SendClientMessage(playerid,0xFFFFFFAA,"Welcome to Battlefield Dessert server!");
  1537. SendClientMessage(playerid,CHINA_COLOR,"This server is powered and scripted by Flaken");
  1538. SendClientMessage(playerid,JAPAN_COLOR,"Type /help to see the list of the commands");
  1539. return 1;
  1540. }
  1541.  
  1542. public OnPlayerText(playerid, text[])
  1543. {
  1544. if(text[0] == ADMIN_SIGN && XST_Info[playerid][Admin] > 0)
  1545. {
  1546. new string[256];
  1547. format(string, sizeof(string), "[ADM] %s %s: %s" , GetAdminRank(playerid), GetName(playerid), text[1]);
  1548. SendAdminMessage(playerid, string);
  1549. return 0;
  1550. }
  1551. if(text[0] == VIP_SIGN && XST_Info[playerid][Vip] > 0)
  1552. {
  1553. new string[256];
  1554. format(string, sizeof(string), "[VIP] %s %s: %s" , GetVipRank(playerid), GetName(playerid), text[1]);
  1555. SendVipMessage(playerid, string);
  1556. return 0;
  1557. }
  1558. if(XST_Info[playerid][Muted] == 1)
  1559. {
  1560. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR , "You can't talk you're muted!");
  1561. return 0;
  1562. }
  1563. return 1;
  1564. }
  1565.  
  1566.  
  1567. public OnPlayerDisconnect(playerid, reason)
  1568. {
  1569. if(fexist(GetPlayerFile(playerid) ) ) {
  1570. new INI: file = INI_Open(GetPlayerFile(playerid) );
  1571. INI_SetTag(file, "Player's File");
  1572. INI_WriteInt(file, "Admin", XST_Info[playerid][Admin]);
  1573. INI_WriteInt(file, "Vip", XST_Info[playerid][Vip]);
  1574. INI_WriteInt(file, "Score", XST_Info[playerid][Score]);
  1575. INI_WriteInt(file, "Kills", XST_Info[playerid][Kills]);
  1576. INI_WriteInt(file, "Deaths", XST_Info[playerid][Deaths]);
  1577. INI_WriteInt(file, "Hours", XST_Info[playerid][Hours]);
  1578. INI_WriteInt(file, "Minute", XST_Info[playerid][Minute]);
  1579. INI_WriteInt(file, "Second", XST_Info[playerid][Second]);
  1580. INI_WriteInt(file, "Warnings", XST_Info[playerid][Warnings]);
  1581. INI_WriteInt(file, "Jailed", XST_Info[playerid][Jailed]);
  1582. INI_WriteInt(file, "Banned", XST_Info[playerid][Banned]);
  1583. INI_WriteInt(file, "BanTime", XST_Info[playerid][BanTime]);
  1584. INI_WriteInt(file, "Muted", XST_Info[playerid][Muted]);
  1585. INI_WriteInt(file, "Cash", XST_Info[playerid][Cash]);
  1586. INI_WriteInt(file, "Score", XST_Info[playerid][Score]);
  1587. #if SAVE_SKIN == true
  1588. INI_WriteInt(file, "Skin", XST_Info[playerid][Skin]);
  1589. #endif
  1590. INI_Close(file);
  1591. }
  1592.  
  1593. if(InCP[playerid][SnakeFarm] == 1)
  1594. {
  1595. UnderAttack[SnakeFarm] = 0;
  1596. }
  1597. if(InCP[playerid][CiaHeadquaters] == 1)
  1598. {
  1599. UnderAttack[CiaHeadquaters] = 0;
  1600. }
  1601. if(InCP[playerid][PetrolStation] == 1)
  1602. {
  1603. UnderAttack[PetrolStation] = 0;
  1604. }
  1605. if(InCP[playerid][BaitShop] == 1)
  1606. {
  1607. UnderAttack[BaitShop] = 0;
  1608. }
  1609. if(InCP[playerid][ClukinBell] == 1)
  1610. {
  1611. UnderAttack[ClukinBell] = 0;
  1612. }
  1613. if(InCP[playerid][Ranch] == 1)
  1614. {
  1615. UnderAttack[Ranch] = 0;
  1616. }
  1617. if(InCP[playerid][RadarBase] == 1)
  1618. {
  1619. UnderAttack[RadarBase] = 0;
  1620. }
  1621. if(InCP[playerid][OilDepot] == 1)
  1622. {
  1623. UnderAttack[OilDepot] = 0;
  1624. }
  1625. if(InCP[playerid][Quarry] == 1)
  1626. {
  1627. UnderAttack[Quarry] = 0;
  1628. }
  1629. if(InCP[playerid][TheBigSpreadRanch] == 1)
  1630. {
  1631. UnderAttack[TheBigSpreadRanch] = 0;
  1632. }
  1633. DeletePVar(playerid, "spectatorspectate");
  1634. new issepctator = GetPVarInt(playerid, "spectator");
  1635. TogglePlayerSpectating(issepctator, false);
  1636. return 1;
  1637. }
  1638.  
  1639.  
  1640. public OnPlayerRequestClass(playerid, classid)
  1641. {
  1642. SetupPlayerForClassSelection(playerid);
  1643. SetPlayerTeamFromClass(playerid,classid);
  1644.  
  1645. if(classid == 0)
  1646. {
  1647. GameTextForPlayer(playerid,"~B~USArmy ~w~(Special Forces)",1000,5);
  1648. }
  1649. else if(classid == 1)
  1650. {
  1651. GameTextForPlayer(playerid,"~G~British ~w~SAS",1000,5);
  1652. }
  1653. else if(classid == 2)
  1654. {
  1655. GameTextForPlayer(playerid,"~W~Chinese ~w~Rebel",1000,5);
  1656. }
  1657. else if(classid == 3)
  1658. {
  1659. GameTextForPlayer(playerid,"~R~Russian ~w~Mercenary",1000,5);
  1660. }
  1661. else if(classid == 4)
  1662. {
  1663. GameTextForPlayer(playerid,"~W~Syrian ~w~Army",1000,5);
  1664. }
  1665. else if(classid == 5)
  1666. {
  1667. GameTextForPlayer(playerid,"~W~Taliban ~w~Rebel",1000,5);
  1668. }
  1669. else if(classid == 6)
  1670. {
  1671. GameTextForPlayer(playerid,"~W~Islamic ~w~warlord",1000,5);
  1672. }
  1673. else if(classid == 7)
  1674. {
  1675. GameTextForPlayer(playerid,"~W~German ~w~Soldier",1000,5);
  1676. }
  1677. else if(classid == 8)
  1678. {
  1679. GameTextForPlayer(playerid,"~W~Japanese ~w~Warrior",1000,5);
  1680. }
  1681. else if(classid == 9)
  1682. {
  1683. GameTextForPlayer(playerid,"~W~Korean ~w~rebel",1000,5);
  1684. }
  1685.  
  1686. return 1;
  1687. }
  1688.  
  1689. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  1690. {
  1691. if(success && XST_Info[playerid][Jailed ] == 1) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't speak when you're jailed!");
  1692. if(!success)
  1693. {
  1694. new cmd[256];
  1695. format(cmd, sizeof(cmd), "[ERROR] Command %s does not exist!" , cmdtext);
  1696. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, cmd);
  1697. }
  1698. return 1;
  1699. }
  1700.  
  1701. public OnPlayerSpawn(playerid)
  1702. {
  1703. if(XST_Info[playerid][Jailed] == 1)
  1704. {
  1705. SetPlayerPos(playerid, 262.9825,77.4500,1001.0391);
  1706. SetPlayerInterior(playerid, 6);
  1707. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You didn't completed your punish! back to jail");
  1708. }
  1709. TextDrawShowForPlayer(playerid,Textdraw1);
  1710. TextDrawShowForPlayer(playerid,Textdraw2);
  1711. SetPlayerToTeamColor(playerid);
  1712. GangZoneShowForAll(GZ_USARMY, 0x33CCFFAA);
  1713. GangZoneShowForAll(GZ_SAS, 0x33AA33AA);
  1714. GangZoneShowForAll(GZ_CHINA, 0xFFC0CBAA);
  1715. GangZoneShowForAll(GZ_RUSSIA, 0xAA3333AA);
  1716. GangZoneShowForAll(GZ_SYRIA, 0xA52A2AFF);
  1717. GangZoneShowForAll(GZ_TALIBAN, 0xFFFFFFAA);
  1718. GangZoneShowForAll(GZ_ISLAM, 0xA9A9A9FF);
  1719. GangZoneShowForAll(GZ_GERMANY, 0xFF9900AA);
  1720. GangZoneShowForAll(GZ_JAPAN, 0x800080FF);
  1721. GangZoneShowForAll(GZ_KOREA, 0xFFFF00AA);
  1722. return 1;
  1723. }
  1724.  
  1725. public OnPlayerUpdate(playerid)
  1726. {
  1727. XST_Info[playerid][Score] = GetPlayerScore(playerid);
  1728. XST_Info[playerid][Cash] = GetPlayerMoney(playerid);
  1729. return 1;
  1730. }
  1731.  
  1732. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1733. {
  1734. if(dialogid == REGISTER_DIALOG)
  1735. {
  1736. if(!response) Kick(playerid);
  1737. if(response)
  1738. {
  1739. if(strlen(inputtext) > PASS_MAX_LENGHT || strlen(inputtext) < PASS_MIN_LENGHT) return ShowRegisterDialog(playerid);
  1740. new wp_hash[129];
  1741. WP_Hash(wp_hash, sizeof(wp_hash), inputtext);
  1742. new INI: file = INI_Open(GetPlayerFile(playerid) );
  1743. INI_SetTag(file, "Player's File");
  1744. INI_WriteString(file, "Name", GetName(playerid) );
  1745. INI_WriteString(file, "Password", wp_hash);
  1746. INI_WriteInt(file, "Admin", 0);
  1747. INI_WriteInt(file, "Vip", 0);
  1748. INI_WriteInt(file, "Score", 0);
  1749. INI_WriteInt(file, "Kills", 0);
  1750. INI_WriteInt(file, "Deaths", 0);
  1751. INI_WriteInt(file, "Hours", 0);
  1752. INI_WriteInt(file, "Minute", 0);
  1753. INI_WriteInt(file, "Second", 0);
  1754. INI_WriteInt(file, "Warnings", 0);
  1755. INI_WriteInt(file, "Jailed", 0);
  1756. INI_WriteInt(file, "Banned", 0);
  1757. INI_WriteInt(file, "BanTime", 0);
  1758. INI_WriteInt(file, "Muted", 0);
  1759. INI_WriteInt(file, "Cash", 0);
  1760. INI_WriteInt(file, "Score", 0);
  1761. #if SAVE_SKIN == true
  1762. INI_WriteInt(file, "Skin", 0);
  1763. #endif
  1764. INI_Close(file);
  1765. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[REGISTER] Your account was succesfull register in the database");
  1766. }
  1767. }
  1768. if(dialogid == LOGIN_DIALOG)
  1769. {
  1770. if(!response) Kick(playerid);
  1771. if(response)
  1772. {
  1773. new wp_hash[129];
  1774. WP_Hash(wp_hash, sizeof(wp_hash), inputtext);
  1775. if(!strcmp(wp_hash, XST_Info[playerid][Password], false) )
  1776. {
  1777. INI_ParseFile(GetPlayerFile(playerid), "loadplayerdata", .bExtra = true, .extra = playerid);
  1778. SetPlayerScore(playerid, XST_Info[playerid][Score]);
  1779. GivePlayerMoney(playerid, XST_Info[playerid][Cash]);
  1780. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[LOGIN] You sucessfull logged in.");
  1781. #if SAVE_SKIN == true
  1782. SetPlayerSkin(playerid, XST_Info[playerid][Skin]);
  1783. #endif
  1784. if(XST_Info[playerid][Admin] > 0) {
  1785. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[ADMIN] You logged in as Admin. type: /ah");
  1786. }
  1787. if(XST_Info[playerid][Vip] > 0) {
  1788. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[VIP] You logged in as VIP . type: /vh");
  1789. }
  1790. }
  1791. else
  1792. {
  1793. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[LOGIN] Password is incorrect");
  1794. ShowLoginDialog(playerid);
  1795. }
  1796. }
  1797. }
  1798. if(dialogid == 3)
  1799. {
  1800. if(!response) return 1;
  1801. if(response)
  1802. {
  1803. switch(listitem)
  1804. {
  1805. case 0:
  1806. {
  1807. ShowPlayerDialog(playerid, 4 , DIALOG_STYLE_INPUT, "Report Problem", "Write your problem as short you can and send it, an admin will respond to your problem" , "Report", "Cancel");
  1808. }
  1809. case 1:
  1810. {
  1811. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Report a hacker" , "Please write his id", "Next", "Cancel");
  1812. }
  1813. }
  1814. }
  1815. }
  1816. if(dialogid == 4)
  1817. {
  1818. if(!response) return 1;
  1819. if(response)
  1820. {
  1821. new string[256];
  1822. format(string, sizeof(string), "[PLAYER] %s (id: %i) reported a problem: %s" , GetName(playerid), playerid ,inputtext);
  1823. foreach(Player, i) if(XST_Info[i][Admin] > 0 && XST_Info[i][Duty] == 1) SendClientMessage(i, XSTADMIN_SECONDARYCOLOR, string);
  1824. SendClientMessage(playerid, XSTADMIN_SECONDARYCOLOR, "Message was sent , an admin will send you a P.M");
  1825. }
  1826. }
  1827. if(dialogid == 5)
  1828. {
  1829. if(!response) return 1;
  1830. if(response)
  1831. {
  1832. new id = strval(inputtext);
  1833. if(!IsPlayerConnected(id) ) return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Report a hacker" , "Please write his id", "Next", "Cancel");
  1834. SetPVarInt(playerid, "HackerID", id);
  1835. ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Reason", "Please write the reason why you report that player", "Report", "Cancel");
  1836. }
  1837. }
  1838. if(dialogid == 6)
  1839. {
  1840. if(!response)
  1841. {
  1842. DeletePVar(playerid, "HackerID");
  1843. return 1;
  1844. }
  1845. if(response)
  1846. {
  1847. new hacker = GetPVarInt(playerid, "HackerID");
  1848. new string[512];
  1849. format(string, sizeof(string), "[PLAYER] %s (id: %i) reported a hacker: %s ( id : %i) - reason: %s" , GetName(playerid), playerid ,GetName(hacker), hacker, inputtext);
  1850. foreach(Player, i) if(XST_Info[i][Admin] > 0 && XST_Info[i][Duty] == 1) SendClientMessage(i, XSTADMIN_SECONDARYCOLOR, string);
  1851. SendClientMessage(playerid, XSTADMIN_SECONDARYCOLOR, "Message was sent , an admin will send you a P.M");
  1852. }
  1853. }
  1854. return 1;
  1855. }
  1856.  
  1857. public OnPlayerDeath(playerid, killerid, reason)
  1858. {
  1859. if(killerid != INVALID_PLAYER_ID)
  1860. {
  1861. new playerspectating = GetPVarInt(playerid, "spectatorspectate");
  1862. new issepctator = GetPVarInt(playerid, "spectator");
  1863. if(playerspectating == playerid) {
  1864. TogglePlayerSpectating(issepctator, false);
  1865. DeletePVar(playerid, "spectatorspectate"); }
  1866. }
  1867. {
  1868. XST_Info[playerid][Deaths]++;
  1869. }
  1870. KillTimer(timer[playerid][SnakeFarm]);
  1871. KillTimer(timer[playerid][CiaHeadquaters]);
  1872. KillTimer(timer[playerid][PetrolStation]);
  1873. KillTimer(timer[playerid][BaitShop]);
  1874. KillTimer(timer[playerid][ClukinBell]);
  1875. KillTimer(timer[playerid][Ranch]);
  1876. KillTimer(timer[playerid][RadarBase]);
  1877. KillTimer(timer[playerid][OilDepot]);
  1878. KillTimer(timer[playerid][Quarry]);
  1879. KillTimer(timer[playerid][TheBigSpreadRanch]);
  1880. KillTimer(CountTime[playerid]);
  1881. UnderAttack[SnakeFarm] = 0;
  1882. UnderAttack[CiaHeadquaters] = 0;
  1883. UnderAttack[PetrolStation] = 0;
  1884. UnderAttack[BaitShop] = 0;
  1885. UnderAttack[ClukinBell] = 0;
  1886. UnderAttack[Ranch] = 0;
  1887. UnderAttack[RadarBase] = 0;
  1888. UnderAttack[OilDepot] = 0;
  1889. UnderAttack[Quarry] = 0;
  1890. UnderAttack[TheBigSpreadRanch] = 0;
  1891. TextDrawHideForPlayer(playerid,Textdraw1);
  1892. TextDrawHideForPlayer(playerid,Textdraw2);
  1893. GivePlayerWeapon(killerid, 4, 1);
  1894. SendDeathMessage(killerid, playerid, reason);
  1895. GameTextForPlayer(playerid,"~R~DEAD", 10000, 3);
  1896. SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
  1897. SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
  1898. GivePlayerMoney(killerid,100);
  1899. GivePlayerMoney(playerid,-100);
  1900. TextDrawHideForPlayer(playerid, Textdraw1);
  1901. TextDrawHideForPlayer(playerid, Textdraw2);
  1902. new Float:X, Float:Y, Float:Z;
  1903. GetPlayerPos(playerid, X, Y, Z);
  1904. new obj2 =CreateObject(18728, X, Y, Z, 0.0, 0.0, 0.0, 100.0);
  1905. SetTimerEx("destroyThisObject", 10000, 0, "i", obj2);
  1906. new obj1 =CreateObject(2896, X, Y, Z, 0.0, 0.0, 0.0, 100.0);
  1907. SetTimerEx("destroyThisObject", 10000, 0, "i", obj1);
  1908. if(GetPlayerWeapon(killerid) == 4) GivePlayerWeapon(killerid, 16, 1);
  1909. {
  1910. GameTextForPlayer(killerid, "GOOD KILL", 5000, 3);
  1911. }
  1912. return 1;
  1913. }
  1914. public OnPlayerCommandText(playerid, cmdtext[])
  1915. {
  1916.  
  1917. if (strcmp("/tower", cmdtext, true, 5) == 0)
  1918. {
  1919. if(GetPlayerScore(playerid)<10) return SendClientMessage(playerid, 0xAA3333AA,"You need 10 scorepoints to spawn the tower51");
  1920. SetPlayerScore(playerid,GetPlayerScore(playerid)-10);
  1921. new Float:x, Float:y, Float:z, Float:a;
  1922. GetPlayerPos(playerid, x, y, z);
  1923. GetPlayerFacingAngle(playerid, a);
  1924. Towercar = CreateVehicle(470, x +2, y, z+2, a, -1, -1, 60);
  1925. AttachObjectToVehicle(obj, Towercar, 0.0, -5.0, -0.2, 0.0, 0.0, 0.0);
  1926. PutPlayerInVehicle(playerid, Towercar, 0);
  1927. }
  1928.  
  1929.  
  1930. return 1;
  1931. }
  1932.  
  1933. public destroyThisObject(objid) {
  1934. DestroyObject(objid);
  1935. }
  1936. public OnPlayerRequestSpawn(playerid)
  1937. {
  1938. new team1count = GetPlayersCountInTeam(USARMY);
  1939. new team2count = GetPlayersCountInTeam(SAS);
  1940. new team3count = GetPlayersCountInTeam(CHINA);
  1941. new team4count = GetPlayersCountInTeam(RUSSIA);
  1942. new team5count = GetPlayersCountInTeam(SYRIA);
  1943. new team6count = GetPlayersCountInTeam(TALIBAN);
  1944. new team7count = GetPlayersCountInTeam(ISLAM);
  1945. new team8count = GetPlayersCountInTeam(GERMANY);
  1946. new team9count = GetPlayersCountInTeam(JAPAN);
  1947. new team10count = GetPlayersCountInTeam(KOREA);
  1948. switch(gTeam[playerid])
  1949. {
  1950. case USARMY:
  1951. {
  1952. if(team1count > team2count && team3count && team4count && team5count && team6count && team7count && team8count && team9count && team10count) //if the player's count of TEAM1 is > (greater) than the team 2's count and team 3's count then.
  1953. {
  1954. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1955. return 0;
  1956. }
  1957. }
  1958. case SAS:
  1959. {
  1960. if(team2count > team1count > team3count && team4count && team5count && team6count && team7count && team8count && team9count && team10count) //if the player's count of TEAM2 is > (greater) than the team 1's count and team 3's count then.
  1961. {
  1962. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1963. return 0;
  1964. }
  1965. }
  1966. case CHINA:
  1967. {
  1968. if(team3count > team1count > team2count && team4count && team5count && team6count && team7count && team8count && team9count && team10count) //if the player's count of TEAM2 is > (greater) than the team 1's count and team 3's count then.
  1969. {
  1970. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1971. return 0;
  1972. }
  1973. }
  1974. case RUSSIA:
  1975. {
  1976. if(team4count > team1count > team2count && team3count && team5count && team6count && team7count && team8count && team9count && team10count) //if the player's count of TEAM2 is > (greater) than the team 1's count and team 3's count then.
  1977. {
  1978. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1979. return 0;
  1980. }
  1981. }
  1982. case SYRIA:
  1983. {
  1984. if(team5count > team1count > team2count && team3count && team4count && team6count && team7count && team8count && team9count && team10count) //if the player's count of TEAM2 is > (greater) than the team 1's count and team 3's count then.
  1985. {
  1986. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1987. return 0;
  1988. }
  1989. }
  1990. case TALIBAN:
  1991. {
  1992. if(team6count > team1count > team2count && team3count && team4count && team5count && team7count && team8count && team9count && team10count) //if the player's count of TEAM2 is > (greater) than the team 1's count and team 3's count then.
  1993. {
  1994. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  1995. return 0;
  1996. }
  1997. }
  1998. case ISLAM:
  1999. {
  2000. if(team7count > team1count > team2count && team3count && team4count && team5count && team6count && team8count && team9count && team10count) //if the player's count of TEAM3 is > (greater) than the team 1's count and team 2's count then.
  2001. {
  2002. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  2003. return 0;
  2004. }
  2005. }
  2006. case GERMANY:
  2007. {
  2008. if(team8count > team1count > team2count && team3count && team4count && team5count && team6count && team7count && team9count && team10count) //if the player's count of TEAM3 is > (greater) than the team 1's count and team 2's count then.
  2009. {
  2010. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  2011. return 0;
  2012. }
  2013. }
  2014. case JAPAN:
  2015. {
  2016. if(team9count > team1count > team2count && team3count && team4count && team5count && team6count && team7count && team8count && team10count) //if the player's count of TEAM3 is > (greater) than the team 1's count and team 2's count then.
  2017. {
  2018. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  2019. return 0;
  2020. }
  2021. }
  2022. case KOREA:
  2023. {
  2024. if(team10count > team1count > team2count && team3count && team4count && team5count && team6count && team7count && team8count && team9count) //if the player's count of TEAM3 is > (greater) than the team 1's count and team 2's count then.
  2025. {
  2026. SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
  2027. return 0;
  2028. }
  2029. }
  2030.  
  2031. }
  2032. return 1;
  2033. }
  2034.  
  2035. stock GetPlayersCountInTeam(teamid)
  2036. {
  2037. new playercount = 0;
  2038. for(new x = 0; x < MAX_PLAYERS; x ++)
  2039. {
  2040. if(GetPlayerState(x) == PLAYER_STATE_NONE) continue;
  2041. if(GetPlayerTeam(x) != teamid) continue;
  2042. playercount++;
  2043. }
  2044. return playercount;
  2045. }
  2046.  
  2047. public OnPlayerStateChange(playerid,newstate,oldstate)
  2048. {
  2049. new playerspectating = GetPVarInt(playerid, "spectatorspectate");
  2050. new issepctator = GetPVarInt(playerid, "spectator");
  2051. if(newstate == 9 && XST_Info[issepctator][Spectator] == 1)
  2052. {
  2053. if(IsPlayerInAnyVehicle(playerspectating))
  2054. {
  2055. new vehicle = GetPlayerVehicleID(playerspectating);
  2056. TogglePlayerSpectating(issepctator, 1);
  2057. PlayerSpectateVehicle(issepctator, vehicle);
  2058. }
  2059. else
  2060. {
  2061. TogglePlayerSpectating(issepctator, 1);
  2062. PlayerSpectatePlayer(issepctator, playerspectating);
  2063. }
  2064. }
  2065. new vehicleid = GetPlayerVehicleID(playerid);
  2066. if(GetVehicleModel(vehicleid) == 425)
  2067. {
  2068. if(GetPlayerScore(playerid) < 50) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 50 scorepoints you can enter this vehicle!");
  2069. }
  2070. else
  2071. if(GetVehicleModel(vehicleid) == 520)
  2072. {
  2073. if(GetPlayerScore(playerid) < 100) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 100 scorepoints you can enter this vehicle!");
  2074. }
  2075. else
  2076. if(GetVehicleModel(vehicleid) == 432)
  2077. {
  2078. if(GetPlayerScore(playerid) < 25) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 25 scorepoints you can enter this vehicle!");
  2079. }
  2080. else
  2081. if(GetVehicleModel(vehicleid) == 447)
  2082. {
  2083. if(GetPlayerScore(playerid) < 10) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 10 scorepoints you can enter this vehicle!");
  2084. }
  2085. else
  2086. if(GetVehicleModel(vehicleid) == 487)
  2087. {
  2088. if(GetPlayerScore(playerid) < 5) RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 5 scorepoints you can enter this vehicle!");
  2089. }
  2090. return 1;
  2091. }
  2092. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  2093. {
  2094. if(checkpointid == CP[SnakeFarm])
  2095. {
  2096. if(UnderAttack[SnakeFarm] == 1)
  2097. {
  2098. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2099. }
  2100. else if(gTeam[playerid] == tCP[SnakeFarm])
  2101. {
  2102. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2103. }
  2104. else if(gTeam[playerid] == NONE)
  2105. {
  2106. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2107. }
  2108. else
  2109. {
  2110. UnderAttack[SnakeFarm] = 1;
  2111. timer[playerid][SnakeFarm] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2112. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2113. iCP[playerid] = SnakeFarm;
  2114. InCP[playerid][SnakeFarm] = 1;
  2115. Captured[SnakeFarm] = 0;
  2116. if(gTeam[playerid] == USARMY)
  2117. {
  2118. GangZoneFlashForAll(Zone[SnakeFarm], USARMY_COLOR);
  2119. }
  2120. else if(gTeam[playerid] == SAS)
  2121. {
  2122. GangZoneFlashForAll(Zone[SnakeFarm], SAS_COLOR);
  2123. }
  2124. else if(gTeam[playerid] == CHINA)
  2125. {
  2126. GangZoneFlashForAll(Zone[SnakeFarm], CHINA_COLOR);
  2127. }
  2128. else if(gTeam[playerid] == RUSSIA)
  2129. {
  2130. GangZoneFlashForAll(Zone[SnakeFarm], RUSSIA_COLOR);
  2131. }
  2132. else if(gTeam[playerid] == SYRIA)
  2133. {
  2134. GangZoneFlashForAll(Zone[SnakeFarm], SYRIA_COLOR);
  2135. }
  2136. else if(gTeam[playerid] == TALIBAN)
  2137. {
  2138. GangZoneFlashForAll(Zone[SnakeFarm], TALIBAN_COLOR);
  2139. }
  2140. else if(gTeam[playerid] == ISLAM)
  2141. {
  2142. GangZoneFlashForAll(Zone[SnakeFarm], ISLAM_COLOR);
  2143. }
  2144. else if(gTeam[playerid] == GERMANY)
  2145. {
  2146. GangZoneFlashForAll(Zone[SnakeFarm], GERMANY_COLOR);
  2147. }
  2148. else if(gTeam[playerid] == JAPAN)
  2149. {
  2150. GangZoneFlashForAll(Zone[SnakeFarm], JAPAN_COLOR);
  2151. }
  2152. else if(gTeam[playerid] == KOREA)
  2153. {
  2154. GangZoneFlashForAll(Zone[SnakeFarm], KOREA_COLOR);
  2155. }
  2156. new string[128], name[MAX_PLAYER_NAME+1];
  2157. GetPlayerName(playerid, name, sizeof(name));
  2158. format(string, sizeof(string),"%s is trying to capture the Snake Farm",name);
  2159. SendClientMessageToAll(COLOR_WHITE, string);
  2160. }
  2161. }
  2162. if(checkpointid == CP[CiaHeadquaters])
  2163. {
  2164. if(UnderAttack[CiaHeadquaters] == 1)
  2165. {
  2166. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2167. }
  2168. else if(gTeam[playerid] == tCP[CiaHeadquaters])
  2169. {
  2170. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2171. }
  2172. else if(gTeam[playerid] == NONE)
  2173. {
  2174. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2175. }
  2176. else
  2177. {
  2178. UnderAttack[CiaHeadquaters] = 1;
  2179. timer[playerid][CiaHeadquaters] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2180. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2181. iCP[playerid] = CiaHeadquaters;
  2182. InCP[playerid][CiaHeadquaters] = 1;
  2183. Captured[CiaHeadquaters] = 0;
  2184. if(gTeam[playerid] == USARMY)
  2185. {
  2186. GangZoneFlashForAll(Zone[CiaHeadquaters], USARMY_COLOR);
  2187. }
  2188. else if(gTeam[playerid] == SAS)
  2189. {
  2190. GangZoneFlashForAll(Zone[CiaHeadquaters], SAS_COLOR);
  2191. }
  2192. else if(gTeam[playerid] == CHINA)
  2193. {
  2194. GangZoneFlashForAll(Zone[CiaHeadquaters], CHINA_COLOR);
  2195. }
  2196. else if(gTeam[playerid] == RUSSIA)
  2197. {
  2198. GangZoneFlashForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
  2199. }
  2200. else if(gTeam[playerid] == SYRIA)
  2201. {
  2202. GangZoneFlashForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
  2203. }
  2204. else if(gTeam[playerid] == TALIBAN)
  2205. {
  2206. GangZoneFlashForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
  2207. }
  2208. else if(gTeam[playerid] == ISLAM)
  2209. {
  2210. GangZoneFlashForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
  2211. }
  2212. else if(gTeam[playerid] == GERMANY)
  2213. {
  2214. GangZoneFlashForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
  2215. }
  2216. else if(gTeam[playerid] == JAPAN)
  2217. {
  2218. GangZoneFlashForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
  2219. }
  2220. else if(gTeam[playerid] == KOREA)
  2221. {
  2222. GangZoneFlashForAll(Zone[CiaHeadquaters], KOREA_COLOR);
  2223. }
  2224. new string[128], name[MAX_PLAYER_NAME+1];
  2225. GetPlayerName(playerid, name, sizeof(name));
  2226. format(string, sizeof(string),"%s is trying to capture the Cia Headquaters",name);
  2227. SendClientMessageToAll(COLOR_WHITE, string);
  2228. }
  2229. }
  2230. if(checkpointid == CP[PetrolStation])
  2231. {
  2232. if(UnderAttack[PetrolStation] == 1)
  2233. {
  2234. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2235. }
  2236. else if(gTeam[playerid] == tCP[PetrolStation])
  2237. {
  2238. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2239. }
  2240. else if(gTeam[playerid] == NONE)
  2241. {
  2242. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2243. }
  2244. else
  2245. {
  2246. UnderAttack[PetrolStation] = 1;
  2247. timer[playerid][PetrolStation] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2248. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2249. iCP[playerid] = PetrolStation;
  2250. InCP[playerid][PetrolStation] = 1;
  2251. Captured[PetrolStation] = 0;
  2252. if(gTeam[playerid] == USARMY)
  2253. {
  2254. GangZoneFlashForAll(Zone[PetrolStation], USARMY_COLOR);
  2255. }
  2256. else if(gTeam[playerid] == SAS)
  2257. {
  2258. GangZoneFlashForAll(Zone[PetrolStation], SAS_COLOR);
  2259. }
  2260. else if(gTeam[playerid] == CHINA)
  2261. {
  2262. GangZoneFlashForAll(Zone[PetrolStation], CHINA_COLOR);
  2263. }
  2264. else if(gTeam[playerid] == RUSSIA)
  2265. {
  2266. GangZoneFlashForAll(Zone[PetrolStation], RUSSIA_COLOR);
  2267. }
  2268. else if(gTeam[playerid] == SYRIA)
  2269. {
  2270. GangZoneFlashForAll(Zone[PetrolStation], SYRIA_COLOR);
  2271. }
  2272. else if(gTeam[playerid] == TALIBAN)
  2273. {
  2274. GangZoneFlashForAll(Zone[PetrolStation], TALIBAN_COLOR);
  2275. }
  2276. else if(gTeam[playerid] == ISLAM)
  2277. {
  2278. GangZoneFlashForAll(Zone[PetrolStation], ISLAM_COLOR);
  2279. }
  2280. else if(gTeam[playerid] == GERMANY)
  2281. {
  2282. GangZoneFlashForAll(Zone[PetrolStation], GERMANY_COLOR);
  2283. }
  2284. else if(gTeam[playerid] == JAPAN)
  2285. {
  2286. GangZoneFlashForAll(Zone[PetrolStation], JAPAN_COLOR);
  2287. }
  2288. else if(gTeam[playerid] == KOREA)
  2289. {
  2290. GangZoneFlashForAll(Zone[PetrolStation], KOREA_COLOR);
  2291. }
  2292. new string[128], name[MAX_PLAYER_NAME+1];
  2293. GetPlayerName(playerid, name, sizeof(name));
  2294. format(string, sizeof(string),"%s is trying to capture the Petrol Station",name);
  2295. SendClientMessageToAll(COLOR_WHITE, string);
  2296. }
  2297. }
  2298. if(checkpointid == CP[BaitShop])
  2299. {
  2300. if(UnderAttack[BaitShop] == 1)
  2301. {
  2302. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2303. }
  2304. else if(gTeam[playerid] == tCP[BaitShop])
  2305. {
  2306. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2307. }
  2308. else if(gTeam[playerid] == NONE)
  2309. {
  2310. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2311. }
  2312. else
  2313. {
  2314. UnderAttack[BaitShop] = 1;
  2315. timer[playerid][BaitShop] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2316. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2317. iCP[playerid] = BaitShop;
  2318. InCP[playerid][BaitShop] = 1;
  2319. Captured[BaitShop] = 0;
  2320. if(gTeam[playerid] == USARMY)
  2321. {
  2322. GangZoneFlashForAll(Zone[BaitShop], USARMY_COLOR);
  2323. }
  2324. else if(gTeam[playerid] == SAS)
  2325. {
  2326. GangZoneFlashForAll(Zone[BaitShop], SAS_COLOR);
  2327. }
  2328. else if(gTeam[playerid] == CHINA)
  2329. {
  2330. GangZoneFlashForAll(Zone[BaitShop], CHINA_COLOR);
  2331. }
  2332. else if(gTeam[playerid] == RUSSIA)
  2333. {
  2334. GangZoneFlashForAll(Zone[BaitShop], RUSSIA_COLOR);
  2335. }
  2336. else if(gTeam[playerid] == SYRIA)
  2337. {
  2338. GangZoneFlashForAll(Zone[BaitShop], SYRIA_COLOR);
  2339. }
  2340. else if(gTeam[playerid] == TALIBAN)
  2341. {
  2342. GangZoneFlashForAll(Zone[BaitShop], TALIBAN_COLOR);
  2343. }
  2344. else if(gTeam[playerid] == ISLAM)
  2345. {
  2346. GangZoneFlashForAll(Zone[BaitShop], ISLAM_COLOR);
  2347. }
  2348. else if(gTeam[playerid] == GERMANY)
  2349. {
  2350. GangZoneFlashForAll(Zone[BaitShop], GERMANY_COLOR);
  2351. }
  2352. else if(gTeam[playerid] == JAPAN)
  2353. {
  2354. GangZoneFlashForAll(Zone[BaitShop], JAPAN_COLOR);
  2355. }
  2356. else if(gTeam[playerid] == KOREA)
  2357. {
  2358. GangZoneFlashForAll(Zone[BaitShop], KOREA_COLOR);
  2359. }
  2360. new string[128], name[MAX_PLAYER_NAME+1];
  2361. GetPlayerName(playerid, name, sizeof(name));
  2362. format(string, sizeof(string),"%s is trying to capture the Bait Shop",name);
  2363. SendClientMessageToAll(COLOR_WHITE, string);
  2364. }
  2365. }
  2366. if(checkpointid == CP[ClukinBell])
  2367. {
  2368. if(UnderAttack[ClukinBell] == 1)
  2369. {
  2370. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2371. }
  2372. else if(gTeam[playerid] == tCP[ClukinBell])
  2373. {
  2374. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2375. }
  2376. else if(gTeam[playerid] == NONE)
  2377. {
  2378. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2379. }
  2380. else
  2381. {
  2382. UnderAttack[ClukinBell] = 1;
  2383. timer[playerid][ClukinBell] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2384. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2385. iCP[playerid] = ClukinBell;
  2386. InCP[playerid][ClukinBell] = 1;
  2387. Captured[ClukinBell] = 0;
  2388. if(gTeam[playerid] == USARMY)
  2389. {
  2390. GangZoneFlashForAll(Zone[ClukinBell], USARMY_COLOR);
  2391. }
  2392. else if(gTeam[playerid] == SAS)
  2393. {
  2394. GangZoneFlashForAll(Zone[ClukinBell], SAS_COLOR);
  2395. }
  2396. else if(gTeam[playerid] == CHINA)
  2397. {
  2398. GangZoneFlashForAll(Zone[ClukinBell], CHINA_COLOR);
  2399. }
  2400. else if(gTeam[playerid] == RUSSIA)
  2401. {
  2402. GangZoneFlashForAll(Zone[ClukinBell], RUSSIA_COLOR);
  2403. }
  2404. else if(gTeam[playerid] == SYRIA)
  2405. {
  2406. GangZoneFlashForAll(Zone[ClukinBell], SYRIA_COLOR);
  2407. }
  2408. else if(gTeam[playerid] == TALIBAN)
  2409. {
  2410. GangZoneFlashForAll(Zone[ClukinBell], TALIBAN_COLOR);
  2411. }
  2412. else if(gTeam[playerid] == ISLAM)
  2413. {
  2414. GangZoneFlashForAll(Zone[ClukinBell], ISLAM_COLOR);
  2415. }
  2416. else if(gTeam[playerid] == GERMANY)
  2417. {
  2418. GangZoneFlashForAll(Zone[ClukinBell], GERMANY_COLOR);
  2419. }
  2420. else if(gTeam[playerid] == JAPAN)
  2421. {
  2422. GangZoneFlashForAll(Zone[ClukinBell], JAPAN_COLOR);
  2423. }
  2424. else if(gTeam[playerid] == KOREA)
  2425. {
  2426. GangZoneFlashForAll(Zone[ClukinBell], KOREA_COLOR);
  2427. }
  2428. new string[128], name[MAX_PLAYER_NAME+1];
  2429. GetPlayerName(playerid, name, sizeof(name));
  2430. format(string, sizeof(string),"%s is trying to capture the Clukin Bell",name);
  2431. SendClientMessageToAll(COLOR_WHITE, string);
  2432. }
  2433. }
  2434. if(checkpointid == CP[Ranch])
  2435. {
  2436. if(UnderAttack[Ranch] == 1)
  2437. {
  2438. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2439. }
  2440. else if(gTeam[playerid] == tCP[Ranch])
  2441. {
  2442. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2443. }
  2444. else if(gTeam[playerid] == NONE)
  2445. {
  2446. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2447. }
  2448. else
  2449. {
  2450. UnderAttack[Ranch] = 1;
  2451. timer[playerid][Ranch] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2452. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2453. iCP[playerid] = Ranch;
  2454. InCP[playerid][Ranch] = 1;
  2455. Captured[Ranch] = 0;
  2456. if(gTeam[playerid] == USARMY)
  2457. {
  2458. GangZoneFlashForAll(Zone[Ranch], USARMY_COLOR);
  2459. }
  2460. else if(gTeam[playerid] == SAS)
  2461. {
  2462. GangZoneFlashForAll(Zone[Ranch], SAS_COLOR);
  2463. }
  2464. else if(gTeam[playerid] == CHINA)
  2465. {
  2466. GangZoneFlashForAll(Zone[Ranch], CHINA_COLOR);
  2467. }
  2468. else if(gTeam[playerid] == RUSSIA)
  2469. {
  2470. GangZoneFlashForAll(Zone[Ranch], RUSSIA_COLOR);
  2471. }
  2472. else if(gTeam[playerid] == SYRIA)
  2473. {
  2474. GangZoneFlashForAll(Zone[Ranch], SYRIA_COLOR);
  2475. }
  2476. else if(gTeam[playerid] == TALIBAN)
  2477. {
  2478. GangZoneFlashForAll(Zone[Ranch], TALIBAN_COLOR);
  2479. }
  2480. else if(gTeam[playerid] == ISLAM)
  2481. {
  2482. GangZoneFlashForAll(Zone[Ranch], ISLAM_COLOR);
  2483. }
  2484. else if(gTeam[playerid] == GERMANY)
  2485. {
  2486. GangZoneFlashForAll(Zone[Ranch], GERMANY_COLOR);
  2487. }
  2488. else if(gTeam[playerid] == JAPAN)
  2489. {
  2490. GangZoneFlashForAll(Zone[Ranch], JAPAN_COLOR);
  2491. }
  2492. else if(gTeam[playerid] == KOREA)
  2493. {
  2494. GangZoneFlashForAll(Zone[Ranch], KOREA_COLOR);
  2495. }
  2496. new string[128], name[MAX_PLAYER_NAME+1];
  2497. GetPlayerName(playerid, name, sizeof(name));
  2498. format(string, sizeof(string),"%s is trying to capture the Ranch",name);
  2499. SendClientMessageToAll(COLOR_WHITE, string);
  2500. }
  2501. }
  2502. if(checkpointid == CP[RadarBase])
  2503. {
  2504. if(UnderAttack[RadarBase] == 1)
  2505. {
  2506. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2507. }
  2508. else if(gTeam[playerid] == tCP[RadarBase])
  2509. {
  2510. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2511. }
  2512. else if(gTeam[playerid] == NONE)
  2513. {
  2514. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2515. }
  2516. else
  2517. {
  2518. UnderAttack[RadarBase] = 1;
  2519. timer[playerid][RadarBase] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2520. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2521. iCP[playerid] = RadarBase;
  2522. InCP[playerid][RadarBase] = 1;
  2523. Captured[RadarBase] = 0;
  2524. if(gTeam[playerid] == USARMY)
  2525. {
  2526. GangZoneFlashForAll(Zone[RadarBase], USARMY_COLOR);
  2527. }
  2528. else if(gTeam[playerid] == SAS)
  2529. {
  2530. GangZoneFlashForAll(Zone[RadarBase], SAS_COLOR);
  2531. }
  2532. else if(gTeam[playerid] == CHINA)
  2533. {
  2534. GangZoneFlashForAll(Zone[RadarBase], CHINA_COLOR);
  2535. }
  2536. else if(gTeam[playerid] == RUSSIA)
  2537. {
  2538. GangZoneFlashForAll(Zone[RadarBase], RUSSIA_COLOR);
  2539. }
  2540. else if(gTeam[playerid] == SYRIA)
  2541. {
  2542. GangZoneFlashForAll(Zone[RadarBase], SYRIA_COLOR);
  2543. }
  2544. else if(gTeam[playerid] == TALIBAN)
  2545. {
  2546. GangZoneFlashForAll(Zone[RadarBase], TALIBAN_COLOR);
  2547. }
  2548. else if(gTeam[playerid] == ISLAM)
  2549. {
  2550. GangZoneFlashForAll(Zone[RadarBase], ISLAM_COLOR);
  2551. }
  2552. else if(gTeam[playerid] == GERMANY)
  2553. {
  2554. GangZoneFlashForAll(Zone[RadarBase], GERMANY_COLOR);
  2555. }
  2556. else if(gTeam[playerid] == JAPAN)
  2557. {
  2558. GangZoneFlashForAll(Zone[RadarBase], JAPAN_COLOR);
  2559. }
  2560. else if(gTeam[playerid] == KOREA)
  2561. {
  2562. GangZoneFlashForAll(Zone[RadarBase], KOREA_COLOR);
  2563. }
  2564. new string[128], name[MAX_PLAYER_NAME+1];
  2565. GetPlayerName(playerid, name, sizeof(name));
  2566. format(string, sizeof(string),"%s is trying to capture the Radar Base",name);
  2567. SendClientMessageToAll(COLOR_WHITE, string);
  2568. }
  2569. }
  2570. if(checkpointid == CP[OilDepot])
  2571. {
  2572. if(UnderAttack[OilDepot] == 1)
  2573. {
  2574. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2575. }
  2576. else if(gTeam[playerid] == tCP[OilDepot])
  2577. {
  2578. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2579. }
  2580. else if(gTeam[playerid] == NONE)
  2581. {
  2582. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2583. }
  2584. else
  2585. {
  2586. UnderAttack[OilDepot] = 1;
  2587. timer[playerid][OilDepot] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2588. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2589. iCP[playerid] = OilDepot;
  2590. InCP[playerid][OilDepot] = 1;
  2591. Captured[OilDepot] = 0;
  2592. if(gTeam[playerid] == USARMY)
  2593. {
  2594. GangZoneFlashForAll(Zone[OilDepot], USARMY_COLOR);
  2595. }
  2596. else if(gTeam[playerid] == SAS)
  2597. {
  2598. GangZoneFlashForAll(Zone[OilDepot], SAS_COLOR);
  2599. }
  2600. else if(gTeam[playerid] == CHINA)
  2601. {
  2602. GangZoneFlashForAll(Zone[OilDepot], CHINA_COLOR);
  2603. }
  2604. else if(gTeam[playerid] == RUSSIA)
  2605. {
  2606. GangZoneFlashForAll(Zone[OilDepot], RUSSIA_COLOR);
  2607. }
  2608. else if(gTeam[playerid] == SYRIA)
  2609. {
  2610. GangZoneFlashForAll(Zone[OilDepot], SYRIA_COLOR);
  2611. }
  2612. else if(gTeam[playerid] == TALIBAN)
  2613. {
  2614. GangZoneFlashForAll(Zone[OilDepot], TALIBAN_COLOR);
  2615. }
  2616. else if(gTeam[playerid] == ISLAM)
  2617. {
  2618. GangZoneFlashForAll(Zone[OilDepot], ISLAM_COLOR);
  2619. }
  2620. else if(gTeam[playerid] == GERMANY)
  2621. {
  2622. GangZoneFlashForAll(Zone[OilDepot], GERMANY_COLOR);
  2623. }
  2624. else if(gTeam[playerid] == JAPAN)
  2625. {
  2626. GangZoneFlashForAll(Zone[OilDepot], JAPAN_COLOR);
  2627. }
  2628. else if(gTeam[playerid] == KOREA)
  2629. {
  2630. GangZoneFlashForAll(Zone[OilDepot], KOREA_COLOR);
  2631. }
  2632. new string[128], name[MAX_PLAYER_NAME+1];
  2633. GetPlayerName(playerid, name, sizeof(name));
  2634. format(string, sizeof(string),"%s is trying to capture the Oil Depot",name);
  2635. SendClientMessageToAll(COLOR_WHITE, string);
  2636. }
  2637. }
  2638. if(checkpointid == CP[Quarry])
  2639. {
  2640. if(UnderAttack[Quarry] == 1)
  2641. {
  2642. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2643. }
  2644. else if(gTeam[playerid] == tCP[Quarry])
  2645. {
  2646. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2647. }
  2648. else if(gTeam[playerid] == NONE)
  2649. {
  2650. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2651. }
  2652. else
  2653. {
  2654. UnderAttack[Quarry] = 1;
  2655. timer[playerid][Quarry] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2656. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2657. iCP[playerid] = Quarry;
  2658. InCP[playerid][Quarry] = 1;
  2659. Captured[Quarry] = 0;
  2660. if(gTeam[playerid] == USARMY)
  2661. {
  2662. GangZoneFlashForAll(Zone[Quarry], USARMY_COLOR);
  2663. }
  2664. else if(gTeam[playerid] == SAS)
  2665. {
  2666. GangZoneFlashForAll(Zone[Quarry], SAS_COLOR);
  2667. }
  2668. else if(gTeam[playerid] == CHINA)
  2669. {
  2670. GangZoneFlashForAll(Zone[Quarry], CHINA_COLOR);
  2671. }
  2672. else if(gTeam[playerid] == RUSSIA)
  2673. {
  2674. GangZoneFlashForAll(Zone[Quarry], RUSSIA_COLOR);
  2675. }
  2676. else if(gTeam[playerid] == SYRIA)
  2677. {
  2678. GangZoneFlashForAll(Zone[Quarry], SYRIA_COLOR);
  2679. }
  2680. else if(gTeam[playerid] == TALIBAN)
  2681. {
  2682. GangZoneFlashForAll(Zone[Quarry], TALIBAN_COLOR);
  2683. }
  2684. else if(gTeam[playerid] == ISLAM)
  2685. {
  2686. GangZoneFlashForAll(Zone[Quarry], ISLAM_COLOR);
  2687. }
  2688. else if(gTeam[playerid] == GERMANY)
  2689. {
  2690. GangZoneFlashForAll(Zone[Quarry], GERMANY_COLOR);
  2691. }
  2692. else if(gTeam[playerid] == JAPAN)
  2693. {
  2694. GangZoneFlashForAll(Zone[Quarry], JAPAN_COLOR);
  2695. }
  2696. else if(gTeam[playerid] == KOREA)
  2697. {
  2698. GangZoneFlashForAll(Zone[Quarry], KOREA_COLOR);
  2699. }
  2700. new string[128], name[MAX_PLAYER_NAME+1];
  2701. GetPlayerName(playerid, name, sizeof(name));
  2702. format(string, sizeof(string),"%s is trying to capture the Quarry",name);
  2703. SendClientMessageToAll(COLOR_WHITE, string);
  2704. }
  2705. }
  2706. if(checkpointid == CP[TheBigSpreadRanch])
  2707. {
  2708. if(UnderAttack[TheBigSpreadRanch] == 1)
  2709. {
  2710. SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
  2711. }
  2712. else if(gTeam[playerid] == tCP[TheBigSpreadRanch])
  2713. {
  2714. SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
  2715. }
  2716. else if(gTeam[playerid] == NONE)
  2717. {
  2718. SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
  2719. }
  2720. else
  2721. {
  2722. UnderAttack[TheBigSpreadRanch] = 1;
  2723. timer[playerid][TheBigSpreadRanch] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
  2724. CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
  2725. iCP[playerid] = TheBigSpreadRanch;
  2726. InCP[playerid][TheBigSpreadRanch] = 1;
  2727. Captured[TheBigSpreadRanch] = 0;
  2728. if(gTeam[playerid] == USARMY)
  2729. {
  2730. GangZoneFlashForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
  2731. }
  2732. else if(gTeam[playerid] == SAS)
  2733. {
  2734. GangZoneFlashForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
  2735. }
  2736. else if(gTeam[playerid] == CHINA)
  2737. {
  2738. GangZoneFlashForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
  2739. }
  2740. else if(gTeam[playerid] == RUSSIA)
  2741. {
  2742. GangZoneFlashForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
  2743. }
  2744. else if(gTeam[playerid] == SYRIA)
  2745. {
  2746. GangZoneFlashForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
  2747. }
  2748. else if(gTeam[playerid] == TALIBAN)
  2749. {
  2750. GangZoneFlashForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
  2751. }
  2752. else if(gTeam[playerid] == ISLAM)
  2753. {
  2754. GangZoneFlashForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
  2755. }
  2756. else if(gTeam[playerid] == GERMANY)
  2757. {
  2758. GangZoneFlashForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
  2759. }
  2760. else if(gTeam[playerid] == JAPAN)
  2761. {
  2762. GangZoneFlashForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
  2763. }
  2764. else if(gTeam[playerid] == KOREA)
  2765. {
  2766. GangZoneFlashForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
  2767. }
  2768. new string[128], name[MAX_PLAYER_NAME+1];
  2769. GetPlayerName(playerid, name, sizeof(name));
  2770. format(string, sizeof(string),"%s is trying to capture the The Big Spread Ranch",name);
  2771. SendClientMessageToAll(COLOR_WHITE, string);
  2772. }
  2773. }
  2774. return 1;
  2775. }
  2776. public OnPlayerLeaveDynamicCP(playerid, checkpointid)
  2777. {
  2778. if(checkpointid == CP[SnakeFarm])
  2779. {
  2780. if(Captured[SnakeFarm] == 1)
  2781. {
  2782. GangZoneStopFlashForAll(Zone[SnakeFarm]);
  2783. UnderAttack[SnakeFarm] = 0;
  2784. InCP[playerid][SnakeFarm] = 0;
  2785. tCP[SnakeFarm] = gTeam[playerid];
  2786. if(gTeam[playerid] == USARMY)
  2787. {
  2788. GangZoneShowForAll(Zone[SnakeFarm], USARMY_COLOR);
  2789. }
  2790. else if(gTeam[playerid] == SAS)
  2791. {
  2792. GangZoneShowForAll(Zone[SnakeFarm], SAS_COLOR);
  2793. }
  2794. else if(gTeam[playerid] == CHINA)
  2795. {
  2796. GangZoneShowForAll(Zone[SnakeFarm], CHINA_COLOR);
  2797. }
  2798. else if(gTeam[playerid] == RUSSIA)
  2799. {
  2800. GangZoneShowForAll(Zone[SnakeFarm], RUSSIA_COLOR);
  2801. }
  2802. else if(gTeam[playerid] == SYRIA)
  2803. {
  2804. GangZoneShowForAll(Zone[SnakeFarm], SYRIA_COLOR);
  2805. }
  2806. else if(gTeam[playerid] == TALIBAN)
  2807. {
  2808. GangZoneShowForAll(Zone[SnakeFarm], TALIBAN_COLOR);
  2809. }
  2810. else if(gTeam[playerid] == ISLAM)
  2811. {
  2812. GangZoneShowForAll(Zone[SnakeFarm], ISLAM_COLOR);
  2813. }
  2814. else if(gTeam[playerid] == GERMANY)
  2815. {
  2816. GangZoneShowForAll(Zone[SnakeFarm], GERMANY_COLOR);
  2817. }
  2818. else if(gTeam[playerid] == JAPAN)
  2819. {
  2820. GangZoneShowForAll(Zone[SnakeFarm], JAPAN_COLOR);
  2821. }
  2822. else if(gTeam[playerid] == KOREA)
  2823. {
  2824. GangZoneShowForAll(Zone[SnakeFarm], KOREA_COLOR);
  2825. }
  2826. KillTimer(timer[playerid][SnakeFarm]);
  2827. KillTimer(CountTime[playerid]);
  2828. }
  2829. else if(Captured[SnakeFarm] == 0)
  2830. {
  2831. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Snake Farm!");
  2832. UnderAttack[SnakeFarm] = 0;
  2833. InCP[playerid][SnakeFarm] = 0;
  2834. GangZoneStopFlashForAll(Zone[SnakeFarm]);
  2835. KillTimer(timer[playerid][SnakeFarm]);
  2836. KillTimer(CountTime[playerid]);
  2837. }
  2838. }
  2839. if(checkpointid == CP[CiaHeadquaters])
  2840. {
  2841. if(Captured[CiaHeadquaters] == 1)
  2842. {
  2843. GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
  2844. UnderAttack[CiaHeadquaters] = 0;
  2845. InCP[playerid][CiaHeadquaters] = 0;
  2846. tCP[CiaHeadquaters] = gTeam[playerid];
  2847. if(gTeam[playerid] == USARMY)
  2848. {
  2849. GangZoneShowForAll(Zone[CiaHeadquaters], USARMY_COLOR);
  2850. }
  2851. else if(gTeam[playerid] == SAS)
  2852. {
  2853. GangZoneShowForAll(Zone[CiaHeadquaters], SAS_COLOR);
  2854. }
  2855. else if(gTeam[playerid] == CHINA)
  2856. {
  2857. GangZoneShowForAll(Zone[CiaHeadquaters], CHINA_COLOR);
  2858. }
  2859. else if(gTeam[playerid] == RUSSIA)
  2860. {
  2861. GangZoneShowForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
  2862. }
  2863. else if(gTeam[playerid] == SYRIA)
  2864. {
  2865. GangZoneShowForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
  2866. }
  2867. else if(gTeam[playerid] == TALIBAN)
  2868. {
  2869. GangZoneShowForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
  2870. }
  2871. else if(gTeam[playerid] == ISLAM)
  2872. {
  2873. GangZoneShowForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
  2874. }
  2875. else if(gTeam[playerid] == GERMANY)
  2876. {
  2877. GangZoneShowForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
  2878. }
  2879. else if(gTeam[playerid] == JAPAN)
  2880. {
  2881. GangZoneShowForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
  2882. }
  2883. else if(gTeam[playerid] == KOREA)
  2884. {
  2885. GangZoneShowForAll(Zone[CiaHeadquaters], KOREA_COLOR);
  2886. }
  2887. KillTimer(timer[playerid][CiaHeadquaters]);
  2888. KillTimer(CountTime[playerid]);
  2889. }
  2890. else if(Captured[CiaHeadquaters] == 0)
  2891. {
  2892. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Cia Headquaters!");
  2893. UnderAttack[CiaHeadquaters] = 0;
  2894. InCP[playerid][CiaHeadquaters] = 0;
  2895. GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
  2896. KillTimer(timer[playerid][CiaHeadquaters]);
  2897. KillTimer(CountTime[playerid]);
  2898. }
  2899. }
  2900. if(checkpointid == CP[PetrolStation])
  2901. {
  2902. if(Captured[PetrolStation] == 1)
  2903. {
  2904. GangZoneStopFlashForAll(Zone[PetrolStation]);
  2905. UnderAttack[PetrolStation] = 0;
  2906. InCP[playerid][PetrolStation] = 0;
  2907. tCP[PetrolStation] = gTeam[playerid];
  2908. if(gTeam[playerid] == USARMY)
  2909. {
  2910. GangZoneShowForAll(Zone[PetrolStation], USARMY_COLOR);
  2911. }
  2912. else if(gTeam[playerid] == SAS)
  2913. {
  2914. GangZoneShowForAll(Zone[PetrolStation], SAS_COLOR);
  2915. }
  2916. else if(gTeam[playerid] == CHINA)
  2917. {
  2918. GangZoneShowForAll(Zone[PetrolStation], CHINA_COLOR);
  2919. }
  2920. else if(gTeam[playerid] == RUSSIA)
  2921. {
  2922. GangZoneShowForAll(Zone[PetrolStation], RUSSIA_COLOR);
  2923. }
  2924. else if(gTeam[playerid] == SYRIA)
  2925. {
  2926. GangZoneShowForAll(Zone[PetrolStation], SYRIA_COLOR);
  2927. }
  2928. else if(gTeam[playerid] == TALIBAN)
  2929. {
  2930. GangZoneShowForAll(Zone[PetrolStation], TALIBAN_COLOR);
  2931. }
  2932. else if(gTeam[playerid] == ISLAM)
  2933. {
  2934. GangZoneShowForAll(Zone[PetrolStation], ISLAM_COLOR);
  2935. }
  2936. else if(gTeam[playerid] == GERMANY)
  2937. {
  2938. GangZoneShowForAll(Zone[PetrolStation], GERMANY_COLOR);
  2939. }
  2940. else if(gTeam[playerid] == JAPAN)
  2941. {
  2942. GangZoneShowForAll(Zone[PetrolStation], JAPAN_COLOR);
  2943. }
  2944. else if(gTeam[playerid] == KOREA)
  2945. {
  2946. GangZoneShowForAll(Zone[PetrolStation], KOREA_COLOR);
  2947. }
  2948. KillTimer(timer[playerid][PetrolStation]);
  2949. KillTimer(CountTime[playerid]);
  2950. }
  2951. else if(Captured[PetrolStation] == 0)
  2952. {
  2953. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Petrol Station!");
  2954. UnderAttack[PetrolStation] = 0;
  2955. InCP[playerid][PetrolStation] = 0;
  2956. GangZoneStopFlashForAll(Zone[PetrolStation]);
  2957. KillTimer(timer[playerid][PetrolStation]);
  2958. KillTimer(CountTime[playerid]);
  2959. }
  2960. }
  2961. if(checkpointid == CP[BaitShop])
  2962. {
  2963. if(Captured[BaitShop] == 1)
  2964. {
  2965. GangZoneStopFlashForAll(Zone[BaitShop]);
  2966. UnderAttack[BaitShop] = 0;
  2967. InCP[playerid][BaitShop] = 0;
  2968. tCP[BaitShop] = gTeam[playerid];
  2969. if(gTeam[playerid] == USARMY)
  2970. {
  2971. GangZoneShowForAll(Zone[BaitShop], USARMY_COLOR);
  2972. }
  2973. else if(gTeam[playerid] == SAS)
  2974. {
  2975. GangZoneShowForAll(Zone[BaitShop], SAS_COLOR);
  2976. }
  2977. else if(gTeam[playerid] == CHINA)
  2978. {
  2979. GangZoneShowForAll(Zone[BaitShop], CHINA_COLOR);
  2980. }
  2981. else if(gTeam[playerid] == RUSSIA)
  2982. {
  2983. GangZoneShowForAll(Zone[BaitShop], RUSSIA_COLOR);
  2984. }
  2985. else if(gTeam[playerid] == SYRIA)
  2986. {
  2987. GangZoneShowForAll(Zone[BaitShop], SYRIA_COLOR);
  2988. }
  2989. else if(gTeam[playerid] == TALIBAN)
  2990. {
  2991. GangZoneShowForAll(Zone[BaitShop], TALIBAN_COLOR);
  2992. }
  2993. else if(gTeam[playerid] == ISLAM)
  2994. {
  2995. GangZoneShowForAll(Zone[BaitShop], ISLAM_COLOR);
  2996. }
  2997. else if(gTeam[playerid] == GERMANY)
  2998. {
  2999. GangZoneShowForAll(Zone[BaitShop], GERMANY_COLOR);
  3000. }
  3001. else if(gTeam[playerid] == JAPAN)
  3002. {
  3003. GangZoneShowForAll(Zone[BaitShop], JAPAN_COLOR);
  3004. }
  3005. else if(gTeam[playerid] == KOREA)
  3006. {
  3007. GangZoneShowForAll(Zone[BaitShop], KOREA_COLOR);
  3008. }
  3009. KillTimer(timer[playerid][BaitShop]);
  3010. KillTimer(CountTime[playerid]);
  3011. }
  3012. else if(Captured[BaitShop] == 0)
  3013. {
  3014. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Bait Shop!");
  3015. UnderAttack[BaitShop] = 0;
  3016. InCP[playerid][BaitShop] = 0;
  3017. GangZoneStopFlashForAll(Zone[BaitShop]);
  3018. KillTimer(timer[playerid][BaitShop]);
  3019. KillTimer(CountTime[playerid]);
  3020. }
  3021. }
  3022. if(checkpointid == CP[ClukinBell])
  3023. {
  3024. if(Captured[ClukinBell] == 1)
  3025. {
  3026. GangZoneStopFlashForAll(Zone[ClukinBell]);
  3027. UnderAttack[ClukinBell] = 0;
  3028. InCP[playerid][ClukinBell] = 0;
  3029. tCP[ClukinBell] = gTeam[playerid];
  3030. if(gTeam[playerid] == USARMY)
  3031. {
  3032. GangZoneShowForAll(Zone[ClukinBell], USARMY_COLOR);
  3033. }
  3034. else if(gTeam[playerid] == SAS)
  3035. {
  3036. GangZoneShowForAll(Zone[ClukinBell], SAS_COLOR);
  3037. }
  3038. else if(gTeam[playerid] == CHINA)
  3039. {
  3040. GangZoneShowForAll(Zone[ClukinBell], CHINA_COLOR);
  3041. }
  3042. else if(gTeam[playerid] == RUSSIA)
  3043. {
  3044. GangZoneShowForAll(Zone[ClukinBell], RUSSIA_COLOR);
  3045. }
  3046. else if(gTeam[playerid] == SYRIA)
  3047. {
  3048. GangZoneShowForAll(Zone[ClukinBell], SYRIA_COLOR);
  3049. }
  3050. else if(gTeam[playerid] == TALIBAN)
  3051. {
  3052. GangZoneShowForAll(Zone[ClukinBell], TALIBAN_COLOR);
  3053. }
  3054. else if(gTeam[playerid] == ISLAM)
  3055. {
  3056. GangZoneShowForAll(Zone[ClukinBell], ISLAM_COLOR);
  3057. }
  3058. else if(gTeam[playerid] == GERMANY)
  3059. {
  3060. GangZoneShowForAll(Zone[ClukinBell], GERMANY_COLOR);
  3061. }
  3062. else if(gTeam[playerid] == JAPAN)
  3063. {
  3064. GangZoneShowForAll(Zone[ClukinBell], JAPAN_COLOR);
  3065. }
  3066. else if(gTeam[playerid] == KOREA)
  3067. {
  3068. GangZoneShowForAll(Zone[ClukinBell], KOREA_COLOR);
  3069. }
  3070. KillTimer(timer[playerid][ClukinBell]);
  3071. KillTimer(CountTime[playerid]);
  3072. }
  3073. else if(Captured[ClukinBell] == 0)
  3074. {
  3075. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Clukin Bell!");
  3076. UnderAttack[ClukinBell] = 0;
  3077. InCP[playerid][ClukinBell] = 0;
  3078. GangZoneStopFlashForAll(Zone[ClukinBell]);
  3079. KillTimer(timer[playerid][ClukinBell]);
  3080. KillTimer(CountTime[playerid]);
  3081. }
  3082. }
  3083. if(checkpointid == CP[Ranch])
  3084. {
  3085. if(Captured[Ranch] == 1)
  3086. {
  3087. GangZoneStopFlashForAll(Zone[Ranch]);
  3088. UnderAttack[Ranch] = 0;
  3089. InCP[playerid][Ranch] = 0;
  3090. tCP[Ranch] = gTeam[playerid];
  3091. if(gTeam[playerid] == USARMY)
  3092. {
  3093. GangZoneShowForAll(Zone[Ranch], USARMY_COLOR);
  3094. }
  3095. else if(gTeam[playerid] == SAS)
  3096. {
  3097. GangZoneShowForAll(Zone[Ranch], SAS_COLOR);
  3098. }
  3099. else if(gTeam[playerid] == CHINA)
  3100. {
  3101. GangZoneShowForAll(Zone[Ranch], CHINA_COLOR);
  3102. }
  3103. else if(gTeam[playerid] == RUSSIA)
  3104. {
  3105. GangZoneShowForAll(Zone[Ranch], RUSSIA_COLOR);
  3106. }
  3107. else if(gTeam[playerid] == SYRIA)
  3108. {
  3109. GangZoneShowForAll(Zone[Ranch], SYRIA_COLOR);
  3110. }
  3111. else if(gTeam[playerid] == TALIBAN)
  3112. {
  3113. GangZoneShowForAll(Zone[Ranch], TALIBAN_COLOR);
  3114. }
  3115. else if(gTeam[playerid] == ISLAM)
  3116. {
  3117. GangZoneShowForAll(Zone[Ranch], ISLAM_COLOR);
  3118. }
  3119. else if(gTeam[playerid] == GERMANY)
  3120. {
  3121. GangZoneShowForAll(Zone[Ranch], GERMANY_COLOR);
  3122. }
  3123. else if(gTeam[playerid] == JAPAN)
  3124. {
  3125. GangZoneShowForAll(Zone[Ranch], JAPAN_COLOR);
  3126. }
  3127. else if(gTeam[playerid] == KOREA)
  3128. {
  3129. GangZoneShowForAll(Zone[Ranch], KOREA_COLOR);
  3130. }
  3131. KillTimer(timer[playerid][Ranch]);
  3132. KillTimer(CountTime[playerid]);
  3133. }
  3134. else if(Captured[Ranch] == 0)
  3135. {
  3136. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Ranch!");
  3137. UnderAttack[Ranch] = 0;
  3138. InCP[playerid][Ranch] = 0;
  3139. GangZoneStopFlashForAll(Zone[Ranch]);
  3140. KillTimer(timer[playerid][Ranch]);
  3141. KillTimer(CountTime[playerid]);
  3142. }
  3143. }
  3144. if(checkpointid == CP[RadarBase])
  3145. {
  3146. if(Captured[RadarBase] == 1)
  3147. {
  3148. GangZoneStopFlashForAll(Zone[RadarBase]);
  3149. UnderAttack[RadarBase] = 0;
  3150. InCP[playerid][RadarBase] = 0;
  3151. tCP[RadarBase] = gTeam[playerid];
  3152. if(gTeam[playerid] == USARMY)
  3153. {
  3154. GangZoneShowForAll(Zone[RadarBase], USARMY_COLOR);
  3155. }
  3156. else if(gTeam[playerid] == SAS)
  3157. {
  3158. GangZoneShowForAll(Zone[RadarBase], SAS_COLOR);
  3159. }
  3160. else if(gTeam[playerid] == CHINA)
  3161. {
  3162. GangZoneShowForAll(Zone[RadarBase], CHINA_COLOR);
  3163. }
  3164. else if(gTeam[playerid] == RUSSIA)
  3165. {
  3166. GangZoneShowForAll(Zone[RadarBase], RUSSIA_COLOR);
  3167. }
  3168. else if(gTeam[playerid] == SYRIA)
  3169. {
  3170. GangZoneShowForAll(Zone[RadarBase], SYRIA_COLOR);
  3171. }
  3172. else if(gTeam[playerid] == TALIBAN)
  3173. {
  3174. GangZoneShowForAll(Zone[RadarBase], TALIBAN_COLOR);
  3175. }
  3176. else if(gTeam[playerid] == ISLAM)
  3177. {
  3178. GangZoneShowForAll(Zone[RadarBase], ISLAM_COLOR);
  3179. }
  3180. else if(gTeam[playerid] == GERMANY)
  3181. {
  3182. GangZoneShowForAll(Zone[RadarBase], GERMANY_COLOR);
  3183. }
  3184. else if(gTeam[playerid] == JAPAN)
  3185. {
  3186. GangZoneShowForAll(Zone[RadarBase], JAPAN_COLOR);
  3187. }
  3188. else if(gTeam[playerid] == KOREA)
  3189. {
  3190. GangZoneShowForAll(Zone[RadarBase], KOREA_COLOR);
  3191. }
  3192. KillTimer(timer[playerid][RadarBase]);
  3193. KillTimer(CountTime[playerid]);
  3194. }
  3195. else if(Captured[RadarBase] == 0)
  3196. {
  3197. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Radar Base!");
  3198. UnderAttack[RadarBase] = 0;
  3199. InCP[playerid][RadarBase] = 0;
  3200. GangZoneStopFlashForAll(Zone[RadarBase]);
  3201. KillTimer(timer[playerid][RadarBase]);
  3202. KillTimer(CountTime[playerid]);
  3203. }
  3204. }
  3205. if(checkpointid == CP[OilDepot])
  3206. {
  3207. if(Captured[OilDepot] == 1)
  3208. {
  3209. GangZoneStopFlashForAll(Zone[OilDepot]);
  3210. UnderAttack[OilDepot] = 0;
  3211. InCP[playerid][OilDepot] = 0;
  3212. tCP[OilDepot] = gTeam[playerid];
  3213. if(gTeam[playerid] == USARMY)
  3214. {
  3215. GangZoneShowForAll(Zone[OilDepot], USARMY_COLOR);
  3216. }
  3217. else if(gTeam[playerid] == SAS)
  3218. {
  3219. GangZoneShowForAll(Zone[OilDepot], SAS_COLOR);
  3220. }
  3221. else if(gTeam[playerid] == CHINA)
  3222. {
  3223. GangZoneShowForAll(Zone[OilDepot], CHINA_COLOR);
  3224. }
  3225. else if(gTeam[playerid] == RUSSIA)
  3226. {
  3227. GangZoneShowForAll(Zone[OilDepot], RUSSIA_COLOR);
  3228. }
  3229. else if(gTeam[playerid] == SYRIA)
  3230. {
  3231. GangZoneShowForAll(Zone[OilDepot], SYRIA_COLOR);
  3232. }
  3233. else if(gTeam[playerid] == TALIBAN)
  3234. {
  3235. GangZoneShowForAll(Zone[OilDepot], TALIBAN_COLOR);
  3236. }
  3237. else if(gTeam[playerid] == ISLAM)
  3238. {
  3239. GangZoneShowForAll(Zone[OilDepot], ISLAM_COLOR);
  3240. }
  3241. else if(gTeam[playerid] == GERMANY)
  3242. {
  3243. GangZoneShowForAll(Zone[OilDepot], GERMANY_COLOR);
  3244. }
  3245. else if(gTeam[playerid] == JAPAN)
  3246. {
  3247. GangZoneShowForAll(Zone[OilDepot], JAPAN_COLOR);
  3248. }
  3249. else if(gTeam[playerid] == KOREA)
  3250. {
  3251. GangZoneShowForAll(Zone[OilDepot], KOREA_COLOR);
  3252. }
  3253. KillTimer(timer[playerid][OilDepot]);
  3254. KillTimer(CountTime[playerid]);
  3255. }
  3256. else if(Captured[OilDepot] == 0)
  3257. {
  3258. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Oil Depot!");
  3259. UnderAttack[OilDepot] = 0;
  3260. InCP[playerid][OilDepot] = 0;
  3261. GangZoneStopFlashForAll(Zone[OilDepot]);
  3262. KillTimer(timer[playerid][OilDepot]);
  3263. KillTimer(CountTime[playerid]);
  3264. }
  3265. }
  3266. if(checkpointid == CP[Quarry])
  3267. {
  3268. if(Captured[Quarry] == 1)
  3269. {
  3270. GangZoneStopFlashForAll(Zone[Quarry]);
  3271. UnderAttack[Quarry] = 0;
  3272. InCP[playerid][Quarry] = 0;
  3273. tCP[Quarry] = gTeam[playerid];
  3274. if(gTeam[playerid] == USARMY)
  3275. {
  3276. GangZoneShowForAll(Zone[Quarry], USARMY_COLOR);
  3277. }
  3278. else if(gTeam[playerid] == SAS)
  3279. {
  3280. GangZoneShowForAll(Zone[Quarry], SAS_COLOR);
  3281. }
  3282. else if(gTeam[playerid] == CHINA)
  3283. {
  3284. GangZoneShowForAll(Zone[Quarry], CHINA_COLOR);
  3285. }
  3286. else if(gTeam[playerid] == RUSSIA)
  3287. {
  3288. GangZoneShowForAll(Zone[Quarry], RUSSIA_COLOR);
  3289. }
  3290. else if(gTeam[playerid] == SYRIA)
  3291. {
  3292. GangZoneShowForAll(Zone[Quarry], SYRIA_COLOR);
  3293. }
  3294. else if(gTeam[playerid] == TALIBAN)
  3295. {
  3296. GangZoneShowForAll(Zone[Quarry], TALIBAN_COLOR);
  3297. }
  3298. else if(gTeam[playerid] == ISLAM)
  3299. {
  3300. GangZoneShowForAll(Zone[Quarry], ISLAM_COLOR);
  3301. }
  3302. else if(gTeam[playerid] == GERMANY)
  3303. {
  3304. GangZoneShowForAll(Zone[Quarry], GERMANY_COLOR);
  3305. }
  3306. else if(gTeam[playerid] == JAPAN)
  3307. {
  3308. GangZoneShowForAll(Zone[Quarry], JAPAN_COLOR);
  3309. }
  3310. else if(gTeam[playerid] == KOREA)
  3311. {
  3312. GangZoneShowForAll(Zone[Quarry], KOREA_COLOR);
  3313. }
  3314. KillTimer(timer[playerid][Quarry]);
  3315. KillTimer(CountTime[playerid]);
  3316. }
  3317. else if(Captured[Quarry] == 0)
  3318. {
  3319. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Quarry!");
  3320. UnderAttack[Quarry] = 0;
  3321. InCP[playerid][Quarry] = 0;
  3322. GangZoneStopFlashForAll(Zone[Quarry]);
  3323. KillTimer(timer[playerid][Quarry]);
  3324. KillTimer(CountTime[playerid]);
  3325. }
  3326. }
  3327. if(checkpointid == CP[TheBigSpreadRanch])
  3328. {
  3329. if(Captured[TheBigSpreadRanch] == 1)
  3330. {
  3331. GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
  3332. UnderAttack[TheBigSpreadRanch] = 0;
  3333. InCP[playerid][TheBigSpreadRanch] = 0;
  3334. tCP[TheBigSpreadRanch] = gTeam[playerid];
  3335. if(gTeam[playerid] == USARMY)
  3336. {
  3337. GangZoneShowForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
  3338. }
  3339. else if(gTeam[playerid] == SAS)
  3340. {
  3341. GangZoneShowForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
  3342. }
  3343. else if(gTeam[playerid] == CHINA)
  3344. {
  3345. GangZoneShowForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
  3346. }
  3347. else if(gTeam[playerid] == RUSSIA)
  3348. {
  3349. GangZoneShowForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
  3350. }
  3351. else if(gTeam[playerid] == SYRIA)
  3352. {
  3353. GangZoneShowForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
  3354. }
  3355. else if(gTeam[playerid] == TALIBAN)
  3356. {
  3357. GangZoneShowForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
  3358. }
  3359. else if(gTeam[playerid] == ISLAM)
  3360. {
  3361. GangZoneShowForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
  3362. }
  3363. else if(gTeam[playerid] == GERMANY)
  3364. {
  3365. GangZoneShowForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
  3366. }
  3367. else if(gTeam[playerid] == JAPAN)
  3368. {
  3369. GangZoneShowForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
  3370. }
  3371. else if(gTeam[playerid] == KOREA)
  3372. {
  3373. GangZoneShowForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
  3374. }
  3375. KillTimer(timer[playerid][TheBigSpreadRanch]);
  3376. KillTimer(CountTime[playerid]);
  3377. }
  3378. else if(Captured[TheBigSpreadRanch] == 0)
  3379. {
  3380. SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the The Big Spread Ranch!");
  3381. UnderAttack[TheBigSpreadRanch] = 0;
  3382. InCP[playerid][TheBigSpreadRanch] = 0;
  3383. GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
  3384. KillTimer(timer[playerid][TheBigSpreadRanch]);
  3385. KillTimer(CountTime[playerid]);
  3386. }
  3387. }
  3388. return 1;
  3389. }
  3390.  
  3391.  
  3392. forward SetCaptureZone(playerid);
  3393. public SetCaptureZone(playerid)
  3394. {
  3395. if(iCP[playerid] == SnakeFarm)
  3396. {
  3397. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3398. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3399. GivePlayerMoney(playerid, 5000);
  3400. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Snake Farm! You earned +5 scores and +$5000! & a random weapon");
  3401. new string[128], name[MAX_PLAYER_NAME+1];
  3402. GetPlayerName(playerid, name, sizeof(name));
  3403. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Snake Farm!",name);
  3404. SendClientMessageToAll(COLOR_WHITE, string);
  3405. tCP[SnakeFarm] = gTeam[playerid];
  3406. if(gTeam[playerid] == USARMY)
  3407. {
  3408. GangZoneShowForAll(Zone[SnakeFarm], USARMY_COLOR);
  3409. }
  3410. else if(gTeam[playerid] == SAS)
  3411. {
  3412. GangZoneShowForAll(Zone[SnakeFarm], SAS_COLOR);
  3413. }
  3414. else if(gTeam[playerid] == CHINA)
  3415. {
  3416. GangZoneShowForAll(Zone[SnakeFarm], CHINA_COLOR);
  3417. }
  3418. else if(gTeam[playerid] == RUSSIA)
  3419. {
  3420. GangZoneShowForAll(Zone[SnakeFarm], RUSSIA_COLOR);
  3421. }
  3422. else if(gTeam[playerid] == SYRIA)
  3423. {
  3424. GangZoneShowForAll(Zone[SnakeFarm], SYRIA_COLOR);
  3425. }
  3426. else if(gTeam[playerid] == TALIBAN)
  3427. {
  3428. GangZoneShowForAll(Zone[SnakeFarm], TALIBAN_COLOR);
  3429. }
  3430. else if(gTeam[playerid] == ISLAM)
  3431. {
  3432. GangZoneShowForAll(Zone[SnakeFarm], ISLAM_COLOR);
  3433. }
  3434. else if(gTeam[playerid] == GERMANY)
  3435. {
  3436. GangZoneShowForAll(Zone[SnakeFarm], GERMANY_COLOR);
  3437. }
  3438. else if(gTeam[playerid] == JAPAN)
  3439. {
  3440. GangZoneShowForAll(Zone[SnakeFarm], JAPAN_COLOR);
  3441. }
  3442. else if(gTeam[playerid] == KOREA)
  3443. {
  3444. GangZoneShowForAll(Zone[SnakeFarm], KOREA_COLOR);
  3445. }
  3446. GangZoneStopFlashForAll(Zone[SnakeFarm]);
  3447. Captured[SnakeFarm] = 1;
  3448. KillTimer(CountTime[playerid]);
  3449. KillTimer(timer[playerid][SnakeFarm]);
  3450. }
  3451. if(iCP[playerid] == CiaHeadquaters)
  3452. {
  3453. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3454. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3455. GivePlayerMoney(playerid, 5000);
  3456. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Cia Headquaters! You earned +5 scores and +$5000! & a random weapon");
  3457. new string[128], name[MAX_PLAYER_NAME+1];
  3458. GetPlayerName(playerid, name, sizeof(name));
  3459. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Cia Headquaters!",name);
  3460. SendClientMessageToAll(COLOR_WHITE, string);
  3461. tCP[CiaHeadquaters] = gTeam[playerid];
  3462. if(gTeam[playerid] == USARMY)
  3463. {
  3464. GangZoneShowForAll(Zone[CiaHeadquaters], USARMY_COLOR);
  3465. }
  3466. else if(gTeam[playerid] == SAS)
  3467. {
  3468. GangZoneShowForAll(Zone[CiaHeadquaters], SAS_COLOR);
  3469. }
  3470. else if(gTeam[playerid] == CHINA)
  3471. {
  3472. GangZoneShowForAll(Zone[CiaHeadquaters], CHINA_COLOR);
  3473. }
  3474. else if(gTeam[playerid] == RUSSIA)
  3475. {
  3476. GangZoneShowForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
  3477. }
  3478. else if(gTeam[playerid] == SYRIA)
  3479. {
  3480. GangZoneShowForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
  3481. }
  3482. else if(gTeam[playerid] == TALIBAN)
  3483. {
  3484. GangZoneShowForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
  3485. }
  3486. else if(gTeam[playerid] == ISLAM)
  3487. {
  3488. GangZoneShowForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
  3489. }
  3490. else if(gTeam[playerid] == GERMANY)
  3491. {
  3492. GangZoneShowForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
  3493. }
  3494. else if(gTeam[playerid] == JAPAN)
  3495. {
  3496. GangZoneShowForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
  3497. }
  3498. else if(gTeam[playerid] == KOREA)
  3499. {
  3500. GangZoneShowForAll(Zone[CiaHeadquaters], KOREA_COLOR);
  3501. }
  3502. GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
  3503. Captured[CiaHeadquaters] = 1;
  3504. KillTimer(CountTime[playerid]);
  3505. KillTimer(timer[playerid][CiaHeadquaters]);
  3506. }
  3507. if(iCP[playerid] == PetrolStation)
  3508. {
  3509. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3510. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3511. GivePlayerMoney(playerid, 5000);
  3512. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Petrol Station! You earned +5 scores and +$5000! & a random weapon");
  3513. new string[128], name[MAX_PLAYER_NAME+1];
  3514. GetPlayerName(playerid, name, sizeof(name));
  3515. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Petrol Station!",name);
  3516. SendClientMessageToAll(COLOR_WHITE, string);
  3517. tCP[PetrolStation] = gTeam[playerid];
  3518. if(gTeam[playerid] == USARMY)
  3519. {
  3520. GangZoneShowForAll(Zone[PetrolStation], USARMY_COLOR);
  3521. }
  3522. else if(gTeam[playerid] == SAS)
  3523. {
  3524. GangZoneShowForAll(Zone[PetrolStation], SAS_COLOR);
  3525. }
  3526. else if(gTeam[playerid] == CHINA)
  3527. {
  3528. GangZoneShowForAll(Zone[PetrolStation], CHINA_COLOR);
  3529. }
  3530. else if(gTeam[playerid] == RUSSIA)
  3531. {
  3532. GangZoneShowForAll(Zone[PetrolStation], RUSSIA_COLOR);
  3533. }
  3534. else if(gTeam[playerid] == SYRIA)
  3535. {
  3536. GangZoneShowForAll(Zone[PetrolStation], SYRIA_COLOR);
  3537. }
  3538. else if(gTeam[playerid] == TALIBAN)
  3539. {
  3540. GangZoneShowForAll(Zone[PetrolStation], TALIBAN_COLOR);
  3541. }
  3542. else if(gTeam[playerid] == ISLAM)
  3543. {
  3544. GangZoneShowForAll(Zone[PetrolStation], ISLAM_COLOR);
  3545. }
  3546. else if(gTeam[playerid] == GERMANY)
  3547. {
  3548. GangZoneShowForAll(Zone[PetrolStation], GERMANY_COLOR);
  3549. }
  3550. else if(gTeam[playerid] == JAPAN)
  3551. {
  3552. GangZoneShowForAll(Zone[PetrolStation], JAPAN_COLOR);
  3553. }
  3554. else if(gTeam[playerid] == KOREA)
  3555. {
  3556. GangZoneShowForAll(Zone[PetrolStation], KOREA_COLOR);
  3557. }
  3558. GangZoneStopFlashForAll(Zone[PetrolStation]);
  3559. Captured[PetrolStation] = 1;
  3560. KillTimer(CountTime[playerid]);
  3561. KillTimer(timer[playerid][PetrolStation]);
  3562. }
  3563. if(iCP[playerid] == BaitShop)
  3564. {
  3565. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3566. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3567. GivePlayerMoney(playerid, 5000);
  3568. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Bait Shop! You earned +5 scores and +$5000! & a random weapon");
  3569. new string[128], name[MAX_PLAYER_NAME+1];
  3570. GetPlayerName(playerid, name, sizeof(name));
  3571. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Bait Shop!",name);
  3572. SendClientMessageToAll(COLOR_WHITE, string);
  3573. tCP[BaitShop] = gTeam[playerid];
  3574. if(gTeam[playerid] == USARMY)
  3575. {
  3576. GangZoneShowForAll(Zone[BaitShop], USARMY_COLOR);
  3577. }
  3578. else if(gTeam[playerid] == SAS)
  3579. {
  3580. GangZoneShowForAll(Zone[BaitShop], SAS_COLOR);
  3581. }
  3582. else if(gTeam[playerid] == CHINA)
  3583. {
  3584. GangZoneShowForAll(Zone[BaitShop], CHINA_COLOR);
  3585. }
  3586. else if(gTeam[playerid] == RUSSIA)
  3587. {
  3588. GangZoneShowForAll(Zone[BaitShop], RUSSIA_COLOR);
  3589. }
  3590. else if(gTeam[playerid] == SYRIA)
  3591. {
  3592. GangZoneShowForAll(Zone[BaitShop], SYRIA_COLOR);
  3593. }
  3594. else if(gTeam[playerid] == TALIBAN)
  3595. {
  3596. GangZoneShowForAll(Zone[BaitShop], TALIBAN_COLOR);
  3597. }
  3598. else if(gTeam[playerid] == ISLAM)
  3599. {
  3600. GangZoneShowForAll(Zone[BaitShop], ISLAM_COLOR);
  3601. }
  3602. else if(gTeam[playerid] == GERMANY)
  3603. {
  3604. GangZoneShowForAll(Zone[BaitShop], GERMANY_COLOR);
  3605. }
  3606. else if(gTeam[playerid] == JAPAN)
  3607. {
  3608. GangZoneShowForAll(Zone[BaitShop], JAPAN_COLOR);
  3609. }
  3610. else if(gTeam[playerid] == KOREA)
  3611. {
  3612. GangZoneShowForAll(Zone[BaitShop], KOREA_COLOR);
  3613. }
  3614. GangZoneStopFlashForAll(Zone[BaitShop]);
  3615. Captured[BaitShop] = 1;
  3616. KillTimer(CountTime[playerid]);
  3617. KillTimer(timer[playerid][BaitShop]);
  3618. }
  3619. if(iCP[playerid] == ClukinBell)
  3620. {
  3621. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3622. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3623. GivePlayerMoney(playerid, 5000);
  3624. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Clukin Bell! You earned +5 scores and +$5000! & a random weapon");
  3625. new string[128], name[MAX_PLAYER_NAME+1];
  3626. GetPlayerName(playerid, name, sizeof(name));
  3627. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Clukin Bell!",name);
  3628. SendClientMessageToAll(COLOR_WHITE, string);
  3629. tCP[ClukinBell] = gTeam[playerid];
  3630. if(gTeam[playerid] == USARMY)
  3631. {
  3632. GangZoneShowForAll(Zone[ClukinBell], USARMY_COLOR);
  3633. }
  3634. else if(gTeam[playerid] == SAS)
  3635. {
  3636. GangZoneShowForAll(Zone[ClukinBell], SAS_COLOR);
  3637. }
  3638. else if(gTeam[playerid] == CHINA)
  3639. {
  3640. GangZoneShowForAll(Zone[ClukinBell], CHINA_COLOR);
  3641. }
  3642. else if(gTeam[playerid] == RUSSIA)
  3643. {
  3644. GangZoneShowForAll(Zone[ClukinBell], RUSSIA_COLOR);
  3645. }
  3646. else if(gTeam[playerid] == SYRIA)
  3647. {
  3648. GangZoneShowForAll(Zone[ClukinBell], SYRIA_COLOR);
  3649. }
  3650. else if(gTeam[playerid] == TALIBAN)
  3651. {
  3652. GangZoneShowForAll(Zone[ClukinBell], TALIBAN_COLOR);
  3653. }
  3654. else if(gTeam[playerid] == ISLAM)
  3655. {
  3656. GangZoneShowForAll(Zone[ClukinBell], ISLAM_COLOR);
  3657. }
  3658. else if(gTeam[playerid] == GERMANY)
  3659. {
  3660. GangZoneShowForAll(Zone[ClukinBell], GERMANY_COLOR);
  3661. }
  3662. else if(gTeam[playerid] == JAPAN)
  3663. {
  3664. GangZoneShowForAll(Zone[ClukinBell], JAPAN_COLOR);
  3665. }
  3666. else if(gTeam[playerid] == KOREA)
  3667. {
  3668. GangZoneShowForAll(Zone[ClukinBell], KOREA_COLOR);
  3669. }
  3670. GangZoneStopFlashForAll(Zone[ClukinBell]);
  3671. Captured[ClukinBell] = 1;
  3672. KillTimer(CountTime[playerid]);
  3673. KillTimer(timer[playerid][ClukinBell]);
  3674. }
  3675. if(iCP[playerid] == Ranch)
  3676. {
  3677. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3678. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3679. GivePlayerMoney(playerid, 5000);
  3680. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Ranch! You earned +5 scores and +$5000! & a random weapon");
  3681. new string[128], name[MAX_PLAYER_NAME+1];
  3682. GetPlayerName(playerid, name, sizeof(name));
  3683. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Ranch!",name);
  3684. SendClientMessageToAll(COLOR_WHITE, string);
  3685. tCP[Ranch] = gTeam[playerid];
  3686. if(gTeam[playerid] == USARMY)
  3687. {
  3688. GangZoneShowForAll(Zone[Ranch], USARMY_COLOR);
  3689. }
  3690. else if(gTeam[playerid] == SAS)
  3691. {
  3692. GangZoneShowForAll(Zone[Ranch], SAS_COLOR);
  3693. }
  3694. else if(gTeam[playerid] == CHINA)
  3695. {
  3696. GangZoneShowForAll(Zone[Ranch], CHINA_COLOR);
  3697. }
  3698. else if(gTeam[playerid] == RUSSIA)
  3699. {
  3700. GangZoneShowForAll(Zone[Ranch], RUSSIA_COLOR);
  3701. }
  3702. else if(gTeam[playerid] == SYRIA)
  3703. {
  3704. GangZoneShowForAll(Zone[Ranch], SYRIA_COLOR);
  3705. }
  3706. else if(gTeam[playerid] == TALIBAN)
  3707. {
  3708. GangZoneShowForAll(Zone[Ranch], TALIBAN_COLOR);
  3709. }
  3710. else if(gTeam[playerid] == ISLAM)
  3711. {
  3712. GangZoneShowForAll(Zone[Ranch], ISLAM_COLOR);
  3713. }
  3714. else if(gTeam[playerid] == GERMANY)
  3715. {
  3716. GangZoneShowForAll(Zone[Ranch], GERMANY_COLOR);
  3717. }
  3718. else if(gTeam[playerid] == JAPAN)
  3719. {
  3720. GangZoneShowForAll(Zone[Ranch], JAPAN_COLOR);
  3721. }
  3722. else if(gTeam[playerid] == KOREA)
  3723. {
  3724. GangZoneShowForAll(Zone[Ranch], KOREA_COLOR);
  3725. }
  3726. GangZoneStopFlashForAll(Zone[Ranch]);
  3727. Captured[Ranch] = 1;
  3728. KillTimer(CountTime[playerid]);
  3729. KillTimer(timer[playerid][Ranch]);
  3730. }
  3731. if(iCP[playerid] == RadarBase)
  3732. {
  3733. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3734. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3735. GivePlayerMoney(playerid, 5000);
  3736. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Radar Base! You earned +5 scores and +$5000! & a random weapon");
  3737. new string[128], name[MAX_PLAYER_NAME+1];
  3738. GetPlayerName(playerid, name, sizeof(name));
  3739. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Radar Base!",name);
  3740. SendClientMessageToAll(COLOR_WHITE, string);
  3741. tCP[RadarBase] = gTeam[playerid];
  3742. if(gTeam[playerid] == USARMY)
  3743. {
  3744. GangZoneShowForAll(Zone[RadarBase], USARMY_COLOR);
  3745. }
  3746. else if(gTeam[playerid] == SAS)
  3747. {
  3748. GangZoneShowForAll(Zone[RadarBase], SAS_COLOR);
  3749. }
  3750. else if(gTeam[playerid] == CHINA)
  3751. {
  3752. GangZoneShowForAll(Zone[RadarBase], CHINA_COLOR);
  3753. }
  3754. else if(gTeam[playerid] == RUSSIA)
  3755. {
  3756. GangZoneShowForAll(Zone[RadarBase], RUSSIA_COLOR);
  3757. }
  3758. else if(gTeam[playerid] == SYRIA)
  3759. {
  3760. GangZoneShowForAll(Zone[RadarBase], SYRIA_COLOR);
  3761. }
  3762. else if(gTeam[playerid] == TALIBAN)
  3763. {
  3764. GangZoneShowForAll(Zone[RadarBase], TALIBAN_COLOR);
  3765. }
  3766. else if(gTeam[playerid] == ISLAM)
  3767. {
  3768. GangZoneShowForAll(Zone[RadarBase], ISLAM_COLOR);
  3769. }
  3770. else if(gTeam[playerid] == GERMANY)
  3771. {
  3772. GangZoneShowForAll(Zone[RadarBase], GERMANY_COLOR);
  3773. }
  3774. else if(gTeam[playerid] == JAPAN)
  3775. {
  3776. GangZoneShowForAll(Zone[RadarBase], JAPAN_COLOR);
  3777. }
  3778. else if(gTeam[playerid] == KOREA)
  3779. {
  3780. GangZoneShowForAll(Zone[RadarBase], KOREA_COLOR);
  3781. }
  3782. GangZoneStopFlashForAll(Zone[RadarBase]);
  3783. Captured[RadarBase] = 1;
  3784. KillTimer(CountTime[playerid]);
  3785. KillTimer(timer[playerid][RadarBase]);
  3786. }
  3787. if(iCP[playerid] == OilDepot)
  3788. {
  3789. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3790. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3791. GivePlayerMoney(playerid, 5000);
  3792. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Oil Depot! You earned +5 scores and +$5000! & a random weapon");
  3793. new string[128], name[MAX_PLAYER_NAME+1];
  3794. GetPlayerName(playerid, name, sizeof(name));
  3795. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Oil Depot!",name);
  3796. SendClientMessageToAll(COLOR_WHITE, string);
  3797. tCP[OilDepot] = gTeam[playerid];
  3798. if(gTeam[playerid] == USARMY)
  3799. {
  3800. GangZoneShowForAll(Zone[OilDepot], USARMY_COLOR);
  3801. }
  3802. else if(gTeam[playerid] == SAS)
  3803. {
  3804. GangZoneShowForAll(Zone[OilDepot], SAS_COLOR);
  3805. }
  3806. else if(gTeam[playerid] == CHINA)
  3807. {
  3808. GangZoneShowForAll(Zone[OilDepot], CHINA_COLOR);
  3809. }
  3810. else if(gTeam[playerid] == RUSSIA)
  3811. {
  3812. GangZoneShowForAll(Zone[OilDepot], RUSSIA_COLOR);
  3813. }
  3814. else if(gTeam[playerid] == SYRIA)
  3815. {
  3816. GangZoneShowForAll(Zone[OilDepot], SYRIA_COLOR);
  3817. }
  3818. else if(gTeam[playerid] == TALIBAN)
  3819. {
  3820. GangZoneShowForAll(Zone[OilDepot], TALIBAN_COLOR);
  3821. }
  3822. else if(gTeam[playerid] == ISLAM)
  3823. {
  3824. GangZoneShowForAll(Zone[OilDepot], ISLAM_COLOR);
  3825. }
  3826. else if(gTeam[playerid] == GERMANY)
  3827. {
  3828. GangZoneShowForAll(Zone[OilDepot], GERMANY_COLOR);
  3829. }
  3830. else if(gTeam[playerid] == JAPAN)
  3831. {
  3832. GangZoneShowForAll(Zone[OilDepot], JAPAN_COLOR);
  3833. }
  3834. else if(gTeam[playerid] == KOREA)
  3835. {
  3836. GangZoneShowForAll(Zone[OilDepot], KOREA_COLOR);
  3837. }
  3838. GangZoneStopFlashForAll(Zone[OilDepot]);
  3839. Captured[OilDepot] = 1;
  3840. KillTimer(CountTime[playerid]);
  3841. KillTimer(timer[playerid][OilDepot]);
  3842. }
  3843. if(iCP[playerid] == Quarry)
  3844. {
  3845. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3846. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3847. GivePlayerMoney(playerid, 5000);
  3848. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Quarry! You earned +5 scores and +$5000! & a random weapon");
  3849. new string[128], name[MAX_PLAYER_NAME+1];
  3850. GetPlayerName(playerid, name, sizeof(name));
  3851. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Quarry!",name);
  3852. SendClientMessageToAll(COLOR_WHITE, string);
  3853. tCP[Quarry] = gTeam[playerid];
  3854. if(gTeam[playerid] == USARMY)
  3855. {
  3856. GangZoneShowForAll(Zone[Quarry], USARMY_COLOR);
  3857. }
  3858. else if(gTeam[playerid] == SAS)
  3859. {
  3860. GangZoneShowForAll(Zone[Quarry], SAS_COLOR);
  3861. }
  3862. else if(gTeam[playerid] == CHINA)
  3863. {
  3864. GangZoneShowForAll(Zone[Quarry], CHINA_COLOR);
  3865. }
  3866. else if(gTeam[playerid] == RUSSIA)
  3867. {
  3868. GangZoneShowForAll(Zone[Quarry], RUSSIA_COLOR);
  3869. }
  3870. else if(gTeam[playerid] == SYRIA)
  3871. {
  3872. GangZoneShowForAll(Zone[Quarry], SYRIA_COLOR);
  3873. }
  3874. else if(gTeam[playerid] == TALIBAN)
  3875. {
  3876. GangZoneShowForAll(Zone[Quarry], TALIBAN_COLOR);
  3877. }
  3878. else if(gTeam[playerid] == ISLAM)
  3879. {
  3880. GangZoneShowForAll(Zone[Quarry], ISLAM_COLOR);
  3881. }
  3882. else if(gTeam[playerid] == GERMANY)
  3883. {
  3884. GangZoneShowForAll(Zone[Quarry], GERMANY_COLOR);
  3885. }
  3886. else if(gTeam[playerid] == JAPAN)
  3887. {
  3888. GangZoneShowForAll(Zone[Quarry], JAPAN_COLOR);
  3889. }
  3890. else if(gTeam[playerid] == KOREA)
  3891. {
  3892. GangZoneShowForAll(Zone[Quarry], KOREA_COLOR);
  3893. }
  3894. GangZoneStopFlashForAll(Zone[Quarry]);
  3895. Captured[Quarry] = 1;
  3896. KillTimer(CountTime[playerid]);
  3897. KillTimer(timer[playerid][Quarry]);
  3898. }
  3899. if(iCP[playerid] == TheBigSpreadRanch)
  3900. {
  3901. new randomweps [20] ={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,36};GivePlayerWeapon(playerid,randomweps[random(20)],1);
  3902. SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
  3903. GivePlayerMoney(playerid, 5000);
  3904. SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the The Big Spread Ranch! You earned +5 scores and +$5000! & a random weapon");
  3905. new string[128], name[MAX_PLAYER_NAME+1];
  3906. GetPlayerName(playerid, name, sizeof(name));
  3907. format(string, sizeof(string),"[Mercenary News] %s has successfully captured the The Big Spread Ranch!",name);
  3908. SendClientMessageToAll(COLOR_WHITE, string);
  3909. tCP[TheBigSpreadRanch] = gTeam[playerid];
  3910. if(gTeam[playerid] == USARMY)
  3911. {
  3912. GangZoneShowForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
  3913. }
  3914. else if(gTeam[playerid] == SAS)
  3915. {
  3916. GangZoneShowForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
  3917. }
  3918. else if(gTeam[playerid] == CHINA)
  3919. {
  3920. GangZoneShowForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
  3921. }
  3922. else if(gTeam[playerid] == RUSSIA)
  3923. {
  3924. GangZoneShowForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
  3925. }
  3926. else if(gTeam[playerid] == SYRIA)
  3927. {
  3928. GangZoneShowForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
  3929. }
  3930. else if(gTeam[playerid] == TALIBAN)
  3931. {
  3932. GangZoneShowForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
  3933. }
  3934. else if(gTeam[playerid] == ISLAM)
  3935. {
  3936. GangZoneShowForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
  3937. }
  3938. else if(gTeam[playerid] == GERMANY)
  3939. {
  3940. GangZoneShowForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
  3941. }
  3942. else if(gTeam[playerid] == JAPAN)
  3943. {
  3944. GangZoneShowForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
  3945. }
  3946. else if(gTeam[playerid] == KOREA)
  3947. {
  3948. GangZoneShowForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
  3949. }
  3950. GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
  3951. Captured[TheBigSpreadRanch] = 1;
  3952. KillTimer(CountTime[playerid]);
  3953. KillTimer(timer[playerid][TheBigSpreadRanch]);
  3954. }
  3955. return 1;
  3956. }
  3957.  
  3958. public TeamProtection()
  3959. {
  3960. for(new i; i < MAX_PLAYERS; i++)
  3961. {
  3962. if(IsPlayerConnected(i))
  3963. {
  3964. SetPlayerTeam(i, gTeam[i]);
  3965. }
  3966. }
  3967. }
  3968.  
  3969.  
  3970. forward CountDown(playerid);
  3971. public CountDown(playerid)
  3972. {
  3973. CountVar[playerid]--;
  3974. if(CountVar[playerid] == 0)
  3975. {
  3976. CountVar[playerid] = 25;
  3977. KillTimer(CountTime[playerid]);
  3978. }
  3979. else
  3980. {
  3981. new str[124];
  3982. format(str, sizeof(str),"~n~~n~~n~~n~~n~~n~~r~%d/~y~25 ~w~Seconds left~n~~g~to capture", CountVar[playerid]);
  3983. GameTextForPlayer(playerid, str, 1000, 3);
  3984. }
  3985. CountTime[playerid] = SetTimerEx("CountDown", 1000, false,"i", playerid);
  3986. return 1;
  3987. }
  3988.  
  3989. CMD:help(playerid, params[])
  3990. {
  3991. SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[SYSTEM] /admins /vips /ranks /objective");
  3992. SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[CHAT] /pm /rules");
  3993. SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[PLAYER] /report /kill /changeclass /stats ");
  3994. return 1;
  3995. }
  3996.  
  3997. CMD:ranks(playerid, params[])
  3998. {
  3999. ShowPlayerDialog(playerid,Ranks,DIALOG_STYLE_MSGBOX,"Mercenary Ranks","0-25 Private\n25-50 Lance Corporal\n50-100 Corporal\n100-150 Sergeant\n150-200 Second Lieutenant\n200-300 Lieutenant\n300-400 Captain\n400-500 Major\n500-600 Lieutenant Colonel\n600-700 Colonel\n700-800 Brigadier\n800-900 Major general\n900-1000 Lieutenant General\n1000-1500 General\n1500-2000 Field Marshal\n2000-5000 Mercenary",">>","Close");
  4000. return 1;
  4001. }
  4002. CMD:objective(playerid, params[])
  4003. {
  4004. ShowPlayerDialog(playerid,Ranks,DIALOG_STYLE_MSGBOX,"Objective","Your objective is to capture all zones and kill the players in order to gain some scores",">>","Close");
  4005. return 1;
  4006. }
  4007.  
  4008. CMD:rules(playerid, params[])
  4009. {
  4010. ShowPlayerDialog(playerid,Ranks,DIALOG_STYLE_MSGBOX,"Rules","1.No cheating\n2.No mods\n3.No bug abusing (including c-bug)\n4.No /votekick abusing\n5.No spamming text areas and advertising\n6.No insulting other players. Racism\n7.No pausing to avoid death\n8.No repeated killings of a single individual\n9.No event rule breaking\n10.No teamkilling",">>","Close");
  4011. return 1;
  4012. }
  4013.  
  4014. CMD:changeclass(playerid, params[])
  4015. {
  4016. ForceClassSelection(playerid);
  4017. TogglePlayerSpectating(playerid, true);
  4018. TogglePlayerSpectating(playerid, false);
  4019. SendClientMessage(playerid, 0xFFFFFFAA,"Class Selection: Please Select Your New Team!");
  4020. return 1;
  4021. }
  4022.  
  4023. CMD:kill(playerid, params[])
  4024. {
  4025. SetPlayerHealth(playerid, 0);
  4026. return 1;
  4027. }
  4028.  
  4029.  
  4030. CMD:admins(playerid, params[])
  4031. {
  4032. new string[256];
  4033. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Admins Online >>>");
  4034. foreach(Player, i )
  4035. {
  4036. if(AHide[i] == 0 && XST_Info[i][Admin] > 0 && i > 0)
  4037. {
  4038. format(string, sizeof(string), "%s %s - level: %d (id : %i) Admin Duty: %s" , GetAdminRank(i), GetName(i), XST_Info[i][Admin], i, GetADuty(i));
  4039. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, string );
  4040. }
  4041. else return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "No admins online or they are hidden");
  4042. }
  4043. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Admins Online >>>");
  4044. return 1;
  4045. }
  4046.  
  4047.  
  4048. CMD:vips(playerid, params[])
  4049. {
  4050. new string[256];
  4051. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Vips Online >>>");
  4052. foreach(Player, i )
  4053. {
  4054. if( XST_Info[i][Vip] > 0 )
  4055. {
  4056. format(string, sizeof(string), "%s %s - level: %d (id : %i)" , GetVipRank(i), GetName(i), XST_Info[i][Vip], i);
  4057. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, string );
  4058. }
  4059. else return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "No vips online");
  4060. }
  4061. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Vips Online >>>");
  4062. return 1;
  4063. }
  4064.  
  4065. CMD:report(playerid, params[])
  4066. {
  4067. ShowPlayerDialog(playerid, 3 , DIALOG_STYLE_LIST, "Report", "Report a problem\nReport a hacker", "Select", "Cancel");
  4068. return 1;
  4069. }
  4070.  
  4071.  
  4072.  
  4073. CMD:pm(playerid, params[])
  4074. {
  4075. new id, message[256];
  4076. if(sscanf(params, "us[256]", id, message ) ) return SendClientMessage(playerid, -1, "Syntax: /pm [id] [message]");
  4077. if(!IsPlayerConnected(id) ) return SendClientMessage(playerid, -1, "Player is not connected");
  4078. new astring[256];
  4079. format(astring, sizeof(astring), "PM From %s: %s" , GetName(playerid), message);
  4080. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, astring);
  4081. SendClientMessage(id, -1, "Message sent.");
  4082. return 1;
  4083. }
  4084. //Admin COmmands
  4085. CMD:ah(playerid, params[])
  4086. {
  4087. new str[2024];
  4088. new string[128];
  4089. if(XST_Info[playerid][Admin] == 1)
  4090. {
  4091. format(string, sizeof(string), "%s\n", ADMIN_FIRSTRANK);
  4092. strcat(str, string);
  4093. strcat(str, "Info: They are new in the team, they only can help people and use some basics commands\n");
  4094. strcat(str, "Commands: /aduty, /acolor, /agod, /agoto, /aget\n");
  4095. strcat(str, "\n");
  4096. }
  4097. if(XST_Info[playerid][Admin] == 2)
  4098. {
  4099. format(string, sizeof(string), "%s\n", ADMIN_SECONDRANK);
  4100. strcat(str, string);
  4101. strcat(str, "Info: The still have to help players, but now they have a new responsabilities ! to keep cheaters away\n");
  4102. strcat(str, "Commands: /awarn, /akick, /amute ( /aunmute) , /ajail ( /aunjail ) , /slap, /explode\n");
  4103. strcat(str, "\n");
  4104. }
  4105. if(XST_Info[playerid][Admin] == 3)
  4106. {
  4107. format(string, sizeof(string), "%s\n", ADMIN_THIRDRANK);
  4108. strcat(str, string);
  4109. strcat(str, "Info: They gained experience along the time, now they also have new powers\n");
  4110. strcat(str, "Commands: /ban ,/setscore ,/giveweapon, /setinterior, /setvworld, /sethealth, /setarmour, /setweather, /settime , /setcash, /spectate, /announce, /asay, /givescore , /givecash\n");
  4111. strcat(str, "\n");
  4112. }
  4113. if(XST_Info[playerid][Admin] == 4)
  4114. {
  4115. format(string, sizeof(string), "%s\n", ADMIN_FOURTHRANK);
  4116. strcat(str, string);
  4117. strcat(str, "Info: They are very experienced with a high rank, their powers are similars to high ranked admins\n");
  4118. strcat(str, "Commands: /giveallcash, /giveallscore, /giveallarmour, /giveallhealth, /kickall, /tpallhere \n");
  4119. strcat(str, "\n");
  4120. }
  4121. if(XST_Info[playerid][Admin] == 5)
  4122. {
  4123. format(string, sizeof(string), "%s\n", ADMIN_FIFTHHRANK);
  4124. strcat(str, string);
  4125. strcat(str, "Info: The most experienced admins, and they have super powers over other admins, they are protected to admins commands\n");
  4126. strcat(str, "Commands: /amenu\n");
  4127. strcat(str, "\n");
  4128. }
  4129. if(IsPlayerAdmin(playerid) )
  4130. {
  4131. format(string, sizeof(string), "%s\n", "Rcon Admins");
  4132. strcat(str, string);
  4133. strcat(str, "Info: They are the owners\n");
  4134. strcat(str, "Commands: /makeadmin, /makevip\n");
  4135. }
  4136. ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Admin Help", str, "Ok", "");
  4137. return 1;
  4138. }
  4139.  
  4140. CMD:ban(playerid, params[])
  4141. {
  4142. new id, reason[256];
  4143. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /aban [id] [reason]");
  4144. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4145. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4146. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4147. NOT_CONNECT(id);
  4148. new string[256];
  4149. format(string, sizeof(string), "%s %s banned %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4150. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4151. XST_Info[id][Banned] = 1;
  4152. BanPlayer(id, reason, GetName(id), GetName(playerid));
  4153. AdminMessage(playerid, "/ban");
  4154. return 1;
  4155. }
  4156.  
  4157. CMD:setscore(playerid, params[])
  4158. {
  4159. new id, score;
  4160. if(sscanf(params, "ud", id, score) ) return SendClientMessage(playerid, -1, "Syntax: /setscore [id] [score]");
  4161. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4162. NOT_CONNECT(id);
  4163. new string[256];
  4164. format(string, sizeof(string), "%s %s was set your score to %d" , GetAdminRank(playerid), GetName(playerid), score);
  4165. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4166. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the score");
  4167. AdminMessage(playerid, "/setscore");
  4168. SetPlayerScore(id, score);
  4169. return 1;
  4170. }
  4171.  
  4172.  
  4173.  
  4174. CMD:givemoney(playerid, params[])
  4175. {
  4176. new id, cash;
  4177. if(sscanf(params, "ud", id, cash) ) return SendClientMessage(playerid, -1, "Syntax: /givecash [id] [cash]");
  4178. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4179. NOT_CONNECT(id);
  4180. new string[256];
  4181. format(string, sizeof(string), "%s %s have given you cash : $%d" , GetAdminRank(playerid), GetName(playerid), cash);
  4182. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4183. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the cash");
  4184. AdminMessage(playerid, "/givecash");
  4185. GivePlayerMoney(id, cash);
  4186. return 1;
  4187. }
  4188.  
  4189. CMD:amenu(playerid, params[])
  4190. {
  4191. if(XST_Info[playerid][Admin] == 5) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4192. else ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, ADMIN_FIFTHHRANK, "Create a car\nRestart server\nKickall\nBanall\nWarningall\nMuteall\nUnmuteall", "Select", "Cancel");
  4193. return 1;
  4194. }
  4195.  
  4196. CMD:giveallcash(playerid, params[])
  4197. {
  4198. new cash;
  4199. if(sscanf(params, "d", cash) ) return SendClientMessage(playerid, -1, "Syntax: /giveallcash [cash]");
  4200. if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4201. new string[256];
  4202. format(string, sizeof(string), "%s %s gave everyone $%d" ,GetAdminRank(playerid), GetName(playerid), cash);
  4203. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4204. foreach(Player, i) GivePlayerMoney(i, cash);
  4205. return 1;
  4206. }
  4207.  
  4208.  
  4209.  
  4210. CMD:giveallhealth(playerid, params[])
  4211. {
  4212. if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4213. new string[256];
  4214. format(string, sizeof(string), "%s %s gave everyone health" ,GetAdminRank(playerid), GetName(playerid));
  4215. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4216. foreach(Player, i) SetPlayerHealth(i, 100);
  4217. return 1;
  4218. }
  4219.  
  4220. CMD:giveallarmour(playerid, params[])
  4221. {
  4222. if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4223. new string[256];
  4224. format(string, sizeof(string), "%s %s gave everyone armour" ,GetAdminRank(playerid), GetName(playerid));
  4225. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4226. foreach(Player, i) SetPlayerArmour(i, 100);
  4227. return 1;
  4228. }
  4229.  
  4230. CMD:kickall(playerid, params[])
  4231. {
  4232. if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4233. new string[256];
  4234. format(string, sizeof(string), "%s %s kicked everyone" ,GetAdminRank(playerid), GetName(playerid));
  4235. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4236. foreach(Player, i) Kick(i);
  4237. return 1;
  4238. }
  4239.  
  4240. CMD:tpallhere(playerid, params[])
  4241. {
  4242. if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4243. new string[256];
  4244. format(string, sizeof(string), "%s %s teleported everyone to him" ,GetAdminRank(playerid), GetName(playerid));
  4245. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4246. new Float: X, Float: Y, Float: Z;
  4247. GetPlayerPos(playerid, X, Y, Z);
  4248. new interior = GetPlayerInterior(playerid);
  4249. new vworld = GetPlayerVirtualWorld(playerid);
  4250. foreach(Player, i) {
  4251. SetPlayerPos(i, X, Y, Z);
  4252. SetPlayerInterior(i , interior);
  4253. SetPlayerVirtualWorld(i, vworld);
  4254. }
  4255. return 1;
  4256. }
  4257.  
  4258. CMD:announce(playerid, params[])
  4259. {
  4260. new message[256];
  4261. if(sscanf(params, "s[256]", message) ) return SendClientMessage(playerid, -1, "Syntax: /announce [message]");
  4262. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4263. format(message, sizeof(message), "%s", message);
  4264. GameTextForAll(message, 2000, 0);
  4265. return 1;
  4266. }
  4267.  
  4268.  
  4269. CMD:asay(playerid, params[])
  4270. {
  4271. new message[256];
  4272. if(sscanf(params, "s[256]", message) ) return SendClientMessage(playerid, -1, "Syntax: /asay [message]");
  4273. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4274. format(message, sizeof(message), " %s %s : %s", GetAdminRank(playerid), GetName(playerid) ,message);
  4275. foreach(Player, i) SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, message);
  4276. return 1;
  4277. }
  4278.  
  4279. CMD:setcash(playerid, params[])
  4280. {
  4281. new id, cash;
  4282. if(sscanf(params, "ud", id, cash) ) return SendClientMessage(playerid, -1, "Syntax: /setcash [id] [score]");
  4283. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4284. NOT_CONNECT(id);
  4285. new string[256];
  4286. format(string, sizeof(string), "%s %s was set your cash to $%d" , GetAdminRank(playerid), GetName(playerid), cash);
  4287. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4288. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the cash");
  4289. AdminMessage(playerid, "/setcash");
  4290. ResetPlayerMoney(id);
  4291. GivePlayerMoney(id, cash);
  4292. return 1;
  4293. }
  4294.  
  4295. CMD:setweather(playerid, params[])
  4296. {
  4297. new weather;
  4298. if(sscanf(params, "d", weather) ) return SendClientMessage(playerid, -1, "Syntax: /setweather [id] [weather]");
  4299. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4300. if(weather < 0 || weather > 40) return SendClientMessage(playerid, -1, "Invalid weather id!");
  4301. new string[256];
  4302. format(string, sizeof(string), "%s %s was set the weatherid to %d" , GetAdminRank(playerid), GetName(playerid), weather);
  4303. SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
  4304. AdminMessage(playerid, "/setweather");
  4305. SetWeather(weather);
  4306. return 1;
  4307. }
  4308.  
  4309. CMD:settime(playerid, params[])
  4310. {
  4311. new hour, minute;
  4312. if(sscanf(params, "dD(00)", hour, minute) ) return SendClientMessage(playerid, -1, "Syntax: /settime [id] [hour] [minute]");
  4313. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4314. if(hour > 24 || hour < 0) return SendClientMessage(playerid, -1, "Invalid hour");
  4315. if(minute > 60 || minute < 0) return SendClientMessage(playerid, -1, "Invalid minute");
  4316. new string[256];
  4317. format(string, sizeof(string), "%s %s was set the gametime to %d:%d" , GetAdminRank(playerid), GetName(playerid), hour, minute);
  4318. SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
  4319. AdminMessage(playerid, "/settime");
  4320. foreach(Player, i) SetPlayerTime(i, hour, minute);
  4321. return 1;
  4322. }
  4323.  
  4324. CMD:setinterior(playerid, params[])
  4325. {
  4326. new id, interior;
  4327. if(sscanf(params, "ud", id, interior) ) return SendClientMessage(playerid, -1, "Syntax: /setinterior [id] [interior]");
  4328. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4329. NOT_CONNECT(id);
  4330. new string[256];
  4331. format(string, sizeof(string), "%s %s was set your interior to %d" , GetAdminRank(playerid), GetName(playerid), interior);
  4332. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4333. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the interior");
  4334. AdminMessage(playerid, "/setinterior");
  4335. SetPlayerInterior(id, interior);
  4336. return 1;
  4337. }
  4338.  
  4339. CMD:setvworld(playerid, params[])
  4340. {
  4341. new id, vworld;
  4342. if(sscanf(params, "ud", id, vworld) ) return SendClientMessage(playerid, -1, "Syntax: /setvworld [id] [vworld]");
  4343. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4344. NOT_CONNECT(id);
  4345. new string[256];
  4346. format(string, sizeof(string), "%s %s was set your virtual world to %d" , GetAdminRank(playerid), GetName(playerid), vworld);
  4347. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4348. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the virtual world");
  4349. AdminMessage(playerid, "/setvworld");
  4350. SetPlayerVirtualWorld(id, vworld);
  4351. return 1;
  4352. }
  4353.  
  4354. CMD:sethealth(playerid, params[])
  4355. {
  4356. new id, health;
  4357. if(sscanf(params, "ud", id, health) ) return SendClientMessage(playerid, -1, "Syntax: /sethealth [id] [health]");
  4358. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4359. NOT_CONNECT(id);
  4360. new string[256];
  4361. format(string, sizeof(string), "%s %s was set your health to %d" , GetAdminRank(playerid), GetName(playerid), health);
  4362. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4363. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the health");
  4364. AdminMessage(playerid, "/sethealth");
  4365. SetPlayerHealth(id, health);
  4366. return 1;
  4367. }
  4368.  
  4369. CMD:setarmour(playerid, params[])
  4370. {
  4371. new id, armour;
  4372. if(sscanf(params, "ud", id, armour) ) return SendClientMessage(playerid, -1, "Syntax: /setarmour [id] [armour]");
  4373. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4374. NOT_CONNECT(id);
  4375. new string[256];
  4376. format(string, sizeof(string), "%s %s was set your armour to %d" , GetAdminRank(playerid), GetName(playerid), armour);
  4377. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4378. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the armour");
  4379. AdminMessage(playerid, "/setarmour");
  4380. SetPlayerArmour(id, armour);
  4381. return 1;
  4382. }
  4383.  
  4384. CMD:giveweapon(playerid, params[])
  4385. {
  4386. new id, weaponid, ammo;
  4387. if(sscanf(params, "udd", id, weaponid, ammo) ) return SendClientMessage(playerid, -1, "Syntax: /giveweapon [id] [weapon] [ammo]");
  4388. if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4389. NOT_CONNECT(id);
  4390. new string[256];
  4391. format(string, sizeof(string), "%s %s was gave you weapon id: %d ( %s )" , GetAdminRank(playerid), GetName(playerid), weaponid, GetWeaponNameByID(weaponid) );
  4392. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4393. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You gave a weapon");
  4394. AdminMessage(playerid, "/giveweapon");
  4395. GivePlayerWeapon(playerid, weaponid, ammo);
  4396. return 1;
  4397. }
  4398.  
  4399. CMD:makeadmin(playerid, params[])
  4400. {
  4401. new id, level;
  4402. if(sscanf(params, "ud", id, level) ) return SendClientMessage(playerid, -1, "Syntax: /makeadmin [id] [level]");
  4403. if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4404. if(level > MAX_LEVEL) return SendClientMessage(playerid, -1, "Invalid level");
  4405. NOT_CONNECT(id);
  4406. XST_Info[id][Admin] = level;
  4407. new string[256];
  4408. format(string, sizeof(string), "%s %s has set your admin level to %s (%d)" , GetAdminRank(id), GetName(id), XST_Info[id][Admin]);
  4409. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4410. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the level");
  4411. AdminMessage(playerid, "/makeadmin");
  4412. return 1;
  4413. }
  4414.  
  4415. CMD:makevip(playerid, params[])
  4416. {
  4417. new id, level;
  4418. if(sscanf(params, "ud", id, level) ) return SendClientMessage(playerid, -1, "Syntax: /makevip [id] [level]");
  4419. if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4420. if(level > MAX_VIP) return SendClientMessage(playerid, -1, "Invalid level");
  4421. NOT_CONNECT(id);
  4422. XST_Info[id][Vip] = level;
  4423. new string[256];
  4424. format(string, sizeof(string), "%s %s was set your vip level to %s (%d)" , GetAdminRank(playerid), GetName(playerid),GetVipRank(id), XST_Info[id][Vip] );
  4425. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4426. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the level");
  4427. AdminMessage(playerid, "/makevip");
  4428. return 1;
  4429. }
  4430.  
  4431. CMD:agod(playerid, params[])
  4432. {
  4433. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4434. if(XST_Info[playerid][Godmode] == 0)
  4435. {
  4436. SetPlayerHealth(playerid, 99999);
  4437. GivePlayerWeapon(playerid, 32, 99999);
  4438. GivePlayerWeapon(playerid, 26, 99999);
  4439. GivePlayerWeapon(playerid, 16, 99999);
  4440. XST_Info[playerid][Godmode] = 1;
  4441. SendClientMessage(playerid, -1, "GODMODE: Turned On");
  4442. }
  4443. else if(XST_Info[playerid][Godmode] == 1)
  4444. {
  4445. SetPlayerHealth(playerid, 100);
  4446. ResetPlayerWeapons(playerid);
  4447. XST_Info[playerid][Godmode] = 0;
  4448. SendClientMessage(playerid, -1, "GODMODE: Turned Off");
  4449. }
  4450. AdminMessage(playerid, "/agod");
  4451. return 1;
  4452. }
  4453.  
  4454. CMD:awarn(playerid, params[])
  4455. {
  4456. new id, warn[256];
  4457. if(sscanf(params, "us[256]", id, warn) ) return SendClientMessage(playerid, -1 , "Syntax: /awarn [id] [reason]");
  4458. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4459. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4460. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4461. NOT_CONNECT(id);
  4462. new string[256];
  4463. format(string, sizeof(string), "%s %s gave a warn to %s ( reason: %s) * %d/%d", GetAdminRank(playerid), GetName(playerid), GetName(id), warn, XST_Info[id][Warnings], MAX_WARNINGS);
  4464. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4465. XST_Info[id][Warnings]++;
  4466. if(XST_Info[id][Warnings] >= MAX_WARNINGS)
  4467. {
  4468. new cstring[256];
  4469. new tstring[256];
  4470. format(cstring, sizeof(cstring), " Playername: %s \n Adminname: %s \nReason: %s ", GetName(id), GetName(playerid), warn);
  4471. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Ban", cstring, "Exit", "");
  4472. format(tstring, sizeof(tstring), "[BAN] %s has been automatically banned: Exceded max warnings" , GetName(id) );
  4473. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, tstring);
  4474. SetTimerEx("ExcedWarn", 1000, false, "d", id);
  4475. }
  4476. AdminMessage(playerid, "/awarn");
  4477. return 1;
  4478. }
  4479.  
  4480.  
  4481. CMD:akick(playerid, params[])
  4482. {
  4483. new id, reason[256];
  4484. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /akick [id] [reason]");
  4485. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4486. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4487. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4488. NOT_CONNECT(id);
  4489. new string[256];
  4490. format(string, sizeof(string), "%s %s kicked %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4491. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4492. SetTimerEx("KickP", 2000, false, "d", id);
  4493. AdminMessage(playerid, "/akick");
  4494. return 1;
  4495. }
  4496.  
  4497. CMD:spectate(playerid, params[])
  4498. {
  4499. new id;
  4500. if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /spectate [id]");
  4501. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4502. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4503. if(XST_Info[playerid][Admin] == XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4504. NOT_CONNECT(id);
  4505. new string[256];
  4506. format(string, sizeof(string), "%s %s is spectating you now", GetAdminRank(playerid), GetName(playerid));
  4507. SendClientMessage(id,XSTADMIN_PRIMARYCOLOR, string);
  4508. SetPVarInt(playerid, "spectatorspectate", id);
  4509. SetPVarInt(playerid, "issepctator", playerid);
  4510. TogglePlayerSpectating(playerid, true);
  4511. if(IsPlayerInAnyVehicle(id) )
  4512. {
  4513. new vehicle = GetPlayerVehicleID(id);
  4514. PlayerSpectateVehicle(playerid, vehicle);
  4515. }
  4516. else
  4517. {
  4518. PlayerSpectatePlayer(playerid, id);
  4519. }
  4520. AdminMessage(playerid, "/sepctate");
  4521. return 1;
  4522. }
  4523.  
  4524. CMD:amute(playerid, params[])
  4525. {
  4526. new id, reason[256];
  4527. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /amute [id] [reason]");
  4528. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4529. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4530. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4531. NOT_CONNECT(id);
  4532. new string[256];
  4533. format(string, sizeof(string), "%s %s muted %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4534. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4535. XST_Info[id][Muted] = 1;
  4536. AdminMessage(playerid, "/amute");
  4537. return 1;
  4538. }
  4539.  
  4540. CMD:ajail(playerid, params[])
  4541. {
  4542. new id, reason[256];
  4543. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /ajail [id] [reason]");
  4544. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4545. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4546. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4547. NOT_CONNECT(id);
  4548. new string[256];
  4549. format(string, sizeof(string), "%s %s jailed %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4550. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4551. XST_Info[id][Jailed] = 1;
  4552. SetPlayerPos(playerid, 262.9825,77.4500,1001.0391);
  4553. SetPlayerVirtualWorld(id, 0);
  4554. SetPlayerInterior(id, 0);
  4555. GameTextForPlayer(id, "~r~Busted ", 2000, 0);
  4556. AdminMessage(playerid, "/ajail");
  4557. return 1;
  4558. }
  4559.  
  4560. CMD:slap(playerid, params[])
  4561. {
  4562. new id, reason[256];
  4563. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /slap [id] [reason]");
  4564. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4565. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4566. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4567. NOT_CONNECT(id);
  4568. new string[256];
  4569. format(string, sizeof(string), "%s %s slaped %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4570. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4571. new Float:X, Float:Y, Float:Z;
  4572. GetPlayerPos(id, X, Y, Z);
  4573. SetPlayerPos(id, X, Y, Z+10);
  4574. AdminMessage(playerid, "/slap");
  4575. return 1;
  4576. }
  4577.  
  4578. CMD:explode(playerid, params[])
  4579. {
  4580. new id, reason[256];
  4581. if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /explode [id] [reason]");
  4582. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4583. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4584. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4585. NOT_CONNECT(id);
  4586. new string[256];
  4587. format(string, sizeof(string), "%s %s exploded %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
  4588. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4589. new Float:X, Float:Y, Float:Z;
  4590. GetPlayerPos(id, X, Y, Z);
  4591. CreateExplosion(X, Y, Z, 0, 15);
  4592. AdminMessage(playerid, "/explode");
  4593. return 1;
  4594. }
  4595.  
  4596.  
  4597. CMD:aunjail(playerid, params[])
  4598. {
  4599. new id;
  4600. if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /aunjail [id] ");
  4601. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4602. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4603. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4604. NOT_CONNECT(id);
  4605. new string[256];
  4606. format(string, sizeof(string), "%s %s unjailed %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id));
  4607. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4608. XST_Info[id][Jailed] = 0;
  4609. SpawnPlayer(id);
  4610. SetPlayerVirtualWorld(id, 0);
  4611. SetPlayerInterior(id, 0);
  4612. GameTextForPlayer(id, "~g~Free ", 2000, 0);
  4613. AdminMessage(playerid, "/aunjail");
  4614. return 1;
  4615. }
  4616.  
  4617. CMD:aunmute(playerid, params[])
  4618. {
  4619. new id;
  4620. if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /amute [id] ");
  4621. if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4622. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4623. if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
  4624. NOT_CONNECT(id);
  4625. new string[256];
  4626. format(string, sizeof(string), "%s %s muted %s", GetAdminRank(playerid), GetName(playerid), GetName(id));
  4627. SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
  4628. XST_Info[id][Muted] = 0;
  4629. AdminMessage(playerid, "/unamute");
  4630. return 1;
  4631. }
  4632.  
  4633. CMD:agoto(playerid, params[])
  4634. {
  4635. new id;
  4636. if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /agoto [id]");
  4637. if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4638. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4639. NOT_CONNECT(id);
  4640. new string[128];
  4641. format(string, sizeof(string), "%s %s teleported to you." , GetAdminRank(playerid), GetName(playerid));
  4642. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4643. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You teleported");
  4644. new Float:X, Float:Y, Float:Z;
  4645. GetPlayerPos(id, X, Y, Z);
  4646. new interior = GetPlayerInterior(id);
  4647. new vworld = GetPlayerVirtualWorld(id);
  4648. SetPlayerPos(playerid, X, Y+1, Z+2);
  4649. SetPlayerInterior(playerid, interior);
  4650. SetPlayerVirtualWorld(playerid, vworld);
  4651. return 1;
  4652. }
  4653.  
  4654.  
  4655. CMD:aget(playerid, params[])
  4656. {
  4657. new id;
  4658. if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /aget [id]");
  4659. if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4660. if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
  4661. NOT_CONNECT(id);
  4662. new string[128];
  4663. format(string, sizeof(string), "%s %s teleported you to his location." , GetAdminRank(playerid), GetName(playerid));
  4664. SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
  4665. SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You teleported that player");
  4666. new Float:X, Float:Y, Float:Z;
  4667. GetPlayerPos(playerid, X, Y, Z);
  4668. new interior = GetPlayerInterior(playerid);
  4669. new vworld = GetPlayerVirtualWorld(playerid);
  4670. SetPlayerPos(id, X, Y+1, Z+2);
  4671. SetPlayerInterior(id, interior);
  4672. SetPlayerVirtualWorld(id, vworld);
  4673. return 1;
  4674. }
  4675.  
  4676. CMD:acolor(playerid, params[])
  4677. {
  4678. if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4679. SetPlayerColor(playerid, ReturnAdminColor(playerid));
  4680. SendClientMessage(playerid, -1, "[ADM] Color changed");
  4681. AdminMessage(playerid, "/acolor");
  4682. return 1;
  4683. }
  4684.  
  4685. CMD:aduty(playerid, params[])
  4686. {
  4687. if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
  4688. if(XST_Info[playerid][Duty] == 0)
  4689. {
  4690. new string[128];
  4691. format(string, sizeof(string), "%s %s is now on duty." ,GetAdminRank(playerid), GetName(playerid));
  4692. SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
  4693. XST_Info[playerid][Duty] = 1;
  4694. SetPlayerHealth(playerid, 99999);
  4695. }
  4696. else if(XST_Info[playerid][Duty] == 1)
  4697. {
  4698. new string[128];
  4699. format(string, sizeof(string), "%s %s is now off duty." ,GetAdminRank(playerid), GetName(playerid));
  4700. SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
  4701. XST_Info[playerid][Duty] = 0;
  4702. SetPlayerHealth(playerid, 100);
  4703. }
  4704. AdminMessage(playerid, "/aduty");
  4705. return 1;
  4706. }
  4707.  
  4708.  
  4709. //Vip Commands
  4710.  
  4711. CMD:vh(playerid, params[])
  4712. {
  4713. new str[2024];
  4714. new string[128];
  4715. if(XST_Info[playerid][Vip] == 1)
  4716. {
  4717. format(string, sizeof(string), "%s\n", VIP_FIRSTRANK);
  4718. strcat(str, string);
  4719. strcat(str, "Info: These vips can use use trial commands\n");
  4720. strcat(str, "Commands: /vcolor, /vtime, /vweather, /vcar\n");
  4721. strcat(str, "\n");
  4722. }
  4723. if(XST_Info[playerid][Vip] == 2)
  4724. {
  4725. format(string, sizeof(string), "%s\n", VIP_SECONDRANK);
  4726. strcat(str, string);
  4727. strcat(str, "Info: These vips can use use more commands than first rank\n");
  4728. strcat(str, "Commands: /vgoto, /vget, /vweapons, /vmoney\n");
  4729. strcat(str, "\n");
  4730. }
  4731. if(XST_Info[playerid][Vip] == 3)
  4732. {
  4733. format(string, sizeof(string), "%s\n", VIP_THIRDRANK);
  4734. strcat(str, string);
  4735. strcat(str, "Info: These vips have super powers and can use all vips commands\n");
  4736. strcat(str, "Commands: /vsw, /vspectate\n");
  4737. strcat(str, "\n");
  4738. }
  4739. ShowPlayerDialog(playerid,8, DIALOG_STYLE_MSGBOX, "Vip Help", str, "Ok", "");
  4740. return 1;
  4741. }
Advertisement
Add Comment
Please, Sign In to add comment