Get alive players
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If a player is alive, their state will be either on foot or in vehicle (driver or passenger).

pawn Код:
new
    count;

foreach(new i : Player)
{
    switch (GetPlayerState(i))
    {
        case 1 .. 3: ++count;
    }
}
PS: foreach is much faster for player loops.
nice u gona make him download includes just for one loop lol gg
Reply


Messages In This Thread
Get alive players - by babecka - 25.07.2014, 09:07
Re: Get alive players - by Stinged - 25.07.2014, 09:15
Re: Get alive players - by Ihateyou - 25.07.2014, 09:16
Re: Get alive players - by babecka - 25.07.2014, 09:20
Re: Get alive players - by Konstantinos - 25.07.2014, 09:25
Re: Get alive players - by Ihateyou - 25.07.2014, 09:54
Re: Get alive players - by Ihateyou - 25.07.2014, 10:11
Re: Get alive players - by icra - 25.07.2014, 10:14
Re: Get alive players - by babecka - 25.07.2014, 15:14

Forum Jump:


Users browsing this thread: 2 Guest(s)