public bool AKIsSpawnId(AKSpawnPoint spawnpoint, AKSpawnPointType.SpawnId id)
 {
     if (spawnpoint.Type.SpawnID == id)
         return true;
     else
         return false;
 }
        public static AKSpawnPoint AKGetSpawnPointById(AKSpawnPointType.SpawnId id)
        {

            foreach (AKSpawnPoint sp in instances)
            {
                if (sp.Type.SpawnID != id)
                    continue;
                else if (sp.Type.SpawnID == id)
                    return sp;
                else
                    return null;
            }

            return null;
        }
 public static AKSpawnPoint AKGetSpawnId(AKSpawnPointType.SpawnId spawnid)
 {
     foreach (AKSpawnPoint point in AKSpawnPoint.Instances())
     {
         if (spawnid != point.Type.SpawnID)
             continue;
         return point;
     }
     return null;
 }