Teleport with car
#6

Quote:
Originally Posted by aircombat
Посмотреть сообщение
under your /teleport command use :

Код:
if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
else return SetPlayerPos(playerid,X,Y,Z);
Probably not correct.
When the player is passenger this would teleport the whole car...

Quote:
Originally Posted by Panormitis
Посмотреть сообщение
How can I add and interior for the vehicle teleport?
Replace:
pawn Код:
SetPlayerPos(playerid,....);
as:
pawn Код:
SetPlayerInterior(playerid,interior ID);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
    SetVehiclePos(player's vehicle ID,x_coord,y_coord,z_coord);
    LinkVehicleToInterior(player'
s vehicle ID,interior ID);
}
else SetPlayerPos(playerid,x_coord,y_coord,z_coord);
Reply


Messages In This Thread
Teleport with car - by Panormitis - 28.04.2011, 20:53
Re: Teleport with car - by Joe Staff - 28.04.2011, 21:02
Re: Teleport with car - by Panormitis - 28.04.2011, 21:21
Re: Teleport with car - by aircombat - 28.04.2011, 21:24
Re: Teleport with car - by Panormitis - 29.04.2011, 12:16
Re: Teleport with car - by leong124 - 29.04.2011, 12:26
Re: Teleport with car - by Max_Coldheart - 29.04.2011, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)