Detect player crouching
#1

How to detect player crouching, but NOT standing up? Is there a way?
pawn Code:
if( PRESSED(KEY_CROUCH) ) // CROUCH
{
    if( GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK )
    {
        SCM(playerid, COL_CMDHELP, "Duckd!");
    }
}
Prints "Duckd!" when ducking, and when standing up aswell. That's not what I need exactly.
Reply


Messages In This Thread
Detect player crouching - by TheXIII - 23.11.2010, 11:33
Re: Detect player crouching - by Mike_Peterson - 23.11.2010, 11:42
Re: Detect player crouching - by TheXIII - 23.11.2010, 11:45
Re: Detect player crouching - by Zh3r0 - 23.11.2010, 11:56
Re: Detect player crouching - by TheXIII - 23.11.2010, 12:13
Re: Detect player crouching - by Babul - 23.11.2010, 12:20
Re: Detect player crouching - by armyoftwo - 23.11.2010, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)