Audio File Hosting with .EXTENTION? - 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: Audio File Hosting with .EXTENTION? (
/showthread.php?tid=587491)
Audio File Hosting with .EXTENTION? -
Sebz - 31.08.2015
I am intending to add files to PlayAudioStreamForPlayer on my script.
I am having trouble finding a site to upload the files in exchange for a http:
www.WEBSITE.com/FILENAME.MP3/WAV/ETC
Does anyone know of a site that you can easily do this with? Most sites seem to just have download buttons that use javascript and direct download.
Thanks ahead of time, Sebz.
Re: Audio File Hosting with .EXTENTION? -
Vince - 31.08.2015
Dropbox. Also right click and Copy Target, just in case you didn't know.
Re: Audio File Hosting with .EXTENTION? -
Inn0cent - 31.08.2015
Edit: Nvm.
Re: Audio File Hosting with .EXTENTION? -
Sebz - 31.08.2015
Thanks, +REP.
Re: Audio File Hosting with .EXTENTION? -
Alex Magaсa - 31.08.2015
Examples:
1- Add your own music folder inside your site
Ex:
PHP код:
PlayAudioStreamForPlayer(playerid, "http://www.yourforum.com/music/intro.mp3");
2- Add your own music in kiwi6.com (it's a mp3 file upload site)
Ex:
PHP код:
PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/qxsp7lwj50/molly_explicit_.mp3);
3- SA-MP Server Audio Folder
Ex:
Note: Make sure you define
#include <audio> in your gamemode/filterscript.
A)
Create a folder inside YourServerFolder/audiopacks (i created the folder
server)
B)

Extract your favorite song inside the folder then edit in audio.ini this:
1,2,3 = Audio ID.
Save the audio.ini!
C)
Open your gamemode and find
OnGamemodeInit and add this:
PHP код:
Audio_Play(playerid, 1);
and this:
PHP код:
public OnGameModeInit()
{
Audio_SetPack("yourfolder");
}
To stop the music add this
OnPlayerSpawn:
PHP код:
Audio_Stop(playerid, 1);
Audio File Supported:
PHP код:
Support for .wav, .ogg, .mp3, .mod, .it, .s3d, and .xm files (automatic file type filtering is present on both the client and the server)