Thread: Block E
View Single Post
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-18-2020 , 06:15   Block E
Reply With Quote #1

Hi, I have a restriction on the E key to not be able to take weapons from the buttons, the phase is that I can't open any door, because I have the E key locked so as not to take weapons from the buttons. My question is, how can I block it so that it can no longer take weapons from the buttons, but go open doors? (CS: GO)

actual code in OnPlayerRunCmd

Code:
if(Test)
	{
		if (buttons & IN_USE)
		{
			buttons &= ~IN_USE;
		}
	}
/

Last edited by jugule; 06-18-2020 at 06:27.
jugule is offline