[FilterScript] Anti unoccupied vehicle teleport
#1

I browsed the forums and I couldn't find an up-to-date anti unoccupied vehicle teleport, so I just created one.


As you might know some people try to crash the clients by teleporting all unoccupied vehicles to one location.

I was inspired by this FilterScript: https://sampforum.blast.hk/showthread.php?tid=272182
Although I added more checks and as JernejL suggested in that thread.

The main problem with the mentioned FS(beyond accuracy) were trailers. As soon as a truck looses a trailer it is back to it "real" position. Now as long as the pulling vehicle is valid and is near the trailer the trailer will remain.

Here is pastebin: http://pastebin.com/0YNWU1H8
And solidfiles(containing .amx aswell): http://www.solidfiles.com/d/31a4fc9c42/
Reply
#2

Wow, this is inspirational, this is a major annoying thing in sa-mp and I think you've just started the trend to get it fixed. I will let people look into this and we'll see if we can make it fully anti-mass-car-spawn.

Thanks!

Some tips that I didn't see you track:

OnPlayerUpdate (player updating the vehicle?)
What if the player was in the vehicle?
Vehicle angle?
SetVehicleAngularVelocity?
SetVehicleVelocity?

I'm sure theres more
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)