Audio System
#6

Actually Vincent, SA-MP clients only support one stream at a time. The second PlayAudioStreamForPlayer will be the one broadcasted and the first will actually stop for all people within the second's play radius.

To prove this, we can use this command:

pawn Код:
CMD:play2streams(playerid, params[])
{
    new stream[2][128];
    if(sscanf(params, "s[128]s[128]", stream[1], stream[2]) == 0)
    {
        for(new i=0; i<GetMaxPlayers(); i++)
        {
            PlayAudioStreamForPlayer(i, stream[1]);
            PlayAudioStreamForPlayer(i, stream[2]);
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /play2streams [Stream 1] [Stream 2]");
    }
    return 1;
}
Reply


Messages In This Thread
Audio System - by TouhGear - 18.03.2012, 20:02
Re: Audio System - by Yvax - 18.03.2012, 20:19
Re: Audio System - by TouhGear - 18.03.2012, 20:25
Re: Audio System - by TouhGear - 19.03.2012, 06:29
Re: Audio System - by ReneG - 19.03.2012, 06:36
Re: Audio System - by Rob_Maate - 19.03.2012, 10:43

Forum Jump:


Users browsing this thread: 5 Guest(s)