diff --git a/plugins/adminmenu.sp b/plugins/adminmenu.sp index 57d6a35b..9d21bc84 100644 --- a/plugins/adminmenu.sp +++ b/plugins/adminmenu.sp @@ -171,7 +171,14 @@ public __GetAdminTopMenu(Handle:plugin, numParams) public __AddTargetsToMenu(Handle:plugin, numParams) { - return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), GetNativeCell(4)); + new bool:alive_only = false; + + if (numParams >= 4) + { + alive_only = GetNativeCell(4); + } + + return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), alive_only); } public Action:Command_DisplayMenu(client, args)