I want to ask you something about plugin which i'm making, maybe you will know what i have missed.
So, the plugin will be used for admin hierarchy, admin who have flag T is master admin, admin without flag T is help admin.
So the plugin is coded and works like that:
when a player is found in users.ini
1-) check if the player was set already as a master admin (for reload)
2-) if he was already set, but doesn't have flag t anymore, call RemoveMaster (will explain later)
3-) if he was not set, check if he has master priveleges.
4-) if he has, check if there are no other masters already online
5-) if there are no master, remove access from all players
and replace with bz, or z(if player was not an admin)6-) player is not a master admin, but a master admin is online
in this case, don't give the users.ini access, give bz
RemoveAdmin: checks if player was last master online
if yes, revert all help admins access to the right ones
And the problem is, because sometimes works right sometimes no, so i think that i have missed something.
Sometimes help admins have full permissions like master admins when master admins are online. And some help admins have full permissions and other don't have permissions, even the master admin is online, and sometimes works right.
Maybe you have some advice what i've missed?
Thanks for helping