Vincent38190

InputSystem

May 21st, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. if not fs.exists("/Fsociety/data/side") then
  2. print("ERROR NO SIDE FILE")
  3. os.reboot()
  4. end
  5. sideFile = fs.open("/Fsociety/data/side","r")
  6. modemSide = sideFile.readLine()
  7. PIMside = sideFile.readLine()
  8. sideFile.close()
  9.  
  10. --------------------------------------------
  11. --                                        --
  12. --            Input System from           --
  13. --            Security System V0.1        --
  14. --            By Fsociety                 --
  15. --                                        --
  16. --------------------------------------------
  17.  
  18. local m = peripheral.wrap(modemSide)
  19. local p = peripheral.wrap(PIMside)
  20. while true do
  21. player = p.getInventoryName()
  22.   m.transmit(102,1,player)
  23. sleep(0.1)
  24. end
Add Comment
Please, Sign In to add comment