02.01.2014, 10:23
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/
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/