24.04.2012, 12:02
I have create a boombox, but everyone hear this, how can i make so only when them are near the boombox hear the music?
code
code
pawn Код:
new Float:x, Float:y, Float:z,Float:distance = 3.0;
GetPlayerPos(playerid,x,y,z);
if(IsPlayerInRangeOfPoint(i,3.0,x,y,z))
PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/5hg5uq0p9u/mange_makers_mange_bjuder_official_video.mp3",x,y,z,distance,0);