AMX_BAN replacement. for temp ban only
1 Attachment(s)
Code:
/* #define NORMAL_BAN ADMIN_BAN #define LOW_BAN ADMIN_LEVEL_E So modify the LOW_BAN level to whatever admin level you like. |
Please Help
I'm downloaded and installed the plugin but can't get it associate with the letter 'e' in the user.ini. I put it before the admincmd.amxx in the plugin.ini as well. And I know the plugin is running.
Any thoughts? Thanks, Coffin Dancer |
nice looks useful
|
Re: Please Help
Quote:
Code:
#define ADMIN_ALL 0 /* everyone */ |
I've given these abilities in admin "cefgijmnopqrstu"
but they don't have any of the temp bans in amx_help or the adminmodmenu. Any more thoughts? I know the plugin is running but they don't have that ability. Thanks, Coffin Dancer |
Quote:
|
Okay, what I meant by temp bans in the amx_help. When looking for the command in the amx_help in console, nothing is there.
I have it above the admincmd.amxx line. I have the admin command "d" and can ban but the people who only have "q" can not. And I didn't follow a thing about the 1440 and such. I've never fully understood this program or how to make it run exactly the way I wanted/need it to. I really appreciate your help. Thanks, Coffin Dancer |
If a person with the flag q but not d attempts the command amx_ban whoever 99999 what happens? At the very least the user should receive a message saying, "You have insufficient access to use this command." in the console. If you're not even getting that then there is something wrong. If that's the case try changing the line:
register_concmd("amx_ban","cmdBan",ADMIN_ADMI N,"<name or #userid> <minutes> [reason]") to register_concmd("amx_ban","cmdBan",ADMIN_ALL, "<name or #userid> <minutes> [reason]") Which will let everyone have access to it but because I have it checking flag by flag, if the user doesn't have either d or q then you will get that message. |
Thank you. Apparently, they did have the command but it doesn't show up in the list of amx commands when doing amx_help. They can temp ban now.
Will those admins be able to do amx_ban 0 for a perma ban? And how long is amx_ban 1440? Those are just secondary questions. Thank you for your help! |
If an admin with that level attempts to set a ban for 0 or more than 1440 the plugin intercepts that and replaces it with 1440 minutes. 1440 minutes is 24 hours. So the admin could set a max of 24 hours ban, however they can set any normal ban lower than that. So what I mean is they can set a ban from 1-1440 minutes.
|
All times are GMT -4. The time now is 16:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.