Ladmin - Vehicle doesn't teleport
#2

Add this stock. And replace SetPlayerPos to SetPlayerPos_Ex

Code:
stock SetPlayerPos_Ex(playerid, Float:x, Float:y, Float:z)
{
    new vID = GetPlayerVehicleID(playerid);
	if(!IsPlayerInAnyVehicle(playerid))
	{
		SetPlayerPos(playerid, x, y, z);
	}
	else
	{
		SetVehiclePos(vID, x, y, z);
	}
	return 1;
}
Reply


Messages In This Thread
Ladmin - Vehicle doesn't teleport - by MustangV10 - 30.06.2017, 20:44
Re: Ladmin - Vehicle doesn't teleport - by Freedom. - 30.06.2017, 20:47
Re: Ladmin - Vehicle doesn't teleport - by MustangV10 - 30.06.2017, 20:55
Re: Ladmin - Vehicle doesn't teleport - by 1fret - 30.06.2017, 21:16
Re: Ladmin - Vehicle doesn't teleport - by ColdGamePlay - 02.07.2017, 03:15

Forum Jump:


Users browsing this thread: 1 Guest(s)