YA228

213

Dec 26th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. concommand.Add("bzhop", function()
  2.  
  3. local ply = LocalPlayer()
  4.  
  5. CreateClientConVar("bhp", 0, true, false)
  6.  
  7. function smpbhp()
  8. if GetConVarNumber("bhp") == 1 and input.IsKeyDown( KEY_SPACE ) then
  9. if ply:IsTyping() == false and ply:IsOnGround() then
  10. RunConsoleCommand("+jump")
  11. timer.Create("Bhop", 0, math.random( .280, .290 ), function()
  12. RunConsoleCommand("-jump")
  13. end)
  14. end
  15. elseif GetConVarNumber("bhp") == 1 and input.IsKeyDown( KEY_SPACE ) then
  16. if ply:IsTyping() == false and ply:IsOnGround() then
  17. RunConsoleCommand("+jump")
  18. timer.Create("Bhop", 0, .01, function()
  19. RunConsoleCommand("-jump")
  20. end)
  21. end
  22. end
  23. end
  24.  
  25. hook.Add("Think", "smpbhp", smpbhp)
  26.  
  27. surface.CreateFont('font', {
  28. font = 'CloseCaption_Bold',
  29. size = 24,
  30. weight = 700
  31. })
  32.  
  33. surface.CreateFont('author', {
  34. font = 'CloseCaption_Bold',
  35. size = 22,
  36. weight = 700
  37. })
  38.  
  39. local menu = vgui.Create( "DFrame" )
  40. menu:SetTitle( "" )
  41. menu:SetSize( 200,150 )
  42. menu:Center()
  43. menu:MakePopup()
  44. menu.Think = function( self )
  45. menu:ShowCloseButton( false )
  46. menu.Paint = function( self, w, h )
  47. surface.SetDrawColor(0, 0, 0, 150)
  48. draw.RoundedBox( 0, 0, 0, w, h, Color( 10, 10, 10, 150 ) )
  49. surface.SetDrawColor(Color(0, 255, 0))
  50. surface.DrawOutlinedRect( 2, 2, w-4, h-4 )
  51. draw.SimpleText('BZHOP - MENU', "font", 30, 30, Color(0,0,0) )
  52. draw.SimpleText('BZHOP - MENU', "font", 28, 30, Color(255,255,255) )
  53. draw.SimpleText('author - twenty two', "author", 13, 55, Color(0,0,0) )
  54. draw.SimpleText('author - twenty two', "author", 11, 55, Color(255,255,255) )
  55. draw.SimpleText('version 1.1', "font", 47, 120, Color(0,0,0) )
  56. draw.SimpleText('version 1.1', "font", 45, 120, Color(255,255,255) )
  57. end
  58. end
  59.  
  60. local bhp = vgui.Create( "DCheckBoxLabel", menu )
  61. bhp:SetText( "BHOP" )
  62. bhp:SetPos( 75, 95 )
  63. bhp:SetConVar( "bhp" )
  64. bhp:SetValue( 0 )
  65. bhp:SizeToContents()
  66.  
  67. local close = vgui.Create( "DButton", menu )
  68. close:SetText( "X" )
  69. close:SetTextColor( Color(255,255,255) )
  70. close:SetPos( 175, 3 )
  71. close:SetSize( 22.5, 22.5 )
  72. close.Paint = function( self, w, h )
  73. draw.RoundedBox( 0, 0, 0, w, h, Color(255,0,0) )
  74. close.DoClick = function()
  75. menu:Close()
  76. end
  77. end
  78. end)
Advertisement
Add Comment
Please, Sign In to add comment