Fixed several plugins excluding the last client from loops (bug 3984, r=dvander).

This commit is contained in:
Eric Minekus 2009-10-02 02:26:11 -07:00
parent d4deeb4edd
commit 85963cafe7
4 changed files with 5 additions and 5 deletions

View File

@ -434,7 +434,7 @@ DisplayCenterTextToAll(client, String:message[])
{
new String:nameBuf[MAX_NAME_LENGTH];
for (new i = 1; i < MaxClients; i++)
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || IsFakeClient(i))
{

View File

@ -164,7 +164,7 @@ public Action:Timer_FireBomb(Handle:timer, any:value)
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)
{

View File

@ -107,7 +107,7 @@ KillAllFreezes( )
{
new maxclients = GetMaxClients( );
for(new i = 1; i < maxclients; i++)
for(new i = 1; i <= maxclients; i++)
{
if (g_FreezeSerial[i] != 0)
{
@ -256,7 +256,7 @@ public Action:Timer_FreezeBomb(Handle:timer, any:value)
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)
{

View File

@ -143,7 +143,7 @@ public Action:Timer_TimeBomb(Handle:timer, any:value)
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)
{