07.01.2013, 08:52
Use a loop and count all the players where PlayerInfo[i][InLM] > 0
pawn Код:
new total = 0;
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(PlayerInfo[i][InLM])
total++;
}
}
// total will now contain the total amount of players in Last Man Standing
printf("The total amount of players still in LM is: %d", total);