You may use this :
//Crossfire.exe
AOB
Code:
B9 ?? ?? ?? ?? E8 ?? ?? ?? ?? 68 ?? ?? ?? ?? E8 ?? ?? ?? ?? 83 C4 04 E9 ?? ?? ?? ??
can be use like this :
Code:
CGameCon* pGameCon = (CGameCon*)(0x118D8B0);//CFPH
if ((hAsusWallHack) /*&& (GameStatus == 11)*/)
{
if (difftime(time(0), last_run_) > 25)
{
if (hAsusWallHack)
pGameCon->WallHack = 0;
else
pGameCon->WallHack = 16777217;
}
}
else
{
last_run_ = time(0);
pGameCon->WallHack = 16777217;
}
Class
Code:
class CGameCon
{
public:
char pad_0000[16]; //0x0000
int32_t PhatomLight; //0x0010 value 50
char pad_0014[144]; //0x0014
int32_t WallHack; //0x00A4 original value 16777217
char pad_00A8[12]; //0x00A8
}; //Size: 0x1078