OnPlayerDeath

From Vice City Multiplayer
Revision as of 23:31, 29 July 2014 by Franklin (talk | contribs)
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