Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #define RADIO 1
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/radio", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Lista de Radios", "{FF0000}Radio Hunter\n{FF0000}Radio Coca_Cola\n{04FF00}Radio fusion\n{0400FF}Radio rock\n{FF00EA}Radio stronda\n{FBFF00}Radio mandela\n{B700FF}Radio Jovem Pan\n{B4B4B4}Desligar", "OK", "Cancelar");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == RADIO)
- {
- if(response)
- {
- if(listitem == 0){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live.hunterfm.com/live");//Radio Hunter
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 1){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://192.95.20.77:192");// coca-cola
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Coca_Cola {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 2){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://192.95.33.114:9996");//Radio Funk Jovem
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Radio Funk Jovem {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 3){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://91.121.174.35:8000");//rock
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio rock {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 4){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://74.222.2.108:8250");//Radio stronda
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio stronda {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 5){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://184.154.37.136:12842");//mandela
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio mandela {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 6){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://74.222.1.133:16682");//jovem pan
- SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Jovem Pan {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
- }
- }
- if(listitem == 7){
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, 0x33CCFFAA, "{BCBCBC}Vc Desligou a Radio!");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment