i created a hack but only glasswalls works can anyone say me what is a mistake
Code:
#include <windows.h>
// Adress List //
#define Playerpointer 0x00B174D0
#define Serverpointer 0x00B11C98
#define ADR_GLASSWALLS 0x00B10E2C
#define OFS_NORECOIL1 0xC444
#define OFS_NORECOIL2 0xC44C
#define OFS_NORECOIL3 0xC448
#define OFS_Z 0x10310
#define ADR_NFD 0x102E8
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
void Glasswalls ()
{
if(GetAsyncKeyState(VK_UP) &1)
{
*(float*)(ADR_GLASSWALLS) = 1;
}
}
void Superjump ()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
*(float*)(Playerpointer+OFS_Z) = 1000;
}
}
void Glasswalls2 ()
{
if(GetAsyncKeyState(VK_DOWN) &1)
{
*(float*)(ADR_GLASSWALLS) = 0;
}
}
void NoRecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr!=0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}
void NFD ()
{
*(int*)ADR_NFD = -25000;
}
void HackThread()
{
for(;; )
{
if(*ingame) //check if we are ingame.. prevent crashs
{
NoRecoil ();
Glasswalls ();
Glasswalls2 ();
NFD ();
}
if(*outgame)
{
}
Sleep(100); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}