Just bool it, (DONT MAKE A ON-OFF FUNCTION THAT WILL LAGG WARROCK)
Code:
if (Hack_Detected) // Hack detected
{
const BYTE Bypass[5] = {0xE8, 0xFD, 0xC2, 0x3C, 0x00};
{
DWORD dwProtect;
VirtualProtect((void*)(Hack_Detected_Addie1), 5, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(Hack_Detected_Addie1), &Hack_Detected, 5);
VirtualProtect((void*)(Hack_Detected_Addie1), 5, dwProtect, NULL);
}
}
if (Running) // Running Game Tool Detected
{
const BYTE Bypass[5] = {0xE8, 0xFD, 0xC2, 0x3C, 0x00};
{
DWORD dwProtect;
VirtualProtect((void*)(Running_Addie1), 5, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(Running_Addie1), &Running, 5);
VirtualProtect((void*)(Running_Addie1), 5, dwProtect, NULL);
}
}
0 = Get the Bypass Offset's here ( These are old )
0 = Hack_Detected Address(es) here [Alsow Bool it]
0 = Running_Game_Hacktool Detected Address(es) here [Alsow Bool it]
///Extra code///
Code:
if (Bypass)
{
const BYTE bypass[2] = {0x75, 0x0C};
{
DWORD dwProtect;
VirtualProtect((void*)(Hack_Detected_ADD1), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(Hack_Detected_ADD1), &bypass, 2);
VirtualProtect((void*)(Hack_Detected_ADD1), 2, dwProtect, NULL);
}
}
This is An extra code just replace addie / offset's.
And if you don´t know were too place it, you have too place it under your hacks.
Credits By