Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.75 KB | None | 0 0
  1. elseif chatStr[1] == "dial" then
  2. if chatStr[2] == "slow" then
  3. if IsValid(Stargate) then
  4. for k,v in pairs(AddressesToUse) do
  5. if k:lower() == chatStr[3] then
  6. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
  7. stargate.dial(Stargate:entity(),v,0)
  8. end
  9. end
  10. elseif chatStr[2] == "fast" then
  11. if IsValid(Stargate) then
  12. for k,v in pairs(AddressesToUse) do
  13. if k:lower() == chatStr[3] then
  14. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
  15. stargate.dial(Stargate:entity(),v,1)
  16. end
  17. end
  18. elseif chatStr[2] == "nox" then
  19. if IsValid(Stargate) then
  20. for k,v in pairs(AddressesToUse) do
  21. if k:lower() == chatStr[3] then
  22. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Dialing Stargate to ", k.." ", ents.owner():getTeamColor(), ents.owner():name())
  23. stargate.dial(StargateP:entity(),v,2)
  24. end
  25. end
  26. end
  27. end
  28.  
  29.  
  30.  
  31. elseif chatStr[1] == "close" then
  32. if chatStr[2] == "gate" then
  33. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Closing the Stargate ", ents.owner():getTeamColor(), ents.owner():name())
  34. if IsValid(StargateP) then
  35. stargate.close(StargateP:entity())
  36. if IsValid(StargateM) then
  37. stargate.close(StargateM:entity())
  38. if IsValid(StargateU) then
  39. stargate.close(StargateU:entity())
  40. end
  41. end
  42. end
  43. end
  44.  
  45. elseif chatStr[1] == "toggle" then
  46. if chatStr[2] == "iris" then
  47. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," Toggling the Stargate iris ", ents.owner():getTeamColor(), ents.owner():name())
  48. if IsValid(StargateP) then
  49. stargate.irisToggle(stargate.iris(StargateP:entity()))
  50. if IsValid(StargateM) then
  51. stargate.irisToggle(stargate.iris(StargateM:entity()))
  52. if IsValid(StargateU) then
  53. stargate.irisToggle(stargate.iris(StargateU:entity()))
  54. end
  55. end
  56. end
  57. end
  58.  
  59.  
  60.  
  61.  
  62. elseif chatStr[1] == "help1" then
  63. 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(), " : ")
  64. timer.simple(5, function()
  65. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon shields up/down ~ Raises/Lowers Shields")
  66. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon activate plating ~ Activates hull Plating")
  67. 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")
  68. end)
  69. elseif chatStr[1] == "help2" then
  70. 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(), " : ")
  71. timer.simple(5, function()
  72. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon engage/disengage/pull/push tractor ~ Engages/Disengages/Pulls/Pushes a Tractor Beam")
  73. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon autodestruct 45123 ~ Activates the autodestruct sequence")
  74. 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) ")
  75. end)
  76. elseif chatStr[1] == "help3" then
  77. 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(), " : ")
  78. timer.simple(5, function()
  79. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon lifesupport on/off ~ Turns your lifesupport on/off ")
  80. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon cloak on/off ~ Turns your cloak on/off ")
  81. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon fire weapons ~ Fires your wired weapons ")
  82. end)
  83. elseif chatStr[1] == "help4" then
  84. 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(), " : ")
  85. timer.simple(5, function()
  86. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon stop fire ~ Stops firing your wired weapons ")
  87. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon reload wirelinks/gps ~ Reloads your auto wirelink/site to site beaming ")
  88. 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 ")
  89. end)
  90. elseif chatStr[1] == "help5" then
  91. 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(), " : ")
  92. timer.simple(5, function()
  93. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me up ~ Beams you up ")
  94. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* up ~ Beams specified player up ")
  95. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam that up ~ Beams the entity you're looking at up ")
  96. end)
  97. elseif chatStr[1] == "help6" then
  98. 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(), " : ")
  99. timer.simple(5, function()
  100. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *location* ~ Beams you to the specified location ")
  101. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *plyName* ~ Beams you to the specified player ")
  102. 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 ")
  103. end)
  104. elseif chatStr[1] == "help7" then
  105. 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(), " : ")
  106. timer.simple(5, function()
  107. 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 ")
  108. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam *plyName* to *location* ~ Beams the specified player to the specified location ")
  109. 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 ")
  110. end)
  111. elseif chatStr[1] == "help8" then
  112. 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(), " : ")
  113. timer.simple(5, function()
  114. printColor(Color(0,200,0),"[Gideon Mainframe]", Color(255,255,255)," /gideon beam me to *stsName* ~ Beam you to the sts constant value specified ")
  115. 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 ")
  116. 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 ")
  117. end)
  118. elseif chatStr[1] == "stshelp" then
  119. 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(), " : ")
  120. timer.simple(5, function()
  121. 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 ")
  122. end)
  123. else
  124. 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())
  125. end
  126. end
  127. end)
  128. if ents.owner():steamID() == "STEAM_0:1:71200736" or "STEAM_0:0:145101342" then
  129. RTBC.registerCommand("lockout",function(chatStr,Ply)
  130. if find.playerByName(chatStr[1]):isPlayer() then
  131. if find.playerByName(chatStr[1]) == ents.owner() then
  132. RTBC.removeCommand("gideon")
  133. end
  134. end
  135. end)
  136. end
  137. chat.listen(RTBC.ParseChat)
  138.  
  139. hook.add( "PostEntityPaste", "RunAfterPaste", function() Found = true timer.simple(3,discover) end)
  140. timer.simple(5,function()
  141. if Found then return end
  142. discover()
  143. end)
  144. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement