I found a code for this, is possible?
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
function ENT:TurnOn() if ( self.Active == 0 ) then self:StopSound( "soundfile1.wav" ) self:EmitSound( "soundfile2.wav" ) 	self:EmitSound( "soundfile3.wav" ) self.Active = 1 end end
Because i need to stop a sound ,depending on how long it takes the player.
[for example: Sounds start [2:00 mins], when the player die, stop [ sound stoped on 1:12 ]]
1× editiert, zuletzt 27.09.11 04:06:43