Raised This Month: $30 Target: $400
 7% 

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Ellie
Senior Member
Join Date: Apr 2013
Old 03-30-2014 , 21:08   Re: [INC] Colors (1.0.5)
Reply With Quote #401

Just wanted to say that I'm still testing it. Want to make sure before I say it works or not.
Ellie is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 04-01-2014 , 02:30   Re: [INC] Colors (1.0.5)
Reply With Quote #402

Well after lots of testing with various plugins, I can safely say it works Thanks Powerlord. What do I owe you?
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-23-2014 , 18:23   Re: [INC] Colors (1.0.5)
Reply With Quote #403

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.
Attached Files
File Type: inc colors.inc (25.7 KB, 624 views)
File Type: sp Get Plugin or Get Source (colors-tester.sp - 335 views - 2.8 KB)
File Type: smx colors-tester.smx (9.5 KB, 224 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-23-2014 at 18:26.
Powerlord is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 06-10-2014 , 04:25   Re: [INC] Colors (1.0.5)
Reply With Quote #404

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 ;)

Last edited by Ellie; 06-10-2014 at 04:27.
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-10-2014 , 10:41   Re: [INC] Colors (1.0.5)
Reply With Quote #405

Quote:
Originally Posted by Ellie View Post
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?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-10-2014 at 10:42.
Powerlord is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 06-10-2014 , 11:45   Re: [INC] Colors (1.0.5)
Reply With Quote #406

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.
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-10-2014 , 12:15   Re: [INC] Colors (1.0.5)
Reply With Quote #407

Quote:
Originally Posted by Ellie View Post
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.
Attached Files
File Type: inc colors.inc (25.5 KB, 969 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-10-2014 at 12:21.
Powerlord is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 09-02-2014 , 00:22   Re: [INC] Colors (1.0.5)
Reply With Quote #408

It seems to not be working correctly.. I can't get purple and blue working in the same sentence.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
DiskJockeyED
Junior Member
Join Date: Mar 2015
Location: France
Old 03-25-2015 , 09:49   Re: [INC] Colors (1.0.5)
Reply With Quote #409

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 ;)
DiskJockeyED is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 03-25-2015 , 12:03   Re: [INC] Colors (1.0.5)
Reply With Quote #410

Read carefully https://forums.alliedmods.net/showpo...36&postcount=1 - use CPrintToChatAll
KissLick is offline
Reply


Thread Tools
Display Modes

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 06:32.


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