Commands/Lua

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

CS2D Command CS2D Console Commands

Category: server (196)

banip
banname
bans
bansteam
banusgn
bot_add
bot_add_ct
bot_add_t
bot_autofill
bot_count
bot_freeze
bot_jointeam
bot_keepfreeslots
bot_kill
bot_prefix
bot_remove
bot_remove_all
bot_remove_ct
bot_remove_t
bot_skill
bot_weapons
changelevel
changemap
cmsg
customkill
damageobject
deathslap
effect
endround
equip
explosion
flashplayer
flashposition
freeprojectile
hudtxt
hudtxt2
hudtxtalphafade
hudtxtcolorfade
hudtxtmove
items
kick
killobject
killplayer
listbans
listplayers
logaddress_add
logaddress_remove
logaddress_removeall
lua
luareset
makect
makespec
maket
map
maps
mp_antispeeder
mp_autogamemode
mp_autoteambalance
mp_building_health
mp_building_limit
mp_building_price
mp_buymenu
mp_buytime
mp_c4timer
mp_connectionlimit
mp_curtailedexplosions
mp_damagefactor
mp_deathdrop
mp_dispenser_health
mp_dispenser_money
mp_dmspawnmoney
mp_dropgrenades
mp_flashlight
mp_floodprot
mp_floodprotignoretime
mp_freezetime
mp_grenaderebuy
mp_hostagepenalty
mp_hovertext
mp_hud
mp_hudscale
mp_idleaction
mp_idlekick
mp_idletime
mp_infammo
mp_kevlar
mp_kickpercent
mp_killbuildingmoney
mp_killbuildings
mp_killinfo
mp_killteambuildings
mp_lagcompensation
mp_lagcompensationdivisor
mp_localrconoutput
mp_luamap
mp_luaserver
mp_mapgoalscore
mp_mapvoteratio
mp_maxclientsip
mp_maxrconfails
mp_natholepunching
mp_pinglimit
mp_postspawn
mp_radar
mp_randomspawn
mp_recoil
mp_reservations
mp_respawndelay
mp_roundlimit
mp_roundtime
mp_shotweakening
mp_smokeblock
mp_startmoney
mp_supply_items
mp_teamkillpenalty
mp_teleportreload
mp_tempbantime
mp_timelimit
mp_tkpunish
mp_trace
mp_turretdamage
mp_unbuildable
mp_unbuyable
mp_vulnerablehostages
mp_winlimit
mp_wpndmg
mp_wpndmg_z1
mp_wpndmg_z2
mp_zombiedmg
mp_zombiekillequip
mp_zombiekillscore
mp_zombierecover
mp_zombiespeedmod
msg
rcon
rcon_password
rcon_pw
removeitem
reroute
restart
restartround
setammo
setarmor
setdeaths
sethealth
setmaxhealth
setmoney
setname
setpos
setscore
setteamscores
settile
setweapon
shake
slap
spawnitem
spawnnpc
spawnobject
spawnplayer
spawnprojectile
speedmod
strip
sv_checkusgnlogin
sv_daylighttime
sv_forcelight
sv_fow
sv_friendlyfire
sv_gamemode
sv_gm
sv_hostport
sv_lan
sv_map
sv_maptransfer
sv_maxplayers
sv_msg
sv_msg2
sv_name
sv_password
sv_rcon
sv_rconusers
sv_restart
sv_restartround
sv_sound
sv_sound2
sv_soundpos
sv_specmode
sv_spraytransfer
sv_stopsound
sv_usgnonly
transfer_speed
trigger
triggerposition
unban
unbanall
usgn_addserver
usgn_info

CS2D Command banip

Categories

Parameters

  • ip (text): IP address
  • [duration] (-1 - 1440)(optional): Temporary ban duration in minutes (or 0 for infinite ban, or -1 for default temp ban time mp_tempbantime)
  • [reason] (text)(optional): A ban reason (optional)

Info

Bans an IP address. Players with this IP will not be able to join anymore.

This command supports wildcards (*). The address does always have to have 3 dots even when using wildcards. Some examples:

123.*.*.* = ban every ip starting with 123
*.*.*.123 = ban every ip ending with 123
*.123.234.* = ban every ip with 123.234 in the middle

The following ban addresses are NOT supported! Do NOT use comparable bans:
123.* = not enough dots
*.123.234 = not enough dots
12*.*.* = mixed digits and * (12*) are not supported

You can also specify a duration if you want the ban to be temporary only. Use -1 if you want to use the value of mp_tempbantime as duration or use a value >0 to specify the ban duration in minutes. 0 means that the ban will be infinite (default).

Use reason to specify a ban reason. This will be displayed when affected players are removed from the server or when they try to join.

Lua Hook Lua Hooks

Lua Command Lua Commands