What's the problem? None of the funtions (one hit, no reload) will work! I hear beep when I press hot key but nothing, no one hit or no reload :/ Please quote and correct the problem, thanks. Btw don't hate and call leecher and stuff, old and gay.
Credits to Swiftdude for the base!
#include<windows.h>
#define WeaponMgr 0xA287A8
#define ReloadAnimRatio 0x2424
#define AmmoDamage 0x07F8
float Hithard = 99999.0f;
char Msg[] = {'M','a','d','e',' ','b','y',' ','J','a','m','i','e','9','0','1',0 };
char Title[] = {'S','u','c','c','e','s','s','f','u','l','l','y',' ','I','n','j','e','c','t','e','d',0 };
DWORD WINAPI Hacks(LPVOID)
{
bool onehit = false;
bool reload = false;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(GetAsyncKeyState(VK_F1) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != 0x07F8)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + AmmoDamage) = 99999;
}
}
}
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != 0x2424)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + ReloadAnimRatio) = 100;
}
}
}
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 DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Made by Jamie901","Successfully Injected", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
/Discuss.