We run a loadout script on the server, but for some reason, players have an 50% chance of getting the winchester loadout when they spawn, even though their ID is not linked to it. All the other players receive their custom loadouts fine. The default loadout also works half the time. Here's the coding if anyone can solve what the issue is.
Question
ddmankiller
We run a loadout script on the server, but for some reason, players have an 50% chance of getting the winchester loadout when they spawn, even though their ID is not linked to it. All the other players receive their custom loadouts fine. The default loadout also works half the time. Here's the coding if anyone can solve what the issue is.
//Default Loadout
DefaultMagazines = ["ItemBandage","ItemPainkiller","8Rnd_9x18_MakarovSD","8Rnd_9x18_MakarovSD"];
DefaultWeapons = ["MakarovSD","ItemMap"];
DefaultBackpack = "";
DefaultBackpackWeapon = "";
//Winchester Loadout
if ((getPlayerUID player) in [""]) then { //People:
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","15Rnd_W1866_Slug","15Rnd_W1866_Slug"];
DefaultWeapons = ["glock17_EP1","Winchester1866","ItemMap","ItemFlashlightRed","ItemCompass","ItemKnife","ItemHatchet_DZE","ItemMatchbox_DZE"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
//Holo Loadout
if ((getPlayerUID player) in [""]) then { //People:
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag"];
DefaultWeapons = ["glock17_EP1","BAF_L85A2_RIS_Holo","Binocular","ItemMap","ItemCompass","ItemKnife","ItemCrowbar","ItemFlashlightRed","ItemHatchet_DZE","ItemMatchbox_DZE"];
DefaultBackpack = "DZ_Backpack_EP1";
DefaultBackpackWeapon = "";
};
//SVD Camo Loadout
if ((getPlayerUID player) in [""]) then { //People:
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","10Rnd_762X54_SVD","10Rnd_762X54_SVD","10Rnd_762X54_SVD"];
DefaultWeapons = ["UZI_SD_EP1","SVD_CAMO","Binocular_Vector","NVGoggles","ItemMap","ItemCompass","ItemGPS","ItemWatch","ItemKnife","ItemToolbox","ItemCrowbar","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"];
DefaultBackpack = "DZ_LargeGunBag_EP1";
DefaultBackpackWeapon = "";
};
//custom loadout 1
if ((getPlayerUID player) in [""]) then { //People:
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","FoodSteakCooked","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","Survivor3_DZ"];
DefaultWeapons = ["M9SD","M4A1_AIM_SD_CAMO","Binocular_Vector","NVGoggles","ItemMap","ItemSledge","ItemCompass","ItemGPS","ItemWatch","ItemKnife","ItemToolbox","ItemCrowbar","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"];
DefaultBackpack = "DZ_LargeGunBag_EP1";
DefaultBackpackWeapon = "";
};
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now