06.10.2016, 17:17
assim ira tocar para quem estiver perto dele.. aumente o 10.0 se quiser.
PHP код:
CMD:djpraia(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 392.1975,-1856.7949,9.3192))
{
new Float: X, Float: Y, Float: Z, Float: Distance = 70.0;
GetPlayerPos(playerid, X, Y, Z);
for(new a; a < GetPlayerPoolSize() + 1; ++a)
{
if(IsPlayerConnected(a) && IsPlayerInRangeOfPoint(a, 10.0, 392.1975,-1856.7949,9.3192))
{
PlayAudioStreamForPlayer(a, "https://aladfar.sscdn.co/palcomp3/2/7/c/b/mcleodabaixada-vida-diferenciada-2-lancamento-2016-3c5aebd1.mp3", X, Y, Z, Distance, 1);
}
}
}
return true;
}