AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   check player duck when not pressing duck (https://forums.alliedmods.net/showthread.php?t=233940)

striker07 01-22-2014 14:10

check player duck when not pressing duck
 
How can you check if a player is ducked when he is not pressing the duck button?
for example you duck to go through a small pipe but as soon as you release the duck button the system would see this player as standing

edit:
PHP Code:

new bool:cl_ducking pev(playerpev_bInDuck); 

?

ConnorMcLeod 01-22-2014 15:18

Re: check player duck when not pressing duck
 
pev(id, pev_flags) & FL_DUCKING

striker07 01-22-2014 17:33

Re: check player duck when not pressing duck
 
thanks :up:


All times are GMT -4. The time now is 10:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.