Raised This Month: $ Target: $400
 0% 

Trying to understand the antiflood plugin...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hristosax
Junior Member
Join Date: Jul 2008
Old 08-24-2010 , 08:21   Re: Trying to understand the antiflood plugin...
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
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 ?
Thanks for the response, but my doubts are only about the part of the code I later separated, starting from
PHP Code:
if (maxchat
. I don't understand what the "id" in the g_flooding[] float array does there and the logic in the code afterwards just doesn't make any sense to me.

Cheers
hristosax 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