Audio stream - 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: Audio stream (
/showthread.php?tid=652005)
Audio stream -
hamrlg - 01.04.2018
hi guys.
i need audio stream.
if player is in the xyz , the [url] song play for that player..
how?
Re: Audio stream -
Mugala - 01.04.2018
you can create a checker for that coordinates or just put it in OnPlayerUpdate.
PHP код:
if(IsPlayerInRangeOfPoint(playerid,range,x,y,z))
{
PlayAudioStreamForPlayer(playerid,"music link (mp3 or wav)",x,y,z,range,1);
}
Re: Audio stream -
CantBeJohn - 01.04.2018
PHP код:
PlayAudioStreamForPlayer(playerid, "URL HERE.mp3", X, Y, Z, 50.0, 1);
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer