Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define FARBA_29 0x11FF00FF
- #define FARBA_43 0x00EEFFFF
- CMD:radio(playerid, params[])
- {
- #pragma unused params
- ShowPlayerDialog(playerid,8325,DIALOG_STYLE_LIST,"Radia","Fun Radio\nThe Vibe of Vegas\nDance Radio\nEvropa 2\nHipHopStage\nFrekvence 1\nVypnut Radio","Pustit","Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 8325)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Fun Radio.");
- PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3.m3u");
- }
- case 1:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio The Vibe Of Vegas.");
- PlayAudioStreamForPlayer(playerid,"http://108.61.73.117:8074/listen.pls");
- }
- case 2:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Dance Radio.");
- PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/danceradio128.mp3.m3u");
- }
- case 3:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Evropa 2.");
- PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/evropa2-128.mp3.m3u");
- }
- case 4:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio HipHopStage.");
- PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/hiphopstage192.mp3.m3u");
- }
- case 5:
- {
- SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Frekvence 1.");
- PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/frekvence1-128.mp3.m3u");
- }
- case 6:
- {
- SendClientMessage(playerid, 0xFF0000FF , "[Radio] Radio is off.");
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment