Fixed base plugins using GetMaxClients() instead of MaxClients (bug 3985, r=dvander).
This commit is contained in:
@@ -53,9 +53,7 @@ KillBeacon(client)
|
||||
|
||||
KillAllBeacons()
|
||||
{
|
||||
new maxclients = GetMaxClients();
|
||||
|
||||
for (new i = 1; i <= maxclients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
KillBeacon(i);
|
||||
}
|
||||
|
||||
@@ -74,8 +74,7 @@ KillDrugTimer(client)
|
||||
|
||||
KillAllDrugs()
|
||||
{
|
||||
new maxclients = GetMaxClients();
|
||||
for (new i = 1; i <= maxclients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (g_DrugTimers[i] != INVALID_HANDLE)
|
||||
{
|
||||
|
||||
@@ -58,9 +58,7 @@ KillFireBomb(client)
|
||||
|
||||
KillAllFireBombs()
|
||||
{
|
||||
new maxclients = GetMaxClients();
|
||||
|
||||
for (new i = 1; i <= maxclients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
KillFireBomb(i);
|
||||
}
|
||||
@@ -162,9 +160,8 @@ public Action:Timer_FireBomb(Handle:timer, any:value)
|
||||
if (GetConVarInt(g_Cvar_FireBombMode) > 0)
|
||||
{
|
||||
new teamOnly = ((GetConVarInt(g_Cvar_FireBombMode) == 1) ? true : false);
|
||||
new maxClients = GetMaxClients();
|
||||
|
||||
for (new i = 1; i <= maxClients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
|
||||
{
|
||||
|
||||
@@ -105,9 +105,7 @@ KillFreezeBomb(client)
|
||||
|
||||
KillAllFreezes( )
|
||||
{
|
||||
new maxclients = GetMaxClients( );
|
||||
|
||||
for(new i = 1; i <= maxclients; i++)
|
||||
for(new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (g_FreezeSerial[i] != 0)
|
||||
{
|
||||
@@ -254,9 +252,8 @@ public Action:Timer_FreezeBomb(Handle:timer, any:value)
|
||||
if (GetConVarInt(g_Cvar_FreezeBombMode) > 0)
|
||||
{
|
||||
new bool:teamOnly = ((GetConVarInt(g_Cvar_FreezeBombMode) == 1) ? true : false);
|
||||
new maxClients = GetMaxClients( );
|
||||
|
||||
for (new i = 1; i <= maxClients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
|
||||
{
|
||||
|
||||
@@ -57,9 +57,7 @@ KillTimeBomb(client)
|
||||
|
||||
KillAllTimeBombs()
|
||||
{
|
||||
new maxclients = GetMaxClients();
|
||||
|
||||
for (new i = 1; i <= maxclients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
KillTimeBomb(i);
|
||||
}
|
||||
@@ -141,9 +139,8 @@ public Action:Timer_TimeBomb(Handle:timer, any:value)
|
||||
if (GetConVarInt(g_Cvar_TimeBombMode) > 0)
|
||||
{
|
||||
new teamOnly = ((GetConVarInt(g_Cvar_TimeBombMode) == 1) ? true : false);
|
||||
new maxClients = GetMaxClients();
|
||||
|
||||
for (new i = 1; i <= maxClients; i++)
|
||||
for (new i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user