Raised This Month: $105 Target: $400
 26% 

[TF2] Free2BeRenamed


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2404
Plugin Version:
2.0.0
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 "Free2Play" and "Premium" players
    Old 06-29-2011 , 03:10   [TF2] Free2BeRenamed
    Reply With Quote #1

    [TF2] Free2BeRenamed
    Version 2.0.0


    If you are having an issue with SteamTools, post in the SteamTools section.

    Description:
    This plugin adds tags to player's names to distinguish between "Free2Play" and "Premium" players.
    The plugin will also re-add the tags if they change their name while in the server.

    Commands:
    • None

    Cvars:
    • sm_free2rename_version
      • Plugin Version
    • sm_free_prefix
      • The string to add to the front of free player's names.
      • Default: "[F2P]"
    • sm_free_suffix
      • The string to add to the end of free player's names.
      • Default: ""
    • sm_premium_prefix
      • The string to add to the front of premium player's names.
      • Default: ""
    • sm_premium_suffix
      • The string to add to the end of premium player's names.
      • Default: ""

    Install Instructions:

    1. Install SteamTools
    2. Place Free2BeRenamed.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    • SteamTools only gets data on player's when they connect. For this reason, late-loading the extension will cause all players to read as premium until they reconnect.
    • Credits to asherkin's Free2BeKicked which this is based on.
    • Players who change their names while in-game will have the appropriate tags re-added 15 seconds later.
    • This plugin creates a config file located at cfg/sourcemod/Free2Rename.cfg


    Version History:
    • Pre-V2.0.0
      • Mucking about getting the rename event handling correct
    • V2.0.0
      • Initial release.
    Total downloads as prior to last edit: 9

    Plugin will not compile on the forums due to custom includes! Download the .smx or compile it yourself locally!
    Attached Files
    File Type: smx Free2BeRenamed.smx (4.6 KB, 3041 views)
    File Type: sp Get Plugin or Get Source (Free2BeRenamed.sp - 1591 views - 4.5 KB)
    __________________

    Last edited by DarthNinja; 03-02-2014 at 14:37.
    DarthNinja is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 06-29-2011 , 03:47   Re: [TF2] Free2BeRenamed
    Reply With Quote #2

    Good idea!
    edit:
    Code:
    CreateConVar("sm_free2rename_version", PLUGIN_VERSION, "Free2BeMuted", FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    Shouldn't "Free2BeMuted" be "Free2BeRenamed"?
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de

    Last edited by Sillium; 06-29-2011 at 04:09.
    Sillium is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 06-29-2011 , 07:55   Re: [TF2] Free2BeRenamed
    Reply With Quote #3

    Quote:
    Originally Posted by Sillium View Post
    Shouldn't "Free2BeMuted" be "Free2BeRenamed"?
    Er, yes.
    That was left from something else. It's fixed now.
    __________________
    DarthNinja is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 06-29-2011 , 07:59   Re: [TF2] Free2BeRenamed
    Reply With Quote #4

    Quote:
    Originally Posted by DarthNinja View Post
    Er, yes.
    That was left from something else. It's fixed now.
    hmmm i smell a f2p player muter plugin coming..
    napalm00 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 06-29-2011 , 19:04   Re: [TF2] Free2BeRenamed
    Reply With Quote #5

    Quote:
    Originally Posted by napalm00 View Post
    hmmm i smell a f2p player muter plugin coming..
    It's already done, with several other features as well, but I'm not sure I want to release it.
    __________________
    DarthNinja is offline
    Swixel
    Senior Member
    Join Date: Jul 2010
    Location: Sydney, Australia
    Old 06-29-2011 , 20:04   Re: [TF2] Free2BeRenamed
    Reply With Quote #6

    While I can see the merit in restricting their access, and possibly even muting them, I'm not sure I agree with tagging them with a scarlet letter.
    __________________
    Quote:
    Originally Posted by asherkin View Post
    Configure your servers properly and stop blaming random things.
    Swixel is offline
    B!PP
    Member
    Join Date: Sep 2009
    Old 06-30-2011 , 15:10   Re: [TF2] Free2BeRenamed
    Reply With Quote #7

    Dude <3 thanks a lot
    B!PP is offline
    B!PP
    Member
    Join Date: Sep 2009
    Old 07-02-2011 , 10:53   Re: [TF2] Free2BeRenamed
    Reply With Quote #8

    Mhh. Since the last update I don't have any suffix anymore. Does anyone has the same problem ?
    B!PP is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 07-02-2011 , 19:28   Re: [TF2] Free2BeRenamed
    Reply With Quote #9

    Is the cvar set correctly, and is your name short enough?
    __________________
    DarthNinja is offline
    Alucardbsm
    New Member
    Join Date: Jul 2011
    Old 07-03-2011 , 01:02   Re: [TF2] Free2BeRenamed
    Reply With Quote #10

    I've been using this but I seem to have a problem. I can manually change sm_free_prefix to |, but it always resets to [F2P] after a map change, even with the cvar change in server.cfg and autoexec.cfg. I even changed the sourcecode to be default | instead and it still gives me [F2P]. Any idea what's going on here?
    Alucardbsm 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 19:55.


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