Raised This Month: $32 Target: $400
 8% 

Grant admin flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 05-22-2020 , 16:25   Grant admin flags
Reply With Quote #1

Currently making a plugin for my community that checks if a client is in our steam group, and if they are it's supposed to give them ADMFLAG_CUSTOM5.

Is this possible to do with a plugin, and not by manually editing the admins.cfg?
__________________
condolent is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-22-2020 , 17:11   Re: Grant admin flags
Reply With Quote #2

Yes.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 05-22-2020 , 17:34   Re: Grant admin flags
Reply With Quote #3

Quote:
Originally Posted by DJ Tsunami View Post
Yes.
Ok, how?
__________________
condolent is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-23-2020 , 14:07   Re: Grant admin flags
Reply With Quote #4

There are (at least) two existing plugins that exist for this, their source code is probably the best place to start:

https://forums.alliedmods.net/showpo...&postcount=192
https://forums.alliedmods.net/showthread.php?p=1375108
__________________
asherkin is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 05-23-2020 , 14:15   Re: Grant admin flags
Reply With Quote #5

Simple way to do it.

PHP Code:
SetUserFlagBits(ClientGetUserFlagBits(Client) | ADMFLAG_CUSTOM6

Last edited by Weetabix; 05-23-2020 at 14:15.
Weetabix 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 21:05.


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