OnPlayerEnterCheckpoint
#3

First, you set the checkpoint for the playerid, so make it:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate  == PLAYER_STATE_DRIVER)
    {
    SetPlayerCheckpoint(...);
    }
   
    return 1;
}
And to set the vehicle pos:

pawn Код:
public OnPlayerEnterCheckPoint(playerid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
    }

    return 1;
}
Reply


Messages In This Thread
OnPlayerEnterCheckpoint - by Kuruskt - 02.09.2010, 15:59
Re: OnPlayerEnterCheckpoint - by [XST]O_x - 02.09.2010, 16:01
Re: OnPlayerEnterCheckpoint - by CyNiC - 02.09.2010, 16:08
Re: OnPlayerEnterCheckpoint - by Kuruskt - 02.09.2010, 16:16
Re: OnPlayerEnterCheckpoint - by Vince - 02.09.2010, 16:19

Forum Jump:


Users browsing this thread: 2 Guest(s)