void Glasswall ()
{
if(GetAsyncKeyState(VK_RCONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+ADR_GLASSWALL) = 0;
}
}
}
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_UNLAMMO2), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO3, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, dwProtect, NULL);
}
