SA-MP Forums Archive
[Include] [INC] AutoUnloader (Vehicles) - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] AutoUnloader (Vehicles) (/showthread.php?tid=81822)



[INC] AutoUnloader (Vehicles) - Weirdosport - 14.06.2009

AutoUnloader by Thomas_Conroy

Description:

This include allows you to quickly unload vehicles from your scripts. To use its functions, simply add "#include <AutoUnload>" to the top of your script having placed the .inc file in your includes folder.

So far this script only removes vehicles, but I may make one for objects/pickups too. If you can think of any functions you feel should be included, tell me!

Functions:

CreateCar - In place of CreateVehicle
DestroyCar - In place of DestroyVehicle
UnloadCars - Used to remove all vehicles created by that filterscript.

Download:



Version 1:
Test FS:

Pastebin
Pastebin






Usage:

Feel free to modify the .inc as you wish. Please leave the credit in place, as I spent several minutes :P creating this script. More information on its functions can be found in the .inc.


Thanks:

Thanks to those who designed Sa-mp and those who contribute with their knowledge on the forums.

Thank you, Thomas_Conroy
(For those that do not know me, Thomas_Conroy is my sa-mp name.)


Re: [INC] AutoUnloader (Vehicles) - herojith - 14.06.2009

Nice !


Re: [INC] AutoUnloader (Vehicles) - NeRoSiS - 14.06.2009

Looks sexy.

Maybe a LoadCar to relod the cars that were unloaded?


Re: [INC] AutoUnloader (Vehicles) - Weirdosport - 14.06.2009

Quote:
Originally Posted by NeRoSiS
Looks sexy.

Maybe a LoadCar to relod the cars that were unloaded?
I'ma think about that one..

Would it load the cars that that filterscript loaded previously?


Re: [INC] AutoUnloader (Vehicles) - Burridge - 14.06.2009

Ohhh, lala, very nice work there.


Re: [INC] AutoUnloader (Vehicles) - NeRoSiS - 14.06.2009

Yeah precisely that.