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

[Any] Veterans Only (with Steam Group Exclusion, 2021-09-29)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
typowritter
Junior Member
Join Date: Sep 2021
Plugin ID:
7910
Plugin Version:
v2.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    "Veterans Only" (or simply "veterans") is a Plugin for SourceMod to restrict access of players based on their playtime in a specific game
    Old 01-05-2022 , 11:46   [Any] Veterans Only (with Steam Group Exclusion, 2021-09-29)
    Reply With Quote #1

    Veterans Only

    (with Steam Group Exclusion support)

    v2.0

    Brief:

    This plugin is a fork of https://forums.alliedmods.net/showthread.php?t=255871, adding the function of excluding members in the specified steam group (i.e. if a player is the member of your steam group then they can join the game despite not having enough playtime.), also coming with other bug fixes.
    • Kick players based on their TF2 or CSGO prime status
    • Kick players based on their Playtime
    • Kick players based on their playtime minus their last 2 weeks activities: Useful when dealing with those players that leave their game open for some days to gain some playtime
    • Banning players: Instead of kicking players, you can ban them for a short time. Very useful to prevent an attack against your server
    • Check against another game: It is possible to let the players join to your CSGO server if they are already experienced in CSS (or any other Steam game)
    • Exclude all privileged users or only ones with reserved slot
    • Exclude CSGO and TF2 prime users
    • [New] Exclude steam group members: Players in your group can automatically pass the check, even if they don't have sufficient playtime.

    CVars:
    • sm_veterans_version: Version of plugin
    • sm_veterans_enable: (0/1) Enabling and disabling of the plugin
    • sm_veterans_gameid: (0/99999999) Steam Store Id of the game you want to check against (default is CSGO, 730)
    • sm_veterans_kickfailure: (0/1) Kick the player if plugin failed to retrieve the information
    • sm_veterans_kickprivate: (0/1) Kick the player if his/her profile was private/friend only/not created
    • sm_veterans_timeout: (1/300) Maximum number of seconds that plugin should wait for a connection to respond
    • sm_veterans_bantime: (0/31536000) Duration of the ban (zero to disable - kick)
    • sm_veterans_mintotal: (0/600000) Minimum playtime of the user to accept (in minutes, zero to disable check)
    • sm_veterans_mintotalminuslastweek: (0/600000) Minimum playtime of the user minus his/her last 2 weeks activities to let him join the server (in minutes, zero to disable check)
    • sm_veterans_cachetime: (0/31536000) Number of seconds we should wait before requesting a duplicate query. Happens only when user's playtime is less than minimum required
    • sm_veterans_excludereservedslots: (0/1) Excludes players that have a reserved slot from punishment
    • sm_veterans_excludeprivileged: (0/1) Excludes privileged players from punishment
    • sm_veterans_excludeprimes: (0/1) Excludes prime players from punishment
    • sm_veterans_kickf2p: (0/1) Kicks non-prime (F2P) players
    • [New] sm_veterans_excludegroupmember: (0/1) Should we exclude players that are members of our Steam group? (default: 0)
    • [New] sm_veterans_groupid: Steam Group ID (same as your sv_steamgroup)

    Commands:
    • sm_veterans_exclude: Adds one or more steam id to the exclusion list
    • sm_veterans_include: Removes one or more steam id from the exclusion list
    • sm_veterans_clear: Forcefully clears the player playtime cache mid-game

    Changelog:
    • v2.0 - 2021-09-29: New feature added; Fixed issue that whitelist does not working; Adding support for the query result caching of multiple server instances

    Dependencies:
    How to install:
    • Download the latest version of the plugin below or from the following link: [Github - veterans' Releases]
    • Extract the contents to addons/sourcemod
    • Change "sm_veterans_gameid" and "sm_veterans_groupid" to your game's Steam Store ID and your Steam Group ID, respectively

    Note:
    • If you want to ultilize the Steam Group functionality, you need to host the PHP query service on yourself, see Github - PHP Hosting. This is because the default query service provided by DarkSoroush uses an older version of the PHP code, which doesn't support group member querying. We are planning to rewrite the query entirely based on Steamworks to get rid of the PHP dependency.
    Attached Files
    File Type: xz veterans_v2.0.tar.xz (16.2 KB, 99 views)

    Last edited by typowritter; 01-05-2022 at 11:49.
    typowritter is offline
    Reply



    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 10:44.


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