Quote:
Originally Posted by DJ Tsunami
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?