Code:
if(planteverywhere == 1)
{
*(BYTE*)ADR_PLANTEVERYWHERE = 0x1;
}
Code:
....
if(Reason == DLL_PROCESS_ATTACH)
{
Beep(700,450);
...
if(planteverywhere == 1)
{
*(BYTE*)ADR_PLANTEVERYWHERE = 0x1;
}
....
if(Reason == DLL_PROCESS_ATTACH)
{
Beep(700,450);
...
Viele Dank YaZZn...Quote:
Beep(700,450);
#include <Windows.h>
#include <stdio.h>
#define ADR_PLAYERPOINTER 0x00D284E8
#define ADR_SERVERPOINTER 0x00C24B10
#define OFS_5SLOT 0x001021A4
#define OFS_NFD 0x00103A4
#define OFS_X 0x00102D4
#define OFS_Y 0x00102DC
#define OFS_Z 0x00102D8
#define OFS_SPEED 0xA4B8D4
#define MEM_NOSPEAD 0x00BAAD4C
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define OFS_STAMINA 0x02a4
#define MEM_NOSPAWNWAIT1 0x00BDDFD8
#define MEM_NOSPAWNWAIT2 0x00BDDFE0
#define OFS_SUPERMASTER 0x00FC8C8
#define OFS_PREMIUM2 0x00580
#define MEM_GLASSWALLS 0x000BB0B1C
float CoordX;
float CoordY;
float CoordZ;
DWORD dwPlayer = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServer = *(DWORD*)ADR_SERVERPOINTER;
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;
void jump ()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 2500;
}
}
}
void glasswalls ()
{
if(GetAsyncKeyState(VK_NUMPAD8) &1)
{
*(int*)MEM_GLASSWALLS = 4;
}
if(GetAsyncKeyState(VK_NUMPAD9) &1)
{
*(int*)MEM_GLASSWALLS = 0;
}
}
void teleport ()
{
if(GetAsyncKeyState(VK_F2))
{
CoordX = *(float*)(dwPlayerPtr+OFS_X);
CoordY = *(float*)(dwPlayerPtr+OFS_Y);
CoordZ = *(float*)(dwPlayerPtr+OFS_Z);
}
if (GetAsyncKeyState(VK_F3))
{
*(float*)(dwPlayerPtr + OFS_X) = CoordX;
*(float*)(dwPlayerPtr + OFS_Y) = CoordY;
*(float*)(dwPlayerPtr + OFS_Z) = CoordZ;
}
}
void Slots5 ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_5SLOT) = 1;
}
}
void norecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}
void stamina ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_STAMINA) = 100;
}
}
void Spawn ()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)MEM_NOSPAWNWAIT1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)MEM_NOSPAWNWAIT1, &t , sizeof(t));
VirtualProtect((void*)MEM_NOSPAWNWAIT1, sizeof(t), Protection, 0);
VirtualProtect((void*)MEM_NOSPAWNWAIT2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)MEM_NOSPAWNWAIT2, &t , sizeof(t));
VirtualProtect((void*)MEM_NOSPAWNWAIT2, sizeof(t), Protection, 0);
}
void Supermaster ()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0){
*(int*)(dwSrvrPtr+OFS_SUPERMASTER) = 1;
}
}
void Platinum ()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
*(long*)(dwSrvrPtr+OFS_PREMIUM2) = 3, 10; // 1 = bronze 2 = silver 3 = gold 4 = platinum
{
*(float*)(dwSrvrPtr+OFS_PREMIUM2) = 1, 1;
}}}
void nfd ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -20000;
}
}
void HackThread()
{
for (;;)
{
Platinum();
Supermaster();
Spawn();
stamina();
norecoil();
Slots5();
spread();
jump();
nfd();
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;
}