Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error = "Mot de passe incorrect"
- facade = "bottom"
- aserror = false
- term.setBackgroundColor(colors.green)
- write("Username: ")
- username = read()
- write("Mot de passe: ")
- mdp = read()
- if username == "Coca" then
- if mdp == "swag" then
- print("ok")
- else
- term.setBackgroundColor(colors.red)
- print(error)
- aserror = true
- end
- elseif username == "AzorKill" then
- if mdp == "eole" then
- print("ok")
- else
- term.setBacgroundColor(colors.red)
- print(error)
- aserror = true
- end
- elseif username == "Gauthier" then
- if mdp == "nrgy" then
- print("ok")
- else
- term.setBackgroundColor(colors.red)
- print(error)
- aserror = true
- end
- elseif username == "Predator" then
- if mdp == "Gulli" then
- print("ok")
- else
- term.setBackgroundColor(colors.red)
- print(error)
- aserror = true
- end
- end
- if aserror then
- sleep(5)
- os.shutdown()
- end
- rs.setOutput(facade, true)
- sleep(5)
- rs.setOutput(facade, false)
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement