Veh Teleport with player
#6

No need for spam in the script.
I suggest you to use this:
pawn Код:
SetPlayerPosVeh(playerid,Float:x,Float:y,Float:z,interior)
{
    new VehicleID = GetPlayerVehicleID(playerid);
    new gState= GetPlayerState(playerid);
    SetPlayerInterior(playerid,interior);
    if(gState== PLAYER_STATE_DRIVER) return SetVehiclePos(VehicleID,x,y,z);
    SetPlayerPos(playerid,x,y,z);
    return 1;
}
Example:
pawn Код:
SetPlayerPosVeh(playerid,x,y,z,interior);
pawn Код:
SetPlayerPosVeh(playerid,2779.6001,-2010.7078,13.5547,/*interior*/0)
Reply


Messages In This Thread
Veh Teleport with player - by wheelman_WM - 08.03.2011, 11:09
Re: Veh Teleport with player - by yoan103 - 08.03.2011, 11:21
Re: Veh Teleport with player - by tuuker - 08.03.2011, 11:23
Re: Veh Teleport with player - by yoan103 - 08.03.2011, 11:24
Re: Veh Teleport with player - by Davz*|*Criss - 08.03.2011, 11:35
Re: Veh Teleport with player - by HyperZ - 08.03.2011, 11:57

Forum Jump:


Users browsing this thread: 3 Guest(s)