A few things you can do to keep your central AC functional include:
Cleaning the air filters regularly
Keeping the main unit free from any obstruction
Cleaning the exterior of the main unit
Running it at the optimal temperature to keep it from overworking
Calling professional help as soon as major issues like air leaks show up