SA-MP Forums Archive
PlayAudioStream in a Location - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStream in a Location (/showthread.php?tid=344923)



PlayAudioStream in a Location - Black Axe - 23.05.2012

Well , I wanted to make a CMD that uses PlayAudioStream that was Added in 0.3d - But.. The problem is , I Want to make it with Distance - For Ex : /turnonmusic [Range] [Link] - Once you Add the Range and the link the music will play in it - For Ex : /turnonmusic 20 www.w/e.com - So the Music will play for the players in that radius - The problem that i don't know to use the radius - So.. If anyone can help it would be really Appreciated - Thanks


Re: PlayAudioStream in a Location - kadaradam - 23.05.2012

Fill with the url of the music,posistion and radius.

Код:
PlayAudioStreamForPlayer(playerid, url[], posX, posY posZ, radius, 1);
Example:
Код:
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", 100.2, 345.0 10, 10.0, 1);
in this code the radius is 10!


Re: PlayAudioStream in a Location - Black Axe - 23.05.2012

I See , Well.. I Didn't want to make it Static - I Wanted to make it Dynamic , That you set the Radius IG - By typing /cmd [Radius] [link] - I Hope you know what i mean

Note : i want it to play For ALL the players in this Radius


Re: PlayAudioStream in a Location - Vince - 23.05.2012

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/Keywords:Statements#for