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

Recompiling plugin to change admin flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 02-24-2015 , 00:17   Recompiling plugin to change admin flag
Reply With Quote #1

Hey guys,
Sorry if this is dumb but I want to make sure I am doing it right. I am trying to recompile a plugin which has a hard set admin flag of B, but it uses this method:

if(GetAdminFlag(playerAdmin, Admin_Generic, Access_Effective)){

I want to assign the T flag which is custom 6. Would this work?

if(GetAdminFlag(playerAdmin, Admin_Custom6, Access_Effective)){

Or what is the best way? Any documentatio on this?
__________________
Creampuffyness is offline
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 02-24-2015 , 00:24   Re: Recompiling plugin to change admin flag
Reply With Quote #2

ADMFLAG_CUSTOM6
https://sm.alliedmods.net/doxygen/globals_defs.html

CheckCommandAccess is another way:
https://forums.alliedmods.net/showpost.php?p=2263344

https://forums.alliedmods.net/showpost.php?p=1928087
https://forums.alliedmods.net/showpo...7&postcount=10
__________________

Last edited by versatile_bfg; 02-24-2015 at 00:27.
versatile_bfg is offline
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 02-24-2015 , 00:29   Re: Recompiling plugin to change admin flag
Reply With Quote #3

Thank you very much versatile_bfg. I'll be sure to bookmark for future reference.
__________________
Creampuffyness 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 17:16.


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