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

color in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amxxn00b
Junior Member
Join Date: Nov 2006
Old 01-09-2007 , 07:43   color in chat
Reply With Quote #1

hi all

I have message: '<NormalChat> Player: hello world!'
console color is purple "255 0 255"

Player hasn't access ADMIN_CHAT
Player's team is T:
<NormalChat> Player: hello world!
CT:
<NormalChat> Player: hello world!

Player has ADMIN_CHAT:
Player's team is T:
<NormalChat> Player: hello world!
CT:
<NormalChat> Player: hello world!

How I can create this?

I have code:

Code:
new msg[128];
format(msg,127,"%c<NormalChat> %c%s: %c%s",1,2,GetUserName(id),get_user_flags(id)&ADMIN_CHAT == 1 ? 3 : 1,message)
but it isn't work...where is problem?

Last edited by amxxn00b; 01-09-2007 at 07:47.
amxxn00b is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-09-2007 , 07:57   Re: color in chat
Reply With Quote #2

read this please
http://forums.alliedmods.net/showthread.php?t=45753
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 14:00.


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