
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)
buy
Categories
Player
Parameters
- id: player id
- weapon: type id of requested weapon
Info
Triggered whenever a player tries to buy something. You can either proceed and let the game decide if the item can be bought or you can cancel the process by returning the value 1.
Weapon and item type IDs:

Weapon and item type IDs:

Return Values
- 0: proceed normally
- 1: don't allow buying






