02.08.2011, 15:49
Yes, that's the code.
pawn Код:
CMD:untunemycar(playerid, params[]) {
new
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid == 0)
return SendClientMessage(playerid, 0, "Invalid vehicle ID");
for(new i = 0; i < 14; i++){
RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, i));
}
VehicleInfo[vehicleid][mod1] = 0;
VehicleInfo[vehicleid][mod2] = 0;
VehicleInfo[vehicleid][mod3] = 0;
VehicleInfo[vehicleid][mod4] = 0;
VehicleInfo[vehicleid][mod5] = 0;
VehicleInfo[vehicleid][mod6] = 0;
VehicleInfo[vehicleid][mod7] = 0;
VehicleInfo[vehicleid][mod8] = 0;
VehicleInfo[vehicleid][mod9] = 0;
VehicleInfo[vehicleid][mod10] = 0;
VehicleInfo[vehicleid][mod11] = 0;
VehicleInfo[vehicleid][mod12] = 0;
VehicleInfo[vehicleid][mod13] = 0;
VehicleInfo[vehicleid][mod14] = 0;
VehicleInfo[vehicleid][mod15] = 0;
VehicleInfo[vehicleid][mod16] = 0;
VehicleInfo[vehicleid][mod17] = 0;
VehicleInfo[vehicleid][paintjob] = -1;
VehicleInfo[vehicleid][color_2] = -1;
VehicleInfo[vehicleid][color_1] = -1;
return 1;
}