Raised This Month: $ Target: $400
 0% 

Limiting the Ban Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kasikadam
Member
Join Date: Jun 2016
Old 10-01-2017 , 02:53   Limiting the Ban Time
Reply With Quote #1

I want to limit the ban time of my admins. Like the max ban is 60 minutes. I tried with editing some word filter scripts but i didnt work.
kasikadam is offline
TheEdgeClan.Eu
Member
Join Date: Jun 2016
Old 10-01-2017 , 02:54   Re: Limiting the Ban Time
Reply With Quote #2

do you use sourcebans?
no one knows what you use to ban so it would help to say what you use to ban players
__________________

Last edited by TheEdgeClan.Eu; 10-01-2017 at 02:59.
TheEdgeClan.Eu is offline
kasikadam
Member
Join Date: Jun 2016
Old 10-01-2017 , 03:22   Re: Limiting the Ban Time
Reply With Quote #3

Quote:
Originally Posted by TheEdgeClan.Eu View Post
do you use sourcebans?
no one knows what you use to ban so it would help to say what you use to ban players
no just sourcemod only nothing extra
kasikadam is offline
htcarnage
Senior Member
Join Date: Oct 2009
Old 10-01-2017 , 12:09   Re: Limiting the Ban Time
Reply With Quote #4

You can add a check for time in scripting/basebans/bans.sp for if the length of time is greater than 60 then you can stop the ban.
__________________
htcarnage is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-01-2017 , 16:11   Re: Limiting the Ban Time
Reply With Quote #5

There are OnBanIdentity and OnBanClient, which follow SM natives BanClient, BanIdentity.
Whith callbacks you can block ban but kick still occur.
Also those callbacks not get called on SM non-base ban plugins, if "command string" have left empty in those function...

There are also srcds commands to add bans.


So editing SM basebans plugin, you can solve most your problem... depends how much you give admin access to them.

I would suggest to give ban access only trusted people.
And give kick access to strangers
__________________
Do not Private Message @me
Bacardi is offline
kasikadam
Member
Join Date: Jun 2016
Old 10-01-2017 , 23:45   Re: Limiting the Ban Time
Reply With Quote #6

Can I use / make simple word filter for chat and block “0” and “-1” so no one can use !ban someone -1
kasikadam 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 07:32.


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