IsPlayerLoggedIn
Whether the player proved their registered name this session.
A guest name is never “logged in”; a registered one is after /login or /register.
Syntax
Section titled “Syntax”IsPlayerLoggedIn(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsPlayerRegistered(pid) and not IsPlayerLoggedIn(pid) then return false end -- no commands before the loginSee also
Section titled “See also”IsPlayerRegistered · OnPlayerLogin · IsPlayerAdmin · the Accounts, admins, bans and the audit group of the index
