[Custom Chat Colors] Menu

Plugin-Module [Custom Chat Colors] Menu v2.2

No permission to download
Supported Games
CS: Source (v34), CS: Source (Steam/Orange Box)
This plugin is module of Custom Chat Colors plugin. It allows players to choose their desired name color, chat color, custom tag color using a menu. It also allows to hide custom tag.


487

488
489
490


Requirements :
Installation :
  • Download CCC_Menu.zip file attached to this post.
  • Extract the content of zip file and put into your server's cstrike folder.
  • Add the below code to cstrike/addons/sourcemod/configs/databases.cfg
    Code:
    "cccm"
    {
        "driver"          "default"
        "host"            "localhost"
        "database"        "cccm"
        "user"            "root"
        "pass"            ""
    }
    If you want to use mysql database. Then create cccm database in your MySql server & add below code in cstrike/addons/sourcemod/configs/databases.cfg
    Code:
    "cccm"
    {
        "driver"          "mysql"
        "host"            "mysql-hostname"      // Your mysql server url, use 127.0.0.1 or localhost in case of mysql server is on same host as your gameserver
        "database"        "cccm"                // Database name, if you want to use another name, make sure that database exist in mysql server
        "user"            "mysql-username"      // Username of your mysql server user
        "pass"            "mysql-password"      // Password of your mysql server user
    }
  • Restart the Server.
Configuration :

All the configuration of colors can be done in cstrike/addons/sourcemod/configs/custom-chatcolors-menu.cfg file. By default there are many colors are added.

This plugin supports HEX color codes. HEX color codes are hexadecimal color codes which represents a particular color. You can find the HEX code of each color on Google Colour Picker.
491
If you want to add more colors, just add the color like shown below in custom-chatcolors-menu.cfg configuration file. Make sure to maintain the serial numbers, don't duplicate serial numbers and colors.
Code:
"10"      // Serial number of the color configuration
{
          "flags"        "b"            // Admin flags to access this color, you can specify multiple flags (Default : "s") [Leave blank for no flags]
          "name"         "White"        // Name of the color in menu
          "hex"          "#ffffff"      // Hexadecimal color code of the color
}
Admin Commands :
Code:
!ccc                     -              Opens custom chat color menu to change name, tag or chat color.
!reload_cccm             -              Reloads the custom chat color menu configuration file.
!tagcolor                -              Sets custom tag color to specified Hexadecimal color code.
!resettag                -              Resets the tag color to default color.
!namecolor               -              Sets name color to specified Hexadecimal color code.
!resetname               -              Resets the name color to default color.
!chatcolor               -              Sets chat color to specified Hexadecimal color code.
!resetchat               -              Resets the chat color to default color.
Commands Usage :

CommandUsageExample
!ccc!ccc!ccc
!reload_cccm!reload_cccm!reload_cccm
!tagcolor!tagcolor <#hexcode>!tagcolor #fc03b1
!resettag!resettag!resettag
!namecolor!namecolor <#hexcode>!namecolor #fc03b1
!resetname!resetname!resetname
!chatcolor!chatcolor <#hexcode!chatcolor #fc03b1
!resetchat!resetchat!resetchat

CVARs :

cstrike/cfg/sourcemod/custom-chatcolors-menu.cfg

Code:
// Enable Custom Chat Colors Menu (Add up the numbers to choose)
// 0 = Disabled
// 1 = Tag
// 2 = Name
// 4 = Chat
// -
// Default: "7"
// Minimum: "0.000000"
// Maximum: "7.000000"
sm_cccm_enabled "7"

// Allow players to hide their chat tags
// 0 = Disabled
// 1 = Enabled
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_cccm_hidetags "1"
Credits :
  • ReFlexPoison
Author
Vertigo
Downloads
58
Views
3K
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Vertigo

Share this resource

Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock