Play Stream when close to object - 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: Play Stream when close to object (
/showthread.php?tid=537998)
Play Stream when close to a boombox -
Derryd - 19.09.2014
Fixed
Re: Play Stream when close to object -
Stinged - 19.09.2014
pawn Код:
PlayAudioStreamForPlayer(playerid, link, X, Y, Z, Distance, 1);
You should use that instead of Stopping and re-playing.
When ever playerid is near the boom box, the song will continue, instead of re-playing.
Re: Play Stream when close to object -
Derryd - 19.09.2014
Quote:
Originally Posted by Stinged
pawn Код:
PlayAudioStreamForPlayer(playerid, link, X, Y, Z, Distance, 1);
You should use that instead of Stopping and re-playing.
When ever playerid is near the boom box, the song will continue, instead of re-playing.
|
What if the URL changes? And I need it to happen for everyone in the server.
Re: Play Stream when close to object -
Stinged - 19.09.2014
Loop.
Re: Play Stream when close to object -
Derryd - 19.09.2014
Is there any way to create a sphere around an object when it is made?
Re: Play Stream when close to object -
biker122 - 19.09.2014
pawn Код:
CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
Re: Play Stream when close to object -
Derryd - 19.09.2014
fixed
Re: Play Stream when close to object -
Arastair - 12.12.2014
Quote:
Originally Posted by ******
Don't remove the question if you got your answer - other people can't search for the same thing in the future. Put it back.
|
I had the same question