Author
|
Message
|
Veteran Member
|
05-11-2004
, 13:42
Playing sounds only once at a time
|
#1
|
Hi, i've modified a join/leaveplugin, so that it is playing a sound on each connect of a player. It works fine, but at a mapchange, when 10 or more players are connecting at the same time, the sound is playing as often, as players are connecting with only the space between their connects. Thats giving me a great echo, but I would like the sound to be played only once.
Best thing would be, if the sound would only start, when it is not already playing. Does anyone has an idea how I could realize this?
If possible the script should not depend on the length of the sound, so if I change the sound, it should alwayls work, even if its length is double or half...
|
|
|
|