Jump to content

Little Help


Whit3

Recommended Posts

http://i.imgur.com/tQJgs7e.jpg

- I must include in their respective team, members who belong

-I tried to do it this way

- Some one can help me? Thanks

.....

for i,player in ipairs(getElementsByType("player")) do 
i = i+1 
namex = getPlayerName(player) 
dxDrawText(namex, 8.71*x, 286*scalaY+i*0.2, 1087*scalaX, 317*scalaY, tocolor(255, 255, 255, 255), 1.10*scalaX, "default-bold", "left", "top", false, false, true, true, false) 
if (i > 5 ) then --it's the 2th team 
dxDrawText(namex, 8.71*x, 427*scalaY+i*0.2, 1087*scalaX, 317*scalaY, tocolor(255, 255, 255, 255), 1.10*scalaX, "default-bold", "left", "top", false, false, true, true, false) 
    end 
end 

Link to comment
  
for i, team in ipairs(getElementsByType("team")) do 
local players = getPlayersInTeam (team) 
local teamName = getTeamName(team) 
for playerKey, playerValue in ipairs ( players ) do 
local playerName = getPlayerName(playerValue) 
local status = isPedDead(playerValue) 
--draw here 
end 
end 
  
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...