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

[EO] Membership System


Richy420Rich
 Share

Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

(This is based off of [this tutorial (link)](http://www.touchofdeathforums.com/community/index.php?/topic/128919-party-only-maps/))

Server Side

In modPlayer find the

```
Sub PlayerWarp
```

underneath

```
' Save old map to send erase player data to

OldMap = GetPlayerMap(index)
```

Add

```
' Check to see if its a Member Map

If Map(mapnum).Moral = MAP_MORAL_MEMBER Then

' Check to make sure the player is a member. If not exit the sub so they dont change maps

If Player(index).IsMember = 0 Then

Call PlayerMsg(index, "This is a member map. You have to be a member to enter it.", Red)

Exit Sub

End If

End If
```

EDIT: The above has been fixed. It originally would only let non-members in.
Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...
Ok so it seems that you cant change there members whilst there not online. Meaning the player has to be online in order for the changes to stick.
Link to comment
Share on other sites

  • 2 months later...
Guys i have error

```

Private Sub SSTab1_Click(PreviousTab As Integer)
Dim strload As String
Dim i As Long
Dim TotalCount As Long

If frmServer.SSTab1.Tab = 3 Then
    frmServer.lstaccounts.Clear
    strload = Dir(App.path & "\data\accounts\" & "*.bin")
    i = 1
    Do While strload > vbNullString
        frmServer.lstaccounts.AddItem Mid(strload, 1, Len(strload) - 4)
        strload = Dir
        i = i + 1
    Loop

    TotalCount = (i - 1)

    With frmServer
    .TextName.Text = vbNullString
    .TextPass.Text = vbNullString
    .TextCount.Text = Format(Date, "m/d/yyyy")
    .ChkMember.Value = 0
    .lblAcctCount.Caption = "" & TotalCount
    End With
End If
End Sub
```
on .Clear and .AddItem

Metod or data member not found

Help please!
Link to comment
Share on other sites

  • 1 year later...

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...