08.11.2011, 16:18
I was searching for PlayAudioStreamForAll and StopAudioStreamForAll functions and I didn't found them , so I made them by myself.
Ex. of using it :
And StopAudioStreamForAll function :
Ex. of using it :
pawn Код:
stock PlayAudioStreamForAll(link[])
{
foreach(Player,i)
{
PlayAudioStreamForPlayer(i,link);
for(new c; c < 20; c++) SendClientMessage(i,-1," ");
}
return true;
}
pawn Код:
CMD:play(playerid,params[])
{
PlayAudioStreamForAll("http://users2.ml.mindenkilapja.hu/users/fuchida/uploads/Green_Day_-_Holiday.mp3");
return true;
}
pawn Код:
stock StopAudioStreamForAll()
{
foreach(Player,i)
{
StopAudioStreamForPlayer(i);
}
return true;
}
pawn Код:
CMD:stop(playerid,params[])
{
StopAudioStreamForAll();
return true;
}