Guest User

Untitled

a guest
May 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. //*******************************Weponz Inc 2010-2012************************//
  2. //---Includes---//
  3. #include <a_samp>// a_samp include for basic scripting functions, MADE BY: SAMP-TEAM
  4. #include <zcmd>// zcmd include for better command processor, MADE BY: Zeex
  5. //---Defines---//
  6. #define PADIALOG 2050 // Dialog Number id, You can change the "2050", to any other number
  7.  
  8. public OnFilterScriptInit()// Function of when the fs is called
  9. {
  10.  
  11. return 1;
  12. }
  13.  
  14. CMD:music(playerid, params[])// Our ZCMD command, you can changed music, to any other word
  15. {//Bracket 1 opened
  16. 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.
  17. return 1;// returning true
  18. }//Bracket 1 closed
  19. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])// Dialog Function when a dialog is called
  20. {//Bracket 1 opened
  21. if(dialogid == (PADIALOG) && response)
  22. {// Bracket 2 opened
  23. for(new i = 0; i < MAX_PLAYERS; i++)// a loop
  24. {//Bracket 3 opened
  25. PlayAudioStreamForPlayer(i, inputtext);// playing the sound function added in 0.3d
  26. }//Bracket 3 closed
  27. }//Bracket 2 closed
  28. return 1;
  29. }//Bracket 1 closed
  30.  
  31. //*****************************Naruto_Emilio*************************//
Add Comment
Please, Sign In to add comment