Jump to content




Safe Login Code


  • You cannot reply to this topic
3 replies to this topic

#1 TyDoesMC

  • Members
  • 154 posts
  • LocationEarth

Posted 08 June 2013 - 05: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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 09 June 2013 - 04:01 AM

Split into new topic.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 09 June 2013 - 04:02 AM

So... what is the problem?

#4 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users