Get all ids of connected players?
#2

Add this top of the script

pawn Код:
new PlayerID[MAX_PLAYERS];
pawn Код:
stock ConnectedPlayersIDs()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            PlayerID[i] = i;
        }
    }
    return 1;
}
You can use PlayerID[playerid] to get anyones ID
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)