PlayerPLaySound
#1

Is there any code like playnearsound?

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;
}
Reply


Messages In This Thread
PlayerPLaySound - by SnL - 30.01.2014, 14:11
Re: PlayerPLaySound - by Jimmy0wns - 30.01.2014, 14:28
Respuesta: PlayerPLaySound - by SnL - 30.01.2014, 14:43
Re: Respuesta: PlayerPLaySound - by Jimmy0wns - 30.01.2014, 14:48
Respuesta: PlayerPLaySound - by SnL - 30.01.2014, 15:04
Re: PlayerPLaySound - by Corekt - 30.01.2014, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)