Results 1 to 3 of 3
  1. #1
    testy's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Happy

    something happen at last alive?

    how do i check if the person is last alive in his team?

  2. #2
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic
    Exemple:
    Code:
    if ( level.alivePPL < 2 )
    {
    	foreach ( player in level.alivePPL )
    	{
    		if ( player.pers["team"] == game["attackers"] )
    		{
    			// your code for the last player on attackers team
    		}
    		else
    		{
    			// your code for the last player on defenders team
    		}
    	}
    }

  3. #3
    testy's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Happy
    Thank you very much.