PlayAudioStream within range.
#1

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.

Код:
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);
Thanks in advance.
Reply
#2

Reply
#3

Lol fixed it thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)