Can someone help me see if this is going to work because i don't know what is wrong with it
#include "stdafx.h"
#define WeaponMgr 0xA65EE8
#define NoReload 0x2698
#define NoRecoil1 0x1928
#define NoRecoil2 0x192C
#define NoRecoil3 0x1930
#define NoRecoil4 0x26A4
#define NoRecoil5 0x20FC
#define NoRecoil6 0x1F94
#define SeeGhost1 0x88
#define SeeGhost2 0x8C
#define SeeGhost3 0x90
DWORD WINAPI Hacks(LPVOID)
{
bool hak = true;
bool recoil = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
if(hak)
{
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 ) = 150;
}
}
}
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, "your test Here for the message","your title message", 0);
}
}
Any help would be appreciated