how to count players
#6

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);
Reply


Messages In This Thread
how to count players - by bleedis - 07.01.2013, 07:49
Re: how to count players - by DiGiTaL_AnGeL - 07.01.2013, 08:24
Re: how to count players - by park4bmx - 07.01.2013, 08:24
Re: how to count players - by JaKe Elite - 07.01.2013, 08:27
Re: how to count players - by park4bmx - 07.01.2013, 08:29
Re: how to count players - by Sinner - 07.01.2013, 08:52
Re: how to count players - by bleedis - 07.01.2013, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)