[Include] [INC] criticaL's Vehicle Info
#1

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.

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!
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..
Reply


Messages In This Thread
[INC] criticaL's Vehicle Info - by criticaL - 30.04.2007, 19:03
Re: [INC] criticaL's Vehicle Info - by criticaL - 30.04.2007, 21:25
Re: [INC] criticaL's Vehicle Info - by Kaufesti - 22.11.2007, 14:01
Re: [INC] criticaL's Vehicle Info - by Downfall - 23.11.2007, 20:02
Re: [INC] criticaL's Vehicle Info - by asteroid - 24.11.2007, 14:05
Re: [INC] criticaL's Vehicle Info - by AndinhoJp - 24.12.2007, 03:22
Re: [INC] criticaL's Vehicle Info - by Lima - 29.02.2008, 19:21
Re: [INC] criticaL's Vehicle Info - by whooper - 06.04.2008, 23:26
Re: [INC] criticaL's Vehicle Info - by criticaL - 07.04.2008, 13:43
Re: [INC] criticaL's Vehicle Info - by whooper - 07.04.2008, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)