Monthly Target: $400 Donations: $140
 35% 

Notices

VAC Status Checker (v.2.0.0 2/21/17)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
StevoTVR
Senior Member
Join Date: Oct 2008
Plugin ID:
645
Plugin Version:
2.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    177 
    Plugin Description:
    Checks for VAC, game, Steam Community, and trade bans on the accounts of connecting clients
    Old 11-24-2008 , 21:55   VAC Status Checker (v.2.0.0 2/21/17)
    Reply With Quote #1

    VAC Status Checker

    This plugin checks for VAC, game, Steam Community, and trade bans on the accounts of connecting clients and takes the desired action. Useful for admins who want to block access to people for bad behavior outside the server.

    RequirementsInstallation
    1. Download vacbans-x.x.x.zip
    2. Extract to addons/sourcemod
    Console Variables

    Code:
    // Action to take on detected clients (0 = ban, 1 = kick, 2 = alert admins, 3 = log only)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    sm_vacbans_action "1"
    
    // How long in days before re-checking the same client
    // -
    // Default: "1"
    // Minimum: "0.000000"
    sm_vacbans_cachetime "1"
    
    // The named database config to use for caching
    // -
    // Default: "storage-local"
    sm_vacbans_db "storage-local"
    
    // 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"


    Console Commands
    • sm_vacbans_reset - Clears the cache database. Run from server console or client with sm_rcon access.
    • sm_vacbans_whitelist <add|remove|clear> [SteamID] - Run from the server console or client with sm_rcon access to control the whitelist:
      • add <SteamID> - adds a SteamID for the plugin to ignore
      • remove <SteamID> - removes a SteamID from the whitelist
      • clear - removes all SteamIDs from the whitelist
    • sm_vacbans_list - Lists the bans of connected clients. Admins with access to this also see the connect messages when sm_vacbans_action is 2.

    Notes
    • This will not compile with the web compiler due to the 3rd party extension, download the .zip containing the compiled .smx
    • All account data comes from the Steam Web API
    • This works with SourceBans
    • Data is logged to sourcemod/logs/vacbans.log
    Credits
    • voogru - finding the algorithm for converting SteamIDs
    • berni & StrontiumDog - the function that converts SteamIDs
    • r3dw3r3w0lf - admin alert code
    Changelog
    • 1.0.0 - 11/24/2008
      • Initial Release
    • 1.0.1 - 2/19/2009
      • Changed file naming to avoid conflicts
    • 1.1.0 - 2/23/2009
      • Now uses DataPacks instead of files to store temporary data
      • Added RegEx for scanning downloaded data
      • Verifies client against original ID before taking action (in case another user joins the slot during checking)
      • Now uses FriendID instead of SteamID as the database keys
      • Various code organization improvements
      • Added command to reset the local cache database
    • 1.1.1 - 3/19/2009
      • Fixed bans triggering before client is in-game
      • Removed dependency on the regex extension
      • Added logging to vacbans.log for all action settings
      • Added Portuguese translations (danielsumi)
    • 1.2.0 - 3/26/2009
      • Added whitelist support
      • Changed some messages to reflect the plugin name
    • 1.2.1 - 4/13/2009
      • Fixed conversion of long SteamIDs (StrontiumDog)
      • Added Russian translations (Archangel_Dm)
    • 1.3.0 - 5/25/2009
      • Added support for other named database configs
      • Added Swedish translations (lhffan)
    • 1.3.1 - 7/18/2009
      • Removed format from translations to fix odd error message
    • 1.3.2 - 7/24/2009
      • Fixed logging error
    • 1.3.3 - 2/09/2010
      • Added filter for bots on client checks
    • 1.3.4 - 9/04/2011
      • Fixed some race conditions
    • 1.3.5 - 3/27/2013
      • Fixed bans firing too early
    • 1.3.6 - 11/15/2013
      • Fixed DataPack operation out of bounds errors
    • 1.4.0 - 2/07/2015
      • Updated to support SourceMod 1.7
      • Fixed DataPack operation out of bounds errors
    • 1.4.1 - 2/12/2015
      • Updated sm_vacbans_whitelist to accept new SteamIDs
      • Added option to alert admins to VAC banned players
    • 1.4.2 - 2/22/2015
      • Fixed handling of incorrect usage of sm_vacbans_whitelist
      • Changed console commands to admin commands
    • 1.4.3 - 3/08/2015
      • Fixed missing client name in admin messages
    • 2.0.0 - 2/21/2017
      • 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
    Attached Files
    File Type: sp Get Plugin or Get Source (vacbans.sp - 5 views - 21.3 KB)
    File Type: zip vacbans-2.0.0.zip (21.5 KB, 12 views)

    Last edited by StevoTVR; 02-21-2017 at 14:15.
    StevoTVR is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 11-25-2008 , 02:05   Re: VAC Status Checker
    Reply With Quote #2

    Here's a german Version:

    Code:
    "Phrases"
    {
        "Kicked"
        {
            "de"        "Du wurdest aufgrund einer früheren VAC Verletzung gekickt."
        }
        "Banned"
        {
            "de"        "Du wurdest aufgrund einer früheren VAC Verletzung gebannt."
        }
        "Banned_Server"
        {
            "#format"    "{1:s}"
            "de"        "{1} aufgrund einer früheren VAC Verletzung gebannt."
        }
    }
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this


    www.unterwasserpyromanen.de
    Sillium is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 11-25-2008 , 07:20   Re: VAC Status Checker
    Reply With Quote #3

    The problem with this is, there are some odd half-vac bans out there, some old false positives thanks to early versions of x-fire, and a number of other oddities. I have a friend who didn't hack, but he used x-fire, now he's vac banned on all non-source servers that are VAC enabled (IE HL1 based servers). But he can play on source. Ultimately though, it's a nice plugin.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    devicenull
    Veteran Member
    Join Date: Mar 2004
    Location: CT
    Old 11-25-2008 , 19:58   Re: VAC Status Checker
    Reply With Quote #4

    Quote:
    Originally Posted by FlyingMongoose View Post
    The problem with this is, there are some odd half-vac bans out there, some old false positives thanks to early versions of x-fire, and a number of other oddities. I have a friend who didn't hack, but he used x-fire, now he's vac banned on all non-source servers that are VAC enabled (IE HL1 based servers). But he can play on source. Ultimately though, it's a nice plugin.
    Valve reversed these bans, just like they did for HLSS and Wine.
    __________________
    Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
    devicenull is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 11-25-2008 , 22:58   Re: VAC Status Checker
    Reply With Quote #5

    I wish that were the case for my friend, they never reversed him. And he did contact support. Their immediate response: "VAC IS NEVER WRONG" (in all caps just like that)
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    tcviper
    BANNED
    Join Date: Oct 2005
    Location: Netherlands
    Old 11-26-2008 , 04:18   Re: VAC Status Checker
    Reply With Quote #6

    Thought I love what you wrote this plugin can be dangerous as it wasnt supposed to be doing this across engines. If people do something wrong in one engine it affects all games under that engine and not the others. I personally think putting this on servers would be a bad idea.
    tcviper is offline
    Send a message via MSN to tcviper
    jack_wade
    SourceMod Donor
    Join Date: Nov 2008
    Old 11-26-2008 , 14:23   Re: VAC Status Checker
    Reply With Quote #7

    Here comes the spanish translation ;)

    Code:
    "Phrases"
    {
        "Kicked"
        {
            "es"        "Has sido kickeado debido a una violación de VAC anterior."
        }
        "Banned"
        {
            "es"        "Has sido baneado debido a una violación de VAC anterior."
        }
        "Banned_Server"
        {
            "#format"    "{1:s}"
            "es"        "{1} baneado debido a una violación de VAC anterior."
        }
    }

    Last edited by jack_wade; 11-26-2008 at 14:27.
    jack_wade is offline
    StevoTVR
    Senior Member
    Join Date: Oct 2008
    Old 11-26-2008 , 15:46   Re: VAC Status Checker
    Reply With Quote #8

    Quote:
    Originally Posted by tcviper View Post
    Thought I love what you wrote this plugin can be dangerous as it wasnt supposed to be doing this across engines. If people do something wrong in one engine it affects all games under that engine and not the others. I personally think putting this on servers would be a bad idea.
    I don't see why. Some server admins would prefer not to separate hackers based on engine. To them, a hacker is a hacker.
    StevoTVR is offline
    tcviper
    BANNED
    Join Date: Oct 2005
    Location: Netherlands
    Old 11-26-2008 , 17:29   Re: VAC Status Checker
    Reply With Quote #9

    thats why we have steambans.com
    tcviper is offline
    Send a message via MSN to tcviper
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 11-28-2008 , 20:22   Re: VAC Status Checker
    Reply With Quote #10

    so if set to "2" it only logs players that have a prior cheat infraction?
    __________________

    dirtyjob is offline
    Send a message via AIM to dirtyjob
    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 14:32.


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