Raised This Month: $ Target: $400
 0% 

[TF2] Free2BeRenamed: Reloaded


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Teamkiller324
Senior Member
Join Date: Feb 2014
Location: m_bTeamKiller
Plugin ID:
7511
Plugin Version:
1.1.2
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds tags to player's names to distinguish between "Free-To-Play" and "Premium" players
    Old 02-23-2021 , 15:37   [TF2] Free2BeRenamed: Reloaded
    Reply With Quote #1

    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
    __________________
    Steam - GitHub - Tk Libraries - Updater
    No private plugin requests.

    Last edited by Teamkiller324; 03-07-2021 at 11:15. Reason: 1.1.2 Bugfix.
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    Salamon75
    Junior Member
    Join Date: Feb 2018
    Location: UK
    Old 03-06-2021 , 07:18   Re: [TF2] Free2BeRenamed: Reloaded
    Reply With Quote #2

    Hi. Thanks for fixing this plugin. I have a small issue.
    I don't want the [P2P] to be displayed for premium players so I changed the convar to
    // Premium-To-Play Prefix
    // -
    // Default: "[P2P]"
    tf_p2p_prefix ""
    but the prefix still remained [P2P] even after restarting the server.
    Then I tried typing something else but the prefix is still [P2P]
    can you have a look what could be the issue.
    Salamon75 is offline
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: m_bTeamKiller
    Old 03-06-2021 , 12:06   Re: [TF2] Free2BeRenamed: Reloaded
    Reply With Quote #3

    Quote:
    Originally Posted by Salamon75 View Post
    Hi. Thanks for fixing this plugin. I have a small issue.
    I don't want the [P2P] to be displayed for premium players so I changed the convar to
    // Premium-To-Play Prefix
    // -
    // Default: "[P2P]"
    tf_p2p_prefix ""
    but the prefix still remained [P2P] even after restarting the server.
    Then I tried typing something else but the prefix is still [P2P]
    can you have a look what could be the issue.
    I'll look into that soon and see what's causing it.
    __________________
    Steam - GitHub - Tk Libraries - Updater
    No private plugin requests.
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    Salamon75
    Junior Member
    Join Date: Feb 2018
    Location: UK
    Old 03-07-2021 , 02:47   Re: [TF2] Free2BeRenamed: Reloaded
    Reply With Quote #4

    I just uploaded it and unfortunately is still showing [P2P]
    Deleted cfg then reconfigured then restatred the server and no change..
    Salamon75 is offline
    Reply


    Thread Tools
    Display Modes

    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 10:08.


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