Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...
  • Нужна помощь?

    Создайте тему в соответствующем разделе
    Не нужно писать всё в чат!
  • Загляните на торговую площадку

    Там вы можете купить
    всё что касается игровых серверов
  • Не хотите бан?

    Пожалуйста, ознакомьтесь с нашими правилами
    Не нарушайте порядок!
  • Продаёте или покупаете?

    Пользуйтесь услугами гаранта
    Мы сделаем вашу сделку безопасной
  1. Dek654ill

    Dek654ill

  • Похожие публикации

    • Автор: 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:
       
    • Автор: buka
      Всем здорова, значит сервер 1.9.0  почти чистый, приват базы и пару ботов на этих базах заспавненые в миссии, Играть скучновато, да и вообще на старых версиях всегда DZAI боты стояли... но на прошлой версии и на этой так и не могу победить, делаю по гайду, леплю строчку как написано, но инициализации нет, в логе тишина, ровно как и в игровом процессе, не знаю куда рыть уже, далее. Так втрое, переделывал скрипт авиа поддержки, всё работало ровно на тех же версиях что и DZAI, там для старых версий кто в курсе помнит нужно было еще дополнительно изменить строку в server_cleanup.sqf иначе техника взрывалась при спавне... (ботовская) ну и собственно в этой же строке я убирал дамаг на заспавниную технику миссией... сейчас я не могу найти где это в коде, техника взрывается после появления через 10 сек, очень жаль потому как скрипт выдался не плохой.И третье, очень много старых полезных скриптов просто недоступны, срок хранения их на серверах истёк и ссылки битые, у кого есть скрипт вырубания травы топором??? помню такой был мелкий...
    • Автор: pekar0201
      Как сделать, дабы не спавнилось несколько одинаковых WAI миссий???
    • Автор: 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; }; Как можно решить эту проблему? Пробовал обьявлять, не получилось.
  • Наш выбор

×
×
  • Создать...

Важная информация

Используя этот сайт, вы автоматически обязуетесь соблюдать наши Правила и Политика конфиденциальности.
Чтобы сделать этот веб-сайт лучше, мы разместили cookies на вашем устройстве. Вы можете изменить свои настройки cookies, в противном случае мы будем считать, что вы согласны с этим.