01.06.2018, 08:08
Hey guys, it'd be great if one of you could help me in making this; I managed to play audio stream within range, but the problem is that if I leave that area the song still continues. Here's what I used to play audio stream within a range.
- I want that if my virtual world changes or if I leave that area the song should stop automatically.
Thanks in advance.
- I want that if my virtual world changes or if I leave that area the song should stop automatically.
Код:
new interior, world;
interior = GetPlayerInterior(playerid);
world = GetPlayerVirtualWorld(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
if(GetPlayerInterior(i) == interior)
if(GetPlayerVirtualWorld(i) == world)
if(IsPlayerInRangeOfPoint(i, 20.0, -2648.0227,1396.0142,906.4609))
PlayAudioStreamForPlayer(i, http://************/HankJames6);

