AntiFlood
#7
(11-24-2015, 01:42 PM)Zee1234 Wrote: Better description:
Code:
This plugin kicks players that spam chat messages and commands too quickly.

There are two settings in the main.lua file:
[b]gMsgDelay[/b] - How many (seconds? Pretty sure this is actually Milliseconds) must a player wait between messages before their "Warning Level" goes up?
[b]gWarningsBeforeKick[/b] - How large can the "Warning Level" get before the plugin kicks them?

Thank you for better translation!

(11-24-2015, 01:42 PM)Zee1234 Wrote: Suggestion 1:
Replace
local plUID = aPlayer:GetUniqueID();
with
local plUID = aPlayer:GetUUID();

Why? GetUUID will work if a player logs off and logs back on without the server restarting. GetUniqueID "forgets" when they log in/out, and actually has a chance to apply to a different player (I think. I might be wrong, but GetUUID is still smarter).

I'm don't want to ban player. Kick - it is warning for the player. In any case, I'm want to disable global chat. And use it is for system messages.

In any case GetUUID() change if player change nick name. So, It is right to ban by IP. But we can lose players behind NAT.
It is better ban by name. How many times and how long?
If you want, I can create some rules for ban player.

(11-24-2015, 01:42 PM)Zee1234 Wrote: Suggestion 2:
Include an onDisable function and just return the default value.

I'm update the function (hook) in future.
Reply
Thanks given by:


Messages In This Thread
AntiFlood - by DrMasik - 11-23-2015, 12:26 AM
RE: AntiFlood - by NiLSPACE - 11-23-2015, 01:30 AM
RE: AntiFlood - by DrMasik - 11-23-2015, 02:02 AM
RE: AntiFlood - by ThuGie - 11-23-2015, 02:08 AM
RE: AntiFlood - by Zee1234 - 11-24-2015, 01:42 PM
RE: AntiFlood - by DrMasik - 11-24-2015, 04:49 PM
RE: AntiFlood - by Schwertspize - 11-24-2015, 03:57 PM
RE: AntiFlood - by xoft - 11-25-2015, 01:52 AM



Users browsing this thread: 1 Guest(s)