Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. while true do -- While true is true repeat this
  2. shell.run("clear")
  3. print("Oil Pump Station Control")
  4. if rs.getOutput("back") then
  5. PumpStatus = "Running"
  6. else
  7. PumpStatus = "Stopped"
  8. end
  9. print("Pump status: "..PumpStatus)
  10. write("Password: ")
  11. Ignore,ReadPassword = pcall(read) -- pcall() stops error codes, Which is what a terminate event is.
  12. if ReadPassword == "mypasshere" then
  13. rs.setOutput("back", not rs.getOutput("back"))
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement