Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Server Access Levels


creatorfromhell
 Share

Recommended Posts

Hello,
  I wanted to add membership to my game after it gets alot better. So I wanted to make an access level for it. So far I've added the access level for membership as 2 and moved the rest up (moderator/monitor-3, mapper-4, developer-5, creator-5). Alls I wanted to know is what else would I have to change so that members do not have the same rights as moderators/monitors.
Link to comment
Share on other sites

If you did it properly, then as long as members is below Admin_Monitor, they won't have access to anything because all of the access checks use those constants and rule out access from the bottom up.

But from what you posted, something's fishy. Your new constants should be as listed below, unless there's something else you've added under monitor.
```
' Admin constants
Public Const MEMBERS As Byte = 1
Public Const ADMIN_MONITOR As Byte = 2
Public Const ADMIN_MAPPER As Byte = 3
Public Const ADMIN_DEVELOPER As Byte = 4
Public Const ADMIN_CREATOR As Byte = 5
```Regular players who are not assigned access are 0 by default.
Link to comment
Share on other sites

I did it like this:

>! ' Admin constants
Public Const Player_MEMBER As Byte = 1
Public Const ADMIN_MODERATOR As Byte = 2  (Changed monitor to this did everything that said monitor in the source as well)
Public Const ADMIN_MAPPER As Byte = 3
Public Const ADMIN_DEVELOPER As Byte = 4
Public Const ADMIN_CREATOR As Byte = 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...