Raised This Month: $ Target: $400
 0% 

[Fix] for amx_ban problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-01-2008 , 10:08   [Fix] for amx_ban problem
Reply With Quote #1

(Since the fix I posted is buried in another thread, I'm making this into a separate thread to make it easier for others to find ).

As discussed in THIS THREAD, there's a problem getting bans to 'stick' after the latest Steam update. I discovered a simple 'work around' until the problem can be solved permanently.

Follow the instructions in Post 12 and your bans should work OK.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Ultralord
Senior Member
Join Date: Oct 2008
Old 11-01-2008 , 14:13   Re: [Fix] for amx_ban problem
Reply With Quote #2

i cant compile it.. can you post the .amxx file?


thnx
Ultralord is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-01-2008 , 14:33   Re: [Fix] for amx_ban problem
Reply With Quote #3

Here's a modified sma. You can compile it from here. Be sure to rename the plugin to admincmd_mod1.amxx in your plugins.ini file.

Remember, this ONLY fixes the amx_ban command. Other amxmodx commands that use the same statement structure (like amx_banip and amx_addban), and thus, may have the same type of problem, are unaffected.
Attached Files
File Type: sma Get Plugin or Get Source (admincmd_mod1.sma - 1575 views - 30.9 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 11-01-2008 at 14:47.
Vet is offline
Send a message via MSN to Vet
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-02-2008 , 09:56   Re: [Fix] for amx_ban problem
Reply With Quote #4

After playing around with this a little more, I found out I was wrong about the cause.
So while the above fix works, simply removing the quotes (^") around the SteamID variable holder allows the plugin to work again too. (See Post 13 in the same thread)

Personally, I still prefer the first method. They functionally do the same thing, but breaking the statement down into separate commands makes it a lot easier to read.

Attached is a modified admincmd.sma that only removes the quotes.

Note: In the code, I also removed the quotes around the minutes variable holder. It didn't seem to matter one way or the other on that one.
Attached Files
File Type: sma Get Plugin or Get Source (admincmd_mod2.sma - 1495 views - 30.6 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 11-02-2008 at 10:02.
Vet is offline
Send a message via MSN to Vet
Bojangles
Senior Member
Join Date: Sep 2007
Location: Over there
Old 11-02-2008 , 10:48   Re: [Fix] for amx_ban problem
Reply With Quote #5

I still can't figure out why they are ignoring this issue. Maybe they aren't but that's what it feels like.
__________________
Bojangles is offline
Send a message via AIM to Bojangles
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-02-2008 , 11:00   Re: [Fix] for amx_ban problem
Reply With Quote #6

If there isn't an open bug report on it, there is a change they won't do anything about it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-02-2008 , 13:28   Re: [Fix] for amx_ban problem
Reply With Quote #7

I doubt if Valve/Steam are done screwing around with things. So maybe its just a temporary thing and all will be well after another update.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Endangered Feces
Junior Member
Join Date: Oct 2008
Old 11-02-2008 , 17:32   Re: [Fix] for amx_ban problem
Reply With Quote #8

Thanks for looking into this problem Vet. We'll check it out and let you know if it works for us!
Endangered Feces is offline
Bojangles
Senior Member
Join Date: Sep 2007
Location: Over there
Old 11-03-2008 , 20:55   Re: [Fix] for amx_ban problem
Reply With Quote #9

If you guys get a chance add your input to this:

https://bugs.alliedmods.net/show_bug.cgi?id=3388

That's my bug report for it. Hopefully it will be resolved.

**EDIT**

Does this also fix amx_addban. I am hearing from some admins that addban isn't working as well. They may have input it wrong but I doubt it. Anyone else having issues with addban?
__________________

Last edited by Bojangles; 11-03-2008 at 21:36.
Bojangles is offline
Send a message via AIM to Bojangles
Bojangles
Senior Member
Join Date: Sep 2007
Location: Over there
Old 11-03-2008 , 22:16   Re: [Fix] for amx_ban problem
Reply With Quote #10

I edited it again to see if I can test this and see if it fixed addban.
Attached Files
File Type: sma Get Plugin or Get Source (admincmd_mod3.sma - 1168 views - 30.6 KB)
__________________
Bojangles is offline
Send a message via AIM to Bojangles
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 16:01.


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