Advertisement
SkyCrafter0

Double Password Login CC1.73

May 21st, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. while true do
  4.         term.clear()
  5.         term.setCursorPos(1,1)
  6.         term.write("Password:")
  7.         local password = read()
  8.        
  9.         if password == "MasterKey" then
  10.                 shell.run("ID")
  11.         elseif password == "password1" then
  12.                 shell.run("ID")
  13.         else
  14.                 term.print("Incorrect.Rebooting")
  15.                 sleep(5)
  16.                 os.reboot
  17.         end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement