new bool: someonealive;foreach(new i : Player){ if(!YourVar[i]) { someonealive = true; break; }}if(!someonealive) //This means that all dead