26.06.2009, 07:00
To tuning my car after spawn I need create:
new VEHICLE;
.......
VEHICLE = CreateVehicle(VEHICLEID, X, Y, Z, COLOR1, COLOR2,TIME);
....
OnVehicleSpawn(vehicleid)
{
SetTimer("TuneVehicle",1000,0);
return1;
}
...
public TuneVehicle()
{
AddVehicleComponent(VEHICLE, COMPONENTID);
return 1;
}
...etc
But How Can I use this for all my vehicles ?
Because my GM is so big - 600 cars, and create to each car new VEHICLE; new VEHICLE2; new VEHICLE3; etc it's so hard....
new VEHICLE;
.......
VEHICLE = CreateVehicle(VEHICLEID, X, Y, Z, COLOR1, COLOR2,TIME);
....
OnVehicleSpawn(vehicleid)
{
SetTimer("TuneVehicle",1000,0);
return1;
}
...
public TuneVehicle()
{
AddVehicleComponent(VEHICLE, COMPONENTID);
return 1;
}
...etc
But How Can I use this for all my vehicles ?
Because my GM is so big - 600 cars, and create to each car new VEHICLE; new VEHICLE2; new VEHICLE3; etc it's so hard....