How to make Anti Cheat?
#1

I've noticed there are some Anti Cheat Includes/Filterscripts available in this Forum, but it makes me confused on editing them, I wanted to know, how to make the Cheat Detection (For Player Only, not for Admins) Because some of Admins in my Server are cheaters LOL
Reply
#2

Treating admins differently than regular players is a big no no. Double standards perhaps?

Either way, if you want to disable it for admins you need to find your admin variable and the function that actually detects hacks. Add an if statement which checks if player is not an admin and enclose the entirety of the function between the brackets.
Reply
#3

well if detection is inside include you could add just admin check
if(GetPVarInt(playerid, "IsAdmin"))return 0;
and in gamemode you add
SetPVarInt(playerid,"IsAdmin",1);
Reply
#4

Wouldn't work if AC is hooked on OnPlayerWeaponShot. Would desync all admin bullets
Reply
#5

Well, i could've just put


// Anticheat detection blah blah
if(PlayerInfo[playerid][pAdmin] >= 1)
{
//Function
}

But it's hard to find it.
Reply
#6

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
well if detection is inside include you could add just admin check
if(GetPVarInt(playerid, "IsAdmin"))return 0;
and in gamemode you add
SetPVarInt(playerid,"IsAdmin",1);
Ain't that only work for RCON Admin?
Reply
#7

Quote:
Originally Posted by Dirda
Посмотреть сообщение
Ain't that only work for RCON Admin?
No its IsPlayerAdmin and its a function. That example shows IsAdmin which is a Variable. Its not the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)