Raised This Month: $154 Target: $400
 38% 

Hide Name v1.1.7 (Updated: 4/3/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
1985
Plugin Version:
1.1.7
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    28 
    Plugin Description:
    Provides support for hiding name changes from chat for all players/specific players/gagged players, as well as reverting name changes for all players or only gagged players.
    Old 10-04-2010 , 21:23   Hide Name v1.1.7 (Updated: 4/3/12)
    Reply With Quote #1

    Description:
    • Notice: Tested only on CS:S ~ May work on TF2 / DoD:S / etc.
    • This plugin provides support for hiding name changes from in-game chat, and can target all players, players with a specific flag/override, or only players that have been gagged. In addition, it has the power to revert any name changes in-game (hidden, of course), or only revert name changes of players that have been gagged.
    ConVars:
    • sm_hidename_enabled: Enables/disables all features of the plugin.
    • sm_hidename_hide_all: If enabled, players will have their name changes hidden from chat, regardless of other settings provided by this plugin. (0 = Disabled, 1 = Enabled)
    • sm_hidename_revert_all: If enabled, players will be unable to change their name while in the server, regardless of other settings provided by this plugin. (0 = Disabled, 1 = Enabled)
    • sm_hidename_hide_gagged: If enabled, players that are currently gagged will have their name changes hidden from chat. (0 = Disabled, 1 = Enabled)
    • sm_hidename_revert_gagged: If enabled, players that are currently gagged will be unable to change their name while in the server. (0 = Disabled, 1 = Enabled)
    • sm_hidename_hide_flag: Players that possess this flag, or the hide_name_changes override, will have their name changes hidden from chat. ("" = Disabled)
    Commands:
    • sm_hidename <target> <0/1>: allows you to manually enable/disable name changes for targeted players.
    Installation:
    Spoiler
    Attached Files
    File Type: txt sm_hidename.phrases.txt (818 Bytes, 483 views)
    File Type: sp Get Plugin or Get Source (sm_hidename.sp - 605 views - 9.0 KB)
    File Type: smx sm_hidename.smx (7.0 KB, 341 views)
    __________________

    Last edited by thetwistedpanda; 04-03-2012 at 11:05.
    thetwistedpanda is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Old 10-05-2010 , 14:39   Re: [ANY] Hide Name
    Reply With Quote #2

    Nice plugin, i'll test on TF2 server in a bit.
    __________________
    Taking private requests: http://steamcommunity.com/id/Drixevel/
    Drixevel is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 10-06-2010 , 00:50   Re: [ANY] Hide Name
    Reply With Quote #3

    Thanks for this. The odd time we get players spamming name changes and this will definitely fix that problem.

    Always nice when plugins have the exact cvar settings I want as default.
    GoD-Tony is offline
    AltPluzF4
    Senior Member
    Join Date: Aug 2007
    Old 10-31-2010 , 00:45   Re: [ANY] Hide Name
    Reply With Quote #4

    I just happened to stumble on this, and wanted to check the source out of curiosity (already had something similar a while back.)

    Anyway, this doesn't really matter since all clients should be included for this, but you're not properly looping the players.

    PHP Code:
                for(new 1<= playersNumi++)
                {
                    if(
    IsClientInGame(i))
                    {
                        
    GetClientName(isUserNamesizeof(sUserName)); 
    playersNum is the amount of players it's being sent to. Their indexes are stored in the "const players[]" array.

    So that code should look more like:

    PHP Code:
                for(new 0playersNumi++)
                {
                    if(
    IsClientInGame(players[i]))
                    {
                        
    GetClientName(players[i], sUserNamesizeof(sUserName)); 
    Just thought you should know, to avoid running into potential problems.
    AltPluzF4 is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 10-31-2010 , 00:55   Re: [ANY] Hide Name
    Reply With Quote #5

    Thanks.
    __________________

    Last edited by thetwistedpanda; 11-08-2010 at 22:18.
    thetwistedpanda is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-08-2010 , 22:11   Re: [ANY] Hide Name
    Reply With Quote #6

    v1.1.0 Released! The plugin's code has been greatly optimized, as well as several cvar changes to provide greater control over the script. The sm_hidename plugin had it's printing cleaned up, as well as several other improvements. If you're using this plugin, it's hidely advised you delete your previous version (sm_hide_name.smx) as well as its corresponding configuration file within /cfg/sourcemod/ (sm_hidename.cfg) and restart your server.
    __________________
    thetwistedpanda is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 11-09-2010 , 11:13   Re: [ANY] Hide Name
    Reply With Quote #7

    can you also make a feature that upon name change it changes it back to original name silently? also the kicking part doesn't seem to work...
    adrianman is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-09-2010 , 11:22   Re: [ANY] Hide Name
    Reply With Quote #8

    I tested the kicking feature before uploading the update and it functioned fine from what I remember. The descriptions are not the best though. Basically every time you change your name, a counter increased, and decreases after x seconds. If that counter reaches the maximum, then it kicks, so basically for default values, 5 name changes in 5 seconds. If you still have issues with it I can look over the code again, but fairly certain it's working.

    As for the request, SourceMod has no control over name changes in Orange Box. The most we can do is scramble them for a split second or hide notifications. What mod are you trying this in?
    __________________

    Last edited by thetwistedpanda; 11-09-2010 at 11:37.
    thetwistedpanda is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 11-09-2010 , 11:39   Re: [ANY] Hide Name
    Reply With Quote #9

    Left 4 Dead 2,also the hidename mode 2 sometimes still shows notifications on name changes

    Last edited by adrianman; 11-09-2010 at 11:42.
    adrianman is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-09-2010 , 11:44   Re: [ANY] Hide Name
    Reply With Quote #10

    You can't manually change a player's name on Left 4 Dead 1/2 iirc, as it's tied to your Steam Profile, so can't help that one. As far as sm_hidename_mode 2, it will display name changes for anyone who doesn't have the specific flag. Going off of default values, anyone who doesn't have the "b" (not taking into consideration any other flags) will have their name changes hidden.
    __________________
    thetwistedpanda 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:17.


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