OnPlayerDeath

From Vice City Multiplayer
Revision as of 23:28, 29 July 2014 by Franklin (talk | contribs) (Created page with "This is called when a player dies. e.g.: drowned or self-kill. == Syntax == <pre>function onPlayerDeath( player, reason )</pre> == Arguments == * '''player''' - player's p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This is called when a player dies. e.g.: drowned or self-kill.

Syntax

function onPlayerDeath( player, reason )

Arguments

  • player - player's pointer
  • reason - how the player dies

Example

function onPlayerDeath( player, reason )
{
    Message( "** " + player.Name + " died." );    
}

Notes

The functions Message, player.Name were used in this example. More info about them in corresponding pages.

Related Functions