Anti Vehicle Teleport
#1

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

An fucking Hacker does teleport hunderts of vehicles -_-
Reply
#2

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

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

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.

Reply
#5

not working...
Reply
#6

help pls
Reply
#7

Wait for help
Reply
#8

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.
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)