Advertisement
Guest User

startup

a guest
Feb 17th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. print("Password Menu")
  2. term.setCursorPos(1,4)
  3. print("Username:")
  4. user = 0
  5. user=io.read()
  6. if user == "CrhistianHermano" then
  7. term.setCursorPos(1,7)
  8. print("Password:")
  9. pass = 0
  10. pass =io.read()
  11.  if pass == ("1110204") then
  12.  term.setCursorPos(1,10)
  13.  print("Esperando")
  14.  sleep(1)
  15.  term.clear()
  16.  term.setCursorPos(1,1)
  17.  print("Iniciando")
  18.  else print ("Error: Password incorrecto")
  19.  sleep ( 2 )os.reboot()
  20.  end
  21. else print ("Error: Username Incorrecto")
  22. sleep ( 2 )os.reboot()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement