Jump to content
  • 0

Problema radio


PlayerConnect

Question

Problema intalnita (descriere):Cum pot face ca toti jucatori din masina sa asculte acelas radio pe care il pune soferu?
Ero(area / rile) / warning-(ul / urile):Nu am 
Liniile de cod / sursa / script-ul(obligatoriu):CMD:carradio(playerid, params[])
{
    if(IsPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "Nu esti logat!");
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_WHITE, "Poti asculta radio doar atunci cand te afli intr-un vehicul!");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SCM(playerid, COLOR_WHITE, "Doar soferul poate schimba postul de radio!");
    new radiostr[1024];
    format(radiostr, sizeof(radiostr), "{E82727}Opreste Radio-ul\nRadio Taraf Romania\nRadio Funky Manele\nRadio Gangsta Manele\nRadio Gangsta Dance\nRadio Bandit Romania\nRadio Hot Romania\nRadio Tequila HipHop\nRadio Kiss FM\nRadio ZU Romania\nRadio Greu de Difuzat\nRadio Pro FM\nRadio ClubMix\nRadio Popular");
    ShowPlayerDialog(playerid,170,DIALOG_STYLE_LIST,"Radio",radiostr,"Ok", "Iesire");
    return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Nu stiu cum

 

Edited by PlayerConnect
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

switch(CarRadio[newcar])
        {
            case 0: StopAudioStreamForPlayer(playerid), PlayerRadio[playerid] = 0;
            case 1: PlayAudioStreamForPlayer(playerid, "http://live.radiotaraf.com:8181"), PlayerRadio[playerid] = 1;
            case 2: PlayAudioStreamForPlayer(playerid, "http://radiofunky.ro/live.pls"), PlayerRadio[playerid] = 2;
            case 3: PlayAudioStreamForPlayer(playerid, "http://live.radiogangsta.ro:8800"), PlayerRadio[playerid] = 3;
            case 4: PlayAudioStreamForPlayer(playerid, "http://dance.radiogangsta.ro:8800"), PlayerRadio[playerid] = 4;
            case 5: PlayAudioStreamForPlayer(playerid, "http://rbandit.dyndns.tv:8000"), PlayerRadio[playerid] = 5;
            case 6: PlayAudioStreamForPlayer(playerid, "http://live.radiohot.ro:8000"), PlayerRadio[playerid] = 6;
            case 7: PlayAudioStreamForPlayer(playerid, "http://www.radiotequila.ro/hiphop.m3u"), PlayerRadio[playerid] = 7;
            case 8: PlayAudioStreamForPlayer(playerid, "http://80.86.106.136/listen.pls"), PlayerRadio[playerid] = 8;
            case 9: PlayAudioStreamForPlayer(playerid, "http://stream.radiozu.ro:8020"), PlayerRadio[playerid] = 9;
            case 10: PlayAudioStreamForPlayer(playerid, "http://nextgen.go.ro:8012"), PlayerRadio[playerid] = 10;
            case 11: PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3"), PlayerRadio[playerid] = 11;
            case 12: PlayAudioStreamForPlayer(playerid, "http://live.radioclubmix.ro:9999"), PlayerRadio[playerid] = 12;
            case 13: PlayAudioStreamForPlayer(playerid, "http://livemp3.radiopopular.ro:7777"), PlayerRadio[playerid] = 13;
        }

Asta este pus ce mai trebuie sa pun?

Link to comment
Share on other sites

  • 0
On 26.03.2016 at 14:10, PlayerConnect said:


Ati incercat sa rezolvati singur?: Nu stiu cum

 

Puteai macar sa minti. Daca tu nu ai incercat nimic , asta inseamna ca ne ceri noua sa-ti facem scriptu`. Deci , nu se cer scripturi. Deci dau T/C :D 

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.