From 097ea349be6472e6fc0df823922b015a0f2794f0 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Sat, 20 Jul 2024 08:45:48 +0300 Subject: [PATCH] Add a check for enabled `Menus Front-End` before using it. (#131) --- cstrike/addons/amxmodx/scripting/include/redm.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cstrike/addons/amxmodx/scripting/include/redm.inc b/cstrike/addons/amxmodx/scripting/include/redm.inc index f77d2b5..47491a4 100644 --- a/cstrike/addons/amxmodx/scripting/include/redm.inc +++ b/cstrike/addons/amxmodx/scripting/include/redm.inc @@ -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 }