View Single Post
Plugin Info:     Modification:          Category:          Approver:   EKS (166)
jsauce
Senior Member
Join Date: Aug 2004
Location: Fitchburg, MA USA
Old 08-07-2005 , 16:55   AMX_BAN replacement. for temp ban only
Reply With Quote #1

Code:
/*
*
*  AMXX BAN Replacement v 1.0
*
*  The ban code itself was created by the AMXX Dev Team. This is just used as a replacement
*  for the normal ban, so an admin can impose a limit on bans from certain users.
*  I made the modification at the request of an admin friend who's server admins
*  tend to make bans permanent without thinking about it first. This will prevent that from
*  happening, by restricting the max length to whatever the admin sets amx_ban_temp cvar to. 	
*
*  This should be placed above your admincmd.amxx in your plugins.ini file.
*  You can change the access level for the temp ban, by modifying the define low_ban line.
*  It's currently set to ADMIN_LEVEL_E
*
*  A user who has both NORMAL_BAN and LOW_BAN will have it default to NORMAL_BAN which means they
*  can ban a user to any amount of time. A user with access only to LOW_BAN cannot.
*
*
*  The amx_ban_temp cvar is set to 1440 or 24 hours by default.
*
*/
Again there are two defined here:

#define NORMAL_BAN ADMIN_BAN
#define LOW_BAN ADMIN_LEVEL_E

So modify the LOW_BAN level to whatever admin level you like.
Attached Files
File Type: sma Get Plugin or Get Source (amx_ban2.sma - 3374 views - 4.3 KB)
__________________
"Those people who think they know everything are a great annoyance to those of us who do." -- Isaac Asimov

The Saucy Blog
jsauce is offline
Send a message via ICQ to jsauce Send a message via AIM to jsauce Send a message via MSN to jsauce