SA-MP Forums Archive
Small problem with spawn sound - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small problem with spawn sound (/showthread.php?tid=200526)



Small problem with spawn sound - Face9000 - 18.12.2010

Lol i've small problem,i've added a small music when someone request class:

Код:
PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
But when i press,spawn the music keep repeating.

Is that retarded or what?LOL


Re: Small problem with spawn sound - akis_tze - 18.12.2010

when you spawn you need to stop the music


Re: Small problem with spawn sound - ExeC - 18.12.2010

You have to make the player play a sound that stops the sound that is playing on at the moment.

OnPlayerSpawn:

pawn Код:
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 10.0);



Re: Small problem with spawn sound - blackwave - 18.12.2010

on OnPlayerSpawn add:

pawn Код:
PlayerPlaySound(playerid, 1098, 0.0, 0.0, 0.0);