Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define ListadeMusica 1234
- new bool:Ouvintess[MAX_PLAYERS]= false;
- public OnFilterScriptInit()
- {
- print("*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==*");
- print("* *");
- print("*Sistema de Radio v1.0 Carregado *");
- print("*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptExit()
- {
- print("*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==*");
- print("* *");
- print("*Sistema de Radio v1.0 Descarregado *");
- print("*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Ouvintess[playerid]= true;
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- Ouvintess[playerid]= false;
- return 1;
- }
- CMD:radio2(playerid,params[])
- {
- ShowPlayerDialog(playerid, ListadeMusica, DIALOG_STYLE_LIST,
- "{E40000}Escolha Sua Radio",
- "{FFFFFF}Radio{FFFFFF} Hip-Hop\n{FF0000}Radio Super mix\n{FF0000}Radio Electro\n{FF0000}Radio Relax\n{55FFAA}Radio Jovem Pan\n{FFAA55}Radio Mix evolution\nRadio Fusion\nRadio Hunter\nDesligar Radio",
- "Escutar", "Fechar");
- return 1;
- }
- CMD:ouvintes(playerid,params[])
- {
- static Nome[24]; Nome[0] = '\0';
- static str[500]; str[0] = '\0';
- static armas[500]; armas[0] = '0';
- new count;
- for(new i=0;i<MAX_PLAYERS;i++){
- if(Ouvintess[i] > false){
- Ouvintess[playerid] = false;
- GetPlayerName(i, Nome, sizeof(Nome));
- format(str, sizeof(str),"{FF55AA}Ouvintes: %s\n",Nome,GetPlayerWantedLevel(i));
- strcat(armas, str);
- count++;
- }
- }
- if(count<=0)return ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Ouvintes{FFFFFF} ======", "{00FF00}Nenhum Ouvinte Online", "OK", "");
- if(count>0)ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Ouvintes{FFFFFF} ======", armas, "OK", "");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == ListadeMusica)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Hip-Hop ~r~~h~]", 2000, 5);
- PlayAudioStreamForPlayer(playerid,"http://208.76.152.73:8000");
- Ouvintess[playerid] = true;
- }
- if(listitem == 1) {
- PlayAudioStreamForPlayer(playerid,"http://radiosupermix.com.br:7585");// SUPER MIX
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Supermix ~r~~h~]", 2000, 5);
- Ouvintess[playerid] = true;
- }
- if(listitem == 2) {
- PlayAudioStreamForPlayer(playerid,"http://streaming15.brlogic.com:8084/live");//Radio Electro Vibe
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Electo Vibe~r~~h~]", 2000, 5);
- Ouvintess[playerid] = true;
- }
- if(listitem == 3) {
- PlayAudioStreamForPlayer(playerid,"http://streaming18.brlogic.com:8204/live");//Relax
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Relax~r~~h~]", 2000, 5);
- Ouvintess[playerid] = true;
- }
- if(listitem == 4){
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Jovem Pan~r~~h~]", 2000, 5);
- PlayAudioStreamForPlayer(playerid,"http://ouvir.radioblast.com.br:80/");
- Ouvintess[playerid] = true;
- }
- if(listitem == 5){
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Mix Evolution~r~~h~]", 2000, 5);
- PlayAudioStreamForPlayer(playerid,"http://s3.voscast.com:7554/");
- Ouvintess[playerid] = true;
- }
- if(listitem == 6){
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Fusion~r~~h~]", 2000, 5);
- PlayAudioStreamForPlayer(playerid,"http://65.60.1.98:8000");
- Ouvintess[playerid] = true;
- }
- if(listitem == 7){
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Hunter~r~~h~]", 2000, 5);
- PlayAudioStreamForPlayer(playerid,"http://96.47.227.156:9426");
- Ouvintess[playerid] = true;
- }
- if(listitem == 8) {
- GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~ Radio Desativada~r~~h~]", 2000, 5);
- StopAudioStreamForPlayer(playerid);
- Ouvintess[playerid] = false;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment