SA-MP Forums Archive
Trains and DestroyVehicle() - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Trains and DestroyVehicle() (/showthread.php?tid=507367)



Trains and DestroyVehicle() - kurta999 - 17.04.2014

If you spawn a train, and destroy it with DestroyVehicle(), then the 3 trailer will stay in vehicle pool (but from the game removed) and with this you can very easy reach 2000 vehicle limit.

Who want to say AddStaticVehicle() is not destroyable with DestroyVehicle(), PLEASE DO NOT WRITE HERE.
I hope that there will be fix for this and i do not need to fix it myself..


Re: Trains and DestroyVehicle() - JernejL - 17.04.2014

They have special additional vehicleids from train vehicle id returned (+1, +2, +3)..

Try deleting those ids if it's a train - i can't say if this will work tho, so.. i guess try it.


Re: Trains and DestroyVehicle() - kurta999 - 17.04.2014

I'll try that thanks.


Re: Trains and DestroyVehicle() - JernejL - 17.04.2014

if it doesn't work - try deleting them before the train too..


Re: Trains and DestroyVehicle() - kurta999 - 17.04.2014

Hm...

This works, thank you!
This should be fixed inside the samp server.