Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear() -- Clears the screen
- term.setCursorPos(1, 1)
- username = {"Batponney","cleyms"}
- password = {"Root","Admin"}
- i = paintutils.loadImage("interfaceConnect")
- paintutils.drawImage(i, 1, 1)
- term.setCusorPos(16,2)
- term.setBackgroudColor(colors.orange)
- term.setTextColor(colors.black)
- term.setCusorPos(5,5)
- term.setBackgroudColor(colors.black)
- term.setTextColor(colors.orange)
- term.write("Batponney")
- term.setCursorPos(21,5)
- term.write("<-users->")
- term.setCursorPos(42,5)
- term.write("cleyms")
- term.setCursorPos(1,8)
- term.write("------------------------------------------------------------")
- while true do
- local event, button, x, y = os.pullEvent( "mouse_click" )
- if x >= 3 and x <= 16 and y >= 4 and y <= 6 then
- user == "Batponney"
- term.setCursorPos(21,10)
- textutils.slowWrite("Password:")
- term.setCursorPos(23,11)
- pass = read('#')
- break
- elseif x >= 38 and x <= 50 and y >= 4 and y <= 6 then
- user == "cleyms"
- term.setCursorPos(21,10)
- textutils.slowWrite("Password:")
- term.setCursorPos(22,11)
- pass = read('#')
- break
- end
- for i=1, #username do -- Starts a loop
- if user == username[i] and pass == password[i] then
- access = true
- else access = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement