hi
my hack fail i will say like many peoples EPIC FAIL i am making new one and again EPIC FAIL :#include<windows.h>
#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12 6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26 3)||(i==272)||(i==338)||(i==382)||(i==383)||(i==38 4))
#define WeaponMgr 0xA2A7E8
#define NoReload 0x2424
#define WeaponDamage 0x7f8
#define WeaponWeight 0x1F88
float FragDmg = 0.0f;
float weapweight = 0.0f;
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false,
fragdmg = false,
weweight = false;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F2) &1) { weweight = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F3) || GetAsyncKeyState(VK_F3) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F4) || GetAsyncKeyState(VK_F4) &1) { fragdmg = true; Beep(512, 100); }
//no reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}
//no weapon weight
if(weweight)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponWeight) = weapweight;
}
}
}
//no grenade damage
if(fragdmg)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL && (grenades))
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = FragDmg;
}
}
}
Sleep(100);
}
}
bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI Main ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0,"Coded by kmanev073","Injected !", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return true;
}
WHERE is the fu**** problem it compile but when i inject to msg box no anything