Advertisement
Mackan90096

DoorControl

Aug 21st, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local debug = true
  2.  
  3. local players = {
  4. ["NewCoolPC"] = true,
  5. ["Mackan90096"] = true}
  6.  
  7.  
  8.  
  9. while true do
  10.   _, p1 = os.pullEvent("player")
  11.     if players[p1] then
  12.     rs.setOutput("top", true)
  13.     sleep(2)
  14.     rs.setOutput("top", false)
  15.     if debug then
  16.     print("Player: "..p1.." Allowed: "..tostring(players[p1]))
  17.     end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement