23.05.2014, 16:24
PlayAudioStreamForPlayer with the parameters distance, and range.
Such as
Will play a sound for all the players in range of 20 unities from the center of the map (blueberry farm)
Such as
PHP код:
for(new i = 0; i < MAX_PLAYERS; p++)
{
if(!IsPlayerConnected(p)) continue;
PlayAudioStreamForPlayer(i, "your_sound_url", 0.0, 0.0, 0.0, 20.0, 1);
}