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

[TF2] Free2BeKicked with Stats


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
2614
Plugin Version:
1.5.2
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Keeps exact stats on F2Player kicks
    Unapprover:
    Reason for Unapproving:
    Plugin unsupported, use plain Free2BeKicked instead
    Old 10-23-2011 , 02:28   [TF2] Free2BeKicked with Stats
    Reply With Quote #1

    [TF2] Free2BeKicked with Stats

    v1.5.2

    Description:
    Ever wanted to know exactly how many Free2Players you're kicking from your server? Now you can! This plugin logs to a file every time an F2Player is kicked, and every time an F2Player is allowed through via overrides. This is basically a rewrite of asherkin's original Free2BeKicked. The plugin will also log an exact tally of F2P's kicked and F2P's allowed in. It also allows you to change the message displayed when a player is kicked via a cvar.

    Provided it's enabled via cvar, all kicks and overrides passthroughs will be logged to /addons/sourcemod/logs/anti_f2p_stats.log. Here's an example of what an entry looks like:

    Code:
    L 10/23/2011 - 02:15:48: Player [GoR] Dr. McKay<STEAM_0:0:23071901> is F2P, and has been kicked.
    Cvars:
    • anti_f2p_stats_enable (1) - enables or disables F2Player kicking
    • anti_f2p_stats_log (1) - enables or disables logging of kicks and overrides to a file
    • anti_f2p_stats_message - specifies the message to be shown to players when kicked (defaults to "You need a Premium TF2 account to play on this server")
    • anti_f2p_stats_version - plugin version

    Plugin creates and loads /cfg/sourcemod/anti_f2p_stats.cfg

    Commands:
    • anti_f2p_stats - displays the number of kicks and bypasses (default flag is ADMFLAG_ROOT)

    Installation:
    Put anti_f2p_stats.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load anti_f2p_stats" into your console or rcon.

    Requirements:
    Like the original, this plugin requires SteamTools.

    Overrides:
    BypassPremiumCheck - Add this to your overrides to change the flag required to bypass the F2P check (defaults to ADMFLAG_ROOT)

    Auto Update:
    Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

    Changelog:
    • v1.5.0 (7/12/12)
      • Added ability to disable automatic updating
    • v1.4.0 (10/27/11)
      • The plugin no longer tries to check bots, which would fail with an error message
    • v1.3.0 (10/24/11)
      • Fixed an issue where the plugin would not be added to the Updater pool
    • v1.2.0 (10/23/11)
      • The plugin now uses the newer, better-supported Updater plugin
      • The plugin now logs the exact number of kicks and bypasses to an SQLite database (automatically created)
    • v1.1 (10/23/11)
      • The version cvar now has an "A" appended to it if autoupdate is functioning
    • v1.0 (10/23/11)
      • Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (anti_f2p_stats.sp - 130 views - 4.0 KB)
    File Type: smx anti_f2p_stats.smx (4.7 KB, 140 views)
    __________________

    Last edited by Dr. McKay; 10-06-2012 at 20:16.
    Dr. McKay is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-23-2011 , 14:08   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #2

    Updated. The version cvar now has an "A" appended to it if autoupdate is working.
    __________________
    Dr. McKay is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-23-2011 , 16:30   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #3

    You should also do the same thing here. I would install this plugin on my trade server.

    http://forums.alliedmods.net/showpos...94&postcount=5
    Drixevel is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-23-2011 , 16:31   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #4

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    You should also do the same thing here. I would install this plugin on my trade server.

    http://forums.alliedmods.net/showpos...94&postcount=5
    On it. I'm currently working on the actual "Stats" part of it, as in making it log to an SQLite database how many kicks and bypasses happen.
    __________________
    Dr. McKay is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-23-2011 , 16:35   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #5

    http://forums.alliedmods.net/showpos...03&postcount=7

    Drixevel is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-23-2011 , 17:43   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #6

    Updated. Now uses the new Updater, and logs an exact tally of kicks (see OP).
    __________________
    Dr. McKay is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 10-24-2011 , 11:43   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #7

    Works great! I can use this one now and it won't reset the server each time someone comes in! Love the idea of the logs and custom kick message too!
    Horsedick is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-24-2011 , 23:34   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #8

    Updated to 1.3.0. Fixed an issue where the plugin wouldn't be added to the Updater pool. If you are running Updater and you want to automatically update, simply execute "sm plugins reload anti_f2p_stats" followed by "anti_f2p_stats_forceupdate" in the console/rcon.
    __________________
    Dr. McKay is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-27-2011 , 22:55   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #9

    Updated to 1.4.0. The plugin no longer tries to check bots, which would fail with an error message.
    __________________
    Dr. McKay is offline
    Mr.Firefox
    Junior Member
    Join Date: Aug 2011
    Old 11-06-2011 , 14:27   Re: [TF2] Free2BeKicked with Stats
    Reply With Quote #10

    Very nice! there was another F2P kicker that broke.. this one works and is way better (Logging and stats! hell yeah!)

    Thank you Dr. McKay (love the name btw.. SG:A)
    Mr.Firefox 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 23:19.


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