Hook admin chat
Is there a way to hook the use of '@' character in say_team from admincmd where you can send messages to admin or I have to edit the admincmd.
|
Re: Hook admin chat
PHP Code:
|
Re: Hook admin chat
lis_16 is wrong.
What do you want to do exactly ? (you should have to edit adminchat.sma). |
Re: Hook admin chat
I need to retrieve all arguments from say_team if its used with '@' and block it if a certain check is true.
So I assume there isn't any way of doing this? |
Re: Hook admin chat
Why? What about handle say_team and check handled message?
|
Re: Hook admin chat
Quote:
|
Re: Hook admin chat
Quote:
If you are not editing adminchat.sma and are doing it in antoher plugin then: Hook "say_team" and read_args() and remove quotes then check if first character is '@' (or see if the string contains the '@' character depending on your need) and return PLUGIN_HANDLED if you want it blocked. Then put this new plugin above adminchat.amxx If you only want to block what adminchat.amxx does then you need to edit adminchat.sma. |
Re: Hook admin chat
This might do the trick. Thank you.
|
| All times are GMT -4. The time now is 04:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.