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

[admincmd.amxx] amx_unban command fix


  
 
 
Thread Tools Display Modes
Author Message
PiTaGoRaS
New Member
Join Date: Dec 2004
Old 12-09-2004 , 13:43   [admincmd.amxx] amx_unban command fix
#1

I don't know why nobody has fixed this before, but the amx_unban command doesn't work on AMXX 1.0 and didn't work on previous versions (IIRC). Just do a search for "amx_unban" in this forums and you'll see a lot of users complaining about it.

Patch:

edit amxmodx/scripting/admincmd.sma and change the line 126 on this way:

Original:
Code:
server_cmd("removeid ^"%s^";writeid",arg)
Fixed:
Code:
server_cmd("removeid %s;writeid",arg)

Now recompile the plugin and you are ready.

As you can see, I've simply removed the quotes around the 'removeid' command because it doesn't recognize the steamid correctly with them. Now when amx_unban is called you should see a message like "UserID filter removed for STEAM_0:0:1234". Test yourself in your server console.

Regards,

Oscar
PiTaGoRaS is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 12-09-2004 , 20:23  
#2

yea, I noticed this bug myself, your fix works perfect, developer should add this update
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 12-09-2004 , 21:02  
#3

nice, I never really unban thru AMX MOD X but I think ill apply this fix to allow other admins to do so.
__________________

BigBaller is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 12-09-2004 , 21:45  
#4

I never ban through amx either. I ban through rcon with banid and removeid. But good job.
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Chaotic
Junior Member
Join Date: Nov 2004
Old 12-09-2004 , 23:06  
#5

You can unban this way, I know it works, I use it

amx_unban 00135532
instand of
amx_unban STEAM_0:0:135532
Chaotic is offline
BAILOPAN
Join Date: Jan 2004
Old 12-10-2004 , 02:51  
#6

Fixed/committed, thanks!
__________________
egg
BAILOPAN is offline
 



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 01:43.


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