SA-MP Forums Archive
How do i make it so when u tele u bring a 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: How do i make it so when u tele u bring a car? (/showthread.php?tid=65879)



How do i make it so when u tele u bring a car? - Drift_04 - 17.02.2009

i want to know how to make it so when u teleport somewhere u bring your vehicle with you. anybody know how to please? thankyou!


Re: How do i make it so when u tele u bring a car? - My_Waffles_Bitch_L0L - 17.02.2009

i think u mean what i think, but im not sure :P
here u got an example:

Код:
if(strcmp(cmdtext, "/ls", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1262.350000,-2028.047000,59.352750);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.681500);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetCameraBehindPlayer(playerid);
}
else
{
SetPlayerPos(playerid, 1262.350000,-2028.047000,59.352750);
SetPlayerFacingAngle(playerid, 180.681500);
SetCameraBehindPlayer(playerid);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "You have teleported to Los Santos.");
return 1;
}



Re: How do i make it so when u tele u bring a car? - kazimieras - 17.02.2009

Or are you talking about the map teleport?