I was working until 5 in the morning on this and was stumped trying to figure it out. I wasn't sure if I could use a Matrix until I stumbled across it in the wiki. Regardless, I didn't know if it would be applicable.
Also, throughout the night I got it to where the sound would play in a loop manner but when completely stopped they still looped.
I applied the code you supplied and it still just loops. Even if I stand completely still and not move anything it loops. Also, When I disable iceskate mode it still loops until map change.
I understand the logic in your code though. It was along the lines of what I was thinking of without the matrix. I just used a numerous amount of loops to compensate for the lack of a matrix.
Also, When you get the users origin, I wasn't sure if it actually assigned an index in the array that value rather then just retrieving the origin for the time being. I suppose it does assign the value to the index though.
One last thing, I was looking through scripting help because I was at a point in the code where when I compiled it and ran it I heard the noises of other players rather then myself. Would using
Code:
client_cmd(players[i],"spk misc/iceskate")
by sufficient?
I do appreciate your guys help. I am learning very much from this. It's pretty fun while at the same time challenging. You guys are going in the credits BIG TIME!
__________________