AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Arbitrary Chat Colors (https://forums.alliedmods.net/showthread.php?t=186784)

ReFlexPoison 06-04-2012 18:45

Re: [Any] Arbitrary Chat Colours
 
Quote:

Originally Posted by Fearts (Post 1722907)
Is there a reason this keeps getting unloaded? Every few map changes it just stops working and when I check the plugins list it doesn't show as loaded.

There's nothing in the source that indicates any problems resulting in that. No OnMapStarts or OnMapEnds so maybe another plugin is causing this?

Fearts 06-04-2012 19:16

Re: [Any] Arbitrary Chat Colours
 
Another plugin is causing just this plugin not to load? Idk I will run a few more tests.

NameUser 06-04-2012 19:18

Re: [Any] Arbitrary Chat Colours
 
This plugin is absolutely amazing!

DarthNinja 06-06-2012 23:21

Re: [Any] Arbitrary Chat Colours
 
Quote:

Originally Posted by ReFlexPoison (Post 1722521)
Ask this about a lot of the new color plugins, does the hex value show before the message in player's console?

It might (I haven't looked), but that's up to TF2.

thetwistedpanda 06-06-2012 23:57

Re: [Any] Arbitrary Chat Colours
 
Noticed that if a client uses a color while in spectate (CS:S), other clients see the hex value instead of a color in chat. Didn't poke around at code for a reason, you beat me to writing it so I was testing ;3.

DarthNinja 06-07-2012 14:20

Re: [Any] Arbitrary Chat Colours
 
Any display issues should be directed at Valve. All the plugin does is insert the hex color code character at the point where the # sign is found. The game(client) does everything else.

It's my understanding that chat colors should work in any chat message though.

Mitchell 06-22-2012 13:27

Re: [Any] Arbitrary Chat Colours
 
Quote:

Originally Posted by ReFlexPoison (Post 1722910)
There's nothing in the source that indicates any problems resulting in that. No OnMapStarts or OnMapEnds so maybe another plugin is causing this?

OH REALLY?

Weird how im the only one that has seen this... You never closed the handles of Regex.. thats why Fire's server was unloading it.
Code:

        ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
    }
    CloseHandle(hRegex);
    return Plugin_Changed;
}

at the chat forward and on the test command

EDIT: Look below.

ReFlexPoison 06-22-2012 15:41

Re: [Any] Arbitrary Chat Colours
 
Quote:

Originally Posted by Mitchell (Post 1733938)
OH REALLY?

Weird how im the only one that has seen this... You never closed the handles of Regex.. thats why Fire's server was unloading it.
Code:

        ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
    }
    CloseHandle(hRegex);
    return Plugin_Changed;
}

at the chat forward and on the test command


note: i removed the test command from my version because it was a waste of code:

:shock:

Mitchell 06-22-2012 16:06

Re: [Any] Arbitrary Chat Colours
 
2 Attachment(s)
Actually i think i found a better fix, instead of making useless handles, just use one handle.

Sreaper 06-22-2012 17:35

Re: [Any] Arbitrary Chat Colours
 
Nice plugin Darth. I haven't tried this out yet but it looks good, but is it also possible to set my in-game name to a specific hex color for the public chat using this plugin?


All times are GMT -4. The time now is 01:36.

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