OnPlayerLeaveParty
A member is gone from the party.
reason is "left" (RemovePlayerFromParty), "kicked" (the same with "kicked"), "disconnect", or "disband"
- the mode’s
DisbandParty, the leader’s leaving underleader_leaves = "disband", or the last member standing when the party fell to one. The member’s label is gone with the membership.
Syntax
Section titled “Syntax”function OnPlayerLeaveParty(party, pid, reason) -- ...end| Parameter | Type | |
|---|---|---|
party |
number | the party |
pid |
number | the member who left |
reason |
string | "left", "kicked", "disconnect" or "disband" |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerLeaveParty(party, pid, reason) if reason ~= "disband" then SendPartyMessage(party, COLOUR_SERVER, GetPlayerName(pid) .. " left the party (" .. reason .. ").") endendSee also
Section titled “See also”OnPlayerJoinParty · RemovePlayerFromParty · OnPartyDisband · the Parties group of the index
