AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Hide Name v1.1.7 (Updated: 4/3/12) (https://forums.alliedmods.net/showthread.php?t=139760)

thetwistedpanda 10-04-2010 21:23

Hide Name v1.1.7 (Updated: 4/3/12)
 
3 Attachment(s)
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

Drixevel 10-05-2010 14:39

Re: [ANY] Hide Name
 
Nice plugin, i'll test on TF2 server in a bit.

GoD-Tony 10-06-2010 00:50

Re: [ANY] Hide Name
 
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. :)

AltPluzF4 10-31-2010 00:45

Re: [ANY] Hide Name
 
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.

thetwistedpanda 10-31-2010 00:55

Re: [ANY] Hide Name
 
Thanks.

thetwistedpanda 11-08-2010 22:11

Re: [ANY] Hide Name
 
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.

adrianman 11-09-2010 11:13

Re: [ANY] Hide Name
 
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...

thetwistedpanda 11-09-2010 11:22

Re: [ANY] Hide Name
 
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?

adrianman 11-09-2010 11:39

Re: [ANY] Hide Name
 
Left 4 Dead 2,also the hidename mode 2 sometimes still shows notifications on name changes

thetwistedpanda 11-09-2010 11:44

Re: [ANY] Hide Name
 
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.


All times are GMT -4. The time now is 02:31.

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