try this:
Code:
public client_PreThink(id)
{
if(g_multijump == true)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(!(get_user_flags( id ) & ADMIN_ADMIN)) return PLUGIN_CONTINUE
new nbut = get_user_button(id)
new obut = get_user_oldbutton(id)
if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
{
if(jumpnum[id] < 1)
{
dojump[id] = true
jumpnum[id]++
return PLUGIN_CONTINUE
}
}
if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
}
}
if(g_bhop == true)
{
set_pev(id, pev_fuser2, 0.0)
if(pev(id, pev_button) & 2)
{
new flags = pev(id, pev_flags)
if(flags & FL_WATERJUMP)
return PLUGIN_CONTINUE
if(pev(id, pev_waterlevel) >= 2)
return PLUGIN_CONTINUE
if(!(flags & FL_ONGROUND))
return PLUGIN_CONTINUE
new Float:velocity[3]
pev(id, pev_velocity, velocity)
velocity[2] += 260.0
set_pev(id, pev_velocity, velocity)
set_pev(id, pev_gaitsequence, 6)
}
}
return PLUGIN_CONTINUE
}