28.12.2015, 14:18
PHP код:
stock PlaySoundEx(soundid, Float:x, Float:y, Float:z, range)
{
foreach(new i : Player)
{
if(!IsPlayerConnected(i)) continue;
if(!IsPlayerInRangeOfPoint(i, range, x, y, z)) continue;
PlayerPlaySound(i, soundid, 0, 0, 0);
}
}
foreach(new i : Player)