maybe you need something like this?
PHP Code:
#define MAX_PLAYERS 33
public Util_Is_Valid_Player( id )
{
if( 0 == id || id > MAX_PLAYERS )
{
return false;
}
if( is_user_connected( id ) && ( pev( id, pev_flags ) & FL_CLIENT ) )
{
return true;
}
return false;
}
before the call ?
__________________