Thread Rating:
  • 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 4,079 04-24-2014, 19:31
Last Post: Casper
  Help Getting string from perk? DidUknowiPwn 3 3,317 09-27-2013, 19:10
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 2,427 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,648 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 3,077 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 27,714 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,508 04-10-2013, 15:23
Last Post: x1412
  [HELP]Adding Spaces in a String dhanin 1 1,944 03-30-2013, 16:09
Last Post: Nukem
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 7,117 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 2,021 01-26-2013, 18:59
Last Post: lammv

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.