You Know The Music Before You Spawn? Of Course You Do! - 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: You Know The Music Before You Spawn? Of Course You Do! (
/showthread.php?tid=82236)
You Know The Music Before You Spawn? Of Course You Do! -
BP13 - 17.06.2009
You Know The Music Before You Spawn? Of Course You Do!
- Where/what does the line look like where you can change the sound ID or whatever to play the music before your spawned. I would like to experiment with them
Re: You Know The Music Before You Spawn? Of Course You Do! -
Joe Staff - 17.06.2009
It's not the same on every script, but look for PlayerPlaySound(...);
Re: You Know The Music Before You Spawn? Of Course You Do! -
Grim_ - 17.06.2009
https://sampwiki.blast.hk/wiki/SoundID
https://sampwiki.blast.hk/wiki/PlayerPlaySound
Note: the coords of the PlayerPlayerSound function don't really matter, you can heard the sound from almost anywhere.
Also, if you're doing it in the OnPlayerRequestClass callback, in the OnPlayerSpawn callback add the same line in the request class callback, but add a '-' before the soundid, basically making it negative. That will stop the sound from playing.