Files

> > CS2D > Lua Scripts > VACheck - Check VAC Records
Files overviewCS2D overviewLua Scripts overview

English VACheck - Check VAC Records >

31 comments2 kb, 537 Downloads

old VACheck - Check VAC Records

Talented Doge
User Off Offline

> Introduction
The addition of cs2d lua cmd reqhttp has made this easy thanks to user 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
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_player
option, changed
allow_watch
to
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 Download

2 kb, 537 Downloads

Comments

31 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Talented Doge
User Off Offline

I'm working on it. The "already checked" function won't be hard.

old

Yates
Reviewer Off Offline

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.

old

SQ
Moderator Off Offline

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

old

Talented Doge
User Off Offline

Because I cannot check for the players' ID with just the special ID.

old

SQ
Moderator Off Offline

@user Talented Doge: Why are you using req[i][id]?
I like it!

old

Talented Doge
User Off Offline

√ Reason added.
√ Code made tidy and simple.

old

SQ
Moderator Off Offline

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

old

Talented Doge
User Off Offline

@user SQ: Yes, I tested the method with a VAC banned profile by directly requesting that profile and it returned the desired result.

@user 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 cs2d lua cmd reqhttp to set a delay? I'm lazy to user timers

old

Gaios
Reviewer Off Offline

I wonder if anybody uses Vac Banned account
I like it!

old

SQ
Moderator Off Offline

Great, that's what I did reqhttp support for. Did you tested it, does it work?
I like it!

old

apex2d
User Off Offline

Noice m8
I like it!
To the start Previous 1 2 Next To the start