01.03.2012, 16:00
Quote:
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
}
}
-FalconX