Question External c++ knifechanger

Status
Not open for further replies.

godcrewl

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Jul 28, 2021
Messages
5
Reaction score
1
Hello guys, I have external skin changer, weapons skins are fine but knife is not changing which is in hand, icon on the right is changing but not in hand. Where could be the problem?
also I still get this in console :
You cant view this link please login.

My code:
Code:
else if (weaponID! = WEAPON_KNIFE && weaponID! = WEAPON_KNIFE_T && weaponID! = WEAPON_KNIFE_M9_BAYONET) {continue; }
                else
                {
                    Paintkit = 568;
                    Seed = 420;
                    Statrak = -1;
                    Quality = 0;
                    Wear = 0.0003f;
                    strcpy (CustomName, "");

                    writeMem <short> (weaponEntity + m_iItemDefinitionIndex, WEAPON_KNIFE_M9_BAYONET); // Knife Name
                    writeMem <int> (weaponEntity + m_nViewModelIndex, knifeIndex);
                }
                if (readMem <int> (weaponEntity + m_iItemIDHigh)! = -1)
                {
                    writeMem <int> (weaponEntity + m_iItemIDHigh, -1);
                }
                writeMem <int> (weaponEntity + m_iAccountID, accountID);
                writeMem <DWORD> (weaponEntity + m_nFallbackPaintKit, Paintkit);
                writeMem <int> (weaponEntity + m_nFallbackSeed, Seed);
                writeMem <float> (weaponEntity + m_flFallbackWear, Wear);
                writeMem <int> (weaponEntity + m_nFallbackStatTrak, Statrak);
                writeMem <int> (weaponEntity + m_iEntityQuality, Quality);

                if (CustomName! = "")
                {
                    WriteProcessMemory (pHandle, (LPVOID) (weaponEntity + m_szCustomName), CustomName, sizeof (char [20]), NULL);
                }
            }
// Knife changer
            if (isGot == false)
            {
                knifeIndex = GetModelIndexByID (WEAPON_KNIFE_M9_BAYONET); // Knife Model
                isGot = true;
            }

            UINT iCurWeaponAdress = readMem <UINT> (localPlayer + m_hActiveWeapon) & 0xFFF;
            UINT m_iBase = readMem <UINT> (clientBase + dwEntityList + (iCurWeaponAdress - 1) * 0x10);
            short curwpnID = readMem <short> (m_iBase + m_iItemDefinitionIndex);

            if (curwpnID == WEAPON_KNIFE || curwpnID == WEAPON_KNIFE_T || curwpnID == WEAPON_KNIFE_M9_BAYONET)
            {
                DWORD knifeViewModel = readMem <DWORD> (localPlayer + m_hViewModel) & 0xfff;
                knifeViewModel = readMem <DWORD> (clientBase + dwEntityList + (knifeViewModel - 1) * 0x10);

                if (! knifeViewModel) {continue; }

                writeMem <DWORD> (knifeViewModel + m_nViewModelIndex, knifeIndex);
            }
        }
        else
        {
            isGot =! isGot;
        }
 

godcrewl

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Jul 28, 2021
Messages
5
Reaction score
1
Everything is working. I made a mistake with offset
 
Status
Not open for further replies.
Top