My code dont work
im trying to make my first hack, but i cant '-'
no error occurs, but in the game is like im without hack ._.
if anyone can help me, i will thank ![=]](/forum/images/emotions/=].gif)
no error occurs, but in the game is like im without hack ._.
Code:
#include <Windows.h>
#define WeaponMgr 0xAB2940
#define NoReload 0x26C4
#define NoRecoil1 0x53C
#define NoRecoil2 0x6A4
#define NoRecoil3 0x1958
#define NoRecoil4 0x1964
#define NoRecoil5 0x1FC0
#define NoRecoil6 0x2128
#define NoRecoil7 0x2290
void lol()
{
unsigned long CShell = (unsigned long)GetModuleHandleA("CShell.dll");
unsigned long pWeaponMgr = *(unsigned long*)(CShell+WeaponMgr);
if(NoReload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}
if(pWeaponMgr)
{
for(int y=0; y<9; y++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f;
}
}
}
int gsc()
{
lol();
return true;
}
void _stdcall DllMain(HMODULE hDll, unsigned long dwReason, LPVOID lpReserved)
{
if (dwReason == 1)
{
gsc();
}
if (dwReason == 0)
{
}
}
![=]](/forum/images/emotions/=].gif)


