Radio on Stage
#10

pawn Код:
#define On 0
#define Off 1
// ^^^ - on top
// and this code below can be placed literally anywhere
stock RadioScena(_toggle = On)
{
    for(new playerid = 0; playerid != MAX_PLAYERS; playerid++){
        if(IsPlayerInRangeOfPoint(playerid,50.0,251.5308,-1807.7228,7.8359))
        {
            if(_toggle == On)
            {
                PlayAudioStreamForPlayer(playerid, "http://live128.radioprob.ro:9999/",251.5308,-1807.7228,7.8359, 80.0,true); //
            }  //http://radio-crazy.is-a-chef.com:8024/
        }
        else
        {
            if(_toggle == Off)
            {
                StopAudioStreamForPlayer(playerid);
            }}}
    return 1;
}

COMMAND:radioon(playerid, params[])
{
    RadioScena(On);
    return 1;
}

COMMAND:radiooff(playerid, params[])
{
    RadioScena(Off);
    return 1;
}
Greetz,
LetsOWN
Reply


Messages In This Thread
Radio on Stage - by Akcent_Voltaj - 08.01.2013, 20:15
Re: Radio on Stage - by park4bmx - 08.01.2013, 21:06
Re: Radio on Stage - by Akcent_Voltaj - 08.01.2013, 21:24
Re: Radio on Stage - by RedCrossER - 08.01.2013, 21:34
Re: Radio on Stage - by Akcent_Voltaj - 08.01.2013, 21:43
Re: Radio on Stage - by Akcent_Voltaj - 08.01.2013, 22:37
Re: Radio on Stage - by Akcent_Voltaj - 09.01.2013, 12:14
Re: Radio on Stage - by park4bmx - 09.01.2013, 15:50
Re: Radio on Stage - by Akcent_Voltaj - 09.01.2013, 16:46
Re: Radio on Stage - by LetsOWN[PL] - 09.01.2013, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)