19.03.2012, 10:43
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:
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;
}