Adding audio stream
#4

Yes, under /call 911, put this
You'll have to edit the parts where there are comments saying you must edit it, includes:
POSITION_X, POSITION_Y, POSITION_Z and the stream website.

pawn Код:
for ( new i, j = GetMaxPlayers( ); i < j; ++ i )
    {
        if ( !IsPlayerConnected( i ) )
            continue;
           
        if ( !IsPlayerInRangeOfPoint( i, 25.0, POSITION_X, POSITION_Y, POSITION_Z ) ) // Change this positions
            continue;
           
        // Passed all checks, play audio stream
        PlayAudioStreamForPlayer( i, "http://example_audio/911.wav" ); // Change to your audio stream
    }
(edited the code above for a better range, if you have issues with the my before-post, use this one. It has a bigger range detection)
Reply


Messages In This Thread
Adding audio stream - by ShiffeyTheGamer - 02.07.2014, 17:21
Re: Adding audio stream - by greentarch - 02.07.2014, 17:42
Re: Adding audio stream - by ShiffeyTheGamer - 02.07.2014, 17:48
Re: Adding audio stream - by greentarch - 02.07.2014, 17:57
Re: Adding audio stream - by ShiffeyTheGamer - 02.07.2014, 20:11
Re: Adding audio stream - by ShiffeyTheGamer - 07.07.2014, 02:06
Re: Adding audio stream - by nmader - 07.07.2014, 02:23

Forum Jump:


Users browsing this thread: 1 Guest(s)