Or just make player instantly fall. For example, player jumps then he presses IN_SPEED (when he is in air) and he should fall immideatly. Don't care about fall damage, it's okay if player will die because of it.
Game - csgo
SORRY FOR OLD SYNTAX
PHP Code:
public OnGameFrame()
{
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && IsPlayerAlive(i)
g_bClientIsInAir[i] = !(GetEntityFlags(i) & FL_ONGROUND);
}
}
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &iWeapon)
{
if(buttons & IN_SPEED)
{
if(g_bClientIsInAir[client])
{
//Some code to make client fall or increase his gravity
}
}
}