SA-MP Forums Archive
Teleport - 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: Teleport (/showthread.php?tid=638144)



Teleport - StrikerZ - 27.07.2017

Well, I'm making my own anti cheat, I'm done with everything, yes I've already read all the tips by cessil and I've successfully made them. But the problem is, I'm stuck with teleport hacking, I've no idea what should I make to detect them. Any ideas?


Re: Teleport - Xeon™ - 27.07.2017

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Well, I'm making my own anti cheat, I'm done with everything, yes I've already read all the tips by cessil and I've successfully made them. But the problem is, I'm stuck with teleport hacking, I've no idea what should I make to detect them. Any ideas?
make a global timer to save their positions, and add a variable that containing all of the teleports commands.
then the same timer check if they teleported too far than 0.500 meters without any teleport command from last position they known in (and without moving)


Re: Teleport - StrikerZ - 27.07.2017

Thanks, I made it, nice idea.


Re: Teleport - StrikerZ - 29.07.2017

Well, nevermind, Can I have some more ideas to make it accurate?


Re: Teleport - coool - 29.07.2017

I heared that in teleport hack you are in a specific animation.


Re: Teleport - StrikerZ - 29.07.2017

Quote:
Originally Posted by coool
Посмотреть сообщение
I heared that in teleport hack you are in a specific animation.
I don't think so, a player just sets his position somewhere else.


Re: Teleport - Shinja - 30.07.2017

Quote:
Originally Posted by XeonMaster
Посмотреть сообщение
make a global timer to save their positions, and add a variable that containing all of the teleports commands.
then the same timer check if they teleported too far than 0.500 meters without any teleport command from last position they known in (and without moving)
This must be accurate enough, isnt it?


Re: Teleport - StrikerZ - 30.07.2017

Quote:
Originally Posted by Shinja
Посмотреть сообщение
This must be accurate enough, isnt it?
What about vehicles? This slows down for vehicles.


Re: Teleport - Shinja - 30.07.2017

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
What about vehicles? This slows down for vehicles.
Make 2 cases, if player is onfoot, check if the distance he moved is more than 5 meters for example (maybe too big but will avoid wrong detects)
and if player is onvehicle, increase to check distance to 50 meters (maybe enough)


Re: Teleport - StrikerZ - 30.07.2017

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Make 2 cases, if player is onfoot, check if the distance he moved is more than 5 meters for example (maybe too big but will avoid wrong detects)
and if player is onvehicle, increase to check distance to 50 meters (maybe enough)
I'm gonna give it a try, and tell if it works.