Bonjour j'ai un petit soucis je n'arrive pas à faire en sorte que les joueur puissent acheter les maisons. il y à bien l'incinération mais rien... Pouvez vous m'aidez?
closeDialog 0;
if (((_house getVariable ["house_owner",[]]) select 0) != (getPlayerUID player)) exitWith {hint (["STR_CANNOT_SELL_HOUSE","Max_Settings_GiveVehicle","KeyTransfer_Localization"] call theprogrammer_core_fnc_localize);};
class Housing {
class LeBourg {
class Land_i_House_Big_02_V1_F {
price = 155000;
numberCrates = 3;
restrictedPos[] = {0,1,2,3,4};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {2,0,3.5};
};
class Land_i_House_Big_02_V2_F : Land_i_House_Big_02_V1_F{};
class Land_i_House_Big_02_V3_F : Land_i_House_Big_02_V1_F{};
class Land_i_House_Big_01_V1_F {
price = 220000;
numberCrates = 4;
restrictedPos[] = {2,3};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {0,-2,3.8};
};
class Land_i_House_Big_01_V2_F : Land_i_House_Big_01_V1_F{};
class Land_i_House_Big_01_V3_F : Land_i_House_Big_01_V1_F{};
class Land_i_House_Small_01_V1_F {
price = 105000;
numberCrates = 2;
restrictedPos[] = {};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {-1.5,0,2};
};
class Land_i_House_Small_01_V2_F : Land_i_House_Small_01_V1_F{};
class Land_i_House_Small_01_V3_F : Land_i_House_Small_01_V1_F{};
class Land_i_House_Small_02_V1_F {
price = 100050;
numberCrates = 2;
restrictedPos[] = {};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {2,0,2.4};
};
class Land_i_House_Small_02_V2_F : Land_i_House_Small_02_V1_F{};
class Land_i_House_Small_02_V3_F : Land_i_House_Small_02_V1_F{};
class Land_i_House_Small_03_V1_F {
price = 125000;
numberCrates = 3;
restrictedPos[] = {};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {-3.3,1,2.5};
};
class Land_i_House_Small_03_V3_F : Land_i_House_Small_03_V1_F{};
class Land_i_Stone_HouseSmall_V1_F {
price = 75000;
numberCrates = 1;
restrictedPos[] = {0,1,3,4};
canGarage = false;
garageSpawnPos[] = {};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {0.90,2.3,4};
};
class Land_i_Stone_HouseSmall_V2_F : Land_i_Stone_HouseSmall_V1_F{};
class Land_i_Stone_HouseSmall_V3_F : Land_i_Stone_HouseSmall_V1_F{};
};
class Tanoa {
// Houses with Garages
class Land_Hotel_01_F {
price = 96000;
numberCrates = 5;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {-1.27246,-11.4361,-5.63821};
garageSpawnDir = 0;
garageBlacklists[] = {{5909.93,10491.9,-0.153875}};
lightPos[] = {0.5,0.5,7.5};
};
class Land_Hotel_02_F {
price = 200000;
numberCrates = 8;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {14.1128,1.51736,-4.18449};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {0,1,3};
};
class Land_GarageShelter_01_F {
price = 80000;
numberCrates = 1;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {0.241684,-5.72266,-1.46744};
garageSpawnDir = 90;
garageBlacklists[] = {{10998,9698.24,-0.219376}};
lightPos[] = {0,0,2};
};
class Land_House_Big_02_F {
price = 450000;
numberCrates = 2;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {12.8365,0.414551,-1.81252};
garageSpawnDir = 0;
garageBlacklists[] = {};
lightPos[] = {0,0,2};
};
class Land_School_01_F {
price = 300000;
numberCrates = 8;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {-6.91215,-11.5288,-1.70768};
garageSpawnDir = 0;
garageBlacklists[] = {{10957,9532.16,-0.528702}};
lightPos[] = {0,0,2.65};
};
class Land_House_Big_04_F {
price = 140000;
numberCrates = 2;
restrictedPos[] = {};
canGarage = false;
garageSpawnPos[] = {12.308,-0.228027,-3.34715};
garageSpawnDir = 0;
garageBlacklists[] = {{5879.2,10002.7,-0.278984},{9508.48,13082.7,0.021286}};
lightPos[] = {0,0,3.5};
};
class Land_House_Big_03_F {
price = 900000;
numberCrates = 3;
restrictedPos[] = {};
canGarage = true;
garageSpawnPos[] = {14.9072,0.394043,-3.60528};
garageSpawnDir = 0;
garageBlacklists[] = {{11507.2,2447.47,-0.145175}};
lightPos[] = {0,0,3.5};
};
#include "Credit_System\dialogs.cpp"
Pourquoi je metrais la ligne sachant que je les pas acheter?Je pense que tu as oublié cette ligne dans ton theprogrammer_dialog_master.cpp :
Code:#include "Credit_System\dialogs.cpp"
_handle = [(_houseCfg select 0),(typeOf _house)] spawn credit_system_fnc_paymentType;
Il faut aller plus loin que ça, Crédit System overwrite la transaction d'argent.Si tu n'as pas Credit System d'installé il faut enlever les lignes 31 à 33 du fn_buyHouse.sqf, le problème vient surement de là
Est-ce que c'est un problème lié à Key Transfer ?quand je prête les clé à quelqu'un cette personne peut vendre la maisons
closeDialog 0;
if (((_house getVariable ["house_owner",[]]) select 0) != (getPlayerUID player)) exitWith {hint (["STR_CANNOT_SELL_HOUSE","Max_Settings_GiveVehicle","KeyTransfer_Localization"] call theprogrammer_core_fnc_localize);};
if (!(_house in life_vehicles)) exitWith {hint localize "STR_ISTR_Box_NotinHouse"};
if (((_house getVariable ["house_owner",[]]) select 0) != (getPlayerUID player)) exitWith {hint "Seulement le propriétaire de la maison peut supprimer les containeurs.";};