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
Safe Login Code
Started by TyDoesMC, Jun 08 2013 05:42 PM
3 replies to this topic
#1
Posted 08 June 2013 - 05:42 PM
#2
Posted 09 June 2013 - 04:01 AM
Split into new topic.
#3
Posted 09 June 2013 - 04:02 AM
So... what is the problem?
#4
Posted 09 June 2013 - 05:06 AM
Nothing. He posted that because he wanted to reach the three-post threshold.
One of them is (was*) in [New members needing to ask questions, please read.] quoting another one he made.
One of them is (was*) in [New members needing to ask questions, please read.] quoting another one he made.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











