Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Hook suicide

Categories

Parameters

  • id: player id

Info

On every attempt to commit suicide with the console command "kill". Player ID is the ID of the player who attempts to commit suicide.

Return Values

  • 0: proceed normally
  • 1: don't commit suicide

Lua Command Lua Commands