30.01.2014, 14:11
Is there any code like playnearsound?
i tried this but it doesn't work
i tried this but it doesn't work
pawn Код:
stock PlayNearSound(playerid,soundid)
{
new Float:p[3];
GetPlayerPos(playerid, p[0], p[1], p[2]);
for(new i; i < MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,7.0,p[0], p[1], p[2]))
PlayerPlaySound(i, soundid, p[0], p[1], p[2]);
}
return 1;
}