Audio Plugin Help
#4

PHP код:
forward SendAudioToPlayer(playeridaudioidvolumeseek);
public 
SendAudioToPlayer(playeridaudioidvolumeseek)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
Audio_IsClientConnected(playerid))
        {
            new 
localhandle Audio_Play(playerid,audioid);//Line 8092
            
Audio_SetVolume(playeridlocalhandlevolume);
            
Audio_SetPosition(playeridlocalhandleseek);
        }
        else
        {
            return 
0;
        }
    }
    return 
1;
}
SendAudioToRange(audioidvolumeseekFloat:xFloat:yFloat:zFloat:range)
{
    if(
audiohandleglobal >= 99)
    {
        
audiohandleglobal 0;
    }
    else
    {
        
audiohandleglobal++;
    }
    foreach(
Playeri)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Audio_IsClientConnected(i))
            {
                if(
IsPlayerInRangeOfPoint(i,range,x,y,z))
                {
                    new 
localhandle Audio_Play(i,audioid);// Line 8153
                    
Audio_Set3DPosition(ilocalhandlexyzrange);
                    
Audio_SetVolume(ilocalhandlevolume);
                    
Audio_SetPosition(ilocalhandleseek);
                     
audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return 
audiohandleglobal;

And so?
Reply


Messages In This Thread
Audio Plugin Help - by 0B3Y - 06.07.2016, 10:26
Re: Audio Plugin Help - by Mencent - 06.07.2016, 10:57
Re: Audio Plugin Help - by 0B3Y - 06.07.2016, 11:12
Re: Audio Plugin Help - by Mencent - 06.07.2016, 11:16
Re: Audio Plugin Help - by 0B3Y - 06.07.2016, 11:36
Re: Audio Plugin Help - by Mencent - 06.07.2016, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)