04.12.2017, 15:34
Quote:
|
Depends what the actual code is. If it's just a bit of math and a function call or two, that's nothing in the grand scheme of things and would not make any significant change to performance if used in OPU.
|
PHP код:
ptask UpdateVehicleHealth[250](playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return 1;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, CarInfo[vehicleid][cHealth]);
GetVehicleDamageStatus(vehicleid, CarInfo[vehicleid][cPanels], CarInfo[vehicleid][cDoors], CarInfo[vehicleid][cLights], CarInfo[vehicleid][cTires]);
return 1;
}


