_iLustcheR_

MusicSystem v1.0

Jun 3rd, 2013
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.93 KB | None | 0 0
  1. // MusicSystem v0.1 by Lustcher - Itzhak
  2.  
  3. #include <a_samp>
  4. #define MusicDialog 1
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print("    MusicSystem by Lustcher - Itzhak    ");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. #else
  21. #endif
  22.  
  23. public OnPlayerConnect(playerid)
  24. {
  25.     SendClientMessage(playerid, 0xFF0000AA, "[MusicSystem] >> {FFFFFF}LustcheR - בשרת זה קיימת מערכת מוזיקה מתקדמת אשר נבנתה על ידי יצחק");
  26.     return 1;
  27. }
  28.  
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31.     if (strcmp("/Music",cmdtext, true) == 0)
  32.     {
  33.         ShowPlayerDialog(playerid, MusicDialog, DIALOG_STYLE_LIST, "{FFFF00}MusicList", "EZ - לא מפסיק לחלום\nTaylor Swift - I Knew You Were Trouble\nBastille - Pompeii\nChris Brown - Turn Up The Music\nIdo B & Zooki - רחוק מכאן\n{FF0000}Stop Music", "הפעל", "יציאה");
  34.         return 1;
  35.     }
  36.     return 0;
  37. }
  38.  
  39. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  40. {
  41.     if(dialogid == MusicDialog && response)
  42.     {
  43.         switch(listitem)
  44.         {
  45.             case 0: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/gwll52vh6b/-_.mp3");
  46.             case 1: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/61i74g9f62/taylor_swift_-_i_knew_you_were_trouble.mp3");
  47.             case 2: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/4954x5l51b/bastille_-_pompeii.mp3");
  48.             case 3: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/4i9nxu5wdx/chris_brown_-_turn_up_the_music.mp3");
  49.             case 4: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/8yp573sgc4/ido_b_and_zooki_-_.mp3");
  50.             case 5: StopAudioStreamForPlayer(playerid), SendClientMessage(playerid, 0xFF0000AA, "[MusicSystem] >> {FFFFFF}השיר הופסק");
  51.           }
  52.       }
  53.     return 1;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment