Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 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 servers
  • Don'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
  • 0
davidx

Проблема с сейф-зонами

После перехода на стим патч, перестали работать сейф зоны. Стоят от инфистар, ставил новый с их сайта, ставил и другие. такое чувство что скрипт не загрузается при старте. Хотя все остальное работает без проблем.

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0

Тут ваш недоработанный init.sqf

 

 

 

/*	
	For DayZ Epoch
	Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance =	11;					//The instance
dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
dayz_REsec = 0; // DayZ RE Security / 1 = enabled // 0 = disabled
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;

//disable greeting menu 
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_spawnselection = 1; // DayZ Spawnselection / 1 = enabled // 0 = disabled, No current spawn limits.
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 300; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 30; // Default = 30 

dayz_paraSpawn = false;

dayz_minpos = -1; 
dayz_maxpos = 16000;

dayz_sellDistance_vehicle = 10;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

dayz_maxAnimals = 8; // Default: 8
dayz_tameDogs = true;
DynamicVehicleDamageLow = 0; // Default: 0
DynamicVehicleDamageHigh = 100; // Default: 100

EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = true;

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;

fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";


call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

if (isServer) then {
	call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
	//Compile vehicle configs
	
	// Add trader citys
	_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};

if (!isDedicated) then {

[] execVM "compile\Server_WelcomeCredits.sqf";

	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//CTapToBbIu JIyT
	[] execVM "Scripts\startloot.sqf";
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor =     [] execVM "dayz_code\system\player_monitor.sqf";	
	
	//anti Hack
    
    if ( !((getPlayerUID player) in ["76561198086696750","76561198057310382","76561198087622775"])) then { 
	  [] execVM "\z\addons\dayz_code\system\antihack.sqf";
    };

    
	//Lights
	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
	
};

#include "\z\addons\dayz_code\system\REsec.sqf"

//Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";


#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

[] execVM "Scripts\custom_monitor.sqf";
[] execVM "faction.sqf";
[] execVM "baraks.sqf"
[] execVM "infistar_safezone.sqf";
[] execVM "service_point\service_point.sqf";
[] execVM "sectorfng\sectorfng_init.sqf";


//3auen JII06ou u xoTb cKoJIbKo
[] execVM "R3F_ARTY_AND_LOG\init.sqf";

DZE_BuildingLimit = 1000;

 



Настроено все не по порядку... + синтаксическая ошибка. После barracks не стоит ; Собственно скрипт не закончен.

Заменяем свое на это: 

/*	
	For DayZ Epoch
	Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance =	11;					//The instance
dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
dayz_REsec = 0; // DayZ RE Security / 1 = enabled // 0 = disabled
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;

//disable greeting menu 
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_spawnselection = 1; // DayZ Spawnselection / 1 = enabled // 0 = disabled, No current spawn limits.
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 300; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 30; // Default = 30
 
DZE_BuildingLimit = 1000;

dayz_paraSpawn = false;

dayz_minpos = -1; 
dayz_maxpos = 16000;

dayz_sellDistance_vehicle = 10;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

dayz_maxAnimals = 8; // Default: 8
dayz_tameDogs = true;
DynamicVehicleDamageLow = 0; // Default: 0
DynamicVehicleDamageHigh = 100; // Default: 100

EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = true;

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;

fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";


call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

if (isServer) then {
	call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
	//Compile vehicle configs
	
	// Add trader citys
	_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};

if (!isDedicated) then {

[] execVM "compile\Server_WelcomeCredits.sqf";

	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//CTapToBbIu JIyT
	[] execVM "Scripts\startloot.sqf";
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor =     [] execVM "dayz_code\system\player_monitor.sqf";	
	
	//anti Hack
    
    if ( !((getPlayerUID player) in ["76561198086696750","76561198057310382","76561198087622775"])) then { 
	  [] execVM "\z\addons\dayz_code\system\antihack.sqf";
    };

    
	//Lights
	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
	
};

#include "\z\addons\dayz_code\system\REsec.sqf"

//Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";

#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

[] execVM "Scripts\custom_monitor.sqf";

[] execVM "faction.sqf";

[] execVM "baraks.sqf";

[] execVM "infistar_safezone.sqf";

[] execVM "service_point\service_point.sqf";

[] execVM "sectorfng\sectorfng_init.sqf";

[] execVM "R3F_ARTY_AND_LOG\init.sqf";

Share this post


Link to post
Share on other sites







  • 0

После перехода на стим патч, перестали работать сейф зоны. Стоят от инфистар, ставил новый с их сайта, ставил и другие. такое чувство что скрипт не загрузается при старте. Хотя все остальное работает без проблем.

RPT логи смотрите.

Share this post


Link to post
Share on other sites
  • 0

 

RPT логи смотрите

где их искать

Share this post


Link to post
Share on other sites
  • 0

где их искать

Корень сервера -> Папка с вашей Инстанцией -> arma2oaserver.rpt.

Share this post


Link to post
Share on other sites
  • 0

кто глянет, в чем проблема

 

[] execVM "infistar_safezone.sqf";
[] e>
21:54:46   Error position: <[] execVM "infistar_safezone.sqf";
[] e>
21:54:46   Error Missing ;
21:54:46 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 114
21:54:46 Error in expression <M "faction.sqf";
[] execVM "baraks.sqf"
[] execVM "infistar_safezone.sqf";
[] e>
21:54:46   Error position: <[] execVM "infistar_safezone.sqf";
[] e>
21:54:46   Error Missing ;
21:54:46 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 114
21:54:46 Error in expression <M "faction.sqf";

Edited by davidx (see edit history)

Share this post


Link to post
Share on other sites
  • 0

кто глянет, в чем проблема

 

[] execVM "infistar_safezone.sqf";

[] e>

21:54:46   Error position: <[] execVM "infistar_safezone.sqf";

[] e>

21:54:46   Error Missing ;

21:54:46 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 114

21:54:46 Error in expression <M "faction.sqf";

[] execVM "baraks.sqf"

[] execVM "infistar_safezone.sqf";

[] e>

21:54:46   Error position: <[] execVM "infistar_safezone.sqf";

[] e>

21:54:46   Error Missing ;

21:54:46 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 114

21:54:46 Error in expression <M "faction.sqf";

Вот и ошибка. В init.sqf.

 

Скиньте что у вас там прописано сюда через код.

Чтобы было вот так :)

Share this post


Link to post
Share on other sites
  • 0
/*	
	For DayZ Epoch
	Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance =	11;					//The instance
dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
dayz_REsec = 0; // DayZ RE Security / 1 = enabled // 0 = disabled
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;

//disable greeting menu 
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_spawnselection = 1; // DayZ Spawnselection / 1 = enabled // 0 = disabled, No current spawn limits.
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 300; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 30; // Default = 30 

dayz_paraSpawn = false;

dayz_minpos = -1; 
dayz_maxpos = 16000;

dayz_sellDistance_vehicle = 10;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

dayz_maxAnimals = 8; // Default: 8
dayz_tameDogs = true;
DynamicVehicleDamageLow = 0; // Default: 0
DynamicVehicleDamageHigh = 100; // Default: 100

EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = true;

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;

fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";


call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

if (isServer) then {
	call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
	//Compile vehicle configs
	
	// Add trader citys
	_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};

if (!isDedicated) then {

[] execVM "compile\Server_WelcomeCredits.sqf";

	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//CTapToBbIu JIyT
	[] execVM "Scripts\startloot.sqf";
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor =     [] execVM "dayz_code\system\player_monitor.sqf";	
	
	//anti Hack
    
    if ( !((getPlayerUID player) in ["76561198086696750","76561198057310382","76561198087622775"])) then { 
	  [] execVM "\z\addons\dayz_code\system\antihack.sqf";
    };

    
	//Lights
	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
	
};

#include "\z\addons\dayz_code\system\REsec.sqf"

//Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";


#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

[] execVM "Scripts\custom_monitor.sqf";
[] execVM "faction.sqf";
[] execVM "baraks.sqf"
[] execVM "infistar_safezone.sqf";
[] execVM "service_point\service_point.sqf";
[] execVM "sectorfng\sectorfng_init.sqf";


//3auen JII06ou u xoTb cKoJIbKo
[] execVM "R3F_ARTY_AND_LOG\init.sqf";

DZE_BuildingLimit = 1000;

 

Share this post


Link to post
Share on other sites
  • 0

Есть вопрос. Стоят сейф зоны Infistar, добавлена кастомная зона. Возможно ли на инфистаровских сейф зонах сделать приватную зону? Все описанные способы на этом сайте уже перепробовал результат один и тот-же пропадает защита в трейд зонах  и пропадают маркеры трейдеров на карте хотя приватка работает. Подскажите если кто столкнулся уже с такой проблемой. 

Share this post


Link to post
Share on other sites
  • 0

Есть вопрос. Стоят сейф зоны Infistar, добавлена кастомная зона. Возможно ли на инфистаровских сейф зонах сделать приватную зону? Все описанные способы на этом сайте уже перепробовал результат один и тот-же пропадает защита в трейд зонах  и пропадают маркеры трейдеров на карте хотя приватка работает. Подскажите если кто столкнулся уже с такой проблемой. 

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

Share this post


Link to post
Share on other sites
  • 0

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

такая добавленная зона уже есть и всё работает, интересует именно приватная с ограничением на вход по ID

Share this post


Link to post
Share on other sites
  • 0

такая добавленная зона уже есть и всё работает, интересует именно приватная с ограничением на вход по ID

Хз конечно, попробуй так:

 

if ( !((getPlayerUID player) in ["ххххххххх","хххххххх])) then { 
      Коорды.
    };

Share this post


Link to post
Share on other sites
  • 0

 

USE_CANBUILD = true; // if you don't want to define your own positions
USE_TraderCity = true; // if you don't want to define your own positions (Epoch 1.0.5)
USE_POSITIONS = false; // to use own positions and radius
USE_AI_REMOVER = false; // use this to remove Missionbots (AI) within 100m of a player if the player is in a SafeZone
USE_AntiSteal = true; // use this to block opening gear if another player is within 3m!
USE_SPEEDLIMIT = true; // very secret function, nobody is supposed to find out what it does.
SPEEDLIMIT = 20; // Only used if USE_SPEEDLIMIT is true.
USE_SIGNS = false; // use this to build signs around the SafeZone
LOG_EnterLeave = true; // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack)
/* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */
_infiSZ =
[
[[6325.6772,7807.7412],200,true],
[[4063.4226,11664.19],200,true],
[[11447.472,11364.504],200,true],
[[1606.6443,7803.5156],150,true],
[[12944.227,12766.889],150,true],
[[5068.6636,9723.4248],100,true]
];
if (isServer) exitWith
{
if (USE_SIGNS) then
{
{
_center = _x select 0;
_radius = _x select 1;
_lSign = _x select 2;
if (_lSign) then
{
for '_i' from 0 to 360 step (270 / _radius)*2 do
{
_location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0];
_dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1));
_object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE'];
// _object = createVehicle ['SignM_FARP_Winchester_EP1', _location, [], 0, 'CAN_COLLIDE'];
// _object setVehicleInit 'this setObjectTexture [0,''Addons\SafeZones\sign.paa''];';
_object setDir _dir;
};
};
} forEach _infiSZ;
};
};
waitUntil { !isNil 'dayz_animalCheck' };
if (isNil 'inSafezone') then {inSafezone = false;};
[_infiSZ] spawn {
_infiSZ = _this select 0;
_startSafeZone =
{
if (isNil 'outNow') then
{
_msg = 'You entered a Safe Zone!';
hint _msg;
taskHint [_msg, [0,1,0,1], 'taskDone'];
inNow = nil;
outNow = true;

if (LOG_EnterLeave) then
{
PVDZE_send = [player,'SafeZoneState',[1]];
publicVariableServer 'PVDZE_send';
};
};
player_fired2 = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';
player_fired = {
_this call player_fired2;
deleteVehicle (nearestObject [_this select 0,_this select 4]);
cutText ['You can not fire in a SafeZone!','WHITE IN'];
};
fnc_usec_damageHandler = {};
player removeAllEventHandlers 'handleDamage';
player addEventHandler ['handleDamage', {false}];
player allowDamage false;
_veh = vehicle player;
if (player != _veh) then
{
_szs = _veh getVariable ['inSafeZone',0];
if (_szs == 0) then
{
_veh removeAllEventHandlers 'Fired';
_veh addEventHandler ['Fired', {_this call player_fired;}];
{
_x removeAllEventHandlers 'Fired';
_x addEventHandler ['Fired', {_this call player_fired;}];
} forEach (crew _veh);
_veh setVariable ['inSafeZone', 1, true];
_veh removeAllEventHandlers 'HandleDamage';
_veh addEventHandler ['HandleDamage', {false}];
_veh allowDamage false;
};
};

_cwep = currentWeapon player;
if (_cwep in ['MAAWS']) then
{
_swep = '';
{
if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith
{
_swep = _x;
};
} forEach (weapons player);
if (_swep == '') then
{
player playActionNow 'PutDown';
_iPos = getPosATL player;
_radius = 1;
_removed = ([player,_cwep,1] call BIS_fnc_invRemove);
if (_removed == 1) then
{
_item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE'];
_item addWeaponCargoGlobal [_cwep,1];
};
}
else
{
player selectweapon _swep;
};
};
if (isNil 'oR3F_TIRED_FNCT_Voile_Noir') then {oR3F_TIRED_FNCT_Voile_Noir = R3F_TIRED_FNCT_Voile_Noir;};
if (isNil 'oR3F_TIRED_FNCT_DoBlackVanish') then {oR3F_TIRED_FNCT_DoBlackVanish = R3F_TIRED_FNCT_DoBlackVanish;};
R3F_TIRED_FNCT_Voile_Noir = {};
R3F_TIRED_FNCT_DoBlackVanish = {};
};
_endSafeZone =
{
if (isNil 'inNow') then
{
if (str fnc_usec_damageHandler == '{}') then
{
_msg = 'You left the Safe Zone!';
hint _msg;
taskHint [_msg, [1,0,0.1,1], 'taskFailed'];
};
inNow = true;
outNow = nil;

if (LOG_EnterLeave) then
{
PVDZE_send = [player,'SafeZoneState',[0]];
publicVariableServer 'PVDZE_send';
};
};
player_fired = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';
player_zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';
fnc_usec_unconscious = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_unconscious.sqf';
object_monitorGear = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\object_monitorGear.sqf';

_veh = vehicle player;
if (player != _veh) then
{
_szs = _veh getVariable ['inSafeZone',0];
if (_szs == 1) then
{
_veh setVariable ['inSafeZone', 0, true];
_veh removeAllEventHandlers 'HandleDamage';
_veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];
_veh allowDamage true;
};
};

_end = false;
if (isNil 'gmadmin') then
{
_end = true;
}
else
{
if (gmadmin == 0) then
{
_end = true;
};
};
if (_end) then
{
player allowDamage true;
fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
player removeAllEventHandlers 'HandleDamage';
player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];
};
if (!isNil 'oR3F_TIRED_FNCT_Voile_Noir') then {R3F_TIRED_FNCT_Voile_Noir = oR3F_TIRED_FNCT_Voile_Noir;};
if (!isNil 'oR3F_TIRED_FNCT_DoBlackVanish') then {R3F_TIRED_FNCT_DoBlackVanish = oR3F_TIRED_FNCT_DoBlackVanish;};
};
while {1 == 1} do
{
_state = false;
_obj = vehicle player;

if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };
if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; };
if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; };
if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; };
if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; };
if (USE_POSITIONS) then
{
{
_z = _x select 0;
_r = _x select 1;
if (_obj distance _z < _r) exitWith {_state = true;};
} forEach _infiSZ;
};
if (USE_CANBUILD) then
{
if (!canbuild) then {_state = true;};
};
if (USE_TraderCity) then
{
if (isInTraderCity) then {_state = true;};
};
if (_state) then
{
inSafeZone = true;
call _startSafeZone;
{
if (!isNull _x) then
{
if !(isPlayer _x) then
{
deletevehicle _x;
};
};
} forEach (_obj nearEntities ['zZombie_Base',15]);

if (isNil 'USE_AI_REMOVER') then { USE_AI_REMOVER = false; } else { if (typename USE_AI_REMOVER != 'BOOL') then { USE_AI_REMOVER = false; }; };
if (USE_AI_REMOVER) then
{
{
if ((!isNull group _x) && (getPlayerUID _x == '')) then
{
deleteVehicle _x;
};
} forEach (player nearEntities ['Man',100]);
};
}
else
{
inSafeZone = false;
};
uiSleep 2;
if (!inSafeZone) then
{
call _endSafeZone;
};
};
};
if ((USE_AntiSteal) || (USE_SPEEDLIMIT)) then
{
[] spawn {
_USE_AntiSteal = USE_AntiSteal;
_USE_SPEEDLIMIT = USE_SPEEDLIMIT;
_speedlimit = SPEEDLIMIT;
while {1 == 1} do
{
if (inSafezone) then
{
if (_USE_AntiSteal) then
{
_cnt = {isPlayer _x && _x != player} count (player nearEntities [['CAManBase'], 3]);
if ((_cnt > 0) && (!isNull (findDisplay 106))) then
{
(findDisplay 106) closedisplay 0;
closeDialog 0;
_log = format['%1 You are not allowed to open Gear while near another player!',name player];
cutText [_log,'PLAIN'];
hint _log;
};
};
if (_USE_SPEEDLIMIT) then
{
_obj = vehicle player;
if !(_obj isKindOf 'Plane') then
{
_speed = abs speed _obj;
if ((_obj != player) && (_speed > _speedlimit)) then
{
_vel = velocity _obj;
_x = 0.8;
if (_speed > 50) then {_x = 0.1;};
_velNew = [(_vel select 0) * _x, (_vel select 1) * _x,(_vel select 2) * _x];
_obj SetVelocity _velNew;
};
};
};
}
else
{
uiSleep 2;
};
uiSleep 0.1;
};
};
};

 

 

не понимаю куда это засунуть можно, если я прав в инфи зонах корды зон в массиве и как туда прикрутить сие....  :wallbash:

Share this post


Link to post
Share on other sites
  • 0

 

/*	
	For DayZ Epoch
	Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance =	11;					//The instance
dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
dayz_REsec = 0; // DayZ RE Security / 1 = enabled // 0 = disabled
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;

//disable greeting menu 
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_spawnselection = 1; // DayZ Spawnselection / 1 = enabled // 0 = disabled, No current spawn limits.
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 300; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 30; // Default = 30 

dayz_paraSpawn = false;

dayz_minpos = -1; 
dayz_maxpos = 16000;

dayz_sellDistance_vehicle = 10;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

dayz_maxAnimals = 8; // Default: 8
dayz_tameDogs = true;
DynamicVehicleDamageLow = 0; // Default: 0
DynamicVehicleDamageHigh = 100; // Default: 100

EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = true;

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;

fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";


call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

if (isServer) then {
	call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
	//Compile vehicle configs
	
	// Add trader citys
	_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};

if (!isDedicated) then {

[] execVM "compile\Server_WelcomeCredits.sqf";

	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//CTapToBbIu JIyT
	[] execVM "Scripts\startloot.sqf";
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor =     [] execVM "dayz_code\system\player_monitor.sqf";	
	
	//anti Hack
    
    if ( !((getPlayerUID player) in ["76561198086696750","76561198057310382","76561198087622775"])) then { 
	  [] execVM "\z\addons\dayz_code\system\antihack.sqf";
    };

    
	//Lights
	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
	
};

#include "\z\addons\dayz_code\system\REsec.sqf"

//Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";


#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

[] execVM "Scripts\custom_monitor.sqf";
[] execVM "faction.sqf";
[] execVM "baraks.sqf"
[] execVM "infistar_safezone.sqf";
[] execVM "service_point\service_point.sqf";
[] execVM "sectorfng\sectorfng_init.sqf";


//3auen JII06ou u xoTb cKoJIbKo
[] execVM "R3F_ARTY_AND_LOG\init.sqf";

DZE_BuildingLimit = 1000;

это куда кидать?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By fedotovyasha
      не подключается к серверу и пишет что на сервере нету такого мода, хотя он там есть. Названия менял, другие моды все отключил, ничего не помогает. В батниках все прописано
    • By JustBullet
      Всем привет! :) Как я рад всех видеть снова, дошли руки до ковыряния станделона (если уже его можно так назвать).
       
      Что пытаюсь сделать:
      1. Создать Рюкзак.
      2. Создать Радио.
          - Положить Батарейку в Радио.
      3. Положить Радио(с Батареей) в Персональный слот Рюкзака.
      4. Дополнительно поместить Радио в слот быстрого доступа (на панель).
       
      EntityAI itemEnt_Bag = player.GetInventory().CreateInInventory("FurCourierBag"); // Создаем РЮКЗАК. EntityAI itemEnt_Radio = player.GetInventory().CreateInInventory("PersonalRadio"); // Создаем РАДИО. itemEnt_Radio.GetInventory().CreateAttachment("Battery9V"); // Помещаем в Радио Батарейку. itemEnt_Bag.GetInventory().CreateAttachment(itemEnt_Radio); // Помещаем в РЮКЗАК РАДИО. player.SetQuickBarEntityShortcut(itemEnt_Radio, 0, true); // Помещаем РАДИО на первый слот. тут возникает проблема, в четвертой строке, поскольку я помещаю Элемент Радио+Батарея в Рюкзак, а команда ожидает Строковый параметр (String). Проблема больше в незнании мной синтаксиса. Возможно и в логике построения. Вообщем прошу помощи разобраться с этой строчкой :)))
       
      п.с. так разумеется срабатывает но без батарейки:
      itemEnt_Bag.GetInventory().CreateAttachment("PersonalRadio"); // Помещаем в РЮКЗАК РАДИО. Каким параметром/командой я могу загнать Радио с батареей в персональный слот Рюкзака?
    • By Gromillla
      Доброго времени суток дамы и господа, и сразу к вопросу, в миссиях 2.2.5 версии, если боты "бандиты", то они скин игрока видят и реагируют на него, а если миссии с ботами "героями", то они скин игрока не видят. Скин  "RUS_Soldier_Marksman". Как соответственно решить эту проблему? Ошибок в РПТ нет.
    • By petpoleoo
      Ребят ваша помощь нужна,суть проблема такая,мент кидает гражданского в тюрьму а вместо той тюрьмы где он должен быть игрок в поле скачет в редакторе была в этом месте только одна метка sky drive но ее перенести пробывали 0 эмоций,кто сталкивался может какую мысль подкините идею как решить;)
       

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
    • By SPIRT
      В общем после недавнего обновления BattleEye стало выкидывать из игры с ошибкой BattleEye типа вам нужно перезагрузить игру. Хочу поделиться тем что помогло мне . Сразу говорю винда у меня пиратская .Итак начнем .
      1.Отключаемся от интернета.
      2.Вырубаем антивирус полностью.
      3.Заходим в Панель управления -- Администрирование -- Службы -- ищем Защита программного обеспечения --- останавливаем ее.
      4.Дальше идем по адресу диск С Windows -- System32  там надо найти два файла C7483456-A289-439d-8115-601632D005A0  перед этими цифрами могут стоять еще цифры но это не важно , удаляем их.
      5. Обратно запускаем Защита программного обеспечения. В правом нижнем углу появится надпись  что ваша Windows не является лицензионной.
      6. Перезагружаем комп - и активируем нашу винду, я активировал программой Windows 7 Loader . 
       
      У меня процесс сошел с мертвой точки со второй активации  , но согласитесь это лучше чем переустанавливать Windows 7 или переходить с любимой системы на 10 винду . Кому поможет ставим +  врепу. 
       
      PS в параметрах папок и поиска не забываем выставить  показывать скрытые файлы и папки !
       
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.