SA-MP Forums Archive
How to stop PlayPlayerSound? - 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: How to stop PlayPlayerSound? (/showthread.php?tid=206817)



How to stop PlayPlayerSound? - Dex007HLH - 04.01.2011

i have this PlayerPlaySound(playerid, 1185, 0.0, 0.0, 5.0);
on my OnPlayerRequestClass, so a awesome music sounds when they are choosing an skin, but when they spawn, the music stills there, what i have to put on OnPlayerSpawn to stop the music?


Re: How to stop PlayPlayerSound? - admantis - 04.01.2011

Play a blank sound ?


Re: How to stop PlayPlayerSound? - clum# - 04.01.2011

Set the sound to play at a specific position (where the player skin select is) and then spawn the player in a different place.


Re: How to stop PlayPlayerSound? - Dex007HLH - 04.01.2011

The problem perssist, help!


Re: How to stop PlayPlayerSound? - alpha500delta - 04.01.2011

Set the music +1, so it would be i have this PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
And set under OnPlayerSPawn or make a /stopmusic command

@ Clum# You cant set music to play at a certain position, only on players


Re: How to stop PlayPlayerSound? - Dex007HLH - 04.01.2011

Quote:
Originally Posted by alpha500delta
View Post
Set the music +1, so it would be i have this PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
And set under OnPlayerSPawn or make a /stopmusic command

@ Clum# You cant set music to play at a certain position, only on players
Thanks ! it worked.
I love you i solved my problem!
thnx bai!