How to add sounds?
#1

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

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

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

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

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.
Reply
#6

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

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

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.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)