IsPlayerDucked: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
   outputChatBox ( GetPlayerName ( player ) , " is currently crouching." )
   outputChatBox ( GetPlayerName ( player ) , " is currently crouching." )
end</syntaxhighlight>
end</syntaxhighlight>
==See Also==
{{Player functions}}

Revision as of 20:03, 20 May 2006

Description

This function returns a boolean value (true or false) depending on whether the specified player is ducked (crouched) or not.

Syntax

bool IsPlayerDucked ( player player )

Required Arguments

  • player: A player object referencing the specified player

Example

player = getPlayerFromID ( 1 )
if ( IsPlayerDucked ( player ) )
  outputChatBox ( GetPlayerName ( player ) , " is currently crouching." )
end

See Also