05.12.2009, 18:43
You need to add something like this:
##Edited
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
}