I have a script that is not working in 1.06 us version, Im not sure but I think it worked on the german 1.04 version.
Its a custom loadout script that removes all the weapons from the ammo boxes and then puts every weapon in the game back into it... and also i have a few loadouts for squad officers and a long range sniper loadout.
The ammo box loadouts work in a listen and dedicated server, the westofficer and westlrsniper only work in a listen server, and the officer and sniper get their default loadouts when the mission is run on a dedicated server.... anyone have any idea how to fix this?
heres the ammo.sqs file, and I exec it with [this,"westofficer"] exec "ammo.sqs"
; *****************************************************
; EXAMPLE:
; Type this code into the INITIALIZATION box of the crate.
; [this,"eastlight" or "eastheavy"] Exec "ammo.sqs"
; *****************************************************
; Get the parameters given
_crate = _this Select 0
_loadout = _this Select 1
goto _loadout
#eastheavy
clearmagazinecargo _crate
clearweaponcargo _crate
_crate AddWeaponCargo ["AK74",10]
_crate AddWeaponCargo ["AK74GL",10]
_crate AddWeaponCargo ["AKS74U",10]
_crate AddWeaponCargo ["AKS74UN",10]
_crate AddWeaponCargo ["PK",10]
_crate AddWeaponCargo ["SVD",10]
_crate AddWeaponCargo ["KSVK",10]
_crate AddWeaponCargo ["Makarov",10]
_crate AddWeaponCargo ["MakarovSD",10]
_crate AddWeaponCargo ["RPG7V",10]
_crate AddWeaponCargo ["STRELA",10]
_crate AddWeaponCargo ["NVgoggles",50]
_crate AddWeaponCargo ["Binocular",50]
_crate AddMagazineCargo ["30Rnd_545x39_AK",50]
_crate AddMagazineCargo ["30Rnd_545x39_AKSD",50]
_crate AddMagazineCargo ["FlareWhite_GP25",20]
_crate AddMagazineCargo ["FlareGreen_GP25",20]
_crate AddMagazineCargo ["FlareYellow_GP25",20]
_crate AddMagazineCargo ["SmokeShellRed",20]
_crate AddMagazineCargo ["SmokeShellGreen",20]
_crate AddMagazineCargo ["SmokeShell",20]
_crate AddMagazineCargo ["1Rnd_HE_GP25",50]
_crate AddMagazineCargo ["FlareRed_GP25",20]
_crate AddMagazineCargo ["100Rnd_762x54_PK",50]
_crate AddMagazineCargo ["10Rnd_762x54_SVD",50]
_crate AddMagazineCargo ["5Rnd_127x108_KSVK",50]
_crate AddMagazineCargo ["8Rnd_9x18_Makarov",50]
_crate AddMagazineCargo ["8Rnd_9x18_MakarovSD",50]
_crate AddMagazineCargo ["PG7V",50]
_crate AddMagazineCargo ["PG7VR",50]
_crate AddMagazineCargo ["STRELA",50]
_crate AddMagazineCargo ["Pipebomb",50]
_crate AddMagazineCargo ["HandGrenade",50]
_crate AddMagazineCargo ["Mine",50]
_crate AddMagazineCargo ["MineE",50]
goto "done"
#westheavy
clearmagazinecargo _crate
clearweaponcargo _crate
_crate AddWeaponCargo ["M16A2",10]
_crate AddWeaponCargo ["M16A2GL",10]
_crate AddWeaponCargo ["M4",10]
_crate AddWeaponCargo ["M4GL",10]
_crate AddWeaponCargo ["M4AIM",10]
_crate AddWeaponCargo ["M4A1SD",10]
_crate AddWeaponCargo ["M4SPR",10]
_crate AddWeaponCargo ["M4A1",10]
_crate AddWeaponCargo ["M4A1GL",10]
_crate AddWeaponCargo ["G36K",10]
_crate AddWeaponCargo ["G36C",10]
_crate AddWeaponCargo ["G36A",10]
_crate AddWeaponCargo ["MP5A5",10]
_crate AddWeaponCargo ["MP5SD",10]
_crate AddWeaponCargo ["M249",10]
_crate AddWeaponCargo ["M240",10]
_crate AddWeaponCargo ["M24",10]
_crate AddWeaponCargo ["M107",10]
_crate AddWeaponCargo ["M9",10]
_crate AddWeaponCargo ["M9SD",10]
_crate AddWeaponCargo ["M136",10]
_crate AddWeaponCargo ["JAVELIN",10]
_crate AddWeaponCargo ["STINGER",10]
_crate AddWeaponCargo ["LaserDesignator",10]
_crate AddWeaponCargo ["NVgoggles",50]
_crate AddWeaponCargo ["Binocular",50]
_crate AddMagazineCargo ["30Rnd_556x45_Stanag",50]
_crate AddMagazineCargo ["30Rnd_556x45_StanagSD",50]
_crate AddMagazineCargo ["FlareWhite_M203",20]
_crate AddMagazineCargo ["FlareGreen_M203",20]
_crate AddMagazineCargo ["FlareYellow_M203",20]
_crate AddMagazineCargo ["SmokeShellRed",20]
_crate AddMagazineCargo ["SmokeShellGreen",20]
_crate AddMagazineCargo ["SmokeShell",20]
_crate AddMagazineCargo ["20Rnd_556x45_Stanag",50]
_crate AddMagazineCargo ["1Rnd_HE_M203",50]
_crate AddMagazineCargo ["FlareRed_M203",20]
_crate AddMagazineCargo ["30Rnd_556x45_G36",50]
_crate AddMagazineCargo ["200Rnd_556x45_M249",50]
_crate AddMagazineCargo ["100Rnd_762x51_M240",50]
_crate AddMagazineCargo ["5Rnd_762x51_M24",50]
_crate AddMagazineCargo ["10Rnd_127x99_M107",50]
_crate AddMagazineCargo ["30Rnd_9x19_MP5",50]
_crate AddMagazineCargo ["30Rnd_9x19_MP5SD",50]
_crate AddMagazineCargo ["15Rnd_9x19_M9",50]
_crate AddMagazineCargo ["15Rnd_9x19_M9SD",50]
_crate AddMagazineCargo ["M136",50]
_crate AddMagazineCargo ["JAVELIN",50]
_crate AddMagazineCargo ["STINGER",50]
_crate AddMagazineCargo ["Pipebomb",50]
_crate AddMagazineCargo ["HandGrenade",50]
_crate AddMagazineCargo ["Mine",50]
_crate AddMagazineCargo ["MineE",50]
_crate AddMagazineCargo ["LaserBatteries",30]
goto "done"
#westlight
clearmagazinecargo _crate
clearweaponcargo _crate
_crate AddWeaponCargo ["M4SPR",2]
_crate AddMagazineCargo ["30Rnd_556x45_Stanag",20]
_crate AddMagazineCargo ["20Rnd_556x45_Stanag",20]
_crate AddMagazineCargo ["5Rnd_762x51_M24",20]
_crate AddMagazineCargo ["Pipebomb",20]
goto "done"
#westlrsniper
removeallweapons _crate
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddMagazine "10Rnd_127x99_M107"
_crate AddWeapon "M107"
_crate AddMagazine "Pipebomb"
_crate AddMagazine "Pipebomb"
_crate AddMagazine "HandGrenade"
_crate AddMagazine "SmokeShellRed"
_crate AddWeapon "Binocular"
goto "done"
#westofficer
removeallweapons _crate
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddMagazine "30Rnd_556x45_Stanag"
_crate AddWeapon "M16A2"
_crate AddMagazine "M136"
_crate AddMagazine "M136"
_crate AddWeapon "M136"
_crate AddMagazine "SmokeShellRed"
_crate AddMagazine "SmokeShellRed"
;_crate AddWeapon "SmokeShellRed"
_crate AddWeapon "Binocular"
goto "done"
#done
exit
thanks for the help