This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Daegrath()'s profile picture

Password Protected Count Down Chooser

Started by Daegrath(), 10 December 2012 - 04:42 PM
Daegrath() #1
Posted 10 December 2012 - 05:42 PM
Hi this is my first posted script :)/>.


tArgs = {…}
write("Enter Password: ")
if read() == ("Dae124") then
print("Launching In "..tArgs[1].." Seconds")
for i = tArgs[1], 1, -1 do
sleep(1)
print(i)
end
else
print("Incorret Password")
sleep(1)
os.reboot()
end
sleep(1)
rs.setOutput("right", true)
print("Launched")
sleep(1)
rs.setOutput("right", false)
anonimo182 #2
Posted 11 December 2012 - 10:25 AM
Could you post it in code tags please?

Also you could add later a way to change easily the password