MsgC

From Garry's Mod
Jump to: navigation, search
 MsgC( )

Contents

Description

Just like Msg, except it can also print colored text, just like chat.AddText.

Arguments

vararg args

Values to print. If you put in a color, all text after that color will be printed in that color.

Examples

Example

Prints "Hello World!" in red to the console.

MsgC( Color( 255, 0, 0 ), "Hello World!" )

Output:

msgc red hello world 2.png

Examples

Example

Shows the built in colors for server and client

MsgC( Color( 137, 222, 255 ), "Default server color" )
MsgC( Color( 255, 222, 102 ), "Default client color" )


Personal tools
Navigation