Added manual section about admin authentication. Fixed ZRIsClientPrivileged ignoring console.

This commit is contained in:
richard
2009-10-21 01:42:47 +02:00
parent ffdf79f882
commit b2d679c035
3 changed files with 104 additions and 1 deletions

View File

@ -55,6 +55,13 @@ enum OperationTypes
*/
stock bool:ZRIsClientPrivileged(client, OperationTypes:operationType = OperationType_Generic)
{
// Check if console.
if (client == 0)
{
// Console always has full access no matter what.
return true;
}
// Validate client index.
if (!ZRIsClientValid(client))
{