Description
NOTES: THIS VERSION OF THIS PLUGIN IS NO LONGER SUPPORTED. AS THE NAME IMPLIES, IT IS MADE FOR SOURCE 2009 GAMES (I.E. NOT CS:GO OR INSURGENCY). THE METHODOLOGY USED IN THIS VERSION WAS MESSY (HENCE THE "CONTAINS" AND "EQUALS" CFG FILE FIXES FOR BUGS). CONTACT ME IF YOU HAVE QUESTIONS OR ARE INTERESTED TO KNOW MORE ABOUT THE CURRENT VERSION OF THE PLUGIN.
This is my complete remake of plugins like Simple Chat Colors and Custom Chat Colors, only I started from scratch and didnt use a bit of their code. I have added a LOT of features...namely that all players with the configurable flag can set thier own tags and colors for tags,name, and chat.
In addition, since player can set any kind of tag (within a set length), I have made a cfg file (togschattags_blocked.cfg), each line of which will add phrases that are blocked (e.g. "admin). Any tags involving with these phrases inside will be blocked. Additionally, for troublesome users, I have implemented the ability to have admins not only remove their tags, but restrict them. This ability is accessible to admins via a configurable admin flag. Additionally, the entire plugin can be unload for the current map for any admins with another configurable admin flag.
All in all, I made this plugin after getting tired of players CONSTANTLY asking to have their personal tags changed.
Notes:
This plugin has a built in chat logger that can be enabled/disabled. Enabling will require you to have a subfolder in logs for chat logs (see Installation notes). This will log everything entered through chat, including silent triggers and admin chat commands (even if the admin chat commands are through console).
This plugin is entirely compatible with SCC/CCC, and if no tags are set on a player, will use the SCC/CCC setups, else will override them.
If player sets a tag while they have access, the tag will disappear as soon as they no longer have access.
Plugin comes with a full list of colors (which I think I borrowed from Supporter Colors), in addition to supporting any custom hex code colors.
Fully capable of late-loading (i.e. you can load the plugin mid-map and it will function fine).
All pre-defined colors accessible via the tags menu can be configured via config file (togschattags_colors.cfg).
Includes a funny response for any players trying to use chat while gagged (try it to see, I made it for a few of my plugins).
Full admin menu incorporation.
Full menu incorporated into client prefs menu (accessible via typing !settings or !tags)
"Enable/Disable Tag" toggles the entire tag settings on/off. The just remove the tag itself, set a blank one (i.e. type "!settag", with nothing following)
If enabled, plugin will auto-convert uppercase commands to lowercase commands, so they work. To be exact, it checks if the text starts with ! or /, and if so, checks if the second character is uppercase. If it is, it blocks the command, then resends it as all lower case.
Admin see-all is incorporated into the plugin as well. If enabled, admins with the set flag will see chat that would normally be hidden from them.
There are two config files: togschattags_ignore_equal and togschattags_ignore_contains, each line of which are used for exceptions of when the plugin should not convert chat. Anything in "togschattags_ignore_equal" is looking for EXACT phrases (e.g. if you put "rtv" as a line in it, and someone types "rtv everyone!", it will NOT recognise that as a phrase to ignore, but if they simply type "rtv", it will process it as if the plugin wasnt running). The "togschattags_ignore_contains" is looking for text that CONTAINS the phrases (e.g. if you put "bet ct" as a line, and a player types "bet ct all", it WILL recognise that as a phrase to ignore, and will process it as if the plugin wasnt running).
CVars
Adjust these in the auto-generated cfg located in cstrike/cfg/sourcemod/togschattags.cfg
tct_accessflag - Admin flag required to access chat tags.
tct_adminflag - Admin flag required to access most admin functions of the plugin.
tct_unloadflag - Admin flag required to unload the plugin for the current map.
tct_seeall - Enable admin see-all for admins with flag designated by tct_seeallflag.
tct_seeallflag - Flag required for admin see-all, if enabled.
tct_triggercase - Convert chat triggers to lowercase if theyre uppercase.
tct_log - Enable chat logger. This will log all chat, including silent triggers and admin chat. If admin chat is entered through chat, it will log the full string (e.g. "AdminName: /csay This is a csay message"). If it is entered through console, it will remove the command ("AdminName (csay): This is a csay message"). IF THIS IS ENABLED, you must have a subfolder in your SM logs folder labeled "chatlogs" (i.e. addons/sourcemod/logs/chatlogger/). All logs are time stamped.
Admin Commands
sm_reloadtagcolors - Reloads color cfg file for tags.
sm_restricttag - Restrict player from setting their chat tags.
sm_unrestricttag - Unrestrict player from setting their chat tags.
sm_removetag - Removes a players tag setup.
sm_unloadtags - Unloads the entire plugin for the current map.
Player Commands
sm_tags - Opens TOGs Chat Tags Menu.
sm_settag - Change tag text.
sm_tagcolor - Change tag color to a specified hexadecimal value.
sm_namecolor - Change name color to a specified hexadecimal value.
sm_chatcolor - Change chat color to a specified hexadecimal value.
sm_checktag - Check tag settings of another player (prints to console).
sm_settings - Open client prefs menu, which will include TOGs Chat Tags Menu.
Changelog
11/28/14 (v2.2)
Converted team names to read team name...was using CSS ones before.
Not released (v2.1)
Added spam blocker for chat. As such, routed all chat through plugin (besides commands returning Plugin_Continue).
06/21/14 (v2.0)
Added chat logger. Logs admin commands as well. Can be turned off via cvar. See installations notes.
06/16/14 (v1.7)
Added togschattags_ignore_equal and togschattags_ignore_contains. See description and usage above.
06/07/14 (v1.6)
Added Admin See-All options.
Added option to convert chat triggers to lowercase automatically (if uppercase), so they still work if typed while CAPS LOCK is on.
06/07/14 (v1.5)
Removed code that was suppose to make it CS:GO compatible, but doesnt.
06/06/14 (v1.4)
Removed argument requirement for !settag so you can add blank tags.
06/06/14 (v1.3)
Made it so that "Disable tag" doesnt just hide tag, but turns off everything. To disable a tag, just use !settag and make it blank.
06/02/14 (v1.2)
Added chat logging for HLSW and other rcon tools.
06/01/14 (v1.1)
Initial Release to AM
Installation
Install all .cfg files in addons/sourcemod/configs
Install .smx file in addons/sourcemod/plugins
Install .sp file in addons/sourcemod/scripting
If you wish to use the chat logging function of the plugin, you need to create a subfolder labeled "chatlogger" in your addons/sourcemod/logs/ folder.
Not required, but this is the source code if you were needing to edit the code
autoexecconfig.inc is only needed if you wish to compile the plugin after editing the code.
After running the plugin once, it will generate a cfg file to edit all cvars in (located in cfg/sourcemod/togschattags.cfg)
Your plugin seems to suppress all chat messages from appearing in HLSW. Everything that's not "say, say_team" is printed fine.
After removing your plugin all worked normally.
Your plugin seems to suppress all chat messages from appearing in HLSW. Everything that's not "say, say_team" is printed fine.
After removing your plugin all worked normally.
Hmmm...it was logging it before....ill add that in.
It is exactly what it would be in HLSW if you werent using the plugin, except that the team info isnt passed to HLSW, so I added it in parenthesis. (i.e. normally, the last <> would contain the team, and the line in HLSW would be colored according to team...instead, team is in parenthesis, and line is uncolored).
CCC never had an issue keeping the team info colored. Can't you just use the same method?
Edit: The chat tab of HLSW is still broken with your plugin.
I have no intentions of recoding it to use their method, tbh (not even sure what it is, but either way). And I thought you meant the regular console tab in HLSW, not chat tab. You can see all convo in the regular console tab. You're welcome to recode it to use their method though, else, you might just stick with CCC if it is that big of an issue for you.