SA-MP Forums Archive
Update and Play music with PlayAudioStreamForPlayer. - 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: Update and Play music with PlayAudioStreamForPlayer. (/showthread.php?tid=416885)



Update and Play music with PlayAudioStreamForPlayer. - TiNcH010 - 18.02.2013

Just that. Can I play a song when driving? Like update the position and play it when I move.


Re: Update and Play music with PlayAudioStreamForPlayer. - Boooth - 18.02.2013

You would just play the audio stream to the player and not to a position

Parameters:
pawn Код:
(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
So you would just use:

pawn Код:
PlayAudioStreamForPlayer(playerid, URL, 0, 0, 0, 0, 0);
As easy as that.


Respuesta: Update and Play music with PlayAudioStreamForPlayer. - TiNcH010 - 19.02.2013

But others can't heard it :S