Get all ids of connected players?
#5

My question, why are you using this stock ?
Create always the for-loop. Here's an example.
I'll give everyone $500 cash!

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        GivePlayerMoney(i, 500);
        SendClientMessage(i, -1, "An Admin has sent you $500.");
    }
}
So, i use i instead of playerid
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)