SA-MP Forums Archive
HELP This Audio Script - 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: HELP This Audio Script (/showthread.php?tid=332006)



HELP This Audio Script - MatelJoker - 06.04.2012

In this pos, this code
What should I do to play continuously
((interfering with other music))

PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687", 1246.2682,-1182.2623,38.1798, 50.0, 1);


Re: HELP This Audio Script - .FuneraL. - 06.04.2012

Try using the function IsPlayerInRangeOfPoint


Re: HELP This Audio Script - MatelJoker - 06.04.2012

{
if(IsPlayerInRangeOfPoint((playerid, 7.0, 1246.2682,-1182.2623,38.1798, 50.0, 1))
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687", 1246.2682,-1182.2623,38.1798, 50.0, 1);
}
return 1;
}


This?


Re: HELP This Audio Script - ivanVU - 06.04.2012

try like this

Код:
{
if(!IsPlayerInRangeOfPoint((playerid, 7.0, 1246.2682,-1182.2623,38.1798, 50.0, 1)) return StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687", 1246.2682,-1182.2623,38.1798, 50.0, 1);
}
return 1;
}



Re: HELP This Audio Script - [EuG]ZeRoGoD - 06.04.2012

if you doing enter game it would be
Код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "your url for song here!");



Re: HELP This Audio Script - MatelJoker - 06.04.2012

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
if you doing enter game it would be
Код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "your url for song here!");
This conflicts with others ((EXM: /radio command used /radioff pruning we used this command for closing song))
I constantly want to hear
I use it for a PUB