Recoded IsClientPlayer, renamed to IsClientValid, replaced

GetMaxClients() with maxclients
Ignore diff for zhp.inc and spawnprotect.inc
This commit is contained in:
Greyscale
2009-04-16 03:57:46 +02:00
parent f39570205e
commit 872e41e6d2
14 changed files with 394 additions and 385 deletions

View File

@ -127,7 +127,6 @@ public OnLibraryAdded(const String:name[])
public OnMapStart()
{
maxclients = GetMaxClients();
MapChangeCleanup();
LoadModelData();
@ -226,13 +225,14 @@ MapChangeCleanup()
AmbienceStopAll();
AntiStickReset();
for (new client = 1; client <= maxclients; client++)
// x = client index.
for (new x = 1; x <= MaxClients; x++)
{
for (new x = 0; x < MAXTIMERS; x++)
for (new y = 0; y < MAXTIMERS; y++)
{
if (tHandles[client][x] != INVALID_HANDLE)
if (tHandles[x][y] != INVALID_HANDLE)
{
tHandles[client][x] = INVALID_HANDLE;
tHandles[x][y] = INVALID_HANDLE;
}
}
}
@ -250,7 +250,7 @@ ZREnd()
new maxplayers = GetMaxClients();
for (new x = 1; x <= maxplayers; x++)
{
if (!IsClientConnected(x) || !IsClientInGame(x))
if (!IsClientInGame(x))
{
continue;
}