Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This Is My Fist Game Mode Team Death Match
- Army Vs Terrorist
- */
- //Includes
- #include <a_samp> //Samp Team
- #include <YSI\y_ini> //Y_Less
- #include <Zcmd> //Zeex
- #include <gangzonesc> //Gammix
- #include <progress2> //Southclaw
- #include <streamer> //Incognito
- /*
- =============================Credits=================================
- -Adrien-Luis For Making ThiS GameMode Army Vs Terrorist
- -Zeex For ZCMD
- -Y_Less For YSI/y_ini
- -Samp Team For this samp version
- -Gammix For His Capture Zone System
- -Incognito For streamer
- -[HLF]Southclaw For Progress2
- */
- //Login & Register Define
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- //-----------------------
- #define PATH "/Users/%s.ini"
- //Color Define
- #define COL_WHITE "{FFFFFF}"
- #define COL_RED "{F81414}"
- #define COL_GREEN "{00FF22}"
- #define COL_LIGHTBLUE "{00CED1}"
- #define COLOR_ROYAL 0x00C1F6AA
- #define COLOR_GREEN 0x80FF8096
- #define COLOR_BROWN 0xA52A2AAA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_ORANGE 0xFF9900AA
- #define SCM SendClientMessage
- //Team Define
- #define TEAM_ARMY 0
- #define TEAM_TERRORIST 1
- //Team Zone Color
- #define TEAM_ZONE_ARMY_COLOR 0x00800096
- #define TEAM_ZONE_TERRORIST_COLOR 0xFF000096
- //Team Color Define
- #define TEAM_ARMY_COLOUR 0x00800096
- #define TEAM_TERRORIST_COLOUR 0xFF000096
- //Ping Kicker
- #define MAX_PING 800
- //Classes
- #define ARMY_CLASSES_DIALOG 1248
- #define TERRORIST_CLASSES_DIALOG 1249
- //======================================================================
- //======================================================================
- new Text:Army;
- new Text:Vs;
- new Text:Terrorist;
- new Text:Textdraw1;
- new Text:Textdraw3;
- new Text:NiceKill;
- new Text:Dead;
- new Text:TDAssault;
- new Text:TDSniper;
- new Text:TDPyroman;
- new Text:TDRifleman;
- new Text:TDBomber;
- new PlayerText:ptxtCapture[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW, ...};
- new PlayerBar:pbarCapture[MAX_PLAYERS] = {INVALID_PLAYER_BAR_ID, ...};
- new AP;
- new TP;
- new FP;
- new KP;
- new ZP;
- new SP;
- //======================================================================
- new RandomMSG[][] =
- {
- ""COL_GREEN"[AvT]"COL_RED"Use /rules And Read Our Rules !",
- ""COL_GREEN"[AvT]"COL_LIGHTBLUE"Donate To Keep Our Community Alive",
- ""COL_GREEN"[AvT]"COL_WHITE"Invite Your Friends To Join Advert Us !",
- ""COL_GREEN"[AvT]"COL_LIGHTBLUE"If You Are New Here Check /cmds To Check Server Commands",
- ""COL_GREEN"[AvT]"COL_WHITE"Wanna Change Your Team? F4 + /kill Or Use /st",
- ""COL_GREEN"[AvT]"COL_RED"This Server is Owned By Adrien[4]Life /credits For more information"
- };
- //=====================================================================
- new Float:ArmySpawn[][] =
- {
- {615.1069,-587.4838,17.2266},
- {659.0253,-573.6774,16.3359},
- {654.5018,-524.3607,16.3359}
- };
- new Float:TerroristSpawn[][] =
- {
- {1101.2395,-320.7582,73.9922},
- {1076.9631,-287.9576,73.9922},
- {1033.4568,-288.4031,73.9922}
- };
- //====================================================================
- //===================================================================
- enum pInfo
- {
- pScore,
- pPass,
- pCash,
- pAdmin,
- pKills,
- pDeaths
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- //----------------------------------------------------------------------
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Kills",PlayerInfo[playerid][pKills]);
- INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
- INI_Int("Score",PlayerInfo[playerid][pScore]);
- return 1;
- }
- //----------------------------------------------------------------------
- stock UserPath(playerid)
- {
- new string[128],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),PATH,playername);
- return string;
- }
- //==============================================================================
- //--------------------------------------------------------------------
- new gTeam[MAX_PLAYERS];
- new GZ_ZONE1; //army
- new GZ_ZONE2; //Terrorist
- //--------------------------------------------------------------------
- enum e_TEAM_DATA
- {
- team_Name[35], // the team's name
- team_Color // team's color
- };
- new const gTeamData[][e_TEAM_DATA] =
- {
- // Here you shall add all your teams data just like in the below example code
- {"Army", 0x00800096},
- {"Terrorist", 0xFF000096},
- {"None", -1}
- };
- //-------------------------------------------------------------------
- enum e_CAPTURE_ZONE
- {
- zone_Name[35], // the capture zone's name
- Float:zone_Pos[4], // position of the gangzone (minx, miny, maxx, maxy)
- Float:zone_CP[3], // position of the checkpoint
- zone_Owner, // the initial owner of the zone (must be a valid team id which is entered in the "gTeamData" array
- zone_Attacker, // the attacker's if will be stored in this
- zone_Tick[2], // zone's progress will be stored in this (this is split in two parts, the first will go positive and the second will go negative)
- zone_Id, // the gangzone id will be stored in this
- zone_CPId, // the checkpoint id will be stored in this
- zone_Timer, // The timer id will be stored in this
- zone_Players // The number of players in the checkpoint will be stored in this
- };
- new const gCaptureZone[][e_CAPTURE_ZONE] =
- {
- {"Bridge", {572.2159, -198.5239, 1202.821, -116.7788}, {1170.0826,-141.8863,40.9278}, 2},
- {"Farm", {1483.09, -23.35575, 1599.869, 81.74512}, {1543.9758,16.1570,24.1406}, 2},
- {"Colonel House", {1249.533, -81.74512, 1307.922, -11.67788}, {1318.8074,-42.3950,34.5141}, 2},
- {"Market", {151.8124, -93.423, 233.575, -23.35575}, {246.2737,-53.9354,1.5776}, 2},
- {"Big Farm", {-163.4902, -58.38938, 23.35575, 93.423}, {-40.9435,50.8875,3.1172}, 2},
- {"Madog's House", {1214.499, -852.4849, 1319.6, -747.384}, {1299.1782,-788.9468,88.3125}, 2}
- };
- //------------------------------------------------------------------
- CMD:credits(playerid, params[])
- {
- ShowPlayerDialog(playerid, 5421,DIALOG_STYLE_MSGBOX, ""COL_GREEN"Army Vs Terrorist Credits", ""COL_GREEN"Server Owner:"COL_WHITE"Adrian\n"COL_GREEN"Server Scripter:"COL_WHITE"Adrian\n"COL_GREEN"Server Mapper:"COL_WHITE"Adrian", ""COL_GREEN"Close", "");
- return 1;
- }
- CMD:night(playerid,params[])
- {
- SetPlayerTime(playerid, 1, 0);
- SendClientMessage(playerid, COLOR_GREEN,"Night !");
- return 1;
- }
- CMD:day(playerid,params[])
- {
- SetPlayerTime(playerid, 12, 0);
- SendClientMessage(playerid, COLOR_GREEN,"Day");
- return 1;
- }
- CMD:forum(playerid,params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"Register In Our Forum And Be a Part Of The Community");
- SendClientMessage(playerid, COLOR_GREEN,"www.samp.com");
- GameTextForPlayer(playerid, "~b~www.samp.com", 2000, 3);
- return 1;
- }
- //Rules (Command)
- CMD:rules(playerid, params[])
- {
- ShowPlayerDialog(playerid, 1241, DIALOG_STYLE_MSGBOX,""COL_RED"Army Vs Terrorist", ""COL_WHITE"Never Use Any Kind Of Hack Or Cheat\nRespect Everyone Players & Admins\nNever Abuse Server Bugs\nDon't Use C-Bug Slide Bug Or 2 Shot bug OutSide Of DeathMatch\nDo Not Talk About Religions", ""COL_GREEN"Close", "");
- return 1;
- }
- CMD:updates(playerid, params[])
- {
- SendClientMessage(playerid, 0xC2A2DAAA, "Added Some Dialogs");
- SendClientMessage(playerid, 0xC2A2DAAA, "Added Capture Zones");
- SendClientMessage(playerid, 0xC2A2DAAA, "Added Map Icons");
- SendClientMessage(playerid, 0xC2A2DAAA, "Added New Weapon Shop (Briefcase)");
- SendClientMessage(playerid, 0xC2A2DAAA, "Fixed All Bugs");
- SendClientMessage(playerid, 0xC2A2DAAA, "New Maps");
- return 1;
- }
- CMD:objective(playerid,params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "Your Objective Is:");
- SendClientMessage(playerid, COLOR_GREEN, "-To Kill Your Enemy");
- SendClientMessage(playerid, COLOR_GREEN, "-To Save Your Team");
- SendClientMessage(playerid, COLOR_GREEN, "-To Capture Zones");
- return 1;
- }
- /*Credits to Dracoblue*/
- stock udb_hash(buf[]) {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- //--------------------------------------------------------------------
- #define CAPTURE_TIME 30 // time in which a capture zone is captured by a single player
- //--------------------------------------------------------------------
- #define SET_ALPHA(%1,%2) \
- ((%1 & ~0xFF) | (clamp(%2, 0x00, 0xFF)))
- //--------------------------------------------------------------------
- main()
- {
- print("\n==================================");
- print(" ");
- print(" Army Vs Terrorist By Adrien luis");
- print(" Version 2.1 ");
- print(" ");
- print("==================================\n");
- }
- forward SendMSG();
- public SendMSG()
- {
- new randMSG = random(sizeof(RandomMSG));
- SendClientMessageToAll(COLOR_ORANGE, RandomMSG[randMSG]);
- }
- public OnGameModeInit()
- {
- //GangZone Create !!
- GZ_ZONE1 = GangZoneCreate(572.2159, -630.6053, 852.4849, -455.4371); //ARMY
- GZ_ZONE2 = GangZoneCreate(922.5522, -408.7256, 1097.72, -280.269); //TERRORIST
- DisableInteriorEnterExits();
- //=============================================================================
- SetTimer("SendMSG", 60000, true);
- //=======================================================================
- {
- for (new i, j = sizeof(gCaptureZone); i < j; i++) // loop through all capture zones
- {
- // Create the ganzone
- gCaptureZone[i][zone_Id] = GangZoneCreate(gCaptureZone[i][zone_Pos][0], gCaptureZone[i][zone_Pos][1], gCaptureZone[i][zone_Pos][2], gCaptureZone[i][zone_Pos][3], SET_ALPHA(gTeamData[gCaptureZone[i][zone_Owner]][team_Color], 100), 2.0);
- // Create the checkpoint
- gCaptureZone[i][zone_CPId] = CreateDynamicCP(gCaptureZone[i][zone_CP][0], gCaptureZone[i][zone_CP][1], gCaptureZone[i][zone_CP][2], 5.0, 0, .streamdistance = 250.0);
- // Create the mapicon, we don't need to store it because we aren't going to do anything with it later
- CreateDynamicMapIcon(gCaptureZone[i][zone_CP][0], gCaptureZone[i][zone_CP][1], gCaptureZone[i][zone_CP][2], 19, 0, 0, .streamdistance = 700.0);
- // Create the 3DTextlabel, we don't need to store it because we aren't going to do anything with it later
- // we will set the label string in this syntax <"zone's id"\n"zone's name">
- new label[65];
- format(label, sizeof(label), "ZONE %i\n%s", i, gCaptureZone[i][zone_Name]);
- CreateDynamic3DTextLabel(label, 0xFFFFFFFF, gCaptureZone[i][zone_CP][0], gCaptureZone[i][zone_CP][1], gCaptureZone[i][zone_CP][2], 50.0);
- // Set the attacker id to INVALID_PLAYER_ID since no one is connected when server starts
- gCaptureZone[i][zone_Attacker] = INVALID_PLAYER_ID;
- }
- }
- //============================================================================
- UsePlayerPedAnims();
- //GameMode Text
- SetGameModeText("[AVT] TDM|DM|WAR");
- //Team Classes
- AddPlayerClass(287,-233.4256,40.7722,2.6908,247.1557,0,0,0,0,0,0); // Army Class
- AddPlayerClass(200,63.5787,18.5436,5.3161,65.4711,0,0,0,0,0,0); // Terrorist class
- //TextDraws
- Army = TextDrawCreate(476.000000, 426.000000, "Army");
- TextDrawBackgroundColor(Army, 255);
- TextDrawFont(Army, 0);
- TextDrawLetterSize(Army, 0.500000, 1.000000);
- TextDrawColor(Army, 16711935);
- TextDrawSetOutline(Army, 0);
- TextDrawSetProportional(Army, 1);
- TextDrawSetShadow(Army, 1);
- TextDrawSetSelectable(Army, 0);
- Vs = TextDrawCreate(519.000000, 427.000000, "Vs");
- TextDrawBackgroundColor(Vs, 255);
- TextDrawFont(Vs, 0);
- TextDrawLetterSize(Vs, 0.500000, 1.000000);
- TextDrawColor(Vs, 65535);
- TextDrawSetOutline(Vs, 0);
- TextDrawSetProportional(Vs, 1);
- TextDrawSetShadow(Vs, 1);
- TextDrawSetSelectable(Vs, 0);
- Terrorist = TextDrawCreate(541.000000, 427.000000, "Terrorist");
- TextDrawBackgroundColor(Terrorist, 255);
- TextDrawFont(Terrorist, 0);
- TextDrawLetterSize(Terrorist, 0.500000, 1.000000);
- TextDrawColor(Terrorist, -16776961);
- TextDrawSetOutline(Terrorist, 0);
- TextDrawSetProportional(Terrorist, 1);
- TextDrawSetShadow(Terrorist, 1);
- TextDrawSetSelectable(Terrorist, 0);
- Textdraw1 = TextDrawCreate(552.000000, 1.000000, "www.sa-mp.com");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.300000, 1.000000);
- TextDrawColor(Textdraw1, 0x00800096);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- TextDrawSetSelectable(Textdraw1, 0);
- Textdraw3 = TextDrawCreate(573.000000, 13.000000, "Server IP");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 0.300000, 1.000000);
- TextDrawColor(Textdraw3, 0x00800096);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 1);
- TextDrawSetSelectable(Textdraw3, 0);
- NiceKill = TextDrawCreate(288.000000, 117.000000, "Nice Kill");
- TextDrawBackgroundColor(NiceKill, 255);
- TextDrawFont(NiceKill, 0);
- TextDrawLetterSize(NiceKill, 0.500000, 1.000000);
- TextDrawColor(NiceKill, 0x00800096);
- TextDrawSetOutline(NiceKill, 1);
- TextDrawSetProportional(NiceKill, 1);
- Dead = TextDrawCreate(288.000000, 117.000000, "Dead");
- TextDrawBackgroundColor(Dead, 255);
- TextDrawFont(Dead, 0);
- TextDrawLetterSize(Dead, 0.500000, 1.000000);
- TextDrawColor(Dead, 0xFF000096);
- TextDrawSetOutline(Dead, 1);
- TextDrawSetProportional(Dead, 1);
- TDAssault = TextDrawCreate(559.529296, 112.583213, "~y~Assault");
- TextDrawLetterSize(TDAssault, 0.449999, 1.600000);
- TextDrawAlignment(TDAssault, 1);
- TextDrawColor(TDAssault, -2147483393);
- TextDrawSetShadow(TDAssault, 0);
- TextDrawSetOutline(TDAssault, 1);
- TextDrawBackgroundColor(TDAssault, 51);
- TextDrawFont(TDAssault, 1);
- TextDrawSetProportional(TDAssault, 1);
- TDSniper = TextDrawCreate(559.529296, 112.583213, "~y~Sniper");
- TextDrawLetterSize(TDSniper, 0.449999, 1.600000);
- TextDrawAlignment(TDSniper, 1);
- TextDrawColor(TDSniper, -2147483393);
- TextDrawSetShadow(TDSniper, 0);
- TextDrawSetOutline(TDSniper, 1);
- TextDrawBackgroundColor(TDSniper, 51);
- TextDrawFont(TDSniper, 1);
- TextDrawSetProportional(TDSniper, 1);
- TDPyroman = TextDrawCreate(559.529296, 112.583213, "~y~PyroMan");
- TextDrawLetterSize(TDPyroman, 0.449999, 1.600000);
- TextDrawAlignment(TDPyroman, 1);
- TextDrawColor(TDPyroman, -2147483393);
- TextDrawSetShadow(TDPyroman, 0);
- TextDrawSetOutline(TDPyroman, 1);
- TextDrawBackgroundColor(TDPyroman, 51);
- TextDrawFont(TDPyroman, 1);
- TextDrawSetProportional(TDPyroman, 1);
- TDRifleman = TextDrawCreate(559.529296, 112.583213, "~y~RifleMan");
- TextDrawLetterSize(TDRifleman, 0.449999, 1.600000);
- TextDrawAlignment(TDRifleman, 1);
- TextDrawColor(TDRifleman, -2147483393);
- TextDrawSetShadow(TDRifleman, 0);
- TextDrawSetOutline(TDRifleman, 1);
- TextDrawBackgroundColor(TDRifleman, 51);
- TextDrawFont(TDRifleman, 1);
- TextDrawSetProportional(TDRifleman, 1);
- TDBomber = TextDrawCreate(559.529296, 112.583213, "~y~Bomber");
- TextDrawLetterSize(TDBomber, 0.449999, 1.600000);
- TextDrawAlignment(TDBomber, 1);
- TextDrawColor(TDBomber, -2147483393);
- TextDrawSetShadow(TDBomber, 0);
- TextDrawSetOutline(TDBomber, 1);
- TextDrawBackgroundColor(TDBomber, 51);
- TextDrawFont(TDBomber, 1);
- TextDrawSetProportional(TDBomber, 1);
- //Maps
- CreateObject(3286, 1099.18628, -352.68298, 77.61719, 356.85840, 0.00000, 3.14159);
- CreateObject(3928, 1073.85681, -299.72842, 73.00353, 0.00000, 0.00000, -2.00000);
- CreateObject(3928, 1060.33704, -299.17487, 73.01820, 0.00000, 0.00000, -2.00000);
- CreateObject(19911, 1018.71497, -303.51273, 72.84552, 0.00000, 91.00000, 0.00000);
- CreateObject(19911, 1014.75348, -311.43475, 72.84552, 0.00000, 91.00000, 0.00000);
- CreateObject(19911, 1020.21960, -311.48309, 72.84552, 0.00000, 91.00000, 0.00000);
- CreateObject(19911, 1024.40137, -311.33914, 72.84552, 0.00000, 91.00000, 0.00000);
- CreateObject(19911, 1024.36304, -303.15939, 72.84550, 0.00000, -91.00000, 0.00000);
- CreateObject(19911, 1024.16699, -287.75858, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1014.87225, -302.36624, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1015.02539, -296.75400, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1014.70667, -289.69977, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1022.05933, -288.93811, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1021.36414, -294.01358, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(19911, 1024.44287, -293.87454, 72.82245, 0.00000, 92.00000, 0.00000);
- CreateObject(3095, 1014.19153, -302.17334, 72.41022, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1016.14832, -310.96649, 72.41022, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1025.12524, -310.82706, 72.41022, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1025.16833, -301.97818, 72.41022, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1016.14667, -302.10275, 72.41022, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1012.80798, -302.98526, 72.42213, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1016.38495, -303.08127, 72.43849, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1019.21930, -296.91699, 72.43849, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1022.70276, -296.84232, 72.43849, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1016.35840, -289.83966, 72.43849, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1016.37683, -297.73770, 72.43849, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1025.31433, -290.12933, 72.43162, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1024.35535, -289.74420, 72.43162, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1019.27673, -289.68228, 72.45631, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1050.87952, -296.65485, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1048.61731, -288.69711, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1042.04138, -288.59189, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1042.41150, -295.52658, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1042.43835, -303.61160, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1042.44653, -311.47272, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1050.77136, -312.75552, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3095, 1050.82874, -304.22351, 72.41444, 0.00000, 0.00000, 0.00000);
- CreateObject(3268, 1031.65515, -295.00464, 72.80363, 0.00000, 0.00000, 90.00000);
- CreateObject(10244, 1048.48706, -291.62317, 75.09330, 0.00000, 0.00000, 90.00000);
- CreateObject(8253, 1071.95056, -354.25009, 76.50608, 0.00000, 0.00000, 89.00000);
- CreateObject(16375, -155.44121, 143.28122, 3.19726, 0.00000, 0.00000, 0.00000);
- CreateObject(11701, -69.10435, 56.65765, 2.67566, 0.00000, 0.00000, 0.00000);
- CreateObject(4517, 107.25222, -211.28162, 2.20090, 0.00000, 0.00000, 87.00000);
- CreateObject(1308, 0.71346, 7.37879, -5.71094, 356.85840, 0.00000, -3.14159);
- CreateObject(1308, -5741.74268, 7731.75586, -2812.42407, 0.00000, 0.00000, 0.00000);
- CreateObject(4517, 224.54132, -71.48665, 3.18970, 0.00000, 0.00000, 89.00000);
- CreateObject(11701, -68.29740, 54.65344, 2.67566, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -165.81358, -7.47062, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -176.38896, -21.78841, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -175.96866, -13.46815, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -165.68629, -14.77469, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -166.09659, -22.59727, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -172.16875, -17.35063, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -184.82472, -13.03951, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -184.81770, -21.47007, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -188.30579, -18.00269, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -194.38997, -21.18836, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -193.92490, -12.93788, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -192.39655, -6.46823, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -184.52174, -7.34516, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, -174.74651, -8.07949, 2.03384, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.54247, -3.92291, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 112.34622, 1.35126, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.78904, -2.15687, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.28790, -6.20247, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.16300, -7.16073, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.27264, -5.00180, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.44015, -2.97599, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 112.18533, -0.34838, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 111.90121, -1.12671, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(19420, 112.09303, 0.46782, -0.06826, 0.00000, 0.00000, 0.00000);
- CreateObject(3276, 27.04425, -25.48187, 2.72400, 0.00000, 0.00000, -51.00000);
- CreateObject(3276, -1.52463, 9.01791, 2.72400, 0.00000, 0.00000, -51.00000);
- CreateObject(3276, 5.83287, -0.14425, 2.72400, 0.00000, 0.00000, -51.00000);
- CreateObject(3276, 13.50103, -9.27779, 2.72400, 0.00000, 0.00000, -51.00000);
- CreateObject(3276, 21.08574, -18.24876, 2.72400, 0.00000, 0.00000, -51.00000);
- CreateObject(3276, 91.61282, -109.41101, 0.82470, 0.00000, 0.00000, 68.00000);
- CreateObject(3276, 103.97825, -22.87585, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 101.64711, -46.89343, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 100.33216, -58.65725, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 99.19132, -69.93195, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 97.93525, -81.12670, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 96.64040, -92.24730, 0.82470, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 93.79042, -103.34016, 0.82470, 0.00000, 0.00000, 68.00000);
- CreateObject(3276, -68.73738, -123.98145, 2.31140, 0.00000, 0.00000, 75.00000);
- CreateObject(3276, 77.28020, -127.42520, 0.55570, 0.00000, 0.00000, 46.00000);
- CreateObject(3276, 70.66497, -133.98799, 0.55570, 0.00000, 0.00000, 46.00000);
- CreateObject(3276, 61.57759, -140.32080, 0.55570, 0.00000, 0.00000, 24.00000);
- CreateObject(3276, 51.68510, -144.74240, 0.55570, 0.00000, 0.00000, 24.00000);
- CreateObject(3276, 40.57776, -148.11110, 0.55570, 0.00000, 0.00000, 9.00000);
- CreateObject(3276, 29.56488, -149.32071, 0.55570, 0.00000, 0.00000, 3.00000);
- CreateObject(3276, 18.69400, -148.14810, 0.34223, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, 8.14501, -145.81792, 0.34223, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -1.99462, -143.55057, 0.34223, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -8.85205, -142.07805, 1.05414, 0.00000, 0.00000, -12.00000);
- CreateObject(12922, 85.26769, -118.72221, 3.05280, 0.00000, 0.00000, 47.00000);
- CreateObject(3276, 41.58756, 2.79704, 2.71650, 0.00000, 0.00000, 70.00000);
- CreateObject(3276, 23.48457, 23.20078, 2.71655, 0.00000, 0.00000, -21.00000);
- CreateObject(3276, 33.50760, 19.42537, 2.71655, 0.00000, 0.00000, -21.00000);
- CreateObject(3276, 40.40745, 16.71961, 2.71655, 0.00000, 0.00000, -21.00000);
- CreateObject(3276, 43.93929, 9.27663, 2.71650, 0.00000, 0.00000, 70.00000);
- CreateObject(3276, 102.87297, -34.82164, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 110.93517, 19.06957, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, 111.59922, 27.52496, 0.82469, 0.00000, 0.00000, 84.00000);
- CreateObject(3276, -19.29681, -139.88977, 1.68070, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -26.21968, -138.33038, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -36.61254, -136.17886, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -47.17146, -133.69203, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -56.96334, -131.64532, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -61.69199, -130.87430, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3276, -65.25665, -129.92700, 2.31145, 0.00000, 0.00000, -12.00000);
- CreateObject(3286, 1099.11719, -358.47656, 77.61719, 356.85840, 0.00000, 3.14159);
- CreateObject(3286, 1099.11719, -358.47656, 77.61719, 356.85840, 0.00000, 3.14159);
- CreateObject(10244, 613.68250, -592.31970, 18.07840, 0.00000, 0.00000, 180.00000);
- CreateObject(981, 874.98822, -560.56458, 18.52535, 0.00000, 0.00000, 111.00000);
- CreateObject(10244, 697.61572, -591.39240, 16.69084, 0.00000, 0.00000, 0.00000);
- CreateObject(18451, 638.68683, -537.93762, 15.70700, 0.00000, 0.00000, -14.00000);
- CreateObject(967, 649.22449, -537.77942, 15.30573, 0.00000, 0.00000, 178.00000);
- CreateObject(18783, 985.17133, -296.35202, 67.58772, 0.00000, 0.00000, 0.00000);
- CreateObject(18783, 985.14307, -316.34061, 67.58772, 0.00000, 0.00000, 0.00000);
- CreateObject(18783, 985.11346, -336.28540, 67.58772, 0.00000, 0.00000, 0.00000);
- CreateObject(18783, 985.04498, -375.75366, 67.58772, 0.00000, 0.00000, 0.00000);
- CreateObject(18783, 985.08185, -355.92148, 67.58772, 0.00000, 0.00000, 0.00000);
- CreateObject(3279, 979.77448, -378.87778, 69.85338, 0.00000, 0.00000, 0.00000);
- CreateObject(3279, 980.29688, -292.87479, 69.85338, 0.00000, 0.00000, 0.00000);
- CreateObject(3092, 1097.48389, -315.05774, 74.47026, 0.00000, 0.00000, 171.00000);
- CreateObject(735, 1010.72278, -454.62094, 48.48750, 0.00000, 0.00000, 0.00000);
- CreateObject(735, 1039.62476, -443.66150, 48.39125, 0.00000, 0.00000, 0.00000);
- CreateObject(3092, 1010.72034, -455.47467, 54.87877, 0.00000, 0.00000, 146.00000);
- CreateObject(1431, 1114.58020, -346.28046, 73.43682, 0.00000, 0.00000, 0.00000);
- CreateObject(3630, 1099.84888, -331.78833, 74.43178, 0.00000, 0.00000, 0.00000);
- CreateObject(968, 1007.41785, -407.38101, 66.50338, 0.00000, 0.00000, 0.00000);
- CreateObject(967, 1008.23767, -408.62714, 65.00004, 0.00000, 0.00000, -85.00000);
- CreateObject(966, 1007.42181, -407.34070, 65.51560, 0.00000, 0.00000, -74.00000);
- CreateObject(987, 987.84283, -286.45316, 69.94580, 0.00000, 0.00000, 181.00000);
- CreateObject(987, 986.86267, -385.52582, 70.01973, 0.00000, 0.00000, 180.00000);
- CreateObject(987, 974.95398, -385.42520, 70.09924, 0.00000, 0.00000, 90.00000);
- CreateObject(987, 974.87122, -373.52451, 70.04545, 0.00000, 0.00000, 90.00000);
- CreateObject(987, 975.71631, -298.35309, 69.94585, 0.00000, 0.00000, 90.00000);
- CreateObject(987, 975.70752, -310.35263, 69.94585, 0.00000, 0.00000, 90.00000);
- CreateObject(16375, 996.52661, -345.98871, 70.18510, 0.00000, 0.00000, 90.00000);
- CreateObject(3866, 700.22302, -508.31641, 20.03807, 0.00000, 0.00000, 180.00000);
- CreateObject(3887, 704.97223, -555.94092, 18.63930, 0.00000, 0.00000, -180.00000);
- CreateObject(840, 729.91821, -532.31842, 16.82320, 0.00000, 0.00000, 200.00000);
- CreateObject(840, 729.19049, -526.49310, 16.82323, 0.00000, 0.00000, 0.00000);
- CreateObject(1308, 782.70038, -540.58398, 15.59380, 357.00000, 91.00000, -3.00000);
- CreateObject(16326, 1180.90393, -146.58272, 39.71403, 0.00000, 0.00000, -150.00000);
- CreateObject(26, 1180.84607, -142.49210, 40.80143, 86.00000, 11.00000, -163.00000);
- CreateObject(19307, 1168.43652, -154.53290, 52.93190, 0.00000, 0.00000, -40.00000);
- CreateObject(18259, 1326.39978, -33.71413, 34.17086, 0.00000, 0.00000, 128.00000);
- CreateObject(16327, 767.76343, -224.90218, 10.82007, 0.00000, 0.00000, -2.00000);
- CreateObject(356, 1167.32935, -151.32970, 54.64710, 182.00000, 115.00000, -56.00000);
- CreateObject(356, 1167.09180, -150.85545, 54.64709, 182.00000, 115.00000, -244.00000);
- CreateObject(2056, 1166.45190, -152.22771, 53.52420, 0.00000, 0.00000, 5.00000);
- CreateObject(2032, 1158.46350, -136.73369, 48.38917, 0.00000, 0.00000, 0.00000);
- CreateObject(2036, 1166.63831, -152.83264, 53.37585, 0.00000, 0.00000, 0.00000);
- CreateObject(2041, 1167.12256, -153.14107, 53.58143, 0.00000, 0.00000, 0.00000);
- CreateObject(2045, 1175.92383, -142.95636, 38.08439, 0.00000, 0.00000, 0.00000);
- CreateObject(2064, 1157.93298, -140.55540, 49.13952, 0.00000, 0.00000, -24.00000);
- CreateObject(2034, 1166.19128, -153.25490, 53.40018, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1169.73425, -152.32448, 52.98964, 0.00000, 0.00000, 114.00000);
- CreateObject(2060, 1168.45703, -154.52960, 52.71069, 0.00000, 0.00000, 24.00000);
- CreateObject(2060, 1168.46045, -154.50952, 52.80207, 0.00000, 0.00000, 24.00000);
- CreateObject(2060, 1168.50183, -154.49336, 52.93498, 0.00000, 0.00000, 24.00000);
- CreateObject(2060, 1169.73267, -152.30466, 52.66199, 0.00000, 0.00000, 114.00000);
- CreateObject(2060, 1169.73560, -152.30338, 52.80761, 0.00000, 0.00000, 114.00000);
- CreateObject(2057, 1168.22461, -150.09441, 52.79130, 0.00000, 0.00000, -24.00000);
- CreateObject(2046, 1183.07202, -149.18315, 43.75954, 0.00000, 0.00000, 117.00000);
- CreateObject(3014, 1184.27307, -150.14568, 42.46350, 0.00000, 0.00000, 30.00000);
- CreateObject(3014, 1184.77258, -151.05414, 42.50584, 0.00000, 0.00000, 30.00000);
- CreateObject(1583, 1183.99744, -150.76746, 42.77583, 0.00000, 0.00000, -60.00000);
- CreateObject(2985, 1186.82227, -149.76984, 42.23020, 0.00000, 0.00000, 0.00000);
- CreateObject(18885, 1185.40857, -147.93118, 43.31024, 0.00000, 0.00000, 27.00000);
- CreateObject(19908, 1158.66968, -138.66658, 48.42010, 0.00000, 91.00000, 25.00000);
- CreateObject(837, 1166.92102, -152.29843, 50.17804, 21.00000, 98.00000, -4.00000);
- CreateObject(19307, 1185.20032, -152.14412, 45.15881, 0.00000, 0.00000, 0.00000);
- CreateObject(19307, 1169.58130, -152.26598, 52.98447, 0.00000, 0.00000, 0.00000);
- CreateObject(16327, 853.33154, -223.68581, 18.08170, 0.00000, 0.00000, -2.00000);
- CreateObject(19908, 1167.52368, -152.49182, 52.59680, 0.00000, 91.00000, 25.00000);
- CreateObject(13360, 1164.07727, -148.26274, 52.16297, 62.00000, 360.00000, 25.00000);
- CreateObject(13360, 1163.52722, -147.09779, 51.48104, 62.38000, 360.12000, 25.10000);
- CreateObject(13360, 1522.41650, 68.41660, 38.70580, 62.00000, 360.00000, -91.00000);
- CreateObject(13360, 1164.92615, -149.98260, 52.66591, 91.00000, 86.00000, 121.00000);
- CreateObject(13360, 1162.12195, -144.13168, 50.30433, 91.00000, 86.00000, 121.00000);
- CreateObject(13360, 1162.98230, -145.87625, 50.77744, 62.38000, 360.12000, 25.10000);
- CreateObject(13360, 1161.27820, -142.38974, 49.79652, 62.38000, 360.12000, 25.10000);
- CreateObject(2032, 1166.04309, -153.04012, 52.58311, 0.00000, 0.00000, 0.00000);
- CreateObject(2985, 1160.60144, -138.10320, 48.41415, 0.00000, 0.00000, 0.00000);
- CreateObject(2064, 1169.59216, -153.69920, 53.31760, 0.00000, 0.00000, 84.00000);
- CreateObject(2036, 1158.83557, -136.70822, 49.20747, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1156.65344, -139.87917, 48.87409, 0.00000, 0.00000, -64.00000);
- CreateObject(2060, 1156.71362, -139.76704, 48.56996, 0.00000, 0.00000, -64.00000);
- CreateObject(2060, 1156.71265, -139.83766, 48.64521, 0.00000, 0.00000, -64.00000);
- CreateObject(2060, 1156.64355, -139.85081, 48.75084, 0.00000, 0.00000, -64.00000);
- CreateObject(19911, 1525.64868, 70.54393, 38.45046, 0.00000, 91.00000, 0.00000);
- CreateObject(19911, 1513.41077, 69.37113, 41.82444, 0.00000, 91.00000, 0.00000);
- CreateObject(13360, 1160.60242, -140.94148, 48.93551, 62.38000, 360.12000, 25.10000);
- CreateObject(13360, 1517.46838, 68.48963, 41.32018, 62.00000, 360.00000, -91.00000);
- CreateObject(13360, 1519.29077, 68.46955, 40.34725, 62.00000, 360.00000, -91.00000);
- CreateObject(13360, 1520.74658, 68.45561, 39.59657, 62.00000, 360.00000, -91.00000);
- CreateObject(2064, 1511.28467, 65.53610, 42.47270, 0.00000, 0.00000, -49.00000);
- CreateObject(2060, 1516.30347, 72.07493, 42.33598, 0.00000, 0.00000, 267.00000);
- CreateObject(2060, 1512.57825, 65.11209, 42.00326, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1512.57922, 65.13290, 42.19353, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1512.57971, 65.14538, 42.36227, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1510.71533, 67.09770, 42.08570, 0.00000, 0.00000, 90.00000);
- CreateObject(2060, 1510.73816, 67.09908, 42.18552, 0.00000, 0.00000, 90.00000);
- CreateObject(2060, 1510.71936, 67.09794, 42.28535, 0.00000, 0.00000, 90.00000);
- CreateObject(1737, 1513.51428, 70.56636, 41.80348, 0.00000, 0.00000, 0.00000);
- CreateObject(2044, 1513.38196, 70.54842, 42.66653, 0.00000, 0.00000, 0.00000);
- CreateObject(2034, 1513.86987, 70.83798, 42.59658, 0.00000, 0.00000, 0.00000);
- CreateObject(2985, 1515.79590, 73.22820, 42.11676, 0.00000, 0.00000, 47.00000);
- CreateObject(2059, 1527.79675, 74.36832, 38.52065, 0.00000, 0.00000, 0.00000);
- CreateObject(3014, 1525.41650, 71.34200, 38.66559, 0.00000, 0.00000, 0.00000);
- CreateObject(3014, 1527.41675, 67.94656, 38.66559, 0.00000, 0.00000, 0.00000);
- CreateObject(3014, 1522.92957, 67.49147, 38.66559, 0.00000, 0.00000, 0.00000);
- CreateObject(2058, 1527.33496, 68.00034, 38.93707, 0.00000, 0.00000, 0.00000);
- CreateObject(2985, 1523.47607, 66.53910, 38.48270, 0.00000, 0.00000, -120.00000);
- CreateObject(2059, 1526.32422, 66.97126, 38.52065, 0.00000, 0.00000, 0.00000);
- CreateObject(2064, 1528.10706, 70.31532, 39.07410, 0.00000, 0.00000, 76.00000);
- CreateObject(3124, 1527.19727, 68.04924, 38.73101, 120.00000, -287.00000, 11.00000);
- CreateObject(3014, 1524.26465, 66.35284, 38.66559, 0.00000, 0.00000, 0.00000);
- CreateObject(2060, 1510.71973, 67.13904, 42.46502, 0.00000, 0.00000, 90.00000);
- CreateObject(2060, 1514.46741, 73.66690, 41.95270, 0.00000, 0.00000, 178.00000);
- CreateObject(2060, 1514.46558, 73.69641, 42.14382, 0.00000, 0.00000, 177.00000);
- CreateObject(2060, 1514.46106, 73.79041, 42.33155, 0.00000, 0.00000, 177.00000);
- CreateObject(2060, 1514.44666, 73.90124, 42.41751, 0.00000, 0.00000, 177.00000);
- CreateObject(2060, 1516.28625, 72.07472, 41.87238, 0.00000, 0.00000, 267.00000);
- CreateObject(2060, 1516.30042, 72.07487, 41.97466, 0.00000, 0.00000, 267.00000);
- CreateObject(2060, 1516.30542, 72.07526, 42.09826, 0.00000, 0.00000, 267.00000);
- CreateObject(2060, 1516.30542, 72.07526, 42.20898, 0.00000, 0.00000, 267.00000);
- CreateObject(1299, 1523.38367, 73.62442, 38.93078, 0.00000, 0.00000, 0.00000);
- CreateObject(1636, 1524.31250, 66.40268, 38.98055, 0.00000, 0.00000, 0.00000);
- CreateObject(3057, 1526.38159, 74.95715, 38.91940, 86.00000, 25.00000, 4.00000);
- CreateObject(3057, 1528.10681, 73.04310, 38.91940, 90.00000, 25.00000, 4.00000);
- CreateObject(1252, 1523.00085, 67.42889, 39.18557, 0.00000, 0.00000, 0.00000);
- CreateObject(1252, 1513.55115, 70.83194, 42.79862, 0.00000, 0.00000, 0.00000);
- CreateObject(1252, 1513.93811, 70.31034, 42.79862, 0.00000, 0.00000, 0.00000);
- CreateObject(364, 1514.24561, 70.15208, 42.57863, 0.00000, 0.00000, 0.00000);
- CreateObject(1636, 1514.70386, 70.75934, 42.62284, 0.00000, 0.00000, 0.00000);
- CreateVehicle(525, 1087.1550, -357.8138, 74.2946, 0.0000, -1, -1, 100);
- CreateVehicle(525, 1113.2980, -358.2016, 74.2946, 0.0000, -1, -1, 100);
- CreateVehicle(528, 1114.7788, -323.3179, 74.9642, 89.0000, -1, -1, 100);
- CreateVehicle(528, 1115.1165, -312.9074, 75.2008, 89.0000, -1, -1, 100);
- CreateVehicle(528, 1114.9542, -317.9066, 74.9642, 89.0000, -1, -1, 100);
- CreateVehicle(468, 1096.5948, -298.8706, 73.8383, 0.0000, -1, -1, 100);
- CreateVehicle(468, 1095.0153, -298.8154, 73.8383, 0.0000, -1, -1, 100);
- CreateVehicle(468, 1098.0763, -298.8451, 73.8383, 0.0000, -1, -1, 100);
- CreateVehicle(468, 1101.0291, -298.8737, 73.8383, 0.0000, -1, -1, 100);
- CreateVehicle(468, 1099.5533, -298.9402, 73.8383, 0.0000, -1, -1, 100);
- CreateVehicle(488, 1060.4711, -299.2728, 74.3353, 0.0000, -1, -1, 100);
- CreateVehicle(488, 1073.9871, -299.2267, 74.2692, 0.0000, -1, -1, 100);
- CreateVehicle(400, 1050.4293, -358.8013, 75.1115, 0.0000, -1, -1, 100);
- CreateVehicle(400, 1055.5978, -358.8767, 75.1115, 0.0000, -1, -1, 100);
- CreateVehicle(466, 1042.0157, -297.5663, 74.2246, 0.0000, -1, -1, 100);
- CreateVehicle(466, 1025.4570, -297.0564, 74.2246, 0.0000, -1, -1, 100);
- CreateVehicle(466, 1035.9821, -297.7848, 74.2246, 0.0000, -1, -1, 100);
- CreateVehicle(466, 1020.7440, -297.1349, 74.2246, 0.0000, -1, -1, 100);
- CreateVehicle(466, 1031.0426, -297.5095, 74.2246, 0.0000, -1, -1, 100);
- CreateVehicle(415, 1114.2745, -339.4200, 74.9349, 89.0000, -1, -1, 100);
- CreateVehicle(415, 1114.5636, -334.1885, 74.9349, 89.0000, -1, -1, 100);
- CreateVehicle(468, -97.0966, -49.0106, 6.1903, -18.0000, -1, -1, 100);
- CreateVehicle(468, -93.7446, -38.0131, 6.1903, -18.0000, -1, -1, 100);
- CreateVehicle(468, -89.5272, -39.7384, 6.1903, -18.0000, -1, -1, 100);
- CreateVehicle(468, -91.7430, -39.0377, 6.1903, -18.0000, -1, -1, 100);
- CreateVehicle(468, -93.3300, -50.2016, 6.1903, -18.0000, -1, -1, 100);
- CreateVehicle(422, -91.8990, -41.7467, 3.1812, -17.0000, -1, -1, 100);
- CreateVehicle(422, -94.8049, -48.9359, 3.1812, -17.0000, -1, -1, 100);
- CreateVehicle(400, 1045.5728, -358.8702, 75.1115, 0.0000, -1, -1, 100);
- CreateVehicle(525, 1106.6869, -358.2000, 74.2946, 0.0000, -1, -1, 100);
- CreateVehicle(525, 1093.8485, -357.9486, 74.2946, 0.0000, -1, -1, 100);
- CreateVehicle(432, 1063.6691, -351.4601, 73.9310, 0.0000, -1, -1, 100);
- CreateVehicle(432, 1080.3024, -352.3675, 73.9350, 0.0000, -1, -1, 100);
- CreateVehicle(470, 1068.9645, -351.6649, 73.7523, 0.0000, -1, -1, 100);
- CreateVehicle(470, 1075.3798, -351.2832, 73.7523, 0.0000, -1, -1, 100);
- CreateVehicle(411, 1112.5443, -306.5612, 74.5937, 91.0000, -1, -1, 100);
- CreateVehicle(470, 614.2853, -609.6663, 16.9163, -89.0000, -1, -1, 100);
- CreateVehicle(470, 614.3416, -597.3021, 16.9163, -89.0000, -1, -1, 100);
- CreateVehicle(470, 614.3976, -601.4678, 16.9163, -89.0000, -1, -1, 100);
- CreateVehicle(470, 614.3918, -606.1796, 16.9163, -89.0000, -1, -1, 100);
- CreateVehicle(601, 666.3529, -549.5300, 16.1111, 90.0000, -1, -1, 100);
- CreateVehicle(601, 666.6446, -542.9348, 15.8545, 90.0000, -1, -1, 100);
- CreateVehicle(427, 657.4159, -582.9055, 16.8182, 0.0000, -1, -1, 100);
- CreateVehicle(427, 668.2549, -582.9464, 16.8182, 0.0000, -1, -1, 100);
- CreateVehicle(427, 663.1214, -582.9044, 16.8182, 0.0000, -1, -1, 100);
- CreateVehicle(447, 615.7437, -547.9619, 23.0276, -89.0000, -1, -1, 100);
- CreateVehicle(497, 613.9861, -566.5570, 28.2926, -89.0000, -1, -1, 100);
- CreateVehicle(497, 622.0005, -577.7729, 28.2926, -89.0000, -1, -1, 100);
- CreateVehicle(455, 639.7440, -513.4670, 16.8256, 0.0000, -1, -1, 100);
- CreateVehicle(455, 633.9758, -513.4856, 16.8256, 0.0000, -1, -1, 100);
- CreateVehicle(490, 702.9266, -442.2450, 16.7649, 0.0000, -1, -1, 100);
- CreateVehicle(490, 692.9175, -442.2678, 16.7649, 0.0000, -1, -1, 100);
- CreateVehicle(490, 708.2130, -442.3239, 16.7649, 0.0000, -1, -1, 100);
- CreateVehicle(535, 751.7145, -499.0955, 17.9846, 0.0000, -1, -1, 100);
- CreateVehicle(535, 762.0278, -510.6992, 17.9846, 0.0000, -1, -1, 100);
- CreateVehicle(596, 708.4964, -464.6777, 16.3831, -90.0000, -1, -1, 100);
- CreateVehicle(596, 695.0436, -460.7774, 16.3831, 90.0000, -1, -1, 100);
- CreateVehicle(596, 695.2007, -470.3507, 16.3831, 90.0000, -1, -1, 100);
- CreateVehicle(596, 708.5197, -470.9723, 16.3831, -90.0000, -1, -1, 100);
- CreateVehicle(573, 662.3024, -618.5103, 17.4560, 0.0000, -1, -1, 100);
- CreateVehicle(573, 667.6757, -618.7308, 17.4560, 0.0000, -1, -1, 100);
- CreateVehicle(581, 645.5807, -497.2755, 16.1053, 0.0000, -1, -1, 100);
- CreateVehicle(581, 648.3999, -497.1700, 16.1053, 0.0000, -1, -1, 100);
- CreateVehicle(581, 650.0463, -497.2165, 16.1053, 0.0000, -1, -1, 100);
- CreateVehicle(581, 646.9429, -497.3126, 16.1053, 0.0000, -1, -1, 100);
- CreateVehicle(556, 665.9933, -470.9893, 16.4139, 90.0000, -1, -1, 100);
- CreateVehicle(556, 666.1354, -461.6251, 16.4139, 90.0000, -1, -1, 100);
- CreateVehicle(469, 613.3242, -604.7245, 23.1530, 0.0000, -1, -1, 100);
- CreateVehicle(468, 632.0919, -610.7502, 16.1881, 0.0000, -1, -1, 100);
- CreateVehicle(468, 637.1979, -610.7223, 16.1881, 0.0000, -1, -1, 100);
- CreateVehicle(468, 635.5715, -610.7792, 16.1881, 0.0000, -1, -1, 100);
- CreateVehicle(468, 633.8314, -610.8134, 16.1881, 0.0000, -1, -1, 100);
- CreateVehicle(490, 697.7187, -442.1473, 16.7649, 0.0000, -1, -1, 100);
- CreateVehicle(528, 649.1561, -505.7073, 17.1381, 0.0000, -1, -1, 100);
- CreateVehicle(528, 604.3616, -509.9914, 16.2524, 0.0000, -1, -1, 100);
- CreateVehicle(528, 598.8519, -509.9040, 16.2524, 0.0000, -1, -1, 100);
- CreateVehicle(528, 620.7722, -608.8966, 17.5715, 0.0000, -1, -1, 100);
- CreateVehicle(490, 97.3925, -164.8034, 3.1681, -90.0000, -1, -1, 100);
- CreateVehicle(590, 683.3737, -552.3087, 17.6078, 0.0000, -1, -1, 100);
- CreateVehicle(476, 984.8221, -320.6608, 72.5942, 89.0000, -1, -1, 100);
- CreateVehicle(488, 985.7529, -368.2279, 71.5881, 88.0000, -1, -1, 100);
- CreateVehicle(476, 984.3027, -352.9901, 72.5942, 89.0000, -1, -1, 100);
- CreateVehicle(476, 984.4059, -337.1962, 72.5942, 89.0000, -1, -1, 100);
- CreateVehicle(476, 664.8478, -513.0411, 25.2908, 90.0000, -1, -1, 100);
- CreateVehicle(490, 1175.0331, -150.8198, 41.7582, 25.0000, -1, -1, 100);
- AddStaticVehicle(490,1334.8173,-24.5290,33.3982,220.9740,0,0);
- //PickUps
- AP = CreatePickup(1210,2,611.0301,-586.0072,17.2266, -1);
- TP = CreatePickup(1210,2,1105.7391,-301.6544,74.5391, -1);
- FP = CreatePickup(1318,2, 1167.2137,-155.4908,40.7918);
- KP = CreatePickup(1318,2, 1156.4288,-137.7589,49.5035);
- ZP = CreatePickup(1318,2, 1512.2543,70.4323,28.4556);
- SP = CreatePickup(1318,2, 1527.5176,74.4280,39.4725);
- //3D Text Labels
- //Army
- Create3DTextLabel("Army Spawn", 0x00800096, 615.1069,-587.4838,17.2266, 50.0,0);
- Create3DTextLabel("Army Spawn", 0x00800096, 659.0253,-573.6774,16.3359, 50.0,0);
- Create3DTextLabel("Army Spawn", 0x00800096, 654.5018,-524.3607,16.3359, 50.0,0);
- //Terrorist
- Create3DTextLabel("Terrorist Spawn", 0xFF000096, 1101.2395,-320.7582,73.9922, 50.0,0);
- Create3DTextLabel("Terrorist Spawn", 0xFF000096, 1076.9631,-287.9576,73.9922, 50.0,0);
- Create3DTextLabel("Terrorist Spawn", 0xFF000096, 1033.4568,-288.4031,73.9922, 50.0,0);
- return 1;
- }
- //--------
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- {
- if(pickupid == AP) ShowPlayerDialog(playerid, 5421, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\nDesert Eagle - 6000$\nSatchel - 10000$\nTec-9 - 5000$\nSniper Rifle - 6000$\nCombat Shotgun - 7000$", "Select", "Cancel");
- }
- {
- if(pickupid == TP) ShowPlayerDialog(playerid, 5421, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\nDesert Eagle - 6000$\nSatchel - 10000$\nTec-9 - 5000$\nSniper Rifle - 6000$\nCombat Shotgun - 7000$", "Select", "Cancel");
- }
- {
- if(pickupid == FP) SetPlayerPos(playerid, 1168.6492,-152.6277,53.6335);
- }
- {
- if(pickupid == KP) SetPlayerPos(playerid, 1165.7585,-149.7233,43.2448);
- }
- {
- if(pickupid == ZP) SetPlayerPos(playerid, 1513.8105,71.4633,42.8722);
- }
- {
- if(pickupid == SP) SetPlayerPos(playerid, 1522.5698,65.0223,27.2381);
- }
- return 1;
- }
- //-------
- public OnPlayerRequestClass(playerid, classid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x,y,z);
- switch(classid)
- {
- case 0:
- {
- // Army //
- SetPlayerFacingAngle(playerid, 91.9996);
- SetPlayerPos(playerid, 617.7850,-596.2908,22.7258);
- SetPlayerCameraPos(playerid, 610.3941,-597.0658,22.7258);
- SetPlayerCameraLookAt(playerid, 617.7850,-596.2908,22.7258);
- gTeam[playerid] = TEAM_ARMY;
- SetPlayerTeam(playerid, 0);
- SetPlayerSkin(playerid, 287);
- SetPlayerColor(playerid, TEAM_ARMY_COLOUR);
- GameTextForPlayer(playerid, "~g~Army", 2000, 3);
- }
- case 1:
- {
- // TERRORIST //
- SetPlayerFacingAngle(playerid, 40.5925);
- SetPlayerPos(playerid, 1046.2046,-304.5462,80.2873);
- SetPlayerCameraPos(playerid, 1040.6462,-298.9291,81.1935);
- SetPlayerCameraLookAt(playerid, 1046.2046,-304.5462,80.2873);
- SetPlayerTeam(playerid, 1);
- SetPlayerSkin(playerid, 247);
- gTeam[playerid] = TEAM_TERRORIST;
- SetPlayerColor(playerid, TEAM_TERRORIST_COLOUR);
- GameTextForPlayer(playerid, "~r~Terrorist", 2000, 3);
- }
- }
- return 1;
- }
- public OnGameModeExit()
- {
- TextDrawHideForAll(NiceKill);
- TextDrawDestroy(NiceKill);
- TextDrawHideForAll(Dead);
- TextDrawDestroy(Dead);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- {
- // Create capture HUDS
- pbarCapture[playerid] = CreatePlayerProgressBar(playerid, 44.000000, 318.000000, 89.500000, 3.700000, -1429936641, CAPTURE_TIME, 0);
- ptxtCapture[playerid] = CreatePlayerTextDraw(playerid, 87.000000, 308.000000, "Capturing !...");
- PlayerTextDrawBackgroundColor(playerid, ptxtCapture[playerid], 255);
- PlayerTextDrawFont(playerid, ptxtCapture[playerid], 1);
- PlayerTextDrawLetterSize(playerid, ptxtCapture[playerid], 0.290000, 1.099999);
- PlayerTextDrawColor(playerid, ptxtCapture[playerid], -1);
- PlayerTextDrawAlignment(playerid, ptxtCapture[playerid], 2);
- PlayerTextDrawSetOutline(playerid, ptxtCapture[playerid], 1);
- // show all capture zones
- for(new i, j = sizeof(gCaptureZone); i < j; i++) // loop through all capture zones and show their gangzones
- {
- GangZoneShowForPlayer(playerid, gCaptureZone[i][zone_Id]);
- }
- }
- new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "%s has joined the server", pname);
- SendClientMessageToAll(0x80FF8096, string);
- //GangZone
- GangZoneShowForPlayer(playerid, GZ_ZONE2, 0xFF000096); //Terrorist Base
- GangZoneShowForPlayer(playerid, GZ_ZONE1, 0x00800096); //Army Base
- //Register & login system
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_LIGHTBLUE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_GREEN"Type a password below to register a new account.","Register","Quit");
- }
- RemoveBuildingForPlayer(playerid, 1308, 9.0234, 15.1563, -5.7109, 0.25);
- RemoveBuildingForPlayer(playerid, 3347, 1114.2969, -353.8203, 72.7969, 0.25);
- RemoveBuildingForPlayer(playerid, 3347, 1107.5938, -358.5156, 72.7969, 0.25);
- RemoveBuildingForPlayer(playerid, 3376, 1070.4766, -355.1641, 77.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 3404, 1019.3828, -300.2422, 72.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 3404, 1045.5625, -300.6016, 72.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 1503, 1019.3203, -282.7891, 73.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 13451, 1146.1406, -369.1328, 49.3281, 0.25);
- RemoveBuildingForPlayer(playerid, 3335, 1183.8203, -153.7188, 39.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 1351, 221.5156, -77.5234, 0.4609, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 661.0781, -624.0078, 15.8125, 0.25);
- RemoveBuildingForPlayer(playerid, 782, 643.1484, -614.5625, 15.2813, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 665.2266, -624.3750, 16.0625, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 668.2109, -624.4453, 16.0625, 0.25);
- RemoveBuildingForPlayer(playerid, 1294, 690.4688, -591.0156, 19.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 1346, 672.4297, -589.0938, 16.6797, 0.25);
- RemoveBuildingForPlayer(playerid, 1687, 625.0156, -579.7188, 25.9297, 0.25);
- RemoveBuildingForPlayer(playerid, 1691, 665.7500, -566.3047, 20.0313, 0.25);
- RemoveBuildingForPlayer(playerid, 1688, 705.3438, -576.1406, 21.3281, 0.25);
- RemoveBuildingForPlayer(playerid, 1690, 694.6406, -571.4922, 21.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 1687, 611.0000, -562.9531, 25.9297, 0.25);
- RemoveBuildingForPlayer(playerid, 1687, 670.1016, -558.4063, 20.4297, 0.25);
- RemoveBuildingForPlayer(playerid, 956, 662.4297, -552.1641, 15.7109, 0.25);
- RemoveBuildingForPlayer(playerid, 1438, 670.1094, -550.6563, 15.2734, 0.25);
- RemoveBuildingForPlayer(playerid, 1690, 702.5313, -546.6094, 21.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 671.7813, -539.9141, 15.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 624.3359, -539.7188, 15.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 1351, 647.6641, -540.8359, 15.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 1438, 663.3750, -541.6250, 15.2891, 0.25);
- RemoveBuildingForPlayer(playerid, 13137, 646.1641, -527.8984, 28.0703, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 652.0078, -520.3203, 15.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 1503, 638.8359, -517.4766, 15.5469, 0.25);
- RemoveBuildingForPlayer(playerid, 1688, 649.5547, -516.7422, 21.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 1689, 660.4453, -515.4063, 23.0000, 0.25);
- RemoveBuildingForPlayer(playerid, 1691, 643.6484, -515.9609, 20.5859, 0.25);
- RemoveBuildingForPlayer(playerid, 1688, 667.4375, -506.7891, 22.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 642.7188, -511.0547, 15.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 711.8359, -539.4609, 15.6484, 0.25);
- RemoveBuildingForPlayer(playerid, 1294, 712.8359, -521.3359, 19.7031, 0.25);
- RemoveBuildingForPlayer(playerid, 1688, 706.2422, -507.7734, 21.2891, 0.25);
- RemoveBuildingForPlayer(playerid, 1690, 706.1328, -510.2891, 20.9766, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 711.8750, -516.2656, 15.6172, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 611.4766, -504.6875, 15.6484, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 652.7422, -496.5156, 16.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 652.8125, -499.3203, 16.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 1438, 660.5391, -496.8828, 15.3047, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 652.0781, -494.8828, 15.6484, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 691.6484, -500.2109, 15.6875, 0.25);
- RemoveBuildingForPlayer(playerid, 1294, 700.6172, -493.5469, 19.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 1687, 696.0703, -502.2813, 20.1328, 0.25);
- RemoveBuildingForPlayer(playerid, 781, 692.6953, -498.2344, 15.5313, 0.25);
- RemoveBuildingForPlayer(playerid, 781, 697.8125, -498.3594, 15.5313, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 654.7266, -475.3047, 15.5000, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 711.6094, -475.2578, 15.6484, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 710.5625, -470.4844, 15.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 1438, 725.6641, -473.3594, 15.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 3172, 713.3125, -468.0703, 15.1328, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 710.5938, -468.1797, 15.8281, 0.25);
- RemoveBuildingForPlayer(playerid, 13028, 720.0156, -462.5234, 16.8594, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 725.8750, -465.7422, 15.9375, 0.25);
- RemoveBuildingForPlayer(playerid, 1689, 677.5234, -464.4766, 22.7500, 0.25);
- RemoveBuildingForPlayer(playerid, 12977, 679.1406, -455.7734, 16.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 1332, 656.0000, -439.2734, 16.2813, 0.25);
- RemoveBuildingForPlayer(playerid, 1335, 659.2266, -439.3906, 16.3750, 0.25);
- RemoveBuildingForPlayer(playerid, 1688, 686.7578, -455.4141, 20.6406, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 651.6484, -437.7578, 15.5781, 0.25);
- RemoveBuildingForPlayer(playerid, 1345, 693.2891, -456.0156, 16.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 781.9063, -539.9844, 15.5938, 0.25);
- RemoveBuildingForPlayer(playerid, 13452, 915.1641, -525.5781, 40.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 1010.6563, -453.8125, 50.5703, 0.25);
- RemoveBuildingForPlayer(playerid, 3402, 1019.3828, -300.2422, 72.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 3375, 1070.4766, -355.1641, 77.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 3402, 1045.5625, -300.6016, 72.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 3175, 1107.5938, -358.5156, 72.7969, 0.25);
- RemoveBuildingForPlayer(playerid, 3175, 1114.2969, -353.8203, 72.7969, 0.25);
- //Map Icons
- SetPlayerMapIcon(playerid,13, 611.0301,-586.0072,17.2266, 6,2,MAPICON_LOCAL); //ARMY Briefcase
- SetPlayerMapIcon(playerid,14, 1105.9891,-301.2435,74.5391, 6,2,MAPICON_LOCAL); //TERRORIST Briefcase
- return 1;
- }
- //-------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch( dialogid )
- {
- case DIALOG_REGISTER:
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Kills",0);
- INI_WriteInt(File,"Score",0);
- INI_WriteInt(File,"Deaths",0);
- INI_Close(File);
- SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
- ForceClassSelection(playerid);
- }
- }
- case DIALOG_LOGIN:
- {
- if ( !response ) return Kick ( playerid );
- if( response )
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- ForceClassSelection(playerid);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
- }
- return 1;
- }
- }
- case 5421:
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_BROWN, "ERROR: You don't have enough cash.");
- GivePlayerMoney(playerid, -5000);
- SetPlayerHealth(playerid, 100.0);
- SendClientMessage(playerid, -1, "You bought Health for $5000");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 5500) return SendClientMessage(playerid, COLOR_BROWN, "ERROR: You don't have enough cash.");
- GivePlayerMoney(playerid, -5500);
- SetPlayerArmour(playerid, 100.0);
- SendClientMessage(playerid, -1, "You bought Armour for $5500");
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, COLOR_BROWN, "ERROR: You don't have enough cash.");
- GivePlayerMoney(playerid, -5500);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid, COLOR_GREEN, "You Bought Desert Eagle for 6000");
- }
- case 3:
- {
- if (GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_BROWN, "ERROR:You Don't Have Enought Money To Buy Satchel");
- GivePlayerWeapon(playerid, 39,3);
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, COLOR_GREEN, "You Bought Stachel For 10000 Money");
- }
- case 4:
- {
- if (GetPlayerMoney(playerid) < 5000)
- return SendClientMessage(playerid, COLOR_BROWN, "ERROR:You Don't Have Enought Money To Buy Tec-9");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid, 32,500);
- SendClientMessage(playerid, COLOR_GREEN, "You Bought Tec-9 For 1000 Money");
- }
- case 5:
- {
- if (GetPlayerMoney(playerid) < 6000)
- return SendClientMessage(playerid, COLOR_BROWN, "ERROR:You Don't Have Enought Money To Buy Sniper Rifle");
- GivePlayerMoney(playerid, -6000);
- GivePlayerWeapon(playerid, 34,100);
- SendClientMessage(playerid, COLOR_GREEN, "You Bought Sniper Rifle For 3000 Money");
- }
- case 6:
- {
- if (GetPlayerMoney(playerid) < 7000)
- return SendClientMessage(playerid, COLOR_BROWN, "ERROR:You Don't Have Enought Money To Buy Combat ShotGSPA");
- GivePlayerWeapon(playerid, 27,50);
- GivePlayerMoney(playerid, -7000);
- SendClientMessage(playerid, COLOR_GREEN, "You Bought Combat ShotGSPA For 10000 Money");
- }
- }
- }
- case ARMY_CLASSES_DIALOG:
- {
- switch(listitem)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREEN,""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Assault Class");
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 27, 90);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 31, 200);
- TextDrawShowForPlayer(playerid, TDAssault);
- TextDrawHideForPlayer(playerid,TDSniper);
- TextDrawHideForPlayer(playerid,TDBomber);
- TextDrawHideForPlayer(playerid,TDRifleman);
- TextDrawHideForPlayer(playerid,TDPyroman);
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_GREEN,""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Sniper Class");
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 23, 90);
- GivePlayerWeapon(playerid, 29, 90);
- GivePlayerWeapon(playerid, 34, 100);
- GivePlayerWeapon(playerid, 25, 100);
- TextDrawShowForPlayer(playerid, TDSniper);
- TextDrawHideForPlayer(playerid,TDAssault);
- TextDrawHideForPlayer(playerid,TDBomber);
- TextDrawHideForPlayer(playerid,TDRifleman);
- TextDrawHideForPlayer(playerid,TDPyroman);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_GREEN,""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Bomber Class");
- GivePlayerWeapon(playerid, 16, 5);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 35, 5);
- GivePlayerWeapon(playerid, 28, 500);
- TextDrawHideForPlayer(playerid, TDAssault);
- TextDrawHideForPlayer(playerid, TDSniper);
- TextDrawShowForPlayer(playerid, TDBomber);
- TextDrawHideForPlayer(playerid,TDRifleman);
- TextDrawHideForPlayer(playerid,TDPyroman);
- }
- }
- }
- case TERRORIST_CLASSES_DIALOG:
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 16, 3);
- GivePlayerWeapon(playerid, 24, 90);
- GivePlayerWeapon(playerid, 25, 100);
- GivePlayerWeapon(playerid, 28, 200);
- GivePlayerWeapon(playerid, 30, 200);
- GivePlayerWeapon(playerid, 33, 100);
- SendClientMessage(playerid, -1, ""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Rifleman Class");
- TextDrawHideForPlayer(playerid, TDAssault);
- TextDrawHideForPlayer(playerid,TDSniper);
- TextDrawHideForPlayer(playerid,TDBomber);
- TextDrawShowForPlayer(playerid,TDRifleman);
- TextDrawHideForPlayer(playerid,TDPyroman);
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_GREEN,""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Sniper Class");
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 23, 90);
- GivePlayerWeapon(playerid, 29, 90);
- GivePlayerWeapon(playerid, 34, 100);
- GivePlayerWeapon(playerid, 25, 100);
- TextDrawShowForPlayer(playerid, TDSniper);
- TextDrawHideForPlayer(playerid,TDAssault);
- TextDrawHideForPlayer(playerid,TDBomber);
- TextDrawHideForPlayer(playerid,TDRifleman);
- TextDrawHideForPlayer(playerid,TDPyroman);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_GREEN,""COL_GREEN"[CLASS]"COL_WHITE"You Have Choose Pyroman Class");
- GivePlayerWeapon(playerid, 6, 1);
- GivePlayerWeapon(playerid, 18, 6);
- GivePlayerWeapon(playerid, 26, 200);
- GivePlayerWeapon(playerid, 37, 200);
- GivePlayerWeapon(playerid, 42, 100);
- GivePlayerWeapon(playerid, 24, 100);
- TextDrawHideForPlayer(playerid, TDSniper);
- TextDrawHideForPlayer(playerid,TDAssault);
- TextDrawHideForPlayer(playerid,TDBomber);
- TextDrawHideForPlayer(playerid,TDRifleman);
- TextDrawShowForPlayer(playerid,TDPyroman);
- }
- }
- }
- }
- return 1;
- }
- //================================================================================
- public OnPlayerDisconnect(playerid, reason)
- {
- new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname);
- case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
- case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
- }
- SendClientMessageToAll(0xA52A2AAA, string);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
- INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]);
- INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
- INI_Close(File);
- return 1;
- }
- public OnPlayerSpawn(playerid) //credits forgottenkings For his anti spawn kill tutorial
- {
- ResetPlayerWeapons(playerid);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Army);
- TextDrawShowForPlayer(playerid, Vs);
- TextDrawShowForPlayer(playerid, Terrorist);
- SetPlayerTime(playerid, 1, 0);
- SetPlayerArmour(playerid, 10000.0);
- GangZoneShowForPlayer(playerid, GZ_ZONE2, 0xFF000096); //Terrorist Base
- GangZoneShowForPlayer(playerid, GZ_ZONE1, 0x00800096); //Army Base
- SetPlayerHealth(playerid, 10000.0);
- SendClientMessage(playerid, 0xFF0000AA, "You have 8 seconds of Anti-Spawnkill protection");
- SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
- SetTimerEx("AntiSpawnkill",8000,0,"i",playerid);
- //Random Spawn
- if(gTeam[playerid] == TEAM_ARMY)
- {
- new rand = random(sizeof(ArmySpawn));
- SetPlayerPos(playerid, ArmySpawn[rand][0], ArmySpawn[rand][1], ArmySpawn[rand][2]);
- ShowPlayerDialog(playerid, ARMY_CLASSES_DIALOG, DIALOG_STYLE_LIST, ""COL_GREEN"Select a Class", ""COL_WHITE"Assault\nSniper\nBomber", ""COL_GREEN"Select", "");
- }
- if(gTeam[playerid] == TEAM_TERRORIST)
- {
- new rand = random(sizeof(TerroristSpawn));
- SetPlayerPos(playerid, TerroristSpawn[rand][0], TerroristSpawn[rand][1], TerroristSpawn[rand][2]);
- ShowPlayerDialog(playerid, TERRORIST_CLASSES_DIALOG, DIALOG_STYLE_LIST, ""COL_GREEN"Select a Class", ""COL_WHITE"Rifleman\nSniper\nPyroman", ""COL_GREEN"Select", "");
- }
- return 1;
- }
- forward AntiSpawnkill(playerid);
- public AntiSpawnkill(playerid)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");
- return 1;
- }
- //-----------
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- for (new i, j = sizeof(gCaptureZone); i < j; i++) // loop through all capture zones
- {
- if (gCaptureZone[i][zone_CPId] == checkpointid) // if the checkpoint id matches with the zone's CP
- {
- new buf[150];
- if (gCaptureZone[i][zone_Attacker] != INVALID_PLAYER_ID) // if the zone is already under attack
- {
- if (GetPlayerTeam(playerid) == GetPlayerTeam(gCaptureZone[i][zone_Attacker])) // if the player's team is same to that of player attacking the zone
- {
- if (IsPlayerInAnyVehicle(playerid)) // Prevent the player from capturing from inside a vehicle
- {
- return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot capture the zone in a vehicle.");
- }
- format(buf, sizeof(buf), "Capturing in %i...", gCaptureZone[i][zone_Tick][1]); // format the "buf" with giving timeleft for the capture
- PlayerTextDrawSetString(playerid, ptxtCapture[playerid], buf);
- PlayerTextDrawShow(playerid, ptxtCapture[playerid]);
- SetPlayerProgressBarValue(playerid, pbarCapture[playerid], gCaptureZone[i][zone_Tick][0]); // set the progress bar value to the zone's progress done by the attacker initailly
- ShowPlayerProgressBar(playerid, pbarCapture[playerid]);
- gCaptureZone[i][zone_Players]++; // increase the count of player capturing so we can increase the rate of capture accordingly
- SendClientMessage(playerid, 0x00FF00FF, "Stay in the checkpoint to assist your teammate in capturing the zone.");
- }
- }
- else // if the zone is not attacked by anyone currently
- {
- if (GetPlayerTeam(playerid) != gCaptureZone[i][zone_Owner]) // the player is an enemy
- {
- if (IsPlayerInAnyVehicle(playerid)) // Prevent the player from capturing from inside a vehicle
- {
- return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot capture the zone in a vehicle.");
- }
- buf[0] = EOS;
- strcat(buf, "The zone is controlled by team ");
- strcat(buf, gTeamData[gCaptureZone[i][zone_Owner]][team_Name]);
- strcat(buf, ".");
- SendClientMessage(playerid, 0x00FF00FF, buf);
- SendClientMessage(playerid, 0x00FF00FF, "Stay in the checkpoint for "#CAPTURE_TIME" seconds to capture the zone.");
- GangZoneFlashForAll(gCaptureZone[i][zone_Id], SET_ALPHA(gTeamData[GetPlayerTeam(playerid)][team_Color], 100)); // flash the gangzone for all player with the enemy's team color
- // store attacker id and set the tick rate to inital values
- gCaptureZone[i][zone_Attacker] = playerid;
- gCaptureZone[i][zone_Players] = 1;
- gCaptureZone[i][zone_Tick][0] = 0;
- gCaptureZone[i][zone_Tick][1]= CAPTURE_TIME;
- // run a timer where we will update the progress of the zone
- KillTimer(gCaptureZone[i][zone_Timer]);
- gCaptureZone[i][zone_Timer] = SetTimerEx("OnZoneUpdate", 1000, true, "i", i);
- // send message to all players that the zone is being attacked
- buf[0] = EOS;
- strcat(buf, "ZONE: Team ");
- strcat(buf, gTeamData[GetPlayerTeam(playerid)][team_Name]);
- strcat(buf, " is trying to capture zone ");
- strcat(buf, gCaptureZone[i][zone_Name]);
- strcat(buf, " against team ");
- strcat(buf, gTeamData[gCaptureZone[i][zone_Owner]][team_Name]);
- strcat(buf, ".");
- SendClientMessageToAll(0xFFFFFFFF, buf);
- PlayerTextDrawSetString(playerid, ptxtCapture[playerid], "Capturing in 30..."); // Show player capture zone textdraw
- PlayerTextDrawShow(playerid, ptxtCapture[playerid]);
- SetPlayerProgressBarValue(playerid, pbarCapture[playerid], gCaptureZone[i][zone_Tick][0]); // set the progress bar value to the zone's progress done by the attacker initailly
- ShowPlayerProgressBar(playerid, pbarCapture[playerid]);
- }
- }
- break; // break the loop because there is no other possible zone checkpoint at the same position
- }
- }
- return 1;
- }
- //----------
- forward OnZoneUpdate(zoneid);
- public OnZoneUpdate(zoneid)
- {
- // Calculate the rate of capture from the number of players in the zone
- switch(gCaptureZone[zoneid][zone_Players])
- {
- case 1: // if there is only one attacker
- {
- gCaptureZone[zoneid][zone_Tick][0] += 1;
- gCaptureZone[zoneid][zone_Tick][1] -= 1;
- }
- case 2: // two attacker
- {
- gCaptureZone[zoneid][zone_Tick][0] += 2;
- gCaptureZone[zoneid][zone_Tick][1] += 2;
- }
- default: //or if 3 or more than 3 attacker in the checkpoint
- {
- gCaptureZone[zoneid][zone_Tick][0] += 3;
- gCaptureZone[zoneid][zone_Tick][1] += 2;
- }
- }
- // updating the progress bar for all the attacker inside the checkpoint
- for (new i, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if (IsPlayerInDynamicCP(i, gCaptureZone[zoneid][zone_CPId]) && ! IsPlayerInAnyVehicle(i) && GetPlayerTeam(i) == GetPlayerTeam(gCaptureZone[zoneid][zone_Attacker])) // if the player is in CP, outside any vehicle and of same team that of attacker
- {
- SetPlayerProgressBarValue(i, pbarCapture[i], gCaptureZone[zoneid][zone_Tick][0]);
- }
- }
- // If the zone capture time has reached max capture zone time (means zone is captured)
- if (gCaptureZone[zoneid][zone_Tick][0] > CAPTURE_TIME)
- {
- /*
- Here you shall give rewards to the player who captured from the beginning
- */
- SendClientMessage(gCaptureZone[zoneid][zone_Attacker], 0x00FF00FF, "You have successfully captured the zone, +3 score and +$3000.");
- SetPlayerScore(gCaptureZone[zoneid][zone_Attacker], GetPlayerScore(gCaptureZone[zoneid][zone_Attacker]) + 3);
- GivePlayerMoney(gCaptureZone[zoneid][zone_Attacker], 3000);
- for (new p, l = GetPlayerPoolSize(); p <= l; p++)
- {
- if (IsPlayerInDynamicCP(p, gCaptureZone[zoneid][zone_CPId]))
- {
- // hide capture HUDS when the capture is complete
- PlayerTextDrawHide(p, ptxtCapture[p]);
- HidePlayerProgressBar(p, pbarCapture[p]);
- // Check if the player assisted the attacker (give rewards to him/her as well
- if (p != gCaptureZone[zoneid][zone_Attacker] && GetPlayerTeam(p) == GetPlayerTeam(gCaptureZone[zoneid][zone_Attacker]) && ! IsPlayerInAnyVehicle(p))
- {
- /*
- Here you shall give rewards to the player who assisted in capturing
- */
- SendClientMessage(p, 0x00FF00FF, "You have assisted your teammate to capture the zone, +1 score and +$1500.");
- SetPlayerScore(p, GetPlayerScore(p) + 1);
- GivePlayerMoney(p, 1500);
- }
- }
- }
- // stop the gangzone from flashing
- GangZoneStopFlashForAll(gCaptureZone[zoneid][zone_Id]);
- // set the gangzone color to the new team's color
- GangZoneShowForAll(gCaptureZone[zoneid][zone_Id], SET_ALPHA(gTeamData[GetPlayerTeam(gCaptureZone[zoneid][zone_Attacker])][team_Color], 100));
- // Kill the timer since we no longer need it
- KillTimer(gCaptureZone[zoneid][zone_Timer]);
- new text[150];
- strcat(text, "ZONE: Team ");
- strcat(text, gTeamData[GetPlayerTeam(gCaptureZone[zoneid][zone_Attacker])][team_Name]);
- strcat(text, " has successfully captured the zone ");
- strcat(text, gCaptureZone[zoneid][zone_Name]);
- strcat(text, " against team ");
- strcat(text, gTeamData[gCaptureZone[zoneid][zone_Owner]][team_Name]);
- strcat(text, ".");
- SendClientMessageToAll(0xFFFFFFFF, text);
- gCaptureZone[zoneid][zone_Owner] = GetPlayerTeam(gCaptureZone[zoneid][zone_Attacker]);
- gCaptureZone[zoneid][zone_Attacker] = INVALID_PLAYER_ID;
- }
- }
- //------------
- public OnPlayerLeaveDynamicCP(playerid, checkpointid)
- {
- for (new i, j = sizeof(gCaptureZone); i < j; i++) // loop through all capture zones
- {
- if (gCaptureZone[i][zone_CPId] == checkpointid) // if the checkpoint id matches with the zone's CP
- {
- if (gCaptureZone[i][zone_Attacker] != INVALID_PLAYER_ID) // if the capture zone is being attacked
- {
- if (GetPlayerTeam(playerid) == GetPlayerTeam(gCaptureZone[i][zone_Attacker])) // if the teams are the same
- {
- gCaptureZone[i][zone_Players]--; // decrease the number of players count in the CP
- if (! gCaptureZone[i][zone_Players]) // if the number of players is 0 now, that means no player in CP
- {
- SendClientMessage(playerid, 0xFF0000FF, "You failed to capture the zone, there were no teammates left in your checkpoint.");
- GangZoneStopFlashForAll(gCaptureZone[i][zone_Id]); // stop the zone to flash for all players
- new buf[150];
- strcat(buf, "ZONE: Team ");
- strcat(buf, gTeamData[GetPlayerTeam(playerid)][team_Name]);
- strcat(buf, " failed to capture zone ");
- strcat(buf, gCaptureZone[i][zone_Name]);
- strcat(buf, " against team ");
- strcat(buf, gTeamData[gCaptureZone[i][zone_Owner]][team_Name]);
- strcat(buf, ".");
- SendClientMessageToAll(0xFFFFFFFF, buf);
- gCaptureZone[i][zone_Attacker] = INVALID_PLAYER_ID;
- KillTimer(gCaptureZone[i][zone_Timer]);
- }
- else if (gCaptureZone[i][zone_Attacker] == playerid) // if the count wasn't 0 but the attacker left
- {
- for (new p, l = GetPlayerPoolSize(); p <= l; p++) // loop through all players
- {
- if (GetPlayerTeam(p) == GetPlayerTeam(playerid)) // if the player is of same team that of attacker
- {
- if (IsPlayerInDynamicCP(p, checkpointid)) // if the player is in the checkpoint assisting
- {
- gCaptureZone[i][zone_Attacker] = p; // set him/her as the beneficial attacker :) (the one who'll get +3 score on capture)
- break;
- }
- }
- }
- }
- }
- // hide capture HUDS
- PlayerTextDrawHide(playerid, ptxtCapture[playerid]);
- HidePlayerProgressBar(playerid, pbarCapture[playerid]);
- break;
- }
- }
- }
- }
- CMD:ep(playerid, params[])
- {
- GivePlayerWeapon(playerid, 46,1);
- SendClientMessage(playerid, COLOR_GREEN, "You Got Emergency Parachute For Free!");
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SetPlayerArmour(playerid, 0.0);
- SendClientMessage(playerid, 0xFF9900AA, "You Have Been Commited Suicide And You Loose 400 Money");
- PlayerInfo[playerid][pDeaths]++;
- SetPlayerHealth(playerid, -1.0);
- return 1;
- }
- //Player Stats
- CMD:stats(playerid,params[])
- {
- new money = PlayerInfo[playerid][pCash];
- new deaths = PlayerInfo[playerid][pDeaths];
- new kills = PlayerInfo[playerid][pKills];
- new Score = PlayerInfo[playerid][pScore];
- new string[500];
- format(string,sizeof(string),"Money: %d | Deaths: %d | Kills: %d | Score: %d ",money,deaths,kills,Score);
- SendClientMessage(playerid,0x80FF8096,string);
- return 1;
- }
- //---------------------------------
- CMD:afk(playerid,params[])
- {
- TogglePlayerControllable(playerid,0);
- SendClientMessage(playerid, COLOR_ROYAL, "You are AFK Now !Use /afkback To Come Back ");
- GameTextForPlayer(playerid, "~y~Afk", 2500, 3);
- return 1;
- }
- CMD:afkback(playerid,params[])
- {
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_ROYAL, "You are now NO-AFK !");
- GameTextForPlayer(playerid, "~y~No Afk", 2500, 3);
- return 1;
- }
- //==========================================================
- CMD:cmds(playerid, params[])
- {
- ShowPlayerDialog(playerid, 978, DIALOG_STYLE_MSGBOX,""COL_LIGHTBLUE"Army Vs Terrorist Commands", ""COL_WHITE"/kill |To Suicide\n/st |To Change Team\n/credits |To Know More About Server Founders\n/stats |To Check Your Stats\n/st |To Change Team\n/animlist |To Check Anim List\n{/afk |To Be Afk\n/afkback |To Come Back From Afk\n/day |To Change Your Time To Day\n/night |To Change Your Time To Night\n/forum |To Check Forum Link\n/rules |To Check Our Rules", "Close", "");
- return 1;
- }
- CMD:st(playerid, params[])
- {
- ForceClassSelection(playerid);
- SetPlayerHealth(playerid, -100.0);
- SendClientMessage(playerid, COLOR_GREEN, "You Are In Team Selection Now !");
- SendClientMessage(playerid, COLOR_GREEN, "You Can Also Use F4 + /kill");
- return 1;
- }
- CMD:animlist(playerid,params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "/handsup/piss/stopanim/injured/crack");
- SendClientMessage(playerid, COLOR_GREEN, "/dance/greet/drunk");
- return 1;
- }
- CMD:handsup(playerid,params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- CMD:piss(playerid,params[])
- {
- SetPlayerSpecialAction(playerid, 68);
- return 1;
- }
- CMD:injured(playerid,params[])
- {
- ApplyAnimation(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:stopanim(playerid,params[])
- {
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:crack(playerid,params[])
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
- return 1;
- }
- CMD:dance(playerid,params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- return 1;
- }
- CMD:greet(playerid,params[])
- {
- ApplyAnimation(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0);
- return;
- }
- CMD:drunk(playerid,params[])
- {
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
- return;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- TextDrawShowForPlayer(killerid, NiceKill);
- TextDrawShowForPlayer(playerid, Dead);
- SetTimerEx("HideMessage", 3000, 0, "i", killerid);
- SetTimerEx("HideMessage", 3000, 0, "i", playerid);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- GivePlayerMoney(killerid, 1000);
- GivePlayerMoney(playerid, -400);
- SendDeathMessage(killerid, playerid, reason);
- PlayerInfo[killerid][pKills]++;
- PlayerInfo[playerid][pDeaths]++;
- return 1;
- }
- //-----------------*
- forward HideMessage(playerid);
- public HideMessage(playerid)
- {
- TextDrawHideForPlayer(playerid, Dead);
- TextDrawHideForPlayer(playerid, NiceKill);
- }
- public OnPlayerUpdate(playerid)
- {
- new string[128], string2[256];
- new PlayerName[16];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- if(GetPlayerPing(playerid) >= MAX_PING)
- {
- format(string, sizeof(string), "%s has been kicked from the Server. Reason - High ping %d", PlayerName, MAX_PING);
- SendClientMessageToAll(COLOR_GREEN, string);
- format(string2, sizeof(string2), "You have been kicked from the server. Reason - High ping %d", MAX_PING);
- SendClientMessage(playerid, COLOR_GREEN, string2);
- Kick(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment