PlayAudioStreamForPlayer problem
#1

Hello, I created a simple audio stream script so music can be streamed outside of my VIP club, but when I enter the area, I don't see "audio stream: blah blah" or I don't here anything. Does anyone know the problem?

Here is my code:

Код:
public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,40, 1506.9310,-1296.2416,14.2828))
 {
	    if(GetPVarInt(playerid, "spawn"))
		{
		    SetPVarInt(playerid,"spawn",1);
		    PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls",1506.9310,-1296.2416,14.2828,40,1);
		}
	}
	else
	{
	    if(GetPVarInt(playerid, "spawn"))
	    {
	    DeletePVar(playerid, "spawn");
	    StopAudioStreamForPlayer(playerid);
	}
}
	return 1;
	}
Thanks in advanced
Reply


Messages In This Thread
Small problem - by Josh_Main - 23.06.2013, 08:45
Re: PlayAudioStreamForPlayer problem - by IRio97 - 23.06.2013, 09:33
Re: PlayAudioStreamForPlayer problem - by Josh_Main - 23.06.2013, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)