Playing music OnPlayerConnect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Playing music OnPlayerConnect (
/showthread.php?tid=308931)
Playing music OnPlayerConnect -
ShawnMiller1337 - 05.01.2012
Hello all quick question. I'm not familiar with the new 0.3d functions maybe you can all help me. Im looking for how I would be able to play music on player connect.
Example like the one in this video how would I do it to like he did his ?
[ame="http://www.youtube.com/watch?v=e2Tu8vMDIP0&feature=related"]http://www.youtube.com/watch?v=e2Tu8vMDIP0&feature=related[/ame]
Re: Playing music OnPlayerConnect -
Stigg - 05.01.2012
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Re: Playing music OnPlayerConnect -
LexD - 06.01.2012
Hello.This is my video,i explain you how to do that. Put this in your gamemode:
Код:
public OnPlayerConnect(playerid) {
PlayAudioStreamForPlayer(playerid, "URL Place");
}
public OnPlayerSpawn(playerid) {
StopAudioStreamForPlayer(playerid);
}
In URL Place you can put mp3 file (how i made it) or you can put radiostation in .m3u .pls formats.
MP3 file should be a link to download.I load my music to dropbox.
Sorry if i make mistakes.I don't speak English very well.