12.04.2013, 15:17
pawn Код:
stock PlayAudioStreamForAll(url[])
{
for(new i; i<MAX_PLAYERS i++)
{
if(IsPlayerConnected( i ))
{
PlayAudioStreamForPlayer(i, url); //removed x,y,z and distance since you won't need that there
}
}
return 1;
}
Now, all you have to do is this:
pawn Код:
if(response)
{
PlayAudioStreamForAll(inputtext);//changed the non-existing 'url' to inputtext
}