Jump to content
  • 0

Plot Pole Configuration


troppite

Question

Hello,
 
I currently have an Epoch Mod server(A Plot for Life 2.34 and Plot Management 2.1 Plugins are currently installed on my server) and I would like to disable the plot pole remove option so bases cant be stolen in between players  or if only the admin could be able to remove them, that also would be ideal, if someone can help me on how to configure this i would really appreciate it. Thank You.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Simply remove Plastic_Pole_EP1_DZ from your DZE_isRemovable array in your variables.sqf.

 

--

If you only want the owner able to remove it.

Open fn_selfActions.sqf

 

Find

if(_isModular && (_playerUID == _ownerID)) then {

Change to

if((_isModular || (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) && (_playerUID == _ownerID)) then {
Link to comment
Share on other sites

  • 0

 

Simply remove Plastic_Pole_EP1_DZ from your DZE_isRemovable array in your variables.sqf.

 

--

If you only want the owner able to remove it.

Open fn_selfActions.sqf

 

Find

if(_isModular && (_playerUID == _ownerID)) then {

Change to

if((_isModular || (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) && (_playerUID == _ownerID)) then {

hi, thanks for helping. To remove only the business, I have exactly that line in the file.

 

My fn_selfAction.sql:

 

///Allow owners to delete modulars

if(_isModular) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["ownerPUID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if ( _playerUID in _allowed && _ownerID in _allowed ) then {  
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_ownerID == _playerUID)then{
                    _player_deleteBuild = true;
                };
            };                                        
        };
}

 

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...