Raised This Month: $ Target: $400
 0% 

Trying to understand the antiflood plugin...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2010 , 07:50   Re: Trying to understand the antiflood plugin...
Reply With Quote #3

The player's index is passed into chkFlood() function. It's a callback from register_clcmd("say", "chkFlood"). This one registers a client command ( say/say_team, you are aware about them, right? ). So, when a player will say something chkFlood will be called and the player's index is passed into the callback. (You have just to write something in the function header, then you can use it. In this plugin you see "id", but you can write what you want).

You don't understand also what does the code ?
__________________
Arkshine 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 21:52.


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