using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;
namespace Spawn
{
public class Spawn : BaseScript
{
public Spawn()
: base()
{
var spawnLoc = new Vector3(-181.025f, 2212.354f, -290.875f); // Add your Oxyz location here
var IsInDome = Call<string>(47, "mapname") == "mp_dome" ? true : !true;
PlayerConnected += new Action<Entity>((e) =>
{
e.SpawnedPlayer += new Action(() =>
{
if (IsInDome)
e.Call(33529, new Parameter(spawnLoc));
});
});
}
}
}