this works from (player2)
At the bottom of your init.sqf:
PHP:
waitUntil { !isNil ("PVDZ_plr_LoginRecord") and
!(player getVariable ["humanity",0] > 5000 andtypeOf player == "Survivor2_DZ") and
!(player getVariable ["humanity",0] < -2000 and
(typeOf player == "Survivor2_DZ" ortypeOf player == "SurvivorW2_DZ") ) and
!(player getVariable ["humanity",0] > 0 and
(typeOf player == "Bandit1_DZ" ortypeOf player == "BanditW1_DZ") ) };//if they're a bambiif (dayzPlayerLogin2 select 2) then{
//customised loadout
//remove weapons
player removeWeapon "DDOPP_X26";
player removeMagazines "DDOPP_1Rnd_X26";//add weapons
player addWeapon "M9";
player addMagazine "15Rnd_9x19_M9";//tools
player addWeapon "ItemCompass";//backpack
removeBackpack player;
player addBackpack "DZ_Backpack_EP1";
};
You will also need this replacement in your 'dayz_server.pbo\server_playerSetup.sqf':
Replace: dayzPlayerLogin2 = [_worldspace,_state];
With: dayzPlayerLogin2 = [_worldspace,_state, _randomSpot];