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

@ -11,7 +11,7 @@ new curMenuClass[MAXPLAYERS + 1];
bool:ZRAdminMenu(client)
{
if (!IsClientAdmin(client))
if (!ZRIsClientAdmin(client))
{
ZR_PrintToChat(client, "Must be admin");
return false;
@ -417,7 +417,8 @@ public ZRInfectHandle(Handle:menu_infect, MenuAction:action, client, slot)
ZRSpawnAll(client)
{
for (new x = 1; x < maxclients; x++)
// x = client index.
for (new x = 1; x < MaxClients; x++)
{
if (IsClientInGame(x))
{