AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Feature request to sourcebans 1.5 (https://forums.alliedmods.net/showthread.php?t=208241)

ppalex 02-11-2013 08:24

Feature request to sourcebans 1.5
 
Could you add to sourcebans 1.5 native, which provides getting ImmunityLevel by AdminID (from database)?
Something like this:
Code:

/**
 * Get SourceBans admin immunity level from adminId
 *
 * @param  adminID                The adminID of the admin
 * @return value                The immunity level of the admin with adminID
 */
native SB_GetAdminImmunity(adminID);

It will be very usefull for third-party plugins. (for my SourceComms for example :D)

P.S. In the distant future (sourcebans 2.0) it may be like "native SB_GetAdminImmunity(adminID, serverID=currentServerID)" which returns AdminImmunity of AdminID on serverID (or current server if not specified) (If sourcebans 2.0 will provide different server rights (flags, immunity) for different servers)

ecca 02-11-2013 17:04

Re: Feature request to sourcebans 1.5
 
Since sourcebans just adds flags and immunity from their database into sourcemod you could use

Single admins:
PHP Code:

GetAdminImmunityLevel(AdminId:id); 

For groups if you use that:
PHP Code:

GetAdmGroupImmunityLevel(GroupId:gid); 

To get the admins immunity

ppalex 02-11-2013 17:26

Re: Feature request to sourcebans 1.5
 
Sometimes I need to get ImmunityLevel of admin, which currently not on server. I looked to sb_admins code and think, what plugin provides info only about admins that joined to server.

P.S. For my clarity understanding: Which immunity level is priority - Admin or Group?

Peace-Maker 02-12-2013 21:02

Re: Feature request to sourcebans 1.5
 
Quote:

Originally Posted by ppalex (Post 1892682)
P.S. For my clarity understanding: Which immunity level is priority - Admin or Group?

The higher one.

Horsedick 02-13-2013 16:10

Re: Feature request to sourcebans 1.5
 
Quote:

Originally Posted by Peace-Maker (Post 1893335)
The higher one.

speaking of immunity - I sent you info on PM peace a few months ago to look over cause of the immunity just doesn't work like its supposed to if you remember us talking about it.


All times are GMT -4. The time now is 06:06.

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