Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MusicSystem v0.1 by Lustcher - Itzhak
- #include <a_samp>
- #define MusicDialog 1
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" MusicSystem by Lustcher - Itzhak ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFF0000AA, "[MusicSystem] >> {FFFFFF}LustcheR - בשרת זה קיימת מערכת מוזיקה מתקדמת אשר נבנתה על ידי יצחק");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Music",cmdtext, true) == 0)
- {
- 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", "הפעל", "יציאה");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == MusicDialog && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/gwll52vh6b/-_.mp3");
- case 1: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/61i74g9f62/taylor_swift_-_i_knew_you_were_trouble.mp3");
- case 2: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/4954x5l51b/bastille_-_pompeii.mp3");
- case 3: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/4i9nxu5wdx/chris_brown_-_turn_up_the_music.mp3");
- case 4: PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/8yp573sgc4/ido_b_and_zooki_-_.mp3");
- case 5: StopAudioStreamForPlayer(playerid), SendClientMessage(playerid, 0xFF0000AA, "[MusicSystem] >> {FFFFFF}השיר הופסק");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment