#include <windows.h>
#include <stdio.h>
#define ADR_PLAYERPOINTER 0xBC4470
#define ADR_SERVERPOINTER 0xABF050
#define OFS_5SLOT 0x1021A4
#define OFS_6SLOT 0x1021A5
#define OFS_7SLOT 0x1021A6
#define OFS_8SLOT 0x1021A7
DWORD *ingame= (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame= (DWORD*)ADR_SERVERPOINTER;
void allSlots()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(int*)(dwPlayerPtr + OFS_5SLOT)= 1;
*(int*)(dwPlayerPtr + OFS_6SLOT)= 1;
*(int*)(dwPlayerPtr + OFS_7SLOT)= 1;
*(int*)(dwPlayerPtr + OFS_8SLOT)= 1;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
}
if(*outgame)
{
allSlots();
}
}
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;
}
return TRUE;
}






