Advertisement
Kaffetrakter

Mastercode Norway

Dec 25th, 2018 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. while true do
  2.     term.clear()
  3.     term.setCursorPos(1, 1)
  4.     print("----------Kaffe Security v1.0----------")
  5.    
  6.     term.setCursorPos(3, 4)
  7.     print("Skriv inn mastercode:")
  8.     local input = read("*")
  9. if input == ("123")
  10.      then
  11.       sleep(1)
  12.       term.clear()
  13.       term.setCursorPos(1, 1)
  14.       print("----------Kaffe Security v1.0----------")
  15.      
  16.       term.setCursorPos(3, 4)
  17.       print("Mastercode godkjent:)")
  18.       rs.setOutput("right", true)
  19.       sleep(5)
  20.      
  21. else
  22.       term.clear()
  23.       term.setCursorPos(1, 1)
  24.       print("----------Kaffe Security v1.0----------")
  25.       term.setCursorPos(3, 4)
  26.       print("Stengt!")
  27.       rs.setOutput("right", false)
  28.  
  29.  end
  30.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement