Playing music OnPlayerConnect
#1

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]
Reply
#2

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)