xXm0dzXx

Untitled

Jun 23rd, 2012
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. --IP SYSTEM
  2. local OpenPorts = {}
  3.  
  4. function getIP()
  5. x, y, z = gps.locate(2, false)
  6. return os.getComputerID().."."..x.."."..y.."."..z
  7. end
  8.  
  9. function openPort( _sPort )
  10. OpenPorts[_sPort] = true
  11. end
  12.  
  13. function getPorts()
  14. return OpenPorts
  15. end
Advertisement
Add Comment
Please, Sign In to add comment