This is my script and it works, but in multiplayer it works only on the client who exec the script, and i want that when someone reloads the crate also to the other players the crate is reloaded.
; Script che ricarica le armi e munizioni presenti nella cassa
; (primo parametro)
; Variabili locali
_cassa = _this select 0
_st = _this select 1
_qt = 10
?(_st == 1) : titleText ["Cassa munizioni rifornita!", "PLAIN"]
; Svuotamento cassa
clearWeaponCargo _cassa
clearMagazineCargo _cassa
; Riempimento cassa
; Armi
_cassa addWeaponCargo ["M16A2", _qt]
_cassa addWeaponCargo ["M16A2GL", _qt]
_cassa addWeaponCargo ["M16A4", _qt]
_cassa addWeaponCargo ["M16A4_ACG", _qt]
_cassa addWeaponCargo ["M16A4_ACG_GL", _qt]
_cassa addWeaponCargo ["M4", _qt]
_cassa addWeaponCargo ["M4GL", _qt]
_cassa addWeaponCargo ["M4AIM", _qt]
_cassa addWeaponCargo ["M4A1SD", _qt]
_cassa addWeaponCargo ["M4SPR", _qt]
_cassa addWeaponCargo ["M4A1", _qt]
_cassa addWeaponCargo ["M4A1GL", _qt]
_cassa addWeaponCargo ["G36K", _qt]
_cassa addWeaponCargo ["G36C", _qt]
_cassa addWeaponCargo ["G36A", _qt]
_cassa addWeaponCargo ["MP5A5", _qt]
_cassa addWeaponCargo ["MP5SD", _qt]
_cassa addWeaponCargo ["M249", _qt]
_cassa addWeaponCargo ["M240", _qt]
_cassa addWeaponCargo ["M24", _qt]
_cassa addWeaponCargo ["M107", _qt]
_cassa addWeaponCargo ["M9", _qt]
_cassa addWeaponCargo ["M9SD", _qt]
_cassa addWeaponCargo ["M136", _qt]
_cassa addWeaponCargo ["JAVELIN", _qt]
_cassa addWeaponCargo ["STINGER", _qt]
; Munizioni
_cassa addMagazineCargo ["30Rnd_556x45_Stanag", _qt]
_cassa addMagazineCargo ["30Rnd_556x45_StanagSD", _qt]
_cassa addMagazineCargo ["FlareWhite_M203", _qt]
_cassa addMagazineCargo ["FlareGreen_m203", _qt]
_cassa addMagazineCargo ["FlareRed_m203", _qt]
_cassa addMagazineCargo ["FlareYellow_m203", _qt]
_cassa addMagazineCargo ["1Rnd_HE_M203", _qt]
_cassa addMagazineCargo ["30Rnd_556x45_G36", _qt]
_cassa addMagazineCargo ["30Rnd_9x19_MP5", _qt]
_cassa addMagazineCargo ["30Rnd_9x19_MP5SD", _qt]
_cassa addMagazineCargo ["200Rnd_556x45_M249", _qt]
_cassa addMagazineCargo ["100Rnd_762x51_M240", _qt]
_cassa addMagazineCargo ["5Rnd_762x51_M24", _qt]
_cassa addMagazineCargo ["10Rnd_127x99_m107", _qt]
_cassa addMagazineCargo ["15Rnd_9x19_M9", _qt]
_cassa addMagazineCargo ["15Rnd_9x19_M9SD", _qt]
_cassa addMagazineCargo ["M136", _qt]
_cassa addMagazineCargo ["JAVELIN", _qt]
_cassa addMagazineCargo ["STINGER", _qt]