Heres the e2 code i put instructions on e2 so have fun @name Asgard teleport
@inputs Asgard:wirelink
@persist [Owner Target Target2]:entity [Name Name2]tring [Origin Dest]:vector Send Teleport_everything Block
EDIT by T-17 :|
Code:
interval(200)
runOnChat(1)
Block=1
function entity getGate(N){
findByClass("stargate_*")
return findResult(N)}
if (first() | duped()) {Owner = owner()
hint("Type /help to see how use this awesome teleporter", 7)}
if (chatClk(Owner))
{Explode = Owner:lastSaid():explode(" ")
if (Explode[1,string]=="/wall")
{hideChat(1)
Teleport_everything=0
Origin=Owner:pos()
Dest=owner():toWorld(vec(90, 0, 0))
timer("Send",50)}
if (Explode[1,string]=="/unstuck")
{hideChat(1)
Teleport_everything=0
Origin=Owner:pos()
Dest=owner():toWorld(vec(-90, 0, 0))
timer("Send",50)}
elseif (Explode[1,string]=="/goto")
{hideChat(1)
Teleport_everything=0
Origin=Owner:pos()
Name=(Explode[2,string])
Target=findPlayerByName(Name)
if (Target:isPlayer()==1)
{Dest=Target:pos() + vec(50,50,0)
timer("Send",50)}
else {Send=0
hint("No such players here!",5)
soundPlay(1,1,"buttons/button10.wav")}}
elseif (Explode[1,string]=="/get")
{hideChat(1)
Teleport_everything=0
Name=(Explode[2,string])
Target=findPlayerByName(Name)
Origin=Target:pos()
if (Target:isPlayer()==1)
{if (Target!=Owner)
{Dest=Owner:pos() + vec(50,50,0)
timer("Send",50)}
else {Send=0
hint("You can't send yourself to yourself!",5)
soundPlay(1,1,"buttons/button10.wav")}}
else {Send=0
hint("No such players here!",5)
soundPlay(1,1,"buttons/button10.wav")
}}
elseif (Explode[1,string]=="/aim")
{hideChat(1)
Teleport_everything=0
Origin=Owner:pos()
Dest=Owner:aimPos()
timer("Send",50)}
elseif (Explode[1,string]=="/base")
{hideChat(1)
Teleport_everything=0
Origin=Owner:pos()
Dest=entity():pos()+vec(30,30,0)
timer("Send",50)}
elseif (Explode[1,string]=="/send")
{hideChat(1)
Teleport_everything=1
Origin=Owner:aimPos()
Name=(Explode[2,string])
Target=findPlayerByName(Name)
if (Target:isPlayer()==1)
{Dest=Target:pos() + vec(50,50,0)
timer("Send",50)}
else {Send=0
hint("No such players here!",5)
soundPlay(1,1,"buttons/button10.wav")}}
elseif (Explode[1,string]=="/help")
{hideChat(1)
print("/goto 'playername' to go to selected player ")
print("/get 'playername' to get selected player to you ")
print("/wall to pass trough wall")
print("/unstuck get out from wall you stuck")
print("/base to return to this e2 ")
print("/gate 'number' to teleport to stargate")
print("/send 'playername' to send selected player anythign on your aim ")
print("/ptp 'playername1' 'playername2' to teleport first player to second ")
print("/aim to teleport on your aim position ")
print("/help to see this help again")}
elseif (Explode[1,string]=="/ptp")
{hideChat(1)
Teleport_everything=0
Name=(Explode[2,string])
Name=(Explode[3,string])
Target=findPlayerByName(Name)
Target2=findPlayerByName(Name2)
Origin=Target:pos()
if (Target:isPlayer()==1 & Target2:isPlayer()==1 )
{Dest=Target2:pos() + vec(50,50,0)
timer("Send",50)}
else {Send=0
hint("No such players here!",5)
soundPlay(1,1,"buttons/button10.wav")
}}
elseif (Explode[1,string]=="/gate")
{hideChat(1)
Arg1=Explode[2,string]
Teleport_everything=0
Origin=Owner:pos()
Dest=getGate(Arg1:toNumber()):toWorld(vec(100,0,0))
timer("Send",50)}
}
if (clk("Send")) {Send = 1} else {Send = 0}
Asgard["Origin",vector]=Origin
Asgard["Dest",vector]=Dest
Asgard["Send",number]=Send
Asgard["Teleport Everything",number]=Teleport_everything
Asgard["Disable Use",number]=Block
05-04-2016, 05:05 PM, (This post was last modified: 05-04-2016, 05:50 PM by TCC | Echo Member | D4NNY.)
(05-04-2016, 05:09 PM)T-17 Wrote: just in case anyone was wondering, this chip was made by the9mm on wiremod forums. cached link because wiremod is down.
also it's ['code'] Ew2 code goes in here ['/code'] but without the 's
(05-04-2016, 05:09 PM)T-17 Wrote: just in case anyone was wondering, this chip was made by the9mm on wiremod forums. cached link because wiremod is down.
also it's ['code'] Ew2 code goes in here ['/code'] but without the 's
First. Straight savage
Second. Ew e2
And finally just because you "edited it" doesn't mean you can post the code without the proper credit.
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
(05-04-2016, 05:09 PM)T-17 Wrote: just in case anyone was wondering, this chip was made by the9mm on wiremod forums. cached link because wiremod is down.
also it's ['code'] Ew2 code goes in here ['/code'] but without the 's
#REKT after just a few minutes of the OP being posted.