19.04.2013, 00:10
Hi guys
Please how if player enter to Alhmaber or HQ create music
Thanks all
Please how if player enter to Alhmaber or HQ create music
Thanks all
// It's an example :
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, X,Y,Z)
//PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
PlayAudioStreamForPlayer(playerid, "yoursongurl");
/*
need to know :
The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will
play that playlist.
*/
return 1;
}
return 0;
}
pawn Код:
|
An'D i'm sorry
No,
To put songs use this tips : Go to dropbox.com, sign up if you don't have an account, then upload a file, right click on it in https://www.dropbox.com/home then click share link, you will get a url that ends with .mp3 at the top, now make the dropbox.com in the url dl.dropbox.com and then copy the link and then paste it in PlayAudioStreamForPlayer. |
PlayAudioStreamForPlayer(playerid, "dl.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3");
pawn Код:
|
Audio stream: dl.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3