G Force Version 3 Soure Code!
No not really /laugh
But How to turn for example..
OnehitKill ON and OFF!
Well
I dont care if u loop through all weapons or not.
Ill show u the code with with the Weapon u have in hand.
I will censor a few addies in * so that i can be sure u are not a nub although u are :P
SO:
First u define the Playptr:
Code:
DWORD dwPlayer = *(DWORD*)( CShell + PlayerPtrAddy );
After that you define the Weapon in hands (You wont need Lop throug all weapons)
Code:
int WepinHand =*(int*)( dwPlayPtr+WeaponinHandoffset)
Code:
PFLOAT Weapon = *(BYTE*)( dweapon + (8*WepinHand);
So to make on Off use this:
Code:
if(Weapon){
damage =*(char*)(weapon + 0x7F8);
if(WepinHand){
*(double*)(Weapon + 0x7F8) = (BYTE)(damage * 0.02f);
}
NOTE: ANTI LEECH PROTECTION ADDED, A few mistakes are there now :P
If u use this, dont forget to add me into the fucking cedits!