Jump to content

Linux

Member
  • Posts

    61
  • Joined

  • Last visited

Posts posted by Linux

  1. 47 minutes ago, icomrade said:

    We requested DayZ Launcher maintain both versions for the time being, which they graciously do. Both versions are on their until the majority of server migrate.

    I can see reluctance to upgrade by server admins, but in reality you actually only lose the ability to directly migrate a handful of this, like mods (the most popular of which we improved greatly and integrated), loot tables, and some DB related stuff. The lack of content sucks for 3 days after release, but surely more people will rework mods for 1.0.6 support as time goes on.

    No, I'd normally say use some kind of SQF, but the lobby dialog is initialized before many client execute any amount of code in your server, so this is not possible. I agree it's not quite as pleasant as the old one, but it does server to eliminate a glitch where the player would be able to place himself in the editor and see players and objects, at the location where they were in the editor, though the lobby while loading in,

    Thank you for answer.  

  2. 7 hours ago, icomrade said:

    No, we have ultimately decided that singleCurrency and the game play changes that are introduced by the mod are not conducive to the traditional game play of Epoch.

    I think about custom lobby dialog is possible without change epoch addons ? 

  3. 9 hours ago, Donnovan said:

    Hi,

    I still have a Epoch server :)

    I'm having some problems with infiStar antihack. To say true it's not helping as a antihack, but the admin tools are quite nice.

    Any of you know about a nice admin tools?

    Thankyou a lot!

    you can try:

    CSAT: Admin-Tool & Anti-Hack

    Epoch Admin Tools V1.10.0

    But infiStar is best admin tools, if delete anti-cheat part it will be amazing

     

  4. 14 hours ago, juandayz said:

    hahaha dear duke! tnks and if u wanna laugh  come some day to my server.. players have sex with sheeps and others funnys :D

    nice :D sex with sheeps "CENSORED" text on middle of screen or animation?) what your's server name?

  5. You can try this:

    ruby_fnc = {
    	private ["_rnd","_chance"];
    
    	_chance 	= 25; // Chance to loose a ruby
    	_rnd 		= round(random 100);
    
    	if (_rnd < _chance) then {
    		player removeMagazine "ItemRuby";
    		SystemChat "You lost ruby :(";
    	};
    };
    
    if (soundVolume == 1) then {
    		1 fadeSound 0.25;
    		cutText [format[" Earplug - 25%"], "PLAIN DOWN"];
    		sleep 1;
    		[] spawn ruby_fnc;
    	} else {
    		1 fadeSound 1;
    		cutText [format["Earplug+ 25%"], "PLAIN DOWN"];
    		sleep 1;
    		[] spawn ruby_fnc;
        };

     

  6. Hello, i have a problems with cheaters on my DayZ Epoch Server, they connecting to lobby and execute scripts. This script double objects to db/clear db/Killing random players with not reason for this and more more more. It makes another server, they trying DDoS, but when i bought security - started cheatin on my server.

    How i can make pv check and block not needed? 

  7. private ["_player","_inventory","_hasknife","_LastUsedTime","_Time","_infectionChance"];
    
    _player 		= player;
    _inventory 		= items player;
    _hasknife 		= "ItemKnife" in _inventory;
    _LastUsedTime 	= 300;
    _Time 			= time - lastuse;
    
    if(_Time < _LastUsedTime) exitWith {
        cutText [format["wait %1 seconds !",(round(_Time - _LastUsedTime))], "PLAIN DOWN"];
    };
    
    if !(_hasknife) exitWith {
        cutText [format["Must be equiped whit 1x knife in your toolbet."], "PLAIN DOWN"];
    };
    
    _infectionChance = round(random 10);
    
    if (_hasknife) then {
    	if (_infectionChance < 4) then {r_player_infected = true;
    		cutText [format["%1, you get infected :(",name player], "PLAIN DOWN"];
    	};
        lastuse = time;
        sleep 1;
        player playActionNow "Medic";    
        sleep 3;
        _player setDamage 0.2;
        cutText [format["Drink your own blood"], "PLAIN DOWN"];
        [player,-100] call player_humanityChange;
        dayz_thirst = 0;
        };

    Chance to get infection

  8. 10 hours ago, J.Dominic said:

    I use Infistar safe zone script and i want to make "When player leave safe zone will get 30 seconds god mode".

    This my Infist Safe zone script.

    
    /*
       by: http://infiSTAR.de || http://DayzAntiHack.com
       *updated on 24.12.2014
    	
    	Instructions:
    	1. Copy paste this pastebin code into a file called SafeZone.sqf - save the file.
    	2. Now extract your mpmission pbo and put the SafeZone.sqf into the extracted folder.
    	3. Open the init.sqf of the mpmission.
    	4. At the bottom of the file add
    	[] execVM 'SafeZone.sqf';
    	5. Save the init.sqf, repack your mpmission, upload it to your gameserver and restart your server
    */
    USE_CANBUILD = false;		// if you don't want to define your own positions
    USE_TraderCity = false;	//	if you don't want to define your own positions (Epoch 1.0.5)
    USE_POSITIONS = true;	// to use own positions and radius
    USE_AI_REMOVER = true;	// 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 = true;		// 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,0],150,true],
    	[[4063.4226,11664.19,0],150,true],
    	[[11447.472,11364.504,0],150,true],
    	[[1606.6443,7803.5156,0],150,true],
    	[[12944.227,12766.889,0],150,true],
    	[[6590.6,14120.1,0],150,true],
    	[[12060,12640,0],200,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') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))};
    if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') 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_fired = {
    			deleteVehicle (nearestObject [_this select 0,_this select 4]);
    			cutText ['You can not fire in a SafeZone!','WHITE IN'];
    		};
    		wild_spawnZombies = {};
    		zombie_generate = {};
    		
    		fnc_usec_damageHandler = {};
    		player removeAllEventHandlers 'handleDamage';
    		player addEventHandler ['handleDamage', {false}];
    		player allowDamage false;
    		_veh = vehicle player;
    		_szs = _veh getVariable ['inSafeZone',0];
    		if (_szs == 0) then
    		{
    			_veh setVariable ['inSafeZone',1,true];
    			if (player != _veh) then
    			{
    				_veh removeAllEventHandlers 'Fired';
    				_veh addEventHandler ['Fired', {_this call player_fired;}];
    				{
    					_x removeAllEventHandlers 'Fired';
    					_x addEventHandler ['Fired', {_this call player_fired;}];
    				} forEach (crew _veh);
    				vehicle_handleDamage = {false};
    				_veh removeAllEventHandlers 'HandleDamage';
    				_veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];
    				_veh allowDamage false;
    			};
    		};
    		_notInSafeZone =
    		[
    			'MAAWS','RPG7V','M136','RPG18','STINGER',
    			'MeleeHatchet_DZE','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge',
    			'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat'
    		];
    		_cwep = currentWeapon player;
    		if (_cwep in _notInSafeZone) 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;
    			};
    		};
    	};
    	_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';
    			};
    		};
    		wild_spawnZombies = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\wild_spawnZombies.sqf';
    		zombie_generate = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\zombie_generate.sqf';
    		
    		
    		player_fired = {
    			_this call compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';
    			_unit = _this select 0;
    			_weapon = _this select 1;
    			_muzzle = _this select 2;
    			_mode = _this select 3;
    			_ammo = _this select 4;
    			_magazine = _this select 5;
    			_projectile = _this select 6;
    			_screenToWorld = screenToWorld [0.5,0.5];
    			_near = _screenToWorld nearEntities ['AllVehicles',100];
    			{
    				if (isPlayer _x) then
    				{
    					_szs = _x getVariable ['inSafeZone',0];
    					if (_szs == 1) then
    					{
    						deleteVehicle (nearestObject [_unit,_ammo]);
    					};
    				};
    			} forEach _near;
    		};
    		
    		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';
    		vehicle_handleDamage = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_handleDamage.sqf';
    		
    		_veh = vehicle player;
    		_szs = _veh getVariable ['inSafeZone',0];
    		if (_szs == 1) then
    		{
    			_veh setVariable ['inSafeZone',0,true];
    			if (player != _veh) then
    			{
    				_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;} ];
    		};
    	};
    	while {1 == 1} do
    	{
    		if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };
    		_state = false;
    		if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; };
    		if (USE_POSITIONS) then
    		{
    			{
    				_z = _x select 0;
    				_r = _x select 1;
    				if ((vehicle player) distance _z < _r) then {_state = true;};
    			} forEach _infiSZ;
    		};
    		if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; };
    		if (USE_CANBUILD) then
    		{
    			if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; };
    			if (!canbuild) then {_state = true;};
    		};
    		if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; };
    		if (USE_TraderCity) then
    		{
    			if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; };
    			if (isInTraderCity) then {_state = true;};
    		};
    		if (_state) then
    		{
    			inSafeZone = true;
    			call _startSafeZone;
    			{
    				if (!isNull _x) then
    				{
    					if !(isPlayer _x) then
    					{
    						deletevehicle _x;
    					};
    				};
    			} forEach ((vehicle player) nearEntities ['zZombie_Base',50]);
    			
    			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'],4]);
    					if ((_cnt > 0) && (!isNull (findDisplay 106))) then
    					{
    						(findDisplay 106) closedisplay 0;
    						closeDialog 0;closeDialog 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 .01;
    		};
    	};
    };

     

    Thank you.

    Try this: 

    /*
       by: http://infiSTAR.de || http://DayzAntiHack.com
       *updated on 24.12.2014
    	
    	Instructions:
    	1. Copy paste this pastebin code into a file called SafeZone.sqf - save the file.
    	2. Now extract your mpmission pbo and put the SafeZone.sqf into the extracted folder.
    	3. Open the init.sqf of the mpmission.
    	4. At the bottom of the file add
    	[] execVM 'SafeZone.sqf';
    	5. Save the init.sqf, repack your mpmission, upload it to your gameserver and restart your server
    */
    USE_CANBUILD = false;		// if you don't want to define your own positions
    USE_TraderCity = false;	//	if you don't want to define your own positions (Epoch 1.0.5)
    USE_POSITIONS = true;	// to use own positions and radius
    USE_AI_REMOVER = true;	// 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 = true;		// 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,0],150,true],
    	[[4063.4226,11664.19,0],150,true],
    	[[11447.472,11364.504,0],150,true],
    	[[1606.6443,7803.5156,0],150,true],
    	[[12944.227,12766.889,0],150,true],
    	[[6590.6,14120.1,0],150,true],
    	[[12060,12640,0],200,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') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))};
    if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') 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_fired = {
    			deleteVehicle (nearestObject [_this select 0,_this select 4]);
    			cutText ['You can not fire in a SafeZone!','WHITE IN'];
    		};
    		wild_spawnZombies = {};
    		zombie_generate = {};
    		
    		fnc_usec_damageHandler = {};
    		player removeAllEventHandlers 'handleDamage';
    		player addEventHandler ['handleDamage', {false}];
    		player allowDamage false;
    		_veh = vehicle player;
    		_szs = _veh getVariable ['inSafeZone',0];
    		if (_szs == 0) then
    		{
    			_veh setVariable ['inSafeZone',1,true];
    			if (player != _veh) then
    			{
    				_veh removeAllEventHandlers 'Fired';
    				_veh addEventHandler ['Fired', {_this call player_fired;}];
    				{
    					_x removeAllEventHandlers 'Fired';
    					_x addEventHandler ['Fired', {_this call player_fired;}];
    				} forEach (crew _veh);
    				vehicle_handleDamage = {false};
    				_veh removeAllEventHandlers 'HandleDamage';
    				_veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];
    				_veh allowDamage false;
    			};
    		};
    		_notInSafeZone =
    		[
    			'MAAWS','RPG7V','M136','RPG18','STINGER',
    			'MeleeHatchet_DZE','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge',
    			'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat'
    		];
    		_cwep = currentWeapon player;
    		if (_cwep in _notInSafeZone) 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;
    			};
    		};
    	};
    	_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'];
    			};
    			
    			for "_x" from 31 to 1 step -1 do {
    					_msg = format["God-Mode will be disabled in %1 seconds.",_x];
    					hint _msg;
    					taskHint [_msg, [1,0,0.1,1], 'taskFailed'];
    				sleep 1;
    			};
    			sleep 1;
    			_msg = format["God-Mode disabled.",_x];
    					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';
    			};
    		};
    		wild_spawnZombies = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\wild_spawnZombies.sqf';
    		zombie_generate = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\zombie_generate.sqf';
    		
    		
    		player_fired = {
    			_this call compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';
    			_unit = _this select 0;
    			_weapon = _this select 1;
    			_muzzle = _this select 2;
    			_mode = _this select 3;
    			_ammo = _this select 4;
    			_magazine = _this select 5;
    			_projectile = _this select 6;
    			_screenToWorld = screenToWorld [0.5,0.5];
    			_near = _screenToWorld nearEntities ['AllVehicles',100];
    			{
    				if (isPlayer _x) then
    				{
    					_szs = _x getVariable ['inSafeZone',0];
    					if (_szs == 1) then
    					{
    						deleteVehicle (nearestObject [_unit,_ammo]);
    					};
    				};
    			} forEach _near;
    		};
    		
    		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';
    		vehicle_handleDamage = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_handleDamage.sqf';
    		
    		_veh = vehicle player;
    		_szs = _veh getVariable ['inSafeZone',0];
    		if (_szs == 1) then
    		{
    			_veh setVariable ['inSafeZone',0,true];
    			if (player != _veh) then
    			{
    				_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;} ];
    		};
    	};
    	while {1 == 1} do
    	{
    		if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };
    		_state = false;
    		if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; };
    		if (USE_POSITIONS) then
    		{
    			{
    				_z = _x select 0;
    				_r = _x select 1;
    				if ((vehicle player) distance _z < _r) then {_state = true;};
    			} forEach _infiSZ;
    		};
    		if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; };
    		if (USE_CANBUILD) then
    		{
    			if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; };
    			if (!canbuild) then {_state = true;};
    		};
    		if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; };
    		if (USE_TraderCity) then
    		{
    			if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; };
    			if (isInTraderCity) then {_state = true;};
    		};
    		if (_state) then
    		{
    			inSafeZone = true;
    			call _startSafeZone;
    			{
    				if (!isNull _x) then
    				{
    					if !(isPlayer _x) then
    					{
    						deletevehicle _x;
    					};
    				};
    			} forEach ((vehicle player) nearEntities ['zZombie_Base',50]);
    			
    			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'],4]);
    					if ((_cnt > 0) && (!isNull (findDisplay 106))) then
    					{
    						(findDisplay 106) closedisplay 0;
    						closeDialog 0;closeDialog 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 .01;
    		};
    	};
    };
    

     

  9. 2 hours ago, AiiDynBrus said:

    Hey guys my server hosting company has put "Blood & Humanity text and also Zombie kills, PLayer Kills and something else and im trying to get rid of it but can't find anything, Also the server hosting company said " The guy that made it no longer works here nor do we have contact with him any more "

    I want to keep the food and thirst and sound and stuff but just the other stuff i want gone? Anyone know?

      Reveal hidden contents

    1fc1c3e7ec430e667ef14cbfab52b17c.png

     

    You can get a dedicated server or VDS and make your server there. 

  10. 3 minutes ago, Joshyy said:

    What sorts of problems are you having?
    I can see that people have posted that it works for admins and not for players?

    is working only for admin, but player's can't reSpawn, they get killed and kicking at lobby, log is clear\

×
×
  • Create New...