What did I do wrong? Can you guys fix it?
Its boost jump
//mothafuckinboostjump #include maps\_utility; #include common_scripts\utility; #include maps\_zombiemode_utility; main() { level thread on_player_connect(); } on_player_connect() { while(1) { level waittill( "connecting", player ); player thread fly_away(); } } spaceButtonPressed() { if( GetDvar("fly_key") == 1 ) return true; return false; } fly_away() { wait 2; // self setClientDvar( "activeaction", "vstr 17;" ); // self setClientDvar( "17", "bind2 space vstr 19" ); // self setClientDvar( "19", "toggle fly_key 0 1" ); self.enable_land_sound = false; self.boost_left = 100; while(1) { if( !self IsOnGround() && self.boost_left > 0 ) { self.boost_added = 0; while( self.boost_added < 1 && !self IsOnGround() ) { if( self UseButtonPressed() ) { self AllowMelee(false); self.is_flying_jetpack = true; self.boost_added++; self PlaySound("boost"); angles = self getplayerangles(); angles = (0,angles[1],0); if( self.boost_left >= 10 ) self.loop_value = 6; else if( self.boost_left < 10 && self.boost_left >= 5 ) self.loop_value = 2; else if( self.boost_left < 5 && self.boost_left > 0 ) self.loop_value = 1; if( IsDefined(self.loop_value) && self.boost_left > 0 ) { Earthquake( 0.22, .9, self.origin, 850 ); if( self.boost_left < 10 ) self.boost_left = 0; else self.boost_left -= 10; direction = AnglesToUp(angles) * 750; self thread land(); for(l = 0; l < self.loop_value; l++) { self SetVelocity( self getVelocity() + direction ); wait .1; } } self.enable_land_sound = true; while( !self isOnGround() ) wait .05; } wait .1; } } wait .1; } }