Fixed several plugins excluding the last client from loops (bug 3984, r=dvander).
This commit is contained in:
parent
d4deeb4edd
commit
85963cafe7
@ -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))
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user