Skip to content

Commit

Permalink
Add a check for enabled Menus Front-End before using it. (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov authored Jul 20, 2024
1 parent 501afe7 commit 097ea34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cstrike/addons/amxmodx/scripting/include/redm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ stock registerClCmd(const clientCmd[], const function[], flags = -1, const info[
infoMl
)

AddMenuItem(info, clientCmd, flags, "ReDeathmatch")
if (is_plugin_loaded("Menus Front-End"))
AddMenuItem(info, clientCmd, flags, "ReDeathmatch")

return clCmdId
}
Expand Down

0 comments on commit 097ea34

Please sign in to comment.