Audio Stream before spawn -
MrBorsh - 01.09.2012
Hey, could anyone give me a well detailed tutorial about how to add a song like before you spawn.
OBS! I want to decide which song, like for example Rebecca Black - Friday.
Re: Audio Stream before spawn -
Windrush - 01.09.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
PlayAudioStreamForPlayer(playerid, url)
return 1;
}
Re: Audio Stream before spawn -
Dan. - 01.09.2012
He said before you spawn, well you could do it under OnPlayerConnect, when a player will connect the song will start. And use "PlayAudioStreamForPlayer" function to do it. You have to upload the song you want to a streaming website, and then use the url in the function.
Re: Audio Stream before spawn -
MrBorsh - 01.09.2012
ok, so if I'd like to play off a song on the public OnPlayerConnect, then I'll be like this-..
pawn Код:
PlayAudioStreamForPlayer
(playerid,
[url
]www.*******.com/watch
?v
=gADkZ_ML5d8
);
[/url
]
??
Cause that gives me this error message:
: error 017: undefined symbol "www"
: error 029: invalid expression, assumed zero
: error 017: undefined symbol "*******"
: fatal error 107: too many error messages on one line
Re: Audio Stream before spawn -
sniperwars - 01.09.2012
The link either has to be .pls or .mp3 format. You can upload a .mp3 to your website and use that for the OnPlayerConnect callback for example:
http://www.mywebsite.com/title.mp3 and it plays the selected file. ******* links unfortunately are not supported by PlayAudioStreamForPlayer.
Re: Audio Stream before spawn -
MrBorsh - 01.09.2012
my webside.. lol.. ********? -_- do you know any websites?
Re: Audio Stream before spawn -
Kirollos - 01.09.2012
you may can upload to dropbox or w/e that can upload files.
Re: Audio Stream before spawn -
MrBorsh - 01.09.2012
any you recommend? If so-.. link?
Re: Audio Stream before spawn -
Kirollos - 01.09.2012
dropbox.com
when you upload a .mp3 song there, press on get link so you'll get link. paste it on your script. and you're done