Posted 27 February 2012 - 01:42 PM
Making a door lock, one that cannot be terminated…
i have this:
and this (ref)
im not a complete noob, but can someone combine these two so that the computer program cannot be terminated
P.S i have a program on a disk called startup that runs this, so that i can stop it from auto running if i need to
i have this:
pass = "password"
write "Password: "
read = ("*")
if input == pass then
print "Welcome!"
rs.setOutput("back" true)
rs.setOutput("right" true)
rs.setOutput("left" true)
sleep(3.5)
rs.setOutput("back" false)
rs.setOutput("right" false)
rs.setOutput("left" false)
else
print "Incorrect Password!"
sleep(2)
os.reboot()
end
and this (ref)
local password = "secret"
repeat
write("Password: ") -- write without line break
local status, input = pcall( read ) -- read input
until input == password -- repeat until the input matches the password
im not a complete noob, but can someone combine these two so that the computer program cannot be terminated
P.S i have a program on a disk called startup that runs this, so that i can stop it from auto running if i need to