[HELP]Race checkpints help
#6

Just put together an example.
Think it like x[], y[] and z[] are your different coordinates, i just numbered them to make it easier to understand how they all relate.
pawn Код:
SetPlayerRaceCheckpoint(playerid, 0, x[0], y[0], z[0], x[1], y[1], z[1], 5);
    // Sets the players race checkpoint to the coordinates number "0", and the arrow will be pointing to the next checkpoint, at coordinates number "1"

public OnPlayerEnterRaceCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5, x[0], y[0], z[0]))
        // If the player is in range of the coordinates number "0", the same coordinates as the first checkpoint is at
    {
        SetPlayerRaceCheckpoint(playerid, 0, x[1], y[1], z[1], x[2], y[2], z[2], 5);
            // Then set the next checkpoint, at coordinates "1", and make the arrow point to coordinates number "2"
    }
    if(IsPlayerInRangeOfPoint(playerid, 5, x[1], y[1], z[1]))
        // If the player is in range of the coordinates number "1", the same coordinates as the second checkpoint is at
    {
        SetPlayerRaceCheckpoint(playerid, 0, x[2], y[2], z[2], x[3], y[3], z[3], 5);
            // Then set the next checkpoint, at coordinates "2", and make the arrow point to coordinates number "3"
    }
    // Continue for all checkpoints
    return 1;
}
Reply


Messages In This Thread
[HELP]Race checkpints help - by fuckingcruse - 16.03.2015, 12:54
Re: [HELP]Race checkpints help - by Darrenr - 16.03.2015, 14:33
Re: [HELP]Race checkpints help - by fuckingcruse - 17.03.2015, 16:26
Re: [HELP]Race checkpints help - by CalvinC - 17.03.2015, 16:34
Re: [HELP]Race checkpints help - by fuckingcruse - 17.03.2015, 16:47
Re: [HELP]Race checkpints help - by CalvinC - 17.03.2015, 17:08
Re: [HELP]Race checkpints help - by fuckingcruse - 18.03.2015, 02:35
Re: [HELP]Race checkpints help - by fuckingcruse - 18.03.2015, 16:56
Re: [HELP]Race checkpints help - by CalvinC - 18.03.2015, 16:58
Re: [HELP]Race checkpints help - by fuckingcruse - 18.03.2015, 17:02
Re: [HELP]Race checkpints help - by Vince - 18.03.2015, 17:52
Re: [HELP]Race checkpints help - by fuckingcruse - 19.03.2015, 10:37
Re: [HELP]Race checkpints help - by fuckingcruse - 19.03.2015, 11:45
AW: Re: [HELP]Race checkpints help - by Kaliber - 19.03.2015, 11:50
Re: [HELP]Race checkpints help - by fuckingcruse - 19.03.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)