If creating a script out of this and calling the same script from eventHandler respawn it works.
Creating this loop will also fix it.
while {currentMagazine player == ""} do
{
player removeWeaponGlobal (primaryWeapon player);
player addBackpackGlobal "B_Carryall_ocamo";
player addMagazineGlobal "30Rnd_65x39_caseless_mag";
player addWeaponGlobal "arifle_MX_SW_F";
sleep 1;
};