@
icebox346 Don't flame
@
xflick13 code is wrong
NoSpread en NoRecoil will automaticcaly restore themselves, if you won't repeat changing them. That's why you gotta do it with a variable, like this:
int SpreadRecoil; // put this on top, under your
#defines
//Ajax nospread code
DWORD dwPlayerPointer = *(DWORD*)ADR_PlayerPointer
if(dwPlayerPointer)
{
if(GetAsyncKeyState(VK_NUMPAD1))//Numpad 1 = on
{
SpreadRecoil = 1;
}
if(GetAsyncKeyState(VK_NUMPAD2))//Numpad 2 = off
{
SpreadRecoil = 0;
}
if(SpreadRecoil)
{
*(float*)(dwPlayerPointer+NoRecoil1) = 0;
*(float*)(dwPlayerPointer+NoRecoil2) = 0;
*(float*)(dwPlayerPointer+NoRecoil3) = 0;
*(float*)NoSpread = 0;
}
}
//End nospread code for Ajax
Enjoy it
