Raised This Month: $ Target: $400
 0% 

RangeBan


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
neuromancer
Member
Join Date: Apr 2007
Location: Poland
Old 04-24-2007 , 11:52   RangeBan
Reply With Quote #1

Sometimes somebody has a changing IP adress and we need to ban him quickly.

This may be useful when we have a nonsteam server and there is no steamid's and we need to ban by IP addr.

Just type amx_rangeban <name/userid> <range> <minutes> [reason]

If you for example tyle 2 in range parameter then banned ip adres will be 1.2.0.0 (0 means any IP address)
You cannot type more than 3 in range.
Attached Files
File Type: sma Get Plugin or Get Source (rangeban.sma - 6217 views - 3.0 KB)
neuromancer is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 04-24-2007 , 11:56   Re: RangeBan
Reply With Quote #2

AMX Mod X... doesn't support nonsteam...

Also, what file would permanent bans be saved to?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
neuromancer
Member
Join Date: Apr 2007
Location: Poland
Old 04-24-2007 , 11:57   Re: RangeBan
Reply With Quote #3

Quote:
Originally Posted by vvg125 View Post
AMX Mod X... doesn't support nonsteam...

Also, what file would permanent bans be saved to?

In my nonsteam server amxx works perfectly.

Permanent bans goes to listip.cfg
neuromancer is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 04-24-2007 , 12:09   Re: RangeBan
Reply With Quote #4

It doesn't matter if it works or not, it's not supported...

So what it basically does is write each IP within that range into the listip.cfg?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
neuromancer
Member
Join Date: Apr 2007
Location: Poland
Old 04-24-2007 , 12:17   Re: RangeBan
Reply With Quote #5

Quote:
Originally Posted by vvg125 View Post
So what it basically does is write each IP within that range into the listip.cfg?
If external plugin isn't installed then normal admin (without rcon access) can't determine IP address of user
neuromancer is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 04-24-2007 , 13:58   Re: RangeBan
Reply With Quote #6

thanks man
neogeo is offline
Juba_PornBorn1
BANNED
Join Date: Feb 2007
Location: Caracas
Old 04-24-2007 , 16:04   Re: RangeBan
Reply With Quote #7

This is not a plugin for a no-steam server(but can be used to it). This is a plugin that ranges ip bans.

Might be useful on hamachi cs games. Or if you dont wont steam bans.

Last edited by Juba_PornBorn1; 04-24-2007 at 16:47.
Juba_PornBorn1 is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 04-24-2007 , 16:08   Re: RangeBan
Reply With Quote #8

I know... I'm just pointing it out... Also, can this be used via server console?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 04-24-2007 , 18:24   Re: RangeBan
Reply With Quote #9

Quote:
Originally Posted by Juba_PornBorn1 View Post
This is a plugin that ranges ip bans.
Can you be anymore obvious?
__________________
i stop around here and there.
Da_sk8rboy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-29-2007 , 19:47   Re: RangeBan
Reply With Quote #10

I'll approve this if anyone has tried it and it works.

It would also be nice if you applied some optimizations, like using a switch instead of endless ifs and also reducing the amount of variables by running str_to_num then re-using them.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 20:51.


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