[FilterScript] Anti unoccupied 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti unoccupied vehicle teleport (
/showthread.php?tid=484939)
Anti unoccupied vehicle teleport -
dusk - 02.01.2014
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/
Re: Anti unoccupied vehicle teleport -
Kar - 08.01.2014
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