OnPlayerLogin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: Stuff to come.)
 
No edit summary
Line 1: Line 1:
Stuff to come.
{{Server event}}
__NOTOC__
This event is triggered when a player logs into their account in-game.
 
==Parameters==
<syntaxhighlight lang="lua">
account thePreviousAccount, account theCurrentAccount, bool autoLogin
</syntaxhighlight>
 
*'''thePreviousAccount''': The account the player was logged into before
*'''theCurrentAccount''': The account the player logged into just now
*'''autoLogin''': Whether this login was a result of an autologin
 
==Source==
The [[event system#Event source|source]] of this event is the player [[element]] that just logged in.
 
==Example==
This example just outputs to the player console that a player in one account logged into an another account:
<syntaxhighlight lang="lua">
-- TBA
</syntaxhighlight>
 
{{See also/Server event|Client events}}

Revision as of 17:32, 2 February 2009

This event is triggered when a player logs into their account in-game.

Parameters

account thePreviousAccount, account theCurrentAccount, bool autoLogin
  • thePreviousAccount: The account the player was logged into before
  • theCurrentAccount: The account the player logged into just now
  • autoLogin: Whether this login was a result of an autologin

Source

The source of this event is the player element that just logged in.

Example

This example just outputs to the player console that a player in one account logged into an another account:

 -- TBA

See Also

Client events


Event functions