02.09.2010, 16:08
First, you set the checkpoint for the playerid, so make it:
And to set the vehicle pos:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerCheckpoint(...);
}
return 1;
}
pawn Код:
public OnPlayerEnterCheckPoint(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
}
return 1;
}