Advertisement
Kurotsuki8930

Serv

Jul 10th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. term.setCursorPos(1,1)
  2. term.clear()
  3. string01 = "whveck42"
  4. string02 = "technician1"
  5. print("Bienvenue sur la console de gestion  de la rampe de lancement")
  6. print("Utilisateur:")
  7. string03 = read()
  8. if string03 == (string02)
  9. then
  10. write("Mot de Passe:")
  11. string04 = read("*")
  12. if string04 == (string01) then
  13. rednet.open("right")
  14. id,message = rednet.receive()
  15. if id == 30 and message == "connexion en cours..." then
  16. print("connexion en cours...")
  17. sleep(1)
  18. rednet.send(30,"Connexion effectuee!!!")
  19. print("Ouverture/fermeture du sas")
  20. sleep(3)
  21. end
  22. end
  23. end
  24. rednet.close("right")
  25. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement