Whit3 Posted June 10, 2015 Share Posted June 10, 2015 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
ALw7sH Posted June 10, 2015 Share Posted June 10, 2015 Can you exaplin more what you wan't to do? Link to comment
Whit3 Posted June 10, 2015 Author Share Posted June 10, 2015 I wanna draw members of both teams Like Team 1 Player1 - Alive/death Player2 - Alive/death Player3 - Alive/death Team 2 Player1- Alive/death Player2- Alive/death Player3- Alive/death Link to comment
ALw7sH Posted June 10, 2015 Share Posted June 10, 2015 use getPlayersInTeam to get the team players Link to comment
Whit3 Posted June 11, 2015 Author Share Posted June 11, 2015 okay, but i wanna get the name and draw with dxdrawtext and for every draw i wanna get their status Link to comment
Drakath Posted June 11, 2015 Share Posted June 11, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now