Disable toolbar button

Is there a way to disable some toolbar buttons according to some GP?

Something alike "Restrict when properties match: " from RestrictCommands.

I have some buttons that do turn management and they must be pressed only once per turn. So I need to restrict it in a way that both players can’t activate the button one following the other.