![]() |
|
Release Asgard Teleporter - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: Release Asgard Teleporter (/thread-1693.html) |
Asgard Teleporter - TCC | Echo Member | D4NNY - 05-04-2016 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 BlockEDIT 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]=BlockAsgard Teleporter - TCC | Echo Member | D4NNY - 05-04-2016 Heres the e2 code i put instructions on e2 so have fun (if there are any problems i am on server #1 most days soo just come on and tell me)
RE: Asgard Teleporter - TheOneAndOnlyTee - 05-04-2016 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 RE: Asgard Teleporter - TCC | Echo Member | D4NNY - 05-04-2016 (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.But i edited it soo u know
RE: Asgard Teleporter - Red The Blue Color - 05-04-2016 (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.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. RE: Asgard Teleporter - rouing - 08-04-2016 (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. #REKT after just a few minutes of the OP being posted. RE: Asgard Teleporter - TheOneAndOnlyTee - 08-04-2016 Now that wiremod forums is back up, here's the original link. |