One Hit kill code help for weapon M16
I need help with my one hit kill code:
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;
I Know, this is not my entire base and I need to update my addies. I just need help on what do i need to put in (if so what, like weapon id and etc.) and if anything is wrong.
GetAsynckeyState maybe is out of date
GetAsyncKeyState is work for Philippines Crossfire
i use GetAsyncKeyState hotkey to my base.. untill now
Ur code is patched. getSasyncKeySTate is patched...
Ant the addy is wrong.
On this way it isn't patched...: if(GetAsyncKeyState(VK_F9) &1){OneHit = !OneHit;}
if(OneHit){
so i make it automatically on, ill take out if(GetAsyncKeyState(VK_F9) &1){OneHit = !OneHit;}.
Btw: You need to add a NULL check.
1: it aint yours
2:Its patched