Velocity and position when teleporting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Velocity and position when teleporting (
/showthread.php?tid=623551)
Velocity and position when teleporting -
MerryDeer - 02.12.2016
Hi,
I'am making anti cheat. What is most happing when player is teleporting? position of course change, speed change, or velocity, i mean in very big values or something, even for short time, because, for airbrks or smth, i don't know need to check or no
Re: Velocity and position when teleporting -
Abagail - 02.12.2016
Emmets airbreak include detects airbreaking pretty well both on foot and in a vehicle. You can check it out
here.
Re: Velocity and position when teleporting -
Amads - 02.12.2016
On my server I have a timer that constantly checks X, Y, Z positions, and if there is a big difference between two consecutive checks then you've just detected a cheater. It's good to check if a player is inside a vehicle or not, his speed and is he perhaps paused (that can be an issue if he's a passanger in a car and somebody else is driving)
// another thing, if there are teleport commands/whatever in your gamemode it is good to exclude potential false warnings/bans when a player uses a teleport
Re: Velocity and position when teleporting -
MerryDeer - 03.12.2016
is he perhaps paused
Do i need really check when paused?