- Documentation
- Server functions
- getAccountPlayer
Function
getAccountPlayer
Returns the player logged into this account. An account can be logged in by only one player at a time.
Syntax
player getAccountPlayer(account theAccount)Arguments
theAccountaccount- The account.
Returns
The player or false.
Example
local player = getAccountPlayer(getAccount("jan"))
if player then
outputChatBox("Masz nową wiadomość.", player)
end