AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   color in chat (https://forums.alliedmods.net/showthread.php?t=49632)

amxxn00b 01-09-2007 07:43

color in chat
 
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?

jim_yang 01-09-2007 07:57

Re: color in chat
 
read this please
http://forums.alliedmods.net/showthread.php?t=45753


All times are GMT -4. The time now is 20:16.

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