SA-MP Forums Archive
Teleporting with car - 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: Teleporting with car (/showthread.php?tid=108707)



Teleporting with car - Mechscape - 15.11.2009

Like im with car and driving. If i go pickup then i be teleporting and im without car... how do make it with car teleports?


Re: Teleporting with car - Peter_Corneile - 15.11.2009

pawn Код:
new pickup

public OnGameModeInit()
{
pickup = CreatePickup();

return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(playerid,X,Y,Z);
}
else
{
SetPlayerPos(playerid,X,Y,Z);
}
}

return 1;
}



Re: Teleporting with car - Mechscape - 15.11.2009

Thanks!
//How i can set car float? to 90.


Re: Teleporting with car - Peter_Corneile - 15.11.2009

Quote:
Originally Posted by Tundmatu
Thanks!
//How i can set car float? to 90.
Which Float ?


Re: Teleporting with car - Mechscape - 15.11.2009

Sets Vehicle float. like. 90 / 180 / 270 / 360...


Re: Teleporting with car - Peter_Corneile - 15.11.2009

pawn Код:
SetVehiclePos(playerid,X,Y,Z); //Just put the coords of the place where you want to teleport (same as in SetPlayerPos)



Re: Teleporting with car - Correlli - 15.11.2009

Quote:
Originally Posted by Tundmatu
Sets Vehicle float. like. 90 / 180 / 270 / 360...
You mean the rotation? - https://sampwiki.blast.hk/wiki/SetVehicleZAngle