OnPlayerQuit

From Onset Developer Wiki
Revision as of 20:34, 31 August 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnPlayerQuit

Type: Event
Context: Server
Introduced: v1.0

Description

Event called when a player leaves the server.

Syntax

OnPlayerQuit(player)

Parameters

  • player
    The player who has quit.

Example

function OnPlayerQuit(player)
	AddPlayerChatAll(GetPlayerName(player).." left the server.")
end
AddEvent("OnPlayerQuit", OnPlayerQuit)

See also