View Single Post
Author Message
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-24-2017 , 07:43   [CS:S/CS:GO] Chat/Scoreboard Tag Menu
Reply With Quote #1

Chat/Scoreboard Tag Menu
Version: 1.6.0 SCP/CP



Note:

Hi, I saw some other plugins on the forum like this but they weren't what some people want.
So I wrote this plugin from Original Idea By trzmielu.
Also a special thanks to Mayor Gamer for his Set Tag plugin for config file and comments.


Description:

This plugin creates a tag menu that loaded from a config file located in configs/tagmenu.cfg.
Which makes players able to choose their scoreboard and chat tag from the menu and save it for them by SteamID (clientprefs).


Required:

SourceMod 1.7 or higher
MultiColors
for chat colors (Just needed for compile)
Simple Chat Processor Redux OR Chat Processor
(Included in attachments - Optional, for chat tag usage)


ConVars:

sm_tagmenu_enable "1" - "Enable / Disable tag menu"
sm_tagmenu_antispam "3" - "Max chat messages for flood detection (0 = Disabled)" - (Removed In 1.6.0)
sm_tagmenu_antispam_time "2.0" - "The time in seconds to -1 every client spam value" - (Removed In 1.6.0)


Commands:

sm_tag | !tag - "Opens tag menu"
sm_tags | !tags - "Opens tag menu"
sm_tagmenu | !tagmenu - "Opens tag menu"
sm_reloadtags - "Reloads tags from config file (Admin flag generic)"


Config:

Here is an example of config file so you can add up to 100 tags in file:
PHP Code:
"TagMenu"        // Main key. Don't change it.
{
    
"1"        // Indexes. They must be in order from 1 and on. Maximum is 100.
    
{
        
"tag"                "[Pro-Player]"        // "tag" is identifier. Don't change it. Change the next string like "[Pro-Player]".
        
"flag"                "b"                 // "flag" is identifier. Don't change it. Set a flag for tag access (empty = everyone)
        
"steamid"            "STEAM_XX"            // "steamid" is identifier. Only if "flag" was empty plugin uses this. Make tag special for a steamid only.
        
"tag_color"            "{green}"            // "tag_color" is identifier. Set client chat tag color. (Default is "{default}")
        
"name_color"        "{teamcolor}"        // "name_color" is identifier. Set client chat name color. (Default is "{teamcolor}")
        
"text_color"        "{default}"            // "text_color" is identifier. Set client chat text color. (Default is "{default}")
        
"mode"                "both"                // "mode" is identifier. Set tag mode (valid values are: "both" - "scoreboard" - "chat", Default is "both")
    
}
    
"2"
    
{
        
"tag"                "[Noob]"
        "flag"                ""
        "tag_color"            "{green}"
        "name_color"        "{teamcolor}"
        "text_color"        "{purple}"
        "mode"                "chat"
    
}
    
"3"
    
{
        
"tag"                "[Expert]"
        "flag"                "a"
        "mode"                "scoreboard"
    
}
    
"4"
    
{
        
"tag"                "[Owner]"
        "steamid"            "STEAM_0:1:123456789"
        "mode"                "both"
    
}

Note: Chat colors are supported with MultiColors.

Note 2: I highly recommend you to use the newest version with scp support because the old version may not compatible with other plugins.

Note 3: If you are upgrading the plugin please replace all of the files (except config file) and restart your server. (Some changes in translations made)


Change Log:


1.2.0 - Initial release

1.2.1 - Fixed chat colors (Plugin now uses Multi Colors)

1.2.2 - Fixed printing quotes with player chat

1.3.0 - Fixed chat tag bugs & menu empty item

1.3.1 - Fixed another known bug and added some chat messages.

1.3.2 - Fixed scoreboard tag problem

1.4.0 - Added steam id support, Added translation file (Need someone to translate from English) & Fixed some bugs

1.5.0 - Fixed some chat bugs, Fixed translation file and added users languages (Thanks to all translators), Added chat anti-spam feature (with new cvars), Added gag & silence check for chat, Fixed empty chat messages, Added a cfg file (cfg/sourcemod/TagMenu.cfg), Some code improvements

1.6.0 - Changed the chat handler from plugin to SCP (Simple Chat Processor) or CP (Chat Processor). Use which you prefer. Now all chat bugs are fixed. Removed anti-spam cvars and cfg file because not needed anymore.
Attached Files
File Type: zip TagMenu 1.5.0.zip (43.2 KB, 2920 views)
File Type: zip TagMenu 1.6.0 + SCP 2.0.2.zip (62.2 KB, 3662 views)
File Type: zip Tag Menu 1.6.0 - Chat Processor.zip (178.0 KB, 4878 views)

Last edited by WatchDogs; 12-27-2018 at 13:21.
WatchDogs is offline