19.09.2017, 08:14
rather than giving it type how about making a variable hold it?
then on your code upon creating
You can also add constraints that a player tries to seat on the driver seat of the admin vehicle will be thrown off from the seat and will only be allowed to seat on the passenger seat. That's already easy.. so hope you get the idea and it helps.
Oh yeah ones the vehicle gets destroyed make sure to destroy it also or it will respawn on the spot you have created it...
PHP код:
#define MAX_ADMINVEHICLES 2
new AdminVehicle[MAX_ADMINVEHICLES];
PHP код:
AdminVehicle[vehicleid] = CreateVehicle(params) //<- that vehicleid should be a free id and you can make an admin only spawn two cars by adding some constraints
Oh yeah ones the vehicle gets destroyed make sure to destroy it also or it will respawn on the spot you have created it...