Advertisement
Guest User

startup

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