Audio File Hosting with .EXTENTION?
#1

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.
Reply
#2

Dropbox. Also right click and Copy Target, just in case you didn't know.
Reply
#3

Edit: Nvm.
Reply
#4

Thanks, +REP.
Reply
#5

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(playerid1); 
and this:
PHP код:
public OnGameModeInit()
{
    
Audio_SetPack("yourfolder");

To stop the music add this OnPlayerSpawn:
PHP код:
Audio_Stop(playerid1); 
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)