CapsAdmin

Untitled

Feb 22nd, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local pos = Vector(-9903, -266, -9345)
  2. local rad = 2000
  3. local url = "http://www.infinitelooper.com/?v=EQb_InkS7L8&p=n"
  4.  
  5. mars_music_html = mars_music_html or NULL
  6.  
  7. timer.Create("mars_music", 1, 0, function()
  8.     local origin = LocalPlayer():EyePos()
  9.    
  10.     if origin:Distance(pos) < rad then     
  11.         if not mars_music_html:IsValid() then          
  12.             local html = vgui.Create("DHTML")
  13.             html:OpenURL(url)
  14.             html:SetSize(1,1)
  15.             html:SetPos(ScrW(), ScrH())
  16.                
  17.             mars_music_html = html
  18.         end    
  19.     else
  20.         if mars_music_html:IsValid() then
  21.             mars_music_html:Remove()
  22.         end
  23.     end
  24. end)
Add Comment
Please, Sign In to add comment