wow.... I searched and you posted the SAME request just 7 days ago...
Quote:
Originally Posted by k007
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.