Counter-Strike 2DGet it now!

Code 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!

Lua Lua Reference

Lua scripting (server-sided) allows server hosters and mappers to modify the game and to add new elements.

Lua Hooks


Category: player (39)


team

Categories

Player

Parameters

  • id: player id
  • team: 0 spec, 1 t, 2 ct
  • look: look id 0,1,2 or 3

Info

on teamchange

Return Values

  • 0: proceed normally
  • 1: don't change team + close menu

Lua Commands