This site has been archived and made available for preservation purposes. No edits can be made.

OnPlayerDisconnect

(Difference between revisions)
Return to current revision
Current Revision 08-06-2012, 04:25 PM
  1.  
    Gets called when a player disconnects from the server.
  2. -

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void OnPlayerDisconnect(vaultmp::ID, vaultmp::Reason);
  3. +
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Void OnPlayerDisconnect(VAULTSPACE ID, VAULTSPACE Reason) _CPP(noexcept);
    [/highlight]
    [highlight=c]
  4.  
    forward OnPlayerDisconnect(ID, reason);
  5. -
    </code>
    == Parameters ==

    '''[[ID|vaultmp::ID]]''' - the ID of the [[Player]]

    '''[[Reason|vaultmp::Reason]]''' - the reason ID describing why the player gets disonnected

    == Return value ==

    None.
  6. +
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Player[/wiki]
    [b][wiki="Reason"]Reason[/wiki][/b] - the reason ID describing why the player got disonnected
    [h="2"] Return value [/h]
    None.
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]