29.06.2015, 23:50
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z,)) //Replace x,y,z with the coordinates of Place A
{
new car[MAX_PLAYERS];
SetPlayerPos(playerid,x,y,z);//Replace x,y,z with the coordinates of Place B
car[playerid] = SetVehiclePos(BoatID,x,y,z);//Replace BoatID with the boat id you want and x,y,z with Place B
PutPlayerInVehicle(playerid,car[playerid],0);
}
}
{
if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z,)) //Replace x,y,z with the coordinates of Place A
{
new car[MAX_PLAYERS];
SetPlayerPos(playerid,x,y,z);//Replace x,y,z with the coordinates of Place B
car[playerid] = SetVehiclePos(BoatID,x,y,z);//Replace BoatID with the boat id you want and x,y,z with Place B
PutPlayerInVehicle(playerid,car[playerid],0);
}
}