CS2 & CS:GO mp_buy_allow_guns Command

CS:GO & CS2 Compatible
mp_buy_allow_guns <1 / 2 / 4 / 8 / 16 / 32 / 255>

This console command adjusts the rules in your server on what guns players can purchase.

Argument Information

The syntax for this command is as follows:
Name Description
1 / 2 / 4 / 8 / 16 / 32 / 255

Enter a 1 after the command to limit players to only buying pistols. Enter a 2 to limit players to only buying SMGs. Enter a 4 to limit players to only buying rifles. Enter a 8 to limit players to only buying shotguns. Enter a 16 to limit players to only buying sniper rifles. Enter a 32 to limit players to only buying heavy machine guns (e.g. the negev.) Enter a 255 to allow players to purchase anything (default).

Extra Information

Find additional information relating to this command below.
sv_cheats Required
No
Client or Server Command
Both
Default Value
255
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
Ad

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

mp_buy_allow_guns <1 / 2 / 4 / 8 / 16 / 32 / 255>
0/1 arguments filled
1 / 2 / 4 / 8 / 16 / 32 / 255

mp_buy_allow_guns Examples

mp_buy_allow_guns 1

Players can only buy pistols.

mp_buy_allow_guns 2

Players can only buy SMGs.

mp_buy_allow_guns 4

Players can only buy rifles.

mp_buy_allow_guns 8

Players can only buy shotguns.

mp_buy_allow_guns 16

Players can only buy sniper rifles.

mp_buy_allow_guns 32

Players can only buy heavy machine guns.

mp_buy_allow_guns 255

Players can purchase anything (default).