Advertisement
Guest User

Untitled

a guest
May 6th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. blip = {}
  2.   players = {}
  3.   for i=0, playerCount do
  4.     players[i] = {
  5.       name = PLAYER.GET_PLAYER_NAME(i),
  6.       connected = NETWORK.NETWORK_IS_PLAYER_CONNECTED(i),
  7.       playerinfo = PLAYER.GET_PLAYER_PED(i),
  8.       buttonExists = false,
  9.       blips = blip[i],
  10.     }
  11.     if(players[i].connected) then  
  12.         playerTracker.init()
  13.         playerTracker.GUI.addButton(players[i].name,playerTracker.SpacerButton,0,0.2,0.04,0.04,titlefont,titlesize,dshadow,alpha,0,221,255,0,221,255)
  14.         if(NETWORK.NETWORK_GET_PLAYER_INDEX(players[i].playerinfo) ~= playerPed) then
  15.           player[i].blips = UI.ADD_BLIP_FOR_ENTITY(players[i].playerinfo)
  16.         end
  17.     else
  18.       UI.REMOVE_BLIP(blip[i])                  
  19.     end
  20.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement