Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================//
- /* Mp3 Player */
- // Scripter : Momenzi //
- //============================================================================//
- #include <a_samp>
- #include <zcmd>
- //============================================================================//
- // < Define > //
- //============================================================================//
- #define DIALOG_MOMENZI 2
- #define PLAVA 0x0000BBAA
- //============================================================================//
- // < Komande i Dialog > //
- //============================================================================//
- CMD:mp3(playerid, params[],help)
- {
- ShowPlayerDialog(playerid, DIALOG_MOMENZI, DIALOG_STYLE_INPUT, "MP3 Player", "Ovde stavite link pjesme", "Play", "Izadji");
- SendClientMessage(playerid, PLAVA, "Zaljepite svoj link pjesme");
- return 1;
- }
- //============================================================================//
- CMD:mp3stop(playerid, params[],help)
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, PLAVA, "Zaustavili ste pjesmu");
- return 1;
- }
- //============================================================================//
- // < Dialog > //
- //============================================================================//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MOMENZI)
- {
- PlayAudioStreamForPlayer(playerid, inputtext);
- return 1;
- }
- return 0;
- }
- //============================================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement