[SOLVED] Pickup teleport - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Pickup teleport (
/showthread.php?tid=125538)
[SOLVED] Pickup teleport -
Rubennnnn - 04.02.2010
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?
Re: Pickup teleport -
mansonh - 04.02.2010
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);
}
Re: Pickup teleport -
Rubennnnn - 04.02.2010
Thanks