[html]#include <windows.h>
#include <iostream>
using namespace std;
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD WINAPI HOOK(LPVOID param) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(7000);
}
bool OneHit = false; //By Xaruto: True for AutoOn False for Numpad Keys
while(1) {
if(GetAsyncKeyState(VK_F10) &1){OneHit = !OneHit;}
if(OneHit){
DWORD dwWeapon = *(DWORD*)( dwCShell + 0xA2A7E8 );
if ( dwWeapon ){
for( int i=0 ; i < 512 ; i++)
{
DWORD Weapon = *(DWORD*)( dwWeapon + i * 4 );
if ( Weapon ) continue;
*(float*)( Weapon + 0x7F8 ) = 99999.0f;
}
}
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "This hack its for the MPGH dont LEECH this hack ANTI LEECH CODE v1", "Injected", 0);
CreateThread(NULL, NULL,HOOK, NULL, NULL, NULL);
}
return TRUE;
}[/html]