Command
mp_buy_allow_guns
<1 / 2 / 4 / 8 / 16 / 32 / 255>Explore usage, syntax, and examples for the mp_buy_allow_guns CS2 developer console command.
mp_buy_allow_guns
CS2 and CSGOmp_buy_allow_guns
<1 / 2 / 4 / 8 / 16 / 32 / 255>Set what types of guns players can buy on your server.
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).
No
Client
Server
255
mp_buy_allow_guns Generator
mp_buy_allow_guns
<1 / 2 / 4 / 8 / 16 / 32 / 255>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
mp_buy_allow_guns
1
Allow players to buy only pistols.
mp_buy_allow_guns
2
Allow players to buy only SMGs.
mp_buy_allow_guns
4
Allow players to buy only rifles.
mp_buy_allow_guns
8
Allow players to buy only shotguns.
mp_buy_allow_guns
16
Allow players to buy only sniper rifles.
mp_buy_allow_guns
32
Allow players to buy only heavy machine guns.
mp_buy_allow_guns
255
Allow players to buy any gun type (default setting).