#include <sdktools>
public void OnPluginStart(){
HookEvent("player_jump", OnPlayerJump);
}
public void OnPlayerJump(Event event, const char[] name, bool dontBroadcast){
RequestFrame(rf_PlayerJump, event.GetInt("userid"));
}
public void rf_PlayerJump(int client){
if((client = GetClientOfUserId(client)) < 1 || IsFakeClient(client))
return;
float vec[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vec);
if(SquareRoot(vec[0] * vec[0] + vec[1] * vec[1]) > 260.0){
vec[0] *= 0.8;
vec[1] *= 0.8;
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vec);
}
}