Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function table.contains(table, element)
- for _, value in pairs(table) do
- if value == element then
- return true
- end
- end
- return false
- end
- allowed = {"sethxia"}
- mini.lock()
- mini.clear()
- print("Welcome to XiTech Home.")
- print("Please authenticate")
- while true do
- e,p=os.pullEvent("player")
- if table.contains(allowed, p) then
- rs.setOutput("left", true)
- rs.setOutput("right", true)
- sleep(3)
- os.reboot()
- else
- print("Access Denied")
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement