AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Say Team Say Color (https://forums.alliedmods.net/showthread.php?t=15651)

vandercal 07-24-2005 08:18

Say Team Say Color
 
1 Attachment(s)
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

vandercal 07-24-2005 10:17

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!!!

bmann_420 07-24-2005 19:44

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.

Bend3R 07-25-2005 09:28

screenshot?

bmann_420 07-25-2005 17:40

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.

vandercal 07-25-2005 23:27

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 07-26-2005 09:49

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 07-26-2005 10:01

@ 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. :oops:

vandercal 07-26-2005 10:50

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.

bmann_420 07-26-2005 12:34

At least you found teh problem :D It was a good effort, maybe thats why its not up anywhere :x I dont mind tryin plugin, its fun. Maybe You'll figure it out before anyone else and be a hero :P


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

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