Jump to content
  • 0

Hello guys | Custom Loadout


canip0010

Question

Okay. I need some help to custom loadout

 

The two players i have pasted in dont get their Loadouts. Why?

 

 

This is the script inside init.sqf

 

//Default Loadout
DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet","ItemKnife","ItemGPS","ItemMap","ItemToolbox"];
DefaultBackpack = "DZ_Patrol_Pack_EP1";
DefaultBackpackWeapon = "";


//Pro-Donator Loadout
if ((getPlayerUID player) in ["76561198030709588,76561198133594430"]) then {  //Pro-Donators: Loke , canip
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug","ItemGoldBar10oz"];
DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
DefaultBackpack = "DZ_GunBag_EP1";
DefaultBackpackWeapon = "";
};

I dont think there is any problems with that...

 

But the Player UID... maybe

 

Please help me

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Probably wrong here but shouldn't your donator loadouts go above your default loadout in the file?

 

It would be easier to just else it:

if ((getPlayerUID player) in ["76561198030709588,76561198133594430"]) then {  //Pro-Donators: Loke , canip
	//Pro-Donator Loadout
	DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug","ItemGoldBar10oz"];
	DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
	DefaultBackpack = "DZ_GunBag_EP1";
	DefaultBackpackWeapon = "";
} else {
	//Default Loadout
	DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
	DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet","ItemKnife","ItemGPS","ItemMap","ItemToolbox"];
	DefaultBackpack = "DZ_Patrol_Pack_EP1";
	DefaultBackpackWeapon = "";
};
Link to comment
Share on other sites

  • 0

 

It would be easier to just else it:

if ((getPlayerUID player) in ["76561198030709588,76561198133594430"]) then {  //Pro-Donators: Loke , canip
	//Pro-Donator Loadout
	DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug","ItemGoldBar10oz"];
	DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
	DefaultBackpack = "DZ_GunBag_EP1";
	DefaultBackpackWeapon = "";
} else {
	//Default Loadout
	DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
	DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet","ItemKnife","ItemGPS","ItemMap","ItemToolbox"];
	DefaultBackpack = "DZ_Patrol_Pack_EP1";
	DefaultBackpackWeapon = "";
};

 

 

That's what i meant :D

Link to comment
Share on other sites

  • 0

Okay. I need some help to custom loadout

 

The two players i have pasted in dont get their Loadouts. Why?

 

 

This is the script inside init.sqf

 

//Default Loadout
DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet","ItemKnife","ItemGPS","ItemMap","ItemToolbox"];
DefaultBackpack = "DZ_Patrol_Pack_EP1";
DefaultBackpackWeapon = "";


//Pro-Donator Loadout
if ((getPlayerUID player) in ["76561198030709588,76561198133594430"]) then {  //Pro-Donators: Loke , canip
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug","ItemGoldBar10oz"];
DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
DefaultBackpack = "DZ_GunBag_EP1";
DefaultBackpackWeapon = "";
};

I dont think there is any problems with that...

 

But the Player UID... maybe

 

Please help me

 

Try adding this above:

waitUntil {getPlayerUID player != ""};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...