What's new

Solved Kewi.CallVoid(Console, -1, "give an94_mp"); not working

  • Thread starter S7_Kewizzle
  • Start date
  • Views 1,019
S

S7_Kewizzle

Developer
Messages
602
Reaction score
155
was pretty sure this would work anyone know what i did wrong?
Post automatically merged:

im thinking because i need to enable sv_cheats anyone know how to do that lmk
 
Last edited:
S

S7_Kewizzle

Developer
Messages
602
Reaction score
155
Code:
        public int G_GetWeaponIndexForName(string Weapon)
        {
            return Kewi.Call<int>(0x823AB8B8, Weapon);
        }

        public void G_GivePlayerWeapon(int Client, int Weapon)
        {
            Kewi.Call<int>(0x823ACB78, 0x83551A10 + 0x57F8 * (uint)Client, Weapon, 0);
        }

        public void G_GivePlayerWeapon(int Client, string Weapon)
        {
            int WepNum = G_GetWeaponIndexForName(Weapon);
            Kewi.Call<int>(0x823ACB78, 0x83551A10 + 0x57F8 * (uint)Client, WepNum, 0);
        }

there you go Kewi
 
Top Bottom