Advertisement
ecco7777

Passwort Tür

Feb 16th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. shell.run("clear")
  2. function Passwort()
  3. print("Passwort eingeben\n\n")
  4. write("Passwort :  ")
  5. Passwort =io.read()
  6. if Passwort =="2406" then
  7.  shell.run("clear")
  8.  rs.setOutput("back", true)
  9.  sleep(3)
  10.  rs.setOutput("back", false)
  11.  shell.run("clear")
  12.  shell.run("reboot")
  13. else
  14.  shell.run("clear")
  15.  shell.run("reboot")
  16.  
  17.  end
  18. end
  19.  
  20.     Passwort()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement