Get all ids of connected players?
#4

pawn Код:
new ConnectedID[MAX_PLAYERS];

stock ConnectedPlayersIDs()
{
    new Counter;

    for(new i,g = GetMaxPlayers(); i < g; i++)
        if(IsPlayerConnected(i))
            ConnectedID[Counter++] = i;

    return Counter;
}
Reply


Messages In This Thread
Get all ids of connected players? - by Azazelo - 31.10.2012, 14:46
AW: Get all ids of connected players? - by Skimmer - 31.10.2012, 14:51
Re: Get all ids of connected players? - by Azazelo - 31.10.2012, 14:55
Re: Get all ids of connected players? - by Jefff - 31.10.2012, 14:59
AW: Get all ids of connected players? - by Skimmer - 31.10.2012, 15:00
Re: Get all ids of connected players? - by iggy1 - 31.10.2012, 15:04
Re: Get all ids of connected players? - by Azazelo - 31.10.2012, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)