public void RemoveSpawnPoint(DMSpawnPoint spawnPoint) { if (m_DMSpawnPoints.Contains(spawnPoint)) { m_DMSpawnPoints.Remove(spawnPoint); } }
public void AddSpawnPoint(DMSpawnPoint spawnPoint) { if (!m_DMSpawnPoints.Contains(spawnPoint)) { m_DMSpawnPoints.Add(spawnPoint); } }
public void SpawnMobile(Mobile m) { if (DMSpawnPoints.Count > 0) { int rand = Utility.RandomMinMax(0, DMSpawnPoints.Count - 1); DMSpawnPoint sp = (DMSpawnPoint)DMSpawnPoints[rand]; if (sp == null) { World.Broadcast(38, false, "Error: Cannot spawn player {0} to deathmatch {1} when spawnpoints do not exist", m.Serial, this.Serial); RemovePlayer(m); } else { m.MoveToWorld(sp.Location, sp.Map); } } else { World.Broadcast(38, false, "Error: Cannot spawn player {0} to deathmatch {1} when spawnpoints do not exist", m.Serial, this.Serial); RemovePlayer(m); } }
public void AddSpawnPoint(DMSpawnPoint spawnPoint) { if (!m_DMSpawnPoints.Contains(spawnPoint)) m_DMSpawnPoints.Add(spawnPoint); }
public void RemoveSpawnPoint(DMSpawnPoint spawnPoint) { if (m_DMSpawnPoints.Contains(spawnPoint)) m_DMSpawnPoints.Remove(spawnPoint); }