OnPlayerPart

From Vice City Multiplayer
Revision as of 19:52, 26 July 2014 by Franklin (talk | contribs) (Created page with "This is called when a player disconnects from the server. == Syntax == <pre>function onPlayerPart( player, reason )</pre> == Arguments == * '''player''' - The pointer of t...")
(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 disconnects from the server.

Syntax

function onPlayerPart( player, reason )

Arguments

  • player - The pointer of the player
  • reason - Reason ID for the part.

Example

function onPlayerPart( player, reason )
{
    Message( player.Name + " left server." );    
}

Notes

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

Related Functions