30.04.2007, 19:03
Oh well, I found some old functions I made which I cleaned up a bit. It's nothing special, but I thought I would release it anyway.
If you use this, you can get modelid out of vehicleid which can be useful in some cases (Disabling fuelscript for some vehicles, etc.).
I know that those functions are unnecessary, but whatever.![cheesy](images/smilies/lol.gif)
It is all in a include-file (.inc), the file can be downloaded here: http://critical.mine.nu/samp/c_vehicleinfo.inc
Edit: Made some changes..
If you use this, you can get modelid out of vehicleid which can be useful in some cases (Disabling fuelscript for some vehicles, etc.).
I know that those functions are unnecessary, but whatever.
![cheesy](images/smilies/lol.gif)
Code:
[ criticaL's Vehicle Info ] - Version : 0.1 - Author : criticaL aka Robban - Date : 30 April 2007 - Function list : cAddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2) cAddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay) cGetVehicleModelID(vehicleid, &modelid) cGetVehicleSpawnPos(vehicleid, &Float:spawn_x, &Float:spawn_y, &Float:spawn_z, &Float:z_angle) - Description : With those simple functions you can get modelid out of a vehicleid which is not "possible" in the current version of SA-MP, and you can get spawn position of the vehicle aswell. It is very simple to use, just put a "c" infront of the regular AddStaticVehicle and AddStaticVehicleEx. NOTE: You will only be able to get information out of a vehicleid if you have used my functions, not the regular AddStaticVehicle and AddStaticVehicleEx! And if you use the regular functions, you will fuck the vehicleid order up, so only use cAddStaticVehicle and cAddStaticvehicleEx. --------------------- Report any bugs to me, I didn't have much time to test it. ;) - Remember : You haven't made this shit, so don't take any credits for it!
Edit: Made some changes..