
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
Category: all (58)
name
Categories
Player
Parameters
- id: player id
- oldname: old player name
- newname: new player name
- forced: was nickname forced by server command (0/1)
Info
on name change for the player with a certain ID.
"forced" will be 1 if the name change was forced by the server with the setname command. Otherwise it will be 0.
"forced" will be 1 if the name change was forced by the server with the setname command. Otherwise it will be 0.
Return Values
- 0: proceed normally
- 1: don't change name






