Stream a song on a location?
#2

Код:
PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
You can use that in order to play the music. Now that will play the audio for one person. So add something simple like
Код:
ChristmasRadio()
{
	foreach(Player, i) {
		if(IsPlayerInRangeOfPoint(i, 7, 1481.1302, -1711.8168, 13.3460))
		{
			PlayAudioStreamForPlayer(i, "http://puu.sh/lR5cr/804af90807.mp3", 1481.1302, -1711.8168, 13.3460, 6, 1)
			continue;
		}
	}
}
I am pretty sure that will work.
Reply


Messages In This Thread
Stream a song on a location? - by Fredrik - 11.12.2015, 01:17
Re: Stream a song on a location? - by Alex_T - 11.12.2015, 01:52
Re: Stream a song on a location? - by SickAttack - 11.12.2015, 01:58

Forum Jump:


Users browsing this thread: 1 Guest(s)