GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 24 Lipca 2017 Share Napisano 24 Lipca 2017 Chat/Scoreboard Tag MenuVersion: 1.2.2 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 higherMultiColors for chat colors (Just needed for compile)ConVars:sm_tagmenu_enable "1" - "Enable / Disable tag menu"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) "tag_color" "{green}" // "tag_color" is identifier. Set client chat tag color. "name_color" "{team}" // "name_color" is identifier. Set client chat name color. "text_color" "{default}" // "text_color" is identifier. Set client chat text color. "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" "{team}" "text_color" "{purple}" "mode" "chat" } "3" { "tag" "[Expert]" "flag" "a" "mode" "scoreboard" }} Note: Chat colors are supported with MultiColors.Change Log:1.2.0 - Initial release1.2.1 - Fixed empty item in menu | Fixed chat colors (Plugin now uses Multi Colors)1.2.2 - Fixed printing quotes with player chat Attached Files Tag Menu 1.2.2.zip (36.5 KB) Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=299733&goto=newpost Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi