I need a little Information
#2

Then save players in a race to PVar.

pawn Код:
//When player joins race
SetPVarInt(playerid, "InRace", 1);

//When player leaves race
SetPVarInt(playerid, "InRace", 0);

//In-race players loop
for(new i, mp = GetMaxPlayers(); i < mp; i++)
{
    if(IsPlayerConnected(i) && GetPVarInt(i, "InRace") == 1)
    {
        //some code
    }
}
Reply


Messages In This Thread
I need a little Information - by zack3021 - 13.11.2010, 16:46
Re: I need a little Information - by rs.pect - 13.11.2010, 16:49
Re: I need a little Information - by zack3021 - 13.11.2010, 19:37
Re: I need a little Information - by pater - 13.11.2010, 21:20
Re: I need a little Information - by Scenario - 13.11.2010, 21:23
Re: I need a little Information - by zack3021 - 13.11.2010, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)