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

Script Request - Item (Grant Privileges)


Jimbodawg
 Share

Recommended Posts

If anyone could locate/create a script that allows for an item to grant players certain privileges such as becoming a moderator, then I'd be quite thankful.

Also, due to my low script knowledge, I'll need to know where to put it (Main.txt) and what I'll need to change to change the player privileges. (i.e 1, 2, 3, 4)
How will I know which # the scripted item is?

Thanks.. =)
Link to comment
Share on other sites

```
Case 1

'Alster's Rank Up Script

Dim Access

Access = getplayeraccess(index)

If Access = 5 Then
call playermsg(index, "You're the owner, you can't get any higher!", RED)
End If

If Access = 0 Then
call setplayeraccess(index, 1)
call playermsg(index, "You're now a mod!", RED)
End If

If Access = 1 Then
call setplayeraccess(index, 2)
call playermsg(index, "You're now a mapper!", RED)
End If

If Access = 2 Then
call setplayeraccess(index, 3)
call playermsg(index, "You're now a main developer!", RED)
End If

If Access = 3 Then
call setplayeraccess(index, 4)
call playermsg(index, "You're now a mapper!", RED)
End If

If Access = 4 Then
call setplayeraccess(index, 5)
call playermsg(index, "You're now the owner!", RED)
End If
```
Very easy, just wham this under```
Sub ScriptedItem(Index, Script)
```
Hope this works… it's untested...

EDIT: What it does.

This'll will level them up a privilege. So if they're just a player when they use the item they will become a mod. If they're a mod they'll become a dev and so forth. Just study it, it should be easy to figure out.
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...