I have a problem and I can not find a solution.
I want to block the action of jumping when a player is in the water. I've tried with Ham_Player_Jump and Ham_Player_Duck and there's no way.
To know if the player is in the water I use pev (id, pev_waterlevel)