Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: server (201)

CS2D Command sv_msg

Categories

Parameters

  • message (text): the message you want to send

Info

Send a message to everyone on your server.
Same as msg!

Add an @C at the end of your text to display the message at the center of the screen.
For example: "Centered text@C"

You can also use color codes (use a colorpicker to get the values) at the beginning and in-line! Colors are encoded as RGB values.
Format: ©RRRGGGBBB (with each part RRR, GGG and BB ranging from 000 to 255)
For example: "©255000000This is a red text" or "The following text is ©000000255blue"

Note: Each component, R, G and B always has to have 3 digits. Add leading zeros if necessary!

Lua Hook Lua Hooks

Lua Command Lua Commands