Originally Posted by
alvis44
#include <Windows.h> // Must always include this .
// --- > Address < --- //
#define ADR_PlayerPointer 0x00A31744 //Player Pointer
// --- > Address < --- //
#define ADR_TEAMESP 0x00a3a40c //Here the pointer
// --- > Offset < --- //
#define OFS_ESP 0x61 // TeamESP offset
void HACK()
{
while (1) //While true
{
if (GetAsyncKeyState(VK_INSERT) & 1)//Set your hotkey
{
*(float*)(ADR_PlayerPointer + OFS_ESP) = 0.0f;//Set your Address and Value
}
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)//Process Attach
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HACK, NULL, NULL, NULL);
MessageBoxA(0, "FIRST HACK .", "LOL", MB_YESNO);//Set your MsgBox text and caption
}
return TRUE;
}
I build this and injected into game, press the hotkey and nth happens. Few mins later, Game Hack Detected. Can anyone guide me?