Raised This Month: $32 Target: $400
 8% 

Forlix TempBanFix


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-26-2010 , 14:01   Re: Forlix TempBanFix
Reply With Quote #11

Quote:
Originally Posted by Forlix View Post
What does that mean?
Those bans what have time, not permit...
Unban remove ban from server list but not from "Forlix TemBanfix list"
Plugin keep still ban activated
I tried mapchange if that help
__________________
Do not Private Message @me
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-27-2010 , 02:40   Re: Forlix TempBanFix
Reply With Quote #12

Ok, I tried again.. I banned myself by steam_id 30minutes
- Looking list bans rcon listid not show any temp bans...
- Using rcon to unban not work..
rcon sm_unban steam_id
rcon removeid slot
rcon removeid steam_id


- Only way remove temp ban is type to straight srcds.exe console input
removeid steam_id
Bacardi is offline
Forlix
Senior Member
Join Date: Dec 2008
Location: Hamburg, Germany
Old 06-27-2010 , 12:18   Re: Forlix TempBanFix
Reply With Quote #13

Code:
 
sm_unban STEAM_0:0:27017xxx
L 06/27/2010 - 18:15:43: [basebans.smx] "Console<0><Console><Console>" removed ban (filter "STEAM_0:0:27017xxx")
[SM] Removed bans matching filter: STEAM_0:0:27017xxx
removeid (TempBanFix): filter removed for STEAM_0:0:27017xxx
Writing cfg/banned_user.cfg.
Works for me...
Forlix is offline
Send a message via ICQ to Forlix Send a message via MSN to Forlix
Forlix
Senior Member
Join Date: Dec 2008
Location: Hamburg, Germany
Old 06-27-2010 , 12:26   Re: Forlix TempBanFix
Reply With Quote #14

Check this out:

Code:
] rcon sm_unban STEAM_0:0:27017xxx
L 06/27/2010 - 18:21:23: [basebans.smx] "Console<0><Console><Console>" removed ban (filter "STEAM_0 : 0 : 27017xxx")
[SM] Removed bans matching filter: STEAM_0 : 0 : 27017xxx
removeip:  invalid slot 0
Writing cfg/banned_ip.cfg.
] rcon sm_unban "STEAM_0:0:27017xxx"
L 06/27/2010 - 18:21:55: [basebans.smx] "Console<0><Console><Console>" removed ban (filter "STEAM_0:0:27017xxx")
[SM] Removed bans matching filter: STEAM_0:0:27017xxx
removeid (TempBanFix):  filter removed for STEAM_0:0:27017xxx
Writing cfg/banned_user.cfg.
The engine seems to recognize ":" as an argument separator, it only works when you wrap the STEAMID in quotes.
Dont know if this also applies when using sm_unban without rcon.
Forlix is offline
Send a message via ICQ to Forlix Send a message via MSN to Forlix
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-27-2010 , 14:02   Re: Forlix TempBanFix
Reply With Quote #15

Indeed ! I try go test right a way. Thanks for info
Bacardi is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 05-19-2011 , 02:31   Re: Forlix TempBanFix
Reply With Quote #16

So does this play nice with sourcebans?
__________________
zeroibis is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-07-2011 , 16:51   Re: Forlix TempBanFix
Reply With Quote #17

Quote:
Originally Posted by Forlix View Post
Changes in v1.13: (2011/04)

•Added RCON support - Use listidt to list all temporary bans
Great plugin and very useful, thanks for Your good job done here.

There's just one little problem with KAC plugin every time a TempBanned player is trying to join:

Code:
L 09/07/2011 - 16:02:24: SourceMod error session started
L 09/07/2011 - 16:02:24: Info (map "de_prodigy") (file "errors_20110907.log")
L 09/07/2011 - 16:02:24: [SM] Native "IsFakeClient" reported: Client 1 is not connected
L 09/07/2011 - 16:02:24: [SM] Displaying call stack trace for plugin "kigen-ac-pub.smx":
L 09/07/2011 - 16:02:24: [SM]   [0]  Line 250, kigen-ac-pub.sp::OnClientAuthorized()
L 09/07/2011 - 16:14:24: Error log file session closed.
L 09/07/2011 - 19:07:32: SourceMod error session started
L 09/07/2011 - 19:07:32: Info (map "de_cbble") (file "errors_20110907.log")
L 09/07/2011 - 19:07:32: [SM] Native "IsFakeClient" reported: Client 14 is not connected
L 09/07/2011 - 19:07:32: [SM] Displaying call stack trace for plugin "kigen-ac-pub.smx":
L 09/07/2011 - 19:07:32: [SM]   [0]  Line 250, kigen-ac-pub.sp::OnClientAuthorized()
L 09/07/2011 - 19:12:03: Error log file session closed.
Is there any way to make Your plugin to refuse players alittle bit later or something I can change/add in/to KAC's code to avoid this error?
GrO is offline
Forlix
Senior Member
Join Date: Dec 2008
Location: Hamburg, Germany
Old 09-07-2011 , 17:54   Re: Forlix TempBanFix
Reply With Quote #18

You should add a check that determines via IsClientConnected if the client is connected before calling IsFakeClient at those places - that will make the error go away. If you need help with that, post the lines of code around the IsFakeClient calls, and I can add it in for you.
Forlix is offline
Send a message via ICQ to Forlix Send a message via MSN to Forlix
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-07-2011 , 20:31   Re: Forlix TempBanFix
Reply With Quote #19

Quote:
Originally Posted by Forlix View Post
You should add a check that determines via IsClientConnected if the client is connected before calling IsFakeClient at those places - that will make the error go away. If you need help with that, post the lines of code around the IsFakeClient calls, and I can add it in for you.
Thanks for Your help ;]

I hope this is enaugh, cause there are more lines with IsFakeClient also with one of includes, but this is the part mentioned in the error log:

Code:
public OnClientAuthorized(client, const String:auth[])
{
	if ( IsFakeClient(client) ) // Bots are annoying...
		return;

	decl Handle:f_hTemp, String:f_sReason[256];

	if ( GetTrieString(g_hDenyArray, auth, f_sReason, sizeof(f_sReason)) )
	{
		KickClient(client, "%s", f_sReason);
		OnClientDisconnect(client);
		return;
	}
GrO is offline
Forlix
Senior Member
Join Date: Dec 2008
Location: Hamburg, Germany
Old 09-07-2011 , 21:38   Re: Forlix TempBanFix
Reply With Quote #20

Replace this

Code:
    if ( IsFakeClient(client) ) // Bots are annoying...
        return;
with:

Code:
    if ( !IsClientConnected(client)
    ||   IsFakeClient(client) ) // Bots are annoying...
        return;
That should do it.
Forlix is offline
Send a message via ICQ to Forlix Send a message via MSN to Forlix
Reply



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 00:07.


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