Code:
function(id)
{
new body, index;
get_user_aiming(id, index, body);
if(0 < index > get_maxplayers())
{
if(is_user_bot(index))
{
// Is bot
} else {
// Player
find_sphere_class(0,"player",MAX_DISTANCE ,entlist,700 , 1 )
}
} else if(index > get_maxplayers()) {
// Entity
By checking the classname, model, or etc
}
}