gms_team_player_is_friend
Usage: gms_team_player_is_friend ( player_id )
Description
Returns whether the given player is on your team.
Example
//Decide whether the player can be hit by the bullet
//Collision event: obj_bullet
var owner_id;
owner_id = gms_instance_get_owner(other.id)
if(gms_team_player_is_friend(owner_id))
{
//Player is our friend, let's not get hit!
}else{
//Bullet should hit the player
}