Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw -- Prevents CTRL+T shortcut
- term.clear() -- Clears the screen
- term.setCursorPos(1,1) -- The places the print position to the top of screen
- write("Maison de Vodka")
- --textutils.slowPrint("Maison de Vodka")
- term.setCursorPos(1,2)
- username = {"user1", "user2", "user3"}
- password = {"pass1", "pass2", "pass3"}
- write("Nom d'utilisateur: ")
- user = read()
- write("Mot de passe: ")
- pass = read('*') -- This prevents people from reading the password as you put it in
- for i=1, #username do -- Starts a loop
- if user == username[i] and pass == password[i] then
- access = true
- end
- end
- if access == true then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Connextion en cour.")
- sleep(1,5)
- term.setCursorPos(1,1)
- print("Connextion en cour..")
- sleep(1,5)
- term.setCursorPos(1,1)
- print("Connextion en cour...")
- sleep(1,5)
- term.clear()
- term.setCursorPos(1,1)
- print("Bonjour "..user)
- rs.setOutput("side",true)
- sleep(opentime)
- rs.setOutput("side",false)
- os.shutdown()
- else
- print("Utilisateur ou mot de passe incorrect!")
- sleep(1)
- print("Votre ordinateur va redemarrer")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement