HELP This Audio Script
#1

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

Try using the function IsPlayerInRangeOfPoint
Reply
#3

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

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;
}
Reply
#5

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)