Raised This Month: $7 Target: $400
 1% 

AMXBans Fix - Admins not loading after map change.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 03-30-2018 , 00:13   AMXBans Fix - Admins not loading after map change.
Reply With Quote #1

AMXBans Fix - Reload admins after map change

There is a bug in AMXBans that some people have run into, that is causing sometimes, the admins to not load properly after a map change.

The admins are loaded properly when you first start your server or restart your server. On the initial startup map admin works, but once you change the map admin will stop working and you will just see ;
You have no access to that command (in console)

Adding amx_reloadadmins to amxbans.cfg or amxx.cfg doesn't fix the issue.

This small plugin will reload the admins after a map change.


.
Attached Files
File Type: sma Get Plugin or Get Source (amxbans_fix.sma - 849 views - 207 Bytes)
__________________
--------------------------------------------------
C is for cookie ... thats good enuff 4 me

Last edited by CookieCrumbler; 03-30-2018 at 00:16.
CookieCrumbler is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-30-2018 , 10:57   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #2

Wouldn't it be better to fix the bug from AMXBans?
__________________
HamletEagle is offline
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 03-30-2018 , 13:28   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #3

The weird thing is though Hamlet, I have 5 cs servers across 4 separate physical machine (2 on one and 3 on there own separate box) and for some servers amxbans works perfect for some it doesn't ( with this bug ).

I've even completely re-installed the servers afresh replicating the same installation of a fresh copy of metamod amxx and amxbans across all of them.

I've even toyed with query ports to test if that was an issue and it made no difference. Out of 5 servers AMXBans works perfect on three of them and for the other two I have to use this fix and the two that are bugged are both on separate dedicated servers.

Also on the ones that have this odd bug it makes no difference if you set in amxbans.cfg to load admins from sql or file, the bug still happens in both situations.

This issue has been reported by people from long back, and this really is just a hot fix for people experiencing this same bug and wish to get there amxbans back and working as it should.
__________________
--------------------------------------------------
C is for cookie ... thats good enuff 4 me
CookieCrumbler is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-30-2018 , 16:39   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #4

I understand, but I don't know how I feel about approving a one line plugin. Not sure what to do with this one.
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-03-2018 , 05:25   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
I understand, but I don't know how I feel about approving a one line plugin. Not sure what to do with this one.
Sometimes 1 line plugin have a good reason to get approved
https://forums.alliedmods.net/showthread.php?t=15832
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-03-2018 , 22:34   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #6

i had that problem a lot before
tarsisd2 is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-20-2018 , 20:47   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #7

is this problem fixed in amxbans 6.14.4 version? they fixed a bunch of stuff
tarsisd2 is offline
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 04-20-2018 , 21:09   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #8

AMXBans 6.14.4 is only a Web UI upgrade, the server side plugin is still 6.13.

And nope it doesn't as I am using 6.14.4 Web UI and still have this issue, got same issue using the 6.13 Web UI as well.
__________________
--------------------------------------------------
C is for cookie ... thats good enuff 4 me
CookieCrumbler is offline
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 08-14-2018 , 18:47   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #9

Quote:
Originally Posted by CookieCrumbler View Post
AMXBans Fix - Reload admins after map change

There is a bug in AMXBans that some people have run into, that is causing sometimes, the admins to not load properly after a map change.

The admins are loaded properly when you first start your server or restart your server. On the initial startup map admin works, but once you change the map admin will stop working and you will just see ;
You have no access to that command (in console)

Adding amx_reloadadmins to amxbans.cfg or amxx.cfg doesn't fix the issue.

This small plugin will reload the admins after a map change.


.
Actually, this is not even a bug in the Plugin, but between the server and the database, that many at the time of the connection are left unresponsive, many are from different locations (IT-BR or USA-RUS), and this does not load the data from the database when you switch the map.

I downloaded your plugin and thinking that it would be a slightly bigger code, thing to work directly with Database, a correction really, if it is to do Simple Task, I recommend the Task Scheduler, in my case it is configured every 5 minutes.

amx_task 5 "amx_reloadadmins" mr
__________________

Last edited by gui1porpis; 08-14-2018 at 18:52. Reason: quote invalid
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-19-2018 , 09:03   Re: AMXBans Fix - Admins not loading after map change.
Reply With Quote #10

That's way too simple to be considered for approval and other plugins exist that can do what this one does and more: https://forums.alliedmods.net/showthread.php?t=1263
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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


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