Improved IsClientPlayer and IsClientAdmin.
This commit is contained in:
parent
258c839a27
commit
d4934a7e9d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user