Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shop code
#1
please csharp code> shop http://www.itsmods.com/forum/Thread-Rele...etype.html, code, I want to tweak it for yourself!
Reply

#2
(02-13-2013, 17:56) funny Wrote: please csharp code> shop http://www.itsmods.com/forum/Thread-Rele...etype.html, code, I want to tweak it for yourself!

The code is on page 8
Code:
using Addon;
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
using System.Collections;
using System.IO;
namespace mw3shop
{
     public class mw3shop : CPlugin
     {
         // SHITLOAD OF CODES
        

        // PERKS
         /*
         * empgrenade
          * tk
          * fastmelee
          * fastreload
          * scavenger
          * blindeye
          * coldblood
          * bulletacc
          * stalker
          * iw5_mp5
             iw5_mp7
             iw5_m9
             iw5_p90
             iw5_pp90m1
             iw5_ump45
          * iw5_m60
             iw5_mk46
             iw5_pecheneg
             iw5_sa80
             iw5_mg36
          *
         * iw5_m4
             iw5_ak47
             iw5_m16
             iw5_fad
             iw5_acr
             iw5_mk14
             iw5_scar
             iw5_g36c
             iw5_cm901
          *  iw5_barrett
             iw5_rsass
             iw5_dragunov
             iw5_msr
             iw5_l96a1
             iw5_as50
          *  iw5_1887
             iw5_striker
             iw5_aa12
             iw5_usas12
             iw5_spas12
             xm25
             rpg
         */
         Hashtable Points = new Hashtable();


        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
                 {
                     Points[Attacker.XUID] = (((int)Points[Attacker.XUID]) + 100);
                     iPrintLnBold("^5Currently you have ^1" + (int)Points[Attacker.XUID] + "^5 points", Attacker);
                 }
                 catch (Exception z)
                 {
                     iPrintLn("[^1DEV^7]: " + z.Message, Attacker);
                 }
             }
             return Damage;
         }


        // Credits for MW3Console func - Jariz
         unsafe string MW3Console
         {
             get
             {
                 IntPtr form = *(IntPtr*)0x5933A50;
                 IntPtr txtbox = FindWindowEx(form, IntPtr.Zero, "Edit", null);
                 IntPtr console = FindWindowEx(form, txtbox, "Edit", null);
                 StringBuilder sb = new StringBuilder(9999999);
                 int result = SendMessageTimeout(console, 0x0D, 9999999, sb, 10, 500, IntPtr.Zero);
                 return sb.ToString();
             }
         }
         [DllImport("user32.dll", EntryPoint = "FindWindow", CharSet = CharSet.Ansi)]
         public static extern IntPtr FindWindow(string className, string windowName);
         [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
         public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);
         [DllImport("User32.dll", SetLastError = true)]
         public static extern int SendMessageTimeout(
           IntPtr hWnd,
           uint uMsg,
           uint wParam,
           StringBuilder lParam,
           uint fuFlags,
           uint uTimeout,
           IntPtr lpdwResult);
         public void doConsole(object x)
         {
             string disable_perks = GetServerCFG("mw3shop", "disable_perks", "");
             string disable_tk = GetServerCFG("mw3shop", "disable_tk", "");
             string clear_perks_onspawn = GetServerCFG("mw3shop", "clear_perks_onspawn", "");
             while (true)
             {
                 string[] a = MW3Console.Split(new string[] { "\r\n" }, StringSplitOptions.None);
                 int c = -1;
                 foreach (string b in a)
                 {
                     c++;
                     if (b == "]shop_sets" && c == a.Length - 2)
                     {
                         if (disable_perks == "false")
                         {
                             ServerPrint("Perks are enabled");
                         }
                         else
                         {
                             ServerPrint("Perks are disabled");
                         }

                        if (disable_tk == "true")
                         {
                             ServerPrint("Throwing knives for zombies are DISABLED");
                         }
                         else
                         {
                             ServerPrint("Throwing knives for zombies are ENABLED");
                         }

                        if (clear_perks_onspawn == "true")
                         {
                             ServerPrint("Class perks clears on spawn");
                         }
                         else
                         {
                             ServerPrint("Class perks will not clear on spawn.");
                         }
                     }
                 }
                 Thread.Sleep(500);
             }
         }
         // =============== //

        public override void OnServerFrame()
         {

        }

        public override void OnServerLoad()
         {
             ServerPrint("\n");
             ServerPrint("<===Shop system for infected gametype===>");
             ServerPrint("[*] To edit costs open sv_config.ini");
             ServerPrint("[*] To disable/enable perks open sv_config.ini");
             ServerPrint("[*] TYPE 'shop_sets' here, to see settings");
             ServerPrint("[*] Created by JayDi, Thanks to JariZ for help.");
             ServerPrint("[*] Loaded!");
             ServerPrint("<=======================================>");

            setup();

            ThreadPool.QueueUserWorkItem(new WaitCallback(doConsole));


        }
         void setup()
         {
             if (GetServerCFG("MW3SHOP", "disable_perks", "") == "") { SetServerCFG("MW3SHOP", "disable_perks", "false"); }
             if (GetServerCFG("MW3SHOP", "disable_tk", "") == "") { SetServerCFG("MW3SHOP", "disable_tk", "false"); }
             if (GetServerCFG("MW3SHOP", "barrettCost", "") == "") { SetServerCFG("MW3SHOP", "barrettCost", "900"); }
             if (GetServerCFG("MW3SHOP", "ammoCost", "") == "") { SetServerCFG("MW3SHOP", "ammoCost", "100"); }
             if (GetServerCFG("MW3SHOP", "scarCost", "") == "") { SetServerCFG("MW3SHOP", "scarCost", "550"); }
             if (GetServerCFG("MW3SHOP", "mk14Cost", "") == "") { SetServerCFG("MW3SHOP", "mk14Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "acrCost", "") == "") { SetServerCFG("MW3SHOP", "acrCost", "650"); }
             if (GetServerCFG("MW3SHOP", "fadCost", "") == "") { SetServerCFG("MW3SHOP", "fadCost", "700"); }
             if (GetServerCFG("MW3SHOP", "m16Cost", "") == "") { SetServerCFG("MW3SHOP", "m16Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "ak47Cost", "") == "") { SetServerCFG("MW3SHOP", "ak47Cost", "760"); }
             if (GetServerCFG("MW3SHOP", "m4Cost", "") == "") { SetServerCFG("MW3SHOP", "m4Cost", "800"); }
             if (GetServerCFG("MW3SHOP", "mg36Cost", "") == "") { SetServerCFG("MW3SHOP", "mg36Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "sa80Cost", "") == "") { SetServerCFG("MW3SHOP", "sa80Cost", "700"); }
             if (GetServerCFG("MW3SHOP", "cm901Cost", "") == "") { SetServerCFG("MW3SHOP", "cm901Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "g36Cost", "") == "") { SetServerCFG("MW3SHOP", "g36Cost", "700"); }
             if (GetServerCFG("MW3SHOP", "rsassCost", "") == "") { SetServerCFG("MW3SHOP", "rsassCost", "750"); }
             if (GetServerCFG("MW3SHOP", "rpgCost", "") == "") { SetServerCFG("MW3SHOP", "rpgCost", "1010"); }
             if (GetServerCFG("MW3SHOP", "xm25Cost", "") == "") { SetServerCFG("MW3SHOP", "xm25Cost", "910"); }
             if (GetServerCFG("MW3SHOP", "spasCost", "") == "") { SetServerCFG("MW3SHOP", "spasCost", "510"); }
             if (GetServerCFG("MW3SHOP", "usasCost", "") == "") { SetServerCFG("MW3SHOP", "usasCost", "550"); }
             if (GetServerCFG("MW3SHOP", "aa12Cost", "") == "") { SetServerCFG("MW3SHOP", "aa12Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "strikerCost", "") == "") { SetServerCFG("MW3SHOP", "strikerCost", "580"); }
             if (GetServerCFG("MW3SHOP", "modelCost", "") == "") { SetServerCFG("MW3SHOP", "modelCost", "700"); }
             if (GetServerCFG("MW3SHOP", "as50Cost", "") == "") { SetServerCFG("MW3SHOP", "as50Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "l96a1Cost", "") == "") { SetServerCFG("MW3SHOP", "l96a1Cost", "950"); }
             if (GetServerCFG("MW3SHOP", "msrCost", "") == "") { SetServerCFG("MW3SHOP", "msrCost", "1100"); }
             if (GetServerCFG("MW3SHOP", "dragCost", "") == "") { SetServerCFG("MW3SHOP", "dragCost", "700"); }
             if (GetServerCFG("MW3SHOP", "pechCost", "") == "") { SetServerCFG("MW3SHOP", "pechCost", "900"); }
             if (GetServerCFG("MW3SHOP", "mk46Cost", "") == "") { SetServerCFG("MW3SHOP", "mk46Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "m60Cost", "") == "") { SetServerCFG("MW3SHOP", "m60Cost", "990"); }
             if (GetServerCFG("MW3SHOP", "ump45Cost", "") == "") { SetServerCFG("MW3SHOP", "ump45Cost", "300"); }
             if (GetServerCFG("MW3SHOP", "pp90m1Cost", "") == "") { SetServerCFG("MW3SHOP", "pp90m1Cost", "450"); }
             if (GetServerCFG("MW3SHOP", "p90Cost", "") == "") { SetServerCFG("MW3SHOP", "p90Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "m9Cost", "") == "") { SetServerCFG("MW3SHOP", "m9Cost", "400"); }
             if (GetServerCFG("MW3SHOP", "mp7Cost", "") == "") { SetServerCFG("MW3SHOP", "mp7Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "mp5Cost", "") == "") { SetServerCFG("MW3SHOP", "mp5Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "Stalker_ZCost", "") == "") { SetServerCFG("MW3SHOP", "Stalker_ZCost", "200"); }
             if (GetServerCFG("MW3SHOP", "CB_ZCost", "") == "") { SetServerCFG("MW3SHOP", "CB_ZCost", "250"); }
             if (GetServerCFG("MW3SHOP", "StalkerCost", "") == "") { SetServerCFG("MW3SHOP", "StalkerCost", "300"); }
             if (GetServerCFG("MW3SHOP", "BACost", "") == "") { SetServerCFG("MW3SHOP", "BACost", "400"); }
             if (GetServerCFG("MW3SHOP", "CBCost", "") == "") { SetServerCFG("MW3SHOP", "CBCost", "500"); }
             if (GetServerCFG("MW3SHOP", "BECost", "") == "") { SetServerCFG("MW3SHOP", "BECost", "300"); }
             if (GetServerCFG("MW3SHOP", "ScavengerCost", "") == "") { SetServerCFG("MW3SHOP", "ScavengerCost", "300"); }
             if (GetServerCFG("MW3SHOP", "FRCost", "") == "") { SetServerCFG("MW3SHOP", "FRCost", "500"); }
             if (GetServerCFG("MW3SHOP", "FMCost", "") == "") { SetServerCFG("MW3SHOP", "FMCost", "450"); }
             if (GetServerCFG("MW3SHOP", "TKCost", "") == "") { SetServerCFG("MW3SHOP", "TKCost", "200"); }
             if (GetServerCFG("MW3SHOP", "EmpGrenadeCost", "") == "") { SetServerCFG("MW3SHOP", "EmpGrenadeCost", "200"); }
             if (GetServerCFG("MW3SHOP", "clear_perks_onspawn", "") == "") { SetServerCFG("MW3SHOP", "clear_perks_onspawn", "false"); }
             if (GetServerCFG("MW3SHOP", "claymoreCost", "") == "") { SetServerCFG("MW3SHOP", "claymoreCost", "420"); }
         }
         public override void OnPlayerConnect(ServerClient Client)
         {
            
         }

        public override ChatType OnSay(string Message, ServerClient Client)
         {
             try
             {

                // POINTS
                 int points = (int)Points[Client.XUID];


                // SHOWS
                 string EmpGrenadeCost = GetServerCFG("mw3shop", "EmpGrenadeCost", "");
                 string TKCost = GetServerCFG("mw3shop", "TKCost", "");
                 // PERKS
                 string FMCost = GetServerCFG("mw3shop", "FMCost", "");
                 string FRCost = GetServerCFG("mw3shop", "FRCost", "");
                 string ScavengerCost = GetServerCFG("mw3shop", "ScavengerCost", "");
                 string BECost = GetServerCFG("mw3shop", "BECost", "");
                 string CBCost = GetServerCFG("mw3shop", "CBCost", "");
                 string BACost = GetServerCFG("mw3shop", "BACost", "");
                 string StalkerCost = GetServerCFG("mw3shop", "StalkerCost", "");
                 string CB_ZCost = GetServerCFG("mw3shop", "CB_ZCost", "");
                 string Stalker_ZCost = GetServerCFG("mw3shop", "Stalker_ZCost", "");
                 // weapons
                 string mp5Cost = GetServerCFG("mw3shop", "mp5Cost", "");
                 string mp7Cost = GetServerCFG("mw3shop", "mp7Cost", "");
                 string m9Cost = GetServerCFG("mw3shop", "m9Cost", "");
                 string p90Cost = GetServerCFG("mw3shop", "p90Cost", "");
                 string pp90m1Cost = GetServerCFG("mw3shop", "pp90m1Cost", "");
                 string ump45Cost = GetServerCFG("mw3shop", "ump45Cost", "");
                 string m60Cost = GetServerCFG("mw3shop", "m60Cost", "");
                 string mk46Cost = GetServerCFG("mw3shop", "mk46Cost", "");
                 string pechCost = GetServerCFG("mw3shop", "pechCost", "");
                 string sa80Cost = GetServerCFG("mw3shop", "sa80Cost", "");
                 string mg36Cost = GetServerCFG("mw3shop", "mg36Cost", "");
                 string m4Cost = GetServerCFG("mw3shop", "m4Cost", "");
                 string ak47Cost = GetServerCFG("mw3shop", "ak47Cost", "");
                 string m16Cost = GetServerCFG("mw3shop", "m16Cost", "");
                 string fadCost = GetServerCFG("mw3shop", "fadCost", "");
                 string acrCost = GetServerCFG("mw3shop", "acrCost", "");
                 string mk14Cost = GetServerCFG("mw3shop", "mk14Cost", "");
                 string scarCost = GetServerCFG("mw3shop", "scarCost", "");
                 string g36Cost = GetServerCFG("mw3shop", "g36Cost", "");
                 string cm901Cost = GetServerCFG("mw3shop", "cm901Cost", "");
                 string barrettCost = GetServerCFG("mw3shop", "barrettCost", "");
                 string rsassCost = GetServerCFG("mw3shop", "rsassCost", "");
                 string dragCost = GetServerCFG("mw3shop", "dragCost", "");
                 string msrCost = GetServerCFG("mw3shop", "msrCost", "");
                 string l96a1Cost = GetServerCFG("mw3shop", "l96a1Cost", "");
                 string as50Cost = GetServerCFG("mw3shop", "as50Cost", "");
                 string modelCost = GetServerCFG("mw3shop", "modelCost", "");
                 string strikerCost = GetServerCFG("mw3shop", "strikerCost", "");
                 string aa12Cost = GetServerCFG("mw3shop", "aa12Cost", "");
                 string usasCost = GetServerCFG("mw3shop", "usasCost", "");
                 string spasCost = GetServerCFG("mw3shop", "spasCost", "");
                 string xm25Cost = GetServerCFG("mw3shop", "xm25Cost", "");
                 string rpgCost = GetServerCFG("mw3shop", "rpgCost", "");
                 string ammoCost = GetServerCFG("mw3shop", "ammoCost", "");
                 string ZHPCost = GetServerCFG("mw3shop", "zHPCost", "");
                 string claymoreCost = GetServerCFG("mw3shop", "claymoreCost", "");

                string disable_perks = GetServerCFG("mw3shop", "disable_perks", "");
                 string disable_tk = GetServerCFG("mw3shop", "disable_tk", "");
                 if (Message == "!z_info")
                 {
                     iPrintLnBold("^2This is zombie survival. Collect points to upgrade yourself!", Client);
                     return ChatType.ChatNone;
                 }
                 // SHOP
                
                if (Message == "!tut")
                 {
                     iPrintLnBold("^2This is Shop system for ^1Infected gametype^2. ^3Type ^1!shop^3 to show shop.", Client);
                 }
                 if (Message == "!mypoints")
                 {
                     iPrintLnBold("^2YOUR POINTS: " + points, Client);
                 }
                 if (Message == "!credits")
                 {
                     iPrintLnBold("^2Created by JayDi. ^3Visit ^1itsmods.com ^3for more mods and fun!", Client);
                 }


                if (Message == "!shop")
                 {
                     if (Client.Team == Teams.Allies)
                     {
                         TellClient(Client.ClientNum, "^1!weapons^7 - ^3shows weapon list\n^1!perks^7 - ^3shows perk list", true);
                     }
                     if (Client.Team == Teams.Axis)
                     {
                         iPrintLnBold("^3!empgrenade ^2[" + EmpGrenadeCost + "]^7|^3!throwing_knife ^2[" + TKCost + "]", Client);
                     }
                     return ChatType.ChatNone;
                 }

                if (Message == "!weapons")
                 {
                     if (Client.Team == Teams.Allies)
                     {
                         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)
                     {
                         iPrintLnBold("^1You can't use it", Client);
                     }
                     return ChatType.ChatNone;
                 }
                 if (Message == "!perks")
                 {

                    if (Client.Team == Teams.Allies)
                     {
                         iPrintLnBold("!fastermelee^2[" + FMCost + "]^7|^3!fastreload^2[" + FRCost + "]^7|^3!scavenger^2[" + ScavengerCost + "]^7|^3n!blindeye^2[" + BECost + "]^7|^3!coldblood^2[" + CBCost + "]^7|^3!bulletaccuracy^2[" + BACost + "]^7|^3!stalker^2[" + StalkerCost + "]", Client);
                     }
                     if (Client.Team == Teams.Axis)
                     {
                         iPrintLnBold("^1For infected:^7|^3!coldblood ^2[" + CB_ZCost + "]^7|^3!stalker ^2[" + Stalker_ZCost + "]^3", Client);
                     }

                    return ChatType.ChatNone;
                 }
                 // WEAPONS

                if (Message == "!smg")
                 {
                     /*
                     iw5_mp5
                     iw5_mp7
                     iw5_m9
                     iw5_p90
                     iw5_pp90m1
                     iw5_ump45
                     */
                     iPrintLnBold("^3!mp5^2[" + mp5Cost + "]^7|^3!mp7^2[" + mp7Cost + "]^7|^3!pm9^2[" + m9Cost + "]^7|^3P90^2[" + p90Cost + "]^7|^3!pp90^2[" + pp90m1Cost + "]^7|^3!ump45^2[" + ump45Cost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!lmg")
                 {
                     /*
                     iw5_m60
                     iw5_mk46
                     iw5_pecheneg
                     iw5_sa80
                     iw5_mg36
                     */
                     iPrintLnBold("^3!m60^2[" + m60Cost + "]^7|^3!mk46^2[" + mk46Cost + "]^7|^3!pech^2[" + pechCost + "]^7|^3!l86^2[" + sa80Cost + "]^7|^3!mg36^2[" + mg36Cost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!assault")
                 {
                     /*
                     iw5_m4
                     iw5_ak47
                     iw5_m16
                     iw5_fad
                     iw5_acr
                     iw5_mk14
                     iw5_scar
                     iw5_g36c
                     iw5_cm901
                     */
                     iPrintLnBold("^3!m4^2[" + m4Cost + "]^7|^3!ak47^2[" + ak47Cost + "]^7|^3!m16^2[" + m16Cost + "]^7|^3!fad^2[" + fadCost + "]^7|^3!acr^2[" + acrCost + "]^7|^3!mk14^2[" + mk14Cost + "]^7|^3!scar^2[" + scarCost + "]^7|^3!g36^2[" + g36Cost + "]^7|^3!cm901^2[" + cm901Cost + "]", Client);
                     return ChatType.ChatNone;
                 }

                if (Message == "!snipe")
                 {
                     /*
                     iw5_barrett
                     iw5_rsass
                     iw5_dragunov
                     iw5_msr
                     iw5_l96a1
                     iw5_as50

                    */
                     iPrintLnBold("^3!barret^2[" + barrettCost + "]^7|^3!rsass^2[" + rsassCost + "]^7|^3!dragunov^2[" + dragCost + "]^7|^3!msr^2[" + msrCost + "]^7|^3!l96a1^2[" + l96a1Cost + "]^7|^3!as50^2[" + as50Cost + "]", Client);
                     return ChatType.ChatNone;
                 }

                if (Message == "!shotguns")
                 {
                     /*
                     iw5_1887
                     iw5_striker
                     iw5_aa12
                     iw5_usas12
                     iw5_spas12
                     */
                     iPrintLnBold("^3!model^2[" + modelCost + "]^7|^3!striker^2[" + strikerCost + "]^7|^3!aa12^2[" + aa12Cost + "]^7|^3!usas12^2[" + usasCost + "]^7|^3!spas12^2[" + spasCost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!expl")
                 {
                     /*xm25*/
                     iPrintLnBold("^3!rpg^2[" + rpgCost + "]^7|^3!xm25^2[" + xm25Cost + "]^7|^3!claymore^2[" + claymoreCost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 // BUY SYSTEMS
                 if (Client.Team == Teams.Allies)
                 {
                     if (Message == "!ammo")
                     {
                         int ammoCost2 = Convert.ToInt32(ammoCost);
                         if ((int)Points[Client.XUID] < ammoCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             iPrintLnBold("^2180 Ammo bullets bought!", Client);
                             Client.Ammo.PrimaryAmmoClip = 180;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ammoCost2;
                         }
                         return ChatType.ChatNone;
                     }
                     // smgs
                     if (Message == "!mp5")
                     {
                         int mp5Cost2 = Convert.ToInt32(mp5Cost);
                         if ((int)Points[Client.XUID] < mp5Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mp5_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mp5Cost2;
                         }
                         return ChatType.ChatNone;
                     }
                     if (Message == "!mp7")
                     {

                        int mp7Cost2 = Convert.ToInt32(mp7Cost);
                         if ((int)Points[Client.XUID] < mp7Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mp7_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mp7Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pm9")
                     {
                         int m9Cost2 = Convert.ToInt32(m9Cost);
                         if ((int)Points[Client.XUID] < m9Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m9_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m9Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!p90")
                     {
                         int p90Cost2 = Convert.ToInt32(p90Cost);
                         if ((int)Points[Client.XUID] < p90Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_p90_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - p90Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pp90")
                     {
                         int pp90m1Cost2 = Convert.ToInt32(pp90m1Cost);
                         if ((int)Points[Client.XUID] < pp90m1Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_pp90m1_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - pp90m1Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!ump45")
                     {
                         int ump45Cost2 = Convert.ToInt32(ump45Cost);
                         if ((int)Points[Client.XUID] < ump45Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_ump45_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ump45Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //lmgs
                     if (Message == "!m60")
                     {
                         int m60Cost2 = Convert.ToInt32(m60Cost);
                         if ((int)Points[Client.XUID] < m60Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m60_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m60Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mk46")
                     {
                         int mk46Cost2 = Convert.ToInt32(mk46Cost);
                         if ((int)Points[Client.XUID] < mk46Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mk46_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mk46Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pech")
                     {
                         int pechCost2 = Convert.ToInt32(pechCost);
                         if ((int)Points[Client.XUID] < pechCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_pecheneg_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - pechCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!l86")
                     {
                         int sa80Cost2 = Convert.ToInt32(sa80Cost);
                         if ((int)Points[Client.XUID] < sa80Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_sa80_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - sa80Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mg36")
                     {
                         int mg36Cost2 = Convert.ToInt32(mg36Cost);
                         if ((int)Points[Client.XUID] < mg36Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mg36_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mg36Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    // assaults
                     if (Message == "!m4")
                     {
                         int m4Cost2 = Convert.ToInt32(m4Cost);
                         if ((int)Points[Client.XUID] < m4Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m4_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m4Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!ak47")
                     {
                         int ak47Cost2 = Convert.ToInt32(ak47Cost);
                         if ((int)Points[Client.XUID] < ak47Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_ak47_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ak47Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!m16")
                     {
                         int m16Cost2 = Convert.ToInt32(m16Cost);
                         if ((int)Points[Client.XUID] < m16Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m16_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m16Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!fad")
                     {
                         int fadCost2 = Convert.ToInt32(fadCost);
                         if ((int)Points[Client.XUID] < fadCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_fad_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - fadCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!acr")
                     {
                         int acrCost2 = Convert.ToInt32(acrCost);
                         if ((int)Points[Client.XUID] < acrCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_acr_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - acrCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mk14")
                     {
                         int mk14Cost2 = Convert.ToInt32(mk14Cost);
                         if ((int)Points[Client.XUID] < mk14Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mk14_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mk14Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!scar")
                     {
                         int scarCost2 = Convert.ToInt32(scarCost);
                         if ((int)Points[Client.XUID] < scarCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_scar_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - scarCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!g36")
                     {
                         int g36Cost2 = Convert.ToInt32(g36Cost);
                         if ((int)Points[Client.XUID] < g36Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_g36c_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - g36Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!cm901")
                     {
                         int cm901Cost2 = Convert.ToInt32(cm901Cost);
                         if ((int)Points[Client.XUID] < cm901Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_cm901_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - cm901Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!claymore")
                     {
                         int cmCost2 = Convert.ToInt32(claymoreCost);
                         if ((int)Points[Client.XUID] < cmCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("claymore_mp");
                             Client.Other.Equipment = WepID;
                             Client.Ammo.EquipmentAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - cmCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     //snipers
                     if (Message == "!barret")
                     {
                         int barrettCost2 = Convert.ToInt32(barrettCost);
                         if ((int)Points[Client.XUID] < barrettCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_barrett_mp_barrettscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - barrettCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!rsass")
                     {
                         int rsassCost2 = Convert.ToInt32(rsassCost);
                         if ((int)Points[Client.XUID] < rsassCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_rsass_mp_rsassscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - rsassCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!msr")
                     {
                         int msrCost2 = Convert.ToInt32(msrCost);
                         if ((int)Points[Client.XUID] < msrCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_msr_mp_msr_scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - msrCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!dragunov")
                     {
                         int dragCost2 = Convert.ToInt32(dragCost);
                         if ((int)Points[Client.XUID] < dragCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_dragunov_mp_dragunovscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - dragCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!l96a1")
                     {
                         int l96a1Cost2 = Convert.ToInt32(l96a1Cost);
                         if ((int)Points[Client.XUID] < l96a1Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_l96a1_mp_l96a1scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - l96a1Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!as50")
                     {
                         int as50Cost2 = Convert.ToInt32(as50Cost);
                         if ((int)Points[Client.XUID] < as50Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_as50_mp_as50scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - as50Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //shotguns
                     if (Message == "!model")
                     {
                         int modelCost2 = Convert.ToInt32(modelCost);
                         if ((int)Points[Client.XUID] < modelCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_1887_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - modelCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!striker")
                     {
                         int strikerCost2 = Convert.ToInt32(strikerCost);
                         if ((int)Points[Client.XUID] < strikerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_striker_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - strikerCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!aa12")
                     {
                         int aa12Cost2 = Convert.ToInt32(aa12Cost);
                         if ((int)Points[Client.XUID] < aa12Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_aa12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - aa12Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    if (Message == "!usas12")
                     {
                         int usasCost2 = Convert.ToInt32(usasCost);
                         if ((int)Points[Client.XUID] < usasCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_usas12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - usasCost2;
                         }

                        return ChatType.ChatNone;
                     }
    

                    if (Message == "!spas12")
                     {
                         int spasCost2 = Convert.ToInt32(spasCost);
                         if ((int)Points[Client.XUID] < spasCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_spas12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - spasCost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //explosives
                     if (Message == "!rpg")
                     {
                         int rpgCost2 = Convert.ToInt32(rpgCost);
                         if ((int)Points[Client.XUID] < rpgCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("rpg_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - rpgCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!xm25")
                     {
                         int xm25Cost2 = Convert.ToInt32(xm25Cost);
                         if ((int)Points[Client.XUID] < xm25Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("xm25_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - xm25Cost2;
                         }


                        return ChatType.ChatNone;
                     }

                    if (Message == "!fastermelee")
                     {
                         int FMCost2 = Convert.ToInt32(FMCost);
                         if ((int)Points[Client.XUID] < FMCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_fastermelee"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - FMCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!fastreload")
                     {

                        int FRCost2 = Convert.ToInt32(FRCost);
                         if ((int)Points[Client.XUID] < FRCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_fastreload"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - FRCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!scavenger")
                     {

                        int ScavengerCost2 = Convert.ToInt32(ScavengerCost);
                         if ((int)Points[Client.XUID] < ScavengerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_scavenger"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ScavengerCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!blindeye")
                     {

                        int BECost2 = Convert.ToInt32(BECost);
                         if ((int)Points[Client.XUID] < BECost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_blindeye"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - BECost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!coldblood")
                     {

                        int CBCost2 = Convert.ToInt32(CBCost);
                         if ((int)Points[Client.XUID] < CBCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_coldblooded"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - CBCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!bulletaccuracy")
                     {

                        int BACost2 = Convert.ToInt32(BACost);
                         if ((int)Points[Client.XUID] < BACost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_bulletaccuracy"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - BACost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!stalker")
                     {

                        int StalkerCost2 = Convert.ToInt32(StalkerCost);
                         if ((int)Points[Client.XUID] < StalkerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_stalker"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - StalkerCost2;
                         }

                        return ChatType.ChatNone;
                     }

                }

                if (Client.Team == Teams.Axis)
                 {
                    
                     if (Message == "!empgrenade")
                     {
                         int EmpGrenadeCost2 = Convert.ToInt32(EmpGrenadeCost);


                        if ((int)Points[Client.XUID] < EmpGrenadeCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {

                            int WepID = GetWeapon("emp_grenade_mp");
                             Client.Other.OffhandWeapon = WepID;
                             Client.Ammo.OffhandAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - EmpGrenadeCost2;
                         }
                         return ChatType.ChatNone;

                    }

                    if (Message == "!throwing_knife")
                     {

                        int TKCost2 = Convert.ToInt32(TKCost);

                        if ((int)Points[Client.XUID] < TKCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("throwingknife_mp");
                             Client.Other.Equipment = WepID;
                             Client.Ammo.EquipmentAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - TKCost2;
                         }
                         return ChatType.ChatNone;
                     }
                     if (Message == "!coldblood")
                     {

                        int CB_ZCost2 = Convert.ToInt32(CB_ZCost);
                         if ((int)Points[Client.XUID] < CB_ZCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_coldblooded"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - CB_ZCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!stalker")
                     {
                         int Stalker_ZCost2 = Convert.ToInt32(Stalker_ZCost);
                         if ((int)Points[Client.XUID] < Stalker_ZCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_stalker"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - Stalker_ZCost2;
                         }
                         return ChatType.ChatNone;
                     }

                }
             }
             catch { }
             return ChatType.ChatContinue;
         }

        public override string OnCheckBan(string xuid)
         {
             return null;
         }

        public override void OnMapChange()
         {
         }

        public override void OnFastRestart()
         {
         }

        public override void OnPlayerSpawned(ServerClient Client)
         {
             iPrintLnBold("^2Type ^1!shop^2 to show list. ^2Type ^1!tut^2 for help.", Client);
             if (Points[Client.XUID] == null) { Points.Add(Client.XUID, 0); }
             string clear_perks_onspawn = GetServerCFG("mw3shop", "clear_perks_onspawn", "");
             if (clear_perks_onspawn == "true")
             {
                 Client.Other.ClearPerks();
             }
         }



        // <========== SHOP SYSTEMS ==========>
    }
}
Reply

#3
Why using this old shop code?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
(02-13-2013, 18:10)SirGravzy Wrote:
(02-13-2013, 18:08)SailorMoon Wrote: Why using this old shop code?

Why reply to this thread with nothing useful?

Why not just sht up? Troll

By the way, it is old code, use moonlight code
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
i cant even get the moonlight cmds to work
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#6
(02-13-2013, 18:04)8q4s8 Wrote:
(02-13-2013, 17:56) funny Wrote: please csharp code> shop http://www.itsmods.com/forum/Thread-Rele...etype.html, code, I want to tweak it for yourself!

The code is on page 8
Code:
using Addon;
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
using System.Collections;
using System.IO;
namespace mw3shop
{
     public class mw3shop : CPlugin
     {
         // SHITLOAD OF CODES
        

        // PERKS
         /*
         * empgrenade
          * tk
          * fastmelee
          * fastreload
          * scavenger
          * blindeye
          * coldblood
          * bulletacc
          * stalker
          * iw5_mp5
             iw5_mp7
             iw5_m9
             iw5_p90
             iw5_pp90m1
             iw5_ump45
          * iw5_m60
             iw5_mk46
             iw5_pecheneg
             iw5_sa80
             iw5_mg36
          *
         * iw5_m4
             iw5_ak47
             iw5_m16
             iw5_fad
             iw5_acr
             iw5_mk14
             iw5_scar
             iw5_g36c
             iw5_cm901
          *  iw5_barrett
             iw5_rsass
             iw5_dragunov
             iw5_msr
             iw5_l96a1
             iw5_as50
          *  iw5_1887
             iw5_striker
             iw5_aa12
             iw5_usas12
             iw5_spas12
             xm25
             rpg
         */
         Hashtable Points = new Hashtable();


        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
                 {
                     Points[Attacker.XUID] = (((int)Points[Attacker.XUID]) + 100);
                     iPrintLnBold("^5Currently you have ^1" + (int)Points[Attacker.XUID] + "^5 points", Attacker);
                 }
                 catch (Exception z)
                 {
                     iPrintLn("[^1DEV^7]: " + z.Message, Attacker);
                 }
             }
             return Damage;
         }


        // Credits for MW3Console func - Jariz
         unsafe string MW3Console
         {
             get
             {
                 IntPtr form = *(IntPtr*)0x5933A50;
                 IntPtr txtbox = FindWindowEx(form, IntPtr.Zero, "Edit", null);
                 IntPtr console = FindWindowEx(form, txtbox, "Edit", null);
                 StringBuilder sb = new StringBuilder(9999999);
                 int result = SendMessageTimeout(console, 0x0D, 9999999, sb, 10, 500, IntPtr.Zero);
                 return sb.ToString();
             }
         }
         [DllImport("user32.dll", EntryPoint = "FindWindow", CharSet = CharSet.Ansi)]
         public static extern IntPtr FindWindow(string className, string windowName);
         [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
         public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);
         [DllImport("User32.dll", SetLastError = true)]
         public static extern int SendMessageTimeout(
           IntPtr hWnd,
           uint uMsg,
           uint wParam,
           StringBuilder lParam,
           uint fuFlags,
           uint uTimeout,
           IntPtr lpdwResult);
         public void doConsole(object x)
         {
             string disable_perks = GetServerCFG("mw3shop", "disable_perks", "");
             string disable_tk = GetServerCFG("mw3shop", "disable_tk", "");
             string clear_perks_onspawn = GetServerCFG("mw3shop", "clear_perks_onspawn", "");
             while (true)
             {
                 string[] a = MW3Console.Split(new string[] { "\r\n" }, StringSplitOptions.None);
                 int c = -1;
                 foreach (string b in a)
                 {
                     c++;
                     if (b == "]shop_sets" && c == a.Length - 2)
                     {
                         if (disable_perks == "false")
                         {
                             ServerPrint("Perks are enabled");
                         }
                         else
                         {
                             ServerPrint("Perks are disabled");
                         }

                        if (disable_tk == "true")
                         {
                             ServerPrint("Throwing knives for zombies are DISABLED");
                         }
                         else
                         {
                             ServerPrint("Throwing knives for zombies are ENABLED");
                         }

                        if (clear_perks_onspawn == "true")
                         {
                             ServerPrint("Class perks clears on spawn");
                         }
                         else
                         {
                             ServerPrint("Class perks will not clear on spawn.");
                         }
                     }
                 }
                 Thread.Sleep(500);
             }
         }
         // =============== //

        public override void OnServerFrame()
         {

        }

        public override void OnServerLoad()
         {
             ServerPrint("\n");
             ServerPrint("<===Shop system for infected gametype===>");
             ServerPrint("[*] To edit costs open sv_config.ini");
             ServerPrint("[*] To disable/enable perks open sv_config.ini");
             ServerPrint("[*] TYPE 'shop_sets' here, to see settings");
             ServerPrint("[*] Created by JayDi, Thanks to JariZ for help.");
             ServerPrint("[*] Loaded!");
             ServerPrint("<=======================================>");

            setup();

            ThreadPool.QueueUserWorkItem(new WaitCallback(doConsole));


        }
         void setup()
         {
             if (GetServerCFG("MW3SHOP", "disable_perks", "") == "") { SetServerCFG("MW3SHOP", "disable_perks", "false"); }
             if (GetServerCFG("MW3SHOP", "disable_tk", "") == "") { SetServerCFG("MW3SHOP", "disable_tk", "false"); }
             if (GetServerCFG("MW3SHOP", "barrettCost", "") == "") { SetServerCFG("MW3SHOP", "barrettCost", "900"); }
             if (GetServerCFG("MW3SHOP", "ammoCost", "") == "") { SetServerCFG("MW3SHOP", "ammoCost", "100"); }
             if (GetServerCFG("MW3SHOP", "scarCost", "") == "") { SetServerCFG("MW3SHOP", "scarCost", "550"); }
             if (GetServerCFG("MW3SHOP", "mk14Cost", "") == "") { SetServerCFG("MW3SHOP", "mk14Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "acrCost", "") == "") { SetServerCFG("MW3SHOP", "acrCost", "650"); }
             if (GetServerCFG("MW3SHOP", "fadCost", "") == "") { SetServerCFG("MW3SHOP", "fadCost", "700"); }
             if (GetServerCFG("MW3SHOP", "m16Cost", "") == "") { SetServerCFG("MW3SHOP", "m16Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "ak47Cost", "") == "") { SetServerCFG("MW3SHOP", "ak47Cost", "760"); }
             if (GetServerCFG("MW3SHOP", "m4Cost", "") == "") { SetServerCFG("MW3SHOP", "m4Cost", "800"); }
             if (GetServerCFG("MW3SHOP", "mg36Cost", "") == "") { SetServerCFG("MW3SHOP", "mg36Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "sa80Cost", "") == "") { SetServerCFG("MW3SHOP", "sa80Cost", "700"); }
             if (GetServerCFG("MW3SHOP", "cm901Cost", "") == "") { SetServerCFG("MW3SHOP", "cm901Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "g36Cost", "") == "") { SetServerCFG("MW3SHOP", "g36Cost", "700"); }
             if (GetServerCFG("MW3SHOP", "rsassCost", "") == "") { SetServerCFG("MW3SHOP", "rsassCost", "750"); }
             if (GetServerCFG("MW3SHOP", "rpgCost", "") == "") { SetServerCFG("MW3SHOP", "rpgCost", "1010"); }
             if (GetServerCFG("MW3SHOP", "xm25Cost", "") == "") { SetServerCFG("MW3SHOP", "xm25Cost", "910"); }
             if (GetServerCFG("MW3SHOP", "spasCost", "") == "") { SetServerCFG("MW3SHOP", "spasCost", "510"); }
             if (GetServerCFG("MW3SHOP", "usasCost", "") == "") { SetServerCFG("MW3SHOP", "usasCost", "550"); }
             if (GetServerCFG("MW3SHOP", "aa12Cost", "") == "") { SetServerCFG("MW3SHOP", "aa12Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "strikerCost", "") == "") { SetServerCFG("MW3SHOP", "strikerCost", "580"); }
             if (GetServerCFG("MW3SHOP", "modelCost", "") == "") { SetServerCFG("MW3SHOP", "modelCost", "700"); }
             if (GetServerCFG("MW3SHOP", "as50Cost", "") == "") { SetServerCFG("MW3SHOP", "as50Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "l96a1Cost", "") == "") { SetServerCFG("MW3SHOP", "l96a1Cost", "950"); }
             if (GetServerCFG("MW3SHOP", "msrCost", "") == "") { SetServerCFG("MW3SHOP", "msrCost", "1100"); }
             if (GetServerCFG("MW3SHOP", "dragCost", "") == "") { SetServerCFG("MW3SHOP", "dragCost", "700"); }
             if (GetServerCFG("MW3SHOP", "pechCost", "") == "") { SetServerCFG("MW3SHOP", "pechCost", "900"); }
             if (GetServerCFG("MW3SHOP", "mk46Cost", "") == "") { SetServerCFG("MW3SHOP", "mk46Cost", "850"); }
             if (GetServerCFG("MW3SHOP", "m60Cost", "") == "") { SetServerCFG("MW3SHOP", "m60Cost", "990"); }
             if (GetServerCFG("MW3SHOP", "ump45Cost", "") == "") { SetServerCFG("MW3SHOP", "ump45Cost", "300"); }
             if (GetServerCFG("MW3SHOP", "pp90m1Cost", "") == "") { SetServerCFG("MW3SHOP", "pp90m1Cost", "450"); }
             if (GetServerCFG("MW3SHOP", "p90Cost", "") == "") { SetServerCFG("MW3SHOP", "p90Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "m9Cost", "") == "") { SetServerCFG("MW3SHOP", "m9Cost", "400"); }
             if (GetServerCFG("MW3SHOP", "mp7Cost", "") == "") { SetServerCFG("MW3SHOP", "mp7Cost", "650"); }
             if (GetServerCFG("MW3SHOP", "mp5Cost", "") == "") { SetServerCFG("MW3SHOP", "mp5Cost", "500"); }
             if (GetServerCFG("MW3SHOP", "Stalker_ZCost", "") == "") { SetServerCFG("MW3SHOP", "Stalker_ZCost", "200"); }
             if (GetServerCFG("MW3SHOP", "CB_ZCost", "") == "") { SetServerCFG("MW3SHOP", "CB_ZCost", "250"); }
             if (GetServerCFG("MW3SHOP", "StalkerCost", "") == "") { SetServerCFG("MW3SHOP", "StalkerCost", "300"); }
             if (GetServerCFG("MW3SHOP", "BACost", "") == "") { SetServerCFG("MW3SHOP", "BACost", "400"); }
             if (GetServerCFG("MW3SHOP", "CBCost", "") == "") { SetServerCFG("MW3SHOP", "CBCost", "500"); }
             if (GetServerCFG("MW3SHOP", "BECost", "") == "") { SetServerCFG("MW3SHOP", "BECost", "300"); }
             if (GetServerCFG("MW3SHOP", "ScavengerCost", "") == "") { SetServerCFG("MW3SHOP", "ScavengerCost", "300"); }
             if (GetServerCFG("MW3SHOP", "FRCost", "") == "") { SetServerCFG("MW3SHOP", "FRCost", "500"); }
             if (GetServerCFG("MW3SHOP", "FMCost", "") == "") { SetServerCFG("MW3SHOP", "FMCost", "450"); }
             if (GetServerCFG("MW3SHOP", "TKCost", "") == "") { SetServerCFG("MW3SHOP", "TKCost", "200"); }
             if (GetServerCFG("MW3SHOP", "EmpGrenadeCost", "") == "") { SetServerCFG("MW3SHOP", "EmpGrenadeCost", "200"); }
             if (GetServerCFG("MW3SHOP", "clear_perks_onspawn", "") == "") { SetServerCFG("MW3SHOP", "clear_perks_onspawn", "false"); }
             if (GetServerCFG("MW3SHOP", "claymoreCost", "") == "") { SetServerCFG("MW3SHOP", "claymoreCost", "420"); }
         }
         public override void OnPlayerConnect(ServerClient Client)
         {
            
         }

        public override ChatType OnSay(string Message, ServerClient Client)
         {
             try
             {

                // POINTS
                 int points = (int)Points[Client.XUID];


                // SHOWS
                 string EmpGrenadeCost = GetServerCFG("mw3shop", "EmpGrenadeCost", "");
                 string TKCost = GetServerCFG("mw3shop", "TKCost", "");
                 // PERKS
                 string FMCost = GetServerCFG("mw3shop", "FMCost", "");
                 string FRCost = GetServerCFG("mw3shop", "FRCost", "");
                 string ScavengerCost = GetServerCFG("mw3shop", "ScavengerCost", "");
                 string BECost = GetServerCFG("mw3shop", "BECost", "");
                 string CBCost = GetServerCFG("mw3shop", "CBCost", "");
                 string BACost = GetServerCFG("mw3shop", "BACost", "");
                 string StalkerCost = GetServerCFG("mw3shop", "StalkerCost", "");
                 string CB_ZCost = GetServerCFG("mw3shop", "CB_ZCost", "");
                 string Stalker_ZCost = GetServerCFG("mw3shop", "Stalker_ZCost", "");
                 // weapons
                 string mp5Cost = GetServerCFG("mw3shop", "mp5Cost", "");
                 string mp7Cost = GetServerCFG("mw3shop", "mp7Cost", "");
                 string m9Cost = GetServerCFG("mw3shop", "m9Cost", "");
                 string p90Cost = GetServerCFG("mw3shop", "p90Cost", "");
                 string pp90m1Cost = GetServerCFG("mw3shop", "pp90m1Cost", "");
                 string ump45Cost = GetServerCFG("mw3shop", "ump45Cost", "");
                 string m60Cost = GetServerCFG("mw3shop", "m60Cost", "");
                 string mk46Cost = GetServerCFG("mw3shop", "mk46Cost", "");
                 string pechCost = GetServerCFG("mw3shop", "pechCost", "");
                 string sa80Cost = GetServerCFG("mw3shop", "sa80Cost", "");
                 string mg36Cost = GetServerCFG("mw3shop", "mg36Cost", "");
                 string m4Cost = GetServerCFG("mw3shop", "m4Cost", "");
                 string ak47Cost = GetServerCFG("mw3shop", "ak47Cost", "");
                 string m16Cost = GetServerCFG("mw3shop", "m16Cost", "");
                 string fadCost = GetServerCFG("mw3shop", "fadCost", "");
                 string acrCost = GetServerCFG("mw3shop", "acrCost", "");
                 string mk14Cost = GetServerCFG("mw3shop", "mk14Cost", "");
                 string scarCost = GetServerCFG("mw3shop", "scarCost", "");
                 string g36Cost = GetServerCFG("mw3shop", "g36Cost", "");
                 string cm901Cost = GetServerCFG("mw3shop", "cm901Cost", "");
                 string barrettCost = GetServerCFG("mw3shop", "barrettCost", "");
                 string rsassCost = GetServerCFG("mw3shop", "rsassCost", "");
                 string dragCost = GetServerCFG("mw3shop", "dragCost", "");
                 string msrCost = GetServerCFG("mw3shop", "msrCost", "");
                 string l96a1Cost = GetServerCFG("mw3shop", "l96a1Cost", "");
                 string as50Cost = GetServerCFG("mw3shop", "as50Cost", "");
                 string modelCost = GetServerCFG("mw3shop", "modelCost", "");
                 string strikerCost = GetServerCFG("mw3shop", "strikerCost", "");
                 string aa12Cost = GetServerCFG("mw3shop", "aa12Cost", "");
                 string usasCost = GetServerCFG("mw3shop", "usasCost", "");
                 string spasCost = GetServerCFG("mw3shop", "spasCost", "");
                 string xm25Cost = GetServerCFG("mw3shop", "xm25Cost", "");
                 string rpgCost = GetServerCFG("mw3shop", "rpgCost", "");
                 string ammoCost = GetServerCFG("mw3shop", "ammoCost", "");
                 string ZHPCost = GetServerCFG("mw3shop", "zHPCost", "");
                 string claymoreCost = GetServerCFG("mw3shop", "claymoreCost", "");

                string disable_perks = GetServerCFG("mw3shop", "disable_perks", "");
                 string disable_tk = GetServerCFG("mw3shop", "disable_tk", "");
                 if (Message == "!z_info")
                 {
                     iPrintLnBold("^2This is zombie survival. Collect points to upgrade yourself!", Client);
                     return ChatType.ChatNone;
                 }
                 // SHOP
                
                if (Message == "!tut")
                 {
                     iPrintLnBold("^2This is Shop system for ^1Infected gametype^2. ^3Type ^1!shop^3 to show shop.", Client);
                 }
                 if (Message == "!mypoints")
                 {
                     iPrintLnBold("^2YOUR POINTS: " + points, Client);
                 }
                 if (Message == "!credits")
                 {
                     iPrintLnBold("^2Created by JayDi. ^3Visit ^1itsmods.com ^3for more mods and fun!", Client);
                 }


                if (Message == "!shop")
                 {
                     if (Client.Team == Teams.Allies)
                     {
                         TellClient(Client.ClientNum, "^1!weapons^7 - ^3shows weapon list\n^1!perks^7 - ^3shows perk list", true);
                     }
                     if (Client.Team == Teams.Axis)
                     {
                         iPrintLnBold("^3!empgrenade ^2[" + EmpGrenadeCost + "]^7|^3!throwing_knife ^2[" + TKCost + "]", Client);
                     }
                     return ChatType.ChatNone;
                 }

                if (Message == "!weapons")
                 {
                     if (Client.Team == Teams.Allies)
                     {
                         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)
                     {
                         iPrintLnBold("^1You can't use it", Client);
                     }
                     return ChatType.ChatNone;
                 }
                 if (Message == "!perks")
                 {

                    if (Client.Team == Teams.Allies)
                     {
                         iPrintLnBold("!fastermelee^2[" + FMCost + "]^7|^3!fastreload^2[" + FRCost + "]^7|^3!scavenger^2[" + ScavengerCost + "]^7|^3n!blindeye^2[" + BECost + "]^7|^3!coldblood^2[" + CBCost + "]^7|^3!bulletaccuracy^2[" + BACost + "]^7|^3!stalker^2[" + StalkerCost + "]", Client);
                     }
                     if (Client.Team == Teams.Axis)
                     {
                         iPrintLnBold("^1For infected:^7|^3!coldblood ^2[" + CB_ZCost + "]^7|^3!stalker ^2[" + Stalker_ZCost + "]^3", Client);
                     }

                    return ChatType.ChatNone;
                 }
                 // WEAPONS

                if (Message == "!smg")
                 {
                     /*
                     iw5_mp5
                     iw5_mp7
                     iw5_m9
                     iw5_p90
                     iw5_pp90m1
                     iw5_ump45
                     */
                     iPrintLnBold("^3!mp5^2[" + mp5Cost + "]^7|^3!mp7^2[" + mp7Cost + "]^7|^3!pm9^2[" + m9Cost + "]^7|^3P90^2[" + p90Cost + "]^7|^3!pp90^2[" + pp90m1Cost + "]^7|^3!ump45^2[" + ump45Cost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!lmg")
                 {
                     /*
                     iw5_m60
                     iw5_mk46
                     iw5_pecheneg
                     iw5_sa80
                     iw5_mg36
                     */
                     iPrintLnBold("^3!m60^2[" + m60Cost + "]^7|^3!mk46^2[" + mk46Cost + "]^7|^3!pech^2[" + pechCost + "]^7|^3!l86^2[" + sa80Cost + "]^7|^3!mg36^2[" + mg36Cost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!assault")
                 {
                     /*
                     iw5_m4
                     iw5_ak47
                     iw5_m16
                     iw5_fad
                     iw5_acr
                     iw5_mk14
                     iw5_scar
                     iw5_g36c
                     iw5_cm901
                     */
                     iPrintLnBold("^3!m4^2[" + m4Cost + "]^7|^3!ak47^2[" + ak47Cost + "]^7|^3!m16^2[" + m16Cost + "]^7|^3!fad^2[" + fadCost + "]^7|^3!acr^2[" + acrCost + "]^7|^3!mk14^2[" + mk14Cost + "]^7|^3!scar^2[" + scarCost + "]^7|^3!g36^2[" + g36Cost + "]^7|^3!cm901^2[" + cm901Cost + "]", Client);
                     return ChatType.ChatNone;
                 }

                if (Message == "!snipe")
                 {
                     /*
                     iw5_barrett
                     iw5_rsass
                     iw5_dragunov
                     iw5_msr
                     iw5_l96a1
                     iw5_as50

                    */
                     iPrintLnBold("^3!barret^2[" + barrettCost + "]^7|^3!rsass^2[" + rsassCost + "]^7|^3!dragunov^2[" + dragCost + "]^7|^3!msr^2[" + msrCost + "]^7|^3!l96a1^2[" + l96a1Cost + "]^7|^3!as50^2[" + as50Cost + "]", Client);
                     return ChatType.ChatNone;
                 }

                if (Message == "!shotguns")
                 {
                     /*
                     iw5_1887
                     iw5_striker
                     iw5_aa12
                     iw5_usas12
                     iw5_spas12
                     */
                     iPrintLnBold("^3!model^2[" + modelCost + "]^7|^3!striker^2[" + strikerCost + "]^7|^3!aa12^2[" + aa12Cost + "]^7|^3!usas12^2[" + usasCost + "]^7|^3!spas12^2[" + spasCost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 if (Message == "!expl")
                 {
                     /*xm25*/
                     iPrintLnBold("^3!rpg^2[" + rpgCost + "]^7|^3!xm25^2[" + xm25Cost + "]^7|^3!claymore^2[" + claymoreCost + "]", Client);
                     return ChatType.ChatNone;
                 }
                 // BUY SYSTEMS
                 if (Client.Team == Teams.Allies)
                 {
                     if (Message == "!ammo")
                     {
                         int ammoCost2 = Convert.ToInt32(ammoCost);
                         if ((int)Points[Client.XUID] < ammoCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             iPrintLnBold("^2180 Ammo bullets bought!", Client);
                             Client.Ammo.PrimaryAmmoClip = 180;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ammoCost2;
                         }
                         return ChatType.ChatNone;
                     }
                     // smgs
                     if (Message == "!mp5")
                     {
                         int mp5Cost2 = Convert.ToInt32(mp5Cost);
                         if ((int)Points[Client.XUID] < mp5Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mp5_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mp5Cost2;
                         }
                         return ChatType.ChatNone;
                     }
                     if (Message == "!mp7")
                     {

                        int mp7Cost2 = Convert.ToInt32(mp7Cost);
                         if ((int)Points[Client.XUID] < mp7Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mp7_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mp7Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pm9")
                     {
                         int m9Cost2 = Convert.ToInt32(m9Cost);
                         if ((int)Points[Client.XUID] < m9Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m9_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m9Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!p90")
                     {
                         int p90Cost2 = Convert.ToInt32(p90Cost);
                         if ((int)Points[Client.XUID] < p90Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_p90_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - p90Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pp90")
                     {
                         int pp90m1Cost2 = Convert.ToInt32(pp90m1Cost);
                         if ((int)Points[Client.XUID] < pp90m1Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_pp90m1_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - pp90m1Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!ump45")
                     {
                         int ump45Cost2 = Convert.ToInt32(ump45Cost);
                         if ((int)Points[Client.XUID] < ump45Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_ump45_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ump45Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //lmgs
                     if (Message == "!m60")
                     {
                         int m60Cost2 = Convert.ToInt32(m60Cost);
                         if ((int)Points[Client.XUID] < m60Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m60_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m60Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mk46")
                     {
                         int mk46Cost2 = Convert.ToInt32(mk46Cost);
                         if ((int)Points[Client.XUID] < mk46Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mk46_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mk46Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!pech")
                     {
                         int pechCost2 = Convert.ToInt32(pechCost);
                         if ((int)Points[Client.XUID] < pechCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_pecheneg_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - pechCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!l86")
                     {
                         int sa80Cost2 = Convert.ToInt32(sa80Cost);
                         if ((int)Points[Client.XUID] < sa80Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_sa80_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - sa80Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mg36")
                     {
                         int mg36Cost2 = Convert.ToInt32(mg36Cost);
                         if ((int)Points[Client.XUID] < mg36Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mg36_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mg36Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    // assaults
                     if (Message == "!m4")
                     {
                         int m4Cost2 = Convert.ToInt32(m4Cost);
                         if ((int)Points[Client.XUID] < m4Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m4_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m4Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!ak47")
                     {
                         int ak47Cost2 = Convert.ToInt32(ak47Cost);
                         if ((int)Points[Client.XUID] < ak47Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_ak47_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ak47Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!m16")
                     {
                         int m16Cost2 = Convert.ToInt32(m16Cost);
                         if ((int)Points[Client.XUID] < m16Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_m16_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - m16Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!fad")
                     {
                         int fadCost2 = Convert.ToInt32(fadCost);
                         if ((int)Points[Client.XUID] < fadCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_fad_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - fadCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!acr")
                     {
                         int acrCost2 = Convert.ToInt32(acrCost);
                         if ((int)Points[Client.XUID] < acrCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_acr_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - acrCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!mk14")
                     {
                         int mk14Cost2 = Convert.ToInt32(mk14Cost);
                         if ((int)Points[Client.XUID] < mk14Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_mk14_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - mk14Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!scar")
                     {
                         int scarCost2 = Convert.ToInt32(scarCost);
                         if ((int)Points[Client.XUID] < scarCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_scar_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - scarCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!g36")
                     {
                         int g36Cost2 = Convert.ToInt32(g36Cost);
                         if ((int)Points[Client.XUID] < g36Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_g36c_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - g36Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!cm901")
                     {
                         int cm901Cost2 = Convert.ToInt32(cm901Cost);
                         if ((int)Points[Client.XUID] < cm901Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_cm901_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - cm901Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!claymore")
                     {
                         int cmCost2 = Convert.ToInt32(claymoreCost);
                         if ((int)Points[Client.XUID] < cmCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("claymore_mp");
                             Client.Other.Equipment = WepID;
                             Client.Ammo.EquipmentAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - cmCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     //snipers
                     if (Message == "!barret")
                     {
                         int barrettCost2 = Convert.ToInt32(barrettCost);
                         if ((int)Points[Client.XUID] < barrettCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_barrett_mp_barrettscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - barrettCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!rsass")
                     {
                         int rsassCost2 = Convert.ToInt32(rsassCost);
                         if ((int)Points[Client.XUID] < rsassCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_rsass_mp_rsassscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - rsassCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!msr")
                     {
                         int msrCost2 = Convert.ToInt32(msrCost);
                         if ((int)Points[Client.XUID] < msrCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_msr_mp_msr_scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - msrCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!dragunov")
                     {
                         int dragCost2 = Convert.ToInt32(dragCost);
                         if ((int)Points[Client.XUID] < dragCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_dragunov_mp_dragunovscope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - dragCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!l96a1")
                     {
                         int l96a1Cost2 = Convert.ToInt32(l96a1Cost);
                         if ((int)Points[Client.XUID] < l96a1Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_l96a1_mp_l96a1scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - l96a1Cost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!as50")
                     {
                         int as50Cost2 = Convert.ToInt32(as50Cost);
                         if ((int)Points[Client.XUID] < as50Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_as50_mp_as50scope");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - as50Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //shotguns
                     if (Message == "!model")
                     {
                         int modelCost2 = Convert.ToInt32(modelCost);
                         if ((int)Points[Client.XUID] < modelCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_1887_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - modelCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!striker")
                     {
                         int strikerCost2 = Convert.ToInt32(strikerCost);
                         if ((int)Points[Client.XUID] < strikerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_striker_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - strikerCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!aa12")
                     {
                         int aa12Cost2 = Convert.ToInt32(aa12Cost);
                         if ((int)Points[Client.XUID] < aa12Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_aa12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - aa12Cost2;
                         }

                        return ChatType.ChatNone;
                     }

                    if (Message == "!usas12")
                     {
                         int usasCost2 = Convert.ToInt32(usasCost);
                         if ((int)Points[Client.XUID] < usasCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_usas12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - usasCost2;
                         }

                        return ChatType.ChatNone;
                     }
    

                    if (Message == "!spas12")
                     {
                         int spasCost2 = Convert.ToInt32(spasCost);
                         if ((int)Points[Client.XUID] < spasCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("iw5_spas12_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - spasCost2;
                         }

                        return ChatType.ChatNone;
                     }

                    //explosives
                     if (Message == "!rpg")
                     {
                         int rpgCost2 = Convert.ToInt32(rpgCost);
                         if ((int)Points[Client.XUID] < rpgCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("rpg_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - rpgCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!xm25")
                     {
                         int xm25Cost2 = Convert.ToInt32(xm25Cost);
                         if ((int)Points[Client.XUID] < xm25Cost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("xm25_mp");
                             Client.Other.PrimaryWeapon = WepID;
                             Client.Other.CurrentWeapon = WepID;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - xm25Cost2;
                         }


                        return ChatType.ChatNone;
                     }

                    if (Message == "!fastermelee")
                     {
                         int FMCost2 = Convert.ToInt32(FMCost);
                         if ((int)Points[Client.XUID] < FMCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_fastermelee"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - FMCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!fastreload")
                     {

                        int FRCost2 = Convert.ToInt32(FRCost);
                         if ((int)Points[Client.XUID] < FRCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_fastreload"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - FRCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!scavenger")
                     {

                        int ScavengerCost2 = Convert.ToInt32(ScavengerCost);
                         if ((int)Points[Client.XUID] < ScavengerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_scavenger"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - ScavengerCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!blindeye")
                     {

                        int BECost2 = Convert.ToInt32(BECost);
                         if ((int)Points[Client.XUID] < BECost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_blindeye"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - BECost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!coldblood")
                     {

                        int CBCost2 = Convert.ToInt32(CBCost);
                         if ((int)Points[Client.XUID] < CBCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_coldblooded"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - CBCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!bulletaccuracy")
                     {

                        int BACost2 = Convert.ToInt32(BACost);
                         if ((int)Points[Client.XUID] < BACost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_bulletaccuracy"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - BACost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!stalker")
                     {

                        int StalkerCost2 = Convert.ToInt32(StalkerCost);
                         if ((int)Points[Client.XUID] < StalkerCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_stalker"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - StalkerCost2;
                         }

                        return ChatType.ChatNone;
                     }

                }

                if (Client.Team == Teams.Axis)
                 {
                    
                     if (Message == "!empgrenade")
                     {
                         int EmpGrenadeCost2 = Convert.ToInt32(EmpGrenadeCost);


                        if ((int)Points[Client.XUID] < EmpGrenadeCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {

                            int WepID = GetWeapon("emp_grenade_mp");
                             Client.Other.OffhandWeapon = WepID;
                             Client.Ammo.OffhandAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - EmpGrenadeCost2;
                         }
                         return ChatType.ChatNone;

                    }

                    if (Message == "!throwing_knife")
                     {

                        int TKCost2 = Convert.ToInt32(TKCost);

                        if ((int)Points[Client.XUID] < TKCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             int WepID = GetWeapon("throwingknife_mp");
                             Client.Other.Equipment = WepID;
                             Client.Ammo.EquipmentAmmo = 2;
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - TKCost2;
                         }
                         return ChatType.ChatNone;
                     }
                     if (Message == "!coldblood")
                     {

                        int CB_ZCost2 = Convert.ToInt32(CB_ZCost);
                         if ((int)Points[Client.XUID] < CB_ZCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_coldblooded"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - CB_ZCost2;
                         }

                        return ChatType.ChatNone;
                     }
                     if (Message == "!stalker")
                     {
                         int Stalker_ZCost2 = Convert.ToInt32(Stalker_ZCost);
                         if ((int)Points[Client.XUID] < Stalker_ZCost2)
                         {
                             iPrintLnBold("^1No enough points!", Client);
                         }
                         else
                         {
                             Client.Other.SetPerk(GetPerk("specialty_stalker"));
                             Points[Client.XUID] = ((int)Points[Client.XUID]) - Stalker_ZCost2;
                         }
                         return ChatType.ChatNone;
                     }

                }
             }
             catch { }
             return ChatType.ChatContinue;
         }

        public override string OnCheckBan(string xuid)
         {
             return null;
         }

        public override void OnMapChange()
         {
         }

        public override void OnFastRestart()
         {
         }

        public override void OnPlayerSpawned(ServerClient Client)
         {
             iPrintLnBold("^2Type ^1!shop^2 to show list. ^2Type ^1!tut^2 for help.", Client);
             if (Points[Client.XUID] == null) { Points.Add(Client.XUID, 0); }
             string clear_perks_onspawn = GetServerCFG("mw3shop", "clear_perks_onspawn", "");
             if (clear_perks_onspawn == "true")
             {
                 Client.Other.ClearPerks();
             }
         }



        // <========== SHOP SYSTEMS ==========>
    }
}
thanks a lot
Reply

#7
(02-13-2013, 20:02)hillbilly Wrote: i cant even get the moonlight cmds to work

Then you have something wrong.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#8
Oh i see it uses Threading, i wont bother even trying, thanks anyway.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#9
(02-14-2013, 20:46)hillbilly Wrote: Oh i see it uses Threading, i wont bother even trying, thanks anyway.

I have the plugin, just removed Threading stuff easy :p
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#10
(02-14-2013, 20:57)99IRock Wrote:
(02-14-2013, 20:46)hillbilly Wrote: Oh i see it uses Threading, i wont bother even trying, thanks anyway.

I have the plugin, just removed Threading stuff easy :p

nice, gonna share it?
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 3,989 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,504 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,297 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,114 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,604 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,592 07-28-2013, 01:52
Last Post: First_Semyon
  Shop Database Hallla 5 4,761 07-23-2013, 07:33
Last Post: xfxtroll
Wink [Release] Shop system for Infected gametype Nekochan 125 75,673 07-05-2013, 18:09
Last Post: mohammadnanaa
  Code of vector Bloodfocus 1 2,392 06-23-2013, 11:54
Last Post: Yamato
  Help prefix doesnt work with shop koro35 2 2,861 05-18-2013, 10:51
Last Post: koro35

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.