Audio File Hosting with .EXTENTION?
#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


Messages In This Thread
Audio File Hosting with .EXTENTION? - by Sebz - 31.08.2015, 09:59
Re: Audio File Hosting with .EXTENTION? - by Vince - 31.08.2015, 10:02
Re: Audio File Hosting with .EXTENTION? - by Inn0cent - 31.08.2015, 10:05
Re: Audio File Hosting with .EXTENTION? - by Sebz - 31.08.2015, 10:07
Re: Audio File Hosting with .EXTENTION? - by Alex Magaсa - 31.08.2015, 10:23

Forum Jump:


Users browsing this thread: 4 Guest(s)