Jump to content
  • 0

Loadouts


Saltzman

Question

Offering loadouts for people on my server and sometimes they work, sometimes they dont. I am aware that loadouts in DayZ are buggy, but can someone look at my loadouts and see if you see something wrong?

 

//Default Loadout
DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","ItemMorphine","6Rnd_45ACP","6Rnd_45ACP"];
DefaultWeapons = ["revolver_gold_EP1","ItemMap","ItemCompass"];
DefaultBackpack = "DZ_TerminalPack_EP1";
DefaultBackpackWeapon = "";
 
//Admin Loadout
if ((getPlayerUID player) in ["145455544535668789580326","1260945450630","0","0"]) then {  //Admins: Tru3$hot, Krafty, Name, Name
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemSodaRbull","ItemWaterbottleBoiled","FoodSteakCooked","20Rnd_762x51_DMR","20Rnd_762x51_DMR","1Rnd_HE_M203","1Rnd_HE_M203","Skin_RU_Policeman_DZ"];
DefaultWeapons = ["M9SD","M14_EP1","Binocular_Vector","NVGoggles","ItemMap","ItemCompass","ItemGPS","ItemWatch","ItemKnife","ItemMatchbox","Itemtoolbox","ItemCrowbar","Itemetool","ItemHatchet"];
DefaultBackpack = "DZ_GunBag_EP1";
DefaultBackpackWeapon = "";
};
 
//Moderator Loadout
if ((getPlayerUID player) in ["110580545614","95285455766","5455455","#########"]) then {   //Moderators: Glowbaby, Pope, caffeinated soap, Name
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemSodaRbull","FoodSteakCooked","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","Skin_Ins_Soldier_GL_DZ","Skin_RU_Policeman_DZ"];
DefaultWeapons = ["UZI_SD_EP1","M4A1_AIM_SD_camo","Binocular_Vector","ItemMap","Itemtoolbox","ItemCompass","ItemGPS","ItemKnife","ItemMatchbox","ItemCrowbar","ItemHatchet","Itemetool"];
DefaultBackpack = "DZ_British_ACU";
DefaultBackpackWeapon = "";
};
 
//Pro-Donator Loadout
if ((getPlayerUID player) in ["122545455408390","########","#######","#########"]) then {  //Pro-Donators: Zyx, Name, Name, Name  
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","7Rnd_45ACP_1911","7Rnd_45ACP_1911","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemAntibiotic","Skin_TK_Special_Forces_EP1_DZ","ItemSodaRbull"];
DefaultWeapons = ["Colt1911","Binocular_Vector","ItemMap","ItemCompass","Itemtoolbox","ItemKnife","ItemMachete","ItemHatchet"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Donator Loadout
if ((getPlayerUID player) in ["0","########","#######","#########"]) then {  //Donators: Name, Name, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemSodaRbull"];
DefaultWeapons = ["M9SD","ItemMap","Binocular_Vector","ItemCompass","ItemKnife","ItemWatch","ItemHatchet","Itemtoolbox"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Clan Loadout
if ((getPlayerUID player) in ["1054545466222447078","#########","#########","#########"]) then {  //CLAN: Captains, Name, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","20Rnd_762x51_DMR","ItemMorphine","ItemPainkiller","ItemSodaRbull"];
DefaultWeapons = ["M9SD","DMR","ItemMap","Binocular_Vector","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCompass"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Custom Loadout1
if ((getPlayerUID player) in ["11466546469671343686","#########","#########","#########"]) then {  //CLAN: Wolfie, Name, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","BoltSteel","BoltSteel","BoltSteel","Skin_BanditW1_DZ","ItemMorphine","ItemPainkiller","ItemSodaRbull"];
DefaultWeapons = ["Crossbow_DZ","ItemMap","Binocular","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCompass"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Custom Loadout2
if ((getPlayerUID player) in ["0","########","########"]) then {  //CLAN: Name, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","30Rnd_556x45_G36","30Rnd_556x45_G36","ItemMorphine","ItemPainkiller","ItemSodaRbull","Skin_GUE_Soldier_Crew_DZ"];
DefaultWeapons = ["M9SD","m8_sharpshooter","Binocular","ItemMap","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Custom Loadout3
if ((getPlayerUID player) in ["239656565244166","15564545+982728454","########"]) then {  //CLAN: MadCat1067, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","ItemPainkiller","ItemSodaRbull","Skin_Sniper1_DZ"];
DefaultWeapons = ["BAF_LRR_scoped_W","M9SD","Binocular_Vector","NVGoggles","ItemMap","ItemGPS","Itemtoolbox","ItemWatch","ItemKnife","ItemMatchbox","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Custom Loadout4
if ((getPlayerUID player) in ["239017030","107691974","########"]) then {  //CLAN: kristaps, Name, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","ItemMorphine","ItemPainkiller","ItemSodaRbull","Skin_GUE_Soldier_Crew_DZ"];
DefaultWeapons = ["M9SD","SCAR_L_STD_EGLM_RCO","Binocular","ItemMap","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Tier1 Loadout
if ((getPlayerUID player) in ["1636456456464625478","1512388460227974","########"]) then {  //CLAN: MrSatch, EXHAUST, Name 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemSodaRbull"];
DefaultWeapons = ["M9SD","Binocular","ItemMap","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Tier2 Loadout
if ((getPlayerUID player) in ["399546465465718","243475766224326","23578911567265158"]) then {  //CLAN: Meki, baxter, Jiraid 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","ItemMorphine","ItemPainkiller","ItemSodaRbull","Skin_GUE_Soldier_Crew_DZ"];
DefaultWeapons = ["SCAR_L_STD_EGLM_RCO","M9SD","Binocular","ItemMap","Itemtoolbox","ItemWatch","ItemKnife","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
//Tier3 Loadout
if ((getPlayerUID player) in ["2404456456444054406","24399464564560086","578546464561120","1245645645021766"]) then {  //CLAN: AOGJZ, WRMA, SkinSuit, NinjaJeff 
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","20Rnd_762x51_DMR","20Rnd_762x51_DMR","ItemMorphine","ItemPainkiller","ItemSodaRbull","Skin_Sniper1_DZ"];
DefaultWeapons = ["DMR","M9SD","Binocular_Vector","NVGoggles","ItemMap","ItemGPS","Itemtoolbox","ItemWatch","ItemKnife","ItemMatchbox","ItemHatchet","ItemCrowbar"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
 
 
 
 
 
 
 
 
//DONT TOUCH THIS PLEASE
//Coyote pack pack //DZ_Backpack_EP1
//Gun = M107 with 3 mags //M107_DZ && 10Rnd_127x99_M107
//Gun = M249 with scope with 3 mags ( put in backpack if you can ) //"M249_m145_EP1","200Rnd_556x45_M249","200Rnd_556x45_M249","200Rnd_556x45_M249" 
//Silenced pistol = PDW Silenced with 4 mags //"UZI_SD_EP1","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"   
//1 blood bag //ItemBloodbag
//1 water bottle //ItemWaterbottle
//1 pain killer //ItemPainkiller
//1 morphine //ItemMorphine
//1 beef steak //FoodchickenCooked 
//Map,Compass,Toolbox, Rangefinders,Hatchet,Knife, Matchbox,GPS,Entrenching Tool,Watch, Flashlight,Military Flashlight,Night Vision Goggles,Ghille Suit //Skin_Sniper1_DZ
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I suggest a different way to do this:

// Custom Loadouts
waitUntil {(getPlayerUID player) != ""};

_uid = getPlayerUID player;

switch(_uid)do 
{  
 	 case "1234567890": // This is for: name
 	{
	DefaultMagazines = ["ItemEpinephrine","ItemAntibiotic","ItemPainkiller","Skin_Sniper1_DZ","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","FoodMRE","ItemWaterbottle","ItemBandage","ItemBloodbag","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemBandage","ItemBandage","ItemBandage"];
	DefaultWeapons = ["ItemToolbox","ItemEtool","ItemMatchbox_DZE","ItemGPS","ItemCompass","NVGoggles","Binocular_Vector","ItemKnife","ItemMap","UZI_SD_EP1","ItemFishingPole","ItemCrowbar","ItemHatchet_DZE","DMR_DZ"];
	DefaultBackpack = "DZ_LargeGunBag_EP1";
	DefaultBackpackWeapon = "";
 	hint format["Here is your donor loadout %1", name player];
 	};
	
	 case "0987654321": // This is for: this one also has a name
 	{
	DefaultMagazines = ["ItemEpinephrine","ItemAntibiotic","ItemPainkiller","Skin_Sniper1_DZ","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","FoodMRE","ItemWaterbottle","ItemBandage","ItemBloodbag","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemBandage","ItemBandage","ItemBandage"];
	DefaultWeapons = ["ItemToolbox","ItemEtool","ItemMatchbox_DZE","ItemGPS","ItemCompass","NVGoggles","Binocular_Vector","ItemKnife","ItemMap","UZI_SD_EP1","ItemFishingPole","ItemCrowbar","ItemHatchet_DZE","M4SPR"];
	DefaultBackpack = "DZ_LargeGunBag_EP1";
	DefaultBackpackWeapon = "";
 	hint format["Here is your donor loadout %1", name player];
 	};
	
	default
    {
	
	//startgear
	DefaultMagazines = ["ItemBloodbag","FoodCanBakedBeans","ItemSodaPepsi","ItemMorphine","ItemPainkiller","ItemBandage","ItemBandage","30Rnd_9x19_MP5","30Rnd_9x19_MP5","8Rnd_9x18_MakarovSD","8Rnd_9x18_MakarovSD"];
	DefaultWeapons = ["ItemCompass","ItemMatchbox","ItemMap","ItemFlashlight","ItemToolbox","ItemWatch","ItemHatchet","Binocular","MP5A5","MakarovSD"];
	DefaultBackpack = "DZ_Patrol_Pack_EP1";
	DefaultBackpackWeapon = "";
	};
};

Link to comment
Share on other sites

  • 0

and call the file from here in your init.sqf

 

if (!isDedicated) then {
 //Conduct map operations
 0 fadeSound 0;
 waitUntil {!isNil "dayz_loadScreenMsg"};
 dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
    
    // Custom Loadouts Advanced
    null=[] execVM "custom\PlayerLoadouts.sqf";  // THIS HERE
 
 //Run the player monitor
 _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
 _playerMonitor =  [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; 
 //Lights
 //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
 
};
Link to comment
Share on other sites

  • 0

Ok currently my loadouts are in MAIN>LOADOUTS

 

My sqf looks like this:

 

 

if (!isDedicated) then {

[] execVM "compile\Server_WelcomeCredits.sqf";
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
[] execVM "service_point\service_point.sqf";
[] execVM "Main\Loadouts\Loadouts.sqf";
 
//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
_nil = [] execVM "custom\VehicleKeyChanger\VehicleKeyChanger_init.sqf";
sleep 1; _mv22_ramp = [] execVM "addons\mv22_init.sqf";
 
 
 
What line are you saying to add?
Link to comment
Share on other sites

  • 0

you already have the lines but change [] execVM "Main\Loadouts\Loadouts.sqf"; to 

// Custom Loadouts Advanced
null=[] execVM "custom\PlayerLoadouts.sqf";  // THIS HERE

then in your custom folder use the code he provided below

// Custom Loadouts
waitUntil {(getPlayerUID player) != ""};

_uid = getPlayerUID player;

switch(_uid)do 
{  
 	 case "1234567890": // This is for: name
 	{
	DefaultMagazines = ["ItemEpinephrine","ItemAntibiotic","ItemPainkiller","Skin_Sniper1_DZ","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","FoodMRE","ItemWaterbottle","ItemBandage","ItemBloodbag","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemBandage","ItemBandage","ItemBandage"];
	DefaultWeapons = ["ItemToolbox","ItemEtool","ItemMatchbox_DZE","ItemGPS","ItemCompass","NVGoggles","Binocular_Vector","ItemKnife","ItemMap","UZI_SD_EP1","ItemFishingPole","ItemCrowbar","ItemHatchet_DZE","DMR_DZ"];
	DefaultBackpack = "DZ_LargeGunBag_EP1";
	DefaultBackpackWeapon = "";
 	hint format["Here is your donor loadout %1", name player];
 	};
	
	 case "0987654321": // This is for: this one also has a name
 	{
	DefaultMagazines = ["ItemEpinephrine","ItemAntibiotic","ItemPainkiller","Skin_Sniper1_DZ","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","FoodMRE","ItemWaterbottle","ItemBandage","ItemBloodbag","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemBandage","ItemBandage","ItemBandage"];
	DefaultWeapons = ["ItemToolbox","ItemEtool","ItemMatchbox_DZE","ItemGPS","ItemCompass","NVGoggles","Binocular_Vector","ItemKnife","ItemMap","UZI_SD_EP1","ItemFishingPole","ItemCrowbar","ItemHatchet_DZE","M4SPR"];
	DefaultBackpack = "DZ_LargeGunBag_EP1";
	DefaultBackpackWeapon = "";
 	hint format["Here is your donor loadout %1", name player];
 	};
	
	default
    {
	
	//startgear
	DefaultMagazines = ["ItemBloodbag","FoodCanBakedBeans","ItemSodaPepsi","ItemMorphine","ItemPainkiller","ItemBandage","ItemBandage","30Rnd_9x19_MP5","30Rnd_9x19_MP5","8Rnd_9x18_MakarovSD","8Rnd_9x18_MakarovSD"];
	DefaultWeapons = ["ItemCompass","ItemMatchbox","ItemMap","ItemFlashlight","ItemToolbox","ItemWatch","ItemHatchet","Binocular","MP5A5","MakarovSD"];
	DefaultBackpack = "DZ_Patrol_Pack_EP1";
	DefaultBackpackWeapon = "";
	};
};
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...