Help is appreciated!
Thanks!
Posted 02 April 2013 - 12:27 PM
Posted 02 April 2013 - 12:31 PM
Posted 02 April 2013 - 12:45 PM
local event, p1, p2, p3 = os.pullEventRaw()
if event == 'terminate' then
print("Attempted to terminate.")
end
Posted 02 April 2013 - 02:25 PM
function getPass(type)
rednet.send(58,"Reg")
id, msg, dis = rednet.receive(10)
regpass = msg
rednet.send(58,"Access")
id, mesg, dis = rednet.receive(10)
access = mesg
end
rednet.open("top")
while true do
term.clear()
term.setCursorPos(1,1)
print("This computer is protected!")
print("Password: ")
term.setCursorPos(10,2)
input = read()
getPass()
if input == regpass then
redstone.setOutput("left", true)
sleep(3)
redstone.setOutput("left",false)
elseif input == access then
error()
end
end
Posted 02 April 2013 - 02:30 PM
Posted 02 April 2013 - 02:47 PM
Posted 02 April 2013 - 02:48 PM
0 members, 2 guests, 0 anonymous users