AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   changing chat text color for all (https://forums.alliedmods.net/showthread.php?t=45455)

tupacaveli 10-02-2006 20:38

changing chat text color for all
 
.








.

stupok 10-03-2006 00:28

Re: changing chat text color for all
 
wow.... I searched and you posted the SAME request just 7 days ago...


Quote:

Originally Posted by k007 (Post 385672)
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.

VEN 10-03-2006 00:28

Re: changing chat text color for all
 
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.

stupok 10-03-2006 00:43

Re: changing chat text color for all
 
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.

tupacaveli 10-03-2006 16:41

Re: changing chat text color for all
 
.








.

organizedKaoS 10-03-2006 17:36

Re: changing chat text color for all
 
Quote:

Originally Posted by tupacaveli (Post 387250)
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.


All times are GMT -4. The time now is 04:46.

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