10.02.2019, 17:04
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; }