Block message when someone types ff in chat
Hello guys.
I want to block the message that appears when someone types "ff" in the chat (Friendly fire: on/off) because smart players of the mode I'm working on exploit this to tell the alive players who's the enemy. I thought this would be enough but it didn't work. PHP Code:
|
Re: Block message when someone types ff in chat
Quote:
Or you can use Orpheu and hook pfnClientCommand then block it by checking the arguments if they match ^say ff^ if you want to be resistent on AMXX updates without having to edit that plug-in. |
Re: Block message when someone types ff in chat
Thank you. I wanted to do the fix with orpheu but I know nothing about it so I went with the first solution :)
|
Re: Block message when someone types ff in chat
Quote:
Read, read, read, learn, learn, learn and search, search, search before asking how. Everything you will need you can find on this forum. |
Re: Block message when someone types ff in chat
There's no need to use Orpheu for such a simple thing, it's overkill. The method you used works just fine. You can also catch the message itself and block it, but there's really no need to.
|
Re: Block message when someone types ff in chat
pfnClientCommand can be hooked with fakemeta.
As a general rule however:fakemeta will not catch functions called by plugins, only calls from gamedll. |
Re: Block message when someone types ff in chat
Quote:
But sure, for such a plug-in, it may not be needed. |
Re: Block message when someone types ff in chat
Occam's razor. Don't make it more complicated that it needs to be. Just edit nextmap.sma and recompile. If you don't like that, the plugin that you posted will work as long as it is listed before any plugins that also hook that message.
|
All times are GMT -4. The time now is 03:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.