IsPlayerDead: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) m (→Example) |
mNo edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
bool [[IsPlayerDead]] ( [[player]] ) | bool [[IsPlayerDead]] ( [[player]] player ) | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''[[player]]''': A player object referencing the specified player | * '''[[player]]''': A [[player]] object referencing the specified player | ||
==Example== | ==Example== | ||
player = [[GetRandomPlayer]] ( ) | player = [[GetRandomPlayer]] ( ) | ||
if ( [[IsPlayerDead]] ( player ) ) | if ( [[IsPlayerDead]] ( player ) ) | ||
[[ serverChat ]] ( [[GetPlayerName]] ( player ) , " has bitten the dust." ) | [[serverChat]] ( [[GetPlayerName]] ( player ) , " has bitten the dust." ) | ||
end | end |
Revision as of 19:52, 25 March 2006
Description
This function returns a boolean value (true or false) depending on whether the specified player is dead or not.
Syntax
bool IsPlayerDead ( player player )
Required Arguments
Example
player = GetRandomPlayer ( ) if ( IsPlayerDead ( player ) ) serverChat ( GetPlayerName ( player ) , " has bitten the dust." ) end