Weapon selection menu with the ability to customize access to each of the types.
The plugin blocks the buy menu and the buy zone. Bots are always given a random weapon.
Weapons are issued only once after spawn (no spam by weapons
After the first choice of weapons on the server, the player is given weapons immediately.
This choice is saved in the database (clientprefs
) and on subsequent logins the previously selected set is issued.
Also, the plugin gives out grenades (you can select only one type at a time, the maximum amount set by the corresponding cvar ammo_*_max
) and armor. Counter-terrorists also receive defuse kits.
All weapons thrown out and dropped from the corpses will be destroyed after the time set by the cvar (no spam by weapons, although the removal can be turned off
For each of the types of weapons, you can choose the option "Random" and then every time a random one will be issued from the available ones (grenades can be turned off altogether
There are no separate settings for admins.
Place compiled plugin (css_gunmenu.smx
) into the plugins folder (../addons/sourcemod/plugins/
Needed SM1.8+ for compile.
The plugin creates a config named css_gun_menu.cfg
Changes in 1.1.3 [2021/10/07]:
- sm_gun_menu_primary - Allowed primary weapons
AWP - 1
SG 550 - 2
G3/SG1 - 4
Scout - 8
AK - 16
M4A1 - 32
SG 552 - 64
AUG - 128
Galil - 256
FAMAS - 512
MAC-10 - 1024
MP5 - 2048
TMP - 4096
UMP 45 - 8192
P90 - 16384
M3 - 32768
М4 - 65536 // aka xm1014
M249 - 131072
- sm_gun_menu_secondary - Allowed secondary weapons
Glock - 1
USP - 2
P228 - 4
Desert Eagle - 8
Five-SeveN - 16
Dual Beretta - 32
- sm_gun_menu_grenades - Allowed grenades (0 - disallow all grenades)
HE grenade - 1
Stun grenade - 2
Smoke grenade - 4
- sm_gun_menu_armor - Give to player: 0 - nothing, 1 - armor, 2 - armor + helmet
- sm_gun_menu_clear - Time after which the dropped weapon will be removed (-1 - disable cleaning)
Primary weapons menu (allowed AWP and Scout only, sm_gun_menu_primary = 9)
Secondary weapons menu
Secondary weapons menu (the few pistols are prohibited, sm_gun_menu_secondary = 5)
Grenades menu (flashbangs are resricted, sm_gun_menu_grenades = 5)
- Dropped C4 is no longer removed