I've had this running on my server for a while now, thought i should give back to the community 
This creates a scroll menu on player spawn so they can choose their own loadout to suit each persons play style.
1. Open dayz_server.pbo\complile\server_playerSetup.sqf
Find the following;
Change this to;
Now download the following file;
http://www.dunx1976.webspace.virginmedia.com/misc/Loadout_select.rar
Unrar, and place the LOADOUT folder into your Mission.pbo
Now, open dayz_X.chernarus\init.sqf
At the very bottom enter the following
Repack both the server.pbo and the mission.pbo
Upload, and enjoy.
Included in the rar is a txt with a few of the classnames, ammo, etc.
Be careful as you will need to name each item correctly (player addweapon/player addMagazine), with a little bit of thought, this is quite simple.
Ty for the code to...Hangender i think (original halo spawn scriptor?)...before that i had a rather long winded approach at this.
This creates a scroll menu on player spawn so they can choose their own loadout to suit each persons play style.
1. Open dayz_server.pbo\complile\server_playerSetup.sqf
Find the following;
Code:
dayzPlayerLogin2 = [_worldspace,_state];
Change this to;
Code:
dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];
Now download the following file;
http://www.dunx1976.webspace.virginmedia.com/misc/Loadout_select.rar
Unrar, and place the LOADOUT folder into your Mission.pbo
Now, open dayz_X.chernarus\init.sqf
At the very bottom enter the following
PHP:
if (!isDedicated) then {
waitUntil { !isNil ("dayz_animalCheck") and
!(player getVariable ["humanity",0] > 5000 and
typeOf player == "Survivor2_DZ") and
!(player getVariable ["humanity",0] < -2000 and
(typeOf player == "Survivor2_DZ" or
typeOf player == "SurvivorW2_DZ") ) and
!(player getVariable ["humanity",0] > 0 and
(typeOf player == "Bandit1_DZ" or
typeOf player == "BanditW1_DZ") )
};
if (dayzPlayerLogin2 select 2) then
{
sleep 5;
loadoutAction = player addaction [("<t color=""#0074E8"">" + ("Select Class") +"</t>"),"loadout\select.sqf","",5,false,true,"",""];
sleep 4;
cutText ["To select your loadout, just choose "loadout" on the Scroll menu", "PLAIN DOWN"];
}
};
Upload, and enjoy.
Included in the rar is a txt with a few of the classnames, ammo, etc.
Be careful as you will need to name each item correctly (player addweapon/player addMagazine), with a little bit of thought, this is quite simple.
Ty for the code to...Hangender i think (original halo spawn scriptor?)...before that i had a rather long winded approach at this.