#include<windows.h> //<<<HERE IS A EROR
#define WeaponMgr 0xA0F338
#define NoReload 0x2420
#define AmmoDamage 0x7F8
#define STW 0x22C4
#define Range 0x7EC
float HitHard = 999.0f;
float WpRange = 999.0f;
DWORD WINAPI Hacks(LPVOID);
{ //<<<HERE IS A EROR
//in case u need it, dont forget use "else"
bool reload = false;
bool onehitkill = false;
bool ShootsTroughWalls = false;
bool WeaponRange = false;
{
while(1);
}
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F5)&1) { reload = true;
}
if(GetAsyncKeyState(VK_F6)&1) { onehitkill = true;
}
if(GetAsyncKeyState(VK_F7)&1) { ShootsTroughWalls = true;
}
if(GetAsyncKeyState(VK_F8)&1) { WeaponRange = true;
}
//no reload
if(reload)
{
if (NoReload)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
}
}
}
//OneHitKill
if(onehitkill)
{
if (AmmoDamage)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + AmmoDamage) = 100;
}
}
}
{
if(ShootsTroughWalls)
{
if (STW)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + STW) = 100;
}
}
}
if(WeaponRange)
{
if (Range)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + Range) = 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 )
{
//optional
MessageBoxA(0, "...","... ", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
}
return 1;
}
#include<windows.h>
#define WeaponMgr 0xA0F338
#define NoReload 0x2420
#define AmmoDamage 0x7F8
#define STW 0x22C4
#define Range 0x7EC
float HitHard = 999.0f;
float WpRange = 999.0f;
DWORD WINAPI Hacks(LPVOID)
{
//in case u need it, dont forget use "else"
bool reload = false;
bool onehitkill = false;
bool ShootsTroughWalls = false;
bool WeaponRange = false;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F5)&1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F6)&1) { onehitkill = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F7)&1) { ShootsTroughWalls = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F8)&1) { WeaponRange = true; Beep(512, 100); }
//no reload
if(reload)
{
if (NoReload)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
}
}
}
//OneHitKill
if(onehitkill)
{
if (AmmoDamage)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + AmmoDamage) = 100;
}
}
}
if(ShootsTroughWalls)
{
if (STW)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + STW) = 100;
}
}
}
if(WeaponRange)
{
if (Range)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + Range) = 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 )
{
//optional
MessageBoxA(0, "...","... ", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
}
return 1;
}


and thxDWORD WINAPI Hacks(LPVOID)
while(1)
{
//in case u need it, dont forget use "else"
bool reload = false,
onehitkill = false,
ShootsTroughWalls = false,
WeaponRange = false;
