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: Sound (
/showthread.php?tid=123363)
Sound -
maltheus. - 25.01.2010
I use on player spawn id 1097 music
And how can i stop it when player spawn?
Re: Sound -
Jeffry - 25.01.2010
Its a music right? Then you need to stop it. I think its id 1098 at OnPlayerSpawn. But not sure.
Re: Sound -
maltheus. - 25.01.2010
I dont wanna change music i just wanna to music stop when player spawn
Re: Sound -
CrucixTM - 25.01.2010
Yes, sounds works like this:
You play sound XXX_XXX_PLAY(or START or whatever)
to stop the sound, you play XXX_XXX_STOP
So sound 1097 would be stopped by playing sound 1098.
Re: Sound -
Jeffry - 25.01.2010
Yep, thats what i said. ID 1098 is a STOP signal for the server and he stops playing the music.
Re: Sound -
maltheus. - 25.01.2010
Now music ever dont work
Re: Sound -
Jeffry - 25.01.2010
Post your code.
Re: Sound -
maltheus. - 25.01.2010
Quote:
PlayerPlaySound(playerid, 1097, -1262.8296,46.6005,32.882 ;
PlayerPlaySound(playerid, 1098, -1262.8296,46.6005,32.882 ;
|
![afro](images/smilies/mrgreen.gif)
I know is wrong
Re: Sound -
On_Top_Non_Stop - 25.01.2010
Under OnPlayerConnect add PlayerPlaySound(playerid, 1097, -1262.8296,46.6005,32.882
![Cool](images/smilies/cool.gif)
;
And under OnPlayerSpawn add PlayerPlaySound(playerid, 1098, -1262.8296,46.6005,32.882
![Cool](images/smilies/cool.gif)
;