AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [ H3LP ] Set user Flags Issue (https://forums.alliedmods.net/showthread.php?t=298939)

DarthMan 06-27-2017 04:06

[ H3LP ] Set user Flags Issue
 
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?

HamletEagle 06-27-2017 05:28

Re: [ H3LP ] Set user Flags Issue
 
Do you mean that flags are not removed from users.ini?

DarthMan 06-27-2017 05:34

Re: [ H3LP ] Set user Flags Issue
 
Quote:

Originally Posted by HamletEagle (Post 2531981)
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 06-27-2017 09:46

Re: [ H3LP ] Set user Flags Issue
 
Quote:

Originally Posted by HamletEagle (Post 2531981)
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


All times are GMT -4. The time now is 23:00.

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