• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help listing all players in a team in a string..
#1
hey i want to list all players names that are alive in a string or save them to a variable or w/e... having problems doing it..



alist = self createFontString( "default", 1.2 );
alist setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", -100, -50 );
alist setText("Players Alive: Player Name");



is how i will do it, how can i store the players names and send it in that though, i tried a few methods, didnt get errors, it just wouldnt show, help plx.
  Reply
#2
Code:
function()
{
    level.aliveString = "";
    
    for(i=0;i<level.players.size;i++)
    {
        player = level.players[i];
        
        if(IsAlive(player))
                level.aliveString += player.name;
    }    
}
[Image: MaEIQ.png]
  Reply
#3
thanks, ill try it out..
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 3,793 04-24-2014, 19:31
Last Post: Casper
  Help Getting string from perk? DidUknowiPwn 3 3,057 09-27-2013, 19:10
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 2,252 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,302 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 2,832 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 25,749 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,089 04-10-2013, 15:23
Last Post: x1412
  [HELP]Adding Spaces in a String dhanin 1 1,761 03-30-2013, 16:09
Last Post: Nukem
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 6,464 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 1,876 01-26-2013, 18:59
Last Post: lammv

Forum Jump:


Users browsing this thread: 1 Guest(s)