PrintMessage

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

Contents

Description

Displays a message in the chat, console, or center of screen of every player.

This uses the archaic user message system (umsg library) and hence is limited to ≈250 characters.

Arguments

number type

Which type of message should be sent to the players (see HUD_ Enums)

Arguments

string message

Message to be sent to the players

Examples

Example

Prints into the every player's chat: "I'm new here."

PrintMessage(HUD_PRINTTALK, "I'm new here.")

Output:

I'm new here.
Personal tools
Navigation