06-11-2007, 01:42 PM
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:
Now find Sub PlayerMove, at the top of that sub, add:
And below:
Add:
You could also add to the clearplayer sub and such. But don't save it in the account file xD.
PLEASE TEST IT WITH A SPEED HACK!
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
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = Timer
You could also add
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = 0
PLEASE TEST IT WITH A SPEED HACK!