[PHP]#include <stdio.h>
#include <windows.h>
#define Playerpointer 0x00C93348
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *megame= (DWORD*)Serverpointer;
//do stuff
void HackThread()
{
for(;;)
{
if(*ingame) //check if we are ingame.. prevent crashs
{
Stamina();
}
if(*megame)
{
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}[/PHP]