Professional Documents
Culture Documents
if g_Entity[e]['plrinzone']==1 then
LoopSound(e,0)
ActivateIfUsed(e)
end
if g_Entity[e]['plrinzone']==1 then
LoopSound(e,0)
ActivateIfUsed(e)
else
StopSound(e,0)
end
As you can see, the moment the player leaves the zone, the sound associated with slot
0 will be instructed to stop.