Начинающий
-
Автор темы
- #1
всем ку, спастил с какой то темы скинчунгер а он не работает, помогите разобраться в чем проблема
Код:
for (int k = 1; k <= 3; k++)
{
int paintKit;
int StatTrak;
int Quality;
float wear;
string nametag = "1";
auto LocalPlayer = mem.Read<DWORD>(bClient.dwBase + dwLocalPlayer);
auto WeapEnt = mem.Read<DWORD>(LocalPlayer + m_hMyWeapons + k * 0x4) & 0xFFF;
auto weaponBase = mem.Read<DWORD>(bClient.dwBase + dwEntityList + (WeapEnt - 1) * 0x10);
auto id = mem.Read<short>(weaponBase + m_iItemDefinitionIndex);
int accountID = mem.Read<int>(weaponBase + m_OriginalOwnerXuidLow);
if (id == 0) continue;
else if (id > 64) continue;
else
{
paintKit = 100;
wear = 1;
StatTrak = 100;
Quality = 0;
}
int curPaintKit = mem.Read<int>(weaponBase + m_nFallbackPaintKit);
if (curPaintKit != paintKit && curPaintKit != -1)
{
nametag = "wagvan is a nice guy";
mem.Write<int>(weaponBase + m_nFallbackPaintKit, paintKit);
mem.Write<int>(weaponBase + m_nFallbackSeed, 420);
mem.Write<float>(weaponBase + m_flFallbackWear, wear);
mem.Write<int>(weaponBase + m_nFallbackStatTrak, StatTrak);
mem.Write<int>(weaponBase + m_iAccountID, accountID);
mem.Write<int>(weaponBase + m_iEntityQuality, Quality);
mem.Write<int>(weaponBase + m_iItemIDHigh, -1);
}
if (nametag != "1")
{
const char* tag = nametag.c_str();
mem.Write(weaponBase + m_szCustomName, tag);
}
}