Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.35 KB | None | 0 0
  1. //asta e dialog-ul
  2. if(dialogid == Dialog_radio)
  3.     {
  4.         if(response)
  5.         {
  6.             if(listitem == 0)
  7.             {
  8.                 StopAudioStreamForPlayersInCar(vehicleid);
  9.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778");
  10.                 vehRadio[vehicleid] = 1;
  11.                 return 1;
  12.             }
  13.             if(listitem == 1)
  14.             {
  15.                 StopAudioStreamForPlayersInCar(vehicleid);
  16.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://stream.profm.ro:8012/profm.mp3");
  17.                 vehRadio[vehicleid] = 2;
  18.                 return 1;
  19.             }
  20.             if(listitem == 2)
  21.             {
  22.                 StopAudioStreamForPlayersInCar(vehicleid);
  23.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://radiotaraf.no-ip.biz:7100");
  24.                 vehRadio[vehicleid] = 3;
  25.                 return 1;
  26.             }
  27.             if(listitem == 3)
  28.             {
  29.                 StopAudioStreamForPlayersInCar(vehicleid);
  30.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://radiobandit.mine.nu:8000");
  31.                 vehRadio[vehicleid] = 4;
  32.                 return 1;
  33.             }
  34.             if(listitem == 4)
  35.             {
  36.                 StopAudioStreamForPlayersInCar(vehicleid);
  37.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://radiohotstyle.dyndns.biz:8000");
  38.                 vehRadio[vehicleid] = 5;
  39.                 return 1;
  40.             }
  41.             if(listitem == 5)
  42.             {
  43.                 StopAudioStreamForPlayersInCar(vehicleid);
  44.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://www.radiodiz.com/livediz.m3u");
  45.                 vehRadio[vehicleid] = 6;
  46.                 return 1;
  47.             }
  48.             if(listitem == 6)
  49.             {
  50.                 StopAudioStreamForPlayersInCar(vehicleid);
  51.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://necenzurat.radiotequila.ro:7000");
  52.                 vehRadio[vehicleid] = 7;
  53.                 return 1;
  54.             }
  55.             if(listitem == 7)
  56.             {
  57.                 StopAudioStreamForPlayersInCar(vehicleid);
  58.                 PlayAudioStreamForPlayersInCar(vehicleid, "http://live.radiogangsta.ro:8800");
  59.                 vehRadio[vehicleid] = 8;
  60.                 return 1;
  61.             }
  62.               if(listitem == 8)
  63.             {
  64.                 StopAudioStreamForPlayersInCar(vehicleid);
  65.                 PlayAudioStreamForPlayersInCar(vehicleid, "Adaugi link-ul de la radio"); // aici adaugi link-ul de la radio-ul pe care vr sa-l adaugi.
  66.                 vehRadio[vehicleid] = 8;
  67.                 return 1;
  68.             }
  69.             if(listitem == 9)
  70.             {
  71.                 StopAudioStreamForPlayersInCar(vehicleid);
  72.                 vehRadio[vehicleid] = 0;
  73.                 return 1;
  74.             }
  75.         }
  76.         return 1;
  77.  
  78.        
  79.         //asta e comanda       
  80.        
  81.         CMD:carradio(playerid, params[])
  82.     {
  83.     if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You need to login first.");
  84.     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  85.     {
  86.         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");
  87.     }
  88.     return 1;
  89. }  
  90.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement