24.08.2009, 13:34
Hi, I have a problem with tunning my car.
When i first time get on with the car, it is tunned, but when it dies, and respawn, its no longer tunned. Can you help me? Here is my code:
I tried this but it didnt work:
Any help? Thanks
When i first time get on with the car, it is tunned, but when it dies, and respawn, its no longer tunned. Can you help me? Here is my code:
Код:
new car; public OnGameModeInit() { car=AddStaticVehicle(542,-1834.9572,1288.3302,31.5905,23.2091,3,82); AddVehicleComponent(car, 1010); // 10x Nitro AddVehicleComponent(car, 1014); // Spoiler Champ AddVehicleComponent(car, 1019); // Twin Exhaust AddVehicleComponent(car, 1082); // Wheels Import AddVehicleComponent(car, 1144); // Square vents AddVehicleComponent(car, 1145); // Square vents AddVehicleComponent(car, 1087); // Hydraulics AddVehicleComponent(car, 1086); // Stereo ChangeVehicleColor(car,3,115); }
Код:
public OnVehicleSpawn(vehicleid) { if(vehicleid==car) { AddVehicleComponent(car, 1010); // 10x Nitro AddVehicleComponent(car, 1014); // Spoiler Champ AddVehicleComponent(car, 1019); // Twin Exhaust AddVehicleComponent(car, 1082); // Wheels Import AddVehicleComponent(car, 1144); // Square vents AddVehicleComponent(car, 1145); // Square vents AddVehicleComponent(car, 1087); // Hydraulics AddVehicleComponent(car, 1086); // Stereo ChangeVehicleColor(car,3,115); } }