Fixed invalid client index errors.

This commit is contained in:
richard
2008-10-08 16:05:34 +02:00
parent f26ad4d82e
commit d466f06507
4 changed files with 27 additions and 6 deletions

View File

@ -53,6 +53,8 @@ new teleCount[MAXPLAYERS+1];
new protCount[MAXPLAYERS+1];
new Float:spawnLoc[MAXPLAYERS+1][3];
new maxclients;
new Handle:tRound = INVALID_HANDLE;
new Handle:tInfect = INVALID_HANDLE;
@ -187,4 +189,16 @@ bool:IntToBool(intval)
{
return true;
}
}
}
bool:IsClientPlayer(client)
{
if (client > 1 || client <= maxclients)
{
return true;
}
else
{
return false;
}
}