Raised This Month: $12 Target: $400
 3% 

VAC Status Checker (v.2.5.0 8/27/19)


Post New Thread Reply   
 
Thread Tools Display Modes
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 02-17-2017 , 15:20   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #271

Last update being 1.5 years ago...
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
StevoTVR
Senior Member
Join Date: Oct 2008
Old 02-17-2017 , 16:20   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #272

Quote:
Originally Posted by blackhawk74 View Post
I'm aware that this plugin isn't quite actively developed, just a couple things I'd like to point out:

Across only 2 servers, this plugin is creating 54 mysql processes, seems a bit excessive?

A possible addition: Detecting game bans, along with VAC bans
I'll look into why it is creating so many processes. Maybe they aren't being disconnected on each map change.

I'm not sure what you mean about game bans. Do you mean server bans?
StevoTVR is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-17-2017 , 17:15   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #273

Quote:
Originally Posted by StevoTVR View Post
I'm not sure what you mean about game bans. Do you mean server bans?
A game ban is a (newer) style ban through Steam: https://support.steampowered.com/kb_...6899-IOSK-9514

For example, in CS:GO, there is a system called "Overwatch", where players who have reached certain prerequisites (rank, time played, # of games played, etc) can manually review a demo to determine if the suspected person is cheating, and submit a verdict amongst several other players who have also watched the same demo. If the overwhelming majority of the verdict is that the player is cheating, they get an Overwatch ban - which appears on their profile as a Game Ban, along side any VAC Bans (if applicable). In CS:GO's case, if a player gets a game ban, they are no longer allowed to trade their CS:GO items, cannot join Matchmaking, or any VAC secured server. Works just like a VAC Ban, but is manual.

Here's what a game ban looks like on a profile:
__________________

Last edited by sneaK; 02-17-2017 at 17:17.
sneaK is offline
StevoTVR
Senior Member
Join Date: Oct 2008
Old 02-17-2017 , 18:09   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #274

Quote:
Originally Posted by blackhawk74 View Post
A game ban is a (newer) style ban through Steam: https://support.steampowered.com/kb_...6899-IOSK-9514

For example, in CS:GO, there is a system called "Overwatch", where players who have reached certain prerequisites (rank, time played, # of games played, etc) can manually review a demo to determine if the suspected person is cheating, and submit a verdict amongst several other players who have also watched the same demo. If the overwhelming majority of the verdict is that the player is cheating, they get an Overwatch ban - which appears on their profile as a Game Ban, along side any VAC Bans (if applicable). In CS:GO's case, if a player gets a game ban, they are no longer allowed to trade their CS:GO items, cannot join Matchmaking, or any VAC secured server. Works just like a VAC Ban, but is manual.

Here's what a game ban looks like on a profile:
Okay, I found the method to get that information in the API, but it requires registration. I'll have to set up something on my server to expose the data to the plugin.
StevoTVR is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 02-17-2017 , 19:39   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #275

Here's a version that fixes the database handle stacking. You essentially just need to open 1 and never close it and Sourcemod handles the rest.

3 lines added around line 415.
Attached Files
File Type: sp Get Plugin or Get Source (vacbans.sp - 55 views - 13.7 KB)
Drixevel is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-17-2017 , 23:12   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #276

Quote:
Originally Posted by redwerewolf View Post
Here's a version that fixes the database handle stacking. You essentially just need to open 1 and never close it and Sourcemod handles the rest.

3 lines added around line 415.
Very nice, did a very very quick test and I went from 54 mysql connections on 2 servers, down to 14, thank you! Haven't tested past a map change yet, but will update if anything changes.

Edit: Up to 21, I'm assuming this is still incrementing a connection every map change.
__________________

Last edited by sneaK; 02-18-2017 at 00:35.
sneaK is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 02-18-2017 , 02:52   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #277

Quote:
Originally Posted by blackhawk74 View Post
-snip-
Fixed

Version 1.4.4
- Updated to new syntax
- Fixed database connection mishandling
Attached Files
File Type: zip vacbans-1.4.4.zip (15.6 KB, 63 views)

Last edited by headline; 02-18-2017 at 02:54.
headline is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 02-18-2017 , 08:08   Re: VAC Status Checker (v.1.4.3 3/8/15)
Reply With Quote #278

Quote:
Originally Posted by Headline View Post
Fixed

Version 1.4.4
- Updated to new syntax
- Fixed database connection mishandling
Good to know Sourcemod doesn't kill the handle inside the callback once It's called. (although that would make sense)
Drixevel is offline
StevoTVR
Senior Member
Join Date: Oct 2008
Old 02-21-2017 , 13:41   Re: VAC Status Checker (v.2.0.0 2/21/17)
Reply With Quote #279

I just released a major version update (2.0.0). The plugin now uses data from the Steam Web API instead of the public Steam Community profiles. This means the plugin can now detect game, Steam Community, and economy bans in addition to VAC bans. The source code has also been cleaned up and updated to the new syntax.

The translation file has been replaced, so new translations are needed. If you can provide translations, that would be very much appreciated.

I tested it the best I could, but there are a lot of changes in this version. If there are any issues, please let me know.

Here are the changes:
  • Switched to the Steam Web API
  • Added detection of game, Steam Community, and trade bans
  • Added ConVars to control the types of bans that are detected
  • Added option to ignore VAC bans after a specified number of days
  • Added admin command to list the bans of connected clients
  • Changed the default action to kick
  • Changed the default cache time to 1 day
  • Added fallback to cached data when there is an error
  • Fixed new database connections being created on every map change

Here are all the new console variables:
Code:
// Enable Steam Community ban detection
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_vacbans_detect_community_bans "0"

// Enable economy (trade) ban detection (0 = disabled, 1 = bans only, 2 = bans and probation)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_vacbans_detect_econ_bans "0"

// Enable game ban detection
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_vacbans_detect_game_bans "0"

// Enable VAC ban detection
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_vacbans_detect_vac_bans "1"

// Ignore VAC bans older than this many days (0 = disabled)
// -
// Default: "0"
// Minimum: "0.000000"
sm_vacbans_vac_expire "0"
There is also a new admin command, sm_vacbans_list, which lists all the bans of connected clients. This also replaces sm_listvac as the override to control who sees the admin messages. The default access level required is kick.
StevoTVR is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-21-2017 , 14:50   Re: VAC Status Checker (v.2.0.0 2/21/17)
Reply With Quote #280

This is an awesome update, thank you so much! I will check this out ASAP
__________________
sneaK is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode