24.04.2014, 03:38
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.
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.