How do i make it so when u tele u bring a car?
#1

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!
Reply
#2

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;
}
Reply
#3

Or are you talking about the map teleport?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)