29.03.2009, 19:39
Or you could do it this way (I use this way for my GM because it makes it easier to perform an action on all the cars at once with a loop).
Top of your script
Then OnGameModeInit
This way in the future if you ever wanna destroy them all you can just use a loop.
Top of your script
pawn Код:
new intveh[30]; //I don't know how many cars you actually have. Change the number to fit your actual number of cars you're linking.
pawn Код:
intveh[1] = AddStaticVehicle(...);
LinkVehicleToInterior(intveh[1],15);
intveh[2] = AddStaticVehicle(...);
LinkVehicleToInterior(intveh[2],15);
intveh[3] = AddStaticVehicle(...);
LinkVehicleToInterior(intveh[3],15);

