well this part is wrong:
Code:
#include <windows.h>
#include <iostream>
#define WeaponMgr 0xB65E94
#define Playerbasic 0xAFED68
#define NoChange 0xBD8
#define NoReload 0xBDC
using namespace std;
DWORD WINAPI Hacks(LPVOID)
{
//Memory
bool NoReload = true;
bool NoRecoil = true;
bool NoChange = true;
bool SeeGhost = true;
while (true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
PDWORD Weapon = (PDWORD)(CShell + 0xB65E94 );
}
//No Reload
if (NoReload)
{
if (pWeaponMgr)
{
for(int i=0; i<650; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBDC) = 2.0f;
}
//No Recoil
if (NoRecoil)
{
if (pWeaponMgr)
{
for(int i=0 ; i<650 ; i++)
{
DWORD Wep = *(DWORD*)(*Weapon + 4*i);
if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( Wep + (0X34C0 + (4*y))) = (float)0;
*(float*)( Wep + (0x34C4 + (4*y))) = (float)0;
*(float*)( Wep + (0x34C8 + (4*y))) = (float)0;
*(float*)( Wep + (0x3B20 + (4*y))) = (float)0;
*(float*)( Wep + (0xE98 + (4*y))) = (float)0;
*(float*)( Wep + (0x1000 + (4*y))) = (float)0;
}
//NoChange
if (NoChange)
{
if (pWeaponMgr)
{
for(int i=0; i<650; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD8) = 3.0f;
}
//SeeGhost
if(Playerbasic)
{
*(float*)(Playerbasic + 0x88) = (float)1.0;
*(float*)(Playerbasic + 0x8C) = (float)1.0;
*(float*)(Playerbasic + 0x90) = (float)1.0;
}
}
}
Sleep(100);
}
bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return true;
return false;
}
BOOL WINAPI SndDrv ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "CrockCrock" , "MPGH" ,0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
{
return 1;
}