SA-MP Forums Archive
[Help] Audio - 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] Audio (/showthread.php?tid=310091)



[Help] Audio - HF-PR - 10.01.2012

I placed this under a timer of a second;

Код:
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
 		new Float:X, Float:Y, Float:Z;
   		GetObjectPos(BoomBoxObject, X, Y, Z);

	    if(IsPlayerInRangeOfPoint(i, 10, X, Y, Z))
	    {
	        if(BoomBoxHiphop[i] == 1)
	        {
	        	PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=199616", X, Y, Z, 10.0, 1);
			}
			
   			if(BoomBoxRock[i] == 1)
	        {
	        	PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356", X, Y, Z, 10.0, 1);
			}
		}
	}
But it ain't working.. Anybody has a clue?