Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- password = "technik"
- inverted = false
- side = "bottom"
- opentime = 5
- rs.setOutput(side,inverted)
- write("Heslo: ")
- input = read("*")
- if input == password then
- if inverted == true then
- print("Pristup povolen")
- rs.setOutput(side, false)
- sleep(opentime)
- os.reboot()
- else
- print("Pristup povolen")
- rs.setOutput(side, true)
- sleep(opentime)
- os.reboot()
- end
- elseif input == "nwm" then
- print("Vypínám se..")
- sleep(2)
- else
- print("Pristup odepren")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement