music 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: music in game (
/showthread.php?tid=472727)
music in game -
audriuxxx - 30.10.2013
Hi,
I have a musics in formats .mp3, but how launch them in game? for radio i use PlayAudioStreamForPlayer, but how i can to upload my music into server.
Re: music in game -
Konstantinos - 30.10.2013
Use an
Audio Plugin.
Re: music in game -
Ninad - 30.10.2013
This topic may give u a little idea!
https://sampforum.blast.hk/showthread.php?tid=411802
Re: music in game -
thefatshizms - 30.10.2013
Upload it to a website and stream it in with PlayAudioStreamForPlayer
Re: music in game -
SAMProductions - 30.10.2013
Try This:
Audio Plugin
or
You can play MP3 (or any Music Formats) on your own using "PlayAudioStreamForPlayer", Just upload your MP3 (or any Music Formats) on any other Websites, and Stream it.
Here is the Format:
Код:
PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
Код:
playerid = The ID of the player to play the audio for.
url[] = The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will play that playlist.
Float:PosX = The X position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.
Float:PosY = The Y position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.
Float:PosZ = The Z position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.
Float:distance = The distance over which the audio will be heard. Has no effect unless usepos is set to 1.
usepos = Use the positions and distance specified. Default disabled (0).