Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 0
- username = ("admin")
- pass = ("1234")
- os.oullEvent = os.pullEventRaw
- term.setBackgrounColor(8)
- repeat
- shell.run("clear")
- textutils.slowPrint("Login")
- write("UserNme: ")
- a = read()
- if (a == username) then
- write("Password: ")
- i = i+1
- else
- write("Password: ")
- i = 0
- end
- b = read()
- if (b == pass) then
- shell.run("clear")
- textutils.slowPrint("LoginIn...")
- sleep(1)
- print("LoginSucsesfull")
- i = i+1
- else
- textutils.slowPrint("LoginIn...")
- sleep(1)
- textutils.slowPrint("LoginFailed")
- end
- until i == 2
- shell.run("menu")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement