plugins/adminmenu.sp
changeset 1632 3ebff7c63316
parent 1630 2f2fe925f377
child 1782 aa53ee1d9db1
child 1832 1f97873475e8
     1.1 --- a/plugins/adminmenu.sp	Mon Oct 22 05:53:38 2007 +0000
     1.2 +++ b/plugins/adminmenu.sp	Mon Oct 22 06:01:07 2007 +0000
     1.3 @@ -171,7 +171,14 @@
     1.4  
     1.5  public __AddTargetsToMenu(Handle:plugin, numParams)
     1.6  {
     1.7 -	return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), GetNativeCell(4));
     1.8 +	new bool:alive_only = false;
     1.9 +	
    1.10 +	if (numParams >= 4)
    1.11 +	{
    1.12 +		alive_only = GetNativeCell(4);
    1.13 +	}
    1.14 +	
    1.15 +	return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), alive_only);
    1.16  }
    1.17  
    1.18  public Action:Command_DisplayMenu(client, args)