Block jump in water
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) |
Re: Block jump in water
Add
PHP Code:
https://forums.alliedmods.net/showpo...9&postcount=16 |
Re: Block jump in water
Not work...
I need that the players do not gain speed in the water doing bunny hop |
Re: Block jump in water
|
Re: Block jump in water
Quote:
Quote:
Code:
|
Re: Block jump in water
Quote:
if(pev(id,pev_waterlevel) != 0) and if(pev(id,pev_waterlevel)) would do the same thing. |
Re: Block jump in water
I did a mistake but that checks when can't players jump (Waiding, submerged etc).
|
Re: Block jump in water
Quote:
Post link here. |
Re: Block jump in water
Quote:
OP "Also just do what edon suggested" |
Re: Block jump in water
he wants to block the bunny hop in the water.
|
| All times are GMT -4. The time now is 17:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.