Rahkye

[CL] Blue Screen

Jul 22nd, 2019 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. --CL
  2. --Тоже самое только на клиент части( вызывает сам экран )
  3. function DeathSH()
  4.     local Smooth = 100
  5.     sound.PlayURL("http://d.zaix.ru/dpi7.mp3", "mono", function() end)
  6.     hook.Add("Think", "Smoothle", function()
  7.         Smooth = Smooth-1
  8.     end)
  9.     hook.Add( "HUDPaint", "MyRect", function()
  10.         surface.SetDrawColor( 10, 10, 255, Smooth)
  11.         surface.DrawRect( 0, 0, ScrW(), ScrH() )
  12.     end)  
  13.     timer.Simple(0.75, function()
  14.         hook.Remove("Think", "Smoothie")
  15.         hook.Remove("HUDPaint", "MyRect")
  16.     end)
  17. end
  18. net.Receive("send_signal_zhenyapidor",DeathSH)
Add Comment
Please, Sign In to add comment