Help with vehicle teleporting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with vehicle teleporting (
/showthread.php?tid=602058)
Help with vehicle teleporting -
sammp - 01.03.2016
Basically, when I type /enter to go into my garage, I teleport there, but my vehicle doesnt:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnfreezePlayer", 1500, false, "d", playerid);
LinkVehicleToInterior(vid, Houses[gID][g_Interior]);
SetVehiclePos(vid, Houses[gID][g_IntX], Houses[gID][g_IntY], Houses[gID][g_IntZ]);
Vehicles[vid][vInterior] = Houses[gID][g_Interior];
SetVehicleVirtualWorld(vid, Houses[gID][g_World]);
Vehicles[vid][vVW] = Houses[gID][g_World];
PickedUpPickup[playerid] = false;
}
Re: Help with vehicle teleporting -
sammp - 01.03.2016
Fixed; had to set VW