AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   con_color? (https://forums.alliedmods.net/showthread.php?t=133038)

snurre 07-21-2010 06:38

con_color?
 
Hi first im new on this, I have a wanted script. But i want do have the messege in green. I have tryed ervring whay to get in con_color, but i cant get it to work.

Code:

client_print, con_color "0 255 0" ( 0, print_chat,  " [AMXX]CT %s is wanted | T %s is wanted", CTname, Tname ) ;
anyone how can help me ?
Regards snurre

katna 07-21-2010 07:15

Re: con_color?
 
con_color is a client command and you shouldn't change the client con_color without is permission. The way you want to put color in a chat message is to:
1) #include <colorchat>
2) download numb colorchat.inc and put it in scripting>include
3) use this format:
PHP Code:

ColorChat(indexCOLORMsgany...); 

Example:
PHP Code:

ColorChat(idRED"This Is Red,^x01 This is Normal,^x04 This is Green"); 

^x01 = user con_color, default:yellow
^x03 = color mentioned, RED in this example.
^x04 = green color

Ryokin 07-21-2010 08:43

Re: con_color?
 
he doesn't mean that color chat

snurre 07-21-2010 09:28

Re: con_color?
 
I have tryd to do as you has whriteing, when im using the comliar at amxmodx i get this error
Quote:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpRYvNuP.sma(35) : fatal error 100: cannot read from file: "colorchat"

Compilation aborted.
1 Error.

katna 07-21-2010 11:23

Re: con_color?
 
Quote:

Originally Posted by Ryokin (Post 1246620)
he doesn't mean that color chat

I'm pretty sure he mean it, he just though con_color was the solution instead of ColorChat.

You need to put in addon>amxmodx>scripting>include a file called colorchat.inc

fysiks 07-21-2010 11:38

Re: con_color?
 
Quote:

Originally Posted by snurre (Post 1246634)
I have tryd to do as you has whriteing, when im using the comliar at amxmodx i get this error

You can't compile plugins with colorchat at amxmodx.

If you are trying to change con_color then just put it in your client config file and be done with it.


All times are GMT -4. The time now is 07:11.

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