1.1 --- a/plugins/adminmenu.sp Mon Oct 22 00:49:44 2007 +0000
1.2 +++ b/plugins/adminmenu.sp Mon Oct 22 02:05:51 2007 +0000
1.3 @@ -171,7 +171,7 @@
1.4
1.5 public __AddTargetsToMenu(Handle:plugin, numParams)
1.6 {
1.7 - return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3));
1.8 + return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), GetNativeCell(4));
1.9 }
1.10
1.11 public Action:Command_DisplayMenu(client, args)
1.12 @@ -187,7 +187,7 @@
1.13 return Plugin_Handled;
1.14 }
1.15
1.16 -stock UTIL_AddTargetsToMenu(Handle:menu, source_client, bool:in_game_only)
1.17 +stock UTIL_AddTargetsToMenu(Handle:menu, source_client, bool:in_game_only, bool:alive_only)
1.18 {
1.19 new max_clients = GetMaxClients();
1.20 decl String:user_id[12];
1.21 @@ -208,6 +208,11 @@
1.22 continue;
1.23 }
1.24
1.25 + if (alive_only && !IsPlayerAlive(i))
1.26 + {
1.27 + continue;
1.28 + }
1.29 +
1.30 if (source_client && !CanUserTarget(source_client, i))
1.31 {
1.32 continue;