Custom Start Gear

the easiest place to change it for everyone is server_playerLogin.sqf in the server files.
look for these lines
Code:
    _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
    _mags = getArray (_config >> "magazines");
    _wpns = getArray (_config >> "weapons");
    _bcpk = getText (_config >> "backpack");
 
the easiest place to change it for everyone is server_playerLogin.sqf in the server files.
look for these lines
Code:
    _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
    _mags = getArray (_config >> "magazines");
    _wpns = getArray (_config >> "weapons");
    _bcpk = getText (_config >> "backpack");
Not sure if this is the best way but i changed it like this:
Code:
if (isNil "sm_done") exitWith { diag_log ("Login cancelled, server is not ready. " + str(_playerObj)); };

_inventory = [["ItemMap","ItemToolbox","MakarovSD_DZN"],["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine","ItemAntibiotic","ItemHeatPack","ItemHeatPack","ItemHeatPack","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"]];
_backpack = ["DZ_Czech_Vest_Puch",[[],[]],[[],[]]];
_survival = [0,0,0];
_model = "";

And it works though.
 
does it work for every new log in and after death? Had the problem it worked with new log ins but after death players would spawn without any gear
 
Back
Top