Advertisement
Guest User

ptink2

a guest
Mar 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. public Action Event_Song(client, args)
  2. {
  3. Menu menu = new Menu(m_eventsong);
  4. menu.SetTitle("☰ Playlist");
  5. menu.AddItem("song1", "Paradigm | Best of Future House Mix");
  6. menu.AddItem("song2", "Chill Out Music Mix");
  7. menu.AddItem("song3", "Chill Out & Melodic Music Mix ");
  8. menu.AddItem("song4", "Trap Nation: Lowly Palace Mix (Royalty Free)");
  9. menu.AddItem("song5", "Best Gaming Music | Melodic & Vocal NCS Mix ");
  10.  
  11. menu.Display(client, MENU_TIME_FOREVER);
  12. }
  13.  
  14. public m_eventsong(Menu menu, MenuAction action, client, index)
  15. {
  16. if(action == MenuAction_Select)
  17. {
  18. char szItem[12];
  19. menu.GetItem(index, szItem, sizeof(szItem));
  20. if(StrEqual(szItem, "song1"))
  21. {
  22. FakeClientCommand(client, "say FutureHouseMix");
  23. }
  24. else if(StrEqual(szItem, "song2"))
  25. {
  26. FakeClientCommand(client, "say ChillOutMusic");
  27. }
  28. else if(StrEqual(szItem, "song3"))
  29. {
  30. FakeClientCommand(client, "say Chill&MelodicMix");
  31. }
  32. else if(StrEqual(szItem, "song4"))
  33. {
  34. FakeClientCommand(client, "say TrapLowlyPalaceMix");
  35. }
  36. else if(StrEqual(szItem, "song5"))
  37. {
  38. FakeClientCommand(client, "say NCSGamingMix");
  39. }
  40. }
  41. else if(action == MenuAction_End)
  42. {
  43. delete menu;
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement