Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////Payne97 :)///////////////////////
- #include <a_samp>
- #pragma tabsize 0
- #if defined FILTERSCRIPT
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/radio", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Radio","Balkan DJ\nVas naziv\nVas naziv\nVas naziv\nIskljuci","Odaberi","Izadji");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070/listen.pls");
- }
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "");// Ovde stavite svoj link
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, ""); // Ovde stavite svoj link
- }
- case 3:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, ""); // Ovde stavite svoj link
- }
- case 4:
- {
- }
- case 5:
- {
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment