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
Description
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.
ConVars
1. tf_f2p_prefix - Set the prefix for the F2P User. Default:
[F2P].
2. tf_f2p_suffix - Set the suffix for the F2P User. Default:
Value not set.
3. tf_p2p_prefix - Set the prefix for the Premium user. Default:
[P2P].
4. tf_p2p_suffix - Set the suffix for the Premium user. Default:
Value not set.
5. 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.
6. 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.
7. tf_f2br_kickreason - The kick reason when the user connects. Default:
Place a Reason Here.
Available Global Natives
Quote:
Native : TF2_IsPlayerPremium
Description: This native returns true/false if the player is premium or not.
// More to come later on //
|
Dependencies
1. SteamWorks Extension.
2. SteamWorks Include 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)
Plans
1. Update to use OnClientSettingsChanged over hooking event player_changename.
Done
2. Add natives together with a include such as IsPlayerF2P or IsPlayerPremium you can use outside for other plugins.
Done
3. Add option if you want the player to be kicked if they're a premium/free-to-play user.
Done
Changelog
Quote:
Version 1.1.2
+ 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.
Version 1.1.1
+ Fixed where the prefix would still be forced upon the client even though the prefixed was emptied.
Version 1.1.0
+ 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.
Version 1.0.0
+ Initial Release.
|
GitHub Repository | Latest Release
__________________