No root zip works on galaxy ace s5830
Look around XDA-Developers for relevant resource. For a phone of this age and (past) popularity, not only root is readily available, you can also get custom ROMs up to KitKat (not necessarily stable).

One of the possible ways: flash a stock-ROM-compatible custom recovery, then flash SuperUser/SuperSU zip in there. If that's all you need then this thread seems to be an alright starting point.

As always told, make a backup in the recovery for safety.