This code breaks the"+zoom" binding on TTT.
hook.Add("PlayerBindPress", "Bind Press Fix", function( ply, bind, pressed, code )
if (bind:sub(1, 1) == "+") then
if (ply.BindsPressed == nil) then ply.BindsPressed = {} end
ply.BindsPressed[ code ] = bind
end
end)
hook.Add("PlayerButtonUp", "Bind Press Fix", function( ply, code )
if (ply.BindsPressed == nil) then ply.BindsPressed = {} end
local bind = ply.BindsPressed[ code ]
if (bind) then
hook.Run( "PlayerBindPress", ply, "-" .. bind:sub(2, #bind ), true, code )
ply.BindsPressed[ code ] = nil
end
end)