Class Selection music ? - 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)
+--- Thread: Class Selection music ? (
/showthread.php?tid=523219)
Class Selection music ? -
YanLanger - 01.07.2014
Hey, How do i put class selection music ?
And when i choose team/player whatever the music done
Thanks.
Re: Class Selection music ? -
Jstylezzz - 01.07.2014
Depends on where you want it to start. If you want to start the music as soon as someone joins the server, use
PlayAudioStreamForPlayer or
PlayerPlaySound, under OnPlayerConnect.
If you want to start it at any other point in the joining process, just use one of the 2 function provided above in the callback of your liking.
Re: Class Selection music ? -
YanLanger - 01.07.2014
I wanna when i connect it starts when i spawn it stopts
Re: Class Selection music ? -
Jstylezzz - 01.07.2014
Then under OnPlayerSpawn add either
StopAudioStreamForPlayer, or if you used the other function use
PlayerPlaySound, and add 1 to the sound id (if you was using i.e id 1009 for the music, use 1010 to stop the music).
Re: Class Selection music ? -
YanLanger - 01.07.2014
Hmm ok.