Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p=peripheral.wrap("back")
- while true do
- local r=p.getDialledAddress()
- if r~="" and p.isInitiator()~="true" then
- local a=http.post("http://71.238.152.180:8080/stargate",r)
- if a then
- local s=a.readAll()
- print(s)
- if s=="deny" then
- p.disconnect()
- end
- else
- p.disconnect()
- end
- while p.getDialledAddress()==r do
- sleep(2)
- end
- else
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement