Raised This Month: $51 Target: $400
 12% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Simon.
Member
Join Date: Oct 2016
Location: Sweden
Old 11-09-2016 , 06:31   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1261

hmm this is wierd, i cant get it to work either, im not sure if i have done something wrong ;P
custom-chatcolors.cfg



admins_simple.ini


errorlog
__________________

Last edited by Simon.; 11-09-2016 at 06:32.
Simon. is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-10-2016 , 11:46   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1262

1. As noted (very prominently) in the first post, CS:GO doesn't support arbitrary colors
2. You need the CS:GO version of Simple Chat Processor. Unfortunately I don't know off-hand where to find it. I think it's somewhere in this thread.
__________________
Dr. McKay is offline
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Old 11-10-2016 , 12:42   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1263

Quote:
Originally Posted by Dr. McKay View Post
2. You need the CS:GO version of Simple Chat Processor. Unfortunately I don't know off-hand where to find it. I think it's somewhere in this thread.
https://forums.alliedmods.net/showpo...postcount=1047
__________________
xines is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-10-2016 , 12:46   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1264

Quote:
Originally Posted by xines View Post
That's a link to my Custom Chat Colors for csgo, which is what Simon. would need, also Simple Chat Processor is linked here: https://bitbucket.org/minimoney1/sim...-processor/src
Mitchell is offline
Cripix
Senior Member
Join Date: Sep 2016
Location: French, Bordeaux
Old 11-10-2016 , 14:58   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1265

Hi

I have an error with the command sm plugins list but the plugin works very well

Code:
L 11/10/2016 - 18:21:06: [SM] Exception reported: Fatal error creating dynamic native!
L 11/10/2016 - 18:21:06: [SM] Blaming: custom-chatcolors.smx
L 11/10/2016 - 18:21:06: [SM] Call stack trace:
L 11/10/2016 - 18:21:06: [SM]   [0] CreateNative
L 11/10/2016 - 18:21:06: [SM]   [1] Line 55, D:\Libraries\Documents\Repos\Public Plugins\scripting\custom-chatcolors.sp::AskPluginLoad2
L 11/10/2016 - 18:21:06: [SM] Failed to load plugin "custom-chatcolors.smx": unexpected error 23 in AskPluginLoad callback.
Code:
Errors:
custom-chatcolors.smx ([Source 2013] Custom Chat Colors): unexpected error 23 in AskPluginLoad callback

Thank you for your help
Cripix is offline
Simon.
Member
Join Date: Oct 2016
Location: Sweden
Old 11-11-2016 , 07:25   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1266

Quote:
Originally Posted by Mitchell View Post
That's a link to my Custom Chat Colors for csgo, which is what Simon. would need, also Simple Chat Processor is linked here: https://bitbucket.org/minimoney1/sim...-processor/src

Well, i allready have those plugins installed on my server and it still dosent work ;P

i have changed the color codes to {01} now for the csgo and i still get errors
__________________
Simon. is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-12-2016 , 06:45   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1267

Why one of all Keys with STEAMID in config wont work.
All Keys that parsed in config works, but one of them wont change tag.

im tried to use STEAM3 instead of STEAMID but nothing changed.

This key wont work.
PHP Code:
"STEAM_0:1:75017227"
{
    
"tag"                "Test moder tag "
    "tagcolor"            "000000"
    "namecolor"        "0033FF"

MAGNAT2645 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-12-2016 , 13:30   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1268

Quote:
Originally Posted by Simon. View Post
Well, i allready have those plugins installed on my server and it still dosent work ;P

i have changed the color codes to {01} now for the csgo and i still get errors
Please reread my post and install the simple chat processor that works for csgo..
Mitchell is offline
xTremo
New Member
Join Date: Nov 2016
Old 11-16-2016 , 12:57   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1269

Pls help dont work (CS:GO)

custom-chatcolors.cfg

PHP Code:
//        Custom Chat Colors is written by Dr. McKay (http://www.doctormckay.com)
//        Simple Chat Colors (Redux) is written by Antithasys
//        The configuration is very similar, so I've stolen Redux's documentation :P
//        
//        How to edit this file:
//        "admin_colors"                                        <--    Leave this alone
//        {                                                                <--    Add all groups/steamids after first bracket (Leave this alone)
//                                                                            
//            "STEAM_0:1:1234567"                        <--    Here is a steamid example with a tag (don't duplicate steamids)
//            {
//                "namecolor"        "#RRGGBB"                        <--    This is the color for the name (#RRGGBB in hex notation or #RRGGBBAA with alpha)
//                "textcolor"        "#RRGGBBAA"                        <--    This is the color of the text
//            }
//
//            "groupname"                                            <--    This can either be a steamid for a specific player, or a group name
//            {                                                            <--    Open the group
//                "flag"                "z"                            <--    This is the flag(s) assoicated with the group.  This field doesn't matter if the group name is a steamid
//                "tag"                "[admin]"                    <--    This is the text for the tag
//                "tagcolor"        "O"                        <--    This is the color for the tag
//                "namecolor"        "G"                        <--    This is the color for the name
//                "textcolor"        "T"                        <--    This is the color of the text
//            }                                                            <--    Close the group
//        }                                                                <--    Add all groups/steamids before last bracket (Leave this alone)
//
//        NOTE:
//        If you don't enter a steamid then the group name does not matter, it's just for your reference.
//
//        For colors, either a hex notation of a color (#RRGGBB or #RRGGBBAA) or one of the supported shortcuts (O - Olive, G - Green, T - Team) is required
//
//        --------ORDER OF OPERATIONS--------
//        
//        The order in which you place items in the config file matters.  Here is what determins what color they get:
//        1. SteamID
//            If there is a steamid present, it will always override everything.  If you put a steamid in twice
//            then the first entry (top to bottom) will be used. (I think, just don't do it!)
//        2. Groups
//            The plugin will search (top to bottom) for a postitive match for the flag string.  The player' flags
//            will be compared with the group flag character (NOTE: only one flag per group! "a" is okay, "ab" is NOT),
//            and if the player has the flag, it will stop there.
//            For example. Admins with the "ad" flags and donators with the "a" flag.  If you place the "a" flag group
//            above the "d" group then the admin will get the "a" colors. Order matters.
//
//        ---------DO NOT EDIT ABOVE THIS LINE---------
"admin_colors"
{
    
"STEAM_1:0:151329127"
    
{

        
"tag"                "[Owner] "
        "tagcolor"            "O"
        "namecolor"            "G"
        "textcolor"            "T"
        "flag"                "o"
    
}
    
    
"testadmin"
    
{

        
"tag"                "[admin] "
        "tagcolor"            "O"
        "namecolor"            "G"
        "textcolor"            "T"
    
}

admins.cfg
PHP Code:
/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"   - Name based authentication
 *                        "ip"    - IP based authentication
 *                        Anything else is treated as custom.
 *                     Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *                     Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"         - Adds one group to the user's group table.
 *      "flags"         - Adds one or more flags to the user's permissions.
 *        "immunity"        - Sets the user's immunity level (0 = no immunity).
 *                          Immunity can be any value.  Admins with higher 
 *                          values cannot be targetted.  See sm_immunity_mode 
 *                          to tweak the rules.  Default value is 0.
 *
 * Example:
    "BAILOPAN"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:16"
        "flags"            "abcdef"
    }
 *
 */
Admins
{
    
"Ego Eum Sicarius"
    
{
        
"auth"        "steam"
        "identity"    "steam id"
        "flags"        "bc"
        "group"        "testadmin"
        "immunity"    "1"
    
}
    
"??? trem0 #"
    
{
        
"auth"        "steam"
        "identity"    "steam id"
        "flags"        "zo"
        "group"        "root"
        "immunity"            "99"
    
}

xTremo is offline
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 11-19-2016 , 05:13   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1270

Quote:
Originally Posted by Mitchell View Post
Quick tip, since i didnt want to have your updater included i changed:

#include "mckayupdater.sp"
to
#tryinclude "mckayupdater.sp"

Edit: i have some good news

I have made the csgo version, with passive changes! it shouldnt break any modules

Try this, to use the colors make sure you do: {01} - {09}, {0A} - {0F}, {10} as the color of the tag/chat/name
see the colors/example here:
Spoiler

I'm also going to attach my test plugin
The CCC_GetColor will return a number 1-16 if it is a csgo chat color 01-10-0A-0F etc.
The reason i had to use {} is because KvGetString would return '7' instead of "07"

EDIT: i threw in an idea if {03} is used it will change the author to -1, not sure if you want to keep that idea, it so they can use the color purple. This will replace 'T' with purple though.
I take the custom-chatcolors-csgo from Mitchell and this is working fine but the CUSTOM tags dosen't work(no errors anywhere)
Also the ORIGINAL one and the same problem...
(I fixed also the warning with GetClientAuthString is decrepated and doesn't work....)

here is the custom-chatcolors.cfg:

custom-chatcolors.cfg
Spoiler


And the admins_simple CFG :
Spoiler

Last edited by cristian20042; 11-19-2016 at 05:17.
cristian20042 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:24.


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