31.08.2015, 10:23
Examples:
1- Add your own music folder inside your site
Ex:
2- Add your own music in kiwi6.com (it's a mp3 file upload site)
Ex:
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:
and this:
To stop the music add this OnPlayerSpawn:
Audio File Supported:
1- Add your own music folder inside your site
Ex:
PHP код:
PlayAudioStreamForPlayer(playerid, "http://www.yourforum.com/music/intro.mp3");
Ex:
PHP код:
PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/qxsp7lwj50/molly_explicit_.mp3);
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);
PHP код:
public OnGameModeInit()
{
Audio_SetPack("yourfolder");
}
PHP код:
Audio_Stop(playerid, 1);
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)