[Pomoc]Radio

Započeo panameR., Novembar 21, 2010, 18:27:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako stavio sam FS na svoj server ...to je radio i ja sad imam vec jedan radio Radio Fusion e sad kako da stavim jos jedan radio evo vam pwn
#include <a_samp>
#include audio.inc
#define MAX_RADIOS 100
#define DIALOG_RADIO 2432
#define SLOTS 20

new RadioCriadas=-1;
enum RadioInfo
{
    NomeRadio[64],
    URLRadio[128],
    RadioID
};

new RadioAdd[MAX_RADIOS][RadioInfo];
public OnFilterScriptInit()
{
    AddRadio("Radio Fusion","http://radiofusion.com.br/aovivo.asx");
   
    Audio_SetPack("default_pack", true);
    return true;
}
stock AddRadio(nomer[],url[])
{
    RadioCriadas++;
    format(RadioAdd[RadioCriadas][NomeRadio],64,"%s",nomer);
    format(RadioAdd[RadioCriadas][URLRadio],64,"%s",url);
    RadioAdd[RadioCriadas][RadioID] = RadioCriadas;
    printf("Radio %s Adicionada com Sucesso (id:%d)",nomer,RadioCriadas);
    return ;
}
public Audio_OnClientConnect(playerid)
{
Audio_TransferPack(playerid);
}

public Audio_OnSetPack(audiopack[])
{
for (new i = 0; i < SLOTS; i++)
Audio_TransferPack(i);
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_RADIO)
{
    new item = listitem;
    if(item == RadioAdd[item][RadioID])
    {
        if(!response)
{
Audio_Stop(playerid, GetPVarInt(playerid, "Radios"));
return SendClientMessage(playerid, 0xFFFFFFFF, "Vocę parou a rádio");
}
if(response)
{
printf("Radio %d",item);
        SetPVarInt(playerid, "Radios", Audio_PlayStreamed(playerid,RadioAdd[item][URLRadio]));
        return true;
        }
    }
    }
    return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    new strmem[1024];
    if(!strcmp(cmdtext, "/radios", true))
    {
        format(strmem, 1024, "");
        for(new mem=0;mem<=RadioCriadas;mem++)
        {
            format(strmem,1024, "%s%s\n",strmem,RadioAdd[mem][NomeRadio]);
        }
        ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST, "Lista de para Ouvir:",strmem,"Ouvir", "Parar");
    }
    return 0;
}
e kako ja sad mogu stavit jos 1 radio ...ovaj radio fusion radi a ja bi jos htjeo stavit neki hrvatski radio pa moze pomoc... (naddam se da sam pravilno postao)  ;D
Respect: $--L84S--$, ναηιâ,,"â,,"α , BloodMaster , LuxZillo, Don_Sergio, ExtremePower, Gotti747, Gagi_