Help with audio streaming
#2

Make it so it checks if the player is driver when he uses the command to change the station. If it is, allow them to continue. Then, set the audiostream for the playerid (driver) and then you can make a loop to check what players are in the vehicle with you, and set there audiostream as-well.

Example:

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
    {
        PlayAudioStreamForPlaeyr(.......);
    }
}
If you want them to stop the current music playing, use:

StopAudioStreamForPlayer
Reply


Messages In This Thread
Help with audio streaming - by Compton - 27.06.2012, 06:42
Re: Help with audio streaming - by Kindred - 27.06.2012, 07:01
Re: Help with audio streaming - by Compton - 27.06.2012, 07:42
Re: Help with audio streaming - by Kindred - 27.06.2012, 07:45
Re: Help with audio streaming - by Compton - 27.06.2012, 07:51
Re: Help with audio streaming - by Compton - 27.06.2012, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)