How's this possible?
#7

Quote:
Originally Posted by Luis-
Посмотреть сообщение
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.
Luis- is right, the volume decrease with distance / increases if you are nearby

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;
}
It will play the audio at your current pos and if you move away (more than 5.0 m) than the sound should be gone
Reply


Messages In This Thread
How's this possible? - by Arastair - 21.11.2014, 14:22
AW: How's this possible? - by Nero_3D - 21.11.2014, 14:28
Re: AW: How's this possible? - by Arastair - 21.11.2014, 14:37
Re: How's this possible? - by Capua - 21.11.2014, 15:06
Re: How's this possible? - by DavidBilla - 21.11.2014, 15:19
Re: How's this possible? - by Luis- - 21.11.2014, 15:31
AW: Re: How's this possible? - by Nero_3D - 21.11.2014, 15:44
Re: How's this possible? - by Arastair - 21.11.2014, 17:20
Re: How's this possible? - by Arastair - 21.11.2014, 17:24
AW: How's this possible? - by Nero_3D - 21.11.2014, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)