Jump to content

bombajack

Member
  • Posts

    90
  • Joined

  • Last visited

Posts posted by bombajack

  1. i feel that there is some problem in following lines:

    if (s_player_plotManagement < 0) then {
        _adminList = ["0152"]; // Add admins here if you admins to able to manage all plotpoles
        _owner = _cursorTarget getVariable ["ownerPUID","0"];
        _friends = _cursorTarget getVariable ["plotfriends", []];
        _fuid = [];
        {
        _friendUID = _x select 0;
        _fuid = _fuid + [_friendUID];
        } forEach _friends;
        _allowed = [_owner];    
        _allowed = [_owner] + _adminList + _fuid;
        if((getPlayerUID player) in _allowed)then{            
        s_player_plotManagement = player addAction ["<t color='#0059FF'>Manage Plot</t>", "plotManagement\initPlotManagement.sqf", [], 5, false];
        };
    };
     

    because if i'm in adminlist it showing the menu, same if i will write sombody in plotfriends it will workin without the problem

    but if i will build a new plot without _adminList i will not be able to access it 

    i found some post regarding ownerPUID but i was not able to understand what you mean there: 

     

     

    Yes, i was using regular plot managment before without any issue

     

    _object setVariable ["OwnerPUID", _ownerPUID, true];

    _object setVariable ["ownerPUID", _ownerPUID, true];

     

    Where is this code in monitor?Cant find it....or i must add it?Witch line?

×
×
  • Create New...