Since [TF2] Free2BeRenamed is no longer functional because SteamTools is outdated and SteamWorks has replaced its place, i decided to make my own from scratch based on SteamWorks.
[TF2] Free2BeRenamed: Reloaded
This plugin is made to distinguish if you're a Free-To-Play or a Premium user on the Team Fortress 2 server.
Config file "free2berenamed_reloaded" will be created in /tf/cfg/sourcemod/ directory once loaded.
tf_f2p_prefix - Set the prefix for the F2P User. Default: [F2P]
tf_f2p_suffix - Set the suffix for the F2P User. Default: Value not set
tf_p2p_prefix - Set the prefix for the Premium user. Default: [P2P]
tf_p2p_suffix - Set the suffix for the Premium user. Default: Value not set
tf_f2br_kick - Should the player be kicked upon joining when they're Premium/F2P?. Default: 0
(No one will be kicked.)
> 1 - Free-To-Play.
> 2 - Premium.
tf_f2br_kicktype - How should the player be kicked? Default: 1
(As soon you connect.)
> 1 - As soon you connect.
> 2 - When you get into the server.
tf_f2br_kickreason - The kick reason when the user connects. Default: Place a Reason Here
Available Global Natives
1. SteamWorks Extension.
2. SteamWorks Include
Native : TF2_IsPlayerPremium
Description: This native returns true/false if the player is premium or not.
// More to come later on //
to compile the plugin. Included in the zip file you download. (Updated to new syntax aswell.)
3. Free2BeRenamed: Reloaded Include
to compile the plugin. Included in the zip you download. (Obviously)
Update to use OnClientSettingsChanged over hooking event player_changename. Done
Add natives together with a include such as IsPlayerF2P or IsPlayerPremium you can use outside for other plugins. Done
Add option if you want the player to be kicked if they're a premium/free-to-play user. Done
GitHub Repository | Latest Release
+ Added convar hooks so the string is actively changed rather than nothing happening.
+ Added Strings to be loaded on OnConfigsExecuted forward to make sure it actually loads if it loads delayed.
+ Separated the check between F2P and P2P so it will now check properly.
+ Fixed the prefix sometimes not appearing at all.
+ Fixed where the prefix would still be forced upon the client even though the prefixed was emptied.
+ Updated to use OnClientSettingsChanged over Event player_changename.
+ Updated to require f2br_reloaded include to Compile.
+ Add global native TF2_IsPlayerPremium for your plugins to use.
+ Added ConVar tf_f2br_kick - Should the player be kicked for joining when they're Premium/F2P?.
+ Added ConVar tf_f2br_kicktype - How should the player be kicked?.
+ Added ConVar tf_f2br_kickreason - The reason why they wer kicked.
+ Initial Release.