Skip to content
/SLASHPLAY

How to disable rifles in CS2

Type mp_weapons_allow_rifles 0 in the server console so nobody can buy rifles; -1 lets both teams buy them.

mp_weapons_allow_rifles

Sets which team can buy rifles.

mp_weapons_allow_rifles <-1|0|2|3>

Examples

mp_weapons_allow_rifles 0

No rifles can be bought.

Values

ValueWhat it does
-1Default Any team
0 Nobody
2 Terrorists only
3 Counter-Terrorists only

Arguments

teamRequired
-1 any team, 0 nobody, 2 Terrorists, 3 Counter-Terrorists.

What it does

Players on teams that are not allowed cannot buy rifles from the buy menu. Remove rifles for pistol or SMG only servers, or limit them to one side for custom modes.

The game's own description: Determines which team, if any, can purchase Rifles. -1 = any; 0 = non; 2 = Ts; 3 = CTs.

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.