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

Simple Chat Colors (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
behrentzs
Member
Join Date: Jan 2012
Old 01-04-2012 , 15:09   Re: Simple Chat Colors (Redux)
Reply With Quote #111

Hello.

I can't make the plugin work.
I've installed as i should.

I think the issue is when editing the steam id's.


My file:

// How to edit this file:
// "admin_colors" <-- Leave this alone
// { <-- Add all groups/steamids after first bracket (Leave this alone)
//
// "STEAM_0:0:42938535" <-- Here is a steamid example with a tag (don't duplicate steamids) <-- 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" "{G}" <-- This is the color for the tag
// "namecolor" "{G}" <-- This is the color for the name
// "textcolor" "{N}" <-- 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 a better understanding of what these colors mean, how they work, and on what games, see this link:
// http://forums.alliedmods.net/showpos...02&postcount=2
// Thanks to everyone working on the smlib for the great .inc files!
//
// --------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 string, and if the player has all the flags, 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.
// You can use more than 1 flag for the group. You could have made the admin group with the "ad" flag,
// but it will always take the first match.
//
// ---------DO NOT EDIT ABOVE THIS LINE---------
"admin_colors"
{
"STEAM_0:0:42938535"
{
"tag" "[Owner]"
"tagcolor" "{R}"
"namecolor" "{G}"
}
"Admins"
{
"flag" "z"
"tag" "[Admin]"
"tagcolor" "{R}"
"namecolor" "{G}"
}
"VIP"
{
"flag" "a"
"tag" "[VIP]"
"tagcolor" "{B}"
"namecolor" "{T}"
"textcolor" "{OG}"
}
}


Can you tell me what i did wrong, or send me a working config thanks!

Last edited by behrentzs; 01-04-2012 at 15:33.
behrentzs is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 01-08-2012 , 13:06   Re: Simple Chat Colors (Redux)
Reply With Quote #112

Did you also load...

http://forums.alliedmods.net/showthread.php?t=167812
MaloModo is offline
S_W_A_T
Senior Member
Join Date: Dec 2007
Old 01-12-2012 , 21:10   Re: Simple Chat Colors (Redux)
Reply With Quote #113

Is there a way to use Unicode chars?...
S_W_A_T is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-18-2012 , 02:42   Re: Simple Chat Colors (Redux)
Reply With Quote #114

would you be able to make this plugin use mysql for the config

because i want to make some automated scripts that add people and their custom chat tag after say donating
Jasonbourne is offline
Dr. Monocle
New Member
Join Date: Dec 2011
Old 01-20-2012 , 04:25   Re: Simple Chat Colors (Redux)
Reply With Quote #115

Quote:
"Owner"
{
"tag" "{Owner}"
"flag" "z"
"tagcolor" "{N}"
"namecolor" "{BR}"
"textcolor" "{B}"
}
I type this and get... It adds an r to the beginning and an extra "{" in the middle

Dr. Monocle is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 01-20-2012 , 07:58   Re: Simple Chat Colors (Redux)
Reply With Quote #116

I found this happens if you have an "{" in your name.
Snaggle is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 01-20-2012 , 10:21   Re: Simple Chat Colors (Redux)
Reply With Quote #117

Quote:
Originally Posted by Dr. Monocle View Post
I type this and get... It adds an r to the beginning and an extra "{" in the middle

Quote:
Originally Posted by Snaggle View Post
The bug with players that use { and } in their name still exists.

My Name: {test}Snaggle [UK]
How it looks in game: [Tag] ]{test}Snaggle [UK]


The ] in the name will appear for anyone who uses {} in their name. Anyway to fix that?
Quote:
Originally Posted by Antithasys View Post
Since I do not parse the text myself, I just send to to SMLIB and the sort, the problem has to be there. I will ask berni if he see's a reason for it.
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows

Last edited by wtfaatp; 01-20-2012 at 10:21.
wtfaatp is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 01-25-2012 , 11:02   Re: Simple Chat Colors (Redux)
Reply With Quote #118

I'm saddened that {O} Doesn't work in TF2 even tho smlib says it does, but other then that good job.
__________________
alinayg is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-26-2012 , 19:02   Re: Simple Chat Colors (Redux)
Reply With Quote #119

I would like to be able to be able to add chat prefixes from mysql

is this possible
Jasonbourne is offline
TFC
Member
Join Date: Jul 2010
Old 01-27-2012 , 18:39   Re: Simple Chat Colors (Redux)
Reply With Quote #120

how can i get it for everyone?

It don't work!

Code:
"everyone"
{
"flag" ""
"tag" ""
"tagcolor" ""
"namecolor" "{RB}"
"textcolor" "{OG}"
}
__________________
sry for bad english!
TFC 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 13:37.


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