Advertisement
Guest User

startup

a guest
Jan 1st, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. players2 = {}
  2. t = peripheral.wrap("top")
  3. while true do
  4. -- reports if enemy is inside!
  5.    
  6.     local people = t.getPlayers()
  7.    
  8.     for i,v in pairs(people) do
  9.         if players2[v.name] == nil then
  10.         -- whitelist names here (otherwise will spam!)
  11.             if
  12.             v.name ~= "Inevitableness" and
  13.             v.name ~= "Makeatutara" and
  14.             v.name ~= "Pr0vid3nce" and
  15.             v.name ~= "SacredCross" and
  16.             v.name ~= "  "
  17.             then    
  18.                 players2[v.name] = t.getPlayerByName(v.name).all()
  19.                 x2 = players2[v.name].position.x
  20.                 y2 = players2[v.name].position.y
  21.                 z2 = players2[v.name].position.z
  22.                 -- ONLY REPORTS WHEN IN RANGE OF 10. Change values to your liking
  23.                 if (x2 < 10 and x2 > -10 and y2 < 10 and y2 > -10 and z2 < 10 and z2 > -10) then
  24.        
  25.                     http.get("https://win4winapp.herokuapp.com/?searchterm=" .. v.name .. "%20is%20inside%20the%20Farm")
  26.                     sleep(30.00)
  27.                 end    
  28.             end    
  29.             players2[v] = nil
  30.         end
  31.     end
  32.    
  33.     local people = nil
  34.     players2 = {}
  35.    
  36. sleep(0.05)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement