Raised This Month: $51 Target: $400
 12% 

Solved Ban players if disconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-06-2015 , 16:33   Re: Ban if no return in 5 minutes.
Reply With Quote #11

Are you trying to compile this with the dev build? If so you will need to comment or remove that line I added for max players.
__________________
Bugsy is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-06-2015 , 19:56   Re: Ban if no return in 5 minutes.
Reply With Quote #12

Yes latest: http://www.amxmodx.org/snapshots.php

Removed the line and i could compile it.
But still in server amx_plugins console prints ban_no_return.amxx bad load
4ever16 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-06-2015 , 20:10   Re: Ban if no return in 5 minutes.
Reply With Quote #13

I don't know

Code:
 [ 22] Speed Toggle            0.1         bugsy             speedtoggle.amx  running
 [ 23] Ban If No Return        0.1         bugsy             binr.amxx     running
 [ 24] unknown                 unknown     unknown           untitled.amxx    running
__________________
Bugsy is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-06-2015 , 20:20   Re: Ban if no return in 5 minutes.
Reply With Quote #14

Wierd... Really needed this for amxx 1.8.2 cause cant install 1.8.3 on the server.
What amxx version are you using?

I maybe should try to install 1.8.3 on local listen server and try. Will try this see if it helps.

BTW, did i need disconnect_reason.amxx plugin for this to work? Cause i removed it.

Last edited by 4ever16; 07-06-2015 at 20:22.
4ever16 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-06-2015 , 20:25   Re: Ban if no return in 5 minutes.
Reply With Quote #15

I'm running one of the later dev builds, the latest will be the same.

You do not need disconnect reason, this was only needed when the plugin would react differently based on how they disconnected. client_disconnect() fires when a map is changed so the plugin was needed to differentiate map change disconnects with a player actually clicking disconnect.
__________________
Bugsy is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-07-2015 , 08:36   Re: Ban if no return in 5 minutes.
Reply With Quote #16

Ok, i re-installed amxx 1.8.2 locally. I could compile it now without removing the line.
Uploaded the plugin to plugins folder and now its running.

Need to test it now.
4ever16 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-07-2015 , 08:47   Re: Ban if no return in 5 minutes.
Reply With Quote #17

Working good! Amxx 1.8.2

Ok i change the cvars before compile.

"binr_enabled" , "1"
"binr_reconnectmin" , "1"
"binr_banmins" , "2"

But when someone leaves it still says.
PLAYER left - he has 5 minutes to return or he will be banned for 60 minutes.

And btw, where are the bans saved? Cause i dont see any in banned.cfg

Im also wondering, i run automix server, when the match is live, people can still join they cant join the server but for example if i would use your plugin disconnect reason it would show, disconnect: reason: match live, server full.
So i think it is counted as disconnect and they will be banned for a false reason, trying to connect when server is full.

This maybe i should fix by adding a password when server is full so people cant even try to connect.

Last edited by 4ever16; 07-07-2015 at 08:52.
4ever16 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-07-2015 , 12:46   Re: Ban if no return in 5 minutes.
Reply With Quote #18

Quote:
Originally Posted by 4ever16 View Post
Working good! Amxx 1.8.2

Ok i change the cvars before compile.

"binr_enabled" , "1"
"binr_reconnectmin" , "1"
"binr_banmins" , "2"

But when someone leaves it still says.
PLAYER left - he has 5 minutes to return or he will be banned for 60 minutes.
You don't need to change them in the compiled plugin (in fact, that won't work if you don't stop your server first). You need to put those cvars in amxx.cfg and configure them how you want.
__________________
fysiks is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-07-2015 , 20:50   Re: Ban if no return in 5 minutes.
Reply With Quote #19

Ok, why wouldnt i work?

Ok, then i shall put those cvars in server.cfg and restart.

BTW, plugin maker, i have a problem: https://forums.alliedmods.net/showth...00#post2316900

Even if connected and auto-kicked its caunted as disconnect.
Could you make something else or solve it or should i wait for help in other thread?

I dont know, maybe that the client must be in a team first? But i think its better to wait for the password solution, i even think that if player allmost is connected and press cancel thats also counted as disconnect.

Last edited by 4ever16; 07-07-2015 at 20:52.
4ever16 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-08-2015 , 00:37   Re: Ban if no return in 5 minutes.
Reply With Quote #20

Can this be made so users with FLAG A dont get banned

Last edited by 4ever16; 07-08-2015 at 00:37.
4ever16 is offline
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 18:49.


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