Teleporting problem
#1

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.

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));
I don't know but problem only occurs when i'm inside a vehicle.
Reply
#2

pawn Код:
CMD:parkour(playerid, params[])
{
    SetCameraBehindPlayer(playerid);
    SetPlayerPos(playerid, -2245.6714,-1718.3846,480.3323);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
     vehicleid = GetPlayerVehicleID(playerid);
    SetVehiclePos(vehicleid, -2245.6714,-1718.3846,480.3323);
    }
Reply
#3

pawn Код:
if (!strcmp("/parkour", cmdtext, true))
{
    SetPlayerPosWithVehicle(playerid, -2245.6714,-1718.3846,480.3323, cmdtext);
    return 1;
}
Reply
#4

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
pawn Код:
CMD:parkour(playerid, params[])
{
    SetCameraBehindPlayer(playerid);
    SetPlayerPos(playerid, -2245.6714,-1718.3846,480.3323);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
     vehicleid = GetPlayerVehicleID(playerid);
    SetVehiclePos(vehicleid, -2245.6714,-1718.3846,480.3323);
    }
Hi thanks for the reply now I got this warning

Код:
error 017: undefined symbol "vehicleid"
Reply
#5

the warning isnt anything
dont worry
just copy this that i sent you its more sipmle than yours exists allready
Reply
#6

Quote:
Originally Posted by Pro_Drifter
Посмотреть сообщение
the warning isnt anything
dont worry
just copy this that i sent you its more sipmle than yours exists allready
error 017: undefined symbol "SetPlayerPosWithVehicle' weird haven't seen this native before.
Reply
#7

Sorry guys but no works after I teleport somewhere vehicle just destroy.

Also I think you didn't get me XD I mean when i'm IN PARKOUR then teleport the vehicle just destroy and me, myself or my character didn't move or teleported where I wanted.

It says You have been teleported to Abandoned Airport but I was still in parkour
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)