Progetto H — Riferimento API Documentazione & Scripting
Evento Server

Server.PlayerConnect

Called when a player is attempting to connect to the server<br/><br/>Use Server.KickByAccountID() or Server.BanByAccountID() to kick or ban the player from inside this event.

Non ancora tradotto

Sintassi

Lua
Server.Subscribe("PlayerConnect", function(IP, player_account_ID, player_name, player_steam_ID)
    -- il tuo codice
end)

Argomenti

Nome Tipo Predefinito Descrizione
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