Not in car after teleport
#1

Hello my friends,

i have a question when i teleport to /ammu then i am not in my car but my car is too there.

I have Write this :

if(strcmp("/tuning", cmdtext, true) == 0){
new Pveh;
Pveh = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, 2385.100 ,1033 ,10.800);
SetVehiclePos(Pveh,2385.100 ,1033 ,10.800);
SetPlayerFacingAngle(playerid, 0);
SetVehicleZAngle(Pveh, 0);
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(Pveh, 0);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(Pveh, 0);
SendClientMessage(playerid, 0xFF0000FF, "Tuning Shop");
return 1;
}
Reply
#2

You're teleporting the vehicle and then the car, teleport just the vehicle instead

pawn Код:
if(strcmp("/tuning", cmdtext, true) == 0){
    new Pveh;
    Pveh = GetPlayerVehicleID(playerid);
    SetVehiclePos(Pveh,2385.100 ,1033 ,10.800);
    SetPlayerFacingAngle(playerid, 0);
    SetVehicleZAngle(Pveh, 0);
    SetPlayerInterior(playerid, 0);
    LinkVehicleToInterior(Pveh, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetVehicleVirtualWorld(Pveh, 0);
    SendClientMessage(playerid, 0xFF0000FF, "Tuning Shop");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)