Advertisement
Guest User

startup

a guest
Oct 19th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. players = {"coca44000", "AzorKill", "Gaugausw44"}
  2.  
  3. p = peripheral.wrap("top")
  4.  
  5. while true do
  6.  
  7.   if p.getInventoryName() ~= "pim" then
  8.     isPlayer = false
  9.    
  10.     for k, v in pairs(players) do
  11.       if v == p.getInventoryName() then
  12.         isPlayer = true
  13.       end
  14.     end
  15.    
  16.     if isPlayer == false then
  17.       for i = 1,p.getInventorySize() do
  18.       p.pushItem("south", i,64, i)
  19.       end
  20.     end
  21.     rs.setOutput("bottom", true)
  22.     sleep(3)
  23.     rs.setOutput("bottom", false)
  24.     os.reboot()
  25.  
  26.   end
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement