Quote:
Originally Posted by whiteskypony
Where does the anti cheat look for invalid convars?
|
Queries are sent here:
https://github.com/J-Tanzanite/Littl.../lilac.sp#L971
Queries are checked here:
https://github.com/J-Tanzanite/Littl...lilac.sp#L1022
Quote:
Originally Posted by whiteskypony
Where does the anti cheat look for invalid convars? Im having problems in one of our servers the AC always bans me for invalid convar (sv_cheats 1),
we have it installed on 3 servers and only one of them does this. The only temp solution was to disable the convar ban check.
Im root admin on those.
I was not sure if i have an .cfg file on my end that may cause this but nothing.
*PD: This happen with version 1.5.1 and now with 1.6.1
|
Quote:
Originally Posted by Sreaper
I'm having the same issue as the above poster. Can you please add code to exclude admins from the checks? Thank you for the plugin.
|
I'm not sure what the underlying issue is, but it kinda sounds like you two have a plugin or something that gives you sv_cheats 1 access since you are admins... Tho, it's hard to tell.
If you disable Lilac ConVar checks "lilac_convar 0" and go on your servers, and type "sv_cheats" in your game console (Not server console!), if it says it's 1 but others (like non-admins/normal players) have it as 0 - then that would suggest it's you giving yourselves sv_cheats access, probably via another plugin.
As for code to exclude admins from checks, no, there is however already a system in place which you could use to disable certain detections on specific players, and that's the forwards Lilac provides.
Here is some psudocode:
Code:
#include <sourcemod>
#define CHEAT_CONVAR 2 // From the lilac.sp file, this value is set in stone and won't ever be changed.
public Action lilac_allow_cheat_detection(int client, int cheat)
{
// Only check ConVar detections.
if (cheat == CHEAT_CONVAR) {
// This function "is_client_admin()" doesn't exist!
// Not sure how you check for admins, been told you
// should use "CheckCommandAccess()"
if (is_client_admin(client)) {
// Client is an admin and the cheat detected
// was a ConVar violation.
// This tells Lilac to ignore the detection (and not ban).
return Plugin_Handled;
}
}
// Cheat detected wasn't a ConVar or the client wasn't an admin.
// Allow the cheat detection to happen.
return Plugin_Continue;
}
You can make your own plugins with this code or add this directly to Lilac, tho the former is cleaner.