By
KenshinAMV Adding A VAC Checker
You must have the source code of the hook to do this...
1) Open up client.cpp and scroll down to the very bottom
2) Just above where it says "DWORD* slots = (DWORD*)0x01EB34C0;" in most source codes copy/paste this in
Code:
//----------vac check-----------
bool CheckVac()
{
unsigned char *vac = (unsigned char*)0x01701000;
if(vac[0] != NULL)
{
gConsole.echo("&rVAC Is Enabled On This Server");
return true;
}
else
gConsole.echo("&rVAC Is Not Enabled On This Server");
return false;
}
//----------end vac check--------
What this does is, when you go into a game and open the console, it will either say
VAC Is Not Enabled On This Server
Or
VAC Is Enabled On This Server
and yes, the VAC offset is 0x01701000
Credits:
LTFX Guy for the code
Ken (me) for adding the "Not enabled part" and writing this simple tutorial :P