#1

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
Reply
#2

i guess the music stops then the song is done?
Reply
#3

And if it is the infinite?
Reply
#4

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?
Reply
#5

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

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)
Reply
#7

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

no problem xD
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)