Raised This Month: $63 Target: $400
 15% 

[Source 2009 Games] TOGs Chat Tags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Plugin ID:
4227
Plugin Version:
2.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives players with designated flag the ability to set their own custom tags, logs chat, and more
    Unapprover:
    Reason for Unapproving:
    No longer supported
    Old 06-02-2014 , 02:07   [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #1

    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


    Admin Commands


    Player Commands


    Changelog


    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)

    To Do:
    • Nothing at the moment...

    Servers using this plugin
    >>> Click here to check out my approved plugins <<<
    Attached Files
    File Type: cfg togschattags_blocked.cfg (24 Bytes, 564 views)
    File Type: cfg togschattags_colors.cfg (8.7 KB, 633 views)
    File Type: inc autoexecconfig.inc (16.3 KB, 379 views)
    File Type: cfg togschattags_ignore_contains.cfg (13 Bytes, 523 views)
    File Type: cfg togschattags_ignore_equal.cfg (16 Bytes, 519 views)
    File Type: smx togschattags.smx (43.7 KB, 450 views)
    File Type: sp Get Plugin or Get Source (togschattags.sp - 461 views - 86.2 KB)

    Last edited by ThatOneGuy; 01-20-2017 at 07:55. Reason: Added red disclaimer to top
    ThatOneGuy is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-02-2014 , 02:25   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #2

    -reserved-
    ThatOneGuy is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 06-02-2014 , 05:44   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #3

    Very cool, thanks for sharing! I'll probably replace my plugin with the one you wrote.

    Edit: Please upload the rest of the sourcecode by attaching autoexecconfig.inc as you can't compile the plugin without it.
    __________________

    Last edited by Sreaper; 06-02-2014 at 05:59.
    Sreaper is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-02-2014 , 13:35   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #4

    Quote:
    Originally Posted by Sreaper View Post
    Very cool, thanks for sharing! I'll probably replace my plugin with the one you wrote.

    Edit: Please upload the rest of the sourcecode by attaching autoexecconfig.inc as you can't compile the plugin without it.
    Oops...I usually have a comment for the download for it right next to the include.

    Code:
    #include <autoexecconfig>	//https://github.com/Impact123/AutoExecConfig
    But I'll upload it as well.

    Last edited by ThatOneGuy; 06-02-2014 at 13:43.
    ThatOneGuy is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 06-02-2014 , 19:13   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #5

    Quote:
    Originally Posted by ThatOneGuy View Post
    Oops...I usually have a comment for the download for it right next to the include.

    Code:
    #include <autoexecconfig>    //https://github.com/Impact123/AutoExecConfig
    But I'll upload it as well.
    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.
    __________________

    Last edited by Sreaper; 06-02-2014 at 19:19.
    Sreaper is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-02-2014 , 19:24   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #6

    Quote:
    Originally Posted by Sreaper View Post
    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.
    ThatOneGuy is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-02-2014 , 20:01   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #7

    Ok, so here is what I came up with:



    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).

    Uploading now.
    ThatOneGuy is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 06-02-2014 , 21:47   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #8

    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.
    __________________

    Last edited by Sreaper; 06-03-2014 at 00:42.
    Sreaper is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-03-2014 , 01:04   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #9

    Quote:
    Originally Posted by Sreaper View Post
    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.

    Last edited by ThatOneGuy; 06-03-2014 at 01:05.
    ThatOneGuy is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 06-03-2014 , 06:50   Re: [Source 2009 Games] TOGs Chat Tags
    Reply With Quote #10

    looks good
    __________________
    zipcore 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 16:52.


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