Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Addon;
- using System;
- using System.Text;
- using System.Collections;
- using System.Runtime.InteropServices;
- using System.Net;
- namespace mw3zombie
- {
- public class mw3zombie : CPlugin
- {
- private bool selfloaded;
- private Hashtable fs;
- private Hashtable Kills;
- private Hashtable MKill;
- private Hashtable Points;
- private Hashtable sa;
- private Hashtable ZHP;
- public mw3zombie()
- {
- this.Points = new Hashtable();
- this.Kills = new Hashtable();
- this.MKill = new Hashtable();
- this.ZHP = new Hashtable();
- this.sa = new Hashtable();
- this.fs = new Hashtable();
- }
- private void classlol(object arg)
- {
- ServerClient serverClient = (ServerClient)arg;
- try
- {
- Random random = new Random();
- int num = random.Next(0, 2);
- switch (num)
- {
- case 0:
- {
- base.iPrintLnBold("^5Your random walker class is ^1Normal walker", serverClient);
- serverClient.Other.SpeedScale = 1.2f;
- break;
- }
- case 1:
- {
- base.iPrintLnBold("^5Your random walker class is ^2Juggernaut walker", serverClient);
- serverClient.Other.SpeedScale = 0.75f;
- Other_t other = serverClient.Other;
- other.Health = (other.Health + 150);
- serverClient.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
- break;
- }
- }
- }
- catch
- {
- }
- }
- public void onInit(ServerClient Client)
- {
- SurvivorLoadout(Client);
- }
- public void SurvivorLoadout(object arg)
- {
- try
- {
- ServerClient serverClient = (ServerClient)arg;
- int weapon = base.GetWeapon("0");
- serverClient.Other.Equipment = weapon;
- serverClient.Other.OffhandWeapon = weapon;
- if (serverClient.Team != Teams.Allies)
- {
- if (serverClient.Team == Teams.Axis)
- {
- base.iPrintLnBold("^1YOURE A WALKER! EAT THOSE BRAINS.", serverClient);
- int num = base.GetWeapon("iw5_usp45_mp_tactical");
- serverClient.Other.PrimaryWeapon = num;
- serverClient.Other.CurrentWeapon = num;
- int weapon1 = base.GetWeapon("0");
- serverClient.Other.SecondaryWeapon = weapon1;
- serverClient.Ammo.PrimaryAmmo = 0;
- serverClient.Ammo.PrimaryAmmoClip = 0;
- serverClient.Ammo.SecondaryAmmo = 0;
- serverClient.Ammo.SecondaryAmmoClip = 0;
- this.zomclass(serverClient);
- }
- }
- else
- {
- base.iPrintLnBold("^1Try to survive! Watch out for Walkers!.", serverClient);
- int num1 = base.GetWeapon("iw5_1887_mp");
- serverClient.Other.PrimaryWeapon = num1;
- serverClient.Other.CurrentWeapon = num1;
- int weapon2 = base.GetWeapon("iw5_usp45_mp");
- serverClient.Other.SecondaryWeapon = weapon2;
- serverClient.Ammo.PrimaryAmmo = 5;
- serverClient.Ammo.PrimaryAmmoClip = 30;
- serverClient.Ammo.SecondaryAmmo = 5;
- serverClient.Ammo.SecondaryAmmoClip = 30;
- serverClient.Other.Health = 100;
- }
- }
- catch
- {
- }
- }
- private void zomclass(ServerClient Client)
- {
- classlol(Client);
- }
- private void lastPlayer(ServerClient Client)
- {
- try
- {
- int weapon = base.GetWeapon("iw5_mp7_mp_xmags_reflex_rof_camo11");
- int num = base.GetWeapon("rpg_mp");
- Client.Other.PrimaryWeapon = weapon;
- Client.Other.CurrentWeapon = weapon;
- Client.Other.SecondaryWeapon = num;
- Client.Ammo.PrimaryAmmo = (0x3e7);
- Client.Ammo.SecondaryAmmo = (0x3e7);
- Client.Other.SpeedScale = (1.3f);
- }
- catch
- {
- }
- }
- private void checkClientAward(ServerClient Client, int kills)
- {
- if (kills == 5)
- {
- base.iPrintLnBold("^4You have earned ^1Fast Reload ^4perk! [^3Award^4]", Client);
- Client.Other.SetPerk(base.GetPerk("specialty_fastreload"));
- }
- if (kills == 10)
- {
- base.iPrintLnBold("^4You have earned ^1Cold blooded ^4perk! [^3Award^4]", Client);
- Client.Other.SetPerk(base.GetPerk("specialty_coldblooded"));
- }
- if (kills == 20)
- {
- base.iPrintLnBold("^4You have earned ^1EPIC MP7 ^4weapon! [^3Award^4]", Client);
- int weapon = base.GetWeapon("iw5_mp7_mp_camo10_reflexsmg_rof");
- Client.Other.PrimaryWeapon = weapon;
- Client.Other.CurrentWeapon = weapon;
- }
- if (kills == 30)
- {
- base.iPrintLnBold("^4You have earned ^1WALKING AC130^4! [^3Award^4]", Client);
- int num = base.GetWeapon("ac130_25mm_mp");
- Client.Other.PrimaryWeapon = num;
- Client.Other.CurrentWeapon = num;
- }
- }
- private void multikill(object arg)
- {
- ServerClient serverClient = (ServerClient)arg;
- this.MKill[serverClient.XUID] = (int)this.MKill[serverClient.XUID] + 1;
- if ((int)this.MKill[serverClient.XUID] > 1)
- {
- object[] name = new object[4];
- name[0] = serverClient.Name;
- name[1] = " ^3got a ^1multikill ^3with ^5";
- name[2] = (int)this.MKill[serverClient.XUID];
- name[3] = " ^3kills!";
- base.iPrintLn(string.Concat(name), null);
- }
- this.MKill[serverClient.XUID] = 0;
- }
- public override void OnFastRestart()
- {
- base.SetDvar("g_gametype", "infect");
- base.SetDvar("scr_infect_timelimit", "0");
- base.SetDvar("scr_game_graceperiod", "0");
- base.SetDvar("scr_game_playerwaittime", "0");
- base.SetDvar("scr_game_matchstarttime", "0");
- base.SetDvar("scr_infect_numlives", "0");
- base.SetDvar("scr_infect_promode", "0");
- base.SetDvar("scr_infect_timelimit", "20");
- base.SetDvar("scr_infect_roundlimit", "0");
- base.SetDvar("scr_infect_winlimit", "15");
- base.SetDvar("g_allowVote", "0");
- base.SetDvar("didyouknow", "Now playing: ^1ZOMBIEMOD^3 Walking DEAD^7 Made-by:^1JayDi ^7Fixes:^3XS4ALL:JoSchaap");
- if (base.GetDvar("g_gametype") != "infect")
- {
- base.ServerPrint("[XZombie] GAMETYPE IS NOT 'INFECT' ... CHANGING");
- base.SetDvar("g_Gametype", "infect");
- base.ServerCommand("fast_restart");
- }
- }
- public override void OnMapChange()
- {
- base.SetDvar("g_gametype", "infect");
- base.SetDvar("scr_infect_timelimit", "0");
- base.SetDvar("scr_game_graceperiod", "0");
- base.SetDvar("scr_game_playerwaittime", "0");
- base.SetDvar("scr_game_matchstarttime", "0");
- base.SetDvar("scr_infect_numlives", "0");
- base.SetDvar("scr_infect_promode", "0");
- base.SetDvar("scr_infect_timelimit", "20");
- base.SetDvar("scr_infect_roundlimit", "0");
- base.SetDvar("scr_infect_winlimit", "15");
- base.SetDvar("g_allowVote", "0");
- base.SetDvar("didyouknow", "Now playing: ^1ZOMBIEMOD^3 Walking DEAD^7 Made-by:^1JayDi ^7Fixes:^3XS4ALL:JoSchaap");
- if (!this.selfloaded)
- {
- this.selfloaded = true;
- base.ServerPrint("[Zombie] Please wait.... Loading map and applying settings!");
- base.ServerCommand("fast_restart");
- }
- if (base.GetDvar("g_gametype") != "infect")
- {
- base.SetDvar("g_Gametype", "infect");
- base.ServerCommand("fast_restart");
- }
- }
- public override void OnPlayerConnect(ServerClient Client)
- {
- dvars(Client);
- }
- public override void OnServerLoad()
- {
- base.ServerPrint("<======== Fixed ZOMBIE GAME =============>");
- base.ServerPrint("< Version 1.1 >");
- base.ServerPrint("< Created by JayDi fixes: Pieter/JoSchaap >");
- base.ServerPrint("<=========================================>");
- base.SetDvar("g_gametype", "infect");
- base.SetDvar("scr_infect_timelimit", "0");
- base.SetDvar("scr_game_graceperiod", "0");
- base.SetDvar("scr_game_playerwaittime", "0");
- base.SetDvar("scr_game_matchstarttime", "0");
- base.SetDvar("scr_infect_numlives", "0");
- base.SetDvar("scr_infect_promode", "0");
- base.SetDvar("scr_infect_timelimit", "20");
- base.SetDvar("scr_infect_roundlimit", "0");
- base.SetDvar("scr_infect_winlimit", "15");
- base.SetDvar("g_TeamColor_Allies", "0 1 0");
- base.SetDvar("g_TeamColor_Axis", "1 0 0");
- base.SetDvar("g_ScoresColor_Spectator", "0 1 1");
- base.SetDvar("g_ScoresColor_Free", ".76 .78 .10");
- base.SetDvar("g_teamColor_MyTeam", "0 0 1");
- base.SetDvar("g_teamColor_EnemyTeam", "1 0 0");
- base.SetDvar("g_teamColor_MyTeamAlt", "0 0 1");
- base.SetDvar("g_teamColor_EnemyTeamAlt", "1 0 0");
- base.SetDvar("g_teamColor_Squad", ".315 0.35 1");
- base.SetDvar("scr_maxPerPlayerExplosives", "999");
- base.SetDvar("con_typewriterColorBase", "1 0 0");
- base.SetDvar("con_typewriterColorGlowUpdated", "1 0 0");
- base.SetDvar("con_typewriterColorGlowCompleted", "1 0 0");
- base.SetDvar("con_typewriterColorGlowFailed", "1 0 0");
- this.setup();
- }
- private void dvars(ServerClient Client)
- {
- base.SetClientDvar(Client.ClientNum, "didyouknow \"Now playing: ^1ZOMBIEMOD^3 Walking DEAD^7 Made-by:^1JayDi ^7Fixes:^3XS4ALL:JoSchaap\"");
- }
- private void gameSet(ServerClient Client)
- {
- base.SetClientDvar(Client.ClientNum, "cg_objectiveText \"Now playing: ^1ZOMBIEMOD^3 Walking DEAD^7 Made-by:^1JayDi ^7Fixes:^3XS4ALL:JoSchaap\"");
- base.SetDvar("r_brightness", "-0.15");
- base.SetDvar("r_blur", "0.2");
- mw3zombie _mw3zombie = new mw3zombie();
- }
- public override void OnPlayerSpawned(ServerClient Client)
- {
- if (this.Points[Client.XUID] == null)
- {
- this.Points.Add(Client.XUID, 0);
- }
- if (this.Kills[Client.XUID] == null)
- {
- this.Kills.Add(Client.XUID, 0);
- }
- if (this.MKill[Client.XUID] == null)
- {
- this.MKill.Add(Client.XUID, 0);
- }
- if (this.ZHP[Client.XUID] == null)
- {
- this.ZHP.Add(Client.XUID, 150);
- }
- if (this.sa[Client.XUID] == null)
- {
- this.sa.Add(Client.XUID, 0);
- }
- if (this.fs[Client.XUID] == null)
- {
- this.fs.Add(Client.XUID, 0);
- }
- this.Kills[Client.XUID] = 0;
- this.MKill[Client.XUID] = 0;
- this.sa[Client.XUID] = 0;
- this.fs[Client.XUID] = 0;
- if (Client.Team == Teams.Axis)
- {
- Client.Other.Health = (int)this.ZHP[Client.XUID];
- }
- this.onInit(Client);
- this.gameSet(Client);
- Client.Other.ClearPerks();
- base.PlaySoundOnPlayer(Client, "freefall_death");
- }
- private void domk(ServerClient Client)
- {
- multikill(Client);
- }
- public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
- {
- if (Damage >= Victim.Other.Health && Attacker.Team != Victim.Team && Victim.XUID != Attacker.XUID)
- {
- try
- {
- this.Points[Attacker.XUID] = (int)this.Points[Attacker.XUID] + 100;
- this.Kills[Attacker.XUID] = (int)this.Kills[Attacker.XUID] + 1;
- base.iPrintLnBold(string.Concat("^5You've got ^1", (int)this.Points[Attacker.XUID], "^5 points!"), Attacker);
- this.domk(Attacker);
- this.specialAbility(Attacker);
- if (Attacker.Team == Teams.Axis)
- {
- this.unrealTournament(Attacker);
- this.checkClientAward(Attacker, (int)this.Kills[Attacker.XUID]);
- }
- if (Victim.Team == Teams.Allies)
- {
- base.iPrintLnBold("^2+15 points", Victim);
- this.Points[Victim.XUID] = (int)this.Points[Victim.XUID] + 15;
- }
- }
- catch (Exception exception1)
- {
- Exception exception = exception1;
- base.iPrintLn(string.Concat("[^1DEV^7]: ", exception.Message), Attacker);
- }
- }
- return Damage;
- }
- private void setup()
- {
- if (base.GetServerCFG("MW3SHOP", "barrettCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "barrettCost", "900");
- }
- if (base.GetServerCFG("MW3SHOP", "ammoCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "ammoCost", "100");
- }
- if (base.GetServerCFG("MW3SHOP", "scarCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "scarCost", "550");
- }
- if (base.GetServerCFG("MW3SHOP", "mk14Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "mk14Cost", "650");
- }
- if (base.GetServerCFG("MW3SHOP", "acrCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "acrCost", "650");
- }
- if (base.GetServerCFG("MW3SHOP", "fadCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "fadCost", "700");
- }
- if (base.GetServerCFG("MW3SHOP", "m16Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "m16Cost", "500");
- }
- if (base.GetServerCFG("MW3SHOP", "ak47Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "ak47Cost", "760");
- }
- if (base.GetServerCFG("MW3SHOP", "m4Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "m4Cost", "800");
- }
- if (base.GetServerCFG("MW3SHOP", "mg36Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "mg36Cost", "850");
- }
- if (base.GetServerCFG("MW3SHOP", "sa80Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "sa80Cost", "700");
- }
- if (base.GetServerCFG("MW3SHOP", "cm901Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "cm901Cost", "650");
- }
- if (base.GetServerCFG("MW3SHOP", "g36Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "g36Cost", "700");
- }
- if (base.GetServerCFG("MW3SHOP", "rsassCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "rsassCost", "750");
- }
- if (base.GetServerCFG("MW3SHOP", "rpgCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "rpgCost", "1010");
- }
- if (base.GetServerCFG("MW3SHOP", "xm25Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "xm25Cost", "910");
- }
- if (base.GetServerCFG("MW3SHOP", "spasCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "spasCost", "510");
- }
- if (base.GetServerCFG("MW3SHOP", "usasCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "usasCost", "550");
- }
- if (base.GetServerCFG("MW3SHOP", "aa12Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "aa12Cost", "650");
- }
- if (base.GetServerCFG("MW3SHOP", "strikerCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "strikerCost", "580");
- }
- if (base.GetServerCFG("MW3SHOP", "modelCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "modelCost", "700");
- }
- if (base.GetServerCFG("MW3SHOP", "as50Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "as50Cost", "850");
- }
- if (base.GetServerCFG("MW3SHOP", "l96a1Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "l96a1Cost", "950");
- }
- if (base.GetServerCFG("MW3SHOP", "msrCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "msrCost", "1100");
- }
- if (base.GetServerCFG("MW3SHOP", "dragCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "dragCost", "700");
- }
- if (base.GetServerCFG("MW3SHOP", "pechCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "pechCost", "900");
- }
- if (base.GetServerCFG("MW3SHOP", "mk46Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "mk46Cost", "850");
- }
- if (base.GetServerCFG("MW3SHOP", "m60Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "m60Cost", "990");
- }
- if (base.GetServerCFG("MW3SHOP", "ump45Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "ump45Cost", "300");
- }
- if (base.GetServerCFG("MW3SHOP", "pp90m1Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "pp90m1Cost", "450");
- }
- if (base.GetServerCFG("MW3SHOP", "p90Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "p90Cost", "500");
- }
- if (base.GetServerCFG("MW3SHOP", "m9Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "m9Cost", "400");
- }
- if (base.GetServerCFG("MW3SHOP", "mp7Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "mp7Cost", "650");
- }
- if (base.GetServerCFG("MW3SHOP", "mp5Cost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "mp5Cost", "500");
- }
- if (base.GetServerCFG("MW3SHOP", "Stalker_ZCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "Stalker_ZCost", "200");
- }
- if (base.GetServerCFG("MW3SHOP", "CB_ZCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "CB_ZCost", "250");
- }
- if (base.GetServerCFG("MW3SHOP", "StalkerCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "StalkerCost", "300");
- }
- if (base.GetServerCFG("MW3SHOP", "BACost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "BACost", "400");
- }
- if (base.GetServerCFG("MW3SHOP", "CBCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "CBCost", "500");
- }
- if (base.GetServerCFG("MW3SHOP", "BECost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "BECost", "300");
- }
- if (base.GetServerCFG("MW3SHOP", "ScavengerCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "ScavengerCost", "300");
- }
- if (base.GetServerCFG("MW3SHOP", "FRCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "FRCost", "500");
- }
- if (base.GetServerCFG("MW3SHOP", "FMCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "FMCost", "450");
- }
- if (base.GetServerCFG("MW3SHOP", "TKCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "TKCost", "200");
- }
- if (base.GetServerCFG("MW3SHOP", "EmpGrenadeCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "EmpGrenadeCost", "200");
- }
- if (base.GetServerCFG("MW3SHOP", "ZHPCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "ZHPCost", "120");
- }
- if (base.GetServerCFG("MW3SHOP", "claymoreCost", "") == "")
- {
- base.SetServerCFG("MW3SHOP", "claymoreCost", "420");
- }
- }
- private void specialAbility(ServerClient Client)
- {
- if (Client.Stats.Kills == 5)
- {
- base.iPrintLnBold("^3Special Ability ^5ready to use! ^1Type ^4!sa^1 to activate!", Client);
- base.iPrintLn(string.Concat(Client.Name, " ^2HAVE EARNED SPECIAL ABILITY"), null);
- this.sa[Client.XUID] = (int)this.sa[Client.XUID] + 10;
- }
- if (Client.Stats.Kills == 10)
- {
- base.iPrintLnBold("^3Special Ability ^5ready to use! ^1Type ^4!sa^1 to activate!", Client);
- base.iPrintLn(string.Concat(Client.Name, " ^2HAVE EARNED SPECIAL ABILITY"), null);
- this.sa[Client.XUID] = (int)this.sa[Client.XUID] + 10;
- }
- if (Client.Stats.Kills == 14)
- {
- base.iPrintLnBold("^3You've earned ^2FIRESTORM. ^3Type ^1!firestorm ^3to call ^2FIRESTORM.", Client);
- base.iPrintLn(string.Concat(Client.Name, " ^2HAVE EARNED ^1FIRESTORM"), null);
- this.fs[Client.XUID] = (int)this.fs[Client.XUID] + 10;
- }
- if (Client.Stats.Kills == 15)
- {
- base.iPrintLnBold("^3Special Ability ^5ready to use! ^1Type ^4!sa^1 to activate!", Client);
- base.iPrintLn(string.Concat(Client.Name, " ^2HAVE EARNED SPECIAL ABILITY"), null);
- this.sa[Client.XUID] = (int)this.sa[Client.XUID] + 10;
- }
- }
- private void unrealTournament(ServerClient client)
- {
- if ((int)this.Kills[client.XUID] != 2)
- {
- if ((int)this.Kills[client.XUID] == 4)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1RAMPAGE SPREE!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1RAMPAGE SPREE!"), null);
- }
- }
- else
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1KILLING SPREE"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1KILLING SPREE"), null);
- }
- if ((int)this.Kills[client.XUID] == 8)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on DOMINATING SPREE!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on DOMINATING SPREE!"), null);
- }
- if ((int)this.Kills[client.XUID] == 12)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1UNSTOPPABLE Spree!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1UNSTOPPABLE Spree!"), null);
- }
- if ((int)this.Kills[client.XUID] == 14)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1MONSTER SPREE!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1MONSTER SPREE!"), null);
- }
- if ((int)this.Kills[client.XUID] == 18)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1MEGA Spree!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1MEGA Spree!"), null);
- }
- if ((int)this.Kills[client.XUID] == 24)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is a WICKED sick!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is a WICKED sick!"), null);
- }
- if ((int)this.Kills[client.XUID] == 25)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1GOD LIKE!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1GOD LIKE!"), null);
- }
- if ((int)this.Kills[client.XUID] == 30)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1HOLY SHIT spree!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1HOLY SHIT spree!"), null);
- }
- if ((int)this.Kills[client.XUID] == 35)
- {
- base.iPrintLn(string.Concat(client.Name, " ^3is on ^1Walker Master Killer Spree!"), null);
- base.iPrintLnBold(string.Concat(client.Name, " ^3is on ^1Walker Master Killer Spree!"), null);
- }
- }
- public override ChatType OnSay(string Message, ServerClient Client)
- {
- ChatType chatType;
- string[] strArrays;
- try
- {
- int item = (int)this.Points[Client.XUID];
- string serverCFG = base.GetServerCFG("mw3shop", "EmpGrenadeCost", "");
- string str = base.GetServerCFG("mw3shop", "TKCost", "");
- string serverCFG1 = base.GetServerCFG("mw3shop", "FMCost", "");
- string str1 = base.GetServerCFG("mw3shop", "FRCost", "");
- string serverCFG2 = base.GetServerCFG("mw3shop", "ScavengerCost", "");
- string str2 = base.GetServerCFG("mw3shop", "BECost", "");
- string serverCFG3 = base.GetServerCFG("mw3shop", "CBCost", "");
- string str3 = base.GetServerCFG("mw3shop", "BACost", "");
- string serverCFG4 = base.GetServerCFG("mw3shop", "StalkerCost", "");
- string str4 = base.GetServerCFG("mw3shop", "CB_ZCost", "");
- string serverCFG5 = base.GetServerCFG("mw3shop", "Stalker_ZCost", "");
- string str5 = base.GetServerCFG("mw3shop", "mp5Cost", "");
- string serverCFG6 = base.GetServerCFG("mw3shop", "mp7Cost", "");
- string str6 = base.GetServerCFG("mw3shop", "m9Cost", "");
- string serverCFG7 = base.GetServerCFG("mw3shop", "p90Cost", "");
- string str7 = base.GetServerCFG("mw3shop", "pp90m1Cost", "");
- string serverCFG8 = base.GetServerCFG("mw3shop", "ump45Cost", "");
- string str8 = base.GetServerCFG("mw3shop", "m60Cost", "");
- string serverCFG9 = base.GetServerCFG("mw3shop", "mk46Cost", "");
- string str9 = base.GetServerCFG("mw3shop", "pechCost", "");
- string serverCFG10 = base.GetServerCFG("mw3shop", "sa80Cost", "");
- string str10 = base.GetServerCFG("mw3shop", "mg36Cost", "");
- string serverCFG11 = base.GetServerCFG("mw3shop", "m4Cost", "");
- string str11 = base.GetServerCFG("mw3shop", "ak47Cost", "");
- string serverCFG12 = base.GetServerCFG("mw3shop", "m16Cost", "");
- string str12 = base.GetServerCFG("mw3shop", "fadCost", "");
- string serverCFG13 = base.GetServerCFG("mw3shop", "acrCost", "");
- string str13 = base.GetServerCFG("mw3shop", "mk14Cost", "");
- string serverCFG14 = base.GetServerCFG("mw3shop", "scarCost", "");
- string str14 = base.GetServerCFG("mw3shop", "g36Cost", "");
- string serverCFG15 = base.GetServerCFG("mw3shop", "cm901Cost", "");
- string str15 = base.GetServerCFG("mw3shop", "barrettCost", "");
- string serverCFG16 = base.GetServerCFG("mw3shop", "rsassCost", "");
- string str16 = base.GetServerCFG("mw3shop", "dragCost", "");
- string serverCFG17 = base.GetServerCFG("mw3shop", "msrCost", "");
- string str17 = base.GetServerCFG("mw3shop", "l96a1Cost", "");
- string serverCFG18 = base.GetServerCFG("mw3shop", "as50Cost", "");
- string str18 = base.GetServerCFG("mw3shop", "modelCost", "");
- string serverCFG19 = base.GetServerCFG("mw3shop", "strikerCost", "");
- string str19 = base.GetServerCFG("mw3shop", "aa12Cost", "");
- string serverCFG20 = base.GetServerCFG("mw3shop", "usasCost", "");
- string str20 = base.GetServerCFG("mw3shop", "spasCost", "");
- string serverCFG21 = base.GetServerCFG("mw3shop", "xm25Cost", "");
- string str21 = base.GetServerCFG("mw3shop", "rpgCost", "");
- string serverCFG22 = base.GetServerCFG("mw3shop", "ammoCost", "");
- string str22 = base.GetServerCFG("mw3shop", "zHPCost", "");
- string serverCFG23 = base.GetServerCFG("mw3shop", "claymoreCost", "");
- if (Message != "!z_info")
- {
- if (Message == "!myhealth")
- {
- base.iPrintLnBold(string.Concat((int)this.ZHP[Client.XUID], " ", Client.Other.Health), Client);
- }
- if (Message != "!firestorm")
- {
- if (Message != "!sa")
- {
- if (Message == "!tut")
- {
- base.iPrintLnBold("^2This is the shop for ^1Walking-DEAD MOD^2. ^3Type ^1!shop^3 to show it.", Client);
- }
- if (Message == "!mypoints")
- {
- base.iPrintLnBold(string.Concat("^2YOUR POINTS: ", item), Client);
- }
- if (Message == "!credits")
- {
- base.iPrintLnBold("^2Created by JayDi. ^7Fixed by JoSchaap(XS4ALL) ^3Visit ^1itsmods.com", Client);
- }
- if (Message != "!dp")
- {
- if (Message != "!shop")
- {
- if (Message != "!weapons")
- {
- if (Message != "!perks")
- {
- if (Message != "!smg")
- {
- if (Message != "!lmg")
- {
- if (Message != "!assault")
- {
- if (Message != "!snipe")
- {
- if (Message != "!shotguns")
- {
- if (Message != "!expl")
- {
- if (Client.Team == Teams.Allies)
- {
- if (Message != "!ammo")
- {
- if (Message != "!mp5")
- {
- if (Message != "!mp7")
- {
- if (Message != "!pm9")
- {
- if (Message != "!p90")
- {
- if (Message != "!pp90")
- {
- if (Message != "!ump45")
- {
- if (Message != "!m60")
- {
- if (Message != "!mk46")
- {
- if (Message != "!pech")
- {
- if (Message != "!l86")
- {
- if (Message != "!mg36")
- {
- if (Message != "!m4")
- {
- if (Message != "!ak47")
- {
- if (Message != "!m16")
- {
- if (Message != "!fad")
- {
- if (Message != "!acr")
- {
- if (Message != "!mk14")
- {
- if (Message != "!scar")
- {
- if (Message != "!g36")
- {
- if (Message != "!cm901")
- {
- if (Message != "!claymore")
- {
- if (Message != "!barret")
- {
- if (Message != "!rsass")
- {
- if (Message != "!msr")
- {
- if (Message != "!dragunov")
- {
- if (Message != "!l96a1")
- {
- if (Message != "!as50")
- {
- if (Message != "!model")
- {
- if (Message != "!striker")
- {
- if (Message != "!aa12")
- {
- if (Message != "!usas12")
- {
- if (Message == "!health")
- {
- base.iPrintLnBold("^1Only Walkers can buy it!", Client);
- }
- if (Message != "!spas12")
- {
- if (Message != "!rpg")
- {
- if (Message != "!xm25")
- {
- if (Message != "!fastermelee")
- {
- if (Message != "!fastreload")
- {
- if (Message != "!scavenger")
- {
- if (Message != "!blindeye")
- {
- if (Message != "!coldblood")
- {
- if (Message != "!bulletaccuracy")
- {
- if (Message == "!stalker")
- {
- int num = Convert.ToInt32(serverCFG4);
- if ((int)this.Points[Client.XUID] >= num)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_stalker"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num1 = Convert.ToInt32(str3);
- if ((int)this.Points[Client.XUID] >= num1)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_bulletaccuracy"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num1;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num2 = Convert.ToInt32(serverCFG3);
- if ((int)this.Points[Client.XUID] >= num2)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_coldblooded"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num2;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num3 = Convert.ToInt32(str2);
- if ((int)this.Points[Client.XUID] >= num3)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_blindeye"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num3;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num4 = Convert.ToInt32(serverCFG2);
- if ((int)this.Points[Client.XUID] >= num4)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_scavenger"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num4;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num5 = Convert.ToInt32(str1);
- if ((int)this.Points[Client.XUID] >= num5)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_fastreload"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num5;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num6 = Convert.ToInt32(serverCFG1);
- if ((int)this.Points[Client.XUID] >= num6)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_fastermelee"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num6;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num7 = Convert.ToInt32(serverCFG21);
- if ((int)this.Points[Client.XUID] >= num7)
- {
- int weapon = base.GetWeapon("xm25_mp");
- Client.Other.PrimaryWeapon = weapon;
- Client.Other.CurrentWeapon = weapon;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num7;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num8 = Convert.ToInt32(str21);
- if ((int)this.Points[Client.XUID] >= num8)
- {
- int weapon1 = base.GetWeapon("rpg_mp");
- Client.Other.PrimaryWeapon = weapon1;
- Client.Other.CurrentWeapon = weapon1;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num8;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num9 = Convert.ToInt32(str20);
- if ((int)this.Points[Client.XUID] >= num9)
- {
- int weapon2 = base.GetWeapon("iw5_spas12_mp");
- Client.Other.PrimaryWeapon = weapon2;
- Client.Other.CurrentWeapon = weapon2;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num9;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num10 = Convert.ToInt32(serverCFG20);
- if ((int)this.Points[Client.XUID] >= num10)
- {
- int weapon3 = base.GetWeapon("iw5_usas12_mp");
- Client.Other.PrimaryWeapon = weapon3;
- Client.Other.CurrentWeapon = weapon3;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num10;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num11 = Convert.ToInt32(str19);
- if ((int)this.Points[Client.XUID] >= num11)
- {
- int weapon4 = base.GetWeapon("iw5_aa12_mp");
- Client.Other.PrimaryWeapon = weapon4;
- Client.Other.CurrentWeapon = weapon4;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num11;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num12 = Convert.ToInt32(serverCFG19);
- if ((int)this.Points[Client.XUID] >= num12)
- {
- int weapon5 = base.GetWeapon("iw5_striker_mp");
- Client.Other.PrimaryWeapon = weapon5;
- Client.Other.CurrentWeapon = weapon5;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num12;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num13 = Convert.ToInt32(str18);
- if ((int)this.Points[Client.XUID] >= num13)
- {
- int weapon6 = base.GetWeapon("iw5_1887_mp");
- Client.Other.PrimaryWeapon = weapon6;
- Client.Other.CurrentWeapon = weapon6;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num13;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num14 = Convert.ToInt32(serverCFG18);
- if ((int)this.Points[Client.XUID] >= num14)
- {
- int weapon7 = base.GetWeapon("iw5_as50_mp_as50scope");
- Client.Other.PrimaryWeapon = weapon7;
- Client.Other.CurrentWeapon = weapon7;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num14;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num15 = Convert.ToInt32(str17);
- if ((int)this.Points[Client.XUID] >= num15)
- {
- int weapon8 = base.GetWeapon("iw5_l96a1_mp_l96a1scope");
- Client.Other.PrimaryWeapon = weapon8;
- Client.Other.CurrentWeapon = weapon8;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num15;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num16 = Convert.ToInt32(str16);
- if ((int)this.Points[Client.XUID] >= num16)
- {
- int weapon9 = base.GetWeapon("iw5_dragunov_mp_dragunovscope");
- Client.Other.PrimaryWeapon = weapon9;
- Client.Other.CurrentWeapon = weapon9;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num16;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num17 = Convert.ToInt32(serverCFG17);
- if ((int)this.Points[Client.XUID] >= num17)
- {
- int weapon10 = base.GetWeapon("iw5_msr_mp_msr_scope");
- Client.Other.PrimaryWeapon = weapon10;
- Client.Other.CurrentWeapon = weapon10;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num17;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num18 = Convert.ToInt32(serverCFG16);
- if ((int)this.Points[Client.XUID] >= num18)
- {
- int weapon11 = base.GetWeapon("iw5_rsass_mp_rsassscope");
- Client.Other.PrimaryWeapon = weapon11;
- Client.Other.CurrentWeapon = weapon11;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num18;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num19 = Convert.ToInt32(str15);
- if ((int)this.Points[Client.XUID] >= num19)
- {
- int weapon12 = base.GetWeapon("iw5_barrett_mp_barrettscope");
- Client.Other.PrimaryWeapon = weapon12;
- Client.Other.CurrentWeapon = weapon12;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num19;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num20 = Convert.ToInt32(serverCFG23);
- if ((int)this.Points[Client.XUID] >= num20)
- {
- int weapon13 = base.GetWeapon("claymore_mp");
- Client.Other.Equipment = weapon13;
- Client.Ammo.EquipmentAmmo = 2;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num20;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num21 = Convert.ToInt32(serverCFG15);
- if ((int)this.Points[Client.XUID] >= num21)
- {
- int weapon14 = base.GetWeapon("iw5_cm901_mp");
- Client.Other.PrimaryWeapon = weapon14;
- Client.Other.CurrentWeapon = weapon14;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num21;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num22 = Convert.ToInt32(str14);
- if ((int)this.Points[Client.XUID] >= num22)
- {
- int weapon15 = base.GetWeapon("iw5_g36c_mp");
- Client.Other.PrimaryWeapon = weapon15;
- Client.Other.CurrentWeapon = weapon15;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num22;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num23 = Convert.ToInt32(serverCFG14);
- if ((int)this.Points[Client.XUID] >= num23)
- {
- int weapon16 = base.GetWeapon("iw5_scar_mp");
- Client.Other.PrimaryWeapon = weapon16;
- Client.Other.CurrentWeapon = weapon16;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num23;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num24 = Convert.ToInt32(str13);
- if ((int)this.Points[Client.XUID] >= num24)
- {
- int weapon17 = base.GetWeapon("iw5_mk14_mp");
- Client.Other.PrimaryWeapon = weapon17;
- Client.Other.CurrentWeapon = weapon17;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num24;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num25 = Convert.ToInt32(serverCFG13);
- if ((int)this.Points[Client.XUID] >= num25)
- {
- int weapon18 = base.GetWeapon("iw5_acr_mp");
- Client.Other.PrimaryWeapon = weapon18;
- Client.Other.CurrentWeapon = weapon18;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num25;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num26 = Convert.ToInt32(str12);
- if ((int)this.Points[Client.XUID] >= num26)
- {
- int weapon19 = base.GetWeapon("iw5_fad_mp");
- Client.Other.PrimaryWeapon = weapon19;
- Client.Other.CurrentWeapon = weapon19;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num26;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num27 = Convert.ToInt32(serverCFG12);
- if ((int)this.Points[Client.XUID] >= num27)
- {
- int weapon20 = base.GetWeapon("iw5_m16_mp");
- Client.Other.PrimaryWeapon = weapon20;
- Client.Other.CurrentWeapon = weapon20;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num27;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num28 = Convert.ToInt32(str11);
- if ((int)this.Points[Client.XUID] >= num28)
- {
- int weapon21 = base.GetWeapon("iw5_ak47_mp");
- Client.Other.PrimaryWeapon = weapon21;
- Client.Other.CurrentWeapon = weapon21;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num28;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num29 = Convert.ToInt32(serverCFG11);
- if ((int)this.Points[Client.XUID] >= num29)
- {
- int weapon22 = base.GetWeapon("iw5_m4_mp");
- Client.Other.PrimaryWeapon = weapon22;
- Client.Other.CurrentWeapon = weapon22;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num29;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num30 = Convert.ToInt32(str10);
- if ((int)this.Points[Client.XUID] >= num30)
- {
- int weapon23 = base.GetWeapon("iw5_mg36_mp");
- Client.Other.PrimaryWeapon = weapon23;
- Client.Other.CurrentWeapon = weapon23;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num30;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num31 = Convert.ToInt32(serverCFG10);
- if ((int)this.Points[Client.XUID] >= num31)
- {
- int weapon24 = base.GetWeapon("iw5_sa80_mp");
- Client.Other.PrimaryWeapon = weapon24;
- Client.Other.CurrentWeapon = weapon24;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num31;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num32 = Convert.ToInt32(str9);
- if ((int)this.Points[Client.XUID] >= num32)
- {
- int weapon25 = base.GetWeapon("iw5_pecheneg_mp");
- Client.Other.PrimaryWeapon = weapon25;
- Client.Other.CurrentWeapon = weapon25;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num32;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num33 = Convert.ToInt32(serverCFG9);
- if ((int)this.Points[Client.XUID] >= num33)
- {
- int weapon26 = base.GetWeapon("iw5_mk46_mp");
- Client.Other.PrimaryWeapon = weapon26;
- Client.Other.CurrentWeapon = weapon26;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num33;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num34 = Convert.ToInt32(str8);
- if ((int)this.Points[Client.XUID] >= num34)
- {
- int weapon27 = base.GetWeapon("iw5_m60_mp");
- Client.Other.PrimaryWeapon = weapon27;
- Client.Other.CurrentWeapon = weapon27;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num34;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num35 = Convert.ToInt32(serverCFG8);
- if ((int)this.Points[Client.XUID] >= num35)
- {
- int weapon28 = base.GetWeapon("iw5_ump45_mp");
- Client.Other.PrimaryWeapon = weapon28;
- Client.Other.CurrentWeapon = weapon28;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num35;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num36 = Convert.ToInt32(str7);
- if ((int)this.Points[Client.XUID] >= num36)
- {
- int weapon29 = base.GetWeapon("iw5_pp90m1_mp");
- Client.Other.PrimaryWeapon = weapon29;
- Client.Other.CurrentWeapon = weapon29;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num36;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num37 = Convert.ToInt32(serverCFG7);
- if ((int)this.Points[Client.XUID] >= num37)
- {
- int weapon30 = base.GetWeapon("iw5_p90_mp");
- Client.Other.PrimaryWeapon = weapon30;
- Client.Other.CurrentWeapon = weapon30;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num37;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num38 = Convert.ToInt32(str6);
- if ((int)this.Points[Client.XUID] >= num38)
- {
- int weapon31 = base.GetWeapon("iw5_m9_mp");
- Client.Other.PrimaryWeapon = weapon31;
- Client.Other.CurrentWeapon = weapon31;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num38;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num39 = Convert.ToInt32(serverCFG6);
- if ((int)this.Points[Client.XUID] >= num39)
- {
- int weapon32 = base.GetWeapon("iw5_mp7_mp");
- Client.Other.PrimaryWeapon = weapon32;
- Client.Other.CurrentWeapon = weapon32;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num39;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num40 = Convert.ToInt32(str5);
- if ((int)this.Points[Client.XUID] >= num40)
- {
- int weapon33 = base.GetWeapon("iw5_mp5_mp");
- Client.Other.PrimaryWeapon = weapon33;
- Client.Other.CurrentWeapon = weapon33;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num40;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num41 = Convert.ToInt32(serverCFG22);
- if ((int)this.Points[Client.XUID] >= num41)
- {
- base.PlaySoundAtOrigin(new Vector(Client.OriginX, Client.OriginY, Client.OriginZ), "ammo_crate_use");
- base.iPrintLnBold("^2180 Ammo bullets bought!", Client);
- Client.Ammo.PrimaryAmmoClip = 180;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num41;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- if (Client.Team == Teams.Axis)
- {
- if (Message == "!health")
- {
- int num42 = Convert.ToInt32(str22);
- if ((int)this.ZHP[Client.XUID] > 0x28a)
- {
- base.iPrintLnBold("^1You can't increase health more.", Client);
- }
- else
- {
- if ((int)this.Points[Client.XUID] >= num42)
- {
- this.ZHP[Client.XUID] = (int)this.ZHP[Client.XUID] + 50;
- Client.Other.Health = (int)this.ZHP[Client.XUID];
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num42;
- base.iPrintLnBold(string.Concat("^2Your current health is: ^2", (int)this.ZHP[Client.XUID]), Client);
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- if (Message != "!empgrenade")
- {
- if (Message != "!throwing_knife")
- {
- if (Message != "!coldblood")
- {
- if (Message == "!stalker")
- {
- int num43 = Convert.ToInt32(serverCFG5);
- if ((int)this.Points[Client.XUID] >= num43)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_stalker"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num43;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num44 = Convert.ToInt32(str4);
- if ((int)this.Points[Client.XUID] >= num44)
- {
- Client.Other.SetPerk(base.GetPerk("specialty_coldblooded"));
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num44;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num45 = Convert.ToInt32(str);
- if ((int)this.Points[Client.XUID] >= num45)
- {
- int weapon34 = base.GetWeapon("throwingknife_mp");
- Client.Other.Equipment = weapon34;
- Client.Ammo.EquipmentAmmo = 2;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num45;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- else
- {
- int num46 = Convert.ToInt32(serverCFG);
- if ((int)this.Points[Client.XUID] >= num46)
- {
- int weapon35 = base.GetWeapon("emp_grenade_mp");
- Client.Other.OffhandWeapon = weapon35;
- Client.Ammo.OffhandAmmo = 2;
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] - num46;
- }
- else
- {
- base.iPrintLnBold("^1You do not have enough points!", Client);
- }
- chatType = ChatType.ChatContinue;
- return chatType;
- }
- }
- return 0;
- }
- else
- {
- strArrays = new string[7];
- strArrays[0] = "^3!rpg^2[";
- strArrays[1] = str21;
- strArrays[2] = "]^7|^3!xm25^2[";
- strArrays[3] = serverCFG21;
- strArrays[4] = "]^7|^3!claymore^2[";
- strArrays[5] = serverCFG23;
- strArrays[6] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- strArrays = new string[11];
- strArrays[0] = "^3!model^2[";
- strArrays[1] = str18;
- strArrays[2] = "]^7|^3!striker^2[";
- strArrays[3] = serverCFG19;
- strArrays[4] = "]^7|^3!aa12^2[";
- strArrays[5] = str19;
- strArrays[6] = "]^7|^3!usas12^2[";
- strArrays[7] = serverCFG20;
- strArrays[8] = "]^7|^3!spas12^2[";
- strArrays[9] = str20;
- strArrays[10] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- strArrays = new string[13];
- strArrays[0] = "^3!barret^2[";
- strArrays[1] = str15;
- strArrays[2] = "]^7|^3!rsass^2[";
- strArrays[3] = serverCFG16;
- strArrays[4] = "]^7|^3!dragunov^2[";
- strArrays[5] = str16;
- strArrays[6] = "]^7|^3!msr^2[";
- strArrays[7] = serverCFG17;
- strArrays[8] = "]^7|^3!l96a1^2[";
- strArrays[9] = str17;
- strArrays[10] = "]^7|^3!as50^2[";
- strArrays[11] = serverCFG18;
- strArrays[12] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- strArrays = new string[19];
- strArrays[0] = "^3!m4^2[";
- strArrays[1] = serverCFG11;
- strArrays[2] = "]^7|^3!ak47^2[";
- strArrays[3] = str11;
- strArrays[4] = "]^7|^3!m16^2[";
- strArrays[5] = serverCFG12;
- strArrays[6] = "]^7|^3!fad^2[";
- strArrays[7] = str12;
- strArrays[8] = "]^7|^3!acr^2[";
- strArrays[9] = serverCFG13;
- strArrays[10] = "]^7|^3!mk14^2[";
- strArrays[11] = str13;
- strArrays[12] = "]^7|^3!scar^2[";
- strArrays[13] = serverCFG14;
- strArrays[14] = "]^7|^3!g36^2[";
- strArrays[15] = str14;
- strArrays[16] = "]^7|^3!cm901^2[";
- strArrays[17] = serverCFG15;
- strArrays[18] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- strArrays = new string[11];
- strArrays[0] = "^3!m60^2[";
- strArrays[1] = str8;
- strArrays[2] = "]^7|^3!mk46^2[";
- strArrays[3] = serverCFG9;
- strArrays[4] = "]^7|^3!pech^2[";
- strArrays[5] = str9;
- strArrays[6] = "]^7|^3!l86^2[";
- strArrays[7] = serverCFG10;
- strArrays[8] = "]^7|^3!mg36^2[";
- strArrays[9] = str10;
- strArrays[10] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- strArrays = new string[13];
- strArrays[0] = "^3!mp5^2[";
- strArrays[1] = str5;
- strArrays[2] = "]^7|^3!mp7^2[";
- strArrays[3] = serverCFG6;
- strArrays[4] = "]^7|^3!pm9^2[";
- strArrays[5] = str6;
- strArrays[6] = "]^7|^3P90^2[";
- strArrays[7] = serverCFG7;
- strArrays[8] = "]^7|^3!pp90^2[";
- strArrays[9] = str7;
- strArrays[10] = "]^7|^3!ump45^2[";
- strArrays[11] = serverCFG8;
- strArrays[12] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- if (Client.Team == Teams.Allies)
- {
- strArrays = new string[15];
- strArrays[0] = "!fastermelee^2[";
- strArrays[1] = serverCFG1;
- strArrays[2] = "]^7|^3!fastreload^2[";
- strArrays[3] = str1;
- strArrays[4] = "]^7|^3!scavenger^2[";
- strArrays[5] = serverCFG2;
- strArrays[6] = "]^7|^3!blindeye^2[";
- strArrays[7] = str2;
- strArrays[8] = "]^7|^3!coldblood^2[";
- strArrays[9] = serverCFG3;
- strArrays[10] = "]^7|^3!bulletaccuracy^2[";
- strArrays[11] = str3;
- strArrays[12] = "]^7|^3!stalker^2[";
- strArrays[13] = serverCFG4;
- strArrays[14] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- }
- if (Client.Team == Teams.Axis)
- {
- strArrays = new string[5];
- strArrays[0] = "^1For infected:^7|^3!coldblood ^2[";
- strArrays[1] = str4;
- strArrays[2] = "]^7|^3!stalker ^2[";
- strArrays[3] = serverCFG5;
- strArrays[4] = "]^3";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- if (Client.Team == Teams.Allies)
- {
- base.iPrintLnBold("!smg^7-^2SMGs^7|^3!lmg^7-^2LMGs^7|^3!assault^7-^2Assaults^7|^3!snipe^7-^2Snipers^7|^3!shotguns^7-^2Shotguns^7|^3!expl^7-^2Explosives", Client);
- }
- if (Client.Team == Teams.Axis)
- {
- base.iPrintLnBold("^1You can't use it", Client);
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- if (Client.Team == Teams.Allies)
- {
- base.TellClient(Client.ClientNum, "^1!weapons^7 - ^3shows weapon list\n^1!perks^7 - ^3shows perk list", true);
- }
- if (Client.Team == Teams.Axis)
- {
- strArrays = new string[7];
- strArrays[0] = "^3!empgrenade ^2[";
- strArrays[1] = serverCFG;
- strArrays[2] = "]^7|^3!throwing_knife ^2[";
- strArrays[3] = str;
- strArrays[4] = "]^7|^3!health ^2[";
- strArrays[5] = str22;
- strArrays[6] = "]";
- base.iPrintLnBold(string.Concat(strArrays), Client);
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- try
- {
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] + 100;
- base.iPrintLnBold(string.Concat("^5Currently you have ^1", (int)this.Points[Client.XUID], "^5 points"), Client);
- }
- catch (Exception exception1)
- {
- Exception exception = exception1;
- base.iPrintLn(string.Concat("[^1DEV^7]: ", exception.Message), Client);
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- if (Client.Stats.Kills < 5)
- {
- base.iPrintLnBold("^1You can't activate special ability. You need to earn specific kills.", Client);
- }
- else
- {
- if (Client.Team != Teams.Allies)
- {
- if (Client.Team == Teams.Axis)
- {
- base.iPrintLnBold("^1Not allowed for Walkers", Client);
- }
- }
- else
- {
- if ((int)this.sa[Client.XUID] < 2)
- {
- if ((int)this.sa[Client.XUID] <= 2)
- {
- base.iPrintLnBold("^1You can't use it now. You don't have enough special points!", Client);
- }
- }
- else
- {
- this.sa[Client.XUID] = (int)this.sa[Client.XUID] - (int)this.sa[Client.XUID] + 1;
- Random random = new Random();
- int num47 = random.Next(1, 4);
- switch (num47)
- {
- case 1:
- {
- base.iPrintLnBold("^1Your random ^3special ability ^1is: Free ammo!", Client);
- Client.Ammo.PrimaryAmmo = 5;
- Client.Ammo.PrimaryAmmoClip = 80;
- Client.Ammo.SecondaryAmmo = 5;
- Client.Ammo.SecondaryAmmoClip = 80;
- break;
- }
- case 2:
- {
- base.iPrintLnBold("^1Your random ^3special ability ^1is: Nothing! :trolface:", Client);
- break;
- }
- case 3:
- {
- base.iPrintLnBold("^1Your random ^3special ability ^1is: 2x Health!", Client);
- Client.Other.Health = 200;
- break;
- }
- case 4:
- {
- base.iPrintLnBold("^1Your random ^3special ability ^1is: +200 points!", Client);
- this.Points[Client.XUID] = (int)this.Points[Client.XUID] + 200;
- break;
- }
- }
- }
- }
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- if (Client.Stats.Kills < 13)
- {
- base.iPrintLnBold("^1You can't activate special ability. You need to earn specific kills.", Client);
- }
- else
- {
- if (Client.Team != Teams.Allies)
- {
- if (Client.Team == Teams.Axis)
- {
- base.iPrintLnBold("^1Not allowed for Walkers", Client);
- }
- }
- else
- {
- if ((int)this.fs[Client.XUID] < 2)
- {
- if ((int)this.fs[Client.XUID] <= 2)
- {
- base.iPrintLnBold("^1You can't use it now. You don't have enough special points!", Client);
- }
- }
- else
- {
- base.iPrintLnBold("^1This effect was removed by JoSchaap/Pieter :(", Client);
- }
- }
- }
- chatType = ChatType.ChatContinue;
- }
- }
- else
- {
- base.iPrintLnBold("^2Survive the Walking DEAD! Collect points to upgrade yourself!", Client);
- chatType = ChatType.ChatContinue;
- }
- }
- catch
- {
- return 0;
- }
- return chatType;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement