I think a function for this doesn't exist but you can make an alternate way:
Code:
new bool:hasPower[33]
public plugin_init() {
register_plugin("abc", "0.1", "abc")
register_forward(FM_PlayerPreThink, "forward_playerprethink")
}
public forward_playerprethink(id) {
if (is_user_alive(id) && hasPower[id]) {
if (entity_get_int(id, EV_INT_flags) & FL_ONGROUND) {
set_cvar_num("sv_airaccelerate", -10)
}
else {
set_cvar_num("sv_airaccelerate", 10)
}
}
return FMRES_IGNORED
}
just set hasPower[id] to true to allow a player to jump
NOTE: I don't know if this works I have scripted it on the fly