[size=12][color:8e69=red]Bom foi um pedido esta ae, vc digita /radio e abri em dialog [/color][/size]
[flash(425,350)][Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
[code]#define FILTERSCRIPT
#include <a_samp>
#define Radios 100
#define Amarelo 0xFFFF00AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Bruninho Alves xD");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" By Bruno Alves");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radios", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, Radios, DIALOG_STYLE_LIST,
"Brasil Top Killers",
"{ADFF2F} Funk Brasil \n{CAE1FF}Jovem Pan\n{7B68EE}Radio Atlantida\nRadio Cidade FM\n{6A5ACD}Radio Mantiquera\n{32CD32}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\n{FFFFFF}Desligar Radio",
"Sintonizar", "Sair");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid ==Radios) {
if(response) {
if(listitem == 0) {
SendClientMessage(playerid, Amarelo, "Radio Funk Brasil Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://70.36.100.78:10452/");
return 1;
}
if(listitem == 1) {
SendClientMessage(playerid, Amarelo, "Radio Jovem Pan Sintonizada");
GameTextForPlayer(playerid,"~y~Radio Jovem Pan Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/");
return 1;
}
if(listitem == 2) {
SendClientMessage(playerid, Amarelo, "Radio Atlantida Sintonizada");
GameTextForPlayer(playerid,"~Y~Radio Atlantida Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/");
return 1;
}
if(listitem == 3) {
SendClientMessage(playerid, Amarelo, "Radio Cidade FM Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Cidade Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://75.126.5.125:8226/");
return 1;
}
if(listitem == 4) {
SendClientMessage(playerid, Amarelo, "Radio Mantiquera Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:8081/");
return 1;
}
if(listitem == 5) {
SendClientMessage(playerid, Amarelo, "Radio Click mix Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://50.30.33.114:9998");
return 1;
}
if(listitem == 6) {
SendClientMessage(playerid, Amarelo, "Radio Virtual Dj Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:7800");
return 1;
}
if(listitem == 7) {
SendClientMessage(playerid, Amarelo, "Radio Vto Mix Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://s3.voscast.com:7554/");
return 1;
}
if(listitem == 8) {
SendClientMessage(playerid, Amarelo, "Radio Team Expert Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://64.31.30.91:9980");
return 1;
}
if(listitem == 9) {
SendClientMessage(playerid, Amarelo, "Radio Relax Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://streaming18.brlogic.com:8204/live");
return 1;
}
if(listitem == 10) {
SendClientMessage(playerid, Amarelo, "Radio Novo Milenio Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://174.142.79.66:8110");
return 1;
}
if(listitem == 11) {
GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3);
StopAudioStreamForPlayer(playerid);
return 1;
}
}
}
return 1;
}
[/code]
[flash(425,350)][Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
[code]#define FILTERSCRIPT
#include <a_samp>
#define Radios 100
#define Amarelo 0xFFFF00AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Bruninho Alves xD");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" By Bruno Alves");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radios", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, Radios, DIALOG_STYLE_LIST,
"Brasil Top Killers",
"{ADFF2F} Funk Brasil \n{CAE1FF}Jovem Pan\n{7B68EE}Radio Atlantida\nRadio Cidade FM\n{6A5ACD}Radio Mantiquera\n{32CD32}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\n{FFFFFF}Desligar Radio",
"Sintonizar", "Sair");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid ==Radios) {
if(response) {
if(listitem == 0) {
SendClientMessage(playerid, Amarelo, "Radio Funk Brasil Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://70.36.100.78:10452/");
return 1;
}
if(listitem == 1) {
SendClientMessage(playerid, Amarelo, "Radio Jovem Pan Sintonizada");
GameTextForPlayer(playerid,"~y~Radio Jovem Pan Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/");
return 1;
}
if(listitem == 2) {
SendClientMessage(playerid, Amarelo, "Radio Atlantida Sintonizada");
GameTextForPlayer(playerid,"~Y~Radio Atlantida Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/");
return 1;
}
if(listitem == 3) {
SendClientMessage(playerid, Amarelo, "Radio Cidade FM Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Cidade Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://75.126.5.125:8226/");
return 1;
}
if(listitem == 4) {
SendClientMessage(playerid, Amarelo, "Radio Mantiquera Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:8081/");
return 1;
}
if(listitem == 5) {
SendClientMessage(playerid, Amarelo, "Radio Click mix Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://50.30.33.114:9998");
return 1;
}
if(listitem == 6) {
SendClientMessage(playerid, Amarelo, "Radio Virtual Dj Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:7800");
return 1;
}
if(listitem == 7) {
SendClientMessage(playerid, Amarelo, "Radio Vto Mix Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://s3.voscast.com:7554/");
return 1;
}
if(listitem == 8) {
SendClientMessage(playerid, Amarelo, "Radio Team Expert Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://64.31.30.91:9980");
return 1;
}
if(listitem == 9) {
SendClientMessage(playerid, Amarelo, "Radio Relax Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://streaming18.brlogic.com:8204/live");
return 1;
}
if(listitem == 10) {
SendClientMessage(playerid, Amarelo, "Radio Novo Milenio Sintonizada");
GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3);
PlayAudioStreamForPlayer(playerid, "http://174.142.79.66:8110");
return 1;
}
if(listitem == 11) {
GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3);
StopAudioStreamForPlayer(playerid);
return 1;
}
}
}
return 1;
}
[/code]