Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit bc4047d

Browse files
authored
Enable /guns menu when starter weapons not set in config (#79)
1 parent 557fc2c commit bc4047d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cstrike/addons/amxmodx/scripting/CSDM_ReAPI/csdm_equip_manager.sma

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ public client_putinserver(pPlayer)
204204
{
205205
g_iPreviousSecondary[pPlayer] = g_iStarterSecondary
206206
g_iPreviousPrimary[pPlayer] = g_iStarterPrimary
207-
g_bOpenMenu[pPlayer] = false
207+
208+
g_bOpenMenu[pPlayer] = (g_iStarterPrimary == INVALID_INDEX && g_iStarterSecondary == INVALID_INDEX)
209+
208210
g_bAlwaysRandom[pPlayer] = false
209211
g_flPlayerBuyTime[pPlayer] = 0.0
210212
}

0 commit comments

Comments
 (0)