AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S/CS:GO] Chat/Scoreboard Tag Menu (https://forums.alliedmods.net/showthread.php?t=299733)

WatchDogs 07-24-2017 07:43

[CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
3 Attachment(s)
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.

vortex. 07-24-2017 07:48

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Thanks for sharing dude :)

And I have an idea for this plugin. You can add SteamID. If dont put flag (so flag is empty), tags working with SteamID.

WatchDogs 07-24-2017 07:56

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Thanks ;),

Good idea, Working on it :D

Wacci 07-24-2017 10:35

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
I do not want to say it does not work.
But unfortunately, I am now problematic.


Can you tell me what's the problem ?

https://pastebin.com/5ttRc8qy
http://roadtosilver.hu/csgo/tag.png

vortex. 07-24-2017 11:16

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Umm, I think; You can not color codes in chat. Try include colors like this: {green} :)

Wacci 07-24-2017 11:29

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Did you watch my pastebin link ?

Sasuke used [Admin] Tag with green on this picture, but it didn't work.

WatchDogs 07-24-2017 11:38

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Thanks for reporting and testing.

Fixed the problems, It was because of More Colors only supports 2009 source games so I didn't read that before.

Now it's fixed in update: 1.2.1

vortex. 07-24-2017 11:42

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Quote:

Originally Posted by Wacci (Post 2537401)
Did you watch my pastebin link ?

Sasuke used [Admin] Tag with green on this picture, but it didn't work.

Sorry, I didnt see :lol:

Wacci 07-24-2017 12:11

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
It's better previous version. (Colors working)

But still one more blank option in menu.
{team} word in chat, and quotations everywhere.

http://roadtosilver.hu/csgo/tag2.png

WatchDogs 07-24-2017 12:37

Re: [CS:S/CS:GO] Chat/Scoreboard Tag Menu
 
Yes you are right, Sorry I did some mistakes in chat tag.


Updated to 1.3.0 | Fixed chat bugs and colors


EDIT: Now download the latest version I also fixed the empty item.


All times are GMT -4. The time now is 12:44.

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