AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Source 2009] Custom Chat Colors Menu (v2.2 - 1/27/14) (https://forums.alliedmods.net/showthread.php?t=199233)

ReFlexPoison 10-25-2012 19:03

[Source 2009] Custom Chat Colors Menu (v2.2 - 1/27/14)
 
37 Attachment(s)
Custom Chat Colors Menu

Dependencies:
Description:
Players are granted the ability to change their tag, name and chat colors through simple figured menus. Custom player settings are saved through MySQL or SQLite databases. To compile locally you will need Simple Chat Processor and Custom Chat Colors. To change admin command access, use admin_overrides.cfg (See Overrides section below). The original custom-chatcolors.cfg will not be changed, however player's colors will be overridden by any values loaded from the MySQL or SQLite database(s).
Control Variables:
  • sm_cccm_enabled (default: 7) Enable/Disable the plugin (Add up the numbers to choose) 0 = Disabled 1 = Tag 2 = Name 4 = Chat
  • sm_cccm_hidetags (default: 1) Enable/Disable hiding of chat tags 0 = Disabled 1 = Enabled

Commands:
Command access configurable through admin overrides
  • sm_ccc (Generic Admin) - Open Chat Colors Menu
  • sm_reload_cccm (Root Admin) - Reloads Custom Chat Colors Menu config
  • sm_tagcolor (Root Admin) - Change tag color to a specified hexadecimal value
  • sm_resettag (Generic Admin) - Reset tag color to default
  • sm_namecolor (Root Admin) - Change name color to a specified hexadecimal value
  • sm_resetname (Generic Admin) - Reset name color to default
  • sm_chatcolor (Root Admin) - Change chat color to a specified hexadecimal value
  • sm_resetchat (Generic Admin) - Reset chat color to default[/INDENT]

Command Overrides:
  • sm_ccc_tag (Generic Admin) - Admin flag to change tag colors
  • sm_ccc_name (Generic Admin) - Admin flag to change name colors
  • sm_ccc_chat (Generic Admin) - Admin flag to change chat colors
  • sm_ccc_hidetags (Generic Admin) - Required flag to hide chat tags

Configurations:
Code:

"CCC Menu Colors"
{
        "1" // Color Index
        {
                "name"                "Red"                // Color name
                "hex"                "#FF0000"        // Color hexadecimal value
                "flags"                "abo"                // Required admin flags for access (Leave blank if none)
        }
        ...
}

Databases:
Code:

"cccm"
{
        "driver"                "mysql"
        "host"                        "localhost"
        "database"                "cccm"
        "user"                        "username"
        "pass"                        "password"
}

Installation:
1) Add the files included in this post to their folders relative to sourcemod/addons
  • custom-chatcolors-menu.smx to plugins
  • custom-chatcolors-menu.phrases.txt to translations
  • custom-chatcolors-menu.cfg to configs
2) Add your saved variables database configuration into databases.cfg. See Databases above.

Version Log:
Spoiler


My Plugins
https://dl.dropboxusercontent.com/u/...tures/logo.png

ReFlexPoison 10-25-2012 19:05

Re: [Source 2009] Custom Chat Colors Menu
 
I've added the configuration file in the main post that offers all the colors found in morecolors.inc

Horsedick 10-25-2012 19:10

Re: [Source 2009] Custom Chat Colors Menu
 
interesting - any way to add a way to block or restrict certain colors from being used?

ReFlexPoison 10-25-2012 19:14

Re: [Source 2009] Custom Chat Colors Menu
 
Quote:

Originally Posted by Horsedick (Post 1825779)
interesting - any way to add a way to block or restrict certain colors from being used?

I'll do that sooner or later. I'm waiting for McKay to add some more natives to Custom Chat Colors as atm, changing a player's tag consists of Format after Format after Format. :cry:

serpentine 10-25-2012 19:30

Re: [Source 2009] Custom Chat Colors Menu
 
This requires McKay's chat colors plugin correct?

ReFlexPoison 10-25-2012 19:37

Re: [Source 2009] Custom Chat Colors Menu
 
Quote:

Originally Posted by serpentine (Post 1825793)
This requires McKay's chat colors plugin correct?

Correct, I'll add a list of dependencies.

Horsedick 10-25-2012 20:54

Re: [Source 2009] Custom Chat Colors Menu
 
Quote:

Originally Posted by ReFlexPoison (Post 1825783)
I'll do that sooner or later. I'm waiting for McKay to add some more natives to Custom Chat Colors as atm, changing a player's tag consists of Format after Format after Format. :cry:

Yeah it may be something I could use in the future but right now without some way of doing restrictions on certain colors ie: not use Admin colors with VIP's having access - then I can't use it.

DontWannaName 10-26-2012 02:04

Re: [Source 2009] Custom Chat Colors Menu
 
This is useful. I like it.

Does it use client prefs? Is it added to the !settings menu of SM? Can you add a list of preset colors so they dont have to always use hexadecimal to make it more user friendly?

ReFlexPoison 10-26-2012 11:54

Re: [Source 2009] Custom Chat Colors Menu
 
Quote:

Originally Posted by DontWannaName (Post 1825939)
This is useful. I like it.

Does it use client prefs? Is it added to the !settings menu of SM? Can you add a list of preset colors so they dont have to always use hexadecimal to make it more user friendly?

I'll add another version with a simple color menu with specific hex values and yes it uses clientprefs.

artimedas 10-27-2012 03:12

Re: [Source 2009] Custom Chat Colors Menu
 
[SM] Native "GetEntProp" reported: Property "m_bIsCoaching" not found (entity 1/player)
[SM] Displaying call stack trace for plugin "cccm.smx":
[SM] [0] Line 439, C:\Users\Dillon\Desktop\Scripting\cccm.sp::Is ValidClient()
L 10/27/2012 - 10:09:32: [SM] [1] Line 74, C:\Users\Dillon\Desktop\Scripting\cccm.sp::On ClientPostAdminCheck()

not work in css


All times are GMT -4. The time now is 10:20.

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