This post has been marked by the post author as the answer.
Try this.:
-- Pcs
function play_soft_init(e)
end
function play_soft_main(e)
if g_Entity[e]['plrinzone']==1 then
LoopSound(e)
SetSound(e,0)
SetSoundVolume(70)
ActivateIfUsed(e)
else
StopSound(e)
end
end
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11