29.10.2017, 18:25
How to make car respawn after reaching checkpoint ?
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
switch(checkpointid)
{
case your_cp:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
}
}
return 1;
}