1
2
3
4
2
3
4
addhook('join', 'SoundOnJoin') function SoundOnJoin(id) parse("sv_sound2 "..id.." music.ogg") end
And when you choose a look (skin) the sound will stop:
1
2
3
4
5
6
2
3
4
5
6
addhook("team","stopsound") function stopsound(id,team,look) if look >= 0 then parse("sv_stopsound "..id.." music.ogg") end end
But the problem is, if I'm listening the music and OTHER player joins and select a look (skin) the sound stop for me but it may stop just for him. Anyone knows how to fix this?