AudioStream
#9

Quote:
Originally Posted by Chrillzen
View Post
Not for me, I tested with 4 players that were connected, only id 0 hears the radio. Somethign wrong with the code I guess?
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)//loops through all players
{
   if(IsPlayerConnected(i))//checks if player is connected
   {
      StopAudioStreamForPlayer(i);//stops the audio stream if any is playing.If none is playing nothing will happen.
      PlayAudioStreamForPlayer(i, "http://somafm.com/tags.pls");//plays the music.U can put any link.Just change somafm.com/tags.pls
   }
}
Put this in the OnPlayerConnect, and try. Ths code is not wrong it will work you might have been doing something wrong.

-FalconX
Reply


Messages In This Thread
AudioStream - by Chrillzen - 29.02.2012, 02:32
Re: AudioStream - by Nuke547 - 29.02.2012, 02:34
Re: AudioStream - by Ballu Miaa - 29.02.2012, 02:53
Re: AudioStream - by Chrillzen - 29.02.2012, 14:36
Re: AudioStream - by Ballu Miaa - 29.02.2012, 14:57
Re: AudioStream - by Chrillzen - 01.03.2012, 15:52
Re: AudioStream - by FalconX - 01.03.2012, 15:54
Re: AudioStream - by Chrillzen - 01.03.2012, 15:58
Re: AudioStream - by FalconX - 01.03.2012, 16:00
Re: AudioStream - by Chrillzen - 01.03.2012, 16:02
Re: AudioStream - by Jarnu - 06.06.2012, 04:41

Forum Jump:


Users browsing this thread: 5 Guest(s)