Hi guys, I have a question.
I want to spawn my server in two ways.
If the palyername starts with "asd" spawn here: -181.025f, 2212.354f, -290.875f
else
Spawn somewhere.
I have a Spawn Code:
Useful source
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));
});
});
}
}
}
I know how to compile it as a DLL... but do you know how to spawn people by name?
I remeber a site which include all mw3 c# commands. Anybody know the website's name?