[Pawn] How to add music to skin selection menu? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] How to add music to skin selection menu? (/showthread.php?tid=1809) |
How to add music to skin selection menu? - CrypticSin - 2021-03-25 Hi i'm trying to figure out how i can add music to a skin selection menu, i would appreciate it if someone can help thanks. Code: public OnPlayerRequestClass(playerid, classid) RE: How to add music to skin selection menu? - DandoRYx - 2021-03-25 PHP Code: public OnPlayerRequestClass(playerid, classid) RE: How to add music to skin selection menu? - Snow - 2021-03-25 Audio stream won't work if a player has set his radio volume to 0. I'd suggest you to use an default sound using PlayerPlaySound. RE: How to add music to skin selection menu? - CrypticSin - 2021-03-25 (2021-03-25, 09:12 PM)DandoRYx Wrote: hi im not sure if im doing it right but, is it something like this? PHP Code: public OnPlayerRequestClass(playerid, classid) I want to stream the audio from youtube?if possible, or if i do download it how do i stream it during skin selection? RE: How to add music to skin selection menu? - DandoRYx - 2021-03-25 What I did was I downloaded it as mp3, uploaded it on web and then used it like this: PHP Code: PlayAudioStreamForPlayer(playerid, "http://yourwebsite.com/file.mp3"); btw your code is right, just don't forget OnPlayerSpawn |