Raised This Month: $ Target: $400
 0% 

changing chat text color for all


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tupacaveli
BANNED
Join Date: Jul 2006
Old 10-02-2006 , 20:38   changing chat text color for all
Reply With Quote #1

.








.

Last edited by tupacaveli; 10-17-2006 at 14:47.
tupacaveli is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-03-2006 , 00:28   Re: changing chat text color for all
Reply With Quote #2

wow.... I searched and you posted the SAME request just 7 days ago...


Quote:
Originally Posted by k007 View Post
you know that you need to leanr more and start using the search button more offren......
http://forums.alliedmods.net/showthread.php?t=9213

The code is in there, just modify it to your needs.

BUT because I'm feeling generous, I'll slop together some code that may or may not work that will probably suit your needs.

Code:
public plugin_init() {     register_clcmd("say","hook_say") } public hook_say(id) {     message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)     write_byte(id)     write_string("^x03Team colored text ^x01Normal color")     message_end()         return PLUGIN_HANDLED }

You'll have to test it yourself. I have to say you must be extremely lazy.
stupok is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 10-03-2006 , 00:28   Re: changing chat text color for all
Reply With Quote #3

For all text? There are no good way to do that. I.e. something like "[AMXX] Admin kicked someone" will be still the same color.
VEN is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-03-2006 , 00:43   Re: changing chat text color for all
Reply With Quote #4

Ok, I thought that there were more text events that could be hooked onto besides SayText that would cover all of the text messages you see.
stupok is offline
tupacaveli
BANNED
Join Date: Jul 2006
Old 10-03-2006 , 16:41   Re: changing chat text color for all
Reply With Quote #5

.








.

Last edited by tupacaveli; 10-17-2006 at 14:47.
tupacaveli is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-03-2006 , 17:36   Re: changing chat text color for all
Reply With Quote #6

Quote:
Originally Posted by tupacaveli View Post
lazy my ass i did test that code and it dont work for cz.
You have to catch the string they typed and format it so you can print it with message begin.

FYI, if you use hlsw to monitor your server, you will no longer see the chat with this plugin running.
organizedKaoS is offline
Old 10-03-2006, 17:37
tupacaveli
This message has been deleted by Greentryst. Reason: blanked by author
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 04:46.


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