Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed Hack Time Check
#1
Introduction
This topic is a little linked to viewtopic.php?f=70&t=2984.
Now remember, that the 0.1 value is very important. Do not change that, unless you know what your doing. In case you get the alertmsg when using the value 0.1, set it at 0.2, if you still get it, set it at 0.3. Although I doubt you will need to set it that high. It mainly depends on the fps lock, the higher value you have there, the higher you will need here. So you might need to test it to get it working.

Server Side
Add this in Type PlayerRec:
Code:
SpeedHackCheck As Double

Now find Sub PlayerMove, at the top of that sub, add:
Code:
If Timer < Player(index).Char(Player(index).CharNum).SpeedHackCheck + 0.1 Then
    Call AlertMsg(index, "You are using a Speedhack. Go to the forum for more information.")
    Exit Sub
End If

And below:
Code:
If Player(index).GettingMap = NO Then
Add:
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = Timer

You could also add
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = 0
to the clearplayer sub and such. But don't save it in the account file xD.

PLEASE TEST IT WITH A SPEED HACK!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)