Why this isnt working??
#include <windows.h>
#include <stdio.h>
//Pointers
#define OFS_Z 0x00102FC
#define ADR_SPEED 0x00AAC3A4
#define ADR_PLAYERPOINTER 0x00D99B08
#define ADR_SERVERRPOINTER 0x00C95AC8
//End OF pointers
DWORD *ingame= (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame= (DWORD*)ADR_SERVERRPOINTER;
// Hack Codes
void jump () //super jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 1000;
}
}
}
void speedon1 ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 200.0f;
}
}
void speedon2 ()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 300.0f;
}
}
void speedon3 ()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 500.0f;
}
}
void speedoff ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 100.0f;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
jump();
speedon1();
speedon2();
speedon3();
speedoff();
}
}
Sleep(200); //prevent for overloading the cpu
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread break;
}
return TRUE;
}
_____________________________________
Why????

#include <stdio.h>
//Pointers
#define OFS_Z 0x00102FC
#define ADR_SPEED 0x00AAC3A4
#define ADR_PLAYERPOINTER 0x00D99B08
#define ADR_SERVERRPOINTER 0x00C95AC8
//End OF pointers
DWORD *ingame= (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame= (DWORD*)ADR_SERVERRPOINTER;
// Hack Codes
void jump () //super jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 1000;
}
}
}
void speedon1 ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 200.0f;
}
}
void speedon2 ()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 300.0f;
}
}
void speedon3 ()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 500.0f;
}
}
void speedoff ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 100.0f;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
jump();
speedon1();
speedon2();
speedon3();
speedoff();
}
}
Sleep(200); //prevent for overloading the cpu
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread break;
}
return TRUE;
}
_____________________________________
Why????





