OnPlayerLogout: Difference between revisions
Jump to navigation
Jump to search
(created.) |
No edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''thePreviousAccount''': | *'''thePreviousAccount''': the [[account]] the client was logged in as. | ||
*'''theCurrentAccount''': | *'''theCurrentAccount''': the [[account]] the client is a part of now (usually a guest account). | ||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is the player that logged out. | The [[event system#Event source|source]] of this event is the player that logged out. | ||
==Cancel effect== | |||
If you cancel this event the player will not be logged out. | |||
==Example== | ==Example== | ||
Line 23: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{See also/Server event| | {{See also/Server event|Player events}} |
Latest revision as of 03:01, 27 September 2018
This event is triggered when a user logs out of their account in-game.
Parameters
account thePreviousAccount, account theCurrentAccount
- thePreviousAccount: the account the client was logged in as.
- theCurrentAccount: the account the client is a part of now (usually a guest account).
Source
The source of this event is the player that logged out.
Cancel effect
If you cancel this event the player will not be logged out.
Example
This example displays a message if the player logs out.
function loggedOut() outputChatBox( "You have successfully logged out!", source ) end addEventHandler("onPlayerLogout",getRootElement(),loggedOut)
See Also
Player events
- onPlayerACInfo
- onPlayerBan
- onPlayerChangeNick
- onPlayerChat
- onPlayerClick
- onPlayerCommand
- onPlayerConnect
- onPlayerContact
- onPlayerDamage
- onPlayerJoin
- onPlayerLogin
- onPlayerLogout
- onPlayerMarkerHit
- onPlayerMarkerLeave
- onPlayerModInfo
- onPlayerMute
- onPlayerNetworkStatus
- onPlayerPickupHit
- onPlayerPickupLeave
- onPlayerPickupUse
- onPlayerPrivateMessage
- onPlayerQuit
- onPlayerScreenShot
- onPlayerSpawn
- onPlayerStealthKill
- onPlayerTarget
- onPlayerUnmute
- onPlayerVehicleEnter
- onPlayerVehicleExit
- onPlayerVoiceStart
- onPlayerVoiceStop
- onPlayerWasted
- onPlayerWeaponFire
- onPlayerWeaponSwitch
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled