Skip to content

Commit

Permalink
fix: don't show G notify in /guns menu if not enabled
Browse files Browse the repository at this point in the history
fix #69
  • Loading branch information
wopox1337 committed Dec 1, 2023
1 parent 19bf639 commit 9edf78e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ static bool: Player_CallEquipMenu(const player) {
static Menu_ChooseEquip(const player, const EquipType_e: section) {
SetGlobalTransTarget(player)

new menu = menu_create(
fmt("%l^n%l",
section == et_Primary ? "PrimaryEquip" : "SecondaryEquip",
"ToClosePressG"
),
"MenuHandler_ChooseEquip"
)
new menuTitle[128]
formatex(menuTitle, charsmax(menuTitle), "%l", section == et_Primary ? "PrimaryEquip" : "SecondaryEquip")

if (get_cvar_num("redm_open_equip_menu_by_g"))
strcat(menuTitle, fmt("^n%l", "ToClosePressG"), charsmax(menuTitle))

new menu = menu_create(menuTitle, "MenuHandler_ChooseEquip")

static callback
if(!callback)
Expand Down

0 comments on commit 9edf78e

Please sign in to comment.