OnPlayerQuit: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Event called when a player leaves the server.}} | ||
{{FuncSyntax|OnPlayerQuit(player)}} | {{FuncSyntax|OnPlayerQuit(player)}} | ||
Line 17: | Line 17: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{PlayerServerEvents}} |
Latest revision as of 20:34, 31 August 2020
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)