At whatever point you are assigning the player sprite to each player, you can also assign a player id to them.
Then test that player id as one of the conditions for showing the hud sprite.
If Player == 1, set hud animation to player1hud
If Player == 2, set hud animation to player2hud
Etc..