NB! It seems this console command is not compatible with CS2.

BANID

CS:GO

Description

This command will ban the user with the specified ID from the server, and add them to the banlist so that they cannot reconnect. The user ID of a user can be obtained by typing status into the console: the user ID is first number before a player's name in the list of players that is printed by that command.

Syntax

banid [Minutes] [User ID]

Arguments

Minutes The number of minutes you want to ban the user for. Use the value 0 to permanently ban them.
User ID The user ID of the person you want to ban from the server. Find the ID of a user by typing "status" into the console. The ID is the first number before a player's name in the list of players.

Related commands

mp_autokick
This command sets whether or not the auto kick feature should be enabled. The auto kick feature kicks people for being idle (AFK) and team damage. Default is 1 (enabled).
cl_hideserverip
This console command is used to hide the IP of your server in your console. This is particularly useful if you're streaming and don't want viewers to be able to catch your IP address, giving them the chance the DDoS the server.
sv_maxvelocity
This command sets the maximum speed any moving object in the game can reach. Default is 3500. Use sv_maxspeed for player speed.
changelevel
This command is used to change the map you're playing on.
rcon
This command will issue the specified rcon command (i.e. issues the specified command on your server). Rcon means remote console - it allows you to execute server commands from the client.
rcon_address
The IP address of the remote console you wish to connect to (default is the address of your own server). Change this only if the rcon address for the server you are connected to is different from the server's IP.
rcon_password
This command will authenticate you for rcon with the specified password.
sv_noclipspeed
This command sets the speed multiplier for noclip mode. With this set to 5 (default) you can reach speeds 5 times as fast as those set by sv_maxspeed.