Focker Posted July 26, 2015 Share Posted July 26, 2015 Hello I have a question. I can say that functions can take to leave me a list of a team player. Link to comment
GTX Posted July 27, 2015 Share Posted July 27, 2015 What? List of players in a team? getPlayersInTeam Or leave specific team? setPlayerTeam(PLAYER, nil) Link to comment
Focker Posted July 27, 2015 Author Share Posted July 27, 2015 no, I put a list but it guiCreateGridList a team Link to comment
Focker Posted July 28, 2015 Author Share Posted July 28, 2015 I want to try to make a script that leaves the team list something like function ponerPlayerList () if ( players ) then guiGridListClear(list) for id, player in ipairs(getElementsByType("player")) do local swats = ( player == localPlayer ) and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) == 'Criminals') local row = guiGridListAddRow ( list ) guiGridListSetItemText ( list, row, players, getPlayerName ( player ), false, false ) end end end Link to comment
GTX Posted July 28, 2015 Share Posted July 28, 2015 function ponerPlayerList () if ( players ) then guiGridListClear(list) for id, player in ipairs(getElementsByType("player")) do if player ~= localPlayer and getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Criminals" then local row = guiGridListAddRow ( list ) guiGridListSetItemText ( list, row, players, getPlayerName ( player ), false, false ) end end end end Link to comment
Focker Posted July 28, 2015 Author Share Posted July 28, 2015 It does not work, plus I want everyone to see that list but that is only the criminal team Link to comment
Focker Posted July 29, 2015 Author Share Posted July 29, 2015 It leaves no mistake, but I want everyone to see the list but only leave the team since the script Link to comment
GTX Posted July 29, 2015 Share Posted July 29, 2015 Whaaaat???? When player leaves the team, the grid list does not get refreshed? Link to comment
Focker Posted July 29, 2015 Author Share Posted July 29, 2015 but nose if do to that list aparesca one team in place and that everyone can see Link to comment
GTX Posted July 29, 2015 Share Posted July 29, 2015 I don't understand a word you say, I cannot help you. Link to comment
Focker Posted July 29, 2015 Author Share Posted July 29, 2015 please help me aparesca need a team on the list as a team in the script and everyone can see that list Link to comment
GTX Posted July 29, 2015 Share Posted July 29, 2015 How can I help you if I can't understand you? Also note that this is not a request forum. Write your own script, we can help you solve the issues. Read this: viewtopic.php?f=91&t=47897 Link to comment
KariiiM Posted July 29, 2015 Share Posted July 29, 2015 Hey,use translation to let helpers understand your point and to let it safe,if you're talking with spanish language then,you have to go to this section "Other Languages" https://forum.multitheftauto.com/viewforum.php?f=117 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