canip0010 Posted September 20, 2014 Report Share Posted September 20, 2014 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 More sharing options...
0 Rocu Posted September 20, 2014 Report Share Posted September 20, 2014 You could try using this: Link to comment Share on other sites More sharing options...
0 Pro_Speedy Posted September 20, 2014 Report Share Posted September 20, 2014 Probably wrong here but shouldn't your donator loadouts go above your default loadout in the file? Link to comment Share on other sites More sharing options...
0 Rocu Posted September 20, 2014 Report Share Posted September 20, 2014 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 More sharing options...
0 Pro_Speedy Posted September 20, 2014 Report Share Posted September 20, 2014 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 More sharing options...
0 mootactics Posted September 20, 2014 Report Share Posted September 20, 2014 these are great, any idea on how to add a skin to spawn on the actual character instead of adding to a magazine? Link to comment Share on other sites More sharing options...
0 Mikeeeyy Posted September 21, 2014 Report Share Posted September 21, 2014 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 More sharing options...
Question
canip0010
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now