ItsMods

Full Version: listing all players in a team in a string..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Code:
function()
{
    level.aliveString = "";
    
    for(i=0;i<level.players.size;i++)
    {
        player = level.players[i];
        
        if(IsAlive(player))
                level.aliveString += player.name;
    }    
}
thanks, ill try it out..