You are not logged in.

  • Login
Veuillez visiter notre nouveau forum à https://forum.nitrado.net

Veuillez visiter notre nouveau forum à

https://forum.nitrado.net

Dear visitor, welcome to Communauté - Forum Nitrado.net France - Serveurs de Jeux Prépayés. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "SpiritAltis" started this thread

Posts: 70

  • Send private message

1

Saturday, August 2nd 2014, 12:29am

Problème Housing

Salut,

J'ai mon serveur qui est en version 3.1.3 et j'ai installé le plugins BRUUUDIS Housing
Le problème est que lorsque l'on pose nos coffre dans la maison ils spawn au même endroit ce qui est que l'on deux part dans la salle ce qui fait que sa tue les joueurs (voir exemple) merci.



Voici le code :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
File: fn_placeStorage.sqf
Author: Mario2002

Description:
place a storage container in a house
*/

private["_boxType","_item", "_house", "_houseId", "_owners", "_uid", "_maxCount", "_count", "_handle", "_box", "_containers", "_containerId", "_pos", "_storageData"];
_boxType = _this select 0;

_item = [_this,0,"",[""]] call BIS_fnc_param;
_house = getPos player nearestObject "House_F";
_owners = _house getVariable["life_homeOwners", []];
_uid = getPlayerUID player;

if (player distance _house > 20) exitWith { hint "You must be inside a house to place storage."; };
if (_item == "storage2" && count (nearestObjects [position _house, ["B_supplyCrate_F"], 5]) > 0) exitWith { hint "You can just place one large storage."; };
if (_item == "storage1" && count (nearestObjects [position _house, ["Land_Box_AmmoOld_F"], 5]) > 0) exitWith { hint "You can just place one small storage."; };
if (!(_uid in _owners)) exitWith { hint "You do not own this house and cannot place storage within it."; };

_maxCount = [typeOf _house] call life_fnc_houseContainers;
if (_maxCount == 0) exitWith { hint "This house does not support storage containers."; };


_containers = _house getVariable ["containers", []];
_count = count _containers;
if (_count >= _maxCount) exitWith { hint "You cannot place any more containers at this time."; };

_buildingPositions = [_house] call life_fnc_getBuildingPositions;
_pos = [];
{
	if(!([_x] call life_fnc_isBuildingPosTaken)) exitWith {_pos = _x;};
} foreach _buildingPositions;

if(count _pos == 0) exitWith {hint "You can't install anymore storage boxes! House is full!"};

switch (_item) do {
	case "storage1" : {
		_box = "Land_Box_AmmoOld_F" createVehicle _pos;
		_box setPosATL _pos;
	};
	case "storage2" : {
		_box = "B_supplyCrate_F" createVehicle _pos;
		_box setPosATL _pos;
	};
};

clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;
clearItemCargoGlobal _box;
clearBackpackCargoGlobal _box;

_houseId = [_house] call life_fnc_getBuildID;
_containerId = format ["%1_%2", _houseId, _count];
_storageData = [_containerId, _item, typeOf _box];
_containers set [count _containers, _storageData];
_house setVariable ["containers", _containers, true];
_box setVariable["owner", getPlayerUID player, true];
_box allowDamage false;
hint "Placing storage container...";

[false,_item,1] call life_fnc_handleInv;
_handle = [] spawn SOCK_fnc_updateRequest;
//sleep 0.5;

[[_house, _containers, playerSide, [[],0]],"BRUUUDIS_fnc_updateHouseStorage",false,false] spawn life_fnc_MP;
http://forum.absoluserv.com/viewforum.php?f=105 - Tutoriels pour débutants en configuration Altis life

kiliwyth

Beginner

Posts: 7

Location: Centre

  • Send private message

2

Tuesday, August 5th 2014, 9:44pm

Bonsoir,
Ce problème a été corrigé, il te suffit de re-télécharger les fichiers et de les remplacer. SI ça ne corrige pas le problème, envoi moi un message privé et je te donnerais un correctif maison.
Cordialement Yohann M
Cordialement Yohann.M

Développeur Arma 3/2 et DayZ -> Scripting, Mapping et Modding.
*--------------------------------------------------------*
-= STAFF NITRADO FRANCE =-

Similar threads

wbb.socialBookmark.thread

Rate this thread