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

No Nighttime


Verex
 Share

Recommended Posts

This tutorial will show you how to get rid of the nighttime feature.

NOTE:
You MUST have VB6 (Tutorial on how to get it - Removed)
You MUST know how to use VB6 just a little bit.

–---------------------------------------------------------------------------------------------------------

Step 1:
Open "Server.vbp" in VB6.

Step 2:
Now go to the Project Explorer. (Press Ctrl + R)

Step 3:
Expand the tab "Forms"

Step 4:
Right click on "frmServer" and then click "View Code"

Step 5:
Scroll down and find this code:
```
    If Hours > 20 Then
        If GameTime = TIME_DAY Then
            GameTime = TIME_NIGHT
            Call SendTimeToAll
        End If
    ElseIf Hours < 21 Then
        If Hours > 6 Then
            If GameTime = TIME_NIGHT Then
                GameTime = TIME_DAY
                Call SendTimeToAll
            End If
        End If
    ElseIf Hours < 7 Then
        If GameTime = TIME_DAY Then
            GameTime = TIME_NIGHT
            Call SendTimeToAll
        End If
    End If
```
Step 6:
Delete that code.

Then build and export the project so you can use it.

Now no more laggy nighttime! And you still get to use the time feature.

EDIT: Sorry I had to remove the link on the VB6.
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...