Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FS echo por Nikk123 para www.forum.sa-mp.com no borres los creditos
- //Muchas gracias a the_chaoz
- #include <a_samp>
- #define D_MUSICA (993)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Sistema de musica por dialog by Nikk123");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/musica", true))
- 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");
- else if(!strcmp(cmdtext, "/pararmusica", true))
- return StopAudioStreamForPlayer(playerid);
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid){
- case D_MUSICA:
- if(response){
- switch(listitem){
- case 0:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/core%20-%2011%20-%20crackerman.mp3");
- }
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/guns%20and%20roses%20-%20use%20your%20illusions%20-%20coma.mp3");
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/velvet%20revolver%20-%20set%20me%20free279.mp3");
- }
- case 3:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/velvet%20revolver%20-%20contraband%20-%20slither.mp3");
- }
- case 4:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/54360275/03%20-%20dead%20skin%282%29.mp3");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement