Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- shell.run("clear")
- write("Chcete zapnout nebo vypnout svetla? ")
- write("Napiste Zapnout nebo Vypnout (Velke zacatecni pismeno)
- local YesOrNo = read()
- if YesOrNo == "Zapnout" then
- print("Zapinam svetla!")
- rs.setOutput("back", true)
- elseif YesorNo == "Vypnout" then
- rs.setOutput("back", false)
- print("Vypinam svetla!")
- else
- print("Napiste Zapnout nebo Vypnout...")
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement