SA-MP Forums Archive
Audio Stream Not Playing - 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: Audio Stream Not Playing (/showthread.php?tid=508844)



Audio Stream Not Playing - Xessive - 24.04.2014

Hey guys,

I'm using this script under OnPlayerConnect:

PlayAudioStreamForPlayer(playerid, "http://www.mediafire.com/listen/5oxyv1qdmvmh86m/Theme.mp3");

And then at the bottom of the server at the commands:

CMDtopstream(playerid,params[])
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, whitee, "The music stream has been stopped.");
return 1;
}

The stream starts but its no music. Its like muting your speakers. When I write /stopstream, the stream stops and I hear the other GTA sounds. So the problem lies in PlayAudioStreamForPlayer.

I do have the <streamer> include.

Can somebody tell me the problem or give another script? Basically I want the stream to start OnPlayerConnect and not stop until the player types /stopstream.


Respuesta: Audio Stream Not Playing - Snoopythekill - 24.04.2014

pawn Код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"link.mp3");
return 1;
}
pawn Код:
if (strcmp("/topstream", cmdtext, true, 10) == 0)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
The song rises to dropbox.


Re: Respuesta: Audio Stream Not Playing - Xessive - 24.04.2014

Is it possible for this to be made into a filterscript which automatically plays audio stream for player on player connect?


Re: Audio Stream Not Playing - DonaldDuck - 17.10.2017

I tell you, audio stream won`t support Mediafire you better go here and upload your own music etc blah blah and copy the Direct Hotlink: