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

OnPlayerDisconnect

(Difference between revisions)
Return to current revision
  1. +
    Gets called when a player disconnects from the server.
    [h="2"] Declaration [/h]
    <code cpp>
    VAULTSCRIPT void OnPlayerDisconnect(vaultmp::ID, vaultmp::Reason);
    forward OnPlayerDisconnect(ID, reason);
    </code>
    [h="2"] Parameters [/h]
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Player[/wiki]
    [b][wiki="Reason"]vaultmp::Reason[/wiki][/b] - the reason ID describing why the player gets disonnected
    [h="2"] Return value [/h]
    None.
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]