Simple Chat Colors (Old Version)
1 Attachment(s)
Use the new version located here.
Simple Chat Colors and more Description: Allows admins to set chat colors for players or groups of players. See feature list for complete description. Plugin is part of the Simple Plugins project. Features:
Commands:
Console Variables:
Installation:
Quote:
Please use the project site to report all bugs and request additional features. Future Updates: Latest beta can be located here. Change log here. Code changes here. New example .cfg files here. New translation file here. ____ *See changelog for recent revisions. Notes: This plugin is part of the Simple Plugins project, but does NOT require the core to function. Enjoy! |
Re: Simple Chat Colors
:mrgreen:
|
Re: Simple Chat Colors
Just tested this out on CS:S. It seems {teamcolor} doesn't actually display the team color; instead it just displays default. Meaning can't replicate team colored chat with this plugin :O.
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Thanks; is it possible to replicate the spectator name color (gray)?
*Edit* And also, is it supposed to be not possible to use {red} and {blue} together? |
Re: Simple Chat Colors
Oh my God I love you.
|
Re: Simple Chat Colors
Quote:
EDIT: Give me a few mins, I will have the new version shorty. Almost got it fixed and ready to go. |
Re: Simple Chat Colors
Does yellow work? I remember it used to show up as black if no one has found an item on the server yet.
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
It works but like you said it will appear black to some.
|
Re: Simple Chat Colors
Plugin doesn't work? Or is that what you're fixing?
|
Re: Simple Chat Colors
He's fixing a bug where {teamcolor} didn't work correctly; read what he wrote =P (it'll be fixed shortly).
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
ok, I readded the attachment. I didn't change the version number, and if you have already downloaded it, redownload it.
Minor fixes include fixing {teamcolor} and small log error with hlstatsx. |
Re: Simple Chat Colors
You fixed the issue with red/blue not working in {teamcolor}, but you broke {lightgreen}. Neither of these examples function:
Quote:
Quote:
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Of course I reloaded =P, otherwise {teamcolor} would still be broken. Are you using it in CS:S?
Interesting enough, this functions: Quote:
|
Re: Simple Chat Colors
Ok. There appears to be some errors in the .inc file. :evil:
It has lightgreen set to use \x03 which is a team color. It also has yellow set to \x04 which is green, not the new tf2 yellow/black. I am not going to publish another update because of these issues right after its release... again. I am going to wait a bit to see what's up with any more errors (if any). If you want to modify what the names do, you can edit the colors.inc file at: PHP Code:
I am not sure if there is a lightgreen in CSS, his chart in his thread doesn't seem to include everything or be 100% accurate. |
Re: Simple Chat Colors
I did as you suggested and it made no difference in-game. Also, CS:S does have a light green. I'll fiddle with it and see if I can fix it. It should be mentioned, however, that I have used {lightgreen} in the colors.inc in other plugins and it's worked just fine.
|
Re: Simple Chat Colors
Quote:
EDIT: The fix above was for TF2 yellow/black |
Re: Simple Chat Colors
Ah. I have another bug for you then. Could you add support for sm_gag / sm_silence? Completely bypasses it, as well as sm_deadtalk.
|
Re: Simple Chat Colors
Quote:
But if it's just a word trigger with no @ ! or / at the start of the message, there is no way to know that it would need to bug out. |
Re: Simple Chat Colors
Sorry I wasn't clear; it allows gagged/silenced players to bypass their punishment O.O.
|
Re: Simple Chat Colors
Quote:
EDIT: That's gonna be a pain to deal with. lol |
Re: Simple Chat Colors
Why not just make a Simple Gag plugin?
Better than the Sourcemod one, it will tell you when you're gagged. For example, trying to say something when you're gagged tells you you're gagged! :P |
Re: Simple Chat Colors
Lightgreen stopped working. And it worked before, so SADFAIC
EDIT: Yellow shows up as green, lightgreen doesn't work, I'm back to the first version. |
Re: Simple Chat Colors
Actually, it's not really necessary for you to fix it; You can simply put a warning on the first post warning users that they shouldn't give colors to individuals that may eventually need to be gagged/silenced (i.e. to the general population) =P.
*Edit* Another bug for ya: it seems the player_say event is being fired twice or something, as things are being printed twice in chat (for example, when a user types /rank for hlstatx or sodstats). |
Re: Simple Chat Colors
Typing "rtd" shows up when it should normally be blocked. I see how it works and it's not that big of a deal. Just a heads up.
|
Re: Simple Chat Colors
I have fixed most of the color issues. I was not going to deal with the gag\silence issues anytime soon. I have not been able to repeat the double print. What are you doing to get that?
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Just using the latest stable version of SourceMod, your v1.0.1 plugin, and
PHP Code:
PHP Code:
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Alright I'll get back to you shortly with my results
|
Re: Simple Chat Colors
Anyway to set admin chat color when and only when they use the "@" symbol for admin chat to all?
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Alright I loaded up an installation of 1.2.3 with base sourcemod plug-ins and the hlstatsx plugin and it still produces a double event for when users type "place" or "kdeath" in chat (the triggers that put information into chat). It doesn't do a double print on anything afaik, so it's an incompatibility between these two.
|
Re: Simple Chat Colors
Quote:
|
Re: Simple Chat Colors
Yes; sorry, explanations plus alcohol is usually a bad combination. I've found another bug for you: If a player is dead their chat either shows up as (SPEC) or not at all.
|
Re: Simple Chat Colors
Quote:
replace line 499: PHP Code:
|
Re: Simple Chat Colors
Quote:
Quote:
PHP Code:
Also {yellow} is just an alias for {green} (useful for L4D where \x04 = yellow). I'll test \x06 color later and release an update for colors.inc for TF. |
All times are GMT -4. The time now is 19:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.