ploxarik

mini system

Feb 16th, 2021 (edited)
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum
  2. {
  3.     DIALOG_MUSIC_ACTIVE
  4. };
  5.  
  6. CMD:play(playerid) return ShowPlayerDialog(playerid, DIALOG_MUSIC_ACTIVE, DIALOG_STYLE_INPUT, "Music", "enter url address of track or station","OK","Close");
  7.  
  8. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  9. {
  10.     switch (dialogid)
  11.     {
  12.         case DIALOG_MUSIC_ACTIVE:
  13.         {
  14.             if(response) PlayAudioStreamForPlayer(playerid, inputtext);
  15.         }
  16.     }
  17.     return 1;
  18. }
RAW Paste Data