Moving vehicle to set coordinates.
#2

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);
}
}
Reply


Messages In This Thread
Moving vehicle to set coordinates. - by iOwnMyKnife - 29.06.2015, 23:40
Re: Moving vehicle to set coordinates. - by kyriakos587 - 29.06.2015, 23:50
Re: Moving vehicle to set coordinates. - by iTakelot - 29.06.2015, 23:58
Re: Moving vehicle to set coordinates. - by nezo2001 - 29.06.2015, 23:58
Re: Moving vehicle to set coordinates. - by iOwnMyKnife - 30.06.2015, 00:13
Re: Moving vehicle to set coordinates. - by Suicidal.Banana - 30.06.2015, 00:22

Forum Jump:


Users browsing this thread: 2 Guest(s)