Improved IsClientPlayer and IsClientAdmin.

This commit is contained in:
richard 2009-04-16 00:10:14 +02:00
parent 258c839a27
commit d4934a7e9d

View File

@ -237,7 +237,7 @@ bool:IsPlayerInList(client)
bool:IsClientPlayer(client) bool:IsClientPlayer(client)
{ {
if (client > 0 && client <= maxclients) if (!IsFakeClient(client) && client > 0 && client <= maxclients)
{ {
return true; return true;
} }
@ -253,7 +253,7 @@ bool:IsClientPlayer(client)
*/ */
bool:IsClientAdmin(client) bool:IsClientAdmin(client)
{ {
if (GetAdminFlag(GetUserAdmin(client), Admin_Generic)) if (IsClientPlayer(client) && GetAdminFlag(GetUserAdmin(client), Admin_Generic))
{ {
return true; return true;
} }