Posted 08 June 2013 - 06:42 PM
Hello this is my first code, to add more user's copy the first 3 lines of code and enter in the areas.
–My First Code
User = "Your Computer's Username Here" –Your Username
Rank = "Your Rank Here" –Your Rank
Password = "Your Password Here" – Your Password
Write("username: ")
name = read()
if name == (User) then
Write("rank: ")
else
Textutils.slowPrint("Incorrect Username!, Sounding Alarm!")
sleep(5)
os.shutdown()
id = read()
if id == (Rank) then
write("password: ")
else
textutils.slowPrint("Incorrect Rank!")
sleep(2)
os.shutdown()
pass = read("*")
if pass == (Password) then
textutils.slowPrint("Welcome"..Rank.." "..User.."")
–For redstone output delete this line and put it here
–Then put another code here for (sleep, print ect.)
–Here put os.shutdown() if you use redstone output
–Code created by: Toxic_Herobrine
–My First Code
User = "Your Computer's Username Here" –Your Username
Rank = "Your Rank Here" –Your Rank
Password = "Your Password Here" – Your Password
Write("username: ")
name = read()
if name == (User) then
Write("rank: ")
else
Textutils.slowPrint("Incorrect Username!, Sounding Alarm!")
sleep(5)
os.shutdown()
id = read()
if id == (Rank) then
write("password: ")
else
textutils.slowPrint("Incorrect Rank!")
sleep(2)
os.shutdown()
pass = read("*")
if pass == (Password) then
textutils.slowPrint("Welcome"..Rank.." "..User.."")
–For redstone output delete this line and put it here
–Then put another code here for (sleep, print ect.)
–Here put os.shutdown() if you use redstone output
–Code created by: Toxic_Herobrine