Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <core>
- #include <float>
- #include <streamer>
- #include <YSI\y_ini>
- #include <zcmd>
- #include <foreach>
- #include <sscanf2> //thanks to Y_Less for this
- #define PASS_MIN_LENGHT 4 //min lenght of the password
- #define PASS_MAX_LENGHT 12 // max lenght of the password
- #define XST_ADMIN_VER "version v1.0" //xstadmin version!!
- #define XST_ADMIN_CHAT true //the xstadmin's chat
- #define MAX_PING 500 // the max ping a player can have
- #define MAX_LEVEL 5 // max level of an admin
- #define MAX_VIP 3 // max level of a vip
- #define ADMIN_SIGN '!' // sign used in chat for the admins chat
- #define VIP_SIGN '@' // sign used in chat for vips chat
- #define MAX_WARNINGS 4 // if player exceds this warnings he get banned
- #define Ranks 353
- #define ADMIN_FIRSTRANK "Trial Moderator" //admin rank 1 name
- #define ADMIN_SECONDRANK "Moderator" //admin rank 2 name
- #define ADMIN_THIRDRANK "Administrator" //admin rank 3 name
- #define ADMIN_FOURTHRANK "High Administator" //admin rank 4 name
- #define ADMIN_FIFTHHRANK "Server Owner" //admin rank 5 and bigger
- #define ADMIN_FIRSTRANK_COLOR 0x1BE032 // color of rank 1 admin
- #define ADMIN_SECONDRANK_COLOR 0xD9E01B // color of the rank 2 admin
- #define ADMIN_THIRDRANK_COLOR 0xE01B1B //color of the rank 3 admin
- #define ADMIN_FOURTHRANK_COLOR 0x391BE0 //color of the rank 4 admin
- #define ADMIN_FIFTHRANK_COLOR 0xE01BD9//color of the rank 5 admin
- #define VIP_FIRSTRANK "Silver VIP" // vip rank 1 name
- #define VIP_SECONDRANK "Gold VIP" // vip rank 2 name
- #define VIP_THIRDRANK "Ruby VIP" // vip rank 3 name
- #define VIP_FIRSTRANK_COLOR 0xFFFFFF // color of rank 1 vip
- #define VIP_SECONDRANK_COLOR 0xD5B6FA // color of rank 2 vip
- #define VIP_THIRDRANK_COLOR 0xFCF50F // color of rank 3 vip
- #define XSTADMIN_PRIMARYCOLOR 0xC91BE0 // primary color in chat
- #define XSTADMIN_SECONDARYCOLOR 0x20E3C9 //secondary color in chat
- #define XSTADMIN_PRC "{C91BE0}" //prim color for chat messages
- #define XSTADMIN_SCC "{20E3C9}" //second color for chat messages
- #define SPECTATE_NONE 0
- #define SPECTATE_PLAYER 1
- #define SPECTATE_VEHICLE 2
- #define NOT_CONNECT(%0); if(!IsPlayerConnected(%0) ) return SendClientMessage(playerid, -1, "Player is not online.");
- new gTeam[MAX_PLAYERS];
- #define MAPICON_LOCAL 0
- #define USARMY 0
- #define SAS 1
- #define CHINA 2
- #define RUSSIA 3
- #define SYRIA 4
- #define TALIBAN 5
- #define ISLAM 6
- #define GERMANY 7
- #define JAPAN 8
- #define KOREA 9
- #define NONE 10
- #define SERVER_NAME "BF - Desserts" //Name of the server
- #define PLAYERFILE_LOCATION "Users/%s.ini" //Location of the players's files
- #define REGISTER_DIALOG 1 // dialogid of register
- #define LOGIN_DIALOG 2 // dialogid of login
- #define SAVE_SKIN true // if true skin will save, else not
- #define PASS_MIN_LENGHT 4 //min lenght of the password
- #define PASS_MAX_LENGHT 12 // max lenght of the password
- #define XSTADMIN_PRIMARYCOLOR 0xC91BE0 // primary color in chat
- #define XSTADMIN_SECONDARYCOLOR 0x20E3C9 //secondary color in chat
- #define XSTADMIN_PRC "{C91BE0}" //prim color for chat messages
- #define XSTADMIN_SCC "{20E3C9}" //second color for chat messages
- #define USARMY_COLOR 0x33CCFFAA
- #define SAS_COLOR 0x33AA33AA
- #define CHINA_COLOR 0xFFC0CBAA
- #define RUSSIA_COLOR 0xAA3333AA
- #define SYRIA_COLOR 0xA52A2AFF
- #define TALIBAN_COLOR 0xFFFFFFAA
- #define ISLAM_COLOR 0xA9A9A9FF
- #define GERMANY_COLOR 0xFF9900AA
- #define JAPAN_COLOR 0x800080FF
- #define KOREA_COLOR 0xFFFF00AA
- #define NONE_COLOR 0x00000043
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_PINK 0xFFC0CBAA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_BROWN 0xA52A2AFF
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DARKGRAY 0xA9A9A9FF
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PURPLE 0x800080FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_NONE 0x00000043
- #define COLOR_DARKOLIVEGREEN 0x556B2FFF
- #define COLOR_FORESTGREEN 0x228B22FF
- #define Ranks 353
- #define SnakeFarm 0
- #define CiaHeadquaters 1
- #define PetrolStation 2
- #define BaitShop 3
- #define ClukinBell 4
- #define Ranch 5
- #define RadarBase 6
- #define OilDepot 7
- #define Quarry 8
- #define TheBigSpreadRanch 9
- native WP_Hash(buffer[],len,const str[]); // Thanks to Y_Less for Whirlpool hashing system
- enum pStats
- {
- Password[129], //password of the player
- Admin, //admin rank
- Score, //score of the player
- Cash, //player's cash
- Vip, //player's vip
- Kills, //kills of player
- Deaths, //Deaths of player
- Hours, //Hours of player on server
- Minute, //Minute of player
- Second, //second of player
- Muted, //if player is muted
- Jailed, // if player is jailed
- Warnings, //warnings of player: if player exced MAX_WARNINGS -> ban
- Banned, //if Player is banned ( name)
- BanTime, // Ban time , in days,
- Skin, // skin of the player
- Duty, // if player is on duty
- Godmode, //godmode,
- Spectator // if player spectate
- }
- new XST_Info[MAX_PLAYERS][pStats];
- new AHide[MAX_PLAYERS] = 0;
- new iCP[MAX_PLAYERS];
- new UnderAttack[30];
- new Captured[30];
- new tCP[30];
- new CP[30];
- new Zone[30];
- new timer[MAX_PLAYERS][30];
- new CountVar[MAX_PLAYERS] = 25;
- new InCP[MAX_PLAYERS][30];
- new CountTime[MAX_PLAYERS];
- new Text:Textdraw1;
- new Text:Textdraw2;
- new obj,Towercar;
- new GZ_USARMY;
- new GZ_SAS;
- new GZ_CHINA;
- new GZ_RUSSIA;
- new GZ_SYRIA;
- new GZ_TALIBAN;
- new GZ_ISLAM;
- new GZ_GERMANY;
- new GZ_JAPAN;
- new GZ_KOREA;
- stock AddScore(playerid, score)
- {
- if(score > 0)
- return SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
- if(score < 0)
- return SetPlayerScore(playerid, GetPlayerScore(playerid)-score);
- return 1;
- }
- stock GetAdminRank(playerid)
- {
- new rank[128];
- if(XST_Info[playerid][Admin] == 1) rank = (ADMIN_FIRSTRANK);
- if(XST_Info[playerid][Admin] == 2) rank = (ADMIN_SECONDRANK);
- if(XST_Info[playerid][Admin] == 3) rank = (ADMIN_THIRDRANK);
- if(XST_Info[playerid][Admin] == 4) rank = (ADMIN_FOURTHRANK);
- if(XST_Info[playerid][Admin] >= 5) rank = (ADMIN_FIFTHHRANK);
- return rank;
- }
- stock IsNOTLevel(playerid, level)
- {
- if(XST_Info[playerid][Admin] == level) {
- return SendClientMessage(playerid, -1, "You're not authorized to use this command");
- }
- else return 1;
- }
- stock IsNOTAdminLevel(playerid, level)
- {
- if(XST_Info[playerid][Vip] == level) {
- return SendClientMessage(playerid, -1, "You're not authorized to use this command");
- }
- else return 1;
- }
- stock GetVipRank(playerid)
- {
- new rank[128];
- if(XST_Info[playerid][Vip] == 1) rank = (VIP_FIRSTRANK);
- if(XST_Info[playerid][Vip] == 2) rank = (VIP_SECONDRANK);
- if(XST_Info[playerid][Vip] >= 3) rank = (VIP_THIRDRANK);
- return rank;
- }
- stock AdminMessage(playerid, cmdtext[])
- {
- new string[256];
- format(string, sizeof(string), "[Adm] %s %s used admin command %s" , GetAdminRank(playerid), GetName(playerid), cmdtext);
- foreach(Player, i) if(XST_Info[i][Admin] == 4) return SendClientMessageToAllEx(playerid, -1, string);
- print(string);
- return 1;
- }
- stock SendClientMessageToAllEx(exception, color, const message[])
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(i != exception)
- {
- SendClientMessage(i, color, message);
- }
- }
- }
- return 1;
- }
- stock BanPlayer( playerid ,reason[], playername[] ,adminname[])
- {
- new year, month, day,
- hour, minute, second;
- new string[256];
- getdate(year, month, day);
- gettime(hour,minute,second);
- format(string, sizeof(string), "[%d/%d/%d] [ %d:%d:%d]" , year, month, day, hour, minute, second);
- new INI: ban = INI_Open(GetBanFile(playerid) );
- INI_SetTag(ban, "Players Banned Stats");
- INI_WriteString(ban, "PlayerName", playername);
- INI_WriteString(ban, "AdminName", adminname);
- INI_WriteString(ban, "Reason", reason);
- INI_WriteString(ban, "Date", string);
- INI_Close(ban);
- BanEx(playerid, reason);
- }
- stock GetWeaponNameByID(weaponid)
- {
- new string[256];
- if(weaponid == 1) string = ("Brass Knuckles");
- if(weaponid == 2) string = ("Golf Club");
- if(weaponid == 3) string = ("Nightstick");
- if(weaponid == 4) string = ("Knife");
- if(weaponid == 5) string = ("Baseball Bat");
- if(weaponid == 6) string = ("Shovel");
- if(weaponid == 7) string = ("Pool Cue");
- if(weaponid == 8) string = ("Katana");
- if(weaponid == 9) string = ("Chainsaw");
- if(weaponid == 10) string = ("Double-ended Dildo");
- if(weaponid == 11) string = ("Dildo");
- if(weaponid == 12) string = ("Vibrator");
- if(weaponid == 13) string = ("Silver Vibrator");
- if(weaponid == 14) string = ("Flowers");
- if(weaponid == 15) string = ("Cane");
- if(weaponid == 16) string = ("Grenade");
- if(weaponid == 17) string = ("Tear Gas");
- if(weaponid == 18) string = ("Molotov Cocktail");
- if(weaponid == 22) string = ("9mm");
- if(weaponid == 23) string = ("Silenced 9mm");
- if(weaponid == 24) string = ("Desert Eagle");
- if(weaponid == 25) string = ("Shotgun");
- if(weaponid == 26) string = ("Sawnoff Shotgun");
- if(weaponid == 27) string = ("Combat Shotgun");
- if(weaponid == 28) string = ("Micro SMG/Uzi");
- if(weaponid == 29) string = ("MP5");
- if(weaponid == 30) string = ("AK-47");
- if(weaponid == 31) string = ("M4");
- if(weaponid == 32) string = ("Tec-9");
- if(weaponid == 33) string = ("Country Rifle");
- if(weaponid == 34) string = ("Sniper Rifle");
- if(weaponid == 35) string = ("RPG");
- if(weaponid == 36) string = ("HS Rocket");
- if(weaponid == 37) string = ("Flamethrower");
- if(weaponid == 38) string = ("Minigun");
- if(weaponid == 39) string = ("Satchel Charge");
- if(weaponid == 40) string = ("Detonator");
- if(weaponid == 41) string = ("Spraycan");
- if(weaponid == 42) string = ("Fire Extinguisher");
- if(weaponid == 43) string = ("Camera");
- if(weaponid == 44) string = ("Night Vis Goggles");
- if(weaponid == 45) string = ("Thermal Goggles");
- if(weaponid == 46) string = ("Parachute");
- return string;
- }
- stock GetADuty(playerid)
- {
- new string[128];
- if(XST_Info[playerid][Duty] == 0) string = ("{FA2828}False");
- if(XST_Info[playerid][Duty] == 1) string = ("{1BE01B}True");
- return string;
- }
- stock ReturnAdminColor(playerid)
- {
- new color;
- if(XST_Info[playerid][Admin] == 1) color = ADMIN_FIRSTRANK_COLOR;
- if(XST_Info[playerid][Admin] == 2) color = ADMIN_SECONDRANK_COLOR;
- if(XST_Info[playerid][Admin] == 3) color = ADMIN_THIRDRANK_COLOR;
- if(XST_Info[playerid][Admin] == 4) color = ADMIN_FOURTHRANK_COLOR;
- if(XST_Info[playerid][Admin] >= 5) color = ADMIN_FIFTHRANK_COLOR;
- return color;
- }
- stock ReturnVipColor(playerid)
- {
- new color;
- if(XST_Info[playerid][Admin] == 1) color = VIP_FIRSTRANK_COLOR;
- if(XST_Info[playerid][Admin] == 2) color = VIP_SECONDRANK_COLOR;
- if(XST_Info[playerid][Admin] >= 3) color = VIP_THIRDRANK_COLOR;
- return color;
- }
- stock SendVipMessage(playerid ,message[])
- {
- foreach(Player, i)
- {
- if(XST_Info[i][Vip] > 0)
- {
- SendClientMessage(i, ReturnVipColor(playerid), message);
- }
- }
- }
- stock SendAdminMessage(playerid , message[])
- {
- foreach(Player, i)
- {
- if(XST_Info[i][Admin] > 0)
- {
- SendClientMessage(i, ReturnAdminColor(playerid), message);
- }
- }
- }
- stock GetName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- stock GetPlayerFile(playerid)
- {
- new string[128];
- format(string, sizeof(string), "Users/%s.ini" , GetName(playerid) );
- return string;
- }
- stock GetBanFile(playerid)
- {
- new string[128];
- format(string, sizeof(string), "Users/Bans/%s.ini" , GetName(playerid) );
- return string;
- }
- stock ShowRegisterDialog(playerid)
- {
- new string[128];
- 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 );
- return ShowPlayerDialog(playerid, REGISTER_DIALOG, DIALOG_STYLE_PASSWORD, "Register", string, "Register", "Exit");
- }
- stock ShowLoginDialog(playerid)
- {
- new string[128];
- 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 );
- return ShowPlayerDialog(playerid, LOGIN_DIALOG , DIALOG_STYLE_PASSWORD , "Login", string, "Login", "Exit");
- }
- forward TeamProtection();
- forward AddTime();
- forward ExcedWarn(id);
- forward KickP(id);
- forward destroyThisObject(objid);
- forward loadplayerdata(playerid, name[], value[]);
- forward SetPlayerToTeamColor(playerid);
- forward SetupPlayerForClassSelection(playerid);
- forward SetPlayerTeamFromClass(playerid,classid);
- //---------------------------------------------------------
- main()
- {
- print("\n----------------------------------");
- print(" Battlefield Desserts Flaken\n");
- print("----------------------------------\n");
- }
- //---------------------------------------------------------
- public KickP(id)
- {
- Kick(id);
- return 1;
- }
- public ExcedWarn(id)
- {
- BanPlayer(id, "Exceded max warnings", GetName(id), "AdmBot");
- return 1;
- }
- public loadplayerdata(playerid, name[], value[])
- {
- INI_String("Password", XST_Info[playerid][Password], 129);
- INI_Int("Admin", XST_Info[playerid][Admin]);
- INI_Int("Vip", XST_Info[playerid][Vip]);
- INI_Int("Kills", XST_Info[playerid][Kills]);
- INI_Int("Deaths", XST_Info[playerid][Deaths]);
- INI_Int("Cash", XST_Info[playerid][Cash]);
- INI_Int("Score", XST_Info[playerid][Score]);
- INI_Int("Hours", XST_Info[playerid][Hours]);
- INI_Int("Minute", XST_Info[playerid][Minute]);
- INI_Int("Second", XST_Info[playerid][Second]);
- INI_Int("Warnings", XST_Info[playerid][Warnings]);
- INI_Int("Muted", XST_Info[playerid][Muted]);
- INI_Int("Jailed", XST_Info[playerid][Jailed]);
- INI_Int("Banned", XST_Info[playerid][Banned]);
- INI_Int("BanTime", XST_Info[playerid][BanTime]);
- #if SAVE_SKIN == true
- INI_Int("Skin", XST_Info[playerid][Skin]);
- #endif
- return 1;
- }
- public SetPlayerToTeamColor(playerid)
- {
- if(gTeam[playerid] == USARMY)
- {
- SetPlayerColor(playerid,USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- SetPlayerColor(playerid,SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- SetPlayerColor(playerid,CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- SetPlayerColor(playerid,RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- SetPlayerColor(playerid,SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- SetPlayerColor(playerid,TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- SetPlayerColor(playerid,ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- SetPlayerColor(playerid,GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- SetPlayerColor(playerid,JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- SetPlayerColor(playerid,KOREA_COLOR);
- }
- }
- public SetupPlayerForClassSelection(playerid)
- {
- SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
- SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
- SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
- SetPlayerFacingAngle(playerid,0.0);
- }
- public SetPlayerTeamFromClass(playerid,classid)
- {
- if(classid == 0)
- {
- gTeam[playerid] = USARMY;
- }
- else if(classid == 1)
- {
- gTeam[playerid] = SAS;
- }
- else if(classid == 2)
- {
- gTeam[playerid] = CHINA;
- }
- else if(classid == 3)
- {
- gTeam[playerid] = RUSSIA;
- }
- else if(classid == 4)
- {
- gTeam[playerid] = SYRIA;
- }
- else if(classid == 5)
- {
- gTeam[playerid] = TALIBAN;
- }
- else if(classid == 6)
- {
- gTeam[playerid] = ISLAM;
- }
- else if(classid == 7)
- {
- gTeam[playerid] = GERMANY;
- }
- else if(classid == 8)
- {
- gTeam[playerid] = JAPAN;
- }
- else if(classid == 9)
- {
- gTeam[playerid] = KOREA;
- }
- }
- public OnGameModeInit()
- {
- SetGameModeText("Battlefield V.1.0");
- ShowPlayerMarkers(1);
- ShowNameTags(1);
- SetWorldTime(12);
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- AddStaticPickup(1242, 3, -23.1637,1845.9777,35.2997, -1);// Armour
- AddStaticPickup(1240, 3, -55.9110,1817.4683,35.3270, -1);// Health
- SetTimer("TeamProtection", 5000 ,true);
- if(!fexist("Users") ) {
- 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");
- SendRconCommand("exit");
- }
- CP[SnakeFarm] = CreateDynamicCP(-37.4375,2346.6733,24.1406,2.0);
- Zone[SnakeFarm] = GangZoneCreate(-80.0781250000005,2281.25,23.4375,2408.203125);
- UnderAttack[SnakeFarm] = -1;
- Captured[SnakeFarm] = -1;
- tCP[SnakeFarm] = NONE;
- CP[CiaHeadquaters] = CreateDynamicCP(-551.1266,2593.3501,53.9348,2.0);
- Zone[CiaHeadquaters] = GangZoneCreate(-636.71875,2527.34375,-496.09375,2658.203125);
- UnderAttack[CiaHeadquaters] = -1;
- Captured[CiaHeadquaters] = -1;
- tCP[CiaHeadquaters] = NONE;
- CP[PetrolStation] = CreateDynamicCP(-1318.2217,2694.1321,50.0625,2.0);
- Zone[PetrolStation] = GangZoneCreate(-1390.625,2630.859375,-1236.328125,2738.28125);
- UnderAttack[PetrolStation] = -1;
- Captured[PetrolStation] = -1;
- tCP[PetrolStation] = NONE;
- CP[BaitShop] = CreateDynamicCP(-1350.1863,2057.0811,52.6337,2.0);
- Zone[BaitShop] = GangZoneCreate(-1400.390625,2023.4375,-1298.828125,2099.609375);
- UnderAttack[BaitShop] = -1;
- Captured[BaitShop] = -1;
- tCP[BaitShop] = NONE;
- CP[ClukinBell] = CreateDynamicCP(-1212.6385,1824.0710,41.7188,2.0);
- Zone[ClukinBell] = GangZoneCreate(-1259.765625,1767.578125,-1140.625,1867.1875);
- UnderAttack[ClukinBell] = -1;
- Captured[ClukinBell] = -1;
- tCP[ClukinBell] = NONE;
- CP[Ranch] = CreateDynamicCP(-310.7553,1767.5319,43.6406,2.0);
- Zone[Ranch] = GangZoneCreate(-376.953125,1714.84375,-240.234375,1832.03125);
- UnderAttack[Ranch] = -1;
- Captured[Ranch] = -1;
- tCP[Ranch] = NONE;
- CP[RadarBase] = CreateDynamicCP(-350.0478,1570.0309,75.9279,2.0);
- Zone[RadarBase] = GangZoneCreate(-419.921875,1548.828125,-263.671875,1658.203125);
- UnderAttack[RadarBase] = -1;
- Captured[RadarBase] = -1;
- tCP[RadarBase] = NONE;
- CP[OilDepot] = CreateDynamicCP(220.8755,1422.7489,10.5859,2.0);
- Zone[OilDepot] = GangZoneCreate(95.703125,1341.796875,283.203125,1486.328125);
- UnderAttack[OilDepot] = -1;
- Captured[OilDepot] = -1;
- tCP[OilDepot] = NONE;
- CP[Quarry] = CreateDynamicCP(596.3820,870.3969,-43.1531,2.0);
- Zone[Quarry] = GangZoneCreate(478.515625,804.6875,773.4375,947.265625);
- UnderAttack[Quarry] = -1;
- Captured[Quarry] = -1;
- tCP[Quarry] = NONE;
- CP[TheBigSpreadRanch] = CreateDynamicCP(694.6575,1945.5857,5.5391,2.0);
- Zone[TheBigSpreadRanch] = GangZoneCreate(638.671875,1904.296875,759.765625,2013.671875);
- UnderAttack[TheBigSpreadRanch] = -1;
- Captured[TheBigSpreadRanch] = -1;
- tCP[TheBigSpreadRanch] = NONE;
- GZ_USARMY = GangZoneCreate(109.375,1789.0625,355.46875,2097.65625);
- GZ_SAS = GangZoneCreate(-964.84375,1957.03125,-871.09375,2089.84375);
- GZ_CHINA = GangZoneCreate(-1050.78125,2738.28125,-828.125,2789.0625);
- GZ_RUSSIA = GangZoneCreate(-347.65625,2574.21875,-160.15625,2730.46875);
- GZ_SYRIA = GangZoneCreate(253.90625,2437.5,460.9375,2585.9375);
- GZ_TALIBAN = GangZoneCreate(-886.71875,1523.4375,-730.46875,1636.71875);
- GZ_ISLAM = GangZoneCreate(-111.328125,662.109375,70.3125,767.578125);
- GZ_GERMANY = GangZoneCreate(-402.34375,1101.5625,-273.4375,1218.75);
- GZ_JAPAN = GangZoneCreate(1019.53125,1664.0625,1157.2265625,1807.6171875);
- GZ_KOREA = GangZoneCreate(-2304.6875,2281.25,-2187.5,2351.5625);
- obj = CreateObject(3279, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//tower
- Towercar = 470;
- Textdraw1= TextDrawCreate(555, 5,"Battlefield Desserts");
- Textdraw2= TextDrawCreate(140, 1,"battlefield-desserts.boards.net");
- TextDrawAlignment(Textdraw1,2);
- TextDrawFont(Textdraw1,2);
- TextDrawLetterSize(Textdraw1,0.3,1.5);
- TextDrawColor(Textdraw1,0xFFFFFFAA);
- TextDrawSetOutline(Textdraw1,1);
- TextDrawSetProportional(Textdraw1,1);
- TextDrawSetShadow(Textdraw1,1);
- Textdraw2= TextDrawCreate(570, 5,"");
- TextDrawAlignment(Textdraw2,2);
- TextDrawBackgroundColor(Textdraw2,0xFFFFFFAA);
- TextDrawFont(Textdraw2,3);
- TextDrawLetterSize(Textdraw2,0.3,1.5);
- TextDrawColor(Textdraw2,0x228B22FF);
- TextDrawSetOutline(Textdraw2,1);
- TextDrawSetProportional(Textdraw2,1);
- TextDrawSetShadow(Textdraw2,1);
- //BASE OBJECTS
- //DUEL BASE
- CreateObject(3115,-50.0000000,1860.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (6)
- CreateObject(3115,-50.0000000,1841.1999500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (7)
- CreateObject(3115,-50.0000000,1822.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (8)
- CreateObject(3115,-50.0000000,1803.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (9)
- CreateObject(3115,-29.0000000,1860.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (10)
- CreateObject(3115,-29.0000000,1841.1999500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (11)
- CreateObject(3115,-29.0000000,1822.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (12)
- CreateObject(3115,-29.0000000,1803.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (13)
- CreateObject(2774,-59.0000000,1796.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
- CreateObject(2774,-20.0000000,1796.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
- CreateObject(2774,-20.0000000,1868.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (3)
- CreateObject(2774,-59.0000000,1868.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
- CreateObject(985,-24.0000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (1)
- CreateObject(985,-31.8000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (2)
- CreateObject(985,-39.6000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (3)
- CreateObject(985,-47.4000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (4)
- CreateObject(985,-55.2000000,1850.5000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (5)
- CreateObject(985,-24.0000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (1)
- CreateObject(985,-31.8000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (2)
- CreateObject(985,-39.6000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (3)
- CreateObject(985,-47.4000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (4)
- CreateObject(985,-55.2000000,1850.5000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(gate_autor) (5)
- CreateObject(985,-24.0000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (1)
- CreateObject(985,-31.8000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (2)
- CreateObject(985,-39.6000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (3)
- CreateObject(985,-47.4000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (4)
- CreateObject(985,-55.2000000,1813.0000000,22.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (5)
- CreateObject(985,-24.0000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (1)
- CreateObject(985,-31.8000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (2)
- CreateObject(985,-39.6000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (3)
- CreateObject(985,-47.4000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (4)
- CreateObject(985,-55.2000000,1813.0000000,28.0000000,0.0000000,0.0000000,180.0000000); //object(gate_autor) (5)
- CreateObject(985,-59.1000000,1846.5999800,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (6)
- CreateObject(985,-59.1000000,1838.8000500,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (7)
- CreateObject(985,-59.1000000,1831.0000000,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (8)
- CreateObject(985,-59.1000000,1823.1999500,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (9)
- CreateObject(985,-59.1000000,1816.9000200,22.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (10)
- CreateObject(985,-59.1000000,1846.5999800,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (6)
- CreateObject(985,-59.1000000,1838.8000500,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (7)
- CreateObject(985,-59.1000000,1831.0000000,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (8)
- CreateObject(985,-59.1000000,1823.1999500,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (9)
- CreateObject(985,-59.1000000,1816.9000200,28.0000000,0.0000000,0.0000000,90.0000000); //object(gate_autor) (10)
- CreateObject(985,-20.1000000,1846.5999800,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (6)
- CreateObject(985,-20.1000000,1838.8000500,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (7)
- CreateObject(985,-20.1000000,1831.0000000,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (8)
- CreateObject(985,-20.1000000,1823.1999500,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (9)
- CreateObject(985,-20.1000000,1816.9000200,22.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (10)
- CreateObject(985,-20.1000000,1846.5999800,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (6)
- CreateObject(985,-20.1000000,1838.8000500,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (7)
- CreateObject(985,-20.1000000,1831.0000000,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (8)
- CreateObject(985,-20.1000000,1823.1999500,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (9)
- CreateObject(985,-20.1000000,1816.9000200,28.0000000,0.0000000,0.0000000,-90.0000000); //object(gate_autor) (10)
- CreateObject(3115,-50.0000000,1841.1999500,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (7)
- CreateObject(3115,-50.0000000,1822.4000200,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (8)
- CreateObject(3115,-29.0000000,1841.1999500,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (11)
- CreateObject(3115,-29.0000000,1822.4000200,34.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (12)
- CreateObject(13749,-32.0000000,1807.3000500,27.6000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (1)
- CreateObject(13749,-47.0000000,1856.4000200,27.6000000,0.0000000,0.0000000,144.0000000); //object(cunte_curvesteps1) (2)
- CreateObject(3884,-59.9000000,1831.8000500,33.8000000,0.0000000,0.0000000,90.0000000); //object(samsite_sfxrf) (1)
- CreateObject(973,-60.3000000,1845.1999500,35.2000000,0.0000000,0.0000000,90.0000000); //object(sub_roadbarrier) (1)
- CreateObject(973,-60.3000000,1818.4000200,35.2000000,0.0000000,0.0000000,90.0000000); //object(sub_roadbarrier) (2)
- CreateObject(973,-58.7000000,1836.1999500,35.2000000,0.0000000,0.0000000,110.0000000); //object(sub_roadbarrier) (3)
- CreateObject(973,-58.7000000,1827.4000200,35.2000000,0.0000000,0.0000000,70.0000000); //object(sub_roadbarrier) (4)
- CreateObject(973,-18.5000000,1818.4000200,35.1000000,0.0000000,0.0000000,270.0000000); //object(sub_roadbarrier) (5)
- CreateObject(973,-18.5000000,1845.1999500,35.1000000,0.0000000,0.0000000,270.0000000); //object(sub_roadbarrier) (6)
- CreateObject(973,-20.2000000,1836.1999500,35.2000000,0.0000000,0.0000000,250.0000000); //object(sub_roadbarrier) (7)
- CreateObject(973,-20.1000000,1827.3000500,35.1000000,0.0000000,0.0000000,290.0000000); //object(sub_roadbarrier) (8)
- CreateObject(3884,-19.5000000,1831.8000500,33.8000000,0.0000000,0.0000000,270.0000000); //object(samsite_sfxrf) (2)
- CreateObject(2978,-23.7000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (1)
- CreateObject(2921,-20.3000000,1814.0999800,31.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (1)
- CreateObject(2978,-34.4000000,1849.6999500,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (2)
- CreateObject(2978,-44.9000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (3)
- CreateObject(2978,-55.2000000,1849.5999800,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (4)
- CreateObject(2978,-23.8000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (5)
- CreateObject(2978,-34.5000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (6)
- CreateObject(2978,-44.8000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (7)
- CreateObject(2978,-55.3000000,1814.0000000,34.3000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (8)
- CreateObject(2985,-55.3000000,1813.9000200,34.4000000,0.0000000,0.0000000,220.0000000); //object(minigun_base) (1)
- CreateObject(2985,-44.7000000,1813.9000200,34.4000000,0.0000000,0.0000000,250.0000000); //object(minigun_base) (2)
- CreateObject(2985,-34.5000000,1813.8000500,34.4000000,0.0000000,0.0000000,312.0000000); //object(minigun_base) (3)
- CreateObject(2985,-23.9000000,1813.9000200,34.4000000,0.0000000,0.0000000,330.0000000); //object(minigun_base) (4)
- CreateObject(2985,-23.7000000,1849.8000500,34.4000000,0.0000000,0.0000000,44.0000000); //object(minigun_base) (5)
- CreateObject(2985,-34.3000000,1849.6999500,34.4000000,0.0000000,0.0000000,56.0000000); //object(minigun_base) (6)
- CreateObject(2985,-44.8000000,1849.6999500,34.4000000,0.0000000,0.0000000,112.0000000); //object(minigun_base) (7)
- CreateObject(2985,-55.2000000,1849.8000500,34.4000000,0.0000000,0.0000000,124.0000000); //object(minigun_base) (8)
- CreateObject(3633,-20.8000000,1841.5000000,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (1)
- CreateObject(3633,-20.0000000,1848.9000200,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (2)
- CreateObject(3633,-55.9000000,1838.1999500,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (3)
- CreateObject(3633,-52.7000000,1814.9000200,34.8000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (4)
- CreateObject(1218,-46.7000000,1814.0999800,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel1) (1)
- CreateObject(1218,-32.8000000,1815.3000500,34.8000000,0.0000000,90.0000000,0.0000000); //object(barrel1) (2)
- CreateObject(1222,-32.1000000,1813.8000500,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel3) (1)
- CreateObject(1217,-21.9000000,1828.9000200,34.7000000,0.0000000,0.0000000,0.0000000); //object(barrel2) (1)
- CreateObject(1218,-23.0000000,1828.1999500,34.8000000,0.0000000,0.0000000,0.0000000); //object(barrel1) (3)
- CreateObject(1217,-56.3000000,1827.0000000,34.7000000,0.0000000,0.0000000,0.0000000); //object(barrel2) (2)
- // USARMY BASE
- AddStaticVehicleEx(520,87.0000000,1820.0000000,29.0000000,90.0000000,007,001,120); //Hydra
- AddStaticVehicleEx(520,87.0000000,1838.8000500,29.0000000,90.0000000,007,001,120); //Hydra
- AddStaticVehicleEx(520,87.0000000,1857.5999800,29.0000000,90.0000000,007,001,120); //Hydra
- AddStaticVehicleEx(520,87.0000000,1876.3000500,29.0000000,90.0000000,007,001,120); //Hydra
- AddStaticVehicleEx(425,178.0000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
- AddStaticVehicleEx(425,159.3000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
- AddStaticVehicleEx(425,140.5000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
- AddStaticVehicleEx(425,121.8000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
- AddStaticVehicleEx(425,103.1000000,1951.0000000,30.0000000,0.0000000,007,001,120); //Hunter
- AddStaticVehicleEx(447,252.1000100,1789.0000000,28.0000000,180.0000000,007,001,120); //Seasparrow
- AddStaticVehicleEx(447,233.3999900,1789.0000000,28.0000000,180.0000000,007,001,120); //Seasparrow
- AddStaticVehicleEx(487,214.7000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Maverick
- AddStaticVehicleEx(487,196.0000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Maverick
- AddStaticVehicleEx(563,177.2000000,1789.0000000,28.0000000,180.0000000,007,001,120); //Raindance
- AddStaticVehicleEx(563,158.3999900,1789.0000000,28.0000000,180.0000000,007,001,120); //Raindance
- AddStaticVehicleEx(548,139.7000000,1789.0000000,30.0000000,180.0000000,007,001,120); //Cargobob
- AddStaticVehicleEx(431,285.0000000,1798.0000000,17.9000000,270.0000000,007,001,120); //Bus
- AddStaticVehicleEx(437,285.0000000,1793.0000000,17.9000000,270.0000000,007,001,120); //Coach
- AddStaticVehicleEx(514,285.0000000,1787.0000000,18.3000000,270.0000000,007,001,120); //Tanker
- AddStaticVehicleEx(432,370.0000000,1985.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(432,370.0000000,1975.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(432,370.0000000,1950.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(432,370.0000000,1940.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(432,370.0000000,1915.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(432,370.0000000,1905.0000000,17.7000000,90.0000000,007,001,120); //Rhino
- AddStaticVehicleEx(444,291.0000000,1812.0000000,18.0000000,270.0000000,007,001,120); //Monster
- AddStaticVehicleEx(444,291.0000000,1805.0000000,18.0000000,270.0000000,007,001,120); //Monster
- AddStaticVehicleEx(522,224.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
- AddStaticVehicleEx(522,220.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
- AddStaticVehicleEx(522,216.0000000,1920.0000000,17.3000000,180.0000000,007,001,120); //NRG-500
- AddStaticVehicleEx(468,212.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
- AddStaticVehicleEx(468,208.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
- AddStaticVehicleEx(468,204.0000000,1920.0000000,17.4000000,180.0000000,007,001,120); //Sanchez
- AddStaticVehicleEx(471,200.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
- AddStaticVehicleEx(471,196.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
- AddStaticVehicleEx(471,192.0000000,1920.0000000,17.2000000,180.0000000,007,001,120); //Quad
- AddStaticVehicleEx(451,115.0000000,1864.0000000,17.5000000,270.0000000,007,001,120); //Turismo
- AddStaticVehicleEx(415,115.0000000,1860.0000000,17.6000000,270.0000000,007,001,120); //Cheetah
- AddStaticVehicleEx(411,115.0000000,1856.0000000,17.5000000,270.0000000,007,001,120); //Infernus
- AddStaticVehicleEx(541,115.0000000,1852.0000000,17.4000000,270.0000000,007,001,120); //Bullet
- AddStaticVehicleEx(433,132.0000000,1834.0000000,18.2000000,90.0000000,007,001,120); //Barracks
- AddStaticVehicleEx(433,132.0000000,1840.0000000,18.2000000,90.0000000,007,001,120); //Barracks
- AddStaticVehicleEx(470,132.0000000,1846.0000000,17.8000000,90.0000000,007,001,120); //Patriot
- AddStaticVehicleEx(470,132.0000000,1851.0000000,17.8000000,90.0000000,007,001,120); //Patriot
- AddStaticVehicleEx(470,132.0000000,1856.0000000,17.8000000,90.0000000,007,001,120); //Patriot
- AddStaticVehicleEx(601,122.0000000,1818.0000000,17.6000000,0.0000000,007,001,120); //S.W.A.T. Van
- AddStaticVehicleEx(476,277.0000000,1949.0000000,20.0000000,318.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,277.0000000,1963.0000000,20.0000000,230.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,277.0000000,1982.5999800,20.0000000,318.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,277.0000000,2017.0000000,20.0000000,318.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,277.0000000,2031.0000000,20.0000000,230.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,277.0000000,1997.4000200,20.0000000,230.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,300.0000000,2049.0000000,20.0000000,212.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(476,312.7000100,2049.0000000,20.0000000,166.0000000,007,001,120); //Rustler
- AddStaticVehicleEx(548,121.0000000,1789.0000000,30.0000000,180.0000000,007,001,120); //Cargobob
- CreateObject(3268,306.5000000,2050.1001000,16.5000000,0.0000000,0.0000000,90.0000000); //object(mil_hangar1_) (1)
- CreateObject(3115,87.0000000,1876.3000500,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (1)
- CreateObject(3115,87.0000000,1857.5999800,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (2)
- CreateObject(3115,87.0000000,1838.8000500,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (3)
- CreateObject(3115,87.0000000,1820.0000000,24.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (4)
- CreateObject(3115,121.0000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (5)
- CreateObject(3115,139.7000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (6)
- CreateObject(3115,158.3999900,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (7)
- CreateObject(3115,177.2000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (8)
- CreateObject(3115,196.0000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (9)
- CreateObject(3115,214.7000000,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (10)
- CreateObject(3115,233.3999900,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (11)
- CreateObject(3115,252.1000100,1789.0000000,24.5000000,0.0000000,0.0000000,90.0000000); //object(carrier_lift1_sfse) (12)
- CreateObject(3115,103.1000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (13)
- CreateObject(3115,121.8000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (14)
- CreateObject(3115,140.5000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (15)
- CreateObject(3115,159.3000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (16)
- CreateObject(3115,178.0000000,1951.0000000,25.5000000,0.0000000,0.0000000,270.0000000); //object(carrier_lift1_sfse) (17)
- CreateObject(13749,128.0000000,1809.1992200,18.2000000,0.0000000,0.0000000,233.9980000); //object(cunte_curvesteps1) (1)
- CreateObject(13749,240.5000000,1809.1992200,18.2000000,0.0000000,0.0000000,233.9980000); //object(cunte_curvesteps1) (2)
- CreateObject(13749,184.5000000,1809.1992200,18.2000000,0.0000000,0.0000000,234.0000000); //object(cunte_curvesteps1) (3)
- CreateObject(13749,107.2998000,1831.3994100,18.2000000,0.0000000,0.0000000,141.9980000); //object(cunte_curvesteps1) (4)
- CreateObject(13749,107.3000000,1887.5000000,18.2000000,0.0000000,0.0000000,142.0000000); //object(cunte_curvesteps1) (5)
- CreateObject(13749,152.0000000,1930.5000000,19.2000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (6)
- CreateObject(2774,186.0000000,1960.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
- CreateObject(2774,186.0000000,1942.3000500,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
- CreateObject(2774,95.0000000,1942.3000500,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (3)
- CreateObject(2774,95.0000000,1960.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
- CreateObject(2774,78.0000000,1884.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (5)
- CreateObject(2774,95.7000000,1884.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (6)
- CreateObject(2774,95.7000000,1811.5000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (7)
- CreateObject(2774,79.0000000,1811.5000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (8)
- CreateObject(2774,113.0000000,1780.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (9)
- CreateObject(2774,113.0000000,1797.8000500,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (10)
- CreateObject(2774,260.0000000,1797.8000500,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (11)
- CreateObject(2774,260.0000000,1780.0000000,11.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (12)
- CreateObject(3268,214.0000000,1883.4000200,16.5000000,0.0000000,0.0000000,270.0000000); //object(mil_hangar1_) (2)
- CreateObject(3268,370.0000000,1945.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (5)
- CreateObject(3268,370.0000000,1910.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (6)
- CreateObject(13749,291.0000000,1865.0000000,18.0000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (7)
- CreateObject(13749,280.3999900,1888.0000000,18.0000000,0.0000000,0.0000000,230.0000000); //object(cunte_curvesteps1) (8)
- CreateObject(3113,269.7999900,1877.1999500,15.9000000,0.0000000,285.0000000,0.0000000); //object(carrier_door_sfse) (1)
- CreateObject(3884,226.0000000,1895.0000000,16.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (1)
- CreateObject(3884,202.0000000,1895.0000000,16.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (2)
- CreateObject(2985,190.3999900,1925.0000000,22.5000000,0.0000000,0.0000000,214.0000000); //object(minigun_base) (1)
- CreateObject(2985,223.3000000,1925.0000000,22.5000000,0.0000000,0.0000000,326.0000000); //object(minigun_base) (2)
- CreateObject(2985,206.8999900,1925.0000000,22.5000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (3)
- CreateObject(2921,199.0000000,1893.0000000,22.6000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (1)
- CreateObject(2921,138.2000000,1840.5999800,21.8000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (2)
- CreateObject(2921,360.0000000,1895.5999800,22.3000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (3)
- CreateObject(2921,360.0000000,1930.6999500,22.4000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (4)
- CreateObject(2921,360.0000000,1965.6999500,22.5000000,0.0000000,0.0000000,0.0000000); //object(kmb_cam) (5)
- CreateObject(2978,208.3000000,1874.3000500,12.1000000,0.0000000,0.0000000,0.0000000); //object(kmilitary_base) (1)
- CreateObject(3787,204.3000000,1872.6999500,12.7000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (1)
- CreateObject(3787,186.3999900,1933.9000200,17.3000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (2)
- CreateObject(3787,140.0000000,1830.5999800,17.2000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (3)
- CreateObject(3787,324.2999900,2055.8999000,17.2000000,0.0000000,0.0000000,0.0000000); //object(missile_02_sfxr) (4)
- CreateObject(3633,324.3999900,2058.1001000,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (1)
- CreateObject(3633,287.7999900,2003.4000200,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (2)
- CreateObject(3633,358.7000100,1899.6999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (3)
- CreateObject(3633,227.6000100,1922.1999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (4)
- CreateObject(3633,112.0000000,1902.6999500,18.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (5)
- CreateObject(3633,112.0000000,1834.1999500,17.1000000,0.0000000,0.0000000,0.0000000); //object(imoildrum4_las) (6)
- CreateObject(12861,170.5000000,1813.5999800,16.6000000,0.0000000,0.0000000,90.0000000); //object(sw_cont05) (1)
- CreateObject(12861,216.0000000,1952.0000000,16.0000000,0.0000000,0.0000000,0.0000000); //object(sw_cont05) (2)
- CreateObject(12861,204.0000000,2022.0000000,16.0000000,0.0000000,0.0000000,180.0000000); //object(sw_cont05) (3)
- CreateObject(17020,340.0000000,1850.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(cuntfrates02) (1)
- CreateObject(1337,149.3037100,1829.6494100,17.1480600,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (9)
- CreateObject(3630,265.3999900,1918.6999500,18.1000000,0.0000000,0.0000000,324.0000000); //object(crdboxes2_las) (1)
- CreateObject(3630,169.6000100,1932.1999500,18.9000000,0.0000000,0.0000000,0.0000000); //object(crdboxes2_las) (2)
- CreateObject(3630,288.2999900,1972.4000200,18.1000000,0.0000000,0.0000000,90.0000000); //object(crdboxes2_las) (3)
- CreateObject(3761,287.7999900,1907.0000000,18.6000000,0.0000000,0.0000000,0.0000000); //object(industshelves) (1)
- CreateObject(3796,225.3000000,1883.4000200,16.6000000,0.0000000,0.0000000,0.0000000); //object(acbox1_sfs) (1)
- CreateObject(10814,242.0000000,1966.0000000,20.7000000,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
- CreateObject(3255,239.8000000,1996.6999500,16.6000000,0.0000000,0.0000000,0.0000000); //object(ref_oiltank01) (1)
- CreateObject(3214,245.3999900,2012.5000000,25.6000000,0.0000000,0.0000000,0.0000000); //object(quarry_crusher) (1)
- CreateObject(3287,284.7999900,2051.3000500,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (1)
- CreateObject(3287,276.8999900,2051.1999500,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (2)
- CreateObject(3287,324.6000100,2049.3999000,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (3)
- CreateObject(3287,385.5000000,1983.4000200,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (4)
- CreateObject(3287,385.1000100,1951.4000200,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (5)
- CreateObject(3287,385.2000100,1940.0000000,21.4000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (6)
- CreateObject(3287,105.2000000,1932.6999500,22.2000000,0.0000000,0.0000000,0.0000000); //object(cxrf_oiltank) (7)
- CreateObject(3268,370.0000000,1980.0000000,16.5000000,0.0000000,0.0000000,0.0000000); //object(mil_hangar1_) (4)
- // SAS BASE
- AddStaticVehicleEx(520,-920.0000000,2100.0000000,58.0000000,0.0000000,016,001,120); //Hydra
- AddStaticVehicleEx(425,-899.0000000,2100.0000000,58.0000000,0.0000000,016,001,120); //Hunter
- AddStaticVehicleEx(447,-878.0000000,2100.0000000,57.2000000,0.0000000,016,001,120); //Seasparrow
- AddStaticVehicleEx(447,-857.0000000,2100.0000000,57.2000000,0.0000000,016,001,120); //Seasparrow
- AddStaticVehicleEx(487,-836.0000000,2100.0000000,57.4000000,0.0000000,016,001,120); //Maverick
- AddStaticVehicleEx(487,-815.0000000,2100.0000000,57.4000000,0.0000000,016,001,120); //Maverick
- AddStaticVehicleEx(493,-825.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Jetmax
- AddStaticVehicleEx(452,-835.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Speeder
- AddStaticVehicleEx(446,-845.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Squalo
- AddStaticVehicleEx(473,-855.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Dinghy
- AddStaticVehicleEx(473,-865.0000000,2100.0000000,43.0000000,0.0000000,016,001,120); //Dinghy
- AddStaticVehicleEx(432,-903.0000000,1985.0000000,61.0000000,315.0000000,016,001,120); //Rhino
- AddStaticVehicleEx(432,-908.0000000,1990.0000000,61.0000000,315.0000000,016,001,120); //Rhino
- AddStaticVehicleEx(433,-911.5999800,1995.5999800,61.5000000,311.0000000,016,001,120); //Barracks
- AddStaticVehicleEx(433,-916.0000000,2000.5999800,61.5000000,311.0000000,016,001,120); //Barracks
- AddStaticVehicleEx(470,-921.4000200,2004.5999800,61.0000000,311.0000000,016,001,120); //Patriot
- AddStaticVehicleEx(470,-923.5999800,2007.3000500,61.0000000,311.0000000,016,001,120); //Patriot
- AddStaticVehicleEx(470,-925.7999900,2010.0999800,61.0000000,311.0000000,016,001,120); //Patriot
- AddStaticVehicleEx(522,-929.0000000,2015.0000000,60.6000000,315.0000000,016,001,120); //NRG-500
- AddStaticVehicleEx(522,-930.0999800,2016.1999500,60.6000000,315.0000000,016,001,120); //NRG-500
- AddStaticVehicleEx(468,-933.2999900,2020.1999500,60.7000000,315.0000000,016,001,120); //Sanchez
- AddStaticVehicleEx(468,-934.4000200,2021.5000000,60.7000000,315.0000000,016,001,120); //Sanchez
- AddStaticVehicleEx(471,-937.2999900,2025.8000500,60.5000000,315.0000000,016,001,120); //Quad
- AddStaticVehicleEx(471,-938.5999800,2027.0000000,60.5000000,315.0000000,016,001,120); //Quad
- AddStaticVehicleEx(444,-927.5999800,2040.5000000,62.0000000,134.0000000,016,001,120); //Monster
- AddStaticVehicleEx(451,-922.9000200,2035.9000200,60.7000000,134.0000000,016,001,120); //Turismo
- AddStaticVehicleEx(415,-918.0999800,2030.9000200,60.8000000,134.0000000,016,001,120); //Cheetah
- AddStaticVehicleEx(411,-913.5999800,2025.5999800,60.7000000,134.0000000,016,001,120); //Infernus
- AddStaticVehicleEx(402,-909.2000100,2020.3000500,60.9000000,134.0000000,016,001,120); //Buffalo
- AddStaticVehicleEx(407,-905.4000200,2014.4000200,61.3000000,134.0000000,016,001,120); //Firetruck
- AddStaticVehicleEx(406,-898.5999800,2006.0000000,63.0000000,220.0000000,016,001,120); //Dumper
- CreateObject(3115,-920.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (18)
- CreateObject(3115,-899.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (19)
- CreateObject(3115,-878.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (21)
- CreateObject(3115,-857.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (22)
- CreateObject(3115,-836.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (23)
- CreateObject(3115,-815.0000000,2100.0000000,55.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (24)
- CreateObject(900,-928.0000000,2095.0000000,38.0000000,0.0000000,0.0000000,80.0000000); //object(searock04) (1)
- CreateObject(900,-930.0000000,2100.0000000,38.0000000,0.0000000,0.0000000,248.0000000); //object(searock04) (2)
- CreateObject(900,-802.7000100,2095.0000000,38.0000000,0.0000000,0.0000000,80.0000000); //object(searock04) (3)
- CreateObject(900,-800.5000000,2108.8999000,38.0000000,0.0000000,0.0000000,280.0000000); //object(searock04) (4)
- CreateObject(12990,-888.0000000,2017.0000000,56.0000000,0.0000000,0.0000000,0.0000000); //object(sw_jetty) (1)
- CreateObject(12990,-888.0000000,2047.0000000,56.0000000,0.0000000,0.0000000,180.0000000); //object(sw_jetty) (2)
- CreateObject(12990,-888.0000000,2077.0000000,56.0000000,0.0000000,0.0000000,0.0000000); //object(sw_jetty) (3)
- CreateObject(2774,-929.0000000,2092.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (13)
- CreateObject(2774,-929.0000000,2108.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (14)
- CreateObject(2774,-806.0000000,2108.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (15)
- CreateObject(2774,-806.0000000,2092.0000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (16)
- // CHINA BASE
- AddStaticVehicleEx(520,-1030.0000000,2780.0000000,61.7000000,185.0000000,126,001,120); //Hydra
- AddStaticVehicleEx(425,-1009.0000000,2781.8501000,61.7000000,185.0000000,126,001,120); //Hunter
- AddStaticVehicleEx(425,-988.0000000,2783.5000000,61.7000000,185.0000000,126,001,120); //Hunter
- AddStaticVehicleEx(447,-967.0000000,2785.5500500,60.9000000,185.0000000,126,001,120); //Seasparrow
- AddStaticVehicleEx(447,-946.0000000,2787.3999000,60.9000000,185.0000000,126,001,120); //Seasparrow
- AddStaticVehicleEx(487,-925.0000000,2789.2500000,61.1000000,185.0000000,126,001,120); //Maverick
- AddStaticVehicleEx(487,-904.0000000,2791.1001000,61.1000000,185.0000000,126,001,120); //Maverick
- AddStaticVehicleEx(432,-892.0000000,2756.0000000,46.1000000,185.0000000,126,001,120); //Rhino
- AddStaticVehicleEx(432,-900.0000000,2755.0000000,46.2000000,185.0000000,126,001,120); //Rhino
- AddStaticVehicleEx(433,-961.5999800,2750.1001000,46.8000000,185.0000000,126,001,120); //Barracks
- AddStaticVehicleEx(433,-954.7000100,2750.5000000,46.8000000,185.0000000,126,001,120); //Barracks
- AddStaticVehicleEx(433,-946.9000200,2750.8999000,46.8000000,185.0000000,126,001,120); //Barracks
- AddStaticVehicleEx(470,-970.7000100,2729.8000500,46.0000000,275.0000000,126,001,120); //Patriot
- AddStaticVehicleEx(470,-971.0999800,2734.0000000,46.0000000,275.0000000,126,001,120); //Patriot
- AddStaticVehicleEx(470,-971.2999900,2738.6001000,46.0000000,275.0000000,126,001,120); //Patriot
- AddStaticVehicleEx(451,-874.0000000,2789.1001000,46.8000000,185.0000000,126,001,120); //Turismo
- AddStaticVehicleEx(415,-869.4000200,2789.6999500,46.9000000,185.0000000,126,001,120); //Cheetah
- AddStaticVehicleEx(402,-864.5999800,2790.3000500,46.8000000,185.0000000,126,001,120); //Buffalo
- AddStaticVehicleEx(411,-860.0000000,2791.0000000,46.4000000,185.0000000,126,001,120); //Infernus
- AddStaticVehicleEx(541,-855.0999800,2791.1001000,46.1000000,185.0000000,126,001,120); //Bullet
- AddStaticVehicleEx(522,-850.7999900,2790.5000000,46.0000000,185.0000000,126,001,120); //NRG-500
- AddStaticVehicleEx(522,-848.7000100,2790.6999500,46.0000000,185.0000000,126,001,120); //NRG-500
- AddStaticVehicleEx(468,-846.5999800,2791.1001000,46.0000000,185.0000000,126,001,120); //Sanchez
- AddStaticVehicleEx(468,-845.0000000,2791.3000500,46.0000000,185.0000000,126,001,120); //Sanchez
- AddStaticVehicleEx(471,-842.4000200,2791.3999000,45.7000000,185.0000000,126,001,120); //Quad
- AddStaticVehicleEx(471,-840.4000200,2791.6001000,45.7000000,185.0000000,126,001,120); //Quad
- AddStaticVehicleEx(444,-832.5999800,2783.3999000,47.0000000,91.0000000,126,001,120); //Monster
- AddStaticVehicleEx(444,-832.5999800,2776.3999000,47.0000000,91.0000000,126,001,120); //Monster
- AddStaticVehicleEx(493,-927.0999800,2663.0000000,44.0000000,132.0000000,126,001,120); //Jetmax
- AddStaticVehicleEx(493,-919.0000000,2656.0000000,44.0000000,132.0000000,126,001,120); //Jetmax
- AddStaticVehicleEx(431,-931.2000100,2753.5000000,46.5000000,185.0000000,126,001,120); //Bus
- AddStaticVehicleEx(437,-925.4000200,2753.6001000,46.5000000,185.0000000,126,001,120); //Coach
- CreateObject(3115,-1030.0000000,2780.0000000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (25)
- CreateObject(3115,-1009.0000000,2781.8501000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (26)
- CreateObject(3115,-988.0000000,2783.6999500,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (27)
- CreateObject(3115,-967.0000000,2785.5500500,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (28)
- CreateObject(3115,-946.0000000,2787.3999000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (29)
- CreateObject(3115,-925.0000000,2789.2500000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (30)
- CreateObject(3115,-904.0000000,2791.1001000,59.5000000,0.0000000,0.0000000,5.0000000); //object(carrier_lift1_sfse) (31)
- CreateObject(2774,-894.0000000,2784.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (17)
- CreateObject(2774,-895.0000000,2800.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (18)
- CreateObject(2774,-1039.0000000,2771.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (19)
- CreateObject(2774,-1039.0000000,2787.0000000,46.5000000,0.0000000,0.0000000,5.0000000); //object(cj_airp_pillars) (20)
- CreateObject(13749,-887.4000200,2789.0000000,53.0000000,0.0000000,0.0000000,60.0000000); //object(cunte_curvesteps1) (10)
- // RUSSIA BASE
- AddStaticVehicleEx(520,-321.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hydra
- AddStaticVehicleEx(520,-300.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hydra
- AddStaticVehicleEx(425,-279.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hunter
- AddStaticVehicleEx(425,-258.0000000,2652.6999500,76.7000000,180.0000000,003,001,120); //Hunter
- AddStaticVehicleEx(447,-220.0000000,2652.6999500,75.9000000,180.0000000,003,001,120); //Seasparrow
- AddStaticVehicleEx(447,-199.0000000,2652.6999500,75.9000000,180.0000000,003,001,120); //Seasparrow
- AddStaticVehicleEx(487,-178.0000000,2652.6999500,76.1000000,180.0000000,003,001,120); //Maverick
- AddStaticVehicleEx(487,-157.0000000,2652.6999500,76.1000000,180.0000000,003,001,120); //Maverick
- AddStaticVehicleEx(432,-206.2000000,2655.0000000,62.7000000,180.0000000,003,001,120); //Rhino
- AddStaticVehicleEx(432,-213.8000000,2655.0000000,62.7000000,180.0000000,003,001,120); //Rhino
- AddStaticVehicleEx(433,-304.0000000,2688.0000000,63.2000000,90.0000000,003,001,120); //Barracks
- AddStaticVehicleEx(433,-304.0000000,2682.0000000,63.2000000,90.0000000,003,001,120); //Barracks
- AddStaticVehicleEx(433,-304.0000000,2675.0000000,63.2000000,90.0000000,003,001,120); //Barracks
- AddStaticVehicleEx(470,-160.0000000,2650.0000000,64.4000000,90.0000000,003,001,120); //Patriot
- AddStaticVehicleEx(470,-160.0000000,2655.0000000,64.3000000,90.0000000,003,001,120); //Patriot
- AddStaticVehicleEx(470,-160.0000000,2660.0000000,63.9000000,90.0000000,003,001,120); //Patriot
- AddStaticVehicleEx(431,-230.0000000,2734.0000000,62.9000000,0.0000000,003,001,120); //Bus
- AddStaticVehicleEx(437,-218.0000000,2734.0000000,62.9000000,0.0000000,003,001,120); //Coach
- AddStaticVehicleEx(406,-204.0000000,2734.0000000,65.0000000,0.0000000,003,001,120); //Dumper
- AddStaticVehicleEx(451,-201.3000000,2595.0000000,62.5000000,0.0000000,003,001,120); //Turismo
- AddStaticVehicleEx(429,-207.6000100,2595.0000000,62.5000000,0.0000000,003,001,120); //Banshee
- AddStaticVehicleEx(415,-213.5000000,2595.0000000,62.6000000,0.0000000,003,001,120); //Cheetah
- AddStaticVehicleEx(411,-219.7000000,2595.0000000,62.5000000,0.0000000,003,001,120); //Infernus
- AddStaticVehicleEx(402,-225.7000000,2595.0000000,62.6000000,0.0000000,003,001,120); //Buffalo
- AddStaticVehicleEx(444,-338.0000000,2674.0000000,65.0000000,90.0000000,003,001,120); //Monster
- AddStaticVehicleEx(444,-338.0000000,2666.0000000,65.0000000,90.0000000,003,001,120); //Monster
- AddStaticVehicleEx(522,-201.2000000,2608.0000000,62.4000000,180.0000000,003,001,120); //NRG-500
- AddStaticVehicleEx(522,-204.2000000,2608.0000000,62.4000000,180.0000000,003,001,120); //NRG-500
- AddStaticVehicleEx(468,-210.2000000,2608.0000000,62.5000000,180.0000000,003,001,120); //Sanchez
- AddStaticVehicleEx(468,-213.3000000,2608.0000000,62.5000000,180.0000000,003,001,120); //Sanchez
- AddStaticVehicleEx(471,-228.5000000,2608.0000000,62.3000000,180.0000000,003,001,120); //Quad
- AddStaticVehicleEx(471,-231.6000100,2608.0000000,62.3000000,180.0000000,003,001,120); //Quad
- AddStaticVehicleEx(510,-237.6000100,2608.0000000,62.4000000,180.0000000,003,001,120); //Mountain Bike
- AddStaticVehicleEx(510,-240.3999900,2608.0000000,62.4000000,180.0000000,003,001,120); //Mountain Bike
- CreateObject(3115,-321.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (32)
- CreateObject(13749,-334.1000100,2671.8000500,68.0000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (12)
- CreateObject(3115,-300.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (33)
- CreateObject(3115,-279.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (34)
- CreateObject(3115,-258.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (35)
- CreateObject(3115,-220.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (36)
- CreateObject(3115,-199.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (37)
- CreateObject(3115,-178.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (38)
- CreateObject(3115,-157.0000000,2652.6999500,74.5000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (39)
- CreateObject(13749,-169.7000000,2672.0000000,68.0000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (13)
- CreateObject(2774,-148.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (21)
- CreateObject(2774,-148.0000000,2660.5000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (22)
- CreateObject(2774,-229.0000000,2660.5000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (23)
- CreateObject(2774,-229.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (24)
- CreateObject(2774,-249.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (25)
- CreateObject(2774,-330.0000000,2645.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (26)
- CreateObject(2774,-330.0000000,2661.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (27)
- CreateObject(2774,-249.0000000,2660.0000000,61.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (28)
- CreateObject(3884,-197.8000000,2611.8000500,61.3000000,0.0000000,0.0000000,326.0000000); //object(samsite_sfxrf) (3)
- CreateObject(3884,-243.8999900,2611.8000500,61.3000000,0.0000000,0.0000000,30.0000000); //object(samsite_sfxrf) (4)
- CreateObject(2985,-215.5000000,2612.0000000,61.7000000,0.0000000,0.0000000,90.0000000); //object(minigun_base) (4)
- CreateObject(2985,-226.5000000,2612.0000000,61.7000000,0.0000000,0.0000000,90.0000000); //object(minigun_base) (5)
- // SYRIA BASE
- AddStaticVehicleEx(520,452.0000000,2434.0000000,30.7000000,90.0000000,030,001,120); //Hydra
- AddStaticVehicleEx(425,452.0000000,2452.8000500,30.6000000,90.0000000,030,001,120); //Hunter
- AddStaticVehicleEx(447,452.0000000,2471.6001000,29.9000000,90.0000000,030,001,120); //Seasparrow
- AddStaticVehicleEx(447,452.0000000,2490.3999000,29.9000000,90.0000000,030,001,120); //Seasparrow
- AddStaticVehicleEx(487,452.0000000,2509.1001000,30.0000000,90.0000000,030,001,120); //Maverick
- AddStaticVehicleEx(487,452.0000000,2527.8999000,30.0000000,90.0000000,030,001,120); //Maverick
- AddStaticVehicleEx(476,270.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(476,250.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(476,230.0000000,2476.0000000,17.7000000,30.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(476,270.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(476,250.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(476,230.0000000,2530.0000000,18.0000000,150.0000000,030,001,120); //Rustler
- AddStaticVehicleEx(433,425.0000000,2484.0000000,17.1000000,90.0000000,030,001,120); //Barracks
- AddStaticVehicleEx(433,425.0000000,2490.0000000,17.1000000,90.0000000,030,001,120); //Barracks
- AddStaticVehicleEx(470,425.0000000,2496.0000000,16.6000000,90.0000000,030,001,120); //Patriot
- AddStaticVehicleEx(470,425.0000000,2501.0000000,16.6000000,90.0000000,030,001,120); //Patriot
- AddStaticVehicleEx(470,425.0000000,2506.0000000,16.6000000,90.0000000,030,001,120); //Patriot
- AddStaticVehicleEx(432,390.0000000,2535.0000000,16.6000000,180.0000000,030,001,120); //Rhino
- AddStaticVehicleEx(432,382.0000000,2535.0000000,16.6000000,180.0000000,030,001,120); //Rhino
- AddStaticVehicleEx(444,380.0000000,2481.0000000,17.0000000,0.0000000,030,001,120); //Monster
- AddStaticVehicleEx(444,386.0000000,2481.0000000,17.0000000,0.0000000,030,001,120); //Monster
- AddStaticVehicleEx(451,340.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Turismo
- AddStaticVehicleEx(429,344.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Banshee
- AddStaticVehicleEx(415,348.0000000,2544.0000000,16.6000000,180.0000000,030,001,120); //Cheetah
- AddStaticVehicleEx(411,352.0000000,2544.0000000,16.5000000,180.0000000,030,001,120); //Infernus
- AddStaticVehicleEx(402,356.0000000,2544.0000000,16.6000000,180.0000000,030,001,120); //Buffalo
- AddStaticVehicleEx(522,361.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //NRG-500
- AddStaticVehicleEx(522,363.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //NRG-500
- AddStaticVehicleEx(468,366.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //Sanchez
- AddStaticVehicleEx(468,368.0000000,2544.0000000,16.3000000,180.0000000,030,001,120); //Sanchez
- AddStaticVehicleEx(471,371.0000000,2544.0000000,16.1000000,180.0000000,030,001,120); //Quad
- AddStaticVehicleEx(471,374.0000000,2544.0000000,16.1000000,180.0000000,030,001,120); //Quad
- AddStaticVehicleEx(431,372.0000000,2471.0000000,16.7000000,0.0000000,030,001,120); //Bus
- AddStaticVehicleEx(437,366.0000000,2471.0000000,16.7000000,0.0000000,030,001,120); //Coach
- AddStaticVehicleEx(513,290.0000000,2540.0000000,17.6000000,180.0000000,030,001,120); //Stunt
- AddStaticVehicleEx(593,325.0000000,2540.0000000,17.4000000,180.0000000,030,001,120); //Dodo
- CreateObject(3115,452.0000000,2434.0000000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (40)
- CreateObject(13749,431.6000100,2516.0000000,22.0000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (14)
- CreateObject(3115,452.0000000,2452.8000500,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (41)
- CreateObject(3115,452.0000000,2471.6001000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (42)
- CreateObject(3115,452.0000000,2490.3999000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (43)
- CreateObject(3115,452.0000000,2509.1001000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (44)
- CreateObject(3115,452.0000000,2527.8999000,28.4500000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (45)
- CreateObject(2774,461.0000000,2426.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (29)
- CreateObject(2774,443.0000000,2426.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (30)
- CreateObject(2774,443.0000000,2536.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (31)
- CreateObject(2774,461.0000000,2536.0000000,15.5000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (32)
- CreateObject(3884,336.0000000,2530.0000000,15.2000000,0.0000000,0.0000000,180.0000000); //object(samsite_sfxrf) (5)
- CreateObject(3884,280.0000000,2530.0000000,15.2000000,0.0000000,0.0000000,180.0000000); //object(samsite_sfxrf) (6)
- CreateObject(2985,301.5000000,2530.0000000,15.8000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (6)
- CreateObject(2985,314.0000000,2530.0000000,15.8000000,0.0000000,0.0000000,270.0000000); //object(minigun_base) (7)
- // TALIBAN BASE
- AddStaticVehicleEx(520,-720.0000000,1629.0000000,42.2000000,0.0000000,001,001,120); //Hydra
- AddStaticVehicleEx(425,-741.0000000,1629.0000000,42.2000000,359.9980000,001,001,120); //Hunter
- AddStaticVehicleEx(447,-762.0000000,1629.0000000,41.4000000,0.0000000,001,001,120); //Seasparrow
- AddStaticVehicleEx(447,-783.0000000,1629.0000000,41.4000000,0.0000000,001,001,120); //Seasparrow
- AddStaticVehicleEx(487,-804.0000000,1629.0000000,41.6000000,0.0000000,001,001,120); //Maverick
- AddStaticVehicleEx(487,-825.0000000,1629.0000000,41.6000000,0.0000000,001,001,120); //Maverick
- AddStaticVehicleEx(433,-740.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
- AddStaticVehicleEx(433,-746.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
- AddStaticVehicleEx(433,-752.0000000,1640.0000000,27.8000000,180.0000000,001,001,120); //Barracks
- AddStaticVehicleEx(470,-758.0000000,1640.0000000,27.4000000,180.0000000,001,001,120); //Patriot
- AddStaticVehicleEx(470,-763.0000000,1640.0000000,27.5000000,180.0000000,001,001,120); //Patriot
- AddStaticVehicleEx(470,-768.0000000,1640.0000000,27.5000000,180.0000000,001,001,120); //Patriot
- AddStaticVehicleEx(444,-780.0000000,1568.0000000,28.0000000,0.0000000,001,001,120); //Monster
- AddStaticVehicleEx(444,-774.0000000,1568.0000000,28.0000000,0.0000000,001,001,120); //Monster
- AddStaticVehicleEx(451,-866.0000000,1544.9000200,22.8000000,270.0000000,001,001,120); //Turismo
- AddStaticVehicleEx(429,-866.0000000,1551.0000000,23.3000000,270.0000000,001,001,120); //Banshee
- AddStaticVehicleEx(415,-866.0000000,1557.3000500,23.9000000,270.0000000,001,001,120); //Cheetah
- AddStaticVehicleEx(411,-866.0000000,1563.4000200,24.3000000,270.0000000,001,001,120); //Infernus
- AddStaticVehicleEx(402,-866.0000000,1569.4000200,24.9000000,270.0000000,001,001,120); //Buffalo
- AddStaticVehicleEx(522,-816.0000000,1578.0000000,26.8000000,270.0000000,001,001,120); //NRG-500
- AddStaticVehicleEx(522,-816.0000000,1580.0000000,26.8000000,270.0000000,001,001,120); //NRG-500
- AddStaticVehicleEx(468,-816.0000000,1584.0000000,26.9000000,270.0000000,001,001,120); //Sanchez
- AddStaticVehicleEx(468,-816.0000000,1586.0000000,26.9000000,270.0000000,001,001,120); //Sanchez
- AddStaticVehicleEx(471,-816.0000000,1590.0000000,26.7000000,270.0000000,001,001,120); //Quad
- AddStaticVehicleEx(471,-816.0000000,1592.0000000,26.7000000,270.0000000,001,001,120); //Quad
- AddStaticVehicleEx(431,-882.0000000,1520.0000000,26.2000000,90.0000000,001,001,120); //Bus
- AddStaticVehicleEx(432,-780.0000000,1548.0000000,27.2000000,180.0000000,001,001,120); //Rhino
- AddStaticVehicleEx(432,-772.0000000,1548.0000000,27.2000000,180.0000000,001,001,120); //Rhino
- CreateObject(3115,-825.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (46)
- CreateObject(3115,-804.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (47)
- CreateObject(3115,-783.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (48)
- CreateObject(3115,-762.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (49)
- CreateObject(3115,-741.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (50)
- CreateObject(3115,-720.0000000,1629.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (51)
- CreateObject(13749,-770.0000000,1609.8000500,33.5000000,0.0000000,0.0000000,54.0000000); //object(cunte_curvesteps1) (17)
- CreateObject(2774,-834.0000000,1637.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (33)
- CreateObject(2774,-833.0000000,1621.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (34)
- CreateObject(2774,-711.0000000,1621.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (35)
- CreateObject(2774,-711.0000000,1637.0000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (36)
- // ISLAM BASE
- AddStaticVehicleEx(433,-80.0000000,710.0000000,24.7000000,0.0000000,033,001,120); //Barracks
- AddStaticVehicleEx(433,-74.0000000,710.0000000,25.1000000,0.0000000,033,001,120); //Barracks
- AddStaticVehicleEx(433,-68.0000000,710.0000000,24.8000000,0.0000000,033,001,120); //Barracks
- AddStaticVehicleEx(470,-60.0000000,710.0000000,24.0000000,0.0000000,033,001,120); //Patriot
- AddStaticVehicleEx(470,-54.0000000,710.0000000,23.5000000,0.0000000,033,001,120); //Patriot
- AddStaticVehicleEx(470,-48.0000000,710.0000000,23.1000000,0.0000000,033,001,120); //Patriot
- AddStaticVehicleEx(451,-75.0000000,745.0000000,22.9000000,180.0000000,033,001,120); //Turismo
- AddStaticVehicleEx(429,-70.0000000,745.0000000,23.3000000,180.0000000,033,001,120); //Banshee
- AddStaticVehicleEx(415,-65.0000000,745.0000000,24.1000000,180.0000000,033,001,120); //Cheetah
- AddStaticVehicleEx(411,-60.0000000,745.0000000,23.8000000,180.0000000,033,001,120); //Infernus
- AddStaticVehicleEx(402,-55.0000000,745.0000000,23.7000000,180.0000000,033,001,120); //Buffalo
- AddStaticVehicleEx(522,-45.0000000,745.0000000,23.6000000,180.0000000,033,001,120); //NRG-500
- AddStaticVehicleEx(522,-43.0000000,745.0000000,23.8000000,180.0000000,033,001,120); //NRG-500
- AddStaticVehicleEx(468,-38.0000000,745.0000000,23.7000000,180.0000000,033,001,120); //Sanchez
- AddStaticVehicleEx(468,-36.0000000,745.0000000,23.5000000,180.0000000,033,001,120); //Sanchez
- AddStaticVehicleEx(471,-32.0000000,745.0000000,23.3000000,180.0000000,033,001,120); //Quad
- AddStaticVehicleEx(471,-30.0000000,745.0000000,23.4000000,180.0000000,033,001,120); //Quad
- AddStaticVehicleEx(432,-40.0000000,710.0000000,22.6000000,0.0000000,033,001,120); //Rhino
- AddStaticVehicleEx(432,-32.0000000,710.0000000,22.0000000,0.0000000,033,001,120); //Rhino
- AddStaticVehicleEx(444,-25.0000000,710.0000000,23.0000000,0.0000000,033,001,120); //Monster
- AddStaticVehicleEx(444,-20.0000000,710.0000000,23.0000000,0.0000000,033,001,120); //Monster
- AddStaticVehicleEx(431,-88.0000000,710.0000000,24.4000000,0.0000000,033,001,120); //Bus
- AddStaticVehicleEx(520,35.0000000,760.0000000,37.2000000,0.0000000,033,001,120); //Hydra
- AddStaticVehicleEx(425,14.0000000,760.0000000,37.2000000,0.0000000,033,001,120); //Hunter
- AddStaticVehicleEx(447,-7.0000000,760.0000000,36.4000000,0.0000000,033,001,120); //Seasparrow
- AddStaticVehicleEx(447,-27.0000000,760.0000000,36.4000000,0.0000000,033,001,120); //Seasparrow
- AddStaticVehicleEx(487,-49.0000000,760.0000000,36.6000000,0.0000000,033,001,120); //Maverick
- AddStaticVehicleEx(487,-70.0000000,760.0000000,36.6000000,359.9960000,033,001,120); //Maverick
- CreateObject(3115,-70.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (52)
- CreateObject(3115,-49.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (53)
- CreateObject(3115,-28.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (54)
- CreateObject(3115,-7.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (55)
- CreateObject(3115,14.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (56)
- CreateObject(3115,35.0000000,760.0000000,35.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (57)
- CreateObject(13749,-15.0000000,741.0000000,28.5000000,0.0000000,0.0000000,52.0000000); //object(cunte_curvesteps1) (19)
- CreateObject(2774,-79.0000000,768.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (37)
- CreateObject(2774,-79.0000000,752.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (38)
- CreateObject(2774,44.0000000,752.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (39)
- CreateObject(2774,44.0000000,768.0000000,22.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (40)
- CreateObject(3884,-96.0000000,708.0000000,22.2000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (7)
- CreateObject(3884,-15.0000000,708.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (8)
- // GERMANY BASE
- AddStaticVehicleEx(520,-360.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Hydra
- AddStaticVehicleEx(425,-339.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Hunter
- AddStaticVehicleEx(447,-318.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Seasparrow
- AddStaticVehicleEx(447,-297.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Seasparrow
- AddStaticVehicleEx(487,-276.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Maverick
- AddStaticVehicleEx(487,-255.0000000,1215.0000000,34.0000000,0.0000000,219,001,120); //Maverick
- AddStaticVehicleEx(432,-269.0000000,1215.0000000,19.8000000,180.0000000,219,001,120); //Rhino
- AddStaticVehicleEx(432,-276.0000000,1215.0000000,19.8000000,180.0000000,219,001,120); //Rhino
- AddStaticVehicleEx(433,-286.0000000,1215.0000000,20.3000000,180.0000000,219,001,120); //Barracks
- AddStaticVehicleEx(433,-291.0000000,1215.0000000,20.3000000,180.0000000,219,001,120); //Barracks
- AddStaticVehicleEx(470,-296.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
- AddStaticVehicleEx(470,-300.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
- AddStaticVehicleEx(470,-304.0000000,1215.0000000,19.9000000,180.0000000,219,001,120); //Patriot
- AddStaticVehicleEx(451,-342.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Turismo
- AddStaticVehicleEx(429,-338.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Banshee
- AddStaticVehicleEx(415,-334.0000000,1187.0000000,19.6000000,0.0000000,219,001,120); //Cheetah
- AddStaticVehicleEx(411,-330.0000000,1187.0000000,19.5000000,0.0000000,219,001,120); //Infernus
- AddStaticVehicleEx(402,-326.0000000,1187.0000000,19.7000000,0.0000000,219,001,120); //Buffalo
- AddStaticVehicleEx(522,-288.0000000,1186.0000000,19.4000000,0.0000000,219,001,120); //NRG-500
- AddStaticVehicleEx(522,-290.0000000,1186.0000000,19.4000000,0.0000000,219,001,120); //NRG-500
- AddStaticVehicleEx(468,-292.0000000,1186.0000000,19.5000000,0.0000000,219,001,120); //Sanchez
- AddStaticVehicleEx(468,-294.0000000,1186.0999800,19.5000000,0.0000000,219,001,120); //Sanchez
- AddStaticVehicleEx(471,-296.0000000,1186.0000000,19.3000000,0.0000000,219,001,120); //Quad
- AddStaticVehicleEx(471,-298.0000000,1186.0000000,19.3000000,0.0000000,219,001,120); //Quad
- AddStaticVehicleEx(444,-348.0000000,1178.0000000,21.0000000,90.0000000,219,001,120); //Monster
- AddStaticVehicleEx(444,-348.0000000,1172.0000000,21.0000000,90.0000000,219,001,120); //Monster
- AddStaticVehicleEx(431,-339.5000000,1170.0000000,20.0000000,180.0000000,219,001,120); //Bus
- AddStaticVehicleEx(437,-297.2999900,1162.5999800,20.0000000,270.0000000,219,001,120); //Coach
- AddStaticVehicleEx(406,-314.7000100,1175.5000000,22.0000000,0.0000000,219,001,120); //Dumper
- CreateObject(3115,-360.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (20)
- CreateObject(3115,-339.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (58)
- CreateObject(3115,-318.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (59)
- CreateObject(3115,-297.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (60)
- CreateObject(3115,-276.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (61)
- CreateObject(3115,-255.0000000,1215.0000000,30.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (62)
- CreateObject(2774,-369.0000000,1207.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (41)
- CreateObject(2774,-369.0000000,1223.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (42)
- CreateObject(2774,-246.0000000,1207.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (43)
- CreateObject(2774,-246.0000000,1223.0000000,17.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (44)
- CreateObject(13749,-341.8999900,1199.9000200,23.7000000,0.0000000,0.0000000,324.0000000); //object(cunte_curvesteps1) (11)
- // JAPAN BASE
- AddStaticVehicleEx(520,1035.0000000,1722.0000000,24.0000000,90.0000000,242,001,120); //Hydra
- AddStaticVehicleEx(425,1035.0000000,1740.8000500,24.0000000,90.0000000,242,001,120); //Hunter
- AddStaticVehicleEx(447,1035.0000000,1759.5999800,24.0000000,90.0000000,242,001,120); //Seasparrow
- AddStaticVehicleEx(487,1035.0000000,1778.4000200,24.0000000,90.0000000,242,001,120); //Maverick
- AddStaticVehicleEx(432,1077.3000500,1729.0000000,10.9000000,0.0000000,242,001,120); //Rhino
- AddStaticVehicleEx(432,1058.0999800,1729.0000000,10.9000000,0.0000000,242,001,120); //Rhino
- AddStaticVehicleEx(433,1030.0000000,1732.0000000,11.4000000,270.0000000,242,001,120); //Barracks
- AddStaticVehicleEx(433,1030.0000000,1738.0000000,11.4000000,270.0000000,242,001,120); //Barracks
- AddStaticVehicleEx(470,1030.0000000,1744.0000000,10.9000000,270.0000000,242,001,120); //Patriot
- AddStaticVehicleEx(470,1030.0000000,1748.0000000,10.9000000,270.0000000,242,001,120); //Patriot
- AddStaticVehicleEx(470,1030.0000000,1752.0000000,10.9000000,270.0000000,242,001,120); //Patriot
- AddStaticVehicleEx(451,1112.0000000,1794.0000000,10.6000000,90.0000000,242,001,120); //Turismo
- AddStaticVehicleEx(429,1112.0000000,1790.0000000,10.6000000,90.0000000,242,001,120); //Banshee
- AddStaticVehicleEx(415,1112.0000000,1786.0000000,10.7000000,90.0000000,242,001,120); //Cheetah
- AddStaticVehicleEx(411,1112.0000000,1782.0000000,10.6000000,90.0000000,242,001,120); //Infernus
- AddStaticVehicleEx(402,1112.0000000,1778.0000000,10.8000000,90.0000000,242,001,120); //Buffalo
- AddStaticVehicleEx(522,1112.0000000,1762.0000000,10.5000000,90.0000000,242,001,120); //NRG-500
- AddStaticVehicleEx(522,1112.0000000,1760.0000000,10.5000000,90.0000000,242,001,120); //NRG-500
- AddStaticVehicleEx(468,1112.0000000,1754.0000000,10.6000000,90.0000000,242,001,120); //Sanchez
- AddStaticVehicleEx(468,1112.0000000,1752.0000000,10.6000000,90.0000000,242,001,120); //Sanchez
- AddStaticVehicleEx(471,1112.0000000,1746.0000000,10.4000000,90.0000000,242,001,120); //Quad
- AddStaticVehicleEx(471,1112.0000000,1744.0000000,10.4000000,90.0000000,242,001,120); //Quad
- AddStaticVehicleEx(406,1030.0000000,1793.0000000,14.0000000,270.0000000,242,001,120); //Dumper
- CreateObject(3115,1035.0000000,1722.0000000,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (63)
- CreateObject(3115,1035.0000000,1740.8000500,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (64)
- CreateObject(3115,1035.0000000,1759.5999800,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (65)
- CreateObject(3115,1035.0000000,1778.4000200,20.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (66)
- CreateObject(13749,1051.4000200,1774.5000000,13.7000000,0.0000000,0.0000000,54.0000000); //object(cunte_curvesteps1) (15)
- CreateObject(3884,1075.0000000,1802.0000000,9.3000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (9)
- CreateObject(3884,1040.0000000,1802.0000000,9.3000000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (10)
- CreateObject(2774,1044.0000000,1714.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (45)
- CreateObject(2774,1044.0000000,1786.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (46)
- CreateObject(2774,1026.0000000,1786.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (47)
- CreateObject(2774,1026.0000000,1714.0000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (48)
- // KOREA BASE
- AddStaticVehicleEx(520,-2195.0000000,2346.3999000,19.0000000,270.0000000,194,001,120); //Hydra
- AddStaticVehicleEx(425,-2195.0000000,2327.6001000,19.0000000,270.0000000,194,001,120); //Hunter
- AddStaticVehicleEx(447,-2195.0000000,2308.8000500,19.0000000,270.0000000,194,001,120); //Seasparrow
- AddStaticVehicleEx(487,-2195.0000000,2290.0000000,19.0000000,270.0000000,194,001,120); //Maverick
- AddStaticVehicleEx(432,-2262.1999500,2288.3999000,4.9000000,0.0000000,194,001,120); //Rhino
- AddStaticVehicleEx(433,-2270.0000000,2310.0000000,5.4000000,270.0000000,194,001,120); //Barracks
- AddStaticVehicleEx(470,-2270.0000000,2315.0000000,4.9000000,270.0000000,194,001,120); //Patriot
- AddStaticVehicleEx(451,-2253.0000000,2335.8999000,4.6000000,90.0000000,194,001,120); //Turismo
- AddStaticVehicleEx(429,-2253.0000000,2330.0000000,4.6000000,90.0000000,194,001,120); //Banshee
- AddStaticVehicleEx(522,-2253.0000000,2302.8000500,4.5000000,90.0000000,194,001,120); //NRG-500
- AddStaticVehicleEx(522,-2253.0000000,2300.1001000,4.5000000,90.0000000,194,001,120); //NRG-500
- AddStaticVehicleEx(493,-2183.6001000,2371.1999500,0.0000000,250.0000000,194,001,120); //Jetmax
- AddStaticVehicleEx(493,-2175.3000500,2279.3999000,0.0000000,304.0000000,194,001,120); //Jetmax
- CreateObject(3115,-2195.0000000,2346.3999000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (67)
- CreateObject(3115,-2195.0000000,2327.6001000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (68)
- CreateObject(3115,-2195.0000000,2308.8000500,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (69)
- CreateObject(3115,-2195.0000000,2290.0000000,15.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_lift1_sfse) (70)
- CreateObject(13749,-2211.0000000,2294.0000000,8.6000000,0.0000000,0.0000000,232.0000000); //object(cunte_curvesteps1) (16)
- CreateObject(2774,-2204.0000000,2282.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (49)
- CreateObject(2774,-2186.0000000,2282.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (50)
- CreateObject(2774,-2186.0000000,2354.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (51)
- CreateObject(2774,-2204.0000000,2354.0000000,2.0000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (52)
- CreateObject(900,-2195.3000500,2353.6001000,0.0000000,0.0000000,0.0000000,0.0000000); //object(searock04) (5)
- CreateObject(900,-2194.3999000,2285.1001000,0.0000000,0.0000000,0.0000000,0.0000000); //object(searock04) (6)
- // OTHER OBJECTS & VEHICLES
- //SPAWN LCCATIONS
- // USARMY SPAWN
- AddPlayerClass(287,205,1863,13,331.2454,29,1000,31,1000,24,1000); // MP5 : M4 : Desert Eagle
- // SAS SPAWN
- AddPlayerClass(179,-936,2031,60,331.2454,31,1000,30,1000,23,1000); // Micro SMG : AK-47 : Silenced 9mm
- // CHINA SPAWN
- AddPlayerClass(204,-836,2791,46,164.1535,30,1000,27,1000,22,1000); // Tec 9 : Combat Shotgun : 9mm
- // RUSSIA SPAWN
- AddPlayerClass(285,-239,2599,62,331.2454,29,1000,26,1000,24,1000); // MP5 : Sawnoff Shotgun : Desert Eagle
- // SYRIA SPAWN
- AddPlayerClass(206,425,2530,16,126.8273,28,1000,25,1000,23,1000); // Micro SMG : Shotgun : Silenced 9mm
- // TALIBAN SPAWN
- AddPlayerClass(28,-733,1626,27,97.4572,30,1000,31,1000,22,1000); // Tec 9 : M4 : 9mm
- // ISLAM SPAWN
- AddPlayerClass(220,-98,714,24,331.2454,29,1000,30,1000,24,1000); // MP5 : AK-47 : Desert Eagle
- // GERMANY SPAWN
- AddPlayerClass(247,-363.5030,1186.0547,19.7422,273.5367,30,1000,27,1000,23,1000); // Micro SMG : Combat Shotgun : Silenced 9mm
- // JAPAN SPAWN
- AddPlayerClass(123,1103.1702,1727.1887,10.8203,55.7022,30,1000,26,1000,22,1000); // Tec 9 : Sawnoff Shotgun : 9mm
- // KOREA SPAWN
- AddPlayerClass(112,-2231.4648,2327.6516,7.5469,118.2129,29,1000,25,1000,24,1000); // MP5 : Shotgun : Desert Eagle
- // objects
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(XST_Info[playerid][Banned] == 1 )
- {
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[BAN] Your nick is banned.");
- Kick(playerid);
- }
- if(fexist(GetPlayerFile(playerid) ) )
- {
- INI_ParseFile(GetPlayerFile(playerid), "loadplayerdata", .bExtra = true, .extra = playerid);
- ShowLoginDialog(playerid);
- }
- else
- {
- XST_Info[playerid][Admin] = -1;
- XST_Info[playerid][Vip] = 0;
- XST_Info[playerid][Kills] = 0;
- XST_Info[playerid][Score] = 0;
- XST_Info[playerid][Deaths] = 0;
- XST_Info[playerid][Hours] = 0;
- XST_Info[playerid][Minute] = 0;
- XST_Info[playerid][Second] = 0;
- XST_Info[playerid][Jailed] = 0;
- XST_Info[playerid][Muted] = 0;
- XST_Info[playerid][Warnings] = 0;
- XST_Info[playerid][Banned] = 0;
- XST_Info[playerid][BanTime] = 0;
- #if SAVE_SKIN == true
- XST_Info[playerid][Skin] = 0;
- #endif
- XST_Info[playerid][Duty] = 0;
- XST_Info[playerid][Godmode] = 0;
- XST_Info[playerid][Spectator] = -1;
- ShowRegisterDialog(playerid);
- }
- SetPlayerMapIcon(playerid, 0, -37.4375,2346.6733,24.1406, 19, MAPICON_GLOBAL); // SnakeFarm
- SetPlayerMapIcon(playerid, 1, -551.1266,2593.3501,53.9348, 19, MAPICON_GLOBAL); // CiaHeadquaters
- SetPlayerMapIcon(playerid, 2, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // PetrolStation
- SetPlayerMapIcon(playerid, 3, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // BaitShop
- SetPlayerMapIcon(playerid, 4, -37.4375,2346.6733,24.1406, 19, MAPICON_GLOBAL); // ClukinBell
- SetPlayerMapIcon(playerid, 5, -551.1266,2593.3501,53.9348, 19, MAPICON_GLOBAL); // Ranch
- SetPlayerMapIcon(playerid, 6, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // RadarBase
- SetPlayerMapIcon(playerid, 7, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // OilDepot
- SetPlayerMapIcon(playerid, 8, -1318.2217,2694.1321,50.0625, 19, MAPICON_GLOBAL); // Quarry
- SetPlayerMapIcon(playerid, 9, -1350.1863,2057.0811,52.6337, 19, MAPICON_GLOBAL); // TheBigSpreadRanch
- InCP[playerid][SnakeFarm] = 0;
- iCP[playerid] = -1;
- if(tCP[SnakeFarm] == NONE) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], NONE_COLOR);
- else if(tCP[SnakeFarm] == USARMY) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], USARMY_COLOR);
- else if(tCP[SnakeFarm] == SAS) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], SAS_COLOR);
- else if(tCP[SnakeFarm] == CHINA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], CHINA_COLOR);
- else if(tCP[SnakeFarm] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], RUSSIA_COLOR);
- else if(tCP[SnakeFarm] == SYRIA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], SYRIA_COLOR);
- else if(tCP[SnakeFarm] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], TALIBAN_COLOR);
- else if(tCP[SnakeFarm] == ISLAM) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], ISLAM_COLOR);
- else if(tCP[SnakeFarm] == GERMANY) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], GERMANY_COLOR);
- else if(tCP[SnakeFarm] == JAPAN) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], JAPAN_COLOR);
- else if(tCP[SnakeFarm] == KOREA) GangZoneShowForPlayer(playerid, Zone[SnakeFarm], KOREA_COLOR);
- InCP[playerid][CiaHeadquaters] = 0;
- iCP[playerid] = -1;
- if(tCP[CiaHeadquaters] == NONE) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], NONE_COLOR);
- else if(tCP[CiaHeadquaters] == USARMY) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], USARMY_COLOR);
- else if(tCP[CiaHeadquaters] == SAS) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], SAS_COLOR);
- else if(tCP[CiaHeadquaters] == CHINA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], CHINA_COLOR);
- else if(tCP[CiaHeadquaters] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], RUSSIA_COLOR);
- else if(tCP[CiaHeadquaters] == SYRIA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], SYRIA_COLOR);
- else if(tCP[CiaHeadquaters] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], TALIBAN_COLOR);
- else if(tCP[CiaHeadquaters] == ISLAM) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], ISLAM_COLOR);
- else if(tCP[CiaHeadquaters] == GERMANY) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], GERMANY_COLOR);
- else if(tCP[CiaHeadquaters] == JAPAN) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], JAPAN_COLOR);
- else if(tCP[CiaHeadquaters] == KOREA) GangZoneShowForPlayer(playerid, Zone[CiaHeadquaters], KOREA_COLOR);
- InCP[playerid][PetrolStation] = 0;
- iCP[playerid] = -1;
- if(tCP[PetrolStation] == NONE) GangZoneShowForPlayer(playerid, Zone[PetrolStation], NONE_COLOR);
- else if(tCP[PetrolStation] == USARMY) GangZoneShowForPlayer(playerid, Zone[PetrolStation], USARMY_COLOR);
- else if(tCP[PetrolStation] == SAS) GangZoneShowForPlayer(playerid, Zone[PetrolStation], SAS_COLOR);
- else if(tCP[PetrolStation] == CHINA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], CHINA_COLOR);
- else if(tCP[PetrolStation] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], RUSSIA_COLOR);
- else if(tCP[PetrolStation] == SYRIA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], SYRIA_COLOR);
- else if(tCP[PetrolStation] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[PetrolStation], TALIBAN_COLOR);
- else if(tCP[PetrolStation] == ISLAM) GangZoneShowForPlayer(playerid, Zone[PetrolStation], ISLAM_COLOR);
- else if(tCP[PetrolStation] == GERMANY) GangZoneShowForPlayer(playerid, Zone[PetrolStation], GERMANY_COLOR);
- else if(tCP[PetrolStation] == JAPAN) GangZoneShowForPlayer(playerid, Zone[PetrolStation], JAPAN_COLOR);
- else if(tCP[PetrolStation] == KOREA) GangZoneShowForPlayer(playerid, Zone[PetrolStation], KOREA_COLOR);
- InCP[playerid][BaitShop] = 0;
- iCP[playerid] = -1;
- if(tCP[BaitShop] == NONE) GangZoneShowForPlayer(playerid, Zone[BaitShop], NONE_COLOR);
- else if(tCP[BaitShop] == USARMY) GangZoneShowForPlayer(playerid, Zone[BaitShop], USARMY_COLOR);
- else if(tCP[BaitShop] == SAS) GangZoneShowForPlayer(playerid, Zone[BaitShop], SAS_COLOR);
- else if(tCP[BaitShop] == CHINA) GangZoneShowForPlayer(playerid, Zone[BaitShop], CHINA_COLOR);
- else if(tCP[BaitShop] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[BaitShop], RUSSIA_COLOR);
- else if(tCP[BaitShop] == SYRIA) GangZoneShowForPlayer(playerid, Zone[BaitShop], SYRIA_COLOR);
- else if(tCP[BaitShop] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[BaitShop], TALIBAN_COLOR);
- else if(tCP[BaitShop] == ISLAM) GangZoneShowForPlayer(playerid, Zone[BaitShop], ISLAM_COLOR);
- else if(tCP[BaitShop] == GERMANY) GangZoneShowForPlayer(playerid, Zone[BaitShop], GERMANY_COLOR);
- else if(tCP[BaitShop] == JAPAN) GangZoneShowForPlayer(playerid, Zone[BaitShop], JAPAN_COLOR);
- else if(tCP[BaitShop] == KOREA) GangZoneShowForPlayer(playerid, Zone[BaitShop], KOREA_COLOR);
- InCP[playerid][ClukinBell] = 0;
- iCP[playerid] = -1;
- if(tCP[ClukinBell] == NONE) GangZoneShowForPlayer(playerid, Zone[ClukinBell], NONE_COLOR);
- else if(tCP[ClukinBell] == USARMY) GangZoneShowForPlayer(playerid, Zone[ClukinBell], USARMY_COLOR);
- else if(tCP[ClukinBell] == SAS) GangZoneShowForPlayer(playerid, Zone[ClukinBell], SAS_COLOR);
- else if(tCP[ClukinBell] == CHINA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], CHINA_COLOR);
- else if(tCP[ClukinBell] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], RUSSIA_COLOR);
- else if(tCP[ClukinBell] == SYRIA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], SYRIA_COLOR);
- else if(tCP[ClukinBell] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[ClukinBell], TALIBAN_COLOR);
- else if(tCP[ClukinBell] == ISLAM) GangZoneShowForPlayer(playerid, Zone[ClukinBell], ISLAM_COLOR);
- else if(tCP[ClukinBell] == GERMANY) GangZoneShowForPlayer(playerid, Zone[ClukinBell], GERMANY_COLOR);
- else if(tCP[ClukinBell] == JAPAN) GangZoneShowForPlayer(playerid, Zone[ClukinBell], JAPAN_COLOR);
- else if(tCP[ClukinBell] == KOREA) GangZoneShowForPlayer(playerid, Zone[ClukinBell], KOREA_COLOR);
- InCP[playerid][Ranch] = 0;
- iCP[playerid] = -1;
- if(tCP[Ranch] == NONE) GangZoneShowForPlayer(playerid, Zone[Ranch], NONE_COLOR);
- else if(tCP[Ranch] == USARMY) GangZoneShowForPlayer(playerid, Zone[Ranch], USARMY_COLOR);
- else if(tCP[Ranch] == SAS) GangZoneShowForPlayer(playerid, Zone[Ranch], SAS_COLOR);
- else if(tCP[Ranch] == CHINA) GangZoneShowForPlayer(playerid, Zone[Ranch], CHINA_COLOR);
- else if(tCP[Ranch] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[Ranch], RUSSIA_COLOR);
- else if(tCP[Ranch] == SYRIA) GangZoneShowForPlayer(playerid, Zone[Ranch], SYRIA_COLOR);
- else if(tCP[Ranch] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[Ranch], TALIBAN_COLOR);
- else if(tCP[Ranch] == ISLAM) GangZoneShowForPlayer(playerid, Zone[Ranch], ISLAM_COLOR);
- else if(tCP[Ranch] == GERMANY) GangZoneShowForPlayer(playerid, Zone[Ranch], GERMANY_COLOR);
- else if(tCP[Ranch] == JAPAN) GangZoneShowForPlayer(playerid, Zone[Ranch], JAPAN_COLOR);
- else if(tCP[Ranch] == KOREA) GangZoneShowForPlayer(playerid, Zone[Ranch], KOREA_COLOR);
- InCP[playerid][RadarBase] = 0;
- iCP[playerid] = -1;
- if(tCP[RadarBase] == NONE) GangZoneShowForPlayer(playerid, Zone[RadarBase], NONE_COLOR);
- else if(tCP[RadarBase] == USARMY) GangZoneShowForPlayer(playerid, Zone[RadarBase], USARMY_COLOR);
- else if(tCP[RadarBase] == SAS) GangZoneShowForPlayer(playerid, Zone[RadarBase], SAS_COLOR);
- else if(tCP[RadarBase] == CHINA) GangZoneShowForPlayer(playerid, Zone[RadarBase], CHINA_COLOR);
- else if(tCP[RadarBase] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[RadarBase], RUSSIA_COLOR);
- else if(tCP[RadarBase] == SYRIA) GangZoneShowForPlayer(playerid, Zone[RadarBase], SYRIA_COLOR);
- else if(tCP[RadarBase] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[RadarBase], TALIBAN_COLOR);
- else if(tCP[RadarBase] == ISLAM) GangZoneShowForPlayer(playerid, Zone[RadarBase], ISLAM_COLOR);
- else if(tCP[RadarBase] == GERMANY) GangZoneShowForPlayer(playerid, Zone[RadarBase], GERMANY_COLOR);
- else if(tCP[RadarBase] == JAPAN) GangZoneShowForPlayer(playerid, Zone[RadarBase], JAPAN_COLOR);
- else if(tCP[RadarBase] == KOREA) GangZoneShowForPlayer(playerid, Zone[RadarBase], KOREA_COLOR);
- InCP[playerid][OilDepot] = 0;
- iCP[playerid] = -1;
- if(tCP[OilDepot] == NONE) GangZoneShowForPlayer(playerid, Zone[OilDepot], NONE_COLOR);
- else if(tCP[OilDepot] == USARMY) GangZoneShowForPlayer(playerid, Zone[OilDepot], USARMY_COLOR);
- else if(tCP[OilDepot] == SAS) GangZoneShowForPlayer(playerid, Zone[OilDepot], SAS_COLOR);
- else if(tCP[OilDepot] == CHINA) GangZoneShowForPlayer(playerid, Zone[OilDepot], CHINA_COLOR);
- else if(tCP[OilDepot] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[OilDepot], RUSSIA_COLOR);
- else if(tCP[OilDepot] == SYRIA) GangZoneShowForPlayer(playerid, Zone[OilDepot], SYRIA_COLOR);
- else if(tCP[OilDepot] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[OilDepot], TALIBAN_COLOR);
- else if(tCP[OilDepot] == ISLAM) GangZoneShowForPlayer(playerid, Zone[OilDepot], ISLAM_COLOR);
- else if(tCP[OilDepot] == GERMANY) GangZoneShowForPlayer(playerid, Zone[OilDepot], GERMANY_COLOR);
- else if(tCP[OilDepot] == JAPAN) GangZoneShowForPlayer(playerid, Zone[OilDepot], JAPAN_COLOR);
- else if(tCP[OilDepot] == KOREA) GangZoneShowForPlayer(playerid, Zone[OilDepot], KOREA_COLOR);
- InCP[playerid][Quarry] = 0;
- iCP[playerid] = -1;
- if(tCP[Quarry] == NONE) GangZoneShowForPlayer(playerid, Zone[Quarry], NONE_COLOR);
- else if(tCP[Quarry] == USARMY) GangZoneShowForPlayer(playerid, Zone[Quarry], USARMY_COLOR);
- else if(tCP[Quarry] == SAS) GangZoneShowForPlayer(playerid, Zone[Quarry], SAS_COLOR);
- else if(tCP[Quarry] == CHINA) GangZoneShowForPlayer(playerid, Zone[Quarry], CHINA_COLOR);
- else if(tCP[Quarry] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[Quarry], RUSSIA_COLOR);
- else if(tCP[Quarry] == SYRIA) GangZoneShowForPlayer(playerid, Zone[Quarry], SYRIA_COLOR);
- else if(tCP[Quarry] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[Quarry], TALIBAN_COLOR);
- else if(tCP[Quarry] == ISLAM) GangZoneShowForPlayer(playerid, Zone[Quarry], ISLAM_COLOR);
- else if(tCP[Quarry] == GERMANY) GangZoneShowForPlayer(playerid, Zone[Quarry], GERMANY_COLOR);
- else if(tCP[Quarry] == JAPAN) GangZoneShowForPlayer(playerid, Zone[Quarry], JAPAN_COLOR);
- else if(tCP[Quarry] == KOREA) GangZoneShowForPlayer(playerid, Zone[Quarry], KOREA_COLOR);
- InCP[playerid][TheBigSpreadRanch] = 0;
- iCP[playerid] = -1;
- if(tCP[TheBigSpreadRanch] == NONE) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], NONE_COLOR);
- else if(tCP[TheBigSpreadRanch] == USARMY) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], USARMY_COLOR);
- else if(tCP[TheBigSpreadRanch] == SAS) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], SAS_COLOR);
- else if(tCP[TheBigSpreadRanch] == CHINA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], CHINA_COLOR);
- else if(tCP[TheBigSpreadRanch] == RUSSIA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], RUSSIA_COLOR);
- else if(tCP[TheBigSpreadRanch] == SYRIA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], SYRIA_COLOR);
- else if(tCP[TheBigSpreadRanch] == TALIBAN) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], TALIBAN_COLOR);
- else if(tCP[TheBigSpreadRanch] == ISLAM) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], ISLAM_COLOR);
- else if(tCP[TheBigSpreadRanch] == GERMANY) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], GERMANY_COLOR);
- else if(tCP[TheBigSpreadRanch] == JAPAN) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], JAPAN_COLOR);
- else if(tCP[TheBigSpreadRanch] == KOREA) GangZoneShowForPlayer(playerid, Zone[TheBigSpreadRanch], KOREA_COLOR);
- SetPlayerColor(playerid,0x888888FF);
- SendClientMessage(playerid,0xFFFFFFAA,"Welcome to Battlefield Dessert server!");
- SendClientMessage(playerid,CHINA_COLOR,"This server is powered and scripted by Flaken");
- SendClientMessage(playerid,JAPAN_COLOR,"Type /help to see the list of the commands");
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == ADMIN_SIGN && XST_Info[playerid][Admin] > 0)
- {
- new string[256];
- format(string, sizeof(string), "[ADM] %s %s: %s" , GetAdminRank(playerid), GetName(playerid), text[1]);
- SendAdminMessage(playerid, string);
- return 0;
- }
- if(text[0] == VIP_SIGN && XST_Info[playerid][Vip] > 0)
- {
- new string[256];
- format(string, sizeof(string), "[VIP] %s %s: %s" , GetVipRank(playerid), GetName(playerid), text[1]);
- SendVipMessage(playerid, string);
- return 0;
- }
- if(XST_Info[playerid][Muted] == 1)
- {
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR , "You can't talk you're muted!");
- return 0;
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(fexist(GetPlayerFile(playerid) ) ) {
- new INI: file = INI_Open(GetPlayerFile(playerid) );
- INI_SetTag(file, "Player's File");
- INI_WriteInt(file, "Admin", XST_Info[playerid][Admin]);
- INI_WriteInt(file, "Vip", XST_Info[playerid][Vip]);
- INI_WriteInt(file, "Score", XST_Info[playerid][Score]);
- INI_WriteInt(file, "Kills", XST_Info[playerid][Kills]);
- INI_WriteInt(file, "Deaths", XST_Info[playerid][Deaths]);
- INI_WriteInt(file, "Hours", XST_Info[playerid][Hours]);
- INI_WriteInt(file, "Minute", XST_Info[playerid][Minute]);
- INI_WriteInt(file, "Second", XST_Info[playerid][Second]);
- INI_WriteInt(file, "Warnings", XST_Info[playerid][Warnings]);
- INI_WriteInt(file, "Jailed", XST_Info[playerid][Jailed]);
- INI_WriteInt(file, "Banned", XST_Info[playerid][Banned]);
- INI_WriteInt(file, "BanTime", XST_Info[playerid][BanTime]);
- INI_WriteInt(file, "Muted", XST_Info[playerid][Muted]);
- INI_WriteInt(file, "Cash", XST_Info[playerid][Cash]);
- INI_WriteInt(file, "Score", XST_Info[playerid][Score]);
- #if SAVE_SKIN == true
- INI_WriteInt(file, "Skin", XST_Info[playerid][Skin]);
- #endif
- INI_Close(file);
- }
- if(InCP[playerid][SnakeFarm] == 1)
- {
- UnderAttack[SnakeFarm] = 0;
- }
- if(InCP[playerid][CiaHeadquaters] == 1)
- {
- UnderAttack[CiaHeadquaters] = 0;
- }
- if(InCP[playerid][PetrolStation] == 1)
- {
- UnderAttack[PetrolStation] = 0;
- }
- if(InCP[playerid][BaitShop] == 1)
- {
- UnderAttack[BaitShop] = 0;
- }
- if(InCP[playerid][ClukinBell] == 1)
- {
- UnderAttack[ClukinBell] = 0;
- }
- if(InCP[playerid][Ranch] == 1)
- {
- UnderAttack[Ranch] = 0;
- }
- if(InCP[playerid][RadarBase] == 1)
- {
- UnderAttack[RadarBase] = 0;
- }
- if(InCP[playerid][OilDepot] == 1)
- {
- UnderAttack[OilDepot] = 0;
- }
- if(InCP[playerid][Quarry] == 1)
- {
- UnderAttack[Quarry] = 0;
- }
- if(InCP[playerid][TheBigSpreadRanch] == 1)
- {
- UnderAttack[TheBigSpreadRanch] = 0;
- }
- DeletePVar(playerid, "spectatorspectate");
- new issepctator = GetPVarInt(playerid, "spectator");
- TogglePlayerSpectating(issepctator, false);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetupPlayerForClassSelection(playerid);
- SetPlayerTeamFromClass(playerid,classid);
- if(classid == 0)
- {
- GameTextForPlayer(playerid,"~B~USArmy ~w~(Special Forces)",1000,5);
- }
- else if(classid == 1)
- {
- GameTextForPlayer(playerid,"~G~British ~w~SAS",1000,5);
- }
- else if(classid == 2)
- {
- GameTextForPlayer(playerid,"~W~Chinese ~w~Rebel",1000,5);
- }
- else if(classid == 3)
- {
- GameTextForPlayer(playerid,"~R~Russian ~w~Mercenary",1000,5);
- }
- else if(classid == 4)
- {
- GameTextForPlayer(playerid,"~W~Syrian ~w~Army",1000,5);
- }
- else if(classid == 5)
- {
- GameTextForPlayer(playerid,"~W~Taliban ~w~Rebel",1000,5);
- }
- else if(classid == 6)
- {
- GameTextForPlayer(playerid,"~W~Islamic ~w~warlord",1000,5);
- }
- else if(classid == 7)
- {
- GameTextForPlayer(playerid,"~W~German ~w~Soldier",1000,5);
- }
- else if(classid == 8)
- {
- GameTextForPlayer(playerid,"~W~Japanese ~w~Warrior",1000,5);
- }
- else if(classid == 9)
- {
- GameTextForPlayer(playerid,"~W~Korean ~w~rebel",1000,5);
- }
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(success && XST_Info[playerid][Jailed ] == 1) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't speak when you're jailed!");
- if(!success)
- {
- new cmd[256];
- format(cmd, sizeof(cmd), "[ERROR] Command %s does not exist!" , cmdtext);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, cmd);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(XST_Info[playerid][Jailed] == 1)
- {
- SetPlayerPos(playerid, 262.9825,77.4500,1001.0391);
- SetPlayerInterior(playerid, 6);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You didn't completed your punish! back to jail");
- }
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw2);
- SetPlayerToTeamColor(playerid);
- GangZoneShowForAll(GZ_USARMY, 0x33CCFFAA);
- GangZoneShowForAll(GZ_SAS, 0x33AA33AA);
- GangZoneShowForAll(GZ_CHINA, 0xFFC0CBAA);
- GangZoneShowForAll(GZ_RUSSIA, 0xAA3333AA);
- GangZoneShowForAll(GZ_SYRIA, 0xA52A2AFF);
- GangZoneShowForAll(GZ_TALIBAN, 0xFFFFFFAA);
- GangZoneShowForAll(GZ_ISLAM, 0xA9A9A9FF);
- GangZoneShowForAll(GZ_GERMANY, 0xFF9900AA);
- GangZoneShowForAll(GZ_JAPAN, 0x800080FF);
- GangZoneShowForAll(GZ_KOREA, 0xFFFF00AA);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- XST_Info[playerid][Score] = GetPlayerScore(playerid);
- XST_Info[playerid][Cash] = GetPlayerMoney(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == REGISTER_DIALOG)
- {
- if(!response) Kick(playerid);
- if(response)
- {
- if(strlen(inputtext) > PASS_MAX_LENGHT || strlen(inputtext) < PASS_MIN_LENGHT) return ShowRegisterDialog(playerid);
- new wp_hash[129];
- WP_Hash(wp_hash, sizeof(wp_hash), inputtext);
- new INI: file = INI_Open(GetPlayerFile(playerid) );
- INI_SetTag(file, "Player's File");
- INI_WriteString(file, "Name", GetName(playerid) );
- INI_WriteString(file, "Password", wp_hash);
- INI_WriteInt(file, "Admin", 0);
- INI_WriteInt(file, "Vip", 0);
- INI_WriteInt(file, "Score", 0);
- INI_WriteInt(file, "Kills", 0);
- INI_WriteInt(file, "Deaths", 0);
- INI_WriteInt(file, "Hours", 0);
- INI_WriteInt(file, "Minute", 0);
- INI_WriteInt(file, "Second", 0);
- INI_WriteInt(file, "Warnings", 0);
- INI_WriteInt(file, "Jailed", 0);
- INI_WriteInt(file, "Banned", 0);
- INI_WriteInt(file, "BanTime", 0);
- INI_WriteInt(file, "Muted", 0);
- INI_WriteInt(file, "Cash", 0);
- INI_WriteInt(file, "Score", 0);
- #if SAVE_SKIN == true
- INI_WriteInt(file, "Skin", 0);
- #endif
- INI_Close(file);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[REGISTER] Your account was succesfull register in the database");
- }
- }
- if(dialogid == LOGIN_DIALOG)
- {
- if(!response) Kick(playerid);
- if(response)
- {
- new wp_hash[129];
- WP_Hash(wp_hash, sizeof(wp_hash), inputtext);
- if(!strcmp(wp_hash, XST_Info[playerid][Password], false) )
- {
- INI_ParseFile(GetPlayerFile(playerid), "loadplayerdata", .bExtra = true, .extra = playerid);
- SetPlayerScore(playerid, XST_Info[playerid][Score]);
- GivePlayerMoney(playerid, XST_Info[playerid][Cash]);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[LOGIN] You sucessfull logged in.");
- #if SAVE_SKIN == true
- SetPlayerSkin(playerid, XST_Info[playerid][Skin]);
- #endif
- if(XST_Info[playerid][Admin] > 0) {
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[ADMIN] You logged in as Admin. type: /ah");
- }
- if(XST_Info[playerid][Vip] > 0) {
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[VIP] You logged in as VIP . type: /vh");
- }
- }
- else
- {
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "[LOGIN] Password is incorrect");
- ShowLoginDialog(playerid);
- }
- }
- }
- if(dialogid == 3)
- {
- if(!response) return 1;
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- 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");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Report a hacker" , "Please write his id", "Next", "Cancel");
- }
- }
- }
- }
- if(dialogid == 4)
- {
- if(!response) return 1;
- if(response)
- {
- new string[256];
- format(string, sizeof(string), "[PLAYER] %s (id: %i) reported a problem: %s" , GetName(playerid), playerid ,inputtext);
- foreach(Player, i) if(XST_Info[i][Admin] > 0 && XST_Info[i][Duty] == 1) SendClientMessage(i, XSTADMIN_SECONDARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_SECONDARYCOLOR, "Message was sent , an admin will send you a P.M");
- }
- }
- if(dialogid == 5)
- {
- if(!response) return 1;
- if(response)
- {
- new id = strval(inputtext);
- if(!IsPlayerConnected(id) ) return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Report a hacker" , "Please write his id", "Next", "Cancel");
- SetPVarInt(playerid, "HackerID", id);
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Reason", "Please write the reason why you report that player", "Report", "Cancel");
- }
- }
- if(dialogid == 6)
- {
- if(!response)
- {
- DeletePVar(playerid, "HackerID");
- return 1;
- }
- if(response)
- {
- new hacker = GetPVarInt(playerid, "HackerID");
- new string[512];
- format(string, sizeof(string), "[PLAYER] %s (id: %i) reported a hacker: %s ( id : %i) - reason: %s" , GetName(playerid), playerid ,GetName(hacker), hacker, inputtext);
- foreach(Player, i) if(XST_Info[i][Admin] > 0 && XST_Info[i][Duty] == 1) SendClientMessage(i, XSTADMIN_SECONDARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_SECONDARYCOLOR, "Message was sent , an admin will send you a P.M");
- }
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- new playerspectating = GetPVarInt(playerid, "spectatorspectate");
- new issepctator = GetPVarInt(playerid, "spectator");
- if(playerspectating == playerid) {
- TogglePlayerSpectating(issepctator, false);
- DeletePVar(playerid, "spectatorspectate"); }
- }
- {
- XST_Info[playerid][Deaths]++;
- }
- KillTimer(timer[playerid][SnakeFarm]);
- KillTimer(timer[playerid][CiaHeadquaters]);
- KillTimer(timer[playerid][PetrolStation]);
- KillTimer(timer[playerid][BaitShop]);
- KillTimer(timer[playerid][ClukinBell]);
- KillTimer(timer[playerid][Ranch]);
- KillTimer(timer[playerid][RadarBase]);
- KillTimer(timer[playerid][OilDepot]);
- KillTimer(timer[playerid][Quarry]);
- KillTimer(timer[playerid][TheBigSpreadRanch]);
- KillTimer(CountTime[playerid]);
- UnderAttack[SnakeFarm] = 0;
- UnderAttack[CiaHeadquaters] = 0;
- UnderAttack[PetrolStation] = 0;
- UnderAttack[BaitShop] = 0;
- UnderAttack[ClukinBell] = 0;
- UnderAttack[Ranch] = 0;
- UnderAttack[RadarBase] = 0;
- UnderAttack[OilDepot] = 0;
- UnderAttack[Quarry] = 0;
- UnderAttack[TheBigSpreadRanch] = 0;
- TextDrawHideForPlayer(playerid,Textdraw1);
- TextDrawHideForPlayer(playerid,Textdraw2);
- GivePlayerWeapon(killerid, 4, 1);
- SendDeathMessage(killerid, playerid, reason);
- GameTextForPlayer(playerid,"~R~DEAD", 10000, 3);
- SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
- SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
- GivePlayerMoney(killerid,100);
- GivePlayerMoney(playerid,-100);
- TextDrawHideForPlayer(playerid, Textdraw1);
- TextDrawHideForPlayer(playerid, Textdraw2);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- new obj2 =CreateObject(18728, X, Y, Z, 0.0, 0.0, 0.0, 100.0);
- SetTimerEx("destroyThisObject", 10000, 0, "i", obj2);
- new obj1 =CreateObject(2896, X, Y, Z, 0.0, 0.0, 0.0, 100.0);
- SetTimerEx("destroyThisObject", 10000, 0, "i", obj1);
- if(GetPlayerWeapon(killerid) == 4) GivePlayerWeapon(killerid, 16, 1);
- {
- GameTextForPlayer(killerid, "GOOD KILL", 5000, 3);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/tower", cmdtext, true, 5) == 0)
- {
- if(GetPlayerScore(playerid)<10) return SendClientMessage(playerid, 0xAA3333AA,"You need 10 scorepoints to spawn the tower51");
- SetPlayerScore(playerid,GetPlayerScore(playerid)-10);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- Towercar = CreateVehicle(470, x +2, y, z+2, a, -1, -1, 60);
- AttachObjectToVehicle(obj, Towercar, 0.0, -5.0, -0.2, 0.0, 0.0, 0.0);
- PutPlayerInVehicle(playerid, Towercar, 0);
- }
- return 1;
- }
- public destroyThisObject(objid) {
- DestroyObject(objid);
- }
- public OnPlayerRequestSpawn(playerid)
- {
- new team1count = GetPlayersCountInTeam(USARMY);
- new team2count = GetPlayersCountInTeam(SAS);
- new team3count = GetPlayersCountInTeam(CHINA);
- new team4count = GetPlayersCountInTeam(RUSSIA);
- new team5count = GetPlayersCountInTeam(SYRIA);
- new team6count = GetPlayersCountInTeam(TALIBAN);
- new team7count = GetPlayersCountInTeam(ISLAM);
- new team8count = GetPlayersCountInTeam(GERMANY);
- new team9count = GetPlayersCountInTeam(JAPAN);
- new team10count = GetPlayersCountInTeam(KOREA);
- switch(gTeam[playerid])
- {
- case USARMY:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case SAS:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case CHINA:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case RUSSIA:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case SYRIA:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case TALIBAN:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case ISLAM:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case GERMANY:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case JAPAN:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- case KOREA:
- {
- 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.
- {
- SendClientMessage(playerid, 0xFF0000FF,"This team is currently full!");
- return 0;
- }
- }
- }
- return 1;
- }
- stock GetPlayersCountInTeam(teamid)
- {
- new playercount = 0;
- for(new x = 0; x < MAX_PLAYERS; x ++)
- {
- if(GetPlayerState(x) == PLAYER_STATE_NONE) continue;
- if(GetPlayerTeam(x) != teamid) continue;
- playercount++;
- }
- return playercount;
- }
- public OnPlayerStateChange(playerid,newstate,oldstate)
- {
- new playerspectating = GetPVarInt(playerid, "spectatorspectate");
- new issepctator = GetPVarInt(playerid, "spectator");
- if(newstate == 9 && XST_Info[issepctator][Spectator] == 1)
- {
- if(IsPlayerInAnyVehicle(playerspectating))
- {
- new vehicle = GetPlayerVehicleID(playerspectating);
- TogglePlayerSpectating(issepctator, 1);
- PlayerSpectateVehicle(issepctator, vehicle);
- }
- else
- {
- TogglePlayerSpectating(issepctator, 1);
- PlayerSpectatePlayer(issepctator, playerspectating);
- }
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 425)
- {
- if(GetPlayerScore(playerid) < 50) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 50 scorepoints you can enter this vehicle!");
- }
- else
- if(GetVehicleModel(vehicleid) == 520)
- {
- if(GetPlayerScore(playerid) < 100) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 100 scorepoints you can enter this vehicle!");
- }
- else
- if(GetVehicleModel(vehicleid) == 432)
- {
- if(GetPlayerScore(playerid) < 25) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 25 scorepoints you can enter this vehicle!");
- }
- else
- if(GetVehicleModel(vehicleid) == 447)
- {
- if(GetPlayerScore(playerid) < 10) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 10 scorepoints you can enter this vehicle!");
- }
- else
- if(GetVehicleModel(vehicleid) == 487)
- {
- if(GetPlayerScore(playerid) < 5) RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFFFFFFAA,"Welcome Soldier: If You have 5 scorepoints you can enter this vehicle!");
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[SnakeFarm])
- {
- if(UnderAttack[SnakeFarm] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[SnakeFarm])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[SnakeFarm] = 1;
- timer[playerid][SnakeFarm] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = SnakeFarm;
- InCP[playerid][SnakeFarm] = 1;
- Captured[SnakeFarm] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[SnakeFarm], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Snake Farm",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[CiaHeadquaters])
- {
- if(UnderAttack[CiaHeadquaters] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[CiaHeadquaters])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[CiaHeadquaters] = 1;
- timer[playerid][CiaHeadquaters] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = CiaHeadquaters;
- InCP[playerid][CiaHeadquaters] = 1;
- Captured[CiaHeadquaters] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[CiaHeadquaters], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Cia Headquaters",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[PetrolStation])
- {
- if(UnderAttack[PetrolStation] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[PetrolStation])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[PetrolStation] = 1;
- timer[playerid][PetrolStation] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = PetrolStation;
- InCP[playerid][PetrolStation] = 1;
- Captured[PetrolStation] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[PetrolStation], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[PetrolStation], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[PetrolStation], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[PetrolStation], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[PetrolStation], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[PetrolStation], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[PetrolStation], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[PetrolStation], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[PetrolStation], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[PetrolStation], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Petrol Station",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[BaitShop])
- {
- if(UnderAttack[BaitShop] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[BaitShop])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[BaitShop] = 1;
- timer[playerid][BaitShop] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = BaitShop;
- InCP[playerid][BaitShop] = 1;
- Captured[BaitShop] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[BaitShop], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[BaitShop], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[BaitShop], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[BaitShop], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[BaitShop], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[BaitShop], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[BaitShop], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[BaitShop], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[BaitShop], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[BaitShop], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Bait Shop",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[ClukinBell])
- {
- if(UnderAttack[ClukinBell] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[ClukinBell])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[ClukinBell] = 1;
- timer[playerid][ClukinBell] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = ClukinBell;
- InCP[playerid][ClukinBell] = 1;
- Captured[ClukinBell] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[ClukinBell], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[ClukinBell], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[ClukinBell], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[ClukinBell], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[ClukinBell], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[ClukinBell], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[ClukinBell], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[ClukinBell], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[ClukinBell], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[ClukinBell], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Clukin Bell",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[Ranch])
- {
- if(UnderAttack[Ranch] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[Ranch])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[Ranch] = 1;
- timer[playerid][Ranch] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = Ranch;
- InCP[playerid][Ranch] = 1;
- Captured[Ranch] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[Ranch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[Ranch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[Ranch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[Ranch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[Ranch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[Ranch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[Ranch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[Ranch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[Ranch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[Ranch], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Ranch",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[RadarBase])
- {
- if(UnderAttack[RadarBase] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[RadarBase])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[RadarBase] = 1;
- timer[playerid][RadarBase] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = RadarBase;
- InCP[playerid][RadarBase] = 1;
- Captured[RadarBase] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[RadarBase], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[RadarBase], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[RadarBase], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[RadarBase], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[RadarBase], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[RadarBase], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[RadarBase], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[RadarBase], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[RadarBase], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[RadarBase], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Radar Base",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[OilDepot])
- {
- if(UnderAttack[OilDepot] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[OilDepot])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[OilDepot] = 1;
- timer[playerid][OilDepot] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = OilDepot;
- InCP[playerid][OilDepot] = 1;
- Captured[OilDepot] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[OilDepot], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[OilDepot], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[OilDepot], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[OilDepot], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[OilDepot], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[OilDepot], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[OilDepot], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[OilDepot], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[OilDepot], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[OilDepot], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Oil Depot",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[Quarry])
- {
- if(UnderAttack[Quarry] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[Quarry])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[Quarry] = 1;
- timer[playerid][Quarry] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = Quarry;
- InCP[playerid][Quarry] = 1;
- Captured[Quarry] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[Quarry], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[Quarry], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[Quarry], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[Quarry], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[Quarry], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[Quarry], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[Quarry], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[Quarry], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[Quarry], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[Quarry], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the Quarry",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- if(checkpointid == CP[TheBigSpreadRanch])
- {
- if(UnderAttack[TheBigSpreadRanch] == 1)
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!");
- }
- else if(gTeam[playerid] == tCP[TheBigSpreadRanch])
- {
- SendClientMessage(playerid, 0xFF0000FF,"This zone is already captured!");
- }
- else if(gTeam[playerid] == NONE)
- {
- SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!");
- }
- else
- {
- UnderAttack[TheBigSpreadRanch] = 1;
- timer[playerid][TheBigSpreadRanch] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid);
- CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid);
- iCP[playerid] = TheBigSpreadRanch;
- InCP[playerid][TheBigSpreadRanch] = 1;
- Captured[TheBigSpreadRanch] = 0;
- if(gTeam[playerid] == USARMY)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneFlashForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
- }
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"%s is trying to capture the The Big Spread Ranch",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- }
- return 1;
- }
- public OnPlayerLeaveDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[SnakeFarm])
- {
- if(Captured[SnakeFarm] == 1)
- {
- GangZoneStopFlashForAll(Zone[SnakeFarm]);
- UnderAttack[SnakeFarm] = 0;
- InCP[playerid][SnakeFarm] = 0;
- tCP[SnakeFarm] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[SnakeFarm], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[SnakeFarm], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[SnakeFarm], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[SnakeFarm], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[SnakeFarm], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[SnakeFarm], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], KOREA_COLOR);
- }
- KillTimer(timer[playerid][SnakeFarm]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[SnakeFarm] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Snake Farm!");
- UnderAttack[SnakeFarm] = 0;
- InCP[playerid][SnakeFarm] = 0;
- GangZoneStopFlashForAll(Zone[SnakeFarm]);
- KillTimer(timer[playerid][SnakeFarm]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[CiaHeadquaters])
- {
- if(Captured[CiaHeadquaters] == 1)
- {
- GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
- UnderAttack[CiaHeadquaters] = 0;
- InCP[playerid][CiaHeadquaters] = 0;
- tCP[CiaHeadquaters] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], KOREA_COLOR);
- }
- KillTimer(timer[playerid][CiaHeadquaters]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[CiaHeadquaters] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Cia Headquaters!");
- UnderAttack[CiaHeadquaters] = 0;
- InCP[playerid][CiaHeadquaters] = 0;
- GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
- KillTimer(timer[playerid][CiaHeadquaters]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[PetrolStation])
- {
- if(Captured[PetrolStation] == 1)
- {
- GangZoneStopFlashForAll(Zone[PetrolStation]);
- UnderAttack[PetrolStation] = 0;
- InCP[playerid][PetrolStation] = 0;
- tCP[PetrolStation] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[PetrolStation], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[PetrolStation], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[PetrolStation], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[PetrolStation], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[PetrolStation], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[PetrolStation], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[PetrolStation], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[PetrolStation], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[PetrolStation], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[PetrolStation], KOREA_COLOR);
- }
- KillTimer(timer[playerid][PetrolStation]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[PetrolStation] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Petrol Station!");
- UnderAttack[PetrolStation] = 0;
- InCP[playerid][PetrolStation] = 0;
- GangZoneStopFlashForAll(Zone[PetrolStation]);
- KillTimer(timer[playerid][PetrolStation]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[BaitShop])
- {
- if(Captured[BaitShop] == 1)
- {
- GangZoneStopFlashForAll(Zone[BaitShop]);
- UnderAttack[BaitShop] = 0;
- InCP[playerid][BaitShop] = 0;
- tCP[BaitShop] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[BaitShop], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[BaitShop], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[BaitShop], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[BaitShop], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[BaitShop], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[BaitShop], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[BaitShop], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[BaitShop], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[BaitShop], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[BaitShop], KOREA_COLOR);
- }
- KillTimer(timer[playerid][BaitShop]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[BaitShop] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Bait Shop!");
- UnderAttack[BaitShop] = 0;
- InCP[playerid][BaitShop] = 0;
- GangZoneStopFlashForAll(Zone[BaitShop]);
- KillTimer(timer[playerid][BaitShop]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[ClukinBell])
- {
- if(Captured[ClukinBell] == 1)
- {
- GangZoneStopFlashForAll(Zone[ClukinBell]);
- UnderAttack[ClukinBell] = 0;
- InCP[playerid][ClukinBell] = 0;
- tCP[ClukinBell] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[ClukinBell], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[ClukinBell], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[ClukinBell], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[ClukinBell], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[ClukinBell], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[ClukinBell], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[ClukinBell], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[ClukinBell], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[ClukinBell], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[ClukinBell], KOREA_COLOR);
- }
- KillTimer(timer[playerid][ClukinBell]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[ClukinBell] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Clukin Bell!");
- UnderAttack[ClukinBell] = 0;
- InCP[playerid][ClukinBell] = 0;
- GangZoneStopFlashForAll(Zone[ClukinBell]);
- KillTimer(timer[playerid][ClukinBell]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[Ranch])
- {
- if(Captured[Ranch] == 1)
- {
- GangZoneStopFlashForAll(Zone[Ranch]);
- UnderAttack[Ranch] = 0;
- InCP[playerid][Ranch] = 0;
- tCP[Ranch] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[Ranch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[Ranch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[Ranch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[Ranch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[Ranch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[Ranch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[Ranch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[Ranch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[Ranch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[Ranch], KOREA_COLOR);
- }
- KillTimer(timer[playerid][Ranch]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[Ranch] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Ranch!");
- UnderAttack[Ranch] = 0;
- InCP[playerid][Ranch] = 0;
- GangZoneStopFlashForAll(Zone[Ranch]);
- KillTimer(timer[playerid][Ranch]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[RadarBase])
- {
- if(Captured[RadarBase] == 1)
- {
- GangZoneStopFlashForAll(Zone[RadarBase]);
- UnderAttack[RadarBase] = 0;
- InCP[playerid][RadarBase] = 0;
- tCP[RadarBase] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[RadarBase], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[RadarBase], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[RadarBase], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[RadarBase], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[RadarBase], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[RadarBase], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[RadarBase], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[RadarBase], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[RadarBase], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[RadarBase], KOREA_COLOR);
- }
- KillTimer(timer[playerid][RadarBase]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[RadarBase] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Radar Base!");
- UnderAttack[RadarBase] = 0;
- InCP[playerid][RadarBase] = 0;
- GangZoneStopFlashForAll(Zone[RadarBase]);
- KillTimer(timer[playerid][RadarBase]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[OilDepot])
- {
- if(Captured[OilDepot] == 1)
- {
- GangZoneStopFlashForAll(Zone[OilDepot]);
- UnderAttack[OilDepot] = 0;
- InCP[playerid][OilDepot] = 0;
- tCP[OilDepot] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[OilDepot], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[OilDepot], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[OilDepot], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[OilDepot], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[OilDepot], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[OilDepot], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[OilDepot], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[OilDepot], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[OilDepot], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[OilDepot], KOREA_COLOR);
- }
- KillTimer(timer[playerid][OilDepot]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[OilDepot] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Oil Depot!");
- UnderAttack[OilDepot] = 0;
- InCP[playerid][OilDepot] = 0;
- GangZoneStopFlashForAll(Zone[OilDepot]);
- KillTimer(timer[playerid][OilDepot]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[Quarry])
- {
- if(Captured[Quarry] == 1)
- {
- GangZoneStopFlashForAll(Zone[Quarry]);
- UnderAttack[Quarry] = 0;
- InCP[playerid][Quarry] = 0;
- tCP[Quarry] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[Quarry], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[Quarry], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[Quarry], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[Quarry], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[Quarry], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[Quarry], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[Quarry], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[Quarry], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[Quarry], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[Quarry], KOREA_COLOR);
- }
- KillTimer(timer[playerid][Quarry]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[Quarry] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the Quarry!");
- UnderAttack[Quarry] = 0;
- InCP[playerid][Quarry] = 0;
- GangZoneStopFlashForAll(Zone[Quarry]);
- KillTimer(timer[playerid][Quarry]);
- KillTimer(CountTime[playerid]);
- }
- }
- if(checkpointid == CP[TheBigSpreadRanch])
- {
- if(Captured[TheBigSpreadRanch] == 1)
- {
- GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
- UnderAttack[TheBigSpreadRanch] = 0;
- InCP[playerid][TheBigSpreadRanch] = 0;
- tCP[TheBigSpreadRanch] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
- }
- KillTimer(timer[playerid][TheBigSpreadRanch]);
- KillTimer(CountTime[playerid]);
- }
- else if(Captured[TheBigSpreadRanch] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE,"You have left the Checkpoint you have failed to capture the The Big Spread Ranch!");
- UnderAttack[TheBigSpreadRanch] = 0;
- InCP[playerid][TheBigSpreadRanch] = 0;
- GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
- KillTimer(timer[playerid][TheBigSpreadRanch]);
- KillTimer(CountTime[playerid]);
- }
- }
- return 1;
- }
- forward SetCaptureZone(playerid);
- public SetCaptureZone(playerid)
- {
- if(iCP[playerid] == SnakeFarm)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Snake Farm! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Snake Farm!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[SnakeFarm] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[SnakeFarm], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[SnakeFarm], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[SnakeFarm], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[SnakeFarm], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[SnakeFarm], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[SnakeFarm], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[SnakeFarm], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[SnakeFarm]);
- Captured[SnakeFarm] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][SnakeFarm]);
- }
- if(iCP[playerid] == CiaHeadquaters)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Cia Headquaters! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Cia Headquaters!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[CiaHeadquaters] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[CiaHeadquaters], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[CiaHeadquaters]);
- Captured[CiaHeadquaters] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][CiaHeadquaters]);
- }
- if(iCP[playerid] == PetrolStation)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Petrol Station! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Petrol Station!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[PetrolStation] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[PetrolStation], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[PetrolStation], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[PetrolStation], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[PetrolStation], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[PetrolStation], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[PetrolStation], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[PetrolStation], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[PetrolStation], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[PetrolStation], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[PetrolStation], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[PetrolStation]);
- Captured[PetrolStation] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][PetrolStation]);
- }
- if(iCP[playerid] == BaitShop)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Bait Shop! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Bait Shop!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[BaitShop] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[BaitShop], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[BaitShop], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[BaitShop], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[BaitShop], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[BaitShop], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[BaitShop], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[BaitShop], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[BaitShop], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[BaitShop], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[BaitShop], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[BaitShop]);
- Captured[BaitShop] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][BaitShop]);
- }
- if(iCP[playerid] == ClukinBell)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Clukin Bell! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Clukin Bell!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[ClukinBell] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[ClukinBell], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[ClukinBell], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[ClukinBell], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[ClukinBell], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[ClukinBell], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[ClukinBell], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[ClukinBell], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[ClukinBell], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[ClukinBell], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[ClukinBell], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[ClukinBell]);
- Captured[ClukinBell] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][ClukinBell]);
- }
- if(iCP[playerid] == Ranch)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Ranch! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Ranch!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[Ranch] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[Ranch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[Ranch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[Ranch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[Ranch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[Ranch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[Ranch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[Ranch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[Ranch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[Ranch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[Ranch], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[Ranch]);
- Captured[Ranch] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][Ranch]);
- }
- if(iCP[playerid] == RadarBase)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Radar Base! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Radar Base!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[RadarBase] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[RadarBase], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[RadarBase], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[RadarBase], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[RadarBase], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[RadarBase], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[RadarBase], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[RadarBase], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[RadarBase], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[RadarBase], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[RadarBase], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[RadarBase]);
- Captured[RadarBase] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][RadarBase]);
- }
- if(iCP[playerid] == OilDepot)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Oil Depot! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Oil Depot!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[OilDepot] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[OilDepot], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[OilDepot], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[OilDepot], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[OilDepot], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[OilDepot], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[OilDepot], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[OilDepot], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[OilDepot], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[OilDepot], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[OilDepot], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[OilDepot]);
- Captured[OilDepot] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][OilDepot]);
- }
- if(iCP[playerid] == Quarry)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the Quarry! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the Quarry!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[Quarry] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[Quarry], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[Quarry], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[Quarry], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[Quarry], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[Quarry], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[Quarry], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[Quarry], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[Quarry], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[Quarry], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[Quarry], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[Quarry]);
- Captured[Quarry] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][Quarry]);
- }
- if(iCP[playerid] == TheBigSpreadRanch)
- {
- 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);
- SetPlayerScore(playerid, GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid, COLOR_WHITE,"Congratulations! You have successfully captured the The Big Spread Ranch! You earned +5 scores and +$5000! & a random weapon");
- new string[128], name[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string),"[Mercenary News] %s has successfully captured the The Big Spread Ranch!",name);
- SendClientMessageToAll(COLOR_WHITE, string);
- tCP[TheBigSpreadRanch] = gTeam[playerid];
- if(gTeam[playerid] == USARMY)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], USARMY_COLOR);
- }
- else if(gTeam[playerid] == SAS)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], SAS_COLOR);
- }
- else if(gTeam[playerid] == CHINA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], CHINA_COLOR);
- }
- else if(gTeam[playerid] == RUSSIA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], RUSSIA_COLOR);
- }
- else if(gTeam[playerid] == SYRIA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], SYRIA_COLOR);
- }
- else if(gTeam[playerid] == TALIBAN)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], TALIBAN_COLOR);
- }
- else if(gTeam[playerid] == ISLAM)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], ISLAM_COLOR);
- }
- else if(gTeam[playerid] == GERMANY)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], GERMANY_COLOR);
- }
- else if(gTeam[playerid] == JAPAN)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], JAPAN_COLOR);
- }
- else if(gTeam[playerid] == KOREA)
- {
- GangZoneShowForAll(Zone[TheBigSpreadRanch], KOREA_COLOR);
- }
- GangZoneStopFlashForAll(Zone[TheBigSpreadRanch]);
- Captured[TheBigSpreadRanch] = 1;
- KillTimer(CountTime[playerid]);
- KillTimer(timer[playerid][TheBigSpreadRanch]);
- }
- return 1;
- }
- public TeamProtection()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerTeam(i, gTeam[i]);
- }
- }
- }
- forward CountDown(playerid);
- public CountDown(playerid)
- {
- CountVar[playerid]--;
- if(CountVar[playerid] == 0)
- {
- CountVar[playerid] = 25;
- KillTimer(CountTime[playerid]);
- }
- else
- {
- new str[124];
- format(str, sizeof(str),"~n~~n~~n~~n~~n~~n~~r~%d/~y~25 ~w~Seconds left~n~~g~to capture", CountVar[playerid]);
- GameTextForPlayer(playerid, str, 1000, 3);
- }
- CountTime[playerid] = SetTimerEx("CountDown", 1000, false,"i", playerid);
- return 1;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[SYSTEM] /admins /vips /ranks /objective");
- SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[CHAT] /pm /rules");
- SendClientMessage(playerid,XSTADMIN_SECONDARYCOLOR,"[PLAYER] /report /kill /changeclass /stats ");
- return 1;
- }
- CMD:ranks(playerid, params[])
- {
- 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");
- return 1;
- }
- CMD:objective(playerid, params[])
- {
- 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");
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- 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");
- return 1;
- }
- CMD:changeclass(playerid, params[])
- {
- ForceClassSelection(playerid);
- TogglePlayerSpectating(playerid, true);
- TogglePlayerSpectating(playerid, false);
- SendClientMessage(playerid, 0xFFFFFFAA,"Class Selection: Please Select Your New Team!");
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- CMD:admins(playerid, params[])
- {
- new string[256];
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Admins Online >>>");
- foreach(Player, i )
- {
- if(AHide[i] == 0 && XST_Info[i][Admin] > 0 && i > 0)
- {
- format(string, sizeof(string), "%s %s - level: %d (id : %i) Admin Duty: %s" , GetAdminRank(i), GetName(i), XST_Info[i][Admin], i, GetADuty(i));
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, string );
- }
- else return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "No admins online or they are hidden");
- }
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Admins Online >>>");
- return 1;
- }
- CMD:vips(playerid, params[])
- {
- new string[256];
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Vips Online >>>");
- foreach(Player, i )
- {
- if( XST_Info[i][Vip] > 0 )
- {
- format(string, sizeof(string), "%s %s - level: %d (id : %i)" , GetVipRank(i), GetName(i), XST_Info[i][Vip], i);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, string );
- }
- else return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "No vips online");
- }
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, " <<< Vips Online >>>");
- return 1;
- }
- CMD:report(playerid, params[])
- {
- ShowPlayerDialog(playerid, 3 , DIALOG_STYLE_LIST, "Report", "Report a problem\nReport a hacker", "Select", "Cancel");
- return 1;
- }
- CMD:pm(playerid, params[])
- {
- new id, message[256];
- if(sscanf(params, "us[256]", id, message ) ) return SendClientMessage(playerid, -1, "Syntax: /pm [id] [message]");
- if(!IsPlayerConnected(id) ) return SendClientMessage(playerid, -1, "Player is not connected");
- new astring[256];
- format(astring, sizeof(astring), "PM From %s: %s" , GetName(playerid), message);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, astring);
- SendClientMessage(id, -1, "Message sent.");
- return 1;
- }
- //Admin COmmands
- CMD:ah(playerid, params[])
- {
- new str[2024];
- new string[128];
- if(XST_Info[playerid][Admin] == 1)
- {
- format(string, sizeof(string), "%s\n", ADMIN_FIRSTRANK);
- strcat(str, string);
- strcat(str, "Info: They are new in the team, they only can help people and use some basics commands\n");
- strcat(str, "Commands: /aduty, /acolor, /agod, /agoto, /aget\n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Admin] == 2)
- {
- format(string, sizeof(string), "%s\n", ADMIN_SECONDRANK);
- strcat(str, string);
- strcat(str, "Info: The still have to help players, but now they have a new responsabilities ! to keep cheaters away\n");
- strcat(str, "Commands: /awarn, /akick, /amute ( /aunmute) , /ajail ( /aunjail ) , /slap, /explode\n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Admin] == 3)
- {
- format(string, sizeof(string), "%s\n", ADMIN_THIRDRANK);
- strcat(str, string);
- strcat(str, "Info: They gained experience along the time, now they also have new powers\n");
- strcat(str, "Commands: /ban ,/setscore ,/giveweapon, /setinterior, /setvworld, /sethealth, /setarmour, /setweather, /settime , /setcash, /spectate, /announce, /asay, /givescore , /givecash\n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Admin] == 4)
- {
- format(string, sizeof(string), "%s\n", ADMIN_FOURTHRANK);
- strcat(str, string);
- strcat(str, "Info: They are very experienced with a high rank, their powers are similars to high ranked admins\n");
- strcat(str, "Commands: /giveallcash, /giveallscore, /giveallarmour, /giveallhealth, /kickall, /tpallhere \n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Admin] == 5)
- {
- format(string, sizeof(string), "%s\n", ADMIN_FIFTHHRANK);
- strcat(str, string);
- strcat(str, "Info: The most experienced admins, and they have super powers over other admins, they are protected to admins commands\n");
- strcat(str, "Commands: /amenu\n");
- strcat(str, "\n");
- }
- if(IsPlayerAdmin(playerid) )
- {
- format(string, sizeof(string), "%s\n", "Rcon Admins");
- strcat(str, string);
- strcat(str, "Info: They are the owners\n");
- strcat(str, "Commands: /makeadmin, /makevip\n");
- }
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Admin Help", str, "Ok", "");
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /aban [id] [reason]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s banned %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Banned] = 1;
- BanPlayer(id, reason, GetName(id), GetName(playerid));
- AdminMessage(playerid, "/ban");
- return 1;
- }
- CMD:setscore(playerid, params[])
- {
- new id, score;
- if(sscanf(params, "ud", id, score) ) return SendClientMessage(playerid, -1, "Syntax: /setscore [id] [score]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your score to %d" , GetAdminRank(playerid), GetName(playerid), score);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the score");
- AdminMessage(playerid, "/setscore");
- SetPlayerScore(id, score);
- return 1;
- }
- CMD:givemoney(playerid, params[])
- {
- new id, cash;
- if(sscanf(params, "ud", id, cash) ) return SendClientMessage(playerid, -1, "Syntax: /givecash [id] [cash]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s have given you cash : $%d" , GetAdminRank(playerid), GetName(playerid), cash);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the cash");
- AdminMessage(playerid, "/givecash");
- GivePlayerMoney(id, cash);
- return 1;
- }
- CMD:amenu(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 5) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- else ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, ADMIN_FIFTHHRANK, "Create a car\nRestart server\nKickall\nBanall\nWarningall\nMuteall\nUnmuteall", "Select", "Cancel");
- return 1;
- }
- CMD:giveallcash(playerid, params[])
- {
- new cash;
- if(sscanf(params, "d", cash) ) return SendClientMessage(playerid, -1, "Syntax: /giveallcash [cash]");
- if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- new string[256];
- format(string, sizeof(string), "%s %s gave everyone $%d" ,GetAdminRank(playerid), GetName(playerid), cash);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- foreach(Player, i) GivePlayerMoney(i, cash);
- return 1;
- }
- CMD:giveallhealth(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- new string[256];
- format(string, sizeof(string), "%s %s gave everyone health" ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- foreach(Player, i) SetPlayerHealth(i, 100);
- return 1;
- }
- CMD:giveallarmour(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- new string[256];
- format(string, sizeof(string), "%s %s gave everyone armour" ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- foreach(Player, i) SetPlayerArmour(i, 100);
- return 1;
- }
- CMD:kickall(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- new string[256];
- format(string, sizeof(string), "%s %s kicked everyone" ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- foreach(Player, i) Kick(i);
- return 1;
- }
- CMD:tpallhere(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 4) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- new string[256];
- format(string, sizeof(string), "%s %s teleported everyone to him" ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- new Float: X, Float: Y, Float: Z;
- GetPlayerPos(playerid, X, Y, Z);
- new interior = GetPlayerInterior(playerid);
- new vworld = GetPlayerVirtualWorld(playerid);
- foreach(Player, i) {
- SetPlayerPos(i, X, Y, Z);
- SetPlayerInterior(i , interior);
- SetPlayerVirtualWorld(i, vworld);
- }
- return 1;
- }
- CMD:announce(playerid, params[])
- {
- new message[256];
- if(sscanf(params, "s[256]", message) ) return SendClientMessage(playerid, -1, "Syntax: /announce [message]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- format(message, sizeof(message), "%s", message);
- GameTextForAll(message, 2000, 0);
- return 1;
- }
- CMD:asay(playerid, params[])
- {
- new message[256];
- if(sscanf(params, "s[256]", message) ) return SendClientMessage(playerid, -1, "Syntax: /asay [message]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- format(message, sizeof(message), " %s %s : %s", GetAdminRank(playerid), GetName(playerid) ,message);
- foreach(Player, i) SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, message);
- return 1;
- }
- CMD:setcash(playerid, params[])
- {
- new id, cash;
- if(sscanf(params, "ud", id, cash) ) return SendClientMessage(playerid, -1, "Syntax: /setcash [id] [score]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your cash to $%d" , GetAdminRank(playerid), GetName(playerid), cash);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the cash");
- AdminMessage(playerid, "/setcash");
- ResetPlayerMoney(id);
- GivePlayerMoney(id, cash);
- return 1;
- }
- CMD:setweather(playerid, params[])
- {
- new weather;
- if(sscanf(params, "d", weather) ) return SendClientMessage(playerid, -1, "Syntax: /setweather [id] [weather]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(weather < 0 || weather > 40) return SendClientMessage(playerid, -1, "Invalid weather id!");
- new string[256];
- format(string, sizeof(string), "%s %s was set the weatherid to %d" , GetAdminRank(playerid), GetName(playerid), weather);
- SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
- AdminMessage(playerid, "/setweather");
- SetWeather(weather);
- return 1;
- }
- CMD:settime(playerid, params[])
- {
- new hour, minute;
- if(sscanf(params, "dD(00)", hour, minute) ) return SendClientMessage(playerid, -1, "Syntax: /settime [id] [hour] [minute]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(hour > 24 || hour < 0) return SendClientMessage(playerid, -1, "Invalid hour");
- if(minute > 60 || minute < 0) return SendClientMessage(playerid, -1, "Invalid minute");
- new string[256];
- format(string, sizeof(string), "%s %s was set the gametime to %d:%d" , GetAdminRank(playerid), GetName(playerid), hour, minute);
- SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
- AdminMessage(playerid, "/settime");
- foreach(Player, i) SetPlayerTime(i, hour, minute);
- return 1;
- }
- CMD:setinterior(playerid, params[])
- {
- new id, interior;
- if(sscanf(params, "ud", id, interior) ) return SendClientMessage(playerid, -1, "Syntax: /setinterior [id] [interior]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your interior to %d" , GetAdminRank(playerid), GetName(playerid), interior);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the interior");
- AdminMessage(playerid, "/setinterior");
- SetPlayerInterior(id, interior);
- return 1;
- }
- CMD:setvworld(playerid, params[])
- {
- new id, vworld;
- if(sscanf(params, "ud", id, vworld) ) return SendClientMessage(playerid, -1, "Syntax: /setvworld [id] [vworld]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your virtual world to %d" , GetAdminRank(playerid), GetName(playerid), vworld);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the virtual world");
- AdminMessage(playerid, "/setvworld");
- SetPlayerVirtualWorld(id, vworld);
- return 1;
- }
- CMD:sethealth(playerid, params[])
- {
- new id, health;
- if(sscanf(params, "ud", id, health) ) return SendClientMessage(playerid, -1, "Syntax: /sethealth [id] [health]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your health to %d" , GetAdminRank(playerid), GetName(playerid), health);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the health");
- AdminMessage(playerid, "/sethealth");
- SetPlayerHealth(id, health);
- return 1;
- }
- CMD:setarmour(playerid, params[])
- {
- new id, armour;
- if(sscanf(params, "ud", id, armour) ) return SendClientMessage(playerid, -1, "Syntax: /setarmour [id] [armour]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was set your armour to %d" , GetAdminRank(playerid), GetName(playerid), armour);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the armour");
- AdminMessage(playerid, "/setarmour");
- SetPlayerArmour(id, armour);
- return 1;
- }
- CMD:giveweapon(playerid, params[])
- {
- new id, weaponid, ammo;
- if(sscanf(params, "udd", id, weaponid, ammo) ) return SendClientMessage(playerid, -1, "Syntax: /giveweapon [id] [weapon] [ammo]");
- if(XST_Info[playerid][Admin] == 3) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s was gave you weapon id: %d ( %s )" , GetAdminRank(playerid), GetName(playerid), weaponid, GetWeaponNameByID(weaponid) );
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You gave a weapon");
- AdminMessage(playerid, "/giveweapon");
- GivePlayerWeapon(playerid, weaponid, ammo);
- return 1;
- }
- CMD:makeadmin(playerid, params[])
- {
- new id, level;
- if(sscanf(params, "ud", id, level) ) return SendClientMessage(playerid, -1, "Syntax: /makeadmin [id] [level]");
- if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(level > MAX_LEVEL) return SendClientMessage(playerid, -1, "Invalid level");
- NOT_CONNECT(id);
- XST_Info[id][Admin] = level;
- new string[256];
- format(string, sizeof(string), "%s %s has set your admin level to %s (%d)" , GetAdminRank(id), GetName(id), XST_Info[id][Admin]);
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the level");
- AdminMessage(playerid, "/makeadmin");
- return 1;
- }
- CMD:makevip(playerid, params[])
- {
- new id, level;
- if(sscanf(params, "ud", id, level) ) return SendClientMessage(playerid, -1, "Syntax: /makevip [id] [level]");
- if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(level > MAX_VIP) return SendClientMessage(playerid, -1, "Invalid level");
- NOT_CONNECT(id);
- XST_Info[id][Vip] = level;
- new string[256];
- format(string, sizeof(string), "%s %s was set your vip level to %s (%d)" , GetAdminRank(playerid), GetName(playerid),GetVipRank(id), XST_Info[id][Vip] );
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You set the level");
- AdminMessage(playerid, "/makevip");
- return 1;
- }
- CMD:agod(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(XST_Info[playerid][Godmode] == 0)
- {
- SetPlayerHealth(playerid, 99999);
- GivePlayerWeapon(playerid, 32, 99999);
- GivePlayerWeapon(playerid, 26, 99999);
- GivePlayerWeapon(playerid, 16, 99999);
- XST_Info[playerid][Godmode] = 1;
- SendClientMessage(playerid, -1, "GODMODE: Turned On");
- }
- else if(XST_Info[playerid][Godmode] == 1)
- {
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- XST_Info[playerid][Godmode] = 0;
- SendClientMessage(playerid, -1, "GODMODE: Turned Off");
- }
- AdminMessage(playerid, "/agod");
- return 1;
- }
- CMD:awarn(playerid, params[])
- {
- new id, warn[256];
- if(sscanf(params, "us[256]", id, warn) ) return SendClientMessage(playerid, -1 , "Syntax: /awarn [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- 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);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Warnings]++;
- if(XST_Info[id][Warnings] >= MAX_WARNINGS)
- {
- new cstring[256];
- new tstring[256];
- format(cstring, sizeof(cstring), " Playername: %s \n Adminname: %s \nReason: %s ", GetName(id), GetName(playerid), warn);
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Ban", cstring, "Exit", "");
- format(tstring, sizeof(tstring), "[BAN] %s has been automatically banned: Exceded max warnings" , GetName(id) );
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, tstring);
- SetTimerEx("ExcedWarn", 1000, false, "d", id);
- }
- AdminMessage(playerid, "/awarn");
- return 1;
- }
- CMD:akick(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /akick [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s kicked %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- SetTimerEx("KickP", 2000, false, "d", id);
- AdminMessage(playerid, "/akick");
- return 1;
- }
- CMD:spectate(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /spectate [id]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] == XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s is spectating you now", GetAdminRank(playerid), GetName(playerid));
- SendClientMessage(id,XSTADMIN_PRIMARYCOLOR, string);
- SetPVarInt(playerid, "spectatorspectate", id);
- SetPVarInt(playerid, "issepctator", playerid);
- TogglePlayerSpectating(playerid, true);
- if(IsPlayerInAnyVehicle(id) )
- {
- new vehicle = GetPlayerVehicleID(id);
- PlayerSpectateVehicle(playerid, vehicle);
- }
- else
- {
- PlayerSpectatePlayer(playerid, id);
- }
- AdminMessage(playerid, "/sepctate");
- return 1;
- }
- CMD:amute(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /amute [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s muted %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Muted] = 1;
- AdminMessage(playerid, "/amute");
- return 1;
- }
- CMD:ajail(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /ajail [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s jailed %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Jailed] = 1;
- SetPlayerPos(playerid, 262.9825,77.4500,1001.0391);
- SetPlayerVirtualWorld(id, 0);
- SetPlayerInterior(id, 0);
- GameTextForPlayer(id, "~r~Busted ", 2000, 0);
- AdminMessage(playerid, "/ajail");
- return 1;
- }
- CMD:slap(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /slap [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s slaped %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(id, X, Y, Z);
- SetPlayerPos(id, X, Y, Z+10);
- AdminMessage(playerid, "/slap");
- return 1;
- }
- CMD:explode(playerid, params[])
- {
- new id, reason[256];
- if(sscanf(params, "us[256]", id, reason) ) return SendClientMessage(playerid, -1 , "Syntax: /explode [id] [reason]");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s exploded %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id), reason);
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(id, X, Y, Z);
- CreateExplosion(X, Y, Z, 0, 15);
- AdminMessage(playerid, "/explode");
- return 1;
- }
- CMD:aunjail(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /aunjail [id] ");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s unjailed %s for reason: %s", GetAdminRank(playerid), GetName(playerid), GetName(id));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Jailed] = 0;
- SpawnPlayer(id);
- SetPlayerVirtualWorld(id, 0);
- SetPlayerInterior(id, 0);
- GameTextForPlayer(id, "~g~Free ", 2000, 0);
- AdminMessage(playerid, "/aunjail");
- return 1;
- }
- CMD:aunmute(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /amute [id] ");
- if(XST_Info[playerid][Admin] == 2) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- if(XST_Info[playerid][Admin] < XST_Info[id][Admin]) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this command on this user");
- NOT_CONNECT(id);
- new string[256];
- format(string, sizeof(string), "%s %s muted %s", GetAdminRank(playerid), GetName(playerid), GetName(id));
- SendClientMessageToAll(XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[id][Muted] = 0;
- AdminMessage(playerid, "/unamute");
- return 1;
- }
- CMD:agoto(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /agoto [id]");
- if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- NOT_CONNECT(id);
- new string[128];
- format(string, sizeof(string), "%s %s teleported to you." , GetAdminRank(playerid), GetName(playerid));
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You teleported");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(id, X, Y, Z);
- new interior = GetPlayerInterior(id);
- new vworld = GetPlayerVirtualWorld(id);
- SetPlayerPos(playerid, X, Y+1, Z+2);
- SetPlayerInterior(playerid, interior);
- SetPlayerVirtualWorld(playerid, vworld);
- return 1;
- }
- CMD:aget(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id) ) return SendClientMessage(playerid, -1 , "Syntax: /aget [id]");
- if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(id == playerid) return SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You can't use this on yourself");
- NOT_CONNECT(id);
- new string[128];
- format(string, sizeof(string), "%s %s teleported you to his location." , GetAdminRank(playerid), GetName(playerid));
- SendClientMessage(id, XSTADMIN_PRIMARYCOLOR, string);
- SendClientMessage(playerid, XSTADMIN_PRIMARYCOLOR, "You teleported that player");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- new interior = GetPlayerInterior(playerid);
- new vworld = GetPlayerVirtualWorld(playerid);
- SetPlayerPos(id, X, Y+1, Z+2);
- SetPlayerInterior(id, interior);
- SetPlayerVirtualWorld(id, vworld);
- return 1;
- }
- CMD:acolor(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- SetPlayerColor(playerid, ReturnAdminColor(playerid));
- SendClientMessage(playerid, -1, "[ADM] Color changed");
- AdminMessage(playerid, "/acolor");
- return 1;
- }
- CMD:aduty(playerid, params[])
- {
- if(XST_Info[playerid][Admin] == 1) return SendClientMessage(playerid, -1, "You're not authorized to use this command!");
- if(XST_Info[playerid][Duty] == 0)
- {
- new string[128];
- format(string, sizeof(string), "%s %s is now on duty." ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[playerid][Duty] = 1;
- SetPlayerHealth(playerid, 99999);
- }
- else if(XST_Info[playerid][Duty] == 1)
- {
- new string[128];
- format(string, sizeof(string), "%s %s is now off duty." ,GetAdminRank(playerid), GetName(playerid));
- SendClientMessageToAll( XSTADMIN_PRIMARYCOLOR, string);
- XST_Info[playerid][Duty] = 0;
- SetPlayerHealth(playerid, 100);
- }
- AdminMessage(playerid, "/aduty");
- return 1;
- }
- //Vip Commands
- CMD:vh(playerid, params[])
- {
- new str[2024];
- new string[128];
- if(XST_Info[playerid][Vip] == 1)
- {
- format(string, sizeof(string), "%s\n", VIP_FIRSTRANK);
- strcat(str, string);
- strcat(str, "Info: These vips can use use trial commands\n");
- strcat(str, "Commands: /vcolor, /vtime, /vweather, /vcar\n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Vip] == 2)
- {
- format(string, sizeof(string), "%s\n", VIP_SECONDRANK);
- strcat(str, string);
- strcat(str, "Info: These vips can use use more commands than first rank\n");
- strcat(str, "Commands: /vgoto, /vget, /vweapons, /vmoney\n");
- strcat(str, "\n");
- }
- if(XST_Info[playerid][Vip] == 3)
- {
- format(string, sizeof(string), "%s\n", VIP_THIRDRANK);
- strcat(str, string);
- strcat(str, "Info: These vips have super powers and can use all vips commands\n");
- strcat(str, "Commands: /vsw, /vspectate\n");
- strcat(str, "\n");
- }
- ShowPlayerDialog(playerid,8, DIALOG_STYLE_MSGBOX, "Vip Help", str, "Ok", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment