Limit ban time with admin levels
Can anyone give me a example?
ADMIN_LEVEL_A can ban permanently ADMIN_LEVEL_B can ban xxx mins |
Re: Limit ban time with admin levels
ADMIN_LEVEL_B admins cannot ban permanantly
PHP Code:
Only ADMIN_LEVEL_A admins can ban permanantly. PHP Code:
|
Re: Limit ban time with admin levels
I want to edit on original ban amxx.
If the admin doesn`t have ADMIN_LEVEL_A and he input amx_ban player 0, will show him a message that show him has been limit max ban time. |
Re: Limit ban time with admin levels
Use this then:
PHP Code:
|
Re: Limit ban time with admin levels
How about the level b?
Change ban_time == 0 to => 0 && <= X? |
Re: Limit ban time with admin levels
Quote:
Also, what do you want to happen when an admin without level A but with level B tries to do a permanent ban? Or tell me what you mean by "level B can ban xxx min". |
Re: Limit ban time with admin levels
For example:
"loopback" "" "dm" "de" < d is can use the ban command, e is level a. If the admin has "d", limit the maximum time that he could ban. I am going to use level a to c. If the admin without level a and with b but he is trying to ban permanently, show him that what is the maximum time that he can ban |
Re: Limit ban time with admin levels
The "de" refers to this:
Code:
; Account flags:And the flag for ADMIN_LEVEL_A is "m" and for ADMIN_LEVEL_B is "n", see amxconst.inc and users.ini for more information. EDIT: Here ya go: PHP Code:
|
Re: Limit ban time with admin levels
where should i add it?
|
Re: Limit ban time with admin levels
Quote:
Basically, you would put it right after you know the ban time. That way nothing else happens until if goes through this check. |
| All times are GMT -4. The time now is 10:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.