Checkpoints
#5

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Actually you cannot simultaneously use DisablePlayerCheckpoint and SetPlayerCheckpoint.
Just simply remove DisablePlayerCheckpoint when you are setting/updating a new CP position.

Example:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckpointDMV[playerid]==200)//dmv_01
    {
        if(IsPlayerInVehicle(playerid, dmvc) || IsPlayerInVehicle(playerid, dmvc1) || IsPlayerInVehicle(playerid, dmvc2))
        {
            CheckpointDMV[playerid] = 201;
            SetPlayerCheckpoint(playerid, 1432.4354,-1658.6343,13.1245, 5.0);
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"DMV: You are not in the car!");
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"DMV: You didn't passed the test, please try again!");
            RemovePlayerFromVehicle(playerid);
              SetVehicleToRespawn(GetPlayerVehicleID(playerid));
              TakingLesson[playerid] = 0;
        }
    }
    else if(CheckpointDMV[playerid]==201)//dmv_02
    {
        CheckpointDMV[playerid] = 202;
        SetPlayerCheckpoint(playerid, 1432.3827,-1588.9227,13.1318, 5.0);
    }
Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
"Checkpoints are asynchronous, meaning only one can be shown at a time. To 'stream' checkpoints (only show them when players are close enough), use a checkpoint streamer."

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint

Is that what you need help with?
still doesn't work..
Reply


Messages In This Thread
Checkpoints - by radiobizza - 17.01.2016, 20:00
Re: Checkpoints - by radiobizza - 17.01.2016, 20:26
Re: Checkpoints - by FreAkeD - 17.01.2016, 21:00
Re: Checkpoints - by Gammix - 18.01.2016, 00:34
Re: Checkpoints - by radiobizza - 18.01.2016, 08:58
Re: Checkpoints - by radiobizza - 18.01.2016, 10:26
Re: Checkpoints - by Eth - 18.01.2016, 11:50

Forum Jump:


Users browsing this thread: 3 Guest(s)