Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //asta e dialog-ul
- if(dialogid == Dialog_radio)
- {
- if(response)
- {
- if(listitem == 0)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778");
- vehRadio[vehicleid] = 1;
- return 1;
- }
- if(listitem == 1)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://stream.profm.ro:8012/profm.mp3");
- vehRadio[vehicleid] = 2;
- return 1;
- }
- if(listitem == 2)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://radiotaraf.no-ip.biz:7100");
- vehRadio[vehicleid] = 3;
- return 1;
- }
- if(listitem == 3)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://radiobandit.mine.nu:8000");
- vehRadio[vehicleid] = 4;
- return 1;
- }
- if(listitem == 4)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://radiohotstyle.dyndns.biz:8000");
- vehRadio[vehicleid] = 5;
- return 1;
- }
- if(listitem == 5)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://www.radiodiz.com/livediz.m3u");
- vehRadio[vehicleid] = 6;
- return 1;
- }
- if(listitem == 6)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://necenzurat.radiotequila.ro:7000");
- vehRadio[vehicleid] = 7;
- return 1;
- }
- if(listitem == 7)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "http://live.radiogangsta.ro:8800");
- vehRadio[vehicleid] = 8;
- return 1;
- }
- if(listitem == 8)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- PlayAudioStreamForPlayersInCar(vehicleid, "Adaugi link-ul de la radio"); // aici adaugi link-ul de la radio-ul pe care vr sa-l adaugi.
- vehRadio[vehicleid] = 8;
- return 1;
- }
- if(listitem == 9)
- {
- StopAudioStreamForPlayersInCar(vehicleid);
- vehRadio[vehicleid] = 0;
- return 1;
- }
- }
- return 1;
- //asta e comanda
- CMD:carradio(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You need to login first.");
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- ShowPlayerDialog(playerid, Dialog_radio, DIALOG_STYLE_LIST, "Car music:","{FFFF00}Radio{FF0000} Kiss FM\n{FFFF00}Radio{FF0000} Pro Fm\n{FFFF00}Radio{FF0000} Taraf{FFFF00}\n{FFFF00}Radio{FF0000} Bandit{FFFF00}\n{FFFF00}Radio{FF0000} Hot Style{FFFF00}\n{FFFF00}Radio{FF0000} Diz{FFFF00}\n{FFFF00}Radio{FF0000} Tequila\n{FFFF00}Radio {FF0000}Gangsta Manele\n{FFFF00}Radio-ul {FF0000}adaugat de tine\nTurn off radio","Ok","Cancel");
- }
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement