Guest User

Untitled

a guest
Dec 16th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. master =("jupdyke01")
  3. admin = ("none")
  4. mpass = ("9999") --master pass
  5. apass = ("none") --admin pass
  6.  
  7. sleep(0.5)
  8. print ("booting system, please wait")
  9. sleep(5)
  10. write ("Username: ")
  11.  username = read()
  12.  if username == (master) then
  13.  sleep(0.75)
  14.  print ("username found")
  15.  sleep(0.5)
  16.  write ("Password: ")
  17.   password = read ()
  18.   if password == (mpass) then
  19.   sleep(1)
  20.   print ("Account verified")
  21.   sleep(0.5)
  22.   print ("Welcome master")
  23.   sleep(0.5)
  24. else
  25.  print ("Username and password do not match \nShutting down...")
  26.  sleep(3)
  27.  os.shutdown ()
  28.  end
  29. elseif username == (admin) then -- do not put this if you do not want other account
  30.  sleep(1)
  31.  print ("Username found")
  32.  sleep(0.3)
  33.   write ("Password: ")
  34.   pword = read ()
  35.   if pword == (apass) then
  36.   sleep(1)
  37.   print ("Account verified")  sleep(0.5)
  38.   print ("Welcome Admin")
  39.  else
  40.   sleep(1)
  41.   print ("Username and password do not match \nShutting down...")
  42.   sleep(3)
  43.   os.shutdown ()
  44.   end
  45.  else
  46.  sleep(1)
  47.  print ("Username not found \nShutting down...")
  48.  sleep(3)
  49.  os.shutdown ()
  50.  end
Add Comment
Please, Sign In to add comment