//coded by: jpjb5138
//and: tambre
//for more hacks go to: mpgh.net
#include <Windows.h>
DWORD WINAPI Hacks(LPVOID)
{
bool Change = true,
bool NoReload = true,
bool SingleFire = false,
bool GunRange = true;
while(1);
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pLtClient = *(DWORD*)(CShell + 0xA2A7E8 );
if(GetAsyncKeyState(VK_F5) || GetAsyncKeyState(VK_F5) &1) { SingleFire = true;Beep(550, 120); }
if(GetAsyncKeyState(VK_F6) || GetAsyncKeyState(VK_F6) &1) { NoReload = true; Beep(550, 120); }
if(GetAsyncKeyState(VK_F7) || GetAsyncKeyState(VK_F7) &1) { Change = true; Beep(550, 120); }
if(GetAsyncKeyState(VK_F8) || GetAsyncKeyState(VK_F8) &1) { GunRange = true; Beep(550, 120); }
if(Change)
{
if (pLtClient)
{
for(int i=0; i<532; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0x2428 ))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+pLtClient)) +(4*i))) + 0x2428 ) = 0;
}
}
}
if(SingleFire)
{
if (pLtClient)
{
for(int i=0; i<532; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xa38 ))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+pLtClient)) +(4*i))) + 0xa38 ) = 100;
}
}
}
if(GunRange)
{
if (pLtClient)
{
for(int i=0; i<533; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0x7ec))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+pLtClient)) +(4*i))) + 0x7ec) = 99999;
}
}
}
if(NoReload)
{
if (pLtClient)
{
for(int i=0; i<533; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0x2424 ))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+pLtClient)) +(4*i))) + 0x2424 ) = 9999;
}
}
}
{
}
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 )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}