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

Say Team Say Color


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-24-2005 , 08:18   Say Team Say Color
Reply With Quote #1

Say Team Say Color

Headlines
Recently I had a user here in this forum asking me if I could make so that the entire message in say and say_team was colored AND registered in the logs so that you could still see it all in HLSW.

This is exactly what it does. Counter-Terrorist, Terrorist and Spectator is all in color now, not just the pre message part. And its all still logged. So it will be displayed in HLSW as normal.

Plugin not working and if nothing else comes up. It never will
Sorry guys


/ Martin
Attached Files
File Type: sma Get Plugin or Get Source (say_team_say_color.sma - 497 views - 5.1 KB)
__________________
vandercal is offline
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-24-2005 , 10:17  
Reply With Quote #2

Added this line in above post. No changes to the plugin itself, just the post.

NOTE! To not clash with other plugins, put this plugin last in plugins.ini!!!
__________________
vandercal is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-24-2005 , 19:44  
Reply With Quote #3

Sweet man, im going to try this tonight, and i asked for that in the other ones a while ago. And now its here , Great Job Man.
__________________
bmann_420 is offline
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 07-25-2005 , 09:28  
Reply With Quote #4

screenshot?
Bend3R is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-25-2005 , 17:40  
Reply With Quote #5

This isnt what i was lookign for. If your Terrorist every text is red, if our ct every text is blue no matter if their spec, or Terrorist. Hard to distigueish whos who on that.
__________________
bmann_420 is offline
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-25-2005 , 23:27  
Reply With Quote #6

Give me some examples and I might be able to make it work like you want. And if possible make it easy to change also.
__________________
vandercal is offline
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-26-2005 , 09:49  
Reply With Quote #7

Sadly this will only work for cs since the diffrent Halflife mods differ in to many ways. However it should be rather easy to change so that more mods would be supported. If you really find this interesting and are not running cs. Then post the mod name you would like it to work for and I will have a look at it.
__________________
vandercal is offline
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-26-2005 , 10:01  
Reply With Quote #8

@ bmann
ah sorry mate I didnt understand you until now... Its a big bad bug... and I will try to fix it ASAP. Sadly I hadnt anyone to test it with, which is why it slipped through.
__________________
vandercal is offline
vandercal
Member
Join Date: Apr 2004
Location: Sweden
Old 07-26-2005 , 10:50  
Reply With Quote #9

Taken a peek on things now and this is the result of what I found:

Code:
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, iArrSendToList[iPlayer])
write_byte( iArrSendToList[iPlayer] )
write_string(sRealMessage)
message_end()
Is where we send the message. However that message comes from the server and I havent been able to find any way to get past that. ^x03 will result in the color of the team the player is on and since I cant tell the client who is sending it there is a problem. It will simply use the team color of the reciever, thus it will always be the same color no matter who sends it. Until a solution for this comes up there is no need to use this plugin since it simply wont work. The only thing I can tell you atm is that MSG_ONE wont work for this. As far as I can say, you cant do this at all since I dont know of any halflife engine call which might do what I want.
__________________
vandercal is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-26-2005 , 12:34  
Reply With Quote #10

At least you found teh problem It was a good effort, maybe thats why its not up anywhere I dont mind tryin plugin, its fun. Maybe You'll figure it out before anyone else and be a hero
__________________
bmann_420 is offline
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 21:13.


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