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

Team Colored Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dalto
Veteran Member
Join Date: Jul 2007
Old 08-28-2007 , 15:33   Team Colored Chat
Reply With Quote #1

I am trying to make chat have team colors in it for CS:S.

I have tried putting "\x03" into the chat strings. I have also actually inserted a 3 into the string.

In both cases, I get light green text.

Has something changed in CS:S so this will not work any more?
dalto is offline
pRED*
Join Date: Dec 2006
Old 08-28-2007 , 18:06   Re: Team Colored Chat
Reply With Quote #2

I'm pretty sure you need \x01 at the start of the start to 'enable' colour mode
pRED* is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-28-2007 , 18:13   Re: Team Colored Chat
Reply With Quote #3

Quote:
Originally Posted by pRED* | NZ View Post
I'm pretty sure you need \x01 at the start of the start to 'enable' colour mode
I tried that, it had no effect. \x03 is still light green regardless of team.
dalto is offline
pRED*
Join Date: Dec 2006
Old 08-28-2007 , 18:29   Re: Team Colored Chat
Reply With Quote #4

Oh right \x02 is team isn't it?
pRED* is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-28-2007 , 18:33   Re: Team Colored Chat
Reply With Quote #5

Quote:
Originally Posted by pRED* | NZ View Post
Oh right \x02 is team isn't it?
Tried that too....\x02 does nothing
dalto is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 08-28-2007 , 18:39   Re: Team Colored Chat
Reply With Quote #6

I know this was a difficult thing to acheive with Eventcripts but it was achieved here

I don't know if that's the slightest bit helpful but...

/me crosses fingers
__________________
Extreme_One is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-29-2007 , 09:47   Re: Team Colored Chat
Reply With Quote #7

Event scripts seems to do basically the same thing, it just doesn't actually work.

I read somewhere that the team color stuff changed with one of the patches valved released in March. Does anyone know anything about this?
dalto is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 08-29-2007 , 12:37   Re: Team Colored Chat
Reply With Quote #8

I do know that the Official HLstatsX Ingame Plugin is very nearly there.

It works some of the time

I really wish Tobias would fix this aspect of his plugin too.
__________________
Extreme_One is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 08-29-2007 , 15:25   Re: Team Colored Chat
Reply With Quote #9

\x03 has no effect in dods (white) \x04 is dark green in css, and red in dods.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Saul
Junior Member
Join Date: Jun 2007
Old 08-31-2007 , 09:08   Re: Team Colored Chat
Reply With Quote #10

I'm the person that made the SayText2 addon for ES, and its rather simple how it works. I'm sure there is a usermessage function available for SourcePawn, but heres the code:
Code:
stock SayText2( client, index, type, const String:szMsg[] )
{
   if (strlen(szMsg) > 191){
      LogError("Disallow string len(%d) > 191", strlen(szMsg));
      return;
   }

   new Handle:hBf;
   if (!client)
      hBf = StartMessageAll("SayText2");
   else hBf = StartMessageOne("SayText2", client);

   if (hBf != INVALID_HANDLE)
   {
      BfWriteByte(hBf, index);
      BfWriteByte(hBf, true);
      BfWriteString(hBf, szMsg);
      EndMessage();
   }
}

Last edited by Saul; 08-31-2007 at 09:15.
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 01:30.


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