Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Speedzz = vgui.Create('DNumSlider')
- Speedzz:SetParent(Misc)
- Speedzz:SetSize(265, 100)
- Speedzz:SetPos(110, 125)
- Speedzz:SetDecimals(1)
- Speedzz:SetText('SpeedHack Level')
- Speedzz:SetMinMax(0.1)
- Speedzz:SetMax(20)
- Speedzz:SetValue(GetConVarNumber("host_timescale", 1))
- function Speedz.Slider:OnMouseReleased()
- self:SetDragging( false )
- self:MouseCapture( false )
- RunConsoleCommand(k, Speedz:GetValue())
- end
- function SpeedOn() -- val
- RunConsoleCommand("host_timescale", what goes here?
- end
- function SpeedOff()
- RunConsoleCommand("host_timescale", "1")
- end
- concommand.Add("+c_speed", SpeedOn)
- concommand.Add("-c_speed", SpeedOff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement