Advertisement
Guest User

startup

a guest
Oct 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 KB | None | 0 0
  1. local rpca = "1"
  2. local crpa = "1"
  3. local vrga = "1"
  4. term.clear()
  5. term.setTextColor(colors.lightGray)
  6. term.setCursorPos(5,9)
  7. print("------------------------------------------")
  8. term.setCursorPos(5,10)
  9. term.setTextColor(colors.purple)
  10. print("CET ORDINATEUR NE FAIT RIEN BANDE DE PUTES")
  11. term.setTextColor(colors.lightGray)
  12. term.setCursorPos(5,11)
  13. print("------------------------------------------")
  14. term.setCursorPos(100,100)
  15. term.setTextColor(colors.lightBlue)
  16. ent = read()
  17. if ent == "" then
  18. term.setCursorPos(9,11)
  19. term.clear()
  20. term.setTextColor(colors.green)
  21. print("Connexion a Aperture Science....")
  22.  
  23. term.setCursorPos(1,2)
  24. term.setTextColor(colors.lightBlue)
  25. print("Merci de vous connecter !")
  26. term.setTextColor(colors.purple)
  27. print("Nom d'utilisateur : ")
  28. nd = read()
  29. if nd == "RedPowerCraft" and rpca == "1" then
  30. print("Merci de rentrer le mot de passe : ")
  31. elseif nd == "Creeperdu38" and crpa == "1" then
  32. print("Merci de rentrer le mot de passe : ")
  33. elseif nd == "VirgileGaminG25" and vrga == "1" then
  34. print("Merci de rentrer le mot de passe : ")
  35. elseif nd == "RedPowerCraft" and rpca == "0" or nd == "Creeperdu38" and crpa == "0" or nd == "VirgileGaminG25" and vrga == "0" then
  36. print("Compte non-actif !")
  37. sleep(1)
  38. print("Redemarrage")
  39. sleep(1)
  40. os.reboot()
  41. else
  42. print("Non reconnu par Aperture Science.....")
  43. sleep(1)
  44. print("Redemarrage")
  45. sleep(1)
  46. os.reboot()
  47. end
  48. mdp = read("*")
  49. if nd == "RedPowerCraft" and mdp == "Redstone" or nd == "VirgileGaminG25" and mdp == "halflife2" then
  50. print("Acces aux serveurs principaux.....")
  51. sleep(1)
  52. print("Connexion....")
  53. sleep(1)
  54. print("Connexion reussie !")
  55. sleep(1)
  56. print("Ouverture de la porte.....")
  57. redstone.setOutput("bottom", true)
  58. sleep(6)
  59. redstone.setOutput("bottom", false)
  60. sleep(1)
  61. os.reboot()
  62. elseif nd == "Creeperdu38" and mdp == "Red-Cube" then
  63. print("Acces aux serveurs principaux.....")
  64. sleep(1)
  65. print("Connexion....")
  66. sleep(1)
  67. print("Connexion reussie !")
  68. sleep(1)
  69. print("Ouverture de la porte.....")
  70. redstone.setOutput("bottom", true)
  71. sleep(6)
  72. redstone.setOutput("bottom", false)
  73. sleep(1)
  74. os.reboot()
  75. else
  76. print("Merci de rentrer le vrai mot de passe...")
  77. sleep(2)
  78. print("Redemarrage en cours....")
  79. sleep(1)
  80. os.reboot()
  81. end
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement