How do I prevent the character from sprinting when the stamina value is 0?

Ah! Give me 5 minutes…