
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)
msg2
Categories
Basic
Parameters
- id
- "text"
Info
Sends "text" to a certain player (id) only. It will be displayed in the chat area of the screen of that player (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 to player 1 only
Sample 2: Showing a green text (note that there is no space behind the color tag) to player 3 only
Sample 3: Showing a text at the center of the screen to player 5 only
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 to player 1 only
msg2(1,"hello, world")
Sample 2: Showing a green text (note that there is no space behind the color tag) to player 3 only
msg2(3,"©000255000This message is green!")
Sample 3: Showing a text at the center of the screen to player 5 only
msg2(5,"This text is displayed at the center@C")






