How can i change the player animations

i want to change the running animations of the player
is there a script to change it? ACT_RUN_PROTECTED where should i put this script?

Check out the base game-mode for a file called animations.lua; you can implement your changes in there or use hooks for those functions.