Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif chatStr[1] == "dial" then
- if chatStr[2] == "slow" then
- if IsValid(Stargate) then
- for k,v in pairs(AddressesToUse) do
- if k:lower() == chatStr[3] then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
- stargate.dial(Stargate:entity(),v,0)
- end
- end
- elseif chatStr[2] == "fast" then
- if IsValid(Stargate) then
- for k,v in pairs(AddressesToUse) do
- if k:lower() == chatStr[3] then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
- stargate.dial(Stargate:entity(),v,1)
- end
- end
- elseif chatStr[2] == "nox" then
- if IsValid(Stargate) then
- for k,v in pairs(AddressesToUse) do
- if k:lower() == chatStr[3] then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
- stargate.dial(StargateP:entity(),v,2)
- end
- end
- end
- end
- elseif chatStr[1] == "close" then
- if chatStr[2] == "gate" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Closing the Stargate ", ents.owner():getTeamColor(), ents.owner():name())
- if IsValid(StargateP) then
- stargate.close(StargateP:entity())
- if IsValid(StargateM) then
- stargate.close(StargateM:entity())
- if IsValid(StargateU) then
- stargate.close(StargateU:entity())
- end
- end
- end
- end
- elseif chatStr[1] == "toggle" then
- if chatStr[2] == "iris" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Toggling the Stargate iris ", ents.owner():getTeamColor(), ents.owner():name())
- if IsValid(StargateP) then
- stargate.irisToggle(stargate.iris(StargateP:entity()))
- if IsValid(StargateM) then
- stargate.irisToggle(stargate.iris(StargateM:entity()))
- if IsValid(StargateU) then
- stargate.irisToggle(stargate.iris(StargateU:entity()))
- end
- end
- end
- end
- elseif chatStr[1] == "help1" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 1 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon shields up/down ~ Raises/Lowers Shields")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon activate plating ~ Activates hull Plating")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon divert spower to fore/aft/port/starboard/dorasl/ventral/all ~ Diverts Shield power to fore/aft/port/starboard/dorasl/ventral/all Shields")
- end)
- elseif chatStr[1] == "help2" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 2 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon engage/disengage/pull/push tractor ~ Engages/Disengages/Pulls/Pushes a Tractor Beam")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon autodestruct 45123 ~ Activates the autodestruct sequence")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon warp/swarp/pwarp *location* ~ Warps your ship to a location/Warps your shuttle to a location/Warps your ship to a player (pwarp only works with a qs drive or a ship drive) ")
- end)
- elseif chatStr[1] == "help3" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 3 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon lifesupport on/off ~ Turns your lifesupport on/off ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon cloak on/off ~ Turns your cloak on/off ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon fire weapons ~ Fires your wired weapons ")
- end)
- elseif chatStr[1] == "help4" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 4 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon stop fire ~ Stops firing your wired weapons ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon reload wirelinks/gps ~ Reloads your auto wirelink/site to site beaming ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon sbeam shuttle up/down ~ Beams you up to your shuttle/down from your shuttle ")
- end)
- elseif chatStr[1] == "help5" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 5 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me up ~ Beams you up ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* up ~ Beams specified player up ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam that up ~ Beams the entity you're looking at up ")
- end)
- elseif chatStr[1] == "help6" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 6 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *location* ~ Beams you to the specified location ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *plyName* ~ Beams you to the specified player ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam that to *location* ~ Beams the entity you're looking at to the specified location ")
- end)
- elseif chatStr[1] == "help7" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 7 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam that to *plyName* ~ Beams the entity you're looking at to the specified player ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* to *location* ~ Beams the specified player to the specified location ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* to *plyName* ~ Beams the specified player to the other specified player ")
- end)
- elseif chatStr[1] == "help8" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is page 8 of the commands that you can use ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *stsName* ~ Beam you to the sts constant value specified ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* to *stsName* ~ Beam the specified player to the sts constant value specified ")
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam that to *stsName* ~ Beam the entity you're looking at to the sts constant value specified ")
- end)
- elseif chatStr[1] == "stshelp" then
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," This is how to set up the site to site constant value ", ents.owner():getTeamColor(), ents.owner():name(), " : ")
- timer.simple(5, function()
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," In the constant value, on the first line, put the prefix [BEAM]: then after that put the name of the location e.g. [BEAM]: Bridge ")
- end)
- else
- printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Error: Command: ",chatStr[1]," not recognised, please enter a registered command ", ents.owner():getTeamColor(), ents.owner():name())
- end
- end
- end)
- if ents.owner():steamID() == "STEAM_0:1:71200736" or "STEAM_0:0:145101342" then
- RTBC.registerCommand("lockout",function(chatStr,Ply)
- if find.playerByName(chatStr[1]):isPlayer() then
- if find.playerByName(chatStr[1]) == ents.owner() then
- RTBC.removeCommand("gideon")
- end
- end
- end)
- end
- chat.listen(RTBC.ParseChat)
- hook.add( "PostEntityPaste", "RunAfterPaste", function() Found = true timer.simple(3,discover) end)
- timer.simple(5,function()
- if Found then return end
- discover()
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement