IsPlayerDucked

From Multi Theft Auto: Wiki
Revision as of 17:32, 25 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 )

Required Arguments

  • player: A player object referencing the specified player

Example

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