09.04.2011, 11:26
I added some tunned cars, but i have problems here i tryed to add more cars, can you tell me what is wrong?
pawn Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == bazecar) {
AddVehicleComponent(bazecar,1028);
AddVehicleComponent(bazecar,1169);
AddVehicleComponent(bazecar,1141);
AddVehicleComponent(bazecar,1032);
AddVehicleComponent(bazecar,1138);
AddVehicleComponent(bazecar,1026);
AddVehicleComponent(bazecar,1027);
ChangeVehiclePaintjob(bazecar, 0);
AddVehicleComponent(bazecar,1009);
AddVehicleComponent(bazecar,1082);
{
else if(vehicleid == johny1) {
AddVehicleComponent(johny1,1028);
AddVehicleComponent(johny1,1169);
AddVehicleComponent(johny1,1141);
AddVehicleComponent(johny1,1032);
AddVehicleComponent(johny1,1138);
AddVehicleComponent(johny1,1026);
AddVehicleComponent(johny1,1027);
ChangeVehiclePaintjob(johny1, 0);
AddVehicleComponent(johny1,1010);
AddVehicleComponent(johny1,1082);
AddVehicleComponent(johny1,1087);
{
else if(vehicleid == johny2) {
AddVehicleComponent(johny2,1047);
AddVehicleComponent(johny2,1171);
AddVehicleComponent(johny2,1149);
AddVehicleComponent(johny2,1035);
AddVehicleComponent(johny2,1147);
AddVehicleComponent(johny2,1037);
AddVehicleComponent(johny2,1087);
ChangeVehiclePaintjob(johny2, 1);
AddVehicleComponent(johny2,1010);
AddVehicleComponent(johny2,1082);
}
return 1;
}