02.12.2014, 14:58
Hello, I mapped a party area for the christmas, and I want to script that every player who come to the area range,
will hear the stream...
How to do this?
will hear the stream...
How to do this?
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z))
{
PlayerAudioStreamForPlayer("Link");
}
return 1;
}
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 50, 1755.26, -1774.30, 16.39)) { PlayerAudioStreamForPlayer("http://yp.shoutcast.com/sbin/tunein-station.pls?id=19972"); } return 1; }
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 50, 1755.26, -1774.30, 16.39))
{
PlayerAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=19972", 1755.26, -1774.30, 16.39, 50, 1);
}
return true;
}
-1087.677978, 615.239807, 1116.507812