PlayAudioStream in a Location
#1

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
Reply
#2

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!
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 3 Guest(s)