ich wollte fragen wieso ich haufenweise Fehler bekomme bei diesem source
Quote:
#include <Windows.h>
#include <stdio.h>
#define PLAYERPOINTER 0x00A47DD4
#define ADR_PlayerPointer 0x00bc2248
#define PlayerPointer 0x00bc2248
#define SERVERPOINTER 0x00A47D64
#define NoBounds 0x00B7E9CC
#define NoBounds2 0x00B8EFC8
#define Slot5 0x000C70C4
#define Slot6 0x000C70C5
#define Slot7 0x000C70C6
#define Slot8 0x000C70C7
#define NoFallDmg 0x000102E8
#define x 0x00010300
#define y 0x00010310
#define OFS_y 0x00010310
#define OFS_X 0x00010300
#define Z 0x00010308
#define Ofs_Z 0x00010308
#define NoRecoil1 0x0000C444
#define NoRecoil2 0x0000C448
#define NoRecoil3 0x0000C44C
#define dwPlayerPtr
float posiX;
float posiY;
float posiZ;
void nobounds ()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)NoBounds, &t , sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)NoBounds, &t , sizeof(t));
VirtualProtect((void*)NoBounds,sizeof(t), Protection,0);
VirtualProtect((void*)NoBounds2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)NoBounds, &t , sizeof(t));
VirtualProtect((void*)NoBounds,sizeof(t), Protection,0);
}
void slot5 ()
{
DWORD dwPPlayerPtr = *(DWORD*)SERVERPOINTER;
if (dwPlayerPtr !=0)
{
*(long*)(dwPlayerPtr+Slot5) =1;
}
}
void slot6 ()
{
DWORD dwPPlayerPtr = *(DWORD*)SERVERPOINTER;
if (dwPlayerPtr !=0)
{
*(long*)(dwPlayerPtr+Slot6) =1;
}
}
void slot7 ()
{
DWORD dwPPlayerPtr = *(DWORD*)SERVERPOINTER;
if (dwPlayerPtr !=0)
{
*(long*)(dwPlayerPtr+Slot7) =1;
}
}
void slot8 ()
{
DWORD dwPPlayerPtr = *(DWORD*)SERVERPOINTER;
if (dwPlayerPtr !=0)
{
*(long*)(dwPlayerPtr+Slot8) =1;
}
}
void NoRecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)PlayerPointer;
if(dwPlayerPtr !=0)
{
*(float*)(dwPlayerPtr+NoRecoil1) = 0;
*(float*)(dwPlayerPtr+NoRecoil2) = 0;
*(float*)(dwPlayerPtr+NoRecoil3) = 0;
}
}
void nfd ()
{
DWORD dwPlayerPtr = *(DWORD*)PlayerPointer;
if(dwPlayerPtr !=0)
{
*(float*) (dwPlayerPtr+NoFallDmg) = -200000;
}
}
void Teleport ()
{
DWORD dwPlayerPtr = *(DWORD*)PlayerPointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F6))
{
posiX = *(float*)(dwPlayerPtr + X);
posiY = *(float*)(dwPlayerPtr + Y);
posiZ = *(float*)(dwPlayerPtr + Z);
}
if (GetAsyncKeyState(VK_F7))
{
*(float*)(dwPlayerPtr + X) = posiX;
*(float*)(dwPlayerPtr + Y) = posiY;
*(float*)(dwPlayerPtr + Z) = posiZ;
}
}
}
void SmoothJump ()
{
if(GetAsyncKeyState(VK_F9))
{
DWORD dwPlP = *(DWORD*)ADR_PlayerPointer;
if(dwPlP != 0)
{
*(float*)(dwPlP + Ofs_Z) = *(float*)(dwPlP + Ofs_Z) +70;
}
}
}
void WTW ()
{
DWORD dwPlayerPtr = *(DWORD*)PlayerPointer;
if (GetAsyncKeyState(VK_NUMPAD3) &1)
{
*(float*)(dwPlayerPtr+OFS_X) = (*(float*)(dwPlayerPtr =OFS_X) +10);
}
if (GetAsyncKeyState(VK_NUMPAD4) &1)
{
*(float*)(dwPlayerPtr+OFS_X) = (*(float*)(dwPlayerPtr =OFS_X) -10);
}
if (GetAsyncKeyState(VK_NUMPAD5) &1)
{
*(float*)(dwPlayerPtr+OFS_Y) = (*(float*)(dwPlayerPtr =OFS_Y) +10);
}
if (GetAsyncKeyState(VK_NUMPAD6) &1)
{
*(float*)(dwPlayerPtr+OFS_Y) = (*(float*)(dwPlayerPtr =OFS_Y) -10);
}
}
void Hacks ()
{
for(;; )
{
nfd(); //Auto
Teleport ();
SmoothJump();
nobounds(); //Auto
NoRecoil();
WTW();
Slot5();
Slot6();
Slot7();
Slot8();
Sleep (20);
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
ShellExecuteA(NULL,"Open","",NULL,NULL,1);
CreateThread(0,0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
}
return TRUE;
}