View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 01-13-2018 , 07:07   Re: New API and Syntax
Reply With Quote #898

Quote:
Originally Posted by kot4404 View Post
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(clientProp_Data"m_humanSpectatorUserID"1))
    {
        return 
true;
    }

    return 
false;

__________________
Psyk0tik is offline