• Bus Travel AltisLife 3.1.4.8


    Bonjour, sont plusieurs jours, je vais fou pour trouver un moyen de rendre le bus pour la version 3.1.4.8, Je l’ai fait quelques recherches sur ce script , mais il existe seulement pour la version 4.0.

    Certains d’entre vous me aider? Merci d’avance à ceux qui me aider

  • @Giaco

    http://www.altisliferpg.com/topic/9850-tutorial-travel-by-bus/

    Tu peux juste l’adapter, c’est assez simple il y a juste 2/3 variables à changer.

    Je crois même qu’il est déjà fait, quelqu’un à posté ça dans les comm’s:

    #include <macro.h>/*    File: fn_busTravel.sqf    Author: Blaster + Author: [midgetgrimm] edit adi    Description:    Travel by bus!*/private["_vendor","_dest", "_destPos", "_busCost"];//check clientif(!alive player) exitWith {hint"du bist Tod";};if(vehicle player != player) exitWith {hint "Bitte parke dein KFZ ein!";};_vendor = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //get NCP (vendor) name_dest = [_this,3,"",[""]] call BIS_fnc_param; //get dest. name_destPos = [0,0,0]; //default position for error return_busCost = 1000; //default price for bus teleport//Error check//if(isNull _vendor OR EQUAL(_dest,"") OR (player distance _vendor > 10)) exitWith { hint "Please select other dest."; };switch (_vendor) do 	{	case kavalaBus : //NPC bus name	{		switch (_dest) do {			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case athiraBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case pygrosBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case sofiaBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case airportBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case bbBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};					};	};	case bootBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};	case molosBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			default {[];};		};	};		case rebelBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "zaros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_zaros"; };			case "molos" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_molos"; };			default {[];};		};	};		case zarosBus : 	{		switch (_dest) do {			case "kavala" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_kavala"; };			case "athira" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_athira"; };			case "pygros" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_pygros"; };			case "sofia" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_sofia"; };			case "airport" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_airport"; };			case "bb" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_bb"; };			case "boot" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_boot"; };			case "rebel" : { _busCost = 1000; _destPos = getMarkerPos "MarkerBus_rebel"; };			default {[];};		};	};	default {[];};};//if(EQUAL(count _destPos,0)) exitWith {closeDialog 0;};//if(CASH < _busCost) exitWith { hint format ["du hast nicht genug Geld dabei, Preis: %1", _busCost]; };//if(life_cash < (_destInfo select 3)) exitWith {hint format[localize "STR_Bus_Cost",[_cost] call life_fnc_numberText];};life_cash = life_cash - (_busCost);disableUserInput true;titleText ["Du bist im Bus eingeschlafen","BLACK",4];sleep 10;player setPos _destPos;titleText ["du wachst auf und bist jetzt am Ziel","BLACK IN",6];hint "Vielen Dank das Sie mit Altis Bus gefahren sind!";disableUserInput false;  
    
  • Je l’ai essayé , mais il n’y a pas de téléportation, Il est pas que la mauvaise copie coller le script ?

    Je l’ai mis dans le script core/functions…… puis -je ajouter la fonction dans Functions.h

    Il est pas que la mauvaise copie coller le script ?

    Il est pas que la mauvaise copie coller le script ?

    Il est pas que la mauvaise copie coller le script ?

    Il est pas que la mauvaise copie coller le script ?

    Il est pas que la mauvaise copie coller le script ?

  • @Giaco

    Tu dois créer des marqueurs sur ta carte

    (You need to create markers on your map)

    Ensuite tu dois les nommer comme dans le script, exemple “MarkerBus_bb”

    (Then you need to name it like in the script, example “MarkerBus_bb”)

  • @Wawixs Wow !

    Great support speak in english, Altisdev on international language :D

    Brian where is virgule ? :D :p

  • Il doit y’avoir un changement de variable pour que tu es cette erreur après je ne fais que supposer attention ! ^-^

  • @Myzzer

    Toujours le même coup de pelle inutile hein.

  • Dernier message  : Posté 15 mars 2016 - 09h13

    Le sujet qui plus est m’intéresse et il n’es pas fermer donc je suis en droit de poster  ^-^

  • !>!>!>!>!>![spoiler[spoiler]>!>!>!>!>!>!

    Cherche dans le message #12 !

Messages 9Vues 1178