Raised This Month: $51 Target: $400
 12% 

Solved Permban restrict for regular admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PrefixV1
Junior Member
Join Date: Aug 2016
Old 08-24-2016 , 10:07   Permban restrict for regular admins
Reply With Quote #1

Hey!

I want to know how I can restrict admins who do not have the z flag (root access) to permban someone.

Why I need it:
-In my clan, people are able to apply for admin of our 2/3 CSS servers, in which is landing a lot of trust on them.
-I want people to ban mass-freekillers (not perma) and request from our higherups (clan ranks) to extend the ban if it is justified with evidence, in which I need to restrict Permban.


Can someone help me with adding this extension or whatever it is?

Last edited by PrefixV1; 08-25-2016 at 15:44.
PrefixV1 is offline
Kurtan
AlliedModders Donor
Join Date: Feb 2016
Location: Sweden
Old 08-25-2016 , 04:41   Re: Permban restrict for regular admins
Reply With Quote #2

I use adminmenu_custom for that. The only downside with this is if you use Sourcebans, it will log it as Console, instead of the actual player. That's because the Mod doesn't have access to sm_ban, these bans can only be dealt through the admin menu as well.
-
Code:
"Commands"
{	

	"PlayerCommands"
   	 {
     	  	 "Ban Player"
      	 	 {
           		 "admin"          "sm_help"
           		 "cmd"            "sm_ban #1 #2 @3"
            		 "execute"        "server"
           			 "1"
           			 {
               			"title"           "Ban player"
                		"type"            "player"
            			 }
            			
				"2"
            			{
                			"title"     "Ban time"
                			"type"      "list"
               		 		"1"         "5"
                			"1."        "5 Minutes"
                			"2"         "10"
                			"2."        "10 Minutes"
                			"3"         "30"
                			"3."        "30 Minutes"
                			"4"         "60"
                			"4."        "1 Hour"
                			"5"         "120"
                			"5."        "2 Hours"
            			}
            
				"3"
            			{
                			"title"         "Reason"
                			"type"          "list"
					"1"		"Scripting"
					"2"		"Rule Breaking"
					"3"		"General Exploit of Game/Map/Server"
					"4"		"Spamming Mic/Chat"
					"5"		"Inappropriate Language"
					"6"		"Inappropriate Name"
					"7"		"Ignoring Admins"
            			}
        		}
   	 }

}
__________________
Kurtan is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-25-2016 , 09:11   Re: Permban restrict for regular admins
Reply With Quote #3

Admins who lack access to sm_unban can not permaban.
__________________
asherkin is offline
Kurtan
AlliedModders Donor
Join Date: Feb 2016
Location: Sweden
Old 08-25-2016 , 09:54   Re: Permban restrict for regular admins
Reply With Quote #4

Oh I didn't know that, what is the time limit of a ban for someone that lacks access to sm_unban?
__________________
Kurtan is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 08-25-2016 , 15:38   Re: Permban restrict for regular admins
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?p=1693332
checkster is offline
PrefixV1
Junior Member
Join Date: Aug 2016
Old 08-25-2016 , 15:44   Re: Permban restrict for regular admins
Reply With Quote #6

Quote:
Originally Posted by checkster View Post
To be honest that's the opposite of what I was looking for,

I just wanted something that will just restrict permban for people without using any cvars commands or stuff like that,

I got the answer I was looking for about the sm_unban when people who don't have access to it can't permban.

Thank you anyway!
PrefixV1 is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 08-25-2016 , 15:57   Re: Permban restrict for regular admins
Reply With Quote #7

Np, I just posted it cause I know Id want admins to be able to unban, just in case they ban the wrong guy.
checkster is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 11-04-2016 , 19:45   Re: Permban restrict for regular admins
Reply With Quote #8

Hi there, I checked everything and my admins don't have the sm_unban flag, though they can permaban...
Has it changed?
Thx
__________________

*** *** ***
-My plugins-
St00ne 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 15:11.


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