Audio Stream Not Playing
#1

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)