View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-13-2013 , 22:25   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #232

Quote:
Originally Posted by FLAiTE View Post
i don't get it man...please help me.
for example, i have the attached plugin. how can i edit it to have colours in my chat?
i'm using AMXX 1.8.3 b190.

can you please give me a concrete example of how to use the integrated colorchat in AMXX 1.8.3?
Change client_print to client_print_color and print_chat by other colors:

PHP Code:
/* Color types for client_print_color() */
enum {
    
print_team_default 0,
    
print_team_grey = -1,
    
print_team_red = -2,
    
print_team_blue = -3,
}; 
and replace with colors the message:

PHP Code:
 The available colors identifiers are :
 *          
green       ^4   ; use location color from this point forward
 
*  red/blue/grey       ^3   ; use team color from this point forward
 
*  red/blue/grey       ^2   ; use team color up to the end of the player nameThis only works at the start of the string, and precludes using the other control characters.
 *          
normal      ^1   ; use normal color from this point forward 
After do this, make sure you have read the amxconst.inc and amxmodx.inc files from amxmodx compiler.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY