SA-MP Forums Archive
Using sound in-game. - 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: Using sound in-game. (/showthread.php?tid=323279)



Using sound in-game. - Supercop - 05.03.2012

Hello,

I want to create a spoken tutorial. I know how to record sound, but how do I play them in-game?


Re: Using sound in-game. - Scrillex - 05.03.2012

OnPlayerConnect .. Add just them Make timer etc.


Re: Using sound in-game. - Programie - 05.03.2012

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
OnPlayerConnect .. Add just them Make timer etc.
I think the question is how to play the recorded sounds.

My solution: Use PlayAudioStreamForPlayer.

You just have to host the files on a webserver so the SA-MP client can access and play them (http://example.com/myfile.mp3).