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_maxMaximum available Free2Play slots before F2P users get blocked on join and replaced afterwards. Default 22.
Install Instructions
- Install SteamTools
- Download the source code and place it into addons/sourcemod/scripting
- Compile it
- 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