Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*******************************Weponz Inc 2010-2012************************//
- //---Includes---//
- #include <a_samp>// a_samp include for basic scripting functions, MADE BY: SAMP-TEAM
- #include <zcmd>// zcmd include for better command processor, MADE BY: Zeex
- //---Defines---//
- #define PADIALOG 2050 // Dialog Number id, You can change the "2050", to any other number
- public OnFilterScriptInit()// Function of when the fs is called
- {
- return 1;
- }
- CMD:music(playerid, params[])// Our ZCMD command, you can changed music, to any other word
- {//Bracket 1 opened
- ShowPlayerDialog(playerid,PADIALOG,DIALOG_STYLE_INPUT,"Music","Lien de la music","Selectionner","Quitter");//Our dialog, you can change the blue color text to anything you want.
- return 1;// returning true
- }//Bracket 1 closed
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])// Dialog Function when a dialog is called
- {//Bracket 1 opened
- if(dialogid == (PADIALOG) && response)
- {// Bracket 2 opened
- for(new i = 0; i < MAX_PLAYERS; i++)// a loop
- {//Bracket 3 opened
- PlayAudioStreamForPlayer(i, inputtext);// playing the sound function added in 0.3d
- }//Bracket 3 closed
- }//Bracket 2 closed
- return 1;
- }//Bracket 1 closed
- //*****************************Naruto_Emilio*************************//
Add Comment
Please, Sign In to add comment