Command ReferenceYou 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!
Category: server (182)
- player (1-32): id of a player
- health (0-250): health
Set health of a player (as server only).
Note: The maximum health is limited by setmaxhealth! The default maxhealth is 100. The maximum maxhealth is 250. You have to use setmaxhealth after each spawn because respawning will reset the maxhealth to 100.