#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;
while(1) {
if(GetAsyncKeyState(VK_F9) &1){OneHit = !OneHit;}
if(OneHit){
DWORD dwWeapon = *(DWORD*)( dwCShell + 0xA299AC );
if ( dwWeapon ){
for( int i=0 ; i < 512 ; i++)
{
DWORD Weapon = *(DWORD*)( dwWeapon + i * 4 );
if ( Weapon ) continue;
*(float*)( Weapon + 0x7A4) = 3000.0f;
}
}
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "CODE BY DOOP's", "Injected", 0);
CreateThread(NULL, NULL,HOOK, NULL, NULL, NULL);
}
return TRUE;
}