From Garry's Mod
Revision as of 10:16, 26 October 2014 by Boxama
Runs when a bind has been pressed. Allows to block commands.
The player who used the command
The bind command
If the bind was activated or deactivated
Return true to prevent the bind
Prevents players from using flashlight.
function GM:PlayerBindPress( ply, bind, pressed ) --To block more commands, you could add another line similar to --the one below, just replace the command if ( string.find( bind, "impulse 100" ) ) then return true end end