[SOLVED] Pickup teleport
#1

Hi,

I've made a teleport back and forth and when you went in the first teleport, took a car, and went back, you don't get your car with you. And now is the problem that with OnPlayerPickUpPickup you can only do e.g.:
pawn Code:
if(pickupid == pickup2) SetPlayerPos(playerid, 1488.9850, -1721.7241, 8.2083);
and not the vehicle with you. How to get the vehicle with you as well?
Reply
#2

pawn Code:
if(pickupid == pickup2)
{
  if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),1488.9850, -1721.7241, 8.2083);
  else SetPlayerPos(playerid, 1488.9850, -1721.7241, 8.2083);
}
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)