G.PrintMessage

From GMod Wiki

Revision as of 19:47, 5 March 2011 by Wizard (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax PrintMessage( Number type, String message )
Where is this used?
Description:
Prints a message to all users in various places.
Returns: nil
Part of Library: Global Functions
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.PrintMessage]G.PrintMessage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints "Hi There!" in the chat of all players.
Used onNewerServer.png
Code
PrintMessage( HUD_PRINTTALK, "Hi There!" )
OutputHi There!


Additional Notes

SHARED | 0000000000000001 | 00000000000000001 | HUD_PRINTCENTER - Prints to the center of the client's screen
SHARED | 0000000000000002 | 00000000000000010 | HUD_PRINTCONSOLE - Prints to the client's console
SHARED | 0000000000000003 | 00000000000000011 | HUD_PRINTNOTIFY - Same as HUD_PRINTCONSOLE
SHARED | 0000000000000004 | 00000000000000100 | HUD_PRINTTALK - Prints to the chat area

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox