try this scripting
PHP Code:
#include <amxmisc>
#include <fun>
#include <engine>
#include <fakemeta>
#define PLUGIN "fall no damage"
#define VERSION "1.0"
#define AUTHOR "spooky"
#define FALL_VELOCITY 350.0
new bool:g_acc = false;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward( FM_CmdStart, "fw_Start" )
}
public fw_Start(id) {
if(pev(id, pev_button) & IN_USE ){
set_user_gravity(id,8.0)
g_acc = false;
}
else
if(pev(id, pev_oldbuttons) & IN_USE){
set_user_gravity(id,1.0)
g_acc = true;
}
}
new bool:falling[33];
public client_PreThink(id) {
if(is_user_alive(id) && is_user_connected(id) && !g_acc) {
if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {
falling[id] = true;
} else {
falling[id] = false;
}
}
}
public client_PostThink(id) {
if( is_user_alive(id) && is_user_connected(id) && !g_acc) {
if(falling[id]) {
entity_set_int(id, EV_INT_watertype, -3);
}
}
}
__________________