make a advancement or something else that if a player kills himself it will run a function
i need it so when aplyer with the tag crown kills himself so not by anyone else it will run a function i was looking thru the advancement but coudnt see anything useful