Does anyone know how to do Anti Numpad script?

I was wondering if anyone knows how to make an anti numpad for fading doors or if simple enough maybe someone can help me make my own script?


I was wonder how it’s done and I don’t know where I should start. The reason is because people want to open/close fading doors with a keypad instead of using buttons.

Gamemode hook Iskeypressed

local key = “numpad1”
if key is true then return false

I don’t know, i’m guessing it’s something like that?

You could also edit the actual swep and remove that segment of code.

This is only applicable if there’s wiremod.

I don’t think there’s a way to block bound keys, since they are no longer restricted to numpad and are not using console commands.

Alright, thanks anyway.

[editline]21st October 2013[/editline]

I’m not sure if you can edit original gmod tools.