Raised This Month: $ Target: $400
 0% 

Little help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Denmla
Member
Join Date: Jul 2007
Old 05-21-2009 , 22:06   Little help
Reply With Quote #1

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
Denmla is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-22-2009 , 01:34   Re: Little help
Reply With Quote #2

Have you looked at this?
__________________
fysiks is offline
Denmla
Member
Join Date: Jul 2007
Old 05-22-2009 , 07:09   Re: Little help
Reply With Quote #3

Yes, but this plugin don't work correctly, and it's complicated..i want it simple like this with flag and without flag..
Denmla 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 00:33.


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