Posts: 162
Threads: 57
Joined: Dec 2013
Reputation:
0
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
Posts: 244
Threads: 55
Joined: Nov 2013
Reputation:
0
PlayAudioStreamForPlayer() and StopAudioStreamForPlayer() for your favorite music etc.
Posts: 162
Threads: 57
Joined: Dec 2013
Reputation:
0
inside the () i just put the URL? in both of them?
Guest4390857394857
Unregistered
Under OnplayerConnect - Add this!
pawn Код:
PlayAudioStreamForPlayer(playerid, "link_of_music");
Under OnPlayerSpawn - Add this!
pawn Код:
StopAudioStreamForPlayer(playerid);
Hope it helped! CHEERS!
Posts: 162
Threads: 57
Joined: Dec 2013
Reputation:
0
When the server loads.. (the verona beach background) it plays the music.. but then when it comes to the login page, music stops..
Posts: 162
Threads: 57
Joined: Dec 2013
Reputation:
0
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.
Posts: 264
Threads: 45
Joined: Apr 2012
Reputation:
0
PlayAudioStreamForPlayer(playerid, "link_of_music");
Put it under OnPlayerRequestClass.
And the music stop under OnPlayerSpawn.