VACheck - Check VAC Records 
31 comments
The addition of


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.

Code:
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
vaclistdir = "sys/lua/vaclist.lua"
logusgn = true
allow_play = false
kick_player = true
logdir
: USGN log directoryvaclistdir
: VAC recognized SteamID list directorylogusgn
: Log VAC banned players' USGN if they have it.allow_play
: Allow VAC banned players to play?kick_player
: Kick VAC banned players?
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.

Added
kick_player
option, changed allow_watch
to allow_play
.
Frequent requests seem to make steam ignore the request, looking for a work around.

This content is published under WTFPL 3.0.
edited 14×, last 11.08.18 11:24:41 pm

Comments
31 commentsLog in!
You need to log in to be able to write comments!Log in
Would be cool if this saved the ID's in a file so you wouldn't have to send a request each time you want to check.

Yeah, it's just that you are using "#req". I believe there are better ways of managing requests.
This for example doesn't work.
Code:
1
2
3
4
2
3
4
test = {}
test[0] = 1
test[2] = 3
print(#test)
test[0] = 1
test[2] = 3
print(#test)
This for example doesn't work.

@
Talented Doge: Add "reason" in the kick function.
Thus please make the code more clear and simple.

Thus please make the code more clear and simple.
@
SQ: Yes, I tested the method with a VAC banned profile by directly requesting that profile and it returned the desired result.
@
Gaios: Some.
This can only prevent players who do not have the time to register an entirely new account. But it is nonetheless yet another way to prevent cheaters.
By the way the frequent requests seem to make steam drop the requests, maybe add another parameter to
reqhttp to set a delay? I'm lazy to user timers

@

This can only prevent players who do not have the time to register an entirely new account. But it is nonetheless yet another way to prevent cheaters.
By the way the frequent requests seem to make steam drop the requests, maybe add another parameter to

