Advertisement
Guest User

s

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local GmodLogo, TempGmodLogo, GmodLogoColor = surface.GetTextureID("gui/gmod_logo"), surface.GetTextureID("gui/gmod_logo"), Color(255, 255, 255, 255)
  2. function FAdmin.ScoreBoard.ChangeGmodLogo(new)
  3. if surface.GetTextureID(new) == TempGmodLogo then return end
  4. TempGmodLogo = surface.GetTextureID(new)
  5. for i = 0, 0.5, 0.01 do
  6. timer.Simple(i, function() GmodLogoColor = Color(255,255,255,GmodLogoColor.a-5.1) end)
  7. end
  8. timer.Simple(0.5, function() GmodLogo = surface.GetTextureID(new) end)
  9. for i = 0.5, 1, 0.01 do
  10. timer.Simple(i, function()
  11. GmodLogoColor = Color(255, 255, 255, GmodLogoColor.a + 5.1)
  12. end)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement