mp_buy_allow_guns Command

Explore usage, syntax, and examples for the mp_buy_allow_guns CS2 developer console command.

mp_buy_allow_guns

CS2 and CSGO

Command

mp_buy_allow_guns

<1 / 2 / 4 / 8 / 16 / 32 / 255>

Set what types of guns players can buy on your server.

<1 / 2 / 4 / 8 / 16 / 32 / 255>

Choose a number to restrict gun purchases: 1 for pistols only, 2 for SMGs only, 4 for rifles only, 8 for shotguns only, 16 for sniper rifles only, 32 for heavy machine guns only, or 255 to allow all guns (default).

sv_cheats Required

No

Client or Server Command

Client

Server

Default Value

255

mp_buy_allow_guns Generator

Command

mp_buy_allow_guns

<1 / 2 / 4 / 8 / 16 / 32 / 255>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

mp_buy_allow_guns Examples

Command

mp_buy_allow_guns

1

Allow players to buy only pistols.

Command

mp_buy_allow_guns

2

Allow players to buy only SMGs.

Command

mp_buy_allow_guns

4

Allow players to buy only rifles.

Command

mp_buy_allow_guns

8

Allow players to buy only shotguns.

Command

mp_buy_allow_guns

16

Allow players to buy only sniper rifles.

Command

mp_buy_allow_guns

32

Allow players to buy only heavy machine guns.

Command

mp_buy_allow_guns

255

Allow players to buy any gun type (default setting).