Need Code Help.

Posts 1–12 of 12 · Page 1 of 1
Need Code Help.
I have a code, but i think im missing something.
but im not sure what.
So can you help me.
Please don't make fun of me, If the code completely wrong. It's my first time.
Don't rage either.

////addies 01/05/2011
#define WeaponMgr 0xA0F338
#define NoReload 0x2420
#define WeaponDamage 0x07F8

float Hithard = 999.0f;
float FragDmg = 0.0f;
////hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) &1) { fragdmg = true; Beep(512, 100); }

//one hit kill
if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = Hithard;
}
}
}
////no reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}
It's just a basic hack i want to make, for now.
dont rage plz.
/moved

You will receive better assistance here.
Have you gotten any errors ?
Needs WINAPI Stuff, Hooks, And #include <windows.h>.
Edit: Don't Gernades Need To Be Defined Also?
I'm Assuming That You Have The Rest Of Swiftdude's Base In There Too? These Are His Functions.
Not necessarily considering we have no idea what part of his hack this is Could be his base detours or whatever else is needed in CF.

@[CF]Hackers
Could you provide some more info on the snippet you posted, for example what it is ?
just post the full code.
and every one know it is swiftdude's base.
Yep, we all know this is swifts base..
Quote Originally Posted by [[SeXergy]] View Post
Yep, we all know this is swifts base..
Yeah alright, I was asking, I wasn't gonna leech Jesus.
@[CF]Hackers You have missed addys, and missing ready2hook, wait and maindll
Ps: Missing also credits to swiftdude
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us