Is In One Team

public bool IsInOneTeam(byte playerAId, byte playerBId)

Returns true, if the players with the given ids are on the same team. Returns false, if either id doesn’t correspond to an ingame player.