Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function defSettings()
- password="Ice"
- end
- function Welcome()
- print("Welkom bij de DegC Nucleare Controle Kamer!")
- print("Wat is uw wachtwoord?")
- userinput=read("*")
- end
- function checkpassword()
- if userinput == password then
- rs.setOutput("back", true)
- sleep(1)
- rs.setOutput("back", false)
- end
- end
- function clearscreen()
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- end
- function main()
- while true do
- defSettings()
- Welcome()
- checkpassword()
- clearscreen()
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment