I know people will say go through the tutorials but as soon as I start I lose concentration. At the moment I am using:

Code:
if (key_space) 
{
me.z +=20; //if space is pressed jump
ent_animate(me,"jump",jump_percentage,ANM_CYCLE);
}
if (me.z > 25.1) 
{
c_move(me,vector(0,0,-6.5),nullvector,GLIDE); //if the player is above z.20 then glide down at 0.8 speed, enable collision
}



I want to make the model jump quite high and then glide down but this allows space to be held down and I want it so you can only press spacebar once so I assume I use a while statement I just dont know where?