PHP код:
#include <a_samp>
#include <audio>
#include <zcmd>
#define RADIOS 2012
#define RADIOGOSPEL 2013
#define RADIOFUNK 2014
#define RADIOPOP 2015
#define RADIOHIPHOP 2016
#define RADIORAP 2017
#define RADIOROCK 2018
#define CORJONAS 0xFFFF3880
public OnFilterScriptInit()
{
print("\n-----------------------------------------------");
print(" Sistema de Rбdio 0.3e Carregado. By: Jonas_Alves");
print(" Nгo retire os crйditos !! ");
print("-----------------------------------------------\n");
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Este servidor contйm sistema de Rбdio. Criado por Jonas_Alves");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == RADIOGOSPEL)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Ganhador de Almas, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://64.31.30.142:8007");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio All Time Gospel, {5CD844}Sintoizada !");
PlayAudioStreamForPlayer(playerid, "http://67.205.95.146:8038");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Jesus House, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://174.142.104.137:8310");
TogglePlayerControllable(playerid, 1);
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Voz de Deus, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:9980");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Ilumina 98.1, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://66.128.53.6:8058");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIOFUNK)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Detona Funk, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:7081");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Diva Funk, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:7081");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Elite do Funk, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://64.56.64.35:16020");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Top Funk, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://96.9.177.22:9954");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Castelo Funk Digital {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://64.56.64.75:10718");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIOPOP)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Top Hits Music, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://207.200.96.230:8002");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Brasil Hits, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://77.95.228.201:8000");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Sound Pop, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://178.159.0.13:7746");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Fusion, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://65.60.34.34:8004");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio All Hits Station, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://199.195.192.234:9998");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIOHIPHOP)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Beat FM, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://89.105.32.12:8110");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Power 104 FM, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://89.105.32.12:8110");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Hot 97 FM, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://208.43.9.96:8056");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Urban Hitz, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://108.166.161.206:8080");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Hot 108 Jamz, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://scfire-ntc-aa06.stream.aol.com:80/stream/1071");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIORAP)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}BlackBeats FM, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://85.17.26.77:80");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}181 FM, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://108.61.73.117:8054");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}96.3 Vip Fm, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://159.253.131.114:8654");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Flow 103, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://173.245.71.186:80");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Got Radio, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://206.217.213.235:8140");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIOROCK)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}RockRadio1.Com, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://77.74.192.50:8000");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Zone Rhe Rive , {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://67.212.165.162:7018");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}Frequence 3, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://193.251.154.245:8000");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}181.fm - The Eagle, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://108.61.73.117:10002");
TogglePlayerControllable(playerid, 1);
return 1;
}
if(listitem == 4)
{
SendClientMessage(playerid, CORJONAS, "{FFF39F}New. Music, {5CD844}Sintonizada !");
PlayAudioStreamForPlayer(playerid, "http://209.73.138.20:80");
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
if(dialogid == RADIOS)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, RADIOGOSPEL, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Gospel", "Ganhador de Almas\nAll Time Gospel\nJesus House\nVoz de Deus\nIlumina FM 98.1\n", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, RADIOFUNK, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Funk", "Detona funk\nDiva Funk\nElite do Funk\nTop Funk\nCastelo Funk Digitaln", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, RADIOPOP, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Pop", "Top Hits Music \nBrasil Hits\nSound Pop\nFusion\nAll Hits Station\n", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, RADIOHIPHOP, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Hip Hop", "Beat FM\nPower 104 FM\nHot 97 FM\nUrban Hitz\nHot 108 Jamz\n", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, RADIORAP, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Rap", "BlackBeats FM\n181 FM\n96.3 Vip Fm\nFlow 103\nGot Radio", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, RADIOROCK, DIALOG_STYLE_LIST, "{FFF39F}Rбdio - Rock", "RockRadio1.Com\n181 FM\n96.3 Vip Fm\nFlow 103\nGot Radio", "Sintonizar", "Cancelar");
return 1;
}
if(listitem == 6)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio Desligada.");
TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
TogglePlayerControllable(playerid, 1);
}
}
}
return 1;
}
CMD:radios(playerid)
{
ShowPlayerDialog(playerid, RADIOS, DIALOG_STYLE_LIST, "{FFF39F}Rбdio System Jonas v1.0. By: Jonas_Alves", "Gospel\nFunk\nPop\nHip Hop\nRap\nRock\nDesligar Rбdio", "Selecionar", "Sair");
SendClientMessage(playerid, CORJONAS, "{FFF39F}Rбdio System Jonas v1.0 Aberto");
TogglePlayerControllable(playerid, 0);
return 1;
}