Play GTA:SA 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: Play GTA:SA music? (
/showthread.php?tid=409664)
Play GTA:SA music? -
Mado - 22.01.2013
Hi,
I know how to add sound in-game using PlayerPlaySound, but there was also music in GTA San Andreas. In example, in the casinos you hear a certain background music. How can I add these?
Re: Play GTA:SA music? -
DaRk_RaiN - 22.01.2013
PlayAudioStreamForPlayer.
Three of the parameters are X Y Z you can use them to chose a certant place where the music can be heard.
Re: Play GTA:SA music? -
Mado - 22.01.2013
Then I must download the music I want to play?
I am speaking about the default music in GTA San Andreeas, like you got the advertisements in the ammu nation shops.
Re: Play GTA:SA music? -
DaRk_RaiN - 22.01.2013
Assuming that you do know the ID of the gta sound in PlayerPlaySound then use OnPlayerUpdate to check if the player is in range of point and play him the song.
Re: Play GTA:SA music? -
Mado - 22.01.2013
Ah, there's the problem. Can't find it in
this article.
Re: Play GTA:SA music? -
DaRk_RaiN - 22.01.2013
Then PlayAudioStreamForPlayer.