GEEKHUB / COUNTER-STRIKE 2

mp_buy_allow_guns CS2 Command

Syntax, example and explanation of mp_buy_allow_guns.

CS2 reference Server

Syntax

mp_buy_allow_guns [optional value; omit to query]

Description

Restrict purchasable weapon classes through a bitmask.

Argument information

ArgumentDocumented formatRequirement
Recorded argumentoptional value; omit to queryDetailed schema unavailable

Extra information

Category
Economy
Context
Server
Type
ConVar
Reference value
255
Documented values
0–255; bit flags: 1 pistols, 2 SMGs, 4 rifles, 8 shotguns, 16 sniper rifles, 32 heavy MGs
Recorded flags
release

Examples

mp_buy_allow_guns
How to use

Open the developer console and enter the example if appropriate for your session. Record the previous value before changing a setting. Server actions require a server you control.

Copy manually

Clipboard access is unavailable. Select and copy the text below.