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

Feature request to sourcebans 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 02-11-2013 , 08:24   Feature request to sourcebans 1.5
Reply With Quote #1

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 )

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)

Last edited by ppalex; 02-11-2013 at 08:36.
ppalex is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 02-11-2013 , 17:04   Re: Feature request to sourcebans 1.5
Reply With Quote #2

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
__________________

Last edited by ecca; 02-11-2013 at 17:05.
ecca is offline
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 02-11-2013 , 17:26   Re: Feature request to sourcebans 1.5
Reply With Quote #3

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?
ppalex is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-12-2013 , 21:02   Re: Feature request to sourcebans 1.5
Reply With Quote #4

Quote:
Originally Posted by ppalex View Post
P.S. For my clarity understanding: Which immunity level is priority - Admin or Group?
The higher one.
__________________
Peace-Maker is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-13-2013 , 16:10   Re: Feature request to sourcebans 1.5
Reply With Quote #5

Quote:
Originally Posted by Peace-Maker View Post
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.
Horsedick is offline
Reply


Thread Tools
Display Modes

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 02:19.


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