Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe



-
Similar Content
-
By DrTauren
В этом гайде расскажу как сделать несколько комплектов стартового лута для игроков. При появлении будет случайно выбираться один из трёх комплектов.
Всё практически одинаково: Топор, одежда, сумка. Разница только в оружии.
Присутствует три комплекта: М4А1, SVD, UMP. Всё с прицелами, прикладами и т.д., плюс три магазина патронов.
Инструкция:
1) Открываем файл init.c и находим этот код:
class CustomMission: MissionServer { ........ } Mission CreateCustomMission(string path) { return new CustomMission(); } 2) Весь первый класс (который CustomMission: MissionServer) заменяем на это:
class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { int rndHlt = Math.RandomInt(40,100); itemEnt.SetHealth("","",rndHlt); } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } void addMags(PlayerBase player, string mag_type, int count) { if (count < 1) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); } player.SetQuickBarEntityShortcut(mag, 1, true); } EntityAI assaultClass(PlayerBase player) { EntityAI gun = player.GetHumanInventory().CreateInHands("M4A1"); gun.GetInventory().CreateAttachment("M4_RISHndgrd_Black"); gun.GetInventory().CreateAttachment("M4_MPBttstck_Black"); gun.GetInventory().CreateAttachment("ACOGOptic"); addMags(player, "Mag_STANAG_30Rnd", 3); return gun; } EntityAI sniperClass(PlayerBase player) { EntityAI gun = player.GetHumanInventory().CreateInHands("SVD"); gun.GetInventory().CreateAttachment("PSO1Optic"); addMags(player, "Mag_SVD_10Rnd", 3); return gun; } EntityAI smgClass(PlayerBase player) { EntityAI gun = player.GetHumanInventory().CreateInHands("UMP45"); gun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_UMP_25Rnd", 3); return gun; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { player.RemoveAllItems(); player.GetInventory().CreateInInventory("TTSKOPants"); player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); player.GetInventory().CreateInInventory("CombatBoots_Black"); player.GetInventory().CreateInInventory("ImprovisedBag"); player.GetInventory().CreateInInventory("SodaCan_Pipsi"); player.GetInventory().CreateInInventory("SpaghettiCan"); player.GetInventory().CreateInInventory("HuntingKnife"); ItemBase rags = player.GetInventory().CreateInInventory("Rag"); rags.SetQuantity(4); EntityAI primary; EntityAI axe = player.GetInventory().CreateInInventory("FirefighterAxe"); switch (Math.RandomInt(0, 3)) { case 0: primary = assaultClass(player); break; case 1: primary = sniperClass(player); break; case 2: primary = smgClass(player); break; } player.LocalTakeEntityToHands(primary); player.SetQuickBarEntityShortcut(primary, 0, true); player.SetQuickBarEntityShortcut(rags, 2, true); player.SetQuickBarEntityShortcut(axe, 3, true); } };
Вы также можете настроить оружие и всё остальное под себя при помощи статьи, где указаны ID всех предметов:
Так же есть возможность выдавать лут конкретным людям через UID:
-
By buka
Всем здорова, значит сервер 1.9.0 почти чистый, приват базы и пару ботов на этих базах заспавненые в миссии, Играть скучновато, да и вообще на старых версиях всегда DZAI боты стояли... но на прошлой версии и на этой так и не могу победить, делаю по гайду, леплю строчку как написано, но инициализации нет, в логе тишина, ровно как и в игровом процессе, не знаю куда рыть уже, далее. Так втрое, переделывал скрипт авиа поддержки, всё работало ровно на тех же версиях что и DZAI, там для старых версий кто в курсе помнит нужно было еще дополнительно изменить строку в server_cleanup.sqf иначе техника взрывалась при спавне... (ботовская) ну и собственно в этой же строке я убирал дамаг на заспавниную технику миссией... сейчас я не могу найти где это в коде, техника взрывается после появления через 10 сек, очень жаль потому как скрипт выдался не плохой.И третье, очень много старых полезных скриптов просто недоступны, срок хранения их на серверах истёк и ссылки битые, у кого есть скрипт вырубания травы топором??? помню такой был мелкий...
-
By SkeepRyder
Добрый день. Помогите решить 2 проблемы.
1. Как отключить логи в ZEV миссиях? Там просто оч много строк, вручную удалять слишком долго, может есть какой-нибудь конфиг?
2.
15:23:25 Wrong text element 'null' 15:23:25 Wrong text element 'null' 15:23:25 Wrong text element 'null' 15:23:25 Wrong text element 'null' 15:23:25 Error in expression <hud_blood = round(r_player_blood); if((_SRhud_humanity >= 15000) && (_SRhud_hum> 15:23:25 Error position: <_SRhud_humanity >= 15000) && (_SRhud_hum> 15:23:25 Error Undefined variable in expression: _srhud_humanity 15:23:25 File mpmissions\DZESR.Chernarus\custom\gui\hud\playerHud.sqf, line 15 Файлик худа
disableSerialization; while {true} do { 1000 cutRsc ["SRhud","PLAIN"]; _wpui = uiNameSpace getVariable "SRhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; _SRhud_zombieKills = _thePlayer getVariable["zombieKills",0]; _SRhud_killsH = _thePlayer getVariable["humanKills",0]; _cashMoney = _thePlayer getVariable["cashMoney",0]; _SRhud_killsB = _thePlayer getVariable["banditKills",0]; _SRhud_humanity = _thePlayer getVariable["humanity",0]; _SRhud_image = ""; _SRhud_blood = round(r_player_blood); if((_SRhud_humanity >= 15000) && (_SRhud_humanity <= 24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H1.paa'/>"; }; if((_SRhud_humanity >= 25000) && (_SRhud_humanity <= 49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H2.paa'/>"; }; if((_SRhud_humanity >= 50000) && (_SRhud_humanity <= 74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H3.paa'/>"; }; if((_SRhud_humanity >= 75000) && (_SRhud_humanity <= 99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H4.paa'/>"; }; if(_SRhud_humanity >= 100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H5.paa'/>"; }; if((_SRhud_humanity <= 14999) && (_SRhud_humanity >= -14999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\S.paa'/>"; }; if((_SRhud_humanity <= -15000) && (_SRhud_humanity >= -24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B1.paa'/>"; }; if((_SRhud_humanity <= -25000) && (_SRhud_humanity >= -49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B2.paa'/>"; }; if((_SRhud_humanity <= -50000) && (_SRhud_humanity >= -74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B3.paa'/>"; }; if((_SRhud_humanity <= -75000) && (_SRhud_humanity >= -99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B4.paa'/>"; }; if(_SRhud_humanity <= -100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B5.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='1.5' align='right'> %1 </t><br/> <t size='0.8' align='right'> %2 </t> <br/> <t size='0.8' align='right'> %3 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sz.paa'/> <br/> <t size='0.8' align='right'> %4 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sb.paa'/> <br/> <t size='0.8' align='right'> %5 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sh.paa'/> <br/> <br/><br/><br/> <t size='0.8' align='right'> %6 </t><img size='1.25' align='right' image='custom\gui\hud\icons\blood.paa'/> <br/> <t size='0.8' align='right'> %7 </t><img size='1.2' align='right' image='custom\gui\hud\icons\dollars.paa'/> <br/> ", _SRhud_image, _SRhud_humanity, _SRhud_zombieKills, _SRhud_killsB, _SRhud_killsH, _SRhud_blood, [_cashMoney] call BIS_fnc_numberText ]; _vitals ctrlCommit 0; sleep 2; }; Как можно решить эту проблему? Пробовал обьявлять, не получилось.
-
-
Our picks
Такие вопросы, подскажите поалуйста
Как вернуть метку на труп в плагине DZGM
Как понять по логам что игрок дюпает, немогу прочитать в RTP этого, вижу что открывает сейф вылетает и так повтор, как понять что игроки дюпают валюту путём передажи её друг другу одноверменно
Как отключать траву через скрипт который добавляет контекстное меню (RBM)
Share this post
Link to post
Share on other sites