Check only pev_flags may return false results, is_user_bot checks other things :
PHP Code:
__is_user_bot( id )
{
if( 1 <= id <= get_maxplayers() )
{
if( (pev(id, pev_flags) & FL_FAKECLIENT) == FL_FAKECLIENT) )
{
return 1
}
new szAuth[32]
get_user_authid(id, szAuth, charsmax(szAuth))
if( szAuth[0] && equal(szAuth, "BOT") )
{
return 1
}
}
return 0
}
__________________