View Single Post
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-20-2020 , 17:40   CS:GO Anti-Cheat: Cheating ConVars v3.1 (Released on May 2020)
Reply With Quote #1

Github

/ClaudiuHKS/SMCSGOAntiCheatCheatingConVarsChecker

The Summary

This Plug-in bans players for changing FCVAR_CHEAT ConVars (for example, weapon_debug_spread_show).

Please note, such ConVars can't be changed by typing stuff into the game's console. They can only be changed by using a game hack.

It also bans for changing the FCVAR_REPLICATED ConVar sv_skyname's value, which can't be changed without a game hack.
Hackers usually change the map's sky while playing on public game servers.

The Proof Of Working

https://gobans.ro/GO/index.php?p=banlist

Game Servers Using This Plug-in

See GameTracker

The Requirements

A CS:GO game server that has sv_cheats disabled (sv_cheats 0).

The Final Notes

It works with the Base Bans Plug-in and with the Source Bans Plug-in as well.
The ban's reason will be the illegal ConVar's name.
The ban's length may be permanent or an amount of minutes, depending on how you set the "csgo_ac_cheating_convars_ban_time" ConVar.
If you, any of your admins or an installed Plug-in enable sv_cheats ConVar (sv_cheats 1) during the game play, no worries, bans will not be issued.
If a ConVar from the list gets removed because of a game update or something, it will be just skipped, no bans will be issued because of that.

The Latest Enabled & Updated ConVars Are Here (cheating_convars_enabled.ini)

So I won't have to update the attached files for every update I do about adding or removing enabled ConVars.

Code:
"cl_crosshair_recoil"           "0"
"cl_extrapolate"                "1"
"cl_grenadepreview"             "0"
"cl_ragdoll_gravity"            "600"

"fog_color"                     "-1 -1 -1"
"fog_enable"                    "1"

"mat_force_tonemap_scale"       "0.0"
"mat_postprocess_enable"        "1"

"weapon_debug_spread_show"      "0"
How To Install

Code:
cheating_convars_enabled.ini   file to /addons/sourcemod/configs/
cheating_convars_disabled.ini  file to /addons/sourcemod/configs/

csgo_ac_cheating_convars.cfg   file to /cfg/sourcemod/

csgo_ac_cheating_convars.smx   file to /addons/sourcemod/plugins/

csgo_ac_cheating_convars.sp    file to /addons/sourcemod/scripting/
The Changes

Code:
[Version 1.0]

The Plug-in has been released.

[Version 2.0]

Added /addons/sourcemod/configs/cheating_convars_enabled.ini
Added /addons/sourcemod/configs/cheating_convars_disabled.ini
Added /cfg/sourcemod/csgo_ac_cheating_convars.cfg
Added a ConVar "csgo_ac_cheating_convars_ban_time" to allow the game server's owners to decide how long the ban will be, in minutes.

[Version 2.1]

Added "cl_crosshair_recoil" "0" client ConVar to the enabled ConVars file.
Added a few seconds delay between the original OnClientPutInServer call and the moment of beginning to check the client's ConVars.

[Version 2.2]

Use MaxClients instead of MAXPLAYERS.
Use the client's user index rather than the client's index within the CreateTimer call.
Avoid all the fake clients into the game server (BOTs, Replay BOTs & SourceTV BOTs).

[Version 2.3]

Automatically update "csgo_ac_cheating_convars" version ConVar when changing the SMX file and the game server is running.

[Version 3.0]

Ban players for having different "sv_skyname" value than the game server's.
This is a replicated ConVar that exists both client and server side,
whose value can't be altered by any of the players without a game hack.

[Version 3.1]

Thanks to kratoss1812 (#285749) @ /showpost.php?p=2744238&postcount=23.
Replaced CreateArray(PLATFORM_MAX_PATH) with CreateArray(ByteCountToCells(PLATFORM_MAX_PATH)).
Added a definition #define CHECK_SV_SKYNAME_TOO which everyone is able to undefine or delete.
Attached Files
File Type: cfg csgo_ac_cheating_convars.cfg (445 Bytes, 809 views)
File Type: ini cheating_convars_disabled.ini (14.0 KB, 681 views)
File Type: sp Get Plugin or Get Source (csgo_ac_cheating_convars.sp - 930 views - 20.6 KB)
File Type: ini cheating_convars_enabled.ini (1.2 KB, 169 views)
__________________

Last edited by claudiuhks; 01-03-2023 at 20:56. Reason: Added Github Link
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks