Advertisement
Guest User

asd

a guest
Dec 23rd, 2011
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. //FS echo por Nikk123 para www.forum.sa-mp.com no borres los creditos
  2. //Muchas gracias a the_chaoz
  3. #include <a_samp>
  4.  
  5. #define D_MUSICA (993)
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n--------------------------------------");
  10. print(" Sistema de musica por dialog by Nikk123");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15.  
  16. public OnPlayerCommandText(playerid, cmdtext[])
  17. {
  18. if(!strcmp(cmdtext, "/musica", true))
  19. return ShowPlayerDialog(playerid, D_MUSICA, DIALOG_STYLE_LIST, "Sistema de Musica por [Nikk]","Crackerman - Stone Temple Pilots \nComa - Guns N' Roses\nSet me Free - Velvet Revolver\nSlither - Velvet Revolver\nDead Skin - Duff McKagan Loaded\n","Reproducir","Salir");
  20. else if(!strcmp(cmdtext, "/pararmusica", true))
  21. return StopAudioStreamForPlayer(playerid);
  22.  
  23. return 0;
  24. }
  25.  
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  27. {
  28. switch(dialogid){
  29. case D_MUSICA:
  30. if(response){
  31. switch(listitem){
  32. case 0:
  33. {
  34. StopAudioStreamForPlayer(playerid);
  35. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/core%20-%2011%20-%20crackerman.mp3");
  36. }
  37. case 1:
  38. {
  39. StopAudioStreamForPlayer(playerid);
  40. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/guns%20and%20roses%20-%20use%20your%20illusions%20-%20coma.mp3");
  41. }
  42. case 2:
  43. {
  44. StopAudioStreamForPlayer(playerid);
  45. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/velvet%20revolver%20-%20set%20me%20free279.mp3");
  46. }
  47. case 3:
  48. {
  49. StopAudioStreamForPlayer(playerid);
  50. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/velvet%20revolver%20-%20contraband%20-%20slither.mp3");
  51. }
  52. case 4:
  53. {
  54. StopAudioStreamForPlayer(playerid);
  55. PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/03%20-%20dead%20skin%282%29.mp3");
  56. }
  57. }
  58. }
  59. }
  60. return 1;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement