Some c++, For Crossfire hacking.

Posts 1–15 of 21 · Page 1 of 2
Some c++, For Crossfire hacking.
For and While Loops
First we start code a Noreload code.

- First we must include something for let the hack working...

#include<windows.h> // (Windows.header) hack will work in windows.
// also #include "stdafx.h"

- Then we must Define some addies. and maybe Weapon ID's 'i'

#define LTC client 0xA05E48 //new addies after patch, search it with ollyDgb
#define NoReload 0x2420//Noreload addie. Search for ''ReloadAnimRate'' in Olly.

Now Start make the hack codes etc..

WINAPI declares the "calling convention" basically how the compiler pushes arguments on the stack and how it generates the function call
=> DWORD WINAPI Hacks(LPVOID)

To declare such a value, you use the bool keyword.
(true or false)
Then.
Code:
{
    bool noreload = true; //auto on
Then we make Infinite loop
Code:
while(1)
{
    // code
}
Now we Create the Code '//code':

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll"); //it get cshell.dll handle.
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr); // says pWeaponMgr is defined WeaponMgr(addie).

//Start coding noreload
if(noreload) //Bool
{
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;
}
}
}[code]

For this part: for(int i=0; i<445; i++)

3 elements initialization, conditional, and update.

Picture from other site.

just a example

Now we code this for Crossfire.

Code:
for(int i=0; i<445; i++)
for// loop, weapons
(int i=0;
i<445; //Loop guns, you can take 471 also..
i++)

Hope now, you can code ur own codes for Noreload and other features ;P
umm hard to understand
You should do it more easier to the newcomers in c++ language.
Nice but if I try this now will it work?
Nice
Good job
Thats why guys have to start to learn what mean every step and after that make hacks.
It's a little hard for me to understand

And yes i'm a noob yet hehe
But nice topic
Make a video please
omg i dont get it
Nice tut, im starting to learn it, i dont really know what this means but i will eventually. For addies,
I try to do it but is so hard.
I will come back and tell you if I did something but I bet I won't..
Not well explained
Start easier....
lol start with the basics
Posts 1–15 of 21 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us