How to hide players say?
I want a code that can hide players say.
That because my friend server need use say to register, so he tell me he want add a code in the sma and that can hide players say. |
Re: How to hide players say?
Try something like this
register_clcmd("say","say_check") register_clcmd("say_team","say_check") public say_check(id) { if(!say_allowed(id)) return PLUGIN_HANDLED return PLUGIN_CONTINUE } |
Re: How to hide players say?
When I try to convert the amxx, it show me undefined symbol "say_allowed".
How to fix it? |
Re: How to hide players say?
Do you want to hide all the chat ? If yes, do:
Code:
register_clcmd("say","say_check");Code:
register_clcmd("say","say_check"); |
Re: How to hide players say?
1 Attachment(s)
He told me he could not understand how to add the code correctly.
He sent a file to me and said he wanted an example of admin_check.sma Can you add the code inside? Because I try to add the code but did not hide the players said /admin.:cry: |
Re: How to hide players say?
PHP Code:
Code:
return PLUGIN_CONTINUECode:
return PLUGIN_HANDLEDSo use HANDLED. |
Re: How to hide players say?
If i am not wrong, you should use return PLUGIN_HANDLED_MAIN to block the say.
|
Re: How to hide players say?
i have tried return PLUGIN_HANDLED & return PLUGIN_HANDLED_MAIN, but it's still show /admin.
What's the problem? |
Re: How to hide players say?
Change this in your plugin.
PHP Code:
|
Re: How to hide players say?
PHP Code:
|
| All times are GMT -4. The time now is 00:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.