AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Keylock (https://forums.alliedmods.net/showthread.php?t=144494)

nike! 12-04-2010 17:27

Keylock
 
Hi, I have a question about lock keys in the cs,
I want to know how to block certain buttons
example:
block button 'A'
or the buttons "<-" and "->" (Arrows)
or other keyboard buttons

That is my doubt, greetings.

fysiks 12-04-2010 18:01

Re: Keylock
 
You can't know what keys players are pressing (and therefore can't block a certain keyboard key). You can only know what commands are being sent to the server.

You will have to explain in much more detail on what you are trying to do.

nike! 12-04-2010 18:09

Re: Keylock
 
Quote:

Originally Posted by fysiks (Post 1363267)
You can't know what keys players are pressing (and therefore can't block a certain keyboard key). You can only know what commands are being sent to the server.

You will have to explain in much more detail on what you are trying to do.

block:
mwheelup
meheeldown

not to the abuse

fysiks 12-04-2010 18:12

Re: Keylock
 
Quote:

Originally Posted by nike! (Post 1363274)
block:
mwheelup
meheeldown

not to the abuse

Not possible because you can't know if a player is using the wheel. Depending on what command, SPECIFICALLY, you are trying to block it may be possible.

nike! 12-04-2010 18:19

Re: Keylock
 
@fysiks
the command: + jump + duck

fysiks 12-04-2010 18:26

Re: Keylock
 
Search. I'm sure there are several plugins to deal with this.

nike! 12-04-2010 18:44

Re: Keylock
 
i was looking for but were not useful if you got a URL I thank you


All times are GMT -4. The time now is 11:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.