Commands Blocker v0.1.1
3 Attachment(s)
.: Description :.
I know there was another plugin that does something like this, but this plugin is different because it's a generic command blocker, adding a customization file to add every command you want to be blocked. Also I've uploaded a commands dump that will log every command you use, for testing purposes only. Note that there are commands that cannot be blocked using this plugin, such as: retry, +jump, +duck, ect. They need to be hooked separately. Also remember if you want to use those plugins in Counter-Strike you would need to enable it's functionalities, so you will need to uncomment this line in both plugins: PHP Code:
Code:
- Version: 0.1.1 (March 2, 2010) |
Re: Commands Blocker v0.1.0
Questions:
g_szMessages g_iMessagesCount I thought they were commands. I guess you just copied from another plugin. Ideas: 1. Use register_clcmd( ) in the ReadFileData( ) and remove the arrays so there can be unlimited. 2. Use a Trie and load all commands (make them lowercase) into there. Hook client_command( ) (and CS_InternalCommand( ) if CS is being used) and check if command (in lowercase) was issued. That way it allows infinite, and also supports case-insensitivity as well as hooking some commands in CS that client_command( ) can't hook. |
Re: Commands Blocker v0.1.0
Will try everything. And about the variables I copied them from my 1HP-related plugin.
|
Re: Commands Blocker v0.1.0
What kind of 'commands' does this plugin block? Could you please make it clear a little bit?..
|
Re: Commands Blocker v0.1.0
Quote:
stopsound, buy, impulse, etc. |
Re: Commands Blocker v0.1.0
PHP Code:
You could use :arrow: get_configsdir() |
Re: Commands Blocker v0.1.0
Quote:
|
Re: Commands Blocker v0.1.0
Quote:
Well i hope you meant .inc not .h :D |
Re: Commands Blocker v0.1.1
Updated.
|
Re: Commands Blocker v0.1.1
This plugin is well done.
If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me. Approved. |
All times are GMT -4. The time now is 07:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.