How to ban weapons on a CS2 server
Type mp_items_prohibited 9 in the server console to ban the AWP by its item index. List several indexes separated by commas.
mp_items_prohibited
Bans specific weapons by their item definition index.
mp_items_prohibited <indices> Examples
mp_items_prohibited 9 Ban the item with index 9, the AWP.
mp_items_prohibited "" Clear the ban list.
Arguments
indicesRequired- Comma separated item definition indices.
What it does
Takes a comma separated list of item index numbers. Banned items cannot be bought or used.
The game's own description: Set this convar to a comma-delimited list of definition indices of weapons that should be prohibited from use.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.
Your own
CS2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.