Jump to content

piggd

Member
  • Posts

    70
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    piggd got a reaction from Bags2247 in [Help] Using the UID to Lock/Unlock purchased Vehicles   
    They're my servers. 
     
    Instead of writing the keys code to the characterid field I am writting the player uid to field so vehicles are bound to the player and not a character or key.  Keys still get generated but there paper weights.
     
    Copy your (make sure to copy them all)
    trade_any_bicycle.sqf
    trade_any_boat.sqf
    trade_any_vehicle.sqf
    trade_any_backpacks.sqf
    trade_any_items.sqf
    trade_any_weapons.sqf
     
    into a fixes folder.
     
    Modify your
    trade_any_bicycle.sqf
    trade_any_boat.sqf
    trade_any_vehicle.sqf
     
    // ------------------------------------------------------------------------Player GUID instead of key Start------------------------------------------------------------------------
    //                            PVDZE_veh_Publish2 = [_veh,[_dir,_location],_part_out,false,_keySelected,_activatingPlayer];
                                PVDZE_veh_Publish2 = [_veh,[_dir,_location],_part_out,true,dayz_playerUID,_activatingPlayer];
    // ------------------------------------------------------------------------Player GUID instead of key End------------------------------------------------------------------------
     
    Change this line in your compiles.sqf
     
    _File = "\z\addons\dayz_code\actions\" + _afile + ".sqf";
     
    to
     
    _File = "fixes\" + _afile + ".sqf";
     
     
    The fn_selfaction was all ready coded to support the player uid allowing unlocks.
×
×
  • Create New...