21.11.2014, 15:44
Quote:
This should work, shouldn't it? If the X, Y, Z coordinates are set to where the radio is, it should decrease the sound when you move further away from the radio.
|
You need to add a position to your audio, that is the example on the wiki
pawn Код:
if (strcmp("/radiopos", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", X, Y, Z, Distance, 1);
return 1;
}