Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. local function paineletbilumaster()
  2. local escolhermusica = vgui.Create("DFrame")
  3. escolhermusica:SetSize(300,100)
  4. escolhermusica:SetPos(12,12)
  5. escolhermusica:SetVisible(true)
  6. escolhermusica:MakePopup()
  7. escolhermusica:Center()
  8. escolhermusica:SetTitle( "Choose a song from the list below:")
  9.  
  10. local qualmusica = vgui.Create( "DComboBox", escolhermusica )
  11. qualmusica:SetPos( 25, 30 )
  12. qualmusica:SetSize( 250, 20 )
  13. qualmusica:SetSortItems(false)
  14. qualmusica:SetValue( "Songs Avaiable" )
  15. qualmusica:AddChoice( "Despacito - Luis Fonsi, Daddy Yankee ft. Justin Bieber" )
  16. qualmusica:AddChoice( "Something Just Like This - The Chainsmokers/Coldplay" )
  17. qualmusica:AddChoice( "Ed Sheeran - Shape of You" )
  18. qualmusica:AddChoice( "Rockabye - Clean Bandit ft. Sean Paul & Anne-Marie" )
  19. qualmusica:AddChoice( "Alan Walker - Faded" )
  20. qualmusica:AddChoice( "The Girl From Ipanema - Astrud Gilberto & Stan Getz" )
  21. qualmusica:AddChoice( "The Weeknd - Starboy ft. Daft Punk" )
  22. qualmusica.OnSelect = function( panel, index, value )
  23. musicaescolhida = ""
  24. if value == "Despacito - Luis Fonsi, Daddy Yankee ft. Justin Bieber" then
  25. musicaescolhida = 1
  26. elseif value == "Something Just Like This - The Chainsmokers/Coldplay" then
  27. musicaescolhida = 2
  28. elseif value == "Ed Sheeran - Shape of You" then
  29. musicaescolhida = 3
  30. elseif value == "Rockabye - Clean Bandit ft. Sean Paul & Anne-Marie" then
  31. musicaescolhida = 4
  32. elseif value == "Alan Walker - Faded" then
  33. musicaescolhida = 5
  34. elseif value == "The Girl From Ipanema - Astrud Gilberto & Stan Getz" then
  35. musicaescolhida = 6
  36. elseif value == "The Weeknd - Starboy ft. Daft Punk" then
  37. musicaescolhida = 7
  38. end
  39. end
  40. local botaoplay = vgui.Create( "DButton", escolhermusica )
  41. botaoplay:SetText( "Close (After closing, press Mouse1 to play that)" )
  42. botaoplay:SetPos( 25, 50 )
  43. botaoplay:SetSize( 250, 30 )
  44. botaoplay.DoClick = function()
  45. escolhermusica:Close()
  46. end
  47. end
  48.  
  49. concommand.Add("ebmusicpanel", paineletbilumaster)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement