Someone Help Me Out With My Code?

Posts 1–2 of 2 · Page 1 of 1
Someone Help Me Out With My Code?
Hey guys im releasing a OneHitKill hack soon and i want to know what is wrong with my code
#include "stdafx.h"
#define WeaponMgr 0xA65EE8
#define OneHitKill 0x7F8

DWORD WINAPI Hacks(LPVOID)
{
bool hak = true;
bool recoil = true;

while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

if(hak)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHitKill ) = 150;
}

}
}
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 )
{

MessageBoxA(0, "Maxpower's Hack","Beta", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
Ideas why its not working? Post below and ill thank and rep if possible thank you!!
Change 150 to 9999 only works in zm. Also try taking out stdafx and using windows.h
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us