Login Music - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Login Music (
/showthread.php?tid=609534)
Login Music -
HoboGamings - 13.06.2016
So what I want to do is when the player is presented with the login dialog, I want some music in the background.
If I'm correct, its PlayAudioStreamForPlayer, but I'm not sure.
and could you tell me, would it go where the login dialog is presented or under OnGameModeInit
EDIT:
I know where it goes, and I know how to put it in my script, but I don't know where to upload it, anyone got any suggestions?
Re: Login Music -
Onfroi - 13.06.2016
Dropbox
Re: Login Music -
HoboGamings - 13.06.2016
Quote:
Originally Posted by Onfroi
Dropbox
|
Okay, nevermind, I put it on our FTP
http://ig-rp.online/intro.mp3
but this -> PlayAudioStreamForPlayer(playerid, "http://ig-rp.online/intro.mp3");
Isn't working, can you help?
Re: Login Music -
Onfroi - 13.06.2016
Quote:
Originally Posted by HoboGamings
Okay, nevermind, I put it on our FTP
http://ig-rp.online/intro.mp3
but this -> PlayAudioStreamForPlayer(playerid, "http://ig-rp.online/intro.mp3");
Isn't working, can you help?
|
it should work, do you have it under OnPlayerConnect?
Re: Login Music -
HoboGamings - 13.06.2016
Quote:
Originally Posted by Onfroi
it should work, do you have it under OnPlayerConnect?
|
Yeah
and under OnPlayerSpawn
I have - StopAudioStreamForPlayer(playerid);
Re: Login Music -
kelvinis - 13.06.2016
Paste it under OnPlayerRequestClass
Re: Login Music -
SMCentral - 13.06.2016
You should start the music in the OnPlayerConnect:
Код:
PlayAudioStreamForPlayer(playerid, "http://link/filename.mp3");
And it seems it's a roleplay server that you have so when they log in, you should put:
Код:
StopAudioStreamForPlayer(playerid);
For added entertainment of new players, why not also play the music when they're in the tutorial!