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

Solved [ H3LP ] Set user Flags Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-27-2017 , 04:06   [ H3LP ] Set user Flags Issue
Reply With Quote #1

Hello. So I am trying to change the flags of a user. What I noticed is that the command can only be applied once on a user. For example, when a user conencts on my server and he's listed on admins.ini, the set user flags command is executed, but when I remvoe his admin from console and do set_user_flags(playerid, -1) the flags are not changed, they remain the same. Anyone knows how to make it work?

Last edited by DarthMan; 06-27-2017 at 09:46. Reason: Solved
DarthMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-27-2017 , 05:28   Re: [ H3LP ] Set user Flags Issue
Reply With Quote #2

Do you mean that flags are not removed from users.ini?
__________________
HamletEagle is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-27-2017 , 05:34   Re: [ H3LP ] Set user Flags Issue
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Do you mean that flags are not removed from users.ini?
No, I mean admins.ini, because I made my own admin plug-in, and it works fine for setting the flags, but they won't be removed when i do max_removeadmin PlayerName it removes the steamid from the ini file, but the flags are not changed to -1.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-27-2017 , 09:46   Re: [ H3LP ] Set user Flags Issue
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
Do you mean that flags are not removed from users.ini?
Solved my bad, just had to use remove_user_flags but forgot about that command that it exists
DarthMan 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 19:02.


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