17.02.2009, 06:39
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!
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; }