[Include] dth_vehcat.inc - Categorized 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] dth_vehcat.inc - Categorized vehicles (
/showthread.php?tid=580712)
dth_vehcat.inc - Categorized vehicles -
Dutheil - 07.07.2015
dth_vehcat.inc - Categorized vehicles
With this include which is easy to use, you have access to about ten functions to help you know using the model of the vehicle in his category.
Contents : Informations :
Functions return a Boolean value, so true/false (0/1).
PHP код:
native IsModelAirplane(const modelid);
native IsModelHelicopter(const modelid);
native IsModelScooter(const modelid);
native IsModelBicycle(const modelid);
native IsModelMoto(const modelid);
native IsModelQuad(const modelid);
native IsModelTwoWheels(const modelid);
native IsModelConvertible(const modelid);
native IsModelSport(const modelid);
native IsModelLowrider(const modelid);
native IsModelPolice(const modelid);
native IsModelMilitary(const modelid);
native IsModelRescue(const modelid);
native IsModelBoat(const modelid);
native IsModelTrailer(const modelid);
native IsModelTruck(const modelid);
native IsModel4x4(const modelid);
native IsModelRC(const modelid);
native HasModelValidHood(const modelid);
native HasModelValidBoot(const modelid);
HasModelValidHood/Boot are two functions which allow you to know if through SetVehicleParamsEx hood or boot/trunk opens physically.
If you have to add categories to this include, please manifest it in this topic.
Download :
Re: dth_vehcat.inc - Categorized vehicles -
Kyle - 07.07.2015
Been released several times before.
- Nothing new in the code.
Re : dth_vehcat.inc - Categorized vehicles -
Dutheil - 07.07.2015
I did this include for a guy, because the includes that I found, didn't optimise and complete.
Re: dth_vehcat.inc - Categorized vehicles -
Stanford - 07.07.2015
was wondering if you can add functions like IsModelGotTrunk(const modelid) - so we can check if the car really got a trunk to store stuff in roleplay servers!
Re : dth_vehcat.inc - Categorized vehicles -
Dutheil - 07.07.2015
I don't see what you mean.
So I'm working on two functions : "HasModelValidHood" and "HasModelValidBoot" (Boot/Trunk), because in SAMP every vehicles can't open/close a hood or boot, well with this functions you will be able to know it.
Re : dth_vehcat.inc - Categorized vehicles -
Dutheil - 07.07.2015
Two new functions.
PHP код:
native HasModelValidHood(const modelid);
native HasModelValidBoot(const modelid);
Quote:
Originally Posted by The god Dutheil
HasModelValidHood/Boot are two functions which allow you to know if through SetVehicleParamsEx hood or boot/trunk opens physically.
|