Someone swimming in water?
Is it possible somehow detect if someone is 'swimming' at water?
|
Re: Someone swimming in water?
Yes. You have to check waterlevel pev value.
Quote:
|
Re: Someone swimming in water?
Quote:
(so i should take them all except 0?) |
Re: Someone swimming in water?
Quote:
This will detect the cases when a player is also just stay in water (not only swimming). With engine module: if (entity_get_int(player, EV_INT_waterlevel)) With fakemeta module: if (pev(player, pev_waterlevel)) If you want to know whether he is exactly swimming you have to perform exactly the same check but for flSwimTime pev value. |
Re: Someone swimming in water?
psssp : can i send me the code please for my 24/7 server coming son
[X]-RayCat its superhero |
Re: Someone swimming in water?
Quote:
EDIT: Nvm, i use fakemeta because its already included on my plugin. (didnt remember that) |
Re: Someone swimming in water?
How come u dont share ur plugins :/
|
Re: Someone swimming in water?
How come you can't speak english in you're post above... Which might be obvious why he had no idea what you were talking about.
|
Re: Someone swimming in water?
Quote:
|
| All times are GMT -4. The time now is 06:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.