Skip to content

Commit

Permalink
FIX: don't show G notify in /guns menu if not enabled (#70)
Browse files Browse the repository at this point in the history
* fix: don't show `G` notify in `/guns` menu if not enabled

fix #69

* change chat message about `/guns`
  • Loading branch information
SergeyShorokhov authored Dec 1, 2023
1 parent 19bf639 commit 55d0372
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions cstrike/addons/amxmodx/data/lang/redm/redm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SecondaryEquip = Secondary equip
ToClosePressG = \wTo close the menu - press `\yG\w`
CurrentMode = Current mode:
NextMode = Next Mode -
YouCanChooseEquip = You can select equipment by pressing `^3G^1` (or ^3/guns^1).
YouCanChooseEquip = You can select equipment, type ^3/guns^1.
ModeChanges = The game mode changes.
Modes = Game modes
DisableForceMode = Disable forced mode
Expand All @@ -32,7 +32,7 @@ SecondaryEquip = Дополнительное оружие
ToClosePressG = \wЧтобы закрыть меню - нажмите `\yG\w`
CurrentMode = Текущий режим:
NextMode = Следующий режим -
YouCanChooseEquip = Вы можете выбрать экипировку нажав `^3G^1` (или ^3/guns^1).
YouCanChooseEquip = Вы можете выбрать экипировку, напишите ^3/guns^1.
ModeChanges = Смена режима игры.
Modes = Режимы игры
DisableForceMode = Отключить фиксированный режим
Expand All @@ -53,7 +53,7 @@ SecondaryEquip = 次要武器
ToClosePressG = \w关闭菜单 - 请按 `\yG\w`
CurrentMode = 当前模式:
NextMode = 下一个模式 -
YouCanChooseEquip = 你可以选择装备,通过按 `^3G^1` (或输入 \3/guns^1).
YouCanChooseEquip = 您可以通过输入 \3/guns^1 来选择装备.
ModeChanges = 游戏模式改变。
Modes = 游戏模式
DisableForceMode = 禁用强制模式
Expand Down
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 55d0372

Please sign in to comment.