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



Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

Hey,
Does anyone know how I can create an anti vehicle teleport script ?

An fucking Hacker does teleport hunderts of vehicles -_-


Re: Anti Vehicle Teleport - newbienoob - 06.05.2013

https://sampforum.blast.hk/showthread.php?tid=272182


AW: Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

Yes, but to do that he must be in the car but he only teleports the vehicles but dont go in it ?


Re: Anti Vehicle Teleport - newbienoob - 06.05.2013

The script uses OnUnoccupiedVehicleUpdate
Quote:

This callback is called when a player updates the position of a vehicle they're not driving. This can happen outside of the vehicle or when the player is a passenger of a vehicle that has no driver.




AW: Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

not working...


AW: Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

help pls


AW: Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

Wait for help


Re: Anti Vehicle Teleport - RajatPawar - 06.05.2013

You can get a player's position, the vehicle he is in, then get his velocity, calculate the overall velocity, then within 5 seconds, get both of the player and vehicle's position, calculate the distance between them, divide it by the velocity and if the result is way over 5 seconds, ban him.


AW: Anti Vehicle Teleport - Banane mit Gelb - 06.05.2013

You mean like this ?
https://sampforum.blast.hk/showthread.php?tid=272182
Dont wokr :/


Re: AW: Anti Vehicle Teleport - RajatPawar - 06.05.2013

Quote:
Originally Posted by Banane mit Gelb
Посмотреть сообщение
No. That only tallies the position which would fail if someone, say fell over a cliff. Here you are actually calculating the velocity and then tallying it.
Using the formula,
pawn Код:
time = distance/velocity