Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Category: security (15)
mp_reservationsCategories
Parameters
- reservations (text): a list of U.S.G.N. ID
Info
High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
Define which U.S.G.N. users are allowed to join the server always - even if it is already full. The server will then kick a player if necessary to make room for a player with reservation.
Example:
mp_reservations "" (no reservations)
mp_reservations "1,2,3" (reservations for the U.S.G.N. users 1, 2 and 3)
Note: It is recommended to add reservations for all users which have the RCon password or which are specified as RCon users with sv_rconusers!
Attention: Make sure that sv_checkusgnlogin is enabled (default) when using this setting. Disabling sv_checkusgnlogin while using mp_reservations is a security risk. People might use hacks to fake their U.S.G.N. IDs in order to kick players by simply joining full servers.
Lua Hooks
Lua Commands
Categories
Parameters
- reservations (text): a list of U.S.G.N. ID
Info
High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
Define which U.S.G.N. users are allowed to join the server always - even if it is already full. The server will then kick a player if necessary to make room for a player with reservation.
Example:
mp_reservations "" (no reservations)
mp_reservations "1,2,3" (reservations for the U.S.G.N. users 1, 2 and 3)
Note: It is recommended to add reservations for all users which have the RCon password or which are specified as RCon users with sv_rconusers!
Attention: Make sure that sv_checkusgnlogin is enabled (default) when using this setting. Disabling sv_checkusgnlogin while using mp_reservations is a security risk. People might use hacks to fake their U.S.G.N. IDs in order to kick players by simply joining full servers.