Checkpoint for all players
#2

pawn Код:
foreach(new i : Player)
{
    if(inrace[i] == 1) // Change this
    {
        SetPlayerCheckpoint(i, x, y, z); //Insert your cordinates
    }
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(inrace[playerid] == 1)
    {
        if(RaceCheckPoint[playerid] == LAST_CHECKPOINT) // Change ofcourse
        {
            foreach(new i : Player)
            {
                DisablePlayerCheckpoint(i);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Checkpoint for all players - by alibalicharlton - 08.07.2014, 18:37
Re: Checkpoint for all players - by Affan - 08.07.2014, 18:41
Re: Checkpoint for all players - by alibalicharlton - 08.07.2014, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)