Author Topic: Admin/Super Accesses  (Read 1089 times)

I have a quick question in regards to Admin/Super Accesses/Permissions...

Is there a way to disallow an Admin/Super to un-ban someone from my Banlist?

Or would this make it so they couldn't ban at all? I'd think you'd be able to limit the un-ban function to either host or my BL_id...


I'm not for coding, so any help would be appreciated. I'm gonna dig around the blockland files, but I don't recall anything editable as far as I can recall, so... Yeah.

Thanks,
- Dave

Quote from: MrPickle
function serverCmdUnBan(%client){
if(%client $= findLocalClient()){
Parent::ServerCmdUnBan(%client);
} else {
messageclient(%client,"\c6Sorry, Only the \c0Host can UnBan");
   }
}
Quote

Code: [Select]
package UnBanBlock
{
 function serverCmdUnBan(%client){
 if(%client $= findLocalClient()){
 Parent::ServerCmdUnBan(%client);
 } else {
 messageclient(%client,"\c6Sorry, Only the \c0Host can UnBan");
    }
 }
};
activatepackage(UnBanBlock);
Parent::blah only works if it is a package or the class has a parent. (GunImage has Parent::onFire, going to WeaponImage::onFire)

Worked like a charm! Thanks.