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

Ako si mozem zmenit farbu textu?


Post New Thread Reply   
 
Thread Tools Display Modes
Azrael335
Member
Join Date: Jun 2011
Old 06-14-2011 , 07:37   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #11

from other .sma file i read this

Quote:
/* Thanks for Damaged Soul for finding the information on how to do this.
http://forums.alliedmods.net/showthr...9604#post79604

This is code snippets I find useful.

^x01 is Yellow
^x03 is Team Color. Ie. Red (Terrorist) or blue (Counter-Terrorist) or grey (SPECTATOR or UNASSIGNED).
^x04 is Green


The colors red, grey, and blue can't be used on the same line. This is not possible at all to do.

Also there are limitation to using Red or Grey while on the TEAM CT.
You would have to do for example if they were on CT.

ColorChat(0, RED, "%s, ^x01This color is yellow. ^x03This color is red. ^x04This color is green.);

You have to set the Type to RED because of certain messages that need to be sent out so a person on the
team CT can be sent red colors.
*/

Last edited by Azrael335; 06-14-2011 at 07:40.
Azrael335 is offline
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-14-2011 , 07:42   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #12

yea but what color do YOU want in the chat message
RollerBlades is offline
Azrael335
Member
Join Date: Jun 2011
Old 06-14-2011 , 07:54   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #13

client_print(id, print_chat, "(yellow)[(green)VIP(yellow)] write (red)/wantvip (yellow)and u will see how get VIP and VIP privilegies.")
Azrael335 is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 06-14-2011 , 08:18   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #14

You cannot print colors with client_print. Search for colorchat.inc and use that. You might also be able to find some stocks to use instead of colorchat.inc.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-14-2011 , 08:22   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #15

ConnorMcLeod made a good stock version for his chatcolors

i think its this one:
[Native/Stock] ColorChat v0.2.1 (28 dec 2010)
RollerBlades is offline
Azrael335
Member
Join Date: Jun 2011
Old 06-14-2011 , 08:23   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #16

where in amxmodx/ is .inc files?
Azrael335 is offline
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-14-2011 , 08:26   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #17

the include file is in the thread, you have to download it and put it in the include folder cause it doesnt come with amxmodx installation
RollerBlades is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 06-14-2011 , 08:26   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #18

You don't have it. You need to download it.

And the one RB found works very well.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Azrael335
Member
Join Date: Jun 2011
Old 06-14-2011 , 08:36   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #19

if this install
https://forums.alliedmods.net/showthread.php?t=94960

this is works?
client_print(id, print_chat, "(yellow)[(green)VIP(yellow)] write (red)/wantvip (yellow)and u will see how get VIP and VIP privilegies.")

edit: where i MUST put the .inc file please

Last edited by Azrael335; 06-14-2011 at 08:43.
Azrael335 is offline
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-14-2011 , 08:42   Re: Ako si mozem zmenit farbu textu?
Reply With Quote #20

Azrael: no it wont work at all. you have to make client_print to client_print_color besides you need to #include <chatcolor> in the sma. file and download the include file for native version

Jelle: would this work?
PHP Code:
client_print_color(idTEAM_COLOR"[WpnMenu v1.0 MadeBy RollerBlades]"); 
Edit: you put it in the include foler

way direction: addons/amxmodx/scripting/include

Last edited by RollerBlades; 06-14-2011 at 09:28.
RollerBlades 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:10.


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