Raised This Month: $ Target: $400
 0% 

check player duck when not pressing duck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 01-22-2014 , 14:10   check player duck when not pressing duck
Reply With Quote #1

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); 
?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 01-22-2014 at 15:20.
striker07 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-22-2014 , 15:18   Re: check player duck when not pressing duck
Reply With Quote #2

pev(id, pev_flags) & FL_DUCKING
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 01-22-2014 , 17:33   Re: check player duck when not pressing duck
Reply With Quote #3

thanks
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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