hey guys, I made working memory hack with my D3D hack now!! WooHoo!
BUT When I add NoRecoil it gives me a Xtrap detected.
this is my code:
Code:
void MyHacks (void *)
{
MessageBeep(MB_ICONINFORMATION);
MessageBoxA(0,Msg,Title,0);
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA(CShellEncrypted);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//hotkeys toggle
if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_NUMPAD0) &1) {
NoRecoil = !NoRecoil;
Beep(512, 100);
}
if(GetAsyncKeyState(VK_F3) || GetAsyncKeyState(VK_NUMPAD1) &1) {
InstantReload = !InstantReload;
Beep(512, 100);
}
//no reload
if(InstantReload)
{
if (pWeaponMgr)
{
for(int i=0; i<999; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
}
}
}
//no recoil
if(NoRecoil)
{
if (pWeaponMgr)
{
for(int i=0; i<999; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil1) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil2) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil3) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil4) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil5) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil6) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil7) = 0;
}
}
}
Sleep(100);
}
}
it works fine with the reload section, but as soon as i add this:
Code:
//no recoil
if(NoRecoil)
{
if (pWeaponMgr)
{
for(int i=0; i<999; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil1) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil2) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil3) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil4) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil5) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil6) = 0;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil7) = 0;
}
}
}
I get XTrap Detect. why is this?? Is it posibly the string "NoRecoil" ? cause this method works fine with NoReload,, I know about the "int y=0, y=9, y++" that I left out, but that shouldn't give XTrap error still?
Any Help Appreciated.
---------- Post added at 08:36 AM ---------- Previous post was at 08:30 AM ----------
No nvm its now giving it to me without Recoil too, it's cause I don't have any sleeps or anything, hack only loads when i press OK