How do I set login music?
#1

Hello, How Do I set logic music?w
when people type pass, I want to be a login music, and when they spawn it will stop..
just for the login
Reply
#2

PlayAudioStreamForPlayer() and StopAudioStreamForPlayer() for your favorite music etc.
Reply
#3

inside the () i just put the URL? in both of them?
Reply
#4

Under OnplayerConnect - Add this!

pawn Код:
PlayAudioStreamForPlayer(playerid, "link_of_music");
Under OnPlayerSpawn - Add this!

pawn Код:
StopAudioStreamForPlayer(playerid);
Hope it helped! CHEERS!
Reply
#5

When the server loads.. (the verona beach background) it plays the music.. but then when it comes to the login page, music stops..
Reply
#6

Quote:
Originally Posted by davidstyle1125
Посмотреть сообщение
When the server loads.. (the verona beach background) it plays the music.. but then when it comes to the login page, music stops..
Make sure you have
Код:
StopAudioStreamForPlayer(playerid);
under OnPlayerSpawn and not under OnPlayerRequestClass
Reply
#7

Yeah Its under "OnPlayerSpawn"..
Even when I disabled the "StopAudioStreamForPlayer(playerid);"...
I had same result.. it plays just at the start, and when the log-in page comes, it stops.
with the StopAudio.. and without it.. I have the same result.
Reply
#8

Quote:
Originally Posted by davidstyle1125
Посмотреть сообщение
Yeah Its under "OnPlayerSpawn"..
Even when I disabled the "StopAudioStreamForPlayer(playerid);"...
I had same result.. it plays just at the start, and when the log-in page comes, it stops.
with the StopAudio.. and without it.. I have the same result.
Mhmm..
PM me your skype and I'll see if I could help.
Reply
#9

PlayAudioStreamForPlayer(playerid, "link_of_music");

Put it under OnPlayerRequestClass.

And the music stop under OnPlayerSpawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)