Key, it would realy a pain to do that by hand. But the func shouldn´t use a text object, it should look like this:
execute_allowed(string_to_execute,"player_health|player_ammo");