Can somebody help :/ ?
Code:
#include <amxmodx>I wanted to make LockChat plugin where Admin could lock chat by /lock - /unlock command to users with Z flag (just user) Now i dont have idea how to make that or is it even possible :/ |
Re: Can somebody help :/ ?
I dont think this is gonna work cuz it doesnt mute player from chat by typing that command...
(If user with flag z types /lock or /unlock its only gonna say "Chat is locked" but still be able to chat. That return PLUGIN_HANDLED; will just be used to hide the command, thats not what i wanted but thanks anyway :)) |
Re: Can somebody help :/ ?
maybe something like this should work.
PHP Code:
|
Re: Can somebody help :/ ?
No, it won't. It's not even correct.
Simply use a bool and toggle it true/false and return PLUGIN_HANDLED or PLUGIN_CONTINUE according to it. |
Re: Can somebody help :/ ?
If you want it to allow say commands (/rs ..) to work use this.
PHP Code:
PHP Code:
|
Re: Can somebody help :/ ?
Quote:
|
Re: Can somebody help :/ ?
Quote:
|
Re: Can somebody help :/ ?
PHP Code:
|
Re: Can somebody help :/ ?
Quote:
|
Re: Can somebody help :/ ?
And how's that supposed to block the chat?
|
| All times are GMT -4. The time now is 21:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.