oh,i found the soulution...try this:
var walk_percentage = 0;
..............................
action player_move() // control the player on the client, move it on the server
{
while (1)
{
my.pan += (key_a - key_d)*5*time_step; // rotate the entity using [A],[D]
var distance = (key_w - key_s)*5*time_step;
c_move(me, vector(distance,0,0), nullvector, GLIDE); // move it using [W],[S]
walk_percentage += distance;
ent_animate(me,"walk",walk_percentage,ANM_CYCLE); // animate the entity
walk_percentage += 2 * time_step;
if (key_any == 0)
{
ent_animate(me,NULL,0,0); // reset all bones
}
wait (1);
}
}
////////////////////// ok,so ill explain what i did.Don't use c_move(me, vector(distance,0,0), NULL, GLIDE); use nullvector instead of NULL;
///////////////////// if (key_any == 0) means that if no key is pressed will do{what is here}
////////////////////walk_percentage += 2 * time_step; <- use this under ur ent_animate to define the speed of ur animation; i guess this is all

Good luck!reply if still got problems!