Event
Server.PlayerDisconnect
Called when a player is disconnecting from the server
Syntax
Server.Subscribe("PlayerDisconnect", function(IP, player_account_ID, player_name, player_steam_ID, disconnect_reason)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
IP
|
string | — | IP of the player |
player_account_ID
|
string | — | Account ID of the player |
player_name
|
string | — | Player name |
player_steam_ID
|
string | — | SteamID of the player |
disconnect_reason
|
string | — | Reason for disconnection |