pawn Код:
stock
setVehicleNumberPlate ( vehicleid, numberplate [ ] )
{
new
Float:vX,
Float:vY,
Float:vZ,
Float:vA,
Float:vH,
vPanels,
vDoors,
vLights,
vTires,
vEngine,
vLight,
vAlarm,
vDoor,
vBonnet,
vBoot,
vObjective
;
GetVehicleHealth ( vehicleid, vH );
GetVehicleDamageStatus ( vehicleid, vPanels, vDoors, vLights, vTires );
GetVehicleParamsEx ( vehicleid, vEngine, vLight, vAlarm, vDoor, vBonnet, vBoot, vObjective );
GetVehiclePos ( vehicleid, vX, vY, vZ );
GetVehicleZAngle ( vehicleid, vA );
SetVehicleNumberPlate ( vehicleid, numberplate );
printf ( "%d | %d | %d | %d", vPanels, vDoors, vLights, vTires );
SetVehicleToRespawn ( vehicleid );
SetVehicleHealth ( vehicleid, vH );
UpdateVehicleDamageStatus ( vehicleid, vPanels, vDoors, vLights, vTires );
SetVehicleParamsEx ( vehicleid, vEngine, vLight, vAlarm, vDoor, vBonnet, vBoot, vObjective );
SetVehiclePos ( vehicleid, vX, vY, vZ );
SetVehicleZAngle ( vehicleid, vA );
return 1;
}