
Help
Command Reference
You can enter CS2D script commands in the console, save them in cfg-files or bind them to keys. CS2D script commands are no Lua commands but they can still be executed in Lua scripts by using the Lua parse-function!
Commands
Lua Reference
Lua scripting (server-sided) allows server hosters and mappers to modify the game and to add new elements.
Lua Hooks
Lua Commands
Category: all (66)
msg
Categories
Basic
Parameters
- "text"
Info
Sends "text" as server message to all players. It will be displayed in the chat area of the screen (bottom left).
You can start "text" with an RGB color code "©RRRGGGBBB" to change its color. (You can use this to determine the R, G and B values! R, G and B have to have 3 digits in CS2D. Add leading zeros if necessary.)
It's also possible to display the text at the center of the screen. Just end "text" with "@C" (read: at center) to do so!
Sample 1: Showing a text
Sample 2: Showing a green text (note that there is no space behind the color tag)
Sample 3: Showing a text at the center of the screen
You can start "text" with an RGB color code "©RRRGGGBBB" to change its color. (You can use this to determine the R, G and B values! R, G and B have to have 3 digits in CS2D. Add leading zeros if necessary.)
It's also possible to display the text at the center of the screen. Just end "text" with "@C" (read: at center) to do so!
Sample 1: Showing a text
msg("hello, world")
Sample 2: Showing a green text (note that there is no space behind the color tag)
msg("©000255000This message is green!")
Sample 3: Showing a text at the center of the screen
msg("This text is displayed at the center@C")






