Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define DIALOG_RADIO 15 // no 15 bisa di ganti kalau ada yg sama :3
- #if defined Credits
- Credits :
- - Tung Tung
- - Shoutcast ( for radio )
- #endif
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, -1, "This server use radio system by TungTung");
- return 1;
- }
- CMD:radio(playerid, params[])
- {
- new string[512];
- strcat(string, "www.krawallradio.com\n");
- strcat(string, "100% HARD ROCK\n");
- strcat(string, "COOLfahrenheit 93\n");
- strcat(string, "New. Music. Unfiltered. idobi.com\n");
- strcat(string, "BluePoint Radio - 103.2 FM\n");
- strcat(string, "Hitradio OE3\n");
- strcat(string, "BlackBeats.FM - finest in blackbeats\n");
- strcat(string, "BestRadio\n");
- strcat(string, "Stop Radio!");
- ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Radio Streaming", string, "Oke", "Close");
- return 1;
- }
- CMD:radiocredits(playerid, params[])
- {
- SendClientMessage(playerid, -1, "Thanks To :");
- SendClientMessage(playerid, -1, "- Tung TUng ( make radio system )");
- SendClientMessage(playerid, -1, "- Shoutcast ( for radio online )");
- SendClientMessage(playerid, -1, "- SAMP Team");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_RADIO)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=293940");
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=709317");
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=175821");
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897");
- }
- if(listitem == 4)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=193174");
- }
- if(listitem == 5)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=195363");
- }
- if(listitem == 6)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=302745");
- }
- if(listitem == 6)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=158237");
- }
- if(listitem == 7)
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, -1, "Radio stream is stopped :) ");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement