Login Music
#1

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

Dropbox
Reply
#3

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?
Reply
#4

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?
Reply
#5

Quote:
Originally Posted by Onfroi
Посмотреть сообщение
it should work, do you have it under OnPlayerConnect?
Yeah

and under OnPlayerSpawn

I have - StopAudioStreamForPlayer(playerid);
Reply
#6

Paste it under OnPlayerRequestClass
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)