plugins/funcommands/fire.sp
changeset 2920 1d5645ab7ae0
parent 2810 2ceb5b2b0da0
child 3094 f606f5c1dbca
     1.1 --- a/plugins/funcommands/fire.sp	Mon Feb 08 20:10:24 2010 -0800
     1.2 +++ b/plugins/funcommands/fire.sp	Mon Feb 08 20:14:52 2010 -0800
     1.3 @@ -58,9 +58,7 @@
     1.4  
     1.5  KillAllFireBombs()
     1.6  {
     1.7 -	new maxclients = GetMaxClients();
     1.8 -
     1.9 -	for (new i = 1; i <= maxclients; i++)
    1.10 +	for (new i = 1; i <= MaxClients; i++)
    1.11  	{
    1.12  		KillFireBomb(i);
    1.13  	}
    1.14 @@ -162,9 +160,8 @@
    1.15  		if (GetConVarInt(g_Cvar_FireBombMode) > 0)
    1.16  		{
    1.17  			new teamOnly = ((GetConVarInt(g_Cvar_FireBombMode) == 1) ? true : false);
    1.18 -			new maxClients = GetMaxClients();
    1.19  			
    1.20 -			for (new i = 1; i <= maxClients; i++)
    1.21 +			for (new i = 1; i <= MaxClients; i++)
    1.22  			{
    1.23  				if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
    1.24  				{