client_print_color

Sends coloured message to player. Set index to 0 to send text globaly.. An example would be: client_print_color(id, Red, "^4This is green ^3this is red, ^1this is your default chat text color"); Look at the above enum for second parameter lists when you don't pass a player index in it.

Syntax

native client_print_color(index, sender, const fmt[], any:...)

Usage

index This is the player index (1 to maxplayer) you want to send the message, use 0 to send to all players.
sender This is the player index you want to use the team color, see above enum if you want to force a color.
fmt Format string in which patterns gonna be replaced with argument list.

Return

Returns — 1 if the message has been sent, 0 if the index specified is a not connected player, or if a global message has not been sent because there are no humans players.

Defined in chatcolor.inc at line 37 . This documentation was automatically generated from source.