Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _privBox =
- [
- ['KitCinderWall',50],['CinderBlocks',120],['MortarBucket',60],['EnergyPackLg',30]
- ];
- //50 x low cinder wall, 120 x cinder block, 60 x bucket of mortar CinderBlocks MortarBucket
- _pos = player modelToWorld [0,3,0];
- _log = 'Spawning PrivateBox';
- cutText [_log, 'PLAIN DOWN'];
- hint _log;
- ["
- _pos = "+str _pos+";
- _crate = 'Box_IND_AmmoOrd_F' createVehicle _pos;
- _crate setPos _pos;
- clearWeaponCargoGlobal _crate;
- clearMagazineCargoGlobal _crate;
- clearBackpackCargoGlobal _crate;
- clearItemCargoGlobal _crate;
- _arrayforcrate = "+str _privBox+";
- if(_arrayforcrate isEqualTo []) exitWith {};
- {
- if(typeName _x == 'ARRAY') then
- {
- _item = _x select 0;
- _BackPack = getText (configfile >> 'CfgVehicles' >> _item >> 'vehicleClass') == 'BackPacks';
- if(_BackPack) then
- {
- _crate addBackpackCargoGlobal [_item,_x select 1];
- }
- else
- {
- _crate addItemCargoGlobal [_item,_x select 1];
- };
- }
- else
- {
- _item = _x;
- _BackPack = getText (configfile >> 'CfgVehicles' >> _item >> 'vehicleClass') == 'BackPacks';
- if(_BackPack) then
- {
- _crate addBackpackCargoGlobal [_item,1];
- }
- else
- {
- _crate addItemCargoGlobal [_item,1];
- };
- };
- true
- } count _arrayforcrate;
- "] call admin_d0_server;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement