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

[Any] Veterans Only (v1.3, 2020-06-10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarkSoroush
Member
Join Date: Jan 2015
Plugin ID:
4496
Plugin Version:
1.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-21-2015 , 16:36   [Any] Veterans Only (v1.3, 2020-06-10)
    Reply With Quote #1

    Veterans Only
    (veterans)

    v1.3

    Introduction/Features:

    Sale after sale we have more cheaters in the servers and more accounts dedicated to cheating. And Valve's VAC system is not very helpful with its two weeks ban-waves strategy when it comes to cheap or F2P games. In these circumstances, if you have a community of experienced users who hate cheaters you can use this plugin to prevent joining of the inexperienced players including cheaters and players with new accounts.

    • 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
    Known bugs:
    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
    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
    :
    • v1.0 - 2015-01-22: Initial release
    • v1.1 - 2016-07-01: New CVAR to change the address of the PHP file handling the played time requests
    • v1.2 - 2020-06-10: Added support for excluding players and whitelisting + fixed some problems with caching of responses
    • v1.3 - 2020-06-10: Prime check for CSGO and TF2 servers
    Dependencies:

    How to install
    :
    • Download the latest version of the plugin ONLY from the following link: [Github - veterans' Releases]
    • Extract both "plugins" and "translations" folders to the addons/sourcemod path
    • Change "sm_veterans_gameid" value to your game's Steam Store ID
    Source:

    Source code of this plugin is available at the following address: [Github - veterans]

    Last edited by DarkSoroush; 06-09-2020 at 21:33.
    DarkSoroush is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-21-2015 , 18:30   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #2

    Anyone can just use Steam Achievement Manager to modify their playtime values.

    Last edited by Sreaper; 01-21-2015 at 18:33.
    Sreaper is offline
    DarkSoroush
    Member
    Join Date: Jan 2015
    Old 01-21-2015 , 18:33   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #3

    Thats the time saved on their client, not steam servers. you can't change your profile playtime.

    Last edited by DarkSoroush; 01-21-2015 at 18:33.
    DarkSoroush is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 01-21-2015 , 19:10   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #4

    Possible to get stuff like steam card level?
    __________________
    Chdata is offline
    Potato Uno
    Veteran Member
    Join Date: Jan 2014
    Location: Atlanta, Georgia
    Old 01-21-2015 , 19:28   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #5

    I think my MvM crew and one (for now, not all) MvM server is dying to have a plugin like this. Maybe.

    I agree with Chdata, be able to obtain the steam card level.

    Last edited by Potato Uno; 01-21-2015 at 19:31. Reason: Deleted stupid question
    Potato Uno is offline
    DarkSoroush
    Member
    Join Date: Jan 2015
    Old 01-21-2015 , 20:01   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #6

    It is possible to expand this plugin with the following options:
    1. Reject or accept based on Steam Community Level
    2. Reject or accept based on a specific Badge Level
    3. Reject or accept based on Steam Join Date
    4. Reject or accept based on Subscribed Groups
    5. Reject or accept based on Friends
    6. Reject or accept based on number of purchased games
    7. Reject or accept based on estimated value of account (price of items)
    8. Reject or accept based on total playtime in all games
    9. Reject or accept based on a specific achievement
    10. Reject or accept based on owning/wishlisting/following a specific game
    11. Reject or accept based on achievement unlocked ratio of a specific game
    12. Reject based on Community Ban
    13. Reject based on Trade Ban
    I may add some of this features to the plugin if enough people ask for them.

    Last edited by DarkSoroush; 01-21-2015 at 20:30. Reason: added more options
    DarkSoroush is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 01-21-2015 , 20:03   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #7

    @Subscribed groups - Can you differentiate between someone being in a group and someone being invited?

    I hear that's a problem or something.
    __________________
    Chdata is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-21-2015 , 20:06   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #8

    Quote:
    Originally Posted by DarkSoroush View Post
    It is possible to expand this plugin with the following options:
    1. Reject or accept based on Steam Community Level
    2. Reject or accept based on a specific Badge Level
    3. Reject or accept based on Steam Join Date
    4. Reject or accept based on Subscribed Groups
    5. Reject or accept based on Friends
    6. Reject or accept based on number of purchased games
    7. Reject or accept based on estimated value of account (price of items)
    8. Reject or accept based on total playtime in all games
    9. Reject based on Community Ban
    10. Reject based on Trade Ban
    I may add some of this features to the plugin if enough peoples ask for them.
    Yes, those would be great. I was going to have something like this written long ago but scrapped it due to SAM. I didn't know those times were different.
    Sreaper is offline
    DarkSoroush
    Member
    Join Date: Jan 2015
    Old 01-21-2015 , 20:20   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #9

    Quote:
    Originally Posted by Chdata View Post
    @Subscribed groups - Can you differentiate between someone being in a group and someone being invited?

    I hear that's a problem or something.
    hmm, whats the tricky part about that? I didn't heard anything regarding any issue related to group invites.

    Following is my steam profile, if you have any group that I don't and can invite me to, do that and let me check it. A invite only group would be better.
    http://steamcommunity.com/id/darkplayer

    Quote:
    I didn't know those times were different.
    Yep they are. I am still not sure if the playtimes in the tf2 special stat page is fake-able or not. But if they are also immune to editing, we can use them as well as a great feature. For example:

    - Most points by specific class
    - Most kills by specific class
    - Most damages by specific class
    - Longest life as specific class
    - Playtime as specific class

    Of cource these are limited to TF2.

    Last edited by DarkSoroush; 01-21-2015 at 20:26.
    DarkSoroush is offline
    DarkSoroush
    Member
    Join Date: Jan 2015
    Old 01-22-2015 , 01:31   Re: [Any] Veterans Only (v1.0, 2015-01-22)
    Reply With Quote #10

    About the groups:
    We are only able to detect if user, currently is in a specific group.
    We cant guess if user invited and accepted, or have a pending invite, etc.
    DarkSoroush 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 19:44.


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