ITS
NOT
CALLED
VOID
Its called a function, it returns a void type. Please learn your c++ before you attempt hacking.
Code:
#define ADR_UNLAMMO1 0x000000
#define ADR_UNLAMMO2 0x000000
#define ADR_UNLAMMO3 0x000000
void unlimAmmo(){
DWORD dwProtect;
const BYTE nop[3] = {0x90,0x90,0x90};
VirtualProtect((void*)(ADR_UNLAMMO1), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO1, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO1), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO2), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO2, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO1), 2, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO3, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, dwProtect, NULL);
}
Will get dected if you dont have a bypass.