Fixed base plugins using GetMaxClients() instead of MaxClients (bug 3985, r=dvander).

This commit is contained in:
Nicholas Hastings
2010-02-08 20:14:52 -08:00
parent d484979fe8
commit 0af39de346
18 changed files with 35 additions and 70 deletions
+1 -3
View File
@@ -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);
}
+1 -2
View File
@@ -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)
{
+2 -5
View File
@@ -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)
{
+2 -5
View File
@@ -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)
{
+2 -5
View File
@@ -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)
{