Raised This Month: $ Target: $400
 0% 

Hook admin chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2011 , 17:44   Re: Hook admin chat
Reply With Quote #7

Quote:
Originally Posted by SpeeDeeR View Post
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?
Why would you say that? It's very simple.

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.
__________________

Last edited by fysiks; 05-15-2011 at 17:48.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode