Posted 10 June 2012 - 02:06 AM
hey
I've seen tutorial after tutorial on youtube and now has finally learned how to make a good password door. so I've made it here from what I know.
but i would like to know how to lock out the command Ctrl+T
and it would also be nice if it was possible to have unlimited user with specefic passwords for each user
so if
user1 + pass1 = access
user2 + pass2 = access
user3 + pass3 = access
user4 + pass4 = access
user5 + pass5 = access
user1 + pass2 = denied
user2 + pass1 =denied
and so on to infinity
P.S and 2.2 means 22 trys to make a lock system xD
Edited 10-06-2012
in dont know how to input the table for users i don't mean to make you make my program but if you would mind to just put in so it would be possible to make 5 diffrend user and password.
I've seen tutorial after tutorial on youtube and now has finally learned how to make a good password door. so I've made it here from what I know.
username1 = "user"
password1 = "pass"
function clear()
term.clear()
term.setCursorPos(1,1)
write("sicet7's Lock System v2.2")
term.setCursorPos(1,2)
end
repeat
clear()
write("Username: ")
user = read()
until user == username1
repeat
clear()
write("Password: ")
pass = read("X")
until pass == password1
sleep(1)
write("Welcome User")
rs.setOutput("left",true")
sleep(3)
rs.setOutput("left",false)
os.shutdown()
but i would like to know how to lock out the command Ctrl+T
and it would also be nice if it was possible to have unlimited user with specefic passwords for each user
so if
user1 + pass1 = access
user2 + pass2 = access
user3 + pass3 = access
user4 + pass4 = access
user5 + pass5 = access
user1 + pass2 = denied
user2 + pass1 =denied
and so on to infinity
P.S and 2.2 means 22 trys to make a lock system xD
Edited 10-06-2012
in dont know how to input the table for users i don't mean to make you make my program but if you would mind to just put in so it would be possible to make 5 diffrend user and password.