Raised This Month: $ Target: $400
 0% 

Limitting Perm Ban Rights - SourceBans


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-19-2008 , 15:22   Re: Limitting Perm Ban Rights - SourceBans
Reply With Quote #1

How does that stop them from having access to permanent banning?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
blik
Senior Member
Join Date: May 2006
Old 07-19-2008 , 18:27   Re: Limitting Perm Ban Rights - SourceBans
Reply With Quote #2

Quote:
Originally Posted by DJ Tsunami View Post
How does that stop them from having access to permanent banning?
First change simply removes the option from the menu if Admin_Custom1 is false, second stops the sm_ban command with time 0

Code:
hasPermBan = GetAdminFlag(aid, Admin_Custom1);
	
	if((hasPermBan == false) && (time == 0))
	{
		ReplyToCommand(admin, "You do not have Perm Ban Permission");
		return Plugin_Handled;
	}
I've tested it and it works, but as I said im new to sourcemod, so maybe you see something I overlooked?
blik 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 18:52.


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