Quote:
Originally Posted by kot4404
How can I fix the
?
|
PHP Code:
int client = GetClientOfUserId(GetEventInt(event, "userid"));
Or if you're using this:
https://sm.alliedmods.net/new-api/events/Event/GetInt
Use this:
PHP Code:
int client = GetClientOfUserId(event.GetInt("userid"));
Not sure if this even works:
PHP Code:
stock bool bIsPlayerIdle(int client)
{
if (GetEntProp(client, Prop_Data, "m_humanSpectatorUserID", 1))
{
return true;
}
return false;
}
__________________