The addition of reqhttp has made this easy thanks to SQ, so I wrote this to help you in recognizing VAC banned players.
This simple lua script will request data from steam web page. If player has ever been VAC banned, they will not be able to participate in the game.(Can be set in settings)
This script also includes the function to identify the previously distinguished VAC banned players, so as to reduce the network usage of the server.
Settings
1
2
3
4
5
2
3
4
5
logdir = "sys/lua/vaclog.txt" vaclistdir = "sys/lua/vaclist.lua" logusgn = true allow_play = false kick_player = true
logdir: USGN log directory
vaclistdir: VAC recognized SteamID list directory
logusgn: Log VAC banned players' USGN if they have it.
allow_play: Allow VAC banned players to play?
kick_player: Kick VAC banned players?
Note
To ensure that VAC banned players do not evade by simply logging out of steam, I forced them to log in to steam in order to play. DO NOT REMOVE THIS LINE OF CODE OR THEY MAY EVADE THE CHECK.
This script has its limits that if a player is so dedicated to ruin the game, he may join with an entirely new account without VAC record. So manual moderation is always the best choice if possible.
Updates
Added
kick_playeroption, changed
allow_watchto
allow_play.
Issues
Frequent requests seem to make steam ignore the request, looking for a work around.
License
This content is published under WTFPL 3.0.
edited 14×, last 11.08.18 11:24:41 pm
Approved by SQ
Download
2 kb, 569 Downloads