Radio system
#5

Not sure if this is what you're looking for, but this will play the requested URL for everybody in the server. Would require users being logged into RCON to use it.

pawn Код:
CMD:stream(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    if(isnull(params)) return SendClientMessage(playerid, -1, "usage; /stream [url]");
    for(new id = 0; id < MAX_PLAYERS; id++)
    {
        if(!IsPlayerConnected(id)) continue;
        PlayAudioStreamForPlayer(id, params);
    }
    return 1;
}
Reply


Messages In This Thread
Radio system - by Glossy42O - 15.08.2015, 06:27
Re: Radio system - by Karan007 - 15.08.2015, 06:45
Re: Radio system - by Glossy42O - 15.08.2015, 06:54
Re: Radio system - by Gammix - 15.08.2015, 07:14
Re: Radio system - by itsCody - 15.08.2015, 07:24
Re: Radio system - by LovelySoomro - 15.08.2015, 07:36
Re: Radio system - by jlalt - 15.08.2015, 07:50
Re: Radio system - by LovelySoomro - 15.08.2015, 08:31
Re: Radio system - by lanix - 15.08.2015, 09:03
Re: Radio system - by Glossy42O - 15.08.2015, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)