10.02.2019, 16:26
Hello i was trying to making this music system actually it is limited range music but i wanted to play for all that who will came at music range but at this its works for 1 person that who use this commands so how can i play music for all people that who came at range thanks in advance
PHP код:
CMD:musicforall(playerid, params[])
{
new Float:X, Float:Y, Float:Z, Float:Distance = 45.0;
new url[200];
if(sscanf(params,"s[200]", url)) return SendClientMessage(playerid, 0x9C9C9CAA,"Syntax: /asdj[url]");
foreach(new i: Player)
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, url, 1209.9148,762.6340,13.3429, Distance, 1);
return 1;
}