minicl55

Untitled

May 10th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. function startup()
  2. event, n = os.pullEvent("player")
  3. if (n == "minicl55" or n == "AZNCharizard" or n== "Skulldood") then
  4. 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")
  5. event, p = os.pullEvent("char")
  6. if (p == "1") then -- Blue
  7. local pl = "minicl55's house"
  8. redstone.setBundledOutput("bottom", colors.blue)
  9. sleep(1)
  10. redstone.setBundledOutput("bottom", 0)
  11. end
  12. if (p == "2") then --Red
  13. local pl = "Mankool's house"
  14. redstone.setBundledOutput("bottom", colors.red)
  15. sleep(1)
  16. redstone.setBundledOutput("bottom", 0)
  17. end
  18. if (p == "3") then --Orange
  19. local pl = "Skulldood's house"
  20. redstone.setBundledOutput("bottom", colors.orange)
  21. sleep(1)
  22. redstone.setBundledOutput("bottom", 0)
  23. end
  24. if (p == "4") then --Purple
  25. local pl = "Stan's house"
  26. redstone.setBundledOutput("bottom", colors.purple)
  27. sleep(1)
  28. redstone.setBundledOutput("bottom", 0)
  29. end
  30. h = fs.open("log", "a")
  31. h.write("\n"..n.." has been teleported to "..p..".")
  32. sleep(3)
  33. shell.run('clear')
  34. startup()
  35. else
  36. print("**ACCESS DENIED**\nYour attempt to break in has been logged and sent via rednet to other computers, "..n..".")
  37. h = fs.open("log", "a")
  38. h.write("\n"..n.." was denied access.")
  39. sleep(1)
  40. h.close()
  41. startup()
  42. sleep(3)
  43. shell.run('clear')
  44. end
  45. end
  46.  
  47. startup()
Advertisement
Add Comment
Please, Sign In to add comment