Keeping car when teleport..
#2

You need to add something like this:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))//checks if they are in a vehicle
{
    SetVehiclePos(GetPlayerVehicleID(playerid)/*Gets their vehicle ID*/,X,Y,Z);//sets vehicle position
}
else//if they are not in a vehicle
{
    SetPlayerPos(playerid,X,Y,Z);//sets the player's position
}
##Edited
Reply


Messages In This Thread
Keeping car when teleport.. - by DiddyBop - 05.12.2009, 18:37
Re: Keeping car when teleport.. - by Badger(new) - 05.12.2009, 18:43
Re: Keeping car when teleport.. - by DiddyBop - 05.12.2009, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)