AudioStream
#3

Quote:
Originally Posted by Nuke547
View Post
[php]
for(new i = 0;i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "url");
}
You need to end the /php also but you should use the tag [ pawn ][ /pawn ]

Btw the above code will play an audio stream for every player!

EDIT : I have a much better code
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
}
}
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: 1 Guest(s)