SA-MP Forums Archive
How to add sounds? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to add sounds? (/showthread.php?tid=305747)



How to add sounds? - Super_Panda - 23.12.2011

Hello, I was wondering how I can add this sound to my fireworks Script.


Re: How to add sounds? - KingHual - 23.12.2011

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer (You probably have to convert it into .mp3 format)


Respuesta: How to add sounds? - Super_Panda - 23.12.2011

Well...When I add that command which is on the WIKI, I type the CMD and I can just see "Audio streaming blah blah" but i cant hear any thing.


Re: How to add sounds? - KingHual - 23.12.2011

As I said - You probably have to convert it to .mp3 / OGG Vorbis


Respuesta: How to add sounds? - Super_Panda - 23.12.2011

Ok the 1st command worked,

pawn Код:
if (strcmp("/play radio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
        return 1;
    }
Is there anything where I can stream my own music so It can be in the server?

I mean using virtual DJ.


Re: How to add sounds? - Calgon - 23.12.2011

You can, but you need a shoutcast or icecast server.


Respuesta: How to add sounds? - Super_Panda - 23.12.2011

Ok, Its now connected to my Virtual DJ:

http://alexobandocast.listen2myradio.com/

pawn Код:
if (strcmp("/playradio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://alexobandocast.listen2myradio.com/");
        return 1;
    }
Like that is ok? Or how :S?


Re: Respuesta: How to add sounds? - KingHual - 23.12.2011

Quote:
Originally Posted by Super_Panda
Посмотреть сообщение
Ok, Its now connected to my Virtual DJ:

http://alexobandocast.listen2myradio.com/

pawn Код:
if (strcmp("/playradio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://alexobandocast.listen2myradio.com/");
        return 1;
    }
Like that is ok? Or how :S?
I'm not sure but I think you need to have a .pls file at the end.


Respuesta: How to add sounds? - Super_Panda - 23.12.2011

Its not working, as how I putted the point, although can you guys tell me how to do it? I also have an IP to stream with (Which I added to Virtual DJ)