if(CarInfo[carid][Userid] == PlayerInfo[playerid][pSQLID]) {
KillTimer(VehicleTimer[carid]);
SCMEx(playerid, -1, "This %s (ID %d) is owned by %s | Colors: %d, %d | Odometer: %.2f km | Insurance: $%s",
aVehicleNames[CarInfo[carid][cModel]-400], CarInfo[carid][Spawned], CarInfo[carid][cOwner],
CarInfo[carid][cColorOne], CarInfo[carid][cColorTwo], CarInfo[carid][KM], FormatNumber(CarInfo[carid][cTax]), (strlen(CarInfo[carid][cText]) > 3) ? (" {FFFF00}VIP") : (""));
if(CarInfo[carid][cPoints] == 0) {
SCM(playerid, COLOR_GREY, "Nu ai platit asigurarea! Ca s-o platesti, foloseste comanda /v > Vehicul > Asigurare.");
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
vehEngine[vehicleid] = 0;
}
}
else if(CarInfo[carid][cID] != -2 && carid != 0) {
KillTimer(VehicleTimer[carid]);
SCMEx(playerid, -1, "This %s (ID %d) is owned by %s | Colors: %d, %d | Odometer: %.2f km | Insurance: $%s",
aVehicleNames[CarInfo[carid][cModel]-400], CarInfo[carid][Spawned], CarInfo[carid][cOwner],
CarInfo[carid][cColorOne], CarInfo[carid][cColorTwo], CarInfo[carid][KM], FormatNumber(CarInfo[carid][cTax]), (strlen(CarInfo[carid][cText]) > 3) ? (" {FFFF00}VIP") : (""));
if(CarInfo[carid][cPoints] == 0) {
SCM(playerid, COLOR_GREY, "Acest vehicul nu are asigurarea platita!");
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
vehEngine[vehicleid] = 0;
}
}
Ai scrise de 2 ori aceleasi chestii, ar fi ok sa rescrii portiunea asta de cod.