taler | Дата: Четверг, 02.08.2012, 01:17 | Сообщение # 20 |
Уверенный в себе
Группа:
Пользователи
Сообщений: 152
Награды: 1
Город: 13
Репутация: 121
Замечания: 40%
Статус:
| Quote (trollmarcus) напиши в личку, как это сделать, пожалуйста.
1. Создаешь файл, любой, через блокнот, пишеш туда: Code _abox = "AmmoBoxBig" createVehicle (position player); [_abox] execVM "\Scripts\cargo.sqf"; 2.Создаешь в папке с Dayz папку Scripts, а в этой папке файл cargo.sqf 3.Пишешь туда этот код: [cut noguest=Код]Code _abox = _this select 0; _dayz_wep =["M14_EP1","Remington870_lamp","M4A3_CCO_EP1","M4A1_AIM_SD_camo","BAF_L85A2_RIS_CWS","BAF_AS50_scoped","Winchester1866","LeeEnfield","revolve r_EP1","FN_FAL","FN_FAL_ANPVS4","m107_DZ", "Mk_48_DZ","DMR","M16A2","M16A2GL","bizon_silenced","AK_74","M4A1_Aim","AKS_74_kobra","AKS_74_U","AK_47_M","M24","M1014","M4A1","MP5SD","MP5 A5","huntingrifle","Crossbow","glock17_EP1","M9", "M9SD","Colt1911","UZI_EP1","Binocular","Binocular_Vector","NVGoggles","ItemGPS","ItemMap","ItemCompass","ItemWatch","ItemFlashlight","ItemF lashlightRed","ItemKnife","ItemHatchet","ItemMatchbox", "ItemEtool","ItemToolbox"]; _dayz_mag =["30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","20Rnd_762x51_DMR","30Rnd_762x39_AK47","5Rnd_762x51_M24","10Rnd_127x99_m107","8Rnd_B_Beneli_74 Slug","1Rnd_HE_M203","FlareWhite_M203", "FlareGreen_M203","1Rnd_Smoke_M203","200Rnd_556x45_M249","8Rnd_B_Beneli_Pellets","30Rnd_9x19_MP5","30Rnd_9x19_MP5SD","100Rnd_762x51_M240","1 5Rnd_W1866_Slug","5x_22_LR_17_HMR", "10x_303","15Rnd_9x19_M9","15Rnd_9x19_M9SD","7Rnd_45ACP_1911","17Rnd_9x19_glock17","8Rnd_9x18_Makarov","6Rnd_45ACP","8Rnd_9x18_Makarov","Bol tSteel","PipeBomb","HandGrenade_west", "FoodSteakRaw","FoodSteakCooked","FoodCanBakedBeans","FoodCanSardines","FoodCanPasta","ItemSodaCoke","ItemSodaPepsi","ItemWaterbottle","Hand RoadFlare","HandChemGreen","HandChemBlue", "HandChemRed","ItemSandbag","ItemTankTrap","ItemWire","ItemBandage","ItemPainkiller","ItemMorphine","ItemEpinephrine","ItemAntibiotic","Item Bloodbag","ItemHeatPack","PartWoodPile","PartWheel", "PartFueltank","PartGlass","PartEngine","PartGeneric","PartVRotor","ItemJerrycan","ItemGenerator","ItemTent","Skin_Soldier1_DZ","Skin_Surviv or2_DZ","Skin_Camo1_DZ","Skin_Sniper1_DZ"]; _dayz_bpk =["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_CivilBackpack_EP1","DZ_ALICE_Pack_EP1","DZ_Backpack_EP1"]; {_abox addWeaponCargo [_x,100];} forEach _dayz_wep; {_abox addMagazineCargo [_x,100];} forEach _dayz_mag; {_abox addBackpackCargo [_x,2];} forEach _dayz_bpk; [/cut] 4.Качаешь прогу Arma 2 Script Executer, запускаешь, открываешь файл из 1 пункта, жмешь Script-Execute 5.Наслаждаешься тем, какой ты гребаный читер
На спавн авто:
[cut noguest=Код]Code RandomEx = { private["_min","_max","_result"]; _min = _this select 0; _max = _this select 1; _result = (round random (_max - _min))+_min; _result };
MakeRandomSpace = { private["_min","_max","_length","_i","_result"]; _min = _this select 0; _max = _this select 1; _result = ""; _length = [_min,_max] call RandomEx; for "_i" from 1 to _length do { _result = _result + " "; }; _result };
DAYZ_CREATEVEHICLE = { private["_veh_type", "_dir", "_pos","_objID","_rdspaces","_DayZCodeExec"]; _veh_type = _this select 0; _dir = _this select 1; _pos = _this select 2; _car = _veh_type createVehicle _pos; _car setDir _dir; _objID = [100,500] call RandomEx; _pubvarname = "myvehobj"; myvehobj = _car; publicVariable "myvehobj"; sleep 0.2; _rdspaces = [3, 10] call MakeRandomSpace; _DayZCodeExec = format['%1 setVariable ["ObjectID",%2,true]; dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,%1] %3;',_pubvarname,_objID,_rdspaces];
if (_DayZCodeExec != '') then { _x = random 9000; _y = random 9000; _z = 0; _group = createGroup east; "Cock" createUnit [[_x,_y,_z], _group, format["%1", _DayZCodeExec]]; sleep 0.3; deleteGroup _group; _objCock = nearestobject [[_x,_y,_z],"Cock"]; _objCock setDamage 1; deleteVehicle _objCock; }; };
_dir = getdir player; _pos = getPos player; _pos = [(_pos select 0)+20*sin(_dir),(_pos select 1)+20*cos(_dir),0];
["A10_US_EP1", _dir, _pos] call DAYZ_CREATEVEHICLE;
hint "done"; [/cut]
Тп хак (уже не робит вроде): [cut noguest=Код]Code hint "Choose where you want to go:"; player addweapon "ItemGPS"; openMap true; player setVariable["lastPos",0, true]; onMapSingleClick "player setPos _pos; true;" [/cut]
МапХак (тоже не робит):
[cut noguest=Код]Code hint "Adding Player Markers";
unitList = allUnits; j = count unitList; i = 0; markPos = true;
while {markPos} do { unitList = allUnits; j = count unitList; i = 0;
for "i" from 0 to j do { unit = unitList select i; pos = position unit; deleteMarkerLocal ("playerMarker"+ (str i)); marker = "playerMarker" + (str i); marker = createMarkerLocal [marker,pos]; marker setMarkerTypeLocal "mil_dot"; marker setMarkerPosLocal (pos); marker setMarkerColorLocal("ColorGreen"); marker setMarkerTextLocal format ["%1",name unit]; }; sleep 0.5; }; hint "Player Marking Stopping"; [/cut]
Хак оружия по одному:
[cut noguest=Код]Code for [{_i=0}, {_i < count _weaponAmmo}, {_i=_i+1}] do { _weaponClass = "M14_EP1"; _weaponAmmo = ["20Rnd_762x51_DMR"];
_ammoCount = 8;
player addWeapon _weaponClass;
for [{_x=0}, {_x < _ammoCount}, {_x=_x+1}] do { player addMagazine (_weaponAmmo select _i); }; };
hint "weapon has been added"; [/cut]
http://community.bistudio.com/wiki/ArmA_2:_Vehicles - Arma 2 Список авто http://community.bistudio.com/wiki/ArmA_2_OA:_Vehicles - Arma 2 OA Список авто http://community.bistudio.com/wiki/ArmA_2:_Weapons - Arma 2 Список оружия
Ыыыы
|
|
|
|