Raised This Month: $ Target: $400
 0% 

GetAdminFlags question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MaltSNS
SourceMod Donor
Join Date: Nov 2012
Old 02-17-2015 , 13:22   GetAdminFlags question
Reply With Quote #1

I'm trying to figure out how to use GetAdminFlags to end up with a string list of admin flags. For example, something similar to "abcdz" or something. I have a vague understanding of how to work with some admin related functions, but I'm not really understanding how to manipulate the bitstring(?) output of GetAdminFlags to achieve the result I want. Thanks.
MaltSNS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-17-2015 , 14:06   Re: GetAdminFlags question
Reply With Quote #2

A better question is what you plan on doing with this?

If you want to check if an admin has a certain flag, CheckCommandAccess is a much better way to do it. It takes into account user permissions, group permissions, and command overrides.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 15:45.


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