Quote:
Originally Posted by TeoNoman
One more time plz, didn't get
|
Player says: 123.123.123.123
-> no action taken
Player says: 123.123.123.123
Player says: 123.123.123.123
-> hide messages + ban
Only make it ban if the player posts ads more than once.
btw, that's strange. It won't work for me properly. It says it bans people, but the players can come back. Using the default ban method in AMXX.
I ban myself by posting ads on the server (I removed myself from being an admin to test this)
I get kicked and the game says I got banned for 1440 minutes. But I can join the server again right away without problems!
If I ban myself manually for 1440 minutes, it works fine.
Here's the logs:
Code:
L 04/18/2009 - 19:19:20: "HAARP<1><STEAM_0:0:*censored*><>" entered the game
L 04/18/2009 - 19:19:22: "HAARP<1><STEAM_0:0:*censored*><>" joined team "CT"
L 04/18/2009 - 19:19:33: [amx_spamblocker.amxx] Player "HAARP" (STEAM_0:0:*censored*) has been banned (1440 min) for message: .123.123.123.123
L 04/18/2009 - 19:19:33: [admincmd.amxx] Ban: "Evilution - Assault/Siege/Milit<0><><>" ban and kick "HAARP<1><STEAM_0:0:*censored*><>" (minutes "1440") (reason "AUTOBAN: Spam")
[AMXX] Client "HAARP" banned
L 04/18/2009 - 19:19:33: Kick: "HAARP<1><STEAM_0:0:*censored*><>" was kicked by "Console" (message ""AUTOBAN: Spam (banned for 1440 min)"")
L 04/18/2009 - 19:19:33: "HAARP<1><STEAM_0:0:*censored*><CT>" disconnected
Dropped HAARP from server
Reason: Kicked :"AUTOBAN: Spam (banned for 1440 min)"
L 04/18/2009 - 19:19:33: Ban: "<><STEAM_ID_PENDING><>" was banned "for 1440.00 minutes" by "Console"
Writing banned.cfg.
I guess the STEAM_ID_PENDING is the problem here.
Also, I don't think it should show the amount of time you've been banned to the victim. Normal banning with AMXX doesn't show it either.
Another problem: I replaced the immunity flag in the source like this:
Code:
#define IMMUNITY_FLAG ADMIN_IMMUNITY
But it still bans immune admins (or at least it tries to, because of above bug it won't work anyway)
btw, thanks for your attention