AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Colors (1.0.5) (https://forums.alliedmods.net/showthread.php?t=96831)

Ellie 03-30-2014 20:08

Re: [INC] Colors (1.0.5)
 
Just wanted to say that I'm still testing it. Want to make sure before I say it works or not.

Ellie 04-01-2014 01:30

Re: [INC] Colors (1.0.5)
 
Well after lots of testing with various plugins, I can safely say it works :up: Thanks Powerlord. :) What do I owe you?

Powerlord 04-23-2014 17:23

Re: [INC] Colors (1.0.5)
 
3 Attachment(s)
Turns out my tester was calling the wrong code and not testing CShowActivity2. Which was trying to print the wrong variable.

So, here's a new version that fixes it.

Ellie 06-10-2014 03:25

Re: [INC] Colors (1.0.5)
 
Thought I mentioned this but I guess I didn't. The chat tags don't get removed when it's printed to console/server. Otherwise it works perfectly ;)

Powerlord 06-10-2014 09:41

Re: [INC] Colors (1.0.5)
 
Quote:

Originally Posted by Ellie (Post 2149196)
Thought I mentioned this but I guess I didn't. The chat tags don't get removed when it's printed to console/server. Otherwise it works perfectly ;)

Using which command, CReplyToCommand?

Ellie 06-10-2014 10:45

Re: [INC] Colors (1.0.5)
 
Whoops forgot to put that in the post. It's only CShowActivity2 it seems where the tags aren't removed when printed to console/server.

Powerlord 06-10-2014 11:15

Re: [INC] Colors (1.0.5)
 
1 Attachment(s)
Quote:

Originally Posted by Ellie (Post 2149353)
Whoops forgot to put that in the post. It's only CShowActivity2 it seems where the tags aren't removed when printed to console/server.

It's weird... ShowActivity2 always prints to the chat when the player isn't the server. The comment next to it says:

Code:

        /* We don't display directly to the console because the chat text
        * simply gets added to the console, so we don't want it to print
        * twice.
        */

...which I don't think is correct seeing as how the message in question is being sent to the user who did the action via the SM "ChatSayText" method, which iirc is the SayText2 usermessage on most games.

I really doubt this will fix your problem, but it does pull out some old code from CShowActivity2 that shouldn't have been executing as well as fixes a minor bug in CShowActivity/CShowActivityEx.

sim242 09-01-2014 23:22

Re: [INC] Colors (1.0.5)
 
It seems to not be working correctly.. I can't get purple and blue working in the same sentence.

DiskJockeyED 03-25-2015 08:49

Re: [INC] Colors (1.0.5)
 
don't work for cs go :/

I take #include <colors>

And PrintToChatAll("{green}Blablabla");

But i doesn't work why ? :/

And colors.inc in sourcemod/scipting/include ;)

Why :)

Thank you ;)

KissLick 03-25-2015 11:03

Re: [INC] Colors (1.0.5)
 
Read carefully https://forums.alliedmods.net/showpo...36&postcount=1 - use CPrintToChatAll


All times are GMT -4. The time now is 22:58.

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