Mp buy allow guns
Jump to navigation
Jump to search
It determines the groups of weapons that players can buy in the buy menu.
mp_buy_allow_grenades 0.Syntax
mp_buy_allow_guns <int>
Its value is an integer from 0 to 255, interpreted as a bitfield. Each of the eight bits (1,2,4,8,16,32,64,128) stands for a group of weapons that is either purchasable (> 0) or not (= 0).
| Value | Weapon Type | Weapons |
|---|---|---|
| 1 | Pistols | Glock-18 / P2000 / USP-S Dual Berettas P250 Tec-9 / CZ75-Auto / Five-SeveN Desert Eagle / R8 Revolver |
| 2 | SMGs | MAC-10 / MP9 MP7 / MP5-SD UMP-45 P90 PP-Bizon |
| 4 | Rifles | Galil AR / FAMAS AK-47 / M4A4 / M4A1-S SG 553 / AUG |
| 8 | Shotguns | Nova XM1014 Sawed-Off / MAG-7 |
| 16 | Sniper Rifles | SSG 08 AWP G3SG1 / SCAR-20 |
| 32 | Heavy | M249 Negev |
| 64 | - | - |
| 128 | - | - |
To disable only some of the groups, set this ConVar to 255 minus those groups' values.
To enable only some of the groups, set this ConVar to 0 plus those groups' values.
Adding or subtracting 64 or 128 makes no difference as those bits do not enable/disable anything.
Examples
- The value
255enables the purchase of all weapons. It is the default value. Equivalent to63, 127and191. - The value
35 (= 1+2+32)enables the purchase of pistols, SMGs and heavy weapons. Rifles, shotguns and sniper rifles are not purchasable. Equivalent to99, 163and227. - The value
0disables the purchase of all of these weapon groups. Equivalent to64, 128and192.