Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
reeceythelegend

Adding players to custom loadout lists when server is running?

Recommended Posts

Hi, I would like to know if it is possible to add players to a custom loadout list I have on my server while the server is running?

 

Here is the script:

*/
 
private ["_player","_UID"];
_player = player;
_UID = getPlayerUID _player;
 
if(isNil "AdminList") then {
AdminList = ["76561198058876600","76561198063243966","76561198063320370"]; // Admins (ONLY if you don't have my admin tool installed)
ModList = ["11111111111","222222222222"];}; // Mods (ONLY if you don't have my admin tool installed)
DonorList = ["11111111111","222222222222"]; // Donors
ProDonorList = ["11111111111","222222222222"]; // ProDonors
 
//Admin Loadout
if (_UID in AdminList) then {
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","17Rnd_9x19_glock17","17Rnd_9x19_glock17",",30Rnd_762x39_AK47","30Rnd_762x39_AK47","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemSodaMdew","FoodSteakCooked"];
DefaultWeapons = ["glock17_EP1","AK_47_M","NVGoggles","ItemGPS","ItemMap","ItemKnife","ItemToolbox","ItemCrowbar","ItemHatchet_DZE","Binocular_Vector","ItemMatchbox","ItemFlashlight","ItemCompass","ItemWatch"];
DefaultBackpack = "DZ_Backpack_EP1";
DefaultBackpackWeapon = "";
}else{
//Pro-Donor Loadout
if(_UID in ProDonorList) then {
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","ItemMorphine","ItemPainkiller","ItemBloodbag","FoodSteakCooked","ItemSodaMdew","ItemBriefcase100oz","Skin_Sniper1_DZ"];
DefaultWeapons = ["M9SD","M4A1_Aim","NVGoggles","ItemMap","ItemToolbox","ItemCompass","ItemGps","Binocular_Vector","ItemWatch","ItemKnife","ItemHatchet","ItemMatchbox","ItemFlashlight","ItemAntibiotic"];
DefaultBackpack = "DZ_Backpack_EP1";
DefaultBackpackWeapon = "";
}else{
//Moderator Loadout
if(_UID in ModList) then {
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","30Rnd_556x45_G36","30Rnd_556x45_G36","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemSodaRabbit","ItemSodaRabbit","FoodSteakCooked"];
DefaultWeapons = ["G36K_camo","ItemGPS","ItemKnife","ItemToolbox"];
DefaultBackpack = "DZ_LargeGunBag_EP1";
DefaultBackpackWeapon = "";
}else{
//Donor Loadout
if(_UID in DonorList) then {
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","FoodCanBakedBeans","ItemSodaCoke","30Rnd_545x39_AK","30Rnd_545x39_AK","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","Skin_Camo1_DZ"];
DefaultWeapons = ["AK_74","M9SD","ItemMap","ItemHatchet_DZE","ItemToolbox","Binocular"," ItemCompass"," ItemGps","ItemWatch","ItemKnife","ItemMatchbox","ItemFlashlight","NVGoggles","ItemGoldBar10oz"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
}else{
//Default Loadout for normal players
DefaultMagazines = ["ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","ItemSodaCoke","8Rnd_9x18_Makarov","FoodCanBakedBeans"];
DefaultWeapons = ["ItemMap","ItemHatchet_DZE","Makarov"];
DefaultBackpack = "DZ_Patrol_Pack_EP1";
 
DefaultBackpackWeapon = "";
};
};
};
};
 
Thanks, 
Reece
 

Share this post


Link to post
Share on other sites

Unless you have some DB based version of custom loadouts thats a no go unfortunately.

Wouldnt really matter either as i believe the server has to be restarted to load the new entries from the db aswell. (not quite sure though)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×