Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startup()
- event, n = os.pullEvent("player")
- if (n == "minicl55" or n == "AZNCharizard" or n== "Skulldood") then
- print("Press 1 for minicl55's house\nPress 2 for mankool's house\nPress 3 for skulldood's house\nPress 4 for stan's house, just because")
- event, p = os.pullEvent("char")
- if (p == "1") then -- Blue
- local pl = "minicl55's house"
- redstone.setBundledOutput("bottom", colors.blue)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- end
- if (p == "2") then --Red
- local pl = "Mankool's house"
- redstone.setBundledOutput("bottom", colors.red)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- end
- if (p == "3") then --Orange
- local pl = "Skulldood's house"
- redstone.setBundledOutput("bottom", colors.orange)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- end
- if (p == "4") then --Purple
- local pl = "Stan's house"
- redstone.setBundledOutput("bottom", colors.purple)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- end
- h = fs.open("log", "a")
- h.write("\n"..n.." has been teleported to "..p..".")
- sleep(3)
- shell.run('clear')
- startup()
- else
- print("**ACCESS DENIED**\nYour attempt to break in has been logged and sent via rednet to other computers, "..n..".")
- h = fs.open("log", "a")
- h.write("\n"..n.." was denied access.")
- sleep(1)
- h.close()
- startup()
- sleep(3)
- shell.run('clear')
- end
- end
- startup()
Advertisement
Add Comment
Please, Sign In to add comment