SA-MP Forums Archive
Mute - 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: Mute (/showthread.php?tid=118930)



Mute - newpdv - 05.01.2010

Dear scripters how to turn off PlayerPlaySound?
That is, in OnPlayerRequestClass write PlayerPlaySound (playerid, 1185, 0.00, 0.00, 0.00), and in OnPlayerSpawn need to turn off the sound


Re: Mute - Niixie - 05.01.2010

i guess the music stops then the song is done?


Re: Mute - newpdv - 05.01.2010

And if it is the infinite?


Re: Mute - Niixie - 05.01.2010

i dont know much about songs. but try playing another sound when he spawns, then he should hear that and the otherone stops. the new one on spawn should be a short one
Doonno if it would work?


Re: Mute - newpdv - 05.01.2010

I already did. The second sound is played in parallel, and stops, but the first continues to play.


Re: Mute - patchkinson - 05.01.2010

its simple
OnPlayerRequestClass write PlayerPlaySound (playerid, 1185, 0.00, 0.00, 0.00)
so it plays sound 1185 which is a sound.
and
PlayerPlaySound (playerid, 1186, 0.00, 0.00, 0.00)
will shut up the sound you have at playerrequestclass
so example:
OnPlayerRequestClass write PlayerPlaySound (playerid, 1185, 0.00, 0.00, 0.00)
and to shut it
OnPlayerSpawn PlayerPlaySound (playerid, 1186, 0.00, 0.00, 0.00)


Re: Mute - newpdv - 05.01.2010

Thank you very much!
I did 1057, it did not stop the first sound, and in 1186 stopped


Re: Mute - patchkinson - 05.01.2010

no problem xD


Re: Mute - mansonh - 06.01.2010

kinda late but
https://sampwiki.blast.hk/wiki/SoundID
SOUND_BIKE_AWARD_TRACK_START 1185 (music)
SOUND_BIKE_AWARD_TRACK_STOP 1186