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

[T2P] Advanced Free2Play Kicker/Replacer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
speziFanta
Junior Member
Join Date: Nov 2007
Plugin ID:
2442
Plugin Version:
0.0.9
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow Free2Play users but replace them by premium users in case the server gets full. (Quickplay support).
    Old 07-19-2011 , 11:07   [T2P] Advanced Free2Play Kicker/Replacer
    Reply With Quote #1

    Goal
    Allow F2P users but block and kick (replace) them by premium users. Keep the server full but always allow premium users to join your server and replace a F2P user.
    In other words: F2P users will acted as a reserved slot for premium users.

    Description
    This plugin will allow Free 2 Play users to join your server only until a certain defined server slot (default 22) and refuses them as soon as this slot limit is reached. If the limit is reached, as long as the server isn't 100% filled by premium users, every new joining premium user will kick the longest playing F2P user until there is no F2P user left to be kicked and the server fills up as normal. In case you are using Qickplay, Quickplay will be automatically disabled (sm_f2p_max - 2) and turned back on as soon as the player count drops to sm_f2p_max - 4.

    In other words: as long as the server is not full, premium users may always join your server.

    Features
    - supports Quickplay
    - supports reserved slots.
    - whitelist F2P accounts via "BypassPremiumCheck" flag. Credits go to Asherkin.
    - F2P users get blocked not kicked, when the server is full. This way there will be no pop-up asking them to blacklist your server.
    - a cvar may disable this plugin restoring Quickplay settings. This is useful when allowing F2P users during night.

    Differences to other plugins:
    - Asherkin's Free2BeKicked: blocks all F2P users
    - Extendet version of Asherkin's Free2BeKicked: has a slot limit, but does not replace F2P users by preimum users. No quickplay consideration.

    ConVars

    sm_f2p_kicker
    Status of Free 2 Play Kicker. If set to 1 it'll be activated (default). 0 is off.

    sm_f2p_max
    Maximum available Free2Play slots before F2P users get blocked on join and replaced afterwards. Default 22.

    Install Instructions
    1. Install SteamTools
    2. Download the source code and place it into addons/sourcemod/scripting
    3. Compile it
    4. Copy the addons/sourcemod/scripting/compiled/sf_f2p_kicker.smx into your addons/sourcemod/plugins/ folder

    Notes
    Credits to Free2BeKicked which this is based on and the #sourcemod IRC

    Changelog
    2011-27-29 (v.0.0.9)
    - added sv_tags handle to disable SM notifications
    - added hock to prevent f2p_max cvar to go over max available public slots
    - removed f2p_max cvar limit
    - fixed quotes on log message
    2011-07-22 (v.0.0.8)
    - added Asherkin to authors
    - added 32 slot support
    - removed hard-coded stuff
    - removed second OnClientPostAdminCheck() check
    - removed debugging infos and cleaned up code
    2011-07-19 (v0.0.7)
    - public release after two weeks of testing
    Attached Files
    File Type: sp Get Plugin or Get Source (sf_f2p_kicker.sp - 592 views - 5.3 KB)

    Last edited by speziFanta; 07-29-2011 at 11:11. Reason: updated to 0.0.9
    speziFanta is offline
     



    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:12.


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