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

Team Colored Chat


Post New Thread Reply   
 
Thread Tools Display Modes
dalto
Veteran Member
Join Date: Jul 2007
Old 08-31-2007 , 10:00   Re: Team Colored Chat
Reply With Quote #11

The problem is that I get a light green color instead of the team colors I am expected to get with CS:S.

Am I missing something?
dalto is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-31-2007 , 15:23   Re: Team Colored Chat
Reply With Quote #12

did you try Saul's way? i think our mistake was not using SayText2 lol
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 08-31-2007 , 21:48   Re: Team Colored Chat
Reply With Quote #13

Quote:
Originally Posted by dalto View Post
The problem is that I get a light green color instead of the team colors I am expected to get with CS:S.

Am I missing something?
If you are using PrintToChat it will always be light green.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 09-01-2007 , 01:50   Re: Team Colored Chat
Reply With Quote #14

dark green works in print to chat as well...
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 09-01-2007 , 01:55   Re: Team Colored Chat
Reply With Quote #15

Thank you everybody, I got it working using SayText2.

Your help is much appreciated.
dalto is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-01-2007 , 02:33   Re: Team Colored Chat
Reply With Quote #16

Quote:
Originally Posted by FlyingMongoose View Post
dark green works in print to chat as well...
For \x03
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 09-01-2007 , 09:15   Re: Team Colored Chat
Reply With Quote #17

Quote:
Originally Posted by dalto View Post
Thank you everybody, I got it working using SayText2.

Your help is much appreciated.
That's great news.

Is it worth posting your method for other authors to make use of?
__________________
Extreme_One is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 09-01-2007 , 11:40   Re: Team Colored Chat
Reply With Quote #18

Quote:
Originally Posted by Extreme_One View Post
That's great news.

Is it worth posting your method for other authors to make use of?
What Saul did in post #10 is what you need to do.

Basically, you start a "SayText2" message, writebyte the client number, writebyte true and then writestring the text.

Here is exactly what I did in the cheer plugin.

Code:
new Handle:hMessage = StartMessageAll("SayText2");
BfWriteByte(hMessage, client);
BfWriteByte(hMessage, true);
BfWriteString(hMessage, "\x03%s1 \x04cheered!!!");
BfWriteString(hMessage, name);
EndMessage();
Things to note that are instead of using %s, %s you need to use %s1, %s2 for example.

You WriteString the test with the formats in it and then you write all the parameters after, in order.
dalto is offline
Saul
Junior Member
Join Date: Jun 2007
Old 09-01-2007 , 13:46   Re: Team Colored Chat
Reply With Quote #19

Here is a radio message example:
Code:
new Handle:hMessage = StartMessageAll("SayText2");
BfWriteByte(hMessage, client);
BfWriteByte(hMessage, true);
BfWriteString(hMessage,'Game_radio_location');
BfWriteString(hMessage,'Player Name');
BfWriteString(hMessage,'Location');
BfWriteString(hMessage,'Radio Message');
EndMessage();
Saul is offline
Send a message via MSN to Saul
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 12:11.


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