stock VehicleTuning(playerid, slot){ if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID])) { GetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor])KillTimer(Vehicle[PrivateVehicle[playerid][slot][vehID]][VehicleTimer]); Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehLicht] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehHaube] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehKRaum] = false; new playerName[MAX_PLAYER_NAME+1], nPlate[32], cutName[24+1]; GetPlayerName(playerid, playerName, sizeof(playerName)); strmid(cutName, playerName, 0, 1, sizeof(cutName)); format(nPlate, sizeof(nPlate), "{B22222}SA %s %d", cutName, PrivateVehicle[playerid][slot][vehID]); SetVehicleNumberPlate(PrivateVehicle[playerid][slot][vehID], nPlate); LinkVehicleToInterior(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehInterior]); SetVehicleVirtualWorld(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWorld]); if(PrivateVehicle[playerid][slot][vehPaintjob] >= 0)ChangeVehiclePaintjob(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPaintjob]); if(PrivateVehicle[playerid][slot][vehColor1] >= 0 || PrivateVehicle[playerid][slot][vehColor2] >= 0) ChangeVehicleColor(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehColor1], PrivateVehicle[playerid][slot][vehColor2]); if(PrivateVehicle[playerid][slot][vehSpoiler] >= 1000){ AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSpoiler]); } if(PrivateVehicle[playerid][slot][vehHood] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHood]); } if(PrivateVehicle[playerid][slot][vehRoof] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRoof]); } if(PrivateVehicle[playerid][slot][vehSideskirt] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSideskirt]); } if(PrivateVehicle[playerid][slot][vehLamps] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehLamps]); } if(PrivateVehicle[playerid][slot][vehNitro] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehNitro]); } if(PrivateVehicle[playerid][slot][vehExhaust] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehExhaust]); } if(PrivateVehicle[playerid][slot][vehWheels] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWheels]); } if(PrivateVehicle[playerid][slot][vehStereo] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehStereo]); } if(PrivateVehicle[playerid][slot][vehHydraulics] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHydraulics]); } if(PrivateVehicle[playerid][slot][vehFrontBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehFrontBumper]); } if(PrivateVehicle[playerid][slot][vehRearBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRearBumper]); } if(PrivateVehicle[playerid][slot][vehVentRight] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentRight]); } if(PrivateVehicle[playerid][slot][vehVentLeft] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentLeft]); } switch(PrivateVehicle[playerid][slot][vehNeonID]) { case 1: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 2: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 3: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß case 4: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 5: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 6: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot } SetVehiclePos(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosX], PrivateVehicle[playerid][slot][vehPosY], PrivateVehicle[playerid][slot][vehPosZ]); SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosA]); } return 1;}
//Edit fail
Neon wird nicht angezeigt.