diff --git a/src/zr/hitgroups.inc b/src/zr/hitgroups.inc index 2a41583..acb6962 100644 --- a/src/zr/hitgroups.inc +++ b/src/zr/hitgroups.inc @@ -511,7 +511,7 @@ public Action:HitgroupsCommand(client, argc) if (!hitgroups) { TranslationReplyToCommand(client, "Feature is disabled"); - return; + return Plugin_Handled; } // If not enough arguments given, then stop. @@ -597,7 +597,7 @@ public Action:HitgroupsEnableAllCommand(client, argc) if (!hitgroups) { TranslationReplyToCommand(client, "Feature is disabled"); - return; + return Plugin_Handled; } // x = Hitgroup index. @@ -631,7 +631,7 @@ public Action:HitgroupsHeadshotsOnlyCommand(client, argc) if (!hitgroups) { TranslationReplyToCommand(client, "Feature is disabled"); - return; + return Plugin_Handled; } // x = Hitgroup index. diff --git a/src/zr/zadmin.inc b/src/zr/zadmin.inc index 86250c6..fadc008 100644 --- a/src/zr/zadmin.inc +++ b/src/zr/zadmin.inc @@ -96,12 +96,12 @@ bool:ZAdminMenu(client) //Format(logflags, sizeof(logflags), "%t", "!zadmin main logflags"); // Get conditions for options. - new bool:hitgroups = GetConVarBool(g_hCvarsList[CVAR_HITGROUPS]); + new bool:hitgroupsenabled = GetConVarBool(g_hCvarsList[CVAR_HITGROUPS]); // Add items to menu. AddMenuItem(menu_zadmin, "classmultipliers", classmultipliers); AddMenuItem(menu_zadmin, "weapons", weapons); - AddMenuItem(menu_zadmin, "hitgroups", hitgroups, MenuGetItemDraw(hitgroups)); + AddMenuItem(menu_zadmin, "hitgroups", hitgroups, MenuGetItemDraw(hitgroupsenabled)); AddMenuItem(menu_zadmin, "infect", infect); AddMenuItem(menu_zadmin, "zspawn", zspawn); AddMenuItem(menu_zadmin, "ztele", ztele);