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 = {"user"}
- mini.lock()
- mini.clear()
- --print("Welcome to ...!")
- print("Please authenticate.")
- while true do
- e,p=os.pullEvent("player")
- if table.contains(allowed, p) then
- for k,v in pairs(rs.getSides()) do
- rs.setOutput(v, not rs.getOutput(v))
- end
- sleep(3)
- os.reboot()
- else
- print("Access Denied")
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement