View Single Post
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