24.09.2012, 15:07
Hello guys I noticed something is wrong after I teleport somewhere everytime i'm in a parkour with a vehicle.
I do /parkour, basically I moved to parkour place/map. Right after, I spawn a vehicle it spawned perfectly then if I do teleport to other place, let say /aa my vehicle only teleport but my character is not, I was still in parkour and it just remove me from the vehicle.
But when i'm in parkour ONFOOT then do teleport somewhere, I just teleport. Just what I wanted.
I don't know but problem only occurs when i'm inside a vehicle.
I do /parkour, basically I moved to parkour place/map. Right after, I spawn a vehicle it spawned perfectly then if I do teleport to other place, let say /aa my vehicle only teleport but my character is not, I was still in parkour and it just remove me from the vehicle.
But when i'm in parkour ONFOOT then do teleport somewhere, I just teleport. Just what I wanted.
pawn Код:
CMD:parkour(playerid, params[])
{
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, -2245.6714,-1718.3846,480.3323);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 17);
DestroyVehicle(GetPlayerVehicleID(playerid));