Quote:
Originally Posted by FLAiTE
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 name. This 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.
__________________