IsPlayerDead: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
   [[serverChat]] ( [[GetPlayerName]] ( player ) , " has bitten the dust." )
   [[serverChat]] ( [[GetPlayerName]] ( player ) , " has bitten the dust." )
  end
  end
This edit is done to fix the dead links.

Revision as of 10:57, 26 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