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

GetAdminImmunityLevel for all?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 10-23-2008 , 20:49   GetAdminImmunityLevel for all?
Reply With Quote #1

Question.

Does GetAdminImmunityLevel return an admin's immunity level only if they have one specified directly, or will it return the group immunity if they are in one?

IE, I dont have individual immunity, but the group i am in does. Will it return my group's immunity, or nothing?


Reason i ask is I am trying to add admin immunity to the punishments in the Spray Tracer plugin. If I can just use this one function as opposed to this + GetAdmGroupImmunityLevel, it will make it a lot easier for me.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
BAILOPAN
Join Date: Jan 2004
Old 10-24-2008 , 01:06   Re: GetAdminImmunityLevel for all?
Reply With Quote #2

It will return the admin's effective immunity, not the immunity declared in the admin source. So if the file says "5" and they inherit from a group which has "10," it will return 10.

If you are trying to decide whether one admin is immune from another player, you should use CanAdminTarget().
__________________
egg
BAILOPAN is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 10-24-2008 , 06:57   Re: GetAdminImmunityLevel for all?
Reply With Quote #3

...That works better.

Thanks Bail =)
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
Reply



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 12:35.


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