Advertisement
Nelsonnn

Untitled

Oct 22nd, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. playerBlibs1 = {}
  2. amouunt1 = 0
  3. function updateGPS2 ()
  4.     if not getElementData(getLocalPlayer(),"logedin") then return end    
  5.     amouunt1 = 0
  6.     for i, blip in ipairs(playerBlibs1) do
  7.         if isElement(blip) then
  8.             destroyElement(blip)
  9.         end
  10.     end
  11.     playerBlibs1 = {}    
  12.     for i, player in ipairs(getElementsByType("player")) do
  13.         if getElementData(localPlayer,"radiowave") == getElementData(player,"radiowave") and getElementData(player,"GPS") >= 1 and getElementData(localPlayer,"GPS") >= 1 and player ~= localPlayer then
  14.             amouunt1 = amouunt1+1
  15.             playerBlibs1[amouunt1] = createBlipAttachedTo(player,0,2,255,0,0)
  16.             setBlipVisibleDistance(playerBlibs1[amouunt1],1000)
  17.         end
  18.     end
  19. end
  20. setTimer(updateGPS2,5000,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement