Jump to content

zipper

Member
  • Posts

    44
  • Joined

  • Last visited

Posts posted by zipper

  1. if (!isNil "killZone") && ((side _killer) == WEST ) then {
    

    and this?

     

     

     

    It might be progress, diff error. lol

    16:58:43 Error in expression <killZone") && ((side _killer) == WEST ) then {
    sleep 8;
    [_killer] execVM "script>
    16:58:43   Error position: <then {
    sleep 8;
    [_killer] execVM "script>
    16:58:43   Error then: Type Bool, expected if
    16:58:43 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
    
  2. Ok i have another option.

    And the deathmessages should be no problem.

    if ((side _killer) == EAST) exitwith {
        diag_log "Bots dont go to jail!";
    };
    
    if (killZone) && ((side _killer) == WEST ) then {
        sleep 8;
       [_killer] execVM "scripts\jail\start_punish.sqf"
    } else {
       if (((count crew _killer) > 1) && ((side _killer) == WEST)) then {
         if (((gunner _killer) in (crew _killer)) && ((side _killer) == WEST)) then {
            sleep 8;
           [(gunner _killer)] execVM "scripts\jail\start_punish.sqf"
         } else {
            sleep 8;
           [(driver _killer)] execVM "scripts\jail\start_punish.sqf"
         };
       } else {
            sleep 8;
            [(driver _killer)] execVM "scripts\jail\start_punish.sqf"
       };
    };
    

    Try this .. 

     

     

    same stuff : 

    14:39:43 Error in expression <ag_log "Bots dont go to jail!";
    };
    
    if (killZone) && ((side _killer) == WEST ) t>
    14:39:43   Error position: <killZone) && ((side _killer) == WEST ) t>
    14:39:43   Error then: Undefined variable in expression: killzone
    14:39:43 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
    

    I even tried changing this bit

    if (killZone) && ((side _killer) == WEST ) then {
    

    to

    if (isNil "killZone") && ((side _killer) == WEST ) then {
    

    It works, but everywhere :P

  3. I get the following errors:

    13:42:02 Error in expression <"Bots dont go to jail!";
    };
    
    if ((kill1 or kill2 or kill3 or kill4 or kill5) && >
    13:42:02   Error position: <or kill2 or kill3 or kill4 or kill5) && >
    13:42:02   Error or: Type Object, expected Bool
    13:42:02 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
    

    and then this on the other suggestion:

    13:50:49 Error in expression <g_log "Bots dont go to jail!";
    };
    
    if ((killZone) && ((side _killer) == WEST )) >
    13:50:49   Error position: <killZone) && ((side _killer) == WEST )) >
    13:50:49   Error Undefined variable in expression: killzone
    13:50:49 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
    

    I have however made these alterations to my server, maybe that is causing some issues:

  4. the second if will cause the error. delete it, like I did. then you should be fine.

     

    Tested, doesnt seem to work for me :(

    20:14:55 Error in expression < jail!";
    };
    
    if ((side _killer) == WEST && kill1 or kill2 or kill3 or kill4 or k>
    20:14:55   Error position: <&& kill1 or kill2 or kill3 or kill4 or k>
    20:14:55   Error &&: Type Object, expected Bool,code
    20:14:56 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
    

    My server_playerDied :

    if ((side _killer) == EAST) exitwith {
        diag_log "Bots dont go to jail!";
    };
    
    if ((side _killer) == WEST && kill1 or kill2 or kill3 or kill4 or kill5 ) then {
        sleep 8;
       [_killer] execVM "scripts\jail\start_punish.sqf"
    } else {
       if (((count crew _killer) > 1) && ((side _killer) == WEST)) then {
         if (((gunner _killer) in (crew _killer)) && ((side _killer) == WEST)) then {
            sleep 8;
           [(gunner _killer)] execVM "scripts\jail\start_punish.sqf"
         } else {
            sleep 8;
           [(driver _killer)] execVM "scripts\jail\start_punish.sqf"
         };
       } else {
            sleep 8;
            [(driver _killer)] execVM "scripts\jail\start_punish.sqf"
       };
    };
    

    My mission.sqm :

    		class Item6
    		   {
    
                position[]={6325.6772,304.99033,7807.7412};// stary killzone
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill1";
                expCond="(player distance kill1) < 500;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    	class Item7
    		   {
    
                position[]={4063.4226,365.00577,11664.19};// Bash killzone
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill2";
                expCond="(player distance kill2) < 500;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    	class Item8
    		   {
    
                position[]={11447.472,317.26886,11364.504};// Klen killzone
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill3";
                expCond="(player distance kill3) < 500;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    		
    	class Item9
    		   {
    
                position[]={1606.6443,289.70795,7803.5156};// bandit killzone
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill4";
                expCond="(player distance kill4) < 500;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    		
    	class Item10
    		   {
    
                position[]={12944.227,210.19823,12766.889};// hero killzone
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill5";
                expCond="(player distance kill5) < 500;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};		
    

    and killzone.sqf as instructed:

    Private ["_msg"];
    if (isServer) exitWith {
    	"PVOZ_EPOCH_KILLZONE" addPublicVariableEventHandler {
    		_msg = _this select 1;
    		_msg = str(_msg);
    		if (isServer) then {
    			[nil, nil, rspawn, [_msg], {systemChat (_this select 0);}] call RE;
    		};
    	};
    };
    [] spawn {if (isNil "killZone") then {killZone = false;};
    	
    };
    

    The original post works as intended, tested and worked. As soon as i try and pin point the locations where players cant kill other players, then i get the errors.

  5. It can be possible if you set the spots in your mission.sqm 

    and then you must adjust the code in server_playerDied.sqf

    if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 ) then {
       [_killer] execVM "addons\jail\start_punish.sqf"
    } else {
       if ((count crew _killer) > 1) then {
         if ((gunner _killer) in (crew _killer)) then {
           [(gunner _killer)] execVM "addons\jail\start_punish.sqf"
         } else {
           [(driver _killer)] execVM "addons\jail\start_punish.sqf"
         };
       } else {
         [(driver _killer)] execVM "addons\jail\start_punish.sqf"
       };
    };
    

    kill1 and kill2 and kill3 you need to makes sensors in your missions.sqm

    	class Item12
    		   {
    
                position[]={1348.44,339,4065.91};// position you want
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill1";
                expCond="(player distance kill1) < 100;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    	class Item13
    		   {
    
                position[]={1348.44,339,4065.91};// position you want
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill2";
                expCond="(player distance kill2) < 100;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    	class Item14
    		   {
    
                position[]={1348.44,339,4065.91};// position you want
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="kill3";
                expCond="(player distance kill3) < 100;";
                expActiv="canbuild = true;killZone = true;";
    			expDesactiv="canbuild = true;killZone = false;";
    		    class Effects	
    			{
    			};
    		};
    

    and make file that actives the zone.

    in the init.sqf place this add the bottom.

    [] ExecVM "folderyouwant\killzone.sqf";

     

    past this in your killzone.sqf

    Private ["_msg"];
    if (isServer) exitWith {
    	"PVOZ_EPOCH_KILLZONE" addPublicVariableEventHandler {
    		_msg = _this select 1;
    		_msg = str(_msg);
    		if (isServer) then {
    			[nil, nil, rspawn, [_msg], {systemChat (_this select 0);}] call RE;
    		};
    	};
    };
    [] spawn {if (isNil "killZone") then {killZone = false;};
    	
    };
    

    This might work let me know.

     

     

    Thank you, but i seem to get some errors, while testing i get this:

    17:44:00 Error in expression <bject;
    };
    
    if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 or kill4 or k>
    17:44:00   Error position: <if kill1 or kill2 or kill3 or kill4 or k>
    17:44:00   Error if: Type Object, expected Bool
    17:44:00 File z\addons\dayz_server\compile\server_playerDied.sqf, line 91
    

    my server_playerDied.sqf :

    if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 or kill4 or kill5 ) then {
       [_killer] execVM "addons\jail\start_punish.sqf"
    } else {
       if ((count crew _killer) > 1) then {
         if ((gunner _killer) in (crew _killer)) then {
           [(gunner _killer)] execVM "addons\jail\start_punish.sqf"
         } else {
           [(driver _killer)] execVM "addons\jail\start_punish.sqf"
         };
       } else {
         [(driver _killer)] execVM "addons\jail\start_punish.sqf"
       };
    };
    

    Any tips?

  6. Hey

     

    Has anyone managed to get Zupa's SC 3.0 (or any single currency) working  with the virtual garage? If i store coin in a vehicle, store the vehicle in the garage and then retrieve it again, i lose all my coin.

     

    I managed to get it to store the vehicle with coin, but when i get it back, i have "any" as my coin value and can take as much as i want out of the vehicle.

     

    any tips would be great  :D 

     

    EDIT : I have the same issue with with the combo key changer , when changing codes on vaults, as soon as you change a code, the safe appears to be recreated, ignoring the coin stored in it.

×
×
  • Create New...