Spodermayt Posted September 17, 2014 Report Share Posted September 17, 2014 Loadout+ Status: Release Hi, so this is my first ever addon for dayz. I believe it works with vanilla, Epoch and Overpoch + other maps. Basically this adds options for loadouts. Like you can customize loadouts for donators, admins, moderators, or have random loadouts for everyone. (Note* The loadouts are not "random" you can make different kind of loadouts and the script selects 1 to spawn with.) To install, drag the zip file's content to your custom folder in your mission.pbo. If you don't have a custom folder, make one. Open Init.sqf and find this // DayZ Epoch config spawnShoremode = 1; // Default = 1 (on shore) spawnArea= 1500; // Default = 1500 dayz_MapArea = 14000; // Default = 10000 Add this below that //Empty out the Loadout DefaultMagazines = [""]; DefaultWeapons = [""]; DefaultBackpack = ""; DefaultBackpackItems = [""]; and then find if (!isDedicated) then { [] execVM "custom\welcome.sqf"; //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); [] execVM "custom\colorcorrection\cc.sqf";//< //Bus Route //< [] execVM "busroute\player_axeBus.sqf"; //<You dont probably have these 3 lines. //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; }; And now add this code above "//Run the player monitor" //Custom Loadouts execVM "custom\loadout+.sqf"; And you're done! Go ahead and open the Loadout+.sqf and tweak to your liking! (This is my first ever script that i have released, so please, if you find bugs report them to me!) You can reply here, send a pm, or add me on steam: Spodermayt I hope you enjoy it! Loadout+.zip MasterHiggins, CartoonrBOY, Geisterobst and 4 others 7 Link to comment Share on other sites More sharing options...
CartoonrBOY Posted September 17, 2014 Report Share Posted September 17, 2014 Great little script - I'm sure many will find this very useful. Thanks for sharing...beans! Link to comment Share on other sites More sharing options...
poweredbypot Posted September 17, 2014 Report Share Posted September 17, 2014 Nice work, once I un-break the rest of my server I'll give it a shot and let you know what I find. Link to comment Share on other sites More sharing options...
Spodermayt Posted September 17, 2014 Author Report Share Posted September 17, 2014 It's now 23:55 and im going to sleep, i have a weird feeling that i possibly forgot something. So ill test the script and check if it all works. So if it doesn't work im updating it asap. So tomorrow morning! And thanks for the comments :) Link to comment Share on other sites More sharing options...
fexxianosch Posted September 18, 2014 Report Share Posted September 18, 2014 Quite simple but very useful script ^^ tyvm i will use it when i set up my server next month Anyway very easy to adapt special single user loadouts :-) Link to comment Share on other sites More sharing options...
DimitriPokki Posted September 18, 2014 Report Share Posted September 18, 2014 (edited) Dont work . My reconfigurable version random_loadouts.sqf Reveal hidden contents ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// //Modify these as you like. //////17.9.2014/////// ////////////////////// private ["_loadout"]; // Select a loadout 0-4 _loadout=floor(random 4); if (_loadout == 0) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 1) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 2) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 3) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 4) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; loadout_userid_configs.sqf Reveal hidden contents ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528" ]; DonorList1 = [ "76561198013762404" ]; DonorList2 = [ "76561198137280444" ]; DonorList3 = [ "76561198080407289" ]; DonorList4 = [ "76561198084422726" ]; DonorList5 = [ "76561198022038197" ]; DonorList6 = [ "76561198005347387" ]; DonorList7 = [ "76561198152844833" ]; DonorList8 = [ "76561198153172151" ]; DonorList9 = [ "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); loadout_config.sqf Reveal hidden contents [] execVM "custom\loadout+\configs\loadout_userid_configs.sqf"; waitUntil{!isNil "PlayerListLoaded"}; // Wait for adminlist before starting private["_admin","_mod","_donor","_normal","_rand"] ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// //////17.9.2014/////// ////////////////////// _rand = 1 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 0 // 1 for Custom loadout for ADMINS _mod = 0 // 1 for Custom loadout for MODERATORS _donor = 0 // 1 for Custom loadout for DONATORS _normal = 0 //1 for Custom loadout for non-admin/mod/donor players if (_random == 0) then { if (_admin == 1) then { if ((getPlayerUID player) in AdminList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; //Add consumable items here, painkillers, antibiotics, jerry cans, magazines... DefaultWeapons = ["ItemMap"]; //Add weapons here, primary, secondary, and also toolbelt items. DefaultBackpack = ""; //Self explanatory. DefaultBackpackWeapon = ""; //Adds stuff inside the backpack. Haven't tried it myself. Don't know if it works. }; }; if (_mod == 1) then { if ((getPlayerUID player) in ModList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; DefaultWeapons = ["ItemMap"]; DefaultBackpack = ""; DefaultBackpackWeapon = ""; }; }; if (_donor == 1) then { if ((getPlayerUID player) in DonorList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","ItemMorphine","5Rnd_127x99_as50","ItemPainkiller","ItemBloodbag","ItemPainkiller","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_AS50_scoped_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList1) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_L_CQC_CCO_SD","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR"]; }; if ((getPlayerUID player) in DonorList2) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_L_CQC_CCO_SD","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR"]; }; if ((getPlayerUID player) in DonorList3) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","100Rnd_762x54_PK","100Rnd_762x54_PK","100Rnd_762x54_PK","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","Pecheneg_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["BAF_AS50_scoped_DZ","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList4) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","20Rnd_762x51_B_SCAR","ItemPainkiller","ItemBloodbag","20Rnd_762x51_B_SCAR","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_H_LNG_Sniper","SCAR_H_STD_EGLM_Spect","SCAR_L_CQC_EGLM_Holo","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag"]; }; if ((getPlayerUID player) in DonorList5) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; if ((getPlayerUID player) in DonorList6) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; if ((getPlayerUID player) in DonorList7) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","ItemMorphine","5Rnd_127x99_as50","ItemPainkiller","ItemBloodbag","ItemPainkiller","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_AS50_scoped_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList8) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","ItemMorphine","20Rnd_762x51_DMR","ItemPainkiller","ItemBloodbag","20Rnd_762x51_DMR","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","DMR_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackWeapon = [""]; }; if ((getPlayerUID player) in DonorList9) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped_W","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; }; if (_normal == 1) then { if (!(getPlayerUID player) in DonorList) && !(getPlayerUID player) in AdminList && !(getPlayerUID player) in ModList)) then { //Add things for non-admin/donor/moderator players. DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; }; }; if (_random == 1) then { [] ExecVM "custom\loadout+\core_files_dont_edit\random_loadouts.sqf" }; diag_log("Loadout config loaded!"); Edited September 18, 2014 by DimitriPokki Link to comment Share on other sites More sharing options...
Spodermayt Posted September 18, 2014 Author Report Share Posted September 18, 2014 On 9/18/2014 at 10:51 AM, DimitriPokki said: Dont work . My reconfigurable version random_loadouts.sqf Reveal hidden contents ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// //Modify these as you like. //////17.9.2014/////// ////////////////////// private ["_loadout"]; // Select a loadout 0-4 _loadout=floor(random 4); if (_loadout == 0) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 1) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 2) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 3) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; if (_loadout == 4) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; loadout_userid_configs.sqf Reveal hidden contents ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528" ]; DonorList1 = [ "76561198013762404" ]; DonorList2 = [ "76561198137280444" ]; DonorList3 = [ "76561198080407289" ]; DonorList4 = [ "76561198084422726" ]; DonorList5 = [ "76561198022038197" ]; DonorList6 = [ "76561198005347387" ]; DonorList7 = [ "76561198152844833" ]; DonorList8 = [ "76561198153172151" ]; DonorList9 = [ "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); loadout_config.sqf Reveal hidden contents [] execVM "custom\loadout+\configs\loadout_userid_configs.sqf"; waitUntil{!isNil "PlayerListLoaded"}; // Wait for adminlist before starting private["_admin","_mod","_donor","_normal","_rand"] ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// //////17.9.2014/////// ////////////////////// _rand = 1 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 0 // 1 for Custom loadout for ADMINS _mod = 0 // 1 for Custom loadout for MODERATORS _donor = 0 // 1 for Custom loadout for DONATORS _normal = 0 //1 for Custom loadout for non-admin/mod/donor players if (_random == 0) then { if (_admin == 1) then { if ((getPlayerUID player) in AdminList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; //Add consumable items here, painkillers, antibiotics, jerry cans, magazines... DefaultWeapons = ["ItemMap"]; //Add weapons here, primary, secondary, and also toolbelt items. DefaultBackpack = ""; //Self explanatory. DefaultBackpackWeapon = ""; //Adds stuff inside the backpack. Haven't tried it myself. Don't know if it works. }; }; if (_mod == 1) then { if ((getPlayerUID player) in ModList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; DefaultWeapons = ["ItemMap"]; DefaultBackpack = ""; DefaultBackpackWeapon = ""; }; }; if (_donor == 1) then { if ((getPlayerUID player) in DonorList) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","ItemMorphine","5Rnd_127x99_as50","ItemPainkiller","ItemBloodbag","ItemPainkiller","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_AS50_scoped_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList1) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_L_CQC_CCO_SD","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR"]; }; if ((getPlayerUID player) in DonorList2) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_L_CQC_CCO_SD","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR"]; }; if ((getPlayerUID player) in DonorList3) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","100Rnd_762x54_PK","100Rnd_762x54_PK","100Rnd_762x54_PK","ItemMorphine","ItemMorphine","ItemPainkiller","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","Pecheneg_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["BAF_AS50_scoped_DZ","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList4) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","ItemMorphine","20Rnd_762x51_B_SCAR","ItemPainkiller","ItemBloodbag","20Rnd_762x51_B_SCAR","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","M110_NVG_EP1","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["SCAR_H_LNG_Sniper","SCAR_H_STD_EGLM_Spect","SCAR_L_CQC_EGLM_Holo","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag"]; }; if ((getPlayerUID player) in DonorList5) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; if ((getPlayerUID player) in DonorList6) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; if ((getPlayerUID player) in DonorList7) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","ItemMorphine","5Rnd_127x99_as50","ItemPainkiller","ItemBloodbag","ItemPainkiller","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_AS50_scoped_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50"]; }; if ((getPlayerUID player) in DonorList8) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","ItemMorphine","20Rnd_762x51_DMR","ItemPainkiller","ItemBloodbag","20Rnd_762x51_DMR","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","DMR_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackWeapon = [""]; }; if ((getPlayerUID player) in DonorList9) then { DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","ItemMorphine","5Rnd_86x70_L115A1","ItemPainkiller","ItemBloodbag","ItemAntibiotic","ItemWaterbottleBoiled","FoodMRE","Skin_GUE_Soldier_Crew_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"]; DefaultWeapons = ["UZI_SD_EP1","BAF_LRR_scoped_W","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio","Kostey_notebook"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackItems = ["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1"]; }; }; if (_normal == 1) then { if (!(getPlayerUID player) in DonorList) && !(getPlayerUID player) in AdminList && !(getPlayerUID player) in ModList)) then { //Add things for non-admin/donor/moderator players. DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]; DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet","Kostey_notebook"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = [""]; DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"]; }; }; }; if (_random == 1) then { [] ExecVM "custom\loadout+\core_files_dont_edit\random_loadouts.sqf" }; diag_log("Loadout config loaded!"); Sorry to hear that it didn't work. Well, atleast this: ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528" ]; DonorList1 = [ "76561198013762404" ]; DonorList2 = [ "76561198137280444" ]; DonorList3 = [ "76561198080407289" ]; DonorList4 = [ "76561198084422726" ]; DonorList5 = [ "76561198022038197" ]; DonorList6 = [ "76561198005347387" ]; DonorList7 = [ "76561198152844833" ]; DonorList8 = [ "76561198153172151" ]; DonorList9 = [ "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); Should be ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528", "76561198013762404", "76561198137280444", "76561198080407289", "76561198084422726", "76561198022038197", "76561198005347387", "76561198152844833", "76561198153172151", "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); I doubt that wont solve the issue. I'll fix it for you tomorrow, and release the v1.1 with some more functions. So stay tuned and sorry! Link to comment Share on other sites More sharing options...
DimitriPokki Posted September 18, 2014 Report Share Posted September 18, 2014 On 9/18/2014 at 4:41 PM, Spodermayt said: Sorry to hear that it didn't work. Well, atleast this: ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528" ]; DonorList1 = [ "76561198013762404" ]; DonorList2 = [ "76561198137280444" ]; DonorList3 = [ "76561198080407289" ]; DonorList4 = [ "76561198084422726" ]; DonorList5 = [ "76561198022038197" ]; DonorList6 = [ "76561198005347387" ]; DonorList7 = [ "76561198152844833" ]; DonorList8 = [ "76561198153172151" ]; DonorList9 = [ "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); Should be ////////////////////// //Made by Spodermayt// ////////////////////// /////Last Update////// // If you dont know what your steamID is, google SteamID. Remember that the steamID used here is the SteamID64!!! //////17.9.2014/////// ////////////////////// AdminList = [ "11111111111", //Place your ingame name here. "22222222222", //Place your friends ingame name here. "33333333333" //3rd friend here. Remember that the last line can't have a (,) at the end! ]; ModList = [ "11111111111", //Place your moderators ingame name here. "22222222222", //Place your moderators ingame name here. "33333333333" //Place your moderators ingame name here. ]; DonorList = [ "76561198090256528", "76561198013762404", "76561198137280444", "76561198080407289", "76561198084422726", "76561198022038197", "76561198005347387", "76561198152844833", "76561198153172151", "76561198067710272" ]; // Please dont edit below if you don't know what you're doing. PlayerListLoaded = true; diag_log("Player UID List successfully loaded!"); I doubt that wont solve the issue. I'll fix it for you tomorrow, and release the v1.1 with some more functions. So stay tuned and sorry! I use different loadout for vip if ((getPlayerUID player) in DonorList1) then {if ((getPlayerUID player) in DonorList2) then { Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted September 18, 2014 Report Share Posted September 18, 2014 Doesn't epoch already come with a custom / preset loadout configuration? Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/18/2014 at 9:14 PM, Chunk. No Captain Chunk. said: Doesn't epoch already come with a custom / preset loadout configuration? Yes it indeed does. But im looking for a way to make loadouts for different player levels. The epoch's loadout is global so it applies to everyone. This is why my script doesn't work atm. Im going to rewrite it soon. Link to comment Share on other sites More sharing options...
fexxianosch Posted September 19, 2014 Report Share Posted September 19, 2014 @DimitriPokki: Did you switch: this _rand = 1 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 0 // 1 for Custom loadout for ADMINS _mod = 0 // 1 for Custom loadout for MODERATORS _donor = 0 // 1 for Custom loadout for DONATORS _normal = 0 //1 for Custom loadout for non-admin/mod/donor players to this? _rand = 0 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 1 // 1 for Custom loadout for ADMINS _mod = 1 // 1 for Custom loadout for MODERATORS _donor = 1 // 1 for Custom loadout for DONATORS _normal = 1 //1 for Custom loadout for non-admin/mod/donor players Since your gear cofigurations for random_loadouts.sqf are all the same you dont need to use it anyway, so that you can just ignore the random_loadouts.sqf... @Spodermayt: I would recommend to let DimitriPokki first test it like i wrote, because your code looks correct. Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/19/2014 at 8:25 AM, fexxianosch said: @DimitriPokki: Did you switch: this _rand = 1 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 0 // 1 for Custom loadout for ADMINS _mod = 0 // 1 for Custom loadout for MODERATORS _donor = 0 // 1 for Custom loadout for DONATORS _normal = 0 //1 for Custom loadout for non-admin/mod/donor players to this? _rand = 0 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 1 // 1 for Custom loadout for ADMINS _mod = 1 // 1 for Custom loadout for MODERATORS _donor = 1 // 1 for Custom loadout for DONATORS _normal = 1 //1 for Custom loadout for non-admin/mod/donor players Since your gear cofigurations for random_loadouts.sqf are all the same you dont need to use it anyway, so that you can just ignore the random_loadouts.sqf... @Spodermayt: I would recommend to let DimitriPokki first test it like i wrote, because your code looks correct. I still believe the DefaultMagazines for example is a global variable. or is it? I'm home now so ill start working on this. I'll re-write the whole script, make it a bit more easy to understand and configure. I'll keep you guys updated. Come back here in 1 hour, i think ill be done then. (How does one misspell "home" as "hope"?) Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/18/2014 at 7:01 PM, DimitriPokki said: I use different loadout for vip if ((getPlayerUID player) in DonorList1) then {if ((getPlayerUID player) in DonorList2) then { Ahh, sorry :D i thought that u just wrote it incorrectly, but if u want to use different loadouts for different players, i think that many people would like this aswell. I'll add this feature in the next update. Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 Hello! I got the script working! I't worked for my friend but not for me, the problem was that epoch was still loading the default loadout. Now i made everything into 1 SQF file so its easy to install. And we added a couple lines to init.sqf. The line empties the default loadout and loads the custom a bit later. Hope you enjoy! Link to comment Share on other sites More sharing options...
fexxianosch Posted September 19, 2014 Report Share Posted September 19, 2014 Never did scripting for Amra2/EpochMod but wouldnt it be easier to compare directly instead using Lists with only one Entry? for example: add _special private["_admin","_mod","_donor","_normal","_rand","_special"] _rand = 0 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 1 // 1 for Custom loadout for ADMINS _mod = 1 // 1 for Custom loadout for MODERATORS _donor = 1 // 1 for Custom loadout for DONATORS _normal = 1 //1 for Custom loadout for non-admin/mod/donor players _special = 1 // 1 for special single person loadout; put the UID in like this: if ((getPlayerUID player) == "11111111111") and change if (_special == 1) then { if ((getPlayerUID player) == "11111111111") then { //putting in the UID directly DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; DefaultWeapons = ["ItemMap"]; DefaultBackpack = ""; DefaultBackpackWeapon = ""; So you could still keep the longer "Loadout....List"s but its taking less operations... I know BI got a kind of own scripting langauge, but is it possible? (like the following example in c++) Reveal hidden contents #include<iostream> #include<string> using namespace std; int main(){ string a="test"; string b="test"; if (a == b) cout<<"a=b"<<endl; else cout<<"a not equal b"<<endl; if (a != b) cout<<"a=b"<<endl; else cout<<"a not equal b"<<endl; if (a == "test") cout<<"a=test"<<endl; else cout<<"a not equal test"<<endl; if (a != "test") cout<<"a=test"<<endl; else cout<<"a not equal test"<<endl; system( "pause" ); return 0; }; Output: a=b a not equal b a=test a not equal test Press any key to continue... //edit: OK... nvm... i didn't really look in the forums... next time i should use the search function earlier :-P kind of similar: //Donator Loadout //example player=456789123 if ((getPlayerUID player) in ["456789123"]) then { //Donators DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","ItemGoldBar","15Rnd_W1866_Slug","15Rnd_W1866_Slug"]; DefaultWeapons = ["glock17_EP1","Winchester1866","ItemMap","ItemFlashlightRed","ItemHatchet"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = ""; }; Link to comment Share on other sites More sharing options...
DimitriPokki Posted September 19, 2014 Report Share Posted September 19, 2014 On 9/17/2014 at 3:41 PM, Spodermayt said: //Empty out the Loadout DefaultMagazines = [""]; DefaultWeapons = [""]; DefaultBackpack = ""; DefaultBackpackWeapon = ""; change to DefaultMagazines = [""]; DefaultWeapons = [""]; DefaultBackpack = ""; DefaultBackpackItems = [""]; Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/19/2014 at 11:27 AM, DimitriPokki said: change to DefaultMagazines = [""]; DefaultWeapons = [""]; DefaultBackpack = ""; DefaultBackpackItems = [""]; Umm... you can do that. I just think that commenting out what everything does makes scripts alot easier to modify later ;) Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/19/2014 at 10:41 AM, fexxianosch said: Never did scripting for Amra2/EpochMod but wouldnt it be easier to compare directly instead using Lists with only one Entry? for example: add _special private["_admin","_mod","_donor","_normal","_rand","_special"] _rand = 0 // Set to 1 to use RANDOM loadouts. If you use this, ignore everything below. _admin = 1 // 1 for Custom loadout for ADMINS _mod = 1 // 1 for Custom loadout for MODERATORS _donor = 1 // 1 for Custom loadout for DONATORS _normal = 1 //1 for Custom loadout for non-admin/mod/donor players _special = 1 // 1 for special single person loadout; put the UID in like this: if ((getPlayerUID player) == "11111111111") and change if (_special == 1) then { if ((getPlayerUID player) == "11111111111") then { //putting in the UID directly DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"]; DefaultWeapons = ["ItemMap"]; DefaultBackpack = ""; DefaultBackpackWeapon = ""; So you could still keep the longer "Loadout....List"s but its taking less operations... I know BI got a kind of own scripting langauge, but is it possible? (like the following example in c++) Reveal hidden contents #include<iostream> #include<string> using namespace std; int main(){ string a="test"; string b="test"; if (a == b) cout<<"a=b"<<endl; else cout<<"a not equal b"<<endl; if (a != b) cout<<"a=b"<<endl; else cout<<"a not equal b"<<endl; if (a == "test") cout<<"a=test"<<endl; else cout<<"a not equal test"<<endl; if (a != "test") cout<<"a=test"<<endl; else cout<<"a not equal test"<<endl; system( "pause" ); return 0; }; Output: a=b a not equal b a=test a not equal test Press any key to continue... //edit: OK... nvm... i didn't really look in the forums... next time i should use the search function earlier :-P kind of similar: //Donator Loadout //example player=456789123 if ((getPlayerUID player) in ["456789123"]) then { //Donators DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","ItemGoldBar","15Rnd_W1866_Slug","15Rnd_W1866_Slug"]; DefaultWeapons = ["glock17_EP1","Winchester1866","ItemMap","ItemFlashlightRed","ItemHatchet"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = ""; }; I just re-did the whole "loadout+" into 1 file, i realized how to make it as simple as possible. check the new file, its a lot cleaner and it works better. If someone wants "special" people they could do it like: _special = ["111111","111111","53653424"]; if ((getPlayerUID player) in _special) then { loadouts and stuff here }; Or if you want what Pokki wanted: if ((getPlayerUID player) in ["PlayerUIDHere"] then { stuff here }; if ((getPlayerUID player) in ["anotherPlayerUIDHere"] then { stuff here }; if ((getPlayerUID player) in ["3rdPlayerUIDHere"] then { stuff here }; I don't really see the point in making a list for 1 uid, so this is the simplest method. You can call the uid's in many ways but meh, this works and is simple. Link to comment Share on other sites More sharing options...
DimitriPokki Posted September 19, 2014 Report Share Posted September 19, 2014 DefaultBackpackWeapon = ""; dont work replace to DefaultBackpackItems = [""]; Link to comment Share on other sites More sharing options...
Spodermayt Posted September 19, 2014 Author Report Share Posted September 19, 2014 On 9/19/2014 at 2:20 PM, DimitriPokki said: DefaultBackpackWeapon = ""; dont work replace to DefaultBackpackItems = [""]; Oh, thanks for telling me :) I really haven't ever used that. But changed it now :p Link to comment Share on other sites More sharing options...
Richie Posted September 29, 2014 Report Share Posted September 29, 2014 Any way to have this working with paraspawn ? the script works but the game freezes when joining, relogging gives me my random loadout but fall to my death with no option to open the parachute. Ok so it's not the paraspawn freezing the game, this script doesn't seem to play well with anyone have any ideas ? Link to comment Share on other sites More sharing options...
Spodermayt Posted September 29, 2014 Author Report Share Posted September 29, 2014 On 9/29/2014 at 1:48 PM, Richie said: Any way to have this working with paraspawn ? the script works but the game freezes when joining, relogging gives me my random loadout but fall to my death with no option to open the parachute. Ok so it's not the paraspawn freezing the game, this script doesn't seem to play well with anyone have any ideas ? I think you should make it so the players inventory gets cleared when falling down, and the "random" selection gets added after. So don't use DefaultMagazines, and such. I believe with 1065 posts i don't have to explain the rest :) have a good one m8 edit: I know its not the paraspawn causing it, but anyways we just need the player to get spawned before we add gear. Actually, leave the DefaultMags to nothing and then you can just add the rest addMagazine 'ItemBriefcase100oz'; I never used it, but just got a new server. I can give my code to you when im finished with this, ill link it here in like 10 mins. Link to comment Share on other sites More sharing options...
Richie Posted September 29, 2014 Report Share Posted September 29, 2014 I'll go make a coffee and wait 10 minutes :) Also even with 1065 posts i'm no scripter, I help when and where i can. Link to comment Share on other sites More sharing options...
Spodermayt Posted September 29, 2014 Author Report Share Posted September 29, 2014 On 9/29/2014 at 4:07 PM, Richie said: I'll go make a coffee and wait 10 minutes :) Also even with 1065 posts i'm no scripter, I help when and where i can. aight :) If you need help im just making a server so i can help you at the same time if you cant get it to work for some reason Link to comment Share on other sites More sharing options...
Richie Posted September 29, 2014 Report Share Posted September 29, 2014 Send me your new code and i should be good i hope :) Just some way to use paraspawn, spawn selection and your 1 and only random loadout script, all others are for donators and admins, i want all players to have the same random loadout, regardless of who they are. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now