Hat jemand eine Idee wieso nur der Slothack in diesem Fall funktioniert?
Jump, No Recoil, oder No Spread funktionieren alle nicht :(
Jump, No Recoil, oder No Spread funktionieren alle nicht :(
PHP Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define ADR_PLAYERPOINTER 0x00D284E8
#define ADR_SERVERPOINTER 0x00C24B10
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NFD 0x00103A4
#define OFS_X 0x00102D4
#define OFS_Y 0x00102DC
#define OFS_Z 0x00102D8
#define ADR_SPEED 0xA4B8D4
#define OFS_NOSPREAD 0x00AE32BC
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define OFS_DINAR 0x0011A620
bool NoRecoil = true;
bool NoSpread = true;
DWORD dwPlayer = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServer = *(DWORD*)ADR_SERVERPOINTER;
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
float posiX;
float posiY;
float posiZ;
void speedon0 ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 97.0f;
}
}
void speedon1 ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 115.0f;
}
}
void speedon2 ()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 125.0f;
}
}
void speedon3 ()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 135.0f;
}
}
void speedon4 ()
{
if(GetAsyncKeyState(VK_NUMPAD4) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 145.0f;
}
}
void speedon5 ()
{
if(GetAsyncKeyState(VK_NUMPAD5) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 200.0f;
}
}
void speedon6 ()
{
if(GetAsyncKeyState(VK_NUMPAD6) &1<< 0xF)
{
*(float*)(ADR_SPEED) = 300.0f;
}
}
void exit()
{
if(GetAsyncKeyState(VK_NUMPAD9) &1<< 0xF)
{
ExitProcess(0);
}
}
void Dig()
{
if(GetAsyncKeyState(VK_NUMPAD7) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = -2000;
}
}
}
void jump()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr+OFS_Z) = 2000;
}
}
void nfd()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -2000000;
}
}
void Teleport()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F4))
{
posiX = *(float*)(dwPlayerPtr + OFS_X);
posiY = *(float*)(dwPlayerPtr + OFS_Y);
posiZ = *(float*)(dwPlayerPtr + OFS_Z);
}
if (GetAsyncKeyState(VK_F5))
{
*(float*)(dwPlayerPtr + OFS_X) = posiX;
*(float*)(dwPlayerPtr + OFS_Y) = posiY;
*(float*)(dwPlayerPtr + OFS_Z) = posiZ;
}
}
}
void Weapon()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
if(NoSpread==true)
{
*(int*) OFS_NOSPREAD = 0;
long t=0;
unsigned long Protection;
VirtualProtect((void*)OFS_NOSPREAD, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)OFS_NOSPREAD, &t , sizeof(t));
VirtualProtect((void*)OFS_NOSPREAD, sizeof(t), Protection, 0);
}
if(GetAsyncKeyState(VK_F6) &1)
{
NoSpread = NoSpread==false;
}
if(NoRecoil==true)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
if(GetAsyncKeyState(VK_F7) &1)
{
NoRecoil = NoRecoil==false;
}
}}
void AllSlots()
{
DWORD dwServer = *(DWORD*)ADR_SERVERPOINTER;
if(dwServer != 0)
{
*(long*)(dwServer+OFS_5SLOT) = 1;
*(long*)(dwServer+OFS_6SLOT) = 1;
*(long*)(dwServer+OFS_7SLOT) = 1;
*(long*)(dwServer+OFS_8SLOT) = 1;
}
}
void Dinar()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_DINAR) = 999999999;
}
}
void HackThread()
{
for(;
;
)
{
speedon0();
speedon1();
speedon2();
speedon3();
speedon4();
speedon5();
speedon6();
AllSlots();
exit();
Dig();
nfd();
jump();
Teleport();
Weapon();
Dinar();
Sleep(200);
}
}
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);
break;
case 2:
break;
}
return TRUE;
}