Error making Glow on csgo.
This code is suposed to make a radarhack + a GlowHack. Radar hack works nice but I´ve been reading glow for hours and i dont find where the error is. Any help?
These are the offsets:
This is the code:
These are the offsets:
Code:
DWORD dwLocalPlayer = 0xCD2764; DWORD CrosshairId = 0xB394; DWORD m_fFlags = 0x104; DWORD dwEntityList = 0x4CE34DC; DWORD m_iTeamNum = 0xF4; DWORD m_iGlowIndex = 0xA3E0; DWORD dwGlowObjectManager = 0xA3F8; DWORD m_flFlashDuration = 0x5223710; DWORD m_bDormant = 0xED; DWORD m_bSpotted = 0x93D;
Code:
int id, value = 1, x, MyTeam, EnemyTeam;
for (;;) {
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwLocalPlayer + m_iTeamNum), &MyTeam, sizeof(DWORD), 0);
for (x = 0; x <= 40; x++) {
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwEntityList +(x*0x10) + m_iTeamNum), &MyTeam, sizeof(DWORD), 0);
radarb.ReadMemory();
DWORD OtherPlayer;
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwEntityList + (x * 0x10) ), &OtherPlayer, sizeof(DWORD), 0);
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(OtherPlayer + m_iTeamNum), &EnemyTeam, sizeof(int), 0);
if (id == 0) {
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)(OtherPlayer + m_bSpotted), &value, sizeof(int), 0);
}
if (EnemyTeam != MyTeam) {
float r = 0.f;
float g = 1.f;
float b = 0.f;
float a = 1.f;
}
else {
float r = 0.f;
float g = 1.f;
float b = 0.f;
float a = 1.f;
}
DWORD GlowPlayer;
DWORD GlowPointer;
DWORD GlowDormant;
DWORD GlowIndex;
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwEntityList + (x * 0x10)), &GlowPlayer, sizeof(DWORD), 0);
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwGlowObjectManager), &GlowPointer, sizeof(DWORD), 0);
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(GlowPlayer + m_bDormant), &GlowDormant, sizeof(DWORD), 0);
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(GlowPlayer + m_iGlowIndex), &GlowIndex, sizeof(DWORD), 0);
if (EnemyTeam == 0 || GlowDormant == 1) { continue; }
else {
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer *0x34) + 0x4), &r, sizeof(float), NULL);
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer * 0x34) + 0x8), &g, sizeof(float), NULL);
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer * 0x34) + 0xC), &b, sizeof(float), NULL);
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer * 0x34) + 0x10), &a, sizeof(float), NULL);
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer * 0x34) + 0x24), &rwo, sizeof(bool), NULL);
WriteProcessMemory(fProcess.__HandleProcess, (LPVOID*)((GlowPlayer * 0x34) + 0x25), &ruwo, sizeof(bool), NULL);
}
}
Sleep(10);
}
