Raised This Month: $ Target: $400
 0% 

con_color?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
snurre
Junior Member
Join Date: Jul 2010
Location: Sweden
Old 07-21-2010 , 06:38   con_color?
Reply With Quote #1

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
snurre is offline
katna
Senior Member
Join Date: May 2010
Old 07-21-2010 , 07:15   Re: con_color?
Reply With Quote #2

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
katna is offline
Ryokin
Senior Member
Join Date: Jan 2010
Old 07-21-2010 , 08:43   Re: con_color?
Reply With Quote #3

he doesn't mean that color chat
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
snurre
Junior Member
Join Date: Jul 2010
Location: Sweden
Old 07-21-2010 , 09:28   Re: con_color?
Reply With Quote #4

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.
snurre is offline
katna
Senior Member
Join Date: May 2010
Old 07-21-2010 , 11:23   Re: con_color?
Reply With Quote #5

Quote:
Originally Posted by Ryokin View Post
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
katna is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-21-2010 , 11:38   Re: con_color?
Reply With Quote #6

Quote:
Originally Posted by snurre View Post
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.
__________________
fysiks 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 07:11.


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