Originally Posted by
TrainerModz
he use script and allow to teleporting flags
As said above, it's in the mapedit scripts, (manual map_edit.), use the !tp command to add teleportation points.
Code:
if (!(strArrays[0] != "!tp" ? true : this.creating))
{
parameterArray = new Parameter[] { string.Concat("^2START SET: ", player.get_Origin()) };
player.Call("iprintlnbold", parameterArray);
this.startx = player.get_Origin().X;
this.starty = player.get_Origin().Y;
this.startz = player.get_Origin().Z;
this.creating = true;
}
else if ((strArrays[0] != "!tp" ? false : this.creating))
{
parameterArray = new Parameter[] { string.Concat("^2END SET: ", player.get_Origin()) };
player.Call("iprintlnbold", parameterArray);
this.endx = player.get_Origin().X;
this.endy = player.get_Origin().Y;
this.endz = player.get_Origin().Z;
this.creating = false;
string str3 = string.Concat("scripts\\maps\\", str, ".txt");
newLine = new object[] { Environment.NewLine, "elevator: (", this.startx, ",", this.starty, ",", this.startz, ") ; (", this.endx, ",", this.endy, ",", this.endz, ")" };
File.AppendAllText(str3, string.Concat(newLine));