コード例 #1
0
        private void Prestige11_Click(object sender, EventArgs e)
        {
            uint    Value    = Convert.ToUInt32(GameAddresses.Prestige);
            Memorys mem      = new Memorys("iw4mp");
            uint    AmmoTest = mem.baseaddress("iw4mp") + Value;

            mem.Write(AmmoTest, int.Parse("11"));
        }
コード例 #2
0
        private void RedBoxOFFHost20(string RedBox)
        {
            uint    RED      = Convert.ToUInt32(GameAddresses.RedBoxOFF20);
            Memorys mem      = new Memorys("iw5mp");
            uint    AmmoTest = mem.baseaddress("iw5mp") + RED;

            mem.Write(AmmoTest, int.Parse(RedBox));
        }
コード例 #3
0
        private void TimePlayed_Click(object sender, EventArgs e)
        {
            uint    OFFSET   = Convert.ToUInt32(GameAddresses.TimePlayed);
            string  ValueID  = Convert.ToString(TimePlayedValue.Value);
            Memorys mem      = new Memorys("iw4mp");
            uint    AmmoTest = mem.baseaddress("iw4mp") + OFFSET;

            mem.Write(AmmoTest, int.Parse(ValueID));
        }
コード例 #4
0
        private void GiveGold(int ClientID, string GoldID)
        {
            int     Client        = ClientID;
            long    Client0Offset = GameAddresses.GoldD;
            uint    AllClientBaby = Convert.ToUInt32(Client0Offset + (GameAddresses.PlayerState1 * Client));
            Memorys mem           = new Memorys("iw4mp");
            uint    AmmoTest      = mem.baseaddress("iw4mp") + AllClientBaby;

            mem.Write(AmmoTest, int.Parse(GoldID));
        }
コード例 #5
0
 public void PreGameName(string Name)
 {
     if (Process_Handle("BlackOps"))
     {
         byte[]  nickbyte = Encoding.GetBytes(Name + "\0");
         Memorys mem      = new Memorys("BlackOps");
         int     address  = (int)mem.baseaddress("BlackOps") + 0x0385892C;
         WriteBytes(address, nickbyte);
     }
 }
コード例 #6
0
        private void Money(int ClientID, string MoneyValue)
        {
            int     Client        = ClientID;
            long    Client0Offset = GameAddresses.Money;
            uint    AllClientBaby = Convert.ToUInt32(Client0Offset + (GameAddresses.PlayerState1 * Client));
            Memorys mem           = new Memorys("BlackOps");
            uint    AmmoTest      = mem.baseaddress("BlackOps") + AllClientBaby;

            mem.Write(AmmoTest, int.Parse(MoneyValue));
        }
コード例 #7
0
        private void InclipThird(int ClientID, string Ammo)
        {
            int     Client        = ClientID;
            long    Client0Offset = 0x01C08F18;
            uint    AllClientBaby = Convert.ToUInt32(Client0Offset + (0x1D28 * Client));
            Memorys mem           = new Memorys("BlackOps");
            uint    AmmoTest      = mem.baseaddress("BlackOps") + AllClientBaby;

            mem.Write(AmmoTest, int.Parse(Ammo));
        }
コード例 #8
0
        private void Health(int ClientID, string HealthPercentage)
        {
            int     Client        = ClientID;
            long    Client0Offset = GameAddresses.hFlag;
            uint    AllClientBaby = Convert.ToUInt32(Client0Offset + (GameAddresses.PlayerState2 * Client));
            Memorys mem           = new Memorys("BlackOps");
            uint    AmmoTest      = mem.baseaddress("BlackOps") + AllClientBaby;

            mem.Write(AmmoTest, int.Parse(HealthPercentage));
        }
コード例 #9
0
 public void CustomClassNames(int ClassID, string Name)
 {
     if (Process_Handle("iw4mp"))
     {
         int     Class          = ClassID;
         long    Class0Offset   = GameAddresses.CustomClass;
         int     AllClassesBaby = Convert.ToInt32(Class0Offset + (GameAddresses.ClassPointer * Class));
         byte[]  nickbyte       = Encoding.GetBytes(Name + "\0");
         Memorys mem            = new Memorys("iw4mp");
         int     address        = (int)mem.baseaddress("iw4mp") + AllClassesBaby;
         WriteBytes(address, nickbyte);
     }
 }
コード例 #10
0
        private void ReadClient17()
        {
            if (Process_Handle("iw5mp"))
            {
                Memorys mem     = new Memorys("iw5mp");
                int     address = (int)mem.baseaddress("iw5mp") + GameAddresses.Client17Offset;
                var     nick    = ReadBytes(address, 20);

                string nickz;
                nickz         = Encoding.GetString(nick).Replace("\r", "");
                Client17.Text = nickz.ToString();
            }
        }
コード例 #11
0
 public void WriteName(int ClientID, string Name)
 {
     if (Process_Handle("BlackOps"))
     {
         int     Client        = ClientID;
         long    Client0Offset = GameAddresses.IngameName;
         int     AllClientBaby = Convert.ToInt32(Client0Offset + (0x1D28 * Client));
         byte[]  nickbyte      = Encoding.GetBytes(Name + "\0");
         Memorys mem           = new Memorys("BlackOps");
         int     address       = (int)mem.baseaddress("BlackOps") + AllClientBaby;
         WriteBytes(address, nickbyte);
     }
 }
コード例 #12
0
        private void ReadClient3Name()
        {
            if (Process_Handle("BlackOps"))
            {
                Memorys mem     = new Memorys("BlackOps");
                int     address = (int)mem.baseaddress("BlackOps") + 0x01C0FDF0;
                var     nick    = ReadBytes(address, 20);

                string nickz;
                nickz        = Encoding.GetString(nick).Replace("\r", "");
                Client3.Text = nickz.ToString();
            }
        }
コード例 #13
0
        private void InGame_Tick(object sender, EventArgs e)
        {
            uint    Value        = Convert.ToUInt32(GameAddresses.InGame);
            Memorys mem          = new Memorys("iw5mp");
            uint    ClientButton = mem.baseaddress("iw5mp") + Value;
            uint    address0     = (uint)mem.ReadPointer(ClientButton);

            labelX1.Text = address0.ToString();

            if (labelX1.Text == "0")
            {
                RedBoxSwitch.Value    = false;
                ThermalSwitch.Value   = false;
                RecoilSwitch.Value    = false;
                RedBoxSwitch.Enabled  = true;
                ThermalSwitch.Enabled = true;
            }
        }