
Originally Posted by
ItzFdr
I improved your code just a bit with notepad++
I haven't tested it, it's just example for how you have to do some anti-cheat things.
Code:
if(JumpVelocity > 19 && gUserProfile.ProfileData.isDevAccount == 0)
{
//r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A"); // Don't be so stupid, if you are making client side anti-cheat, you have to avoid string max as possible.
#ifdef ENABLED_KILL_FLAG
extern bool gKillFlag;
gKillFlag = true;
#else
// Send packet to the server
// There you can ban/kick the player, it's more safe than just close the process.
PKT_C2S_RandomPacket_s n;
n.SuperJumped = true;
p2pSendToHost(this, &n, sizeof(n));
#endif // ENABLED_KILL_FLAG
}
Thanks by the council ... @ItzFdr
- - - Updated - - -
NEW LOGIC TESTINGS !
search:
Code:
PKT_S2C_Flashlight,
add bellow
Code:
PKT_C2S_RandomPacket, // FDR and DSP code ac
search
Code:
struct PKT_S2C_Flashlight_s : public DefaultPacketMixin<PKT_S2C_Flashlight>{
//BYTE peerId;
DWORD peerId;;
bool Status;
char plrname[128];
};
add bellow
Code:
struct PKT_C2S_RandomPacket_s : public DefaultPacketMixin<PKT_C2S_RandomPacket> //DouglasPRO:: NewLogic AC community !{
bool gKillFlag;
int peerId;
};
SEARCH
add bellow
Code:
if(JumpVelocity > 18 && gUserProfile.ProfileData.isDevAccount == 0) {
//r3dOutToLog("WARNING : ERROR JUMP HACK FOUND -A"); // Don't be so stupid, if you are making client side anti-cheat, you have to avoid string max as possible.
#ifdef ENABLED_KILL_FLAG
extern bool gKillFlag;
gKillFlag = true;
#else
// Send packet to the server
// There you can ban/kick the player, it's more safe than just close the process.
PKT_C2S_RandomPacket_s n;
addChatMessage(0, "<SYSTEM>", "KILLED PLAYER %s BY AC", 0);
n.SuperJumped = true;
p2pSendToHost(this, &n, sizeof(n));
#endif // ENABLED_KILL_FLAG
}