Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KeyDown - Admin Panel
#13
Errrr, try this:

Quote:Only server side
open modServerTCP, find:
Code:
Code:
' :: Ban destroy packet ::


Replace:
Code:
Code:
Call Kill(App.Path & "\banlist.txt")

with:
Code:
Code:
Call ZeroBanList


Now, on modDatabase add anywhere this sub:
Code:

Code:
Sub ZeroBanList()
Dim FileName As String
Dim f As Long, i As Long

FileName = App.Path & "\banlist.txt"
Call Kill(FileName)
' Make sure the file exists
If Not FileExist("banlist.txt") Then
f = FreeFile
Open FileName For Output As #f
Close #f
End If

f = FreeFile
Open FileName For Append As #f
Print #f, "0.0.0.,abc"
Close #f
End Sub


Thats it, =D

TUT By Dragoons Master
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)