Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Really, 80%?
#27

Retribution Wrote:for the record all that coding stuff isn't nesesaraly part of sourceOP
By coding, do you mean the stuff that I do or the stuff admins have to type in console and such?


Also, the reason for the admin access levels is simple. It makes since in binary.
For example level 1 is represented as:
0000 0001
2 is
0000 0010
4 is
0000 0100
etc...

So if I want an admin to have those three levels, i just put the bits together and get 7 (4+2+1):
0000 0111
Then when SourceOP checks to see if an admin has access to level 2 commands, it just checks that second bit to see if it is one or zero.

I understand that this is confusing for some, so thats one of the reasons I allowed the server owners to set admin permissions on a per command basis as well. Admins can deny or allow specific commands.
Reply


Messages In This Thread
Really, 80%? - by OmegaZero_Alpha - Apr 24, 2007, 12:57 PM
Really, 80%? - by Naquadria - Apr 24, 2007, 03:06 PM
Really, 80%? - by Retribution - Apr 25, 2007, 09:06 AM
Really, 80%? - by OmegaZero_Alpha - Apr 25, 2007, 01:23 PM
Really, 80%? - by Naquadria - Apr 25, 2007, 02:05 PM
Really, 80%? - by OmegaZero_Alpha - Apr 26, 2007, 12:28 PM
Really, 80%? - by Naquadria - Apr 26, 2007, 12:40 PM
Really, 80%? - by OmegaZero_Alpha - Apr 26, 2007, 12:41 PM
Really, 80%? - by Naquadria - Apr 26, 2007, 01:27 PM
Really, 80%? - by OmegaZero_Alpha - Apr 29, 2007, 03:44 AM
Really, 80%? - by Retribution - Apr 30, 2007, 11:50 AM
Really, 80%? - by larz - Apr 30, 2007, 02:53 PM
Really, 80%? - by OmegaZero_Alpha - May 01, 2007, 03:35 AM
Really, 80%? - by larz - May 01, 2007, 07:39 AM
Really, 80%? - by Naquadria - May 01, 2007, 03:21 PM
Really, 80%? - by larz - May 01, 2007, 03:25 PM
Really, 80%? - by Retribution - May 02, 2007, 10:24 PM
Really, 80%? - by OmegaZero_Alpha - May 03, 2007, 01:42 AM
Really, 80%? - by Retribution - May 03, 2007, 04:05 PM
Really, 80%? - by OmegaZero_Alpha - May 07, 2007, 02:03 AM
Really, 80%? - by Drunken F00l - May 13, 2007, 06:39 PM
Really, 80%? - by Naquadria - May 13, 2007, 08:38 PM
Really, 80%? - by Retribution - May 13, 2007, 10:14 PM
Really, 80%? - by larz - May 14, 2007, 11:15 PM
Really, 80%? - by OmegaZero_Alpha - May 15, 2007, 12:36 PM
Really, 80%? - by larz - May 15, 2007, 03:12 PM
Really, 80%? - by Drunken F00l - May 15, 2007, 04:16 PM
Really, 80%? - by Retribution - May 16, 2007, 02:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)