streaming music problem
#2

This isn't tested but should work fine...

Код:
CMD:musicforall(playerid, params[])
{
  	if(sscanf(params,"s[128]", params[0])) return SendClientMessage(playerid, -1, "Syntax: /musicforall [url]");
  	new Float:X, Float:Y, Float:Z;
  	GetPlayerPos(playerid, X, Y, Z);
   	foreach(new i: Player)
   	{
   	    if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z)) //Change "7.0" obviously, depending of the range that you want
   	    {
    		PlayAudioStreamForPlayer(i, params[0]);
	    }
	}
        return 1;
}
Reply


Messages In This Thread
streaming music problem - by RJTabish - 10.02.2019, 16:26
Re: streaming music problem - by lautaro97 - 10.02.2019, 17:04
Re: streaming music problem - by TheToretto - 10.02.2019, 19:39
Re: streaming music problem - by lautaro97 - 10.02.2019, 23:56
Re: streaming music problem - by TheToretto - 11.02.2019, 05:57

Forum Jump:


Users browsing this thread: 1 Guest(s)